From 992620342f9bb06bdcfebe41d6be2b678f6229ae Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Mon, 30 Mar 2020 09:14:33 +0000 Subject: [PATCH 01/31] Bump requests from 2.22.0 to 2.23.0 Bumps [requests](https://github.com/psf/requests) from 2.22.0 to 2.23.0. - [Release notes](https://github.com/psf/requests/releases) - [Changelog](https://github.com/psf/requests/blob/master/HISTORY.md) - [Commits](https://github.com/psf/requests/compare/v2.22.0...v2.23.0) Signed-off-by: dependabot-preview[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 04892fdb..81350e02 100644 --- a/requirements.txt +++ b/requirements.txt @@ -10,4 +10,4 @@ ruamel.yaml<0.17.0 paramiko==2.7.1 pyvim==3.0.2 redis==3.4.1 -requests==2.22.0 +requests==2.23.0 From d2446d8013094c84c1badbc9d3ed85c149b8df85 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Mon, 30 Mar 2020 09:15:38 +0000 Subject: [PATCH 02/31] Bump click from 7.0 to 7.1.1 Bumps [click](https://github.com/pallets/click) from 7.0 to 7.1.1. - [Release notes](https://github.com/pallets/click/releases) - [Changelog](https://github.com/pallets/click/blob/master/CHANGES.rst) - [Commits](https://github.com/pallets/click/compare/7.0...7.1.1) Signed-off-by: dependabot-preview[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 04892fdb..8a6b4d8f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,7 +3,7 @@ thrift >= 0.11.0,<0.20.0 python-keystoneclient openstacksdk ==0.43.0 deprecated == 1.2.7 -Click==7.0 +Click==7.1.1 flake8==3.7.7 ansible==2.9.6 ruamel.yaml<0.17.0 From 7504e1d6b9c8b93c84c207b59847bf262df33008 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Mon, 30 Mar 2020 09:30:59 +0000 Subject: [PATCH 03/31] Bump python from 3.7.7-slim to 3.8.2-slim Bumps python from 3.7.7-slim to 3.8.2-slim. Signed-off-by: dependabot-preview[bot] --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 110aefa7..367b7e1f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.7.7-slim +FROM python:3.8.2-slim ADD . /code WORKDIR /code RUN apt-get update -y From 165d9d6950ca0b272e738304d8319cd8fc4d69a7 Mon Sep 17 00:00:00 2001 From: David Weinholz Date: Tue, 31 Mar 2020 15:01:12 +0200 Subject: [PATCH 04/31] removed jenkinsfiles --- Jenkinsfile | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile deleted file mode 100644 index 18d7f6fe..00000000 --- a/Jenkinsfile +++ /dev/null @@ -1,16 +0,0 @@ -node { - def image - stage('Clone repository') { - checkout scm - } - - stage('build image'){ - - image = docker.build("denbicloud/cloud-portal-client") - } - stage('push image'){ - withDockerRegistry([ credentialsId: "docker1", url: "" ]) { - image.push("dev") - } - } - } From c4e74bfda68f3a77c32957f16701b405432d86a5 Mon Sep 17 00:00:00 2001 From: David Weinholz Date: Fri, 3 Apr 2020 10:30:59 +0200 Subject: [PATCH 05/31] updated dependabo --- .dependabot/config.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.dependabot/config.yml b/.dependabot/config.yml index 032caf88..21a7f5a6 100644 --- a/.dependabot/config.yml +++ b/.dependabot/config.yml @@ -4,8 +4,16 @@ update_configs: directory: "/" update_schedule: "weekly" target_branch: "dev" + default_reviewers: + - "dweinholz" + - "eKatchko" + - "vktrrdk" - package_manager: "docker" directory: "/" update_schedule: "weekly" target_branch: "dev" + default_reviewers: + - "dweinholz" + - "eKatchko" + - "vktrrdk" From 90c78a836dab361a4f4d1560fd93fb8bf13430fb Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Fri, 3 Apr 2020 08:39:17 +0000 Subject: [PATCH 06/31] Bump flake8 from 3.7.7 to 3.7.9 Bumps [flake8](https://gitlab.com/pycqa/flake8) from 3.7.7 to 3.7.9. - [Release notes](https://gitlab.com/pycqa/flake8/tags) - [Commits](https://gitlab.com/pycqa/flake8/compare/3.7.7...3.7.9) Signed-off-by: dependabot-preview[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 8a6b4d8f..50bb79a8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,7 +4,7 @@ python-keystoneclient openstacksdk ==0.43.0 deprecated == 1.2.7 Click==7.1.1 -flake8==3.7.7 +flake8==3.7.9 ansible==2.9.6 ruamel.yaml<0.17.0 paramiko==2.7.1 From 61489c376bba581ab924dba6767ad46b56acafba Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Fri, 3 Apr 2020 08:44:35 +0000 Subject: [PATCH 07/31] Bump openstacksdk from 0.43.0 to 0.45.0 Bumps [openstacksdk](https://docs.openstack.org/openstacksdk/) from 0.43.0 to 0.45.0. Signed-off-by: dependabot-preview[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 29099883..2642dcf1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ setuptools==46.1.3 thrift >= 0.11.0,<0.20.0 python-keystoneclient -openstacksdk ==0.43.0 +openstacksdk ==0.45.0 deprecated == 1.2.7 Click==7.1.1 flake8==3.7.9 From c087907d7e302ae0c4e59f9a1414dfb020a940fb Mon Sep 17 00:00:00 2001 From: David Weinholz Date: Fri, 3 Apr 2020 14:21:56 +0200 Subject: [PATCH 08/31] fix(Slurm):added to config --- VirtualMachineService/VirtualMachineHandler.py | 3 +++ VirtualMachineService/config/config.yml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/VirtualMachineService/VirtualMachineHandler.py b/VirtualMachineService/VirtualMachineHandler.py index fb8b82da..2d8d4708 100644 --- a/VirtualMachineService/VirtualMachineHandler.py +++ b/VirtualMachineService/VirtualMachineHandler.py @@ -168,6 +168,7 @@ def __init__(self, config): try: self.BIBIGRID_URL = cfg["bibigrid"]["bibigrid_url"] self.SUB_NETWORK = cfg["bibigrid"]["sub_network"] + self.BIBIGRID_MODES = cfg["bibigrid"]["bibigrid_modes"] self.logger.info( msg="Bibigrd url loaded: {0}".format(self.BIBIGRID_URL) ) @@ -1803,6 +1804,8 @@ def start_cluster(self, public_key, master_instance, worker_instances, user): "masterInstance": master_instance, "workerInstances": wI, } + for mode in self.BIBIGRID_MODES: + body.update({mode: True}) request_url = self.BIBIGRID_URL + "create" response = req.post( url=request_url, json=body, headers=headers, verify=self.PRODUCTION diff --git a/VirtualMachineService/config/config.yml b/VirtualMachineService/config/config.yml index 69c401c9..58a5172b 100644 --- a/VirtualMachineService/config/config.yml +++ b/VirtualMachineService/config/config.yml @@ -32,6 +32,9 @@ bibigrid: # Url for Bibigrid API bibigrid_url: https://172.21.0.1:8443/bibigrid/ sub_network: portalexternalsubnetwork + bibigrid_modes: + - slurm + forc: forc_url: https://proxy-dev.bi.denbi.de:5000/ forc_allowed: From b1990c2fc4528918ca597919cd5d820ec650e6c9 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Mon, 6 Apr 2020 09:28:50 +0000 Subject: [PATCH 09/31] Bump deprecated from 1.2.7 to 1.2.8 Bumps [deprecated](https://github.com/tantale/deprecated) from 1.2.7 to 1.2.8. - [Release notes](https://github.com/tantale/deprecated/releases) - [Changelog](https://github.com/tantale/deprecated/blob/master/CHANGELOG.rst) - [Commits](https://github.com/tantale/deprecated/compare/v1.2.7...v1.2.8) Signed-off-by: dependabot-preview[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 2642dcf1..f8232308 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,7 +2,7 @@ setuptools==46.1.3 thrift >= 0.11.0,<0.20.0 python-keystoneclient openstacksdk ==0.45.0 -deprecated == 1.2.7 +deprecated == 1.2.8 Click==7.1.1 flake8==3.7.9 ansible==2.9.6 From 6ebb1dd1f03da72ad919fc2e98baa2f632fdc26a Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Mon, 6 Apr 2020 09:29:04 +0000 Subject: [PATCH 10/31] Bump openstacksdk from 0.45.0 to 0.46.0 Bumps [openstacksdk](https://docs.openstack.org/openstacksdk/) from 0.45.0 to 0.46.0. Signed-off-by: dependabot-preview[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 2642dcf1..74d43b5e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ setuptools==46.1.3 thrift >= 0.11.0,<0.20.0 python-keystoneclient -openstacksdk ==0.45.0 +openstacksdk ==0.46.0 deprecated == 1.2.7 Click==7.1.1 flake8==3.7.9 From e20886571fe0edd7dcb09c6ceb9d82cf451a83f8 Mon Sep 17 00:00:00 2001 From: David Weinholz Date: Mon, 6 Apr 2020 15:04:34 +0200 Subject: [PATCH 11/31] started ansible --- docker-compose.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index b25d6c6b..70faa0b7 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,6 +4,9 @@ services: image: denbicloud/cloud-portal-client:${CLOUD_CLIENT_TAG} ports: - "9090:9090" + + env_file: + - .env environment: - OS_AUTH_URL @@ -21,7 +24,7 @@ services: - ./logs/client:/code/VirtualMachineService/log:rw command: python3 VirtualMachineServer.py /code/VirtualMachineService/config.yml networks: - - portal + - portal redis: image: redis:5.0.5 From 702c23b8bb5ea1a690d469a2b7d08720e44226b0 Mon Sep 17 00:00:00 2001 From: David Weinholz Date: Mon, 6 Apr 2020 16:12:27 +0200 Subject: [PATCH 12/31] first playbooks --- .env | 13 ++++ .gitignore | 1 + .secrets.in | 1 + docker-compose.dev.yml | 3 + plays/.general_variables.yml.kate-swp | Bin 0 -> 302 bytes plays/general_variables.yml | 7 ++ plays/setup_basics.yml | 56 +++++++++++++++ plays/setup_client.yml | 97 ++++++++++++++++++++++++++ site.yml | 2 + 9 files changed, 180 insertions(+) create mode 100644 .env create mode 100644 .secrets.in create mode 100644 plays/.general_variables.yml.kate-swp create mode 100644 plays/general_variables.yml create mode 100644 plays/setup_basics.yml create mode 100644 plays/setup_client.yml create mode 100644 site.yml diff --git a/.env b/.env new file mode 100644 index 00000000..f338cd30 --- /dev/null +++ b/.env @@ -0,0 +1,13 @@ +CLOUD_CLIENT_TAG=0.1.0-beta.0.8.17 +FORC_API_KEY=TNMVclEjVx5S +ELASTIC_USER=elasticboi +ELASTIC_PASSWORD=nae9viFei1Zi1leiS4Olaizuzaerudainga +FILEBEAT_TAG=7.1.0 +ELASTIC_URL=https://portal-dev.denbi.de:443 + +OS_AUTH_URL=https://openstack.cebitec.uni-bielefeld.de:5000/v3/ +OS_PROJECT_ID=3e552e42945c40aab02af3be9bc67a23 +OS_PROJECT_NAME=portal-pool-dev +OS_USERNAME=portal-user-dev +OS_USER_DOMAIN_NAME=Default +OS_PROJECT_DOMAIN_ID=default diff --git a/.gitignore b/.gitignore index c5b9da16..3b235856 100644 --- a/.gitignore +++ b/.gitignore @@ -79,6 +79,7 @@ celerybeat-schedule *.sage.py # Environments +.secrets .env .venv env/ diff --git a/.secrets.in b/.secrets.in new file mode 100644 index 00000000..2eca0dfc --- /dev/null +++ b/.secrets.in @@ -0,0 +1 @@ +OS_PASSWORD= diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index 723256d3..2ab95dae 100644 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -6,6 +6,9 @@ services: dockerfile: Dockerfile ports: - "9090:9090" + + env_file: + - .env environment: - OS_AUTH_URL diff --git a/plays/.general_variables.yml.kate-swp b/plays/.general_variables.yml.kate-swp new file mode 100644 index 0000000000000000000000000000000000000000..a394e7bae0fe3487b77a33b0374edc504d86511d GIT binary patch literal 302 zcmZQzU=Z?7EJ;-eE>A2_aLdd|RWQ;sU|?Vnv5bB%_n;R|KC0#CJpRLFO?!BKROf8AB0#b`akO z!RG++LlAsU5I-Kl=K}GO?BfRU{SfjzAbuEv&kN#PA^3bCKF~iwKpN&j{!k!?-4y^0 Cfh1J` literal 0 HcmV?d00001 diff --git a/plays/general_variables.yml b/plays/general_variables.yml new file mode 100644 index 00000000..395bef11 --- /dev/null +++ b/plays/general_variables.yml @@ -0,0 +1,7 @@ +client: + PERSISTENT_CONFIG_DIR_PATH: /home/ubuntu/persistent/client_config + CONFIG_DIR_PATH: /home/ubuntu/client/VirtualMachineService/config + PERSISTENT_CERT_FILE_PATH: /home/ubuntu/persistent/client_cert + CERT_FILE_PATH: /home/ubuntu/client/VirtualMachineService/keys + REPO_PATH: /home/ubuntu/client/ + diff --git a/plays/setup_basics.yml b/plays/setup_basics.yml new file mode 100644 index 00000000..3f7131bc --- /dev/null +++ b/plays/setup_basics.yml @@ -0,0 +1,56 @@ +- name: Setup and install Basics + hosts: all + become: yes + vars_files: + - general_variables.yml + + roles: + - role: geerlingguy.docker + + pre_tasks: + - name: Verify Ansible version. + assert: + that: "ansible_version.full is version_compare('2.7', '>=')" + msg: > + "You must update Ansible to at least 2.7"L + + tasks: + - name: Update cache + apt: + upgrade: yes + update_cache: yes + cache_valid_time: 86400 #One day + + - name: Checkout cloud-portal-client repository + git: + repo: "git@github.com:deNBI/cloud-portal-client.git" + dest: "{{ client.REPO_PATH }}" + accept_hostkey: yes + force: yes + version: "{{ repo_version | default('master') }}" + become: no + + - name: Set max_map_count + sysctl: + name: vm.max_map_count + value: 262144 + state: present + + - name: Install python3-pip + apt: + state: latest + name: python3-pip + + - name: Install list of packages + apt: + name: "{{ item }}" + state: present + update_cache: yes + with_items: + - libffi-dev + - libssl-dev + - jq + + - name: Install docker-compose with pip + pip: + name: docker-compose diff --git a/plays/setup_client.yml b/plays/setup_client.yml new file mode 100644 index 00000000..3ba8f0c4 --- /dev/null +++ b/plays/setup_client.yml @@ -0,0 +1,97 @@ +- name: Setup Client + hosts: all + become: yes + vars_files: + - general_variables.yml + tasks: + + - name: Setup persistent client directory + file: + path: "{{ client.PERSISTENT_CONFIG_DIR_PATH }}" + state: directory + - name: Setup persistent client cert directory + file: + path: "{{ client.PERSISTENT_CERT_FILE_PATH }}" + state: directory + + - name: Check if client config file exists already + stat: + path: "{{ client.PERSISTENT_CONFIG_DIR_PATH }}/config.yml" + register: stat_client_config + + - name: Copy client config file from config folder + copy: + remote_src: True + src: "{{ client.CONFIG_DIR_PATH }}/config.yml" + dest: "{{ client.PERSISTENT_CONFIG_DIR_PATH }}/config.yml" + when: client_config is not defined and stat_client_config.stat.exists == False + + - name: Copy specified client config file to remote machine + copy: src={{ item.src }} dest={{ item.dest }} + with_items: + - { src: "{{client_config}}", dest: "{{ client.PERSISTENT_CONFIG_DIR_PATH }}/config.yml" } + - { src: "{{client_config}}", dest: "{{ client.CONFIG_DIR_PATH }}/config.yml"} + when: client_config is defined + + + + - name: Copy specified client pem file to remote machine persistent + copy: src={{ item.src }} dest={{ item.dest }} + with_items: + - { src: "{{client_server_pem}}", dest: "{{ client.PERSISTENT_CERT_FILE_PATH }}/server.pem" } + - { src: "{{client_server_pem}}", dest: "{{ client.CERT_FILE_PATH }}/server.pem" } + when: client_server_pem is defined + + - name: Copy specified client pem file to remote machine persistent from default path + copy: src={{ item.src }} dest={{ item.dest }} + with_items: + - { src: "../VirtualMachineService/keys/server.pem", dest: "{{ client.PERSISTENT_CERT_FILE_PATH }}/server.pem" } + - { src: "../VirtualMachineService/keys/server.pem", dest: "{{ client.CERT_FILE_PATH }}/server.pem" } + - { src: "../VirtualMachineService/keys/server.pem", dest: "{{ client.CERT_FILE_PATH }}/localhost/server.pem" } + when: client_server_pem is not defined + + + + - name: Copy env file default + copy: + src: "../.env" + dest: "{{ client.REPO_PATH }}.env" + backup: yes + when: env_file is not defined + + - name: Copy env file + copy: + src: "{{env_file}}" + dest: "{{ client.REPO_PATH }}.env" + backup: yes + when: env_file is defined + + + - name: Copy secrets file default + copy: + src: "../.secrets" + dest: "{{ client.REPO_PATH }}.secrets" + backup: yes + when: secrets_file is not defined + + - name: Copy secrets file + copy: + src: "{{secrets_file}}" + dest: "{{ client.REPO_PATH }}.secrets" + backup: yes + when: secrets_file is defined + + - name: Append secrets to env file + shell: cat "{{ client.REPO_PATH }}"/.secrets >> "{{ client.REPO_PATH }}"/.env + + + + - name: Start docker container + docker_compose: + pull: yes + project_src: "{{ client.REPO_PATH }}" + files: + - docker-compose.yml + become: yes + + diff --git a/site.yml b/site.yml new file mode 100644 index 00000000..f5602719 --- /dev/null +++ b/site.yml @@ -0,0 +1,2 @@ +- import_playbook: plays/setup_basics.yml +- import_playbook: plays/setup_client.yml From dcbd27b1a64afa92ce3d312a8ef84ba76d9d314b Mon Sep 17 00:00:00 2001 From: David Weinholz Date: Tue, 7 Apr 2020 14:09:12 +0200 Subject: [PATCH 13/31] finished --- Jenkinsfile-PR | 11 --- README.md | 81 +++++++++++++++++++ .../keys/localhost/server.pem | 2 +- ansible_requirements.yml | 2 + plays/setup_client.yml | 2 + 5 files changed, 86 insertions(+), 12 deletions(-) delete mode 100644 Jenkinsfile-PR create mode 100644 ansible_requirements.yml diff --git a/Jenkinsfile-PR b/Jenkinsfile-PR deleted file mode 100644 index 19718c56..00000000 --- a/Jenkinsfile-PR +++ /dev/null @@ -1,11 +0,0 @@ -node { - def image - stage('Clone repository') { - checkout scm - } - - stage('build image'){ - - image = docker.build("denbicloud/cloud-portal-client") - } -} diff --git a/README.md b/README.md index 41a36ee4..da2fd8f6 100644 --- a/README.md +++ b/README.md @@ -171,3 +171,84 @@ if __name__ == '__main__': server = TServer.TSimpleServer(processor, transport, tfactory, pfactory) server.serve() ``` + +### Deployment via ansible + +#### 1.Create your inventory file: + +Example: + +~~~BASH +[test] +REMOTE_IP ansible_user=ubuntu ansible_ssh_private_key_file=PATH_TO_SSH_FILE ansible_python_interpreter=/usr/bin/python3 +~~~ + +where + + * REMOTE_IP is the IP of your staging machine + + * PATH_TO_SSH_FILE is the path to the ssh key of the virtual machine + +#### 2.Set SSH keyforwarding + +In order to checkout the GitHub project you will have to enable +SSH Key forwarding in your `~/.ssh/config` file. + +~~~BASH +Host IP + ForwardAgent yes +~~~ + +where `IP` is the IP of the machine you want to start the portal. + +#### 3.Set SSH Key in Github + +The GitHub repository will cloned using an ssh key you set for the GitHub repository. +You can read how to set an ssh key for the cloud-portal repository on [this website](https://help.github.com/articles/adding-a-new-ssh-key-to-your-github-account/). + + +#### 4.Install needed libraries + +~~~BASH +ansible-galaxy install -r ansible_requirements.yml +~~~ + +#### 5 Create your own secrets file + +Copy the `.secrets.in` to `.secrets`. + +#### 6.Set all variables + +Set all variables that can be found in `.env` and `.secrets` file. + +#### 8.Run the playbook + +You can run the playbook using the following command: + +~~~BASH +ansible-playbook -i inventory_openstack site.yml +~~~ + +where + + * inventory_openstack is your inventory file which you created in the first step. + + +**Choose different files** + +You can also specify different .env , .secrets and server.pem files. + +You can also specify branch, tag, commit that should be checked out with `--extra-vars`. + +For Example: + +~~~BASH +ansible-playbook -i inventory_openstack --extra-vars "repo_version=master" site.yml +~~~ +Optional Keys are: ++ repo_version ++ env_file ++ secrets_file ++ client_server_pem + +**Note:** Default repository is always master. Also by default, the files are taken from the folders as for local start. diff --git a/VirtualMachineService/keys/localhost/server.pem b/VirtualMachineService/keys/localhost/server.pem index e0382c3e..6d8450fd 100644 --- a/VirtualMachineService/keys/localhost/server.pem +++ b/VirtualMachineService/keys/localhost/server.pem @@ -1,4 +1,4 @@ ------BEGIN CERTIFICATE----- + -----BEGIN CERTIFICATE----- MIICpDCCAYwCCQDtWP54D1EuLTANBgkqhkiG9w0BAQsFADAUMRIwEAYDVQQDDAls b2NhbGhvc3QwHhcNMTgwNDI1MTMwOTM3WhcNMjYwNzEyMTMwOTM3WjAUMRIwEAYD VQQDDAlsb2NhbGhvc3QwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDz diff --git a/ansible_requirements.yml b/ansible_requirements.yml new file mode 100644 index 00000000..d1c08e70 --- /dev/null +++ b/ansible_requirements.yml @@ -0,0 +1,2 @@ +- src: geerlingguy.docker +- src: geerlingguy.pip diff --git a/plays/setup_client.yml b/plays/setup_client.yml index 3ba8f0c4..5f1c8b9f 100644 --- a/plays/setup_client.yml +++ b/plays/setup_client.yml @@ -40,6 +40,8 @@ with_items: - { src: "{{client_server_pem}}", dest: "{{ client.PERSISTENT_CERT_FILE_PATH }}/server.pem" } - { src: "{{client_server_pem}}", dest: "{{ client.CERT_FILE_PATH }}/server.pem" } + - { src: "{{client_server_pem}}", dest: "{{ client.CERT_FILE_PATH }}/localhost/server.pem" } + when: client_server_pem is defined - name: Copy specified client pem file to remote machine persistent from default path From 7ca292f0b649f9a988b6135f94d50a7383703631 Mon Sep 17 00:00:00 2001 From: dweinholz Date: Wed, 8 Apr 2020 14:01:32 +0200 Subject: [PATCH 14/31] Update VirtualMachineHandler.py disable public ip --- VirtualMachineService/VirtualMachineHandler.py | 1 + 1 file changed, 1 insertion(+) diff --git a/VirtualMachineService/VirtualMachineHandler.py b/VirtualMachineService/VirtualMachineHandler.py index 2d8d4708..268f3863 100644 --- a/VirtualMachineService/VirtualMachineHandler.py +++ b/VirtualMachineService/VirtualMachineHandler.py @@ -1803,6 +1803,7 @@ def start_cluster(self, public_key, master_instance, worker_instances, user): "availabilityZone": self.AVAIALABILITY_ZONE, "masterInstance": master_instance, "workerInstances": wI, + "useMasterWithPublicIp":False } for mode in self.BIBIGRID_MODES: body.update({mode: True}) From 633615c1a697f753462e934a7ca40a64bad782b0 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 8 Apr 2020 12:03:12 +0000 Subject: [PATCH 15/31] fix(Linting):blacked code --- VirtualMachineService/VirtualMachineHandler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VirtualMachineService/VirtualMachineHandler.py b/VirtualMachineService/VirtualMachineHandler.py index 268f3863..323da7ed 100644 --- a/VirtualMachineService/VirtualMachineHandler.py +++ b/VirtualMachineService/VirtualMachineHandler.py @@ -1803,7 +1803,7 @@ def start_cluster(self, public_key, master_instance, worker_instances, user): "availabilityZone": self.AVAIALABILITY_ZONE, "masterInstance": master_instance, "workerInstances": wI, - "useMasterWithPublicIp":False + "useMasterWithPublicIp": False, } for mode in self.BIBIGRID_MODES: body.update({mode: True}) From 4c20891177661879a10e1113640a18d404639162 Mon Sep 17 00:00:00 2001 From: David Weinholz Date: Thu, 9 Apr 2020 09:05:38 +0200 Subject: [PATCH 16/31] updated --- .env | 1 - .secrets.in | 1 + plays/setup_basics.yml | 6 ------ 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/.env b/.env index f338cd30..5b1f9514 100644 --- a/.env +++ b/.env @@ -1,5 +1,4 @@ CLOUD_CLIENT_TAG=0.1.0-beta.0.8.17 -FORC_API_KEY=TNMVclEjVx5S ELASTIC_USER=elasticboi ELASTIC_PASSWORD=nae9viFei1Zi1leiS4Olaizuzaerudainga FILEBEAT_TAG=7.1.0 diff --git a/.secrets.in b/.secrets.in index 2eca0dfc..30ac5132 100644 --- a/.secrets.in +++ b/.secrets.in @@ -1 +1,2 @@ OS_PASSWORD= +FORC_API_KEY= diff --git a/plays/setup_basics.yml b/plays/setup_basics.yml index 3f7131bc..4abc8341 100644 --- a/plays/setup_basics.yml +++ b/plays/setup_basics.yml @@ -30,12 +30,6 @@ version: "{{ repo_version | default('master') }}" become: no - - name: Set max_map_count - sysctl: - name: vm.max_map_count - value: 262144 - state: present - - name: Install python3-pip apt: state: latest From ce017c87d24670c79c10e42f2d316a0d7639a9c8 Mon Sep 17 00:00:00 2001 From: David Weinholz Date: Thu, 9 Apr 2020 14:15:09 +0200 Subject: [PATCH 17/31] updated --- .env | 1 - .secrets.in | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/.env b/.env index 5b1f9514..3aa80436 100644 --- a/.env +++ b/.env @@ -1,6 +1,5 @@ CLOUD_CLIENT_TAG=0.1.0-beta.0.8.17 ELASTIC_USER=elasticboi -ELASTIC_PASSWORD=nae9viFei1Zi1leiS4Olaizuzaerudainga FILEBEAT_TAG=7.1.0 ELASTIC_URL=https://portal-dev.denbi.de:443 diff --git a/.secrets.in b/.secrets.in index 30ac5132..19f658ee 100644 --- a/.secrets.in +++ b/.secrets.in @@ -1,2 +1,3 @@ OS_PASSWORD= FORC_API_KEY= +ELASTIC_PASSWORD= From eec422a23cb7c494c3a9b21210f74c363b013175 Mon Sep 17 00:00:00 2001 From: David Weinholz Date: Thu, 9 Apr 2020 14:49:20 +0200 Subject: [PATCH 18/31] updated --- docker-compose.yml | 4 ++-- plays/general_variables.yml | 3 +-- plays/setup_basics.yml | 16 ++++++++++++++++ plays/setup_client.yml | 29 ++++++++++++++--------------- 4 files changed, 33 insertions(+), 19 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 70faa0b7..22e1f7d2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -19,8 +19,8 @@ services: - FORC_API_KEY volumes: - - ./VirtualMachineService/config/config.yml:/code/VirtualMachineService/config.yml - - ./VirtualMachineService/keys/localhost/server.pem:/code/VirtualMachineService/keys/server.pem + - {client_PERSISTENT_PATH}/config.yml:/code/VirtualMachineService/config.yml + - {client_PERSISTENT_PATH}/server.pem:/code/VirtualMachineService/keys/server.pem - ./logs/client:/code/VirtualMachineService/log:rw command: python3 VirtualMachineServer.py /code/VirtualMachineService/config.yml networks: diff --git a/plays/general_variables.yml b/plays/general_variables.yml index 395bef11..47577446 100644 --- a/plays/general_variables.yml +++ b/plays/general_variables.yml @@ -1,7 +1,6 @@ client: - PERSISTENT_CONFIG_DIR_PATH: /home/ubuntu/persistent/client_config + PERSISTENT_PATH: /home/ubuntu/persistent CONFIG_DIR_PATH: /home/ubuntu/client/VirtualMachineService/config - PERSISTENT_CERT_FILE_PATH: /home/ubuntu/persistent/client_cert CERT_FILE_PATH: /home/ubuntu/client/VirtualMachineService/keys REPO_PATH: /home/ubuntu/client/ diff --git a/plays/setup_basics.yml b/plays/setup_basics.yml index 4abc8341..70e64c16 100644 --- a/plays/setup_basics.yml +++ b/plays/setup_basics.yml @@ -48,3 +48,19 @@ - name: Install docker-compose with pip pip: name: docker-compose + + - name: Create variable files + copy: + content: "{{ item.content | dict2items | map('to_json') | map('regex_replace', '\"key\":\\s\"(.*)\"', lookup('vars', 'regex_env')) | map('from_json') | list}}" + dest: "{{ general.REPO_PATH }}/.ansible_environment_{{ item.name }}.json" + backup: yes + vars: + regex_env: "\"key\": \"{{ item.name }}_\\1\"" + with_items: + - { content: "{{ client }}", name: 'client' } + + - name: Transform json to properties file + shell: rm -f "{{ general.REPO_PATH }}"/.ansible_environment && jq -r '.[]|"\(.key)=\(.value)"' "{{ general.REPO_PATH }}"/.ansible_environment_*.json >> "{{ general.REPO_PATH }}"/.ansible_environment + + - name: Append secrets to env file + shell: cat "{{ general.REPO_PATH }}"/.secrets "{{ general.REPO_PATH }}"/.ansible_environment >> "{{ general.REPO_PATH }}"/.env diff --git a/plays/setup_client.yml b/plays/setup_client.yml index 5f1c8b9f..6347f6c1 100644 --- a/plays/setup_client.yml +++ b/plays/setup_client.yml @@ -1,4 +1,4 @@ -- name: Setup Client +ka- name: Setup Client hosts: all become: yes vars_files: @@ -7,30 +7,34 @@ - name: Setup persistent client directory file: - path: "{{ client.PERSISTENT_CONFIG_DIR_PATH }}" + path: "{{ client.PERSISTENT_PATH }}" state: directory - name: Setup persistent client cert directory file: - path: "{{ client.PERSISTENT_CERT_FILE_PATH }}" + path: "{{ client.PERSISTENT_PATH }}" state: directory - name: Check if client config file exists already stat: - path: "{{ client.PERSISTENT_CONFIG_DIR_PATH }}/config.yml" + path: "{{ client.PERSISTENT_PATH }}/config.yml" register: stat_client_config + + - name: Check if server pem file exists already + stat: + path: "{{ client.PERSISTENT_PATH }}/server.pem" + register: stat_client_pem - name: Copy client config file from config folder copy: remote_src: True src: "{{ client.CONFIG_DIR_PATH }}/config.yml" - dest: "{{ client.PERSISTENT_CONFIG_DIR_PATH }}/config.yml" + dest: "{{ client.PERSISTENT_PATH }}/config.yml" when: client_config is not defined and stat_client_config.stat.exists == False - name: Copy specified client config file to remote machine copy: src={{ item.src }} dest={{ item.dest }} with_items: - - { src: "{{client_config}}", dest: "{{ client.PERSISTENT_CONFIG_DIR_PATH }}/config.yml" } - - { src: "{{client_config}}", dest: "{{ client.CONFIG_DIR_PATH }}/config.yml"} + - { src: "{{client_config}}", dest: "{{ client.PERSISTENT_PATH }}/config.yml" } when: client_config is defined @@ -38,19 +42,14 @@ - name: Copy specified client pem file to remote machine persistent copy: src={{ item.src }} dest={{ item.dest }} with_items: - - { src: "{{client_server_pem}}", dest: "{{ client.PERSISTENT_CERT_FILE_PATH }}/server.pem" } - - { src: "{{client_server_pem}}", dest: "{{ client.CERT_FILE_PATH }}/server.pem" } - - { src: "{{client_server_pem}}", dest: "{{ client.CERT_FILE_PATH }}/localhost/server.pem" } - + - { src: "{{client_server_pem}}", dest: "{{ client.PERSISTENT_PATH }}/server.pem" } when: client_server_pem is defined - name: Copy specified client pem file to remote machine persistent from default path copy: src={{ item.src }} dest={{ item.dest }} with_items: - - { src: "../VirtualMachineService/keys/server.pem", dest: "{{ client.PERSISTENT_CERT_FILE_PATH }}/server.pem" } - - { src: "../VirtualMachineService/keys/server.pem", dest: "{{ client.CERT_FILE_PATH }}/server.pem" } - - { src: "../VirtualMachineService/keys/server.pem", dest: "{{ client.CERT_FILE_PATH }}/localhost/server.pem" } - when: client_server_pem is not defined + - { src: "../VirtualMachineService/keys/server.pem", dest: "{{ client.PERSISTENT_PATH }}/server.pem" } + when: client_server_pem is not defined anad stat_client_pem.exists == False From 5e90eed7a5bfc035000a6e3dc5a21fcb1e4335bc Mon Sep 17 00:00:00 2001 From: David Weinholz Date: Thu, 9 Apr 2020 15:02:56 +0200 Subject: [PATCH 19/31] updated --- plays/setup_basics.yml | 6 +++--- plays/setup_client.yml | 11 +++++------ 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/plays/setup_basics.yml b/plays/setup_basics.yml index 70e64c16..c5746e0b 100644 --- a/plays/setup_basics.yml +++ b/plays/setup_basics.yml @@ -52,7 +52,7 @@ - name: Create variable files copy: content: "{{ item.content | dict2items | map('to_json') | map('regex_replace', '\"key\":\\s\"(.*)\"', lookup('vars', 'regex_env')) | map('from_json') | list}}" - dest: "{{ general.REPO_PATH }}/.ansible_environment_{{ item.name }}.json" + dest: "{{ client.REPO_PATH }}/.ansible_environment_{{ item.name }}.json" backup: yes vars: regex_env: "\"key\": \"{{ item.name }}_\\1\"" @@ -60,7 +60,7 @@ - { content: "{{ client }}", name: 'client' } - name: Transform json to properties file - shell: rm -f "{{ general.REPO_PATH }}"/.ansible_environment && jq -r '.[]|"\(.key)=\(.value)"' "{{ general.REPO_PATH }}"/.ansible_environment_*.json >> "{{ general.REPO_PATH }}"/.ansible_environment + shell: rm -f "{{ client.REPO_PATH }}"/.ansible_environment && jq -r '.[]|"\(.key)=\(.value)"' "{{ client.REPO_PATH }}"/.ansible_environment_*.json >> "{{ client.REPO_PATH }}"/.ansible_environment - name: Append secrets to env file - shell: cat "{{ general.REPO_PATH }}"/.secrets "{{ general.REPO_PATH }}"/.ansible_environment >> "{{ general.REPO_PATH }}"/.env + shell: cat "{{ client.REPO_PATH }}"/.secrets "{{ client.REPO_PATH }}"/.ansible_environment >> "{{ client.REPO_PATH }}"/.env diff --git a/plays/setup_client.yml b/plays/setup_client.yml index 6347f6c1..1089cfd3 100644 --- a/plays/setup_client.yml +++ b/plays/setup_client.yml @@ -1,4 +1,4 @@ -ka- name: Setup Client +- name: Setup Client hosts: all become: yes vars_files: @@ -19,7 +19,7 @@ ka- name: Setup Client path: "{{ client.PERSISTENT_PATH }}/config.yml" register: stat_client_config - - name: Check if server pem file exists already + - name: Check if server pem file exists already stat: path: "{{ client.PERSISTENT_PATH }}/server.pem" register: stat_client_pem @@ -38,18 +38,17 @@ ka- name: Setup Client when: client_config is defined - - - name: Copy specified client pem file to remote machine persistent + - name: Copy specified server pem file to remote machine persistent copy: src={{ item.src }} dest={{ item.dest }} with_items: - { src: "{{client_server_pem}}", dest: "{{ client.PERSISTENT_PATH }}/server.pem" } when: client_server_pem is defined - - name: Copy specified client pem file to remote machine persistent from default path + - name: Copy specified server pem file to remote machine persistent from default path copy: src={{ item.src }} dest={{ item.dest }} with_items: - { src: "../VirtualMachineService/keys/server.pem", dest: "{{ client.PERSISTENT_PATH }}/server.pem" } - when: client_server_pem is not defined anad stat_client_pem.exists == False + when: client_server_pem is not defined and stat_client_pem.exists == False From 2b70b0feefa6d6163fcc3a97beb62277c706a9c9 Mon Sep 17 00:00:00 2001 From: David Weinholz Date: Thu, 9 Apr 2020 15:05:45 +0200 Subject: [PATCH 20/31] updated --- docker-compose.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 22e1f7d2..d5741165 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -19,8 +19,8 @@ services: - FORC_API_KEY volumes: - - {client_PERSISTENT_PATH}/config.yml:/code/VirtualMachineService/config.yml - - {client_PERSISTENT_PATH}/server.pem:/code/VirtualMachineService/keys/server.pem + - ${client_PERSISTENT_PATH}/config.yml:/code/VirtualMachineService/config.yml + - ${client_PERSISTENT_PATH}/server.pem:/code/VirtualMachineService/keys/server.pem - ./logs/client:/code/VirtualMachineService/log:rw command: python3 VirtualMachineServer.py /code/VirtualMachineService/config.yml networks: From 26e87c72409395b7bf59f1408e9774d62ee84c14 Mon Sep 17 00:00:00 2001 From: David Weinholz Date: Thu, 9 Apr 2020 15:21:37 +0200 Subject: [PATCH 21/31] updated --- plays/general_variables.yml | 2 +- plays/setup_basics.yml | 16 +--------------- plays/setup_client.yml | 27 +++++++++++++++++++++------ 3 files changed, 23 insertions(+), 22 deletions(-) diff --git a/plays/general_variables.yml b/plays/general_variables.yml index 47577446..7e434fd9 100644 --- a/plays/general_variables.yml +++ b/plays/general_variables.yml @@ -2,5 +2,5 @@ client: PERSISTENT_PATH: /home/ubuntu/persistent CONFIG_DIR_PATH: /home/ubuntu/client/VirtualMachineService/config CERT_FILE_PATH: /home/ubuntu/client/VirtualMachineService/keys - REPO_PATH: /home/ubuntu/client/ + REPO_PATH: /home/ubuntu/client diff --git a/plays/setup_basics.yml b/plays/setup_basics.yml index c5746e0b..babc1b15 100644 --- a/plays/setup_basics.yml +++ b/plays/setup_basics.yml @@ -49,18 +49,4 @@ pip: name: docker-compose - - name: Create variable files - copy: - content: "{{ item.content | dict2items | map('to_json') | map('regex_replace', '\"key\":\\s\"(.*)\"', lookup('vars', 'regex_env')) | map('from_json') | list}}" - dest: "{{ client.REPO_PATH }}/.ansible_environment_{{ item.name }}.json" - backup: yes - vars: - regex_env: "\"key\": \"{{ item.name }}_\\1\"" - with_items: - - { content: "{{ client }}", name: 'client' } - - - name: Transform json to properties file - shell: rm -f "{{ client.REPO_PATH }}"/.ansible_environment && jq -r '.[]|"\(.key)=\(.value)"' "{{ client.REPO_PATH }}"/.ansible_environment_*.json >> "{{ client.REPO_PATH }}"/.ansible_environment - - - name: Append secrets to env file - shell: cat "{{ client.REPO_PATH }}"/.secrets "{{ client.REPO_PATH }}"/.ansible_environment >> "{{ client.REPO_PATH }}"/.env + diff --git a/plays/setup_client.yml b/plays/setup_client.yml index 1089cfd3..a07b38c5 100644 --- a/plays/setup_client.yml +++ b/plays/setup_client.yml @@ -51,18 +51,17 @@ when: client_server_pem is not defined and stat_client_pem.exists == False - - name: Copy env file default copy: src: "../.env" - dest: "{{ client.REPO_PATH }}.env" + dest: "{{ client.REPO_PATH }}/.env" backup: yes when: env_file is not defined - name: Copy env file copy: src: "{{env_file}}" - dest: "{{ client.REPO_PATH }}.env" + dest: "{{ client.REPO_PATH }}/.env" backup: yes when: env_file is defined @@ -70,19 +69,35 @@ - name: Copy secrets file default copy: src: "../.secrets" - dest: "{{ client.REPO_PATH }}.secrets" + dest: "{{ client.REPO_PATH }}/.secrets" backup: yes when: secrets_file is not defined - name: Copy secrets file copy: src: "{{secrets_file}}" - dest: "{{ client.REPO_PATH }}.secrets" + dest: "{{ client.REPO_PATH }}/.secrets" backup: yes when: secrets_file is defined + + + - name: Create variable files + copy: + content: "{{ item.content | dict2items | map('to_json') | map('regex_replace', '\"key\":\\s\"(.*)\"', lookup('vars', 'regex_env')) | map('from_json') | list}}" + dest: "{{ client.REPO_PATH }}/.ansible_environment_{{ item.name }}.json" + backup: yes + vars: + regex_env: "\"key\": \"{{ item.name }}_\\1\"" + with_items: + - { content: "{{ client }}", name: 'client' } + + - name: Transform json to properties file + shell: rm -f "{{ client.REPO_PATH }}"/.ansible_environment && jq -r '.[]|"\(.key)=\(.value)"' "{{ client.REPO_PATH }}"/.ansible_environment_*.json >> "{{ client.REPO_PATH }}"/.ansible_environment + - name: Append secrets to env file - shell: cat "{{ client.REPO_PATH }}"/.secrets >> "{{ client.REPO_PATH }}"/.env + shell: cat "{{ client.REPO_PATH }}"/.secrets "{{ client.REPO_PATH }}"/.ansible_environment >> "{{ client.REPO_PATH }}"/.env + From 784e498159ea19793b4f1b2e78e03a742952223a Mon Sep 17 00:00:00 2001 From: David Weinholz Date: Thu, 9 Apr 2020 15:57:45 +0200 Subject: [PATCH 22/31] updated --- plays/setup_client.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plays/setup_client.yml b/plays/setup_client.yml index a07b38c5..98cee8e5 100644 --- a/plays/setup_client.yml +++ b/plays/setup_client.yml @@ -1,4 +1,4 @@ -- name: Setup Client +kate- name: Setup Client hosts: all become: yes vars_files: @@ -47,7 +47,7 @@ - name: Copy specified server pem file to remote machine persistent from default path copy: src={{ item.src }} dest={{ item.dest }} with_items: - - { src: "../VirtualMachineService/keys/server.pem", dest: "{{ client.PERSISTENT_PATH }}/server.pem" } + - { src: "{{client.CERT_FILE_PATH}}", dest: "{{ client.PERSISTENT_PATH }}/server.pem" } when: client_server_pem is not defined and stat_client_pem.exists == False From 3154b766a68e8d9e12c90e313da8fc46122388c6 Mon Sep 17 00:00:00 2001 From: David Weinholz Date: Fri, 10 Apr 2020 11:57:03 +0200 Subject: [PATCH 23/31] added scripts --- {gateway => scripts/gateway}/gateway_TCP.sh | 0 {gateway => scripts/gateway}/gateway_UDP.sh | 0 scripts/generate_new_test_pems.sh | 19 +++++++++++++++++++ 3 files changed, 19 insertions(+) rename {gateway => scripts/gateway}/gateway_TCP.sh (100%) rename {gateway => scripts/gateway}/gateway_UDP.sh (100%) create mode 100644 scripts/generate_new_test_pems.sh diff --git a/gateway/gateway_TCP.sh b/scripts/gateway/gateway_TCP.sh similarity index 100% rename from gateway/gateway_TCP.sh rename to scripts/gateway/gateway_TCP.sh diff --git a/gateway/gateway_UDP.sh b/scripts/gateway/gateway_UDP.sh similarity index 100% rename from gateway/gateway_UDP.sh rename to scripts/gateway/gateway_UDP.sh diff --git a/scripts/generate_new_test_pems.sh b/scripts/generate_new_test_pems.sh new file mode 100644 index 00000000..fddf37fe --- /dev/null +++ b/scripts/generate_new_test_pems.sh @@ -0,0 +1,19 @@ +#!/usr/bin/expect +echo Creating new dir "new_pem" +mkdir new_pem +cd new_pem +openssl req -new -x509 -nodes -days 3000 -out server.crt -keyout server.key -subj "/C=DE/ST=./L=./O=./CN=$1" + +openssl x509 -in server.crt -text > CA.pem +cat server.crt server.key > server.pem +openssl pkcs12 -export -clcerts -in server.crt -inkey server.key -out server.p12 -passout pass:thrift +openssl genrsa -out client.key +openssl req -new -nodes -key client.key -out client.csr -subj "/C=DE/ST=./L=./O=./CN=$1" -passin pass:thrift +openssl x509 -req -days 3000 -in client.csr -CA CA.pem -CAkey server.key -set_serial 01 -out client.crt +openssl pkcs12 -export -clcerts -in client.crt -inkey client.key -out client.p12 -passout pass:thrift +openssl pkcs12 -in client.p12 -out client.pem -clcerts -passin pass:thrift -passout pass:thrift +openssl rsa -in client.pem -out client_no_pass.pem -passin pass:thrift +sed -i '/-----BEGIN ENCRYPTED PRIVATE KEY-----/Q' client.pem +cat client_no_pass.pem >> client.pem +find . -type f -not -name '*.pem' -print0 | xargs -0 rm +rm client_no_pass.pem From ca12c83f3813ffbacd06913ea54a45a32eb44e75 Mon Sep 17 00:00:00 2001 From: David Weinholz Date: Fri, 10 Apr 2020 13:56:49 +0200 Subject: [PATCH 24/31] feat(Cluster):added available endpoint and removing floating ip --- .../VirtualMachineHandler.py | 35 +- .../VirtualMachineService-remote | 14 + .../VirtualMachineService.py | 7405 ++++++----------- VirtualMachineService/constants.py | 9 +- VirtualMachineService/ttypes.py | 1295 +-- portal_client.thrift | 3 +- 6 files changed, 2894 insertions(+), 5867 deletions(-) diff --git a/VirtualMachineService/VirtualMachineHandler.py b/VirtualMachineService/VirtualMachineHandler.py index 323da7ed..f2b3496e 100644 --- a/VirtualMachineService/VirtualMachineHandler.py +++ b/VirtualMachineService/VirtualMachineHandler.py @@ -1623,6 +1623,8 @@ def openstack_server_to_thrift_server(self, server): ) return server + + def get_servers(self): self.logger.info("Get all servers") servers = self.conn.list_servers() @@ -1698,6 +1700,16 @@ def add_udp_security_group(self, server_id): return True + def detach_ip_from_server(self, server_id, floating_ip): + self.logger.info("Detaching floating ip {} from server {}".format(floating_ip, server_id)) + try: + self.conn.compute.remove_floating_ip_from_server(server=server_id, address=floating_ip) + return True + except Exception: + self.logger.exception( + "Could not detach floating ip {} from server {}".format(floating_ip, server_id)) + return False + def get_servers_by_bibigrid_id(self, bibigrid_id): filters = {"bibigrid_id": bibigrid_id, "name": bibigrid_id} servers = self.conn.list_servers(filters=filters) @@ -1741,20 +1753,33 @@ def get_cluster_status(self, cluster_id): response = req.get( url=request_url, json=body, headers=headers, verify=self.PRODUCTION ) - self.logger.info("Cluster {} status: ".format(cluster_id, response.content)) + self.logger.info("Cluster {} status: {} ".format(cluster_id, response.content)) return response.json() - def get_cluster_info(self, cluster_id): + def bibigrid_available(self): + if not self.BIBIGRID_URL: + return False + try: + self.get_clusters_info() + return True + except Exception: + self.logger.exception("Bibigrid is offline") + return False + + def get_clusters_info(self): headers = {"content-Type": "application/json"} body = {"mode": "openstack"} request_url = self.BIBIGRID_URL + "list" - self.logger.info(request_url) - response = req.get( url=request_url, json=body, headers=headers, verify=self.PRODUCTION ) self.logger.info(response.json()) infos = response.json()["info"] + return infos + + + def get_cluster_info(self, cluster_id): + infos=self.get_clusters_info() for info in infos: self.logger.info(cluster_id) self.logger.info(info) @@ -1803,7 +1828,7 @@ def start_cluster(self, public_key, master_instance, worker_instances, user): "availabilityZone": self.AVAIALABILITY_ZONE, "masterInstance": master_instance, "workerInstances": wI, - "useMasterWithPublicIp": False, + #"useMasterWithPublicIp": False, } for mode in self.BIBIGRID_MODES: body.update({mode: True}) diff --git a/VirtualMachineService/VirtualMachineService-remote b/VirtualMachineService/VirtualMachineService-remote index dc433081..668a78e7 100755 --- a/VirtualMachineService/VirtualMachineService-remote +++ b/VirtualMachineService/VirtualMachineService-remote @@ -43,6 +43,8 @@ if len(sys.argv) <= 1 or sys.argv[1] == '--help': print(' string add_floating_ip_to_server(string openstack_id, string network)') print(' bool create_connection(string username, string password, string auth_url, string user_domain_name, string project_domain_name)') print(' start_server_without_playbook(string flavor, string image, string public_key, string servername, metadata, bool https, bool http, resenv, volume_ids_path_new, volume_ids_path_attach)') + print(' bool bibigrid_available()') + print(' bool detach_ip_from_server(string server_id, string floating_ip)') print(' start_server_with_mounted_volume(string flavor, string image, string public_key, string servername, metadata, bool https, bool http, resenv, volume_ids_path_new, volume_ids_path_attach)') print(' start_server(string flavor, string image, string public_key, string servername, metadata, string diskspace, string volumename, bool https, bool http, resenv)') print(' start_server_with_custom_key(string flavor, string image, string servername, metadata, bool http, bool https, resenv, volume_ids_path_new, volume_ids_path_attach)') @@ -275,6 +277,18 @@ elif cmd == 'start_server_without_playbook': sys.exit(1) pp.pprint(client.start_server_without_playbook(args[0], args[1], args[2], args[3], eval(args[4]), eval(args[5]), eval(args[6]), eval(args[7]), eval(args[8]), eval(args[9]),)) +elif cmd == 'bibigrid_available': + if len(args) != 0: + print('bibigrid_available requires 0 args') + sys.exit(1) + pp.pprint(client.bibigrid_available()) + +elif cmd == 'detach_ip_from_server': + if len(args) != 2: + print('detach_ip_from_server requires 2 args') + sys.exit(1) + pp.pprint(client.detach_ip_from_server(args[0], args[1],)) + elif cmd == 'start_server_with_mounted_volume': if len(args) != 10: print('start_server_with_mounted_volume requires 10 args') diff --git a/VirtualMachineService/VirtualMachineService.py b/VirtualMachineService/VirtualMachineService.py index 002ccd67..308de118 100644 --- a/VirtualMachineService/VirtualMachineService.py +++ b/VirtualMachineService/VirtualMachineService.py @@ -6,13 +6,7 @@ # options string: py # -from thrift.Thrift import ( - TType, - TMessageType, - TFrozenDict, - TException, - TApplicationException, -) +from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException from thrift.protocol.TProtocol import TProtocolException from thrift.TRecursive import fix_spec @@ -21,7 +15,6 @@ from ttypes import * from thrift.Thrift import TProcessor from thrift.transport import TTransport - all_structs = [] @@ -30,7 +23,6 @@ class Iface(object): This VirtualMachiine service deploys methods for creating,deleting,stopping etc. VirtualMachines in Openstack. """ - def check_Version(self, version): """ Parameters: @@ -184,9 +176,7 @@ def add_floating_ip_to_server(self, openstack_id, network): """ pass - def create_connection( - self, username, password, auth_url, user_domain_name, project_domain_name - ): + def create_connection(self, username, password, auth_url, user_domain_name, project_domain_name): """ Create connection to OpenStack. Connection instance @@ -204,19 +194,7 @@ def create_connection( """ pass - def start_server_without_playbook( - self, - flavor, - image, - public_key, - servername, - metadata, - https, - http, - resenv, - volume_ids_path_new, - volume_ids_path_attach, - ): + def start_server_without_playbook(self, flavor, image, public_key, servername, metadata, https, http, resenv, volume_ids_path_new, volume_ids_path_attach): """ Parameters: - flavor: Name of the Flavor to use. @@ -233,19 +211,19 @@ def start_server_without_playbook( """ pass - def start_server_with_mounted_volume( - self, - flavor, - image, - public_key, - servername, - metadata, - https, - http, - resenv, - volume_ids_path_new, - volume_ids_path_attach, - ): + def bibigrid_available(self): + pass + + def detach_ip_from_server(self, server_id, floating_ip): + """ + Parameters: + - server_id + - floating_ip + + """ + pass + + def start_server_with_mounted_volume(self, flavor, image, public_key, servername, metadata, https, http, resenv, volume_ids_path_new, volume_ids_path_attach): """ Parameters: - flavor: Name of the Flavor to use. @@ -262,19 +240,7 @@ def start_server_with_mounted_volume( """ pass - def start_server( - self, - flavor, - image, - public_key, - servername, - metadata, - diskspace, - volumename, - https, - http, - resenv, - ): + def start_server(self, flavor, image, public_key, servername, metadata, diskspace, volumename, https, http, resenv): """ Start a new server. @@ -293,18 +259,7 @@ def start_server( """ pass - def start_server_with_custom_key( - self, - flavor, - image, - servername, - metadata, - http, - https, - resenv, - volume_ids_path_new, - volume_ids_path_attach, - ): + def start_server_with_custom_key(self, flavor, image, servername, metadata, http, https, resenv, volume_ids_path_new, volume_ids_path_attach): """ Start a new server with custom key for ansible. @@ -332,9 +287,7 @@ def exist_server(self, name): """ pass - def create_and_deploy_playbook( - self, public_key, playbooks_information, openstack_id - ): + def create_and_deploy_playbook(self, public_key, playbooks_information, openstack_id): """ Create and deploy an anaconda ansible playbook @@ -683,7 +636,6 @@ class Client(Iface): This VirtualMachiine service deploys methods for creating,deleting,stopping etc. VirtualMachines in Openstack. """ - def __init__(self, iprot, oprot=None): self._iprot = self._oprot = iprot if oprot is not None: @@ -700,7 +652,7 @@ def check_Version(self, version): return self.recv_check_Version() def send_check_Version(self, version): - self._oprot.writeMessageBegin("check_Version", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('check_Version', TMessageType.CALL, self._seqid) args = check_Version_args() args.version = version args.write(self._oprot) @@ -720,9 +672,7 @@ def recv_check_Version(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException( - TApplicationException.MISSING_RESULT, "check_Version failed: unknown result" - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "check_Version failed: unknown result") def get_client_version(self): """ @@ -734,9 +684,7 @@ def get_client_version(self): return self.recv_get_client_version() def send_get_client_version(self): - self._oprot.writeMessageBegin( - "get_client_version", TMessageType.CALL, self._seqid - ) + self._oprot.writeMessageBegin('get_client_version', TMessageType.CALL, self._seqid) args = get_client_version_args() args.write(self._oprot) self._oprot.writeMessageEnd() @@ -755,10 +703,7 @@ def recv_get_client_version(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException( - TApplicationException.MISSING_RESULT, - "get_client_version failed: unknown result", - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_client_version failed: unknown result") def get_gateway_ip(self): """ @@ -769,7 +714,7 @@ def get_gateway_ip(self): return self.recv_get_gateway_ip() def send_get_gateway_ip(self): - self._oprot.writeMessageBegin("get_gateway_ip", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_gateway_ip', TMessageType.CALL, self._seqid) args = get_gateway_ip_args() args.write(self._oprot) self._oprot.writeMessageEnd() @@ -788,19 +733,14 @@ def recv_get_gateway_ip(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException( - TApplicationException.MISSING_RESULT, - "get_gateway_ip failed: unknown result", - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_gateway_ip failed: unknown result") def get_calculation_formulars(self): self.send_get_calculation_formulars() return self.recv_get_calculation_formulars() def send_get_calculation_formulars(self): - self._oprot.writeMessageBegin( - "get_calculation_formulars", TMessageType.CALL, self._seqid - ) + self._oprot.writeMessageBegin('get_calculation_formulars', TMessageType.CALL, self._seqid) args = get_calculation_formulars_args() args.write(self._oprot) self._oprot.writeMessageEnd() @@ -819,10 +759,7 @@ def recv_get_calculation_formulars(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException( - TApplicationException.MISSING_RESULT, - "get_calculation_formulars failed: unknown result", - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_calculation_formulars failed: unknown result") def import_keypair(self, keyname, public_key): """ @@ -838,7 +775,7 @@ def import_keypair(self, keyname, public_key): return self.recv_import_keypair() def send_import_keypair(self, keyname, public_key): - self._oprot.writeMessageBegin("import_keypair", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('import_keypair', TMessageType.CALL, self._seqid) args = import_keypair_args() args.keyname = keyname args.public_key = public_key @@ -859,10 +796,7 @@ def recv_import_keypair(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException( - TApplicationException.MISSING_RESULT, - "import_keypair failed: unknown result", - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "import_keypair failed: unknown result") def get_vm_ports(self, openstack_id): """ @@ -877,7 +811,7 @@ def get_vm_ports(self, openstack_id): return self.recv_get_vm_ports() def send_get_vm_ports(self, openstack_id): - self._oprot.writeMessageBegin("get_vm_ports", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_vm_ports', TMessageType.CALL, self._seqid) args = get_vm_ports_args() args.openstack_id = openstack_id args.write(self._oprot) @@ -897,9 +831,7 @@ def recv_get_vm_ports(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException( - TApplicationException.MISSING_RESULT, "get_vm_ports failed: unknown result" - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_vm_ports failed: unknown result") def get_Flavors(self): """ @@ -911,7 +843,7 @@ def get_Flavors(self): return self.recv_get_Flavors() def send_get_Flavors(self): - self._oprot.writeMessageBegin("get_Flavors", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_Flavors', TMessageType.CALL, self._seqid) args = get_Flavors_args() args.write(self._oprot) self._oprot.writeMessageEnd() @@ -930,9 +862,7 @@ def recv_get_Flavors(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException( - TApplicationException.MISSING_RESULT, "get_Flavors failed: unknown result" - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_Flavors failed: unknown result") def get_Images(self): """ @@ -944,7 +874,7 @@ def get_Images(self): return self.recv_get_Images() def send_get_Images(self): - self._oprot.writeMessageBegin("get_Images", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_Images', TMessageType.CALL, self._seqid) args = get_Images_args() args.write(self._oprot) self._oprot.writeMessageEnd() @@ -963,9 +893,7 @@ def recv_get_Images(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException( - TApplicationException.MISSING_RESULT, "get_Images failed: unknown result" - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_Images failed: unknown result") def get_Image_with_Tag(self, openstack_id): """ @@ -980,9 +908,7 @@ def get_Image_with_Tag(self, openstack_id): return self.recv_get_Image_with_Tag() def send_get_Image_with_Tag(self, openstack_id): - self._oprot.writeMessageBegin( - "get_Image_with_Tag", TMessageType.CALL, self._seqid - ) + self._oprot.writeMessageBegin('get_Image_with_Tag', TMessageType.CALL, self._seqid) args = get_Image_with_Tag_args() args.openstack_id = openstack_id args.write(self._oprot) @@ -1002,10 +928,7 @@ def recv_get_Image_with_Tag(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException( - TApplicationException.MISSING_RESULT, - "get_Image_with_Tag failed: unknown result", - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_Image_with_Tag failed: unknown result") def get_Images_by_filter(self, filter_json): """ @@ -1020,9 +943,7 @@ def get_Images_by_filter(self, filter_json): return self.recv_get_Images_by_filter() def send_get_Images_by_filter(self, filter_json): - self._oprot.writeMessageBegin( - "get_Images_by_filter", TMessageType.CALL, self._seqid - ) + self._oprot.writeMessageBegin('get_Images_by_filter', TMessageType.CALL, self._seqid) args = get_Images_by_filter_args() args.filter_json = filter_json args.write(self._oprot) @@ -1042,10 +963,7 @@ def recv_get_Images_by_filter(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException( - TApplicationException.MISSING_RESULT, - "get_Images_by_filter failed: unknown result", - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_Images_by_filter failed: unknown result") def get_volume(self, volume_id): """ @@ -1057,7 +975,7 @@ def get_volume(self, volume_id): return self.recv_get_volume() def send_get_volume(self, volume_id): - self._oprot.writeMessageBegin("get_volume", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_volume', TMessageType.CALL, self._seqid) args = get_volume_args() args.volume_id = volume_id args.write(self._oprot) @@ -1077,9 +995,7 @@ def recv_get_volume(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException( - TApplicationException.MISSING_RESULT, "get_volume failed: unknown result" - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_volume failed: unknown result") def get_volumes_by_ids(self, volume_ids): """ @@ -1091,9 +1007,7 @@ def get_volumes_by_ids(self, volume_ids): return self.recv_get_volumes_by_ids() def send_get_volumes_by_ids(self, volume_ids): - self._oprot.writeMessageBegin( - "get_volumes_by_ids", TMessageType.CALL, self._seqid - ) + self._oprot.writeMessageBegin('get_volumes_by_ids', TMessageType.CALL, self._seqid) args = get_volumes_by_ids_args() args.volume_ids = volume_ids args.write(self._oprot) @@ -1113,10 +1027,7 @@ def recv_get_volumes_by_ids(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException( - TApplicationException.MISSING_RESULT, - "get_volumes_by_ids failed: unknown result", - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_volumes_by_ids failed: unknown result") def resize_volume(self, volume_id, size): """ @@ -1129,7 +1040,7 @@ def resize_volume(self, volume_id, size): return self.recv_resize_volume() def send_resize_volume(self, volume_id, size): - self._oprot.writeMessageBegin("resize_volume", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('resize_volume', TMessageType.CALL, self._seqid) args = resize_volume_args() args.volume_id = volume_id args.size = size @@ -1150,9 +1061,7 @@ def recv_resize_volume(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException( - TApplicationException.MISSING_RESULT, "resize_volume failed: unknown result" - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "resize_volume failed: unknown result") def delete_server(self, openstack_id): """ @@ -1167,7 +1076,7 @@ def delete_server(self, openstack_id): return self.recv_delete_server() def send_delete_server(self, openstack_id): - self._oprot.writeMessageBegin("delete_server", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('delete_server', TMessageType.CALL, self._seqid) args = delete_server_args() args.openstack_id = openstack_id args.write(self._oprot) @@ -1189,9 +1098,7 @@ def recv_delete_server(self): return result.success if result.e is not None: raise result.e - raise TApplicationException( - TApplicationException.MISSING_RESULT, "delete_server failed: unknown result" - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "delete_server failed: unknown result") def add_metadata_to_server(self, servername, metadata): """ @@ -1204,9 +1111,7 @@ def add_metadata_to_server(self, servername, metadata): return self.recv_add_metadata_to_server() def send_add_metadata_to_server(self, servername, metadata): - self._oprot.writeMessageBegin( - "add_metadata_to_server", TMessageType.CALL, self._seqid - ) + self._oprot.writeMessageBegin('add_metadata_to_server', TMessageType.CALL, self._seqid) args = add_metadata_to_server_args() args.servername = servername args.metadata = metadata @@ -1229,10 +1134,7 @@ def recv_add_metadata_to_server(self): return result.success if result.e is not None: raise result.e - raise TApplicationException( - TApplicationException.MISSING_RESULT, - "add_metadata_to_server failed: unknown result", - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "add_metadata_to_server failed: unknown result") def delete_metadata_from_server(self, servername, keys): """ @@ -1245,9 +1147,7 @@ def delete_metadata_from_server(self, servername, keys): return self.recv_delete_metadata_from_server() def send_delete_metadata_from_server(self, servername, keys): - self._oprot.writeMessageBegin( - "delete_metadata_from_server", TMessageType.CALL, self._seqid - ) + self._oprot.writeMessageBegin('delete_metadata_from_server', TMessageType.CALL, self._seqid) args = delete_metadata_from_server_args() args.servername = servername args.keys = keys @@ -1270,10 +1170,7 @@ def recv_delete_metadata_from_server(self): return result.success if result.e is not None: raise result.e - raise TApplicationException( - TApplicationException.MISSING_RESULT, - "delete_metadata_from_server failed: unknown result", - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "delete_metadata_from_server failed: unknown result") def add_floating_ip_to_server(self, openstack_id, network): """ @@ -1289,9 +1186,7 @@ def add_floating_ip_to_server(self, openstack_id, network): return self.recv_add_floating_ip_to_server() def send_add_floating_ip_to_server(self, openstack_id, network): - self._oprot.writeMessageBegin( - "add_floating_ip_to_server", TMessageType.CALL, self._seqid - ) + self._oprot.writeMessageBegin('add_floating_ip_to_server', TMessageType.CALL, self._seqid) args = add_floating_ip_to_server_args() args.openstack_id = openstack_id args.network = network @@ -1316,14 +1211,9 @@ def recv_add_floating_ip_to_server(self): raise result.e if result.f is not None: raise result.f - raise TApplicationException( - TApplicationException.MISSING_RESULT, - "add_floating_ip_to_server failed: unknown result", - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "add_floating_ip_to_server failed: unknown result") - def create_connection( - self, username, password, auth_url, user_domain_name, project_domain_name - ): + def create_connection(self, username, password, auth_url, user_domain_name, project_domain_name): """ Create connection to OpenStack. Connection instance @@ -1339,17 +1229,11 @@ def create_connection( - project_domain_name: Project domain name of OpenStack """ - self.send_create_connection( - username, password, auth_url, user_domain_name, project_domain_name - ) + self.send_create_connection(username, password, auth_url, user_domain_name, project_domain_name) return self.recv_create_connection() - def send_create_connection( - self, username, password, auth_url, user_domain_name, project_domain_name - ): - self._oprot.writeMessageBegin( - "create_connection", TMessageType.CALL, self._seqid - ) + def send_create_connection(self, username, password, auth_url, user_domain_name, project_domain_name): + self._oprot.writeMessageBegin('create_connection', TMessageType.CALL, self._seqid) args = create_connection_args() args.username = username args.password = password @@ -1375,24 +1259,9 @@ def recv_create_connection(self): return result.success if result.e is not None: raise result.e - raise TApplicationException( - TApplicationException.MISSING_RESULT, - "create_connection failed: unknown result", - ) - - def start_server_without_playbook( - self, - flavor, - image, - public_key, - servername, - metadata, - https, - http, - resenv, - volume_ids_path_new, - volume_ids_path_attach, - ): + raise TApplicationException(TApplicationException.MISSING_RESULT, "create_connection failed: unknown result") + + def start_server_without_playbook(self, flavor, image, public_key, servername, metadata, https, http, resenv, volume_ids_path_new, volume_ids_path_attach): """ Parameters: - flavor: Name of the Flavor to use. @@ -1407,36 +1276,11 @@ def start_server_without_playbook( - volume_ids_path_attach """ - self.send_start_server_without_playbook( - flavor, - image, - public_key, - servername, - metadata, - https, - http, - resenv, - volume_ids_path_new, - volume_ids_path_attach, - ) + self.send_start_server_without_playbook(flavor, image, public_key, servername, metadata, https, http, resenv, volume_ids_path_new, volume_ids_path_attach) return self.recv_start_server_without_playbook() - def send_start_server_without_playbook( - self, - flavor, - image, - public_key, - servername, - metadata, - https, - http, - resenv, - volume_ids_path_new, - volume_ids_path_attach, - ): - self._oprot.writeMessageBegin( - "start_server_without_playbook", TMessageType.CALL, self._seqid - ) + def send_start_server_without_playbook(self, flavor, image, public_key, servername, metadata, https, http, resenv, volume_ids_path_new, volume_ids_path_attach): + self._oprot.writeMessageBegin('start_server_without_playbook', TMessageType.CALL, self._seqid) args = start_server_without_playbook_args() args.flavor = flavor args.image = image @@ -1479,24 +1323,69 @@ def recv_start_server_without_playbook(self): raise result.f if result.o is not None: raise result.o - raise TApplicationException( - TApplicationException.MISSING_RESULT, - "start_server_without_playbook failed: unknown result", - ) - - def start_server_with_mounted_volume( - self, - flavor, - image, - public_key, - servername, - metadata, - https, - http, - resenv, - volume_ids_path_new, - volume_ids_path_attach, - ): + raise TApplicationException(TApplicationException.MISSING_RESULT, "start_server_without_playbook failed: unknown result") + + def bibigrid_available(self): + self.send_bibigrid_available() + return self.recv_bibigrid_available() + + def send_bibigrid_available(self): + self._oprot.writeMessageBegin('bibigrid_available', TMessageType.CALL, self._seqid) + args = bibigrid_available_args() + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_bibigrid_available(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = bibigrid_available_result() + result.read(iprot) + iprot.readMessageEnd() + if result.success is not None: + return result.success + raise TApplicationException(TApplicationException.MISSING_RESULT, "bibigrid_available failed: unknown result") + + def detach_ip_from_server(self, server_id, floating_ip): + """ + Parameters: + - server_id + - floating_ip + + """ + self.send_detach_ip_from_server(server_id, floating_ip) + return self.recv_detach_ip_from_server() + + def send_detach_ip_from_server(self, server_id, floating_ip): + self._oprot.writeMessageBegin('detach_ip_from_server', TMessageType.CALL, self._seqid) + args = detach_ip_from_server_args() + args.server_id = server_id + args.floating_ip = floating_ip + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_detach_ip_from_server(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = detach_ip_from_server_result() + result.read(iprot) + iprot.readMessageEnd() + if result.success is not None: + return result.success + raise TApplicationException(TApplicationException.MISSING_RESULT, "detach_ip_from_server failed: unknown result") + + def start_server_with_mounted_volume(self, flavor, image, public_key, servername, metadata, https, http, resenv, volume_ids_path_new, volume_ids_path_attach): """ Parameters: - flavor: Name of the Flavor to use. @@ -1511,36 +1400,11 @@ def start_server_with_mounted_volume( - volume_ids_path_attach """ - self.send_start_server_with_mounted_volume( - flavor, - image, - public_key, - servername, - metadata, - https, - http, - resenv, - volume_ids_path_new, - volume_ids_path_attach, - ) + self.send_start_server_with_mounted_volume(flavor, image, public_key, servername, metadata, https, http, resenv, volume_ids_path_new, volume_ids_path_attach) return self.recv_start_server_with_mounted_volume() - def send_start_server_with_mounted_volume( - self, - flavor, - image, - public_key, - servername, - metadata, - https, - http, - resenv, - volume_ids_path_new, - volume_ids_path_attach, - ): - self._oprot.writeMessageBegin( - "start_server_with_mounted_volume", TMessageType.CALL, self._seqid - ) + def send_start_server_with_mounted_volume(self, flavor, image, public_key, servername, metadata, https, http, resenv, volume_ids_path_new, volume_ids_path_attach): + self._oprot.writeMessageBegin('start_server_with_mounted_volume', TMessageType.CALL, self._seqid) args = start_server_with_mounted_volume_args() args.flavor = flavor args.image = image @@ -1583,24 +1447,9 @@ def recv_start_server_with_mounted_volume(self): raise result.f if result.o is not None: raise result.o - raise TApplicationException( - TApplicationException.MISSING_RESULT, - "start_server_with_mounted_volume failed: unknown result", - ) - - def start_server( - self, - flavor, - image, - public_key, - servername, - metadata, - diskspace, - volumename, - https, - http, - resenv, - ): + raise TApplicationException(TApplicationException.MISSING_RESULT, "start_server_with_mounted_volume failed: unknown result") + + def start_server(self, flavor, image, public_key, servername, metadata, diskspace, volumename, https, http, resenv): """ Start a new server. @@ -1617,34 +1466,11 @@ def start_server( - resenv """ - self.send_start_server( - flavor, - image, - public_key, - servername, - metadata, - diskspace, - volumename, - https, - http, - resenv, - ) + self.send_start_server(flavor, image, public_key, servername, metadata, diskspace, volumename, https, http, resenv) return self.recv_start_server() - def send_start_server( - self, - flavor, - image, - public_key, - servername, - metadata, - diskspace, - volumename, - https, - http, - resenv, - ): - self._oprot.writeMessageBegin("start_server", TMessageType.CALL, self._seqid) + def send_start_server(self, flavor, image, public_key, servername, metadata, diskspace, volumename, https, http, resenv): + self._oprot.writeMessageBegin('start_server', TMessageType.CALL, self._seqid) args = start_server_args() args.flavor = flavor args.image = image @@ -1687,22 +1513,9 @@ def recv_start_server(self): raise result.f if result.o is not None: raise result.o - raise TApplicationException( - TApplicationException.MISSING_RESULT, "start_server failed: unknown result" - ) - - def start_server_with_custom_key( - self, - flavor, - image, - servername, - metadata, - http, - https, - resenv, - volume_ids_path_new, - volume_ids_path_attach, - ): + raise TApplicationException(TApplicationException.MISSING_RESULT, "start_server failed: unknown result") + + def start_server_with_custom_key(self, flavor, image, servername, metadata, http, https, resenv, volume_ids_path_new, volume_ids_path_attach): """ Start a new server with custom key for ansible. @@ -1718,34 +1531,11 @@ def start_server_with_custom_key( - volume_ids_path_attach """ - self.send_start_server_with_custom_key( - flavor, - image, - servername, - metadata, - http, - https, - resenv, - volume_ids_path_new, - volume_ids_path_attach, - ) + self.send_start_server_with_custom_key(flavor, image, servername, metadata, http, https, resenv, volume_ids_path_new, volume_ids_path_attach) return self.recv_start_server_with_custom_key() - def send_start_server_with_custom_key( - self, - flavor, - image, - servername, - metadata, - http, - https, - resenv, - volume_ids_path_new, - volume_ids_path_attach, - ): - self._oprot.writeMessageBegin( - "start_server_with_custom_key", TMessageType.CALL, self._seqid - ) + def send_start_server_with_custom_key(self, flavor, image, servername, metadata, http, https, resenv, volume_ids_path_new, volume_ids_path_attach): + self._oprot.writeMessageBegin('start_server_with_custom_key', TMessageType.CALL, self._seqid) args = start_server_with_custom_key_args() args.flavor = flavor args.image = image @@ -1787,10 +1577,7 @@ def recv_start_server_with_custom_key(self): raise result.f if result.o is not None: raise result.o - raise TApplicationException( - TApplicationException.MISSING_RESULT, - "start_server_with_custom_key failed: unknown result", - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "start_server_with_custom_key failed: unknown result") def exist_server(self, name): """ @@ -1804,7 +1591,7 @@ def exist_server(self, name): return self.recv_exist_server() def send_exist_server(self, name): - self._oprot.writeMessageBegin("exist_server", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('exist_server', TMessageType.CALL, self._seqid) args = exist_server_args() args.name = name args.write(self._oprot) @@ -1824,13 +1611,9 @@ def recv_exist_server(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException( - TApplicationException.MISSING_RESULT, "exist_server failed: unknown result" - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "exist_server failed: unknown result") - def create_and_deploy_playbook( - self, public_key, playbooks_information, openstack_id - ): + def create_and_deploy_playbook(self, public_key, playbooks_information, openstack_id): """ Create and deploy an anaconda ansible playbook @@ -1840,17 +1623,11 @@ def create_and_deploy_playbook( - openstack_id """ - self.send_create_and_deploy_playbook( - public_key, playbooks_information, openstack_id - ) + self.send_create_and_deploy_playbook(public_key, playbooks_information, openstack_id) return self.recv_create_and_deploy_playbook() - def send_create_and_deploy_playbook( - self, public_key, playbooks_information, openstack_id - ): - self._oprot.writeMessageBegin( - "create_and_deploy_playbook", TMessageType.CALL, self._seqid - ) + def send_create_and_deploy_playbook(self, public_key, playbooks_information, openstack_id): + self._oprot.writeMessageBegin('create_and_deploy_playbook', TMessageType.CALL, self._seqid) args = create_and_deploy_playbook_args() args.public_key = public_key args.playbooks_information = playbooks_information @@ -1872,10 +1649,7 @@ def recv_create_and_deploy_playbook(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException( - TApplicationException.MISSING_RESULT, - "create_and_deploy_playbook failed: unknown result", - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "create_and_deploy_playbook failed: unknown result") def get_playbook_logs(self, openstack_id): """ @@ -1889,9 +1663,7 @@ def get_playbook_logs(self, openstack_id): return self.recv_get_playbook_logs() def send_get_playbook_logs(self, openstack_id): - self._oprot.writeMessageBegin( - "get_playbook_logs", TMessageType.CALL, self._seqid - ) + self._oprot.writeMessageBegin('get_playbook_logs', TMessageType.CALL, self._seqid) args = get_playbook_logs_args() args.openstack_id = openstack_id args.write(self._oprot) @@ -1911,10 +1683,7 @@ def recv_get_playbook_logs(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException( - TApplicationException.MISSING_RESULT, - "get_playbook_logs failed: unknown result", - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_playbook_logs failed: unknown result") def has_forc(self): """ @@ -1925,7 +1694,7 @@ def has_forc(self): return self.recv_has_forc() def send_has_forc(self): - self._oprot.writeMessageBegin("has_forc", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('has_forc', TMessageType.CALL, self._seqid) args = has_forc_args() args.write(self._oprot) self._oprot.writeMessageEnd() @@ -1944,16 +1713,14 @@ def recv_has_forc(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException( - TApplicationException.MISSING_RESULT, "has_forc failed: unknown result" - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "has_forc failed: unknown result") def get_forc_url(self): self.send_get_forc_url() return self.recv_get_forc_url() def send_get_forc_url(self): - self._oprot.writeMessageBegin("get_forc_url", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_forc_url', TMessageType.CALL, self._seqid) args = get_forc_url_args() args.write(self._oprot) self._oprot.writeMessageEnd() @@ -1972,9 +1739,7 @@ def recv_get_forc_url(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException( - TApplicationException.MISSING_RESULT, "get_forc_url failed: unknown result" - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_forc_url failed: unknown result") def create_backend(self, elixir_id, user_key_url, template, upstream_url): """ @@ -1991,7 +1756,7 @@ def create_backend(self, elixir_id, user_key_url, template, upstream_url): return self.recv_create_backend() def send_create_backend(self, elixir_id, user_key_url, template, upstream_url): - self._oprot.writeMessageBegin("create_backend", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('create_backend', TMessageType.CALL, self._seqid) args = create_backend_args() args.elixir_id = elixir_id args.user_key_url = user_key_url @@ -2014,10 +1779,7 @@ def recv_create_backend(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException( - TApplicationException.MISSING_RESULT, - "create_backend failed: unknown result", - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "create_backend failed: unknown result") def get_backends(self): """ @@ -2028,7 +1790,7 @@ def get_backends(self): return self.recv_get_backends() def send_get_backends(self): - self._oprot.writeMessageBegin("get_backends", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_backends', TMessageType.CALL, self._seqid) args = get_backends_args() args.write(self._oprot) self._oprot.writeMessageEnd() @@ -2047,9 +1809,7 @@ def recv_get_backends(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException( - TApplicationException.MISSING_RESULT, "get_backends failed: unknown result" - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_backends failed: unknown result") def get_backends_by_owner(self, elixir_id): """ @@ -2063,9 +1823,7 @@ def get_backends_by_owner(self, elixir_id): return self.recv_get_backends_by_owner() def send_get_backends_by_owner(self, elixir_id): - self._oprot.writeMessageBegin( - "get_backends_by_owner", TMessageType.CALL, self._seqid - ) + self._oprot.writeMessageBegin('get_backends_by_owner', TMessageType.CALL, self._seqid) args = get_backends_by_owner_args() args.elixir_id = elixir_id args.write(self._oprot) @@ -2085,10 +1843,7 @@ def recv_get_backends_by_owner(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException( - TApplicationException.MISSING_RESULT, - "get_backends_by_owner failed: unknown result", - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_backends_by_owner failed: unknown result") def get_backends_by_template(self, template): """ @@ -2102,9 +1857,7 @@ def get_backends_by_template(self, template): return self.recv_get_backends_by_template() def send_get_backends_by_template(self, template): - self._oprot.writeMessageBegin( - "get_backends_by_template", TMessageType.CALL, self._seqid - ) + self._oprot.writeMessageBegin('get_backends_by_template', TMessageType.CALL, self._seqid) args = get_backends_by_template_args() args.template = template args.write(self._oprot) @@ -2124,10 +1877,7 @@ def recv_get_backends_by_template(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException( - TApplicationException.MISSING_RESULT, - "get_backends_by_template failed: unknown result", - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_backends_by_template failed: unknown result") def get_backend_by_id(self, id): """ @@ -2141,9 +1891,7 @@ def get_backend_by_id(self, id): return self.recv_get_backend_by_id() def send_get_backend_by_id(self, id): - self._oprot.writeMessageBegin( - "get_backend_by_id", TMessageType.CALL, self._seqid - ) + self._oprot.writeMessageBegin('get_backend_by_id', TMessageType.CALL, self._seqid) args = get_backend_by_id_args() args.id = id args.write(self._oprot) @@ -2163,10 +1911,7 @@ def recv_get_backend_by_id(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException( - TApplicationException.MISSING_RESULT, - "get_backend_by_id failed: unknown result", - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_backend_by_id failed: unknown result") def delete_backend(self, id): """ @@ -2180,7 +1925,7 @@ def delete_backend(self, id): return self.recv_delete_backend() def send_delete_backend(self, id): - self._oprot.writeMessageBegin("delete_backend", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('delete_backend', TMessageType.CALL, self._seqid) args = delete_backend_args() args.id = id args.write(self._oprot) @@ -2200,17 +1945,14 @@ def recv_delete_backend(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException( - TApplicationException.MISSING_RESULT, - "delete_backend failed: unknown result", - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "delete_backend failed: unknown result") def get_templates(self): self.send_get_templates() return self.recv_get_templates() def send_get_templates(self): - self._oprot.writeMessageBegin("get_templates", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_templates', TMessageType.CALL, self._seqid) args = get_templates_args() args.write(self._oprot) self._oprot.writeMessageEnd() @@ -2229,18 +1971,14 @@ def recv_get_templates(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException( - TApplicationException.MISSING_RESULT, "get_templates failed: unknown result" - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_templates failed: unknown result") def get_allowed_templates(self): self.send_get_allowed_templates() return self.recv_get_allowed_templates() def send_get_allowed_templates(self): - self._oprot.writeMessageBegin( - "get_allowed_templates", TMessageType.CALL, self._seqid - ) + self._oprot.writeMessageBegin('get_allowed_templates', TMessageType.CALL, self._seqid) args = get_allowed_templates_args() args.write(self._oprot) self._oprot.writeMessageEnd() @@ -2259,10 +1997,7 @@ def recv_get_allowed_templates(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException( - TApplicationException.MISSING_RESULT, - "get_allowed_templates failed: unknown result", - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_allowed_templates failed: unknown result") def get_templates_by_template(self, template_name): """ @@ -2274,9 +2009,7 @@ def get_templates_by_template(self, template_name): return self.recv_get_templates_by_template() def send_get_templates_by_template(self, template_name): - self._oprot.writeMessageBegin( - "get_templates_by_template", TMessageType.CALL, self._seqid - ) + self._oprot.writeMessageBegin('get_templates_by_template', TMessageType.CALL, self._seqid) args = get_templates_by_template_args() args.template_name = template_name args.write(self._oprot) @@ -2296,10 +2029,7 @@ def recv_get_templates_by_template(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException( - TApplicationException.MISSING_RESULT, - "get_templates_by_template failed: unknown result", - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_templates_by_template failed: unknown result") def check_template(self, template_name, template_version): """ @@ -2312,7 +2042,7 @@ def check_template(self, template_name, template_version): return self.recv_check_template() def send_check_template(self, template_name, template_version): - self._oprot.writeMessageBegin("check_template", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('check_template', TMessageType.CALL, self._seqid) args = check_template_args() args.template_name = template_name args.template_version = template_version @@ -2333,10 +2063,7 @@ def recv_check_template(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException( - TApplicationException.MISSING_RESULT, - "check_template failed: unknown result", - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "check_template failed: unknown result") def add_udp_security_group(self, server_id): """ @@ -2350,9 +2077,7 @@ def add_udp_security_group(self, server_id): return self.recv_add_udp_security_group() def send_add_udp_security_group(self, server_id): - self._oprot.writeMessageBegin( - "add_udp_security_group", TMessageType.CALL, self._seqid - ) + self._oprot.writeMessageBegin('add_udp_security_group', TMessageType.CALL, self._seqid) args = add_udp_security_group_args() args.server_id = server_id args.write(self._oprot) @@ -2376,10 +2101,7 @@ def recv_add_udp_security_group(self): raise result.r if result.s is not None: raise result.s - raise TApplicationException( - TApplicationException.MISSING_RESULT, - "add_udp_security_group failed: unknown result", - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "add_udp_security_group failed: unknown result") def get_servers(self): """ @@ -2391,7 +2113,7 @@ def get_servers(self): return self.recv_get_servers() def send_get_servers(self): - self._oprot.writeMessageBegin("get_servers", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_servers', TMessageType.CALL, self._seqid) args = get_servers_args() args.write(self._oprot) self._oprot.writeMessageEnd() @@ -2410,9 +2132,7 @@ def recv_get_servers(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException( - TApplicationException.MISSING_RESULT, "get_servers failed: unknown result" - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_servers failed: unknown result") def get_servers_by_ids(self, server_ids): """ @@ -2427,9 +2147,7 @@ def get_servers_by_ids(self, server_ids): return self.recv_get_servers_by_ids() def send_get_servers_by_ids(self, server_ids): - self._oprot.writeMessageBegin( - "get_servers_by_ids", TMessageType.CALL, self._seqid - ) + self._oprot.writeMessageBegin('get_servers_by_ids', TMessageType.CALL, self._seqid) args = get_servers_by_ids_args() args.server_ids = server_ids args.write(self._oprot) @@ -2449,10 +2167,7 @@ def recv_get_servers_by_ids(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException( - TApplicationException.MISSING_RESULT, - "get_servers_by_ids failed: unknown result", - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_servers_by_ids failed: unknown result") def get_servers_by_bibigrid_id(self, bibigrid_id): """ @@ -2467,9 +2182,7 @@ def get_servers_by_bibigrid_id(self, bibigrid_id): return self.recv_get_servers_by_bibigrid_id() def send_get_servers_by_bibigrid_id(self, bibigrid_id): - self._oprot.writeMessageBegin( - "get_servers_by_bibigrid_id", TMessageType.CALL, self._seqid - ) + self._oprot.writeMessageBegin('get_servers_by_bibigrid_id', TMessageType.CALL, self._seqid) args = get_servers_by_bibigrid_id_args() args.bibigrid_id = bibigrid_id args.write(self._oprot) @@ -2489,10 +2202,7 @@ def recv_get_servers_by_bibigrid_id(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException( - TApplicationException.MISSING_RESULT, - "get_servers_by_bibigrid_id failed: unknown result", - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_servers_by_bibigrid_id failed: unknown result") def get_cluster_info(self, cluster_id): """ @@ -2504,9 +2214,7 @@ def get_cluster_info(self, cluster_id): return self.recv_get_cluster_info() def send_get_cluster_info(self, cluster_id): - self._oprot.writeMessageBegin( - "get_cluster_info", TMessageType.CALL, self._seqid - ) + self._oprot.writeMessageBegin('get_cluster_info', TMessageType.CALL, self._seqid) args = get_cluster_info_args() args.cluster_id = cluster_id args.write(self._oprot) @@ -2526,10 +2234,7 @@ def recv_get_cluster_info(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException( - TApplicationException.MISSING_RESULT, - "get_cluster_info failed: unknown result", - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_cluster_info failed: unknown result") def get_cluster_status(self, cluster_id): """ @@ -2541,9 +2246,7 @@ def get_cluster_status(self, cluster_id): return self.recv_get_cluster_status() def send_get_cluster_status(self, cluster_id): - self._oprot.writeMessageBegin( - "get_cluster_status", TMessageType.CALL, self._seqid - ) + self._oprot.writeMessageBegin('get_cluster_status', TMessageType.CALL, self._seqid) args = get_cluster_status_args() args.cluster_id = cluster_id args.write(self._oprot) @@ -2563,10 +2266,7 @@ def recv_get_cluster_status(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException( - TApplicationException.MISSING_RESULT, - "get_cluster_status failed: unknown result", - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_cluster_status failed: unknown result") def get_server(self, openstack_id): """ @@ -2581,7 +2281,7 @@ def get_server(self, openstack_id): return self.recv_get_server() def send_get_server(self, openstack_id): - self._oprot.writeMessageBegin("get_server", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_server', TMessageType.CALL, self._seqid) args = get_server_args() args.openstack_id = openstack_id args.write(self._oprot) @@ -2603,9 +2303,7 @@ def recv_get_server(self): return result.success if result.e is not None: raise result.e - raise TApplicationException( - TApplicationException.MISSING_RESULT, "get_server failed: unknown result" - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_server failed: unknown result") def stop_server(self, openstack_id): """ @@ -2620,7 +2318,7 @@ def stop_server(self, openstack_id): return self.recv_stop_server() def send_stop_server(self, openstack_id): - self._oprot.writeMessageBegin("stop_server", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('stop_server', TMessageType.CALL, self._seqid) args = stop_server_args() args.openstack_id = openstack_id args.write(self._oprot) @@ -2642,9 +2340,7 @@ def recv_stop_server(self): return result.success if result.e is not None: raise result.e - raise TApplicationException( - TApplicationException.MISSING_RESULT, "stop_server failed: unknown result" - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "stop_server failed: unknown result") def create_snapshot(self, openstack_id, name, elixir_id, base_tags, description): """ @@ -2663,10 +2359,8 @@ def create_snapshot(self, openstack_id, name, elixir_id, base_tags, description) self.send_create_snapshot(openstack_id, name, elixir_id, base_tags, description) return self.recv_create_snapshot() - def send_create_snapshot( - self, openstack_id, name, elixir_id, base_tags, description - ): - self._oprot.writeMessageBegin("create_snapshot", TMessageType.CALL, self._seqid) + def send_create_snapshot(self, openstack_id, name, elixir_id, base_tags, description): + self._oprot.writeMessageBegin('create_snapshot', TMessageType.CALL, self._seqid) args = create_snapshot_args() args.openstack_id = openstack_id args.name = name @@ -2692,10 +2386,7 @@ def recv_create_snapshot(self): return result.success if result.e is not None: raise result.e - raise TApplicationException( - TApplicationException.MISSING_RESULT, - "create_snapshot failed: unknown result", - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "create_snapshot failed: unknown result") def get_limits(self): """ @@ -2709,7 +2400,7 @@ def get_limits(self): return self.recv_get_limits() def send_get_limits(self): - self._oprot.writeMessageBegin("get_limits", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('get_limits', TMessageType.CALL, self._seqid) args = get_limits_args() args.write(self._oprot) self._oprot.writeMessageEnd() @@ -2728,9 +2419,7 @@ def recv_get_limits(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException( - TApplicationException.MISSING_RESULT, "get_limits failed: unknown result" - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_limits failed: unknown result") def start_cluster(self, public_key, master_instance, worker_instance, user): """ @@ -2745,7 +2434,7 @@ def start_cluster(self, public_key, master_instance, worker_instance, user): return self.recv_start_cluster() def send_start_cluster(self, public_key, master_instance, worker_instance, user): - self._oprot.writeMessageBegin("start_cluster", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('start_cluster', TMessageType.CALL, self._seqid) args = start_cluster_args() args.public_key = public_key args.master_instance = master_instance @@ -2768,9 +2457,7 @@ def recv_start_cluster(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException( - TApplicationException.MISSING_RESULT, "start_cluster failed: unknown result" - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "start_cluster failed: unknown result") def terminate_cluster(self, cluster_id): """ @@ -2782,9 +2469,7 @@ def terminate_cluster(self, cluster_id): return self.recv_terminate_cluster() def send_terminate_cluster(self, cluster_id): - self._oprot.writeMessageBegin( - "terminate_cluster", TMessageType.CALL, self._seqid - ) + self._oprot.writeMessageBegin('terminate_cluster', TMessageType.CALL, self._seqid) args = terminate_cluster_args() args.cluster_id = cluster_id args.write(self._oprot) @@ -2804,10 +2489,7 @@ def recv_terminate_cluster(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException( - TApplicationException.MISSING_RESULT, - "terminate_cluster failed: unknown result", - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "terminate_cluster failed: unknown result") def delete_image(self, image_id): """ @@ -2822,7 +2504,7 @@ def delete_image(self, image_id): return self.recv_delete_image() def send_delete_image(self, image_id): - self._oprot.writeMessageBegin("delete_image", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('delete_image', TMessageType.CALL, self._seqid) args = delete_image_args() args.image_id = image_id args.write(self._oprot) @@ -2844,9 +2526,7 @@ def recv_delete_image(self): return result.success if result.e is not None: raise result.e - raise TApplicationException( - TApplicationException.MISSING_RESULT, "delete_image failed: unknown result" - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "delete_image failed: unknown result") def delete_volume_attachment(self, volume_id, server_id): """ @@ -2862,9 +2542,7 @@ def delete_volume_attachment(self, volume_id, server_id): return self.recv_delete_volume_attachment() def send_delete_volume_attachment(self, volume_id, server_id): - self._oprot.writeMessageBegin( - "delete_volume_attachment", TMessageType.CALL, self._seqid - ) + self._oprot.writeMessageBegin('delete_volume_attachment', TMessageType.CALL, self._seqid) args = delete_volume_attachment_args() args.volume_id = volume_id args.server_id = server_id @@ -2887,10 +2565,7 @@ def recv_delete_volume_attachment(self): return result.success if result.e is not None: raise result.e - raise TApplicationException( - TApplicationException.MISSING_RESULT, - "delete_volume_attachment failed: unknown result", - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "delete_volume_attachment failed: unknown result") def delete_volume(self, volume_id): """ @@ -2905,7 +2580,7 @@ def delete_volume(self, volume_id): return self.recv_delete_volume() def send_delete_volume(self, volume_id): - self._oprot.writeMessageBegin("delete_volume", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('delete_volume', TMessageType.CALL, self._seqid) args = delete_volume_args() args.volume_id = volume_id args.write(self._oprot) @@ -2925,9 +2600,7 @@ def recv_delete_volume(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException( - TApplicationException.MISSING_RESULT, "delete_volume failed: unknown result" - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "delete_volume failed: unknown result") def attach_volume_to_server(self, openstack_id, volume_id): """ @@ -2943,9 +2616,7 @@ def attach_volume_to_server(self, openstack_id, volume_id): return self.recv_attach_volume_to_server() def send_attach_volume_to_server(self, openstack_id, volume_id): - self._oprot.writeMessageBegin( - "attach_volume_to_server", TMessageType.CALL, self._seqid - ) + self._oprot.writeMessageBegin('attach_volume_to_server', TMessageType.CALL, self._seqid) args = attach_volume_to_server_args() args.openstack_id = openstack_id args.volume_id = volume_id @@ -2968,10 +2639,7 @@ def recv_attach_volume_to_server(self): return result.success if result.e is not None: raise result.e - raise TApplicationException( - TApplicationException.MISSING_RESULT, - "attach_volume_to_server failed: unknown result", - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "attach_volume_to_server failed: unknown result") def check_server_status(self, openstack_id): """ @@ -2986,9 +2654,7 @@ def check_server_status(self, openstack_id): return self.recv_check_server_status() def send_check_server_status(self, openstack_id): - self._oprot.writeMessageBegin( - "check_server_status", TMessageType.CALL, self._seqid - ) + self._oprot.writeMessageBegin('check_server_status', TMessageType.CALL, self._seqid) args = check_server_status_args() args.openstack_id = openstack_id args.write(self._oprot) @@ -3012,10 +2678,7 @@ def recv_check_server_status(self): raise result.e if result.r is not None: raise result.r - raise TApplicationException( - TApplicationException.MISSING_RESULT, - "check_server_status failed: unknown result", - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "check_server_status failed: unknown result") def setUserPassword(self, user, password): """ @@ -3031,7 +2694,7 @@ def setUserPassword(self, user, password): return self.recv_setUserPassword() def send_setUserPassword(self, user, password): - self._oprot.writeMessageBegin("setUserPassword", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('setUserPassword', TMessageType.CALL, self._seqid) args = setUserPassword_args() args.user = user args.password = password @@ -3054,10 +2717,7 @@ def recv_setUserPassword(self): return result.success if result.e is not None: raise result.e - raise TApplicationException( - TApplicationException.MISSING_RESULT, - "setUserPassword failed: unknown result", - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "setUserPassword failed: unknown result") def resume_server(self, openstack_id): """ @@ -3072,7 +2732,7 @@ def resume_server(self, openstack_id): return self.recv_resume_server() def send_resume_server(self, openstack_id): - self._oprot.writeMessageBegin("resume_server", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('resume_server', TMessageType.CALL, self._seqid) args = resume_server_args() args.openstack_id = openstack_id args.write(self._oprot) @@ -3094,9 +2754,7 @@ def recv_resume_server(self): return result.success if result.e is not None: raise result.e - raise TApplicationException( - TApplicationException.MISSING_RESULT, "resume_server failed: unknown result" - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "resume_server failed: unknown result") def create_volume(self, volume_name, volume_storage, metadata): """ @@ -3113,7 +2771,7 @@ def create_volume(self, volume_name, volume_storage, metadata): return self.recv_create_volume() def send_create_volume(self, volume_name, volume_storage, metadata): - self._oprot.writeMessageBegin("create_volume", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('create_volume', TMessageType.CALL, self._seqid) args = create_volume_args() args.volume_name = volume_name args.volume_storage = volume_storage @@ -3137,9 +2795,7 @@ def recv_create_volume(self): return result.success if result.r is not None: raise result.r - raise TApplicationException( - TApplicationException.MISSING_RESULT, "create_volume failed: unknown result" - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "create_volume failed: unknown result") def reboot_server(self, server_id, reboot_type): """ @@ -3155,7 +2811,7 @@ def reboot_server(self, server_id, reboot_type): return self.recv_reboot_server() def send_reboot_server(self, server_id, reboot_type): - self._oprot.writeMessageBegin("reboot_server", TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin('reboot_server', TMessageType.CALL, self._seqid) args = reboot_server_args() args.server_id = server_id args.reboot_type = reboot_type @@ -3178,9 +2834,7 @@ def recv_reboot_server(self): return result.success if result.e is not None: raise result.e - raise TApplicationException( - TApplicationException.MISSING_RESULT, "reboot_server failed: unknown result" - ) + raise TApplicationException(TApplicationException.MISSING_RESULT, "reboot_server failed: unknown result") class Processor(Iface, TProcessor): @@ -3190,74 +2844,46 @@ def __init__(self, handler): self._processMap["check_Version"] = Processor.process_check_Version self._processMap["get_client_version"] = Processor.process_get_client_version self._processMap["get_gateway_ip"] = Processor.process_get_gateway_ip - self._processMap[ - "get_calculation_formulars" - ] = Processor.process_get_calculation_formulars + self._processMap["get_calculation_formulars"] = Processor.process_get_calculation_formulars self._processMap["import_keypair"] = Processor.process_import_keypair self._processMap["get_vm_ports"] = Processor.process_get_vm_ports self._processMap["get_Flavors"] = Processor.process_get_Flavors self._processMap["get_Images"] = Processor.process_get_Images self._processMap["get_Image_with_Tag"] = Processor.process_get_Image_with_Tag - self._processMap[ - "get_Images_by_filter" - ] = Processor.process_get_Images_by_filter + self._processMap["get_Images_by_filter"] = Processor.process_get_Images_by_filter self._processMap["get_volume"] = Processor.process_get_volume self._processMap["get_volumes_by_ids"] = Processor.process_get_volumes_by_ids self._processMap["resize_volume"] = Processor.process_resize_volume self._processMap["delete_server"] = Processor.process_delete_server - self._processMap[ - "add_metadata_to_server" - ] = Processor.process_add_metadata_to_server - self._processMap[ - "delete_metadata_from_server" - ] = Processor.process_delete_metadata_from_server - self._processMap[ - "add_floating_ip_to_server" - ] = Processor.process_add_floating_ip_to_server + self._processMap["add_metadata_to_server"] = Processor.process_add_metadata_to_server + self._processMap["delete_metadata_from_server"] = Processor.process_delete_metadata_from_server + self._processMap["add_floating_ip_to_server"] = Processor.process_add_floating_ip_to_server self._processMap["create_connection"] = Processor.process_create_connection - self._processMap[ - "start_server_without_playbook" - ] = Processor.process_start_server_without_playbook - self._processMap[ - "start_server_with_mounted_volume" - ] = Processor.process_start_server_with_mounted_volume + self._processMap["start_server_without_playbook"] = Processor.process_start_server_without_playbook + self._processMap["bibigrid_available"] = Processor.process_bibigrid_available + self._processMap["detach_ip_from_server"] = Processor.process_detach_ip_from_server + self._processMap["start_server_with_mounted_volume"] = Processor.process_start_server_with_mounted_volume self._processMap["start_server"] = Processor.process_start_server - self._processMap[ - "start_server_with_custom_key" - ] = Processor.process_start_server_with_custom_key + self._processMap["start_server_with_custom_key"] = Processor.process_start_server_with_custom_key self._processMap["exist_server"] = Processor.process_exist_server - self._processMap[ - "create_and_deploy_playbook" - ] = Processor.process_create_and_deploy_playbook + self._processMap["create_and_deploy_playbook"] = Processor.process_create_and_deploy_playbook self._processMap["get_playbook_logs"] = Processor.process_get_playbook_logs self._processMap["has_forc"] = Processor.process_has_forc self._processMap["get_forc_url"] = Processor.process_get_forc_url self._processMap["create_backend"] = Processor.process_create_backend self._processMap["get_backends"] = Processor.process_get_backends - self._processMap[ - "get_backends_by_owner" - ] = Processor.process_get_backends_by_owner - self._processMap[ - "get_backends_by_template" - ] = Processor.process_get_backends_by_template + self._processMap["get_backends_by_owner"] = Processor.process_get_backends_by_owner + self._processMap["get_backends_by_template"] = Processor.process_get_backends_by_template self._processMap["get_backend_by_id"] = Processor.process_get_backend_by_id self._processMap["delete_backend"] = Processor.process_delete_backend self._processMap["get_templates"] = Processor.process_get_templates - self._processMap[ - "get_allowed_templates" - ] = Processor.process_get_allowed_templates - self._processMap[ - "get_templates_by_template" - ] = Processor.process_get_templates_by_template + self._processMap["get_allowed_templates"] = Processor.process_get_allowed_templates + self._processMap["get_templates_by_template"] = Processor.process_get_templates_by_template self._processMap["check_template"] = Processor.process_check_template - self._processMap[ - "add_udp_security_group" - ] = Processor.process_add_udp_security_group + self._processMap["add_udp_security_group"] = Processor.process_add_udp_security_group self._processMap["get_servers"] = Processor.process_get_servers self._processMap["get_servers_by_ids"] = Processor.process_get_servers_by_ids - self._processMap[ - "get_servers_by_bibigrid_id" - ] = Processor.process_get_servers_by_bibigrid_id + self._processMap["get_servers_by_bibigrid_id"] = Processor.process_get_servers_by_bibigrid_id self._processMap["get_cluster_info"] = Processor.process_get_cluster_info self._processMap["get_cluster_status"] = Processor.process_get_cluster_status self._processMap["get_server"] = Processor.process_get_server @@ -3267,13 +2893,9 @@ def __init__(self, handler): self._processMap["start_cluster"] = Processor.process_start_cluster self._processMap["terminate_cluster"] = Processor.process_terminate_cluster self._processMap["delete_image"] = Processor.process_delete_image - self._processMap[ - "delete_volume_attachment" - ] = Processor.process_delete_volume_attachment + self._processMap["delete_volume_attachment"] = Processor.process_delete_volume_attachment self._processMap["delete_volume"] = Processor.process_delete_volume - self._processMap[ - "attach_volume_to_server" - ] = Processor.process_attach_volume_to_server + self._processMap["attach_volume_to_server"] = Processor.process_attach_volume_to_server self._processMap["check_server_status"] = Processor.process_check_server_status self._processMap["setUserPassword"] = Processor.process_setUserPassword self._processMap["resume_server"] = Processor.process_resume_server @@ -3285,9 +2907,7 @@ def process(self, iprot, oprot): if name not in self._processMap: iprot.skip(TType.STRUCT) iprot.readMessageEnd() - x = TApplicationException( - TApplicationException.UNKNOWN_METHOD, "Unknown function %s" % (name) - ) + x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name)) oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid) x.write(oprot) oprot.writeMessageEnd() @@ -3308,15 +2928,13 @@ def process_check_Version(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException( - TApplicationException.INTERNAL_ERROR, "Internal error" - ) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("check_Version", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -3333,15 +2951,13 @@ def process_get_client_version(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException( - TApplicationException.INTERNAL_ERROR, "Internal error" - ) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_client_version", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -3358,15 +2974,13 @@ def process_get_gateway_ip(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException( - TApplicationException.INTERNAL_ERROR, "Internal error" - ) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_gateway_ip", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -3383,15 +2997,13 @@ def process_get_calculation_formulars(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException( - TApplicationException.INTERNAL_ERROR, "Internal error" - ) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_calculation_formulars", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -3408,15 +3020,13 @@ def process_import_keypair(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException( - TApplicationException.INTERNAL_ERROR, "Internal error" - ) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("import_keypair", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -3433,15 +3043,13 @@ def process_get_vm_ports(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException( - TApplicationException.INTERNAL_ERROR, "Internal error" - ) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_vm_ports", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -3458,15 +3066,13 @@ def process_get_Flavors(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException( - TApplicationException.INTERNAL_ERROR, "Internal error" - ) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_Flavors", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -3483,15 +3089,13 @@ def process_get_Images(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException( - TApplicationException.INTERNAL_ERROR, "Internal error" - ) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_Images", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -3508,15 +3112,13 @@ def process_get_Image_with_Tag(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException( - TApplicationException.INTERNAL_ERROR, "Internal error" - ) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_Image_with_Tag", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -3533,15 +3135,13 @@ def process_get_Images_by_filter(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException( - TApplicationException.INTERNAL_ERROR, "Internal error" - ) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_Images_by_filter", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -3558,15 +3158,13 @@ def process_get_volume(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException( - TApplicationException.INTERNAL_ERROR, "Internal error" - ) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_volume", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -3583,15 +3181,13 @@ def process_get_volumes_by_ids(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException( - TApplicationException.INTERNAL_ERROR, "Internal error" - ) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_volumes_by_ids", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -3608,15 +3204,13 @@ def process_resize_volume(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException( - TApplicationException.INTERNAL_ERROR, "Internal error" - ) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("resize_volume", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -3636,15 +3230,13 @@ def process_delete_server(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.e = e except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException( - TApplicationException.INTERNAL_ERROR, "Internal error" - ) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("delete_server", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -3656,9 +3248,7 @@ def process_add_metadata_to_server(self, seqid, iprot, oprot): iprot.readMessageEnd() result = add_metadata_to_server_result() try: - result.success = self._handler.add_metadata_to_server( - args.servername, args.metadata - ) + result.success = self._handler.add_metadata_to_server(args.servername, args.metadata) msg_type = TMessageType.REPLY except TTransport.TTransportException: raise @@ -3666,15 +3256,13 @@ def process_add_metadata_to_server(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.e = e except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException( - TApplicationException.INTERNAL_ERROR, "Internal error" - ) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("add_metadata_to_server", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -3686,9 +3274,7 @@ def process_delete_metadata_from_server(self, seqid, iprot, oprot): iprot.readMessageEnd() result = delete_metadata_from_server_result() try: - result.success = self._handler.delete_metadata_from_server( - args.servername, args.keys - ) + result.success = self._handler.delete_metadata_from_server(args.servername, args.keys) msg_type = TMessageType.REPLY except TTransport.TTransportException: raise @@ -3696,15 +3282,13 @@ def process_delete_metadata_from_server(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.e = e except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException( - TApplicationException.INTERNAL_ERROR, "Internal error" - ) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("delete_metadata_from_server", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -3716,9 +3300,7 @@ def process_add_floating_ip_to_server(self, seqid, iprot, oprot): iprot.readMessageEnd() result = add_floating_ip_to_server_result() try: - result.success = self._handler.add_floating_ip_to_server( - args.openstack_id, args.network - ) + result.success = self._handler.add_floating_ip_to_server(args.openstack_id, args.network) msg_type = TMessageType.REPLY except TTransport.TTransportException: raise @@ -3729,15 +3311,13 @@ def process_add_floating_ip_to_server(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.f = f except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException( - TApplicationException.INTERNAL_ERROR, "Internal error" - ) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("add_floating_ip_to_server", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -3749,13 +3329,7 @@ def process_create_connection(self, seqid, iprot, oprot): iprot.readMessageEnd() result = create_connection_result() try: - result.success = self._handler.create_connection( - args.username, - args.password, - args.auth_url, - args.user_domain_name, - args.project_domain_name, - ) + result.success = self._handler.create_connection(args.username, args.password, args.auth_url, args.user_domain_name, args.project_domain_name) msg_type = TMessageType.REPLY except TTransport.TTransportException: raise @@ -3763,15 +3337,13 @@ def process_create_connection(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.e = e except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException( - TApplicationException.INTERNAL_ERROR, "Internal error" - ) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("create_connection", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -3783,18 +3355,7 @@ def process_start_server_without_playbook(self, seqid, iprot, oprot): iprot.readMessageEnd() result = start_server_without_playbook_result() try: - result.success = self._handler.start_server_without_playbook( - args.flavor, - args.image, - args.public_key, - args.servername, - args.metadata, - args.https, - args.http, - args.resenv, - args.volume_ids_path_new, - args.volume_ids_path_attach, - ) + result.success = self._handler.start_server_without_playbook(args.flavor, args.image, args.public_key, args.servername, args.metadata, args.https, args.http, args.resenv, args.volume_ids_path_new, args.volume_ids_path_attach) msg_type = TMessageType.REPLY except TTransport.TTransportException: raise @@ -3820,38 +3381,71 @@ def process_start_server_without_playbook(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o = o except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException( - TApplicationException.INTERNAL_ERROR, "Internal error" - ) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("start_server_without_playbook", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() + def process_bibigrid_available(self, seqid, iprot, oprot): + args = bibigrid_available_args() + args.read(iprot) + iprot.readMessageEnd() + result = bibigrid_available_result() + try: + result.success = self._handler.bibigrid_available() + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except TApplicationException as ex: + logging.exception('TApplication exception in handler') + msg_type = TMessageType.EXCEPTION + result = ex + except Exception: + logging.exception('Unexpected exception in handler') + msg_type = TMessageType.EXCEPTION + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + oprot.writeMessageBegin("bibigrid_available", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_detach_ip_from_server(self, seqid, iprot, oprot): + args = detach_ip_from_server_args() + args.read(iprot) + iprot.readMessageEnd() + result = detach_ip_from_server_result() + try: + result.success = self._handler.detach_ip_from_server(args.server_id, args.floating_ip) + msg_type = TMessageType.REPLY + except TTransport.TTransportException: + raise + except TApplicationException as ex: + logging.exception('TApplication exception in handler') + msg_type = TMessageType.EXCEPTION + result = ex + except Exception: + logging.exception('Unexpected exception in handler') + msg_type = TMessageType.EXCEPTION + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + oprot.writeMessageBegin("detach_ip_from_server", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + def process_start_server_with_mounted_volume(self, seqid, iprot, oprot): args = start_server_with_mounted_volume_args() args.read(iprot) iprot.readMessageEnd() result = start_server_with_mounted_volume_result() try: - result.success = self._handler.start_server_with_mounted_volume( - args.flavor, - args.image, - args.public_key, - args.servername, - args.metadata, - args.https, - args.http, - args.resenv, - args.volume_ids_path_new, - args.volume_ids_path_attach, - ) + result.success = self._handler.start_server_with_mounted_volume(args.flavor, args.image, args.public_key, args.servername, args.metadata, args.https, args.http, args.resenv, args.volume_ids_path_new, args.volume_ids_path_attach) msg_type = TMessageType.REPLY except TTransport.TTransportException: raise @@ -3877,15 +3471,13 @@ def process_start_server_with_mounted_volume(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o = o except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException( - TApplicationException.INTERNAL_ERROR, "Internal error" - ) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("start_server_with_mounted_volume", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -3897,18 +3489,7 @@ def process_start_server(self, seqid, iprot, oprot): iprot.readMessageEnd() result = start_server_result() try: - result.success = self._handler.start_server( - args.flavor, - args.image, - args.public_key, - args.servername, - args.metadata, - args.diskspace, - args.volumename, - args.https, - args.http, - args.resenv, - ) + result.success = self._handler.start_server(args.flavor, args.image, args.public_key, args.servername, args.metadata, args.diskspace, args.volumename, args.https, args.http, args.resenv) msg_type = TMessageType.REPLY except TTransport.TTransportException: raise @@ -3934,15 +3515,13 @@ def process_start_server(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o = o except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException( - TApplicationException.INTERNAL_ERROR, "Internal error" - ) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("start_server", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -3954,17 +3533,7 @@ def process_start_server_with_custom_key(self, seqid, iprot, oprot): iprot.readMessageEnd() result = start_server_with_custom_key_result() try: - result.success = self._handler.start_server_with_custom_key( - args.flavor, - args.image, - args.servername, - args.metadata, - args.http, - args.https, - args.resenv, - args.volume_ids_path_new, - args.volume_ids_path_attach, - ) + result.success = self._handler.start_server_with_custom_key(args.flavor, args.image, args.servername, args.metadata, args.http, args.https, args.resenv, args.volume_ids_path_new, args.volume_ids_path_attach) msg_type = TMessageType.REPLY except TTransport.TTransportException: raise @@ -3990,15 +3559,13 @@ def process_start_server_with_custom_key(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o = o except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException( - TApplicationException.INTERNAL_ERROR, "Internal error" - ) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("start_server_with_custom_key", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -4015,15 +3582,13 @@ def process_exist_server(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException( - TApplicationException.INTERNAL_ERROR, "Internal error" - ) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("exist_server", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -4035,22 +3600,18 @@ def process_create_and_deploy_playbook(self, seqid, iprot, oprot): iprot.readMessageEnd() result = create_and_deploy_playbook_result() try: - result.success = self._handler.create_and_deploy_playbook( - args.public_key, args.playbooks_information, args.openstack_id - ) + result.success = self._handler.create_and_deploy_playbook(args.public_key, args.playbooks_information, args.openstack_id) msg_type = TMessageType.REPLY except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException( - TApplicationException.INTERNAL_ERROR, "Internal error" - ) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("create_and_deploy_playbook", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -4067,15 +3628,13 @@ def process_get_playbook_logs(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException( - TApplicationException.INTERNAL_ERROR, "Internal error" - ) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_playbook_logs", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -4092,15 +3651,13 @@ def process_has_forc(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException( - TApplicationException.INTERNAL_ERROR, "Internal error" - ) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("has_forc", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -4117,15 +3674,13 @@ def process_get_forc_url(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException( - TApplicationException.INTERNAL_ERROR, "Internal error" - ) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_forc_url", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -4137,22 +3692,18 @@ def process_create_backend(self, seqid, iprot, oprot): iprot.readMessageEnd() result = create_backend_result() try: - result.success = self._handler.create_backend( - args.elixir_id, args.user_key_url, args.template, args.upstream_url - ) + result.success = self._handler.create_backend(args.elixir_id, args.user_key_url, args.template, args.upstream_url) msg_type = TMessageType.REPLY except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException( - TApplicationException.INTERNAL_ERROR, "Internal error" - ) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("create_backend", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -4169,15 +3720,13 @@ def process_get_backends(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException( - TApplicationException.INTERNAL_ERROR, "Internal error" - ) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_backends", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -4194,15 +3743,13 @@ def process_get_backends_by_owner(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException( - TApplicationException.INTERNAL_ERROR, "Internal error" - ) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_backends_by_owner", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -4219,15 +3766,13 @@ def process_get_backends_by_template(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException( - TApplicationException.INTERNAL_ERROR, "Internal error" - ) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_backends_by_template", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -4244,15 +3789,13 @@ def process_get_backend_by_id(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException( - TApplicationException.INTERNAL_ERROR, "Internal error" - ) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_backend_by_id", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -4269,15 +3812,13 @@ def process_delete_backend(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException( - TApplicationException.INTERNAL_ERROR, "Internal error" - ) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("delete_backend", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -4294,15 +3835,13 @@ def process_get_templates(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException( - TApplicationException.INTERNAL_ERROR, "Internal error" - ) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_templates", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -4319,15 +3858,13 @@ def process_get_allowed_templates(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException( - TApplicationException.INTERNAL_ERROR, "Internal error" - ) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_allowed_templates", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -4344,15 +3881,13 @@ def process_get_templates_by_template(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException( - TApplicationException.INTERNAL_ERROR, "Internal error" - ) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_templates_by_template", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -4364,22 +3899,18 @@ def process_check_template(self, seqid, iprot, oprot): iprot.readMessageEnd() result = check_template_result() try: - result.success = self._handler.check_template( - args.template_name, args.template_version - ) + result.success = self._handler.check_template(args.template_name, args.template_version) msg_type = TMessageType.REPLY except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException( - TApplicationException.INTERNAL_ERROR, "Internal error" - ) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("check_template", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -4402,15 +3933,13 @@ def process_add_udp_security_group(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.s = s except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException( - TApplicationException.INTERNAL_ERROR, "Internal error" - ) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("add_udp_security_group", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -4427,15 +3956,13 @@ def process_get_servers(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException( - TApplicationException.INTERNAL_ERROR, "Internal error" - ) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_servers", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -4452,15 +3979,13 @@ def process_get_servers_by_ids(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException( - TApplicationException.INTERNAL_ERROR, "Internal error" - ) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_servers_by_ids", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -4477,15 +4002,13 @@ def process_get_servers_by_bibigrid_id(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException( - TApplicationException.INTERNAL_ERROR, "Internal error" - ) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_servers_by_bibigrid_id", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -4502,15 +4025,13 @@ def process_get_cluster_info(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException( - TApplicationException.INTERNAL_ERROR, "Internal error" - ) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_cluster_info", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -4527,15 +4048,13 @@ def process_get_cluster_status(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException( - TApplicationException.INTERNAL_ERROR, "Internal error" - ) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_cluster_status", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -4555,15 +4074,13 @@ def process_get_server(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.e = e except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException( - TApplicationException.INTERNAL_ERROR, "Internal error" - ) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_server", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -4583,15 +4100,13 @@ def process_stop_server(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.e = e except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException( - TApplicationException.INTERNAL_ERROR, "Internal error" - ) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("stop_server", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -4603,13 +4118,7 @@ def process_create_snapshot(self, seqid, iprot, oprot): iprot.readMessageEnd() result = create_snapshot_result() try: - result.success = self._handler.create_snapshot( - args.openstack_id, - args.name, - args.elixir_id, - args.base_tags, - args.description, - ) + result.success = self._handler.create_snapshot(args.openstack_id, args.name, args.elixir_id, args.base_tags, args.description) msg_type = TMessageType.REPLY except TTransport.TTransportException: raise @@ -4617,15 +4126,13 @@ def process_create_snapshot(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.e = e except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException( - TApplicationException.INTERNAL_ERROR, "Internal error" - ) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("create_snapshot", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -4642,15 +4149,13 @@ def process_get_limits(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException( - TApplicationException.INTERNAL_ERROR, "Internal error" - ) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get_limits", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -4662,22 +4167,18 @@ def process_start_cluster(self, seqid, iprot, oprot): iprot.readMessageEnd() result = start_cluster_result() try: - result.success = self._handler.start_cluster( - args.public_key, args.master_instance, args.worker_instance, args.user - ) + result.success = self._handler.start_cluster(args.public_key, args.master_instance, args.worker_instance, args.user) msg_type = TMessageType.REPLY except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException( - TApplicationException.INTERNAL_ERROR, "Internal error" - ) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("start_cluster", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -4694,15 +4195,13 @@ def process_terminate_cluster(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException( - TApplicationException.INTERNAL_ERROR, "Internal error" - ) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("terminate_cluster", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -4722,15 +4221,13 @@ def process_delete_image(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.e = e except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException( - TApplicationException.INTERNAL_ERROR, "Internal error" - ) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("delete_image", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -4742,9 +4239,7 @@ def process_delete_volume_attachment(self, seqid, iprot, oprot): iprot.readMessageEnd() result = delete_volume_attachment_result() try: - result.success = self._handler.delete_volume_attachment( - args.volume_id, args.server_id - ) + result.success = self._handler.delete_volume_attachment(args.volume_id, args.server_id) msg_type = TMessageType.REPLY except TTransport.TTransportException: raise @@ -4752,15 +4247,13 @@ def process_delete_volume_attachment(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.e = e except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException( - TApplicationException.INTERNAL_ERROR, "Internal error" - ) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("delete_volume_attachment", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -4777,15 +4270,13 @@ def process_delete_volume(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException( - TApplicationException.INTERNAL_ERROR, "Internal error" - ) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("delete_volume", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -4797,9 +4288,7 @@ def process_attach_volume_to_server(self, seqid, iprot, oprot): iprot.readMessageEnd() result = attach_volume_to_server_result() try: - result.success = self._handler.attach_volume_to_server( - args.openstack_id, args.volume_id - ) + result.success = self._handler.attach_volume_to_server(args.openstack_id, args.volume_id) msg_type = TMessageType.REPLY except TTransport.TTransportException: raise @@ -4807,15 +4296,13 @@ def process_attach_volume_to_server(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.e = e except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException( - TApplicationException.INTERNAL_ERROR, "Internal error" - ) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("attach_volume_to_server", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -4838,15 +4325,13 @@ def process_check_server_status(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.r = r except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException( - TApplicationException.INTERNAL_ERROR, "Internal error" - ) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("check_server_status", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -4866,15 +4351,13 @@ def process_setUserPassword(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.e = e except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException( - TApplicationException.INTERNAL_ERROR, "Internal error" - ) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("setUserPassword", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -4894,15 +4377,13 @@ def process_resume_server(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.e = e except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException( - TApplicationException.INTERNAL_ERROR, "Internal error" - ) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("resume_server", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -4914,9 +4395,7 @@ def process_create_volume(self, seqid, iprot, oprot): iprot.readMessageEnd() result = create_volume_result() try: - result.success = self._handler.create_volume( - args.volume_name, args.volume_storage, args.metadata - ) + result.success = self._handler.create_volume(args.volume_name, args.volume_storage, args.metadata) msg_type = TMessageType.REPLY except TTransport.TTransportException: raise @@ -4924,15 +4403,13 @@ def process_create_volume(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.r = r except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException( - TApplicationException.INTERNAL_ERROR, "Internal error" - ) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("create_volume", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -4944,9 +4421,7 @@ def process_reboot_server(self, seqid, iprot, oprot): iprot.readMessageEnd() result = reboot_server_result() try: - result.success = self._handler.reboot_server( - args.server_id, args.reboot_type - ) + result.success = self._handler.reboot_server(args.server_id, args.reboot_type) msg_type = TMessageType.REPLY except TTransport.TTransportException: raise @@ -4954,21 +4429,18 @@ def process_reboot_server(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.e = e except TApplicationException as ex: - logging.exception("TApplication exception in handler") + logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception("Unexpected exception in handler") + logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION - result = TApplicationException( - TApplicationException.INTERNAL_ERROR, "Internal error" - ) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("reboot_server", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() - # HELPER FUNCTIONS AND STRUCTURES @@ -4979,17 +4451,12 @@ class check_Version_args(object): """ - def __init__( - self, version=None, - ): + + def __init__(self, version=None,): self.version = version def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -5009,13 +4476,11 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("check_Version_args") + oprot.writeStructBegin('check_Version_args') if self.version is not None: - oprot.writeFieldBegin("version", TType.DOUBLE, 1) + oprot.writeFieldBegin('version', TType.DOUBLE, 1) oprot.writeDouble(self.version) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -5025,20 +4490,19 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(check_Version_args) check_Version_args.thrift_spec = ( None, # 0 - (1, TType.DOUBLE, "version", None, None,), # 1 + (1, TType.DOUBLE, 'version', None, None, ), # 1 ) @@ -5049,17 +4513,12 @@ class check_Version_result(object): """ - def __init__( - self, success=None, - ): + + def __init__(self, success=None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -5079,13 +4538,11 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("check_Version_result") + oprot.writeStructBegin('check_Version_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.BOOL, 0) + oprot.writeFieldBegin('success', TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -5095,27 +4552,26 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(check_Version_result) -check_Version_result.thrift_spec = ((0, TType.BOOL, "success", None, None,),) # 0 +check_Version_result.thrift_spec = ( + (0, TType.BOOL, 'success', None, None, ), # 0 +) class get_client_version_args(object): + + def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -5130,11 +4586,9 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_client_version_args") + oprot.writeStructBegin('get_client_version_args') oprot.writeFieldStop() oprot.writeStructEnd() @@ -5142,18 +4596,18 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(get_client_version_args) -get_client_version_args.thrift_spec = () +get_client_version_args.thrift_spec = ( +) class get_client_version_result(object): @@ -5163,17 +4617,12 @@ class get_client_version_result(object): """ - def __init__( - self, success=None, - ): + + def __init__(self, success=None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -5183,11 +4632,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRING: - self.success = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.success = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -5197,18 +4642,12 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_client_version_result") + oprot.writeStructBegin('get_client_version_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRING, 0) - oprot.writeString( - self.success.encode("utf-8") - if sys.version_info[0] == 2 - else self.success - ) + oprot.writeFieldBegin('success', TType.STRING, 0) + oprot.writeString(self.success.encode('utf-8') if sys.version_info[0] == 2 else self.success) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -5217,29 +4656,26 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(get_client_version_result) get_client_version_result.thrift_spec = ( - (0, TType.STRING, "success", "UTF8", None,), # 0 + (0, TType.STRING, 'success', 'UTF8', None, ), # 0 ) class get_gateway_ip_args(object): + + def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -5254,11 +4690,9 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_gateway_ip_args") + oprot.writeStructBegin('get_gateway_ip_args') oprot.writeFieldStop() oprot.writeStructEnd() @@ -5266,18 +4700,18 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(get_gateway_ip_args) -get_gateway_ip_args.thrift_spec = () +get_gateway_ip_args.thrift_spec = ( +) class get_gateway_ip_result(object): @@ -5287,17 +4721,12 @@ class get_gateway_ip_result(object): """ - def __init__( - self, success=None, - ): + + def __init__(self, success=None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -5310,16 +4739,8 @@ def read(self, iprot): self.success = {} (_ktype24, _vtype25, _size23) = iprot.readMapBegin() for _i27 in range(_size23): - _key28 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) - _val29 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + _key28 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val29 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() self.success[_key28] = _val29 iprot.readMapEnd() else: @@ -5331,21 +4752,15 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_gateway_ip_result") + oprot.writeStructBegin('get_gateway_ip_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.MAP, 0) + oprot.writeFieldBegin('success', TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success)) for kiter30, viter31 in self.success.items(): - oprot.writeString( - kiter30.encode("utf-8") if sys.version_info[0] == 2 else kiter30 - ) - oprot.writeString( - viter31.encode("utf-8") if sys.version_info[0] == 2 else viter31 - ) + oprot.writeString(kiter30.encode('utf-8') if sys.version_info[0] == 2 else kiter30) + oprot.writeString(viter31.encode('utf-8') if sys.version_info[0] == 2 else viter31) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -5355,35 +4770,26 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(get_gateway_ip_result) get_gateway_ip_result.thrift_spec = ( - ( - 0, - TType.MAP, - "success", - (TType.STRING, "UTF8", TType.STRING, "UTF8", False), - None, - ), # 0 + (0, TType.MAP, 'success', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 0 ) class get_calculation_formulars_args(object): + + def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -5398,11 +4804,9 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_calculation_formulars_args") + oprot.writeStructBegin('get_calculation_formulars_args') oprot.writeFieldStop() oprot.writeStructEnd() @@ -5410,18 +4814,18 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(get_calculation_formulars_args) -get_calculation_formulars_args.thrift_spec = () +get_calculation_formulars_args.thrift_spec = ( +) class get_calculation_formulars_result(object): @@ -5431,17 +4835,12 @@ class get_calculation_formulars_result(object): """ - def __init__( - self, success=None, - ): + + def __init__(self, success=None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -5454,16 +4853,8 @@ def read(self, iprot): self.success = {} (_ktype33, _vtype34, _size32) = iprot.readMapBegin() for _i36 in range(_size32): - _key37 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) - _val38 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + _key37 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val38 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() self.success[_key37] = _val38 iprot.readMapEnd() else: @@ -5475,21 +4866,15 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_calculation_formulars_result") + oprot.writeStructBegin('get_calculation_formulars_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.MAP, 0) + oprot.writeFieldBegin('success', TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success)) for kiter39, viter40 in self.success.items(): - oprot.writeString( - kiter39.encode("utf-8") if sys.version_info[0] == 2 else kiter39 - ) - oprot.writeString( - viter40.encode("utf-8") if sys.version_info[0] == 2 else viter40 - ) + oprot.writeString(kiter39.encode('utf-8') if sys.version_info[0] == 2 else kiter39) + oprot.writeString(viter40.encode('utf-8') if sys.version_info[0] == 2 else viter40) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -5499,25 +4884,18 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(get_calculation_formulars_result) get_calculation_formulars_result.thrift_spec = ( - ( - 0, - TType.MAP, - "success", - (TType.STRING, "UTF8", TType.STRING, "UTF8", False), - None, - ), # 0 + (0, TType.MAP, 'success', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 0 ) @@ -5529,18 +4907,13 @@ class import_keypair_args(object): """ - def __init__( - self, keyname=None, public_key=None, - ): + + def __init__(self, keyname=None, public_key=None,): self.keyname = keyname self.public_key = public_key def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -5550,20 +4923,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.keyname = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.keyname = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.public_key = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.public_key = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -5573,26 +4938,16 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("import_keypair_args") + oprot.writeStructBegin('import_keypair_args') if self.keyname is not None: - oprot.writeFieldBegin("keyname", TType.STRING, 1) - oprot.writeString( - self.keyname.encode("utf-8") - if sys.version_info[0] == 2 - else self.keyname - ) + oprot.writeFieldBegin('keyname', TType.STRING, 1) + oprot.writeString(self.keyname.encode('utf-8') if sys.version_info[0] == 2 else self.keyname) oprot.writeFieldEnd() if self.public_key is not None: - oprot.writeFieldBegin("public_key", TType.STRING, 2) - oprot.writeString( - self.public_key.encode("utf-8") - if sys.version_info[0] == 2 - else self.public_key - ) + oprot.writeFieldBegin('public_key', TType.STRING, 2) + oprot.writeString(self.public_key.encode('utf-8') if sys.version_info[0] == 2 else self.public_key) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -5601,21 +4956,20 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(import_keypair_args) import_keypair_args.thrift_spec = ( None, # 0 - (1, TType.STRING, "keyname", "UTF8", None,), # 1 - (2, TType.STRING, "public_key", "UTF8", None,), # 2 + (1, TType.STRING, 'keyname', 'UTF8', None, ), # 1 + (2, TType.STRING, 'public_key', 'UTF8', None, ), # 2 ) @@ -5626,17 +4980,12 @@ class import_keypair_result(object): """ - def __init__( - self, success=None, - ): + + def __init__(self, success=None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -5646,11 +4995,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRING: - self.success = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.success = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -5660,18 +5005,12 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("import_keypair_result") + oprot.writeStructBegin('import_keypair_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRING, 0) - oprot.writeString( - self.success.encode("utf-8") - if sys.version_info[0] == 2 - else self.success - ) + oprot.writeFieldBegin('success', TType.STRING, 0) + oprot.writeString(self.success.encode('utf-8') if sys.version_info[0] == 2 else self.success) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -5680,18 +5019,19 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(import_keypair_result) -import_keypair_result.thrift_spec = ((0, TType.STRING, "success", "UTF8", None,),) # 0 +import_keypair_result.thrift_spec = ( + (0, TType.STRING, 'success', 'UTF8', None, ), # 0 +) class get_vm_ports_args(object): @@ -5701,17 +5041,12 @@ class get_vm_ports_args(object): """ - def __init__( - self, openstack_id=None, - ): + + def __init__(self, openstack_id=None,): self.openstack_id = openstack_id def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -5721,11 +5056,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.openstack_id = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.openstack_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -5735,18 +5066,12 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_vm_ports_args") + oprot.writeStructBegin('get_vm_ports_args') if self.openstack_id is not None: - oprot.writeFieldBegin("openstack_id", TType.STRING, 1) - oprot.writeString( - self.openstack_id.encode("utf-8") - if sys.version_info[0] == 2 - else self.openstack_id - ) + oprot.writeFieldBegin('openstack_id', TType.STRING, 1) + oprot.writeString(self.openstack_id.encode('utf-8') if sys.version_info[0] == 2 else self.openstack_id) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -5755,20 +5080,19 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(get_vm_ports_args) get_vm_ports_args.thrift_spec = ( None, # 0 - (1, TType.STRING, "openstack_id", "UTF8", None,), # 1 + (1, TType.STRING, 'openstack_id', 'UTF8', None, ), # 1 ) @@ -5779,17 +5103,12 @@ class get_vm_ports_result(object): """ - def __init__( - self, success=None, - ): + + def __init__(self, success=None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -5802,16 +5121,8 @@ def read(self, iprot): self.success = {} (_ktype42, _vtype43, _size41) = iprot.readMapBegin() for _i45 in range(_size41): - _key46 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) - _val47 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + _key46 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val47 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() self.success[_key46] = _val47 iprot.readMapEnd() else: @@ -5823,21 +5134,15 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_vm_ports_result") + oprot.writeStructBegin('get_vm_ports_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.MAP, 0) + oprot.writeFieldBegin('success', TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success)) for kiter48, viter49 in self.success.items(): - oprot.writeString( - kiter48.encode("utf-8") if sys.version_info[0] == 2 else kiter48 - ) - oprot.writeString( - viter49.encode("utf-8") if sys.version_info[0] == 2 else viter49 - ) + oprot.writeString(kiter48.encode('utf-8') if sys.version_info[0] == 2 else kiter48) + oprot.writeString(viter49.encode('utf-8') if sys.version_info[0] == 2 else viter49) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -5847,35 +5152,26 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(get_vm_ports_result) get_vm_ports_result.thrift_spec = ( - ( - 0, - TType.MAP, - "success", - (TType.STRING, "UTF8", TType.STRING, "UTF8", False), - None, - ), # 0 + (0, TType.MAP, 'success', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 0 ) class get_Flavors_args(object): + + def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -5890,11 +5186,9 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_Flavors_args") + oprot.writeStructBegin('get_Flavors_args') oprot.writeFieldStop() oprot.writeStructEnd() @@ -5902,18 +5196,18 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(get_Flavors_args) -get_Flavors_args.thrift_spec = () +get_Flavors_args.thrift_spec = ( +) class get_Flavors_result(object): @@ -5923,17 +5217,12 @@ class get_Flavors_result(object): """ - def __init__( - self, success=None, - ): + + def __init__(self, success=None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -5959,13 +5248,11 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_Flavors_result") + oprot.writeStructBegin('get_Flavors_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.LIST, 0) + oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) for iter56 in self.success: iter56.write(oprot) @@ -5978,29 +5265,26 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(get_Flavors_result) get_Flavors_result.thrift_spec = ( - (0, TType.LIST, "success", (TType.STRUCT, [Flavor, None], False), None,), # 0 + (0, TType.LIST, 'success', (TType.STRUCT, [Flavor, None], False), None, ), # 0 ) class get_Images_args(object): + + def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -6015,11 +5299,9 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_Images_args") + oprot.writeStructBegin('get_Images_args') oprot.writeFieldStop() oprot.writeStructEnd() @@ -6027,18 +5309,18 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(get_Images_args) -get_Images_args.thrift_spec = () +get_Images_args.thrift_spec = ( +) class get_Images_result(object): @@ -6048,17 +5330,12 @@ class get_Images_result(object): """ - def __init__( - self, success=None, - ): + + def __init__(self, success=None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -6084,13 +5361,11 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_Images_result") + oprot.writeStructBegin('get_Images_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.LIST, 0) + oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) for iter63 in self.success: iter63.write(oprot) @@ -6103,19 +5378,18 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(get_Images_result) get_Images_result.thrift_spec = ( - (0, TType.LIST, "success", (TType.STRUCT, [Image, None], False), None,), # 0 + (0, TType.LIST, 'success', (TType.STRUCT, [Image, None], False), None, ), # 0 ) @@ -6126,17 +5400,12 @@ class get_Image_with_Tag_args(object): """ - def __init__( - self, openstack_id=None, - ): + + def __init__(self, openstack_id=None,): self.openstack_id = openstack_id def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -6146,11 +5415,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.openstack_id = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.openstack_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -6160,18 +5425,12 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_Image_with_Tag_args") + oprot.writeStructBegin('get_Image_with_Tag_args') if self.openstack_id is not None: - oprot.writeFieldBegin("openstack_id", TType.STRING, 1) - oprot.writeString( - self.openstack_id.encode("utf-8") - if sys.version_info[0] == 2 - else self.openstack_id - ) + oprot.writeFieldBegin('openstack_id', TType.STRING, 1) + oprot.writeString(self.openstack_id.encode('utf-8') if sys.version_info[0] == 2 else self.openstack_id) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -6180,20 +5439,19 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(get_Image_with_Tag_args) get_Image_with_Tag_args.thrift_spec = ( None, # 0 - (1, TType.STRING, "openstack_id", "UTF8", None,), # 1 + (1, TType.STRING, 'openstack_id', 'UTF8', None, ), # 1 ) @@ -6204,17 +5462,12 @@ class get_Image_with_Tag_result(object): """ - def __init__( - self, success=None, - ): + + def __init__(self, success=None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -6235,13 +5488,11 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_Image_with_Tag_result") + oprot.writeStructBegin('get_Image_with_Tag_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -6251,19 +5502,18 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(get_Image_with_Tag_result) get_Image_with_Tag_result.thrift_spec = ( - (0, TType.STRUCT, "success", [Image, None], None,), # 0 + (0, TType.STRUCT, 'success', [Image, None], None, ), # 0 ) @@ -6274,17 +5524,12 @@ class get_Images_by_filter_args(object): """ - def __init__( - self, filter_json=None, - ): + + def __init__(self, filter_json=None,): self.filter_json = filter_json def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -6297,16 +5542,8 @@ def read(self, iprot): self.filter_json = {} (_ktype65, _vtype66, _size64) = iprot.readMapBegin() for _i68 in range(_size64): - _key69 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) - _val70 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + _key69 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val70 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() self.filter_json[_key69] = _val70 iprot.readMapEnd() else: @@ -6318,21 +5555,15 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_Images_by_filter_args") + oprot.writeStructBegin('get_Images_by_filter_args') if self.filter_json is not None: - oprot.writeFieldBegin("filter_json", TType.MAP, 1) + oprot.writeFieldBegin('filter_json', TType.MAP, 1) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.filter_json)) for kiter71, viter72 in self.filter_json.items(): - oprot.writeString( - kiter71.encode("utf-8") if sys.version_info[0] == 2 else kiter71 - ) - oprot.writeString( - viter72.encode("utf-8") if sys.version_info[0] == 2 else viter72 - ) + oprot.writeString(kiter71.encode('utf-8') if sys.version_info[0] == 2 else kiter71) + oprot.writeString(viter72.encode('utf-8') if sys.version_info[0] == 2 else viter72) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -6342,26 +5573,19 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(get_Images_by_filter_args) get_Images_by_filter_args.thrift_spec = ( None, # 0 - ( - 1, - TType.MAP, - "filter_json", - (TType.STRING, "UTF8", TType.STRING, "UTF8", False), - None, - ), # 1 + (1, TType.MAP, 'filter_json', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 1 ) @@ -6372,17 +5596,12 @@ class get_Images_by_filter_result(object): """ - def __init__( - self, success=None, - ): + + def __init__(self, success=None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -6408,13 +5627,11 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_Images_by_filter_result") + oprot.writeStructBegin('get_Images_by_filter_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.LIST, 0) + oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) for iter79 in self.success: iter79.write(oprot) @@ -6427,19 +5644,18 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(get_Images_by_filter_result) get_Images_by_filter_result.thrift_spec = ( - (0, TType.LIST, "success", (TType.STRUCT, [Image, None], False), None,), # 0 + (0, TType.LIST, 'success', (TType.STRUCT, [Image, None], False), None, ), # 0 ) @@ -6450,17 +5666,12 @@ class get_volume_args(object): """ - def __init__( - self, volume_id=None, - ): + + def __init__(self, volume_id=None,): self.volume_id = volume_id def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -6470,11 +5681,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.volume_id = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.volume_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -6484,18 +5691,12 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_volume_args") + oprot.writeStructBegin('get_volume_args') if self.volume_id is not None: - oprot.writeFieldBegin("volume_id", TType.STRING, 1) - oprot.writeString( - self.volume_id.encode("utf-8") - if sys.version_info[0] == 2 - else self.volume_id - ) + oprot.writeFieldBegin('volume_id', TType.STRING, 1) + oprot.writeString(self.volume_id.encode('utf-8') if sys.version_info[0] == 2 else self.volume_id) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -6504,20 +5705,19 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(get_volume_args) get_volume_args.thrift_spec = ( None, # 0 - (1, TType.STRING, "volume_id", "UTF8", None,), # 1 + (1, TType.STRING, 'volume_id', 'UTF8', None, ), # 1 ) @@ -6528,17 +5728,12 @@ class get_volume_result(object): """ - def __init__( - self, success=None, - ): + + def __init__(self, success=None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -6559,13 +5754,11 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_volume_result") + oprot.writeStructBegin('get_volume_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -6575,19 +5768,18 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(get_volume_result) get_volume_result.thrift_spec = ( - (0, TType.STRUCT, "success", [Volume, None], None,), # 0 + (0, TType.STRUCT, 'success', [Volume, None], None, ), # 0 ) @@ -6598,17 +5790,12 @@ class get_volumes_by_ids_args(object): """ - def __init__( - self, volume_ids=None, - ): + + def __init__(self, volume_ids=None,): self.volume_ids = volume_ids def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -6621,11 +5808,7 @@ def read(self, iprot): self.volume_ids = [] (_etype83, _size80) = iprot.readListBegin() for _i84 in range(_size80): - _elem85 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + _elem85 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() self.volume_ids.append(_elem85) iprot.readListEnd() else: @@ -6637,18 +5820,14 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_volumes_by_ids_args") + oprot.writeStructBegin('get_volumes_by_ids_args') if self.volume_ids is not None: - oprot.writeFieldBegin("volume_ids", TType.LIST, 1) + oprot.writeFieldBegin('volume_ids', TType.LIST, 1) oprot.writeListBegin(TType.STRING, len(self.volume_ids)) for iter86 in self.volume_ids: - oprot.writeString( - iter86.encode("utf-8") if sys.version_info[0] == 2 else iter86 - ) + oprot.writeString(iter86.encode('utf-8') if sys.version_info[0] == 2 else iter86) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -6658,20 +5837,19 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(get_volumes_by_ids_args) get_volumes_by_ids_args.thrift_spec = ( None, # 0 - (1, TType.LIST, "volume_ids", (TType.STRING, "UTF8", False), None,), # 1 + (1, TType.LIST, 'volume_ids', (TType.STRING, 'UTF8', False), None, ), # 1 ) @@ -6682,17 +5860,12 @@ class get_volumes_by_ids_result(object): """ - def __init__( - self, success=None, - ): + + def __init__(self, success=None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -6718,13 +5891,11 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_volumes_by_ids_result") + oprot.writeStructBegin('get_volumes_by_ids_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.LIST, 0) + oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) for iter93 in self.success: iter93.write(oprot) @@ -6737,19 +5908,18 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(get_volumes_by_ids_result) get_volumes_by_ids_result.thrift_spec = ( - (0, TType.LIST, "success", (TType.STRUCT, [Volume, None], False), None,), # 0 + (0, TType.LIST, 'success', (TType.STRUCT, [Volume, None], False), None, ), # 0 ) @@ -6761,18 +5931,13 @@ class resize_volume_args(object): """ - def __init__( - self, volume_id=None, size=None, - ): + + def __init__(self, volume_id=None, size=None,): self.volume_id = volume_id self.size = size def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -6782,11 +5947,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.volume_id = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.volume_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: @@ -6801,21 +5962,15 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("resize_volume_args") + oprot.writeStructBegin('resize_volume_args') if self.volume_id is not None: - oprot.writeFieldBegin("volume_id", TType.STRING, 1) - oprot.writeString( - self.volume_id.encode("utf-8") - if sys.version_info[0] == 2 - else self.volume_id - ) + oprot.writeFieldBegin('volume_id', TType.STRING, 1) + oprot.writeString(self.volume_id.encode('utf-8') if sys.version_info[0] == 2 else self.volume_id) oprot.writeFieldEnd() if self.size is not None: - oprot.writeFieldBegin("size", TType.I32, 2) + oprot.writeFieldBegin('size', TType.I32, 2) oprot.writeI32(self.size) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -6825,21 +5980,20 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(resize_volume_args) resize_volume_args.thrift_spec = ( None, # 0 - (1, TType.STRING, "volume_id", "UTF8", None,), # 1 - (2, TType.I32, "size", None, None,), # 2 + (1, TType.STRING, 'volume_id', 'UTF8', None, ), # 1 + (2, TType.I32, 'size', None, None, ), # 2 ) @@ -6850,17 +6004,12 @@ class resize_volume_result(object): """ - def __init__( - self, success=None, - ): + + def __init__(self, success=None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -6880,13 +6029,11 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("resize_volume_result") + oprot.writeStructBegin('resize_volume_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.I32, 0) + oprot.writeFieldBegin('success', TType.I32, 0) oprot.writeI32(self.success) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -6896,18 +6043,19 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(resize_volume_result) -resize_volume_result.thrift_spec = ((0, TType.I32, "success", None, None,),) # 0 +resize_volume_result.thrift_spec = ( + (0, TType.I32, 'success', None, None, ), # 0 +) class delete_server_args(object): @@ -6917,17 +6065,12 @@ class delete_server_args(object): """ - def __init__( - self, openstack_id=None, - ): + + def __init__(self, openstack_id=None,): self.openstack_id = openstack_id def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -6937,11 +6080,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.openstack_id = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.openstack_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -6951,18 +6090,12 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("delete_server_args") + oprot.writeStructBegin('delete_server_args') if self.openstack_id is not None: - oprot.writeFieldBegin("openstack_id", TType.STRING, 1) - oprot.writeString( - self.openstack_id.encode("utf-8") - if sys.version_info[0] == 2 - else self.openstack_id - ) + oprot.writeFieldBegin('openstack_id', TType.STRING, 1) + oprot.writeString(self.openstack_id.encode('utf-8') if sys.version_info[0] == 2 else self.openstack_id) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -6971,20 +6104,19 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(delete_server_args) delete_server_args.thrift_spec = ( None, # 0 - (1, TType.STRING, "openstack_id", "UTF8", None,), # 1 + (1, TType.STRING, 'openstack_id', 'UTF8', None, ), # 1 ) @@ -6996,18 +6128,13 @@ class delete_server_result(object): """ - def __init__( - self, success=None, e=None, - ): + + def __init__(self, success=None, e=None,): self.success = success self.e = e def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -7033,17 +6160,15 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("delete_server_result") + oprot.writeStructBegin('delete_server_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.BOOL, 0) + oprot.writeFieldBegin('success', TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() if self.e is not None: - oprot.writeFieldBegin("e", TType.STRUCT, 1) + oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -7053,20 +6178,19 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(delete_server_result) delete_server_result.thrift_spec = ( - (0, TType.BOOL, "success", None, None,), # 0 - (1, TType.STRUCT, "e", [serverNotFoundException, None], None,), # 1 + (0, TType.BOOL, 'success', None, None, ), # 0 + (1, TType.STRUCT, 'e', [serverNotFoundException, None], None, ), # 1 ) @@ -7078,18 +6202,13 @@ class add_metadata_to_server_args(object): """ - def __init__( - self, servername=None, metadata=None, - ): + + def __init__(self, servername=None, metadata=None,): self.servername = servername self.metadata = metadata def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -7099,11 +6218,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.servername = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.servername = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: @@ -7111,16 +6226,8 @@ def read(self, iprot): self.metadata = {} (_ktype95, _vtype96, _size94) = iprot.readMapBegin() for _i98 in range(_size94): - _key99 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) - _val100 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + _key99 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val100 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() self.metadata[_key99] = _val100 iprot.readMapEnd() else: @@ -7132,29 +6239,19 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("add_metadata_to_server_args") + oprot.writeStructBegin('add_metadata_to_server_args') if self.servername is not None: - oprot.writeFieldBegin("servername", TType.STRING, 1) - oprot.writeString( - self.servername.encode("utf-8") - if sys.version_info[0] == 2 - else self.servername - ) + oprot.writeFieldBegin('servername', TType.STRING, 1) + oprot.writeString(self.servername.encode('utf-8') if sys.version_info[0] == 2 else self.servername) oprot.writeFieldEnd() if self.metadata is not None: - oprot.writeFieldBegin("metadata", TType.MAP, 2) + oprot.writeFieldBegin('metadata', TType.MAP, 2) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.metadata)) for kiter101, viter102 in self.metadata.items(): - oprot.writeString( - kiter101.encode("utf-8") if sys.version_info[0] == 2 else kiter101 - ) - oprot.writeString( - viter102.encode("utf-8") if sys.version_info[0] == 2 else viter102 - ) + oprot.writeString(kiter101.encode('utf-8') if sys.version_info[0] == 2 else kiter101) + oprot.writeString(viter102.encode('utf-8') if sys.version_info[0] == 2 else viter102) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -7164,27 +6261,20 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(add_metadata_to_server_args) add_metadata_to_server_args.thrift_spec = ( None, # 0 - (1, TType.STRING, "servername", "UTF8", None,), # 1 - ( - 2, - TType.MAP, - "metadata", - (TType.STRING, "UTF8", TType.STRING, "UTF8", False), - None, - ), # 2 + (1, TType.STRING, 'servername', 'UTF8', None, ), # 1 + (2, TType.MAP, 'metadata', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 2 ) @@ -7196,18 +6286,13 @@ class add_metadata_to_server_result(object): """ - def __init__( - self, success=None, e=None, - ): + + def __init__(self, success=None, e=None,): self.success = success self.e = e def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -7220,16 +6305,8 @@ def read(self, iprot): self.success = {} (_ktype104, _vtype105, _size103) = iprot.readMapBegin() for _i107 in range(_size103): - _key108 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) - _val109 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + _key108 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val109 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() self.success[_key108] = _val109 iprot.readMapEnd() else: @@ -7247,25 +6324,19 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("add_metadata_to_server_result") + oprot.writeStructBegin('add_metadata_to_server_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.MAP, 0) + oprot.writeFieldBegin('success', TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success)) for kiter110, viter111 in self.success.items(): - oprot.writeString( - kiter110.encode("utf-8") if sys.version_info[0] == 2 else kiter110 - ) - oprot.writeString( - viter111.encode("utf-8") if sys.version_info[0] == 2 else viter111 - ) + oprot.writeString(kiter110.encode('utf-8') if sys.version_info[0] == 2 else kiter110) + oprot.writeString(viter111.encode('utf-8') if sys.version_info[0] == 2 else viter111) oprot.writeMapEnd() oprot.writeFieldEnd() if self.e is not None: - oprot.writeFieldBegin("e", TType.STRUCT, 1) + oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -7275,26 +6346,19 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(add_metadata_to_server_result) add_metadata_to_server_result.thrift_spec = ( - ( - 0, - TType.MAP, - "success", - (TType.STRING, "UTF8", TType.STRING, "UTF8", False), - None, - ), # 0 - (1, TType.STRUCT, "e", [serverNotFoundException, None], None,), # 1 + (0, TType.MAP, 'success', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 0 + (1, TType.STRUCT, 'e', [serverNotFoundException, None], None, ), # 1 ) @@ -7306,18 +6370,13 @@ class delete_metadata_from_server_args(object): """ - def __init__( - self, servername=None, keys=None, - ): + + def __init__(self, servername=None, keys=None,): self.servername = servername self.keys = keys def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -7327,11 +6386,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.servername = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.servername = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: @@ -7339,11 +6394,7 @@ def read(self, iprot): self.keys = set() (_etype115, _size112) = iprot.readSetBegin() for _i116 in range(_size112): - _elem117 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + _elem117 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() self.keys.add(_elem117) iprot.readSetEnd() else: @@ -7355,26 +6406,18 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("delete_metadata_from_server_args") + oprot.writeStructBegin('delete_metadata_from_server_args') if self.servername is not None: - oprot.writeFieldBegin("servername", TType.STRING, 1) - oprot.writeString( - self.servername.encode("utf-8") - if sys.version_info[0] == 2 - else self.servername - ) + oprot.writeFieldBegin('servername', TType.STRING, 1) + oprot.writeString(self.servername.encode('utf-8') if sys.version_info[0] == 2 else self.servername) oprot.writeFieldEnd() if self.keys is not None: - oprot.writeFieldBegin("keys", TType.SET, 2) + oprot.writeFieldBegin('keys', TType.SET, 2) oprot.writeSetBegin(TType.STRING, len(self.keys)) for iter118 in self.keys: - oprot.writeString( - iter118.encode("utf-8") if sys.version_info[0] == 2 else iter118 - ) + oprot.writeString(iter118.encode('utf-8') if sys.version_info[0] == 2 else iter118) oprot.writeSetEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -7384,21 +6427,20 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(delete_metadata_from_server_args) delete_metadata_from_server_args.thrift_spec = ( None, # 0 - (1, TType.STRING, "servername", "UTF8", None,), # 1 - (2, TType.SET, "keys", (TType.STRING, "UTF8", False), None,), # 2 + (1, TType.STRING, 'servername', 'UTF8', None, ), # 1 + (2, TType.SET, 'keys', (TType.STRING, 'UTF8', False), None, ), # 2 ) @@ -7410,18 +6452,13 @@ class delete_metadata_from_server_result(object): """ - def __init__( - self, success=None, e=None, - ): + + def __init__(self, success=None, e=None,): self.success = success self.e = e def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -7434,11 +6471,7 @@ def read(self, iprot): self.success = set() (_etype122, _size119) = iprot.readSetBegin() for _i123 in range(_size119): - _elem124 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + _elem124 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() self.success.add(_elem124) iprot.readSetEnd() else: @@ -7456,22 +6489,18 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("delete_metadata_from_server_result") + oprot.writeStructBegin('delete_metadata_from_server_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.SET, 0) + oprot.writeFieldBegin('success', TType.SET, 0) oprot.writeSetBegin(TType.STRING, len(self.success)) for iter125 in self.success: - oprot.writeString( - iter125.encode("utf-8") if sys.version_info[0] == 2 else iter125 - ) + oprot.writeString(iter125.encode('utf-8') if sys.version_info[0] == 2 else iter125) oprot.writeSetEnd() oprot.writeFieldEnd() if self.e is not None: - oprot.writeFieldBegin("e", TType.STRUCT, 1) + oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -7481,20 +6510,19 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(delete_metadata_from_server_result) delete_metadata_from_server_result.thrift_spec = ( - (0, TType.SET, "success", (TType.STRING, "UTF8", False), None,), # 0 - (1, TType.STRUCT, "e", [serverNotFoundException, None], None,), # 1 + (0, TType.SET, 'success', (TType.STRING, 'UTF8', False), None, ), # 0 + (1, TType.STRUCT, 'e', [serverNotFoundException, None], None, ), # 1 ) @@ -7506,18 +6534,13 @@ class add_floating_ip_to_server_args(object): """ - def __init__( - self, openstack_id=None, network=None, - ): + + def __init__(self, openstack_id=None, network=None,): self.openstack_id = openstack_id self.network = network def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -7527,20 +6550,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.openstack_id = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.openstack_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.network = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.network = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -7550,26 +6565,16 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("add_floating_ip_to_server_args") + oprot.writeStructBegin('add_floating_ip_to_server_args') if self.openstack_id is not None: - oprot.writeFieldBegin("openstack_id", TType.STRING, 1) - oprot.writeString( - self.openstack_id.encode("utf-8") - if sys.version_info[0] == 2 - else self.openstack_id - ) + oprot.writeFieldBegin('openstack_id', TType.STRING, 1) + oprot.writeString(self.openstack_id.encode('utf-8') if sys.version_info[0] == 2 else self.openstack_id) oprot.writeFieldEnd() if self.network is not None: - oprot.writeFieldBegin("network", TType.STRING, 2) - oprot.writeString( - self.network.encode("utf-8") - if sys.version_info[0] == 2 - else self.network - ) + oprot.writeFieldBegin('network', TType.STRING, 2) + oprot.writeString(self.network.encode('utf-8') if sys.version_info[0] == 2 else self.network) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -7578,21 +6583,20 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(add_floating_ip_to_server_args) add_floating_ip_to_server_args.thrift_spec = ( None, # 0 - (1, TType.STRING, "openstack_id", "UTF8", None,), # 1 - (2, TType.STRING, "network", "UTF8", None,), # 2 + (1, TType.STRING, 'openstack_id', 'UTF8', None, ), # 1 + (2, TType.STRING, 'network', 'UTF8', None, ), # 2 ) @@ -7605,19 +6609,14 @@ class add_floating_ip_to_server_result(object): """ - def __init__( - self, success=None, e=None, f=None, - ): + + def __init__(self, success=None, e=None, f=None,): self.success = success self.e = e self.f = f def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -7627,11 +6626,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRING: - self.success = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.success = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 1: @@ -7653,25 +6648,19 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("add_floating_ip_to_server_result") + oprot.writeStructBegin('add_floating_ip_to_server_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRING, 0) - oprot.writeString( - self.success.encode("utf-8") - if sys.version_info[0] == 2 - else self.success - ) + oprot.writeFieldBegin('success', TType.STRING, 0) + oprot.writeString(self.success.encode('utf-8') if sys.version_info[0] == 2 else self.success) oprot.writeFieldEnd() if self.e is not None: - oprot.writeFieldBegin("e", TType.STRUCT, 1) + oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() if self.f is not None: - oprot.writeFieldBegin("f", TType.STRUCT, 2) + oprot.writeFieldBegin('f', TType.STRUCT, 2) self.f.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -7681,21 +6670,20 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(add_floating_ip_to_server_result) add_floating_ip_to_server_result.thrift_spec = ( - (0, TType.STRING, "success", "UTF8", None,), # 0 - (1, TType.STRUCT, "e", [serverNotFoundException, None], None,), # 1 - (2, TType.STRUCT, "f", [networkNotFoundException, None], None,), # 2 + (0, TType.STRING, 'success', 'UTF8', None, ), # 0 + (1, TType.STRUCT, 'e', [serverNotFoundException, None], None, ), # 1 + (2, TType.STRUCT, 'f', [networkNotFoundException, None], None, ), # 2 ) @@ -7713,14 +6701,8 @@ class create_connection_args(object): """ - def __init__( - self, - username=None, - password=None, - auth_url=None, - user_domain_name=None, - project_domain_name=None, - ): + + def __init__(self, username=None, password=None, auth_url=None, user_domain_name=None, project_domain_name=None,): self.username = username self.password = password self.auth_url = auth_url @@ -7728,11 +6710,7 @@ def __init__( self.project_domain_name = project_domain_name def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -7742,47 +6720,27 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.username = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.username = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.password = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.password = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.auth_url = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.auth_url = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.user_domain_name = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.user_domain_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: - self.project_domain_name = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.project_domain_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -7792,50 +6750,28 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("create_connection_args") + oprot.writeStructBegin('create_connection_args') if self.username is not None: - oprot.writeFieldBegin("username", TType.STRING, 1) - oprot.writeString( - self.username.encode("utf-8") - if sys.version_info[0] == 2 - else self.username - ) + oprot.writeFieldBegin('username', TType.STRING, 1) + oprot.writeString(self.username.encode('utf-8') if sys.version_info[0] == 2 else self.username) oprot.writeFieldEnd() if self.password is not None: - oprot.writeFieldBegin("password", TType.STRING, 2) - oprot.writeString( - self.password.encode("utf-8") - if sys.version_info[0] == 2 - else self.password - ) + oprot.writeFieldBegin('password', TType.STRING, 2) + oprot.writeString(self.password.encode('utf-8') if sys.version_info[0] == 2 else self.password) oprot.writeFieldEnd() if self.auth_url is not None: - oprot.writeFieldBegin("auth_url", TType.STRING, 3) - oprot.writeString( - self.auth_url.encode("utf-8") - if sys.version_info[0] == 2 - else self.auth_url - ) + oprot.writeFieldBegin('auth_url', TType.STRING, 3) + oprot.writeString(self.auth_url.encode('utf-8') if sys.version_info[0] == 2 else self.auth_url) oprot.writeFieldEnd() if self.user_domain_name is not None: - oprot.writeFieldBegin("user_domain_name", TType.STRING, 5) - oprot.writeString( - self.user_domain_name.encode("utf-8") - if sys.version_info[0] == 2 - else self.user_domain_name - ) + oprot.writeFieldBegin('user_domain_name', TType.STRING, 5) + oprot.writeString(self.user_domain_name.encode('utf-8') if sys.version_info[0] == 2 else self.user_domain_name) oprot.writeFieldEnd() if self.project_domain_name is not None: - oprot.writeFieldBegin("project_domain_name", TType.STRING, 6) - oprot.writeString( - self.project_domain_name.encode("utf-8") - if sys.version_info[0] == 2 - else self.project_domain_name - ) + oprot.writeFieldBegin('project_domain_name', TType.STRING, 6) + oprot.writeString(self.project_domain_name.encode('utf-8') if sys.version_info[0] == 2 else self.project_domain_name) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -7844,25 +6780,24 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(create_connection_args) create_connection_args.thrift_spec = ( None, # 0 - (1, TType.STRING, "username", "UTF8", None,), # 1 - (2, TType.STRING, "password", "UTF8", None,), # 2 - (3, TType.STRING, "auth_url", "UTF8", None,), # 3 + (1, TType.STRING, 'username', 'UTF8', None, ), # 1 + (2, TType.STRING, 'password', 'UTF8', None, ), # 2 + (3, TType.STRING, 'auth_url', 'UTF8', None, ), # 3 None, # 4 - (5, TType.STRING, "user_domain_name", "UTF8", None,), # 5 - (6, TType.STRING, "project_domain_name", "UTF8", None,), # 6 + (5, TType.STRING, 'user_domain_name', 'UTF8', None, ), # 5 + (6, TType.STRING, 'project_domain_name', 'UTF8', None, ), # 6 ) @@ -7874,18 +6809,13 @@ class create_connection_result(object): """ - def __init__( - self, success=None, e=None, - ): + + def __init__(self, success=None, e=None,): self.success = success self.e = e def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -7911,17 +6841,15 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("create_connection_result") + oprot.writeStructBegin('create_connection_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.BOOL, 0) + oprot.writeFieldBegin('success', TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() if self.e is not None: - oprot.writeFieldBegin("e", TType.STRUCT, 1) + oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -7931,20 +6859,19 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(create_connection_result) create_connection_result.thrift_spec = ( - (0, TType.BOOL, "success", None, None,), # 0 - (1, TType.STRUCT, "e", [authenticationException, None], None,), # 1 + (0, TType.BOOL, 'success', None, None, ), # 0 + (1, TType.STRUCT, 'e', [authenticationException, None], None, ), # 1 ) @@ -7964,19 +6891,8 @@ class start_server_without_playbook_args(object): """ - def __init__( - self, - flavor=None, - image=None, - public_key=None, - servername=None, - metadata=None, - https=None, - http=None, - resenv=None, - volume_ids_path_new=None, - volume_ids_path_attach=None, - ): + + def __init__(self, flavor=None, image=None, public_key=None, servername=None, metadata=None, https=None, http=None, resenv=None, volume_ids_path_new=None, volume_ids_path_attach=None,): self.flavor = flavor self.image = image self.public_key = public_key @@ -7989,11 +6905,7 @@ def __init__( self.volume_ids_path_attach = volume_ids_path_attach def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -8003,38 +6915,22 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.flavor = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.flavor = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.image = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.image = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.public_key = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.public_key = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.servername = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.servername = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 5: @@ -8042,16 +6938,8 @@ def read(self, iprot): self.metadata = {} (_ktype127, _vtype128, _size126) = iprot.readMapBegin() for _i130 in range(_size126): - _key131 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) - _val132 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + _key131 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val132 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() self.metadata[_key131] = _val132 iprot.readMapEnd() else: @@ -8071,11 +6959,7 @@ def read(self, iprot): self.resenv = [] (_etype136, _size133) = iprot.readListBegin() for _i137 in range(_size133): - _elem138 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + _elem138 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() self.resenv.append(_elem138) iprot.readListEnd() else: @@ -8088,16 +6972,8 @@ def read(self, iprot): _elem144 = {} (_ktype146, _vtype147, _size145) = iprot.readMapBegin() for _i149 in range(_size145): - _key150 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) - _val151 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + _key150 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val151 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() _elem144[_key150] = _val151 iprot.readMapEnd() self.volume_ids_path_new.append(_elem144) @@ -8112,16 +6988,8 @@ def read(self, iprot): _elem157 = {} (_ktype159, _vtype160, _size158) = iprot.readMapBegin() for _i162 in range(_size158): - _key163 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) - _val164 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + _key163 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val164 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() _elem157[_key163] = _val164 iprot.readMapEnd() self.volume_ids_path_attach.append(_elem157) @@ -8135,103 +7003,67 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("start_server_without_playbook_args") + oprot.writeStructBegin('start_server_without_playbook_args') if self.flavor is not None: - oprot.writeFieldBegin("flavor", TType.STRING, 1) - oprot.writeString( - self.flavor.encode("utf-8") if sys.version_info[0] == 2 else self.flavor - ) + oprot.writeFieldBegin('flavor', TType.STRING, 1) + oprot.writeString(self.flavor.encode('utf-8') if sys.version_info[0] == 2 else self.flavor) oprot.writeFieldEnd() if self.image is not None: - oprot.writeFieldBegin("image", TType.STRING, 2) - oprot.writeString( - self.image.encode("utf-8") if sys.version_info[0] == 2 else self.image - ) + oprot.writeFieldBegin('image', TType.STRING, 2) + oprot.writeString(self.image.encode('utf-8') if sys.version_info[0] == 2 else self.image) oprot.writeFieldEnd() if self.public_key is not None: - oprot.writeFieldBegin("public_key", TType.STRING, 3) - oprot.writeString( - self.public_key.encode("utf-8") - if sys.version_info[0] == 2 - else self.public_key - ) + oprot.writeFieldBegin('public_key', TType.STRING, 3) + oprot.writeString(self.public_key.encode('utf-8') if sys.version_info[0] == 2 else self.public_key) oprot.writeFieldEnd() if self.servername is not None: - oprot.writeFieldBegin("servername", TType.STRING, 4) - oprot.writeString( - self.servername.encode("utf-8") - if sys.version_info[0] == 2 - else self.servername - ) + oprot.writeFieldBegin('servername', TType.STRING, 4) + oprot.writeString(self.servername.encode('utf-8') if sys.version_info[0] == 2 else self.servername) oprot.writeFieldEnd() if self.metadata is not None: - oprot.writeFieldBegin("metadata", TType.MAP, 5) + oprot.writeFieldBegin('metadata', TType.MAP, 5) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.metadata)) for kiter165, viter166 in self.metadata.items(): - oprot.writeString( - kiter165.encode("utf-8") if sys.version_info[0] == 2 else kiter165 - ) - oprot.writeString( - viter166.encode("utf-8") if sys.version_info[0] == 2 else viter166 - ) + oprot.writeString(kiter165.encode('utf-8') if sys.version_info[0] == 2 else kiter165) + oprot.writeString(viter166.encode('utf-8') if sys.version_info[0] == 2 else viter166) oprot.writeMapEnd() oprot.writeFieldEnd() if self.https is not None: - oprot.writeFieldBegin("https", TType.BOOL, 6) + oprot.writeFieldBegin('https', TType.BOOL, 6) oprot.writeBool(self.https) oprot.writeFieldEnd() if self.http is not None: - oprot.writeFieldBegin("http", TType.BOOL, 7) + oprot.writeFieldBegin('http', TType.BOOL, 7) oprot.writeBool(self.http) oprot.writeFieldEnd() if self.resenv is not None: - oprot.writeFieldBegin("resenv", TType.LIST, 8) + oprot.writeFieldBegin('resenv', TType.LIST, 8) oprot.writeListBegin(TType.STRING, len(self.resenv)) for iter167 in self.resenv: - oprot.writeString( - iter167.encode("utf-8") if sys.version_info[0] == 2 else iter167 - ) + oprot.writeString(iter167.encode('utf-8') if sys.version_info[0] == 2 else iter167) oprot.writeListEnd() oprot.writeFieldEnd() if self.volume_ids_path_new is not None: - oprot.writeFieldBegin("volume_ids_path_new", TType.LIST, 9) + oprot.writeFieldBegin('volume_ids_path_new', TType.LIST, 9) oprot.writeListBegin(TType.MAP, len(self.volume_ids_path_new)) for iter168 in self.volume_ids_path_new: oprot.writeMapBegin(TType.STRING, TType.STRING, len(iter168)) for kiter169, viter170 in iter168.items(): - oprot.writeString( - kiter169.encode("utf-8") - if sys.version_info[0] == 2 - else kiter169 - ) - oprot.writeString( - viter170.encode("utf-8") - if sys.version_info[0] == 2 - else viter170 - ) + oprot.writeString(kiter169.encode('utf-8') if sys.version_info[0] == 2 else kiter169) + oprot.writeString(viter170.encode('utf-8') if sys.version_info[0] == 2 else viter170) oprot.writeMapEnd() oprot.writeListEnd() oprot.writeFieldEnd() if self.volume_ids_path_attach is not None: - oprot.writeFieldBegin("volume_ids_path_attach", TType.LIST, 10) + oprot.writeFieldBegin('volume_ids_path_attach', TType.LIST, 10) oprot.writeListBegin(TType.MAP, len(self.volume_ids_path_attach)) for iter171 in self.volume_ids_path_attach: oprot.writeMapBegin(TType.STRING, TType.STRING, len(iter171)) for kiter172, viter173 in iter171.items(): - oprot.writeString( - kiter172.encode("utf-8") - if sys.version_info[0] == 2 - else kiter172 - ) - oprot.writeString( - viter173.encode("utf-8") - if sys.version_info[0] == 2 - else viter173 - ) + oprot.writeString(kiter172.encode('utf-8') if sys.version_info[0] == 2 else kiter172) + oprot.writeString(viter173.encode('utf-8') if sys.version_info[0] == 2 else viter173) oprot.writeMapEnd() oprot.writeListEnd() oprot.writeFieldEnd() @@ -8242,47 +7074,28 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(start_server_without_playbook_args) start_server_without_playbook_args.thrift_spec = ( None, # 0 - (1, TType.STRING, "flavor", "UTF8", None,), # 1 - (2, TType.STRING, "image", "UTF8", None,), # 2 - (3, TType.STRING, "public_key", "UTF8", None,), # 3 - (4, TType.STRING, "servername", "UTF8", None,), # 4 - ( - 5, - TType.MAP, - "metadata", - (TType.STRING, "UTF8", TType.STRING, "UTF8", False), - None, - ), # 5 - (6, TType.BOOL, "https", None, None,), # 6 - (7, TType.BOOL, "http", None, None,), # 7 - (8, TType.LIST, "resenv", (TType.STRING, "UTF8", False), None,), # 8 - ( - 9, - TType.LIST, - "volume_ids_path_new", - (TType.MAP, (TType.STRING, "UTF8", TType.STRING, "UTF8", False), False), - None, - ), # 9 - ( - 10, - TType.LIST, - "volume_ids_path_attach", - (TType.MAP, (TType.STRING, "UTF8", TType.STRING, "UTF8", False), False), - None, - ), # 10 + (1, TType.STRING, 'flavor', 'UTF8', None, ), # 1 + (2, TType.STRING, 'image', 'UTF8', None, ), # 2 + (3, TType.STRING, 'public_key', 'UTF8', None, ), # 3 + (4, TType.STRING, 'servername', 'UTF8', None, ), # 4 + (5, TType.MAP, 'metadata', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 5 + (6, TType.BOOL, 'https', None, None, ), # 6 + (7, TType.BOOL, 'http', None, None, ), # 7 + (8, TType.LIST, 'resenv', (TType.STRING, 'UTF8', False), None, ), # 8 + (9, TType.LIST, 'volume_ids_path_new', (TType.MAP, (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), False), None, ), # 9 + (10, TType.LIST, 'volume_ids_path_attach', (TType.MAP, (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), False), None, ), # 10 ) @@ -8300,9 +7113,8 @@ class start_server_without_playbook_result(object): """ - def __init__( - self, success=None, e=None, r=None, s=None, n=None, i=None, f=None, o=None, - ): + + def __init__(self, success=None, e=None, r=None, s=None, n=None, i=None, f=None, o=None,): self.success = success self.e = e self.r = r @@ -8313,11 +7125,7 @@ def __init__( self.o = o def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -8330,16 +7138,8 @@ def read(self, iprot): self.success = {} (_ktype175, _vtype176, _size174) = iprot.readMapBegin() for _i178 in range(_size174): - _key179 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) - _val180 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + _key179 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val180 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() self.success[_key179] = _val180 iprot.readMapEnd() else: @@ -8393,49 +7193,43 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("start_server_without_playbook_result") + oprot.writeStructBegin('start_server_without_playbook_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.MAP, 0) + oprot.writeFieldBegin('success', TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success)) for kiter181, viter182 in self.success.items(): - oprot.writeString( - kiter181.encode("utf-8") if sys.version_info[0] == 2 else kiter181 - ) - oprot.writeString( - viter182.encode("utf-8") if sys.version_info[0] == 2 else viter182 - ) + oprot.writeString(kiter181.encode('utf-8') if sys.version_info[0] == 2 else kiter181) + oprot.writeString(viter182.encode('utf-8') if sys.version_info[0] == 2 else viter182) oprot.writeMapEnd() oprot.writeFieldEnd() if self.e is not None: - oprot.writeFieldBegin("e", TType.STRUCT, 1) + oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() if self.r is not None: - oprot.writeFieldBegin("r", TType.STRUCT, 2) + oprot.writeFieldBegin('r', TType.STRUCT, 2) self.r.write(oprot) oprot.writeFieldEnd() if self.s is not None: - oprot.writeFieldBegin("s", TType.STRUCT, 3) + oprot.writeFieldBegin('s', TType.STRUCT, 3) self.s.write(oprot) oprot.writeFieldEnd() if self.n is not None: - oprot.writeFieldBegin("n", TType.STRUCT, 4) + oprot.writeFieldBegin('n', TType.STRUCT, 4) self.n.write(oprot) oprot.writeFieldEnd() if self.i is not None: - oprot.writeFieldBegin("i", TType.STRUCT, 5) + oprot.writeFieldBegin('i', TType.STRUCT, 5) self.i.write(oprot) oprot.writeFieldEnd() if self.f is not None: - oprot.writeFieldBegin("f", TType.STRUCT, 6) + oprot.writeFieldBegin('f', TType.STRUCT, 6) self.f.write(oprot) oprot.writeFieldEnd() if self.o is not None: - oprot.writeFieldBegin("o", TType.STRUCT, 7) + oprot.writeFieldBegin('o', TType.STRUCT, 7) self.o.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -8445,81 +7239,33 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(start_server_without_playbook_result) start_server_without_playbook_result.thrift_spec = ( - ( - 0, - TType.MAP, - "success", - (TType.STRING, "UTF8", TType.STRING, "UTF8", False), - None, - ), # 0 - (1, TType.STRUCT, "e", [nameException, None], None,), # 1 - (2, TType.STRUCT, "r", [ressourceException, None], None,), # 2 - (3, TType.STRUCT, "s", [serverNotFoundException, None], None,), # 3 - (4, TType.STRUCT, "n", [networkNotFoundException, None], None,), # 4 - (5, TType.STRUCT, "i", [imageNotFoundException, None], None,), # 5 - (6, TType.STRUCT, "f", [flavorNotFoundException, None], None,), # 6 - (7, TType.STRUCT, "o", [otherException, None], None,), # 7 + (0, TType.MAP, 'success', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 0 + (1, TType.STRUCT, 'e', [nameException, None], None, ), # 1 + (2, TType.STRUCT, 'r', [ressourceException, None], None, ), # 2 + (3, TType.STRUCT, 's', [serverNotFoundException, None], None, ), # 3 + (4, TType.STRUCT, 'n', [networkNotFoundException, None], None, ), # 4 + (5, TType.STRUCT, 'i', [imageNotFoundException, None], None, ), # 5 + (6, TType.STRUCT, 'f', [flavorNotFoundException, None], None, ), # 6 + (7, TType.STRUCT, 'o', [otherException, None], None, ), # 7 ) -class start_server_with_mounted_volume_args(object): - """ - Attributes: - - flavor: Name of the Flavor to use. - - image: Name of the image to use. - - public_key: Public Key to use - - servername: Name for the new server - - metadata: Metadata for the new instance - - https - - http - - resenv - - volume_ids_path_new - - volume_ids_path_attach - - """ +class bibigrid_available_args(object): - def __init__( - self, - flavor=None, - image=None, - public_key=None, - servername=None, - metadata=None, - https=None, - http=None, - resenv=None, - volume_ids_path_new=None, - volume_ids_path_attach=None, - ): - self.flavor = flavor - self.image = image - self.public_key = public_key - self.servername = servername - self.metadata = metadata - self.https = https - self.http = http - self.resenv = resenv - self.volume_ids_path_new = volume_ids_path_new - self.volume_ids_path_attach = volume_ids_path_attach def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -8527,57 +7273,298 @@ def read(self, iprot): (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break - if fid == 1: - if ftype == TType.STRING: - self.flavor = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRING: - self.image = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.STRING: - self.public_key = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) - else: - iprot.skip(ftype) - elif fid == 4: - if ftype == TType.STRING: - self.servername = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) - else: - iprot.skip(ftype) - elif fid == 5: - if ftype == TType.MAP: + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('bibigrid_available_args') + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + 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) +all_structs.append(bibigrid_available_args) +bibigrid_available_args.thrift_spec = ( +) + + +class bibigrid_available_result(object): + """ + Attributes: + - success + + """ + + + def __init__(self, success=None,): + self.success = success + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) + return + 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) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('bibigrid_available_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.BOOL, 0) + oprot.writeBool(self.success) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + 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) +all_structs.append(bibigrid_available_result) +bibigrid_available_result.thrift_spec = ( + (0, TType.BOOL, 'success', None, None, ), # 0 +) + + +class detach_ip_from_server_args(object): + """ + Attributes: + - server_id + - floating_ip + + """ + + + def __init__(self, server_id=None, floating_ip=None,): + self.server_id = server_id + self.floating_ip = floating_ip + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.STRING: + self.server_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.floating_ip = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('detach_ip_from_server_args') + if self.server_id is not None: + oprot.writeFieldBegin('server_id', TType.STRING, 1) + oprot.writeString(self.server_id.encode('utf-8') if sys.version_info[0] == 2 else self.server_id) + oprot.writeFieldEnd() + if self.floating_ip is not None: + oprot.writeFieldBegin('floating_ip', TType.STRING, 2) + oprot.writeString(self.floating_ip.encode('utf-8') if sys.version_info[0] == 2 else self.floating_ip) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + 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) +all_structs.append(detach_ip_from_server_args) +detach_ip_from_server_args.thrift_spec = ( + None, # 0 + (1, TType.STRING, 'server_id', 'UTF8', None, ), # 1 + (2, TType.STRING, 'floating_ip', 'UTF8', None, ), # 2 +) + + +class detach_ip_from_server_result(object): + """ + Attributes: + - success + + """ + + + def __init__(self, success=None,): + self.success = success + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) + return + 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) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot._fast_encode is not None and self.thrift_spec is not None: + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + return + oprot.writeStructBegin('detach_ip_from_server_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.BOOL, 0) + oprot.writeBool(self.success) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + 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) +all_structs.append(detach_ip_from_server_result) +detach_ip_from_server_result.thrift_spec = ( + (0, TType.BOOL, 'success', None, None, ), # 0 +) + + +class start_server_with_mounted_volume_args(object): + """ + Attributes: + - flavor: Name of the Flavor to use. + - image: Name of the image to use. + - public_key: Public Key to use + - servername: Name for the new server + - metadata: Metadata for the new instance + - https + - http + - resenv + - volume_ids_path_new + - volume_ids_path_attach + + """ + + + def __init__(self, flavor=None, image=None, public_key=None, servername=None, metadata=None, https=None, http=None, resenv=None, volume_ids_path_new=None, volume_ids_path_attach=None,): + self.flavor = flavor + self.image = image + self.public_key = public_key + self.servername = servername + self.metadata = metadata + self.https = https + self.http = http + self.resenv = resenv + self.volume_ids_path_new = volume_ids_path_new + self.volume_ids_path_attach = volume_ids_path_attach + + def read(self, iprot): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.STRING: + self.flavor = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.image = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.public_key = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRING: + self.servername = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.MAP: self.metadata = {} (_ktype184, _vtype185, _size183) = iprot.readMapBegin() for _i187 in range(_size183): - _key188 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) - _val189 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + _key188 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val189 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() self.metadata[_key188] = _val189 iprot.readMapEnd() else: @@ -8597,11 +7584,7 @@ def read(self, iprot): self.resenv = [] (_etype193, _size190) = iprot.readListBegin() for _i194 in range(_size190): - _elem195 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + _elem195 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() self.resenv.append(_elem195) iprot.readListEnd() else: @@ -8614,16 +7597,8 @@ def read(self, iprot): _elem201 = {} (_ktype203, _vtype204, _size202) = iprot.readMapBegin() for _i206 in range(_size202): - _key207 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) - _val208 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + _key207 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val208 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() _elem201[_key207] = _val208 iprot.readMapEnd() self.volume_ids_path_new.append(_elem201) @@ -8638,16 +7613,8 @@ def read(self, iprot): _elem214 = {} (_ktype216, _vtype217, _size215) = iprot.readMapBegin() for _i219 in range(_size215): - _key220 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) - _val221 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + _key220 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val221 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() _elem214[_key220] = _val221 iprot.readMapEnd() self.volume_ids_path_attach.append(_elem214) @@ -8661,103 +7628,67 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("start_server_with_mounted_volume_args") + oprot.writeStructBegin('start_server_with_mounted_volume_args') if self.flavor is not None: - oprot.writeFieldBegin("flavor", TType.STRING, 1) - oprot.writeString( - self.flavor.encode("utf-8") if sys.version_info[0] == 2 else self.flavor - ) + oprot.writeFieldBegin('flavor', TType.STRING, 1) + oprot.writeString(self.flavor.encode('utf-8') if sys.version_info[0] == 2 else self.flavor) oprot.writeFieldEnd() if self.image is not None: - oprot.writeFieldBegin("image", TType.STRING, 2) - oprot.writeString( - self.image.encode("utf-8") if sys.version_info[0] == 2 else self.image - ) + oprot.writeFieldBegin('image', TType.STRING, 2) + oprot.writeString(self.image.encode('utf-8') if sys.version_info[0] == 2 else self.image) oprot.writeFieldEnd() if self.public_key is not None: - oprot.writeFieldBegin("public_key", TType.STRING, 3) - oprot.writeString( - self.public_key.encode("utf-8") - if sys.version_info[0] == 2 - else self.public_key - ) + oprot.writeFieldBegin('public_key', TType.STRING, 3) + oprot.writeString(self.public_key.encode('utf-8') if sys.version_info[0] == 2 else self.public_key) oprot.writeFieldEnd() if self.servername is not None: - oprot.writeFieldBegin("servername", TType.STRING, 4) - oprot.writeString( - self.servername.encode("utf-8") - if sys.version_info[0] == 2 - else self.servername - ) + oprot.writeFieldBegin('servername', TType.STRING, 4) + oprot.writeString(self.servername.encode('utf-8') if sys.version_info[0] == 2 else self.servername) oprot.writeFieldEnd() if self.metadata is not None: - oprot.writeFieldBegin("metadata", TType.MAP, 5) + oprot.writeFieldBegin('metadata', TType.MAP, 5) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.metadata)) for kiter222, viter223 in self.metadata.items(): - oprot.writeString( - kiter222.encode("utf-8") if sys.version_info[0] == 2 else kiter222 - ) - oprot.writeString( - viter223.encode("utf-8") if sys.version_info[0] == 2 else viter223 - ) + oprot.writeString(kiter222.encode('utf-8') if sys.version_info[0] == 2 else kiter222) + oprot.writeString(viter223.encode('utf-8') if sys.version_info[0] == 2 else viter223) oprot.writeMapEnd() oprot.writeFieldEnd() if self.https is not None: - oprot.writeFieldBegin("https", TType.BOOL, 6) + oprot.writeFieldBegin('https', TType.BOOL, 6) oprot.writeBool(self.https) oprot.writeFieldEnd() if self.http is not None: - oprot.writeFieldBegin("http", TType.BOOL, 7) + oprot.writeFieldBegin('http', TType.BOOL, 7) oprot.writeBool(self.http) oprot.writeFieldEnd() if self.resenv is not None: - oprot.writeFieldBegin("resenv", TType.LIST, 8) + oprot.writeFieldBegin('resenv', TType.LIST, 8) oprot.writeListBegin(TType.STRING, len(self.resenv)) for iter224 in self.resenv: - oprot.writeString( - iter224.encode("utf-8") if sys.version_info[0] == 2 else iter224 - ) + oprot.writeString(iter224.encode('utf-8') if sys.version_info[0] == 2 else iter224) oprot.writeListEnd() oprot.writeFieldEnd() if self.volume_ids_path_new is not None: - oprot.writeFieldBegin("volume_ids_path_new", TType.LIST, 9) + oprot.writeFieldBegin('volume_ids_path_new', TType.LIST, 9) oprot.writeListBegin(TType.MAP, len(self.volume_ids_path_new)) for iter225 in self.volume_ids_path_new: oprot.writeMapBegin(TType.STRING, TType.STRING, len(iter225)) for kiter226, viter227 in iter225.items(): - oprot.writeString( - kiter226.encode("utf-8") - if sys.version_info[0] == 2 - else kiter226 - ) - oprot.writeString( - viter227.encode("utf-8") - if sys.version_info[0] == 2 - else viter227 - ) + oprot.writeString(kiter226.encode('utf-8') if sys.version_info[0] == 2 else kiter226) + oprot.writeString(viter227.encode('utf-8') if sys.version_info[0] == 2 else viter227) oprot.writeMapEnd() oprot.writeListEnd() oprot.writeFieldEnd() if self.volume_ids_path_attach is not None: - oprot.writeFieldBegin("volume_ids_path_attach", TType.LIST, 10) + oprot.writeFieldBegin('volume_ids_path_attach', TType.LIST, 10) oprot.writeListBegin(TType.MAP, len(self.volume_ids_path_attach)) for iter228 in self.volume_ids_path_attach: oprot.writeMapBegin(TType.STRING, TType.STRING, len(iter228)) for kiter229, viter230 in iter228.items(): - oprot.writeString( - kiter229.encode("utf-8") - if sys.version_info[0] == 2 - else kiter229 - ) - oprot.writeString( - viter230.encode("utf-8") - if sys.version_info[0] == 2 - else viter230 - ) + oprot.writeString(kiter229.encode('utf-8') if sys.version_info[0] == 2 else kiter229) + oprot.writeString(viter230.encode('utf-8') if sys.version_info[0] == 2 else viter230) oprot.writeMapEnd() oprot.writeListEnd() oprot.writeFieldEnd() @@ -8768,47 +7699,28 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(start_server_with_mounted_volume_args) start_server_with_mounted_volume_args.thrift_spec = ( None, # 0 - (1, TType.STRING, "flavor", "UTF8", None,), # 1 - (2, TType.STRING, "image", "UTF8", None,), # 2 - (3, TType.STRING, "public_key", "UTF8", None,), # 3 - (4, TType.STRING, "servername", "UTF8", None,), # 4 - ( - 5, - TType.MAP, - "metadata", - (TType.STRING, "UTF8", TType.STRING, "UTF8", False), - None, - ), # 5 - (6, TType.BOOL, "https", None, None,), # 6 - (7, TType.BOOL, "http", None, None,), # 7 - (8, TType.LIST, "resenv", (TType.STRING, "UTF8", False), None,), # 8 - ( - 9, - TType.LIST, - "volume_ids_path_new", - (TType.MAP, (TType.STRING, "UTF8", TType.STRING, "UTF8", False), False), - None, - ), # 9 - ( - 10, - TType.LIST, - "volume_ids_path_attach", - (TType.MAP, (TType.STRING, "UTF8", TType.STRING, "UTF8", False), False), - None, - ), # 10 + (1, TType.STRING, 'flavor', 'UTF8', None, ), # 1 + (2, TType.STRING, 'image', 'UTF8', None, ), # 2 + (3, TType.STRING, 'public_key', 'UTF8', None, ), # 3 + (4, TType.STRING, 'servername', 'UTF8', None, ), # 4 + (5, TType.MAP, 'metadata', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 5 + (6, TType.BOOL, 'https', None, None, ), # 6 + (7, TType.BOOL, 'http', None, None, ), # 7 + (8, TType.LIST, 'resenv', (TType.STRING, 'UTF8', False), None, ), # 8 + (9, TType.LIST, 'volume_ids_path_new', (TType.MAP, (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), False), None, ), # 9 + (10, TType.LIST, 'volume_ids_path_attach', (TType.MAP, (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), False), None, ), # 10 ) @@ -8826,9 +7738,8 @@ class start_server_with_mounted_volume_result(object): """ - def __init__( - self, success=None, e=None, r=None, s=None, n=None, i=None, f=None, o=None, - ): + + def __init__(self, success=None, e=None, r=None, s=None, n=None, i=None, f=None, o=None,): self.success = success self.e = e self.r = r @@ -8839,11 +7750,7 @@ def __init__( self.o = o def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -8856,16 +7763,8 @@ def read(self, iprot): self.success = {} (_ktype232, _vtype233, _size231) = iprot.readMapBegin() for _i235 in range(_size231): - _key236 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) - _val237 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + _key236 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val237 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() self.success[_key236] = _val237 iprot.readMapEnd() else: @@ -8919,49 +7818,43 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("start_server_with_mounted_volume_result") + oprot.writeStructBegin('start_server_with_mounted_volume_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.MAP, 0) + oprot.writeFieldBegin('success', TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success)) for kiter238, viter239 in self.success.items(): - oprot.writeString( - kiter238.encode("utf-8") if sys.version_info[0] == 2 else kiter238 - ) - oprot.writeString( - viter239.encode("utf-8") if sys.version_info[0] == 2 else viter239 - ) + oprot.writeString(kiter238.encode('utf-8') if sys.version_info[0] == 2 else kiter238) + oprot.writeString(viter239.encode('utf-8') if sys.version_info[0] == 2 else viter239) oprot.writeMapEnd() oprot.writeFieldEnd() if self.e is not None: - oprot.writeFieldBegin("e", TType.STRUCT, 1) + oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() if self.r is not None: - oprot.writeFieldBegin("r", TType.STRUCT, 2) + oprot.writeFieldBegin('r', TType.STRUCT, 2) self.r.write(oprot) oprot.writeFieldEnd() if self.s is not None: - oprot.writeFieldBegin("s", TType.STRUCT, 3) + oprot.writeFieldBegin('s', TType.STRUCT, 3) self.s.write(oprot) oprot.writeFieldEnd() if self.n is not None: - oprot.writeFieldBegin("n", TType.STRUCT, 4) + oprot.writeFieldBegin('n', TType.STRUCT, 4) self.n.write(oprot) oprot.writeFieldEnd() if self.i is not None: - oprot.writeFieldBegin("i", TType.STRUCT, 5) + oprot.writeFieldBegin('i', TType.STRUCT, 5) self.i.write(oprot) oprot.writeFieldEnd() if self.f is not None: - oprot.writeFieldBegin("f", TType.STRUCT, 6) + oprot.writeFieldBegin('f', TType.STRUCT, 6) self.f.write(oprot) oprot.writeFieldEnd() if self.o is not None: - oprot.writeFieldBegin("o", TType.STRUCT, 7) + oprot.writeFieldBegin('o', TType.STRUCT, 7) self.o.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -8971,32 +7864,25 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(start_server_with_mounted_volume_result) start_server_with_mounted_volume_result.thrift_spec = ( - ( - 0, - TType.MAP, - "success", - (TType.STRING, "UTF8", TType.STRING, "UTF8", False), - None, - ), # 0 - (1, TType.STRUCT, "e", [nameException, None], None,), # 1 - (2, TType.STRUCT, "r", [ressourceException, None], None,), # 2 - (3, TType.STRUCT, "s", [serverNotFoundException, None], None,), # 3 - (4, TType.STRUCT, "n", [networkNotFoundException, None], None,), # 4 - (5, TType.STRUCT, "i", [imageNotFoundException, None], None,), # 5 - (6, TType.STRUCT, "f", [flavorNotFoundException, None], None,), # 6 - (7, TType.STRUCT, "o", [otherException, None], None,), # 7 + (0, TType.MAP, 'success', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 0 + (1, TType.STRUCT, 'e', [nameException, None], None, ), # 1 + (2, TType.STRUCT, 'r', [ressourceException, None], None, ), # 2 + (3, TType.STRUCT, 's', [serverNotFoundException, None], None, ), # 3 + (4, TType.STRUCT, 'n', [networkNotFoundException, None], None, ), # 4 + (5, TType.STRUCT, 'i', [imageNotFoundException, None], None, ), # 5 + (6, TType.STRUCT, 'f', [flavorNotFoundException, None], None, ), # 6 + (7, TType.STRUCT, 'o', [otherException, None], None, ), # 7 ) @@ -9016,19 +7902,8 @@ class start_server_args(object): """ - def __init__( - self, - flavor=None, - image=None, - public_key=None, - servername=None, - metadata=None, - diskspace=None, - volumename=None, - https=None, - http=None, - resenv=None, - ): + + def __init__(self, flavor=None, image=None, public_key=None, servername=None, metadata=None, diskspace=None, volumename=None, https=None, http=None, resenv=None,): self.flavor = flavor self.image = image self.public_key = public_key @@ -9041,11 +7916,7 @@ def __init__( self.resenv = resenv def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -9055,38 +7926,22 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.flavor = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.flavor = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.image = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.image = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.public_key = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.public_key = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.servername = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.servername = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 5: @@ -9094,36 +7949,20 @@ def read(self, iprot): self.metadata = {} (_ktype241, _vtype242, _size240) = iprot.readMapBegin() for _i244 in range(_size240): - _key245 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) - _val246 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + _key245 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val246 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() self.metadata[_key245] = _val246 iprot.readMapEnd() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: - self.diskspace = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.diskspace = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 7: if ftype == TType.STRING: - self.volumename = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.volumename = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 8: @@ -9141,11 +7980,7 @@ def read(self, iprot): self.resenv = [] (_etype250, _size247) = iprot.readListBegin() for _i251 in range(_size247): - _elem252 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + _elem252 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() self.resenv.append(_elem252) iprot.readListEnd() else: @@ -9157,82 +7992,54 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("start_server_args") + oprot.writeStructBegin('start_server_args') if self.flavor is not None: - oprot.writeFieldBegin("flavor", TType.STRING, 1) - oprot.writeString( - self.flavor.encode("utf-8") if sys.version_info[0] == 2 else self.flavor - ) + oprot.writeFieldBegin('flavor', TType.STRING, 1) + oprot.writeString(self.flavor.encode('utf-8') if sys.version_info[0] == 2 else self.flavor) oprot.writeFieldEnd() if self.image is not None: - oprot.writeFieldBegin("image", TType.STRING, 2) - oprot.writeString( - self.image.encode("utf-8") if sys.version_info[0] == 2 else self.image - ) + oprot.writeFieldBegin('image', TType.STRING, 2) + oprot.writeString(self.image.encode('utf-8') if sys.version_info[0] == 2 else self.image) oprot.writeFieldEnd() if self.public_key is not None: - oprot.writeFieldBegin("public_key", TType.STRING, 3) - oprot.writeString( - self.public_key.encode("utf-8") - if sys.version_info[0] == 2 - else self.public_key - ) + oprot.writeFieldBegin('public_key', TType.STRING, 3) + oprot.writeString(self.public_key.encode('utf-8') if sys.version_info[0] == 2 else self.public_key) oprot.writeFieldEnd() if self.servername is not None: - oprot.writeFieldBegin("servername", TType.STRING, 4) - oprot.writeString( - self.servername.encode("utf-8") - if sys.version_info[0] == 2 - else self.servername - ) + oprot.writeFieldBegin('servername', TType.STRING, 4) + oprot.writeString(self.servername.encode('utf-8') if sys.version_info[0] == 2 else self.servername) oprot.writeFieldEnd() if self.metadata is not None: - oprot.writeFieldBegin("metadata", TType.MAP, 5) + oprot.writeFieldBegin('metadata', TType.MAP, 5) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.metadata)) for kiter253, viter254 in self.metadata.items(): - oprot.writeString( - kiter253.encode("utf-8") if sys.version_info[0] == 2 else kiter253 - ) - oprot.writeString( - viter254.encode("utf-8") if sys.version_info[0] == 2 else viter254 - ) + oprot.writeString(kiter253.encode('utf-8') if sys.version_info[0] == 2 else kiter253) + oprot.writeString(viter254.encode('utf-8') if sys.version_info[0] == 2 else viter254) oprot.writeMapEnd() oprot.writeFieldEnd() if self.diskspace is not None: - oprot.writeFieldBegin("diskspace", TType.STRING, 6) - oprot.writeString( - self.diskspace.encode("utf-8") - if sys.version_info[0] == 2 - else self.diskspace - ) + oprot.writeFieldBegin('diskspace', TType.STRING, 6) + oprot.writeString(self.diskspace.encode('utf-8') if sys.version_info[0] == 2 else self.diskspace) oprot.writeFieldEnd() if self.volumename is not None: - oprot.writeFieldBegin("volumename", TType.STRING, 7) - oprot.writeString( - self.volumename.encode("utf-8") - if sys.version_info[0] == 2 - else self.volumename - ) + oprot.writeFieldBegin('volumename', TType.STRING, 7) + oprot.writeString(self.volumename.encode('utf-8') if sys.version_info[0] == 2 else self.volumename) oprot.writeFieldEnd() if self.https is not None: - oprot.writeFieldBegin("https", TType.BOOL, 8) + oprot.writeFieldBegin('https', TType.BOOL, 8) oprot.writeBool(self.https) oprot.writeFieldEnd() if self.http is not None: - oprot.writeFieldBegin("http", TType.BOOL, 9) + oprot.writeFieldBegin('http', TType.BOOL, 9) oprot.writeBool(self.http) oprot.writeFieldEnd() if self.resenv is not None: - oprot.writeFieldBegin("resenv", TType.LIST, 10) + oprot.writeFieldBegin('resenv', TType.LIST, 10) oprot.writeListBegin(TType.STRING, len(self.resenv)) for iter255 in self.resenv: - oprot.writeString( - iter255.encode("utf-8") if sys.version_info[0] == 2 else iter255 - ) + oprot.writeString(iter255.encode('utf-8') if sys.version_info[0] == 2 else iter255) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -9242,35 +8049,28 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(start_server_args) start_server_args.thrift_spec = ( None, # 0 - (1, TType.STRING, "flavor", "UTF8", None,), # 1 - (2, TType.STRING, "image", "UTF8", None,), # 2 - (3, TType.STRING, "public_key", "UTF8", None,), # 3 - (4, TType.STRING, "servername", "UTF8", None,), # 4 - ( - 5, - TType.MAP, - "metadata", - (TType.STRING, "UTF8", TType.STRING, "UTF8", False), - None, - ), # 5 - (6, TType.STRING, "diskspace", "UTF8", None,), # 6 - (7, TType.STRING, "volumename", "UTF8", None,), # 7 - (8, TType.BOOL, "https", None, None,), # 8 - (9, TType.BOOL, "http", None, None,), # 9 - (10, TType.LIST, "resenv", (TType.STRING, "UTF8", False), None,), # 10 + (1, TType.STRING, 'flavor', 'UTF8', None, ), # 1 + (2, TType.STRING, 'image', 'UTF8', None, ), # 2 + (3, TType.STRING, 'public_key', 'UTF8', None, ), # 3 + (4, TType.STRING, 'servername', 'UTF8', None, ), # 4 + (5, TType.MAP, 'metadata', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 5 + (6, TType.STRING, 'diskspace', 'UTF8', None, ), # 6 + (7, TType.STRING, 'volumename', 'UTF8', None, ), # 7 + (8, TType.BOOL, 'https', None, None, ), # 8 + (9, TType.BOOL, 'http', None, None, ), # 9 + (10, TType.LIST, 'resenv', (TType.STRING, 'UTF8', False), None, ), # 10 ) @@ -9288,9 +8088,8 @@ class start_server_result(object): """ - def __init__( - self, success=None, e=None, r=None, s=None, n=None, i=None, f=None, o=None, - ): + + def __init__(self, success=None, e=None, r=None, s=None, n=None, i=None, f=None, o=None,): self.success = success self.e = e self.r = r @@ -9301,11 +8100,7 @@ def __init__( self.o = o def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -9318,16 +8113,8 @@ def read(self, iprot): self.success = {} (_ktype257, _vtype258, _size256) = iprot.readMapBegin() for _i260 in range(_size256): - _key261 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) - _val262 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + _key261 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val262 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() self.success[_key261] = _val262 iprot.readMapEnd() else: @@ -9381,49 +8168,43 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("start_server_result") + oprot.writeStructBegin('start_server_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.MAP, 0) + oprot.writeFieldBegin('success', TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success)) for kiter263, viter264 in self.success.items(): - oprot.writeString( - kiter263.encode("utf-8") if sys.version_info[0] == 2 else kiter263 - ) - oprot.writeString( - viter264.encode("utf-8") if sys.version_info[0] == 2 else viter264 - ) + oprot.writeString(kiter263.encode('utf-8') if sys.version_info[0] == 2 else kiter263) + oprot.writeString(viter264.encode('utf-8') if sys.version_info[0] == 2 else viter264) oprot.writeMapEnd() oprot.writeFieldEnd() if self.e is not None: - oprot.writeFieldBegin("e", TType.STRUCT, 1) + oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() if self.r is not None: - oprot.writeFieldBegin("r", TType.STRUCT, 2) + oprot.writeFieldBegin('r', TType.STRUCT, 2) self.r.write(oprot) oprot.writeFieldEnd() if self.s is not None: - oprot.writeFieldBegin("s", TType.STRUCT, 3) + oprot.writeFieldBegin('s', TType.STRUCT, 3) self.s.write(oprot) oprot.writeFieldEnd() if self.n is not None: - oprot.writeFieldBegin("n", TType.STRUCT, 4) + oprot.writeFieldBegin('n', TType.STRUCT, 4) self.n.write(oprot) oprot.writeFieldEnd() if self.i is not None: - oprot.writeFieldBegin("i", TType.STRUCT, 5) + oprot.writeFieldBegin('i', TType.STRUCT, 5) self.i.write(oprot) oprot.writeFieldEnd() if self.f is not None: - oprot.writeFieldBegin("f", TType.STRUCT, 6) + oprot.writeFieldBegin('f', TType.STRUCT, 6) self.f.write(oprot) oprot.writeFieldEnd() if self.o is not None: - oprot.writeFieldBegin("o", TType.STRUCT, 7) + oprot.writeFieldBegin('o', TType.STRUCT, 7) self.o.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -9433,32 +8214,25 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(start_server_result) start_server_result.thrift_spec = ( - ( - 0, - TType.MAP, - "success", - (TType.STRING, "UTF8", TType.STRING, "UTF8", False), - None, - ), # 0 - (1, TType.STRUCT, "e", [nameException, None], None,), # 1 - (2, TType.STRUCT, "r", [ressourceException, None], None,), # 2 - (3, TType.STRUCT, "s", [serverNotFoundException, None], None,), # 3 - (4, TType.STRUCT, "n", [networkNotFoundException, None], None,), # 4 - (5, TType.STRUCT, "i", [imageNotFoundException, None], None,), # 5 - (6, TType.STRUCT, "f", [flavorNotFoundException, None], None,), # 6 - (7, TType.STRUCT, "o", [otherException, None], None,), # 7 + (0, TType.MAP, 'success', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 0 + (1, TType.STRUCT, 'e', [nameException, None], None, ), # 1 + (2, TType.STRUCT, 'r', [ressourceException, None], None, ), # 2 + (3, TType.STRUCT, 's', [serverNotFoundException, None], None, ), # 3 + (4, TType.STRUCT, 'n', [networkNotFoundException, None], None, ), # 4 + (5, TType.STRUCT, 'i', [imageNotFoundException, None], None, ), # 5 + (6, TType.STRUCT, 'f', [flavorNotFoundException, None], None, ), # 6 + (7, TType.STRUCT, 'o', [otherException, None], None, ), # 7 ) @@ -9477,18 +8251,8 @@ class start_server_with_custom_key_args(object): """ - def __init__( - self, - flavor=None, - image=None, - servername=None, - metadata=None, - http=None, - https=None, - resenv=None, - volume_ids_path_new=None, - volume_ids_path_attach=None, - ): + + def __init__(self, flavor=None, image=None, servername=None, metadata=None, http=None, https=None, resenv=None, volume_ids_path_new=None, volume_ids_path_attach=None,): self.flavor = flavor self.image = image self.servername = servername @@ -9500,11 +8264,7 @@ def __init__( self.volume_ids_path_attach = volume_ids_path_attach def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -9514,29 +8274,17 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.flavor = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.flavor = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.image = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.image = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.servername = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.servername = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: @@ -9544,16 +8292,8 @@ def read(self, iprot): self.metadata = {} (_ktype266, _vtype267, _size265) = iprot.readMapBegin() for _i269 in range(_size265): - _key270 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) - _val271 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + _key270 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val271 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() self.metadata[_key270] = _val271 iprot.readMapEnd() else: @@ -9573,11 +8313,7 @@ def read(self, iprot): self.resenv = [] (_etype275, _size272) = iprot.readListBegin() for _i276 in range(_size272): - _elem277 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + _elem277 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() self.resenv.append(_elem277) iprot.readListEnd() else: @@ -9590,16 +8326,8 @@ def read(self, iprot): _elem283 = {} (_ktype285, _vtype286, _size284) = iprot.readMapBegin() for _i288 in range(_size284): - _key289 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) - _val290 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + _key289 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val290 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() _elem283[_key289] = _val290 iprot.readMapEnd() self.volume_ids_path_new.append(_elem283) @@ -9614,16 +8342,8 @@ def read(self, iprot): _elem296 = {} (_ktype298, _vtype299, _size297) = iprot.readMapBegin() for _i301 in range(_size297): - _key302 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) - _val303 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + _key302 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val303 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() _elem296[_key302] = _val303 iprot.readMapEnd() self.volume_ids_path_attach.append(_elem296) @@ -9637,95 +8357,63 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("start_server_with_custom_key_args") + oprot.writeStructBegin('start_server_with_custom_key_args') if self.flavor is not None: - oprot.writeFieldBegin("flavor", TType.STRING, 1) - oprot.writeString( - self.flavor.encode("utf-8") if sys.version_info[0] == 2 else self.flavor - ) + oprot.writeFieldBegin('flavor', TType.STRING, 1) + oprot.writeString(self.flavor.encode('utf-8') if sys.version_info[0] == 2 else self.flavor) oprot.writeFieldEnd() if self.image is not None: - oprot.writeFieldBegin("image", TType.STRING, 2) - oprot.writeString( - self.image.encode("utf-8") if sys.version_info[0] == 2 else self.image - ) + oprot.writeFieldBegin('image', TType.STRING, 2) + oprot.writeString(self.image.encode('utf-8') if sys.version_info[0] == 2 else self.image) oprot.writeFieldEnd() if self.servername is not None: - oprot.writeFieldBegin("servername", TType.STRING, 3) - oprot.writeString( - self.servername.encode("utf-8") - if sys.version_info[0] == 2 - else self.servername - ) + oprot.writeFieldBegin('servername', TType.STRING, 3) + oprot.writeString(self.servername.encode('utf-8') if sys.version_info[0] == 2 else self.servername) oprot.writeFieldEnd() if self.metadata is not None: - oprot.writeFieldBegin("metadata", TType.MAP, 4) + oprot.writeFieldBegin('metadata', TType.MAP, 4) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.metadata)) for kiter304, viter305 in self.metadata.items(): - oprot.writeString( - kiter304.encode("utf-8") if sys.version_info[0] == 2 else kiter304 - ) - oprot.writeString( - viter305.encode("utf-8") if sys.version_info[0] == 2 else viter305 - ) + oprot.writeString(kiter304.encode('utf-8') if sys.version_info[0] == 2 else kiter304) + oprot.writeString(viter305.encode('utf-8') if sys.version_info[0] == 2 else viter305) oprot.writeMapEnd() oprot.writeFieldEnd() if self.http is not None: - oprot.writeFieldBegin("http", TType.BOOL, 5) + oprot.writeFieldBegin('http', TType.BOOL, 5) oprot.writeBool(self.http) oprot.writeFieldEnd() if self.https is not None: - oprot.writeFieldBegin("https", TType.BOOL, 6) + oprot.writeFieldBegin('https', TType.BOOL, 6) oprot.writeBool(self.https) oprot.writeFieldEnd() if self.resenv is not None: - oprot.writeFieldBegin("resenv", TType.LIST, 7) + oprot.writeFieldBegin('resenv', TType.LIST, 7) oprot.writeListBegin(TType.STRING, len(self.resenv)) for iter306 in self.resenv: - oprot.writeString( - iter306.encode("utf-8") if sys.version_info[0] == 2 else iter306 - ) + oprot.writeString(iter306.encode('utf-8') if sys.version_info[0] == 2 else iter306) oprot.writeListEnd() oprot.writeFieldEnd() if self.volume_ids_path_new is not None: - oprot.writeFieldBegin("volume_ids_path_new", TType.LIST, 9) + oprot.writeFieldBegin('volume_ids_path_new', TType.LIST, 9) oprot.writeListBegin(TType.MAP, len(self.volume_ids_path_new)) for iter307 in self.volume_ids_path_new: oprot.writeMapBegin(TType.STRING, TType.STRING, len(iter307)) for kiter308, viter309 in iter307.items(): - oprot.writeString( - kiter308.encode("utf-8") - if sys.version_info[0] == 2 - else kiter308 - ) - oprot.writeString( - viter309.encode("utf-8") - if sys.version_info[0] == 2 - else viter309 - ) + oprot.writeString(kiter308.encode('utf-8') if sys.version_info[0] == 2 else kiter308) + oprot.writeString(viter309.encode('utf-8') if sys.version_info[0] == 2 else viter309) oprot.writeMapEnd() oprot.writeListEnd() oprot.writeFieldEnd() if self.volume_ids_path_attach is not None: - oprot.writeFieldBegin("volume_ids_path_attach", TType.LIST, 10) + oprot.writeFieldBegin('volume_ids_path_attach', TType.LIST, 10) oprot.writeListBegin(TType.MAP, len(self.volume_ids_path_attach)) for iter310 in self.volume_ids_path_attach: oprot.writeMapBegin(TType.STRING, TType.STRING, len(iter310)) for kiter311, viter312 in iter310.items(): - oprot.writeString( - kiter311.encode("utf-8") - if sys.version_info[0] == 2 - else kiter311 - ) - oprot.writeString( - viter312.encode("utf-8") - if sys.version_info[0] == 2 - else viter312 - ) + oprot.writeString(kiter311.encode('utf-8') if sys.version_info[0] == 2 else kiter311) + oprot.writeString(viter312.encode('utf-8') if sys.version_info[0] == 2 else viter312) oprot.writeMapEnd() oprot.writeListEnd() oprot.writeFieldEnd() @@ -9736,47 +8424,28 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(start_server_with_custom_key_args) start_server_with_custom_key_args.thrift_spec = ( None, # 0 - (1, TType.STRING, "flavor", "UTF8", None,), # 1 - (2, TType.STRING, "image", "UTF8", None,), # 2 - (3, TType.STRING, "servername", "UTF8", None,), # 3 - ( - 4, - TType.MAP, - "metadata", - (TType.STRING, "UTF8", TType.STRING, "UTF8", False), - None, - ), # 4 - (5, TType.BOOL, "http", None, None,), # 5 - (6, TType.BOOL, "https", None, None,), # 6 - (7, TType.LIST, "resenv", (TType.STRING, "UTF8", False), None,), # 7 + (1, TType.STRING, 'flavor', 'UTF8', None, ), # 1 + (2, TType.STRING, 'image', 'UTF8', None, ), # 2 + (3, TType.STRING, 'servername', 'UTF8', None, ), # 3 + (4, TType.MAP, 'metadata', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 4 + (5, TType.BOOL, 'http', None, None, ), # 5 + (6, TType.BOOL, 'https', None, None, ), # 6 + (7, TType.LIST, 'resenv', (TType.STRING, 'UTF8', False), None, ), # 7 None, # 8 - ( - 9, - TType.LIST, - "volume_ids_path_new", - (TType.MAP, (TType.STRING, "UTF8", TType.STRING, "UTF8", False), False), - None, - ), # 9 - ( - 10, - TType.LIST, - "volume_ids_path_attach", - (TType.MAP, (TType.STRING, "UTF8", TType.STRING, "UTF8", False), False), - None, - ), # 10 + (9, TType.LIST, 'volume_ids_path_new', (TType.MAP, (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), False), None, ), # 9 + (10, TType.LIST, 'volume_ids_path_attach', (TType.MAP, (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), False), None, ), # 10 ) @@ -9794,9 +8463,8 @@ class start_server_with_custom_key_result(object): """ - def __init__( - self, success=None, e=None, r=None, s=None, n=None, i=None, f=None, o=None, - ): + + def __init__(self, success=None, e=None, r=None, s=None, n=None, i=None, f=None, o=None,): self.success = success self.e = e self.r = r @@ -9807,11 +8475,7 @@ def __init__( self.o = o def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -9824,16 +8488,8 @@ def read(self, iprot): self.success = {} (_ktype314, _vtype315, _size313) = iprot.readMapBegin() for _i317 in range(_size313): - _key318 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) - _val319 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + _key318 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val319 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() self.success[_key318] = _val319 iprot.readMapEnd() else: @@ -9887,49 +8543,43 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("start_server_with_custom_key_result") + oprot.writeStructBegin('start_server_with_custom_key_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.MAP, 0) + oprot.writeFieldBegin('success', TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success)) for kiter320, viter321 in self.success.items(): - oprot.writeString( - kiter320.encode("utf-8") if sys.version_info[0] == 2 else kiter320 - ) - oprot.writeString( - viter321.encode("utf-8") if sys.version_info[0] == 2 else viter321 - ) + oprot.writeString(kiter320.encode('utf-8') if sys.version_info[0] == 2 else kiter320) + oprot.writeString(viter321.encode('utf-8') if sys.version_info[0] == 2 else viter321) oprot.writeMapEnd() oprot.writeFieldEnd() if self.e is not None: - oprot.writeFieldBegin("e", TType.STRUCT, 1) + oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() if self.r is not None: - oprot.writeFieldBegin("r", TType.STRUCT, 2) + oprot.writeFieldBegin('r', TType.STRUCT, 2) self.r.write(oprot) oprot.writeFieldEnd() if self.s is not None: - oprot.writeFieldBegin("s", TType.STRUCT, 3) + oprot.writeFieldBegin('s', TType.STRUCT, 3) self.s.write(oprot) oprot.writeFieldEnd() if self.n is not None: - oprot.writeFieldBegin("n", TType.STRUCT, 4) + oprot.writeFieldBegin('n', TType.STRUCT, 4) self.n.write(oprot) oprot.writeFieldEnd() if self.i is not None: - oprot.writeFieldBegin("i", TType.STRUCT, 5) + oprot.writeFieldBegin('i', TType.STRUCT, 5) self.i.write(oprot) oprot.writeFieldEnd() if self.f is not None: - oprot.writeFieldBegin("f", TType.STRUCT, 6) + oprot.writeFieldBegin('f', TType.STRUCT, 6) self.f.write(oprot) oprot.writeFieldEnd() if self.o is not None: - oprot.writeFieldBegin("o", TType.STRUCT, 7) + oprot.writeFieldBegin('o', TType.STRUCT, 7) self.o.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -9939,32 +8589,25 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(start_server_with_custom_key_result) start_server_with_custom_key_result.thrift_spec = ( - ( - 0, - TType.MAP, - "success", - (TType.STRING, "UTF8", TType.STRING, "UTF8", False), - None, - ), # 0 - (1, TType.STRUCT, "e", [nameException, None], None,), # 1 - (2, TType.STRUCT, "r", [ressourceException, None], None,), # 2 - (3, TType.STRUCT, "s", [serverNotFoundException, None], None,), # 3 - (4, TType.STRUCT, "n", [networkNotFoundException, None], None,), # 4 - (5, TType.STRUCT, "i", [imageNotFoundException, None], None,), # 5 - (6, TType.STRUCT, "f", [flavorNotFoundException, None], None,), # 6 - (7, TType.STRUCT, "o", [otherException, None], None,), # 7 + (0, TType.MAP, 'success', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 0 + (1, TType.STRUCT, 'e', [nameException, None], None, ), # 1 + (2, TType.STRUCT, 'r', [ressourceException, None], None, ), # 2 + (3, TType.STRUCT, 's', [serverNotFoundException, None], None, ), # 3 + (4, TType.STRUCT, 'n', [networkNotFoundException, None], None, ), # 4 + (5, TType.STRUCT, 'i', [imageNotFoundException, None], None, ), # 5 + (6, TType.STRUCT, 'f', [flavorNotFoundException, None], None, ), # 6 + (7, TType.STRUCT, 'o', [otherException, None], None, ), # 7 ) @@ -9975,17 +8618,12 @@ class exist_server_args(object): """ - def __init__( - self, name=None, - ): + + def __init__(self, name=None,): self.name = name def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -9995,11 +8633,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.name = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -10009,16 +8643,12 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("exist_server_args") + oprot.writeStructBegin('exist_server_args') if self.name is not None: - oprot.writeFieldBegin("name", TType.STRING, 1) - oprot.writeString( - self.name.encode("utf-8") if sys.version_info[0] == 2 else self.name - ) + oprot.writeFieldBegin('name', TType.STRING, 1) + oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -10027,20 +8657,19 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(exist_server_args) exist_server_args.thrift_spec = ( None, # 0 - (1, TType.STRING, "name", "UTF8", None,), # 1 + (1, TType.STRING, 'name', 'UTF8', None, ), # 1 ) @@ -10051,17 +8680,12 @@ class exist_server_result(object): """ - def __init__( - self, success=None, - ): + + def __init__(self, success=None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -10081,13 +8705,11 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("exist_server_result") + oprot.writeStructBegin('exist_server_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.BOOL, 0) + oprot.writeFieldBegin('success', TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -10097,18 +8719,19 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(exist_server_result) -exist_server_result.thrift_spec = ((0, TType.BOOL, "success", None, None,),) # 0 +exist_server_result.thrift_spec = ( + (0, TType.BOOL, 'success', None, None, ), # 0 +) class create_and_deploy_playbook_args(object): @@ -10120,19 +8743,14 @@ class create_and_deploy_playbook_args(object): """ - def __init__( - self, public_key=None, playbooks_information=None, openstack_id=None, - ): + + def __init__(self, public_key=None, playbooks_information=None, openstack_id=None,): self.public_key = public_key self.playbooks_information = playbooks_information self.openstack_id = openstack_id def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -10142,11 +8760,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.public_key = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.public_key = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: @@ -10154,24 +8768,12 @@ def read(self, iprot): self.playbooks_information = {} (_ktype323, _vtype324, _size322) = iprot.readMapBegin() for _i326 in range(_size322): - _key327 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + _key327 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() _val328 = {} (_ktype330, _vtype331, _size329) = iprot.readMapBegin() for _i333 in range(_size329): - _key334 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) - _val335 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + _key334 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val335 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() _val328[_key334] = _val335 iprot.readMapEnd() self.playbooks_information[_key327] = _val328 @@ -10180,11 +8782,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.openstack_id = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.openstack_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -10194,50 +8792,28 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("create_and_deploy_playbook_args") + oprot.writeStructBegin('create_and_deploy_playbook_args') if self.public_key is not None: - oprot.writeFieldBegin("public_key", TType.STRING, 1) - oprot.writeString( - self.public_key.encode("utf-8") - if sys.version_info[0] == 2 - else self.public_key - ) + oprot.writeFieldBegin('public_key', TType.STRING, 1) + oprot.writeString(self.public_key.encode('utf-8') if sys.version_info[0] == 2 else self.public_key) oprot.writeFieldEnd() if self.playbooks_information is not None: - oprot.writeFieldBegin("playbooks_information", TType.MAP, 2) - oprot.writeMapBegin( - TType.STRING, TType.MAP, len(self.playbooks_information) - ) + oprot.writeFieldBegin('playbooks_information', TType.MAP, 2) + oprot.writeMapBegin(TType.STRING, TType.MAP, len(self.playbooks_information)) for kiter336, viter337 in self.playbooks_information.items(): - oprot.writeString( - kiter336.encode("utf-8") if sys.version_info[0] == 2 else kiter336 - ) + oprot.writeString(kiter336.encode('utf-8') if sys.version_info[0] == 2 else kiter336) oprot.writeMapBegin(TType.STRING, TType.STRING, len(viter337)) for kiter338, viter339 in viter337.items(): - oprot.writeString( - kiter338.encode("utf-8") - if sys.version_info[0] == 2 - else kiter338 - ) - oprot.writeString( - viter339.encode("utf-8") - if sys.version_info[0] == 2 - else viter339 - ) + oprot.writeString(kiter338.encode('utf-8') if sys.version_info[0] == 2 else kiter338) + oprot.writeString(viter339.encode('utf-8') if sys.version_info[0] == 2 else viter339) oprot.writeMapEnd() oprot.writeMapEnd() oprot.writeFieldEnd() if self.openstack_id is not None: - oprot.writeFieldBegin("openstack_id", TType.STRING, 3) - oprot.writeString( - self.openstack_id.encode("utf-8") - if sys.version_info[0] == 2 - else self.openstack_id - ) + oprot.writeFieldBegin('openstack_id', TType.STRING, 3) + oprot.writeString(self.openstack_id.encode('utf-8') if sys.version_info[0] == 2 else self.openstack_id) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -10246,34 +8822,21 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(create_and_deploy_playbook_args) create_and_deploy_playbook_args.thrift_spec = ( None, # 0 - (1, TType.STRING, "public_key", "UTF8", None,), # 1 - ( - 2, - TType.MAP, - "playbooks_information", - ( - TType.STRING, - "UTF8", - TType.MAP, - (TType.STRING, "UTF8", TType.STRING, "UTF8", False), - False, - ), - None, - ), # 2 - (3, TType.STRING, "openstack_id", "UTF8", None,), # 3 + (1, TType.STRING, 'public_key', 'UTF8', None, ), # 1 + (2, TType.MAP, 'playbooks_information', (TType.STRING, 'UTF8', TType.MAP, (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), False), None, ), # 2 + (3, TType.STRING, 'openstack_id', 'UTF8', None, ), # 3 ) @@ -10284,17 +8847,12 @@ class create_and_deploy_playbook_result(object): """ - def __init__( - self, success=None, - ): + + def __init__(self, success=None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -10314,13 +8872,11 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("create_and_deploy_playbook_result") + oprot.writeStructBegin('create_and_deploy_playbook_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.I32, 0) + oprot.writeFieldBegin('success', TType.I32, 0) oprot.writeI32(self.success) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -10330,19 +8886,18 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(create_and_deploy_playbook_result) create_and_deploy_playbook_result.thrift_spec = ( - (0, TType.I32, "success", None, None,), # 0 + (0, TType.I32, 'success', None, None, ), # 0 ) @@ -10353,17 +8908,12 @@ class get_playbook_logs_args(object): """ - def __init__( - self, openstack_id=None, - ): + + def __init__(self, openstack_id=None,): self.openstack_id = openstack_id def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -10373,11 +8923,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.openstack_id = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.openstack_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -10387,18 +8933,12 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_playbook_logs_args") + oprot.writeStructBegin('get_playbook_logs_args') if self.openstack_id is not None: - oprot.writeFieldBegin("openstack_id", TType.STRING, 1) - oprot.writeString( - self.openstack_id.encode("utf-8") - if sys.version_info[0] == 2 - else self.openstack_id - ) + oprot.writeFieldBegin('openstack_id', TType.STRING, 1) + oprot.writeString(self.openstack_id.encode('utf-8') if sys.version_info[0] == 2 else self.openstack_id) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -10407,20 +8947,19 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(get_playbook_logs_args) get_playbook_logs_args.thrift_spec = ( None, # 0 - (1, TType.STRING, "openstack_id", "UTF8", None,), # 1 + (1, TType.STRING, 'openstack_id', 'UTF8', None, ), # 1 ) @@ -10431,17 +8970,12 @@ class get_playbook_logs_result(object): """ - def __init__( - self, success=None, - ): + + def __init__(self, success=None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -10462,13 +8996,11 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_playbook_logs_result") + oprot.writeStructBegin('get_playbook_logs_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -10478,29 +9010,26 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(get_playbook_logs_result) get_playbook_logs_result.thrift_spec = ( - (0, TType.STRUCT, "success", [PlaybookResult, None], None,), # 0 + (0, TType.STRUCT, 'success', [PlaybookResult, None], None, ), # 0 ) class has_forc_args(object): + + def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -10515,11 +9044,9 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("has_forc_args") + oprot.writeStructBegin('has_forc_args') oprot.writeFieldStop() oprot.writeStructEnd() @@ -10527,18 +9054,18 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(has_forc_args) -has_forc_args.thrift_spec = () +has_forc_args.thrift_spec = ( +) class has_forc_result(object): @@ -10548,17 +9075,12 @@ class has_forc_result(object): """ - def __init__( - self, success=None, - ): + + def __init__(self, success=None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -10578,13 +9100,11 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("has_forc_result") + oprot.writeStructBegin('has_forc_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.BOOL, 0) + oprot.writeFieldBegin('success', TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -10594,27 +9114,26 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(has_forc_result) -has_forc_result.thrift_spec = ((0, TType.BOOL, "success", None, None,),) # 0 +has_forc_result.thrift_spec = ( + (0, TType.BOOL, 'success', None, None, ), # 0 +) class get_forc_url_args(object): + + def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -10629,11 +9148,9 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_forc_url_args") + oprot.writeStructBegin('get_forc_url_args') oprot.writeFieldStop() oprot.writeStructEnd() @@ -10641,18 +9158,18 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(get_forc_url_args) -get_forc_url_args.thrift_spec = () +get_forc_url_args.thrift_spec = ( +) class get_forc_url_result(object): @@ -10662,17 +9179,12 @@ class get_forc_url_result(object): """ - def __init__( - self, success=None, - ): + + def __init__(self, success=None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -10682,11 +9194,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRING: - self.success = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.success = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -10696,18 +9204,12 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_forc_url_result") + oprot.writeStructBegin('get_forc_url_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRING, 0) - oprot.writeString( - self.success.encode("utf-8") - if sys.version_info[0] == 2 - else self.success - ) + oprot.writeFieldBegin('success', TType.STRING, 0) + oprot.writeString(self.success.encode('utf-8') if sys.version_info[0] == 2 else self.success) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -10716,18 +9218,19 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(get_forc_url_result) -get_forc_url_result.thrift_spec = ((0, TType.STRING, "success", "UTF8", None,),) # 0 +get_forc_url_result.thrift_spec = ( + (0, TType.STRING, 'success', 'UTF8', None, ), # 0 +) class create_backend_args(object): @@ -10740,20 +9243,15 @@ class create_backend_args(object): """ - def __init__( - self, elixir_id=None, user_key_url=None, template=None, upstream_url=None, - ): + + def __init__(self, elixir_id=None, user_key_url=None, template=None, upstream_url=None,): self.elixir_id = elixir_id self.user_key_url = user_key_url self.template = template self.upstream_url = upstream_url def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -10763,38 +9261,22 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.elixir_id = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.elixir_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.user_key_url = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.user_key_url = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.template = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.template = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.upstream_url = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.upstream_url = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -10804,42 +9286,24 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("create_backend_args") + oprot.writeStructBegin('create_backend_args') if self.elixir_id is not None: - oprot.writeFieldBegin("elixir_id", TType.STRING, 1) - oprot.writeString( - self.elixir_id.encode("utf-8") - if sys.version_info[0] == 2 - else self.elixir_id - ) + oprot.writeFieldBegin('elixir_id', TType.STRING, 1) + oprot.writeString(self.elixir_id.encode('utf-8') if sys.version_info[0] == 2 else self.elixir_id) oprot.writeFieldEnd() if self.user_key_url is not None: - oprot.writeFieldBegin("user_key_url", TType.STRING, 2) - oprot.writeString( - self.user_key_url.encode("utf-8") - if sys.version_info[0] == 2 - else self.user_key_url - ) + oprot.writeFieldBegin('user_key_url', TType.STRING, 2) + oprot.writeString(self.user_key_url.encode('utf-8') if sys.version_info[0] == 2 else self.user_key_url) oprot.writeFieldEnd() if self.template is not None: - oprot.writeFieldBegin("template", TType.STRING, 3) - oprot.writeString( - self.template.encode("utf-8") - if sys.version_info[0] == 2 - else self.template - ) + oprot.writeFieldBegin('template', TType.STRING, 3) + oprot.writeString(self.template.encode('utf-8') if sys.version_info[0] == 2 else self.template) oprot.writeFieldEnd() if self.upstream_url is not None: - oprot.writeFieldBegin("upstream_url", TType.STRING, 4) - oprot.writeString( - self.upstream_url.encode("utf-8") - if sys.version_info[0] == 2 - else self.upstream_url - ) + oprot.writeFieldBegin('upstream_url', TType.STRING, 4) + oprot.writeString(self.upstream_url.encode('utf-8') if sys.version_info[0] == 2 else self.upstream_url) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -10848,23 +9312,22 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(create_backend_args) create_backend_args.thrift_spec = ( None, # 0 - (1, TType.STRING, "elixir_id", "UTF8", None,), # 1 - (2, TType.STRING, "user_key_url", "UTF8", None,), # 2 - (3, TType.STRING, "template", "UTF8", None,), # 3 - (4, TType.STRING, "upstream_url", "UTF8", None,), # 4 + (1, TType.STRING, 'elixir_id', 'UTF8', None, ), # 1 + (2, TType.STRING, 'user_key_url', 'UTF8', None, ), # 2 + (3, TType.STRING, 'template', 'UTF8', None, ), # 3 + (4, TType.STRING, 'upstream_url', 'UTF8', None, ), # 4 ) @@ -10875,17 +9338,12 @@ class create_backend_result(object): """ - def __init__( - self, success=None, - ): + + def __init__(self, success=None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -10906,13 +9364,11 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("create_backend_result") + oprot.writeStructBegin('create_backend_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -10922,29 +9378,26 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(create_backend_result) create_backend_result.thrift_spec = ( - (0, TType.STRUCT, "success", [Backend, None], None,), # 0 + (0, TType.STRUCT, 'success', [Backend, None], None, ), # 0 ) class get_backends_args(object): + + def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -10959,11 +9412,9 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_backends_args") + oprot.writeStructBegin('get_backends_args') oprot.writeFieldStop() oprot.writeStructEnd() @@ -10971,18 +9422,18 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(get_backends_args) -get_backends_args.thrift_spec = () +get_backends_args.thrift_spec = ( +) class get_backends_result(object): @@ -10992,17 +9443,12 @@ class get_backends_result(object): """ - def __init__( - self, success=None, - ): + + def __init__(self, success=None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -11028,13 +9474,11 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_backends_result") + oprot.writeStructBegin('get_backends_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.LIST, 0) + oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) for iter346 in self.success: iter346.write(oprot) @@ -11047,19 +9491,18 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(get_backends_result) get_backends_result.thrift_spec = ( - (0, TType.LIST, "success", (TType.STRUCT, [Backend, None], False), None,), # 0 + (0, TType.LIST, 'success', (TType.STRUCT, [Backend, None], False), None, ), # 0 ) @@ -11070,17 +9513,12 @@ class get_backends_by_owner_args(object): """ - def __init__( - self, elixir_id=None, - ): + + def __init__(self, elixir_id=None,): self.elixir_id = elixir_id def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -11090,11 +9528,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.elixir_id = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.elixir_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -11104,18 +9538,12 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_backends_by_owner_args") + oprot.writeStructBegin('get_backends_by_owner_args') if self.elixir_id is not None: - oprot.writeFieldBegin("elixir_id", TType.STRING, 1) - oprot.writeString( - self.elixir_id.encode("utf-8") - if sys.version_info[0] == 2 - else self.elixir_id - ) + oprot.writeFieldBegin('elixir_id', TType.STRING, 1) + oprot.writeString(self.elixir_id.encode('utf-8') if sys.version_info[0] == 2 else self.elixir_id) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -11124,20 +9552,19 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(get_backends_by_owner_args) get_backends_by_owner_args.thrift_spec = ( None, # 0 - (1, TType.STRING, "elixir_id", "UTF8", None,), # 1 + (1, TType.STRING, 'elixir_id', 'UTF8', None, ), # 1 ) @@ -11148,17 +9575,12 @@ class get_backends_by_owner_result(object): """ - def __init__( - self, success=None, - ): + + def __init__(self, success=None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -11184,13 +9606,11 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_backends_by_owner_result") + oprot.writeStructBegin('get_backends_by_owner_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.LIST, 0) + oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) for iter353 in self.success: iter353.write(oprot) @@ -11203,19 +9623,18 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(get_backends_by_owner_result) get_backends_by_owner_result.thrift_spec = ( - (0, TType.LIST, "success", (TType.STRUCT, [Backend, None], False), None,), # 0 + (0, TType.LIST, 'success', (TType.STRUCT, [Backend, None], False), None, ), # 0 ) @@ -11226,17 +9645,12 @@ class get_backends_by_template_args(object): """ - def __init__( - self, template=None, - ): + + def __init__(self, template=None,): self.template = template def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -11246,11 +9660,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.template = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.template = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -11260,18 +9670,12 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_backends_by_template_args") + oprot.writeStructBegin('get_backends_by_template_args') if self.template is not None: - oprot.writeFieldBegin("template", TType.STRING, 1) - oprot.writeString( - self.template.encode("utf-8") - if sys.version_info[0] == 2 - else self.template - ) + oprot.writeFieldBegin('template', TType.STRING, 1) + oprot.writeString(self.template.encode('utf-8') if sys.version_info[0] == 2 else self.template) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -11280,20 +9684,19 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(get_backends_by_template_args) get_backends_by_template_args.thrift_spec = ( None, # 0 - (1, TType.STRING, "template", "UTF8", None,), # 1 + (1, TType.STRING, 'template', 'UTF8', None, ), # 1 ) @@ -11304,17 +9707,12 @@ class get_backends_by_template_result(object): """ - def __init__( - self, success=None, - ): + + def __init__(self, success=None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -11340,13 +9738,11 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_backends_by_template_result") + oprot.writeStructBegin('get_backends_by_template_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.LIST, 0) + oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) for iter360 in self.success: iter360.write(oprot) @@ -11359,19 +9755,18 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(get_backends_by_template_result) get_backends_by_template_result.thrift_spec = ( - (0, TType.LIST, "success", (TType.STRUCT, [Backend, None], False), None,), # 0 + (0, TType.LIST, 'success', (TType.STRUCT, [Backend, None], False), None, ), # 0 ) @@ -11382,17 +9777,12 @@ class get_backend_by_id_args(object): """ - def __init__( - self, id=None, - ): + + def __init__(self, id=None,): self.id = id def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -11412,13 +9802,11 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_backend_by_id_args") + oprot.writeStructBegin('get_backend_by_id_args') if self.id is not None: - oprot.writeFieldBegin("id", TType.I64, 1) + oprot.writeFieldBegin('id', TType.I64, 1) oprot.writeI64(self.id) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -11428,20 +9816,19 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(get_backend_by_id_args) get_backend_by_id_args.thrift_spec = ( None, # 0 - (1, TType.I64, "id", None, None,), # 1 + (1, TType.I64, 'id', None, None, ), # 1 ) @@ -11452,17 +9839,12 @@ class get_backend_by_id_result(object): """ - def __init__( - self, success=None, - ): + + def __init__(self, success=None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -11483,13 +9865,11 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_backend_by_id_result") + oprot.writeStructBegin('get_backend_by_id_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -11499,19 +9879,18 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(get_backend_by_id_result) get_backend_by_id_result.thrift_spec = ( - (0, TType.STRUCT, "success", [Backend, None], None,), # 0 + (0, TType.STRUCT, 'success', [Backend, None], None, ), # 0 ) @@ -11522,17 +9901,12 @@ class delete_backend_args(object): """ - def __init__( - self, id=None, - ): + + def __init__(self, id=None,): self.id = id def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -11552,13 +9926,11 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("delete_backend_args") + oprot.writeStructBegin('delete_backend_args') if self.id is not None: - oprot.writeFieldBegin("id", TType.I64, 1) + oprot.writeFieldBegin('id', TType.I64, 1) oprot.writeI64(self.id) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -11568,20 +9940,19 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(delete_backend_args) delete_backend_args.thrift_spec = ( None, # 0 - (1, TType.I64, "id", None, None,), # 1 + (1, TType.I64, 'id', None, None, ), # 1 ) @@ -11592,17 +9963,12 @@ class delete_backend_result(object): """ - def __init__( - self, success=None, - ): + + def __init__(self, success=None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -11612,11 +9978,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRING: - self.success = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.success = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -11626,18 +9988,12 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("delete_backend_result") + oprot.writeStructBegin('delete_backend_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRING, 0) - oprot.writeString( - self.success.encode("utf-8") - if sys.version_info[0] == 2 - else self.success - ) + oprot.writeFieldBegin('success', TType.STRING, 0) + oprot.writeString(self.success.encode('utf-8') if sys.version_info[0] == 2 else self.success) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -11646,27 +10002,26 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(delete_backend_result) -delete_backend_result.thrift_spec = ((0, TType.STRING, "success", "UTF8", None,),) # 0 +delete_backend_result.thrift_spec = ( + (0, TType.STRING, 'success', 'UTF8', None, ), # 0 +) class get_templates_args(object): + + def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -11681,11 +10036,9 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_templates_args") + oprot.writeStructBegin('get_templates_args') oprot.writeFieldStop() oprot.writeStructEnd() @@ -11693,18 +10046,18 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(get_templates_args) -get_templates_args.thrift_spec = () +get_templates_args.thrift_spec = ( +) class get_templates_result(object): @@ -11714,17 +10067,12 @@ class get_templates_result(object): """ - def __init__( - self, success=None, - ): + + def __init__(self, success=None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -11740,16 +10088,8 @@ def read(self, iprot): _elem366 = {} (_ktype368, _vtype369, _size367) = iprot.readMapBegin() for _i371 in range(_size367): - _key372 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) - _val373 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + _key372 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val373 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() _elem366[_key372] = _val373 iprot.readMapEnd() self.success.append(_elem366) @@ -11763,27 +10103,17 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_templates_result") + oprot.writeStructBegin('get_templates_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.LIST, 0) + oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.MAP, len(self.success)) for iter374 in self.success: oprot.writeMapBegin(TType.STRING, TType.STRING, len(iter374)) for kiter375, viter376 in iter374.items(): - oprot.writeString( - kiter375.encode("utf-8") - if sys.version_info[0] == 2 - else kiter375 - ) - oprot.writeString( - viter376.encode("utf-8") - if sys.version_info[0] == 2 - else viter376 - ) + oprot.writeString(kiter375.encode('utf-8') if sys.version_info[0] == 2 else kiter375) + oprot.writeString(viter376.encode('utf-8') if sys.version_info[0] == 2 else viter376) oprot.writeMapEnd() oprot.writeListEnd() oprot.writeFieldEnd() @@ -11794,35 +10124,26 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(get_templates_result) get_templates_result.thrift_spec = ( - ( - 0, - TType.LIST, - "success", - (TType.MAP, (TType.STRING, "UTF8", TType.STRING, "UTF8", False), False), - None, - ), # 0 + (0, TType.LIST, 'success', (TType.MAP, (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), False), None, ), # 0 ) class get_allowed_templates_args(object): + + def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -11837,11 +10158,9 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_allowed_templates_args") + oprot.writeStructBegin('get_allowed_templates_args') oprot.writeFieldStop() oprot.writeStructEnd() @@ -11849,18 +10168,18 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(get_allowed_templates_args) -get_allowed_templates_args.thrift_spec = () +get_allowed_templates_args.thrift_spec = ( +) class get_allowed_templates_result(object): @@ -11870,17 +10189,12 @@ class get_allowed_templates_result(object): """ - def __init__( - self, success=None, - ): + + def __init__(self, success=None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -11893,11 +10207,7 @@ def read(self, iprot): self.success = [] (_etype380, _size377) = iprot.readListBegin() for _i381 in range(_size377): - _elem382 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + _elem382 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() self.success.append(_elem382) iprot.readListEnd() else: @@ -11909,18 +10219,14 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_allowed_templates_result") + oprot.writeStructBegin('get_allowed_templates_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.LIST, 0) + oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) for iter383 in self.success: - oprot.writeString( - iter383.encode("utf-8") if sys.version_info[0] == 2 else iter383 - ) + oprot.writeString(iter383.encode('utf-8') if sys.version_info[0] == 2 else iter383) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -11930,19 +10236,18 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(get_allowed_templates_result) get_allowed_templates_result.thrift_spec = ( - (0, TType.LIST, "success", (TType.STRING, "UTF8", False), None,), # 0 + (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0 ) @@ -11953,17 +10258,12 @@ class get_templates_by_template_args(object): """ - def __init__( - self, template_name=None, - ): + + def __init__(self, template_name=None,): self.template_name = template_name def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -11973,11 +10273,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.template_name = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.template_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -11987,18 +10283,12 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_templates_by_template_args") + oprot.writeStructBegin('get_templates_by_template_args') if self.template_name is not None: - oprot.writeFieldBegin("template_name", TType.STRING, 1) - oprot.writeString( - self.template_name.encode("utf-8") - if sys.version_info[0] == 2 - else self.template_name - ) + oprot.writeFieldBegin('template_name', TType.STRING, 1) + oprot.writeString(self.template_name.encode('utf-8') if sys.version_info[0] == 2 else self.template_name) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -12007,20 +10297,19 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(get_templates_by_template_args) get_templates_by_template_args.thrift_spec = ( None, # 0 - (1, TType.STRING, "template_name", "UTF8", None,), # 1 + (1, TType.STRING, 'template_name', 'UTF8', None, ), # 1 ) @@ -12031,17 +10320,12 @@ class get_templates_by_template_result(object): """ - def __init__( - self, success=None, - ): + + def __init__(self, success=None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -12057,16 +10341,8 @@ def read(self, iprot): _elem389 = {} (_ktype391, _vtype392, _size390) = iprot.readMapBegin() for _i394 in range(_size390): - _key395 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) - _val396 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + _key395 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val396 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() _elem389[_key395] = _val396 iprot.readMapEnd() self.success.append(_elem389) @@ -12080,27 +10356,17 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_templates_by_template_result") + oprot.writeStructBegin('get_templates_by_template_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.LIST, 0) + oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.MAP, len(self.success)) for iter397 in self.success: oprot.writeMapBegin(TType.STRING, TType.STRING, len(iter397)) for kiter398, viter399 in iter397.items(): - oprot.writeString( - kiter398.encode("utf-8") - if sys.version_info[0] == 2 - else kiter398 - ) - oprot.writeString( - viter399.encode("utf-8") - if sys.version_info[0] == 2 - else viter399 - ) + oprot.writeString(kiter398.encode('utf-8') if sys.version_info[0] == 2 else kiter398) + oprot.writeString(viter399.encode('utf-8') if sys.version_info[0] == 2 else viter399) oprot.writeMapEnd() oprot.writeListEnd() oprot.writeFieldEnd() @@ -12111,25 +10377,18 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(get_templates_by_template_result) get_templates_by_template_result.thrift_spec = ( - ( - 0, - TType.LIST, - "success", - (TType.MAP, (TType.STRING, "UTF8", TType.STRING, "UTF8", False), False), - None, - ), # 0 + (0, TType.LIST, 'success', (TType.MAP, (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), False), None, ), # 0 ) @@ -12141,18 +10400,13 @@ class check_template_args(object): """ - def __init__( - self, template_name=None, template_version=None, - ): + + def __init__(self, template_name=None, template_version=None,): self.template_name = template_name self.template_version = template_version def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -12162,20 +10416,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.template_name = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.template_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.template_version = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.template_version = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -12185,26 +10431,16 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("check_template_args") + oprot.writeStructBegin('check_template_args') if self.template_name is not None: - oprot.writeFieldBegin("template_name", TType.STRING, 1) - oprot.writeString( - self.template_name.encode("utf-8") - if sys.version_info[0] == 2 - else self.template_name - ) + oprot.writeFieldBegin('template_name', TType.STRING, 1) + oprot.writeString(self.template_name.encode('utf-8') if sys.version_info[0] == 2 else self.template_name) oprot.writeFieldEnd() if self.template_version is not None: - oprot.writeFieldBegin("template_version", TType.STRING, 2) - oprot.writeString( - self.template_version.encode("utf-8") - if sys.version_info[0] == 2 - else self.template_version - ) + oprot.writeFieldBegin('template_version', TType.STRING, 2) + oprot.writeString(self.template_version.encode('utf-8') if sys.version_info[0] == 2 else self.template_version) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -12213,21 +10449,20 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(check_template_args) check_template_args.thrift_spec = ( None, # 0 - (1, TType.STRING, "template_name", "UTF8", None,), # 1 - (2, TType.STRING, "template_version", "UTF8", None,), # 2 + (1, TType.STRING, 'template_name', 'UTF8', None, ), # 1 + (2, TType.STRING, 'template_version', 'UTF8', None, ), # 2 ) @@ -12238,17 +10473,12 @@ class check_template_result(object): """ - def __init__( - self, success=None, - ): + + def __init__(self, success=None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -12261,16 +10491,8 @@ def read(self, iprot): self.success = {} (_ktype401, _vtype402, _size400) = iprot.readMapBegin() for _i404 in range(_size400): - _key405 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) - _val406 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + _key405 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val406 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() self.success[_key405] = _val406 iprot.readMapEnd() else: @@ -12282,21 +10504,15 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("check_template_result") + oprot.writeStructBegin('check_template_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.MAP, 0) + oprot.writeFieldBegin('success', TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success)) for kiter407, viter408 in self.success.items(): - oprot.writeString( - kiter407.encode("utf-8") if sys.version_info[0] == 2 else kiter407 - ) - oprot.writeString( - viter408.encode("utf-8") if sys.version_info[0] == 2 else viter408 - ) + oprot.writeString(kiter407.encode('utf-8') if sys.version_info[0] == 2 else kiter407) + oprot.writeString(viter408.encode('utf-8') if sys.version_info[0] == 2 else viter408) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -12306,25 +10522,18 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(check_template_result) check_template_result.thrift_spec = ( - ( - 0, - TType.MAP, - "success", - (TType.STRING, "UTF8", TType.STRING, "UTF8", False), - None, - ), # 0 + (0, TType.MAP, 'success', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 0 ) @@ -12335,17 +10544,12 @@ class add_udp_security_group_args(object): """ - def __init__( - self, server_id=None, - ): + + def __init__(self, server_id=None,): self.server_id = server_id def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -12355,11 +10559,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.server_id = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.server_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -12369,18 +10569,12 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("add_udp_security_group_args") + oprot.writeStructBegin('add_udp_security_group_args') if self.server_id is not None: - oprot.writeFieldBegin("server_id", TType.STRING, 1) - oprot.writeString( - self.server_id.encode("utf-8") - if sys.version_info[0] == 2 - else self.server_id - ) + oprot.writeFieldBegin('server_id', TType.STRING, 1) + oprot.writeString(self.server_id.encode('utf-8') if sys.version_info[0] == 2 else self.server_id) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -12389,20 +10583,19 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(add_udp_security_group_args) add_udp_security_group_args.thrift_spec = ( None, # 0 - (1, TType.STRING, "server_id", "UTF8", None,), # 1 + (1, TType.STRING, 'server_id', 'UTF8', None, ), # 1 ) @@ -12415,19 +10608,14 @@ class add_udp_security_group_result(object): """ - def __init__( - self, success=None, r=None, s=None, - ): + + def __init__(self, success=None, r=None, s=None,): self.success = success self.r = r self.s = s def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -12459,21 +10647,19 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("add_udp_security_group_result") + oprot.writeStructBegin('add_udp_security_group_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.BOOL, 0) + oprot.writeFieldBegin('success', TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() if self.r is not None: - oprot.writeFieldBegin("r", TType.STRUCT, 1) + oprot.writeFieldBegin('r', TType.STRUCT, 1) self.r.write(oprot) oprot.writeFieldEnd() if self.s is not None: - oprot.writeFieldBegin("s", TType.STRUCT, 2) + oprot.writeFieldBegin('s', TType.STRUCT, 2) self.s.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -12483,31 +10669,28 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(add_udp_security_group_result) add_udp_security_group_result.thrift_spec = ( - (0, TType.BOOL, "success", None, None,), # 0 - (1, TType.STRUCT, "r", [ressourceException, None], None,), # 1 - (2, TType.STRUCT, "s", [serverNotFoundException, None], None,), # 2 + (0, TType.BOOL, 'success', None, None, ), # 0 + (1, TType.STRUCT, 'r', [ressourceException, None], None, ), # 1 + (2, TType.STRUCT, 's', [serverNotFoundException, None], None, ), # 2 ) class get_servers_args(object): + + def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -12522,11 +10705,9 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_servers_args") + oprot.writeStructBegin('get_servers_args') oprot.writeFieldStop() oprot.writeStructEnd() @@ -12534,18 +10715,18 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(get_servers_args) -get_servers_args.thrift_spec = () +get_servers_args.thrift_spec = ( +) class get_servers_result(object): @@ -12555,17 +10736,12 @@ class get_servers_result(object): """ - def __init__( - self, success=None, - ): + + def __init__(self, success=None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -12591,13 +10767,11 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_servers_result") + oprot.writeStructBegin('get_servers_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.LIST, 0) + oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) for iter415 in self.success: iter415.write(oprot) @@ -12610,19 +10784,18 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(get_servers_result) get_servers_result.thrift_spec = ( - (0, TType.LIST, "success", (TType.STRUCT, [VM, None], False), None,), # 0 + (0, TType.LIST, 'success', (TType.STRUCT, [VM, None], False), None, ), # 0 ) @@ -12633,17 +10806,12 @@ class get_servers_by_ids_args(object): """ - def __init__( - self, server_ids=None, - ): + + def __init__(self, server_ids=None,): self.server_ids = server_ids def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -12656,11 +10824,7 @@ def read(self, iprot): self.server_ids = [] (_etype419, _size416) = iprot.readListBegin() for _i420 in range(_size416): - _elem421 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + _elem421 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() self.server_ids.append(_elem421) iprot.readListEnd() else: @@ -12672,18 +10836,14 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_servers_by_ids_args") + oprot.writeStructBegin('get_servers_by_ids_args') if self.server_ids is not None: - oprot.writeFieldBegin("server_ids", TType.LIST, 1) + oprot.writeFieldBegin('server_ids', TType.LIST, 1) oprot.writeListBegin(TType.STRING, len(self.server_ids)) for iter422 in self.server_ids: - oprot.writeString( - iter422.encode("utf-8") if sys.version_info[0] == 2 else iter422 - ) + oprot.writeString(iter422.encode('utf-8') if sys.version_info[0] == 2 else iter422) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -12693,20 +10853,19 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(get_servers_by_ids_args) get_servers_by_ids_args.thrift_spec = ( None, # 0 - (1, TType.LIST, "server_ids", (TType.STRING, "UTF8", False), None,), # 1 + (1, TType.LIST, 'server_ids', (TType.STRING, 'UTF8', False), None, ), # 1 ) @@ -12717,17 +10876,12 @@ class get_servers_by_ids_result(object): """ - def __init__( - self, success=None, - ): + + def __init__(self, success=None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -12753,13 +10907,11 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_servers_by_ids_result") + oprot.writeStructBegin('get_servers_by_ids_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.LIST, 0) + oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) for iter429 in self.success: iter429.write(oprot) @@ -12772,19 +10924,18 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(get_servers_by_ids_result) get_servers_by_ids_result.thrift_spec = ( - (0, TType.LIST, "success", (TType.STRUCT, [VM, None], False), None,), # 0 + (0, TType.LIST, 'success', (TType.STRUCT, [VM, None], False), None, ), # 0 ) @@ -12795,17 +10946,12 @@ class get_servers_by_bibigrid_id_args(object): """ - def __init__( - self, bibigrid_id=None, - ): + + def __init__(self, bibigrid_id=None,): self.bibigrid_id = bibigrid_id def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -12815,11 +10961,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.bibigrid_id = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.bibigrid_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -12829,18 +10971,12 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_servers_by_bibigrid_id_args") + oprot.writeStructBegin('get_servers_by_bibigrid_id_args') if self.bibigrid_id is not None: - oprot.writeFieldBegin("bibigrid_id", TType.STRING, 1) - oprot.writeString( - self.bibigrid_id.encode("utf-8") - if sys.version_info[0] == 2 - else self.bibigrid_id - ) + oprot.writeFieldBegin('bibigrid_id', TType.STRING, 1) + oprot.writeString(self.bibigrid_id.encode('utf-8') if sys.version_info[0] == 2 else self.bibigrid_id) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -12849,20 +10985,19 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(get_servers_by_bibigrid_id_args) get_servers_by_bibigrid_id_args.thrift_spec = ( None, # 0 - (1, TType.STRING, "bibigrid_id", "UTF8", None,), # 1 + (1, TType.STRING, 'bibigrid_id', 'UTF8', None, ), # 1 ) @@ -12873,17 +11008,12 @@ class get_servers_by_bibigrid_id_result(object): """ - def __init__( - self, success=None, - ): + + def __init__(self, success=None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -12909,13 +11039,11 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_servers_by_bibigrid_id_result") + oprot.writeStructBegin('get_servers_by_bibigrid_id_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.LIST, 0) + oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) for iter436 in self.success: iter436.write(oprot) @@ -12928,19 +11056,18 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(get_servers_by_bibigrid_id_result) get_servers_by_bibigrid_id_result.thrift_spec = ( - (0, TType.LIST, "success", (TType.STRUCT, [VM, None], False), None,), # 0 + (0, TType.LIST, 'success', (TType.STRUCT, [VM, None], False), None, ), # 0 ) @@ -12951,17 +11078,12 @@ class get_cluster_info_args(object): """ - def __init__( - self, cluster_id=None, - ): + + def __init__(self, cluster_id=None,): self.cluster_id = cluster_id def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -12971,11 +11093,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.cluster_id = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.cluster_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -12985,18 +11103,12 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_cluster_info_args") + oprot.writeStructBegin('get_cluster_info_args') if self.cluster_id is not None: - oprot.writeFieldBegin("cluster_id", TType.STRING, 1) - oprot.writeString( - self.cluster_id.encode("utf-8") - if sys.version_info[0] == 2 - else self.cluster_id - ) + oprot.writeFieldBegin('cluster_id', TType.STRING, 1) + oprot.writeString(self.cluster_id.encode('utf-8') if sys.version_info[0] == 2 else self.cluster_id) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -13005,20 +11117,19 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(get_cluster_info_args) get_cluster_info_args.thrift_spec = ( None, # 0 - (1, TType.STRING, "cluster_id", "UTF8", None,), # 1 + (1, TType.STRING, 'cluster_id', 'UTF8', None, ), # 1 ) @@ -13029,17 +11140,12 @@ class get_cluster_info_result(object): """ - def __init__( - self, success=None, - ): + + def __init__(self, success=None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -13060,13 +11166,11 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_cluster_info_result") + oprot.writeStructBegin('get_cluster_info_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -13076,19 +11180,18 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(get_cluster_info_result) get_cluster_info_result.thrift_spec = ( - (0, TType.STRUCT, "success", [ClusterInfo, None], None,), # 0 + (0, TType.STRUCT, 'success', [ClusterInfo, None], None, ), # 0 ) @@ -13099,17 +11202,12 @@ class get_cluster_status_args(object): """ - def __init__( - self, cluster_id=None, - ): + + def __init__(self, cluster_id=None,): self.cluster_id = cluster_id def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -13119,11 +11217,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.cluster_id = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.cluster_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -13133,18 +11227,12 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_cluster_status_args") + oprot.writeStructBegin('get_cluster_status_args') if self.cluster_id is not None: - oprot.writeFieldBegin("cluster_id", TType.STRING, 1) - oprot.writeString( - self.cluster_id.encode("utf-8") - if sys.version_info[0] == 2 - else self.cluster_id - ) + oprot.writeFieldBegin('cluster_id', TType.STRING, 1) + oprot.writeString(self.cluster_id.encode('utf-8') if sys.version_info[0] == 2 else self.cluster_id) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -13153,20 +11241,19 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(get_cluster_status_args) get_cluster_status_args.thrift_spec = ( None, # 0 - (1, TType.STRING, "cluster_id", "UTF8", None,), # 1 + (1, TType.STRING, 'cluster_id', 'UTF8', None, ), # 1 ) @@ -13177,17 +11264,12 @@ class get_cluster_status_result(object): """ - def __init__( - self, success=None, - ): + + def __init__(self, success=None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -13200,16 +11282,8 @@ def read(self, iprot): self.success = {} (_ktype438, _vtype439, _size437) = iprot.readMapBegin() for _i441 in range(_size437): - _key442 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) - _val443 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + _key442 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val443 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() self.success[_key442] = _val443 iprot.readMapEnd() else: @@ -13221,21 +11295,15 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_cluster_status_result") + oprot.writeStructBegin('get_cluster_status_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.MAP, 0) + oprot.writeFieldBegin('success', TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success)) for kiter444, viter445 in self.success.items(): - oprot.writeString( - kiter444.encode("utf-8") if sys.version_info[0] == 2 else kiter444 - ) - oprot.writeString( - viter445.encode("utf-8") if sys.version_info[0] == 2 else viter445 - ) + oprot.writeString(kiter444.encode('utf-8') if sys.version_info[0] == 2 else kiter444) + oprot.writeString(viter445.encode('utf-8') if sys.version_info[0] == 2 else viter445) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -13245,25 +11313,18 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(get_cluster_status_result) get_cluster_status_result.thrift_spec = ( - ( - 0, - TType.MAP, - "success", - (TType.STRING, "UTF8", TType.STRING, "UTF8", False), - None, - ), # 0 + (0, TType.MAP, 'success', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 0 ) @@ -13274,17 +11335,12 @@ class get_server_args(object): """ - def __init__( - self, openstack_id=None, - ): + + def __init__(self, openstack_id=None,): self.openstack_id = openstack_id def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -13294,11 +11350,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.openstack_id = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.openstack_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -13308,18 +11360,12 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_server_args") + oprot.writeStructBegin('get_server_args') if self.openstack_id is not None: - oprot.writeFieldBegin("openstack_id", TType.STRING, 1) - oprot.writeString( - self.openstack_id.encode("utf-8") - if sys.version_info[0] == 2 - else self.openstack_id - ) + oprot.writeFieldBegin('openstack_id', TType.STRING, 1) + oprot.writeString(self.openstack_id.encode('utf-8') if sys.version_info[0] == 2 else self.openstack_id) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -13328,20 +11374,19 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(get_server_args) get_server_args.thrift_spec = ( None, # 0 - (1, TType.STRING, "openstack_id", "UTF8", None,), # 1 + (1, TType.STRING, 'openstack_id', 'UTF8', None, ), # 1 ) @@ -13353,18 +11398,13 @@ class get_server_result(object): """ - def __init__( - self, success=None, e=None, - ): + + def __init__(self, success=None, e=None,): self.success = success self.e = e def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -13391,17 +11431,15 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_server_result") + oprot.writeStructBegin('get_server_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: - oprot.writeFieldBegin("e", TType.STRUCT, 1) + oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -13411,20 +11449,19 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(get_server_result) get_server_result.thrift_spec = ( - (0, TType.STRUCT, "success", [VM, None], None,), # 0 - (1, TType.STRUCT, "e", [serverNotFoundException, None], None,), # 1 + (0, TType.STRUCT, 'success', [VM, None], None, ), # 0 + (1, TType.STRUCT, 'e', [serverNotFoundException, None], None, ), # 1 ) @@ -13435,17 +11472,12 @@ class stop_server_args(object): """ - def __init__( - self, openstack_id=None, - ): + + def __init__(self, openstack_id=None,): self.openstack_id = openstack_id def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -13455,11 +11487,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.openstack_id = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.openstack_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -13469,18 +11497,12 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("stop_server_args") + oprot.writeStructBegin('stop_server_args') if self.openstack_id is not None: - oprot.writeFieldBegin("openstack_id", TType.STRING, 1) - oprot.writeString( - self.openstack_id.encode("utf-8") - if sys.version_info[0] == 2 - else self.openstack_id - ) + oprot.writeFieldBegin('openstack_id', TType.STRING, 1) + oprot.writeString(self.openstack_id.encode('utf-8') if sys.version_info[0] == 2 else self.openstack_id) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -13489,20 +11511,19 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(stop_server_args) stop_server_args.thrift_spec = ( None, # 0 - (1, TType.STRING, "openstack_id", "UTF8", None,), # 1 + (1, TType.STRING, 'openstack_id', 'UTF8', None, ), # 1 ) @@ -13514,18 +11535,13 @@ class stop_server_result(object): """ - def __init__( - self, success=None, e=None, - ): + + def __init__(self, success=None, e=None,): self.success = success self.e = e def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -13551,17 +11567,15 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("stop_server_result") + oprot.writeStructBegin('stop_server_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.BOOL, 0) + oprot.writeFieldBegin('success', TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() if self.e is not None: - oprot.writeFieldBegin("e", TType.STRUCT, 1) + oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -13571,20 +11585,19 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(stop_server_result) stop_server_result.thrift_spec = ( - (0, TType.BOOL, "success", None, None,), # 0 - (1, TType.STRUCT, "e", [serverNotFoundException, None], None,), # 1 + (0, TType.BOOL, 'success', None, None, ), # 0 + (1, TType.STRUCT, 'e', [serverNotFoundException, None], None, ), # 1 ) @@ -13599,14 +11612,8 @@ class create_snapshot_args(object): """ - def __init__( - self, - openstack_id=None, - name=None, - elixir_id=None, - base_tags=None, - description=None, - ): + + def __init__(self, openstack_id=None, name=None, elixir_id=None, base_tags=None, description=None,): self.openstack_id = openstack_id self.name = name self.elixir_id = elixir_id @@ -13614,11 +11621,7 @@ def __init__( self.description = description def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -13628,29 +11631,17 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.openstack_id = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.openstack_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.name = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.elixir_id = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.elixir_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: @@ -13658,22 +11649,14 @@ def read(self, iprot): self.base_tags = [] (_etype449, _size446) = iprot.readListBegin() for _i450 in range(_size446): - _elem451 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + _elem451 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() self.base_tags.append(_elem451) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.description = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.description = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -13683,49 +11666,31 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("create_snapshot_args") + oprot.writeStructBegin('create_snapshot_args') if self.openstack_id is not None: - oprot.writeFieldBegin("openstack_id", TType.STRING, 1) - oprot.writeString( - self.openstack_id.encode("utf-8") - if sys.version_info[0] == 2 - else self.openstack_id - ) + oprot.writeFieldBegin('openstack_id', TType.STRING, 1) + oprot.writeString(self.openstack_id.encode('utf-8') if sys.version_info[0] == 2 else self.openstack_id) oprot.writeFieldEnd() if self.name is not None: - oprot.writeFieldBegin("name", TType.STRING, 2) - oprot.writeString( - self.name.encode("utf-8") if sys.version_info[0] == 2 else self.name - ) + oprot.writeFieldBegin('name', TType.STRING, 2) + oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name) oprot.writeFieldEnd() if self.elixir_id is not None: - oprot.writeFieldBegin("elixir_id", TType.STRING, 3) - oprot.writeString( - self.elixir_id.encode("utf-8") - if sys.version_info[0] == 2 - else self.elixir_id - ) + oprot.writeFieldBegin('elixir_id', TType.STRING, 3) + oprot.writeString(self.elixir_id.encode('utf-8') if sys.version_info[0] == 2 else self.elixir_id) oprot.writeFieldEnd() if self.base_tags is not None: - oprot.writeFieldBegin("base_tags", TType.LIST, 4) + oprot.writeFieldBegin('base_tags', TType.LIST, 4) oprot.writeListBegin(TType.STRING, len(self.base_tags)) for iter452 in self.base_tags: - oprot.writeString( - iter452.encode("utf-8") if sys.version_info[0] == 2 else iter452 - ) + oprot.writeString(iter452.encode('utf-8') if sys.version_info[0] == 2 else iter452) oprot.writeListEnd() oprot.writeFieldEnd() if self.description is not None: - oprot.writeFieldBegin("description", TType.STRING, 5) - oprot.writeString( - self.description.encode("utf-8") - if sys.version_info[0] == 2 - else self.description - ) + oprot.writeFieldBegin('description', TType.STRING, 5) + oprot.writeString(self.description.encode('utf-8') if sys.version_info[0] == 2 else self.description) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -13734,24 +11699,23 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(create_snapshot_args) create_snapshot_args.thrift_spec = ( None, # 0 - (1, TType.STRING, "openstack_id", "UTF8", None,), # 1 - (2, TType.STRING, "name", "UTF8", None,), # 2 - (3, TType.STRING, "elixir_id", "UTF8", None,), # 3 - (4, TType.LIST, "base_tags", (TType.STRING, "UTF8", False), None,), # 4 - (5, TType.STRING, "description", "UTF8", None,), # 5 + (1, TType.STRING, 'openstack_id', 'UTF8', None, ), # 1 + (2, TType.STRING, 'name', 'UTF8', None, ), # 2 + (3, TType.STRING, 'elixir_id', 'UTF8', None, ), # 3 + (4, TType.LIST, 'base_tags', (TType.STRING, 'UTF8', False), None, ), # 4 + (5, TType.STRING, 'description', 'UTF8', None, ), # 5 ) @@ -13763,18 +11727,13 @@ class create_snapshot_result(object): """ - def __init__( - self, success=None, e=None, - ): + + def __init__(self, success=None, e=None,): self.success = success self.e = e def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -13784,11 +11743,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRING: - self.success = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.success = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 1: @@ -13804,21 +11759,15 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("create_snapshot_result") + oprot.writeStructBegin('create_snapshot_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRING, 0) - oprot.writeString( - self.success.encode("utf-8") - if sys.version_info[0] == 2 - else self.success - ) + oprot.writeFieldBegin('success', TType.STRING, 0) + oprot.writeString(self.success.encode('utf-8') if sys.version_info[0] == 2 else self.success) oprot.writeFieldEnd() if self.e is not None: - oprot.writeFieldBegin("e", TType.STRUCT, 1) + oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -13828,30 +11777,27 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(create_snapshot_result) create_snapshot_result.thrift_spec = ( - (0, TType.STRING, "success", "UTF8", None,), # 0 - (1, TType.STRUCT, "e", [serverNotFoundException, None], None,), # 1 + (0, TType.STRING, 'success', 'UTF8', None, ), # 0 + (1, TType.STRUCT, 'e', [serverNotFoundException, None], None, ), # 1 ) class get_limits_args(object): + + def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -13866,11 +11812,9 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_limits_args") + oprot.writeStructBegin('get_limits_args') oprot.writeFieldStop() oprot.writeStructEnd() @@ -13878,18 +11822,18 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(get_limits_args) -get_limits_args.thrift_spec = () +get_limits_args.thrift_spec = ( +) class get_limits_result(object): @@ -13899,17 +11843,12 @@ class get_limits_result(object): """ - def __init__( - self, success=None, - ): + + def __init__(self, success=None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -13922,16 +11861,8 @@ def read(self, iprot): self.success = {} (_ktype454, _vtype455, _size453) = iprot.readMapBegin() for _i457 in range(_size453): - _key458 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) - _val459 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + _key458 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val459 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() self.success[_key458] = _val459 iprot.readMapEnd() else: @@ -13943,21 +11874,15 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("get_limits_result") + oprot.writeStructBegin('get_limits_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.MAP, 0) + oprot.writeFieldBegin('success', TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success)) for kiter460, viter461 in self.success.items(): - oprot.writeString( - kiter460.encode("utf-8") if sys.version_info[0] == 2 else kiter460 - ) - oprot.writeString( - viter461.encode("utf-8") if sys.version_info[0] == 2 else viter461 - ) + oprot.writeString(kiter460.encode('utf-8') if sys.version_info[0] == 2 else kiter460) + oprot.writeString(viter461.encode('utf-8') if sys.version_info[0] == 2 else viter461) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -13967,25 +11892,18 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(get_limits_result) get_limits_result.thrift_spec = ( - ( - 0, - TType.MAP, - "success", - (TType.STRING, "UTF8", TType.STRING, "UTF8", False), - None, - ), # 0 + (0, TType.MAP, 'success', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 0 ) @@ -13999,20 +11917,15 @@ class start_cluster_args(object): """ - def __init__( - self, public_key=None, master_instance=None, worker_instance=None, user=None, - ): + + def __init__(self, public_key=None, master_instance=None, worker_instance=None, user=None,): self.public_key = public_key self.master_instance = master_instance self.worker_instance = worker_instance self.user = user def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -14022,11 +11935,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.public_key = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.public_key = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: @@ -14048,11 +11957,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.user = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.user = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -14062,35 +11967,27 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("start_cluster_args") + oprot.writeStructBegin('start_cluster_args') if self.public_key is not None: - oprot.writeFieldBegin("public_key", TType.STRING, 1) - oprot.writeString( - self.public_key.encode("utf-8") - if sys.version_info[0] == 2 - else self.public_key - ) + oprot.writeFieldBegin('public_key', TType.STRING, 1) + oprot.writeString(self.public_key.encode('utf-8') if sys.version_info[0] == 2 else self.public_key) oprot.writeFieldEnd() if self.master_instance is not None: - oprot.writeFieldBegin("master_instance", TType.STRUCT, 2) + oprot.writeFieldBegin('master_instance', TType.STRUCT, 2) self.master_instance.write(oprot) oprot.writeFieldEnd() if self.worker_instance is not None: - oprot.writeFieldBegin("worker_instance", TType.LIST, 3) + oprot.writeFieldBegin('worker_instance', TType.LIST, 3) oprot.writeListBegin(TType.STRUCT, len(self.worker_instance)) for iter468 in self.worker_instance: iter468.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.user is not None: - oprot.writeFieldBegin("user", TType.STRING, 4) - oprot.writeString( - self.user.encode("utf-8") if sys.version_info[0] == 2 else self.user - ) + oprot.writeFieldBegin('user', TType.STRING, 4) + oprot.writeString(self.user.encode('utf-8') if sys.version_info[0] == 2 else self.user) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -14099,29 +11996,22 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(start_cluster_args) start_cluster_args.thrift_spec = ( None, # 0 - (1, TType.STRING, "public_key", "UTF8", None,), # 1 - (2, TType.STRUCT, "master_instance", [ClusterInstance, None], None,), # 2 - ( - 3, - TType.LIST, - "worker_instance", - (TType.STRUCT, [ClusterInstance, None], False), - None, - ), # 3 - (4, TType.STRING, "user", "UTF8", None,), # 4 + (1, TType.STRING, 'public_key', 'UTF8', None, ), # 1 + (2, TType.STRUCT, 'master_instance', [ClusterInstance, None], None, ), # 2 + (3, TType.LIST, 'worker_instance', (TType.STRUCT, [ClusterInstance, None], False), None, ), # 3 + (4, TType.STRING, 'user', 'UTF8', None, ), # 4 ) @@ -14132,17 +12022,12 @@ class start_cluster_result(object): """ - def __init__( - self, success=None, - ): + + def __init__(self, success=None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -14155,16 +12040,8 @@ def read(self, iprot): self.success = {} (_ktype470, _vtype471, _size469) = iprot.readMapBegin() for _i473 in range(_size469): - _key474 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) - _val475 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + _key474 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val475 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() self.success[_key474] = _val475 iprot.readMapEnd() else: @@ -14176,21 +12053,15 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("start_cluster_result") + oprot.writeStructBegin('start_cluster_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.MAP, 0) + oprot.writeFieldBegin('success', TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success)) for kiter476, viter477 in self.success.items(): - oprot.writeString( - kiter476.encode("utf-8") if sys.version_info[0] == 2 else kiter476 - ) - oprot.writeString( - viter477.encode("utf-8") if sys.version_info[0] == 2 else viter477 - ) + oprot.writeString(kiter476.encode('utf-8') if sys.version_info[0] == 2 else kiter476) + oprot.writeString(viter477.encode('utf-8') if sys.version_info[0] == 2 else viter477) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -14200,25 +12071,18 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(start_cluster_result) start_cluster_result.thrift_spec = ( - ( - 0, - TType.MAP, - "success", - (TType.STRING, "UTF8", TType.STRING, "UTF8", False), - None, - ), # 0 + (0, TType.MAP, 'success', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 0 ) @@ -14229,17 +12093,12 @@ class terminate_cluster_args(object): """ - def __init__( - self, cluster_id=None, - ): + + def __init__(self, cluster_id=None,): self.cluster_id = cluster_id def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -14249,11 +12108,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.cluster_id = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.cluster_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -14263,18 +12118,12 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("terminate_cluster_args") + oprot.writeStructBegin('terminate_cluster_args') if self.cluster_id is not None: - oprot.writeFieldBegin("cluster_id", TType.STRING, 1) - oprot.writeString( - self.cluster_id.encode("utf-8") - if sys.version_info[0] == 2 - else self.cluster_id - ) + oprot.writeFieldBegin('cluster_id', TType.STRING, 1) + oprot.writeString(self.cluster_id.encode('utf-8') if sys.version_info[0] == 2 else self.cluster_id) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -14283,20 +12132,19 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(terminate_cluster_args) terminate_cluster_args.thrift_spec = ( None, # 0 - (1, TType.STRING, "cluster_id", "UTF8", None,), # 1 + (1, TType.STRING, 'cluster_id', 'UTF8', None, ), # 1 ) @@ -14307,17 +12155,12 @@ class terminate_cluster_result(object): """ - def __init__( - self, success=None, - ): + + def __init__(self, success=None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -14330,16 +12173,8 @@ def read(self, iprot): self.success = {} (_ktype479, _vtype480, _size478) = iprot.readMapBegin() for _i482 in range(_size478): - _key483 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) - _val484 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + _key483 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val484 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() self.success[_key483] = _val484 iprot.readMapEnd() else: @@ -14351,21 +12186,15 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("terminate_cluster_result") + oprot.writeStructBegin('terminate_cluster_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.MAP, 0) + oprot.writeFieldBegin('success', TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success)) for kiter485, viter486 in self.success.items(): - oprot.writeString( - kiter485.encode("utf-8") if sys.version_info[0] == 2 else kiter485 - ) - oprot.writeString( - viter486.encode("utf-8") if sys.version_info[0] == 2 else viter486 - ) + oprot.writeString(kiter485.encode('utf-8') if sys.version_info[0] == 2 else kiter485) + oprot.writeString(viter486.encode('utf-8') if sys.version_info[0] == 2 else viter486) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -14375,25 +12204,18 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(terminate_cluster_result) terminate_cluster_result.thrift_spec = ( - ( - 0, - TType.MAP, - "success", - (TType.STRING, "UTF8", TType.STRING, "UTF8", False), - None, - ), # 0 + (0, TType.MAP, 'success', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 0 ) @@ -14404,17 +12226,12 @@ class delete_image_args(object): """ - def __init__( - self, image_id=None, - ): + + def __init__(self, image_id=None,): self.image_id = image_id def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -14424,11 +12241,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.image_id = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.image_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -14438,18 +12251,12 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("delete_image_args") + oprot.writeStructBegin('delete_image_args') if self.image_id is not None: - oprot.writeFieldBegin("image_id", TType.STRING, 1) - oprot.writeString( - self.image_id.encode("utf-8") - if sys.version_info[0] == 2 - else self.image_id - ) + oprot.writeFieldBegin('image_id', TType.STRING, 1) + oprot.writeString(self.image_id.encode('utf-8') if sys.version_info[0] == 2 else self.image_id) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -14458,20 +12265,19 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(delete_image_args) delete_image_args.thrift_spec = ( None, # 0 - (1, TType.STRING, "image_id", "UTF8", None,), # 1 + (1, TType.STRING, 'image_id', 'UTF8', None, ), # 1 ) @@ -14483,18 +12289,13 @@ class delete_image_result(object): """ - def __init__( - self, success=None, e=None, - ): + + def __init__(self, success=None, e=None,): self.success = success self.e = e def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -14520,17 +12321,15 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("delete_image_result") + oprot.writeStructBegin('delete_image_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.BOOL, 0) + oprot.writeFieldBegin('success', TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() if self.e is not None: - oprot.writeFieldBegin("e", TType.STRUCT, 1) + oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -14540,20 +12339,19 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(delete_image_result) delete_image_result.thrift_spec = ( - (0, TType.BOOL, "success", None, None,), # 0 - (1, TType.STRUCT, "e", [imageNotFoundException, None], None,), # 1 + (0, TType.BOOL, 'success', None, None, ), # 0 + (1, TType.STRUCT, 'e', [imageNotFoundException, None], None, ), # 1 ) @@ -14565,18 +12363,13 @@ class delete_volume_attachment_args(object): """ - def __init__( - self, volume_id=None, server_id=None, - ): + + def __init__(self, volume_id=None, server_id=None,): self.volume_id = volume_id self.server_id = server_id def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -14586,20 +12379,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.volume_id = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.volume_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.server_id = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.server_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -14609,26 +12394,16 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("delete_volume_attachment_args") + oprot.writeStructBegin('delete_volume_attachment_args') if self.volume_id is not None: - oprot.writeFieldBegin("volume_id", TType.STRING, 1) - oprot.writeString( - self.volume_id.encode("utf-8") - if sys.version_info[0] == 2 - else self.volume_id - ) + oprot.writeFieldBegin('volume_id', TType.STRING, 1) + oprot.writeString(self.volume_id.encode('utf-8') if sys.version_info[0] == 2 else self.volume_id) oprot.writeFieldEnd() if self.server_id is not None: - oprot.writeFieldBegin("server_id", TType.STRING, 2) - oprot.writeString( - self.server_id.encode("utf-8") - if sys.version_info[0] == 2 - else self.server_id - ) + oprot.writeFieldBegin('server_id', TType.STRING, 2) + oprot.writeString(self.server_id.encode('utf-8') if sys.version_info[0] == 2 else self.server_id) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -14637,21 +12412,20 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(delete_volume_attachment_args) delete_volume_attachment_args.thrift_spec = ( None, # 0 - (1, TType.STRING, "volume_id", "UTF8", None,), # 1 - (2, TType.STRING, "server_id", "UTF8", None,), # 2 + (1, TType.STRING, 'volume_id', 'UTF8', None, ), # 1 + (2, TType.STRING, 'server_id', 'UTF8', None, ), # 2 ) @@ -14663,18 +12437,13 @@ class delete_volume_attachment_result(object): """ - def __init__( - self, success=None, e=None, - ): + + def __init__(self, success=None, e=None,): self.success = success self.e = e def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -14700,17 +12469,15 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("delete_volume_attachment_result") + oprot.writeStructBegin('delete_volume_attachment_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.BOOL, 0) + oprot.writeFieldBegin('success', TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() if self.e is not None: - oprot.writeFieldBegin("e", TType.STRUCT, 1) + oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -14720,20 +12487,19 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(delete_volume_attachment_result) delete_volume_attachment_result.thrift_spec = ( - (0, TType.BOOL, "success", None, None,), # 0 - (1, TType.STRUCT, "e", [serverNotFoundException, None], None,), # 1 + (0, TType.BOOL, 'success', None, None, ), # 0 + (1, TType.STRUCT, 'e', [serverNotFoundException, None], None, ), # 1 ) @@ -14744,17 +12510,12 @@ class delete_volume_args(object): """ - def __init__( - self, volume_id=None, - ): + + def __init__(self, volume_id=None,): self.volume_id = volume_id def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -14764,11 +12525,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.volume_id = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.volume_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -14778,18 +12535,12 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("delete_volume_args") + oprot.writeStructBegin('delete_volume_args') if self.volume_id is not None: - oprot.writeFieldBegin("volume_id", TType.STRING, 1) - oprot.writeString( - self.volume_id.encode("utf-8") - if sys.version_info[0] == 2 - else self.volume_id - ) + oprot.writeFieldBegin('volume_id', TType.STRING, 1) + oprot.writeString(self.volume_id.encode('utf-8') if sys.version_info[0] == 2 else self.volume_id) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -14798,20 +12549,19 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(delete_volume_args) delete_volume_args.thrift_spec = ( None, # 0 - (1, TType.STRING, "volume_id", "UTF8", None,), # 1 + (1, TType.STRING, 'volume_id', 'UTF8', None, ), # 1 ) @@ -14822,17 +12572,12 @@ class delete_volume_result(object): """ - def __init__( - self, success=None, - ): + + def __init__(self, success=None,): self.success = success def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -14852,13 +12597,11 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("delete_volume_result") + oprot.writeStructBegin('delete_volume_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.BOOL, 0) + oprot.writeFieldBegin('success', TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -14868,18 +12611,19 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(delete_volume_result) -delete_volume_result.thrift_spec = ((0, TType.BOOL, "success", None, None,),) # 0 +delete_volume_result.thrift_spec = ( + (0, TType.BOOL, 'success', None, None, ), # 0 +) class attach_volume_to_server_args(object): @@ -14890,18 +12634,13 @@ class attach_volume_to_server_args(object): """ - def __init__( - self, openstack_id=None, volume_id=None, - ): + + def __init__(self, openstack_id=None, volume_id=None,): self.openstack_id = openstack_id self.volume_id = volume_id def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -14911,20 +12650,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.openstack_id = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.openstack_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.volume_id = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.volume_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -14934,26 +12665,16 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("attach_volume_to_server_args") + oprot.writeStructBegin('attach_volume_to_server_args') if self.openstack_id is not None: - oprot.writeFieldBegin("openstack_id", TType.STRING, 1) - oprot.writeString( - self.openstack_id.encode("utf-8") - if sys.version_info[0] == 2 - else self.openstack_id - ) + oprot.writeFieldBegin('openstack_id', TType.STRING, 1) + oprot.writeString(self.openstack_id.encode('utf-8') if sys.version_info[0] == 2 else self.openstack_id) oprot.writeFieldEnd() if self.volume_id is not None: - oprot.writeFieldBegin("volume_id", TType.STRING, 2) - oprot.writeString( - self.volume_id.encode("utf-8") - if sys.version_info[0] == 2 - else self.volume_id - ) + oprot.writeFieldBegin('volume_id', TType.STRING, 2) + oprot.writeString(self.volume_id.encode('utf-8') if sys.version_info[0] == 2 else self.volume_id) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -14962,21 +12683,20 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(attach_volume_to_server_args) attach_volume_to_server_args.thrift_spec = ( None, # 0 - (1, TType.STRING, "openstack_id", "UTF8", None,), # 1 - (2, TType.STRING, "volume_id", "UTF8", None,), # 2 + (1, TType.STRING, 'openstack_id', 'UTF8', None, ), # 1 + (2, TType.STRING, 'volume_id', 'UTF8', None, ), # 2 ) @@ -14988,18 +12708,13 @@ class attach_volume_to_server_result(object): """ - def __init__( - self, success=None, e=None, - ): + + def __init__(self, success=None, e=None,): self.success = success self.e = e def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -15012,16 +12727,8 @@ def read(self, iprot): self.success = {} (_ktype488, _vtype489, _size487) = iprot.readMapBegin() for _i491 in range(_size487): - _key492 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) - _val493 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + _key492 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val493 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() self.success[_key492] = _val493 iprot.readMapEnd() else: @@ -15039,25 +12746,19 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("attach_volume_to_server_result") + oprot.writeStructBegin('attach_volume_to_server_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.MAP, 0) + oprot.writeFieldBegin('success', TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success)) for kiter494, viter495 in self.success.items(): - oprot.writeString( - kiter494.encode("utf-8") if sys.version_info[0] == 2 else kiter494 - ) - oprot.writeString( - viter495.encode("utf-8") if sys.version_info[0] == 2 else viter495 - ) + oprot.writeString(kiter494.encode('utf-8') if sys.version_info[0] == 2 else kiter494) + oprot.writeString(viter495.encode('utf-8') if sys.version_info[0] == 2 else viter495) oprot.writeMapEnd() oprot.writeFieldEnd() if self.e is not None: - oprot.writeFieldBegin("e", TType.STRUCT, 1) + oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -15067,26 +12768,19 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(attach_volume_to_server_result) attach_volume_to_server_result.thrift_spec = ( - ( - 0, - TType.MAP, - "success", - (TType.STRING, "UTF8", TType.STRING, "UTF8", False), - None, - ), # 0 - (1, TType.STRUCT, "e", [serverNotFoundException, None], None,), # 1 + (0, TType.MAP, 'success', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 0 + (1, TType.STRUCT, 'e', [serverNotFoundException, None], None, ), # 1 ) @@ -15097,17 +12791,12 @@ class check_server_status_args(object): """ - def __init__( - self, openstack_id=None, - ): + + def __init__(self, openstack_id=None,): self.openstack_id = openstack_id def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -15117,11 +12806,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.openstack_id = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.openstack_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -15131,18 +12816,12 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("check_server_status_args") + oprot.writeStructBegin('check_server_status_args') if self.openstack_id is not None: - oprot.writeFieldBegin("openstack_id", TType.STRING, 1) - oprot.writeString( - self.openstack_id.encode("utf-8") - if sys.version_info[0] == 2 - else self.openstack_id - ) + oprot.writeFieldBegin('openstack_id', TType.STRING, 1) + oprot.writeString(self.openstack_id.encode('utf-8') if sys.version_info[0] == 2 else self.openstack_id) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -15151,20 +12830,19 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(check_server_status_args) check_server_status_args.thrift_spec = ( None, # 0 - (1, TType.STRING, "openstack_id", "UTF8", None,), # 1 + (1, TType.STRING, 'openstack_id', 'UTF8', None, ), # 1 ) @@ -15177,19 +12855,14 @@ class check_server_status_result(object): """ - def __init__( - self, success=None, e=None, r=None, - ): + + def __init__(self, success=None, e=None, r=None,): self.success = success self.e = e self.r = r def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -15222,21 +12895,19 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("check_server_status_result") + oprot.writeStructBegin('check_server_status_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRUCT, 0) + oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: - oprot.writeFieldBegin("e", TType.STRUCT, 1) + oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() if self.r is not None: - oprot.writeFieldBegin("r", TType.STRUCT, 2) + oprot.writeFieldBegin('r', TType.STRUCT, 2) self.r.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -15246,21 +12917,20 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(check_server_status_result) check_server_status_result.thrift_spec = ( - (0, TType.STRUCT, "success", [VM, None], None,), # 0 - (1, TType.STRUCT, "e", [serverNotFoundException, None], None,), # 1 - (2, TType.STRUCT, "r", [ressourceException, None], None,), # 2 + (0, TType.STRUCT, 'success', [VM, None], None, ), # 0 + (1, TType.STRUCT, 'e', [serverNotFoundException, None], None, ), # 1 + (2, TType.STRUCT, 'r', [ressourceException, None], None, ), # 2 ) @@ -15272,18 +12942,13 @@ class setUserPassword_args(object): """ - def __init__( - self, user=None, password=None, - ): + + def __init__(self, user=None, password=None,): self.user = user self.password = password def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -15293,20 +12958,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.user = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.user = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.password = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.password = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -15316,24 +12973,16 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("setUserPassword_args") + oprot.writeStructBegin('setUserPassword_args') if self.user is not None: - oprot.writeFieldBegin("user", TType.STRING, 1) - oprot.writeString( - self.user.encode("utf-8") if sys.version_info[0] == 2 else self.user - ) + oprot.writeFieldBegin('user', TType.STRING, 1) + oprot.writeString(self.user.encode('utf-8') if sys.version_info[0] == 2 else self.user) oprot.writeFieldEnd() if self.password is not None: - oprot.writeFieldBegin("password", TType.STRING, 2) - oprot.writeString( - self.password.encode("utf-8") - if sys.version_info[0] == 2 - else self.password - ) + oprot.writeFieldBegin('password', TType.STRING, 2) + oprot.writeString(self.password.encode('utf-8') if sys.version_info[0] == 2 else self.password) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -15342,21 +12991,20 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(setUserPassword_args) setUserPassword_args.thrift_spec = ( None, # 0 - (1, TType.STRING, "user", "UTF8", None,), # 1 - (2, TType.STRING, "password", "UTF8", None,), # 2 + (1, TType.STRING, 'user', 'UTF8', None, ), # 1 + (2, TType.STRING, 'password', 'UTF8', None, ), # 2 ) @@ -15368,18 +13016,13 @@ class setUserPassword_result(object): """ - def __init__( - self, success=None, e=None, - ): + + def __init__(self, success=None, e=None,): self.success = success self.e = e def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -15389,11 +13032,7 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRING: - self.success = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.success = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 1: @@ -15409,21 +13048,15 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("setUserPassword_result") + oprot.writeStructBegin('setUserPassword_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.STRING, 0) - oprot.writeString( - self.success.encode("utf-8") - if sys.version_info[0] == 2 - else self.success - ) + oprot.writeFieldBegin('success', TType.STRING, 0) + oprot.writeString(self.success.encode('utf-8') if sys.version_info[0] == 2 else self.success) oprot.writeFieldEnd() if self.e is not None: - oprot.writeFieldBegin("e", TType.STRUCT, 1) + oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -15433,20 +13066,19 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(setUserPassword_result) setUserPassword_result.thrift_spec = ( - (0, TType.STRING, "success", "UTF8", None,), # 0 - (1, TType.STRUCT, "e", [otherException, None], None,), # 1 + (0, TType.STRING, 'success', 'UTF8', None, ), # 0 + (1, TType.STRUCT, 'e', [otherException, None], None, ), # 1 ) @@ -15457,17 +13089,12 @@ class resume_server_args(object): """ - def __init__( - self, openstack_id=None, - ): + + def __init__(self, openstack_id=None,): self.openstack_id = openstack_id def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -15477,11 +13104,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.openstack_id = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.openstack_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -15491,18 +13114,12 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("resume_server_args") + oprot.writeStructBegin('resume_server_args') if self.openstack_id is not None: - oprot.writeFieldBegin("openstack_id", TType.STRING, 1) - oprot.writeString( - self.openstack_id.encode("utf-8") - if sys.version_info[0] == 2 - else self.openstack_id - ) + oprot.writeFieldBegin('openstack_id', TType.STRING, 1) + oprot.writeString(self.openstack_id.encode('utf-8') if sys.version_info[0] == 2 else self.openstack_id) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -15511,20 +13128,19 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(resume_server_args) resume_server_args.thrift_spec = ( None, # 0 - (1, TType.STRING, "openstack_id", "UTF8", None,), # 1 + (1, TType.STRING, 'openstack_id', 'UTF8', None, ), # 1 ) @@ -15536,18 +13152,13 @@ class resume_server_result(object): """ - def __init__( - self, success=None, e=None, - ): + + def __init__(self, success=None, e=None,): self.success = success self.e = e def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -15573,17 +13184,15 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("resume_server_result") + oprot.writeStructBegin('resume_server_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.BOOL, 0) + oprot.writeFieldBegin('success', TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() if self.e is not None: - oprot.writeFieldBegin("e", TType.STRUCT, 1) + oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -15593,20 +13202,19 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(resume_server_result) resume_server_result.thrift_spec = ( - (0, TType.BOOL, "success", None, None,), # 0 - (1, TType.STRUCT, "e", [serverNotFoundException, None], None,), # 1 + (0, TType.BOOL, 'success', None, None, ), # 0 + (1, TType.STRUCT, 'e', [serverNotFoundException, None], None, ), # 1 ) @@ -15619,19 +13227,14 @@ class create_volume_args(object): """ - def __init__( - self, volume_name=None, volume_storage=None, metadata=None, - ): + + def __init__(self, volume_name=None, volume_storage=None, metadata=None,): self.volume_name = volume_name self.volume_storage = volume_storage self.metadata = metadata def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -15641,11 +13244,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.volume_name = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.volume_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: @@ -15658,16 +13257,8 @@ def read(self, iprot): self.metadata = {} (_ktype497, _vtype498, _size496) = iprot.readMapBegin() for _i500 in range(_size496): - _key501 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) - _val502 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + _key501 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val502 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() self.metadata[_key501] = _val502 iprot.readMapEnd() else: @@ -15679,33 +13270,23 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("create_volume_args") + oprot.writeStructBegin('create_volume_args') if self.volume_name is not None: - oprot.writeFieldBegin("volume_name", TType.STRING, 1) - oprot.writeString( - self.volume_name.encode("utf-8") - if sys.version_info[0] == 2 - else self.volume_name - ) + oprot.writeFieldBegin('volume_name', TType.STRING, 1) + oprot.writeString(self.volume_name.encode('utf-8') if sys.version_info[0] == 2 else self.volume_name) oprot.writeFieldEnd() if self.volume_storage is not None: - oprot.writeFieldBegin("volume_storage", TType.I32, 2) + oprot.writeFieldBegin('volume_storage', TType.I32, 2) oprot.writeI32(self.volume_storage) oprot.writeFieldEnd() if self.metadata is not None: - oprot.writeFieldBegin("metadata", TType.MAP, 3) + oprot.writeFieldBegin('metadata', TType.MAP, 3) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.metadata)) for kiter503, viter504 in self.metadata.items(): - oprot.writeString( - kiter503.encode("utf-8") if sys.version_info[0] == 2 else kiter503 - ) - oprot.writeString( - viter504.encode("utf-8") if sys.version_info[0] == 2 else viter504 - ) + oprot.writeString(kiter503.encode('utf-8') if sys.version_info[0] == 2 else kiter503) + oprot.writeString(viter504.encode('utf-8') if sys.version_info[0] == 2 else viter504) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -15715,28 +13296,21 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(create_volume_args) create_volume_args.thrift_spec = ( None, # 0 - (1, TType.STRING, "volume_name", "UTF8", None,), # 1 - (2, TType.I32, "volume_storage", None, None,), # 2 - ( - 3, - TType.MAP, - "metadata", - (TType.STRING, "UTF8", TType.STRING, "UTF8", False), - None, - ), # 3 + (1, TType.STRING, 'volume_name', 'UTF8', None, ), # 1 + (2, TType.I32, 'volume_storage', None, None, ), # 2 + (3, TType.MAP, 'metadata', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 3 ) @@ -15748,18 +13322,13 @@ class create_volume_result(object): """ - def __init__( - self, success=None, r=None, - ): + + def __init__(self, success=None, r=None,): self.success = success self.r = r def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -15772,16 +13341,8 @@ def read(self, iprot): self.success = {} (_ktype506, _vtype507, _size505) = iprot.readMapBegin() for _i509 in range(_size505): - _key510 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) - _val511 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + _key510 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val511 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() self.success[_key510] = _val511 iprot.readMapEnd() else: @@ -15799,25 +13360,19 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("create_volume_result") + oprot.writeStructBegin('create_volume_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.MAP, 0) + oprot.writeFieldBegin('success', TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success)) for kiter512, viter513 in self.success.items(): - oprot.writeString( - kiter512.encode("utf-8") if sys.version_info[0] == 2 else kiter512 - ) - oprot.writeString( - viter513.encode("utf-8") if sys.version_info[0] == 2 else viter513 - ) + oprot.writeString(kiter512.encode('utf-8') if sys.version_info[0] == 2 else kiter512) + oprot.writeString(viter513.encode('utf-8') if sys.version_info[0] == 2 else viter513) oprot.writeMapEnd() oprot.writeFieldEnd() if self.r is not None: - oprot.writeFieldBegin("r", TType.STRUCT, 1) + oprot.writeFieldBegin('r', TType.STRUCT, 1) self.r.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -15827,26 +13382,19 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(create_volume_result) create_volume_result.thrift_spec = ( - ( - 0, - TType.MAP, - "success", - (TType.STRING, "UTF8", TType.STRING, "UTF8", False), - None, - ), # 0 - (1, TType.STRUCT, "r", [ressourceException, None], None,), # 1 + (0, TType.MAP, 'success', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 0 + (1, TType.STRUCT, 'r', [ressourceException, None], None, ), # 1 ) @@ -15858,18 +13406,13 @@ class reboot_server_args(object): """ - def __init__( - self, server_id=None, reboot_type=None, - ): + + def __init__(self, server_id=None, reboot_type=None,): self.server_id = server_id self.reboot_type = reboot_type def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -15879,20 +13422,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.server_id = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.server_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.reboot_type = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.reboot_type = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -15902,26 +13437,16 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("reboot_server_args") + oprot.writeStructBegin('reboot_server_args') if self.server_id is not None: - oprot.writeFieldBegin("server_id", TType.STRING, 1) - oprot.writeString( - self.server_id.encode("utf-8") - if sys.version_info[0] == 2 - else self.server_id - ) + oprot.writeFieldBegin('server_id', TType.STRING, 1) + oprot.writeString(self.server_id.encode('utf-8') if sys.version_info[0] == 2 else self.server_id) oprot.writeFieldEnd() if self.reboot_type is not None: - oprot.writeFieldBegin("reboot_type", TType.STRING, 2) - oprot.writeString( - self.reboot_type.encode("utf-8") - if sys.version_info[0] == 2 - else self.reboot_type - ) + oprot.writeFieldBegin('reboot_type', TType.STRING, 2) + oprot.writeString(self.reboot_type.encode('utf-8') if sys.version_info[0] == 2 else self.reboot_type) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -15930,21 +13455,20 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(reboot_server_args) reboot_server_args.thrift_spec = ( None, # 0 - (1, TType.STRING, "server_id", "UTF8", None,), # 1 - (2, TType.STRING, "reboot_type", "UTF8", None,), # 2 + (1, TType.STRING, 'server_id', 'UTF8', None, ), # 1 + (2, TType.STRING, 'reboot_type', 'UTF8', None, ), # 2 ) @@ -15956,18 +13480,13 @@ class reboot_server_result(object): """ - def __init__( - self, success=None, e=None, - ): + + def __init__(self, success=None, e=None,): self.success = success self.e = e def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -15993,17 +13512,15 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("reboot_server_result") + oprot.writeStructBegin('reboot_server_result') if self.success is not None: - oprot.writeFieldBegin("success", TType.BOOL, 0) + oprot.writeFieldBegin('success', TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() if self.e is not None: - oprot.writeFieldBegin("e", TType.STRUCT, 1) + oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -16013,20 +13530,20 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(reboot_server_result) reboot_server_result.thrift_spec = ( - (0, TType.BOOL, "success", None, None,), # 0 - (1, TType.STRUCT, "e", [serverNotFoundException, None], None,), # 1 + (0, TType.BOOL, 'success', None, None, ), # 0 + (1, TType.STRUCT, 'e', [serverNotFoundException, None], None, ), # 1 ) fix_spec(all_structs) del all_structs + diff --git a/VirtualMachineService/constants.py b/VirtualMachineService/constants.py index b182601b..8de3f670 100644 --- a/VirtualMachineService/constants.py +++ b/VirtualMachineService/constants.py @@ -6,17 +6,10 @@ # options string: py # -from thrift.Thrift import ( - TType, - TMessageType, - TFrozenDict, - TException, - TApplicationException, -) +from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException from thrift.protocol.TProtocol import TProtocolException from thrift.TRecursive import fix_spec import sys from ttypes import * - VERSION = "1.0.0" diff --git a/VirtualMachineService/ttypes.py b/VirtualMachineService/ttypes.py index 3464240c..42a841c1 100644 --- a/VirtualMachineService/ttypes.py +++ b/VirtualMachineService/ttypes.py @@ -6,20 +6,13 @@ # options string: py # -from thrift.Thrift import ( - TType, - TMessageType, - TFrozenDict, - TException, - TApplicationException, -) +from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException from thrift.protocol.TProtocol import TProtocolException from thrift.TRecursive import fix_spec import sys from thrift.transport import TTransport - all_structs = [] @@ -34,14 +27,8 @@ class Backend(object): """ - def __init__( - self, - id=None, - owner=None, - location_url=None, - template=None, - template_version=None, - ): + + def __init__(self, id=None, owner=None, location_url=None, template=None, template_version=None,): self.id = id self.owner = owner self.location_url = location_url @@ -49,11 +36,7 @@ def __init__( self.template_version = template_version def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -68,38 +51,22 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.owner = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.owner = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.location_url = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.location_url = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.template = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.template = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.template_version = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.template_version = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -109,44 +76,28 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("Backend") + oprot.writeStructBegin('Backend') if self.id is not None: - oprot.writeFieldBegin("id", TType.I64, 1) + oprot.writeFieldBegin('id', TType.I64, 1) oprot.writeI64(self.id) oprot.writeFieldEnd() if self.owner is not None: - oprot.writeFieldBegin("owner", TType.STRING, 2) - oprot.writeString( - self.owner.encode("utf-8") if sys.version_info[0] == 2 else self.owner - ) + oprot.writeFieldBegin('owner', TType.STRING, 2) + oprot.writeString(self.owner.encode('utf-8') if sys.version_info[0] == 2 else self.owner) oprot.writeFieldEnd() if self.location_url is not None: - oprot.writeFieldBegin("location_url", TType.STRING, 3) - oprot.writeString( - self.location_url.encode("utf-8") - if sys.version_info[0] == 2 - else self.location_url - ) + oprot.writeFieldBegin('location_url', TType.STRING, 3) + oprot.writeString(self.location_url.encode('utf-8') if sys.version_info[0] == 2 else self.location_url) oprot.writeFieldEnd() if self.template is not None: - oprot.writeFieldBegin("template", TType.STRING, 4) - oprot.writeString( - self.template.encode("utf-8") - if sys.version_info[0] == 2 - else self.template - ) + oprot.writeFieldBegin('template', TType.STRING, 4) + oprot.writeString(self.template.encode('utf-8') if sys.version_info[0] == 2 else self.template) oprot.writeFieldEnd() if self.template_version is not None: - oprot.writeFieldBegin("template_version", TType.STRING, 5) - oprot.writeString( - self.template_version.encode("utf-8") - if sys.version_info[0] == 2 - else self.template_version - ) + oprot.writeFieldBegin('template_version', TType.STRING, 5) + oprot.writeString(self.template_version.encode('utf-8') if sys.version_info[0] == 2 else self.template_version) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -155,8 +106,9 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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__ @@ -180,18 +132,8 @@ class ClusterInfo(object): """ - def __init__( - self, - launch_date=None, - group_id=None, - network_id=None, - public_ip=None, - subnet_id=None, - user=None, - inst_counter=None, - cluster_id=None, - key_name=None, - ): + + def __init__(self, launch_date=None, group_id=None, network_id=None, public_ip=None, subnet_id=None, user=None, inst_counter=None, cluster_id=None, key_name=None,): self.launch_date = launch_date self.group_id = group_id self.network_id = network_id @@ -203,11 +145,7 @@ def __init__( self.key_name = key_name def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -217,56 +155,32 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.launch_date = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.launch_date = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.group_id = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.group_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.network_id = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.network_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.public_ip = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.public_ip = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.subnet_id = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.subnet_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: - self.user = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.user = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 7: @@ -276,20 +190,12 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 8: if ftype == TType.STRING: - self.cluster_id = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.cluster_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 9: if ftype == TType.STRING: - self.key_name = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.key_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -299,76 +205,44 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("ClusterInfo") + oprot.writeStructBegin('ClusterInfo') if self.launch_date is not None: - oprot.writeFieldBegin("launch_date", TType.STRING, 1) - oprot.writeString( - self.launch_date.encode("utf-8") - if sys.version_info[0] == 2 - else self.launch_date - ) + oprot.writeFieldBegin('launch_date', TType.STRING, 1) + oprot.writeString(self.launch_date.encode('utf-8') if sys.version_info[0] == 2 else self.launch_date) oprot.writeFieldEnd() if self.group_id is not None: - oprot.writeFieldBegin("group_id", TType.STRING, 2) - oprot.writeString( - self.group_id.encode("utf-8") - if sys.version_info[0] == 2 - else self.group_id - ) + oprot.writeFieldBegin('group_id', TType.STRING, 2) + oprot.writeString(self.group_id.encode('utf-8') if sys.version_info[0] == 2 else self.group_id) oprot.writeFieldEnd() if self.network_id is not None: - oprot.writeFieldBegin("network_id", TType.STRING, 3) - oprot.writeString( - self.network_id.encode("utf-8") - if sys.version_info[0] == 2 - else self.network_id - ) + oprot.writeFieldBegin('network_id', TType.STRING, 3) + oprot.writeString(self.network_id.encode('utf-8') if sys.version_info[0] == 2 else self.network_id) oprot.writeFieldEnd() if self.public_ip is not None: - oprot.writeFieldBegin("public_ip", TType.STRING, 4) - oprot.writeString( - self.public_ip.encode("utf-8") - if sys.version_info[0] == 2 - else self.public_ip - ) + oprot.writeFieldBegin('public_ip', TType.STRING, 4) + oprot.writeString(self.public_ip.encode('utf-8') if sys.version_info[0] == 2 else self.public_ip) oprot.writeFieldEnd() if self.subnet_id is not None: - oprot.writeFieldBegin("subnet_id", TType.STRING, 5) - oprot.writeString( - self.subnet_id.encode("utf-8") - if sys.version_info[0] == 2 - else self.subnet_id - ) + oprot.writeFieldBegin('subnet_id', TType.STRING, 5) + oprot.writeString(self.subnet_id.encode('utf-8') if sys.version_info[0] == 2 else self.subnet_id) oprot.writeFieldEnd() if self.user is not None: - oprot.writeFieldBegin("user", TType.STRING, 6) - oprot.writeString( - self.user.encode("utf-8") if sys.version_info[0] == 2 else self.user - ) + oprot.writeFieldBegin('user', TType.STRING, 6) + oprot.writeString(self.user.encode('utf-8') if sys.version_info[0] == 2 else self.user) oprot.writeFieldEnd() if self.inst_counter is not None: - oprot.writeFieldBegin("inst_counter", TType.I32, 7) + oprot.writeFieldBegin('inst_counter', TType.I32, 7) oprot.writeI32(self.inst_counter) oprot.writeFieldEnd() if self.cluster_id is not None: - oprot.writeFieldBegin("cluster_id", TType.STRING, 8) - oprot.writeString( - self.cluster_id.encode("utf-8") - if sys.version_info[0] == 2 - else self.cluster_id - ) + oprot.writeFieldBegin('cluster_id', TType.STRING, 8) + oprot.writeString(self.cluster_id.encode('utf-8') if sys.version_info[0] == 2 else self.cluster_id) oprot.writeFieldEnd() if self.key_name is not None: - oprot.writeFieldBegin("key_name", TType.STRING, 9) - oprot.writeString( - self.key_name.encode("utf-8") - if sys.version_info[0] == 2 - else self.key_name - ) + oprot.writeFieldBegin('key_name', TType.STRING, 9) + oprot.writeString(self.key_name.encode('utf-8') if sys.version_info[0] == 2 else self.key_name) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -377,8 +251,9 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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__ @@ -399,15 +274,8 @@ class Volume(object): """ - def __init__( - self, - id=None, - name=None, - description=None, - status=None, - created_at=None, - device=None, - ): + + def __init__(self, id=None, name=None, description=None, status=None, created_at=None, device=None,): self.id = id self.name = name self.description = description @@ -416,11 +284,7 @@ def __init__( self.device = device def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -430,56 +294,32 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.id = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.name = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.description = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.description = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.status = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.status = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.created_at = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.created_at = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: - self.device = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.device = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -489,50 +329,32 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("Volume") + oprot.writeStructBegin('Volume') if self.id is not None: - oprot.writeFieldBegin("id", TType.STRING, 1) - oprot.writeString( - self.id.encode("utf-8") if sys.version_info[0] == 2 else self.id - ) + oprot.writeFieldBegin('id', TType.STRING, 1) + oprot.writeString(self.id.encode('utf-8') if sys.version_info[0] == 2 else self.id) oprot.writeFieldEnd() if self.name is not None: - oprot.writeFieldBegin("name", TType.STRING, 2) - oprot.writeString( - self.name.encode("utf-8") if sys.version_info[0] == 2 else self.name - ) + oprot.writeFieldBegin('name', TType.STRING, 2) + oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name) oprot.writeFieldEnd() if self.description is not None: - oprot.writeFieldBegin("description", TType.STRING, 3) - oprot.writeString( - self.description.encode("utf-8") - if sys.version_info[0] == 2 - else self.description - ) + oprot.writeFieldBegin('description', TType.STRING, 3) + oprot.writeString(self.description.encode('utf-8') if sys.version_info[0] == 2 else self.description) oprot.writeFieldEnd() if self.status is not None: - oprot.writeFieldBegin("status", TType.STRING, 4) - oprot.writeString( - self.status.encode("utf-8") if sys.version_info[0] == 2 else self.status - ) + oprot.writeFieldBegin('status', TType.STRING, 4) + oprot.writeString(self.status.encode('utf-8') if sys.version_info[0] == 2 else self.status) oprot.writeFieldEnd() if self.created_at is not None: - oprot.writeFieldBegin("created_at", TType.STRING, 5) - oprot.writeString( - self.created_at.encode("utf-8") - if sys.version_info[0] == 2 - else self.created_at - ) + oprot.writeFieldBegin('created_at', TType.STRING, 5) + oprot.writeString(self.created_at.encode('utf-8') if sys.version_info[0] == 2 else self.created_at) oprot.writeFieldEnd() if self.device is not None: - oprot.writeFieldBegin("device", TType.STRING, 6) - oprot.writeString( - self.device.encode("utf-8") if sys.version_info[0] == 2 else self.device - ) + oprot.writeFieldBegin('device', TType.STRING, 6) + oprot.writeString(self.device.encode('utf-8') if sys.version_info[0] == 2 else self.device) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -541,8 +363,9 @@ def validate(self): return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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__ @@ -566,16 +389,8 @@ class Flavor(object): """ - def __init__( - self, - vcpus=None, - ram=None, - disk=None, - name=None, - openstack_id=None, - description=None, - tags=None, - ): + + def __init__(self, vcpus=None, ram=None, disk=None, name=None, openstack_id=None, description=None, tags=None,): self.vcpus = vcpus self.ram = ram self.disk = disk @@ -585,11 +400,7 @@ def __init__( self.tags = tags def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -614,29 +425,17 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.name = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.openstack_id = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.openstack_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: - self.description = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.description = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 7: @@ -644,11 +443,7 @@ def read(self, iprot): self.tags = [] (_etype3, _size0) = iprot.readListBegin() for _i4 in range(_size0): - _elem5 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + _elem5 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() self.tags.append(_elem5) iprot.readListEnd() else: @@ -660,52 +455,38 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("Flavor") + oprot.writeStructBegin('Flavor') if self.vcpus is not None: - oprot.writeFieldBegin("vcpus", TType.I32, 1) + oprot.writeFieldBegin('vcpus', TType.I32, 1) oprot.writeI32(self.vcpus) oprot.writeFieldEnd() if self.ram is not None: - oprot.writeFieldBegin("ram", TType.I32, 2) + oprot.writeFieldBegin('ram', TType.I32, 2) oprot.writeI32(self.ram) oprot.writeFieldEnd() if self.disk is not None: - oprot.writeFieldBegin("disk", TType.I32, 3) + oprot.writeFieldBegin('disk', TType.I32, 3) oprot.writeI32(self.disk) oprot.writeFieldEnd() if self.name is not None: - oprot.writeFieldBegin("name", TType.STRING, 4) - oprot.writeString( - self.name.encode("utf-8") if sys.version_info[0] == 2 else self.name - ) + oprot.writeFieldBegin('name', TType.STRING, 4) + oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name) oprot.writeFieldEnd() if self.openstack_id is not None: - oprot.writeFieldBegin("openstack_id", TType.STRING, 5) - oprot.writeString( - self.openstack_id.encode("utf-8") - if sys.version_info[0] == 2 - else self.openstack_id - ) + oprot.writeFieldBegin('openstack_id', TType.STRING, 5) + oprot.writeString(self.openstack_id.encode('utf-8') if sys.version_info[0] == 2 else self.openstack_id) oprot.writeFieldEnd() if self.description is not None: - oprot.writeFieldBegin("description", TType.STRING, 6) - oprot.writeString( - self.description.encode("utf-8") - if sys.version_info[0] == 2 - else self.description - ) + oprot.writeFieldBegin('description', TType.STRING, 6) + oprot.writeString(self.description.encode('utf-8') if sys.version_info[0] == 2 else self.description) oprot.writeFieldEnd() if self.tags is not None: - oprot.writeFieldBegin("tags", TType.LIST, 7) + oprot.writeFieldBegin('tags', TType.LIST, 7) oprot.writeListBegin(TType.STRING, len(self.tags)) for iter6 in self.tags: - oprot.writeString( - iter6.encode("utf-8") if sys.version_info[0] == 2 else iter6 - ) + oprot.writeString(iter6.encode('utf-8') if sys.version_info[0] == 2 else iter6) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -713,22 +494,23 @@ def write(self, oprot): def validate(self): if self.vcpus is None: - raise TProtocolException(message="Required field vcpus is unset!") + raise TProtocolException(message='Required field vcpus is unset!') if self.ram is None: - raise TProtocolException(message="Required field ram is unset!") + raise TProtocolException(message='Required field ram is unset!') if self.disk is None: - raise TProtocolException(message="Required field disk is unset!") + raise TProtocolException(message='Required field disk is unset!') if self.name is None: - raise TProtocolException(message="Required field name is unset!") + raise TProtocolException(message='Required field name is unset!') if self.openstack_id is None: - raise TProtocolException(message="Required field openstack_id is unset!") + raise TProtocolException(message='Required field openstack_id is unset!') if self.tags is None: - raise TProtocolException(message="Required field tags is unset!") + raise TProtocolException(message='Required field tags is unset!') return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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__ @@ -755,19 +537,8 @@ class Image(object): """ - def __init__( - self, - name=None, - min_disk=None, - min_ram=None, - status=None, - created_at=None, - updated_at=None, - openstack_id=None, - description=None, - tag=None, - is_snapshot=None, - ): + + def __init__(self, name=None, min_disk=None, min_ram=None, status=None, created_at=None, updated_at=None, openstack_id=None, description=None, tag=None, is_snapshot=None,): self.name = name self.min_disk = min_disk self.min_ram = min_ram @@ -780,11 +551,7 @@ def __init__( self.is_snapshot = is_snapshot def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -794,11 +561,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.name = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: @@ -813,47 +576,27 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.status = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.status = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.created_at = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.created_at = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: - self.updated_at = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.updated_at = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 7: if ftype == TType.STRING: - self.openstack_id = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.openstack_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 8: if ftype == TType.STRING: - self.description = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.description = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 9: @@ -861,11 +604,7 @@ def read(self, iprot): self.tag = [] (_etype10, _size7) = iprot.readListBegin() for _i11 in range(_size7): - _elem12 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + _elem12 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() self.tag.append(_elem12) iprot.readListEnd() else: @@ -882,74 +621,50 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("Image") + oprot.writeStructBegin('Image') if self.name is not None: - oprot.writeFieldBegin("name", TType.STRING, 1) - oprot.writeString( - self.name.encode("utf-8") if sys.version_info[0] == 2 else self.name - ) + oprot.writeFieldBegin('name', TType.STRING, 1) + oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name) oprot.writeFieldEnd() if self.min_disk is not None: - oprot.writeFieldBegin("min_disk", TType.I32, 2) + oprot.writeFieldBegin('min_disk', TType.I32, 2) oprot.writeI32(self.min_disk) oprot.writeFieldEnd() if self.min_ram is not None: - oprot.writeFieldBegin("min_ram", TType.I32, 3) + oprot.writeFieldBegin('min_ram', TType.I32, 3) oprot.writeI32(self.min_ram) oprot.writeFieldEnd() if self.status is not None: - oprot.writeFieldBegin("status", TType.STRING, 4) - oprot.writeString( - self.status.encode("utf-8") if sys.version_info[0] == 2 else self.status - ) + oprot.writeFieldBegin('status', TType.STRING, 4) + oprot.writeString(self.status.encode('utf-8') if sys.version_info[0] == 2 else self.status) oprot.writeFieldEnd() if self.created_at is not None: - oprot.writeFieldBegin("created_at", TType.STRING, 5) - oprot.writeString( - self.created_at.encode("utf-8") - if sys.version_info[0] == 2 - else self.created_at - ) + oprot.writeFieldBegin('created_at', TType.STRING, 5) + oprot.writeString(self.created_at.encode('utf-8') if sys.version_info[0] == 2 else self.created_at) oprot.writeFieldEnd() if self.updated_at is not None: - oprot.writeFieldBegin("updated_at", TType.STRING, 6) - oprot.writeString( - self.updated_at.encode("utf-8") - if sys.version_info[0] == 2 - else self.updated_at - ) + oprot.writeFieldBegin('updated_at', TType.STRING, 6) + oprot.writeString(self.updated_at.encode('utf-8') if sys.version_info[0] == 2 else self.updated_at) oprot.writeFieldEnd() if self.openstack_id is not None: - oprot.writeFieldBegin("openstack_id", TType.STRING, 7) - oprot.writeString( - self.openstack_id.encode("utf-8") - if sys.version_info[0] == 2 - else self.openstack_id - ) + oprot.writeFieldBegin('openstack_id', TType.STRING, 7) + oprot.writeString(self.openstack_id.encode('utf-8') if sys.version_info[0] == 2 else self.openstack_id) oprot.writeFieldEnd() if self.description is not None: - oprot.writeFieldBegin("description", TType.STRING, 8) - oprot.writeString( - self.description.encode("utf-8") - if sys.version_info[0] == 2 - else self.description - ) + oprot.writeFieldBegin('description', TType.STRING, 8) + oprot.writeString(self.description.encode('utf-8') if sys.version_info[0] == 2 else self.description) oprot.writeFieldEnd() if self.tag is not None: - oprot.writeFieldBegin("tag", TType.LIST, 9) + oprot.writeFieldBegin('tag', TType.LIST, 9) oprot.writeListBegin(TType.STRING, len(self.tag)) for iter13 in self.tag: - oprot.writeString( - iter13.encode("utf-8") if sys.version_info[0] == 2 else iter13 - ) + oprot.writeString(iter13.encode('utf-8') if sys.version_info[0] == 2 else iter13) oprot.writeListEnd() oprot.writeFieldEnd() if self.is_snapshot is not None: - oprot.writeFieldBegin("is_snapshot", TType.BOOL, 10) + oprot.writeFieldBegin('is_snapshot', TType.BOOL, 10) oprot.writeBool(self.is_snapshot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -957,22 +672,23 @@ def write(self, oprot): def validate(self): if self.name is None: - raise TProtocolException(message="Required field name is unset!") + raise TProtocolException(message='Required field name is unset!') if self.min_disk is None: - raise TProtocolException(message="Required field min_disk is unset!") + raise TProtocolException(message='Required field min_disk is unset!') if self.min_ram is None: - raise TProtocolException(message="Required field min_ram is unset!") + raise TProtocolException(message='Required field min_ram is unset!') if self.status is None: - raise TProtocolException(message="Required field status is unset!") + raise TProtocolException(message='Required field status is unset!') if self.openstack_id is None: - raise TProtocolException(message="Required field openstack_id is unset!") + raise TProtocolException(message='Required field openstack_id is unset!') if self.tag is None: - raise TProtocolException(message="Required field tag is unset!") + raise TProtocolException(message='Required field tag is unset!') return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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__ @@ -1002,22 +718,8 @@ class VM(object): """ - def __init__( - self, - flav=None, - img=None, - status=None, - metadata=None, - project_id=None, - keyname=None, - openstack_id=None, - name=None, - created_at=None, - floating_ip=None, - fixed_ip=None, - diskspace=None, - volume_id=None, - ): + + def __init__(self, flav=None, img=None, status=None, metadata=None, project_id=None, keyname=None, openstack_id=None, name=None, created_at=None, floating_ip=None, fixed_ip=None, diskspace=None, volume_id=None,): self.flav = flav self.img = img self.status = status @@ -1033,11 +735,7 @@ def __init__( self.volume_id = volume_id def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -1059,11 +757,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.status = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.status = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 4: @@ -1071,81 +765,45 @@ def read(self, iprot): self.metadata = {} (_ktype15, _vtype16, _size14) = iprot.readMapBegin() for _i18 in range(_size14): - _key19 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) - _val20 = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + _key19 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _val20 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() self.metadata[_key19] = _val20 iprot.readMapEnd() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.project_id = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.project_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: - self.keyname = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.keyname = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 7: if ftype == TType.STRING: - self.openstack_id = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.openstack_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 8: if ftype == TType.STRING: - self.name = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 9: if ftype == TType.STRING: - self.created_at = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.created_at = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 10: if ftype == TType.STRING: - self.floating_ip = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.floating_ip = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 11: if ftype == TType.STRING: - self.fixed_ip = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.fixed_ip = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 12: @@ -1155,11 +813,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 13: if ftype == TType.STRING: - self.volume_id = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.volume_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -1169,128 +823,91 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("VM") + oprot.writeStructBegin('VM') if self.flav is not None: - oprot.writeFieldBegin("flav", TType.STRUCT, 1) + oprot.writeFieldBegin('flav', TType.STRUCT, 1) self.flav.write(oprot) oprot.writeFieldEnd() if self.img is not None: - oprot.writeFieldBegin("img", TType.STRUCT, 2) + oprot.writeFieldBegin('img', TType.STRUCT, 2) self.img.write(oprot) oprot.writeFieldEnd() if self.status is not None: - oprot.writeFieldBegin("status", TType.STRING, 3) - oprot.writeString( - self.status.encode("utf-8") if sys.version_info[0] == 2 else self.status - ) + oprot.writeFieldBegin('status', TType.STRING, 3) + oprot.writeString(self.status.encode('utf-8') if sys.version_info[0] == 2 else self.status) oprot.writeFieldEnd() if self.metadata is not None: - oprot.writeFieldBegin("metadata", TType.MAP, 4) + oprot.writeFieldBegin('metadata', TType.MAP, 4) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.metadata)) for kiter21, viter22 in self.metadata.items(): - oprot.writeString( - kiter21.encode("utf-8") if sys.version_info[0] == 2 else kiter21 - ) - oprot.writeString( - viter22.encode("utf-8") if sys.version_info[0] == 2 else viter22 - ) + oprot.writeString(kiter21.encode('utf-8') if sys.version_info[0] == 2 else kiter21) + oprot.writeString(viter22.encode('utf-8') if sys.version_info[0] == 2 else viter22) oprot.writeMapEnd() oprot.writeFieldEnd() if self.project_id is not None: - oprot.writeFieldBegin("project_id", TType.STRING, 5) - oprot.writeString( - self.project_id.encode("utf-8") - if sys.version_info[0] == 2 - else self.project_id - ) + oprot.writeFieldBegin('project_id', TType.STRING, 5) + oprot.writeString(self.project_id.encode('utf-8') if sys.version_info[0] == 2 else self.project_id) oprot.writeFieldEnd() if self.keyname is not None: - oprot.writeFieldBegin("keyname", TType.STRING, 6) - oprot.writeString( - self.keyname.encode("utf-8") - if sys.version_info[0] == 2 - else self.keyname - ) + oprot.writeFieldBegin('keyname', TType.STRING, 6) + oprot.writeString(self.keyname.encode('utf-8') if sys.version_info[0] == 2 else self.keyname) oprot.writeFieldEnd() if self.openstack_id is not None: - oprot.writeFieldBegin("openstack_id", TType.STRING, 7) - oprot.writeString( - self.openstack_id.encode("utf-8") - if sys.version_info[0] == 2 - else self.openstack_id - ) + oprot.writeFieldBegin('openstack_id', TType.STRING, 7) + oprot.writeString(self.openstack_id.encode('utf-8') if sys.version_info[0] == 2 else self.openstack_id) oprot.writeFieldEnd() if self.name is not None: - oprot.writeFieldBegin("name", TType.STRING, 8) - oprot.writeString( - self.name.encode("utf-8") if sys.version_info[0] == 2 else self.name - ) + oprot.writeFieldBegin('name', TType.STRING, 8) + oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name) oprot.writeFieldEnd() if self.created_at is not None: - oprot.writeFieldBegin("created_at", TType.STRING, 9) - oprot.writeString( - self.created_at.encode("utf-8") - if sys.version_info[0] == 2 - else self.created_at - ) + oprot.writeFieldBegin('created_at', TType.STRING, 9) + oprot.writeString(self.created_at.encode('utf-8') if sys.version_info[0] == 2 else self.created_at) oprot.writeFieldEnd() if self.floating_ip is not None: - oprot.writeFieldBegin("floating_ip", TType.STRING, 10) - oprot.writeString( - self.floating_ip.encode("utf-8") - if sys.version_info[0] == 2 - else self.floating_ip - ) + oprot.writeFieldBegin('floating_ip', TType.STRING, 10) + oprot.writeString(self.floating_ip.encode('utf-8') if sys.version_info[0] == 2 else self.floating_ip) oprot.writeFieldEnd() if self.fixed_ip is not None: - oprot.writeFieldBegin("fixed_ip", TType.STRING, 11) - oprot.writeString( - self.fixed_ip.encode("utf-8") - if sys.version_info[0] == 2 - else self.fixed_ip - ) + oprot.writeFieldBegin('fixed_ip', TType.STRING, 11) + oprot.writeString(self.fixed_ip.encode('utf-8') if sys.version_info[0] == 2 else self.fixed_ip) oprot.writeFieldEnd() if self.diskspace is not None: - oprot.writeFieldBegin("diskspace", TType.I32, 12) + oprot.writeFieldBegin('diskspace', TType.I32, 12) oprot.writeI32(self.diskspace) oprot.writeFieldEnd() if self.volume_id is not None: - oprot.writeFieldBegin("volume_id", TType.STRING, 13) - oprot.writeString( - self.volume_id.encode("utf-8") - if sys.version_info[0] == 2 - else self.volume_id - ) + oprot.writeFieldBegin('volume_id', TType.STRING, 13) + oprot.writeString(self.volume_id.encode('utf-8') if sys.version_info[0] == 2 else self.volume_id) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): if self.flav is None: - raise TProtocolException(message="Required field flav is unset!") + raise TProtocolException(message='Required field flav is unset!') if self.img is None: - raise TProtocolException(message="Required field img is unset!") + raise TProtocolException(message='Required field img is unset!') if self.status is None: - raise TProtocolException(message="Required field status is unset!") + raise TProtocolException(message='Required field status is unset!') if self.keyname is None: - raise TProtocolException(message="Required field keyname is unset!") + raise TProtocolException(message='Required field keyname is unset!') if self.openstack_id is None: - raise TProtocolException(message="Required field openstack_id is unset!") + raise TProtocolException(message='Required field openstack_id is unset!') if self.name is None: - raise TProtocolException(message="Required field name is unset!") + raise TProtocolException(message='Required field name is unset!') if self.created_at is None: - raise TProtocolException(message="Required field created_at is unset!") + raise TProtocolException(message='Required field created_at is unset!') if self.fixed_ip is None: - raise TProtocolException(message="Required field fixed_ip is unset!") + raise TProtocolException(message='Required field fixed_ip is unset!') return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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__ @@ -1308,19 +925,14 @@ class ClusterInstance(object): """ - def __init__( - self, type=None, image=None, count=None, - ): + + def __init__(self, type=None, image=None, count=None,): self.type = type self.image = image self.count = count def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -1330,20 +942,12 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.type = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.type = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.image = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.image = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: @@ -1358,25 +962,19 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("ClusterInstance") + oprot.writeStructBegin('ClusterInstance') if self.type is not None: - oprot.writeFieldBegin("type", TType.STRING, 1) - oprot.writeString( - self.type.encode("utf-8") if sys.version_info[0] == 2 else self.type - ) + oprot.writeFieldBegin('type', TType.STRING, 1) + oprot.writeString(self.type.encode('utf-8') if sys.version_info[0] == 2 else self.type) oprot.writeFieldEnd() if self.image is not None: - oprot.writeFieldBegin("image", TType.STRING, 2) - oprot.writeString( - self.image.encode("utf-8") if sys.version_info[0] == 2 else self.image - ) + oprot.writeFieldBegin('image', TType.STRING, 2) + oprot.writeString(self.image.encode('utf-8') if sys.version_info[0] == 2 else self.image) oprot.writeFieldEnd() if self.count is not None: - oprot.writeFieldBegin("count", TType.I32, 3) + oprot.writeFieldBegin('count', TType.I32, 3) oprot.writeI32(self.count) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -1384,14 +982,15 @@ def write(self, oprot): def validate(self): if self.type is None: - raise TProtocolException(message="Required field type is unset!") + raise TProtocolException(message='Required field type is unset!') if self.image is None: - raise TProtocolException(message="Required field image is unset!") + raise TProtocolException(message='Required field image is unset!') return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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__ @@ -1411,19 +1010,14 @@ class PlaybookResult(object): """ - def __init__( - self, status=None, stdout=None, stderr=None, - ): + + def __init__(self, status=None, stdout=None, stderr=None,): self.status = status self.stdout = stdout self.stderr = stderr def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -1438,20 +1032,12 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.stdout = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.stdout = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.stderr = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.stderr = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -1461,42 +1047,37 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("PlaybookResult") + oprot.writeStructBegin('PlaybookResult') if self.status is not None: - oprot.writeFieldBegin("status", TType.I32, 1) + oprot.writeFieldBegin('status', TType.I32, 1) oprot.writeI32(self.status) oprot.writeFieldEnd() if self.stdout is not None: - oprot.writeFieldBegin("stdout", TType.STRING, 2) - oprot.writeString( - self.stdout.encode("utf-8") if sys.version_info[0] == 2 else self.stdout - ) + oprot.writeFieldBegin('stdout', TType.STRING, 2) + oprot.writeString(self.stdout.encode('utf-8') if sys.version_info[0] == 2 else self.stdout) oprot.writeFieldEnd() if self.stderr is not None: - oprot.writeFieldBegin("stderr", TType.STRING, 3) - oprot.writeString( - self.stderr.encode("utf-8") if sys.version_info[0] == 2 else self.stderr - ) + oprot.writeFieldBegin('stderr', TType.STRING, 3) + oprot.writeString(self.stderr.encode('utf-8') if sys.version_info[0] == 2 else self.stderr) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): if self.status is None: - raise TProtocolException(message="Required field status is unset!") + raise TProtocolException(message='Required field status is unset!') if self.stdout is None: - raise TProtocolException(message="Required field stdout is unset!") + raise TProtocolException(message='Required field stdout is unset!') if self.stderr is None: - raise TProtocolException(message="Required field stderr is unset!") + raise TProtocolException(message='Required field stderr is unset!') return def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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__ @@ -1512,17 +1093,12 @@ class otherException(TException): """ - def __init__( - self, Reason=None, - ): + + def __init__(self, Reason=None,): self.Reason = Reason def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -1532,11 +1108,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.Reason = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.Reason = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -1546,16 +1118,12 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("otherException") + oprot.writeStructBegin('otherException') if self.Reason is not None: - oprot.writeFieldBegin("Reason", TType.STRING, 1) - oprot.writeString( - self.Reason.encode("utf-8") if sys.version_info[0] == 2 else self.Reason - ) + oprot.writeFieldBegin('Reason', TType.STRING, 1) + oprot.writeString(self.Reason.encode('utf-8') if sys.version_info[0] == 2 else self.Reason) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -1567,8 +1135,9 @@ def __str__(self): return repr(self) def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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__ @@ -1584,17 +1153,12 @@ class ressourceException(TException): """ - def __init__( - self, Reason=None, - ): + + def __init__(self, Reason=None,): self.Reason = Reason def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -1604,11 +1168,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.Reason = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.Reason = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -1618,16 +1178,12 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("ressourceException") + oprot.writeStructBegin('ressourceException') if self.Reason is not None: - oprot.writeFieldBegin("Reason", TType.STRING, 1) - oprot.writeString( - self.Reason.encode("utf-8") if sys.version_info[0] == 2 else self.Reason - ) + oprot.writeFieldBegin('Reason', TType.STRING, 1) + oprot.writeString(self.Reason.encode('utf-8') if sys.version_info[0] == 2 else self.Reason) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -1639,8 +1195,9 @@ def __str__(self): return repr(self) def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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__ @@ -1656,17 +1213,12 @@ class nameException(TException): """ - def __init__( - self, Reason=None, - ): + + def __init__(self, Reason=None,): self.Reason = Reason def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -1676,11 +1228,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.Reason = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.Reason = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -1690,16 +1238,12 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("nameException") + oprot.writeStructBegin('nameException') if self.Reason is not None: - oprot.writeFieldBegin("Reason", TType.STRING, 1) - oprot.writeString( - self.Reason.encode("utf-8") if sys.version_info[0] == 2 else self.Reason - ) + oprot.writeFieldBegin('Reason', TType.STRING, 1) + oprot.writeString(self.Reason.encode('utf-8') if sys.version_info[0] == 2 else self.Reason) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -1711,8 +1255,9 @@ def __str__(self): return repr(self) def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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__ @@ -1728,17 +1273,12 @@ class serverNotFoundException(TException): """ - def __init__( - self, Reason=None, - ): + + def __init__(self, Reason=None,): self.Reason = Reason def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -1748,11 +1288,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.Reason = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.Reason = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -1762,16 +1298,12 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("serverNotFoundException") + oprot.writeStructBegin('serverNotFoundException') if self.Reason is not None: - oprot.writeFieldBegin("Reason", TType.STRING, 1) - oprot.writeString( - self.Reason.encode("utf-8") if sys.version_info[0] == 2 else self.Reason - ) + oprot.writeFieldBegin('Reason', TType.STRING, 1) + oprot.writeString(self.Reason.encode('utf-8') if sys.version_info[0] == 2 else self.Reason) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -1783,8 +1315,9 @@ def __str__(self): return repr(self) def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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__ @@ -1800,17 +1333,12 @@ class networkNotFoundException(TException): """ - def __init__( - self, Reason=None, - ): + + def __init__(self, Reason=None,): self.Reason = Reason def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -1820,11 +1348,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.Reason = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.Reason = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -1834,16 +1358,12 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("networkNotFoundException") + oprot.writeStructBegin('networkNotFoundException') if self.Reason is not None: - oprot.writeFieldBegin("Reason", TType.STRING, 1) - oprot.writeString( - self.Reason.encode("utf-8") if sys.version_info[0] == 2 else self.Reason - ) + oprot.writeFieldBegin('Reason', TType.STRING, 1) + oprot.writeString(self.Reason.encode('utf-8') if sys.version_info[0] == 2 else self.Reason) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -1855,8 +1375,9 @@ def __str__(self): return repr(self) def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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__ @@ -1872,17 +1393,12 @@ class imageNotFoundException(TException): """ - def __init__( - self, Reason=None, - ): + + def __init__(self, Reason=None,): self.Reason = Reason def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -1892,11 +1408,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.Reason = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.Reason = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -1906,16 +1418,12 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("imageNotFoundException") + oprot.writeStructBegin('imageNotFoundException') if self.Reason is not None: - oprot.writeFieldBegin("Reason", TType.STRING, 1) - oprot.writeString( - self.Reason.encode("utf-8") if sys.version_info[0] == 2 else self.Reason - ) + oprot.writeFieldBegin('Reason', TType.STRING, 1) + oprot.writeString(self.Reason.encode('utf-8') if sys.version_info[0] == 2 else self.Reason) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -1927,8 +1435,9 @@ def __str__(self): return repr(self) def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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__ @@ -1944,17 +1453,12 @@ class flavorNotFoundException(TException): """ - def __init__( - self, Reason=None, - ): + + def __init__(self, Reason=None,): self.Reason = Reason def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -1964,11 +1468,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.Reason = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.Reason = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -1978,16 +1478,12 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("flavorNotFoundException") + oprot.writeStructBegin('flavorNotFoundException') if self.Reason is not None: - oprot.writeFieldBegin("Reason", TType.STRING, 1) - oprot.writeString( - self.Reason.encode("utf-8") if sys.version_info[0] == 2 else self.Reason - ) + oprot.writeFieldBegin('Reason', TType.STRING, 1) + oprot.writeString(self.Reason.encode('utf-8') if sys.version_info[0] == 2 else self.Reason) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -1999,8 +1495,9 @@ def __str__(self): return repr(self) def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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__ @@ -2018,17 +1515,12 @@ class authenticationException(TException): """ - def __init__( - self, Reason=None, - ): + + def __init__(self, Reason=None,): self.Reason = Reason def read(self, iprot): - if ( - iprot._fast_decode is not None - and isinstance(iprot.trans, TTransport.CReadableTransport) - and self.thrift_spec is not None - ): + if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -2038,11 +1530,7 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.Reason = ( - iprot.readString().decode("utf-8") - if sys.version_info[0] == 2 - else iprot.readString() - ) + self.Reason = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: @@ -2052,16 +1540,12 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write( - oprot._fast_encode(self, [self.__class__, self.thrift_spec]) - ) + oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return - oprot.writeStructBegin("authenticationException") + oprot.writeStructBegin('authenticationException') if self.Reason is not None: - oprot.writeFieldBegin("Reason", TType.STRING, 1) - oprot.writeString( - self.Reason.encode("utf-8") if sys.version_info[0] == 2 else self.Reason - ) + oprot.writeFieldBegin('Reason', TType.STRING, 1) + oprot.writeString(self.Reason.encode('utf-8') if sys.version_info[0] == 2 else self.Reason) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -2073,149 +1557,142 @@ def __str__(self): return repr(self) def __repr__(self): - L = ["%s=%r" % (key, value) for key, value in self.__dict__.items()] - return "%s(%s)" % (self.__class__.__name__, ", ".join(L)) + 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) - - all_structs.append(Backend) Backend.thrift_spec = ( None, # 0 - (1, TType.I64, "id", None, None,), # 1 - (2, TType.STRING, "owner", "UTF8", None,), # 2 - (3, TType.STRING, "location_url", "UTF8", None,), # 3 - (4, TType.STRING, "template", "UTF8", None,), # 4 - (5, TType.STRING, "template_version", "UTF8", None,), # 5 + (1, TType.I64, 'id', None, None, ), # 1 + (2, TType.STRING, 'owner', 'UTF8', None, ), # 2 + (3, TType.STRING, 'location_url', 'UTF8', None, ), # 3 + (4, TType.STRING, 'template', 'UTF8', None, ), # 4 + (5, TType.STRING, 'template_version', 'UTF8', None, ), # 5 ) all_structs.append(ClusterInfo) ClusterInfo.thrift_spec = ( None, # 0 - (1, TType.STRING, "launch_date", "UTF8", None,), # 1 - (2, TType.STRING, "group_id", "UTF8", None,), # 2 - (3, TType.STRING, "network_id", "UTF8", None,), # 3 - (4, TType.STRING, "public_ip", "UTF8", None,), # 4 - (5, TType.STRING, "subnet_id", "UTF8", None,), # 5 - (6, TType.STRING, "user", "UTF8", None,), # 6 - (7, TType.I32, "inst_counter", None, None,), # 7 - (8, TType.STRING, "cluster_id", "UTF8", None,), # 8 - (9, TType.STRING, "key_name", "UTF8", None,), # 9 + (1, TType.STRING, 'launch_date', 'UTF8', None, ), # 1 + (2, TType.STRING, 'group_id', 'UTF8', None, ), # 2 + (3, TType.STRING, 'network_id', 'UTF8', None, ), # 3 + (4, TType.STRING, 'public_ip', 'UTF8', None, ), # 4 + (5, TType.STRING, 'subnet_id', 'UTF8', None, ), # 5 + (6, TType.STRING, 'user', 'UTF8', None, ), # 6 + (7, TType.I32, 'inst_counter', None, None, ), # 7 + (8, TType.STRING, 'cluster_id', 'UTF8', None, ), # 8 + (9, TType.STRING, 'key_name', 'UTF8', None, ), # 9 ) all_structs.append(Volume) Volume.thrift_spec = ( None, # 0 - (1, TType.STRING, "id", "UTF8", None,), # 1 - (2, TType.STRING, "name", "UTF8", None,), # 2 - (3, TType.STRING, "description", "UTF8", None,), # 3 - (4, TType.STRING, "status", "UTF8", None,), # 4 - (5, TType.STRING, "created_at", "UTF8", None,), # 5 - (6, TType.STRING, "device", "UTF8", None,), # 6 + (1, TType.STRING, 'id', 'UTF8', None, ), # 1 + (2, TType.STRING, 'name', 'UTF8', None, ), # 2 + (3, TType.STRING, 'description', 'UTF8', None, ), # 3 + (4, TType.STRING, 'status', 'UTF8', None, ), # 4 + (5, TType.STRING, 'created_at', 'UTF8', None, ), # 5 + (6, TType.STRING, 'device', 'UTF8', None, ), # 6 ) all_structs.append(Flavor) Flavor.thrift_spec = ( None, # 0 - (1, TType.I32, "vcpus", None, None,), # 1 - (2, TType.I32, "ram", None, None,), # 2 - (3, TType.I32, "disk", None, None,), # 3 - (4, TType.STRING, "name", "UTF8", None,), # 4 - (5, TType.STRING, "openstack_id", "UTF8", None,), # 5 - (6, TType.STRING, "description", "UTF8", None,), # 6 - (7, TType.LIST, "tags", (TType.STRING, "UTF8", False), None,), # 7 + (1, TType.I32, 'vcpus', None, None, ), # 1 + (2, TType.I32, 'ram', None, None, ), # 2 + (3, TType.I32, 'disk', None, None, ), # 3 + (4, TType.STRING, 'name', 'UTF8', None, ), # 4 + (5, TType.STRING, 'openstack_id', 'UTF8', None, ), # 5 + (6, TType.STRING, 'description', 'UTF8', None, ), # 6 + (7, TType.LIST, 'tags', (TType.STRING, 'UTF8', False), None, ), # 7 ) all_structs.append(Image) Image.thrift_spec = ( None, # 0 - (1, TType.STRING, "name", "UTF8", None,), # 1 - (2, TType.I32, "min_disk", None, None,), # 2 - (3, TType.I32, "min_ram", None, None,), # 3 - (4, TType.STRING, "status", "UTF8", None,), # 4 - (5, TType.STRING, "created_at", "UTF8", None,), # 5 - (6, TType.STRING, "updated_at", "UTF8", None,), # 6 - (7, TType.STRING, "openstack_id", "UTF8", None,), # 7 - (8, TType.STRING, "description", "UTF8", None,), # 8 - (9, TType.LIST, "tag", (TType.STRING, "UTF8", False), None,), # 9 - (10, TType.BOOL, "is_snapshot", None, None,), # 10 + (1, TType.STRING, 'name', 'UTF8', None, ), # 1 + (2, TType.I32, 'min_disk', None, None, ), # 2 + (3, TType.I32, 'min_ram', None, None, ), # 3 + (4, TType.STRING, 'status', 'UTF8', None, ), # 4 + (5, TType.STRING, 'created_at', 'UTF8', None, ), # 5 + (6, TType.STRING, 'updated_at', 'UTF8', None, ), # 6 + (7, TType.STRING, 'openstack_id', 'UTF8', None, ), # 7 + (8, TType.STRING, 'description', 'UTF8', None, ), # 8 + (9, TType.LIST, 'tag', (TType.STRING, 'UTF8', False), None, ), # 9 + (10, TType.BOOL, 'is_snapshot', None, None, ), # 10 ) all_structs.append(VM) VM.thrift_spec = ( None, # 0 - (1, TType.STRUCT, "flav", [Flavor, None], None,), # 1 - (2, TType.STRUCT, "img", [Image, None], None,), # 2 - (3, TType.STRING, "status", "UTF8", None,), # 3 - ( - 4, - TType.MAP, - "metadata", - (TType.STRING, "UTF8", TType.STRING, "UTF8", False), - None, - ), # 4 - (5, TType.STRING, "project_id", "UTF8", None,), # 5 - (6, TType.STRING, "keyname", "UTF8", None,), # 6 - (7, TType.STRING, "openstack_id", "UTF8", None,), # 7 - (8, TType.STRING, "name", "UTF8", None,), # 8 - (9, TType.STRING, "created_at", "UTF8", None,), # 9 - (10, TType.STRING, "floating_ip", "UTF8", None,), # 10 - (11, TType.STRING, "fixed_ip", "UTF8", None,), # 11 - (12, TType.I32, "diskspace", None, None,), # 12 - (13, TType.STRING, "volume_id", "UTF8", None,), # 13 + (1, TType.STRUCT, 'flav', [Flavor, None], None, ), # 1 + (2, TType.STRUCT, 'img', [Image, None], None, ), # 2 + (3, TType.STRING, 'status', 'UTF8', None, ), # 3 + (4, TType.MAP, 'metadata', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 4 + (5, TType.STRING, 'project_id', 'UTF8', None, ), # 5 + (6, TType.STRING, 'keyname', 'UTF8', None, ), # 6 + (7, TType.STRING, 'openstack_id', 'UTF8', None, ), # 7 + (8, TType.STRING, 'name', 'UTF8', None, ), # 8 + (9, TType.STRING, 'created_at', 'UTF8', None, ), # 9 + (10, TType.STRING, 'floating_ip', 'UTF8', None, ), # 10 + (11, TType.STRING, 'fixed_ip', 'UTF8', None, ), # 11 + (12, TType.I32, 'diskspace', None, None, ), # 12 + (13, TType.STRING, 'volume_id', 'UTF8', None, ), # 13 ) all_structs.append(ClusterInstance) ClusterInstance.thrift_spec = ( None, # 0 - (1, TType.STRING, "type", "UTF8", None,), # 1 - (2, TType.STRING, "image", "UTF8", None,), # 2 - (3, TType.I32, "count", None, None,), # 3 + (1, TType.STRING, 'type', 'UTF8', None, ), # 1 + (2, TType.STRING, 'image', 'UTF8', None, ), # 2 + (3, TType.I32, 'count', None, None, ), # 3 ) all_structs.append(PlaybookResult) PlaybookResult.thrift_spec = ( None, # 0 - (1, TType.I32, "status", None, None,), # 1 - (2, TType.STRING, "stdout", "UTF8", None,), # 2 - (3, TType.STRING, "stderr", "UTF8", None,), # 3 + (1, TType.I32, 'status', None, None, ), # 1 + (2, TType.STRING, 'stdout', 'UTF8', None, ), # 2 + (3, TType.STRING, 'stderr', 'UTF8', None, ), # 3 ) all_structs.append(otherException) otherException.thrift_spec = ( None, # 0 - (1, TType.STRING, "Reason", "UTF8", None,), # 1 + (1, TType.STRING, 'Reason', 'UTF8', None, ), # 1 ) all_structs.append(ressourceException) ressourceException.thrift_spec = ( None, # 0 - (1, TType.STRING, "Reason", "UTF8", None,), # 1 + (1, TType.STRING, 'Reason', 'UTF8', None, ), # 1 ) all_structs.append(nameException) nameException.thrift_spec = ( None, # 0 - (1, TType.STRING, "Reason", "UTF8", None,), # 1 + (1, TType.STRING, 'Reason', 'UTF8', None, ), # 1 ) all_structs.append(serverNotFoundException) serverNotFoundException.thrift_spec = ( None, # 0 - (1, TType.STRING, "Reason", "UTF8", None,), # 1 + (1, TType.STRING, 'Reason', 'UTF8', None, ), # 1 ) all_structs.append(networkNotFoundException) networkNotFoundException.thrift_spec = ( None, # 0 - (1, TType.STRING, "Reason", "UTF8", None,), # 1 + (1, TType.STRING, 'Reason', 'UTF8', None, ), # 1 ) all_structs.append(imageNotFoundException) imageNotFoundException.thrift_spec = ( None, # 0 - (1, TType.STRING, "Reason", "UTF8", None,), # 1 + (1, TType.STRING, 'Reason', 'UTF8', None, ), # 1 ) all_structs.append(flavorNotFoundException) flavorNotFoundException.thrift_spec = ( None, # 0 - (1, TType.STRING, "Reason", "UTF8", None,), # 1 + (1, TType.STRING, 'Reason', 'UTF8', None, ), # 1 ) all_structs.append(authenticationException) authenticationException.thrift_spec = ( None, # 0 - (1, TType.STRING, "Reason", "UTF8", None,), # 1 + (1, TType.STRING, 'Reason', 'UTF8', None, ), # 1 ) fix_spec(all_structs) del all_structs diff --git a/portal_client.thrift b/portal_client.thrift index 32d65ab9..da7dc64e 100644 --- a/portal_client.thrift +++ b/portal_client.thrift @@ -368,7 +368,8 @@ service VirtualMachineService { throws (1:nameException e,2:ressourceException r,3:serverNotFoundException s,4: networkNotFoundException n,5:imageNotFoundException i,6:flavorNotFoundException f,7:otherException o) - + bool bibigrid_available() + bool detach_ip_from_server(1:string server_id,2:string floating_ip) map start_server_with_mounted_volume( /** Name of the Flavor to use.*/ From 8917949b96a30ffba48517b846856e57d8aa53ae Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 10 Apr 2020 11:58:18 +0000 Subject: [PATCH 25/31] fix(Linting):blacked code --- .../VirtualMachineHandler.py | 22 +- .../VirtualMachineService.py | 7142 ++++++++++++----- VirtualMachineService/constants.py | 9 +- VirtualMachineService/ttypes.py | 1295 ++- 4 files changed, 5952 insertions(+), 2516 deletions(-) diff --git a/VirtualMachineService/VirtualMachineHandler.py b/VirtualMachineService/VirtualMachineHandler.py index f2b3496e..c7568242 100644 --- a/VirtualMachineService/VirtualMachineHandler.py +++ b/VirtualMachineService/VirtualMachineHandler.py @@ -1623,8 +1623,6 @@ def openstack_server_to_thrift_server(self, server): ) return server - - def get_servers(self): self.logger.info("Get all servers") servers = self.conn.list_servers() @@ -1701,13 +1699,20 @@ def add_udp_security_group(self, server_id): return True def detach_ip_from_server(self, server_id, floating_ip): - self.logger.info("Detaching floating ip {} from server {}".format(floating_ip, server_id)) + self.logger.info( + "Detaching floating ip {} from server {}".format(floating_ip, server_id) + ) try: - self.conn.compute.remove_floating_ip_from_server(server=server_id, address=floating_ip) + self.conn.compute.remove_floating_ip_from_server( + server=server_id, address=floating_ip + ) return True except Exception: self.logger.exception( - "Could not detach floating ip {} from server {}".format(floating_ip, server_id)) + "Could not detach floating ip {} from server {}".format( + floating_ip, server_id + ) + ) return False def get_servers_by_bibigrid_id(self, bibigrid_id): @@ -1758,7 +1763,7 @@ def get_cluster_status(self, cluster_id): def bibigrid_available(self): if not self.BIBIGRID_URL: - return False + return False try: self.get_clusters_info() return True @@ -1777,9 +1782,8 @@ def get_clusters_info(self): infos = response.json()["info"] return infos - def get_cluster_info(self, cluster_id): - infos=self.get_clusters_info() + infos = self.get_clusters_info() for info in infos: self.logger.info(cluster_id) self.logger.info(info) @@ -1828,7 +1832,7 @@ def start_cluster(self, public_key, master_instance, worker_instances, user): "availabilityZone": self.AVAIALABILITY_ZONE, "masterInstance": master_instance, "workerInstances": wI, - #"useMasterWithPublicIp": False, + # "useMasterWithPublicIp": False, } for mode in self.BIBIGRID_MODES: body.update({mode: True}) diff --git a/VirtualMachineService/VirtualMachineService.py b/VirtualMachineService/VirtualMachineService.py index 308de118..8315b5d2 100644 --- a/VirtualMachineService/VirtualMachineService.py +++ b/VirtualMachineService/VirtualMachineService.py @@ -6,7 +6,13 @@ # options string: py # -from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException +from thrift.Thrift import ( + TType, + TMessageType, + TFrozenDict, + TException, + TApplicationException, +) from thrift.protocol.TProtocol import TProtocolException from thrift.TRecursive import fix_spec @@ -15,6 +21,7 @@ from ttypes import * from thrift.Thrift import TProcessor from thrift.transport import TTransport + all_structs = [] @@ -23,6 +30,7 @@ class Iface(object): This VirtualMachiine service deploys methods for creating,deleting,stopping etc. VirtualMachines in Openstack. """ + def check_Version(self, version): """ Parameters: @@ -176,7 +184,9 @@ def add_floating_ip_to_server(self, openstack_id, network): """ pass - def create_connection(self, username, password, auth_url, user_domain_name, project_domain_name): + def create_connection( + self, username, password, auth_url, user_domain_name, project_domain_name + ): """ Create connection to OpenStack. Connection instance @@ -194,7 +204,19 @@ def create_connection(self, username, password, auth_url, user_domain_name, proj """ pass - def start_server_without_playbook(self, flavor, image, public_key, servername, metadata, https, http, resenv, volume_ids_path_new, volume_ids_path_attach): + def start_server_without_playbook( + self, + flavor, + image, + public_key, + servername, + metadata, + https, + http, + resenv, + volume_ids_path_new, + volume_ids_path_attach, + ): """ Parameters: - flavor: Name of the Flavor to use. @@ -223,7 +245,19 @@ def detach_ip_from_server(self, server_id, floating_ip): """ pass - def start_server_with_mounted_volume(self, flavor, image, public_key, servername, metadata, https, http, resenv, volume_ids_path_new, volume_ids_path_attach): + def start_server_with_mounted_volume( + self, + flavor, + image, + public_key, + servername, + metadata, + https, + http, + resenv, + volume_ids_path_new, + volume_ids_path_attach, + ): """ Parameters: - flavor: Name of the Flavor to use. @@ -240,7 +274,19 @@ def start_server_with_mounted_volume(self, flavor, image, public_key, servername """ pass - def start_server(self, flavor, image, public_key, servername, metadata, diskspace, volumename, https, http, resenv): + def start_server( + self, + flavor, + image, + public_key, + servername, + metadata, + diskspace, + volumename, + https, + http, + resenv, + ): """ Start a new server. @@ -259,7 +305,18 @@ def start_server(self, flavor, image, public_key, servername, metadata, diskspac """ pass - def start_server_with_custom_key(self, flavor, image, servername, metadata, http, https, resenv, volume_ids_path_new, volume_ids_path_attach): + def start_server_with_custom_key( + self, + flavor, + image, + servername, + metadata, + http, + https, + resenv, + volume_ids_path_new, + volume_ids_path_attach, + ): """ Start a new server with custom key for ansible. @@ -287,7 +344,9 @@ def exist_server(self, name): """ pass - def create_and_deploy_playbook(self, public_key, playbooks_information, openstack_id): + def create_and_deploy_playbook( + self, public_key, playbooks_information, openstack_id + ): """ Create and deploy an anaconda ansible playbook @@ -636,6 +695,7 @@ class Client(Iface): This VirtualMachiine service deploys methods for creating,deleting,stopping etc. VirtualMachines in Openstack. """ + def __init__(self, iprot, oprot=None): self._iprot = self._oprot = iprot if oprot is not None: @@ -652,7 +712,7 @@ def check_Version(self, version): return self.recv_check_Version() def send_check_Version(self, version): - self._oprot.writeMessageBegin('check_Version', TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin("check_Version", TMessageType.CALL, self._seqid) args = check_Version_args() args.version = version args.write(self._oprot) @@ -672,7 +732,9 @@ def recv_check_Version(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "check_Version failed: unknown result") + raise TApplicationException( + TApplicationException.MISSING_RESULT, "check_Version failed: unknown result" + ) def get_client_version(self): """ @@ -684,7 +746,9 @@ def get_client_version(self): return self.recv_get_client_version() def send_get_client_version(self): - self._oprot.writeMessageBegin('get_client_version', TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin( + "get_client_version", TMessageType.CALL, self._seqid + ) args = get_client_version_args() args.write(self._oprot) self._oprot.writeMessageEnd() @@ -703,7 +767,10 @@ def recv_get_client_version(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_client_version failed: unknown result") + raise TApplicationException( + TApplicationException.MISSING_RESULT, + "get_client_version failed: unknown result", + ) def get_gateway_ip(self): """ @@ -714,7 +781,7 @@ def get_gateway_ip(self): return self.recv_get_gateway_ip() def send_get_gateway_ip(self): - self._oprot.writeMessageBegin('get_gateway_ip', TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin("get_gateway_ip", TMessageType.CALL, self._seqid) args = get_gateway_ip_args() args.write(self._oprot) self._oprot.writeMessageEnd() @@ -733,14 +800,19 @@ def recv_get_gateway_ip(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_gateway_ip failed: unknown result") + raise TApplicationException( + TApplicationException.MISSING_RESULT, + "get_gateway_ip failed: unknown result", + ) def get_calculation_formulars(self): self.send_get_calculation_formulars() return self.recv_get_calculation_formulars() def send_get_calculation_formulars(self): - self._oprot.writeMessageBegin('get_calculation_formulars', TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin( + "get_calculation_formulars", TMessageType.CALL, self._seqid + ) args = get_calculation_formulars_args() args.write(self._oprot) self._oprot.writeMessageEnd() @@ -759,7 +831,10 @@ def recv_get_calculation_formulars(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_calculation_formulars failed: unknown result") + raise TApplicationException( + TApplicationException.MISSING_RESULT, + "get_calculation_formulars failed: unknown result", + ) def import_keypair(self, keyname, public_key): """ @@ -775,7 +850,7 @@ def import_keypair(self, keyname, public_key): return self.recv_import_keypair() def send_import_keypair(self, keyname, public_key): - self._oprot.writeMessageBegin('import_keypair', TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin("import_keypair", TMessageType.CALL, self._seqid) args = import_keypair_args() args.keyname = keyname args.public_key = public_key @@ -796,7 +871,10 @@ def recv_import_keypair(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "import_keypair failed: unknown result") + raise TApplicationException( + TApplicationException.MISSING_RESULT, + "import_keypair failed: unknown result", + ) def get_vm_ports(self, openstack_id): """ @@ -811,7 +889,7 @@ def get_vm_ports(self, openstack_id): return self.recv_get_vm_ports() def send_get_vm_ports(self, openstack_id): - self._oprot.writeMessageBegin('get_vm_ports', TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin("get_vm_ports", TMessageType.CALL, self._seqid) args = get_vm_ports_args() args.openstack_id = openstack_id args.write(self._oprot) @@ -831,7 +909,9 @@ def recv_get_vm_ports(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_vm_ports failed: unknown result") + raise TApplicationException( + TApplicationException.MISSING_RESULT, "get_vm_ports failed: unknown result" + ) def get_Flavors(self): """ @@ -843,7 +923,7 @@ def get_Flavors(self): return self.recv_get_Flavors() def send_get_Flavors(self): - self._oprot.writeMessageBegin('get_Flavors', TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin("get_Flavors", TMessageType.CALL, self._seqid) args = get_Flavors_args() args.write(self._oprot) self._oprot.writeMessageEnd() @@ -862,7 +942,9 @@ def recv_get_Flavors(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_Flavors failed: unknown result") + raise TApplicationException( + TApplicationException.MISSING_RESULT, "get_Flavors failed: unknown result" + ) def get_Images(self): """ @@ -874,7 +956,7 @@ def get_Images(self): return self.recv_get_Images() def send_get_Images(self): - self._oprot.writeMessageBegin('get_Images', TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin("get_Images", TMessageType.CALL, self._seqid) args = get_Images_args() args.write(self._oprot) self._oprot.writeMessageEnd() @@ -893,7 +975,9 @@ def recv_get_Images(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_Images failed: unknown result") + raise TApplicationException( + TApplicationException.MISSING_RESULT, "get_Images failed: unknown result" + ) def get_Image_with_Tag(self, openstack_id): """ @@ -908,7 +992,9 @@ def get_Image_with_Tag(self, openstack_id): return self.recv_get_Image_with_Tag() def send_get_Image_with_Tag(self, openstack_id): - self._oprot.writeMessageBegin('get_Image_with_Tag', TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin( + "get_Image_with_Tag", TMessageType.CALL, self._seqid + ) args = get_Image_with_Tag_args() args.openstack_id = openstack_id args.write(self._oprot) @@ -928,7 +1014,10 @@ def recv_get_Image_with_Tag(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_Image_with_Tag failed: unknown result") + raise TApplicationException( + TApplicationException.MISSING_RESULT, + "get_Image_with_Tag failed: unknown result", + ) def get_Images_by_filter(self, filter_json): """ @@ -943,7 +1032,9 @@ def get_Images_by_filter(self, filter_json): return self.recv_get_Images_by_filter() def send_get_Images_by_filter(self, filter_json): - self._oprot.writeMessageBegin('get_Images_by_filter', TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin( + "get_Images_by_filter", TMessageType.CALL, self._seqid + ) args = get_Images_by_filter_args() args.filter_json = filter_json args.write(self._oprot) @@ -963,7 +1054,10 @@ def recv_get_Images_by_filter(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_Images_by_filter failed: unknown result") + raise TApplicationException( + TApplicationException.MISSING_RESULT, + "get_Images_by_filter failed: unknown result", + ) def get_volume(self, volume_id): """ @@ -975,7 +1069,7 @@ def get_volume(self, volume_id): return self.recv_get_volume() def send_get_volume(self, volume_id): - self._oprot.writeMessageBegin('get_volume', TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin("get_volume", TMessageType.CALL, self._seqid) args = get_volume_args() args.volume_id = volume_id args.write(self._oprot) @@ -995,7 +1089,9 @@ def recv_get_volume(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_volume failed: unknown result") + raise TApplicationException( + TApplicationException.MISSING_RESULT, "get_volume failed: unknown result" + ) def get_volumes_by_ids(self, volume_ids): """ @@ -1007,7 +1103,9 @@ def get_volumes_by_ids(self, volume_ids): return self.recv_get_volumes_by_ids() def send_get_volumes_by_ids(self, volume_ids): - self._oprot.writeMessageBegin('get_volumes_by_ids', TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin( + "get_volumes_by_ids", TMessageType.CALL, self._seqid + ) args = get_volumes_by_ids_args() args.volume_ids = volume_ids args.write(self._oprot) @@ -1027,7 +1125,10 @@ def recv_get_volumes_by_ids(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_volumes_by_ids failed: unknown result") + raise TApplicationException( + TApplicationException.MISSING_RESULT, + "get_volumes_by_ids failed: unknown result", + ) def resize_volume(self, volume_id, size): """ @@ -1040,7 +1141,7 @@ def resize_volume(self, volume_id, size): return self.recv_resize_volume() def send_resize_volume(self, volume_id, size): - self._oprot.writeMessageBegin('resize_volume', TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin("resize_volume", TMessageType.CALL, self._seqid) args = resize_volume_args() args.volume_id = volume_id args.size = size @@ -1061,7 +1162,9 @@ def recv_resize_volume(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "resize_volume failed: unknown result") + raise TApplicationException( + TApplicationException.MISSING_RESULT, "resize_volume failed: unknown result" + ) def delete_server(self, openstack_id): """ @@ -1076,7 +1179,7 @@ def delete_server(self, openstack_id): return self.recv_delete_server() def send_delete_server(self, openstack_id): - self._oprot.writeMessageBegin('delete_server', TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin("delete_server", TMessageType.CALL, self._seqid) args = delete_server_args() args.openstack_id = openstack_id args.write(self._oprot) @@ -1098,7 +1201,9 @@ def recv_delete_server(self): return result.success if result.e is not None: raise result.e - raise TApplicationException(TApplicationException.MISSING_RESULT, "delete_server failed: unknown result") + raise TApplicationException( + TApplicationException.MISSING_RESULT, "delete_server failed: unknown result" + ) def add_metadata_to_server(self, servername, metadata): """ @@ -1111,7 +1216,9 @@ def add_metadata_to_server(self, servername, metadata): return self.recv_add_metadata_to_server() def send_add_metadata_to_server(self, servername, metadata): - self._oprot.writeMessageBegin('add_metadata_to_server', TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin( + "add_metadata_to_server", TMessageType.CALL, self._seqid + ) args = add_metadata_to_server_args() args.servername = servername args.metadata = metadata @@ -1134,7 +1241,10 @@ def recv_add_metadata_to_server(self): return result.success if result.e is not None: raise result.e - raise TApplicationException(TApplicationException.MISSING_RESULT, "add_metadata_to_server failed: unknown result") + raise TApplicationException( + TApplicationException.MISSING_RESULT, + "add_metadata_to_server failed: unknown result", + ) def delete_metadata_from_server(self, servername, keys): """ @@ -1147,7 +1257,9 @@ def delete_metadata_from_server(self, servername, keys): return self.recv_delete_metadata_from_server() def send_delete_metadata_from_server(self, servername, keys): - self._oprot.writeMessageBegin('delete_metadata_from_server', TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin( + "delete_metadata_from_server", TMessageType.CALL, self._seqid + ) args = delete_metadata_from_server_args() args.servername = servername args.keys = keys @@ -1170,7 +1282,10 @@ def recv_delete_metadata_from_server(self): return result.success if result.e is not None: raise result.e - raise TApplicationException(TApplicationException.MISSING_RESULT, "delete_metadata_from_server failed: unknown result") + raise TApplicationException( + TApplicationException.MISSING_RESULT, + "delete_metadata_from_server failed: unknown result", + ) def add_floating_ip_to_server(self, openstack_id, network): """ @@ -1186,7 +1301,9 @@ def add_floating_ip_to_server(self, openstack_id, network): return self.recv_add_floating_ip_to_server() def send_add_floating_ip_to_server(self, openstack_id, network): - self._oprot.writeMessageBegin('add_floating_ip_to_server', TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin( + "add_floating_ip_to_server", TMessageType.CALL, self._seqid + ) args = add_floating_ip_to_server_args() args.openstack_id = openstack_id args.network = network @@ -1211,9 +1328,14 @@ def recv_add_floating_ip_to_server(self): raise result.e if result.f is not None: raise result.f - raise TApplicationException(TApplicationException.MISSING_RESULT, "add_floating_ip_to_server failed: unknown result") - - def create_connection(self, username, password, auth_url, user_domain_name, project_domain_name): + raise TApplicationException( + TApplicationException.MISSING_RESULT, + "add_floating_ip_to_server failed: unknown result", + ) + + def create_connection( + self, username, password, auth_url, user_domain_name, project_domain_name + ): """ Create connection to OpenStack. Connection instance @@ -1229,11 +1351,17 @@ def create_connection(self, username, password, auth_url, user_domain_name, proj - project_domain_name: Project domain name of OpenStack """ - self.send_create_connection(username, password, auth_url, user_domain_name, project_domain_name) + self.send_create_connection( + username, password, auth_url, user_domain_name, project_domain_name + ) return self.recv_create_connection() - def send_create_connection(self, username, password, auth_url, user_domain_name, project_domain_name): - self._oprot.writeMessageBegin('create_connection', TMessageType.CALL, self._seqid) + def send_create_connection( + self, username, password, auth_url, user_domain_name, project_domain_name + ): + self._oprot.writeMessageBegin( + "create_connection", TMessageType.CALL, self._seqid + ) args = create_connection_args() args.username = username args.password = password @@ -1259,9 +1387,24 @@ def recv_create_connection(self): return result.success if result.e is not None: raise result.e - raise TApplicationException(TApplicationException.MISSING_RESULT, "create_connection failed: unknown result") - - def start_server_without_playbook(self, flavor, image, public_key, servername, metadata, https, http, resenv, volume_ids_path_new, volume_ids_path_attach): + raise TApplicationException( + TApplicationException.MISSING_RESULT, + "create_connection failed: unknown result", + ) + + def start_server_without_playbook( + self, + flavor, + image, + public_key, + servername, + metadata, + https, + http, + resenv, + volume_ids_path_new, + volume_ids_path_attach, + ): """ Parameters: - flavor: Name of the Flavor to use. @@ -1276,11 +1419,36 @@ def start_server_without_playbook(self, flavor, image, public_key, servername, m - volume_ids_path_attach """ - self.send_start_server_without_playbook(flavor, image, public_key, servername, metadata, https, http, resenv, volume_ids_path_new, volume_ids_path_attach) + self.send_start_server_without_playbook( + flavor, + image, + public_key, + servername, + metadata, + https, + http, + resenv, + volume_ids_path_new, + volume_ids_path_attach, + ) return self.recv_start_server_without_playbook() - def send_start_server_without_playbook(self, flavor, image, public_key, servername, metadata, https, http, resenv, volume_ids_path_new, volume_ids_path_attach): - self._oprot.writeMessageBegin('start_server_without_playbook', TMessageType.CALL, self._seqid) + def send_start_server_without_playbook( + self, + flavor, + image, + public_key, + servername, + metadata, + https, + http, + resenv, + volume_ids_path_new, + volume_ids_path_attach, + ): + self._oprot.writeMessageBegin( + "start_server_without_playbook", TMessageType.CALL, self._seqid + ) args = start_server_without_playbook_args() args.flavor = flavor args.image = image @@ -1323,14 +1491,19 @@ def recv_start_server_without_playbook(self): raise result.f if result.o is not None: raise result.o - raise TApplicationException(TApplicationException.MISSING_RESULT, "start_server_without_playbook failed: unknown result") + raise TApplicationException( + TApplicationException.MISSING_RESULT, + "start_server_without_playbook failed: unknown result", + ) def bibigrid_available(self): self.send_bibigrid_available() return self.recv_bibigrid_available() def send_bibigrid_available(self): - self._oprot.writeMessageBegin('bibigrid_available', TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin( + "bibigrid_available", TMessageType.CALL, self._seqid + ) args = bibigrid_available_args() args.write(self._oprot) self._oprot.writeMessageEnd() @@ -1349,7 +1522,10 @@ def recv_bibigrid_available(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "bibigrid_available failed: unknown result") + raise TApplicationException( + TApplicationException.MISSING_RESULT, + "bibigrid_available failed: unknown result", + ) def detach_ip_from_server(self, server_id, floating_ip): """ @@ -1362,7 +1538,9 @@ def detach_ip_from_server(self, server_id, floating_ip): return self.recv_detach_ip_from_server() def send_detach_ip_from_server(self, server_id, floating_ip): - self._oprot.writeMessageBegin('detach_ip_from_server', TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin( + "detach_ip_from_server", TMessageType.CALL, self._seqid + ) args = detach_ip_from_server_args() args.server_id = server_id args.floating_ip = floating_ip @@ -1383,9 +1561,24 @@ def recv_detach_ip_from_server(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "detach_ip_from_server failed: unknown result") - - def start_server_with_mounted_volume(self, flavor, image, public_key, servername, metadata, https, http, resenv, volume_ids_path_new, volume_ids_path_attach): + raise TApplicationException( + TApplicationException.MISSING_RESULT, + "detach_ip_from_server failed: unknown result", + ) + + def start_server_with_mounted_volume( + self, + flavor, + image, + public_key, + servername, + metadata, + https, + http, + resenv, + volume_ids_path_new, + volume_ids_path_attach, + ): """ Parameters: - flavor: Name of the Flavor to use. @@ -1400,11 +1593,36 @@ def start_server_with_mounted_volume(self, flavor, image, public_key, servername - volume_ids_path_attach """ - self.send_start_server_with_mounted_volume(flavor, image, public_key, servername, metadata, https, http, resenv, volume_ids_path_new, volume_ids_path_attach) + self.send_start_server_with_mounted_volume( + flavor, + image, + public_key, + servername, + metadata, + https, + http, + resenv, + volume_ids_path_new, + volume_ids_path_attach, + ) return self.recv_start_server_with_mounted_volume() - def send_start_server_with_mounted_volume(self, flavor, image, public_key, servername, metadata, https, http, resenv, volume_ids_path_new, volume_ids_path_attach): - self._oprot.writeMessageBegin('start_server_with_mounted_volume', TMessageType.CALL, self._seqid) + def send_start_server_with_mounted_volume( + self, + flavor, + image, + public_key, + servername, + metadata, + https, + http, + resenv, + volume_ids_path_new, + volume_ids_path_attach, + ): + self._oprot.writeMessageBegin( + "start_server_with_mounted_volume", TMessageType.CALL, self._seqid + ) args = start_server_with_mounted_volume_args() args.flavor = flavor args.image = image @@ -1447,9 +1665,24 @@ def recv_start_server_with_mounted_volume(self): raise result.f if result.o is not None: raise result.o - raise TApplicationException(TApplicationException.MISSING_RESULT, "start_server_with_mounted_volume failed: unknown result") - - def start_server(self, flavor, image, public_key, servername, metadata, diskspace, volumename, https, http, resenv): + raise TApplicationException( + TApplicationException.MISSING_RESULT, + "start_server_with_mounted_volume failed: unknown result", + ) + + def start_server( + self, + flavor, + image, + public_key, + servername, + metadata, + diskspace, + volumename, + https, + http, + resenv, + ): """ Start a new server. @@ -1466,11 +1699,34 @@ def start_server(self, flavor, image, public_key, servername, metadata, diskspac - resenv """ - self.send_start_server(flavor, image, public_key, servername, metadata, diskspace, volumename, https, http, resenv) + self.send_start_server( + flavor, + image, + public_key, + servername, + metadata, + diskspace, + volumename, + https, + http, + resenv, + ) return self.recv_start_server() - def send_start_server(self, flavor, image, public_key, servername, metadata, diskspace, volumename, https, http, resenv): - self._oprot.writeMessageBegin('start_server', TMessageType.CALL, self._seqid) + def send_start_server( + self, + flavor, + image, + public_key, + servername, + metadata, + diskspace, + volumename, + https, + http, + resenv, + ): + self._oprot.writeMessageBegin("start_server", TMessageType.CALL, self._seqid) args = start_server_args() args.flavor = flavor args.image = image @@ -1513,9 +1769,22 @@ def recv_start_server(self): raise result.f if result.o is not None: raise result.o - raise TApplicationException(TApplicationException.MISSING_RESULT, "start_server failed: unknown result") - - def start_server_with_custom_key(self, flavor, image, servername, metadata, http, https, resenv, volume_ids_path_new, volume_ids_path_attach): + raise TApplicationException( + TApplicationException.MISSING_RESULT, "start_server failed: unknown result" + ) + + def start_server_with_custom_key( + self, + flavor, + image, + servername, + metadata, + http, + https, + resenv, + volume_ids_path_new, + volume_ids_path_attach, + ): """ Start a new server with custom key for ansible. @@ -1531,11 +1800,34 @@ def start_server_with_custom_key(self, flavor, image, servername, metadata, http - volume_ids_path_attach """ - self.send_start_server_with_custom_key(flavor, image, servername, metadata, http, https, resenv, volume_ids_path_new, volume_ids_path_attach) + self.send_start_server_with_custom_key( + flavor, + image, + servername, + metadata, + http, + https, + resenv, + volume_ids_path_new, + volume_ids_path_attach, + ) return self.recv_start_server_with_custom_key() - def send_start_server_with_custom_key(self, flavor, image, servername, metadata, http, https, resenv, volume_ids_path_new, volume_ids_path_attach): - self._oprot.writeMessageBegin('start_server_with_custom_key', TMessageType.CALL, self._seqid) + def send_start_server_with_custom_key( + self, + flavor, + image, + servername, + metadata, + http, + https, + resenv, + volume_ids_path_new, + volume_ids_path_attach, + ): + self._oprot.writeMessageBegin( + "start_server_with_custom_key", TMessageType.CALL, self._seqid + ) args = start_server_with_custom_key_args() args.flavor = flavor args.image = image @@ -1577,7 +1869,10 @@ def recv_start_server_with_custom_key(self): raise result.f if result.o is not None: raise result.o - raise TApplicationException(TApplicationException.MISSING_RESULT, "start_server_with_custom_key failed: unknown result") + raise TApplicationException( + TApplicationException.MISSING_RESULT, + "start_server_with_custom_key failed: unknown result", + ) def exist_server(self, name): """ @@ -1591,7 +1886,7 @@ def exist_server(self, name): return self.recv_exist_server() def send_exist_server(self, name): - self._oprot.writeMessageBegin('exist_server', TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin("exist_server", TMessageType.CALL, self._seqid) args = exist_server_args() args.name = name args.write(self._oprot) @@ -1611,9 +1906,13 @@ def recv_exist_server(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "exist_server failed: unknown result") + raise TApplicationException( + TApplicationException.MISSING_RESULT, "exist_server failed: unknown result" + ) - def create_and_deploy_playbook(self, public_key, playbooks_information, openstack_id): + def create_and_deploy_playbook( + self, public_key, playbooks_information, openstack_id + ): """ Create and deploy an anaconda ansible playbook @@ -1623,11 +1922,17 @@ def create_and_deploy_playbook(self, public_key, playbooks_information, openstac - openstack_id """ - self.send_create_and_deploy_playbook(public_key, playbooks_information, openstack_id) + self.send_create_and_deploy_playbook( + public_key, playbooks_information, openstack_id + ) return self.recv_create_and_deploy_playbook() - def send_create_and_deploy_playbook(self, public_key, playbooks_information, openstack_id): - self._oprot.writeMessageBegin('create_and_deploy_playbook', TMessageType.CALL, self._seqid) + def send_create_and_deploy_playbook( + self, public_key, playbooks_information, openstack_id + ): + self._oprot.writeMessageBegin( + "create_and_deploy_playbook", TMessageType.CALL, self._seqid + ) args = create_and_deploy_playbook_args() args.public_key = public_key args.playbooks_information = playbooks_information @@ -1649,7 +1954,10 @@ def recv_create_and_deploy_playbook(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "create_and_deploy_playbook failed: unknown result") + raise TApplicationException( + TApplicationException.MISSING_RESULT, + "create_and_deploy_playbook failed: unknown result", + ) def get_playbook_logs(self, openstack_id): """ @@ -1663,7 +1971,9 @@ def get_playbook_logs(self, openstack_id): return self.recv_get_playbook_logs() def send_get_playbook_logs(self, openstack_id): - self._oprot.writeMessageBegin('get_playbook_logs', TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin( + "get_playbook_logs", TMessageType.CALL, self._seqid + ) args = get_playbook_logs_args() args.openstack_id = openstack_id args.write(self._oprot) @@ -1683,7 +1993,10 @@ def recv_get_playbook_logs(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_playbook_logs failed: unknown result") + raise TApplicationException( + TApplicationException.MISSING_RESULT, + "get_playbook_logs failed: unknown result", + ) def has_forc(self): """ @@ -1694,7 +2007,7 @@ def has_forc(self): return self.recv_has_forc() def send_has_forc(self): - self._oprot.writeMessageBegin('has_forc', TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin("has_forc", TMessageType.CALL, self._seqid) args = has_forc_args() args.write(self._oprot) self._oprot.writeMessageEnd() @@ -1713,14 +2026,16 @@ def recv_has_forc(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "has_forc failed: unknown result") + raise TApplicationException( + TApplicationException.MISSING_RESULT, "has_forc failed: unknown result" + ) def get_forc_url(self): self.send_get_forc_url() return self.recv_get_forc_url() def send_get_forc_url(self): - self._oprot.writeMessageBegin('get_forc_url', TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin("get_forc_url", TMessageType.CALL, self._seqid) args = get_forc_url_args() args.write(self._oprot) self._oprot.writeMessageEnd() @@ -1739,7 +2054,9 @@ def recv_get_forc_url(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_forc_url failed: unknown result") + raise TApplicationException( + TApplicationException.MISSING_RESULT, "get_forc_url failed: unknown result" + ) def create_backend(self, elixir_id, user_key_url, template, upstream_url): """ @@ -1756,7 +2073,7 @@ def create_backend(self, elixir_id, user_key_url, template, upstream_url): return self.recv_create_backend() def send_create_backend(self, elixir_id, user_key_url, template, upstream_url): - self._oprot.writeMessageBegin('create_backend', TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin("create_backend", TMessageType.CALL, self._seqid) args = create_backend_args() args.elixir_id = elixir_id args.user_key_url = user_key_url @@ -1779,7 +2096,10 @@ def recv_create_backend(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "create_backend failed: unknown result") + raise TApplicationException( + TApplicationException.MISSING_RESULT, + "create_backend failed: unknown result", + ) def get_backends(self): """ @@ -1790,7 +2110,7 @@ def get_backends(self): return self.recv_get_backends() def send_get_backends(self): - self._oprot.writeMessageBegin('get_backends', TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin("get_backends", TMessageType.CALL, self._seqid) args = get_backends_args() args.write(self._oprot) self._oprot.writeMessageEnd() @@ -1809,7 +2129,9 @@ def recv_get_backends(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_backends failed: unknown result") + raise TApplicationException( + TApplicationException.MISSING_RESULT, "get_backends failed: unknown result" + ) def get_backends_by_owner(self, elixir_id): """ @@ -1823,7 +2145,9 @@ def get_backends_by_owner(self, elixir_id): return self.recv_get_backends_by_owner() def send_get_backends_by_owner(self, elixir_id): - self._oprot.writeMessageBegin('get_backends_by_owner', TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin( + "get_backends_by_owner", TMessageType.CALL, self._seqid + ) args = get_backends_by_owner_args() args.elixir_id = elixir_id args.write(self._oprot) @@ -1843,7 +2167,10 @@ def recv_get_backends_by_owner(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_backends_by_owner failed: unknown result") + raise TApplicationException( + TApplicationException.MISSING_RESULT, + "get_backends_by_owner failed: unknown result", + ) def get_backends_by_template(self, template): """ @@ -1857,7 +2184,9 @@ def get_backends_by_template(self, template): return self.recv_get_backends_by_template() def send_get_backends_by_template(self, template): - self._oprot.writeMessageBegin('get_backends_by_template', TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin( + "get_backends_by_template", TMessageType.CALL, self._seqid + ) args = get_backends_by_template_args() args.template = template args.write(self._oprot) @@ -1877,7 +2206,10 @@ def recv_get_backends_by_template(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_backends_by_template failed: unknown result") + raise TApplicationException( + TApplicationException.MISSING_RESULT, + "get_backends_by_template failed: unknown result", + ) def get_backend_by_id(self, id): """ @@ -1891,7 +2223,9 @@ def get_backend_by_id(self, id): return self.recv_get_backend_by_id() def send_get_backend_by_id(self, id): - self._oprot.writeMessageBegin('get_backend_by_id', TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin( + "get_backend_by_id", TMessageType.CALL, self._seqid + ) args = get_backend_by_id_args() args.id = id args.write(self._oprot) @@ -1911,7 +2245,10 @@ def recv_get_backend_by_id(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_backend_by_id failed: unknown result") + raise TApplicationException( + TApplicationException.MISSING_RESULT, + "get_backend_by_id failed: unknown result", + ) def delete_backend(self, id): """ @@ -1925,7 +2262,7 @@ def delete_backend(self, id): return self.recv_delete_backend() def send_delete_backend(self, id): - self._oprot.writeMessageBegin('delete_backend', TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin("delete_backend", TMessageType.CALL, self._seqid) args = delete_backend_args() args.id = id args.write(self._oprot) @@ -1945,14 +2282,17 @@ def recv_delete_backend(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "delete_backend failed: unknown result") + raise TApplicationException( + TApplicationException.MISSING_RESULT, + "delete_backend failed: unknown result", + ) def get_templates(self): self.send_get_templates() return self.recv_get_templates() def send_get_templates(self): - self._oprot.writeMessageBegin('get_templates', TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin("get_templates", TMessageType.CALL, self._seqid) args = get_templates_args() args.write(self._oprot) self._oprot.writeMessageEnd() @@ -1971,14 +2311,18 @@ def recv_get_templates(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_templates failed: unknown result") + raise TApplicationException( + TApplicationException.MISSING_RESULT, "get_templates failed: unknown result" + ) def get_allowed_templates(self): self.send_get_allowed_templates() return self.recv_get_allowed_templates() def send_get_allowed_templates(self): - self._oprot.writeMessageBegin('get_allowed_templates', TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin( + "get_allowed_templates", TMessageType.CALL, self._seqid + ) args = get_allowed_templates_args() args.write(self._oprot) self._oprot.writeMessageEnd() @@ -1997,7 +2341,10 @@ def recv_get_allowed_templates(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_allowed_templates failed: unknown result") + raise TApplicationException( + TApplicationException.MISSING_RESULT, + "get_allowed_templates failed: unknown result", + ) def get_templates_by_template(self, template_name): """ @@ -2009,7 +2356,9 @@ def get_templates_by_template(self, template_name): return self.recv_get_templates_by_template() def send_get_templates_by_template(self, template_name): - self._oprot.writeMessageBegin('get_templates_by_template', TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin( + "get_templates_by_template", TMessageType.CALL, self._seqid + ) args = get_templates_by_template_args() args.template_name = template_name args.write(self._oprot) @@ -2029,7 +2378,10 @@ def recv_get_templates_by_template(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_templates_by_template failed: unknown result") + raise TApplicationException( + TApplicationException.MISSING_RESULT, + "get_templates_by_template failed: unknown result", + ) def check_template(self, template_name, template_version): """ @@ -2042,7 +2394,7 @@ def check_template(self, template_name, template_version): return self.recv_check_template() def send_check_template(self, template_name, template_version): - self._oprot.writeMessageBegin('check_template', TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin("check_template", TMessageType.CALL, self._seqid) args = check_template_args() args.template_name = template_name args.template_version = template_version @@ -2063,7 +2415,10 @@ def recv_check_template(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "check_template failed: unknown result") + raise TApplicationException( + TApplicationException.MISSING_RESULT, + "check_template failed: unknown result", + ) def add_udp_security_group(self, server_id): """ @@ -2077,7 +2432,9 @@ def add_udp_security_group(self, server_id): return self.recv_add_udp_security_group() def send_add_udp_security_group(self, server_id): - self._oprot.writeMessageBegin('add_udp_security_group', TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin( + "add_udp_security_group", TMessageType.CALL, self._seqid + ) args = add_udp_security_group_args() args.server_id = server_id args.write(self._oprot) @@ -2101,7 +2458,10 @@ def recv_add_udp_security_group(self): raise result.r if result.s is not None: raise result.s - raise TApplicationException(TApplicationException.MISSING_RESULT, "add_udp_security_group failed: unknown result") + raise TApplicationException( + TApplicationException.MISSING_RESULT, + "add_udp_security_group failed: unknown result", + ) def get_servers(self): """ @@ -2113,7 +2473,7 @@ def get_servers(self): return self.recv_get_servers() def send_get_servers(self): - self._oprot.writeMessageBegin('get_servers', TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin("get_servers", TMessageType.CALL, self._seqid) args = get_servers_args() args.write(self._oprot) self._oprot.writeMessageEnd() @@ -2132,7 +2492,9 @@ def recv_get_servers(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_servers failed: unknown result") + raise TApplicationException( + TApplicationException.MISSING_RESULT, "get_servers failed: unknown result" + ) def get_servers_by_ids(self, server_ids): """ @@ -2147,7 +2509,9 @@ def get_servers_by_ids(self, server_ids): return self.recv_get_servers_by_ids() def send_get_servers_by_ids(self, server_ids): - self._oprot.writeMessageBegin('get_servers_by_ids', TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin( + "get_servers_by_ids", TMessageType.CALL, self._seqid + ) args = get_servers_by_ids_args() args.server_ids = server_ids args.write(self._oprot) @@ -2167,7 +2531,10 @@ def recv_get_servers_by_ids(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_servers_by_ids failed: unknown result") + raise TApplicationException( + TApplicationException.MISSING_RESULT, + "get_servers_by_ids failed: unknown result", + ) def get_servers_by_bibigrid_id(self, bibigrid_id): """ @@ -2182,7 +2549,9 @@ def get_servers_by_bibigrid_id(self, bibigrid_id): return self.recv_get_servers_by_bibigrid_id() def send_get_servers_by_bibigrid_id(self, bibigrid_id): - self._oprot.writeMessageBegin('get_servers_by_bibigrid_id', TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin( + "get_servers_by_bibigrid_id", TMessageType.CALL, self._seqid + ) args = get_servers_by_bibigrid_id_args() args.bibigrid_id = bibigrid_id args.write(self._oprot) @@ -2202,7 +2571,10 @@ def recv_get_servers_by_bibigrid_id(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_servers_by_bibigrid_id failed: unknown result") + raise TApplicationException( + TApplicationException.MISSING_RESULT, + "get_servers_by_bibigrid_id failed: unknown result", + ) def get_cluster_info(self, cluster_id): """ @@ -2214,7 +2586,9 @@ def get_cluster_info(self, cluster_id): return self.recv_get_cluster_info() def send_get_cluster_info(self, cluster_id): - self._oprot.writeMessageBegin('get_cluster_info', TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin( + "get_cluster_info", TMessageType.CALL, self._seqid + ) args = get_cluster_info_args() args.cluster_id = cluster_id args.write(self._oprot) @@ -2234,7 +2608,10 @@ def recv_get_cluster_info(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_cluster_info failed: unknown result") + raise TApplicationException( + TApplicationException.MISSING_RESULT, + "get_cluster_info failed: unknown result", + ) def get_cluster_status(self, cluster_id): """ @@ -2246,7 +2623,9 @@ def get_cluster_status(self, cluster_id): return self.recv_get_cluster_status() def send_get_cluster_status(self, cluster_id): - self._oprot.writeMessageBegin('get_cluster_status', TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin( + "get_cluster_status", TMessageType.CALL, self._seqid + ) args = get_cluster_status_args() args.cluster_id = cluster_id args.write(self._oprot) @@ -2266,7 +2645,10 @@ def recv_get_cluster_status(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_cluster_status failed: unknown result") + raise TApplicationException( + TApplicationException.MISSING_RESULT, + "get_cluster_status failed: unknown result", + ) def get_server(self, openstack_id): """ @@ -2281,7 +2663,7 @@ def get_server(self, openstack_id): return self.recv_get_server() def send_get_server(self, openstack_id): - self._oprot.writeMessageBegin('get_server', TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin("get_server", TMessageType.CALL, self._seqid) args = get_server_args() args.openstack_id = openstack_id args.write(self._oprot) @@ -2303,7 +2685,9 @@ def recv_get_server(self): return result.success if result.e is not None: raise result.e - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_server failed: unknown result") + raise TApplicationException( + TApplicationException.MISSING_RESULT, "get_server failed: unknown result" + ) def stop_server(self, openstack_id): """ @@ -2318,7 +2702,7 @@ def stop_server(self, openstack_id): return self.recv_stop_server() def send_stop_server(self, openstack_id): - self._oprot.writeMessageBegin('stop_server', TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin("stop_server", TMessageType.CALL, self._seqid) args = stop_server_args() args.openstack_id = openstack_id args.write(self._oprot) @@ -2340,7 +2724,9 @@ def recv_stop_server(self): return result.success if result.e is not None: raise result.e - raise TApplicationException(TApplicationException.MISSING_RESULT, "stop_server failed: unknown result") + raise TApplicationException( + TApplicationException.MISSING_RESULT, "stop_server failed: unknown result" + ) def create_snapshot(self, openstack_id, name, elixir_id, base_tags, description): """ @@ -2359,8 +2745,10 @@ def create_snapshot(self, openstack_id, name, elixir_id, base_tags, description) self.send_create_snapshot(openstack_id, name, elixir_id, base_tags, description) return self.recv_create_snapshot() - def send_create_snapshot(self, openstack_id, name, elixir_id, base_tags, description): - self._oprot.writeMessageBegin('create_snapshot', TMessageType.CALL, self._seqid) + def send_create_snapshot( + self, openstack_id, name, elixir_id, base_tags, description + ): + self._oprot.writeMessageBegin("create_snapshot", TMessageType.CALL, self._seqid) args = create_snapshot_args() args.openstack_id = openstack_id args.name = name @@ -2386,7 +2774,10 @@ def recv_create_snapshot(self): return result.success if result.e is not None: raise result.e - raise TApplicationException(TApplicationException.MISSING_RESULT, "create_snapshot failed: unknown result") + raise TApplicationException( + TApplicationException.MISSING_RESULT, + "create_snapshot failed: unknown result", + ) def get_limits(self): """ @@ -2400,7 +2791,7 @@ def get_limits(self): return self.recv_get_limits() def send_get_limits(self): - self._oprot.writeMessageBegin('get_limits', TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin("get_limits", TMessageType.CALL, self._seqid) args = get_limits_args() args.write(self._oprot) self._oprot.writeMessageEnd() @@ -2419,7 +2810,9 @@ def recv_get_limits(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "get_limits failed: unknown result") + raise TApplicationException( + TApplicationException.MISSING_RESULT, "get_limits failed: unknown result" + ) def start_cluster(self, public_key, master_instance, worker_instance, user): """ @@ -2434,7 +2827,7 @@ def start_cluster(self, public_key, master_instance, worker_instance, user): return self.recv_start_cluster() def send_start_cluster(self, public_key, master_instance, worker_instance, user): - self._oprot.writeMessageBegin('start_cluster', TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin("start_cluster", TMessageType.CALL, self._seqid) args = start_cluster_args() args.public_key = public_key args.master_instance = master_instance @@ -2457,7 +2850,9 @@ def recv_start_cluster(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "start_cluster failed: unknown result") + raise TApplicationException( + TApplicationException.MISSING_RESULT, "start_cluster failed: unknown result" + ) def terminate_cluster(self, cluster_id): """ @@ -2469,7 +2864,9 @@ def terminate_cluster(self, cluster_id): return self.recv_terminate_cluster() def send_terminate_cluster(self, cluster_id): - self._oprot.writeMessageBegin('terminate_cluster', TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin( + "terminate_cluster", TMessageType.CALL, self._seqid + ) args = terminate_cluster_args() args.cluster_id = cluster_id args.write(self._oprot) @@ -2489,7 +2886,10 @@ def recv_terminate_cluster(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "terminate_cluster failed: unknown result") + raise TApplicationException( + TApplicationException.MISSING_RESULT, + "terminate_cluster failed: unknown result", + ) def delete_image(self, image_id): """ @@ -2504,7 +2904,7 @@ def delete_image(self, image_id): return self.recv_delete_image() def send_delete_image(self, image_id): - self._oprot.writeMessageBegin('delete_image', TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin("delete_image", TMessageType.CALL, self._seqid) args = delete_image_args() args.image_id = image_id args.write(self._oprot) @@ -2526,7 +2926,9 @@ def recv_delete_image(self): return result.success if result.e is not None: raise result.e - raise TApplicationException(TApplicationException.MISSING_RESULT, "delete_image failed: unknown result") + raise TApplicationException( + TApplicationException.MISSING_RESULT, "delete_image failed: unknown result" + ) def delete_volume_attachment(self, volume_id, server_id): """ @@ -2542,7 +2944,9 @@ def delete_volume_attachment(self, volume_id, server_id): return self.recv_delete_volume_attachment() def send_delete_volume_attachment(self, volume_id, server_id): - self._oprot.writeMessageBegin('delete_volume_attachment', TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin( + "delete_volume_attachment", TMessageType.CALL, self._seqid + ) args = delete_volume_attachment_args() args.volume_id = volume_id args.server_id = server_id @@ -2565,7 +2969,10 @@ def recv_delete_volume_attachment(self): return result.success if result.e is not None: raise result.e - raise TApplicationException(TApplicationException.MISSING_RESULT, "delete_volume_attachment failed: unknown result") + raise TApplicationException( + TApplicationException.MISSING_RESULT, + "delete_volume_attachment failed: unknown result", + ) def delete_volume(self, volume_id): """ @@ -2580,7 +2987,7 @@ def delete_volume(self, volume_id): return self.recv_delete_volume() def send_delete_volume(self, volume_id): - self._oprot.writeMessageBegin('delete_volume', TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin("delete_volume", TMessageType.CALL, self._seqid) args = delete_volume_args() args.volume_id = volume_id args.write(self._oprot) @@ -2600,7 +3007,9 @@ def recv_delete_volume(self): iprot.readMessageEnd() if result.success is not None: return result.success - raise TApplicationException(TApplicationException.MISSING_RESULT, "delete_volume failed: unknown result") + raise TApplicationException( + TApplicationException.MISSING_RESULT, "delete_volume failed: unknown result" + ) def attach_volume_to_server(self, openstack_id, volume_id): """ @@ -2616,7 +3025,9 @@ def attach_volume_to_server(self, openstack_id, volume_id): return self.recv_attach_volume_to_server() def send_attach_volume_to_server(self, openstack_id, volume_id): - self._oprot.writeMessageBegin('attach_volume_to_server', TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin( + "attach_volume_to_server", TMessageType.CALL, self._seqid + ) args = attach_volume_to_server_args() args.openstack_id = openstack_id args.volume_id = volume_id @@ -2639,7 +3050,10 @@ def recv_attach_volume_to_server(self): return result.success if result.e is not None: raise result.e - raise TApplicationException(TApplicationException.MISSING_RESULT, "attach_volume_to_server failed: unknown result") + raise TApplicationException( + TApplicationException.MISSING_RESULT, + "attach_volume_to_server failed: unknown result", + ) def check_server_status(self, openstack_id): """ @@ -2654,7 +3068,9 @@ def check_server_status(self, openstack_id): return self.recv_check_server_status() def send_check_server_status(self, openstack_id): - self._oprot.writeMessageBegin('check_server_status', TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin( + "check_server_status", TMessageType.CALL, self._seqid + ) args = check_server_status_args() args.openstack_id = openstack_id args.write(self._oprot) @@ -2678,7 +3094,10 @@ def recv_check_server_status(self): raise result.e if result.r is not None: raise result.r - raise TApplicationException(TApplicationException.MISSING_RESULT, "check_server_status failed: unknown result") + raise TApplicationException( + TApplicationException.MISSING_RESULT, + "check_server_status failed: unknown result", + ) def setUserPassword(self, user, password): """ @@ -2694,7 +3113,7 @@ def setUserPassword(self, user, password): return self.recv_setUserPassword() def send_setUserPassword(self, user, password): - self._oprot.writeMessageBegin('setUserPassword', TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin("setUserPassword", TMessageType.CALL, self._seqid) args = setUserPassword_args() args.user = user args.password = password @@ -2717,7 +3136,10 @@ def recv_setUserPassword(self): return result.success if result.e is not None: raise result.e - raise TApplicationException(TApplicationException.MISSING_RESULT, "setUserPassword failed: unknown result") + raise TApplicationException( + TApplicationException.MISSING_RESULT, + "setUserPassword failed: unknown result", + ) def resume_server(self, openstack_id): """ @@ -2732,7 +3154,7 @@ def resume_server(self, openstack_id): return self.recv_resume_server() def send_resume_server(self, openstack_id): - self._oprot.writeMessageBegin('resume_server', TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin("resume_server", TMessageType.CALL, self._seqid) args = resume_server_args() args.openstack_id = openstack_id args.write(self._oprot) @@ -2754,7 +3176,9 @@ def recv_resume_server(self): return result.success if result.e is not None: raise result.e - raise TApplicationException(TApplicationException.MISSING_RESULT, "resume_server failed: unknown result") + raise TApplicationException( + TApplicationException.MISSING_RESULT, "resume_server failed: unknown result" + ) def create_volume(self, volume_name, volume_storage, metadata): """ @@ -2771,7 +3195,7 @@ def create_volume(self, volume_name, volume_storage, metadata): return self.recv_create_volume() def send_create_volume(self, volume_name, volume_storage, metadata): - self._oprot.writeMessageBegin('create_volume', TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin("create_volume", TMessageType.CALL, self._seqid) args = create_volume_args() args.volume_name = volume_name args.volume_storage = volume_storage @@ -2795,7 +3219,9 @@ def recv_create_volume(self): return result.success if result.r is not None: raise result.r - raise TApplicationException(TApplicationException.MISSING_RESULT, "create_volume failed: unknown result") + raise TApplicationException( + TApplicationException.MISSING_RESULT, "create_volume failed: unknown result" + ) def reboot_server(self, server_id, reboot_type): """ @@ -2811,7 +3237,7 @@ def reboot_server(self, server_id, reboot_type): return self.recv_reboot_server() def send_reboot_server(self, server_id, reboot_type): - self._oprot.writeMessageBegin('reboot_server', TMessageType.CALL, self._seqid) + self._oprot.writeMessageBegin("reboot_server", TMessageType.CALL, self._seqid) args = reboot_server_args() args.server_id = server_id args.reboot_type = reboot_type @@ -2834,7 +3260,9 @@ def recv_reboot_server(self): return result.success if result.e is not None: raise result.e - raise TApplicationException(TApplicationException.MISSING_RESULT, "reboot_server failed: unknown result") + raise TApplicationException( + TApplicationException.MISSING_RESULT, "reboot_server failed: unknown result" + ) class Processor(Iface, TProcessor): @@ -2844,46 +3272,78 @@ def __init__(self, handler): self._processMap["check_Version"] = Processor.process_check_Version self._processMap["get_client_version"] = Processor.process_get_client_version self._processMap["get_gateway_ip"] = Processor.process_get_gateway_ip - self._processMap["get_calculation_formulars"] = Processor.process_get_calculation_formulars + self._processMap[ + "get_calculation_formulars" + ] = Processor.process_get_calculation_formulars self._processMap["import_keypair"] = Processor.process_import_keypair self._processMap["get_vm_ports"] = Processor.process_get_vm_ports self._processMap["get_Flavors"] = Processor.process_get_Flavors self._processMap["get_Images"] = Processor.process_get_Images self._processMap["get_Image_with_Tag"] = Processor.process_get_Image_with_Tag - self._processMap["get_Images_by_filter"] = Processor.process_get_Images_by_filter + self._processMap[ + "get_Images_by_filter" + ] = Processor.process_get_Images_by_filter self._processMap["get_volume"] = Processor.process_get_volume self._processMap["get_volumes_by_ids"] = Processor.process_get_volumes_by_ids self._processMap["resize_volume"] = Processor.process_resize_volume self._processMap["delete_server"] = Processor.process_delete_server - self._processMap["add_metadata_to_server"] = Processor.process_add_metadata_to_server - self._processMap["delete_metadata_from_server"] = Processor.process_delete_metadata_from_server - self._processMap["add_floating_ip_to_server"] = Processor.process_add_floating_ip_to_server + self._processMap[ + "add_metadata_to_server" + ] = Processor.process_add_metadata_to_server + self._processMap[ + "delete_metadata_from_server" + ] = Processor.process_delete_metadata_from_server + self._processMap[ + "add_floating_ip_to_server" + ] = Processor.process_add_floating_ip_to_server self._processMap["create_connection"] = Processor.process_create_connection - self._processMap["start_server_without_playbook"] = Processor.process_start_server_without_playbook + self._processMap[ + "start_server_without_playbook" + ] = Processor.process_start_server_without_playbook self._processMap["bibigrid_available"] = Processor.process_bibigrid_available - self._processMap["detach_ip_from_server"] = Processor.process_detach_ip_from_server - self._processMap["start_server_with_mounted_volume"] = Processor.process_start_server_with_mounted_volume + self._processMap[ + "detach_ip_from_server" + ] = Processor.process_detach_ip_from_server + self._processMap[ + "start_server_with_mounted_volume" + ] = Processor.process_start_server_with_mounted_volume self._processMap["start_server"] = Processor.process_start_server - self._processMap["start_server_with_custom_key"] = Processor.process_start_server_with_custom_key + self._processMap[ + "start_server_with_custom_key" + ] = Processor.process_start_server_with_custom_key self._processMap["exist_server"] = Processor.process_exist_server - self._processMap["create_and_deploy_playbook"] = Processor.process_create_and_deploy_playbook + self._processMap[ + "create_and_deploy_playbook" + ] = Processor.process_create_and_deploy_playbook self._processMap["get_playbook_logs"] = Processor.process_get_playbook_logs self._processMap["has_forc"] = Processor.process_has_forc self._processMap["get_forc_url"] = Processor.process_get_forc_url self._processMap["create_backend"] = Processor.process_create_backend self._processMap["get_backends"] = Processor.process_get_backends - self._processMap["get_backends_by_owner"] = Processor.process_get_backends_by_owner - self._processMap["get_backends_by_template"] = Processor.process_get_backends_by_template + self._processMap[ + "get_backends_by_owner" + ] = Processor.process_get_backends_by_owner + self._processMap[ + "get_backends_by_template" + ] = Processor.process_get_backends_by_template self._processMap["get_backend_by_id"] = Processor.process_get_backend_by_id self._processMap["delete_backend"] = Processor.process_delete_backend self._processMap["get_templates"] = Processor.process_get_templates - self._processMap["get_allowed_templates"] = Processor.process_get_allowed_templates - self._processMap["get_templates_by_template"] = Processor.process_get_templates_by_template + self._processMap[ + "get_allowed_templates" + ] = Processor.process_get_allowed_templates + self._processMap[ + "get_templates_by_template" + ] = Processor.process_get_templates_by_template self._processMap["check_template"] = Processor.process_check_template - self._processMap["add_udp_security_group"] = Processor.process_add_udp_security_group + self._processMap[ + "add_udp_security_group" + ] = Processor.process_add_udp_security_group self._processMap["get_servers"] = Processor.process_get_servers self._processMap["get_servers_by_ids"] = Processor.process_get_servers_by_ids - self._processMap["get_servers_by_bibigrid_id"] = Processor.process_get_servers_by_bibigrid_id + self._processMap[ + "get_servers_by_bibigrid_id" + ] = Processor.process_get_servers_by_bibigrid_id self._processMap["get_cluster_info"] = Processor.process_get_cluster_info self._processMap["get_cluster_status"] = Processor.process_get_cluster_status self._processMap["get_server"] = Processor.process_get_server @@ -2893,9 +3353,13 @@ def __init__(self, handler): self._processMap["start_cluster"] = Processor.process_start_cluster self._processMap["terminate_cluster"] = Processor.process_terminate_cluster self._processMap["delete_image"] = Processor.process_delete_image - self._processMap["delete_volume_attachment"] = Processor.process_delete_volume_attachment + self._processMap[ + "delete_volume_attachment" + ] = Processor.process_delete_volume_attachment self._processMap["delete_volume"] = Processor.process_delete_volume - self._processMap["attach_volume_to_server"] = Processor.process_attach_volume_to_server + self._processMap[ + "attach_volume_to_server" + ] = Processor.process_attach_volume_to_server self._processMap["check_server_status"] = Processor.process_check_server_status self._processMap["setUserPassword"] = Processor.process_setUserPassword self._processMap["resume_server"] = Processor.process_resume_server @@ -2907,7 +3371,9 @@ def process(self, iprot, oprot): if name not in self._processMap: iprot.skip(TType.STRUCT) iprot.readMessageEnd() - x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name)) + x = TApplicationException( + TApplicationException.UNKNOWN_METHOD, "Unknown function %s" % (name) + ) oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid) x.write(oprot) oprot.writeMessageEnd() @@ -2928,13 +3394,15 @@ def process_check_Version(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception('TApplication exception in handler') + logging.exception("TApplication exception in handler") msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception('Unexpected exception in handler') + logging.exception("Unexpected exception in handler") msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + result = TApplicationException( + TApplicationException.INTERNAL_ERROR, "Internal error" + ) oprot.writeMessageBegin("check_Version", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -2951,13 +3419,15 @@ def process_get_client_version(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception('TApplication exception in handler') + logging.exception("TApplication exception in handler") msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception('Unexpected exception in handler') + logging.exception("Unexpected exception in handler") msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + result = TApplicationException( + TApplicationException.INTERNAL_ERROR, "Internal error" + ) oprot.writeMessageBegin("get_client_version", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -2974,13 +3444,15 @@ def process_get_gateway_ip(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception('TApplication exception in handler') + logging.exception("TApplication exception in handler") msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception('Unexpected exception in handler') + logging.exception("Unexpected exception in handler") msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + result = TApplicationException( + TApplicationException.INTERNAL_ERROR, "Internal error" + ) oprot.writeMessageBegin("get_gateway_ip", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -2997,13 +3469,15 @@ def process_get_calculation_formulars(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception('TApplication exception in handler') + logging.exception("TApplication exception in handler") msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception('Unexpected exception in handler') + logging.exception("Unexpected exception in handler") msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + result = TApplicationException( + TApplicationException.INTERNAL_ERROR, "Internal error" + ) oprot.writeMessageBegin("get_calculation_formulars", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -3020,13 +3494,15 @@ def process_import_keypair(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception('TApplication exception in handler') + logging.exception("TApplication exception in handler") msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception('Unexpected exception in handler') + logging.exception("Unexpected exception in handler") msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + result = TApplicationException( + TApplicationException.INTERNAL_ERROR, "Internal error" + ) oprot.writeMessageBegin("import_keypair", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -3043,13 +3519,15 @@ def process_get_vm_ports(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception('TApplication exception in handler') + logging.exception("TApplication exception in handler") msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception('Unexpected exception in handler') + logging.exception("Unexpected exception in handler") msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + result = TApplicationException( + TApplicationException.INTERNAL_ERROR, "Internal error" + ) oprot.writeMessageBegin("get_vm_ports", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -3066,13 +3544,15 @@ def process_get_Flavors(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception('TApplication exception in handler') + logging.exception("TApplication exception in handler") msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception('Unexpected exception in handler') + logging.exception("Unexpected exception in handler") msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + result = TApplicationException( + TApplicationException.INTERNAL_ERROR, "Internal error" + ) oprot.writeMessageBegin("get_Flavors", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -3089,13 +3569,15 @@ def process_get_Images(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception('TApplication exception in handler') + logging.exception("TApplication exception in handler") msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception('Unexpected exception in handler') + logging.exception("Unexpected exception in handler") msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + result = TApplicationException( + TApplicationException.INTERNAL_ERROR, "Internal error" + ) oprot.writeMessageBegin("get_Images", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -3112,13 +3594,15 @@ def process_get_Image_with_Tag(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception('TApplication exception in handler') + logging.exception("TApplication exception in handler") msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception('Unexpected exception in handler') + logging.exception("Unexpected exception in handler") msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + result = TApplicationException( + TApplicationException.INTERNAL_ERROR, "Internal error" + ) oprot.writeMessageBegin("get_Image_with_Tag", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -3135,13 +3619,15 @@ def process_get_Images_by_filter(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception('TApplication exception in handler') + logging.exception("TApplication exception in handler") msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception('Unexpected exception in handler') + logging.exception("Unexpected exception in handler") msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + result = TApplicationException( + TApplicationException.INTERNAL_ERROR, "Internal error" + ) oprot.writeMessageBegin("get_Images_by_filter", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -3158,13 +3644,15 @@ def process_get_volume(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception('TApplication exception in handler') + logging.exception("TApplication exception in handler") msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception('Unexpected exception in handler') + logging.exception("Unexpected exception in handler") msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + result = TApplicationException( + TApplicationException.INTERNAL_ERROR, "Internal error" + ) oprot.writeMessageBegin("get_volume", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -3181,13 +3669,15 @@ def process_get_volumes_by_ids(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception('TApplication exception in handler') + logging.exception("TApplication exception in handler") msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception('Unexpected exception in handler') + logging.exception("Unexpected exception in handler") msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + result = TApplicationException( + TApplicationException.INTERNAL_ERROR, "Internal error" + ) oprot.writeMessageBegin("get_volumes_by_ids", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -3204,13 +3694,15 @@ def process_resize_volume(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception('TApplication exception in handler') + logging.exception("TApplication exception in handler") msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception('Unexpected exception in handler') + logging.exception("Unexpected exception in handler") msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + result = TApplicationException( + TApplicationException.INTERNAL_ERROR, "Internal error" + ) oprot.writeMessageBegin("resize_volume", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -3230,13 +3722,15 @@ def process_delete_server(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.e = e except TApplicationException as ex: - logging.exception('TApplication exception in handler') + logging.exception("TApplication exception in handler") msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception('Unexpected exception in handler') + logging.exception("Unexpected exception in handler") msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + result = TApplicationException( + TApplicationException.INTERNAL_ERROR, "Internal error" + ) oprot.writeMessageBegin("delete_server", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -3248,7 +3742,9 @@ def process_add_metadata_to_server(self, seqid, iprot, oprot): iprot.readMessageEnd() result = add_metadata_to_server_result() try: - result.success = self._handler.add_metadata_to_server(args.servername, args.metadata) + result.success = self._handler.add_metadata_to_server( + args.servername, args.metadata + ) msg_type = TMessageType.REPLY except TTransport.TTransportException: raise @@ -3256,13 +3752,15 @@ def process_add_metadata_to_server(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.e = e except TApplicationException as ex: - logging.exception('TApplication exception in handler') + logging.exception("TApplication exception in handler") msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception('Unexpected exception in handler') + logging.exception("Unexpected exception in handler") msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + result = TApplicationException( + TApplicationException.INTERNAL_ERROR, "Internal error" + ) oprot.writeMessageBegin("add_metadata_to_server", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -3274,7 +3772,9 @@ def process_delete_metadata_from_server(self, seqid, iprot, oprot): iprot.readMessageEnd() result = delete_metadata_from_server_result() try: - result.success = self._handler.delete_metadata_from_server(args.servername, args.keys) + result.success = self._handler.delete_metadata_from_server( + args.servername, args.keys + ) msg_type = TMessageType.REPLY except TTransport.TTransportException: raise @@ -3282,13 +3782,15 @@ def process_delete_metadata_from_server(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.e = e except TApplicationException as ex: - logging.exception('TApplication exception in handler') + logging.exception("TApplication exception in handler") msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception('Unexpected exception in handler') + logging.exception("Unexpected exception in handler") msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + result = TApplicationException( + TApplicationException.INTERNAL_ERROR, "Internal error" + ) oprot.writeMessageBegin("delete_metadata_from_server", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -3300,7 +3802,9 @@ def process_add_floating_ip_to_server(self, seqid, iprot, oprot): iprot.readMessageEnd() result = add_floating_ip_to_server_result() try: - result.success = self._handler.add_floating_ip_to_server(args.openstack_id, args.network) + result.success = self._handler.add_floating_ip_to_server( + args.openstack_id, args.network + ) msg_type = TMessageType.REPLY except TTransport.TTransportException: raise @@ -3311,13 +3815,15 @@ def process_add_floating_ip_to_server(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.f = f except TApplicationException as ex: - logging.exception('TApplication exception in handler') + logging.exception("TApplication exception in handler") msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception('Unexpected exception in handler') + logging.exception("Unexpected exception in handler") msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + result = TApplicationException( + TApplicationException.INTERNAL_ERROR, "Internal error" + ) oprot.writeMessageBegin("add_floating_ip_to_server", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -3329,7 +3835,13 @@ def process_create_connection(self, seqid, iprot, oprot): iprot.readMessageEnd() result = create_connection_result() try: - result.success = self._handler.create_connection(args.username, args.password, args.auth_url, args.user_domain_name, args.project_domain_name) + result.success = self._handler.create_connection( + args.username, + args.password, + args.auth_url, + args.user_domain_name, + args.project_domain_name, + ) msg_type = TMessageType.REPLY except TTransport.TTransportException: raise @@ -3337,13 +3849,15 @@ def process_create_connection(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.e = e except TApplicationException as ex: - logging.exception('TApplication exception in handler') + logging.exception("TApplication exception in handler") msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception('Unexpected exception in handler') + logging.exception("Unexpected exception in handler") msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + result = TApplicationException( + TApplicationException.INTERNAL_ERROR, "Internal error" + ) oprot.writeMessageBegin("create_connection", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -3355,7 +3869,18 @@ def process_start_server_without_playbook(self, seqid, iprot, oprot): iprot.readMessageEnd() result = start_server_without_playbook_result() try: - result.success = self._handler.start_server_without_playbook(args.flavor, args.image, args.public_key, args.servername, args.metadata, args.https, args.http, args.resenv, args.volume_ids_path_new, args.volume_ids_path_attach) + result.success = self._handler.start_server_without_playbook( + args.flavor, + args.image, + args.public_key, + args.servername, + args.metadata, + args.https, + args.http, + args.resenv, + args.volume_ids_path_new, + args.volume_ids_path_attach, + ) msg_type = TMessageType.REPLY except TTransport.TTransportException: raise @@ -3381,13 +3906,15 @@ def process_start_server_without_playbook(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o = o except TApplicationException as ex: - logging.exception('TApplication exception in handler') + logging.exception("TApplication exception in handler") msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception('Unexpected exception in handler') + logging.exception("Unexpected exception in handler") msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + result = TApplicationException( + TApplicationException.INTERNAL_ERROR, "Internal error" + ) oprot.writeMessageBegin("start_server_without_playbook", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -3404,13 +3931,15 @@ def process_bibigrid_available(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception('TApplication exception in handler') + logging.exception("TApplication exception in handler") msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception('Unexpected exception in handler') + logging.exception("Unexpected exception in handler") msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + result = TApplicationException( + TApplicationException.INTERNAL_ERROR, "Internal error" + ) oprot.writeMessageBegin("bibigrid_available", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -3422,18 +3951,22 @@ def process_detach_ip_from_server(self, seqid, iprot, oprot): iprot.readMessageEnd() result = detach_ip_from_server_result() try: - result.success = self._handler.detach_ip_from_server(args.server_id, args.floating_ip) + result.success = self._handler.detach_ip_from_server( + args.server_id, args.floating_ip + ) msg_type = TMessageType.REPLY except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception('TApplication exception in handler') + logging.exception("TApplication exception in handler") msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception('Unexpected exception in handler') + logging.exception("Unexpected exception in handler") msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + result = TApplicationException( + TApplicationException.INTERNAL_ERROR, "Internal error" + ) oprot.writeMessageBegin("detach_ip_from_server", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -3445,7 +3978,18 @@ def process_start_server_with_mounted_volume(self, seqid, iprot, oprot): iprot.readMessageEnd() result = start_server_with_mounted_volume_result() try: - result.success = self._handler.start_server_with_mounted_volume(args.flavor, args.image, args.public_key, args.servername, args.metadata, args.https, args.http, args.resenv, args.volume_ids_path_new, args.volume_ids_path_attach) + result.success = self._handler.start_server_with_mounted_volume( + args.flavor, + args.image, + args.public_key, + args.servername, + args.metadata, + args.https, + args.http, + args.resenv, + args.volume_ids_path_new, + args.volume_ids_path_attach, + ) msg_type = TMessageType.REPLY except TTransport.TTransportException: raise @@ -3471,13 +4015,15 @@ def process_start_server_with_mounted_volume(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o = o except TApplicationException as ex: - logging.exception('TApplication exception in handler') + logging.exception("TApplication exception in handler") msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception('Unexpected exception in handler') + logging.exception("Unexpected exception in handler") msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + result = TApplicationException( + TApplicationException.INTERNAL_ERROR, "Internal error" + ) oprot.writeMessageBegin("start_server_with_mounted_volume", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -3489,7 +4035,18 @@ def process_start_server(self, seqid, iprot, oprot): iprot.readMessageEnd() result = start_server_result() try: - result.success = self._handler.start_server(args.flavor, args.image, args.public_key, args.servername, args.metadata, args.diskspace, args.volumename, args.https, args.http, args.resenv) + result.success = self._handler.start_server( + args.flavor, + args.image, + args.public_key, + args.servername, + args.metadata, + args.diskspace, + args.volumename, + args.https, + args.http, + args.resenv, + ) msg_type = TMessageType.REPLY except TTransport.TTransportException: raise @@ -3515,13 +4072,15 @@ def process_start_server(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o = o except TApplicationException as ex: - logging.exception('TApplication exception in handler') + logging.exception("TApplication exception in handler") msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception('Unexpected exception in handler') + logging.exception("Unexpected exception in handler") msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + result = TApplicationException( + TApplicationException.INTERNAL_ERROR, "Internal error" + ) oprot.writeMessageBegin("start_server", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -3533,7 +4092,17 @@ def process_start_server_with_custom_key(self, seqid, iprot, oprot): iprot.readMessageEnd() result = start_server_with_custom_key_result() try: - result.success = self._handler.start_server_with_custom_key(args.flavor, args.image, args.servername, args.metadata, args.http, args.https, args.resenv, args.volume_ids_path_new, args.volume_ids_path_attach) + result.success = self._handler.start_server_with_custom_key( + args.flavor, + args.image, + args.servername, + args.metadata, + args.http, + args.https, + args.resenv, + args.volume_ids_path_new, + args.volume_ids_path_attach, + ) msg_type = TMessageType.REPLY except TTransport.TTransportException: raise @@ -3559,13 +4128,15 @@ def process_start_server_with_custom_key(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.o = o except TApplicationException as ex: - logging.exception('TApplication exception in handler') + logging.exception("TApplication exception in handler") msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception('Unexpected exception in handler') + logging.exception("Unexpected exception in handler") msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + result = TApplicationException( + TApplicationException.INTERNAL_ERROR, "Internal error" + ) oprot.writeMessageBegin("start_server_with_custom_key", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -3582,13 +4153,15 @@ def process_exist_server(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception('TApplication exception in handler') + logging.exception("TApplication exception in handler") msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception('Unexpected exception in handler') + logging.exception("Unexpected exception in handler") msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + result = TApplicationException( + TApplicationException.INTERNAL_ERROR, "Internal error" + ) oprot.writeMessageBegin("exist_server", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -3600,18 +4173,22 @@ def process_create_and_deploy_playbook(self, seqid, iprot, oprot): iprot.readMessageEnd() result = create_and_deploy_playbook_result() try: - result.success = self._handler.create_and_deploy_playbook(args.public_key, args.playbooks_information, args.openstack_id) + result.success = self._handler.create_and_deploy_playbook( + args.public_key, args.playbooks_information, args.openstack_id + ) msg_type = TMessageType.REPLY except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception('TApplication exception in handler') + logging.exception("TApplication exception in handler") msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception('Unexpected exception in handler') + logging.exception("Unexpected exception in handler") msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + result = TApplicationException( + TApplicationException.INTERNAL_ERROR, "Internal error" + ) oprot.writeMessageBegin("create_and_deploy_playbook", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -3628,13 +4205,15 @@ def process_get_playbook_logs(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception('TApplication exception in handler') + logging.exception("TApplication exception in handler") msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception('Unexpected exception in handler') + logging.exception("Unexpected exception in handler") msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + result = TApplicationException( + TApplicationException.INTERNAL_ERROR, "Internal error" + ) oprot.writeMessageBegin("get_playbook_logs", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -3651,13 +4230,15 @@ def process_has_forc(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception('TApplication exception in handler') + logging.exception("TApplication exception in handler") msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception('Unexpected exception in handler') + logging.exception("Unexpected exception in handler") msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + result = TApplicationException( + TApplicationException.INTERNAL_ERROR, "Internal error" + ) oprot.writeMessageBegin("has_forc", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -3674,13 +4255,15 @@ def process_get_forc_url(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception('TApplication exception in handler') + logging.exception("TApplication exception in handler") msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception('Unexpected exception in handler') + logging.exception("Unexpected exception in handler") msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + result = TApplicationException( + TApplicationException.INTERNAL_ERROR, "Internal error" + ) oprot.writeMessageBegin("get_forc_url", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -3692,18 +4275,22 @@ def process_create_backend(self, seqid, iprot, oprot): iprot.readMessageEnd() result = create_backend_result() try: - result.success = self._handler.create_backend(args.elixir_id, args.user_key_url, args.template, args.upstream_url) + result.success = self._handler.create_backend( + args.elixir_id, args.user_key_url, args.template, args.upstream_url + ) msg_type = TMessageType.REPLY except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception('TApplication exception in handler') + logging.exception("TApplication exception in handler") msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception('Unexpected exception in handler') + logging.exception("Unexpected exception in handler") msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + result = TApplicationException( + TApplicationException.INTERNAL_ERROR, "Internal error" + ) oprot.writeMessageBegin("create_backend", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -3720,13 +4307,15 @@ def process_get_backends(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception('TApplication exception in handler') + logging.exception("TApplication exception in handler") msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception('Unexpected exception in handler') + logging.exception("Unexpected exception in handler") msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + result = TApplicationException( + TApplicationException.INTERNAL_ERROR, "Internal error" + ) oprot.writeMessageBegin("get_backends", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -3743,13 +4332,15 @@ def process_get_backends_by_owner(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception('TApplication exception in handler') + logging.exception("TApplication exception in handler") msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception('Unexpected exception in handler') + logging.exception("Unexpected exception in handler") msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + result = TApplicationException( + TApplicationException.INTERNAL_ERROR, "Internal error" + ) oprot.writeMessageBegin("get_backends_by_owner", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -3766,13 +4357,15 @@ def process_get_backends_by_template(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception('TApplication exception in handler') + logging.exception("TApplication exception in handler") msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception('Unexpected exception in handler') + logging.exception("Unexpected exception in handler") msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + result = TApplicationException( + TApplicationException.INTERNAL_ERROR, "Internal error" + ) oprot.writeMessageBegin("get_backends_by_template", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -3789,13 +4382,15 @@ def process_get_backend_by_id(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception('TApplication exception in handler') + logging.exception("TApplication exception in handler") msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception('Unexpected exception in handler') + logging.exception("Unexpected exception in handler") msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + result = TApplicationException( + TApplicationException.INTERNAL_ERROR, "Internal error" + ) oprot.writeMessageBegin("get_backend_by_id", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -3812,13 +4407,15 @@ def process_delete_backend(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception('TApplication exception in handler') + logging.exception("TApplication exception in handler") msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception('Unexpected exception in handler') + logging.exception("Unexpected exception in handler") msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + result = TApplicationException( + TApplicationException.INTERNAL_ERROR, "Internal error" + ) oprot.writeMessageBegin("delete_backend", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -3835,13 +4432,15 @@ def process_get_templates(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception('TApplication exception in handler') + logging.exception("TApplication exception in handler") msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception('Unexpected exception in handler') + logging.exception("Unexpected exception in handler") msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + result = TApplicationException( + TApplicationException.INTERNAL_ERROR, "Internal error" + ) oprot.writeMessageBegin("get_templates", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -3858,13 +4457,15 @@ def process_get_allowed_templates(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception('TApplication exception in handler') + logging.exception("TApplication exception in handler") msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception('Unexpected exception in handler') + logging.exception("Unexpected exception in handler") msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + result = TApplicationException( + TApplicationException.INTERNAL_ERROR, "Internal error" + ) oprot.writeMessageBegin("get_allowed_templates", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -3881,13 +4482,15 @@ def process_get_templates_by_template(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception('TApplication exception in handler') + logging.exception("TApplication exception in handler") msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception('Unexpected exception in handler') + logging.exception("Unexpected exception in handler") msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + result = TApplicationException( + TApplicationException.INTERNAL_ERROR, "Internal error" + ) oprot.writeMessageBegin("get_templates_by_template", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -3899,18 +4502,22 @@ def process_check_template(self, seqid, iprot, oprot): iprot.readMessageEnd() result = check_template_result() try: - result.success = self._handler.check_template(args.template_name, args.template_version) + result.success = self._handler.check_template( + args.template_name, args.template_version + ) msg_type = TMessageType.REPLY except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception('TApplication exception in handler') + logging.exception("TApplication exception in handler") msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception('Unexpected exception in handler') + logging.exception("Unexpected exception in handler") msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + result = TApplicationException( + TApplicationException.INTERNAL_ERROR, "Internal error" + ) oprot.writeMessageBegin("check_template", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -3933,13 +4540,15 @@ def process_add_udp_security_group(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.s = s except TApplicationException as ex: - logging.exception('TApplication exception in handler') + logging.exception("TApplication exception in handler") msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception('Unexpected exception in handler') + logging.exception("Unexpected exception in handler") msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + result = TApplicationException( + TApplicationException.INTERNAL_ERROR, "Internal error" + ) oprot.writeMessageBegin("add_udp_security_group", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -3956,13 +4565,15 @@ def process_get_servers(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception('TApplication exception in handler') + logging.exception("TApplication exception in handler") msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception('Unexpected exception in handler') + logging.exception("Unexpected exception in handler") msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + result = TApplicationException( + TApplicationException.INTERNAL_ERROR, "Internal error" + ) oprot.writeMessageBegin("get_servers", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -3979,13 +4590,15 @@ def process_get_servers_by_ids(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception('TApplication exception in handler') + logging.exception("TApplication exception in handler") msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception('Unexpected exception in handler') + logging.exception("Unexpected exception in handler") msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + result = TApplicationException( + TApplicationException.INTERNAL_ERROR, "Internal error" + ) oprot.writeMessageBegin("get_servers_by_ids", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -4002,13 +4615,15 @@ def process_get_servers_by_bibigrid_id(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception('TApplication exception in handler') + logging.exception("TApplication exception in handler") msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception('Unexpected exception in handler') + logging.exception("Unexpected exception in handler") msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + result = TApplicationException( + TApplicationException.INTERNAL_ERROR, "Internal error" + ) oprot.writeMessageBegin("get_servers_by_bibigrid_id", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -4025,13 +4640,15 @@ def process_get_cluster_info(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception('TApplication exception in handler') + logging.exception("TApplication exception in handler") msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception('Unexpected exception in handler') + logging.exception("Unexpected exception in handler") msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + result = TApplicationException( + TApplicationException.INTERNAL_ERROR, "Internal error" + ) oprot.writeMessageBegin("get_cluster_info", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -4048,13 +4665,15 @@ def process_get_cluster_status(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception('TApplication exception in handler') + logging.exception("TApplication exception in handler") msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception('Unexpected exception in handler') + logging.exception("Unexpected exception in handler") msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + result = TApplicationException( + TApplicationException.INTERNAL_ERROR, "Internal error" + ) oprot.writeMessageBegin("get_cluster_status", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -4074,13 +4693,15 @@ def process_get_server(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.e = e except TApplicationException as ex: - logging.exception('TApplication exception in handler') + logging.exception("TApplication exception in handler") msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception('Unexpected exception in handler') + logging.exception("Unexpected exception in handler") msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + result = TApplicationException( + TApplicationException.INTERNAL_ERROR, "Internal error" + ) oprot.writeMessageBegin("get_server", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -4100,13 +4721,15 @@ def process_stop_server(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.e = e except TApplicationException as ex: - logging.exception('TApplication exception in handler') + logging.exception("TApplication exception in handler") msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception('Unexpected exception in handler') + logging.exception("Unexpected exception in handler") msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + result = TApplicationException( + TApplicationException.INTERNAL_ERROR, "Internal error" + ) oprot.writeMessageBegin("stop_server", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -4118,7 +4741,13 @@ def process_create_snapshot(self, seqid, iprot, oprot): iprot.readMessageEnd() result = create_snapshot_result() try: - result.success = self._handler.create_snapshot(args.openstack_id, args.name, args.elixir_id, args.base_tags, args.description) + result.success = self._handler.create_snapshot( + args.openstack_id, + args.name, + args.elixir_id, + args.base_tags, + args.description, + ) msg_type = TMessageType.REPLY except TTransport.TTransportException: raise @@ -4126,13 +4755,15 @@ def process_create_snapshot(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.e = e except TApplicationException as ex: - logging.exception('TApplication exception in handler') + logging.exception("TApplication exception in handler") msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception('Unexpected exception in handler') + logging.exception("Unexpected exception in handler") msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + result = TApplicationException( + TApplicationException.INTERNAL_ERROR, "Internal error" + ) oprot.writeMessageBegin("create_snapshot", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -4149,13 +4780,15 @@ def process_get_limits(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception('TApplication exception in handler') + logging.exception("TApplication exception in handler") msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception('Unexpected exception in handler') + logging.exception("Unexpected exception in handler") msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + result = TApplicationException( + TApplicationException.INTERNAL_ERROR, "Internal error" + ) oprot.writeMessageBegin("get_limits", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -4167,18 +4800,22 @@ def process_start_cluster(self, seqid, iprot, oprot): iprot.readMessageEnd() result = start_cluster_result() try: - result.success = self._handler.start_cluster(args.public_key, args.master_instance, args.worker_instance, args.user) + result.success = self._handler.start_cluster( + args.public_key, args.master_instance, args.worker_instance, args.user + ) msg_type = TMessageType.REPLY except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception('TApplication exception in handler') + logging.exception("TApplication exception in handler") msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception('Unexpected exception in handler') + logging.exception("Unexpected exception in handler") msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + result = TApplicationException( + TApplicationException.INTERNAL_ERROR, "Internal error" + ) oprot.writeMessageBegin("start_cluster", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -4195,13 +4832,15 @@ def process_terminate_cluster(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception('TApplication exception in handler') + logging.exception("TApplication exception in handler") msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception('Unexpected exception in handler') + logging.exception("Unexpected exception in handler") msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + result = TApplicationException( + TApplicationException.INTERNAL_ERROR, "Internal error" + ) oprot.writeMessageBegin("terminate_cluster", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -4221,13 +4860,15 @@ def process_delete_image(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.e = e except TApplicationException as ex: - logging.exception('TApplication exception in handler') + logging.exception("TApplication exception in handler") msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception('Unexpected exception in handler') + logging.exception("Unexpected exception in handler") msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + result = TApplicationException( + TApplicationException.INTERNAL_ERROR, "Internal error" + ) oprot.writeMessageBegin("delete_image", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -4239,7 +4880,9 @@ def process_delete_volume_attachment(self, seqid, iprot, oprot): iprot.readMessageEnd() result = delete_volume_attachment_result() try: - result.success = self._handler.delete_volume_attachment(args.volume_id, args.server_id) + result.success = self._handler.delete_volume_attachment( + args.volume_id, args.server_id + ) msg_type = TMessageType.REPLY except TTransport.TTransportException: raise @@ -4247,13 +4890,15 @@ def process_delete_volume_attachment(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.e = e except TApplicationException as ex: - logging.exception('TApplication exception in handler') + logging.exception("TApplication exception in handler") msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception('Unexpected exception in handler') + logging.exception("Unexpected exception in handler") msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + result = TApplicationException( + TApplicationException.INTERNAL_ERROR, "Internal error" + ) oprot.writeMessageBegin("delete_volume_attachment", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -4270,13 +4915,15 @@ def process_delete_volume(self, seqid, iprot, oprot): except TTransport.TTransportException: raise except TApplicationException as ex: - logging.exception('TApplication exception in handler') + logging.exception("TApplication exception in handler") msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception('Unexpected exception in handler') + logging.exception("Unexpected exception in handler") msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + result = TApplicationException( + TApplicationException.INTERNAL_ERROR, "Internal error" + ) oprot.writeMessageBegin("delete_volume", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -4288,7 +4935,9 @@ def process_attach_volume_to_server(self, seqid, iprot, oprot): iprot.readMessageEnd() result = attach_volume_to_server_result() try: - result.success = self._handler.attach_volume_to_server(args.openstack_id, args.volume_id) + result.success = self._handler.attach_volume_to_server( + args.openstack_id, args.volume_id + ) msg_type = TMessageType.REPLY except TTransport.TTransportException: raise @@ -4296,13 +4945,15 @@ def process_attach_volume_to_server(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.e = e except TApplicationException as ex: - logging.exception('TApplication exception in handler') + logging.exception("TApplication exception in handler") msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception('Unexpected exception in handler') + logging.exception("Unexpected exception in handler") msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + result = TApplicationException( + TApplicationException.INTERNAL_ERROR, "Internal error" + ) oprot.writeMessageBegin("attach_volume_to_server", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -4325,13 +4976,15 @@ def process_check_server_status(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.r = r except TApplicationException as ex: - logging.exception('TApplication exception in handler') + logging.exception("TApplication exception in handler") msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception('Unexpected exception in handler') + logging.exception("Unexpected exception in handler") msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + result = TApplicationException( + TApplicationException.INTERNAL_ERROR, "Internal error" + ) oprot.writeMessageBegin("check_server_status", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -4351,13 +5004,15 @@ def process_setUserPassword(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.e = e except TApplicationException as ex: - logging.exception('TApplication exception in handler') + logging.exception("TApplication exception in handler") msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception('Unexpected exception in handler') + logging.exception("Unexpected exception in handler") msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + result = TApplicationException( + TApplicationException.INTERNAL_ERROR, "Internal error" + ) oprot.writeMessageBegin("setUserPassword", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -4377,13 +5032,15 @@ def process_resume_server(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.e = e except TApplicationException as ex: - logging.exception('TApplication exception in handler') + logging.exception("TApplication exception in handler") msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception('Unexpected exception in handler') + logging.exception("Unexpected exception in handler") msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + result = TApplicationException( + TApplicationException.INTERNAL_ERROR, "Internal error" + ) oprot.writeMessageBegin("resume_server", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -4395,7 +5052,9 @@ def process_create_volume(self, seqid, iprot, oprot): iprot.readMessageEnd() result = create_volume_result() try: - result.success = self._handler.create_volume(args.volume_name, args.volume_storage, args.metadata) + result.success = self._handler.create_volume( + args.volume_name, args.volume_storage, args.metadata + ) msg_type = TMessageType.REPLY except TTransport.TTransportException: raise @@ -4403,13 +5062,15 @@ def process_create_volume(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.r = r except TApplicationException as ex: - logging.exception('TApplication exception in handler') + logging.exception("TApplication exception in handler") msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception('Unexpected exception in handler') + logging.exception("Unexpected exception in handler") msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + result = TApplicationException( + TApplicationException.INTERNAL_ERROR, "Internal error" + ) oprot.writeMessageBegin("create_volume", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() @@ -4421,7 +5082,9 @@ def process_reboot_server(self, seqid, iprot, oprot): iprot.readMessageEnd() result = reboot_server_result() try: - result.success = self._handler.reboot_server(args.server_id, args.reboot_type) + result.success = self._handler.reboot_server( + args.server_id, args.reboot_type + ) msg_type = TMessageType.REPLY except TTransport.TTransportException: raise @@ -4429,18 +5092,21 @@ def process_reboot_server(self, seqid, iprot, oprot): msg_type = TMessageType.REPLY result.e = e except TApplicationException as ex: - logging.exception('TApplication exception in handler') + logging.exception("TApplication exception in handler") msg_type = TMessageType.EXCEPTION result = ex except Exception: - logging.exception('Unexpected exception in handler') + logging.exception("Unexpected exception in handler") msg_type = TMessageType.EXCEPTION - result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + result = TApplicationException( + TApplicationException.INTERNAL_ERROR, "Internal error" + ) oprot.writeMessageBegin("reboot_server", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() + # HELPER FUNCTIONS AND STRUCTURES @@ -4451,12 +5117,17 @@ class check_Version_args(object): """ - - def __init__(self, version=None,): + def __init__( + self, version=None, + ): self.version = version def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -4476,11 +5147,13 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('check_Version_args') + oprot.writeStructBegin("check_Version_args") if self.version is not None: - oprot.writeFieldBegin('version', TType.DOUBLE, 1) + oprot.writeFieldBegin("version", TType.DOUBLE, 1) oprot.writeDouble(self.version) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -4490,19 +5163,20 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(check_Version_args) check_Version_args.thrift_spec = ( None, # 0 - (1, TType.DOUBLE, 'version', None, None, ), # 1 + (1, TType.DOUBLE, "version", None, None,), # 1 ) @@ -4513,12 +5187,17 @@ class check_Version_result(object): """ - - def __init__(self, success=None,): + def __init__( + self, success=None, + ): self.success = success def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -4538,11 +5217,13 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('check_Version_result') + oprot.writeStructBegin("check_Version_result") if self.success is not None: - oprot.writeFieldBegin('success', TType.BOOL, 0) + oprot.writeFieldBegin("success", TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -4552,26 +5233,27 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) -all_structs.append(check_Version_result) -check_Version_result.thrift_spec = ( - (0, TType.BOOL, 'success', None, None, ), # 0 -) -class get_client_version_args(object): +all_structs.append(check_Version_result) +check_Version_result.thrift_spec = ((0, TType.BOOL, "success", None, None,),) # 0 +class get_client_version_args(object): def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -4586,9 +5268,11 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('get_client_version_args') + oprot.writeStructBegin("get_client_version_args") oprot.writeFieldStop() oprot.writeStructEnd() @@ -4596,18 +5280,18 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(get_client_version_args) -get_client_version_args.thrift_spec = ( -) +get_client_version_args.thrift_spec = () class get_client_version_result(object): @@ -4617,12 +5301,17 @@ class get_client_version_result(object): """ - - def __init__(self, success=None,): + def __init__( + self, success=None, + ): self.success = success def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -4632,7 +5321,11 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRING: - self.success = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.success = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) else: @@ -4642,12 +5335,18 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('get_client_version_result') + oprot.writeStructBegin("get_client_version_result") if self.success is not None: - oprot.writeFieldBegin('success', TType.STRING, 0) - oprot.writeString(self.success.encode('utf-8') if sys.version_info[0] == 2 else self.success) + oprot.writeFieldBegin("success", TType.STRING, 0) + oprot.writeString( + self.success.encode("utf-8") + if sys.version_info[0] == 2 + else self.success + ) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -4656,26 +5355,29 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(get_client_version_result) get_client_version_result.thrift_spec = ( - (0, TType.STRING, 'success', 'UTF8', None, ), # 0 + (0, TType.STRING, "success", "UTF8", None,), # 0 ) class get_gateway_ip_args(object): - - def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -4690,9 +5392,11 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('get_gateway_ip_args') + oprot.writeStructBegin("get_gateway_ip_args") oprot.writeFieldStop() oprot.writeStructEnd() @@ -4700,18 +5404,18 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(get_gateway_ip_args) -get_gateway_ip_args.thrift_spec = ( -) +get_gateway_ip_args.thrift_spec = () class get_gateway_ip_result(object): @@ -4721,12 +5425,17 @@ class get_gateway_ip_result(object): """ - - def __init__(self, success=None,): + def __init__( + self, success=None, + ): self.success = success def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -4739,8 +5448,16 @@ def read(self, iprot): self.success = {} (_ktype24, _vtype25, _size23) = iprot.readMapBegin() for _i27 in range(_size23): - _key28 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() - _val29 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _key28 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) + _val29 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) self.success[_key28] = _val29 iprot.readMapEnd() else: @@ -4752,15 +5469,21 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('get_gateway_ip_result') + oprot.writeStructBegin("get_gateway_ip_result") if self.success is not None: - oprot.writeFieldBegin('success', TType.MAP, 0) + oprot.writeFieldBegin("success", TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success)) for kiter30, viter31 in self.success.items(): - oprot.writeString(kiter30.encode('utf-8') if sys.version_info[0] == 2 else kiter30) - oprot.writeString(viter31.encode('utf-8') if sys.version_info[0] == 2 else viter31) + oprot.writeString( + kiter30.encode("utf-8") if sys.version_info[0] == 2 else kiter30 + ) + oprot.writeString( + viter31.encode("utf-8") if sys.version_info[0] == 2 else viter31 + ) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -4770,26 +5493,35 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(get_gateway_ip_result) get_gateway_ip_result.thrift_spec = ( - (0, TType.MAP, 'success', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 0 + ( + 0, + TType.MAP, + "success", + (TType.STRING, "UTF8", TType.STRING, "UTF8", False), + None, + ), # 0 ) class get_calculation_formulars_args(object): - - def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -4804,9 +5536,11 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('get_calculation_formulars_args') + oprot.writeStructBegin("get_calculation_formulars_args") oprot.writeFieldStop() oprot.writeStructEnd() @@ -4814,18 +5548,18 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(get_calculation_formulars_args) -get_calculation_formulars_args.thrift_spec = ( -) +get_calculation_formulars_args.thrift_spec = () class get_calculation_formulars_result(object): @@ -4835,12 +5569,17 @@ class get_calculation_formulars_result(object): """ - - def __init__(self, success=None,): + def __init__( + self, success=None, + ): self.success = success def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -4853,8 +5592,16 @@ def read(self, iprot): self.success = {} (_ktype33, _vtype34, _size32) = iprot.readMapBegin() for _i36 in range(_size32): - _key37 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() - _val38 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _key37 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) + _val38 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) self.success[_key37] = _val38 iprot.readMapEnd() else: @@ -4866,15 +5613,21 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('get_calculation_formulars_result') + oprot.writeStructBegin("get_calculation_formulars_result") if self.success is not None: - oprot.writeFieldBegin('success', TType.MAP, 0) + oprot.writeFieldBegin("success", TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success)) for kiter39, viter40 in self.success.items(): - oprot.writeString(kiter39.encode('utf-8') if sys.version_info[0] == 2 else kiter39) - oprot.writeString(viter40.encode('utf-8') if sys.version_info[0] == 2 else viter40) + oprot.writeString( + kiter39.encode("utf-8") if sys.version_info[0] == 2 else kiter39 + ) + oprot.writeString( + viter40.encode("utf-8") if sys.version_info[0] == 2 else viter40 + ) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -4884,18 +5637,25 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(get_calculation_formulars_result) get_calculation_formulars_result.thrift_spec = ( - (0, TType.MAP, 'success', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 0 + ( + 0, + TType.MAP, + "success", + (TType.STRING, "UTF8", TType.STRING, "UTF8", False), + None, + ), # 0 ) @@ -4907,13 +5667,18 @@ class import_keypair_args(object): """ - - def __init__(self, keyname=None, public_key=None,): + def __init__( + self, keyname=None, public_key=None, + ): self.keyname = keyname self.public_key = public_key def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -4923,12 +5688,20 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.keyname = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.keyname = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.public_key = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.public_key = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) else: @@ -4938,16 +5711,26 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('import_keypair_args') + oprot.writeStructBegin("import_keypair_args") if self.keyname is not None: - oprot.writeFieldBegin('keyname', TType.STRING, 1) - oprot.writeString(self.keyname.encode('utf-8') if sys.version_info[0] == 2 else self.keyname) + oprot.writeFieldBegin("keyname", TType.STRING, 1) + oprot.writeString( + self.keyname.encode("utf-8") + if sys.version_info[0] == 2 + else self.keyname + ) oprot.writeFieldEnd() if self.public_key is not None: - oprot.writeFieldBegin('public_key', TType.STRING, 2) - oprot.writeString(self.public_key.encode('utf-8') if sys.version_info[0] == 2 else self.public_key) + oprot.writeFieldBegin("public_key", TType.STRING, 2) + oprot.writeString( + self.public_key.encode("utf-8") + if sys.version_info[0] == 2 + else self.public_key + ) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -4956,20 +5739,21 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(import_keypair_args) import_keypair_args.thrift_spec = ( None, # 0 - (1, TType.STRING, 'keyname', 'UTF8', None, ), # 1 - (2, TType.STRING, 'public_key', 'UTF8', None, ), # 2 + (1, TType.STRING, "keyname", "UTF8", None,), # 1 + (2, TType.STRING, "public_key", "UTF8", None,), # 2 ) @@ -4980,12 +5764,17 @@ class import_keypair_result(object): """ - - def __init__(self, success=None,): + def __init__( + self, success=None, + ): self.success = success def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -4995,7 +5784,11 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRING: - self.success = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.success = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) else: @@ -5005,12 +5798,18 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('import_keypair_result') + oprot.writeStructBegin("import_keypair_result") if self.success is not None: - oprot.writeFieldBegin('success', TType.STRING, 0) - oprot.writeString(self.success.encode('utf-8') if sys.version_info[0] == 2 else self.success) + oprot.writeFieldBegin("success", TType.STRING, 0) + oprot.writeString( + self.success.encode("utf-8") + if sys.version_info[0] == 2 + else self.success + ) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -5019,19 +5818,18 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(import_keypair_result) -import_keypair_result.thrift_spec = ( - (0, TType.STRING, 'success', 'UTF8', None, ), # 0 -) +import_keypair_result.thrift_spec = ((0, TType.STRING, "success", "UTF8", None,),) # 0 class get_vm_ports_args(object): @@ -5041,12 +5839,17 @@ class get_vm_ports_args(object): """ - - def __init__(self, openstack_id=None,): + def __init__( + self, openstack_id=None, + ): self.openstack_id = openstack_id def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -5056,7 +5859,11 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.openstack_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.openstack_id = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) else: @@ -5066,12 +5873,18 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('get_vm_ports_args') + oprot.writeStructBegin("get_vm_ports_args") if self.openstack_id is not None: - oprot.writeFieldBegin('openstack_id', TType.STRING, 1) - oprot.writeString(self.openstack_id.encode('utf-8') if sys.version_info[0] == 2 else self.openstack_id) + oprot.writeFieldBegin("openstack_id", TType.STRING, 1) + oprot.writeString( + self.openstack_id.encode("utf-8") + if sys.version_info[0] == 2 + else self.openstack_id + ) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -5080,19 +5893,20 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(get_vm_ports_args) get_vm_ports_args.thrift_spec = ( None, # 0 - (1, TType.STRING, 'openstack_id', 'UTF8', None, ), # 1 + (1, TType.STRING, "openstack_id", "UTF8", None,), # 1 ) @@ -5103,12 +5917,17 @@ class get_vm_ports_result(object): """ - - def __init__(self, success=None,): + def __init__( + self, success=None, + ): self.success = success def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -5121,8 +5940,16 @@ def read(self, iprot): self.success = {} (_ktype42, _vtype43, _size41) = iprot.readMapBegin() for _i45 in range(_size41): - _key46 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() - _val47 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _key46 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) + _val47 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) self.success[_key46] = _val47 iprot.readMapEnd() else: @@ -5134,15 +5961,21 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('get_vm_ports_result') + oprot.writeStructBegin("get_vm_ports_result") if self.success is not None: - oprot.writeFieldBegin('success', TType.MAP, 0) + oprot.writeFieldBegin("success", TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success)) for kiter48, viter49 in self.success.items(): - oprot.writeString(kiter48.encode('utf-8') if sys.version_info[0] == 2 else kiter48) - oprot.writeString(viter49.encode('utf-8') if sys.version_info[0] == 2 else viter49) + oprot.writeString( + kiter48.encode("utf-8") if sys.version_info[0] == 2 else kiter48 + ) + oprot.writeString( + viter49.encode("utf-8") if sys.version_info[0] == 2 else viter49 + ) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -5152,26 +5985,35 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(get_vm_ports_result) get_vm_ports_result.thrift_spec = ( - (0, TType.MAP, 'success', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 0 + ( + 0, + TType.MAP, + "success", + (TType.STRING, "UTF8", TType.STRING, "UTF8", False), + None, + ), # 0 ) class get_Flavors_args(object): - - def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -5186,9 +6028,11 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('get_Flavors_args') + oprot.writeStructBegin("get_Flavors_args") oprot.writeFieldStop() oprot.writeStructEnd() @@ -5196,18 +6040,18 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(get_Flavors_args) -get_Flavors_args.thrift_spec = ( -) +get_Flavors_args.thrift_spec = () class get_Flavors_result(object): @@ -5217,12 +6061,17 @@ class get_Flavors_result(object): """ - - def __init__(self, success=None,): + def __init__( + self, success=None, + ): self.success = success def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -5248,11 +6097,13 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('get_Flavors_result') + oprot.writeStructBegin("get_Flavors_result") if self.success is not None: - oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeFieldBegin("success", TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) for iter56 in self.success: iter56.write(oprot) @@ -5265,26 +6116,29 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(get_Flavors_result) get_Flavors_result.thrift_spec = ( - (0, TType.LIST, 'success', (TType.STRUCT, [Flavor, None], False), None, ), # 0 + (0, TType.LIST, "success", (TType.STRUCT, [Flavor, None], False), None,), # 0 ) class get_Images_args(object): - - def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -5299,9 +6153,11 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('get_Images_args') + oprot.writeStructBegin("get_Images_args") oprot.writeFieldStop() oprot.writeStructEnd() @@ -5309,18 +6165,18 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(get_Images_args) -get_Images_args.thrift_spec = ( -) +get_Images_args.thrift_spec = () class get_Images_result(object): @@ -5330,12 +6186,17 @@ class get_Images_result(object): """ - - def __init__(self, success=None,): + def __init__( + self, success=None, + ): self.success = success def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -5361,11 +6222,13 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('get_Images_result') + oprot.writeStructBegin("get_Images_result") if self.success is not None: - oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeFieldBegin("success", TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) for iter63 in self.success: iter63.write(oprot) @@ -5378,18 +6241,19 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(get_Images_result) get_Images_result.thrift_spec = ( - (0, TType.LIST, 'success', (TType.STRUCT, [Image, None], False), None, ), # 0 + (0, TType.LIST, "success", (TType.STRUCT, [Image, None], False), None,), # 0 ) @@ -5400,12 +6264,17 @@ class get_Image_with_Tag_args(object): """ - - def __init__(self, openstack_id=None,): + def __init__( + self, openstack_id=None, + ): self.openstack_id = openstack_id def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -5415,7 +6284,11 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.openstack_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.openstack_id = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) else: @@ -5425,12 +6298,18 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('get_Image_with_Tag_args') + oprot.writeStructBegin("get_Image_with_Tag_args") if self.openstack_id is not None: - oprot.writeFieldBegin('openstack_id', TType.STRING, 1) - oprot.writeString(self.openstack_id.encode('utf-8') if sys.version_info[0] == 2 else self.openstack_id) + oprot.writeFieldBegin("openstack_id", TType.STRING, 1) + oprot.writeString( + self.openstack_id.encode("utf-8") + if sys.version_info[0] == 2 + else self.openstack_id + ) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -5439,19 +6318,20 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(get_Image_with_Tag_args) get_Image_with_Tag_args.thrift_spec = ( None, # 0 - (1, TType.STRING, 'openstack_id', 'UTF8', None, ), # 1 + (1, TType.STRING, "openstack_id", "UTF8", None,), # 1 ) @@ -5462,12 +6342,17 @@ class get_Image_with_Tag_result(object): """ - - def __init__(self, success=None,): + def __init__( + self, success=None, + ): self.success = success def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -5488,11 +6373,13 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('get_Image_with_Tag_result') + oprot.writeStructBegin("get_Image_with_Tag_result") if self.success is not None: - oprot.writeFieldBegin('success', TType.STRUCT, 0) + oprot.writeFieldBegin("success", TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -5502,18 +6389,19 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(get_Image_with_Tag_result) get_Image_with_Tag_result.thrift_spec = ( - (0, TType.STRUCT, 'success', [Image, None], None, ), # 0 + (0, TType.STRUCT, "success", [Image, None], None,), # 0 ) @@ -5524,12 +6412,17 @@ class get_Images_by_filter_args(object): """ - - def __init__(self, filter_json=None,): + def __init__( + self, filter_json=None, + ): self.filter_json = filter_json def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -5542,8 +6435,16 @@ def read(self, iprot): self.filter_json = {} (_ktype65, _vtype66, _size64) = iprot.readMapBegin() for _i68 in range(_size64): - _key69 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() - _val70 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _key69 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) + _val70 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) self.filter_json[_key69] = _val70 iprot.readMapEnd() else: @@ -5555,15 +6456,21 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('get_Images_by_filter_args') + oprot.writeStructBegin("get_Images_by_filter_args") if self.filter_json is not None: - oprot.writeFieldBegin('filter_json', TType.MAP, 1) + oprot.writeFieldBegin("filter_json", TType.MAP, 1) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.filter_json)) for kiter71, viter72 in self.filter_json.items(): - oprot.writeString(kiter71.encode('utf-8') if sys.version_info[0] == 2 else kiter71) - oprot.writeString(viter72.encode('utf-8') if sys.version_info[0] == 2 else viter72) + oprot.writeString( + kiter71.encode("utf-8") if sys.version_info[0] == 2 else kiter71 + ) + oprot.writeString( + viter72.encode("utf-8") if sys.version_info[0] == 2 else viter72 + ) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -5573,19 +6480,26 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(get_Images_by_filter_args) get_Images_by_filter_args.thrift_spec = ( None, # 0 - (1, TType.MAP, 'filter_json', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 1 + ( + 1, + TType.MAP, + "filter_json", + (TType.STRING, "UTF8", TType.STRING, "UTF8", False), + None, + ), # 1 ) @@ -5596,12 +6510,17 @@ class get_Images_by_filter_result(object): """ - - def __init__(self, success=None,): + def __init__( + self, success=None, + ): self.success = success def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -5627,11 +6546,13 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('get_Images_by_filter_result') + oprot.writeStructBegin("get_Images_by_filter_result") if self.success is not None: - oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeFieldBegin("success", TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) for iter79 in self.success: iter79.write(oprot) @@ -5644,18 +6565,19 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(get_Images_by_filter_result) get_Images_by_filter_result.thrift_spec = ( - (0, TType.LIST, 'success', (TType.STRUCT, [Image, None], False), None, ), # 0 + (0, TType.LIST, "success", (TType.STRUCT, [Image, None], False), None,), # 0 ) @@ -5666,12 +6588,17 @@ class get_volume_args(object): """ - - def __init__(self, volume_id=None,): + def __init__( + self, volume_id=None, + ): self.volume_id = volume_id def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -5681,7 +6608,11 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.volume_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.volume_id = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) else: @@ -5691,12 +6622,18 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('get_volume_args') + oprot.writeStructBegin("get_volume_args") if self.volume_id is not None: - oprot.writeFieldBegin('volume_id', TType.STRING, 1) - oprot.writeString(self.volume_id.encode('utf-8') if sys.version_info[0] == 2 else self.volume_id) + oprot.writeFieldBegin("volume_id", TType.STRING, 1) + oprot.writeString( + self.volume_id.encode("utf-8") + if sys.version_info[0] == 2 + else self.volume_id + ) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -5705,19 +6642,20 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(get_volume_args) get_volume_args.thrift_spec = ( None, # 0 - (1, TType.STRING, 'volume_id', 'UTF8', None, ), # 1 + (1, TType.STRING, "volume_id", "UTF8", None,), # 1 ) @@ -5728,12 +6666,17 @@ class get_volume_result(object): """ - - def __init__(self, success=None,): + def __init__( + self, success=None, + ): self.success = success def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -5754,11 +6697,13 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('get_volume_result') + oprot.writeStructBegin("get_volume_result") if self.success is not None: - oprot.writeFieldBegin('success', TType.STRUCT, 0) + oprot.writeFieldBegin("success", TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -5768,18 +6713,19 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(get_volume_result) get_volume_result.thrift_spec = ( - (0, TType.STRUCT, 'success', [Volume, None], None, ), # 0 + (0, TType.STRUCT, "success", [Volume, None], None,), # 0 ) @@ -5790,12 +6736,17 @@ class get_volumes_by_ids_args(object): """ - - def __init__(self, volume_ids=None,): + def __init__( + self, volume_ids=None, + ): self.volume_ids = volume_ids def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -5808,7 +6759,11 @@ def read(self, iprot): self.volume_ids = [] (_etype83, _size80) = iprot.readListBegin() for _i84 in range(_size80): - _elem85 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _elem85 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) self.volume_ids.append(_elem85) iprot.readListEnd() else: @@ -5820,14 +6775,18 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('get_volumes_by_ids_args') + oprot.writeStructBegin("get_volumes_by_ids_args") if self.volume_ids is not None: - oprot.writeFieldBegin('volume_ids', TType.LIST, 1) + oprot.writeFieldBegin("volume_ids", TType.LIST, 1) oprot.writeListBegin(TType.STRING, len(self.volume_ids)) for iter86 in self.volume_ids: - oprot.writeString(iter86.encode('utf-8') if sys.version_info[0] == 2 else iter86) + oprot.writeString( + iter86.encode("utf-8") if sys.version_info[0] == 2 else iter86 + ) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -5837,19 +6796,20 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(get_volumes_by_ids_args) get_volumes_by_ids_args.thrift_spec = ( None, # 0 - (1, TType.LIST, 'volume_ids', (TType.STRING, 'UTF8', False), None, ), # 1 + (1, TType.LIST, "volume_ids", (TType.STRING, "UTF8", False), None,), # 1 ) @@ -5860,12 +6820,17 @@ class get_volumes_by_ids_result(object): """ - - def __init__(self, success=None,): + def __init__( + self, success=None, + ): self.success = success def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -5891,11 +6856,13 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('get_volumes_by_ids_result') + oprot.writeStructBegin("get_volumes_by_ids_result") if self.success is not None: - oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeFieldBegin("success", TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) for iter93 in self.success: iter93.write(oprot) @@ -5908,18 +6875,19 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(get_volumes_by_ids_result) get_volumes_by_ids_result.thrift_spec = ( - (0, TType.LIST, 'success', (TType.STRUCT, [Volume, None], False), None, ), # 0 + (0, TType.LIST, "success", (TType.STRUCT, [Volume, None], False), None,), # 0 ) @@ -5931,13 +6899,18 @@ class resize_volume_args(object): """ - - def __init__(self, volume_id=None, size=None,): + def __init__( + self, volume_id=None, size=None, + ): self.volume_id = volume_id self.size = size def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -5947,7 +6920,11 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.volume_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.volume_id = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 2: @@ -5962,15 +6939,21 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('resize_volume_args') + oprot.writeStructBegin("resize_volume_args") if self.volume_id is not None: - oprot.writeFieldBegin('volume_id', TType.STRING, 1) - oprot.writeString(self.volume_id.encode('utf-8') if sys.version_info[0] == 2 else self.volume_id) + oprot.writeFieldBegin("volume_id", TType.STRING, 1) + oprot.writeString( + self.volume_id.encode("utf-8") + if sys.version_info[0] == 2 + else self.volume_id + ) oprot.writeFieldEnd() if self.size is not None: - oprot.writeFieldBegin('size', TType.I32, 2) + oprot.writeFieldBegin("size", TType.I32, 2) oprot.writeI32(self.size) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -5980,20 +6963,21 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(resize_volume_args) resize_volume_args.thrift_spec = ( None, # 0 - (1, TType.STRING, 'volume_id', 'UTF8', None, ), # 1 - (2, TType.I32, 'size', None, None, ), # 2 + (1, TType.STRING, "volume_id", "UTF8", None,), # 1 + (2, TType.I32, "size", None, None,), # 2 ) @@ -6004,12 +6988,17 @@ class resize_volume_result(object): """ - - def __init__(self, success=None,): + def __init__( + self, success=None, + ): self.success = success def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -6029,11 +7018,13 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('resize_volume_result') + oprot.writeStructBegin("resize_volume_result") if self.success is not None: - oprot.writeFieldBegin('success', TType.I32, 0) + oprot.writeFieldBegin("success", TType.I32, 0) oprot.writeI32(self.success) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -6043,19 +7034,18 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(resize_volume_result) -resize_volume_result.thrift_spec = ( - (0, TType.I32, 'success', None, None, ), # 0 -) +resize_volume_result.thrift_spec = ((0, TType.I32, "success", None, None,),) # 0 class delete_server_args(object): @@ -6065,12 +7055,17 @@ class delete_server_args(object): """ - - def __init__(self, openstack_id=None,): + def __init__( + self, openstack_id=None, + ): self.openstack_id = openstack_id def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -6080,7 +7075,11 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.openstack_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.openstack_id = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) else: @@ -6090,12 +7089,18 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('delete_server_args') + oprot.writeStructBegin("delete_server_args") if self.openstack_id is not None: - oprot.writeFieldBegin('openstack_id', TType.STRING, 1) - oprot.writeString(self.openstack_id.encode('utf-8') if sys.version_info[0] == 2 else self.openstack_id) + oprot.writeFieldBegin("openstack_id", TType.STRING, 1) + oprot.writeString( + self.openstack_id.encode("utf-8") + if sys.version_info[0] == 2 + else self.openstack_id + ) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -6104,19 +7109,20 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(delete_server_args) delete_server_args.thrift_spec = ( None, # 0 - (1, TType.STRING, 'openstack_id', 'UTF8', None, ), # 1 + (1, TType.STRING, "openstack_id", "UTF8", None,), # 1 ) @@ -6128,13 +7134,18 @@ class delete_server_result(object): """ - - def __init__(self, success=None, e=None,): + def __init__( + self, success=None, e=None, + ): self.success = success self.e = e def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -6160,15 +7171,17 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('delete_server_result') + oprot.writeStructBegin("delete_server_result") if self.success is not None: - oprot.writeFieldBegin('success', TType.BOOL, 0) + oprot.writeFieldBegin("success", TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() if self.e is not None: - oprot.writeFieldBegin('e', TType.STRUCT, 1) + oprot.writeFieldBegin("e", TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -6178,19 +7191,20 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(delete_server_result) delete_server_result.thrift_spec = ( - (0, TType.BOOL, 'success', None, None, ), # 0 - (1, TType.STRUCT, 'e', [serverNotFoundException, None], None, ), # 1 + (0, TType.BOOL, "success", None, None,), # 0 + (1, TType.STRUCT, "e", [serverNotFoundException, None], None,), # 1 ) @@ -6202,13 +7216,18 @@ class add_metadata_to_server_args(object): """ - - def __init__(self, servername=None, metadata=None,): + def __init__( + self, servername=None, metadata=None, + ): self.servername = servername self.metadata = metadata def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -6218,7 +7237,11 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.servername = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.servername = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 2: @@ -6226,8 +7249,16 @@ def read(self, iprot): self.metadata = {} (_ktype95, _vtype96, _size94) = iprot.readMapBegin() for _i98 in range(_size94): - _key99 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() - _val100 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _key99 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) + _val100 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) self.metadata[_key99] = _val100 iprot.readMapEnd() else: @@ -6239,19 +7270,29 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('add_metadata_to_server_args') + oprot.writeStructBegin("add_metadata_to_server_args") if self.servername is not None: - oprot.writeFieldBegin('servername', TType.STRING, 1) - oprot.writeString(self.servername.encode('utf-8') if sys.version_info[0] == 2 else self.servername) + oprot.writeFieldBegin("servername", TType.STRING, 1) + oprot.writeString( + self.servername.encode("utf-8") + if sys.version_info[0] == 2 + else self.servername + ) oprot.writeFieldEnd() if self.metadata is not None: - oprot.writeFieldBegin('metadata', TType.MAP, 2) + oprot.writeFieldBegin("metadata", TType.MAP, 2) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.metadata)) for kiter101, viter102 in self.metadata.items(): - oprot.writeString(kiter101.encode('utf-8') if sys.version_info[0] == 2 else kiter101) - oprot.writeString(viter102.encode('utf-8') if sys.version_info[0] == 2 else viter102) + oprot.writeString( + kiter101.encode("utf-8") if sys.version_info[0] == 2 else kiter101 + ) + oprot.writeString( + viter102.encode("utf-8") if sys.version_info[0] == 2 else viter102 + ) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -6261,20 +7302,27 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(add_metadata_to_server_args) add_metadata_to_server_args.thrift_spec = ( None, # 0 - (1, TType.STRING, 'servername', 'UTF8', None, ), # 1 - (2, TType.MAP, 'metadata', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 2 + (1, TType.STRING, "servername", "UTF8", None,), # 1 + ( + 2, + TType.MAP, + "metadata", + (TType.STRING, "UTF8", TType.STRING, "UTF8", False), + None, + ), # 2 ) @@ -6286,13 +7334,18 @@ class add_metadata_to_server_result(object): """ - - def __init__(self, success=None, e=None,): + def __init__( + self, success=None, e=None, + ): self.success = success self.e = e def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -6305,8 +7358,16 @@ def read(self, iprot): self.success = {} (_ktype104, _vtype105, _size103) = iprot.readMapBegin() for _i107 in range(_size103): - _key108 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() - _val109 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _key108 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) + _val109 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) self.success[_key108] = _val109 iprot.readMapEnd() else: @@ -6324,19 +7385,25 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('add_metadata_to_server_result') + oprot.writeStructBegin("add_metadata_to_server_result") if self.success is not None: - oprot.writeFieldBegin('success', TType.MAP, 0) + oprot.writeFieldBegin("success", TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success)) for kiter110, viter111 in self.success.items(): - oprot.writeString(kiter110.encode('utf-8') if sys.version_info[0] == 2 else kiter110) - oprot.writeString(viter111.encode('utf-8') if sys.version_info[0] == 2 else viter111) + oprot.writeString( + kiter110.encode("utf-8") if sys.version_info[0] == 2 else kiter110 + ) + oprot.writeString( + viter111.encode("utf-8") if sys.version_info[0] == 2 else viter111 + ) oprot.writeMapEnd() oprot.writeFieldEnd() if self.e is not None: - oprot.writeFieldBegin('e', TType.STRUCT, 1) + oprot.writeFieldBegin("e", TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -6346,19 +7413,26 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(add_metadata_to_server_result) add_metadata_to_server_result.thrift_spec = ( - (0, TType.MAP, 'success', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 0 - (1, TType.STRUCT, 'e', [serverNotFoundException, None], None, ), # 1 + ( + 0, + TType.MAP, + "success", + (TType.STRING, "UTF8", TType.STRING, "UTF8", False), + None, + ), # 0 + (1, TType.STRUCT, "e", [serverNotFoundException, None], None,), # 1 ) @@ -6370,13 +7444,18 @@ class delete_metadata_from_server_args(object): """ - - def __init__(self, servername=None, keys=None,): + def __init__( + self, servername=None, keys=None, + ): self.servername = servername self.keys = keys def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -6386,7 +7465,11 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.servername = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.servername = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 2: @@ -6394,7 +7477,11 @@ def read(self, iprot): self.keys = set() (_etype115, _size112) = iprot.readSetBegin() for _i116 in range(_size112): - _elem117 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _elem117 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) self.keys.add(_elem117) iprot.readSetEnd() else: @@ -6406,18 +7493,26 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('delete_metadata_from_server_args') + oprot.writeStructBegin("delete_metadata_from_server_args") if self.servername is not None: - oprot.writeFieldBegin('servername', TType.STRING, 1) - oprot.writeString(self.servername.encode('utf-8') if sys.version_info[0] == 2 else self.servername) + oprot.writeFieldBegin("servername", TType.STRING, 1) + oprot.writeString( + self.servername.encode("utf-8") + if sys.version_info[0] == 2 + else self.servername + ) oprot.writeFieldEnd() if self.keys is not None: - oprot.writeFieldBegin('keys', TType.SET, 2) + oprot.writeFieldBegin("keys", TType.SET, 2) oprot.writeSetBegin(TType.STRING, len(self.keys)) for iter118 in self.keys: - oprot.writeString(iter118.encode('utf-8') if sys.version_info[0] == 2 else iter118) + oprot.writeString( + iter118.encode("utf-8") if sys.version_info[0] == 2 else iter118 + ) oprot.writeSetEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -6427,20 +7522,21 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(delete_metadata_from_server_args) delete_metadata_from_server_args.thrift_spec = ( None, # 0 - (1, TType.STRING, 'servername', 'UTF8', None, ), # 1 - (2, TType.SET, 'keys', (TType.STRING, 'UTF8', False), None, ), # 2 + (1, TType.STRING, "servername", "UTF8", None,), # 1 + (2, TType.SET, "keys", (TType.STRING, "UTF8", False), None,), # 2 ) @@ -6452,13 +7548,18 @@ class delete_metadata_from_server_result(object): """ - - def __init__(self, success=None, e=None,): + def __init__( + self, success=None, e=None, + ): self.success = success self.e = e def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -6471,7 +7572,11 @@ def read(self, iprot): self.success = set() (_etype122, _size119) = iprot.readSetBegin() for _i123 in range(_size119): - _elem124 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _elem124 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) self.success.add(_elem124) iprot.readSetEnd() else: @@ -6489,18 +7594,22 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('delete_metadata_from_server_result') + oprot.writeStructBegin("delete_metadata_from_server_result") if self.success is not None: - oprot.writeFieldBegin('success', TType.SET, 0) + oprot.writeFieldBegin("success", TType.SET, 0) oprot.writeSetBegin(TType.STRING, len(self.success)) for iter125 in self.success: - oprot.writeString(iter125.encode('utf-8') if sys.version_info[0] == 2 else iter125) + oprot.writeString( + iter125.encode("utf-8") if sys.version_info[0] == 2 else iter125 + ) oprot.writeSetEnd() oprot.writeFieldEnd() if self.e is not None: - oprot.writeFieldBegin('e', TType.STRUCT, 1) + oprot.writeFieldBegin("e", TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -6510,19 +7619,20 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(delete_metadata_from_server_result) delete_metadata_from_server_result.thrift_spec = ( - (0, TType.SET, 'success', (TType.STRING, 'UTF8', False), None, ), # 0 - (1, TType.STRUCT, 'e', [serverNotFoundException, None], None, ), # 1 + (0, TType.SET, "success", (TType.STRING, "UTF8", False), None,), # 0 + (1, TType.STRUCT, "e", [serverNotFoundException, None], None,), # 1 ) @@ -6534,13 +7644,18 @@ class add_floating_ip_to_server_args(object): """ - - def __init__(self, openstack_id=None, network=None,): + def __init__( + self, openstack_id=None, network=None, + ): self.openstack_id = openstack_id self.network = network def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -6550,12 +7665,20 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.openstack_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.openstack_id = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.network = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.network = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) else: @@ -6565,16 +7688,26 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('add_floating_ip_to_server_args') + oprot.writeStructBegin("add_floating_ip_to_server_args") if self.openstack_id is not None: - oprot.writeFieldBegin('openstack_id', TType.STRING, 1) - oprot.writeString(self.openstack_id.encode('utf-8') if sys.version_info[0] == 2 else self.openstack_id) + oprot.writeFieldBegin("openstack_id", TType.STRING, 1) + oprot.writeString( + self.openstack_id.encode("utf-8") + if sys.version_info[0] == 2 + else self.openstack_id + ) oprot.writeFieldEnd() if self.network is not None: - oprot.writeFieldBegin('network', TType.STRING, 2) - oprot.writeString(self.network.encode('utf-8') if sys.version_info[0] == 2 else self.network) + oprot.writeFieldBegin("network", TType.STRING, 2) + oprot.writeString( + self.network.encode("utf-8") + if sys.version_info[0] == 2 + else self.network + ) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -6583,20 +7716,21 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(add_floating_ip_to_server_args) add_floating_ip_to_server_args.thrift_spec = ( None, # 0 - (1, TType.STRING, 'openstack_id', 'UTF8', None, ), # 1 - (2, TType.STRING, 'network', 'UTF8', None, ), # 2 + (1, TType.STRING, "openstack_id", "UTF8", None,), # 1 + (2, TType.STRING, "network", "UTF8", None,), # 2 ) @@ -6609,14 +7743,19 @@ class add_floating_ip_to_server_result(object): """ - - def __init__(self, success=None, e=None, f=None,): + def __init__( + self, success=None, e=None, f=None, + ): self.success = success self.e = e self.f = f def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -6626,7 +7765,11 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRING: - self.success = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.success = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 1: @@ -6648,19 +7791,25 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('add_floating_ip_to_server_result') + oprot.writeStructBegin("add_floating_ip_to_server_result") if self.success is not None: - oprot.writeFieldBegin('success', TType.STRING, 0) - oprot.writeString(self.success.encode('utf-8') if sys.version_info[0] == 2 else self.success) + oprot.writeFieldBegin("success", TType.STRING, 0) + oprot.writeString( + self.success.encode("utf-8") + if sys.version_info[0] == 2 + else self.success + ) oprot.writeFieldEnd() if self.e is not None: - oprot.writeFieldBegin('e', TType.STRUCT, 1) + oprot.writeFieldBegin("e", TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() if self.f is not None: - oprot.writeFieldBegin('f', TType.STRUCT, 2) + oprot.writeFieldBegin("f", TType.STRUCT, 2) self.f.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -6670,20 +7819,21 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(add_floating_ip_to_server_result) add_floating_ip_to_server_result.thrift_spec = ( - (0, TType.STRING, 'success', 'UTF8', None, ), # 0 - (1, TType.STRUCT, 'e', [serverNotFoundException, None], None, ), # 1 - (2, TType.STRUCT, 'f', [networkNotFoundException, None], None, ), # 2 + (0, TType.STRING, "success", "UTF8", None,), # 0 + (1, TType.STRUCT, "e", [serverNotFoundException, None], None,), # 1 + (2, TType.STRUCT, "f", [networkNotFoundException, None], None,), # 2 ) @@ -6701,8 +7851,14 @@ class create_connection_args(object): """ - - def __init__(self, username=None, password=None, auth_url=None, user_domain_name=None, project_domain_name=None,): + def __init__( + self, + username=None, + password=None, + auth_url=None, + user_domain_name=None, + project_domain_name=None, + ): self.username = username self.password = password self.auth_url = auth_url @@ -6710,7 +7866,11 @@ def __init__(self, username=None, password=None, auth_url=None, user_domain_name self.project_domain_name = project_domain_name def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -6720,27 +7880,47 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.username = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.username = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.password = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.password = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.auth_url = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.auth_url = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.user_domain_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.user_domain_name = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: - self.project_domain_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.project_domain_name = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) else: @@ -6750,28 +7930,50 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('create_connection_args') + oprot.writeStructBegin("create_connection_args") if self.username is not None: - oprot.writeFieldBegin('username', TType.STRING, 1) - oprot.writeString(self.username.encode('utf-8') if sys.version_info[0] == 2 else self.username) + oprot.writeFieldBegin("username", TType.STRING, 1) + oprot.writeString( + self.username.encode("utf-8") + if sys.version_info[0] == 2 + else self.username + ) oprot.writeFieldEnd() if self.password is not None: - oprot.writeFieldBegin('password', TType.STRING, 2) - oprot.writeString(self.password.encode('utf-8') if sys.version_info[0] == 2 else self.password) + oprot.writeFieldBegin("password", TType.STRING, 2) + oprot.writeString( + self.password.encode("utf-8") + if sys.version_info[0] == 2 + else self.password + ) oprot.writeFieldEnd() if self.auth_url is not None: - oprot.writeFieldBegin('auth_url', TType.STRING, 3) - oprot.writeString(self.auth_url.encode('utf-8') if sys.version_info[0] == 2 else self.auth_url) + oprot.writeFieldBegin("auth_url", TType.STRING, 3) + oprot.writeString( + self.auth_url.encode("utf-8") + if sys.version_info[0] == 2 + else self.auth_url + ) oprot.writeFieldEnd() if self.user_domain_name is not None: - oprot.writeFieldBegin('user_domain_name', TType.STRING, 5) - oprot.writeString(self.user_domain_name.encode('utf-8') if sys.version_info[0] == 2 else self.user_domain_name) + oprot.writeFieldBegin("user_domain_name", TType.STRING, 5) + oprot.writeString( + self.user_domain_name.encode("utf-8") + if sys.version_info[0] == 2 + else self.user_domain_name + ) oprot.writeFieldEnd() if self.project_domain_name is not None: - oprot.writeFieldBegin('project_domain_name', TType.STRING, 6) - oprot.writeString(self.project_domain_name.encode('utf-8') if sys.version_info[0] == 2 else self.project_domain_name) + oprot.writeFieldBegin("project_domain_name", TType.STRING, 6) + oprot.writeString( + self.project_domain_name.encode("utf-8") + if sys.version_info[0] == 2 + else self.project_domain_name + ) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -6780,24 +7982,25 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(create_connection_args) create_connection_args.thrift_spec = ( None, # 0 - (1, TType.STRING, 'username', 'UTF8', None, ), # 1 - (2, TType.STRING, 'password', 'UTF8', None, ), # 2 - (3, TType.STRING, 'auth_url', 'UTF8', None, ), # 3 + (1, TType.STRING, "username", "UTF8", None,), # 1 + (2, TType.STRING, "password", "UTF8", None,), # 2 + (3, TType.STRING, "auth_url", "UTF8", None,), # 3 None, # 4 - (5, TType.STRING, 'user_domain_name', 'UTF8', None, ), # 5 - (6, TType.STRING, 'project_domain_name', 'UTF8', None, ), # 6 + (5, TType.STRING, "user_domain_name", "UTF8", None,), # 5 + (6, TType.STRING, "project_domain_name", "UTF8", None,), # 6 ) @@ -6809,13 +8012,18 @@ class create_connection_result(object): """ - - def __init__(self, success=None, e=None,): + def __init__( + self, success=None, e=None, + ): self.success = success self.e = e def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -6841,15 +8049,17 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('create_connection_result') + oprot.writeStructBegin("create_connection_result") if self.success is not None: - oprot.writeFieldBegin('success', TType.BOOL, 0) + oprot.writeFieldBegin("success", TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() if self.e is not None: - oprot.writeFieldBegin('e', TType.STRUCT, 1) + oprot.writeFieldBegin("e", TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -6859,19 +8069,20 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(create_connection_result) create_connection_result.thrift_spec = ( - (0, TType.BOOL, 'success', None, None, ), # 0 - (1, TType.STRUCT, 'e', [authenticationException, None], None, ), # 1 + (0, TType.BOOL, "success", None, None,), # 0 + (1, TType.STRUCT, "e", [authenticationException, None], None,), # 1 ) @@ -6891,8 +8102,19 @@ class start_server_without_playbook_args(object): """ - - def __init__(self, flavor=None, image=None, public_key=None, servername=None, metadata=None, https=None, http=None, resenv=None, volume_ids_path_new=None, volume_ids_path_attach=None,): + def __init__( + self, + flavor=None, + image=None, + public_key=None, + servername=None, + metadata=None, + https=None, + http=None, + resenv=None, + volume_ids_path_new=None, + volume_ids_path_attach=None, + ): self.flavor = flavor self.image = image self.public_key = public_key @@ -6905,7 +8127,11 @@ def __init__(self, flavor=None, image=None, public_key=None, servername=None, me self.volume_ids_path_attach = volume_ids_path_attach def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -6915,22 +8141,38 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.flavor = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.flavor = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.image = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.image = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.public_key = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.public_key = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.servername = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.servername = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 5: @@ -6938,8 +8180,16 @@ def read(self, iprot): self.metadata = {} (_ktype127, _vtype128, _size126) = iprot.readMapBegin() for _i130 in range(_size126): - _key131 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() - _val132 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _key131 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) + _val132 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) self.metadata[_key131] = _val132 iprot.readMapEnd() else: @@ -6959,7 +8209,11 @@ def read(self, iprot): self.resenv = [] (_etype136, _size133) = iprot.readListBegin() for _i137 in range(_size133): - _elem138 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _elem138 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) self.resenv.append(_elem138) iprot.readListEnd() else: @@ -6972,8 +8226,16 @@ def read(self, iprot): _elem144 = {} (_ktype146, _vtype147, _size145) = iprot.readMapBegin() for _i149 in range(_size145): - _key150 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() - _val151 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _key150 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) + _val151 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) _elem144[_key150] = _val151 iprot.readMapEnd() self.volume_ids_path_new.append(_elem144) @@ -6988,8 +8250,16 @@ def read(self, iprot): _elem157 = {} (_ktype159, _vtype160, _size158) = iprot.readMapBegin() for _i162 in range(_size158): - _key163 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() - _val164 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _key163 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) + _val164 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) _elem157[_key163] = _val164 iprot.readMapEnd() self.volume_ids_path_attach.append(_elem157) @@ -7003,67 +8273,103 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('start_server_without_playbook_args') + oprot.writeStructBegin("start_server_without_playbook_args") if self.flavor is not None: - oprot.writeFieldBegin('flavor', TType.STRING, 1) - oprot.writeString(self.flavor.encode('utf-8') if sys.version_info[0] == 2 else self.flavor) + oprot.writeFieldBegin("flavor", TType.STRING, 1) + oprot.writeString( + self.flavor.encode("utf-8") if sys.version_info[0] == 2 else self.flavor + ) oprot.writeFieldEnd() if self.image is not None: - oprot.writeFieldBegin('image', TType.STRING, 2) - oprot.writeString(self.image.encode('utf-8') if sys.version_info[0] == 2 else self.image) + oprot.writeFieldBegin("image", TType.STRING, 2) + oprot.writeString( + self.image.encode("utf-8") if sys.version_info[0] == 2 else self.image + ) oprot.writeFieldEnd() if self.public_key is not None: - oprot.writeFieldBegin('public_key', TType.STRING, 3) - oprot.writeString(self.public_key.encode('utf-8') if sys.version_info[0] == 2 else self.public_key) + oprot.writeFieldBegin("public_key", TType.STRING, 3) + oprot.writeString( + self.public_key.encode("utf-8") + if sys.version_info[0] == 2 + else self.public_key + ) oprot.writeFieldEnd() if self.servername is not None: - oprot.writeFieldBegin('servername', TType.STRING, 4) - oprot.writeString(self.servername.encode('utf-8') if sys.version_info[0] == 2 else self.servername) + oprot.writeFieldBegin("servername", TType.STRING, 4) + oprot.writeString( + self.servername.encode("utf-8") + if sys.version_info[0] == 2 + else self.servername + ) oprot.writeFieldEnd() if self.metadata is not None: - oprot.writeFieldBegin('metadata', TType.MAP, 5) + oprot.writeFieldBegin("metadata", TType.MAP, 5) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.metadata)) for kiter165, viter166 in self.metadata.items(): - oprot.writeString(kiter165.encode('utf-8') if sys.version_info[0] == 2 else kiter165) - oprot.writeString(viter166.encode('utf-8') if sys.version_info[0] == 2 else viter166) + oprot.writeString( + kiter165.encode("utf-8") if sys.version_info[0] == 2 else kiter165 + ) + oprot.writeString( + viter166.encode("utf-8") if sys.version_info[0] == 2 else viter166 + ) oprot.writeMapEnd() oprot.writeFieldEnd() if self.https is not None: - oprot.writeFieldBegin('https', TType.BOOL, 6) + oprot.writeFieldBegin("https", TType.BOOL, 6) oprot.writeBool(self.https) oprot.writeFieldEnd() if self.http is not None: - oprot.writeFieldBegin('http', TType.BOOL, 7) + oprot.writeFieldBegin("http", TType.BOOL, 7) oprot.writeBool(self.http) oprot.writeFieldEnd() if self.resenv is not None: - oprot.writeFieldBegin('resenv', TType.LIST, 8) + oprot.writeFieldBegin("resenv", TType.LIST, 8) oprot.writeListBegin(TType.STRING, len(self.resenv)) for iter167 in self.resenv: - oprot.writeString(iter167.encode('utf-8') if sys.version_info[0] == 2 else iter167) + oprot.writeString( + iter167.encode("utf-8") if sys.version_info[0] == 2 else iter167 + ) oprot.writeListEnd() oprot.writeFieldEnd() if self.volume_ids_path_new is not None: - oprot.writeFieldBegin('volume_ids_path_new', TType.LIST, 9) + oprot.writeFieldBegin("volume_ids_path_new", TType.LIST, 9) oprot.writeListBegin(TType.MAP, len(self.volume_ids_path_new)) for iter168 in self.volume_ids_path_new: oprot.writeMapBegin(TType.STRING, TType.STRING, len(iter168)) for kiter169, viter170 in iter168.items(): - oprot.writeString(kiter169.encode('utf-8') if sys.version_info[0] == 2 else kiter169) - oprot.writeString(viter170.encode('utf-8') if sys.version_info[0] == 2 else viter170) + oprot.writeString( + kiter169.encode("utf-8") + if sys.version_info[0] == 2 + else kiter169 + ) + oprot.writeString( + viter170.encode("utf-8") + if sys.version_info[0] == 2 + else viter170 + ) oprot.writeMapEnd() oprot.writeListEnd() oprot.writeFieldEnd() if self.volume_ids_path_attach is not None: - oprot.writeFieldBegin('volume_ids_path_attach', TType.LIST, 10) + oprot.writeFieldBegin("volume_ids_path_attach", TType.LIST, 10) oprot.writeListBegin(TType.MAP, len(self.volume_ids_path_attach)) for iter171 in self.volume_ids_path_attach: oprot.writeMapBegin(TType.STRING, TType.STRING, len(iter171)) for kiter172, viter173 in iter171.items(): - oprot.writeString(kiter172.encode('utf-8') if sys.version_info[0] == 2 else kiter172) - oprot.writeString(viter173.encode('utf-8') if sys.version_info[0] == 2 else viter173) + oprot.writeString( + kiter172.encode("utf-8") + if sys.version_info[0] == 2 + else kiter172 + ) + oprot.writeString( + viter173.encode("utf-8") + if sys.version_info[0] == 2 + else viter173 + ) oprot.writeMapEnd() oprot.writeListEnd() oprot.writeFieldEnd() @@ -7074,28 +8380,47 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(start_server_without_playbook_args) start_server_without_playbook_args.thrift_spec = ( None, # 0 - (1, TType.STRING, 'flavor', 'UTF8', None, ), # 1 - (2, TType.STRING, 'image', 'UTF8', None, ), # 2 - (3, TType.STRING, 'public_key', 'UTF8', None, ), # 3 - (4, TType.STRING, 'servername', 'UTF8', None, ), # 4 - (5, TType.MAP, 'metadata', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 5 - (6, TType.BOOL, 'https', None, None, ), # 6 - (7, TType.BOOL, 'http', None, None, ), # 7 - (8, TType.LIST, 'resenv', (TType.STRING, 'UTF8', False), None, ), # 8 - (9, TType.LIST, 'volume_ids_path_new', (TType.MAP, (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), False), None, ), # 9 - (10, TType.LIST, 'volume_ids_path_attach', (TType.MAP, (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), False), None, ), # 10 + (1, TType.STRING, "flavor", "UTF8", None,), # 1 + (2, TType.STRING, "image", "UTF8", None,), # 2 + (3, TType.STRING, "public_key", "UTF8", None,), # 3 + (4, TType.STRING, "servername", "UTF8", None,), # 4 + ( + 5, + TType.MAP, + "metadata", + (TType.STRING, "UTF8", TType.STRING, "UTF8", False), + None, + ), # 5 + (6, TType.BOOL, "https", None, None,), # 6 + (7, TType.BOOL, "http", None, None,), # 7 + (8, TType.LIST, "resenv", (TType.STRING, "UTF8", False), None,), # 8 + ( + 9, + TType.LIST, + "volume_ids_path_new", + (TType.MAP, (TType.STRING, "UTF8", TType.STRING, "UTF8", False), False), + None, + ), # 9 + ( + 10, + TType.LIST, + "volume_ids_path_attach", + (TType.MAP, (TType.STRING, "UTF8", TType.STRING, "UTF8", False), False), + None, + ), # 10 ) @@ -7113,8 +8438,9 @@ class start_server_without_playbook_result(object): """ - - def __init__(self, success=None, e=None, r=None, s=None, n=None, i=None, f=None, o=None,): + def __init__( + self, success=None, e=None, r=None, s=None, n=None, i=None, f=None, o=None, + ): self.success = success self.e = e self.r = r @@ -7125,7 +8451,11 @@ def __init__(self, success=None, e=None, r=None, s=None, n=None, i=None, f=None, self.o = o def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -7138,8 +8468,16 @@ def read(self, iprot): self.success = {} (_ktype175, _vtype176, _size174) = iprot.readMapBegin() for _i178 in range(_size174): - _key179 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() - _val180 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _key179 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) + _val180 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) self.success[_key179] = _val180 iprot.readMapEnd() else: @@ -7193,43 +8531,49 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('start_server_without_playbook_result') + oprot.writeStructBegin("start_server_without_playbook_result") if self.success is not None: - oprot.writeFieldBegin('success', TType.MAP, 0) + oprot.writeFieldBegin("success", TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success)) for kiter181, viter182 in self.success.items(): - oprot.writeString(kiter181.encode('utf-8') if sys.version_info[0] == 2 else kiter181) - oprot.writeString(viter182.encode('utf-8') if sys.version_info[0] == 2 else viter182) + oprot.writeString( + kiter181.encode("utf-8") if sys.version_info[0] == 2 else kiter181 + ) + oprot.writeString( + viter182.encode("utf-8") if sys.version_info[0] == 2 else viter182 + ) oprot.writeMapEnd() oprot.writeFieldEnd() if self.e is not None: - oprot.writeFieldBegin('e', TType.STRUCT, 1) + oprot.writeFieldBegin("e", TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() if self.r is not None: - oprot.writeFieldBegin('r', TType.STRUCT, 2) + oprot.writeFieldBegin("r", TType.STRUCT, 2) self.r.write(oprot) oprot.writeFieldEnd() if self.s is not None: - oprot.writeFieldBegin('s', TType.STRUCT, 3) + oprot.writeFieldBegin("s", TType.STRUCT, 3) self.s.write(oprot) oprot.writeFieldEnd() if self.n is not None: - oprot.writeFieldBegin('n', TType.STRUCT, 4) + oprot.writeFieldBegin("n", TType.STRUCT, 4) self.n.write(oprot) oprot.writeFieldEnd() if self.i is not None: - oprot.writeFieldBegin('i', TType.STRUCT, 5) + oprot.writeFieldBegin("i", TType.STRUCT, 5) self.i.write(oprot) oprot.writeFieldEnd() if self.f is not None: - oprot.writeFieldBegin('f', TType.STRUCT, 6) + oprot.writeFieldBegin("f", TType.STRUCT, 6) self.f.write(oprot) oprot.writeFieldEnd() if self.o is not None: - oprot.writeFieldBegin('o', TType.STRUCT, 7) + oprot.writeFieldBegin("o", TType.STRUCT, 7) self.o.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -7239,33 +8583,42 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(start_server_without_playbook_result) start_server_without_playbook_result.thrift_spec = ( - (0, TType.MAP, 'success', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 0 - (1, TType.STRUCT, 'e', [nameException, None], None, ), # 1 - (2, TType.STRUCT, 'r', [ressourceException, None], None, ), # 2 - (3, TType.STRUCT, 's', [serverNotFoundException, None], None, ), # 3 - (4, TType.STRUCT, 'n', [networkNotFoundException, None], None, ), # 4 - (5, TType.STRUCT, 'i', [imageNotFoundException, None], None, ), # 5 - (6, TType.STRUCT, 'f', [flavorNotFoundException, None], None, ), # 6 - (7, TType.STRUCT, 'o', [otherException, None], None, ), # 7 + ( + 0, + TType.MAP, + "success", + (TType.STRING, "UTF8", TType.STRING, "UTF8", False), + None, + ), # 0 + (1, TType.STRUCT, "e", [nameException, None], None,), # 1 + (2, TType.STRUCT, "r", [ressourceException, None], None,), # 2 + (3, TType.STRUCT, "s", [serverNotFoundException, None], None,), # 3 + (4, TType.STRUCT, "n", [networkNotFoundException, None], None,), # 4 + (5, TType.STRUCT, "i", [imageNotFoundException, None], None,), # 5 + (6, TType.STRUCT, "f", [flavorNotFoundException, None], None,), # 6 + (7, TType.STRUCT, "o", [otherException, None], None,), # 7 ) class bibigrid_available_args(object): - - def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -7280,9 +8633,11 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('bibigrid_available_args') + oprot.writeStructBegin("bibigrid_available_args") oprot.writeFieldStop() oprot.writeStructEnd() @@ -7290,18 +8645,18 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(bibigrid_available_args) -bibigrid_available_args.thrift_spec = ( -) +bibigrid_available_args.thrift_spec = () class bibigrid_available_result(object): @@ -7311,12 +8666,17 @@ class bibigrid_available_result(object): """ - - def __init__(self, success=None,): + def __init__( + self, success=None, + ): self.success = success def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -7336,11 +8696,13 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('bibigrid_available_result') + oprot.writeStructBegin("bibigrid_available_result") if self.success is not None: - oprot.writeFieldBegin('success', TType.BOOL, 0) + oprot.writeFieldBegin("success", TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -7350,19 +8712,18 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(bibigrid_available_result) -bibigrid_available_result.thrift_spec = ( - (0, TType.BOOL, 'success', None, None, ), # 0 -) +bibigrid_available_result.thrift_spec = ((0, TType.BOOL, "success", None, None,),) # 0 class detach_ip_from_server_args(object): @@ -7373,13 +8734,18 @@ class detach_ip_from_server_args(object): """ - - def __init__(self, server_id=None, floating_ip=None,): + def __init__( + self, server_id=None, floating_ip=None, + ): self.server_id = server_id self.floating_ip = floating_ip def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -7389,12 +8755,20 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.server_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.server_id = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.floating_ip = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.floating_ip = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) else: @@ -7404,16 +8778,26 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('detach_ip_from_server_args') + oprot.writeStructBegin("detach_ip_from_server_args") if self.server_id is not None: - oprot.writeFieldBegin('server_id', TType.STRING, 1) - oprot.writeString(self.server_id.encode('utf-8') if sys.version_info[0] == 2 else self.server_id) + oprot.writeFieldBegin("server_id", TType.STRING, 1) + oprot.writeString( + self.server_id.encode("utf-8") + if sys.version_info[0] == 2 + else self.server_id + ) oprot.writeFieldEnd() if self.floating_ip is not None: - oprot.writeFieldBegin('floating_ip', TType.STRING, 2) - oprot.writeString(self.floating_ip.encode('utf-8') if sys.version_info[0] == 2 else self.floating_ip) + oprot.writeFieldBegin("floating_ip", TType.STRING, 2) + oprot.writeString( + self.floating_ip.encode("utf-8") + if sys.version_info[0] == 2 + else self.floating_ip + ) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -7422,20 +8806,21 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(detach_ip_from_server_args) detach_ip_from_server_args.thrift_spec = ( None, # 0 - (1, TType.STRING, 'server_id', 'UTF8', None, ), # 1 - (2, TType.STRING, 'floating_ip', 'UTF8', None, ), # 2 + (1, TType.STRING, "server_id", "UTF8", None,), # 1 + (2, TType.STRING, "floating_ip", "UTF8", None,), # 2 ) @@ -7446,12 +8831,17 @@ class detach_ip_from_server_result(object): """ - - def __init__(self, success=None,): + def __init__( + self, success=None, + ): self.success = success def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -7471,11 +8861,13 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('detach_ip_from_server_result') + oprot.writeStructBegin("detach_ip_from_server_result") if self.success is not None: - oprot.writeFieldBegin('success', TType.BOOL, 0) + oprot.writeFieldBegin("success", TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -7485,18 +8877,19 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(detach_ip_from_server_result) detach_ip_from_server_result.thrift_spec = ( - (0, TType.BOOL, 'success', None, None, ), # 0 + (0, TType.BOOL, "success", None, None,), # 0 ) @@ -7516,8 +8909,19 @@ class start_server_with_mounted_volume_args(object): """ - - def __init__(self, flavor=None, image=None, public_key=None, servername=None, metadata=None, https=None, http=None, resenv=None, volume_ids_path_new=None, volume_ids_path_attach=None,): + def __init__( + self, + flavor=None, + image=None, + public_key=None, + servername=None, + metadata=None, + https=None, + http=None, + resenv=None, + volume_ids_path_new=None, + volume_ids_path_attach=None, + ): self.flavor = flavor self.image = image self.public_key = public_key @@ -7530,7 +8934,11 @@ def __init__(self, flavor=None, image=None, public_key=None, servername=None, me self.volume_ids_path_attach = volume_ids_path_attach def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -7540,22 +8948,38 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.flavor = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.flavor = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.image = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.image = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.public_key = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.public_key = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.servername = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.servername = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 5: @@ -7563,8 +8987,16 @@ def read(self, iprot): self.metadata = {} (_ktype184, _vtype185, _size183) = iprot.readMapBegin() for _i187 in range(_size183): - _key188 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() - _val189 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _key188 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) + _val189 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) self.metadata[_key188] = _val189 iprot.readMapEnd() else: @@ -7584,7 +9016,11 @@ def read(self, iprot): self.resenv = [] (_etype193, _size190) = iprot.readListBegin() for _i194 in range(_size190): - _elem195 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _elem195 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) self.resenv.append(_elem195) iprot.readListEnd() else: @@ -7597,8 +9033,16 @@ def read(self, iprot): _elem201 = {} (_ktype203, _vtype204, _size202) = iprot.readMapBegin() for _i206 in range(_size202): - _key207 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() - _val208 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _key207 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) + _val208 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) _elem201[_key207] = _val208 iprot.readMapEnd() self.volume_ids_path_new.append(_elem201) @@ -7613,8 +9057,16 @@ def read(self, iprot): _elem214 = {} (_ktype216, _vtype217, _size215) = iprot.readMapBegin() for _i219 in range(_size215): - _key220 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() - _val221 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _key220 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) + _val221 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) _elem214[_key220] = _val221 iprot.readMapEnd() self.volume_ids_path_attach.append(_elem214) @@ -7628,67 +9080,103 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('start_server_with_mounted_volume_args') + oprot.writeStructBegin("start_server_with_mounted_volume_args") if self.flavor is not None: - oprot.writeFieldBegin('flavor', TType.STRING, 1) - oprot.writeString(self.flavor.encode('utf-8') if sys.version_info[0] == 2 else self.flavor) + oprot.writeFieldBegin("flavor", TType.STRING, 1) + oprot.writeString( + self.flavor.encode("utf-8") if sys.version_info[0] == 2 else self.flavor + ) oprot.writeFieldEnd() if self.image is not None: - oprot.writeFieldBegin('image', TType.STRING, 2) - oprot.writeString(self.image.encode('utf-8') if sys.version_info[0] == 2 else self.image) + oprot.writeFieldBegin("image", TType.STRING, 2) + oprot.writeString( + self.image.encode("utf-8") if sys.version_info[0] == 2 else self.image + ) oprot.writeFieldEnd() if self.public_key is not None: - oprot.writeFieldBegin('public_key', TType.STRING, 3) - oprot.writeString(self.public_key.encode('utf-8') if sys.version_info[0] == 2 else self.public_key) + oprot.writeFieldBegin("public_key", TType.STRING, 3) + oprot.writeString( + self.public_key.encode("utf-8") + if sys.version_info[0] == 2 + else self.public_key + ) oprot.writeFieldEnd() if self.servername is not None: - oprot.writeFieldBegin('servername', TType.STRING, 4) - oprot.writeString(self.servername.encode('utf-8') if sys.version_info[0] == 2 else self.servername) + oprot.writeFieldBegin("servername", TType.STRING, 4) + oprot.writeString( + self.servername.encode("utf-8") + if sys.version_info[0] == 2 + else self.servername + ) oprot.writeFieldEnd() if self.metadata is not None: - oprot.writeFieldBegin('metadata', TType.MAP, 5) + oprot.writeFieldBegin("metadata", TType.MAP, 5) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.metadata)) for kiter222, viter223 in self.metadata.items(): - oprot.writeString(kiter222.encode('utf-8') if sys.version_info[0] == 2 else kiter222) - oprot.writeString(viter223.encode('utf-8') if sys.version_info[0] == 2 else viter223) + oprot.writeString( + kiter222.encode("utf-8") if sys.version_info[0] == 2 else kiter222 + ) + oprot.writeString( + viter223.encode("utf-8") if sys.version_info[0] == 2 else viter223 + ) oprot.writeMapEnd() oprot.writeFieldEnd() if self.https is not None: - oprot.writeFieldBegin('https', TType.BOOL, 6) + oprot.writeFieldBegin("https", TType.BOOL, 6) oprot.writeBool(self.https) oprot.writeFieldEnd() if self.http is not None: - oprot.writeFieldBegin('http', TType.BOOL, 7) + oprot.writeFieldBegin("http", TType.BOOL, 7) oprot.writeBool(self.http) oprot.writeFieldEnd() if self.resenv is not None: - oprot.writeFieldBegin('resenv', TType.LIST, 8) + oprot.writeFieldBegin("resenv", TType.LIST, 8) oprot.writeListBegin(TType.STRING, len(self.resenv)) for iter224 in self.resenv: - oprot.writeString(iter224.encode('utf-8') if sys.version_info[0] == 2 else iter224) + oprot.writeString( + iter224.encode("utf-8") if sys.version_info[0] == 2 else iter224 + ) oprot.writeListEnd() oprot.writeFieldEnd() if self.volume_ids_path_new is not None: - oprot.writeFieldBegin('volume_ids_path_new', TType.LIST, 9) + oprot.writeFieldBegin("volume_ids_path_new", TType.LIST, 9) oprot.writeListBegin(TType.MAP, len(self.volume_ids_path_new)) for iter225 in self.volume_ids_path_new: oprot.writeMapBegin(TType.STRING, TType.STRING, len(iter225)) for kiter226, viter227 in iter225.items(): - oprot.writeString(kiter226.encode('utf-8') if sys.version_info[0] == 2 else kiter226) - oprot.writeString(viter227.encode('utf-8') if sys.version_info[0] == 2 else viter227) + oprot.writeString( + kiter226.encode("utf-8") + if sys.version_info[0] == 2 + else kiter226 + ) + oprot.writeString( + viter227.encode("utf-8") + if sys.version_info[0] == 2 + else viter227 + ) oprot.writeMapEnd() oprot.writeListEnd() oprot.writeFieldEnd() if self.volume_ids_path_attach is not None: - oprot.writeFieldBegin('volume_ids_path_attach', TType.LIST, 10) + oprot.writeFieldBegin("volume_ids_path_attach", TType.LIST, 10) oprot.writeListBegin(TType.MAP, len(self.volume_ids_path_attach)) for iter228 in self.volume_ids_path_attach: oprot.writeMapBegin(TType.STRING, TType.STRING, len(iter228)) for kiter229, viter230 in iter228.items(): - oprot.writeString(kiter229.encode('utf-8') if sys.version_info[0] == 2 else kiter229) - oprot.writeString(viter230.encode('utf-8') if sys.version_info[0] == 2 else viter230) + oprot.writeString( + kiter229.encode("utf-8") + if sys.version_info[0] == 2 + else kiter229 + ) + oprot.writeString( + viter230.encode("utf-8") + if sys.version_info[0] == 2 + else viter230 + ) oprot.writeMapEnd() oprot.writeListEnd() oprot.writeFieldEnd() @@ -7699,28 +9187,47 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(start_server_with_mounted_volume_args) start_server_with_mounted_volume_args.thrift_spec = ( None, # 0 - (1, TType.STRING, 'flavor', 'UTF8', None, ), # 1 - (2, TType.STRING, 'image', 'UTF8', None, ), # 2 - (3, TType.STRING, 'public_key', 'UTF8', None, ), # 3 - (4, TType.STRING, 'servername', 'UTF8', None, ), # 4 - (5, TType.MAP, 'metadata', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 5 - (6, TType.BOOL, 'https', None, None, ), # 6 - (7, TType.BOOL, 'http', None, None, ), # 7 - (8, TType.LIST, 'resenv', (TType.STRING, 'UTF8', False), None, ), # 8 - (9, TType.LIST, 'volume_ids_path_new', (TType.MAP, (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), False), None, ), # 9 - (10, TType.LIST, 'volume_ids_path_attach', (TType.MAP, (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), False), None, ), # 10 + (1, TType.STRING, "flavor", "UTF8", None,), # 1 + (2, TType.STRING, "image", "UTF8", None,), # 2 + (3, TType.STRING, "public_key", "UTF8", None,), # 3 + (4, TType.STRING, "servername", "UTF8", None,), # 4 + ( + 5, + TType.MAP, + "metadata", + (TType.STRING, "UTF8", TType.STRING, "UTF8", False), + None, + ), # 5 + (6, TType.BOOL, "https", None, None,), # 6 + (7, TType.BOOL, "http", None, None,), # 7 + (8, TType.LIST, "resenv", (TType.STRING, "UTF8", False), None,), # 8 + ( + 9, + TType.LIST, + "volume_ids_path_new", + (TType.MAP, (TType.STRING, "UTF8", TType.STRING, "UTF8", False), False), + None, + ), # 9 + ( + 10, + TType.LIST, + "volume_ids_path_attach", + (TType.MAP, (TType.STRING, "UTF8", TType.STRING, "UTF8", False), False), + None, + ), # 10 ) @@ -7738,8 +9245,9 @@ class start_server_with_mounted_volume_result(object): """ - - def __init__(self, success=None, e=None, r=None, s=None, n=None, i=None, f=None, o=None,): + def __init__( + self, success=None, e=None, r=None, s=None, n=None, i=None, f=None, o=None, + ): self.success = success self.e = e self.r = r @@ -7750,7 +9258,11 @@ def __init__(self, success=None, e=None, r=None, s=None, n=None, i=None, f=None, self.o = o def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -7763,8 +9275,16 @@ def read(self, iprot): self.success = {} (_ktype232, _vtype233, _size231) = iprot.readMapBegin() for _i235 in range(_size231): - _key236 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() - _val237 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _key236 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) + _val237 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) self.success[_key236] = _val237 iprot.readMapEnd() else: @@ -7818,43 +9338,49 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('start_server_with_mounted_volume_result') + oprot.writeStructBegin("start_server_with_mounted_volume_result") if self.success is not None: - oprot.writeFieldBegin('success', TType.MAP, 0) + oprot.writeFieldBegin("success", TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success)) for kiter238, viter239 in self.success.items(): - oprot.writeString(kiter238.encode('utf-8') if sys.version_info[0] == 2 else kiter238) - oprot.writeString(viter239.encode('utf-8') if sys.version_info[0] == 2 else viter239) + oprot.writeString( + kiter238.encode("utf-8") if sys.version_info[0] == 2 else kiter238 + ) + oprot.writeString( + viter239.encode("utf-8") if sys.version_info[0] == 2 else viter239 + ) oprot.writeMapEnd() oprot.writeFieldEnd() if self.e is not None: - oprot.writeFieldBegin('e', TType.STRUCT, 1) + oprot.writeFieldBegin("e", TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() if self.r is not None: - oprot.writeFieldBegin('r', TType.STRUCT, 2) + oprot.writeFieldBegin("r", TType.STRUCT, 2) self.r.write(oprot) oprot.writeFieldEnd() if self.s is not None: - oprot.writeFieldBegin('s', TType.STRUCT, 3) + oprot.writeFieldBegin("s", TType.STRUCT, 3) self.s.write(oprot) oprot.writeFieldEnd() if self.n is not None: - oprot.writeFieldBegin('n', TType.STRUCT, 4) + oprot.writeFieldBegin("n", TType.STRUCT, 4) self.n.write(oprot) oprot.writeFieldEnd() if self.i is not None: - oprot.writeFieldBegin('i', TType.STRUCT, 5) + oprot.writeFieldBegin("i", TType.STRUCT, 5) self.i.write(oprot) oprot.writeFieldEnd() if self.f is not None: - oprot.writeFieldBegin('f', TType.STRUCT, 6) + oprot.writeFieldBegin("f", TType.STRUCT, 6) self.f.write(oprot) oprot.writeFieldEnd() if self.o is not None: - oprot.writeFieldBegin('o', TType.STRUCT, 7) + oprot.writeFieldBegin("o", TType.STRUCT, 7) self.o.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -7864,25 +9390,32 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(start_server_with_mounted_volume_result) start_server_with_mounted_volume_result.thrift_spec = ( - (0, TType.MAP, 'success', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 0 - (1, TType.STRUCT, 'e', [nameException, None], None, ), # 1 - (2, TType.STRUCT, 'r', [ressourceException, None], None, ), # 2 - (3, TType.STRUCT, 's', [serverNotFoundException, None], None, ), # 3 - (4, TType.STRUCT, 'n', [networkNotFoundException, None], None, ), # 4 - (5, TType.STRUCT, 'i', [imageNotFoundException, None], None, ), # 5 - (6, TType.STRUCT, 'f', [flavorNotFoundException, None], None, ), # 6 - (7, TType.STRUCT, 'o', [otherException, None], None, ), # 7 + ( + 0, + TType.MAP, + "success", + (TType.STRING, "UTF8", TType.STRING, "UTF8", False), + None, + ), # 0 + (1, TType.STRUCT, "e", [nameException, None], None,), # 1 + (2, TType.STRUCT, "r", [ressourceException, None], None,), # 2 + (3, TType.STRUCT, "s", [serverNotFoundException, None], None,), # 3 + (4, TType.STRUCT, "n", [networkNotFoundException, None], None,), # 4 + (5, TType.STRUCT, "i", [imageNotFoundException, None], None,), # 5 + (6, TType.STRUCT, "f", [flavorNotFoundException, None], None,), # 6 + (7, TType.STRUCT, "o", [otherException, None], None,), # 7 ) @@ -7902,8 +9435,19 @@ class start_server_args(object): """ - - def __init__(self, flavor=None, image=None, public_key=None, servername=None, metadata=None, diskspace=None, volumename=None, https=None, http=None, resenv=None,): + def __init__( + self, + flavor=None, + image=None, + public_key=None, + servername=None, + metadata=None, + diskspace=None, + volumename=None, + https=None, + http=None, + resenv=None, + ): self.flavor = flavor self.image = image self.public_key = public_key @@ -7916,7 +9460,11 @@ def __init__(self, flavor=None, image=None, public_key=None, servername=None, me self.resenv = resenv def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -7926,22 +9474,38 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.flavor = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.flavor = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.image = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.image = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.public_key = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.public_key = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.servername = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.servername = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 5: @@ -7949,20 +9513,36 @@ def read(self, iprot): self.metadata = {} (_ktype241, _vtype242, _size240) = iprot.readMapBegin() for _i244 in range(_size240): - _key245 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() - _val246 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _key245 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) + _val246 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) self.metadata[_key245] = _val246 iprot.readMapEnd() else: iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: - self.diskspace = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.diskspace = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 7: if ftype == TType.STRING: - self.volumename = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.volumename = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 8: @@ -7980,7 +9560,11 @@ def read(self, iprot): self.resenv = [] (_etype250, _size247) = iprot.readListBegin() for _i251 in range(_size247): - _elem252 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _elem252 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) self.resenv.append(_elem252) iprot.readListEnd() else: @@ -7992,54 +9576,82 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('start_server_args') + oprot.writeStructBegin("start_server_args") if self.flavor is not None: - oprot.writeFieldBegin('flavor', TType.STRING, 1) - oprot.writeString(self.flavor.encode('utf-8') if sys.version_info[0] == 2 else self.flavor) + oprot.writeFieldBegin("flavor", TType.STRING, 1) + oprot.writeString( + self.flavor.encode("utf-8") if sys.version_info[0] == 2 else self.flavor + ) oprot.writeFieldEnd() if self.image is not None: - oprot.writeFieldBegin('image', TType.STRING, 2) - oprot.writeString(self.image.encode('utf-8') if sys.version_info[0] == 2 else self.image) + oprot.writeFieldBegin("image", TType.STRING, 2) + oprot.writeString( + self.image.encode("utf-8") if sys.version_info[0] == 2 else self.image + ) oprot.writeFieldEnd() if self.public_key is not None: - oprot.writeFieldBegin('public_key', TType.STRING, 3) - oprot.writeString(self.public_key.encode('utf-8') if sys.version_info[0] == 2 else self.public_key) + oprot.writeFieldBegin("public_key", TType.STRING, 3) + oprot.writeString( + self.public_key.encode("utf-8") + if sys.version_info[0] == 2 + else self.public_key + ) oprot.writeFieldEnd() if self.servername is not None: - oprot.writeFieldBegin('servername', TType.STRING, 4) - oprot.writeString(self.servername.encode('utf-8') if sys.version_info[0] == 2 else self.servername) + oprot.writeFieldBegin("servername", TType.STRING, 4) + oprot.writeString( + self.servername.encode("utf-8") + if sys.version_info[0] == 2 + else self.servername + ) oprot.writeFieldEnd() if self.metadata is not None: - oprot.writeFieldBegin('metadata', TType.MAP, 5) + oprot.writeFieldBegin("metadata", TType.MAP, 5) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.metadata)) for kiter253, viter254 in self.metadata.items(): - oprot.writeString(kiter253.encode('utf-8') if sys.version_info[0] == 2 else kiter253) - oprot.writeString(viter254.encode('utf-8') if sys.version_info[0] == 2 else viter254) + oprot.writeString( + kiter253.encode("utf-8") if sys.version_info[0] == 2 else kiter253 + ) + oprot.writeString( + viter254.encode("utf-8") if sys.version_info[0] == 2 else viter254 + ) oprot.writeMapEnd() oprot.writeFieldEnd() if self.diskspace is not None: - oprot.writeFieldBegin('diskspace', TType.STRING, 6) - oprot.writeString(self.diskspace.encode('utf-8') if sys.version_info[0] == 2 else self.diskspace) + oprot.writeFieldBegin("diskspace", TType.STRING, 6) + oprot.writeString( + self.diskspace.encode("utf-8") + if sys.version_info[0] == 2 + else self.diskspace + ) oprot.writeFieldEnd() if self.volumename is not None: - oprot.writeFieldBegin('volumename', TType.STRING, 7) - oprot.writeString(self.volumename.encode('utf-8') if sys.version_info[0] == 2 else self.volumename) + oprot.writeFieldBegin("volumename", TType.STRING, 7) + oprot.writeString( + self.volumename.encode("utf-8") + if sys.version_info[0] == 2 + else self.volumename + ) oprot.writeFieldEnd() if self.https is not None: - oprot.writeFieldBegin('https', TType.BOOL, 8) + oprot.writeFieldBegin("https", TType.BOOL, 8) oprot.writeBool(self.https) oprot.writeFieldEnd() if self.http is not None: - oprot.writeFieldBegin('http', TType.BOOL, 9) + oprot.writeFieldBegin("http", TType.BOOL, 9) oprot.writeBool(self.http) oprot.writeFieldEnd() if self.resenv is not None: - oprot.writeFieldBegin('resenv', TType.LIST, 10) + oprot.writeFieldBegin("resenv", TType.LIST, 10) oprot.writeListBegin(TType.STRING, len(self.resenv)) for iter255 in self.resenv: - oprot.writeString(iter255.encode('utf-8') if sys.version_info[0] == 2 else iter255) + oprot.writeString( + iter255.encode("utf-8") if sys.version_info[0] == 2 else iter255 + ) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -8049,28 +9661,35 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(start_server_args) start_server_args.thrift_spec = ( None, # 0 - (1, TType.STRING, 'flavor', 'UTF8', None, ), # 1 - (2, TType.STRING, 'image', 'UTF8', None, ), # 2 - (3, TType.STRING, 'public_key', 'UTF8', None, ), # 3 - (4, TType.STRING, 'servername', 'UTF8', None, ), # 4 - (5, TType.MAP, 'metadata', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 5 - (6, TType.STRING, 'diskspace', 'UTF8', None, ), # 6 - (7, TType.STRING, 'volumename', 'UTF8', None, ), # 7 - (8, TType.BOOL, 'https', None, None, ), # 8 - (9, TType.BOOL, 'http', None, None, ), # 9 - (10, TType.LIST, 'resenv', (TType.STRING, 'UTF8', False), None, ), # 10 + (1, TType.STRING, "flavor", "UTF8", None,), # 1 + (2, TType.STRING, "image", "UTF8", None,), # 2 + (3, TType.STRING, "public_key", "UTF8", None,), # 3 + (4, TType.STRING, "servername", "UTF8", None,), # 4 + ( + 5, + TType.MAP, + "metadata", + (TType.STRING, "UTF8", TType.STRING, "UTF8", False), + None, + ), # 5 + (6, TType.STRING, "diskspace", "UTF8", None,), # 6 + (7, TType.STRING, "volumename", "UTF8", None,), # 7 + (8, TType.BOOL, "https", None, None,), # 8 + (9, TType.BOOL, "http", None, None,), # 9 + (10, TType.LIST, "resenv", (TType.STRING, "UTF8", False), None,), # 10 ) @@ -8088,8 +9707,9 @@ class start_server_result(object): """ - - def __init__(self, success=None, e=None, r=None, s=None, n=None, i=None, f=None, o=None,): + def __init__( + self, success=None, e=None, r=None, s=None, n=None, i=None, f=None, o=None, + ): self.success = success self.e = e self.r = r @@ -8100,7 +9720,11 @@ def __init__(self, success=None, e=None, r=None, s=None, n=None, i=None, f=None, self.o = o def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -8113,8 +9737,16 @@ def read(self, iprot): self.success = {} (_ktype257, _vtype258, _size256) = iprot.readMapBegin() for _i260 in range(_size256): - _key261 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() - _val262 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _key261 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) + _val262 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) self.success[_key261] = _val262 iprot.readMapEnd() else: @@ -8168,43 +9800,49 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('start_server_result') + oprot.writeStructBegin("start_server_result") if self.success is not None: - oprot.writeFieldBegin('success', TType.MAP, 0) + oprot.writeFieldBegin("success", TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success)) for kiter263, viter264 in self.success.items(): - oprot.writeString(kiter263.encode('utf-8') if sys.version_info[0] == 2 else kiter263) - oprot.writeString(viter264.encode('utf-8') if sys.version_info[0] == 2 else viter264) + oprot.writeString( + kiter263.encode("utf-8") if sys.version_info[0] == 2 else kiter263 + ) + oprot.writeString( + viter264.encode("utf-8") if sys.version_info[0] == 2 else viter264 + ) oprot.writeMapEnd() oprot.writeFieldEnd() if self.e is not None: - oprot.writeFieldBegin('e', TType.STRUCT, 1) + oprot.writeFieldBegin("e", TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() if self.r is not None: - oprot.writeFieldBegin('r', TType.STRUCT, 2) + oprot.writeFieldBegin("r", TType.STRUCT, 2) self.r.write(oprot) oprot.writeFieldEnd() if self.s is not None: - oprot.writeFieldBegin('s', TType.STRUCT, 3) + oprot.writeFieldBegin("s", TType.STRUCT, 3) self.s.write(oprot) oprot.writeFieldEnd() if self.n is not None: - oprot.writeFieldBegin('n', TType.STRUCT, 4) + oprot.writeFieldBegin("n", TType.STRUCT, 4) self.n.write(oprot) oprot.writeFieldEnd() if self.i is not None: - oprot.writeFieldBegin('i', TType.STRUCT, 5) + oprot.writeFieldBegin("i", TType.STRUCT, 5) self.i.write(oprot) oprot.writeFieldEnd() if self.f is not None: - oprot.writeFieldBegin('f', TType.STRUCT, 6) + oprot.writeFieldBegin("f", TType.STRUCT, 6) self.f.write(oprot) oprot.writeFieldEnd() if self.o is not None: - oprot.writeFieldBegin('o', TType.STRUCT, 7) + oprot.writeFieldBegin("o", TType.STRUCT, 7) self.o.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -8214,25 +9852,32 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(start_server_result) start_server_result.thrift_spec = ( - (0, TType.MAP, 'success', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 0 - (1, TType.STRUCT, 'e', [nameException, None], None, ), # 1 - (2, TType.STRUCT, 'r', [ressourceException, None], None, ), # 2 - (3, TType.STRUCT, 's', [serverNotFoundException, None], None, ), # 3 - (4, TType.STRUCT, 'n', [networkNotFoundException, None], None, ), # 4 - (5, TType.STRUCT, 'i', [imageNotFoundException, None], None, ), # 5 - (6, TType.STRUCT, 'f', [flavorNotFoundException, None], None, ), # 6 - (7, TType.STRUCT, 'o', [otherException, None], None, ), # 7 + ( + 0, + TType.MAP, + "success", + (TType.STRING, "UTF8", TType.STRING, "UTF8", False), + None, + ), # 0 + (1, TType.STRUCT, "e", [nameException, None], None,), # 1 + (2, TType.STRUCT, "r", [ressourceException, None], None,), # 2 + (3, TType.STRUCT, "s", [serverNotFoundException, None], None,), # 3 + (4, TType.STRUCT, "n", [networkNotFoundException, None], None,), # 4 + (5, TType.STRUCT, "i", [imageNotFoundException, None], None,), # 5 + (6, TType.STRUCT, "f", [flavorNotFoundException, None], None,), # 6 + (7, TType.STRUCT, "o", [otherException, None], None,), # 7 ) @@ -8251,8 +9896,18 @@ class start_server_with_custom_key_args(object): """ - - def __init__(self, flavor=None, image=None, servername=None, metadata=None, http=None, https=None, resenv=None, volume_ids_path_new=None, volume_ids_path_attach=None,): + def __init__( + self, + flavor=None, + image=None, + servername=None, + metadata=None, + http=None, + https=None, + resenv=None, + volume_ids_path_new=None, + volume_ids_path_attach=None, + ): self.flavor = flavor self.image = image self.servername = servername @@ -8264,7 +9919,11 @@ def __init__(self, flavor=None, image=None, servername=None, metadata=None, http self.volume_ids_path_attach = volume_ids_path_attach def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -8274,17 +9933,29 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.flavor = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.flavor = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.image = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.image = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.servername = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.servername = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 4: @@ -8292,8 +9963,16 @@ def read(self, iprot): self.metadata = {} (_ktype266, _vtype267, _size265) = iprot.readMapBegin() for _i269 in range(_size265): - _key270 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() - _val271 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _key270 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) + _val271 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) self.metadata[_key270] = _val271 iprot.readMapEnd() else: @@ -8313,7 +9992,11 @@ def read(self, iprot): self.resenv = [] (_etype275, _size272) = iprot.readListBegin() for _i276 in range(_size272): - _elem277 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _elem277 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) self.resenv.append(_elem277) iprot.readListEnd() else: @@ -8326,8 +10009,16 @@ def read(self, iprot): _elem283 = {} (_ktype285, _vtype286, _size284) = iprot.readMapBegin() for _i288 in range(_size284): - _key289 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() - _val290 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _key289 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) + _val290 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) _elem283[_key289] = _val290 iprot.readMapEnd() self.volume_ids_path_new.append(_elem283) @@ -8342,8 +10033,16 @@ def read(self, iprot): _elem296 = {} (_ktype298, _vtype299, _size297) = iprot.readMapBegin() for _i301 in range(_size297): - _key302 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() - _val303 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _key302 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) + _val303 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) _elem296[_key302] = _val303 iprot.readMapEnd() self.volume_ids_path_attach.append(_elem296) @@ -8357,63 +10056,95 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('start_server_with_custom_key_args') + oprot.writeStructBegin("start_server_with_custom_key_args") if self.flavor is not None: - oprot.writeFieldBegin('flavor', TType.STRING, 1) - oprot.writeString(self.flavor.encode('utf-8') if sys.version_info[0] == 2 else self.flavor) + oprot.writeFieldBegin("flavor", TType.STRING, 1) + oprot.writeString( + self.flavor.encode("utf-8") if sys.version_info[0] == 2 else self.flavor + ) oprot.writeFieldEnd() if self.image is not None: - oprot.writeFieldBegin('image', TType.STRING, 2) - oprot.writeString(self.image.encode('utf-8') if sys.version_info[0] == 2 else self.image) + oprot.writeFieldBegin("image", TType.STRING, 2) + oprot.writeString( + self.image.encode("utf-8") if sys.version_info[0] == 2 else self.image + ) oprot.writeFieldEnd() if self.servername is not None: - oprot.writeFieldBegin('servername', TType.STRING, 3) - oprot.writeString(self.servername.encode('utf-8') if sys.version_info[0] == 2 else self.servername) + oprot.writeFieldBegin("servername", TType.STRING, 3) + oprot.writeString( + self.servername.encode("utf-8") + if sys.version_info[0] == 2 + else self.servername + ) oprot.writeFieldEnd() if self.metadata is not None: - oprot.writeFieldBegin('metadata', TType.MAP, 4) + oprot.writeFieldBegin("metadata", TType.MAP, 4) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.metadata)) for kiter304, viter305 in self.metadata.items(): - oprot.writeString(kiter304.encode('utf-8') if sys.version_info[0] == 2 else kiter304) - oprot.writeString(viter305.encode('utf-8') if sys.version_info[0] == 2 else viter305) + oprot.writeString( + kiter304.encode("utf-8") if sys.version_info[0] == 2 else kiter304 + ) + oprot.writeString( + viter305.encode("utf-8") if sys.version_info[0] == 2 else viter305 + ) oprot.writeMapEnd() oprot.writeFieldEnd() if self.http is not None: - oprot.writeFieldBegin('http', TType.BOOL, 5) + oprot.writeFieldBegin("http", TType.BOOL, 5) oprot.writeBool(self.http) oprot.writeFieldEnd() if self.https is not None: - oprot.writeFieldBegin('https', TType.BOOL, 6) + oprot.writeFieldBegin("https", TType.BOOL, 6) oprot.writeBool(self.https) oprot.writeFieldEnd() if self.resenv is not None: - oprot.writeFieldBegin('resenv', TType.LIST, 7) + oprot.writeFieldBegin("resenv", TType.LIST, 7) oprot.writeListBegin(TType.STRING, len(self.resenv)) for iter306 in self.resenv: - oprot.writeString(iter306.encode('utf-8') if sys.version_info[0] == 2 else iter306) + oprot.writeString( + iter306.encode("utf-8") if sys.version_info[0] == 2 else iter306 + ) oprot.writeListEnd() oprot.writeFieldEnd() if self.volume_ids_path_new is not None: - oprot.writeFieldBegin('volume_ids_path_new', TType.LIST, 9) + oprot.writeFieldBegin("volume_ids_path_new", TType.LIST, 9) oprot.writeListBegin(TType.MAP, len(self.volume_ids_path_new)) for iter307 in self.volume_ids_path_new: oprot.writeMapBegin(TType.STRING, TType.STRING, len(iter307)) for kiter308, viter309 in iter307.items(): - oprot.writeString(kiter308.encode('utf-8') if sys.version_info[0] == 2 else kiter308) - oprot.writeString(viter309.encode('utf-8') if sys.version_info[0] == 2 else viter309) + oprot.writeString( + kiter308.encode("utf-8") + if sys.version_info[0] == 2 + else kiter308 + ) + oprot.writeString( + viter309.encode("utf-8") + if sys.version_info[0] == 2 + else viter309 + ) oprot.writeMapEnd() oprot.writeListEnd() oprot.writeFieldEnd() if self.volume_ids_path_attach is not None: - oprot.writeFieldBegin('volume_ids_path_attach', TType.LIST, 10) + oprot.writeFieldBegin("volume_ids_path_attach", TType.LIST, 10) oprot.writeListBegin(TType.MAP, len(self.volume_ids_path_attach)) for iter310 in self.volume_ids_path_attach: oprot.writeMapBegin(TType.STRING, TType.STRING, len(iter310)) for kiter311, viter312 in iter310.items(): - oprot.writeString(kiter311.encode('utf-8') if sys.version_info[0] == 2 else kiter311) - oprot.writeString(viter312.encode('utf-8') if sys.version_info[0] == 2 else viter312) + oprot.writeString( + kiter311.encode("utf-8") + if sys.version_info[0] == 2 + else kiter311 + ) + oprot.writeString( + viter312.encode("utf-8") + if sys.version_info[0] == 2 + else viter312 + ) oprot.writeMapEnd() oprot.writeListEnd() oprot.writeFieldEnd() @@ -8424,28 +10155,47 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(start_server_with_custom_key_args) start_server_with_custom_key_args.thrift_spec = ( None, # 0 - (1, TType.STRING, 'flavor', 'UTF8', None, ), # 1 - (2, TType.STRING, 'image', 'UTF8', None, ), # 2 - (3, TType.STRING, 'servername', 'UTF8', None, ), # 3 - (4, TType.MAP, 'metadata', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 4 - (5, TType.BOOL, 'http', None, None, ), # 5 - (6, TType.BOOL, 'https', None, None, ), # 6 - (7, TType.LIST, 'resenv', (TType.STRING, 'UTF8', False), None, ), # 7 + (1, TType.STRING, "flavor", "UTF8", None,), # 1 + (2, TType.STRING, "image", "UTF8", None,), # 2 + (3, TType.STRING, "servername", "UTF8", None,), # 3 + ( + 4, + TType.MAP, + "metadata", + (TType.STRING, "UTF8", TType.STRING, "UTF8", False), + None, + ), # 4 + (5, TType.BOOL, "http", None, None,), # 5 + (6, TType.BOOL, "https", None, None,), # 6 + (7, TType.LIST, "resenv", (TType.STRING, "UTF8", False), None,), # 7 None, # 8 - (9, TType.LIST, 'volume_ids_path_new', (TType.MAP, (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), False), None, ), # 9 - (10, TType.LIST, 'volume_ids_path_attach', (TType.MAP, (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), False), None, ), # 10 + ( + 9, + TType.LIST, + "volume_ids_path_new", + (TType.MAP, (TType.STRING, "UTF8", TType.STRING, "UTF8", False), False), + None, + ), # 9 + ( + 10, + TType.LIST, + "volume_ids_path_attach", + (TType.MAP, (TType.STRING, "UTF8", TType.STRING, "UTF8", False), False), + None, + ), # 10 ) @@ -8463,8 +10213,9 @@ class start_server_with_custom_key_result(object): """ - - def __init__(self, success=None, e=None, r=None, s=None, n=None, i=None, f=None, o=None,): + def __init__( + self, success=None, e=None, r=None, s=None, n=None, i=None, f=None, o=None, + ): self.success = success self.e = e self.r = r @@ -8475,7 +10226,11 @@ def __init__(self, success=None, e=None, r=None, s=None, n=None, i=None, f=None, self.o = o def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -8488,8 +10243,16 @@ def read(self, iprot): self.success = {} (_ktype314, _vtype315, _size313) = iprot.readMapBegin() for _i317 in range(_size313): - _key318 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() - _val319 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _key318 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) + _val319 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) self.success[_key318] = _val319 iprot.readMapEnd() else: @@ -8543,43 +10306,49 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('start_server_with_custom_key_result') + oprot.writeStructBegin("start_server_with_custom_key_result") if self.success is not None: - oprot.writeFieldBegin('success', TType.MAP, 0) + oprot.writeFieldBegin("success", TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success)) for kiter320, viter321 in self.success.items(): - oprot.writeString(kiter320.encode('utf-8') if sys.version_info[0] == 2 else kiter320) - oprot.writeString(viter321.encode('utf-8') if sys.version_info[0] == 2 else viter321) + oprot.writeString( + kiter320.encode("utf-8") if sys.version_info[0] == 2 else kiter320 + ) + oprot.writeString( + viter321.encode("utf-8") if sys.version_info[0] == 2 else viter321 + ) oprot.writeMapEnd() oprot.writeFieldEnd() if self.e is not None: - oprot.writeFieldBegin('e', TType.STRUCT, 1) + oprot.writeFieldBegin("e", TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() if self.r is not None: - oprot.writeFieldBegin('r', TType.STRUCT, 2) + oprot.writeFieldBegin("r", TType.STRUCT, 2) self.r.write(oprot) oprot.writeFieldEnd() if self.s is not None: - oprot.writeFieldBegin('s', TType.STRUCT, 3) + oprot.writeFieldBegin("s", TType.STRUCT, 3) self.s.write(oprot) oprot.writeFieldEnd() if self.n is not None: - oprot.writeFieldBegin('n', TType.STRUCT, 4) + oprot.writeFieldBegin("n", TType.STRUCT, 4) self.n.write(oprot) oprot.writeFieldEnd() if self.i is not None: - oprot.writeFieldBegin('i', TType.STRUCT, 5) + oprot.writeFieldBegin("i", TType.STRUCT, 5) self.i.write(oprot) oprot.writeFieldEnd() if self.f is not None: - oprot.writeFieldBegin('f', TType.STRUCT, 6) + oprot.writeFieldBegin("f", TType.STRUCT, 6) self.f.write(oprot) oprot.writeFieldEnd() if self.o is not None: - oprot.writeFieldBegin('o', TType.STRUCT, 7) + oprot.writeFieldBegin("o", TType.STRUCT, 7) self.o.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -8589,25 +10358,32 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(start_server_with_custom_key_result) start_server_with_custom_key_result.thrift_spec = ( - (0, TType.MAP, 'success', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 0 - (1, TType.STRUCT, 'e', [nameException, None], None, ), # 1 - (2, TType.STRUCT, 'r', [ressourceException, None], None, ), # 2 - (3, TType.STRUCT, 's', [serverNotFoundException, None], None, ), # 3 - (4, TType.STRUCT, 'n', [networkNotFoundException, None], None, ), # 4 - (5, TType.STRUCT, 'i', [imageNotFoundException, None], None, ), # 5 - (6, TType.STRUCT, 'f', [flavorNotFoundException, None], None, ), # 6 - (7, TType.STRUCT, 'o', [otherException, None], None, ), # 7 + ( + 0, + TType.MAP, + "success", + (TType.STRING, "UTF8", TType.STRING, "UTF8", False), + None, + ), # 0 + (1, TType.STRUCT, "e", [nameException, None], None,), # 1 + (2, TType.STRUCT, "r", [ressourceException, None], None,), # 2 + (3, TType.STRUCT, "s", [serverNotFoundException, None], None,), # 3 + (4, TType.STRUCT, "n", [networkNotFoundException, None], None,), # 4 + (5, TType.STRUCT, "i", [imageNotFoundException, None], None,), # 5 + (6, TType.STRUCT, "f", [flavorNotFoundException, None], None,), # 6 + (7, TType.STRUCT, "o", [otherException, None], None,), # 7 ) @@ -8618,12 +10394,17 @@ class exist_server_args(object): """ - - def __init__(self, name=None,): + def __init__( + self, name=None, + ): self.name = name def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -8633,7 +10414,11 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.name = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) else: @@ -8643,12 +10428,16 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('exist_server_args') + oprot.writeStructBegin("exist_server_args") if self.name is not None: - oprot.writeFieldBegin('name', TType.STRING, 1) - oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name) + oprot.writeFieldBegin("name", TType.STRING, 1) + oprot.writeString( + self.name.encode("utf-8") if sys.version_info[0] == 2 else self.name + ) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -8657,19 +10446,20 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(exist_server_args) exist_server_args.thrift_spec = ( None, # 0 - (1, TType.STRING, 'name', 'UTF8', None, ), # 1 + (1, TType.STRING, "name", "UTF8", None,), # 1 ) @@ -8680,12 +10470,17 @@ class exist_server_result(object): """ - - def __init__(self, success=None,): + def __init__( + self, success=None, + ): self.success = success def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -8705,11 +10500,13 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('exist_server_result') + oprot.writeStructBegin("exist_server_result") if self.success is not None: - oprot.writeFieldBegin('success', TType.BOOL, 0) + oprot.writeFieldBegin("success", TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -8719,19 +10516,18 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(exist_server_result) -exist_server_result.thrift_spec = ( - (0, TType.BOOL, 'success', None, None, ), # 0 -) +exist_server_result.thrift_spec = ((0, TType.BOOL, "success", None, None,),) # 0 class create_and_deploy_playbook_args(object): @@ -8743,14 +10539,19 @@ class create_and_deploy_playbook_args(object): """ - - def __init__(self, public_key=None, playbooks_information=None, openstack_id=None,): + def __init__( + self, public_key=None, playbooks_information=None, openstack_id=None, + ): self.public_key = public_key self.playbooks_information = playbooks_information self.openstack_id = openstack_id def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -8760,7 +10561,11 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.public_key = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.public_key = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 2: @@ -8768,12 +10573,24 @@ def read(self, iprot): self.playbooks_information = {} (_ktype323, _vtype324, _size322) = iprot.readMapBegin() for _i326 in range(_size322): - _key327 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _key327 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) _val328 = {} (_ktype330, _vtype331, _size329) = iprot.readMapBegin() for _i333 in range(_size329): - _key334 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() - _val335 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _key334 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) + _val335 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) _val328[_key334] = _val335 iprot.readMapEnd() self.playbooks_information[_key327] = _val328 @@ -8782,7 +10599,11 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.openstack_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.openstack_id = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) else: @@ -8792,28 +10613,50 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('create_and_deploy_playbook_args') + oprot.writeStructBegin("create_and_deploy_playbook_args") if self.public_key is not None: - oprot.writeFieldBegin('public_key', TType.STRING, 1) - oprot.writeString(self.public_key.encode('utf-8') if sys.version_info[0] == 2 else self.public_key) + oprot.writeFieldBegin("public_key", TType.STRING, 1) + oprot.writeString( + self.public_key.encode("utf-8") + if sys.version_info[0] == 2 + else self.public_key + ) oprot.writeFieldEnd() if self.playbooks_information is not None: - oprot.writeFieldBegin('playbooks_information', TType.MAP, 2) - oprot.writeMapBegin(TType.STRING, TType.MAP, len(self.playbooks_information)) + oprot.writeFieldBegin("playbooks_information", TType.MAP, 2) + oprot.writeMapBegin( + TType.STRING, TType.MAP, len(self.playbooks_information) + ) for kiter336, viter337 in self.playbooks_information.items(): - oprot.writeString(kiter336.encode('utf-8') if sys.version_info[0] == 2 else kiter336) + oprot.writeString( + kiter336.encode("utf-8") if sys.version_info[0] == 2 else kiter336 + ) oprot.writeMapBegin(TType.STRING, TType.STRING, len(viter337)) for kiter338, viter339 in viter337.items(): - oprot.writeString(kiter338.encode('utf-8') if sys.version_info[0] == 2 else kiter338) - oprot.writeString(viter339.encode('utf-8') if sys.version_info[0] == 2 else viter339) + oprot.writeString( + kiter338.encode("utf-8") + if sys.version_info[0] == 2 + else kiter338 + ) + oprot.writeString( + viter339.encode("utf-8") + if sys.version_info[0] == 2 + else viter339 + ) oprot.writeMapEnd() oprot.writeMapEnd() oprot.writeFieldEnd() if self.openstack_id is not None: - oprot.writeFieldBegin('openstack_id', TType.STRING, 3) - oprot.writeString(self.openstack_id.encode('utf-8') if sys.version_info[0] == 2 else self.openstack_id) + oprot.writeFieldBegin("openstack_id", TType.STRING, 3) + oprot.writeString( + self.openstack_id.encode("utf-8") + if sys.version_info[0] == 2 + else self.openstack_id + ) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -8822,21 +10665,34 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(create_and_deploy_playbook_args) create_and_deploy_playbook_args.thrift_spec = ( None, # 0 - (1, TType.STRING, 'public_key', 'UTF8', None, ), # 1 - (2, TType.MAP, 'playbooks_information', (TType.STRING, 'UTF8', TType.MAP, (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), False), None, ), # 2 - (3, TType.STRING, 'openstack_id', 'UTF8', None, ), # 3 + (1, TType.STRING, "public_key", "UTF8", None,), # 1 + ( + 2, + TType.MAP, + "playbooks_information", + ( + TType.STRING, + "UTF8", + TType.MAP, + (TType.STRING, "UTF8", TType.STRING, "UTF8", False), + False, + ), + None, + ), # 2 + (3, TType.STRING, "openstack_id", "UTF8", None,), # 3 ) @@ -8847,12 +10703,17 @@ class create_and_deploy_playbook_result(object): """ - - def __init__(self, success=None,): + def __init__( + self, success=None, + ): self.success = success def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -8872,11 +10733,13 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('create_and_deploy_playbook_result') + oprot.writeStructBegin("create_and_deploy_playbook_result") if self.success is not None: - oprot.writeFieldBegin('success', TType.I32, 0) + oprot.writeFieldBegin("success", TType.I32, 0) oprot.writeI32(self.success) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -8886,18 +10749,19 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(create_and_deploy_playbook_result) create_and_deploy_playbook_result.thrift_spec = ( - (0, TType.I32, 'success', None, None, ), # 0 + (0, TType.I32, "success", None, None,), # 0 ) @@ -8908,12 +10772,17 @@ class get_playbook_logs_args(object): """ - - def __init__(self, openstack_id=None,): + def __init__( + self, openstack_id=None, + ): self.openstack_id = openstack_id def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -8923,7 +10792,11 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.openstack_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.openstack_id = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) else: @@ -8933,12 +10806,18 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('get_playbook_logs_args') + oprot.writeStructBegin("get_playbook_logs_args") if self.openstack_id is not None: - oprot.writeFieldBegin('openstack_id', TType.STRING, 1) - oprot.writeString(self.openstack_id.encode('utf-8') if sys.version_info[0] == 2 else self.openstack_id) + oprot.writeFieldBegin("openstack_id", TType.STRING, 1) + oprot.writeString( + self.openstack_id.encode("utf-8") + if sys.version_info[0] == 2 + else self.openstack_id + ) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -8947,19 +10826,20 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(get_playbook_logs_args) get_playbook_logs_args.thrift_spec = ( None, # 0 - (1, TType.STRING, 'openstack_id', 'UTF8', None, ), # 1 + (1, TType.STRING, "openstack_id", "UTF8", None,), # 1 ) @@ -8970,12 +10850,17 @@ class get_playbook_logs_result(object): """ - - def __init__(self, success=None,): + def __init__( + self, success=None, + ): self.success = success def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -8996,11 +10881,13 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('get_playbook_logs_result') + oprot.writeStructBegin("get_playbook_logs_result") if self.success is not None: - oprot.writeFieldBegin('success', TType.STRUCT, 0) + oprot.writeFieldBegin("success", TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -9010,26 +10897,29 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(get_playbook_logs_result) get_playbook_logs_result.thrift_spec = ( - (0, TType.STRUCT, 'success', [PlaybookResult, None], None, ), # 0 + (0, TType.STRUCT, "success", [PlaybookResult, None], None,), # 0 ) class has_forc_args(object): - - def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -9044,9 +10934,11 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('has_forc_args') + oprot.writeStructBegin("has_forc_args") oprot.writeFieldStop() oprot.writeStructEnd() @@ -9054,18 +10946,18 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(has_forc_args) -has_forc_args.thrift_spec = ( -) +has_forc_args.thrift_spec = () class has_forc_result(object): @@ -9075,12 +10967,17 @@ class has_forc_result(object): """ - - def __init__(self, success=None,): + def __init__( + self, success=None, + ): self.success = success def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -9100,11 +10997,13 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('has_forc_result') + oprot.writeStructBegin("has_forc_result") if self.success is not None: - oprot.writeFieldBegin('success', TType.BOOL, 0) + oprot.writeFieldBegin("success", TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -9114,26 +11013,27 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) -all_structs.append(has_forc_result) -has_forc_result.thrift_spec = ( - (0, TType.BOOL, 'success', None, None, ), # 0 -) -class get_forc_url_args(object): +all_structs.append(has_forc_result) +has_forc_result.thrift_spec = ((0, TType.BOOL, "success", None, None,),) # 0 +class get_forc_url_args(object): def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -9148,9 +11048,11 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('get_forc_url_args') + oprot.writeStructBegin("get_forc_url_args") oprot.writeFieldStop() oprot.writeStructEnd() @@ -9158,18 +11060,18 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(get_forc_url_args) -get_forc_url_args.thrift_spec = ( -) +get_forc_url_args.thrift_spec = () class get_forc_url_result(object): @@ -9179,12 +11081,17 @@ class get_forc_url_result(object): """ - - def __init__(self, success=None,): + def __init__( + self, success=None, + ): self.success = success def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -9194,7 +11101,11 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRING: - self.success = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.success = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) else: @@ -9204,12 +11115,18 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('get_forc_url_result') + oprot.writeStructBegin("get_forc_url_result") if self.success is not None: - oprot.writeFieldBegin('success', TType.STRING, 0) - oprot.writeString(self.success.encode('utf-8') if sys.version_info[0] == 2 else self.success) + oprot.writeFieldBegin("success", TType.STRING, 0) + oprot.writeString( + self.success.encode("utf-8") + if sys.version_info[0] == 2 + else self.success + ) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -9218,19 +11135,18 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(get_forc_url_result) -get_forc_url_result.thrift_spec = ( - (0, TType.STRING, 'success', 'UTF8', None, ), # 0 -) +get_forc_url_result.thrift_spec = ((0, TType.STRING, "success", "UTF8", None,),) # 0 class create_backend_args(object): @@ -9243,15 +11159,20 @@ class create_backend_args(object): """ - - def __init__(self, elixir_id=None, user_key_url=None, template=None, upstream_url=None,): + def __init__( + self, elixir_id=None, user_key_url=None, template=None, upstream_url=None, + ): self.elixir_id = elixir_id self.user_key_url = user_key_url self.template = template self.upstream_url = upstream_url def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -9261,22 +11182,38 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.elixir_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.elixir_id = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.user_key_url = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.user_key_url = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.template = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.template = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.upstream_url = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.upstream_url = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) else: @@ -9286,24 +11223,42 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('create_backend_args') + oprot.writeStructBegin("create_backend_args") if self.elixir_id is not None: - oprot.writeFieldBegin('elixir_id', TType.STRING, 1) - oprot.writeString(self.elixir_id.encode('utf-8') if sys.version_info[0] == 2 else self.elixir_id) + oprot.writeFieldBegin("elixir_id", TType.STRING, 1) + oprot.writeString( + self.elixir_id.encode("utf-8") + if sys.version_info[0] == 2 + else self.elixir_id + ) oprot.writeFieldEnd() if self.user_key_url is not None: - oprot.writeFieldBegin('user_key_url', TType.STRING, 2) - oprot.writeString(self.user_key_url.encode('utf-8') if sys.version_info[0] == 2 else self.user_key_url) + oprot.writeFieldBegin("user_key_url", TType.STRING, 2) + oprot.writeString( + self.user_key_url.encode("utf-8") + if sys.version_info[0] == 2 + else self.user_key_url + ) oprot.writeFieldEnd() if self.template is not None: - oprot.writeFieldBegin('template', TType.STRING, 3) - oprot.writeString(self.template.encode('utf-8') if sys.version_info[0] == 2 else self.template) + oprot.writeFieldBegin("template", TType.STRING, 3) + oprot.writeString( + self.template.encode("utf-8") + if sys.version_info[0] == 2 + else self.template + ) oprot.writeFieldEnd() if self.upstream_url is not None: - oprot.writeFieldBegin('upstream_url', TType.STRING, 4) - oprot.writeString(self.upstream_url.encode('utf-8') if sys.version_info[0] == 2 else self.upstream_url) + oprot.writeFieldBegin("upstream_url", TType.STRING, 4) + oprot.writeString( + self.upstream_url.encode("utf-8") + if sys.version_info[0] == 2 + else self.upstream_url + ) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -9312,22 +11267,23 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(create_backend_args) create_backend_args.thrift_spec = ( None, # 0 - (1, TType.STRING, 'elixir_id', 'UTF8', None, ), # 1 - (2, TType.STRING, 'user_key_url', 'UTF8', None, ), # 2 - (3, TType.STRING, 'template', 'UTF8', None, ), # 3 - (4, TType.STRING, 'upstream_url', 'UTF8', None, ), # 4 + (1, TType.STRING, "elixir_id", "UTF8", None,), # 1 + (2, TType.STRING, "user_key_url", "UTF8", None,), # 2 + (3, TType.STRING, "template", "UTF8", None,), # 3 + (4, TType.STRING, "upstream_url", "UTF8", None,), # 4 ) @@ -9338,12 +11294,17 @@ class create_backend_result(object): """ - - def __init__(self, success=None,): + def __init__( + self, success=None, + ): self.success = success def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -9364,11 +11325,13 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('create_backend_result') + oprot.writeStructBegin("create_backend_result") if self.success is not None: - oprot.writeFieldBegin('success', TType.STRUCT, 0) + oprot.writeFieldBegin("success", TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -9378,26 +11341,29 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(create_backend_result) create_backend_result.thrift_spec = ( - (0, TType.STRUCT, 'success', [Backend, None], None, ), # 0 + (0, TType.STRUCT, "success", [Backend, None], None,), # 0 ) class get_backends_args(object): - - def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -9412,9 +11378,11 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('get_backends_args') + oprot.writeStructBegin("get_backends_args") oprot.writeFieldStop() oprot.writeStructEnd() @@ -9422,18 +11390,18 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(get_backends_args) -get_backends_args.thrift_spec = ( -) +get_backends_args.thrift_spec = () class get_backends_result(object): @@ -9443,12 +11411,17 @@ class get_backends_result(object): """ - - def __init__(self, success=None,): + def __init__( + self, success=None, + ): self.success = success def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -9474,11 +11447,13 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('get_backends_result') + oprot.writeStructBegin("get_backends_result") if self.success is not None: - oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeFieldBegin("success", TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) for iter346 in self.success: iter346.write(oprot) @@ -9491,18 +11466,19 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(get_backends_result) get_backends_result.thrift_spec = ( - (0, TType.LIST, 'success', (TType.STRUCT, [Backend, None], False), None, ), # 0 + (0, TType.LIST, "success", (TType.STRUCT, [Backend, None], False), None,), # 0 ) @@ -9513,12 +11489,17 @@ class get_backends_by_owner_args(object): """ - - def __init__(self, elixir_id=None,): + def __init__( + self, elixir_id=None, + ): self.elixir_id = elixir_id def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -9528,7 +11509,11 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.elixir_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.elixir_id = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) else: @@ -9538,12 +11523,18 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('get_backends_by_owner_args') + oprot.writeStructBegin("get_backends_by_owner_args") if self.elixir_id is not None: - oprot.writeFieldBegin('elixir_id', TType.STRING, 1) - oprot.writeString(self.elixir_id.encode('utf-8') if sys.version_info[0] == 2 else self.elixir_id) + oprot.writeFieldBegin("elixir_id", TType.STRING, 1) + oprot.writeString( + self.elixir_id.encode("utf-8") + if sys.version_info[0] == 2 + else self.elixir_id + ) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -9552,19 +11543,20 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(get_backends_by_owner_args) get_backends_by_owner_args.thrift_spec = ( None, # 0 - (1, TType.STRING, 'elixir_id', 'UTF8', None, ), # 1 + (1, TType.STRING, "elixir_id", "UTF8", None,), # 1 ) @@ -9575,12 +11567,17 @@ class get_backends_by_owner_result(object): """ - - def __init__(self, success=None,): + def __init__( + self, success=None, + ): self.success = success def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -9606,11 +11603,13 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('get_backends_by_owner_result') + oprot.writeStructBegin("get_backends_by_owner_result") if self.success is not None: - oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeFieldBegin("success", TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) for iter353 in self.success: iter353.write(oprot) @@ -9623,18 +11622,19 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(get_backends_by_owner_result) get_backends_by_owner_result.thrift_spec = ( - (0, TType.LIST, 'success', (TType.STRUCT, [Backend, None], False), None, ), # 0 + (0, TType.LIST, "success", (TType.STRUCT, [Backend, None], False), None,), # 0 ) @@ -9645,12 +11645,17 @@ class get_backends_by_template_args(object): """ - - def __init__(self, template=None,): + def __init__( + self, template=None, + ): self.template = template def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -9660,7 +11665,11 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.template = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.template = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) else: @@ -9670,12 +11679,18 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('get_backends_by_template_args') + oprot.writeStructBegin("get_backends_by_template_args") if self.template is not None: - oprot.writeFieldBegin('template', TType.STRING, 1) - oprot.writeString(self.template.encode('utf-8') if sys.version_info[0] == 2 else self.template) + oprot.writeFieldBegin("template", TType.STRING, 1) + oprot.writeString( + self.template.encode("utf-8") + if sys.version_info[0] == 2 + else self.template + ) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -9684,19 +11699,20 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(get_backends_by_template_args) get_backends_by_template_args.thrift_spec = ( None, # 0 - (1, TType.STRING, 'template', 'UTF8', None, ), # 1 + (1, TType.STRING, "template", "UTF8", None,), # 1 ) @@ -9707,12 +11723,17 @@ class get_backends_by_template_result(object): """ - - def __init__(self, success=None,): + def __init__( + self, success=None, + ): self.success = success def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -9738,11 +11759,13 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('get_backends_by_template_result') + oprot.writeStructBegin("get_backends_by_template_result") if self.success is not None: - oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeFieldBegin("success", TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) for iter360 in self.success: iter360.write(oprot) @@ -9755,18 +11778,19 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(get_backends_by_template_result) get_backends_by_template_result.thrift_spec = ( - (0, TType.LIST, 'success', (TType.STRUCT, [Backend, None], False), None, ), # 0 + (0, TType.LIST, "success", (TType.STRUCT, [Backend, None], False), None,), # 0 ) @@ -9777,12 +11801,17 @@ class get_backend_by_id_args(object): """ - - def __init__(self, id=None,): + def __init__( + self, id=None, + ): self.id = id def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -9802,11 +11831,13 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('get_backend_by_id_args') + oprot.writeStructBegin("get_backend_by_id_args") if self.id is not None: - oprot.writeFieldBegin('id', TType.I64, 1) + oprot.writeFieldBegin("id", TType.I64, 1) oprot.writeI64(self.id) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -9816,19 +11847,20 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(get_backend_by_id_args) get_backend_by_id_args.thrift_spec = ( None, # 0 - (1, TType.I64, 'id', None, None, ), # 1 + (1, TType.I64, "id", None, None,), # 1 ) @@ -9839,12 +11871,17 @@ class get_backend_by_id_result(object): """ - - def __init__(self, success=None,): + def __init__( + self, success=None, + ): self.success = success def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -9865,11 +11902,13 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('get_backend_by_id_result') + oprot.writeStructBegin("get_backend_by_id_result") if self.success is not None: - oprot.writeFieldBegin('success', TType.STRUCT, 0) + oprot.writeFieldBegin("success", TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -9879,18 +11918,19 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(get_backend_by_id_result) get_backend_by_id_result.thrift_spec = ( - (0, TType.STRUCT, 'success', [Backend, None], None, ), # 0 + (0, TType.STRUCT, "success", [Backend, None], None,), # 0 ) @@ -9901,12 +11941,17 @@ class delete_backend_args(object): """ - - def __init__(self, id=None,): + def __init__( + self, id=None, + ): self.id = id def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -9926,11 +11971,13 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('delete_backend_args') + oprot.writeStructBegin("delete_backend_args") if self.id is not None: - oprot.writeFieldBegin('id', TType.I64, 1) + oprot.writeFieldBegin("id", TType.I64, 1) oprot.writeI64(self.id) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -9940,19 +11987,20 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(delete_backend_args) delete_backend_args.thrift_spec = ( None, # 0 - (1, TType.I64, 'id', None, None, ), # 1 + (1, TType.I64, "id", None, None,), # 1 ) @@ -9963,12 +12011,17 @@ class delete_backend_result(object): """ - - def __init__(self, success=None,): + def __init__( + self, success=None, + ): self.success = success def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -9978,7 +12031,11 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRING: - self.success = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.success = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) else: @@ -9988,12 +12045,18 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('delete_backend_result') + oprot.writeStructBegin("delete_backend_result") if self.success is not None: - oprot.writeFieldBegin('success', TType.STRING, 0) - oprot.writeString(self.success.encode('utf-8') if sys.version_info[0] == 2 else self.success) + oprot.writeFieldBegin("success", TType.STRING, 0) + oprot.writeString( + self.success.encode("utf-8") + if sys.version_info[0] == 2 + else self.success + ) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -10002,26 +12065,27 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) -all_structs.append(delete_backend_result) -delete_backend_result.thrift_spec = ( - (0, TType.STRING, 'success', 'UTF8', None, ), # 0 -) -class get_templates_args(object): +all_structs.append(delete_backend_result) +delete_backend_result.thrift_spec = ((0, TType.STRING, "success", "UTF8", None,),) # 0 +class get_templates_args(object): def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -10036,9 +12100,11 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('get_templates_args') + oprot.writeStructBegin("get_templates_args") oprot.writeFieldStop() oprot.writeStructEnd() @@ -10046,18 +12112,18 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(get_templates_args) -get_templates_args.thrift_spec = ( -) +get_templates_args.thrift_spec = () class get_templates_result(object): @@ -10067,12 +12133,17 @@ class get_templates_result(object): """ - - def __init__(self, success=None,): + def __init__( + self, success=None, + ): self.success = success def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -10088,8 +12159,16 @@ def read(self, iprot): _elem366 = {} (_ktype368, _vtype369, _size367) = iprot.readMapBegin() for _i371 in range(_size367): - _key372 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() - _val373 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _key372 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) + _val373 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) _elem366[_key372] = _val373 iprot.readMapEnd() self.success.append(_elem366) @@ -10103,17 +12182,27 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('get_templates_result') + oprot.writeStructBegin("get_templates_result") if self.success is not None: - oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeFieldBegin("success", TType.LIST, 0) oprot.writeListBegin(TType.MAP, len(self.success)) for iter374 in self.success: oprot.writeMapBegin(TType.STRING, TType.STRING, len(iter374)) for kiter375, viter376 in iter374.items(): - oprot.writeString(kiter375.encode('utf-8') if sys.version_info[0] == 2 else kiter375) - oprot.writeString(viter376.encode('utf-8') if sys.version_info[0] == 2 else viter376) + oprot.writeString( + kiter375.encode("utf-8") + if sys.version_info[0] == 2 + else kiter375 + ) + oprot.writeString( + viter376.encode("utf-8") + if sys.version_info[0] == 2 + else viter376 + ) oprot.writeMapEnd() oprot.writeListEnd() oprot.writeFieldEnd() @@ -10124,26 +12213,35 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(get_templates_result) get_templates_result.thrift_spec = ( - (0, TType.LIST, 'success', (TType.MAP, (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), False), None, ), # 0 + ( + 0, + TType.LIST, + "success", + (TType.MAP, (TType.STRING, "UTF8", TType.STRING, "UTF8", False), False), + None, + ), # 0 ) class get_allowed_templates_args(object): - - def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -10158,9 +12256,11 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('get_allowed_templates_args') + oprot.writeStructBegin("get_allowed_templates_args") oprot.writeFieldStop() oprot.writeStructEnd() @@ -10168,18 +12268,18 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(get_allowed_templates_args) -get_allowed_templates_args.thrift_spec = ( -) +get_allowed_templates_args.thrift_spec = () class get_allowed_templates_result(object): @@ -10189,12 +12289,17 @@ class get_allowed_templates_result(object): """ - - def __init__(self, success=None,): + def __init__( + self, success=None, + ): self.success = success def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -10207,7 +12312,11 @@ def read(self, iprot): self.success = [] (_etype380, _size377) = iprot.readListBegin() for _i381 in range(_size377): - _elem382 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _elem382 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) self.success.append(_elem382) iprot.readListEnd() else: @@ -10219,14 +12328,18 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('get_allowed_templates_result') + oprot.writeStructBegin("get_allowed_templates_result") if self.success is not None: - oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeFieldBegin("success", TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) for iter383 in self.success: - oprot.writeString(iter383.encode('utf-8') if sys.version_info[0] == 2 else iter383) + oprot.writeString( + iter383.encode("utf-8") if sys.version_info[0] == 2 else iter383 + ) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -10236,18 +12349,19 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(get_allowed_templates_result) get_allowed_templates_result.thrift_spec = ( - (0, TType.LIST, 'success', (TType.STRING, 'UTF8', False), None, ), # 0 + (0, TType.LIST, "success", (TType.STRING, "UTF8", False), None,), # 0 ) @@ -10258,12 +12372,17 @@ class get_templates_by_template_args(object): """ - - def __init__(self, template_name=None,): + def __init__( + self, template_name=None, + ): self.template_name = template_name def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -10273,7 +12392,11 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.template_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.template_name = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) else: @@ -10283,12 +12406,18 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('get_templates_by_template_args') + oprot.writeStructBegin("get_templates_by_template_args") if self.template_name is not None: - oprot.writeFieldBegin('template_name', TType.STRING, 1) - oprot.writeString(self.template_name.encode('utf-8') if sys.version_info[0] == 2 else self.template_name) + oprot.writeFieldBegin("template_name", TType.STRING, 1) + oprot.writeString( + self.template_name.encode("utf-8") + if sys.version_info[0] == 2 + else self.template_name + ) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -10297,19 +12426,20 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(get_templates_by_template_args) get_templates_by_template_args.thrift_spec = ( None, # 0 - (1, TType.STRING, 'template_name', 'UTF8', None, ), # 1 + (1, TType.STRING, "template_name", "UTF8", None,), # 1 ) @@ -10320,12 +12450,17 @@ class get_templates_by_template_result(object): """ - - def __init__(self, success=None,): + def __init__( + self, success=None, + ): self.success = success def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -10341,8 +12476,16 @@ def read(self, iprot): _elem389 = {} (_ktype391, _vtype392, _size390) = iprot.readMapBegin() for _i394 in range(_size390): - _key395 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() - _val396 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _key395 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) + _val396 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) _elem389[_key395] = _val396 iprot.readMapEnd() self.success.append(_elem389) @@ -10356,17 +12499,27 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('get_templates_by_template_result') + oprot.writeStructBegin("get_templates_by_template_result") if self.success is not None: - oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeFieldBegin("success", TType.LIST, 0) oprot.writeListBegin(TType.MAP, len(self.success)) for iter397 in self.success: oprot.writeMapBegin(TType.STRING, TType.STRING, len(iter397)) for kiter398, viter399 in iter397.items(): - oprot.writeString(kiter398.encode('utf-8') if sys.version_info[0] == 2 else kiter398) - oprot.writeString(viter399.encode('utf-8') if sys.version_info[0] == 2 else viter399) + oprot.writeString( + kiter398.encode("utf-8") + if sys.version_info[0] == 2 + else kiter398 + ) + oprot.writeString( + viter399.encode("utf-8") + if sys.version_info[0] == 2 + else viter399 + ) oprot.writeMapEnd() oprot.writeListEnd() oprot.writeFieldEnd() @@ -10377,18 +12530,25 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(get_templates_by_template_result) get_templates_by_template_result.thrift_spec = ( - (0, TType.LIST, 'success', (TType.MAP, (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), False), None, ), # 0 + ( + 0, + TType.LIST, + "success", + (TType.MAP, (TType.STRING, "UTF8", TType.STRING, "UTF8", False), False), + None, + ), # 0 ) @@ -10400,13 +12560,18 @@ class check_template_args(object): """ - - def __init__(self, template_name=None, template_version=None,): + def __init__( + self, template_name=None, template_version=None, + ): self.template_name = template_name self.template_version = template_version def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -10416,12 +12581,20 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.template_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.template_name = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.template_version = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.template_version = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) else: @@ -10431,16 +12604,26 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('check_template_args') + oprot.writeStructBegin("check_template_args") if self.template_name is not None: - oprot.writeFieldBegin('template_name', TType.STRING, 1) - oprot.writeString(self.template_name.encode('utf-8') if sys.version_info[0] == 2 else self.template_name) + oprot.writeFieldBegin("template_name", TType.STRING, 1) + oprot.writeString( + self.template_name.encode("utf-8") + if sys.version_info[0] == 2 + else self.template_name + ) oprot.writeFieldEnd() if self.template_version is not None: - oprot.writeFieldBegin('template_version', TType.STRING, 2) - oprot.writeString(self.template_version.encode('utf-8') if sys.version_info[0] == 2 else self.template_version) + oprot.writeFieldBegin("template_version", TType.STRING, 2) + oprot.writeString( + self.template_version.encode("utf-8") + if sys.version_info[0] == 2 + else self.template_version + ) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -10449,20 +12632,21 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(check_template_args) check_template_args.thrift_spec = ( None, # 0 - (1, TType.STRING, 'template_name', 'UTF8', None, ), # 1 - (2, TType.STRING, 'template_version', 'UTF8', None, ), # 2 + (1, TType.STRING, "template_name", "UTF8", None,), # 1 + (2, TType.STRING, "template_version", "UTF8", None,), # 2 ) @@ -10473,12 +12657,17 @@ class check_template_result(object): """ - - def __init__(self, success=None,): + def __init__( + self, success=None, + ): self.success = success def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -10491,8 +12680,16 @@ def read(self, iprot): self.success = {} (_ktype401, _vtype402, _size400) = iprot.readMapBegin() for _i404 in range(_size400): - _key405 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() - _val406 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _key405 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) + _val406 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) self.success[_key405] = _val406 iprot.readMapEnd() else: @@ -10504,15 +12701,21 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('check_template_result') + oprot.writeStructBegin("check_template_result") if self.success is not None: - oprot.writeFieldBegin('success', TType.MAP, 0) + oprot.writeFieldBegin("success", TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success)) for kiter407, viter408 in self.success.items(): - oprot.writeString(kiter407.encode('utf-8') if sys.version_info[0] == 2 else kiter407) - oprot.writeString(viter408.encode('utf-8') if sys.version_info[0] == 2 else viter408) + oprot.writeString( + kiter407.encode("utf-8") if sys.version_info[0] == 2 else kiter407 + ) + oprot.writeString( + viter408.encode("utf-8") if sys.version_info[0] == 2 else viter408 + ) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -10522,18 +12725,25 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(check_template_result) check_template_result.thrift_spec = ( - (0, TType.MAP, 'success', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 0 + ( + 0, + TType.MAP, + "success", + (TType.STRING, "UTF8", TType.STRING, "UTF8", False), + None, + ), # 0 ) @@ -10544,12 +12754,17 @@ class add_udp_security_group_args(object): """ - - def __init__(self, server_id=None,): + def __init__( + self, server_id=None, + ): self.server_id = server_id def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -10559,7 +12774,11 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.server_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.server_id = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) else: @@ -10569,12 +12788,18 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('add_udp_security_group_args') + oprot.writeStructBegin("add_udp_security_group_args") if self.server_id is not None: - oprot.writeFieldBegin('server_id', TType.STRING, 1) - oprot.writeString(self.server_id.encode('utf-8') if sys.version_info[0] == 2 else self.server_id) + oprot.writeFieldBegin("server_id", TType.STRING, 1) + oprot.writeString( + self.server_id.encode("utf-8") + if sys.version_info[0] == 2 + else self.server_id + ) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -10583,19 +12808,20 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(add_udp_security_group_args) add_udp_security_group_args.thrift_spec = ( None, # 0 - (1, TType.STRING, 'server_id', 'UTF8', None, ), # 1 + (1, TType.STRING, "server_id", "UTF8", None,), # 1 ) @@ -10608,14 +12834,19 @@ class add_udp_security_group_result(object): """ - - def __init__(self, success=None, r=None, s=None,): + def __init__( + self, success=None, r=None, s=None, + ): self.success = success self.r = r self.s = s def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -10647,19 +12878,21 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('add_udp_security_group_result') + oprot.writeStructBegin("add_udp_security_group_result") if self.success is not None: - oprot.writeFieldBegin('success', TType.BOOL, 0) + oprot.writeFieldBegin("success", TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() if self.r is not None: - oprot.writeFieldBegin('r', TType.STRUCT, 1) + oprot.writeFieldBegin("r", TType.STRUCT, 1) self.r.write(oprot) oprot.writeFieldEnd() if self.s is not None: - oprot.writeFieldBegin('s', TType.STRUCT, 2) + oprot.writeFieldBegin("s", TType.STRUCT, 2) self.s.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -10669,28 +12902,31 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(add_udp_security_group_result) add_udp_security_group_result.thrift_spec = ( - (0, TType.BOOL, 'success', None, None, ), # 0 - (1, TType.STRUCT, 'r', [ressourceException, None], None, ), # 1 - (2, TType.STRUCT, 's', [serverNotFoundException, None], None, ), # 2 + (0, TType.BOOL, "success", None, None,), # 0 + (1, TType.STRUCT, "r", [ressourceException, None], None,), # 1 + (2, TType.STRUCT, "s", [serverNotFoundException, None], None,), # 2 ) class get_servers_args(object): - - def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -10705,9 +12941,11 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('get_servers_args') + oprot.writeStructBegin("get_servers_args") oprot.writeFieldStop() oprot.writeStructEnd() @@ -10715,18 +12953,18 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(get_servers_args) -get_servers_args.thrift_spec = ( -) +get_servers_args.thrift_spec = () class get_servers_result(object): @@ -10736,12 +12974,17 @@ class get_servers_result(object): """ - - def __init__(self, success=None,): + def __init__( + self, success=None, + ): self.success = success def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -10767,11 +13010,13 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('get_servers_result') + oprot.writeStructBegin("get_servers_result") if self.success is not None: - oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeFieldBegin("success", TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) for iter415 in self.success: iter415.write(oprot) @@ -10784,18 +13029,19 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(get_servers_result) get_servers_result.thrift_spec = ( - (0, TType.LIST, 'success', (TType.STRUCT, [VM, None], False), None, ), # 0 + (0, TType.LIST, "success", (TType.STRUCT, [VM, None], False), None,), # 0 ) @@ -10806,12 +13052,17 @@ class get_servers_by_ids_args(object): """ - - def __init__(self, server_ids=None,): + def __init__( + self, server_ids=None, + ): self.server_ids = server_ids def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -10824,7 +13075,11 @@ def read(self, iprot): self.server_ids = [] (_etype419, _size416) = iprot.readListBegin() for _i420 in range(_size416): - _elem421 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _elem421 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) self.server_ids.append(_elem421) iprot.readListEnd() else: @@ -10836,14 +13091,18 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('get_servers_by_ids_args') + oprot.writeStructBegin("get_servers_by_ids_args") if self.server_ids is not None: - oprot.writeFieldBegin('server_ids', TType.LIST, 1) + oprot.writeFieldBegin("server_ids", TType.LIST, 1) oprot.writeListBegin(TType.STRING, len(self.server_ids)) for iter422 in self.server_ids: - oprot.writeString(iter422.encode('utf-8') if sys.version_info[0] == 2 else iter422) + oprot.writeString( + iter422.encode("utf-8") if sys.version_info[0] == 2 else iter422 + ) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -10853,19 +13112,20 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(get_servers_by_ids_args) get_servers_by_ids_args.thrift_spec = ( None, # 0 - (1, TType.LIST, 'server_ids', (TType.STRING, 'UTF8', False), None, ), # 1 + (1, TType.LIST, "server_ids", (TType.STRING, "UTF8", False), None,), # 1 ) @@ -10876,12 +13136,17 @@ class get_servers_by_ids_result(object): """ - - def __init__(self, success=None,): + def __init__( + self, success=None, + ): self.success = success def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -10907,11 +13172,13 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('get_servers_by_ids_result') + oprot.writeStructBegin("get_servers_by_ids_result") if self.success is not None: - oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeFieldBegin("success", TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) for iter429 in self.success: iter429.write(oprot) @@ -10924,18 +13191,19 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(get_servers_by_ids_result) get_servers_by_ids_result.thrift_spec = ( - (0, TType.LIST, 'success', (TType.STRUCT, [VM, None], False), None, ), # 0 + (0, TType.LIST, "success", (TType.STRUCT, [VM, None], False), None,), # 0 ) @@ -10946,12 +13214,17 @@ class get_servers_by_bibigrid_id_args(object): """ - - def __init__(self, bibigrid_id=None,): + def __init__( + self, bibigrid_id=None, + ): self.bibigrid_id = bibigrid_id def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -10961,7 +13234,11 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.bibigrid_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.bibigrid_id = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) else: @@ -10971,12 +13248,18 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('get_servers_by_bibigrid_id_args') + oprot.writeStructBegin("get_servers_by_bibigrid_id_args") if self.bibigrid_id is not None: - oprot.writeFieldBegin('bibigrid_id', TType.STRING, 1) - oprot.writeString(self.bibigrid_id.encode('utf-8') if sys.version_info[0] == 2 else self.bibigrid_id) + oprot.writeFieldBegin("bibigrid_id", TType.STRING, 1) + oprot.writeString( + self.bibigrid_id.encode("utf-8") + if sys.version_info[0] == 2 + else self.bibigrid_id + ) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -10985,19 +13268,20 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(get_servers_by_bibigrid_id_args) get_servers_by_bibigrid_id_args.thrift_spec = ( None, # 0 - (1, TType.STRING, 'bibigrid_id', 'UTF8', None, ), # 1 + (1, TType.STRING, "bibigrid_id", "UTF8", None,), # 1 ) @@ -11008,12 +13292,17 @@ class get_servers_by_bibigrid_id_result(object): """ - - def __init__(self, success=None,): + def __init__( + self, success=None, + ): self.success = success def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -11039,11 +13328,13 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('get_servers_by_bibigrid_id_result') + oprot.writeStructBegin("get_servers_by_bibigrid_id_result") if self.success is not None: - oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeFieldBegin("success", TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) for iter436 in self.success: iter436.write(oprot) @@ -11056,18 +13347,19 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(get_servers_by_bibigrid_id_result) get_servers_by_bibigrid_id_result.thrift_spec = ( - (0, TType.LIST, 'success', (TType.STRUCT, [VM, None], False), None, ), # 0 + (0, TType.LIST, "success", (TType.STRUCT, [VM, None], False), None,), # 0 ) @@ -11078,12 +13370,17 @@ class get_cluster_info_args(object): """ - - def __init__(self, cluster_id=None,): + def __init__( + self, cluster_id=None, + ): self.cluster_id = cluster_id def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -11093,7 +13390,11 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.cluster_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.cluster_id = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) else: @@ -11103,12 +13404,18 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('get_cluster_info_args') + oprot.writeStructBegin("get_cluster_info_args") if self.cluster_id is not None: - oprot.writeFieldBegin('cluster_id', TType.STRING, 1) - oprot.writeString(self.cluster_id.encode('utf-8') if sys.version_info[0] == 2 else self.cluster_id) + oprot.writeFieldBegin("cluster_id", TType.STRING, 1) + oprot.writeString( + self.cluster_id.encode("utf-8") + if sys.version_info[0] == 2 + else self.cluster_id + ) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -11117,19 +13424,20 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(get_cluster_info_args) get_cluster_info_args.thrift_spec = ( None, # 0 - (1, TType.STRING, 'cluster_id', 'UTF8', None, ), # 1 + (1, TType.STRING, "cluster_id", "UTF8", None,), # 1 ) @@ -11140,12 +13448,17 @@ class get_cluster_info_result(object): """ - - def __init__(self, success=None,): + def __init__( + self, success=None, + ): self.success = success def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -11166,11 +13479,13 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('get_cluster_info_result') + oprot.writeStructBegin("get_cluster_info_result") if self.success is not None: - oprot.writeFieldBegin('success', TType.STRUCT, 0) + oprot.writeFieldBegin("success", TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -11180,18 +13495,19 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(get_cluster_info_result) get_cluster_info_result.thrift_spec = ( - (0, TType.STRUCT, 'success', [ClusterInfo, None], None, ), # 0 + (0, TType.STRUCT, "success", [ClusterInfo, None], None,), # 0 ) @@ -11202,12 +13518,17 @@ class get_cluster_status_args(object): """ - - def __init__(self, cluster_id=None,): + def __init__( + self, cluster_id=None, + ): self.cluster_id = cluster_id def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -11217,7 +13538,11 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.cluster_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.cluster_id = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) else: @@ -11227,12 +13552,18 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('get_cluster_status_args') + oprot.writeStructBegin("get_cluster_status_args") if self.cluster_id is not None: - oprot.writeFieldBegin('cluster_id', TType.STRING, 1) - oprot.writeString(self.cluster_id.encode('utf-8') if sys.version_info[0] == 2 else self.cluster_id) + oprot.writeFieldBegin("cluster_id", TType.STRING, 1) + oprot.writeString( + self.cluster_id.encode("utf-8") + if sys.version_info[0] == 2 + else self.cluster_id + ) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -11241,19 +13572,20 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(get_cluster_status_args) get_cluster_status_args.thrift_spec = ( None, # 0 - (1, TType.STRING, 'cluster_id', 'UTF8', None, ), # 1 + (1, TType.STRING, "cluster_id", "UTF8", None,), # 1 ) @@ -11264,12 +13596,17 @@ class get_cluster_status_result(object): """ - - def __init__(self, success=None,): + def __init__( + self, success=None, + ): self.success = success def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -11282,8 +13619,16 @@ def read(self, iprot): self.success = {} (_ktype438, _vtype439, _size437) = iprot.readMapBegin() for _i441 in range(_size437): - _key442 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() - _val443 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _key442 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) + _val443 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) self.success[_key442] = _val443 iprot.readMapEnd() else: @@ -11295,15 +13640,21 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('get_cluster_status_result') + oprot.writeStructBegin("get_cluster_status_result") if self.success is not None: - oprot.writeFieldBegin('success', TType.MAP, 0) + oprot.writeFieldBegin("success", TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success)) for kiter444, viter445 in self.success.items(): - oprot.writeString(kiter444.encode('utf-8') if sys.version_info[0] == 2 else kiter444) - oprot.writeString(viter445.encode('utf-8') if sys.version_info[0] == 2 else viter445) + oprot.writeString( + kiter444.encode("utf-8") if sys.version_info[0] == 2 else kiter444 + ) + oprot.writeString( + viter445.encode("utf-8") if sys.version_info[0] == 2 else viter445 + ) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -11313,18 +13664,25 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(get_cluster_status_result) get_cluster_status_result.thrift_spec = ( - (0, TType.MAP, 'success', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 0 + ( + 0, + TType.MAP, + "success", + (TType.STRING, "UTF8", TType.STRING, "UTF8", False), + None, + ), # 0 ) @@ -11335,12 +13693,17 @@ class get_server_args(object): """ - - def __init__(self, openstack_id=None,): + def __init__( + self, openstack_id=None, + ): self.openstack_id = openstack_id def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -11350,7 +13713,11 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.openstack_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.openstack_id = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) else: @@ -11360,12 +13727,18 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('get_server_args') + oprot.writeStructBegin("get_server_args") if self.openstack_id is not None: - oprot.writeFieldBegin('openstack_id', TType.STRING, 1) - oprot.writeString(self.openstack_id.encode('utf-8') if sys.version_info[0] == 2 else self.openstack_id) + oprot.writeFieldBegin("openstack_id", TType.STRING, 1) + oprot.writeString( + self.openstack_id.encode("utf-8") + if sys.version_info[0] == 2 + else self.openstack_id + ) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -11374,19 +13747,20 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(get_server_args) get_server_args.thrift_spec = ( None, # 0 - (1, TType.STRING, 'openstack_id', 'UTF8', None, ), # 1 + (1, TType.STRING, "openstack_id", "UTF8", None,), # 1 ) @@ -11398,13 +13772,18 @@ class get_server_result(object): """ - - def __init__(self, success=None, e=None,): + def __init__( + self, success=None, e=None, + ): self.success = success self.e = e def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -11431,15 +13810,17 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('get_server_result') + oprot.writeStructBegin("get_server_result") if self.success is not None: - oprot.writeFieldBegin('success', TType.STRUCT, 0) + oprot.writeFieldBegin("success", TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: - oprot.writeFieldBegin('e', TType.STRUCT, 1) + oprot.writeFieldBegin("e", TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -11449,19 +13830,20 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(get_server_result) get_server_result.thrift_spec = ( - (0, TType.STRUCT, 'success', [VM, None], None, ), # 0 - (1, TType.STRUCT, 'e', [serverNotFoundException, None], None, ), # 1 + (0, TType.STRUCT, "success", [VM, None], None,), # 0 + (1, TType.STRUCT, "e", [serverNotFoundException, None], None,), # 1 ) @@ -11472,12 +13854,17 @@ class stop_server_args(object): """ - - def __init__(self, openstack_id=None,): + def __init__( + self, openstack_id=None, + ): self.openstack_id = openstack_id def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -11487,7 +13874,11 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.openstack_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.openstack_id = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) else: @@ -11497,12 +13888,18 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('stop_server_args') + oprot.writeStructBegin("stop_server_args") if self.openstack_id is not None: - oprot.writeFieldBegin('openstack_id', TType.STRING, 1) - oprot.writeString(self.openstack_id.encode('utf-8') if sys.version_info[0] == 2 else self.openstack_id) + oprot.writeFieldBegin("openstack_id", TType.STRING, 1) + oprot.writeString( + self.openstack_id.encode("utf-8") + if sys.version_info[0] == 2 + else self.openstack_id + ) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -11511,19 +13908,20 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(stop_server_args) stop_server_args.thrift_spec = ( None, # 0 - (1, TType.STRING, 'openstack_id', 'UTF8', None, ), # 1 + (1, TType.STRING, "openstack_id", "UTF8", None,), # 1 ) @@ -11535,13 +13933,18 @@ class stop_server_result(object): """ - - def __init__(self, success=None, e=None,): + def __init__( + self, success=None, e=None, + ): self.success = success self.e = e def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -11567,15 +13970,17 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('stop_server_result') + oprot.writeStructBegin("stop_server_result") if self.success is not None: - oprot.writeFieldBegin('success', TType.BOOL, 0) + oprot.writeFieldBegin("success", TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() if self.e is not None: - oprot.writeFieldBegin('e', TType.STRUCT, 1) + oprot.writeFieldBegin("e", TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -11585,19 +13990,20 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(stop_server_result) stop_server_result.thrift_spec = ( - (0, TType.BOOL, 'success', None, None, ), # 0 - (1, TType.STRUCT, 'e', [serverNotFoundException, None], None, ), # 1 + (0, TType.BOOL, "success", None, None,), # 0 + (1, TType.STRUCT, "e", [serverNotFoundException, None], None,), # 1 ) @@ -11612,8 +14018,14 @@ class create_snapshot_args(object): """ - - def __init__(self, openstack_id=None, name=None, elixir_id=None, base_tags=None, description=None,): + def __init__( + self, + openstack_id=None, + name=None, + elixir_id=None, + base_tags=None, + description=None, + ): self.openstack_id = openstack_id self.name = name self.elixir_id = elixir_id @@ -11621,7 +14033,11 @@ def __init__(self, openstack_id=None, name=None, elixir_id=None, base_tags=None, self.description = description def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -11631,17 +14047,29 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.openstack_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.openstack_id = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.name = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.elixir_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.elixir_id = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 4: @@ -11649,14 +14077,22 @@ def read(self, iprot): self.base_tags = [] (_etype449, _size446) = iprot.readListBegin() for _i450 in range(_size446): - _elem451 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _elem451 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) self.base_tags.append(_elem451) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.description = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.description = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) else: @@ -11666,31 +14102,49 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('create_snapshot_args') + oprot.writeStructBegin("create_snapshot_args") if self.openstack_id is not None: - oprot.writeFieldBegin('openstack_id', TType.STRING, 1) - oprot.writeString(self.openstack_id.encode('utf-8') if sys.version_info[0] == 2 else self.openstack_id) + oprot.writeFieldBegin("openstack_id", TType.STRING, 1) + oprot.writeString( + self.openstack_id.encode("utf-8") + if sys.version_info[0] == 2 + else self.openstack_id + ) oprot.writeFieldEnd() if self.name is not None: - oprot.writeFieldBegin('name', TType.STRING, 2) - oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name) + oprot.writeFieldBegin("name", TType.STRING, 2) + oprot.writeString( + self.name.encode("utf-8") if sys.version_info[0] == 2 else self.name + ) oprot.writeFieldEnd() if self.elixir_id is not None: - oprot.writeFieldBegin('elixir_id', TType.STRING, 3) - oprot.writeString(self.elixir_id.encode('utf-8') if sys.version_info[0] == 2 else self.elixir_id) + oprot.writeFieldBegin("elixir_id", TType.STRING, 3) + oprot.writeString( + self.elixir_id.encode("utf-8") + if sys.version_info[0] == 2 + else self.elixir_id + ) oprot.writeFieldEnd() if self.base_tags is not None: - oprot.writeFieldBegin('base_tags', TType.LIST, 4) + oprot.writeFieldBegin("base_tags", TType.LIST, 4) oprot.writeListBegin(TType.STRING, len(self.base_tags)) for iter452 in self.base_tags: - oprot.writeString(iter452.encode('utf-8') if sys.version_info[0] == 2 else iter452) + oprot.writeString( + iter452.encode("utf-8") if sys.version_info[0] == 2 else iter452 + ) oprot.writeListEnd() oprot.writeFieldEnd() if self.description is not None: - oprot.writeFieldBegin('description', TType.STRING, 5) - oprot.writeString(self.description.encode('utf-8') if sys.version_info[0] == 2 else self.description) + oprot.writeFieldBegin("description", TType.STRING, 5) + oprot.writeString( + self.description.encode("utf-8") + if sys.version_info[0] == 2 + else self.description + ) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -11699,23 +14153,24 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(create_snapshot_args) create_snapshot_args.thrift_spec = ( None, # 0 - (1, TType.STRING, 'openstack_id', 'UTF8', None, ), # 1 - (2, TType.STRING, 'name', 'UTF8', None, ), # 2 - (3, TType.STRING, 'elixir_id', 'UTF8', None, ), # 3 - (4, TType.LIST, 'base_tags', (TType.STRING, 'UTF8', False), None, ), # 4 - (5, TType.STRING, 'description', 'UTF8', None, ), # 5 + (1, TType.STRING, "openstack_id", "UTF8", None,), # 1 + (2, TType.STRING, "name", "UTF8", None,), # 2 + (3, TType.STRING, "elixir_id", "UTF8", None,), # 3 + (4, TType.LIST, "base_tags", (TType.STRING, "UTF8", False), None,), # 4 + (5, TType.STRING, "description", "UTF8", None,), # 5 ) @@ -11727,13 +14182,18 @@ class create_snapshot_result(object): """ - - def __init__(self, success=None, e=None,): + def __init__( + self, success=None, e=None, + ): self.success = success self.e = e def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -11743,7 +14203,11 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRING: - self.success = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.success = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 1: @@ -11759,15 +14223,21 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('create_snapshot_result') + oprot.writeStructBegin("create_snapshot_result") if self.success is not None: - oprot.writeFieldBegin('success', TType.STRING, 0) - oprot.writeString(self.success.encode('utf-8') if sys.version_info[0] == 2 else self.success) + oprot.writeFieldBegin("success", TType.STRING, 0) + oprot.writeString( + self.success.encode("utf-8") + if sys.version_info[0] == 2 + else self.success + ) oprot.writeFieldEnd() if self.e is not None: - oprot.writeFieldBegin('e', TType.STRUCT, 1) + oprot.writeFieldBegin("e", TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -11777,27 +14247,30 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(create_snapshot_result) create_snapshot_result.thrift_spec = ( - (0, TType.STRING, 'success', 'UTF8', None, ), # 0 - (1, TType.STRUCT, 'e', [serverNotFoundException, None], None, ), # 1 + (0, TType.STRING, "success", "UTF8", None,), # 0 + (1, TType.STRUCT, "e", [serverNotFoundException, None], None,), # 1 ) class get_limits_args(object): - - def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -11812,9 +14285,11 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('get_limits_args') + oprot.writeStructBegin("get_limits_args") oprot.writeFieldStop() oprot.writeStructEnd() @@ -11822,18 +14297,18 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(get_limits_args) -get_limits_args.thrift_spec = ( -) +get_limits_args.thrift_spec = () class get_limits_result(object): @@ -11843,12 +14318,17 @@ class get_limits_result(object): """ - - def __init__(self, success=None,): + def __init__( + self, success=None, + ): self.success = success def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -11861,8 +14341,16 @@ def read(self, iprot): self.success = {} (_ktype454, _vtype455, _size453) = iprot.readMapBegin() for _i457 in range(_size453): - _key458 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() - _val459 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _key458 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) + _val459 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) self.success[_key458] = _val459 iprot.readMapEnd() else: @@ -11874,15 +14362,21 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('get_limits_result') + oprot.writeStructBegin("get_limits_result") if self.success is not None: - oprot.writeFieldBegin('success', TType.MAP, 0) + oprot.writeFieldBegin("success", TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success)) for kiter460, viter461 in self.success.items(): - oprot.writeString(kiter460.encode('utf-8') if sys.version_info[0] == 2 else kiter460) - oprot.writeString(viter461.encode('utf-8') if sys.version_info[0] == 2 else viter461) + oprot.writeString( + kiter460.encode("utf-8") if sys.version_info[0] == 2 else kiter460 + ) + oprot.writeString( + viter461.encode("utf-8") if sys.version_info[0] == 2 else viter461 + ) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -11892,18 +14386,25 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(get_limits_result) get_limits_result.thrift_spec = ( - (0, TType.MAP, 'success', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 0 + ( + 0, + TType.MAP, + "success", + (TType.STRING, "UTF8", TType.STRING, "UTF8", False), + None, + ), # 0 ) @@ -11917,15 +14418,20 @@ class start_cluster_args(object): """ - - def __init__(self, public_key=None, master_instance=None, worker_instance=None, user=None,): + def __init__( + self, public_key=None, master_instance=None, worker_instance=None, user=None, + ): self.public_key = public_key self.master_instance = master_instance self.worker_instance = worker_instance self.user = user def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -11935,7 +14441,11 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.public_key = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.public_key = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 2: @@ -11957,7 +14467,11 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.user = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.user = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) else: @@ -11967,27 +14481,35 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('start_cluster_args') + oprot.writeStructBegin("start_cluster_args") if self.public_key is not None: - oprot.writeFieldBegin('public_key', TType.STRING, 1) - oprot.writeString(self.public_key.encode('utf-8') if sys.version_info[0] == 2 else self.public_key) + oprot.writeFieldBegin("public_key", TType.STRING, 1) + oprot.writeString( + self.public_key.encode("utf-8") + if sys.version_info[0] == 2 + else self.public_key + ) oprot.writeFieldEnd() if self.master_instance is not None: - oprot.writeFieldBegin('master_instance', TType.STRUCT, 2) + oprot.writeFieldBegin("master_instance", TType.STRUCT, 2) self.master_instance.write(oprot) oprot.writeFieldEnd() if self.worker_instance is not None: - oprot.writeFieldBegin('worker_instance', TType.LIST, 3) + oprot.writeFieldBegin("worker_instance", TType.LIST, 3) oprot.writeListBegin(TType.STRUCT, len(self.worker_instance)) for iter468 in self.worker_instance: iter468.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.user is not None: - oprot.writeFieldBegin('user', TType.STRING, 4) - oprot.writeString(self.user.encode('utf-8') if sys.version_info[0] == 2 else self.user) + oprot.writeFieldBegin("user", TType.STRING, 4) + oprot.writeString( + self.user.encode("utf-8") if sys.version_info[0] == 2 else self.user + ) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -11996,22 +14518,29 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(start_cluster_args) start_cluster_args.thrift_spec = ( None, # 0 - (1, TType.STRING, 'public_key', 'UTF8', None, ), # 1 - (2, TType.STRUCT, 'master_instance', [ClusterInstance, None], None, ), # 2 - (3, TType.LIST, 'worker_instance', (TType.STRUCT, [ClusterInstance, None], False), None, ), # 3 - (4, TType.STRING, 'user', 'UTF8', None, ), # 4 + (1, TType.STRING, "public_key", "UTF8", None,), # 1 + (2, TType.STRUCT, "master_instance", [ClusterInstance, None], None,), # 2 + ( + 3, + TType.LIST, + "worker_instance", + (TType.STRUCT, [ClusterInstance, None], False), + None, + ), # 3 + (4, TType.STRING, "user", "UTF8", None,), # 4 ) @@ -12022,12 +14551,17 @@ class start_cluster_result(object): """ - - def __init__(self, success=None,): + def __init__( + self, success=None, + ): self.success = success def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -12040,8 +14574,16 @@ def read(self, iprot): self.success = {} (_ktype470, _vtype471, _size469) = iprot.readMapBegin() for _i473 in range(_size469): - _key474 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() - _val475 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _key474 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) + _val475 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) self.success[_key474] = _val475 iprot.readMapEnd() else: @@ -12053,15 +14595,21 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('start_cluster_result') + oprot.writeStructBegin("start_cluster_result") if self.success is not None: - oprot.writeFieldBegin('success', TType.MAP, 0) + oprot.writeFieldBegin("success", TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success)) for kiter476, viter477 in self.success.items(): - oprot.writeString(kiter476.encode('utf-8') if sys.version_info[0] == 2 else kiter476) - oprot.writeString(viter477.encode('utf-8') if sys.version_info[0] == 2 else viter477) + oprot.writeString( + kiter476.encode("utf-8") if sys.version_info[0] == 2 else kiter476 + ) + oprot.writeString( + viter477.encode("utf-8") if sys.version_info[0] == 2 else viter477 + ) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -12071,18 +14619,25 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(start_cluster_result) start_cluster_result.thrift_spec = ( - (0, TType.MAP, 'success', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 0 + ( + 0, + TType.MAP, + "success", + (TType.STRING, "UTF8", TType.STRING, "UTF8", False), + None, + ), # 0 ) @@ -12093,12 +14648,17 @@ class terminate_cluster_args(object): """ - - def __init__(self, cluster_id=None,): + def __init__( + self, cluster_id=None, + ): self.cluster_id = cluster_id def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -12108,7 +14668,11 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.cluster_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.cluster_id = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) else: @@ -12118,12 +14682,18 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('terminate_cluster_args') + oprot.writeStructBegin("terminate_cluster_args") if self.cluster_id is not None: - oprot.writeFieldBegin('cluster_id', TType.STRING, 1) - oprot.writeString(self.cluster_id.encode('utf-8') if sys.version_info[0] == 2 else self.cluster_id) + oprot.writeFieldBegin("cluster_id", TType.STRING, 1) + oprot.writeString( + self.cluster_id.encode("utf-8") + if sys.version_info[0] == 2 + else self.cluster_id + ) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -12132,19 +14702,20 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(terminate_cluster_args) terminate_cluster_args.thrift_spec = ( None, # 0 - (1, TType.STRING, 'cluster_id', 'UTF8', None, ), # 1 + (1, TType.STRING, "cluster_id", "UTF8", None,), # 1 ) @@ -12155,12 +14726,17 @@ class terminate_cluster_result(object): """ - - def __init__(self, success=None,): + def __init__( + self, success=None, + ): self.success = success def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -12173,8 +14749,16 @@ def read(self, iprot): self.success = {} (_ktype479, _vtype480, _size478) = iprot.readMapBegin() for _i482 in range(_size478): - _key483 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() - _val484 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _key483 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) + _val484 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) self.success[_key483] = _val484 iprot.readMapEnd() else: @@ -12186,15 +14770,21 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('terminate_cluster_result') + oprot.writeStructBegin("terminate_cluster_result") if self.success is not None: - oprot.writeFieldBegin('success', TType.MAP, 0) + oprot.writeFieldBegin("success", TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success)) for kiter485, viter486 in self.success.items(): - oprot.writeString(kiter485.encode('utf-8') if sys.version_info[0] == 2 else kiter485) - oprot.writeString(viter486.encode('utf-8') if sys.version_info[0] == 2 else viter486) + oprot.writeString( + kiter485.encode("utf-8") if sys.version_info[0] == 2 else kiter485 + ) + oprot.writeString( + viter486.encode("utf-8") if sys.version_info[0] == 2 else viter486 + ) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -12204,18 +14794,25 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(terminate_cluster_result) terminate_cluster_result.thrift_spec = ( - (0, TType.MAP, 'success', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 0 + ( + 0, + TType.MAP, + "success", + (TType.STRING, "UTF8", TType.STRING, "UTF8", False), + None, + ), # 0 ) @@ -12226,12 +14823,17 @@ class delete_image_args(object): """ - - def __init__(self, image_id=None,): + def __init__( + self, image_id=None, + ): self.image_id = image_id def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -12241,7 +14843,11 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.image_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.image_id = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) else: @@ -12251,12 +14857,18 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('delete_image_args') + oprot.writeStructBegin("delete_image_args") if self.image_id is not None: - oprot.writeFieldBegin('image_id', TType.STRING, 1) - oprot.writeString(self.image_id.encode('utf-8') if sys.version_info[0] == 2 else self.image_id) + oprot.writeFieldBegin("image_id", TType.STRING, 1) + oprot.writeString( + self.image_id.encode("utf-8") + if sys.version_info[0] == 2 + else self.image_id + ) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -12265,19 +14877,20 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(delete_image_args) delete_image_args.thrift_spec = ( None, # 0 - (1, TType.STRING, 'image_id', 'UTF8', None, ), # 1 + (1, TType.STRING, "image_id", "UTF8", None,), # 1 ) @@ -12289,13 +14902,18 @@ class delete_image_result(object): """ - - def __init__(self, success=None, e=None,): + def __init__( + self, success=None, e=None, + ): self.success = success self.e = e def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -12321,15 +14939,17 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('delete_image_result') + oprot.writeStructBegin("delete_image_result") if self.success is not None: - oprot.writeFieldBegin('success', TType.BOOL, 0) + oprot.writeFieldBegin("success", TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() if self.e is not None: - oprot.writeFieldBegin('e', TType.STRUCT, 1) + oprot.writeFieldBegin("e", TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -12339,19 +14959,20 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(delete_image_result) delete_image_result.thrift_spec = ( - (0, TType.BOOL, 'success', None, None, ), # 0 - (1, TType.STRUCT, 'e', [imageNotFoundException, None], None, ), # 1 + (0, TType.BOOL, "success", None, None,), # 0 + (1, TType.STRUCT, "e", [imageNotFoundException, None], None,), # 1 ) @@ -12363,13 +14984,18 @@ class delete_volume_attachment_args(object): """ - - def __init__(self, volume_id=None, server_id=None,): + def __init__( + self, volume_id=None, server_id=None, + ): self.volume_id = volume_id self.server_id = server_id def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -12379,12 +15005,20 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.volume_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.volume_id = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.server_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.server_id = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) else: @@ -12394,16 +15028,26 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('delete_volume_attachment_args') + oprot.writeStructBegin("delete_volume_attachment_args") if self.volume_id is not None: - oprot.writeFieldBegin('volume_id', TType.STRING, 1) - oprot.writeString(self.volume_id.encode('utf-8') if sys.version_info[0] == 2 else self.volume_id) + oprot.writeFieldBegin("volume_id", TType.STRING, 1) + oprot.writeString( + self.volume_id.encode("utf-8") + if sys.version_info[0] == 2 + else self.volume_id + ) oprot.writeFieldEnd() if self.server_id is not None: - oprot.writeFieldBegin('server_id', TType.STRING, 2) - oprot.writeString(self.server_id.encode('utf-8') if sys.version_info[0] == 2 else self.server_id) + oprot.writeFieldBegin("server_id", TType.STRING, 2) + oprot.writeString( + self.server_id.encode("utf-8") + if sys.version_info[0] == 2 + else self.server_id + ) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -12412,20 +15056,21 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(delete_volume_attachment_args) delete_volume_attachment_args.thrift_spec = ( None, # 0 - (1, TType.STRING, 'volume_id', 'UTF8', None, ), # 1 - (2, TType.STRING, 'server_id', 'UTF8', None, ), # 2 + (1, TType.STRING, "volume_id", "UTF8", None,), # 1 + (2, TType.STRING, "server_id", "UTF8", None,), # 2 ) @@ -12437,13 +15082,18 @@ class delete_volume_attachment_result(object): """ - - def __init__(self, success=None, e=None,): + def __init__( + self, success=None, e=None, + ): self.success = success self.e = e def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -12469,15 +15119,17 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('delete_volume_attachment_result') + oprot.writeStructBegin("delete_volume_attachment_result") if self.success is not None: - oprot.writeFieldBegin('success', TType.BOOL, 0) + oprot.writeFieldBegin("success", TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() if self.e is not None: - oprot.writeFieldBegin('e', TType.STRUCT, 1) + oprot.writeFieldBegin("e", TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -12487,19 +15139,20 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(delete_volume_attachment_result) delete_volume_attachment_result.thrift_spec = ( - (0, TType.BOOL, 'success', None, None, ), # 0 - (1, TType.STRUCT, 'e', [serverNotFoundException, None], None, ), # 1 + (0, TType.BOOL, "success", None, None,), # 0 + (1, TType.STRUCT, "e", [serverNotFoundException, None], None,), # 1 ) @@ -12510,12 +15163,17 @@ class delete_volume_args(object): """ - - def __init__(self, volume_id=None,): + def __init__( + self, volume_id=None, + ): self.volume_id = volume_id def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -12525,7 +15183,11 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.volume_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.volume_id = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) else: @@ -12535,12 +15197,18 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('delete_volume_args') + oprot.writeStructBegin("delete_volume_args") if self.volume_id is not None: - oprot.writeFieldBegin('volume_id', TType.STRING, 1) - oprot.writeString(self.volume_id.encode('utf-8') if sys.version_info[0] == 2 else self.volume_id) + oprot.writeFieldBegin("volume_id", TType.STRING, 1) + oprot.writeString( + self.volume_id.encode("utf-8") + if sys.version_info[0] == 2 + else self.volume_id + ) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -12549,19 +15217,20 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(delete_volume_args) delete_volume_args.thrift_spec = ( None, # 0 - (1, TType.STRING, 'volume_id', 'UTF8', None, ), # 1 + (1, TType.STRING, "volume_id", "UTF8", None,), # 1 ) @@ -12572,12 +15241,17 @@ class delete_volume_result(object): """ - - def __init__(self, success=None,): + def __init__( + self, success=None, + ): self.success = success def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -12597,11 +15271,13 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('delete_volume_result') + oprot.writeStructBegin("delete_volume_result") if self.success is not None: - oprot.writeFieldBegin('success', TType.BOOL, 0) + oprot.writeFieldBegin("success", TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -12611,19 +15287,18 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(delete_volume_result) -delete_volume_result.thrift_spec = ( - (0, TType.BOOL, 'success', None, None, ), # 0 -) +delete_volume_result.thrift_spec = ((0, TType.BOOL, "success", None, None,),) # 0 class attach_volume_to_server_args(object): @@ -12634,13 +15309,18 @@ class attach_volume_to_server_args(object): """ - - def __init__(self, openstack_id=None, volume_id=None,): + def __init__( + self, openstack_id=None, volume_id=None, + ): self.openstack_id = openstack_id self.volume_id = volume_id def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -12650,12 +15330,20 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.openstack_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.openstack_id = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.volume_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.volume_id = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) else: @@ -12665,16 +15353,26 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('attach_volume_to_server_args') + oprot.writeStructBegin("attach_volume_to_server_args") if self.openstack_id is not None: - oprot.writeFieldBegin('openstack_id', TType.STRING, 1) - oprot.writeString(self.openstack_id.encode('utf-8') if sys.version_info[0] == 2 else self.openstack_id) + oprot.writeFieldBegin("openstack_id", TType.STRING, 1) + oprot.writeString( + self.openstack_id.encode("utf-8") + if sys.version_info[0] == 2 + else self.openstack_id + ) oprot.writeFieldEnd() if self.volume_id is not None: - oprot.writeFieldBegin('volume_id', TType.STRING, 2) - oprot.writeString(self.volume_id.encode('utf-8') if sys.version_info[0] == 2 else self.volume_id) + oprot.writeFieldBegin("volume_id", TType.STRING, 2) + oprot.writeString( + self.volume_id.encode("utf-8") + if sys.version_info[0] == 2 + else self.volume_id + ) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -12683,20 +15381,21 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(attach_volume_to_server_args) attach_volume_to_server_args.thrift_spec = ( None, # 0 - (1, TType.STRING, 'openstack_id', 'UTF8', None, ), # 1 - (2, TType.STRING, 'volume_id', 'UTF8', None, ), # 2 + (1, TType.STRING, "openstack_id", "UTF8", None,), # 1 + (2, TType.STRING, "volume_id", "UTF8", None,), # 2 ) @@ -12708,13 +15407,18 @@ class attach_volume_to_server_result(object): """ - - def __init__(self, success=None, e=None,): + def __init__( + self, success=None, e=None, + ): self.success = success self.e = e def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -12727,8 +15431,16 @@ def read(self, iprot): self.success = {} (_ktype488, _vtype489, _size487) = iprot.readMapBegin() for _i491 in range(_size487): - _key492 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() - _val493 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _key492 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) + _val493 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) self.success[_key492] = _val493 iprot.readMapEnd() else: @@ -12746,19 +15458,25 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('attach_volume_to_server_result') + oprot.writeStructBegin("attach_volume_to_server_result") if self.success is not None: - oprot.writeFieldBegin('success', TType.MAP, 0) + oprot.writeFieldBegin("success", TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success)) for kiter494, viter495 in self.success.items(): - oprot.writeString(kiter494.encode('utf-8') if sys.version_info[0] == 2 else kiter494) - oprot.writeString(viter495.encode('utf-8') if sys.version_info[0] == 2 else viter495) + oprot.writeString( + kiter494.encode("utf-8") if sys.version_info[0] == 2 else kiter494 + ) + oprot.writeString( + viter495.encode("utf-8") if sys.version_info[0] == 2 else viter495 + ) oprot.writeMapEnd() oprot.writeFieldEnd() if self.e is not None: - oprot.writeFieldBegin('e', TType.STRUCT, 1) + oprot.writeFieldBegin("e", TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -12768,19 +15486,26 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(attach_volume_to_server_result) attach_volume_to_server_result.thrift_spec = ( - (0, TType.MAP, 'success', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 0 - (1, TType.STRUCT, 'e', [serverNotFoundException, None], None, ), # 1 + ( + 0, + TType.MAP, + "success", + (TType.STRING, "UTF8", TType.STRING, "UTF8", False), + None, + ), # 0 + (1, TType.STRUCT, "e", [serverNotFoundException, None], None,), # 1 ) @@ -12791,12 +15516,17 @@ class check_server_status_args(object): """ - - def __init__(self, openstack_id=None,): + def __init__( + self, openstack_id=None, + ): self.openstack_id = openstack_id def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -12806,7 +15536,11 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.openstack_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.openstack_id = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) else: @@ -12816,12 +15550,18 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('check_server_status_args') + oprot.writeStructBegin("check_server_status_args") if self.openstack_id is not None: - oprot.writeFieldBegin('openstack_id', TType.STRING, 1) - oprot.writeString(self.openstack_id.encode('utf-8') if sys.version_info[0] == 2 else self.openstack_id) + oprot.writeFieldBegin("openstack_id", TType.STRING, 1) + oprot.writeString( + self.openstack_id.encode("utf-8") + if sys.version_info[0] == 2 + else self.openstack_id + ) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -12830,19 +15570,20 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(check_server_status_args) check_server_status_args.thrift_spec = ( None, # 0 - (1, TType.STRING, 'openstack_id', 'UTF8', None, ), # 1 + (1, TType.STRING, "openstack_id", "UTF8", None,), # 1 ) @@ -12855,14 +15596,19 @@ class check_server_status_result(object): """ - - def __init__(self, success=None, e=None, r=None,): + def __init__( + self, success=None, e=None, r=None, + ): self.success = success self.e = e self.r = r def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -12895,19 +15641,21 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('check_server_status_result') + oprot.writeStructBegin("check_server_status_result") if self.success is not None: - oprot.writeFieldBegin('success', TType.STRUCT, 0) + oprot.writeFieldBegin("success", TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: - oprot.writeFieldBegin('e', TType.STRUCT, 1) + oprot.writeFieldBegin("e", TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() if self.r is not None: - oprot.writeFieldBegin('r', TType.STRUCT, 2) + oprot.writeFieldBegin("r", TType.STRUCT, 2) self.r.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -12917,20 +15665,21 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(check_server_status_result) check_server_status_result.thrift_spec = ( - (0, TType.STRUCT, 'success', [VM, None], None, ), # 0 - (1, TType.STRUCT, 'e', [serverNotFoundException, None], None, ), # 1 - (2, TType.STRUCT, 'r', [ressourceException, None], None, ), # 2 + (0, TType.STRUCT, "success", [VM, None], None,), # 0 + (1, TType.STRUCT, "e", [serverNotFoundException, None], None,), # 1 + (2, TType.STRUCT, "r", [ressourceException, None], None,), # 2 ) @@ -12942,13 +15691,18 @@ class setUserPassword_args(object): """ - - def __init__(self, user=None, password=None,): + def __init__( + self, user=None, password=None, + ): self.user = user self.password = password def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -12958,12 +15712,20 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.user = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.user = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.password = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.password = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) else: @@ -12973,16 +15735,24 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('setUserPassword_args') + oprot.writeStructBegin("setUserPassword_args") if self.user is not None: - oprot.writeFieldBegin('user', TType.STRING, 1) - oprot.writeString(self.user.encode('utf-8') if sys.version_info[0] == 2 else self.user) + oprot.writeFieldBegin("user", TType.STRING, 1) + oprot.writeString( + self.user.encode("utf-8") if sys.version_info[0] == 2 else self.user + ) oprot.writeFieldEnd() if self.password is not None: - oprot.writeFieldBegin('password', TType.STRING, 2) - oprot.writeString(self.password.encode('utf-8') if sys.version_info[0] == 2 else self.password) + oprot.writeFieldBegin("password", TType.STRING, 2) + oprot.writeString( + self.password.encode("utf-8") + if sys.version_info[0] == 2 + else self.password + ) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -12991,20 +15761,21 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(setUserPassword_args) setUserPassword_args.thrift_spec = ( None, # 0 - (1, TType.STRING, 'user', 'UTF8', None, ), # 1 - (2, TType.STRING, 'password', 'UTF8', None, ), # 2 + (1, TType.STRING, "user", "UTF8", None,), # 1 + (2, TType.STRING, "password", "UTF8", None,), # 2 ) @@ -13016,13 +15787,18 @@ class setUserPassword_result(object): """ - - def __init__(self, success=None, e=None,): + def __init__( + self, success=None, e=None, + ): self.success = success self.e = e def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -13032,7 +15808,11 @@ def read(self, iprot): break if fid == 0: if ftype == TType.STRING: - self.success = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.success = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 1: @@ -13048,15 +15828,21 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('setUserPassword_result') + oprot.writeStructBegin("setUserPassword_result") if self.success is not None: - oprot.writeFieldBegin('success', TType.STRING, 0) - oprot.writeString(self.success.encode('utf-8') if sys.version_info[0] == 2 else self.success) + oprot.writeFieldBegin("success", TType.STRING, 0) + oprot.writeString( + self.success.encode("utf-8") + if sys.version_info[0] == 2 + else self.success + ) oprot.writeFieldEnd() if self.e is not None: - oprot.writeFieldBegin('e', TType.STRUCT, 1) + oprot.writeFieldBegin("e", TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -13066,19 +15852,20 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(setUserPassword_result) setUserPassword_result.thrift_spec = ( - (0, TType.STRING, 'success', 'UTF8', None, ), # 0 - (1, TType.STRUCT, 'e', [otherException, None], None, ), # 1 + (0, TType.STRING, "success", "UTF8", None,), # 0 + (1, TType.STRUCT, "e", [otherException, None], None,), # 1 ) @@ -13089,12 +15876,17 @@ class resume_server_args(object): """ - - def __init__(self, openstack_id=None,): + def __init__( + self, openstack_id=None, + ): self.openstack_id = openstack_id def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -13104,7 +15896,11 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.openstack_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.openstack_id = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) else: @@ -13114,12 +15910,18 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('resume_server_args') + oprot.writeStructBegin("resume_server_args") if self.openstack_id is not None: - oprot.writeFieldBegin('openstack_id', TType.STRING, 1) - oprot.writeString(self.openstack_id.encode('utf-8') if sys.version_info[0] == 2 else self.openstack_id) + oprot.writeFieldBegin("openstack_id", TType.STRING, 1) + oprot.writeString( + self.openstack_id.encode("utf-8") + if sys.version_info[0] == 2 + else self.openstack_id + ) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -13128,19 +15930,20 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(resume_server_args) resume_server_args.thrift_spec = ( None, # 0 - (1, TType.STRING, 'openstack_id', 'UTF8', None, ), # 1 + (1, TType.STRING, "openstack_id", "UTF8", None,), # 1 ) @@ -13152,13 +15955,18 @@ class resume_server_result(object): """ - - def __init__(self, success=None, e=None,): + def __init__( + self, success=None, e=None, + ): self.success = success self.e = e def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -13184,15 +15992,17 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('resume_server_result') + oprot.writeStructBegin("resume_server_result") if self.success is not None: - oprot.writeFieldBegin('success', TType.BOOL, 0) + oprot.writeFieldBegin("success", TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() if self.e is not None: - oprot.writeFieldBegin('e', TType.STRUCT, 1) + oprot.writeFieldBegin("e", TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -13202,19 +16012,20 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(resume_server_result) resume_server_result.thrift_spec = ( - (0, TType.BOOL, 'success', None, None, ), # 0 - (1, TType.STRUCT, 'e', [serverNotFoundException, None], None, ), # 1 + (0, TType.BOOL, "success", None, None,), # 0 + (1, TType.STRUCT, "e", [serverNotFoundException, None], None,), # 1 ) @@ -13227,14 +16038,19 @@ class create_volume_args(object): """ - - def __init__(self, volume_name=None, volume_storage=None, metadata=None,): + def __init__( + self, volume_name=None, volume_storage=None, metadata=None, + ): self.volume_name = volume_name self.volume_storage = volume_storage self.metadata = metadata def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -13244,7 +16060,11 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.volume_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.volume_name = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 2: @@ -13257,8 +16077,16 @@ def read(self, iprot): self.metadata = {} (_ktype497, _vtype498, _size496) = iprot.readMapBegin() for _i500 in range(_size496): - _key501 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() - _val502 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _key501 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) + _val502 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) self.metadata[_key501] = _val502 iprot.readMapEnd() else: @@ -13270,23 +16098,33 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('create_volume_args') + oprot.writeStructBegin("create_volume_args") if self.volume_name is not None: - oprot.writeFieldBegin('volume_name', TType.STRING, 1) - oprot.writeString(self.volume_name.encode('utf-8') if sys.version_info[0] == 2 else self.volume_name) + oprot.writeFieldBegin("volume_name", TType.STRING, 1) + oprot.writeString( + self.volume_name.encode("utf-8") + if sys.version_info[0] == 2 + else self.volume_name + ) oprot.writeFieldEnd() if self.volume_storage is not None: - oprot.writeFieldBegin('volume_storage', TType.I32, 2) + oprot.writeFieldBegin("volume_storage", TType.I32, 2) oprot.writeI32(self.volume_storage) oprot.writeFieldEnd() if self.metadata is not None: - oprot.writeFieldBegin('metadata', TType.MAP, 3) + oprot.writeFieldBegin("metadata", TType.MAP, 3) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.metadata)) for kiter503, viter504 in self.metadata.items(): - oprot.writeString(kiter503.encode('utf-8') if sys.version_info[0] == 2 else kiter503) - oprot.writeString(viter504.encode('utf-8') if sys.version_info[0] == 2 else viter504) + oprot.writeString( + kiter503.encode("utf-8") if sys.version_info[0] == 2 else kiter503 + ) + oprot.writeString( + viter504.encode("utf-8") if sys.version_info[0] == 2 else viter504 + ) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -13296,21 +16134,28 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(create_volume_args) create_volume_args.thrift_spec = ( None, # 0 - (1, TType.STRING, 'volume_name', 'UTF8', None, ), # 1 - (2, TType.I32, 'volume_storage', None, None, ), # 2 - (3, TType.MAP, 'metadata', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 3 + (1, TType.STRING, "volume_name", "UTF8", None,), # 1 + (2, TType.I32, "volume_storage", None, None,), # 2 + ( + 3, + TType.MAP, + "metadata", + (TType.STRING, "UTF8", TType.STRING, "UTF8", False), + None, + ), # 3 ) @@ -13322,13 +16167,18 @@ class create_volume_result(object): """ - - def __init__(self, success=None, r=None,): + def __init__( + self, success=None, r=None, + ): self.success = success self.r = r def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -13341,8 +16191,16 @@ def read(self, iprot): self.success = {} (_ktype506, _vtype507, _size505) = iprot.readMapBegin() for _i509 in range(_size505): - _key510 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() - _val511 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _key510 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) + _val511 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) self.success[_key510] = _val511 iprot.readMapEnd() else: @@ -13360,19 +16218,25 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('create_volume_result') + oprot.writeStructBegin("create_volume_result") if self.success is not None: - oprot.writeFieldBegin('success', TType.MAP, 0) + oprot.writeFieldBegin("success", TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success)) for kiter512, viter513 in self.success.items(): - oprot.writeString(kiter512.encode('utf-8') if sys.version_info[0] == 2 else kiter512) - oprot.writeString(viter513.encode('utf-8') if sys.version_info[0] == 2 else viter513) + oprot.writeString( + kiter512.encode("utf-8") if sys.version_info[0] == 2 else kiter512 + ) + oprot.writeString( + viter513.encode("utf-8") if sys.version_info[0] == 2 else viter513 + ) oprot.writeMapEnd() oprot.writeFieldEnd() if self.r is not None: - oprot.writeFieldBegin('r', TType.STRUCT, 1) + oprot.writeFieldBegin("r", TType.STRUCT, 1) self.r.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -13382,19 +16246,26 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(create_volume_result) create_volume_result.thrift_spec = ( - (0, TType.MAP, 'success', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 0 - (1, TType.STRUCT, 'r', [ressourceException, None], None, ), # 1 + ( + 0, + TType.MAP, + "success", + (TType.STRING, "UTF8", TType.STRING, "UTF8", False), + None, + ), # 0 + (1, TType.STRUCT, "r", [ressourceException, None], None,), # 1 ) @@ -13406,13 +16277,18 @@ class reboot_server_args(object): """ - - def __init__(self, server_id=None, reboot_type=None,): + def __init__( + self, server_id=None, reboot_type=None, + ): self.server_id = server_id self.reboot_type = reboot_type def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -13422,12 +16298,20 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.server_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.server_id = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.reboot_type = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.reboot_type = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) else: @@ -13437,16 +16321,26 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('reboot_server_args') + oprot.writeStructBegin("reboot_server_args") if self.server_id is not None: - oprot.writeFieldBegin('server_id', TType.STRING, 1) - oprot.writeString(self.server_id.encode('utf-8') if sys.version_info[0] == 2 else self.server_id) + oprot.writeFieldBegin("server_id", TType.STRING, 1) + oprot.writeString( + self.server_id.encode("utf-8") + if sys.version_info[0] == 2 + else self.server_id + ) oprot.writeFieldEnd() if self.reboot_type is not None: - oprot.writeFieldBegin('reboot_type', TType.STRING, 2) - oprot.writeString(self.reboot_type.encode('utf-8') if sys.version_info[0] == 2 else self.reboot_type) + oprot.writeFieldBegin("reboot_type", TType.STRING, 2) + oprot.writeString( + self.reboot_type.encode("utf-8") + if sys.version_info[0] == 2 + else self.reboot_type + ) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -13455,20 +16349,21 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(reboot_server_args) reboot_server_args.thrift_spec = ( None, # 0 - (1, TType.STRING, 'server_id', 'UTF8', None, ), # 1 - (2, TType.STRING, 'reboot_type', 'UTF8', None, ), # 2 + (1, TType.STRING, "server_id", "UTF8", None,), # 1 + (2, TType.STRING, "reboot_type", "UTF8", None,), # 2 ) @@ -13480,13 +16375,18 @@ class reboot_server_result(object): """ - - def __init__(self, success=None, e=None,): + def __init__( + self, success=None, e=None, + ): self.success = success self.e = e def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -13512,15 +16412,17 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('reboot_server_result') + oprot.writeStructBegin("reboot_server_result") if self.success is not None: - oprot.writeFieldBegin('success', TType.BOOL, 0) + oprot.writeFieldBegin("success", TType.BOOL, 0) oprot.writeBool(self.success) oprot.writeFieldEnd() if self.e is not None: - oprot.writeFieldBegin('e', TType.STRUCT, 1) + oprot.writeFieldBegin("e", TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -13530,20 +16432,20 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(reboot_server_result) reboot_server_result.thrift_spec = ( - (0, TType.BOOL, 'success', None, None, ), # 0 - (1, TType.STRUCT, 'e', [serverNotFoundException, None], None, ), # 1 + (0, TType.BOOL, "success", None, None,), # 0 + (1, TType.STRUCT, "e", [serverNotFoundException, None], None,), # 1 ) fix_spec(all_structs) del all_structs - diff --git a/VirtualMachineService/constants.py b/VirtualMachineService/constants.py index 8de3f670..b182601b 100644 --- a/VirtualMachineService/constants.py +++ b/VirtualMachineService/constants.py @@ -6,10 +6,17 @@ # options string: py # -from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException +from thrift.Thrift import ( + TType, + TMessageType, + TFrozenDict, + TException, + TApplicationException, +) from thrift.protocol.TProtocol import TProtocolException from thrift.TRecursive import fix_spec import sys from ttypes import * + VERSION = "1.0.0" diff --git a/VirtualMachineService/ttypes.py b/VirtualMachineService/ttypes.py index 42a841c1..3464240c 100644 --- a/VirtualMachineService/ttypes.py +++ b/VirtualMachineService/ttypes.py @@ -6,13 +6,20 @@ # options string: py # -from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException +from thrift.Thrift import ( + TType, + TMessageType, + TFrozenDict, + TException, + TApplicationException, +) from thrift.protocol.TProtocol import TProtocolException from thrift.TRecursive import fix_spec import sys from thrift.transport import TTransport + all_structs = [] @@ -27,8 +34,14 @@ class Backend(object): """ - - def __init__(self, id=None, owner=None, location_url=None, template=None, template_version=None,): + def __init__( + self, + id=None, + owner=None, + location_url=None, + template=None, + template_version=None, + ): self.id = id self.owner = owner self.location_url = location_url @@ -36,7 +49,11 @@ def __init__(self, id=None, owner=None, location_url=None, template=None, templa self.template_version = template_version def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -51,22 +68,38 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.owner = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.owner = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.location_url = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.location_url = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.template = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.template = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.template_version = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.template_version = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) else: @@ -76,28 +109,44 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('Backend') + oprot.writeStructBegin("Backend") if self.id is not None: - oprot.writeFieldBegin('id', TType.I64, 1) + oprot.writeFieldBegin("id", TType.I64, 1) oprot.writeI64(self.id) oprot.writeFieldEnd() if self.owner is not None: - oprot.writeFieldBegin('owner', TType.STRING, 2) - oprot.writeString(self.owner.encode('utf-8') if sys.version_info[0] == 2 else self.owner) + oprot.writeFieldBegin("owner", TType.STRING, 2) + oprot.writeString( + self.owner.encode("utf-8") if sys.version_info[0] == 2 else self.owner + ) oprot.writeFieldEnd() if self.location_url is not None: - oprot.writeFieldBegin('location_url', TType.STRING, 3) - oprot.writeString(self.location_url.encode('utf-8') if sys.version_info[0] == 2 else self.location_url) + oprot.writeFieldBegin("location_url", TType.STRING, 3) + oprot.writeString( + self.location_url.encode("utf-8") + if sys.version_info[0] == 2 + else self.location_url + ) oprot.writeFieldEnd() if self.template is not None: - oprot.writeFieldBegin('template', TType.STRING, 4) - oprot.writeString(self.template.encode('utf-8') if sys.version_info[0] == 2 else self.template) + oprot.writeFieldBegin("template", TType.STRING, 4) + oprot.writeString( + self.template.encode("utf-8") + if sys.version_info[0] == 2 + else self.template + ) oprot.writeFieldEnd() if self.template_version is not None: - oprot.writeFieldBegin('template_version', TType.STRING, 5) - oprot.writeString(self.template_version.encode('utf-8') if sys.version_info[0] == 2 else self.template_version) + oprot.writeFieldBegin("template_version", TType.STRING, 5) + oprot.writeString( + self.template_version.encode("utf-8") + if sys.version_info[0] == 2 + else self.template_version + ) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -106,9 +155,8 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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__ @@ -132,8 +180,18 @@ class ClusterInfo(object): """ - - def __init__(self, launch_date=None, group_id=None, network_id=None, public_ip=None, subnet_id=None, user=None, inst_counter=None, cluster_id=None, key_name=None,): + def __init__( + self, + launch_date=None, + group_id=None, + network_id=None, + public_ip=None, + subnet_id=None, + user=None, + inst_counter=None, + cluster_id=None, + key_name=None, + ): self.launch_date = launch_date self.group_id = group_id self.network_id = network_id @@ -145,7 +203,11 @@ def __init__(self, launch_date=None, group_id=None, network_id=None, public_ip=N self.key_name = key_name def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -155,32 +217,56 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.launch_date = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.launch_date = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.group_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.group_id = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.network_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.network_id = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.public_ip = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.public_ip = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.subnet_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.subnet_id = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: - self.user = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.user = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 7: @@ -190,12 +276,20 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 8: if ftype == TType.STRING: - self.cluster_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.cluster_id = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 9: if ftype == TType.STRING: - self.key_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.key_name = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) else: @@ -205,44 +299,76 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('ClusterInfo') + oprot.writeStructBegin("ClusterInfo") if self.launch_date is not None: - oprot.writeFieldBegin('launch_date', TType.STRING, 1) - oprot.writeString(self.launch_date.encode('utf-8') if sys.version_info[0] == 2 else self.launch_date) + oprot.writeFieldBegin("launch_date", TType.STRING, 1) + oprot.writeString( + self.launch_date.encode("utf-8") + if sys.version_info[0] == 2 + else self.launch_date + ) oprot.writeFieldEnd() if self.group_id is not None: - oprot.writeFieldBegin('group_id', TType.STRING, 2) - oprot.writeString(self.group_id.encode('utf-8') if sys.version_info[0] == 2 else self.group_id) + oprot.writeFieldBegin("group_id", TType.STRING, 2) + oprot.writeString( + self.group_id.encode("utf-8") + if sys.version_info[0] == 2 + else self.group_id + ) oprot.writeFieldEnd() if self.network_id is not None: - oprot.writeFieldBegin('network_id', TType.STRING, 3) - oprot.writeString(self.network_id.encode('utf-8') if sys.version_info[0] == 2 else self.network_id) + oprot.writeFieldBegin("network_id", TType.STRING, 3) + oprot.writeString( + self.network_id.encode("utf-8") + if sys.version_info[0] == 2 + else self.network_id + ) oprot.writeFieldEnd() if self.public_ip is not None: - oprot.writeFieldBegin('public_ip', TType.STRING, 4) - oprot.writeString(self.public_ip.encode('utf-8') if sys.version_info[0] == 2 else self.public_ip) + oprot.writeFieldBegin("public_ip", TType.STRING, 4) + oprot.writeString( + self.public_ip.encode("utf-8") + if sys.version_info[0] == 2 + else self.public_ip + ) oprot.writeFieldEnd() if self.subnet_id is not None: - oprot.writeFieldBegin('subnet_id', TType.STRING, 5) - oprot.writeString(self.subnet_id.encode('utf-8') if sys.version_info[0] == 2 else self.subnet_id) + oprot.writeFieldBegin("subnet_id", TType.STRING, 5) + oprot.writeString( + self.subnet_id.encode("utf-8") + if sys.version_info[0] == 2 + else self.subnet_id + ) oprot.writeFieldEnd() if self.user is not None: - oprot.writeFieldBegin('user', TType.STRING, 6) - oprot.writeString(self.user.encode('utf-8') if sys.version_info[0] == 2 else self.user) + oprot.writeFieldBegin("user", TType.STRING, 6) + oprot.writeString( + self.user.encode("utf-8") if sys.version_info[0] == 2 else self.user + ) oprot.writeFieldEnd() if self.inst_counter is not None: - oprot.writeFieldBegin('inst_counter', TType.I32, 7) + oprot.writeFieldBegin("inst_counter", TType.I32, 7) oprot.writeI32(self.inst_counter) oprot.writeFieldEnd() if self.cluster_id is not None: - oprot.writeFieldBegin('cluster_id', TType.STRING, 8) - oprot.writeString(self.cluster_id.encode('utf-8') if sys.version_info[0] == 2 else self.cluster_id) + oprot.writeFieldBegin("cluster_id", TType.STRING, 8) + oprot.writeString( + self.cluster_id.encode("utf-8") + if sys.version_info[0] == 2 + else self.cluster_id + ) oprot.writeFieldEnd() if self.key_name is not None: - oprot.writeFieldBegin('key_name', TType.STRING, 9) - oprot.writeString(self.key_name.encode('utf-8') if sys.version_info[0] == 2 else self.key_name) + oprot.writeFieldBegin("key_name", TType.STRING, 9) + oprot.writeString( + self.key_name.encode("utf-8") + if sys.version_info[0] == 2 + else self.key_name + ) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -251,9 +377,8 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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__ @@ -274,8 +399,15 @@ class Volume(object): """ - - def __init__(self, id=None, name=None, description=None, status=None, created_at=None, device=None,): + def __init__( + self, + id=None, + name=None, + description=None, + status=None, + created_at=None, + device=None, + ): self.id = id self.name = name self.description = description @@ -284,7 +416,11 @@ def __init__(self, id=None, name=None, description=None, status=None, created_at self.device = device def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -294,32 +430,56 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.id = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.name = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.description = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.description = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.status = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.status = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.created_at = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.created_at = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: - self.device = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.device = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) else: @@ -329,32 +489,50 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('Volume') + oprot.writeStructBegin("Volume") if self.id is not None: - oprot.writeFieldBegin('id', TType.STRING, 1) - oprot.writeString(self.id.encode('utf-8') if sys.version_info[0] == 2 else self.id) + oprot.writeFieldBegin("id", TType.STRING, 1) + oprot.writeString( + self.id.encode("utf-8") if sys.version_info[0] == 2 else self.id + ) oprot.writeFieldEnd() if self.name is not None: - oprot.writeFieldBegin('name', TType.STRING, 2) - oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name) + oprot.writeFieldBegin("name", TType.STRING, 2) + oprot.writeString( + self.name.encode("utf-8") if sys.version_info[0] == 2 else self.name + ) oprot.writeFieldEnd() if self.description is not None: - oprot.writeFieldBegin('description', TType.STRING, 3) - oprot.writeString(self.description.encode('utf-8') if sys.version_info[0] == 2 else self.description) + oprot.writeFieldBegin("description", TType.STRING, 3) + oprot.writeString( + self.description.encode("utf-8") + if sys.version_info[0] == 2 + else self.description + ) oprot.writeFieldEnd() if self.status is not None: - oprot.writeFieldBegin('status', TType.STRING, 4) - oprot.writeString(self.status.encode('utf-8') if sys.version_info[0] == 2 else self.status) + oprot.writeFieldBegin("status", TType.STRING, 4) + oprot.writeString( + self.status.encode("utf-8") if sys.version_info[0] == 2 else self.status + ) oprot.writeFieldEnd() if self.created_at is not None: - oprot.writeFieldBegin('created_at', TType.STRING, 5) - oprot.writeString(self.created_at.encode('utf-8') if sys.version_info[0] == 2 else self.created_at) + oprot.writeFieldBegin("created_at", TType.STRING, 5) + oprot.writeString( + self.created_at.encode("utf-8") + if sys.version_info[0] == 2 + else self.created_at + ) oprot.writeFieldEnd() if self.device is not None: - oprot.writeFieldBegin('device', TType.STRING, 6) - oprot.writeString(self.device.encode('utf-8') if sys.version_info[0] == 2 else self.device) + oprot.writeFieldBegin("device", TType.STRING, 6) + oprot.writeString( + self.device.encode("utf-8") if sys.version_info[0] == 2 else self.device + ) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -363,9 +541,8 @@ def validate(self): return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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__ @@ -389,8 +566,16 @@ class Flavor(object): """ - - def __init__(self, vcpus=None, ram=None, disk=None, name=None, openstack_id=None, description=None, tags=None,): + def __init__( + self, + vcpus=None, + ram=None, + disk=None, + name=None, + openstack_id=None, + description=None, + tags=None, + ): self.vcpus = vcpus self.ram = ram self.disk = disk @@ -400,7 +585,11 @@ def __init__(self, vcpus=None, ram=None, disk=None, name=None, openstack_id=None self.tags = tags def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -425,17 +614,29 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.name = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.openstack_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.openstack_id = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: - self.description = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.description = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 7: @@ -443,7 +644,11 @@ def read(self, iprot): self.tags = [] (_etype3, _size0) = iprot.readListBegin() for _i4 in range(_size0): - _elem5 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _elem5 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) self.tags.append(_elem5) iprot.readListEnd() else: @@ -455,38 +660,52 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('Flavor') + oprot.writeStructBegin("Flavor") if self.vcpus is not None: - oprot.writeFieldBegin('vcpus', TType.I32, 1) + oprot.writeFieldBegin("vcpus", TType.I32, 1) oprot.writeI32(self.vcpus) oprot.writeFieldEnd() if self.ram is not None: - oprot.writeFieldBegin('ram', TType.I32, 2) + oprot.writeFieldBegin("ram", TType.I32, 2) oprot.writeI32(self.ram) oprot.writeFieldEnd() if self.disk is not None: - oprot.writeFieldBegin('disk', TType.I32, 3) + oprot.writeFieldBegin("disk", TType.I32, 3) oprot.writeI32(self.disk) oprot.writeFieldEnd() if self.name is not None: - oprot.writeFieldBegin('name', TType.STRING, 4) - oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name) + oprot.writeFieldBegin("name", TType.STRING, 4) + oprot.writeString( + self.name.encode("utf-8") if sys.version_info[0] == 2 else self.name + ) oprot.writeFieldEnd() if self.openstack_id is not None: - oprot.writeFieldBegin('openstack_id', TType.STRING, 5) - oprot.writeString(self.openstack_id.encode('utf-8') if sys.version_info[0] == 2 else self.openstack_id) + oprot.writeFieldBegin("openstack_id", TType.STRING, 5) + oprot.writeString( + self.openstack_id.encode("utf-8") + if sys.version_info[0] == 2 + else self.openstack_id + ) oprot.writeFieldEnd() if self.description is not None: - oprot.writeFieldBegin('description', TType.STRING, 6) - oprot.writeString(self.description.encode('utf-8') if sys.version_info[0] == 2 else self.description) + oprot.writeFieldBegin("description", TType.STRING, 6) + oprot.writeString( + self.description.encode("utf-8") + if sys.version_info[0] == 2 + else self.description + ) oprot.writeFieldEnd() if self.tags is not None: - oprot.writeFieldBegin('tags', TType.LIST, 7) + oprot.writeFieldBegin("tags", TType.LIST, 7) oprot.writeListBegin(TType.STRING, len(self.tags)) for iter6 in self.tags: - oprot.writeString(iter6.encode('utf-8') if sys.version_info[0] == 2 else iter6) + oprot.writeString( + iter6.encode("utf-8") if sys.version_info[0] == 2 else iter6 + ) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -494,23 +713,22 @@ def write(self, oprot): def validate(self): if self.vcpus is None: - raise TProtocolException(message='Required field vcpus is unset!') + raise TProtocolException(message="Required field vcpus is unset!") if self.ram is None: - raise TProtocolException(message='Required field ram is unset!') + raise TProtocolException(message="Required field ram is unset!") if self.disk is None: - raise TProtocolException(message='Required field disk is unset!') + raise TProtocolException(message="Required field disk is unset!") if self.name is None: - raise TProtocolException(message='Required field name is unset!') + raise TProtocolException(message="Required field name is unset!") if self.openstack_id is None: - raise TProtocolException(message='Required field openstack_id is unset!') + raise TProtocolException(message="Required field openstack_id is unset!") if self.tags is None: - raise TProtocolException(message='Required field tags is unset!') + raise TProtocolException(message="Required field tags is unset!") return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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__ @@ -537,8 +755,19 @@ class Image(object): """ - - def __init__(self, name=None, min_disk=None, min_ram=None, status=None, created_at=None, updated_at=None, openstack_id=None, description=None, tag=None, is_snapshot=None,): + def __init__( + self, + name=None, + min_disk=None, + min_ram=None, + status=None, + created_at=None, + updated_at=None, + openstack_id=None, + description=None, + tag=None, + is_snapshot=None, + ): self.name = name self.min_disk = min_disk self.min_ram = min_ram @@ -551,7 +780,11 @@ def __init__(self, name=None, min_disk=None, min_ram=None, status=None, created_ self.is_snapshot = is_snapshot def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -561,7 +794,11 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.name = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 2: @@ -576,27 +813,47 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.status = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.status = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.created_at = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.created_at = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: - self.updated_at = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.updated_at = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 7: if ftype == TType.STRING: - self.openstack_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.openstack_id = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 8: if ftype == TType.STRING: - self.description = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.description = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 9: @@ -604,7 +861,11 @@ def read(self, iprot): self.tag = [] (_etype10, _size7) = iprot.readListBegin() for _i11 in range(_size7): - _elem12 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _elem12 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) self.tag.append(_elem12) iprot.readListEnd() else: @@ -621,50 +882,74 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('Image') + oprot.writeStructBegin("Image") if self.name is not None: - oprot.writeFieldBegin('name', TType.STRING, 1) - oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name) + oprot.writeFieldBegin("name", TType.STRING, 1) + oprot.writeString( + self.name.encode("utf-8") if sys.version_info[0] == 2 else self.name + ) oprot.writeFieldEnd() if self.min_disk is not None: - oprot.writeFieldBegin('min_disk', TType.I32, 2) + oprot.writeFieldBegin("min_disk", TType.I32, 2) oprot.writeI32(self.min_disk) oprot.writeFieldEnd() if self.min_ram is not None: - oprot.writeFieldBegin('min_ram', TType.I32, 3) + oprot.writeFieldBegin("min_ram", TType.I32, 3) oprot.writeI32(self.min_ram) oprot.writeFieldEnd() if self.status is not None: - oprot.writeFieldBegin('status', TType.STRING, 4) - oprot.writeString(self.status.encode('utf-8') if sys.version_info[0] == 2 else self.status) + oprot.writeFieldBegin("status", TType.STRING, 4) + oprot.writeString( + self.status.encode("utf-8") if sys.version_info[0] == 2 else self.status + ) oprot.writeFieldEnd() if self.created_at is not None: - oprot.writeFieldBegin('created_at', TType.STRING, 5) - oprot.writeString(self.created_at.encode('utf-8') if sys.version_info[0] == 2 else self.created_at) + oprot.writeFieldBegin("created_at", TType.STRING, 5) + oprot.writeString( + self.created_at.encode("utf-8") + if sys.version_info[0] == 2 + else self.created_at + ) oprot.writeFieldEnd() if self.updated_at is not None: - oprot.writeFieldBegin('updated_at', TType.STRING, 6) - oprot.writeString(self.updated_at.encode('utf-8') if sys.version_info[0] == 2 else self.updated_at) + oprot.writeFieldBegin("updated_at", TType.STRING, 6) + oprot.writeString( + self.updated_at.encode("utf-8") + if sys.version_info[0] == 2 + else self.updated_at + ) oprot.writeFieldEnd() if self.openstack_id is not None: - oprot.writeFieldBegin('openstack_id', TType.STRING, 7) - oprot.writeString(self.openstack_id.encode('utf-8') if sys.version_info[0] == 2 else self.openstack_id) + oprot.writeFieldBegin("openstack_id", TType.STRING, 7) + oprot.writeString( + self.openstack_id.encode("utf-8") + if sys.version_info[0] == 2 + else self.openstack_id + ) oprot.writeFieldEnd() if self.description is not None: - oprot.writeFieldBegin('description', TType.STRING, 8) - oprot.writeString(self.description.encode('utf-8') if sys.version_info[0] == 2 else self.description) + oprot.writeFieldBegin("description", TType.STRING, 8) + oprot.writeString( + self.description.encode("utf-8") + if sys.version_info[0] == 2 + else self.description + ) oprot.writeFieldEnd() if self.tag is not None: - oprot.writeFieldBegin('tag', TType.LIST, 9) + oprot.writeFieldBegin("tag", TType.LIST, 9) oprot.writeListBegin(TType.STRING, len(self.tag)) for iter13 in self.tag: - oprot.writeString(iter13.encode('utf-8') if sys.version_info[0] == 2 else iter13) + oprot.writeString( + iter13.encode("utf-8") if sys.version_info[0] == 2 else iter13 + ) oprot.writeListEnd() oprot.writeFieldEnd() if self.is_snapshot is not None: - oprot.writeFieldBegin('is_snapshot', TType.BOOL, 10) + oprot.writeFieldBegin("is_snapshot", TType.BOOL, 10) oprot.writeBool(self.is_snapshot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -672,23 +957,22 @@ def write(self, oprot): def validate(self): if self.name is None: - raise TProtocolException(message='Required field name is unset!') + raise TProtocolException(message="Required field name is unset!") if self.min_disk is None: - raise TProtocolException(message='Required field min_disk is unset!') + raise TProtocolException(message="Required field min_disk is unset!") if self.min_ram is None: - raise TProtocolException(message='Required field min_ram is unset!') + raise TProtocolException(message="Required field min_ram is unset!") if self.status is None: - raise TProtocolException(message='Required field status is unset!') + raise TProtocolException(message="Required field status is unset!") if self.openstack_id is None: - raise TProtocolException(message='Required field openstack_id is unset!') + raise TProtocolException(message="Required field openstack_id is unset!") if self.tag is None: - raise TProtocolException(message='Required field tag is unset!') + raise TProtocolException(message="Required field tag is unset!") return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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__ @@ -718,8 +1002,22 @@ class VM(object): """ - - def __init__(self, flav=None, img=None, status=None, metadata=None, project_id=None, keyname=None, openstack_id=None, name=None, created_at=None, floating_ip=None, fixed_ip=None, diskspace=None, volume_id=None,): + def __init__( + self, + flav=None, + img=None, + status=None, + metadata=None, + project_id=None, + keyname=None, + openstack_id=None, + name=None, + created_at=None, + floating_ip=None, + fixed_ip=None, + diskspace=None, + volume_id=None, + ): self.flav = flav self.img = img self.status = status @@ -735,7 +1033,11 @@ def __init__(self, flav=None, img=None, status=None, metadata=None, project_id=N self.volume_id = volume_id def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -757,7 +1059,11 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.status = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.status = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 4: @@ -765,45 +1071,81 @@ def read(self, iprot): self.metadata = {} (_ktype15, _vtype16, _size14) = iprot.readMapBegin() for _i18 in range(_size14): - _key19 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() - _val20 = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + _key19 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) + _val20 = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) self.metadata[_key19] = _val20 iprot.readMapEnd() else: iprot.skip(ftype) elif fid == 5: if ftype == TType.STRING: - self.project_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.project_id = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 6: if ftype == TType.STRING: - self.keyname = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.keyname = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 7: if ftype == TType.STRING: - self.openstack_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.openstack_id = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 8: if ftype == TType.STRING: - self.name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.name = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 9: if ftype == TType.STRING: - self.created_at = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.created_at = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 10: if ftype == TType.STRING: - self.floating_ip = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.floating_ip = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 11: if ftype == TType.STRING: - self.fixed_ip = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.fixed_ip = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 12: @@ -813,7 +1155,11 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 13: if ftype == TType.STRING: - self.volume_id = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.volume_id = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) else: @@ -823,91 +1169,128 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('VM') + oprot.writeStructBegin("VM") if self.flav is not None: - oprot.writeFieldBegin('flav', TType.STRUCT, 1) + oprot.writeFieldBegin("flav", TType.STRUCT, 1) self.flav.write(oprot) oprot.writeFieldEnd() if self.img is not None: - oprot.writeFieldBegin('img', TType.STRUCT, 2) + oprot.writeFieldBegin("img", TType.STRUCT, 2) self.img.write(oprot) oprot.writeFieldEnd() if self.status is not None: - oprot.writeFieldBegin('status', TType.STRING, 3) - oprot.writeString(self.status.encode('utf-8') if sys.version_info[0] == 2 else self.status) + oprot.writeFieldBegin("status", TType.STRING, 3) + oprot.writeString( + self.status.encode("utf-8") if sys.version_info[0] == 2 else self.status + ) oprot.writeFieldEnd() if self.metadata is not None: - oprot.writeFieldBegin('metadata', TType.MAP, 4) + oprot.writeFieldBegin("metadata", TType.MAP, 4) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.metadata)) for kiter21, viter22 in self.metadata.items(): - oprot.writeString(kiter21.encode('utf-8') if sys.version_info[0] == 2 else kiter21) - oprot.writeString(viter22.encode('utf-8') if sys.version_info[0] == 2 else viter22) + oprot.writeString( + kiter21.encode("utf-8") if sys.version_info[0] == 2 else kiter21 + ) + oprot.writeString( + viter22.encode("utf-8") if sys.version_info[0] == 2 else viter22 + ) oprot.writeMapEnd() oprot.writeFieldEnd() if self.project_id is not None: - oprot.writeFieldBegin('project_id', TType.STRING, 5) - oprot.writeString(self.project_id.encode('utf-8') if sys.version_info[0] == 2 else self.project_id) + oprot.writeFieldBegin("project_id", TType.STRING, 5) + oprot.writeString( + self.project_id.encode("utf-8") + if sys.version_info[0] == 2 + else self.project_id + ) oprot.writeFieldEnd() if self.keyname is not None: - oprot.writeFieldBegin('keyname', TType.STRING, 6) - oprot.writeString(self.keyname.encode('utf-8') if sys.version_info[0] == 2 else self.keyname) + oprot.writeFieldBegin("keyname", TType.STRING, 6) + oprot.writeString( + self.keyname.encode("utf-8") + if sys.version_info[0] == 2 + else self.keyname + ) oprot.writeFieldEnd() if self.openstack_id is not None: - oprot.writeFieldBegin('openstack_id', TType.STRING, 7) - oprot.writeString(self.openstack_id.encode('utf-8') if sys.version_info[0] == 2 else self.openstack_id) + oprot.writeFieldBegin("openstack_id", TType.STRING, 7) + oprot.writeString( + self.openstack_id.encode("utf-8") + if sys.version_info[0] == 2 + else self.openstack_id + ) oprot.writeFieldEnd() if self.name is not None: - oprot.writeFieldBegin('name', TType.STRING, 8) - oprot.writeString(self.name.encode('utf-8') if sys.version_info[0] == 2 else self.name) + oprot.writeFieldBegin("name", TType.STRING, 8) + oprot.writeString( + self.name.encode("utf-8") if sys.version_info[0] == 2 else self.name + ) oprot.writeFieldEnd() if self.created_at is not None: - oprot.writeFieldBegin('created_at', TType.STRING, 9) - oprot.writeString(self.created_at.encode('utf-8') if sys.version_info[0] == 2 else self.created_at) + oprot.writeFieldBegin("created_at", TType.STRING, 9) + oprot.writeString( + self.created_at.encode("utf-8") + if sys.version_info[0] == 2 + else self.created_at + ) oprot.writeFieldEnd() if self.floating_ip is not None: - oprot.writeFieldBegin('floating_ip', TType.STRING, 10) - oprot.writeString(self.floating_ip.encode('utf-8') if sys.version_info[0] == 2 else self.floating_ip) + oprot.writeFieldBegin("floating_ip", TType.STRING, 10) + oprot.writeString( + self.floating_ip.encode("utf-8") + if sys.version_info[0] == 2 + else self.floating_ip + ) oprot.writeFieldEnd() if self.fixed_ip is not None: - oprot.writeFieldBegin('fixed_ip', TType.STRING, 11) - oprot.writeString(self.fixed_ip.encode('utf-8') if sys.version_info[0] == 2 else self.fixed_ip) + oprot.writeFieldBegin("fixed_ip", TType.STRING, 11) + oprot.writeString( + self.fixed_ip.encode("utf-8") + if sys.version_info[0] == 2 + else self.fixed_ip + ) oprot.writeFieldEnd() if self.diskspace is not None: - oprot.writeFieldBegin('diskspace', TType.I32, 12) + oprot.writeFieldBegin("diskspace", TType.I32, 12) oprot.writeI32(self.diskspace) oprot.writeFieldEnd() if self.volume_id is not None: - oprot.writeFieldBegin('volume_id', TType.STRING, 13) - oprot.writeString(self.volume_id.encode('utf-8') if sys.version_info[0] == 2 else self.volume_id) + oprot.writeFieldBegin("volume_id", TType.STRING, 13) + oprot.writeString( + self.volume_id.encode("utf-8") + if sys.version_info[0] == 2 + else self.volume_id + ) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): if self.flav is None: - raise TProtocolException(message='Required field flav is unset!') + raise TProtocolException(message="Required field flav is unset!") if self.img is None: - raise TProtocolException(message='Required field img is unset!') + raise TProtocolException(message="Required field img is unset!") if self.status is None: - raise TProtocolException(message='Required field status is unset!') + raise TProtocolException(message="Required field status is unset!") if self.keyname is None: - raise TProtocolException(message='Required field keyname is unset!') + raise TProtocolException(message="Required field keyname is unset!") if self.openstack_id is None: - raise TProtocolException(message='Required field openstack_id is unset!') + raise TProtocolException(message="Required field openstack_id is unset!") if self.name is None: - raise TProtocolException(message='Required field name is unset!') + raise TProtocolException(message="Required field name is unset!") if self.created_at is None: - raise TProtocolException(message='Required field created_at is unset!') + raise TProtocolException(message="Required field created_at is unset!") if self.fixed_ip is None: - raise TProtocolException(message='Required field fixed_ip is unset!') + raise TProtocolException(message="Required field fixed_ip is unset!") return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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__ @@ -925,14 +1308,19 @@ class ClusterInstance(object): """ - - def __init__(self, type=None, image=None, count=None,): + def __init__( + self, type=None, image=None, count=None, + ): self.type = type self.image = image self.count = count def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -942,12 +1330,20 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.type = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.type = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.image = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.image = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 3: @@ -962,19 +1358,25 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('ClusterInstance') + oprot.writeStructBegin("ClusterInstance") if self.type is not None: - oprot.writeFieldBegin('type', TType.STRING, 1) - oprot.writeString(self.type.encode('utf-8') if sys.version_info[0] == 2 else self.type) + oprot.writeFieldBegin("type", TType.STRING, 1) + oprot.writeString( + self.type.encode("utf-8") if sys.version_info[0] == 2 else self.type + ) oprot.writeFieldEnd() if self.image is not None: - oprot.writeFieldBegin('image', TType.STRING, 2) - oprot.writeString(self.image.encode('utf-8') if sys.version_info[0] == 2 else self.image) + oprot.writeFieldBegin("image", TType.STRING, 2) + oprot.writeString( + self.image.encode("utf-8") if sys.version_info[0] == 2 else self.image + ) oprot.writeFieldEnd() if self.count is not None: - oprot.writeFieldBegin('count', TType.I32, 3) + oprot.writeFieldBegin("count", TType.I32, 3) oprot.writeI32(self.count) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -982,15 +1384,14 @@ def write(self, oprot): def validate(self): if self.type is None: - raise TProtocolException(message='Required field type is unset!') + raise TProtocolException(message="Required field type is unset!") if self.image is None: - raise TProtocolException(message='Required field image is unset!') + raise TProtocolException(message="Required field image is unset!") return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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__ @@ -1010,14 +1411,19 @@ class PlaybookResult(object): """ - - def __init__(self, status=None, stdout=None, stderr=None,): + def __init__( + self, status=None, stdout=None, stderr=None, + ): self.status = status self.stdout = stdout self.stderr = stderr def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -1032,12 +1438,20 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.stdout = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.stdout = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.stderr = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.stderr = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) else: @@ -1047,37 +1461,42 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('PlaybookResult') + oprot.writeStructBegin("PlaybookResult") if self.status is not None: - oprot.writeFieldBegin('status', TType.I32, 1) + oprot.writeFieldBegin("status", TType.I32, 1) oprot.writeI32(self.status) oprot.writeFieldEnd() if self.stdout is not None: - oprot.writeFieldBegin('stdout', TType.STRING, 2) - oprot.writeString(self.stdout.encode('utf-8') if sys.version_info[0] == 2 else self.stdout) + oprot.writeFieldBegin("stdout", TType.STRING, 2) + oprot.writeString( + self.stdout.encode("utf-8") if sys.version_info[0] == 2 else self.stdout + ) oprot.writeFieldEnd() if self.stderr is not None: - oprot.writeFieldBegin('stderr', TType.STRING, 3) - oprot.writeString(self.stderr.encode('utf-8') if sys.version_info[0] == 2 else self.stderr) + oprot.writeFieldBegin("stderr", TType.STRING, 3) + oprot.writeString( + self.stderr.encode("utf-8") if sys.version_info[0] == 2 else self.stderr + ) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): if self.status is None: - raise TProtocolException(message='Required field status is unset!') + raise TProtocolException(message="Required field status is unset!") if self.stdout is None: - raise TProtocolException(message='Required field stdout is unset!') + raise TProtocolException(message="Required field stdout is unset!") if self.stderr is None: - raise TProtocolException(message='Required field stderr is unset!') + raise TProtocolException(message="Required field stderr is unset!") return def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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__ @@ -1093,12 +1512,17 @@ class otherException(TException): """ - - def __init__(self, Reason=None,): + def __init__( + self, Reason=None, + ): self.Reason = Reason def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -1108,7 +1532,11 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.Reason = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.Reason = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) else: @@ -1118,12 +1546,16 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('otherException') + oprot.writeStructBegin("otherException") if self.Reason is not None: - oprot.writeFieldBegin('Reason', TType.STRING, 1) - oprot.writeString(self.Reason.encode('utf-8') if sys.version_info[0] == 2 else self.Reason) + oprot.writeFieldBegin("Reason", TType.STRING, 1) + oprot.writeString( + self.Reason.encode("utf-8") if sys.version_info[0] == 2 else self.Reason + ) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -1135,9 +1567,8 @@ def __str__(self): return repr(self) def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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__ @@ -1153,12 +1584,17 @@ class ressourceException(TException): """ - - def __init__(self, Reason=None,): + def __init__( + self, Reason=None, + ): self.Reason = Reason def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -1168,7 +1604,11 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.Reason = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.Reason = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) else: @@ -1178,12 +1618,16 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('ressourceException') + oprot.writeStructBegin("ressourceException") if self.Reason is not None: - oprot.writeFieldBegin('Reason', TType.STRING, 1) - oprot.writeString(self.Reason.encode('utf-8') if sys.version_info[0] == 2 else self.Reason) + oprot.writeFieldBegin("Reason", TType.STRING, 1) + oprot.writeString( + self.Reason.encode("utf-8") if sys.version_info[0] == 2 else self.Reason + ) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -1195,9 +1639,8 @@ def __str__(self): return repr(self) def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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__ @@ -1213,12 +1656,17 @@ class nameException(TException): """ - - def __init__(self, Reason=None,): + def __init__( + self, Reason=None, + ): self.Reason = Reason def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -1228,7 +1676,11 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.Reason = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.Reason = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) else: @@ -1238,12 +1690,16 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('nameException') + oprot.writeStructBegin("nameException") if self.Reason is not None: - oprot.writeFieldBegin('Reason', TType.STRING, 1) - oprot.writeString(self.Reason.encode('utf-8') if sys.version_info[0] == 2 else self.Reason) + oprot.writeFieldBegin("Reason", TType.STRING, 1) + oprot.writeString( + self.Reason.encode("utf-8") if sys.version_info[0] == 2 else self.Reason + ) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -1255,9 +1711,8 @@ def __str__(self): return repr(self) def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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__ @@ -1273,12 +1728,17 @@ class serverNotFoundException(TException): """ - - def __init__(self, Reason=None,): + def __init__( + self, Reason=None, + ): self.Reason = Reason def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -1288,7 +1748,11 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.Reason = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.Reason = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) else: @@ -1298,12 +1762,16 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('serverNotFoundException') + oprot.writeStructBegin("serverNotFoundException") if self.Reason is not None: - oprot.writeFieldBegin('Reason', TType.STRING, 1) - oprot.writeString(self.Reason.encode('utf-8') if sys.version_info[0] == 2 else self.Reason) + oprot.writeFieldBegin("Reason", TType.STRING, 1) + oprot.writeString( + self.Reason.encode("utf-8") if sys.version_info[0] == 2 else self.Reason + ) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -1315,9 +1783,8 @@ def __str__(self): return repr(self) def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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__ @@ -1333,12 +1800,17 @@ class networkNotFoundException(TException): """ - - def __init__(self, Reason=None,): + def __init__( + self, Reason=None, + ): self.Reason = Reason def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -1348,7 +1820,11 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.Reason = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.Reason = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) else: @@ -1358,12 +1834,16 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('networkNotFoundException') + oprot.writeStructBegin("networkNotFoundException") if self.Reason is not None: - oprot.writeFieldBegin('Reason', TType.STRING, 1) - oprot.writeString(self.Reason.encode('utf-8') if sys.version_info[0] == 2 else self.Reason) + oprot.writeFieldBegin("Reason", TType.STRING, 1) + oprot.writeString( + self.Reason.encode("utf-8") if sys.version_info[0] == 2 else self.Reason + ) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -1375,9 +1855,8 @@ def __str__(self): return repr(self) def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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__ @@ -1393,12 +1872,17 @@ class imageNotFoundException(TException): """ - - def __init__(self, Reason=None,): + def __init__( + self, Reason=None, + ): self.Reason = Reason def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -1408,7 +1892,11 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.Reason = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.Reason = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) else: @@ -1418,12 +1906,16 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('imageNotFoundException') + oprot.writeStructBegin("imageNotFoundException") if self.Reason is not None: - oprot.writeFieldBegin('Reason', TType.STRING, 1) - oprot.writeString(self.Reason.encode('utf-8') if sys.version_info[0] == 2 else self.Reason) + oprot.writeFieldBegin("Reason", TType.STRING, 1) + oprot.writeString( + self.Reason.encode("utf-8") if sys.version_info[0] == 2 else self.Reason + ) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -1435,9 +1927,8 @@ def __str__(self): return repr(self) def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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__ @@ -1453,12 +1944,17 @@ class flavorNotFoundException(TException): """ - - def __init__(self, Reason=None,): + def __init__( + self, Reason=None, + ): self.Reason = Reason def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -1468,7 +1964,11 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.Reason = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.Reason = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) else: @@ -1478,12 +1978,16 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('flavorNotFoundException') + oprot.writeStructBegin("flavorNotFoundException") if self.Reason is not None: - oprot.writeFieldBegin('Reason', TType.STRING, 1) - oprot.writeString(self.Reason.encode('utf-8') if sys.version_info[0] == 2 else self.Reason) + oprot.writeFieldBegin("Reason", TType.STRING, 1) + oprot.writeString( + self.Reason.encode("utf-8") if sys.version_info[0] == 2 else self.Reason + ) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -1495,9 +1999,8 @@ def __str__(self): return repr(self) def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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__ @@ -1515,12 +2018,17 @@ class authenticationException(TException): """ - - def __init__(self, Reason=None,): + def __init__( + self, Reason=None, + ): self.Reason = Reason def read(self, iprot): - if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: + if ( + iprot._fast_decode is not None + and isinstance(iprot.trans, TTransport.CReadableTransport) + and self.thrift_spec is not None + ): iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() @@ -1530,7 +2038,11 @@ def read(self, iprot): break if fid == 1: if ftype == TType.STRING: - self.Reason = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() + self.Reason = ( + iprot.readString().decode("utf-8") + if sys.version_info[0] == 2 + else iprot.readString() + ) else: iprot.skip(ftype) else: @@ -1540,12 +2052,16 @@ def read(self, iprot): def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: - oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) + oprot.trans.write( + oprot._fast_encode(self, [self.__class__, self.thrift_spec]) + ) return - oprot.writeStructBegin('authenticationException') + oprot.writeStructBegin("authenticationException") if self.Reason is not None: - oprot.writeFieldBegin('Reason', TType.STRING, 1) - oprot.writeString(self.Reason.encode('utf-8') if sys.version_info[0] == 2 else self.Reason) + oprot.writeFieldBegin("Reason", TType.STRING, 1) + oprot.writeString( + self.Reason.encode("utf-8") if sys.version_info[0] == 2 else self.Reason + ) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -1557,142 +2073,149 @@ def __str__(self): return repr(self) def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.items()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + 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) + + all_structs.append(Backend) Backend.thrift_spec = ( None, # 0 - (1, TType.I64, 'id', None, None, ), # 1 - (2, TType.STRING, 'owner', 'UTF8', None, ), # 2 - (3, TType.STRING, 'location_url', 'UTF8', None, ), # 3 - (4, TType.STRING, 'template', 'UTF8', None, ), # 4 - (5, TType.STRING, 'template_version', 'UTF8', None, ), # 5 + (1, TType.I64, "id", None, None,), # 1 + (2, TType.STRING, "owner", "UTF8", None,), # 2 + (3, TType.STRING, "location_url", "UTF8", None,), # 3 + (4, TType.STRING, "template", "UTF8", None,), # 4 + (5, TType.STRING, "template_version", "UTF8", None,), # 5 ) all_structs.append(ClusterInfo) ClusterInfo.thrift_spec = ( None, # 0 - (1, TType.STRING, 'launch_date', 'UTF8', None, ), # 1 - (2, TType.STRING, 'group_id', 'UTF8', None, ), # 2 - (3, TType.STRING, 'network_id', 'UTF8', None, ), # 3 - (4, TType.STRING, 'public_ip', 'UTF8', None, ), # 4 - (5, TType.STRING, 'subnet_id', 'UTF8', None, ), # 5 - (6, TType.STRING, 'user', 'UTF8', None, ), # 6 - (7, TType.I32, 'inst_counter', None, None, ), # 7 - (8, TType.STRING, 'cluster_id', 'UTF8', None, ), # 8 - (9, TType.STRING, 'key_name', 'UTF8', None, ), # 9 + (1, TType.STRING, "launch_date", "UTF8", None,), # 1 + (2, TType.STRING, "group_id", "UTF8", None,), # 2 + (3, TType.STRING, "network_id", "UTF8", None,), # 3 + (4, TType.STRING, "public_ip", "UTF8", None,), # 4 + (5, TType.STRING, "subnet_id", "UTF8", None,), # 5 + (6, TType.STRING, "user", "UTF8", None,), # 6 + (7, TType.I32, "inst_counter", None, None,), # 7 + (8, TType.STRING, "cluster_id", "UTF8", None,), # 8 + (9, TType.STRING, "key_name", "UTF8", None,), # 9 ) all_structs.append(Volume) Volume.thrift_spec = ( None, # 0 - (1, TType.STRING, 'id', 'UTF8', None, ), # 1 - (2, TType.STRING, 'name', 'UTF8', None, ), # 2 - (3, TType.STRING, 'description', 'UTF8', None, ), # 3 - (4, TType.STRING, 'status', 'UTF8', None, ), # 4 - (5, TType.STRING, 'created_at', 'UTF8', None, ), # 5 - (6, TType.STRING, 'device', 'UTF8', None, ), # 6 + (1, TType.STRING, "id", "UTF8", None,), # 1 + (2, TType.STRING, "name", "UTF8", None,), # 2 + (3, TType.STRING, "description", "UTF8", None,), # 3 + (4, TType.STRING, "status", "UTF8", None,), # 4 + (5, TType.STRING, "created_at", "UTF8", None,), # 5 + (6, TType.STRING, "device", "UTF8", None,), # 6 ) all_structs.append(Flavor) Flavor.thrift_spec = ( None, # 0 - (1, TType.I32, 'vcpus', None, None, ), # 1 - (2, TType.I32, 'ram', None, None, ), # 2 - (3, TType.I32, 'disk', None, None, ), # 3 - (4, TType.STRING, 'name', 'UTF8', None, ), # 4 - (5, TType.STRING, 'openstack_id', 'UTF8', None, ), # 5 - (6, TType.STRING, 'description', 'UTF8', None, ), # 6 - (7, TType.LIST, 'tags', (TType.STRING, 'UTF8', False), None, ), # 7 + (1, TType.I32, "vcpus", None, None,), # 1 + (2, TType.I32, "ram", None, None,), # 2 + (3, TType.I32, "disk", None, None,), # 3 + (4, TType.STRING, "name", "UTF8", None,), # 4 + (5, TType.STRING, "openstack_id", "UTF8", None,), # 5 + (6, TType.STRING, "description", "UTF8", None,), # 6 + (7, TType.LIST, "tags", (TType.STRING, "UTF8", False), None,), # 7 ) all_structs.append(Image) Image.thrift_spec = ( None, # 0 - (1, TType.STRING, 'name', 'UTF8', None, ), # 1 - (2, TType.I32, 'min_disk', None, None, ), # 2 - (3, TType.I32, 'min_ram', None, None, ), # 3 - (4, TType.STRING, 'status', 'UTF8', None, ), # 4 - (5, TType.STRING, 'created_at', 'UTF8', None, ), # 5 - (6, TType.STRING, 'updated_at', 'UTF8', None, ), # 6 - (7, TType.STRING, 'openstack_id', 'UTF8', None, ), # 7 - (8, TType.STRING, 'description', 'UTF8', None, ), # 8 - (9, TType.LIST, 'tag', (TType.STRING, 'UTF8', False), None, ), # 9 - (10, TType.BOOL, 'is_snapshot', None, None, ), # 10 + (1, TType.STRING, "name", "UTF8", None,), # 1 + (2, TType.I32, "min_disk", None, None,), # 2 + (3, TType.I32, "min_ram", None, None,), # 3 + (4, TType.STRING, "status", "UTF8", None,), # 4 + (5, TType.STRING, "created_at", "UTF8", None,), # 5 + (6, TType.STRING, "updated_at", "UTF8", None,), # 6 + (7, TType.STRING, "openstack_id", "UTF8", None,), # 7 + (8, TType.STRING, "description", "UTF8", None,), # 8 + (9, TType.LIST, "tag", (TType.STRING, "UTF8", False), None,), # 9 + (10, TType.BOOL, "is_snapshot", None, None,), # 10 ) all_structs.append(VM) VM.thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'flav', [Flavor, None], None, ), # 1 - (2, TType.STRUCT, 'img', [Image, None], None, ), # 2 - (3, TType.STRING, 'status', 'UTF8', None, ), # 3 - (4, TType.MAP, 'metadata', (TType.STRING, 'UTF8', TType.STRING, 'UTF8', False), None, ), # 4 - (5, TType.STRING, 'project_id', 'UTF8', None, ), # 5 - (6, TType.STRING, 'keyname', 'UTF8', None, ), # 6 - (7, TType.STRING, 'openstack_id', 'UTF8', None, ), # 7 - (8, TType.STRING, 'name', 'UTF8', None, ), # 8 - (9, TType.STRING, 'created_at', 'UTF8', None, ), # 9 - (10, TType.STRING, 'floating_ip', 'UTF8', None, ), # 10 - (11, TType.STRING, 'fixed_ip', 'UTF8', None, ), # 11 - (12, TType.I32, 'diskspace', None, None, ), # 12 - (13, TType.STRING, 'volume_id', 'UTF8', None, ), # 13 + (1, TType.STRUCT, "flav", [Flavor, None], None,), # 1 + (2, TType.STRUCT, "img", [Image, None], None,), # 2 + (3, TType.STRING, "status", "UTF8", None,), # 3 + ( + 4, + TType.MAP, + "metadata", + (TType.STRING, "UTF8", TType.STRING, "UTF8", False), + None, + ), # 4 + (5, TType.STRING, "project_id", "UTF8", None,), # 5 + (6, TType.STRING, "keyname", "UTF8", None,), # 6 + (7, TType.STRING, "openstack_id", "UTF8", None,), # 7 + (8, TType.STRING, "name", "UTF8", None,), # 8 + (9, TType.STRING, "created_at", "UTF8", None,), # 9 + (10, TType.STRING, "floating_ip", "UTF8", None,), # 10 + (11, TType.STRING, "fixed_ip", "UTF8", None,), # 11 + (12, TType.I32, "diskspace", None, None,), # 12 + (13, TType.STRING, "volume_id", "UTF8", None,), # 13 ) all_structs.append(ClusterInstance) ClusterInstance.thrift_spec = ( None, # 0 - (1, TType.STRING, 'type', 'UTF8', None, ), # 1 - (2, TType.STRING, 'image', 'UTF8', None, ), # 2 - (3, TType.I32, 'count', None, None, ), # 3 + (1, TType.STRING, "type", "UTF8", None,), # 1 + (2, TType.STRING, "image", "UTF8", None,), # 2 + (3, TType.I32, "count", None, None,), # 3 ) all_structs.append(PlaybookResult) PlaybookResult.thrift_spec = ( None, # 0 - (1, TType.I32, 'status', None, None, ), # 1 - (2, TType.STRING, 'stdout', 'UTF8', None, ), # 2 - (3, TType.STRING, 'stderr', 'UTF8', None, ), # 3 + (1, TType.I32, "status", None, None,), # 1 + (2, TType.STRING, "stdout", "UTF8", None,), # 2 + (3, TType.STRING, "stderr", "UTF8", None,), # 3 ) all_structs.append(otherException) otherException.thrift_spec = ( None, # 0 - (1, TType.STRING, 'Reason', 'UTF8', None, ), # 1 + (1, TType.STRING, "Reason", "UTF8", None,), # 1 ) all_structs.append(ressourceException) ressourceException.thrift_spec = ( None, # 0 - (1, TType.STRING, 'Reason', 'UTF8', None, ), # 1 + (1, TType.STRING, "Reason", "UTF8", None,), # 1 ) all_structs.append(nameException) nameException.thrift_spec = ( None, # 0 - (1, TType.STRING, 'Reason', 'UTF8', None, ), # 1 + (1, TType.STRING, "Reason", "UTF8", None,), # 1 ) all_structs.append(serverNotFoundException) serverNotFoundException.thrift_spec = ( None, # 0 - (1, TType.STRING, 'Reason', 'UTF8', None, ), # 1 + (1, TType.STRING, "Reason", "UTF8", None,), # 1 ) all_structs.append(networkNotFoundException) networkNotFoundException.thrift_spec = ( None, # 0 - (1, TType.STRING, 'Reason', 'UTF8', None, ), # 1 + (1, TType.STRING, "Reason", "UTF8", None,), # 1 ) all_structs.append(imageNotFoundException) imageNotFoundException.thrift_spec = ( None, # 0 - (1, TType.STRING, 'Reason', 'UTF8', None, ), # 1 + (1, TType.STRING, "Reason", "UTF8", None,), # 1 ) all_structs.append(flavorNotFoundException) flavorNotFoundException.thrift_spec = ( None, # 0 - (1, TType.STRING, 'Reason', 'UTF8', None, ), # 1 + (1, TType.STRING, "Reason", "UTF8", None,), # 1 ) all_structs.append(authenticationException) authenticationException.thrift_spec = ( None, # 0 - (1, TType.STRING, 'Reason', 'UTF8', None, ), # 1 + (1, TType.STRING, "Reason", "UTF8", None,), # 1 ) fix_spec(all_structs) del all_structs From ab8b6d3f8fb8e6539498e334ff0bef57adacf028 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Mon, 13 Apr 2020 08:53:49 +0000 Subject: [PATCH 26/31] Bump deprecated from 1.2.8 to 1.2.9 Bumps [deprecated](https://github.com/tantale/deprecated) from 1.2.8 to 1.2.9. - [Release notes](https://github.com/tantale/deprecated/releases) - [Changelog](https://github.com/tantale/deprecated/blob/master/CHANGELOG.rst) - [Commits](https://github.com/tantale/deprecated/compare/v1.2.8...v1.2.9) Signed-off-by: dependabot-preview[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index c0ee764e..6ea0a90e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,7 +2,7 @@ setuptools==46.1.3 thrift >= 0.11.0,<0.20.0 python-keystoneclient openstacksdk ==0.46.0 -deprecated == 1.2.8 +deprecated == 1.2.9 Click==7.1.1 flake8==3.7.9 ansible==2.9.6 From 884e3d4c087063437cb6d18ea65750e780036881 Mon Sep 17 00:00:00 2001 From: David Weinholz Date: Tue, 14 Apr 2020 13:29:39 +0200 Subject: [PATCH 27/31] updated keys --- .../keys/localhost/server.pem | 88 ++++++++++--------- 1 file changed, 46 insertions(+), 42 deletions(-) diff --git a/VirtualMachineService/keys/localhost/server.pem b/VirtualMachineService/keys/localhost/server.pem index 6d8450fd..355ab421 100644 --- a/VirtualMachineService/keys/localhost/server.pem +++ b/VirtualMachineService/keys/localhost/server.pem @@ -1,45 +1,49 @@ - -----BEGIN CERTIFICATE----- -MIICpDCCAYwCCQDtWP54D1EuLTANBgkqhkiG9w0BAQsFADAUMRIwEAYDVQQDDAls -b2NhbGhvc3QwHhcNMTgwNDI1MTMwOTM3WhcNMjYwNzEyMTMwOTM3WjAUMRIwEAYD -VQQDDAlsb2NhbGhvc3QwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDz -nDzlJUUtV9mVKwzVF197DALocSnWD2JB14s+EGPCB6qKqfV/gCfzCNehRWKr1Bot -2o+SepZgmBvT4uM7iT/W4vH28NY3FlPPewqWoKJlBaRysdmOHGQWndJCZkkcDuSG -A+dHRS3dy2maNrK0dmfYAZx08N0AErHP2v1emoWw2MSoKM+A1vuJ+T/s5oMrkDaU -Y8XbldjoKFijfUFk7NJPKFwrGnW8n1ogR6yOnDa1SuX2r895WkX5Whqej4wzcThq -IRgltWNDujc9CWEfgq7yDMvEg2aB/I580pOpyTHWX1ysIzl5acKIxYzXaImpzvXi -99lrjxhUmWnqQrmTcHwZAgMBAAEwDQYJKoZIhvcNAQELBQADggEBAIutV/jdZAWa -2xi+BrKxONDJ/r/DdchRG5dBuW42N3fr8jENtRf2/h1PwuxduMix1Wo2WApYbrpe -tOQpzM1So9ZdL6Ba/r5JObPiWfXiWxnRFTAsTBJYMs5F1uuywvBSAf1pRLg4NHSg -VRRpG3znZTbV8GjbgVJQxoz/iPMO9nPt7sPXT7zsGUhLjn8AIsMMLJZ9ZNJWGt9X -x5n6qbtWVCxlAkR+uFFzESmMckv/nMZHCSk3Qs7+aMCrd2L2C4vrXUaxE3v86T5O -DZ1eY4s2suyKZvpz21rUykmWP3XYTDfaaCBVPF7zqWevQUjQln5dnYOHnR28o252 -1/sEn+oeyFA= +-----BEGIN CERTIFICATE----- +MIIDazCCAlOgAwIBAgIUH6tDIIYG2zDcJ4C8WXYFF3QAC2EwDQYJKoZIhvcNAQEL +BQAwRTELMAkGA1UEBhMCREUxCjAIBgNVBAgMAS4xCjAIBgNVBAcMAS4xCjAIBgNV +BAoMAS4xEjAQBgNVBAMMCWxvY2FsaG9zdDAeFw0yMDA0MTQxMTI4MDlaFw0yODA3 +MDExMTI4MDlaMEUxCzAJBgNVBAYTAkRFMQowCAYDVQQIDAEuMQowCAYDVQQHDAEu +MQowCAYDVQQKDAEuMRIwEAYDVQQDDAlsb2NhbGhvc3QwggEiMA0GCSqGSIb3DQEB +AQUAA4IBDwAwggEKAoIBAQCoID2YCnbfQeWViuwruBSa9U0Ww8eKx26zjtt/OOCT +IBPdBI+qL3LNh6oXh1gA5dZEv1FvOm7ngNGb0XC2zDY0h+7j+w7ctnRI0qhfXA7A +xSLDfsYgOZssDXCJd9FsQT4XoGr+YxFha8uryTQf96LMHo44e06CT8QQqW7g5Bbw +vKXHcs4M3h3a7QPizEh4gZuEgpj4UojnTWQLqHzr95TmNMZDYNBmTsugayFmFeOX +WdJaKxLFTIAFkInuuKT/UZP3X5qOkGokx696aSW5wqZXzJYDVh2WTnwROd6rvhvt +icpfwCh2VfaSVnBTlOjN+uFTm91yityXnXHcQu+Ou/ItAgMBAAGjUzBRMB0GA1Ud +DgQWBBSUJQ8O6VEdaZqXEONCc/QiAY1/tTAfBgNVHSMEGDAWgBSUJQ8O6VEdaZqX +EONCc/QiAY1/tTAPBgNVHRMBAf8EBTADAQH/MA0GCSqGSIb3DQEBCwUAA4IBAQCQ +UxPsCjWoe5PGyxLEt9awUum/8EnBKLLw2xGOZjuSljdNJDLCG1J4rCGw7eqcg66Z +gVO6+8EcVsohd2TJEophivqCxhe//phnAeB+lYt8gB0pX0ahgQ5xk0/TeZxNvOSg +DMq9ZWSmqB7n3P7LsAN4XVZ/TSfk5O3aC7O7SVQsV8Rp3P3w4OXu5F5ZSyDwj2MX +gEynz1suoCnV8G1nnUkv6Il96YbWZAafWe4mDhMiTRKQtaM/7Y3l8B/lHsBoD5i9 +WsRdO+Hwn+i9AiKILhB/Nlwze3LDVuWp0QIg9dtd8DQdjPRU8aPqiNKaWb3RN8V4 +phO3KSJlQJr05+QYJVGv -----END CERTIFICATE----- -----BEGIN PRIVATE KEY----- -MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDznDzlJUUtV9mV -KwzVF197DALocSnWD2JB14s+EGPCB6qKqfV/gCfzCNehRWKr1Bot2o+SepZgmBvT -4uM7iT/W4vH28NY3FlPPewqWoKJlBaRysdmOHGQWndJCZkkcDuSGA+dHRS3dy2ma -NrK0dmfYAZx08N0AErHP2v1emoWw2MSoKM+A1vuJ+T/s5oMrkDaUY8XbldjoKFij -fUFk7NJPKFwrGnW8n1ogR6yOnDa1SuX2r895WkX5Whqej4wzcThqIRgltWNDujc9 -CWEfgq7yDMvEg2aB/I580pOpyTHWX1ysIzl5acKIxYzXaImpzvXi99lrjxhUmWnq -QrmTcHwZAgMBAAECggEAe8X8IqjnFvy1rlarNHGlr40QxS0KBprWX4G2W5hUNzdR -7RYhh+CDa7YoaOYqFge0LWwI2nGyie1+5g83SP6ZEwNH0SHYlTCg8KAhZxrCp/VP -8n5ufQfrypnxRI9XwgvHDFhbYBjEDxbU1ufHsG0god1fswLWJr1Y3rTzWufD2W+r -37MMfOdyHK4WHTewWJYY/YX68fFyELt15NQHnz7uQJznY7Wwv/norX1jZsksy9VE -m8geLVIHdJOIyaHy+aAsMzWQ30rk8YU/7gNN3FanYdKv/WA/9qstsg61xYoH5y4Q -igKDkuW3h2ra4u2mLLR1KZEHEQYAwgtIMjL7WsPqAQKBgQD9hH+ZPZAW/NDSJ/bX -dhMqiRgwB3Ak/OnOmcgsDuroT3xtdUT1xBq21NzUWoiW6Eni/PF/9QxuIm//kMQk -uKk8AQyGM3RDtk6p69Kd+P9DfLb/EViHdug+/X3g1M378X2InLQ39cF8963+MOkA -kCJOQqyYWGRoz1tFCHSHEjjbuQKBgQD1/uePuPPGrJ3GS8XCIB6jy7TwqDbU+gJa -AAlHznn9zpDycSe2otYYsn/jSdRmbJA1K82UYE57o3kgImyDLPPyumhLHdE2db04 -Qt+sAwlJuBVIN5oIF0eCxJE0owKEv/LSQrx5k7NDNJnC6oTRByQhMOQmuDE81AvE -++u1NIqTYQKBgCW4TB/pyAGTliJerdx7BfkDMuUahjYKp2MFAIKFqa/s+69xjlQe -3HatjznNSpthbnTme6w1MqdEWnOk/3oTO6Lg6RMinr7gZi3kF49Hl/tbmAK1ev2U -1JNithL4trkwwiPMZQgaebJ1S58ReemKiIAqbXGxXSc3CvZnfqcGMA2JAoGBAOcF -2ZqUa/ytqA7Ooo7Jc30IlolcsQIbOZIkbpLNSqweDuphcpaHHuJa4NgoQh1e35/P -32X1fD+JKvwO2DHpScEvZzsEabLnqCjqRP1abKKbCwGjljj7A+G/kU8JuBfL3NOy -cScMm1IGWFFBxjI4rqmtLNdgLH2f9t2saZToHyyBAoGBANzB+jBJtA/AUn6VteTF -ceU0wpzyINz1nh/V489puhcVfz3s9+TE+zN2V4DOVF6yOm3hMOQuLyEWhK4xCrVq -EAYhXBm9K5EEQDE160QbJBjQMYXBsDJ4M/O2kj1dt1lMos2COIj0XdDtFIo4tj4b -9kx91hF7mrsoD4KyktijPGf4 +MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQCoID2YCnbfQeWV +iuwruBSa9U0Ww8eKx26zjtt/OOCTIBPdBI+qL3LNh6oXh1gA5dZEv1FvOm7ngNGb +0XC2zDY0h+7j+w7ctnRI0qhfXA7AxSLDfsYgOZssDXCJd9FsQT4XoGr+YxFha8ur +yTQf96LMHo44e06CT8QQqW7g5BbwvKXHcs4M3h3a7QPizEh4gZuEgpj4UojnTWQL +qHzr95TmNMZDYNBmTsugayFmFeOXWdJaKxLFTIAFkInuuKT/UZP3X5qOkGokx696 +aSW5wqZXzJYDVh2WTnwROd6rvhvticpfwCh2VfaSVnBTlOjN+uFTm91yityXnXHc +Qu+Ou/ItAgMBAAECggEAbrXsWXZqmNG38SWuJ4vsZa4quVbqy4RQbYUhHUHDAJ8a +9WvPfu4H1zgC1cOWO+Edm9+wLGJ6LZAydz0P0A/hke4BbbchLk4nfNzbaxAf1uj5 +32pX5ViJyhR/isaP7Y146e4FBscN5u0pDVJNNM/JMEjetmrcZAtKvP4VuZn5UUSX +Wom8hVaScQqa3zZkm0hlQZ0UaQNffw3PkkYVnOnZtUV1nHJAjAE2gpR59GfPYzHv +g1Ag+DwFKk2ReRqoiR+E0VXtQPIUOuiraV9edcjOz/gZm7L1IRvKF81v7btr02v+ +zZFkRRGkCmGO5+TCBmJ0ufP+z1fND1ruyFFGNWKbsQKBgQDQYcsH0GKmFYJ0/rDX +5KBj/rKzr4o78W9kS6jVZW2SGSHnajB5TpYrZXk3bCQjoAwD4QrWiEsoqFNmTmFu +XD1VyMy/+Ft2BS9zZpnNP0qWHNPEXj4kzAZMjuUeXZIocw9wQzMtz67DIgnZ/YIR +US/LKE81FGheGWBSSBPdcoz9SwKBgQDOi36u6tD8AkWjW3+Si8hYzQ2Te18cqOjy +GyCpGPeMBklbN/VxFcPbpWTrd0nIECmzTB3EFAV2LEWilAyCI/HfmPoUFghoz6yC +HCVJ+Ux+2Fd1xZLgllwlPMODtZTj5WWTsJZ1mB7Oefh88FSaoW0hJxhnhftpc5XC +DEtEqI17ZwKBgC9eq7rBAkvjA974rtbFIDjbA2CZfQEXZ00TbfPktL3LfMuQdih9 +VuHSlXWl3alDjrerBr2yCfPaH+tX0go2abMAjJrvKEtx7lF7d2cTBi+Nqg4vpkzT +HHN24FrAxqLvVQkeHZpCZeXx7O9jE5hALm8uYKMeWoNZnW3W+L0Udzx1AoGBALLy +UJOjheSQ41ygzWpeCPpGzdhVLxZZkVkQ/78BjpeWar/JP7D2NnZ6WXFYLGhU+IwL +Ck7zObgkq0AsHJo0Ij6i/yef3zFPnBot4HCyuP+82CmFP7etDbCFcK8QBytbeCH5 +AKJpZWdmbU9xuRsveKkcghxPDH9UUQ+KLzwQ/GNJAoGBALyQhQu1r/Op53rXxhrm ++X8IKWW7Qak7O1Qp4pF/qSlKQpuUo2zdvmqleKmWWPMGDvAhloyo/TCxD82nTXJW +C1RcYuSTwOw22RUIp683fcV7N13Jm63EEsH0hDMq2mvDyXbu5yKYNIdlPgCxUEzx +zsk41o4jgpEFfJQDB+mQ7ZgD -----END PRIVATE KEY----- From 3eeeaaa8d6b1c3d26e6e6363aad69d0996b06881 Mon Sep 17 00:00:00 2001 From: dweinholz Date: Thu, 16 Apr 2020 16:06:14 +0200 Subject: [PATCH 28/31] Update VirtualMachineHandler.py --- VirtualMachineService/VirtualMachineHandler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VirtualMachineService/VirtualMachineHandler.py b/VirtualMachineService/VirtualMachineHandler.py index c7568242..9edcf877 100644 --- a/VirtualMachineService/VirtualMachineHandler.py +++ b/VirtualMachineService/VirtualMachineHandler.py @@ -1832,7 +1832,7 @@ def start_cluster(self, public_key, master_instance, worker_instances, user): "availabilityZone": self.AVAIALABILITY_ZONE, "masterInstance": master_instance, "workerInstances": wI, - # "useMasterWithPublicIp": False, + "useMasterWithPublicIp": False } for mode in self.BIBIGRID_MODES: body.update({mode: True}) From 2585f3ec069a1289be7091b36e85a4f13271ab85 Mon Sep 17 00:00:00 2001 From: David Weinholz Date: Thu, 16 Apr 2020 16:15:45 +0200 Subject: [PATCH 29/31] upd --- VirtualMachineService/VirtualMachineHandler.py | 1 + 1 file changed, 1 insertion(+) diff --git a/VirtualMachineService/VirtualMachineHandler.py b/VirtualMachineService/VirtualMachineHandler.py index 9edcf877..2d55a32e 100644 --- a/VirtualMachineService/VirtualMachineHandler.py +++ b/VirtualMachineService/VirtualMachineHandler.py @@ -1761,6 +1761,7 @@ def get_cluster_status(self, cluster_id): self.logger.info("Cluster {} status: {} ".format(cluster_id, response.content)) return response.json() + def bibigrid_available(self): if not self.BIBIGRID_URL: return False From f73783e8db0e1474363c246d33ad0b7b3845c80b Mon Sep 17 00:00:00 2001 From: David Weinholz Date: Thu, 16 Apr 2020 16:21:37 +0200 Subject: [PATCH 30/31] fix --- plays/setup_client.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plays/setup_client.yml b/plays/setup_client.yml index 98cee8e5..8f89abe6 100644 --- a/plays/setup_client.yml +++ b/plays/setup_client.yml @@ -1,4 +1,4 @@ -kate- name: Setup Client +- name: Setup Client hosts: all become: yes vars_files: From 1f64ab81615e1812c0fab8bf7d0c486acb779a6c Mon Sep 17 00:00:00 2001 From: dweinholz Date: Fri, 17 Apr 2020 09:50:59 +0200 Subject: [PATCH 31/31] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0f81ebad..83693978 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,7 +15,7 @@ jobs: - name: Publish to Registry uses: elgohr/Publish-Docker-Github-Action@master with: - name: denbicloud/cloud-api + name: denbicloud/cloud-portal-client username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} dockerfile: Dockerfile