From fed3309111e3f38374e27b887dd5ad895e1957be Mon Sep 17 00:00:00 2001 From: "Deployment Bot (from Travis CI)" Date: Mon, 22 Jul 2019 13:54:28 +0000 Subject: [PATCH 01/10] Deploy ucloud/ucloud-sdk-python2 to github.com/ucloud/ucloud-sdk-python2.git:gh-pages --- .buildinfo | 4 + .nojekyll | 0 _modules/index.html | 118 + _modules/ucloud/core/auth/_cfg.html | 173 + _modules/ucloud/core/client/_cfg.html | 182 + _modules/ucloud/core/client/_client.html | 212 + _modules/ucloud/core/testing/env.html | 131 + _modules/ucloud/core/transport/_requests.html | 194 + _modules/ucloud/core/utils/middleware.html | 154 + _modules/ucloud/helpers/utils.html | 187 + _modules/ucloud/helpers/wait.html | 201 + _modules/ucloud/services/pathx/client.html | 260 + _modules/ucloud/services/uaccount/client.html | 263 + _modules/ucloud/services/udb/client.html | 1407 +++ _modules/ucloud/services/udisk/client.html | 561 + _modules/ucloud/services/udpn/client.html | 285 + _modules/ucloud/services/uhost/client.html | 866 ++ _modules/ucloud/services/ulb/client.html | 756 ++ _modules/ucloud/services/umem/client.html | 801 ++ _modules/ucloud/services/unet/client.html | 1029 ++ _modules/ucloud/services/uphost/client.html | 455 + _modules/ucloud/services/vpc/client.html | 643 + _sources/contents.rst.txt | 0 _sources/core.rst.txt | 35 + _sources/helpers.rst.txt | 13 + _sources/index.rst.txt | 57 + _sources/quick_start.rst.txt | 61 + _sources/services.rst.txt | 69 + _sources/usage.rst.txt | 96 + _static/ajax-loader.gif | Bin 0 -> 673 bytes _static/alabaster.css | 701 ++ _static/basic.css | 676 + _static/comment-bright.png | Bin 0 -> 756 bytes _static/comment-close.png | Bin 0 -> 829 bytes _static/comment.png | Bin 0 -> 641 bytes _static/custom.css | 1 + _static/doctools.js | 315 + _static/documentation_options.js | 10 + _static/down-pressed.png | Bin 0 -> 222 bytes _static/down.png | Bin 0 -> 202 bytes _static/file.png | Bin 0 -> 286 bytes _static/jquery-3.2.1.js | 10253 ++++++++++++++++ _static/jquery.js | 4 + _static/language_data.js | 297 + _static/minus.png | Bin 0 -> 90 bytes _static/plus.png | Bin 0 -> 90 bytes _static/pygments.css | 77 + _static/searchtools.js | 481 + _static/underscore-1.3.1.js | 999 ++ _static/underscore.js | 31 + _static/up-pressed.png | Bin 0 -> 214 bytes _static/up.png | Bin 0 -> 203 bytes _static/websupport.js | 808 ++ contents.html | 101 + core.html | 344 + genindex.html | 727 ++ helpers.html | 207 + index.html | 240 + objects.inv | Bin 0 -> 2069 bytes py-modindex.html | 129 + quick_start.html | 159 + search.html | 117 + searchindex.js | 1 + services.html | 5166 ++++++++ usage.html | 182 + 65 files changed, 31239 insertions(+) create mode 100644 .buildinfo create mode 100644 .nojekyll create mode 100644 _modules/index.html create mode 100644 _modules/ucloud/core/auth/_cfg.html create mode 100644 _modules/ucloud/core/client/_cfg.html create mode 100644 _modules/ucloud/core/client/_client.html create mode 100644 _modules/ucloud/core/testing/env.html create mode 100644 _modules/ucloud/core/transport/_requests.html create mode 100644 _modules/ucloud/core/utils/middleware.html create mode 100644 _modules/ucloud/helpers/utils.html create mode 100644 _modules/ucloud/helpers/wait.html create mode 100644 _modules/ucloud/services/pathx/client.html create mode 100644 _modules/ucloud/services/uaccount/client.html create mode 100644 _modules/ucloud/services/udb/client.html create mode 100644 _modules/ucloud/services/udisk/client.html create mode 100644 _modules/ucloud/services/udpn/client.html create mode 100644 _modules/ucloud/services/uhost/client.html create mode 100644 _modules/ucloud/services/ulb/client.html create mode 100644 _modules/ucloud/services/umem/client.html create mode 100644 _modules/ucloud/services/unet/client.html create mode 100644 _modules/ucloud/services/uphost/client.html create mode 100644 _modules/ucloud/services/vpc/client.html create mode 100644 _sources/contents.rst.txt create mode 100644 _sources/core.rst.txt create mode 100644 _sources/helpers.rst.txt create mode 100644 _sources/index.rst.txt create mode 100644 _sources/quick_start.rst.txt create mode 100644 _sources/services.rst.txt create mode 100644 _sources/usage.rst.txt create mode 100644 _static/ajax-loader.gif create mode 100644 _static/alabaster.css create mode 100644 _static/basic.css create mode 100644 _static/comment-bright.png create mode 100644 _static/comment-close.png create mode 100644 _static/comment.png create mode 100644 _static/custom.css create mode 100644 _static/doctools.js create mode 100644 _static/documentation_options.js create mode 100644 _static/down-pressed.png create mode 100644 _static/down.png create mode 100644 _static/file.png create mode 100644 _static/jquery-3.2.1.js create mode 100644 _static/jquery.js create mode 100644 _static/language_data.js create mode 100644 _static/minus.png create mode 100644 _static/plus.png create mode 100644 _static/pygments.css create mode 100644 _static/searchtools.js create mode 100644 _static/underscore-1.3.1.js create mode 100644 _static/underscore.js create mode 100644 _static/up-pressed.png create mode 100644 _static/up.png create mode 100644 _static/websupport.js create mode 100644 contents.html create mode 100644 core.html create mode 100644 genindex.html create mode 100644 helpers.html create mode 100644 index.html create mode 100644 objects.inv create mode 100644 py-modindex.html create mode 100644 quick_start.html create mode 100644 search.html create mode 100644 searchindex.js create mode 100644 services.html create mode 100644 usage.html diff --git a/.buildinfo b/.buildinfo new file mode 100644 index 0000000..9d135aa --- /dev/null +++ b/.buildinfo @@ -0,0 +1,4 @@ +# Sphinx build info version 1 +# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. +config: c71f21f3b1752597663d48b159a85a9d +tags: 645f666f9bcd5a90fca523b33c5a78b7 diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 0000000..e69de29 diff --git a/_modules/index.html b/_modules/index.html new file mode 100644 index 0000000..6e6d701 --- /dev/null +++ b/_modules/index.html @@ -0,0 +1,118 @@ + + + + + + + + Overview: module code — ucloud-sdk-python2 documentation + + + + + + + + + + + + + + + + + + +
+ + +
+
+ + + + + + + \ No newline at end of file diff --git a/_modules/ucloud/core/auth/_cfg.html b/_modules/ucloud/core/auth/_cfg.html new file mode 100644 index 0000000..7036a0a --- /dev/null +++ b/_modules/ucloud/core/auth/_cfg.html @@ -0,0 +1,173 @@ + + + + + + + + ucloud.core.auth._cfg — ucloud-sdk-python2 documentation + + + + + + + + + + + + + + + + + + +
+
+
+ + +
+ +

Source code for ucloud.core.auth._cfg

+# -*- coding: utf-8 -*-
+
+import hashlib
+from collections import OrderedDict
+from ucloud.core.typesystem import schema, fields
+
+
+class CredentialSchema(schema.Schema):
+    fields = {
+        "public_key": fields.Str(required=True),
+        "private_key": fields.Str(required=True),
+    }
+
+
+def verify_ac(private_key, params):
+    """ calculate signature by private_key/public_key
+
+    the keys can be found on `APIKey documentation <https://console.ucloud.cn/uapi/apikey>`__
+
+    >>> verify_ac("my_private_key", {"foo": "bar"})
+    '634edc1bb957c0d65e5ab5494cf3b7784fbc87af'
+
+    >>> verify_ac("my_private_key", {"foo": "bar"})
+    '634edc1bb957c0d65e5ab5494cf3b7784fbc87af'
+
+    :param private_key: private key
+    :param params:
+    :return:
+    """
+    params = OrderedDict(sorted(params.items(), key=lambda item: item[0]))
+    simplified = ""
+    for key, value in params.items():
+        simplified += str(key) + str(value)
+    simplified += private_key
+    hash_new = hashlib.sha1()
+    hash_new.update(simplified.encode("utf-8"))
+    hash_value = hash_new.hexdigest()
+    return hash_value
+
+
+
[docs]class Credential(object): + """ credential is the object to store credential information + + the keys can be found on `APIKey documentation <https://console.ucloud.cn/uapi/apikey>`__ + + it can calculate signature for OpenAPI: + + >>> cred = Credential('my_public_key', 'my_private_key') + >>> cred.verify_ac({"foo": "bar"}) + 'd4411ab30953fb0bbcb1e7313081f05e4e91a394' + + :param public_key: + :param private_key: + """ + + PUBLIC_KEY_NAME = "PublicKey" + + def __init__(self, public_key, private_key, **kwargs): + self.public_key = public_key + self.private_key = private_key + + def verify_ac(self, args): + args[Credential.PUBLIC_KEY_NAME] = self.public_key + return verify_ac(self.private_key, args) + + @classmethod + def from_dict(cls, d): + parsed = CredentialSchema().dumps(d) + return cls(**parsed) + + def to_dict(self): + return {"public_key": self.public_key, "private_key": self.private_key}
+
+ +
+ +
+
+ +
+
+ + + + + + + \ No newline at end of file diff --git a/_modules/ucloud/core/client/_cfg.html b/_modules/ucloud/core/client/_cfg.html new file mode 100644 index 0000000..89bb006 --- /dev/null +++ b/_modules/ucloud/core/client/_cfg.html @@ -0,0 +1,182 @@ + + + + + + + + ucloud.core.client._cfg — ucloud-sdk-python2 documentation + + + + + + + + + + + + + + + + + + +
+
+
+ + +
+ +

Source code for ucloud.core.client._cfg

+# -*- coding: utf-8 -*-
+
+import logging
+from ucloud.core.typesystem import schema, fields
+
+
+class ConfigSchema(schema.Schema):
+    fields = {
+        "region": fields.Str(required=True),
+        "project_id": fields.Str(),
+        "base_url": fields.Str(default="https://api.ucloud.cn"),
+        "user_agent": fields.Str(),
+        "timeout": fields.Int(default=30),
+        "max_retries": fields.Int(default=3),
+        "log_level": fields.Int(default=logging.INFO),
+        "validate_request": fields.Bool(default=True),
+    }
+
+
+
[docs]class Config(object): + """ + Config is the config of ucloud sdk, use for setting up + + :type region: str + :param region: Region is the region of backend service, + See also `Region list Documentation <https://docs.ucloud.cn/api/summary/regionlist>`_ + :type project_id: str + :param project_id: ProjectId is the unique identify of project, used for organize resources, + Most of resources should belong to a project. Sub-Account must have an project id. + See also `Project list Documentation <https://docs.ucloud.cn/api/summary/get_project_list>`_ + :type base_url: str + :param base_url: BaseUrl is the url of backend api + :param user_agent: UserAgent is an attribute for sdk client, used for distinguish who is using sdk. + See also `User Agent <https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent>`_ + It will be appended to the end of sdk user-agent. + eg. "MyAPP/0.10.1" -> "Python/3.7.0 Python-SDK/0.1.0 MyAPP/0.10.1" + :type timeout: int + :param timeout: Timeout is timeout for every request. + :type max_retries: int + :param max_retries: MaxRetries is the number of max retry times. + Set MaxRetries more than 0 to enable auto-retry for network and service availability problem + if auto-retry is enabled, it will enable default retry policy using exponential backoff. + :type log_level: int + :param log_level: LogLevel is equal to builtin logging level, + if logLevel not be set, use INFO level as default. + """ + + def __init__( + self, + region, + project_id=None, + base_url="https://api.ucloud.cn", + user_agent=None, + timeout=30, + max_retries=3, + log_level=logging.INFO, + **kwargs + ): + self.region = region + self.project_id = project_id + self.base_url = base_url + self.user_agent = user_agent + self.timeout = timeout + self.max_retries = max_retries + self.log_level = log_level + + @classmethod + def from_dict(cls, d): + parsed = ConfigSchema().dumps(d) + return cls(**parsed) + + def to_dict(self): + return { + "region": self.region, + "project_id": self.project_id, + "base_url": self.base_url, + "user_agent": self.user_agent, + "timeout": self.timeout, + "max_retries": self.max_retries, + "log_level": self.log_level, + }
+
+ +
+ +
+
+ +
+
+ + + + + + + \ No newline at end of file diff --git a/_modules/ucloud/core/client/_client.html b/_modules/ucloud/core/client/_client.html new file mode 100644 index 0000000..eda088a --- /dev/null +++ b/_modules/ucloud/core/client/_client.html @@ -0,0 +1,212 @@ + + + + + + + + ucloud.core.client._client — ucloud-sdk-python2 documentation + + + + + + + + + + + + + + + + + + +
+
+
+ + +
+ +

Source code for ucloud.core.client._client

+# -*- coding: utf-8 -*-
+
+import logging
+import sys
+from ucloud import version
+from ucloud.core.client._cfg import Config
+from ucloud.core.transport import Transport, RequestsTransport, Request, Response
+from ucloud.core.utils import log
+from ucloud.core.utils.middleware import Middleware
+from ucloud.core import auth, exc
+
+default_transport = RequestsTransport()
+
+
+
[docs]class Client(object): + def __init__(self, config, transport=None, middleware=None, logger=None): + cfg, cred = self._parse_dict_config(config) + self.config = cfg + self.credential = cred + self.transport = transport or default_transport + self.logger = logger or log.default_logger + if middleware is None: + middleware = Middleware() + middleware.response(self.logged_response_handler) + middleware.request(self.logged_request_handler) + self._middleware = middleware + +
[docs] def invoke(self, action, args=None, **options): + """ invoke will invoke the action with arguments data and options + + :param str action: the api action, like `CreateUHostInstance` + :param dict args: arguments of api(action), see doc: `UCloud API Documentation <https://docs.ucloud.cn/api>`__ + :return: + """ + retries = 0 + max_retries = options.get("max_retries") or self.config.max_retries + while retries <= max_retries: + try: + return self._send(action, args or {}, **options) + except exc.UCloudException as e: + if e.retryable and retries != max_retries: + logging.info( + "Retrying {action}: {args}".format(action=action, args=args) + ) + retries += 1 + continue + raise e + except Exception as e: + raise e + raise exc.RetryTimeoutException("max retries is reached")
+ + @property + def middleware(self): + return self._middleware + + def logged_request_handler(self, req): + self.logger.info("[request] {} {}".format(req.get("Action", ""), req)) + return req + + def logged_response_handler(self, resp): + self.logger.info("[response] {} {}".format(resp.get("Action", ""), resp)) + return resp + + def __enter__(self): + yield self + + @staticmethod + def _parse_dict_config(config): + return Config.from_dict(config), auth.Credential.from_dict(config) + + def _send(self, action, args, **options): + args["Action"] = action + for handler in self.middleware.request_handlers: + args = handler(args) + req = self._build_http_request(args) + max_retries = options.get("max_retries") or self.config.max_retries + timeout = options.get("timeout") or self.config.timeout + resp = self.transport.send(req, timeout=timeout, max_retries=max_retries).json() + for handler in self.middleware.response_handlers: + resp = handler(resp) + if int(resp.get("RetCode", -1)) != 0: + raise exc.RetCodeException( + action=req.data.get("Action"), + code=int(resp.get("RetCode")), + message=resp.get("Message"), + ) + return resp + + def _build_http_request(self, args): + payload = {"Region": self.config.region, "ProjectId": self.config.project_id} + payload.update({k: v for k, v in args.items() if v is not None}) + payload["Signature"] = self.credential.verify_ac(payload) + return Request( + url=self.config.base_url, + method="post", + data=payload, + headers={ + "User-Agent": self._build_user_agent(), + "Content-Type": "application/x-www-form-urlencoded", + }, + ) + + def _build_user_agent(self): + python_version = "{v[0]}.{v[1]}.{v[2]}".format(v=sys.version_info) + user_agent = "Python/{python_version} Python-SDK/{sdk_version}".format( + python_version=python_version, sdk_version=version.version + ) + (self.config.user_agent or "") + return user_agent + + def __repr__(self): + return "<{}('{}')>".format(self.__class__.__name__, self.config.region)
+
+ +
+ +
+
+ +
+
+ + + + + + + \ No newline at end of file diff --git a/_modules/ucloud/core/testing/env.html b/_modules/ucloud/core/testing/env.html new file mode 100644 index 0000000..f4a9513 --- /dev/null +++ b/_modules/ucloud/core/testing/env.html @@ -0,0 +1,131 @@ + + + + + + + + ucloud.core.testing.env — ucloud-sdk-python2 documentation + + + + + + + + + + + + + + + + + + +
+
+
+ + +
+ +

Source code for ucloud.core.testing.env

+# -*- coding: utf-8 -*-
+
+import os
+
+ACC_ENV_KEY = "USDK_ACC"
+ACC_SKIP_REASON = "skip test for non-acc environment"
+
+
+def get_skip_reason():
+    return ACC_SKIP_REASON
+
+
+
[docs]def is_acc(): + """ check test env is acceptance testing or not """ + return os.getenv(ACC_ENV_KEY)
+ + +
[docs]def is_ut(): + """ check test env is unit testing or not """ + return not is_acc()
+ + +
[docs]def pre_check_env(): + """ pre check environment for testing + + NOTE: system environment variables credential is required for test environment + """ + assert os.getenv("UCLOUD_PUBLIC_KEY"), "invalid public key" + assert os.getenv("UCLOUD_PRIVATE_KEY"), "invalid private key" + assert os.getenv("UCLOUD_REGION"), "invalid region"
+
+ +
+ +
+
+ +
+
+ + + + + + + \ No newline at end of file diff --git a/_modules/ucloud/core/transport/_requests.html b/_modules/ucloud/core/transport/_requests.html new file mode 100644 index 0000000..4d08f68 --- /dev/null +++ b/_modules/ucloud/core/transport/_requests.html @@ -0,0 +1,194 @@ + + + + + + + + ucloud.core.transport._requests — ucloud-sdk-python2 documentation + + + + + + + + + + + + + + + + + + +
+
+
+ + +
+ +

Source code for ucloud.core.transport._requests

+# -*- coding: utf-8 -*-
+
+import requests
+from urllib3.util.retry import Retry
+from requests.adapters import HTTPAdapter
+from ucloud.core.transport import http
+from ucloud.core.transport.http import Request, Response
+from ucloud.core.utils.middleware import Middleware
+
+
+
[docs]class RequestsTransport(http.Transport): + """ transport is the implementation of http client, use for send a request and return a http response + + :type max_retries: int + :param max_retries: max retries is the max number of transport request when occur http error + :type backoff_factor: float + :param backoff_factor: backoff factor will calculate the backoff delay during retrying, + the backoff delay = {backoff factor} * (2 ^ ({number of total retries} - 1)) + :type status_forcelist: tuple + :param status_forcelist: the status code list that could be retried + """ + + def __init__( + self, max_retries=3, backoff_factor=0.3, status_forcelist=(500, 502, 504) + ): + self.max_retries = max_retries + self.backoff_factor = backoff_factor + self.status_forcelist = status_forcelist + self._adapter = self._load_adapter(max_retries) + self._middleware = Middleware() + +
[docs] def send(self, req, **options): + """ send request and return the response + + :param req: the full http request descriptor + :return: the response of http request + """ + for handler in self.middleware.request_handlers: + req = handler(req) + resp = self._send(req, **options) + for handler in self.middleware.response_handlers: + resp = handler(resp) + return resp
+ + @property + def middleware(self): + """ the middleware object, see :mod: + + :return: the transport middleware + """ + return self._middleware + + def _send(self, req, **options): + with requests.Session() as session: + adapter = self._load_adapter(options.get("max_retries")) + session.mount("http://", adapter=adapter) + session.mount("https://", adapter=adapter) + session_resp = session.request( + method=req.method.upper(), + url=req.url, + json=req.json, + data=req.data, + params=req.params, + headers=req.headers, + ) + resp = self.convert_response(session_resp) + resp.request = req + return resp + + def _load_adapter(self, max_retries=None): + if max_retries is None and self._adapter is not None: + return self._adapter + max_retries = max_retries or 0 + adapter = HTTPAdapter() + adapter.max_retries = Retry( + total=max_retries, + read=max_retries, + connect=max_retries, + backoff_factor=self.backoff_factor, + status_forcelist=self.status_forcelist, + ) + return adapter + + @staticmethod + def convert_response(r): + return Response( + url=r.url, + method=r.request.method, + status_code=r.status_code, + reason=r.reason, + headers=r.headers, + content=r.content, + )
+
+ +
+ +
+
+ +
+
+ + + + + + + \ No newline at end of file diff --git a/_modules/ucloud/core/utils/middleware.html b/_modules/ucloud/core/utils/middleware.html new file mode 100644 index 0000000..9b60657 --- /dev/null +++ b/_modules/ucloud/core/utils/middleware.html @@ -0,0 +1,154 @@ + + + + + + + + ucloud.core.utils.middleware — ucloud-sdk-python2 documentation + + + + + + + + + + + + + + + + + + +
+
+
+ + +
+ +

Source code for ucloud.core.utils.middleware

+# -*- coding: utf-8 -*-
+
+
+
[docs]class Middleware(object): + """ middleware is the object to store request/response handlers + + >>> middleware = Middleware() + + Add a request handler to prepare the request + + >>> @middleware.request + ... def prepare(req): + ... req['Region'] = 'cn-bj2' + ... return req + + Add a response handler to log the response detail + + >>> @middleware.response + ... def logged(resp): + ... print(resp) + ... return resp + + >>> len(middleware.request_handlers), len(middleware.response_handlers) + (1, 1) + """ + + def __init__(self): + self.request_handlers = [] + self.response_handlers = [] + +
[docs] def request(self, handler, index=-1): + """ request is the request handler register to add request handler. + + :param handler: request handler function, receive request object + and return a new request + :param int index: the position of request in the handler list, + default is append it to end + :return: + """ + self.request_handlers.insert(index, handler) + return handler
+ +
[docs] def response(self, handler, index=-1): + """ response is the response handler register to add response handler. + + :param handler: response handler function, receive response object + and return a new response + :param int index: the position of response in the handler list, + default is append it to end + :return: + """ + self.response_handlers.insert(index, handler) + return handler
+
+ +
+ +
+
+ +
+
+ + + + + + + \ No newline at end of file diff --git a/_modules/ucloud/helpers/utils.html b/_modules/ucloud/helpers/utils.html new file mode 100644 index 0000000..140f15d --- /dev/null +++ b/_modules/ucloud/helpers/utils.html @@ -0,0 +1,187 @@ + + + + + + + + ucloud.helpers.utils — ucloud-sdk-python2 documentation + + + + + + + + + + + + + + + + + + +
+
+
+ + +
+ +

Source code for ucloud.helpers.utils

+# -*- coding: utf-8 -*-
+
+import random
+import base64
+
+_lowercase = "abcdefghijklmnopqrstuvwxyz"
+_uppercase = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
+_numbers = "0123456789"
+_specials = "_"
+
+
+
[docs]def gen_password( + n, + lower_letters=_lowercase, + upper_letters=_uppercase, + number_letters=_numbers, + special_letters=_specials, + min_lower=1, + min_upper=1, + min_number=1, + min_specials=1, +): + """ generate password for any resource + + >>> len(gen_password(20)) + 20 + + :param int n: password total length + :param str lower_letters: all lowercase letters + :param str upper_letters: all uppercase letters + :param str number_letters: all number letters + :param str special_letters: all special letters + :param int min_lower: minimal number of lowercase letters + :param int min_upper: minimal number of uppercase letters + :param int min_number: minimal number of number letters + :param int min_specials: minimal number of special letters + :return: + """ + all_letters = "".join( + [lower_letters, upper_letters, number_letters, special_letters] + ) + minimal_total = min_lower + min_upper + min_number + min_specials + if n < minimal_total: + raise ValueError( + "the length of password must be larger than total minimal letters number" + ) + minimal_letters = "".join( + [ + gen_string(lower_letters, min_lower), + gen_string(upper_letters, min_upper), + gen_string(number_letters, min_number), + gen_string(special_letters, min_specials), + ] + ) + additional_letters = random.sample(all_letters, n - minimal_total) + results = list(minimal_letters) + additional_letters + random.shuffle(results) + return "".join(results)
+ + +def gen_string(letters, length): + return "".join([random.choice(letters) for i in range(length)]) + + +def first(l): + if len(l) == 0: + return None + return l[0] + + +
[docs]def b64encode(s): + """ base64 encode + + :param str s: input string + :return: base64 string + """ + return base64.b64encode(s.encode()).decode()
+ + +
[docs]def b64decode(s): + """ base64 decode + + :param str s: base64 string + :return: output string + """ + return base64.b64decode(s.encode()).decode()
+
+ +
+ +
+
+ +
+
+ + + + + + + \ No newline at end of file diff --git a/_modules/ucloud/helpers/wait.html b/_modules/ucloud/helpers/wait.html new file mode 100644 index 0000000..b538373 --- /dev/null +++ b/_modules/ucloud/helpers/wait.html @@ -0,0 +1,201 @@ + + + + + + + + ucloud.helpers.wait — ucloud-sdk-python2 documentation + + + + + + + + + + + + + + + + + + +
+
+
+ + +
+ +

Source code for ucloud.helpers.wait

+# -*- coding: utf-8 -*-
+
+import time
+import logging
+from ucloud.core import exc
+
+MAX_BACKOFF_INTERVAL = 10
+logger = logging.getLogger(__name__)
+
+
+class WaitTimeoutException(exc.UCloudException):
+    pass
+
+
+class StateConf(object):
+    """ StateConf is the utilities class to wait the state return by refresh function achieve the specific state,
+    the generally usage is wait the cloud resource, such as uhost, udb ... is
+    ready after created.
+    """
+
+    def __init__(
+        self,
+        pending,
+        target,
+        refresh,
+        timeout,
+        startup_delay=0,
+        min_backoff_interval=0.1,
+        max_backoff_interval=MAX_BACKOFF_INTERVAL,
+    ):
+        self.pending = pending
+        self.target = target
+        self.refresh = refresh
+        self.timeout = timeout
+        self.startup_delay = startup_delay
+        self.min_backoff_interval = min_backoff_interval
+        self.max_backoff_interval = max_backoff_interval
+
+    def wait(self):
+        start_time = time.time()
+        interval = self.min_backoff_interval
+        time.sleep(self.startup_delay)
+        while time.time() - start_time < self.timeout:
+            state = self.refresh()
+            if state in self.pending:
+                time.sleep(interval)
+                interval *= 2
+                if interval > self.max_backoff_interval:
+                    interval = self.max_backoff_interval
+                logger.info(
+                    "waiting state for {self.refresh}, got state {state}".format(
+                        self=self, state=state
+                    )
+                )
+                continue
+            if state in self.target:
+                return
+        raise WaitTimeoutException(
+            "wait timeout {self.timeout}s for {self.refresh}".format(self=self)
+        )
+
+
+
[docs]def wait_for_state( + pending, + target, + refresh, + timeout, + startup_delay=0, + min_backoff_interval=0.1, + max_backoff_interval=MAX_BACKOFF_INTERVAL, +): + """ wait_for_state is a utilities function to wait the state return by refresh function achieve the specific state, + the generally usage is wait the cloud resource, such as uhost, udb ... is + ready after created. + + >>> wait_for_state( + ... pending=["pending"], + ... target=["running"], + ... refresh=lambda: "running", + ... timeout=0.5, + ... ) + + :param pending: pending is the list of pending state, the state is returned by refresh function + :param target: target is the list of target state, it is usually the terminate state, eg. running and fail + :param refresh: the customized refresh function, expect no arguments and return a state + :param timeout: timeout is the total time to wait state is achieved + :param startup_delay: the time to wait before first refresh function is called + :param min_backoff_interval: the backoff time for first refresh interval + :param max_backoff_interval: the max backoff time for refresh interval + """ + conf = StateConf( + pending=pending, + target=target, + refresh=refresh, + timeout=timeout, + startup_delay=startup_delay, + min_backoff_interval=min_backoff_interval, + max_backoff_interval=max_backoff_interval, + ) + return conf.wait()
+
+ +
+ +
+
+ +
+
+ + + + + + + \ No newline at end of file diff --git a/_modules/ucloud/services/pathx/client.html b/_modules/ucloud/services/pathx/client.html new file mode 100644 index 0000000..c458cc0 --- /dev/null +++ b/_modules/ucloud/services/pathx/client.html @@ -0,0 +1,260 @@ + + + + + + + + ucloud.services.pathx.client — ucloud-sdk-python2 documentation + + + + + + + + + + + + + + + + + + +
+
+
+ + +
+ +

Source code for ucloud.services.pathx.client

+# -*- coding: utf-8 -*-
+
+""" Code is generated by ucloud-model, DO NOT EDIT IT. """
+from ucloud.core.client import Client
+from ucloud.services.pathx.schemas import apis
+
+
+
[docs]class PathXClient(Client): + def __init__(self, config, transport=None, middleware=None, logger=None): + super(PathXClient, self).__init__(config, transport, middleware, logger) + +
[docs] def create_global_ssh_instance(self, req=None, **kwargs): + """ CreateGlobalSSHInstance - 创建GlobalSSH实例 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID,如org-xxxx。请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Area** (str) - (Required) 填写支持SSH访问IP的地区名称,如“洛杉矶”,“新加坡”,“香港”,“东京”,“华盛顿”,“法兰克福”。Area和AreaCode两者必填一个 + - **AreaCode** (str) - (Required) AreaCode, 区域航空港国际通用代码。Area和AreaCode两者必填一个 + - **Port** (int) - (Required) SSH端口,1-65535且不能使用80,443端口 + - **TargetIP** (str) - (Required) 被SSH访问的IP + - **ChargeType** (str) - 支付方式,如按月、按年、按时 + - **CouponId** (str) - 使用代金券可冲抵部分费用 + - **Quantity** (int) - 购买数量 + - **Remark** (str) - 备注信息 + + **Response** + + - **AcceleratingDomain** (str) - 加速域名,访问该域名可就近接入 + - **InstanceId** (str) - 实例ID,资源唯一标识 + - **Message** (str) - 提示信息 + + """ + d = {"ProjectId": self.config.project_id} + req and d.update(req) + d = apis.CreateGlobalSSHInstanceRequestSchema().dumps(d) + kwargs["max_retries"] = 0 + resp = self.invoke("CreateGlobalSSHInstance", d, **kwargs) + return apis.CreateGlobalSSHInstanceResponseSchema().loads(resp)
+ +
[docs] def delete_global_ssh_instance(self, req=None, **kwargs): + """ DeleteGlobalSSHInstance - 删除GlobalSSH实例 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID,如org-xxxx。请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **InstanceId** (str) - (Required) 实例Id,资源的唯一标识 + + **Response** + + - **Message** (str) - 提示信息 + + """ + d = {"ProjectId": self.config.project_id} + req and d.update(req) + d = apis.DeleteGlobalSSHInstanceRequestSchema().dumps(d) + resp = self.invoke("DeleteGlobalSSHInstance", d, **kwargs) + return apis.DeleteGlobalSSHInstanceResponseSchema().loads(resp)
+ +
[docs] def describe_global_ssh_area(self, req=None, **kwargs): + """ DescribeGlobalSSHArea - 获取GlobalSSH覆盖的地区列表 用于控制显示哪些机房地域可以使用SSH特性 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID,如org-xxxx。请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 机房地域代号,如hk、 us-ca、 us-ws等。不填默认为空,返回所有支持地区。 + + **Response** + + - **AreaSet** (list) - 见 **GlobalSSHArea** 模型定义 + - **Message** (str) - 提示信息 + + **Response Model** + + **GlobalSSHArea** + + - **Area** (str) - GlobalSSH覆盖的地区,如香港、东京、洛杉矶等 + - **AreaCode** (str) - 地区代号,以地区AirPort Code + - **RegionSet** (list) - ucloud机房代号构成的数组,如["hk","us-ca"] + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DescribeGlobalSSHAreaRequestSchema().dumps(d) + resp = self.invoke("DescribeGlobalSSHArea", d, **kwargs) + return apis.DescribeGlobalSSHAreaResponseSchema().loads(resp)
+ +
[docs] def describe_global_ssh_instance(self, req=None, **kwargs): + """ DescribeGlobalSSHInstance - 获取GlobalSSH实例列表(传实例ID获取单个实例信息,不传获取项目下全部实例) + + **Request** + + - **ProjectId** (str) - (Config) 项目ID,如org-xxxx。请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **InstanceId** (str) - 实例ID,资源唯一标识 + + **Response** + + - **InstanceSet** (list) - 见 **GlobalSSHInfo** 模型定义 + + **Response Model** + + **GlobalSSHInfo** + + - **AcceleratingDomain** (str) - 加速域名 + - **Area** (str) - 被SSH访问的IP所在地区 + - **ChargeType** (str) - 支付周期,如Month,Year等 + - **CreateTime** (int) - 资源创建时间戳 + - **ExpireTime** (int) - 资源过期时间戳 + - **InstanceId** (str) - 实例ID,资源唯一标识 + - **Port** (int) - SSH登陆端口 + - **Remark** (str) - 备注信息 + - **TargetIP** (str) - 被SSH访问的EIP + + """ + d = {"ProjectId": self.config.project_id} + req and d.update(req) + d = apis.DescribeGlobalSSHInstanceRequestSchema().dumps(d) + resp = self.invoke("DescribeGlobalSSHInstance", d, **kwargs) + return apis.DescribeGlobalSSHInstanceResponseSchema().loads(resp)
+ +
[docs] def modify_global_ssh_port(self, req=None, **kwargs): + """ ModifyGlobalSSHPort - 修改GlobalSSH端口 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID,如org-xxxx。请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **InstanceId** (str) - (Required) 实例ID,资源唯一标识 + - **Port** (int) - (Required) 调整后的SSH登陆端口 + + **Response** + + - **Message** (str) - 提示信息 + + """ + d = {"ProjectId": self.config.project_id} + req and d.update(req) + d = apis.ModifyGlobalSSHPortRequestSchema().dumps(d) + resp = self.invoke("ModifyGlobalSSHPort", d, **kwargs) + return apis.ModifyGlobalSSHPortResponseSchema().loads(resp)
+ +
[docs] def modify_global_ssh_remark(self, req=None, **kwargs): + """ ModifyGlobalSSHRemark - 修改GlobalSSH备注 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID,如org-xxxx。请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **InstanceId** (str) - (Required) 实例ID,资源唯一标识 + - **Remark** (str) - 备注信息,不填默认为空字符串 + + **Response** + + - **Message** (str) - 接口返回消息 + + """ + d = {"ProjectId": self.config.project_id} + req and d.update(req) + d = apis.ModifyGlobalSSHRemarkRequestSchema().dumps(d) + resp = self.invoke("ModifyGlobalSSHRemark", d, **kwargs) + return apis.ModifyGlobalSSHRemarkResponseSchema().loads(resp)
+
+ +
+ +
+
+ +
+
+ + + + + + + \ No newline at end of file diff --git a/_modules/ucloud/services/uaccount/client.html b/_modules/ucloud/services/uaccount/client.html new file mode 100644 index 0000000..88b5810 --- /dev/null +++ b/_modules/ucloud/services/uaccount/client.html @@ -0,0 +1,263 @@ + + + + + + + + ucloud.services.uaccount.client — ucloud-sdk-python2 documentation + + + + + + + + + + + + + + + + + + +
+
+
+ + +
+ +

Source code for ucloud.services.uaccount.client

+# -*- coding: utf-8 -*-
+
+""" Code is generated by ucloud-model, DO NOT EDIT IT. """
+from ucloud.core.client import Client
+from ucloud.services.uaccount.schemas import apis
+
+
+
[docs]class UAccountClient(Client): + def __init__(self, config, transport=None, middleware=None, logger=None): + super(UAccountClient, self).__init__(config, transport, middleware, logger) + +
[docs] def create_project(self, req=None, **kwargs): + """ CreateProject - 创建项目 + + **Request** + + - **ProjectName** (str) - (Required) 项目名称 + + **Response** + + - **ProjectId** (str) - 所创建项目的Id + + """ + d = {} + req and d.update(req) + d = apis.CreateProjectRequestSchema().dumps(d) + kwargs["max_retries"] = 0 + resp = self.invoke("CreateProject", d, **kwargs) + return apis.CreateProjectResponseSchema().loads(resp)
+ +
[docs] def get_project_list(self, req=None, **kwargs): + """ GetProjectList - 获取项目列表 + + **Request** + + - **IsFinance** (str) - 是否是财务账号 + + **Response** + + - **ProjectCount** (int) - 项目总数 + - **ProjectSet** (list) - 见 **ProjectListInfo** 模型定义 + + **Response Model** + + **ProjectListInfo** + + - **CreateTime** (int) - 创建时间(Unix时间戳) + - **IsDefault** (bool) - 是否为默认项目 + - **MemberCount** (int) - 项目下成员数量 + - **ParentId** (str) - 父项目ID + - **ParentName** (str) - 父项目名称 + - **ProjectId** (str) - 项目ID + - **ProjectName** (str) - 项目名称 + - **ResourceCount** (int) - 项目下资源数量 + + """ + d = {} + req and d.update(req) + d = apis.GetProjectListRequestSchema().dumps(d) + resp = self.invoke("GetProjectList", d, **kwargs) + return apis.GetProjectListResponseSchema().loads(resp)
+ +
[docs] def get_region(self, req=None, **kwargs): + """ GetRegion - 获取用户在各数据中心的权限等信息 + + **Request** + + + **Response** + + - **Regions** (list) - 见 **RegionInfo** 模型定义 + + **Response Model** + + **RegionInfo** + + - **BitMaps** (str) - 用户在此数据中心的权限位 + - **IsDefault** (bool) - 是否用户当前默认数据中心 + - **Region** (str) - 地域名字,如cn-bj + - **RegionId** (int) - 数据中心ID + - **RegionName** (str) - 数据中心名称 + - **Zone** (str) - 可用区名字,如cn-bj-01 + + """ + d = {} + req and d.update(req) + d = apis.GetRegionRequestSchema().dumps(d) + resp = self.invoke("GetRegion", d, **kwargs) + return apis.GetRegionResponseSchema().loads(resp)
+ +
[docs] def get_user_info(self, req=None, **kwargs): + """ GetUserInfo - 获取用户信息 + + **Request** + + + **Response** + + - **DataSet** (list) - 见 **UserInfo** 模型定义 + + **Response Model** + + **UserInfo** + + - **Admin** (int) - 是否超级管理员 0:否 1:是 + - **Administrator** (str) - 管理员 + - **AuthState** (str) - 实名认证状态 + - **City** (str) - 城市 + - **CompanyName** (str) - 公司名称 + - **Finance** (int) - 是否有财务权限 0:否 1:是 + - **IndustryType** (int) - 所属行业 + - **PhonePrefix** (str) - 国际号码前缀 + - **Province** (str) - 省份 + - **UserAddress** (str) - 公司地址 + - **UserEmail** (str) - 用户邮箱 + - **UserId** (int) - 用户Id + - **UserName** (str) - 称呼 + - **UserPhone** (str) - 用户手机 + - **UserType** (int) - 会员类型 + - **UserVersion** (int) - 是否子帐户(大于100为子帐户) + + """ + d = {} + req and d.update(req) + d = apis.GetUserInfoRequestSchema().dumps(d) + resp = self.invoke("GetUserInfo", d, **kwargs) + return apis.GetUserInfoResponseSchema().loads(resp)
+ +
[docs] def modify_project(self, req=None, **kwargs): + """ ModifyProject - 修改项目 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **ProjectName** (str) - (Required) 新的项目名称 + + **Response** + + + """ + d = {"ProjectId": self.config.project_id} + req and d.update(req) + d = apis.ModifyProjectRequestSchema().dumps(d) + resp = self.invoke("ModifyProject", d, **kwargs) + return apis.ModifyProjectResponseSchema().loads(resp)
+ +
[docs] def terminate_project(self, req=None, **kwargs): + """ TerminateProject - 删除项目 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID,不填写为默认项目,子帐号必须填写。 + + **Response** + + + """ + d = {"ProjectId": self.config.project_id} + req and d.update(req) + d = apis.TerminateProjectRequestSchema().dumps(d) + resp = self.invoke("TerminateProject", d, **kwargs) + return apis.TerminateProjectResponseSchema().loads(resp)
+
+ +
+ +
+
+ +
+
+ + + + + + + \ No newline at end of file diff --git a/_modules/ucloud/services/udb/client.html b/_modules/ucloud/services/udb/client.html new file mode 100644 index 0000000..00f4d67 --- /dev/null +++ b/_modules/ucloud/services/udb/client.html @@ -0,0 +1,1407 @@ + + + + + + + + ucloud.services.udb.client — ucloud-sdk-python2 documentation + + + + + + + + + + + + + + + + + + +
+
+
+ + +
+ +

Source code for ucloud.services.udb.client

+# -*- coding: utf-8 -*-
+
+""" Code is generated by ucloud-model, DO NOT EDIT IT. """
+from ucloud.core.client import Client
+from ucloud.services.udb.schemas import apis
+
+
+
[docs]class UDBClient(Client): + def __init__(self, config, transport=None, middleware=None, logger=None): + super(UDBClient, self).__init__(config, transport, middleware, logger) + +
[docs] def backup_udb_instance(self, req=None, **kwargs): + """ BackupUDBInstance - 备份UDB实例 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **BackupName** (str) - (Required) 备份名称 + - **DBId** (str) - (Required) DB实例Id,该值可以通过DescribeUDBInstance获取 + - **BackupMethod** (str) - 使用的备份方式。(快照备份即物理备份。注意只有SSD版本的mysql实例支持设置为snapshot) + - **Blacklist** (str) - 备份黑名单列表,以 ; 分隔。注意:只有逻辑备份下备份黑名单才生效,快照备份备份黑名单下无效 + - **ForceBackup** (bool) - true表示逻辑备份时是使用 --force 参数,false表示不使用 --force 参数。物理备份此参数无效。 + - **UseBlacklist** (bool) - 是否使用黑名单备份,默认false + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.BackupUDBInstanceRequestSchema().dumps(d) + kwargs["max_retries"] = 0 + resp = self.invoke("BackupUDBInstance", d, **kwargs) + return apis.BackupUDBInstanceResponseSchema().loads(resp)
+ +
[docs] def backup_udb_instance_binlog(self, req=None, **kwargs): + """ BackupUDBInstanceBinlog - 备份UDB指定时间段的binlog列表 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **BackupFile** (str) - (Required) 需要备份文件,可通过DescribeUDBInstanceBinlog获得 如果要传入多个文件名,以空格键分割,用单引号包含. + - **DBId** (str) - (Required) DB实例Id,该值可以通过DescribeUDBInstance获取 + - **BackupName** (str) - DB备份文件名称 + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.BackupUDBInstanceBinlogRequestSchema().dumps(d) + resp = self.invoke("BackupUDBInstanceBinlog", d, **kwargs) + return apis.BackupUDBInstanceBinlogResponseSchema().loads(resp)
+ +
[docs] def backup_udb_instance_error_log(self, req=None, **kwargs): + """ BackupUDBInstanceErrorLog - 备份UDB指定时间段的errorlog + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **BackupName** (str) - (Required) 备份名称 + - **DBId** (str) - (Required) DB实例Id,该值可以通过DescribeUDBInstance获取 + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.BackupUDBInstanceErrorLogRequestSchema().dumps(d) + resp = self.invoke("BackupUDBInstanceErrorLog", d, **kwargs) + return apis.BackupUDBInstanceErrorLogResponseSchema().loads(resp)
+ +
[docs] def backup_udb_instance_slow_log(self, req=None, **kwargs): + """ BackupUDBInstanceSlowLog - 备份UDB指定时间段的slowlog分析结果 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **BackupName** (str) - (Required) 备份文件名称 + - **BeginTime** (int) - (Required) 过滤条件:起始时间(时间戳) + - **DBId** (str) - (Required) DB实例Id,该值可以通过DescribeUDBInstance获取 + - **EndTime** (int) - (Required) 过滤条件:结束时间(时间戳) + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.BackupUDBInstanceSlowLogRequestSchema().dumps(d) + resp = self.invoke("BackupUDBInstanceSlowLog", d, **kwargs) + return apis.BackupUDBInstanceSlowLogResponseSchema().loads(resp)
+ +
[docs] def check_recover_udb_instance(self, req=None, **kwargs): + """ CheckRecoverUDBInstance - 核查db是否可以使用回档功能 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **SrcDBId** (str) - (Required) 源实例的Id(只支持普通版DB不支持高可用) + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + - **LastestTime** (int) - 核查成功返回值为可以回档到的最近时刻,核查失败不返回 + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.CheckRecoverUDBInstanceRequestSchema().dumps(d) + resp = self.invoke("CheckRecoverUDBInstance", d, **kwargs) + return apis.CheckRecoverUDBInstanceResponseSchema().loads(resp)
+ +
[docs] def check_udb_instance_to_ha_allowance(self, req=None, **kwargs): + """ CheckUDBInstanceToHAAllowance - 核查db是否可以升级为高可用 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **DBId** (str) - (Required) 实例的Id,该值可以通过DescribeUDBInstance获取 + + **Response** + + - **Allowance** (str) - Yes ,No ,Yes即可以升级,No为不可以升级 + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.CheckUDBInstanceToHAAllowanceRequestSchema().dumps(d) + resp = self.invoke("CheckUDBInstanceToHAAllowance", d, **kwargs) + return apis.CheckUDBInstanceToHAAllowanceResponseSchema().loads(resp)
+ +
[docs] def clear_udb_log(self, req=None, **kwargs): + """ ClearUDBLog - 清除UDB实例的log + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **DBId** (str) - (Required) DB实例的id,该值可以通过DescribeUDBInstance获取 + - **LogType** (int) - (Required) 日志类型,10-error(暂不支持)、20-slow(暂不支持 )、30-binlog + - **BeforeTime** (int) - 删除时间点(至少前一天)之前log,采用时间戳(秒),默认当 前时间点前一天 + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.ClearUDBLogRequestSchema().dumps(d) + resp = self.invoke("ClearUDBLog", d, **kwargs) + return apis.ClearUDBLogResponseSchema().loads(resp)
+ +
[docs] def create_udb_instance(self, req=None, **kwargs): + """ CreateUDBInstance - 创建UDB实例(包括创建mysql master节点、mongodb primary/configsvr节点和从备份恢复实例) + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **AdminPassword** (str) - (Required) 管理员密码 + - **DBTypeId** (str) - (Required) DB类型id,mysql/mongodb/postgesql按版本细分 1:mysql-5.1,2:mysql-5.5,3:percona-5.5,4:mysql-5.6,5:percona-5.6,6:mysql-5.7,7:percona-5.7,8:mariadb-10.0,9:mongodb-2.4,10:mongodb-2.6,11:mongodb-3.0,12:mongodb-3.2,13:postgresql-9.4,14:postgresql-9.6,14:postgresql-10.4 + - **DiskSpace** (int) - (Required) 磁盘空间(GB), 暂时支持20G - 3000G + - **MemoryLimit** (int) - (Required) 内存限制(MB),目前支持以下几档 1000M/2000M/4000M/ 6000M/8000M/12000M/16000M/ 24000M/32000M/48000M/ 64000M/96000M + - **Name** (str) - (Required) 实例名称,至少6位 + - **ParamGroupId** (int) - (Required) DB实例使用的配置参数组id + - **Port** (int) - (Required) 端口号,mysql默认3306,mongodb默认27017,postgresql默认5432 + - **Zone** (str) - (Required) 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **AdminUser** (str) - 管理员帐户名,默认root + - **BackupCount** (int) - 备份策略,每周备份数量,默认7次 + - **BackupDuration** (int) - 备份策略,备份时间间隔,单位小时计,默认24小时 + - **BackupId** (int) - 备份id,如果指定,则表明从备份恢复实例 + - **BackupTime** (int) - 备份策略,备份开始时间,单位小时计,默认1点 + - **BackupZone** (str) - 跨可用区高可用备库所在可用区,参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **CPU** (int) - cpu核数 + - **ChargeType** (str) - Year, Month, Dynamic,Trial,默认: Month + - **ClusterRole** (str) - 当DB类型(DBTypeId)为mongodb时,需要指定mongo的角色,可选值为configsrv (配置节点),shardsrv (数据节点) + - **CouponId** (str) - 使用的代金券id + - **DisableSemisync** (bool) - 是否开启异步高可用,默认不填,可置为true + - **HAArch** (str) - 高可用架构:1) haproxy(默认): 当前仅支持mysql。2) sentinel: 基于vip和哨兵节点的架构,当前支持mysql和pg。 + - **InstanceMode** (str) - UDB实例模式类型, 可选值如下: "Normal": 普通版UDB实例 "HA": 高可用版UDB实例 默认是"Normal" + - **InstanceType** (str) - UDB数据库机型 + - **Quantity** (int) - 购买时长,默认值1 + - **SSDType** (str) - SSD类型,可选值为"SATA"、"PCI-E",如果UseSSD为true ,则必选 + - **SubnetId** (str) - 子网ID + - **Tag** (str) - + - **UDBCId** (str) - 专区ID信息(如果这个参数存在这说明是在专区中创建DB) + - **UseSSD** (bool) - 是否使用SSD,默认为false。目前主要可用区、海外机房、新机房只提供SSD资源,非SSD资源不再提供。 + - **VPCId** (str) - VPC的ID + + **Response** + + - **DBId** (str) - BD实例id + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.CreateUDBInstanceRequestSchema().dumps(d) + kwargs["max_retries"] = 0 + resp = self.invoke("CreateUDBInstance", d, **kwargs) + return apis.CreateUDBInstanceResponseSchema().loads(resp)
+ +
[docs] def create_udb_instance_by_recovery(self, req=None, **kwargs): + """ CreateUDBInstanceByRecovery - 创建db,将新创建的db恢复到指定db某个指定时间点 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **Name** (str) - (Required) 实例名称,至少6位 + - **RecoveryTime** (int) - (Required) 恢复到某个时间点的时间戳(UTC时间格式,默认单位秒) + - **SrcDBId** (str) - (Required) 源实例的Id + - **ChargeType** (str) - Year, Month, Dynamic,Trial,默认: Dynamic + - **CouponId** (str) - 使用的代金券id + - **Quantity** (int) - 购买时长,默认值1 + - **SubnetId** (str) - 子网ID + - **UDBCId** (str) - 专区的Id + - **UseSSD** (bool) - 指定是否是否使用SSD,默认使用主库的配置 + - **VPCId** (str) - VPC的ID + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + - **DBId** (str) - db实例id + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.CreateUDBInstanceByRecoveryRequestSchema().dumps(d) + kwargs["max_retries"] = 0 + resp = self.invoke("CreateUDBInstanceByRecovery", d, **kwargs) + return apis.CreateUDBInstanceByRecoveryResponseSchema().loads(resp)
+ +
[docs] def create_udb_param_group(self, req=None, **kwargs): + """ CreateUDBParamGroup - 从已有配置文件创建新配置文件 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **DBTypeId** (str) - (Required) DB类型id,mysql/mongodb/postgesql按版本细分 1:mysql-5.1,2:mysql-5.5,3:percona-5.5,4:mysql-5.6,5:percona-5.6,6:mysql-5.7,7:percona-5.7,8:mariadb-10.0,9:mongodb-2.4,10:mongodb-2.6,11:mongodb-3.0,12:mongodb-3.2,13:postgresql-9.4,14:postgresql-9.6 + - **Description** (str) - (Required) 参数组描述 + - **GroupName** (str) - (Required) 新配置参数组名称 + - **SrcGroupId** (int) - (Required) 源参数组id + - **Zone** (str) - (Required) 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **RegionFlag** (bool) - 是否是地域级别的配置文件,默认是false + + **Response** + + - **GroupId** (int) - 新配置参数组id + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.CreateUDBParamGroupRequestSchema().dumps(d) + kwargs["max_retries"] = 0 + resp = self.invoke("CreateUDBParamGroup", d, **kwargs) + return apis.CreateUDBParamGroupResponseSchema().loads(resp)
+ +
[docs] def create_udb_replication_instance(self, req=None, **kwargs): + """ CreateUDBReplicationInstance - 创建MongoDB的副本节点(包括仲裁) + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **Name** (str) - (Required) 实例名称,至少6位 + - **SrcId** (str) - (Required) primary节点的DBId,该值可以通过DescribeUDBInstance获取 + - **CouponId** (str) - 使用的代金券id + - **IsArbiter** (bool) - 是否是仲裁节点,默认false,仲裁节点按最小机型创建 + - **Port** (int) - 端口号,默认27017,取值范围3306至65535。 + - **UseSSD** (bool) - 是否使用SSD,默认不使用 + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + - **DBId** (str) - 创建从节点的DBId + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.CreateUDBReplicationInstanceRequestSchema().dumps(d) + kwargs["max_retries"] = 0 + resp = self.invoke("CreateUDBReplicationInstance", d, **kwargs) + return apis.CreateUDBReplicationInstanceResponseSchema().loads(resp)
+ +
[docs] def create_udb_route_instance(self, req=None, **kwargs): + """ CreateUDBRouteInstance - 创建mongos实例 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **ConfigsvrId** (list) - (Required) 配置服务器的dbid,允许一个或者三个。 + - **DBTypeId** (str) - (Required) DB类型id,mongodb按版本细分有1:mongodb-2.4,2:mongodb-2.6,3:mongodb-3.0,4:mongodb-3.2 + - **DiskSpace** (int) - (Required) 磁盘空间(GB), 暂时支持20G - 500G + - **MemoryLimit** (int) - (Required) 内存限制(MB),目前支持以下几档 600M/1500M/3000M /6000M/15000M/30000M + - **Name** (str) - (Required) 实例名称,至少6位 + - **ParamGroupId** (int) - (Required) DB实例使用的配置参数组id + - **Port** (int) - (Required) 端口号,mongodb默认27017 + - **ChargeType** (str) - Year, Month, Dynamic,Trial,默认: Month + - **CouponId** (str) - 使用的代金券id + - **Quantity** (int) - 购买时长,默认值1 + - **UseSSD** (bool) - 是否使用SSD,默认为false + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + - **DBId** (str) - db实例id + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.CreateUDBRouteInstanceRequestSchema().dumps(d) + kwargs["max_retries"] = 0 + resp = self.invoke("CreateUDBRouteInstance", d, **kwargs) + return apis.CreateUDBRouteInstanceResponseSchema().loads(resp)
+ +
[docs] def create_udb_slave(self, req=None, **kwargs): + """ CreateUDBSlave - 创建UDB实例的slave + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **Name** (str) - (Required) 实例名称,至少6位 + - **SrcId** (str) - (Required) master实例的DBId,该值可以通过DescribeUDBInstance获取 + - **CouponId** (str) - 使用的代金券id + - **DiskSpace** (int) - 磁盘空间(GB), 暂时支持20G - 3000G(API支持,前端暂时只开放内存定制) + - **InstanceMode** (str) - UDB实例部署模式,可选值如下:Normal: 普通单点实例HA: 高可用部署实例 + - **InstanceType** (str) - UDB实例类型:Normal和SATA_SSD + - **IsLock** (bool) - 是否锁主库,默认为true + - **MemoryLimit** (int) - 内存限制(MB),目前支持以下几档 1000M/2000M/4000M/ 6000M/8000M/12000M/16000M/ 24000M/32000M/48000M/ 64000M/96000M + - **Port** (int) - 端口号,mysql默认3306 + - **SSDType** (str) - SSD类型,可选值为"SATA"、"PCI-E",如果UseSSD为true ,则必选 + - **UseSSD** (bool) - 是否使用SSD,默认为false + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + - **DBId** (str) - 创建slave的DBId + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.CreateUDBSlaveRequestSchema().dumps(d) + kwargs["max_retries"] = 0 + resp = self.invoke("CreateUDBSlave", d, **kwargs) + return apis.CreateUDBSlaveResponseSchema().loads(resp)
+ +
[docs] def delete_udb_backup(self, req=None, **kwargs): + """ DeleteUDBBackup - 删除UDB实例备份 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **BackupId** (int) - (Required) 备份id,可通过DescribeUDBBackup获得 + - **Zone** (str) - (Required) 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **BackupZone** (str) - 跨可用区高可用备库所在可用区,参见[可用区列表] + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DeleteUDBBackupRequestSchema().dumps(d) + resp = self.invoke("DeleteUDBBackup", d, **kwargs) + return apis.DeleteUDBBackupResponseSchema().loads(resp)
+ +
[docs] def delete_udb_instance(self, req=None, **kwargs): + """ DeleteUDBInstance - 删除UDB实例 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **DBId** (str) - (Required) DB实例的id,该值可以通过DescribeUDBInstance获取 + - **UDBCId** (str) - 专区ID + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DeleteUDBInstanceRequestSchema().dumps(d) + resp = self.invoke("DeleteUDBInstance", d, **kwargs) + return apis.DeleteUDBInstanceResponseSchema().loads(resp)
+ +
[docs] def delete_udb_log_package(self, req=None, **kwargs): + """ DeleteUDBLogPackage - 删除UDB日志包 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **BackupId** (int) - (Required) 日志包id,可通过DescribeUDBLogPackage获得 + - **Zone** (str) - (Required) 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **BackupZone** (str) - 跨可用区高可用备库所在可用区 + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DeleteUDBLogPackageRequestSchema().dumps(d) + resp = self.invoke("DeleteUDBLogPackage", d, **kwargs) + return apis.DeleteUDBLogPackageResponseSchema().loads(resp)
+ +
[docs] def delete_udb_param_group(self, req=None, **kwargs): + """ DeleteUDBParamGroup - 删除配置参数组 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **GroupId** (int) - (Required) 参数组id,可通过DescribeUDBParamGroup获取 + - **Zone** (str) - (Required) 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **RegionFlag** (bool) - 是否属于地域级别 + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DeleteUDBParamGroupRequestSchema().dumps(d) + resp = self.invoke("DeleteUDBParamGroup", d, **kwargs) + return apis.DeleteUDBParamGroupResponseSchema().loads(resp)
+ +
[docs] def describe_udb_backup(self, req=None, **kwargs): + """ DescribeUDBBackup - 列表UDB实例备份信息.Zone不填表示多可用区,填代表单可用区 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **Limit** (int) - (Required) 分页显示的条目数,列表操作则指定 + - **Offset** (int) - (Required) 分页显示的起始偏移,列表操作则指定 + - **BackupId** (int) - 如果填了BackupId, 那么只拉取这个备份的记录 + - **BackupType** (int) - 备份类型,取值为0或1,0表示自动,1表示手动 + - **BeginTime** (int) - 过滤条件:起始时间(Unix时间戳) + - **ClassType** (str) - 如果未指定GroupId,则可选是否选取特定DB类型的配置(sql, nosql, postgresql, sqlserver) + - **DBId** (str) - DB实例Id,如果指定,则只获取该db的备份信息 该值可以通过DescribeUDBInstance获取 + - **EndTime** (int) - 过滤条件:结束时间(Unix时间戳) + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + - **DataSet** (list) - 见 **UDBBackupSet** 模型定义 + - **TotalCount** (int) - 满足条件备份总数,如果指定dbid,则是该db备份总数 + + **Response Model** + + **UDBBackupSet** + + - **BackupEndTime** (int) - 备份完成时间(Unix时间戳) + - **BackupId** (int) - 备份id + - **BackupName** (str) - 备份名称 + - **BackupSize** (int) - 备份文件大小(字节) + - **BackupTime** (int) - 备份时间(Unix时间戳) + - **BackupType** (int) - 备份类型,取值为0或1,0表示自动,1表示手动 + - **BackupZone** (str) - 跨机房高可用备库所在可用区 + - **DBId** (str) - dbid + - **DBName** (str) - 对应的db名称 + - **ErrorInfo** (str) - 备份错误信息 + - **State** (str) - 备份状态 Backuping // 备份中 Success // 备份成功 Failed // 备份失败 Expired // 备份过期 + - **Zone** (str) - 备份所在可用区 + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DescribeUDBBackupRequestSchema().dumps(d) + resp = self.invoke("DescribeUDBBackup", d, **kwargs) + return apis.DescribeUDBBackupResponseSchema().loads(resp)
+ +
[docs] def describe_udb_backup_blacklist(self, req=None, **kwargs): + """ DescribeUDBBackupBlacklist - 获取UDB实例的备份黑名单 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **DBId** (str) - (Required) DB实例Id,该值可以通过DescribeUDBInstance获取 + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + - **Blacklist** (str) - DB的黑名单列表, db.%为指定库 dbname.tablename为指定表 + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DescribeUDBBackupBlacklistRequestSchema().dumps(d) + resp = self.invoke("DescribeUDBBackupBlacklist", d, **kwargs) + return apis.DescribeUDBBackupBlacklistResponseSchema().loads(resp)
+ +
[docs] def describe_udb_binlog_backup_url(self, req=None, **kwargs): + """ DescribeUDBBinlogBackupURL - 获取UDB的Binlog备份地址 + + **Request** + + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **BackupId** (int) - (Required) DB实例备份ID + - **DBId** (str) - (Required) DB实例Id + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + - **BackupPath** (str) - DB实例备份文件的公网地址 + - **InnerBackupPath** (str) - DB实例备份文件的内网地址 + + """ + d = {"Region": self.config.region} + req and d.update(req) + d = apis.DescribeUDBBinlogBackupURLRequestSchema().dumps(d) + resp = self.invoke("DescribeUDBBinlogBackupURL", d, **kwargs) + return apis.DescribeUDBBinlogBackupURLResponseSchema().loads(resp)
+ +
[docs] def describe_udb_instance(self, req=None, **kwargs): + """ DescribeUDBInstance - 获取UDB实例信息,支持两类操作:(1)指定DBId用于获取该db的信息;(2)指定ClassType、Offset、Limit用于列表操作,查询某一个类型db。 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **ClassType** (str) - (Required) DB种类,如果是列表操作,则需要指定,不区分大小写,其取值如下:mysql: SQL;mongo: NOSQL;postgresql: postgresql + - **Limit** (int) - (Required) 分页显示数量,列表操作则指定 + - **Offset** (int) - (Required) 分页显示起始偏移位置,列表操作则指定 + - **DBId** (str) - DB实例id,如果指定则获取描述,否则为列表操作, 指定Offset/Limit/ClassType DBId可通过DescribeUDBInstance获取 + - **IncludeSlaves** (bool) - 当只获取这个特定DBId的信息时,如果有该选项,那么把这个DBId实例的所有从库信息一起拉取并返回 + - **IsInUDBC** (bool) - 是否查看专区里面DB + - **UDBCId** (str) - IsInUDBC为True,UDBCId为空,说明查看整个可用区的专区的db,如果UDBId不为空则只查看此专区下面的db + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + - **DataSet** (list) - 见 **UDBInstanceSet** 模型定义 + - **TotalCount** (int) - 用户db组的数量,对于 mysql: 主从结对数量,没有slave,则只有master mongodb: 副本集数量 + + **Response Model** + + **UDBSlaveInstanceSet** + + - **AdminUser** (str) - 管理员帐户名,默认root + - **BackupBeginTime** (int) - 备份策略,不可修改,开始时间,单位小时计,默认3点 + - **BackupBlacklist** (str) - 备份策略,备份黑名单,mongodb则不适用 + - **BackupCount** (int) - 备份策略,不可修改,备份文件保留的数量,默认7次 + - **BackupDate** (str) - 备份日期标记位。共7位,每一位为一周中一天的备份情况 0表示关闭当天备份,1表示打开当天备份。最右边的一位 为星期天的备份开关,其余从右到左依次为星期一到星期 六的备份配置开关,每周必须至少设置两天备份。 例如:1100000 表示打开星期六和星期五的自动备份功能 + - **BackupDuration** (int) - 备份策略,一天内备份时间间隔,单位小时,默认24小时 + - **ChargeType** (str) - Year, Month, Dynamic,Trial,默认: Dynamic + - **ClusterRole** (str) - 当DB类型为mongodb时,返回该实例所在集群中的角色,包括:mongos、configsrv_sccc、configsrv_csrs、shardsrv_datanode、shardsrv_arbiter,其中congfigsrv分为sccc和csrs两种模式,shardsrv分为datanode和arbiter两种模式 + - **CreateTime** (int) - DB实例创建时间,采用UTC计时时间戳 + - **DBId** (str) - DB实例id + - **DBTypeId** (str) - DB类型id,mysql/mongodb按版本细分各有一个id 目前id的取值范围为[1,7],数值对应的版本如下: 1:mysql-5.5,2:mysql-5.1,3:percona-5.5 4:mongodb-2.4,5:mongodb-2.6,6:mysql-5.6, 7:percona-5.6 + - **DataFileSize** (float) - DB实例数据文件大小,单位GB + - **DiskSpace** (int) - 磁盘空间(GB), 默认根据配置机型 + - **DiskUsedSize** (float) - DB实例磁盘已使用空间,单位GB + - **ExpiredTime** (int) - DB实例过期时间,采用UTC计时时间戳 + - **InstanceMode** (str) - UDB实例模式类型, 可选值如下: "Normal": 普通版UDB实例;"HA": 高可用版UDB实例 + - **InstanceType** (str) - UDB数据库机型 + - **InstanceTypeId** (int) - UDB数据库机型ID + - **LogFileSize** (float) - DB实例日志文件大小,单位GB + - **MemoryLimit** (int) - 内存限制(MB),默认根据配置机型 + - **ModifyTime** (int) - DB实例修改时间,采用UTC计时时间戳 + - **Name** (str) - 实例名称,至少6位 + - **ParamGroupId** (int) - DB实例使用的配置参数组id + - **Port** (int) - 端口号,mysql默认3306,mongodb默认27017 + - **Role** (str) - DB实例角色,mysql区分master/slave,mongodb多种角色 + - **SSDType** (str) - SSD类型,SATA/PCI-E + - **SrcDBId** (str) - 对mysql的slave而言是master的DBId,对master则为空, 对mongodb则是副本集id + - **State** (str) - DB状态标记 Init:初始化中,Fail:安装失败,Starting:启动中,Running:运行,Shutdown:关闭中,Shutoff:已关闭,Delete:已删除,Upgrading:升级中,Promoting:提升为独库进行中,Recovering:恢复中,Recover fail:恢复失败 + - **SubnetId** (str) - 子网ID + - **SystemFileSize** (float) - DB实例系统文件大小,单位GB + - **Tag** (str) - 获取资源其他信息 + - **UseSSD** (bool) - 是否使用SSD + - **VPCId** (str) - VPC的ID + - **VirtualIP** (str) - DB实例虚ip + - **VirtualIPMac** (str) - DB实例虚ip的mac地址 + - **Zone** (str) - 可用区 + + **UDBInstanceSet** + + - **AdminUser** (str) - 管理员帐户名,默认root + - **BackupBeginTime** (int) - 备份策略,不可修改,开始时间,单位小时计,默认3点 + - **BackupBlacklist** (str) - 备份策略,备份黑名单,mongodb则不适用 + - **BackupCount** (int) - 备份策略,不可修改,备份文件保留的数量,默认7次 + - **BackupDate** (str) - 备份日期标记位。共7位,每一位为一周中一天的备份情况 0表示关闭当天备份,1表示打开当天备份。最右边的一位 为星期天的备份开关,其余从右到左依次为星期一到星期 六的备份配置开关,每周必须至少设置两天备份。 例如:1100000 表示打开星期六和星期五的自动备份功能 + - **BackupDuration** (int) - 备份策略,一天内备份时间间隔,单位小时,默认24小时 + - **BackupZone** (str) - 跨可用区高可用备库所在可用区 + - **ChargeType** (str) - Year, Month, Dynamic,Trial,默认: Dynamic + - **CluserRole** (str) - 当DB类型为mongodb时,返回该实例所在集群中的角色,包括:mongos、configsrv_sccc、configsrv_csrs、shardsrv_datanode、shardsrv_arbiter,其中congfigsrv分为sccc和csrs两种模式,shardsrv分为datanode和arbiter两种模式 + - **CreateTime** (int) - DB实例创建时间,采用UTC计时时间戳 + - **DBId** (str) - DB实例id + - **DBTypeId** (str) - DB类型id,mysql/mongodb按版本细分各有一个id 目前id的取值范围为[1,7],数值对应的版本如下: 1:mysql-5.5,2:mysql-5.1,3:percona-5.5 4:mongodb-2.4,5:mongodb-2.6,6:mysql-5.6, 7:percona-5.6 + - **DataFileSize** (float) - DB实例数据文件大小,单位GB + - **DataSet** (list) - 见 **UDBSlaveInstanceSet** 模型定义 + - **DiskSpace** (int) - 磁盘空间(GB), 默认根据配置机型 + - **DiskUsedSize** (float) - DB实例磁盘已使用空间,单位GB + - **ExpiredTime** (int) - DB实例过期时间,采用UTC计时时间戳 + - **InstanceMode** (str) - UDB实例模式类型, 可选值如下: “Normal”: 普通版UDB实例 “HA”: 高可用版UDB实例 + - **InstanceType** (str) - UDB数据库机型 + - **InstanceTypeId** (int) - UDB数据库机型ID + - **LogFileSize** (float) - DB实例日志文件大小,单位GB + - **MemoryLimit** (int) - 内存限制(MB),默认根据配置机型 + - **ModifyTime** (int) - DB实例修改时间,采用UTC计时时间戳 + - **Name** (str) - 实例名称,至少6位 + - **ParamGroupId** (int) - DB实例使用的配置参数组id + - **Port** (int) - 端口号,mysql默认3306,mongodb默认27017 + - **Role** (str) - DB实例角色,mysql区分master/slave,mongodb多种角色 + - **SSDType** (str) - SSD类型,SATA/PCI-E + - **SrcDBId** (str) - 对mysql的slave而言是master的DBId,对master则为空, 对mongodb则是副本集id + - **State** (str) - DB状态标记 Init:初始化中,Fail:安装失败,Starting:启动中,Running:运行,Shutdown:关闭中,Shutoff:已关闭,Delete:已删除,Upgrading:升级中,Promoting:提升为独库进行中,Recovering:恢复中,Recover fail:恢复失败 + - **SubnetId** (str) - 子网ID + - **SystemFileSize** (float) - DB实例系统文件大小,单位GB + - **Tag** (str) - 获取资源其他信息 + - **UseSSD** (bool) - 是否使用SSD + - **VPCId** (str) - VPC的ID + - **VirtualIP** (str) - DB实例虚ip + - **VirtualIPMac** (str) - DB实例虚ip的mac地址 + - **Zone** (str) - DB实例所在可用区 + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DescribeUDBInstanceRequestSchema().dumps(d) + resp = self.invoke("DescribeUDBInstance", d, **kwargs) + return apis.DescribeUDBInstanceResponseSchema().loads(resp)
+ +
[docs] def describe_udb_instance_backup_state(self, req=None, **kwargs): + """ DescribeUDBInstanceBackupState - 获取UDB实例备份状态 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **BackupId** (int) - (Required) 备份记录ID + - **Zone** (str) - (Required) 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **BackupZone** (str) - 跨可用区高可用备库所在可用区,参见[可用区列表] + + **Response** + + - **BackupEndTime** (int) - + - **BackupSize** (int) - + - **State** (str) - 备份状态 0 Backuping // 备份中 1 Success // 备份成功 2 Failed // 备份失败 3 Expired // 备份过期 + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DescribeUDBInstanceBackupStateRequestSchema().dumps(d) + resp = self.invoke("DescribeUDBInstanceBackupState", d, **kwargs) + return apis.DescribeUDBInstanceBackupStateResponseSchema().loads(resp)
+ +
[docs] def describe_udb_instance_backup_url(self, req=None, **kwargs): + """ DescribeUDBInstanceBackupURL - 获取UDB备份下载地址 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **BackupId** (int) - (Required) DB实例备份ID,该值可以通过DescribeUDBBackup获取 + - **DBId** (str) - (Required) DB实例Id,该值可通过DescribeUDBInstance获取 + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + - **BackupPath** (str) - DB实例备份文件公网的地址 + - **InnerBackupPath** (str) - DB实例备份文件内网的地址 + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DescribeUDBInstanceBackupURLRequestSchema().dumps(d) + resp = self.invoke("DescribeUDBInstanceBackupURL", d, **kwargs) + return apis.DescribeUDBInstanceBackupURLResponseSchema().loads(resp)
+ +
[docs] def describe_udb_instance_binlog(self, req=None, **kwargs): + """ DescribeUDBInstanceBinlog - 获取UDB指定时间段的binlog列表 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **BeginTime** (int) - (Required) 过滤条件:起始时间(时间戳) + - **DBId** (str) - (Required) DB实例Id + - **EndTime** (int) - (Required) 过滤条件:结束时间(时间戳) + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + - **DataSet** (list) - 见 **UDBInstanceBinlogSet** 模型定义 + + **Response Model** + + **UDBInstanceBinlogSet** + + - **BeginTime** (int) - Binlog文件生成时间(时间戳) + - **EndTime** (int) - Binlog文件结束时间(时间戳) + - **Name** (str) - Binlog文件名 + - **Size** (int) - Binlog文件大小 + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DescribeUDBInstanceBinlogRequestSchema().dumps(d) + resp = self.invoke("DescribeUDBInstanceBinlog", d, **kwargs) + return apis.DescribeUDBInstanceBinlogResponseSchema().loads(resp)
+ +
[docs] def describe_udb_instance_binlog_backup_state(self, req=None, **kwargs): + """ DescribeUDBInstanceBinlogBackupState - 获取udb实例备份状态 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **BackupId** (int) - (Required) 备份记录ID + - **Zone** (str) - (Required) 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **BackupZone** (str) - 跨可用区高可用备库所在可用区 + + **Response** + + - **BackupSize** (int) - 备份文件大小(字节) + - **State** (str) - 备份状态 0 Backuping // 备份中 1 Success // 备份成功 2 Failed // 备份失败 3 Expired // 备份过期 + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DescribeUDBInstanceBinlogBackupStateRequestSchema().dumps(d) + resp = self.invoke("DescribeUDBInstanceBinlogBackupState", d, **kwargs) + return apis.DescribeUDBInstanceBinlogBackupStateResponseSchema().loads(resp)
+ +
[docs] def describe_udb_instance_price(self, req=None, **kwargs): + """ DescribeUDBInstancePrice - 获取UDB实例价格信息 + + **Request** + + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **DBTypeId** (str) - (Required) UDB实例的DB版本字符串 + - **DiskSpace** (int) - (Required) 磁盘空间(GB),暂时支持20(GB) - 3000(GB), 输入不带单位 + - **MemoryLimit** (int) - (Required) 内存限制(MB),单位为MB.目前支持:1000-96000 + - **Zone** (str) - (Required) 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **ChargeType** (str) - Year,按年付费; Month,按月付费 Dynamic,按需付费(需开启权限) Trial,试用(需开启权限)默认为月付 + - **Count** (int) - 购买DB实例数量,最大数量为10台, 默认为1台 + - **InstanceMode** (str) - 实例的部署类型。可选值为:Normal: 普通单点实例,Slave: 从库实例,HA: 高可用部署实例,默认是Normal + - **Quantity** (int) - DB购买多少个"计费时间单位",默认值为1。比如:买2个月,Quantity就是2。如果计费单位是“按月”,并且Quantity为0,表示“购买到月底” + - **SSDType** (str) - SSD类型,可选值为"SATA"、"PCI-E",如果UseSSD为true ,则必填 + - **UseSSD** (bool) - 是否使用SSD,默认为false + + **Response** + + - **DataSet** (list) - 见 **UDBInstancePriceSet** 模型定义 + + **Response Model** + + **UDBInstancePriceSet** + + - **ChargeType** (str) - Year, Month, Dynamic,Trial + - **Price** (float) - 价格,单位为分,保留小数点后两位 + + """ + d = {"Region": self.config.region} + req and d.update(req) + d = apis.DescribeUDBInstancePriceRequestSchema().dumps(d) + resp = self.invoke("DescribeUDBInstancePrice", d, **kwargs) + return apis.DescribeUDBInstancePriceResponseSchema().loads(resp)
+ +
[docs] def describe_udb_instance_state(self, req=None, **kwargs): + """ DescribeUDBInstanceState - 获取UDB实例状态 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **DBId** (str) - (Required) 实例的Id,该值可以通过DescribeUDBInstance获取 + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + - **State** (str) - DB状态标记 Init:初始化中;Fail:安装失败; Starting:启动中; Running : 运行 ;Shutdown:关闭中; Shutoff :已关闭; Delete:已删除; Upgrading:升级中; Promoting: 提升为独库进行中; Recovering: 恢复中; Recover fail:恢复失败。 + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DescribeUDBInstanceStateRequestSchema().dumps(d) + resp = self.invoke("DescribeUDBInstanceState", d, **kwargs) + return apis.DescribeUDBInstanceStateResponseSchema().loads(resp)
+ +
[docs] def describe_udb_instance_upgrade_price(self, req=None, **kwargs): + """ DescribeUDBInstanceUpgradePrice - 获取UDB实例升降级价格信息 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **DBId** (str) - (Required) 实例的Id + - **DiskSpace** (int) - (Required) 磁盘空间(GB), 暂时支持20G - 500G + - **MemoryLimit** (int) - (Required) 内存限制(MB) + - **SSDType** (str) - SSD类型,可选值为"SATA"、"PCI-E",如果UseSSD为true ,则必选 + - **UseSSD** (bool) - 是否使用SSD,默认为false + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + - **Price** (float) - 价格,单位分 + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DescribeUDBInstanceUpgradePriceRequestSchema().dumps(d) + resp = self.invoke("DescribeUDBInstanceUpgradePrice", d, **kwargs) + return apis.DescribeUDBInstanceUpgradePriceResponseSchema().loads(resp)
+ +
[docs] def describe_udb_log_backup_url(self, req=None, **kwargs): + """ DescribeUDBLogBackupURL - 获取UDB的slowlog备份地址 + + **Request** + + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **BackupId** (int) - (Required) DB实例备份ID + - **DBId** (str) - (Required) DB实例Id + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + - **BackupPath** (str) - 备份外网URL + - **UsernetPath** (str) - 备份用户网URL + + """ + d = {"Region": self.config.region} + req and d.update(req) + d = apis.DescribeUDBLogBackupURLRequestSchema().dumps(d) + resp = self.invoke("DescribeUDBLogBackupURL", d, **kwargs) + return apis.DescribeUDBLogBackupURLResponseSchema().loads(resp)
+ +
[docs] def describe_udb_log_package(self, req=None, **kwargs): + """ DescribeUDBLogPackage - 列表UDB实例binlog或slowlog或errorlog备份信息 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **Limit** (int) - (Required) 分页显示的条目数,列表操作则指定 + - **Offset** (int) - (Required) 分页显示的起始偏移,列表操作则指定 + - **BeginTime** (int) - 过滤条件:起始时间(时间戳) + - **DBId** (str) - DB实例Id,如果指定,则只获取该db的备份信息 + - **EndTime** (int) - 过滤条件:结束时间(时间戳) + - **Type** (int) - 需要列出的备份文件类型,每种文件的值如下 2 : BINLOG\\_BACKUP 3 : SLOW\\_QUERY\\_BACKUP 4 : ERRORLOG\\_BACKUP + - **Types** (list) - Types作为Type的补充,支持多值传入,可以获取多个类型的日志记录,如:Types.0=2&Types.1=3 + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + - **DataSet** (list) - 见 **LogPackageDataSet** 模型定义 + - **TotalCount** (int) - 备份总数,如果指定dbid,则是该db备份总数 + + **Response Model** + + **LogPackageDataSet** + + - **BackupId** (int) - 备份id + - **BackupName** (str) - 备份名称 + - **BackupSize** (int) - 备份文件大小 + - **BackupTime** (int) - 备份时间 + - **BackupType** (int) - 备份类型,包括2-binlog备份,3-slowlog备份 + - **BackupZone** (str) - 跨可用区高可用备库所在可用区 + - **DBId** (str) - dbid + - **DBName** (str) - 对应的db名称 + - **State** (str) - 备份状态 Backuping // 备份中 Success // 备份成功 Failed // 备份失败 Expired // 备份过期 + - **Zone** (str) - 所在可用区 + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DescribeUDBLogPackageRequestSchema().dumps(d) + resp = self.invoke("DescribeUDBLogPackage", d, **kwargs) + return apis.DescribeUDBLogPackageResponseSchema().loads(resp)
+ +
[docs] def describe_udb_param_group(self, req=None, **kwargs): + """ DescribeUDBParamGroup - 获取参数组详细参数信息 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **Limit** (int) - (Required) 分页显示的条目数,列表操作则指定 + - **Offset** (int) - (Required) 分页显示的起始偏移,列表操作则指定 + - **ClassType** (str) - 如果未指定GroupId,则可选是否选取特定DB类型的配置(sql, nosql, postgresql, sqlserver) + - **GroupId** (int) - 参数组id,如果指定则获取描述,否则是列表操作,需要 指定Offset/Limit + - **IsInUDBC** (bool) - 是否选取专区中配置 + - **RegionFlag** (bool) - 当请求没有填写Zone时,如果指定为true,表示只拉取跨可用区的相关配置文件,否则,拉取所有机房的配置文件(包括每个单可用区和跨可用区) + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + - **DataSet** (list) - 见 **UDBParamGroupSet** 模型定义 + - **TotalCount** (int) - 参数组总数,列表操作时才会有该参数 + + **Response Model** + + **UDBParamMemberSet** + + - **AllowedVal** (str) - 允许的值(根据参数类型,用分隔符表示) + - **ApplyType** (int) - 参数值应用类型,取值范围为{0,10,20},各值代表 意义为0-unknown、10-static、20-dynamic + - **FormatType** (int) - 允许值的格式类型,取值范围为{0,10,20},意义分 别为PVFT_UNKOWN=0,PVFT_RANGE=10, PVFT_ENUM=20 + - **Key** (str) - 参数名称 + - **Modifiable** (bool) - 是否可更改,默认为false + - **Value** (str) - 参数值 + - **ValueType** (int) - 参数值应用类型,取值范围为{0,10,20,30},各值 代表意义为 0-unknown、10-int、20-string、 30-bool + + **UDBParamGroupSet** + + - **DBTypeId** (str) - DB类型id,mysql/mongodb按版本细分各有一个id 目前id的取值范围为[1,7],数值对应的版本如下 1:mysql-5.5,2:mysql-5.1,3:percona-5.5 4:mongodb-2.4,5:mongodb-2.6,6:mysql-5.6 7:percona-5.6 + - **Description** (str) - 参数组描述 + - **GroupId** (int) - 参数组id + - **GroupName** (str) - 参数组名称 + - **Modifiable** (bool) - 参数组是否可修改 + - **ParamMember** (list) - 见 **UDBParamMemberSet** 模型定义 + - **RegionFlag** (bool) - + - **Zone** (str) - + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DescribeUDBParamGroupRequestSchema().dumps(d) + resp = self.invoke("DescribeUDBParamGroup", d, **kwargs) + return apis.DescribeUDBParamGroupResponseSchema().loads(resp)
+ +
[docs] def describe_udb_type(self, req=None, **kwargs): + """ DescribeUDBType - 获取UDB支持的类型信息 + + **Request** + + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **Zone** (str) - (Required) 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **DBClusterType** (str) - DB实例类型,如mysql,sqlserver,mongo,postgresql + - **DiskType** (str) - 返回支持某种磁盘类型的DB类型。如果没传,则表示任何磁盘类型均可。 + - **InstanceMode** (str) - 返回支持某种实例类型的DB类型。如果没传,则表示任何实例类型均可。normal:单点,ha:高可用,sharded_cluster:分片集群 + + **Response** + + - **DataSet** (list) - 见 **UDBTypeSet** 模型定义 + + **Response Model** + + **UDBTypeSet** + + - **DBTypeId** (str) - DB类型id,mysql/mongodb按版本细分各有一个id, 目前id的取值范围为[1,7],数值对应的版本如下: 1:mysql-5.5,2:mysql-5.1,3:percona-5.5 4:mongodb-2.4,5:mongodb-2.6,6:mysql-5.6, 7:percona-5.6 + + """ + d = {"Region": self.config.region} + req and d.update(req) + d = apis.DescribeUDBTypeRequestSchema().dumps(d) + resp = self.invoke("DescribeUDBType", d, **kwargs) + return apis.DescribeUDBTypeResponseSchema().loads(resp)
+ +
[docs] def edit_udb_backup_blacklist(self, req=None, **kwargs): + """ EditUDBBackupBlacklist - 编辑UDB实例的备份黑名单 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **Blacklist** (str) - (Required) 黑名单,规范示例,指定库mysql.%;test.%; 指定表city.address; + - **DBId** (str) - (Required) DB实例Id,该值可以通过DescribeUDBInstance获取 + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.EditUDBBackupBlacklistRequestSchema().dumps(d) + resp = self.invoke("EditUDBBackupBlacklist", d, **kwargs) + return apis.EditUDBBackupBlacklistResponseSchema().loads(resp)
+ +
[docs] def fetch_udb_instance_earliest_recover_time(self, req=None, **kwargs): + """ FetchUDBInstanceEarliestRecoverTime - 获取UDB最早可回档的时间点 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **DBId** (str) - (Required) DB实例Id + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + - **EarliestTime** (int) - 获取最早可回档时间点 + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.FetchUDBInstanceEarliestRecoverTimeRequestSchema().dumps(d) + resp = self.invoke("FetchUDBInstanceEarliestRecoverTime", d, **kwargs) + return apis.FetchUDBInstanceEarliestRecoverTimeResponseSchema().loads(resp)
+ +
[docs] def modify_udb_instance_name(self, req=None, **kwargs): + """ ModifyUDBInstanceName - 重命名UDB实例 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **DBId** (str) - (Required) 实例的Id,该值可以通过DescribeUDBInstance获取 + - **Name** (str) - (Required) 实例的新名字, 长度要求为6~63位 + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.ModifyUDBInstanceNameRequestSchema().dumps(d) + resp = self.invoke("ModifyUDBInstanceName", d, **kwargs) + return apis.ModifyUDBInstanceNameResponseSchema().loads(resp)
+ +
[docs] def modify_udb_instance_password(self, req=None, **kwargs): + """ ModifyUDBInstancePassword - 修改DB实例的管理员密码 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **DBId** (str) - (Required) 实例的ID,该值可以通过DescribeUDBInstance获取 + - **Password** (str) - (Required) 实例的新密码 + - **AccountName** (str) - sqlserver帐号,仅在sqlserver的情况下填该参数 + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.ModifyUDBInstancePasswordRequestSchema().dumps(d) + resp = self.invoke("ModifyUDBInstancePassword", d, **kwargs) + return apis.ModifyUDBInstancePasswordResponseSchema().loads(resp)
+ +
[docs] def promote_udb_instance_to_ha(self, req=None, **kwargs): + """ PromoteUDBInstanceToHA - 普通db升级为高可用(只针对mysql5.5及以上版本) + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **DBId** (str) - (Required) 实例的Id,该值可以通过DescribeUDBInstance获取 + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.PromoteUDBInstanceToHARequestSchema().dumps(d) + resp = self.invoke("PromoteUDBInstanceToHA", d, **kwargs) + return apis.PromoteUDBInstanceToHAResponseSchema().loads(resp)
+ +
[docs] def promote_udb_slave(self, req=None, **kwargs): + """ PromoteUDBSlave - 从库提升为独立库 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **DBId** (str) - (Required) 实例的Id,该值可以通过DescribeUDBInstance获取 + - **IsForce** (bool) - 是否强制(如果从库落后可能会禁止提升),默认false 如果落后情况下,强制提升丢失数据 + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.PromoteUDBSlaveRequestSchema().dumps(d) + resp = self.invoke("PromoteUDBSlave", d, **kwargs) + return apis.PromoteUDBSlaveResponseSchema().loads(resp)
+ +
[docs] def resize_udb_instance(self, req=None, **kwargs): + """ ResizeUDBInstance - 修改(升级和降级)UDB实例的配置,包括内存和磁盘的配置,对于内存升级无需关闭实例,其他场景需要事先关闭实例。两套参数可以配置升降机:1.配置UseSSD和SSDType 2.配置InstanceType,不需要配置InstanceMode。这两套第二套参数的优先级更高 + + **Request** + + - **ProjectId** (int) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **DBId** (str) - (Required) 实例的Id + - **DiskSpace** (int) - (Required) 磁盘空间(GB), 暂时支持20G-3000G + - **MemoryLimit** (int) - (Required) 内存限制(MB),目前支持以下几档 1000M/2000M/4000M/ 6000M/8000M/ 12000M/16000M/ 24000M/32000M/ 48000M/64000M/96000M。 + - **CouponId** (str) - 使用的代金券id + - **InstanceMode** (str) - UDB实例模式类型, 可选值如下: "Normal": 普通版UDB实例 "HA": 高可用版UDB实例 默认是"Normal" + - **InstanceType** (str) - UDB数据库机型: "Normal": "标准机型" , "SATA_SSD": "SSD机型" , "PCIE_SSD": "SSD高性能机型" , "Normal_Volume": "标准大容量机型", "SATA_SSD_Volume": "SSD大容量机型" , "PCIE_SSD_Volume": "SSD高性能大容量机型" + - **SSDType** (str) - SSD类型,可选值为"SATA"、"PCI-E",如果UseSSD为true ,则必选 + - **StartAfterUpgrade** (bool) - DB关闭状态下升降级,升降级后是否启动DB,默认为false + - **UDBCId** (str) - 专区的ID,如果有值表示专区中的DB配置升降级 + - **UseSSD** (bool) - 是否使用SSD,默认为false + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.ResizeUDBInstanceRequestSchema().dumps(d) + resp = self.invoke("ResizeUDBInstance", d, **kwargs) + return apis.ResizeUDBInstanceResponseSchema().loads(resp)
+ +
[docs] def restart_udb_instance(self, req=None, **kwargs): + """ RestartUDBInstance - 重启UDB实例 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **DBId** (str) - (Required) 实例的Id,该值可以通过DescribeUDBInstance获取 + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.RestartUDBInstanceRequestSchema().dumps(d) + resp = self.invoke("RestartUDBInstance", d, **kwargs) + return apis.RestartUDBInstanceResponseSchema().loads(resp)
+ +
[docs] def start_udb_instance(self, req=None, **kwargs): + """ StartUDBInstance - 启动UDB实例 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **DBId** (str) - (Required) 实例的Id,该值可以通过DescribeUDBInstance获取 + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.StartUDBInstanceRequestSchema().dumps(d) + resp = self.invoke("StartUDBInstance", d, **kwargs) + return apis.StartUDBInstanceResponseSchema().loads(resp)
+ +
[docs] def stop_udb_instance(self, req=None, **kwargs): + """ StopUDBInstance - 关闭UDB实例 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **DBId** (str) - (Required) 实例的Id,该值可以通过DescribeUDBInstance获取 + - **ForceToKill** (bool) - 是否使用强制手段关闭DB,默认是false + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.StopUDBInstanceRequestSchema().dumps(d) + resp = self.invoke("StopUDBInstance", d, **kwargs) + return apis.StopUDBInstanceResponseSchema().loads(resp)
+ +
[docs] def switch_udb_instance_to_ha(self, req=None, **kwargs): + """ SwitchUDBInstanceToHA - 普通UDB切换为高可用,原db状态为WaitForSwitch时,调用该api + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **DBId** (str) - (Required) 实例的Id,该值可以通过DescribeUDBInstance获取 + - **ChargeType** (str) - Year, Month, Dynamic,Trial,不填则按现在单点计费执行 + - **Quantity** (str) - 购买时长,需要和 ChargeType 搭配使用,否则使用单点计费策略的值 + - **Tag** (str) - 业务组 + + **Response** + + - **DBId** (str) - 切换后高可用db实例的Id + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.SwitchUDBInstanceToHARequestSchema().dumps(d) + resp = self.invoke("SwitchUDBInstanceToHA", d, **kwargs) + return apis.SwitchUDBInstanceToHAResponseSchema().loads(resp)
+ +
[docs] def update_udb_instance_backup_strategy(self, req=None, **kwargs): + """ UpdateUDBInstanceBackupStrategy - 修改UDB自动备份策略 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **DBId** (str) - (Required) 主节点的Id + - **BackupDate** (str) - 备份时期标记位。共7位,每一位为一周中一天的备份情况,0表示关闭当天备份,1表示打开当天备份。最右边的一位为星期天的备份开关,其余从右到左依次为星期一到星期六的备份配置开关,每周必须至少设置两天备份。例如:1100000表示打开星期六和星期五的备份功能 + - **BackupMethod** (str) - 选择默认的备份方式,可选 snapshot 表示使用快照/物理备份,填 logic 表示使用逻辑备份。需要同时设置BackupDate字段。(注意现在只有SSD 版本的 MySQL实例支持物理备份) + - **BackupTime** (int) - 备份的整点时间,范围[0,23] + - **ForceDump** (bool) - 当导出某些数据遇到问题后,是否强制导出其他剩余数据默认是false需要同时设置BackupDate字段 + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.UpdateUDBInstanceBackupStrategyRequestSchema().dumps(d) + resp = self.invoke("UpdateUDBInstanceBackupStrategy", d, **kwargs) + return apis.UpdateUDBInstanceBackupStrategyResponseSchema().loads(resp)
+ +
[docs] def update_udb_instance_slave_backup_switch(self, req=None, **kwargs): + """ UpdateUDBInstanceSlaveBackupSwitch - 开启或者关闭UDB从库备份 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **BackupSwitch** (int) - (Required) 从库的备份开关,范围[0,1],0表示从库备份功能关闭,1 表示从库备份开关打开。 + - **MasterDBId** (str) - (Required) 主库的Id + - **SlaveDBId** (str) - 从库的Id,如果从库备份开关设定为打开,则必须赋值。 + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.UpdateUDBInstanceSlaveBackupSwitchRequestSchema().dumps(d) + resp = self.invoke("UpdateUDBInstanceSlaveBackupSwitch", d, **kwargs) + return apis.UpdateUDBInstanceSlaveBackupSwitchResponseSchema().loads(resp)
+ +
[docs] def update_udb_param_group(self, req=None, **kwargs): + """ UpdateUDBParamGroup - 更新UDB配置参数项 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **GroupId** (int) - (Required) 配置参数组id,使用DescribeUDBParamGroup获得 + - **Zone** (str) - (Required) 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **Description** (str) - 参数组的描述 + - **Key** (str) - 参数名称(与Value配合使用) + - **Name** (str) - 参数组的名字 + - **RegionFlag** (bool) - 该配置文件是否是地域级别配置文件,默认是false + - **Value** (str) - 参数值(与Key配合使用) + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.UpdateUDBParamGroupRequestSchema().dumps(d) + resp = self.invoke("UpdateUDBParamGroup", d, **kwargs) + return apis.UpdateUDBParamGroupResponseSchema().loads(resp)
+ +
[docs] def upload_udb_param_group(self, req=None, **kwargs): + """ UploadUDBParamGroup - 导入UDB配置 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **Content** (str) - (Required) 配置内容,导入的配置内容采用base64编码 + - **DBTypeId** (str) - (Required) DB类型id,DB类型id,mysql/mongodb/postgesql按版本细分 1:mysql-5.1,2:mysql-5.5,3:percona-5.5,4:mysql-5.6,5:percona-5.6,6:mysql-5.7,7:percona-5.7,8:mariadb-10.0,9:mongodb-2.4,10:mongodb-2.6,11:mongodb-3.0,12:mongodb-3.2,13:postgresql-9.4,14:postgresql-9.6 + - **Description** (str) - (Required) 参数组描述 + - **GroupName** (str) - (Required) 配置参数组名称 + - **Zone** (str) - (Required) 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **ParamGroupTypeId** (int) - 配置文件子类型 0-未知, 1-Shardsvr-MMAPv1, 2-Shardsvr-WiredTiger, 3-Configsvr-MMAPv1, 4-Configsvr-WiredTiger, 5-Mongos + - **RegionFlag** (bool) - 该配置文件是否是地域级别配置文件,默认是false + + **Response** + + - **GroupId** (int) - 配置参数组id + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.UploadUDBParamGroupRequestSchema().dumps(d) + kwargs["max_retries"] = 0 + resp = self.invoke("UploadUDBParamGroup", d, **kwargs) + return apis.UploadUDBParamGroupResponseSchema().loads(resp)
+
+ +
+ +
+
+ +
+
+ + + + + + + \ No newline at end of file diff --git a/_modules/ucloud/services/udisk/client.html b/_modules/ucloud/services/udisk/client.html new file mode 100644 index 0000000..77f3430 --- /dev/null +++ b/_modules/ucloud/services/udisk/client.html @@ -0,0 +1,561 @@ + + + + + + + + ucloud.services.udisk.client — ucloud-sdk-python2 documentation + + + + + + + + + + + + + + + + + + +
+
+
+ + +
+ +

Source code for ucloud.services.udisk.client

+# -*- coding: utf-8 -*-
+
+""" Code is generated by ucloud-model, DO NOT EDIT IT. """
+from ucloud.core.client import Client
+from ucloud.services.udisk.schemas import apis
+
+
+
[docs]class UDiskClient(Client): + def __init__(self, config, transport=None, middleware=None, logger=None): + super(UDiskClient, self).__init__(config, transport, middleware, logger) + +
[docs] def attach_udisk(self, req=None, **kwargs): + """ AttachUDisk - 将一个可用的UDisk挂载到某台主机上,当UDisk挂载成功后,还需要在主机内部进行文件系统操作 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **UDiskId** (str) - (Required) 需要挂载的UDisk实例ID. + - **UHostId** (str) - (Required) UHost实例ID + - **Zone** (str) - (Required) 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **MultiAttach** (str) - 是否允许多点挂载(Yes: 允许多点挂载, No: 不允许多点挂载, 不填默认Yes ) + + **Response** + + - **UDiskId** (str) - 挂载的UDisk实例ID + - **UHostId** (str) - 挂载的UHost实例ID + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.AttachUDiskRequestSchema().dumps(d) + resp = self.invoke("AttachUDisk", d, **kwargs) + return apis.AttachUDiskResponseSchema().loads(resp)
+ +
[docs] def clone_udisk(self, req=None, **kwargs): + """ CloneUDisk - 从UDisk创建UDisk克隆 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **Name** (str) - (Required) 实例名称 + - **SourceId** (str) - (Required) 克隆父Disk的Id + - **Zone** (str) - (Required) 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **ChargeType** (str) - Year , Month, Dynamic,Postpay 默认: Dynamic + - **Comment** (str) - Disk注释 + - **CouponId** (str) - 使用的代金券id + - **Quantity** (int) - 购买时长 默认: 1 + - **UDataArkMode** (str) - 方舟是否开启,"Yes":开启,"No":关闭;默认为"No" + + **Response** + + - **UDiskId** (list) - 创建UDisk Id + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.CloneUDiskRequestSchema().dumps(d) + kwargs["max_retries"] = 0 + resp = self.invoke("CloneUDisk", d, **kwargs) + return apis.CloneUDiskResponseSchema().loads(resp)
+ +
[docs] def clone_udisk_snapshot(self, req=None, **kwargs): + """ CloneUDiskSnapshot - 从快照创建UDisk克隆 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **Name** (str) - (Required) 实例名称 + - **Size** (int) - (Required) 购买UDisk大小,单位:GB,范围[1~2000], 权限位控制可达8T,若需要请申请开通相关权限。 + - **SourceId** (str) - (Required) 克隆父Snapshot的Id + - **Zone** (str) - (Required) 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **ChargeType** (str) - Year , Month, Dynamic,Postpay 默认: Dynamic + - **Comment** (str) - Disk注释 + - **CouponId** (str) - 使用的代金券id + - **Quantity** (int) - 购买时长 默认: 1 + - **UDataArkMode** (str) - 是否开启数据方舟 默认:No + + **Response** + + - **UDiskId** (list) - 创建UDisk Id + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.CloneUDiskSnapshotRequestSchema().dumps(d) + kwargs["max_retries"] = 0 + resp = self.invoke("CloneUDiskSnapshot", d, **kwargs) + return apis.CloneUDiskSnapshotResponseSchema().loads(resp)
+ +
[docs] def create_udisk(self, req=None, **kwargs): + """ CreateUDisk - 创建UDisk磁盘 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **Name** (str) - (Required) 实例名称 + - **Size** (int) - (Required) 购买UDisk大小,单位:GB,普通盘: 范围[1~2000], 权限位控制可达8T,若需要请申请开通相关权限;SSD盘: 范围[1~4000]。 + - **Zone** (str) - (Required) 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **ChargeType** (str) - Year , Month, Dynamic, Postpay, Trial 默认: Dynamic + - **CmkId** (str) - 加密需要的cmk id,UKmsMode为Yes时,必填 + - **CouponId** (str) - 使用的代金券id + - **DiskType** (str) - UDisk 类型: DataDisk(普通数据盘),SSDDataDisk(SSD数据盘),RSSDDataDisk(RSSD数据盘),默认值(DataDisk) + - **Quantity** (int) - 购买时长 默认: 1 + - **Tag** (str) - 业务组 默认:Default + - **UDataArkMode** (str) - 是否开启数据方舟 + - **UKmsMode** (str) - 是否加密。Yes:加密,No:不加密,默认值(No) + + **Response** + + - **UDiskId** (list) - UDisk实例Id + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.CreateUDiskRequestSchema().dumps(d) + kwargs["max_retries"] = 0 + resp = self.invoke("CreateUDisk", d, **kwargs) + return apis.CreateUDiskResponseSchema().loads(resp)
+ +
[docs] def create_udisk_snapshot(self, req=None, **kwargs): + """ CreateUDiskSnapshot - 创建snapshot快照 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **Name** (str) - (Required) 快照名称 + - **UDiskId** (str) - (Required) 快照的UDisk的Id + - **Zone** (str) - (Required) 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **ChargeType** (str) - Year , Month, Dynamic 默认: Dynamic + - **Comment** (str) - 快照描述 + - **Quantity** (int) - 购买时长 默认: 1 + + **Response** + + - **SnapshotId** (list) - 快照Id + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.CreateUDiskSnapshotRequestSchema().dumps(d) + kwargs["max_retries"] = 0 + resp = self.invoke("CreateUDiskSnapshot", d, **kwargs) + return apis.CreateUDiskSnapshotResponseSchema().loads(resp)
+ +
[docs] def delete_udisk(self, req=None, **kwargs): + """ DeleteUDisk - 删除UDisk + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **UDiskId** (str) - (Required) 要删除的UDisk的Id + - **Zone** (str) - (Required) 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DeleteUDiskRequestSchema().dumps(d) + resp = self.invoke("DeleteUDisk", d, **kwargs) + return apis.DeleteUDiskResponseSchema().loads(resp)
+ +
[docs] def delete_udisk_snapshot(self, req=None, **kwargs): + """ DeleteUDiskSnapshot - 删除Snapshot + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **SnapshotId** (str) - (Required) 快照Id + - **Zone** (str) - (Required) 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **UDiskId** (str) - UDisk Id,删除该盘所创建出来的所有快照 + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DeleteUDiskSnapshotRequestSchema().dumps(d) + resp = self.invoke("DeleteUDiskSnapshot", d, **kwargs) + return apis.DeleteUDiskSnapshotResponseSchema().loads(resp)
+ +
[docs] def describe_udisk(self, req=None, **kwargs): + """ DescribeUDisk - 获取UDisk实例 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **DiskType** (str) - 普通数据盘:DataDisk; 普通系统盘:SystemDisk; SSD数据盘:SSDDataDisk; RSSD数据盘:RSSDDataDisk; 为空拉取所有 + - **Limit** (int) - 返回数据长度, 默认为20 + - **Offset** (int) - 数据偏移量, 默认为0 + - **UDiskId** (str) - UDisk Id(留空返回全部) + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + - **DataSet** (list) - 见 **UDiskDataSet** 模型定义 + - **TotalCount** (int) - 根据过滤条件得到的总数 + + **Response Model** + + **UDiskDataSet** + + - **ArkSwitchEnable** (int) - 是否支持开启方舟,1支持 ,0不支持 + - **ChargeType** (str) - Year,Month,Dynamic,Trial,Postpay + - **CloneEnable** (int) - 是否支持克隆,1支持 ,0不支持 + - **CmkId** (str) - 该盘的cmk id + - **CmkIdAlias** (str) - cmk id 别名 + - **CmkIdStatus** (str) - 该盘cmk的状态, Enabled(正常),Disabled(失效),Deleted(删除),NoCmkId(非加密盘) + - **CreateTime** (int) - 创建时间 + - **DataKey** (str) - 该盘的密文密钥 + - **DeviceName** (str) - 挂载的设备名称 + - **DiskType** (str) - 云硬盘类型: 普通数据盘:DataDisk,普通系统盘:SystemDisk,SSD数据盘:SSDDataDisk,RSSD数据盘:RSSDDataDisk + - **ExpiredTime** (int) - 过期时间 + - **IsExpire** (str) - 资源是否过期,过期:"Yes", 未过期:"No" + - **Name** (str) - 实例名称 + - **Size** (int) - 容量单位GB + - **SnapEnable** (int) - 是否支持快照,1支持 ,0不支持 + - **SnapshotCount** (int) - 该盘快照个数 + - **SnapshotLimit** (int) - 该盘快照上限 + - **Status** (str) - 状态:Available(可用),Attaching(挂载中), InUse(已挂载), Detaching(卸载中), Initializating(分配中), Failed(创建失败),Cloning(克隆中),Restoring(恢复中),RestoreFailed(恢复失败), + - **Tag** (str) - 业务组名称 + - **UDataArkMode** (str) - 是否开启数据方舟,开启:"Yes", 不支持:"No" + - **UDiskId** (str) - UDisk实例Id + - **UHostIP** (str) - 挂载的UHost的IP + - **UHostId** (str) - 挂载的UHost的Id + - **UHostName** (str) - 挂载的UHost的Name + - **UKmsMode** (str) - 是否是加密盘,是:"Yes", 否:"No" + - **Version** (str) - 是否支持数据方舟,支持:"2.0", 不支持:"1.0" + - **Zone** (str) - 可用区 + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DescribeUDiskRequestSchema().dumps(d) + resp = self.invoke("DescribeUDisk", d, **kwargs) + return apis.DescribeUDiskResponseSchema().loads(resp)
+ +
[docs] def describe_udisk_price(self, req=None, **kwargs): + """ DescribeUDiskPrice - 获取UDisk实例价格信息 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **Size** (int) - (Required) 购买UDisk大小,单位:GB,范围[1~1000] + - **Zone** (str) - (Required) 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **ChargeType** (str) - Year, Month, Dynamic,Trial,默认: Dynamic 如果不指定,则一次性获取三种计费 + - **DiskType** (str) - UDisk 类型: DataDisk(普通数据盘),SSDDataDisk(SSD数据盘),默认值(DataDisk) + - **Quantity** (int) - 购买UDisk的时长,默认值为1 + - **UDataArkMode** (str) - 是否打开数据方舟, 打开"Yes",关闭"No", 默认关闭 + + **Response** + + - **DataSet** (list) - 见 **UDiskPriceDataSet** 模型定义 + + **Response Model** + + **UDiskPriceDataSet** + + - **ChargeName** (str) - "UDataArk","UDisk" + - **ChargeType** (str) - Year, Month, Dynamic,Trial + - **Price** (float) - 价格 (单位: 分) + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DescribeUDiskPriceRequestSchema().dumps(d) + resp = self.invoke("DescribeUDiskPrice", d, **kwargs) + return apis.DescribeUDiskPriceResponseSchema().loads(resp)
+ +
[docs] def describe_udisk_snapshot(self, req=None, **kwargs): + """ DescribeUDiskSnapshot - 获取UDisk快照 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **Limit** (int) - 返回数据长度, 默认为20 + - **Offset** (int) - 数据偏移量, 默认为0 + - **SnapshotId** (str) - 快照id,SnapshotId , UDiskId 同时传SnapshotId优先 + - **UDiskId** (str) - UDiskId,返回该盘所做快照.(必须同时传Zone) + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + - **DataSet** (list) - 见 **UDiskSnapshotSet** 模型定义 + - **TotalCount** (int) - 根据过滤条件得到的总数 + + **Response Model** + + **UDiskSnapshotSet** + + - **CmkId** (str) - 该快照的cmk id + - **CmkIdAlias** (str) - cmk id 别名 + - **CmkIdStatus** (str) - 该快照cmk的状态, Enabled(正常),Disabled(失效),Deleted(删除),NoCmkId(非加密盘) + - **Comment** (str) - 快照描述 + - **CreateTime** (int) - 创建时间 + - **DataKey** (str) - 该快照的密文密钥 + - **DiskType** (int) - 磁盘类型,0:数据盘,1:系统盘 + - **ExpiredTime** (int) - 过期时间 + - **IsUDiskAvailable** (bool) - 对应磁盘是否处于可用状态 + - **Name** (str) - 快照名称 + - **Size** (int) - 容量单位GB + - **SnapshotId** (str) - 快照Id + - **Status** (str) - 快照状态,Normal:正常,Failed:失败,Creating:制作中 + - **UDiskId** (str) - 快照的源UDisk的Id + - **UDiskName** (str) - 快照的源UDisk的Name + - **UHostId** (str) - 对应磁盘制作快照时所挂载的主机 + - **UKmsMode** (str) - 是否是加密盘快照,是:"Yes", 否:"No" + - **Version** (str) - 快照版本 + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DescribeUDiskSnapshotRequestSchema().dumps(d) + resp = self.invoke("DescribeUDiskSnapshot", d, **kwargs) + return apis.DescribeUDiskSnapshotResponseSchema().loads(resp)
+ +
[docs] def describe_udisk_upgrade_price(self, req=None, **kwargs): + """ DescribeUDiskUpgradePrice - 获取UDisk升级价格信息 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **Size** (int) - (Required) 购买UDisk大小,单位:GB,范围[1~2000], 权限位控制可达8T,若需要请申请开通相关权限。 + - **SourceId** (str) - (Required) 升级目标UDisk ID + - **UDataArkMode** (str) - (Required) 是否打开数据方舟, 打开"Yes",关闭"No", 默认关闭 + - **Zone** (str) - (Required) 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **DiskType** (str) - 磁盘类型,SSDDataDisk:ssd数据盘,DataDisk:普通数据盘,SystemDisk:普通系统盘,SSDSystemDisk:ssd系统盘。默认为DataDisk + + **Response** + + - **Price** (float) - 价格 + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DescribeUDiskUpgradePriceRequestSchema().dumps(d) + resp = self.invoke("DescribeUDiskUpgradePrice", d, **kwargs) + return apis.DescribeUDiskUpgradePriceResponseSchema().loads(resp)
+ +
[docs] def detach_udisk(self, req=None, **kwargs): + """ DetachUDisk - 卸载某个已经挂载在指定UHost实例上的UDisk + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **UDiskId** (str) - (Required) 需要卸载的UDisk实例ID + - **UHostId** (str) - (Required) UHost实例ID + - **Zone** (str) - (Required) 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + - **UDiskId** (str) - 卸载的UDisk实例ID + - **UHostId** (str) - 卸载的UHost实例ID + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DetachUDiskRequestSchema().dumps(d) + resp = self.invoke("DetachUDisk", d, **kwargs) + return apis.DetachUDiskResponseSchema().loads(resp)
+ +
[docs] def rename_udisk(self, req=None, **kwargs): + """ RenameUDisk - 重命名UDisk + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **UDiskId** (str) - (Required) 重命名的UDisk的Id + - **UDiskName** (str) - (Required) 重命名UDisk的name + - **Zone** (str) - (Required) 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.RenameUDiskRequestSchema().dumps(d) + resp = self.invoke("RenameUDisk", d, **kwargs) + return apis.RenameUDiskResponseSchema().loads(resp)
+ +
[docs] def resize_udisk(self, req=None, **kwargs): + """ ResizeUDisk - 调整UDisk容量 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **Size** (int) - (Required) 调整后大小, 单位:GB, 范围[1~2000],权限位控制可达8000,若需要请申请开通相关权限。 + - **UDiskId** (str) - (Required) UDisk Id + - **Zone** (str) - (Required) 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **CouponId** (str) - 使用的代金券id + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.ResizeUDiskRequestSchema().dumps(d) + resp = self.invoke("ResizeUDisk", d, **kwargs) + return apis.ResizeUDiskResponseSchema().loads(resp)
+ +
[docs] def restore_udisk(self, req=None, **kwargs): + """ RestoreUDisk - 从备份恢复数据至UDisk + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **UDiskId** (str) - (Required) 需要恢复的盘id + - **Zone** (str) - (Required) 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **SnapshotId** (str) - 从指定的快照恢复 + - **SnapshotTime** (int) - 指定从方舟恢复的备份时间点 + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.RestoreUDiskRequestSchema().dumps(d) + resp = self.invoke("RestoreUDisk", d, **kwargs) + return apis.RestoreUDiskResponseSchema().loads(resp)
+ +
[docs] def set_udisk__udataark_mode(self, req=None, **kwargs): + """ SetUDiskUDataArkMode - 设置UDisk数据方舟的状态 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **UDataArkMode** (str) - (Required) 是否开启数据方舟,开启:"Yes", 不支持:"No" + - **UDiskId** (str) - (Required) 需要设置数据方舟的UDisk的Id + - **Zone** (str) - (Required) 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.SetUDiskUDataArkModeRequestSchema().dumps(d) + resp = self.invoke("SetUDiskUDataArkMode", d, **kwargs) + return apis.SetUDiskUDataArkModeResponseSchema().loads(resp)
+
+ +
+ +
+
+ +
+
+ + + + + + + \ No newline at end of file diff --git a/_modules/ucloud/services/udpn/client.html b/_modules/ucloud/services/udpn/client.html new file mode 100644 index 0000000..8925e5f --- /dev/null +++ b/_modules/ucloud/services/udpn/client.html @@ -0,0 +1,285 @@ + + + + + + + + ucloud.services.udpn.client — ucloud-sdk-python2 documentation + + + + + + + + + + + + + + + + + + +
+
+
+ + +
+ +

Source code for ucloud.services.udpn.client

+# -*- coding: utf-8 -*-
+
+""" Code is generated by ucloud-model, DO NOT EDIT IT. """
+from ucloud.core.client import Client
+from ucloud.services.udpn.schemas import apis
+
+
+
[docs]class UDPNClient(Client): + def __init__(self, config, transport=None, middleware=None, logger=None): + super(UDPNClient, self).__init__(config, transport, middleware, logger) + +
[docs] def allocate_udpn(self, req=None, **kwargs): + """ AllocateUDPN - 分配一条 UDPN 专线 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **Bandwidth** (int) - (Required) 带宽 + - **Peer1** (str) - (Required) 专线可用区1,支持地域:北京二:cn-bj2, 上海二:cn-sh2, 广东:cn-gd, 亚太: hk, 上海一:cn-sh1, 法兰克福:ge-fra, 新加坡:sg, 洛杉矶:us-la, 华盛顿:us-ws, 东京:jpn-tky + - **Peer2** (str) - (Required) 专线可用区2,支持地域:北京二:cn-bj2, 上海二:cn-sh2, 广东:cn-gd, 亚太: hk, 上海一:cn-sh1, 法兰克福:ge-fra, 新加坡:sg, 洛杉矶:us-la, 华盛顿:us-ws, 东京:jpn-tky + - **ChargeType** (str) - 计费类型,枚举值为: Year,按年付费; Month,按月付费; Dynamic,按需付费 + - **CouponId** (str) - 代金劵 + - **Quantity** (int) - 计费时长,默认 1 + + **Response** + + - **UDPNId** (str) - 资源名称 + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.AllocateUDPNRequestSchema().dumps(d) + kwargs["max_retries"] = 0 + resp = self.invoke("AllocateUDPN", d, **kwargs) + return apis.AllocateUDPNResponseSchema().loads(resp)
+ +
[docs] def describe_udpn(self, req=None, **kwargs): + """ DescribeUDPN - 描述 UDPN + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **Limit** (int) - 返回数据长度,默认为 20 + - **Offset** (int) - 列表起始位置偏移量,默认为 0 + - **UDPNId** (str) - 申请到的 UDPN 资源 ID。若为空,则查询该用户在机房所有的专线信息。非默认项目资源,需填写ProjectId + + **Response** + + - **DataSet** (list) - 见 **UDPNData** 模型定义 + - **TotalCount** (int) - 查询到的总数量 + + **Response Model** + + **UDPNData** + + - **Bandwidth** (int) - 带宽 + - **ChargeType** (str) - 计费类型 + - **CreateTime** (int) - unix 时间戳 创建时间 + - **ExpireTime** (int) - unix 时间戳 到期时间 + - **Peer1** (str) - 可用区域 1 + - **Peer2** (str) - 可用区域 2 + - **UDPNId** (str) - UDPN 资源短 ID + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DescribeUDPNRequestSchema().dumps(d) + resp = self.invoke("DescribeUDPN", d, **kwargs) + return apis.DescribeUDPNResponseSchema().loads(resp)
+ +
[docs] def get_udpn_line_list(self, req=None, **kwargs): + """ GetUDPNLineList - 获取当前支持的专线线路列表 + + **Request** + + - **ProjectId** (str) - (Config) + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + - **DataSet** (list) - 见 **UDPNLineSet** 模型定义 + - **TotalCount** (int) - DataSet中的元素个数 + + **Response Model** + + **UDPNLineSet** + + - **BandwidthUpperLimit** (int) - 线路带宽上限,单位 M + - **LocalRegion** (str) - 支持UDPN的地域之一,北京二:cn-bj2, 上海二:cn-sh2, 广东:cn-gd, 亚太: hk, 上海一:cn-sh1, 法兰克福:ge-fra, 新加坡:sg, 华盛顿:us-ws, 洛杉矶:us-la, 东京:jpn-tky + - **RemoteRegion** (str) - 支持UDPN的地域之一,北京二:cn-bj2, 上海二:cn-sh2, 广东:cn-gd, 亚太: hk, 上海一:cn-sh1, 法兰克福:ge-fra, 新加坡:sg, 华盛顿:us-ws, 洛杉矶:us-la, 东京:jpn-tky + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.GetUDPNLineListRequestSchema().dumps(d) + resp = self.invoke("GetUDPNLineList", d, **kwargs) + return apis.GetUDPNLineListResponseSchema().loads(resp)
+ +
[docs] def get_udpn_price(self, req=None, **kwargs): + """ GetUDPNPrice - 获取 UDPN 价格 + + **Request** + + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **Bandwidth** (int) - (Required) 带宽信息 + - **Peer1** (str) - (Required) 专线可用区1,支持地域:北京二:cn-bj2, 上海二:cn-sh2, 广东:cn-gd, 亚太: hk, 上海一:cn-sh1, 法兰克福:ge-fra, 新加坡:sg, 洛杉矶:us-la, 华盛顿:us-ws, 东京:jpn-tky + - **Peer2** (str) - (Required) 专线可用区2,支持地域:北京二:cn-bj2, 上海二:cn-sh2, 广东:cn-gd, 亚太: hk, 上海一:cn-sh1, 法兰克福:ge-fra, 新加坡:sg, 洛杉矶:us-la, 华盛顿:us-ws, 东京:jpn-tky + - **ChargeType** (str) - 计费类型 + - **Quantity** (int) - 购买时长 + + **Response** + + - **Price** (float) - 专线价格 + - **PurchaseValue** (int) - 资源有效期 unix 时间戳 + + """ + d = {"Region": self.config.region} + req and d.update(req) + d = apis.GetUDPNPriceRequestSchema().dumps(d) + resp = self.invoke("GetUDPNPrice", d, **kwargs) + return apis.GetUDPNPriceResponseSchema().loads(resp)
+ +
[docs] def get_udpn_upgrade_price(self, req=None, **kwargs): + """ GetUDPNUpgradePrice - 获取专线升级价格 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **Bandwidth** (int) - (Required) 带宽 + - **UDPNId** (str) - (Required) 专线带宽资源 Id + + **Response** + + - **Price** (float) - 升级后的价格 + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.GetUDPNUpgradePriceRequestSchema().dumps(d) + resp = self.invoke("GetUDPNUpgradePrice", d, **kwargs) + return apis.GetUDPNUpgradePriceResponseSchema().loads(resp)
+ +
[docs] def modify_udpn_bandwidth(self, req=None, **kwargs): + """ ModifyUDPNBandwidth - 修改带宽值 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **Bandwidth** (int) - (Required) 调整后专线带宽, 单位为Mbps,取值范围为大于等于2且小于等于1000([2-1000])的整数 + - **UDPNId** (str) - (Required) UDPN Id + - **CouponId** (str) - 代金劵 ID + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.ModifyUDPNBandwidthRequestSchema().dumps(d) + resp = self.invoke("ModifyUDPNBandwidth", d, **kwargs) + return apis.ModifyUDPNBandwidthResponseSchema().loads(resp)
+ +
[docs] def release_udpn(self, req=None, **kwargs): + """ ReleaseUDPN - 释放 UDPN + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **UDPNId** (str) - (Required) UDPN 资源 Id + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.ReleaseUDPNRequestSchema().dumps(d) + resp = self.invoke("ReleaseUDPN", d, **kwargs) + return apis.ReleaseUDPNResponseSchema().loads(resp)
+
+ +
+ +
+
+ +
+
+ + + + + + + \ No newline at end of file diff --git a/_modules/ucloud/services/uhost/client.html b/_modules/ucloud/services/uhost/client.html new file mode 100644 index 0000000..fe55732 --- /dev/null +++ b/_modules/ucloud/services/uhost/client.html @@ -0,0 +1,866 @@ + + + + + + + + ucloud.services.uhost.client — ucloud-sdk-python2 documentation + + + + + + + + + + + + + + + + + + +
+
+
+ + +
+ +

Source code for ucloud.services.uhost.client

+# -*- coding: utf-8 -*-
+
+""" Code is generated by ucloud-model, DO NOT EDIT IT. """
+from ucloud.core.client import Client
+from ucloud.services.uhost.schemas import apis
+
+
+
[docs]class UHostClient(Client): + def __init__(self, config, transport=None, middleware=None, logger=None): + super(UHostClient, self).__init__(config, transport, middleware, logger) + +
[docs] def copy_custom_image(self, req=None, **kwargs): + """ CopyCustomImage - 复制自制镜像 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **SourceImageId** (str) - (Required) 源镜像Id, 参见 DescribeImage + - **TargetProjectId** (str) - (Required) 目标项目Id, 参见 GetProjectList + - **TargetImageDescription** (str) - 目标镜像描述 + - **TargetImageName** (str) - 目标镜像名称 + - **TargetRegion** (str) - 目标地域,不跨地域不用填 + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + - **TargetImageId** (str) - 目标镜像Id + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.CopyCustomImageRequestSchema().dumps(d) + kwargs["max_retries"] = 0 + resp = self.invoke("CopyCustomImage", d, **kwargs) + return apis.CopyCustomImageResponseSchema().loads(resp)
+ +
[docs] def create_custom_image(self, req=None, **kwargs): + """ CreateCustomImage - 从指定UHost实例,生成自定义镜像。 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **ImageName** (str) - (Required) 镜像名称 + - **UHostId** (str) - (Required) UHost实例ID 参见 `DescribeUHostInstance <https://docs.ucloud.cn/api/uhost-api/describe_uhost_instance.html>`_ + - **ImageDescription** (str) - 镜像描述 + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + - **ImageId** (str) - 镜像Id + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.CreateCustomImageRequestSchema().dumps(d) + kwargs["max_retries"] = 0 + resp = self.invoke("CreateCustomImage", d, **kwargs) + return apis.CreateCustomImageResponseSchema().loads(resp)
+ +
[docs] def create_uhost_instance(self, req=None, **kwargs): + """ CreateUHostInstance - 创建UHost实例。 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **ImageId** (str) - (Required) 镜像ID。 请通过 `DescribeImage <https://docs.ucloud.cn/api/uhost-api/describe_image.html>`_ 获取 + - **LoginMode** (str) - (Required) 主机登陆模式。密码(默认选项): Password。 + - **Password** (str) - (Required) UHost密码。请遵照 `字段规范 <https://docs.ucloud.cn/api/uhost-api/specification>`_ 设定密码。密码需使用base64进行编码,举例如下:# echo -n Password1 | base64UGFzc3dvcmQx。 + - **Zone** (str) - (Required) 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **AlarmTemplateId** (int) - 告警模板id,如果传了告警模板id,且告警模板id正确,则绑定告警模板。绑定告警模板失败只会在后台有日志,不会影响创建主机流程,也不会在前端报错。 + - **BootDiskSpace** (int) - 【待废弃,不建议调用】系统盘大小。 单位:GB, 范围[20,100], 步长:10 + - **CPU** (int) - 虚拟CPU核数。可选参数:1-64(具体机型与CPU的对应关系参照控制台)。默认值: 4。 + - **ChargeType** (str) - 计费模式。枚举值为: \\ > Year,按年付费; \\ > Month,按月付费;\\ > Dynamic,按小时付费 \\ 默认为月付 + - **CouponId** (str) - 主机代金券ID。请通过DescribeCoupon接口查询,或登录用户中心查看 + - **DiskPassword** (str) - 【待废弃,不建议调用】加密盘的密码。若输入此字段,自动选择加密盘。加密盘需要权限位。 + - **DiskSpace** (int) - 【待废弃,不建议调用】数据盘大小。 单位:GB, 范围[0,8000], 步长:10, 默认值:20,云盘支持0-8000;本地普通盘支持0-2000;本地SSD盘(包括所有GPU机型)支持100-1000 + - **Disks** (list) - 见 **CreateUHostInstanceParamDisks** 模型定义 + - **GPU** (int) - GPU卡核心数。仅GPU机型支持此字段(可选范围与UHostType相关) + - **GpuType** (str) - GPU类型,枚举值["K80", "P40", "V100"] + - **HostType** (str) - 【已废弃】宿主机类型,N2,N1 + - **HotplugFeature** (bool) - 是否开启热升级特性。True为开启,False为未开启,默认False。 + - **InstallAgent** (str) - 【暂不支持】是否安装UGA。'yes': 安装;其他或者不填:不安装。 + - **IsolationGroup** (str) - 硬件隔离组id。可通过DescribeIsolationGroup获取。 + - **KeyPair** (str) - 【暂不支持】Keypair公钥,LoginMode为KeyPair时此项必须 + - **MachineType** (str) - 云主机机型(V2.0),枚举值["N", "C", "G", "O"]。参考 `云主机机型说明 <https://docs.ucloud.cn/api/uhost-api/uhost_type>`_ 。 + - **MaxCount** (int) - 【批量创建主机时必填】最大创建主机数量,取值范围是[1,100]; + - **Memory** (int) - 内存大小。单位:MB。范围 :[1024, 262144],取值为1024的倍数(可选范围参考控制台)。默认值:8192 + - **MinimalCpuPlatform** (str) - 最低cpu平台,枚举值["Intel/Auto", "Intel/IvyBridge", "Intel/Haswell", "Intel/Broadwell", "Intel/Skylake", "Intel/Cascadelake"。 + - **Name** (str) - UHost实例名称。默认:UHost。请遵照 `字段规范 <https://docs.ucloud.cn/api/uhost-api/specification>`_ 设定实例名称。 + - **NetCapability** (str) - 网络增强。枚举值:Normal(默认),不开启; Super,开启网络增强1.0; Ultra,开启网络增强2.0(仅支持部分可用区,请参考控制台) + - **NetworkId** (str) - 【已废弃】网络ID(VPC2.0情况下无需填写)。VPC1.0情况下,若不填写,代表优先选择基础网络; 若填写,代表选择子网。参见DescribeSubnet。 + - **NetworkInterface** (list) - 见 **CreateUHostInstanceParamNetworkInterface** 模型定义 + - **PrivateIp** (list) - 【数组】创建云主机时指定内网IP。若不传值,则随机分配当前子网下的IP。调用方式举例:PrivateIp.0=x.x.x.x。当前只支持一个内网IP。 + - **PrivateMac** (str) - 【批量创建该参数无效】【内部字段】创建云主机时指定Mac。调用方式举例:PrivateMac="xx:xx:xx:xx:xx:xx"。 + - **Quantity** (int) - 购买时长。默认:值 1。按小时购买(Dynamic)时无需此参数。 月付时,此参数传0,代表购买至月末。 + - **ResourceType** (int) - 【内部参数】资源类型 + - **SecurityGroupId** (str) - 防火墙Id,默认:Web推荐防火墙。如何查询SecurityGroupId请参见 `DescribeSecurityGroup <https://docs.ucloud.cn/api/unet-api/describe_security_group.html>`_ 。 + - **SetId** (int) - + - **StorageType** (str) - 【待废弃,不建议调用】磁盘类型,同时设定系统盘和数据盘的磁盘类型。枚举值为:LocalDisk,本地磁盘; UDisk,云硬盘;默认为LocalDisk。仅部分可用区支持云硬盘方式的主机存储方式,具体请查询控制台。 + - **SubnetId** (str) - 子网 ID。默认为当前地域的默认子网。 + - **Tag** (str) - 业务组。默认:Default(Default即为未分组)。请遵照 `字段规范 <https://docs.ucloud.cn/api/uhost-api/specification>`_ 设定业务组。 + - **TimemachineFeature** (str) - 【待废弃,不建议调用】是否开启方舟特性。Yes为开启方舟,No为关闭方舟。目前仅选择普通本地盘+普通本地盘 或 SSD云盘+普通云盘的组合支持开启方舟。 + - **UHostType** (str) - 【建议后续不再使用】云主机机型V1.0。参考 `云主机机型说明 <https://docs.ucloud.cn/api/uhost-api/uhost_type>`_ 。 + - **UserDataScript** (str) - 【暂不支持】cloudinit方式下,用户初始化脚本 + - **VPCId** (str) - VPC ID。默认为当前地域的默认VPC。 + + **Response** + + - **IPs** (list) - 【批量创建不会返回】IP信息 + - **UHostIds** (list) - UHost实例Id集合 + + **Request Model** + + **CreateUHostInstanceParamNetworkInterfaceEIPGlobalSSH** + + - **Area** (str) - 填写支持SSH访问IP的地区名称,如“洛杉矶”,“新加坡”,“香港”,“东京”,“华盛顿”,“法兰克福”。Area和AreaCode两者必填一个 + - **AreaCode** (str) - GlobalSSH的。AreaCode, 区域航空港国际通用代码。Area和AreaCode两者必填一个 + - **Port** (int) - SSH端口,1-65535且不能使用80,443端口 + + **CreateUHostInstanceParamNetworkInterfaceEIP** + + - **Bandwidth** (int) - 【如果绑定EIP这个参数必填】弹性IP的外网带宽, 单位为Mbps. 共享带宽模式必须指定0M带宽, 非共享带宽模式必须指定非0Mbps带宽. 各地域非共享带宽的带宽范围如下: 流量计费[1-300],带宽计费[1-800] + - **CouponId** (str) - 当前EIP代金券id。请通过DescribeCoupon接口查询,或登录用户中心查看 + - **GlobalSSH** (dict) - 见 **CreateUHostInstanceParamNetworkInterfaceEIPGlobalSSH** 模型定义 + - **OperatorName** (str) - 【如果绑定EIP这个参数必填】弹性IP的线路如下: 国际: International BGP: Bgp 各地域允许的线路参数如下: cn-sh1: Bgp cn-sh2: Bgp cn-gd: Bgp cn-bj1: Bgp cn-bj2: Bgp hk: International us-ca: International th-bkk: International kr-seoul:International us-ws:International ge-fra:International sg:International tw-kh:International.其他海外线路均为 International + - **PayMode** (str) - 弹性IP的计费模式. 枚举值: "Traffic", 流量计费; "Bandwidth", 带宽计费; "ShareBandwidth",共享带宽模式. "Free":免费带宽模式.默认为 "Bandwidth". + - **ShareBandwidthId** (str) - 绑定的共享带宽Id,仅当PayMode为ShareBandwidth时有效 + + **CreateUHostInstanceParamDisks** + + - **BackupType** (str) - 磁盘备份方案。枚举值:\\ > NONE,无备份 \\ > DATAARK,数据方舟 \\ 当前磁盘支持的备份模式参考 `磁盘类型 <https://docs.ucloud.cn/api/uhost-api/disk_type>`_ + - **CouponId** (str) - 云盘代金券id。不适用于系统盘/本地盘。请通过DescribeCoupon接口查询,或登录用户中心查看 + - **Encrypted** (bool) - 【功能仅部分可用区开放,详询技术支持】磁盘是否加密。加密:true, 不加密: false加密必须传入对应的的KmsKeyId + - **IsBoot** (str) - 是否是系统盘。枚举值:\\ > True,是系统盘 \\ > False,是数据盘(默认)。Disks数组中有且只能有一块盘是系统盘。 + - **KmsKeyId** (str) - 【功能仅部分可用区开放,详询技术支持】kms key id。选择加密盘时必填。 + - **Size** (int) - 磁盘大小,单位GB。请参考 `磁盘类型 <https://docs.ucloud.cn/api/uhost-api/disk_type>`_ 。 + - **Type** (str) - 磁盘类型。请参考 `磁盘类型 <https://docs.ucloud.cn/api/uhost-api/disk_type>`_ 。 + + **CreateUHostInstanceParamNetworkInterface** + + - **EIP** (dict) - 见 **CreateUHostInstanceParamNetworkInterfaceEIP** 模型定义 + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.CreateUHostInstanceRequestSchema().dumps(d) + kwargs["max_retries"] = 0 + resp = self.invoke("CreateUHostInstance", d, **kwargs) + return apis.CreateUHostInstanceResponseSchema().loads(resp)
+ +
[docs] def describe_image(self, req=None, **kwargs): + """ DescribeImage - 获取指定数据中心镜像列表,用户可通过指定操作系统类型,镜像Id进行过滤。 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **ImageId** (str) - 镜像Id + - **ImageType** (str) - 镜像类型。标准镜像:Base,镜像市场:Business, 自定义镜像:Custom,默认返回所有类型 + - **Limit** (int) - 返回数据长度,默认为20 + - **Offset** (int) - 列表起始位置偏移量,默认为0 + - **OsType** (str) - 操作系统类型:Linux, Windows 默认返回所有类型 + - **PriceSet** (int) - 是否返回价格:1返回,0不返回;默认不返回 + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + - **ImageSet** (list) - 见 **UHostImageSet** 模型定义 + - **TotalCount** (int) - 满足条件的镜像总数 + + **Response Model** + + **UHostImageSet** + + - **CreateTime** (int) - 创建时间,格式为Unix时间戳 + - **Features** (list) - 特殊状态标识, 目前包含NetEnhnced(网络增强1.0), NetEnhanced_Ultra](网络增强2.0) + - **FuncType** (str) - 行业镜像类型(仅行业镜像将返回这个值) + - **ImageDescription** (str) - 镜像描述 + - **ImageId** (str) - 镜像ID + - **ImageName** (str) - 镜像名称 + - **ImageSize** (int) - 镜像大小 + - **ImageType** (str) - 镜像类型 标准镜像:Base, 行业镜像:Business,自定义镜像:Custom + - **IntegratedSoftware** (str) - 集成软件名称(仅行业镜像将返回这个值) + - **Links** (str) - 介绍链接(仅行业镜像将返回这个值) + - **MinimalCPU** (str) - 默认值为空'''。当CentOS 7.3/7.4/7.5等镜像会标记为“Broadwell” + - **OsName** (str) - 操作系统名称 + - **OsType** (str) - 操作系统类型:Liunx,Windows + - **State** (str) - 镜像状态, 可用:Available,制作中:Making, 不可用:Unavailable + - **Vendor** (str) - 供应商(仅行业镜像将返回这个值) + - **Zone** (str) - 可用区,参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ | + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DescribeImageRequestSchema().dumps(d) + resp = self.invoke("DescribeImage", d, **kwargs) + return apis.DescribeImageResponseSchema().loads(resp)
+ +
[docs] def describe_uhost_instance(self, req=None, **kwargs): + """ DescribeUHostInstance - 获取主机或主机列表信息,并可根据数据中心,主机ID等参数进行过滤。 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **IsolationGroup** (str) - 硬件隔离组id。通过硬件隔离组筛选主机。 + - **LifeCycle** (int) - 1:普通云主机;2:抢占型云主机;如不传此参数,默认全部获取 + - **Limit** (int) - 返回数据长度,默认为20,最大100 + - **Offset** (int) - 列表起始位置偏移量,默认为0 + - **SubnetId** (str) - 子网id。通过子网筛选主机。北京一地域无效。 + - **Tag** (str) - 要查询的业务组名称 + - **UHostIds** (list) - 【数组】UHost主机的资源ID,例如UHostIds.0代表希望获取信息 的主机1,UHostIds.1代表主机2。 如果不传入,则返回当前Region 所有符合条件的UHost实例。 + - **VPCId** (str) - vpc id。通过VPC筛选主机。北京一地域无效。 + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + - **TotalCount** (int) - UHostInstance总数 + - **UHostSet** (list) - 见 **UHostInstanceSet** 模型定义 + + **Response Model** + + **UHostDiskSet** + + - **BackupType** (str) - 备份方案。若开通了数据方舟,则为DataArk + - **DiskId** (str) - 磁盘ID + - **DiskType** (str) - 磁盘类型。请参考 `磁盘类型 <https://docs.ucloud.cn/api/uhost-api/disk_type>`_ 。 + - **Drive** (str) - 磁盘盘符 + - **Encrypted** (bool) - true: 加密盘 false:非加密盘 + - **IsBoot** (str) - 是否是系统盘。枚举值:\\ > True,是系统盘 \\ > False,是数据盘(默认)。Disks数组中有且只能有一块盘是系统盘。 + - **Name** (str) - UDisk名字(仅当磁盘是UDisk时返回) + - **Size** (int) - 磁盘大小,单位: GB + - **Type** (str) - 【建议不再使用】磁盘类型。系统盘: Boot,数据盘: Data,网络盘:Udisk + + **UHostIPSet** + + - **Bandwidth** (int) - IP对应的带宽, 单位: Mb (内网IP不显示带宽信息) + - **Default** (str) - 是否默认的弹性网卡的信息。true: 是默认弹性网卡;其他值:不是。 + - **IP** (str) - IP地址 + - **IPId** (str) - IP资源ID (内网IP无对应的资源ID) + - **SubnetId** (str) - IP地址对应的子网 ID(北京一当前字段为空) + - **Type** (str) - 国际: Internation,BGP: Bgp,内网: Private + - **VPCId** (str) - IP地址对应的VPC ID(北京一当前字段为空) + + **UHostInstanceSet** + + - **AutoRenew** (str) - 是否自动续费,自动续费:“Yes”,不自动续费:“No” + - **BasicImageId** (str) - 基础镜像ID(指当前自定义镜像的来源镜像) + - **BasicImageName** (str) - 基础镜像名称(指当前自定义镜像的来源镜像) + - **BootDiskState** (str) - 系统盘状态 Normal表示初始化完成;Initializing表示在初始化。仍在初始化的系统盘无法制作镜像。 + - **CPU** (int) - 虚拟CPU核数,单位: 个 + - **ChargeType** (str) - 计费模式,枚举值为: Year,按年付费; Month,按月付费; Dynamic,按需付费(需开启权限); + - **CreateTime** (int) - 创建时间,格式为Unix时间戳 + - **DiskSet** (list) - 见 **UHostDiskSet** 模型定义 + - **ExpireTime** (int) - 到期时间,格式为Unix时间戳 + - **GPU** (int) - GPU个数 + - **HostType** (str) - 【建议不再使用】主机系列:N2,表示系列2;N1,表示系列1 + - **HotplugFeature** (bool) - true: 开启热升级; false,未开启热升级 + - **IPSet** (list) - 见 **UHostIPSet** 模型定义 + - **ImageId** (str) - 【建议不再使用】主机的系统盘ID。 + - **IsolationGroup** (str) - 隔离组id,不在隔离组则返回"" + - **LifeCycle** (str) - 主机的生命周期类型。目前仅支持Normal:普通; + - **MachineType** (str) - 云主机机型(新)。参考 `云主机机型说明 <https://docs.ucloud.cn/api/uhost-api/uhost_type#主机概念20版本>`_ 。 + - **Memory** (int) - 内存大小,单位: MB + - **Name** (str) - UHost实例名称 + - **NetCapability** (str) - 网络增强。Normal: 无;Super: 网络增强1.0; Ultra: 网络增强2.0 + - **NetworkState** (str) - 【建议不再使用】网络状态。 连接:Connected, 断开:NotConnected + - **OsName** (str) - 创建主机的最初来源镜像的操作系统名称(若直接通过基础镜像创建,此处返回和BasicImageName一致) + - **OsType** (str) - 操作系统类别。返回"Linux"或者"Windows" + - **Remark** (str) - 备注 + - **State** (str) - 实例状态,枚举值:\\ >初始化: Initializing; \\ >启动中: Starting; \\> 运行中: Running; \\> 关机中: Stopping; \\ >关机: Stopped \\ >安装失败: Install Fail; \\ >重启中: Rebooting + - **StorageType** (str) - 【建议不再使用】主机磁盘类型。 枚举值为:\\ > LocalDisk,本地磁盘; \\ > UDisk 云盘。\\只要有一块磁盘为本地盘,即返回LocalDisk。 + - **SubnetType** (str) - 【建议不再使用】仅北京A的云主机会返回此字段。基础网络模式:Default;子网模式:Private + - **Tag** (str) - 业务组名称 + - **TimemachineFeature** (str) - 【建议不再使用】数据方舟模式。枚举值:\\ > Yes: 开启方舟; \\ > no,未开启方舟 + - **TotalDiskSpace** (int) - 总的数据盘存储空间。 + - **UHostId** (str) - UHost实例ID + - **UHostType** (str) - 【建议不再使用】云主机机型(旧)。参考 `云主机机型说明 <https://docs.ucloud.cn/api/uhost-api/uhost_type>`_ 。 + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DescribeUHostInstanceRequestSchema().dumps(d) + resp = self.invoke("DescribeUHostInstance", d, **kwargs) + return apis.DescribeUHostInstanceResponseSchema().loads(resp)
+ +
[docs] def describe_uhost_tags(self, req=None, **kwargs): + """ DescribeUHostTags - 获取指定数据中心的业务组列表。 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + - **TagSet** (list) - 见 **UHostTagSet** 模型定义 + - **TotalCount** (int) - 已有主机的业务组总个数 + + **Response Model** + + **UHostTagSet** + + - **Tag** (str) - 业务组名称 + - **TotalCount** (int) - 该业务组中包含的主机个数 + - **Zone** (str) - 可用区 + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DescribeUHostTagsRequestSchema().dumps(d) + resp = self.invoke("DescribeUHostTags", d, **kwargs) + return apis.DescribeUHostTagsResponseSchema().loads(resp)
+ +
[docs] def get_uhost_instance_price(self, req=None, **kwargs): + """ GetUHostInstancePrice - 根据UHost实例配置,获取UHost实例的价格。 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **CPU** (int) - (Required) CPU核数。可选参数:1-64。可选范围参照控制台。默认值: 4 + - **Count** (int) - (Required) 购买台数,范围[1,5] + - **ImageId** (str) - (Required) 镜像Id,可通过 `DescribeImage <https://docs.ucloud.cn/api/uhost-api/describe_image.html>`_ 获取镜像ID + - **Memory** (int) - (Required) 内存大小。单位:MB。范围 :[1024, 262144],取值为1024的倍数(可选范围参照好控制台)。默认值:8192 + - **ChargeType** (str) - 计费模式。枚举值为: \\ > Year,按年付费; \\ > Month,按月付费;\\ > Dynamic,按小时付费 \\ 默认为月付。 + - **DiskSpace** (int) - 【待废弃】数据盘大小,单位: GB,范围[0,1000],步长: 10,默认值: 0 + - **Disks** (list) - 见 **GetUHostInstancePriceParamDisks** 模型定义 + - **GPU** (int) - GPU卡核心数。仅GPU机型支持此字段。 + - **GpuType** (str) - GPU类型,枚举值["K80", "P40", "V100"] + - **LifeCycle** (int) - 【未支持】1:普通云主机;2:抢占性云主机;默认普通 + - **MachineType** (str) - 云主机机型(V2版本概念)。枚举值["N", "C", "G", "O"]。参考 `云主机机型说明 <https://docs.ucloud.cn/api/uhost-api/uhost_type>`_ 。 + - **NetCapability** (str) - 网络增强。枚举值:Normal,不开启; Super,开启网络增强1.0。 默认值为Normal。 + - **Quantity** (int) - 购买时长。默认: 1。按小时购买(Dynamic)时无需此参数。 月付时,此参数传0,代表了购买至月末。 + - **StorageType** (str) - 【待废弃】磁盘类型,同时设定系统盘和数据盘, 枚举值为:LocalDisk,本地磁盘; UDisk,云硬盘; 默认为LocalDisk 仅部分可用区支持云硬盘方式的主机存储方式,具体请查询控制台。 + - **TimemachineFeature** (str) - 【待废弃】方舟机型。No,Yes。默认是No。 + - **UHostType** (str) - 【待废弃】云主机机型(V1版本概念)。参考 `云主机机型说明 <https://docs.ucloud.cn/api/uhost-api/uhost_type>`_ 。 + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + - **PriceSet** (list) - 见 **UHostPriceSet** 模型定义 + + **Request Model** + + **GetUHostInstancePriceParamDisks** + + - **BackupType** (str) - 磁盘备份方案。枚举值:\\ > NONE,无备份 \\ > DATAARK,数据方舟 \\ 当前磁盘支持的备份模式参考 `磁盘类型 <https://docs.ucloud.cn/api/uhost-api/disk_type>`_ + - **IsBoot** (str) - 是否是系统盘。枚举值:\\ > True,是系统盘 \\ > False,是数据盘(默认)。Disks数组中有且只能有一块盘是系统盘。 + - **Size** (int) - 磁盘大小,单位GB。请参考 `磁盘类型 <https://docs.ucloud.cn/api/uhost-api/disk_type>`_ 。 + - **Type** (str) - 磁盘类型。请参考 `磁盘类型 <https://docs.ucloud.cn/api/uhost-api/disk_type>`_ 。 + + **Response Model** + + **UHostPriceSet** + + - **ChargeType** (str) - 计费类型。Year,Month,Dynamic + - **Price** (float) - 价格,单位: 元,保留小数点后两位有效数字 + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.GetUHostInstancePriceRequestSchema().dumps(d) + resp = self.invoke("GetUHostInstancePrice", d, **kwargs) + return apis.GetUHostInstancePriceResponseSchema().loads(resp)
+ +
[docs] def get_uhost_instance_vnc_info(self, req=None, **kwargs): + """ GetUHostInstanceVncInfo - 获取指定UHost实例的管理VNC配置详细信息。 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **UHostId** (str) - (Required) UHost实例ID 参见 `DescribeUHostInstance <https://docs.ucloud.cn/api/uhost-api/describe_uhost_instance.html>`_ + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + - **UhostId** (str) - UHost实例ID + - **VncIP** (str) - Vnc登录IP + - **VncPassword** (str) - Vnc 登录密码 + - **VncPort** (int) - Vnc登录端口 + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.GetUHostInstanceVncInfoRequestSchema().dumps(d) + resp = self.invoke("GetUHostInstanceVncInfo", d, **kwargs) + return apis.GetUHostInstanceVncInfoResponseSchema().loads(resp)
+ +
[docs] def get_uhost_upgrade_price(self, req=None, **kwargs): + """ GetUHostUpgradePrice - 获取UHost实例升级配置的价格。可选配置范围请参考 `云主机机型说明 <https://docs.ucloud.cn/api/uhost-api/uhost_type>`_ 。 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **UHostId** (str) - (Required) UHost实例ID。 参见 `DescribeUHostInstance <https://docs.ucloud.cn/api/uhost-api/describe_uhost_instance.html>`_ 。 + - **BootDiskSpace** (int) - 【待废弃】系统大小,单位: GB,范围[20,100],步长: 10。 + - **CPU** (int) - 虚拟CPU核数。可选参数:1-64(可选范围参考控制台)。默认值为当前实例的CPU核数。 + - **DiskSpace** (int) - 【待废弃】数据盘大小,单位: GB,范围[0,1000],步长: 10, 默认值是该主机当前数据盘大小。 + - **HostType** (str) - 【待废弃】主机系列,目前支持N1,N2 + - **Memory** (int) - 内存大小。单位:MB。范围 :[1024, 262144],取值为1024的倍数(可选范围参考控制台)。默认值为当前实例的内存大小。 + - **NetCapValue** (int) - 网卡升降级(1,表示升级,2表示降级,0表示不变) + - **TimemachineFeature** (str) - 方舟机型。No,Yes。默认是No。 + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + - **Price** (float) - 规格调整差价。精确到小数点后2位。 + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.GetUHostUpgradePriceRequestSchema().dumps(d) + resp = self.invoke("GetUHostUpgradePrice", d, **kwargs) + return apis.GetUHostUpgradePriceResponseSchema().loads(resp)
+ +
[docs] def import_custom_image(self, req=None, **kwargs): + """ ImportCustomImage - 把UFile的镜像文件导入到UHost,生成自定义镜像 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **Auth** (bool) - (Required) 是否授权。必须填true + - **Format** (str) - (Required) 镜像格式,可选RAW、VHD、VMDK、qcow2 + - **ImageName** (str) - (Required) 镜像名称 + - **OsName** (str) - (Required) 操作系统详细版本,请参考控制台的镜像版本;OsType为Other时,输入参数为Other + - **OsType** (str) - (Required) 操作系统平台,比如CentOS、Ubuntu、Windows、RedHat等,请参考控制台的镜像版本;若导入控制台上没有的操作系统,参数为Other + - **UFileUrl** (str) - (Required) UFile私有空间地址 + - **ImageDescription** (str) - 镜像描述 + + **Response** + + - **ImageId** (str) - 镜像Id + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.ImportCustomImageRequestSchema().dumps(d) + kwargs["max_retries"] = 0 + resp = self.invoke("ImportCustomImage", d, **kwargs) + return apis.ImportCustomImageResponseSchema().loads(resp)
+ +
[docs] def modify_uhost_instance_name(self, req=None, **kwargs): + """ ModifyUHostInstanceName - 修改指定UHost实例名称,需要给出数据中心,UHostId,及新的实例名称。 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **UHostId** (str) - (Required) UHost实例ID 参见 `DescribeUHostInstance <https://docs.ucloud.cn/api/uhost-api/describe_uhost_instance.html>`_ + - **Name** (str) - UHost实例名称 + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + - **UhostId** (str) - UHost实例ID + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.ModifyUHostInstanceNameRequestSchema().dumps(d) + resp = self.invoke("ModifyUHostInstanceName", d, **kwargs) + return apis.ModifyUHostInstanceNameResponseSchema().loads(resp)
+ +
[docs] def modify_uhost_instance_remark(self, req=None, **kwargs): + """ ModifyUHostInstanceRemark - 修改指定UHost实例备注信息。 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **UHostId** (str) - (Required) UHost实例ID 参见 `DescribeUHostInstance <https://docs.ucloud.cn/api/uhost-api/describe_uhost_instance.html>`_ + - **Remark** (str) - 备注 + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + - **UhostId** (str) - UHost实例ID + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.ModifyUHostInstanceRemarkRequestSchema().dumps(d) + resp = self.invoke("ModifyUHostInstanceRemark", d, **kwargs) + return apis.ModifyUHostInstanceRemarkResponseSchema().loads(resp)
+ +
[docs] def modify_uhost_instance_tag(self, req=None, **kwargs): + """ ModifyUHostInstanceTag - 修改指定UHost实例业务组标识。 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **UHostId** (str) - (Required) UHost实例ID 参见 `DescribeUHostInstance <https://docs.ucloud.cn/api/uhost-api/describe_uhost_instance.html>`_ + - **Tag** (str) - 业务组名称 + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + - **UhostId** (str) - UHost实例ID + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.ModifyUHostInstanceTagRequestSchema().dumps(d) + resp = self.invoke("ModifyUHostInstanceTag", d, **kwargs) + return apis.ModifyUHostInstanceTagResponseSchema().loads(resp)
+ +
[docs] def poweroff_uhost_instance(self, req=None, **kwargs): + """ PoweroffUHostInstance - 直接关闭UHost实例电源,无需等待实例正常关闭。 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **UHostId** (str) - (Required) UHost实例ID 参见 `DescribeUHostInstance <https://docs.ucloud.cn/api/uhost-api/describe_uhost_instance.html>`_ + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + - **UhostId** (str) - UHost实例ID + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.PoweroffUHostInstanceRequestSchema().dumps(d) + resp = self.invoke("PoweroffUHostInstance", d, **kwargs) + return apis.PoweroffUHostInstanceResponseSchema().loads(resp)
+ +
[docs] def reboot_uhost_instance(self, req=None, **kwargs): + """ RebootUHostInstance - 重新启动UHost实例,需要指定数据中心及UHostID两个参数的值。 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **UHostId** (str) - (Required) UHost实例ID 参见 `DescribeUHostInstance <https://docs.ucloud.cn/api/uhost-api/describe_uhost_instance.html>`_ + - **DiskPassword** (str) - 加密盘密码 + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + - **UhostId** (str) - UHost实例ID + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.RebootUHostInstanceRequestSchema().dumps(d) + resp = self.invoke("RebootUHostInstance", d, **kwargs) + return apis.RebootUHostInstanceResponseSchema().loads(resp)
+ +
[docs] def reinstall_uhost_instance(self, req=None, **kwargs): + """ ReinstallUHostInstance - 重新安装指定UHost实例的操作系统 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **UHostId** (str) - (Required) UHost实例资源ID 参见 `DescribeUHostInstance <https://docs.ucloud.cn/api/uhost-api/describe_uhost_instance.html>`_ + - **BootDiskSpace** (int) - 系统盘大小。 单位:GB, 范围[20,100], 步长:10 + - **DNSServers** (list) - 针对非私有子网主机,可自定义DNS。n可为0-2 + - **ImageId** (str) - 镜像Id,默认使用原镜像 参见 `DescribeImage <https://docs.ucloud.cn/api/uhost-api/describe_image.html>`_ + - **Password** (str) - 如果创建UHost实例时LoginMode为Password,则必须填写,如果LoginMode为KeyPair,不需要填写 (密码格式使用BASE64编码;LoginMode不可变更) + - **ReserveDisk** (str) - 是否保留数据盘,保留:Yes,不报留:No, 默认:Yes;如果是从Windows重装为Linux或反之,则无法保留数据盘 + - **ResourceType** (int) - 云灾备指明191 + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + - **UhostId** (str) - UHost实例资源ID + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.ReinstallUHostInstanceRequestSchema().dumps(d) + resp = self.invoke("ReinstallUHostInstance", d, **kwargs) + return apis.ReinstallUHostInstanceResponseSchema().loads(resp)
+ +
[docs] def reset_uhost_instance_password(self, req=None, **kwargs): + """ ResetUHostInstancePassword - 重置UHost实例的管理员密码。 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **Password** (str) - (Required) UHost新密码(密码格式使用BASE64编码) + - **UHostId** (str) - (Required) UHost实例ID + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + - **UhostId** (str) - UHost实例ID + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.ResetUHostInstancePasswordRequestSchema().dumps(d) + resp = self.invoke("ResetUHostInstancePassword", d, **kwargs) + return apis.ResetUHostInstancePasswordResponseSchema().loads(resp)
+ +
[docs] def resize_attached_disk(self, req=None, **kwargs): + """ ResizeAttachedDisk - 修改挂载的磁盘大小,包含系统盘和数据盘 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **DiskId** (str) - (Required) 磁盘ID。参见 `DescribeUHostInstance <https://docs.ucloud.cn/api/uhost-api/describe_uhost_instance.html>`_ 返回值中的DiskSet。 + - **DiskSpace** (int) - (Required) 磁盘大小,单位GB,步长为10。取值范围需大于当前磁盘大小,最大值请参考 `磁盘类型 <https://docs.ucloud.cn/api/uhost-api/disk_type>`_ 。 + - **UHostId** (str) - (Required) UHost实例ID。 参见 `DescribeUHostInstance <https://docs.ucloud.cn/api/uhost-api/describe_uhost_instance.html>`_ 。 + - **Zone** (str) - (Required) 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + - **DiskId** (str) - 改配成功的磁盘id + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.ResizeAttachedDiskRequestSchema().dumps(d) + resp = self.invoke("ResizeAttachedDisk", d, **kwargs) + return apis.ResizeAttachedDiskResponseSchema().loads(resp)
+ +
[docs] def resize_uhost_instance(self, req=None, **kwargs): + """ ResizeUHostInstance - 修改指定UHost实例的资源配置,如CPU核心数,内存容量大小,网络增强等。可选配置范围请参考 `云主机机型说明 <https://docs.ucloud.cn/api/uhost-api/uhost_type>`_ 。 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **UHostId** (str) - (Required) UHost实例ID 参见 `DescribeUHostInstance <https://docs.ucloud.cn/api/uhost-api/describe_uhost_instance.html>`_ + - **BootDiskSpace** (int) - 【待废弃】系统盘大小,单位:GB,范围[20,100],步长:10,系统盘不支持缩容,因此不允许输入比当前实例系统盘小的值 + - **CPU** (int) - 虚拟CPU核数。可选参数:1-32(可选范围与UHostType相关)。默认值为当前实例的CPU核数 + - **DiskSpace** (int) - 【待废弃】数据盘大小,单位:GB,范围[10,1000]; SSD机型,单位:GB,范围[100,500];步长:10,默认值为当前实例的数据盘大小,数据盘不支持缩容,因此不允许输入比当前实例数据盘大小的值 + - **Memory** (int) - 内存大小。单位:MB。范围 :[1024, 262144],取值为1024的倍数(可选范围与UHostType相关)。默认值为当前实例的内存大小。 + - **NetCapValue** (int) - 网卡升降级(1,表示升级,2表示降级,0表示不变) + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + - **UhostId** (str) - UHost实例ID + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.ResizeUHostInstanceRequestSchema().dumps(d) + resp = self.invoke("ResizeUHostInstance", d, **kwargs) + return apis.ResizeUHostInstanceResponseSchema().loads(resp)
+ +
[docs] def start_uhost_instance(self, req=None, **kwargs): + """ StartUHostInstance - 启动处于关闭状态的UHost实例,需要指定数据中心及UHostID两个参数的值。 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **UHostId** (str) - (Required) UHost实例ID 参见 `DescribeUHostInstance <https://docs.ucloud.cn/api/uhost-api/describe_uhost_instance.html>`_ + - **DiskPassword** (str) - 加密盘密码 + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + - **UhostId** (str) - UHost实例ID + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.StartUHostInstanceRequestSchema().dumps(d) + resp = self.invoke("StartUHostInstance", d, **kwargs) + return apis.StartUHostInstanceResponseSchema().loads(resp)
+ +
[docs] def stop_uhost_instance(self, req=None, **kwargs): + """ StopUHostInstance - 指停止处于运行状态的UHost实例,需指定数据中心及UhostID。 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **UHostId** (str) - (Required) UHost实例ID 参见 `DescribeUHostInstance <https://docs.ucloud.cn/api/uhost-api/describe_uhost_instance.html>`_ + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + - **UhostId** (str) - UHost实例ID + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.StopUHostInstanceRequestSchema().dumps(d) + resp = self.invoke("StopUHostInstance", d, **kwargs) + return apis.StopUHostInstanceResponseSchema().loads(resp)
+ +
[docs] def terminate_custom_image(self, req=None, **kwargs): + """ TerminateCustomImage - 删除用户自定义镜像 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **ImageId** (str) - (Required) 自制镜像ID 参见 `DescribeImage <https://docs.ucloud.cn/api/uhost-api/describe_image.html>`_ + + **Response** + + - **ImageId** (str) - 自制镜像Id + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.TerminateCustomImageRequestSchema().dumps(d) + resp = self.invoke("TerminateCustomImage", d, **kwargs) + return apis.TerminateCustomImageResponseSchema().loads(resp)
+ +
[docs] def terminate_uhost_instance(self, req=None, **kwargs): + """ TerminateUHostInstance - 删除指定数据中心的UHost实例。 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **UHostId** (str) - (Required) UHost资源Id 参见 `DescribeUHostInstance <https://docs.ucloud.cn/api/uhost-api/describe_uhost_instance.html>`_ + - **Destroy** (int) - 是否直接删除,0表示按照原来的逻辑(有回收站权限,则进入回收站),1表示直接删除 + - **ReleaseEIP** (bool) - 是否释放绑定的EIP。true: 解绑EIP后,并释放;其他值或不填:解绑EIP。 + - **ReleaseUDisk** (bool) - 是否删除挂载的数据盘。true删除,其他不删除。 + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + - **InRecycle** (str) - 放入回收站:"Yes", 彻底删除:“No” + - **UHostId** (str) - UHost 实例 Id + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.TerminateUHostInstanceRequestSchema().dumps(d) + resp = self.invoke("TerminateUHostInstance", d, **kwargs) + return apis.TerminateUHostInstanceResponseSchema().loads(resp)
+ +
[docs] def upgrade_to_ark_uhost_instance(self, req=None, **kwargs): + """ UpgradeToArkUHostInstance - 普通升级为方舟机型 + + **Request** + + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **UHostIds** (list) - (Required) UHost主机的资源ID,例如UHostIds.0代表希望升级的主机1,UHostIds.1代表主机2。 + - **Zone** (str) - (Required) 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **CouponId** (str) - 代金券ID 请参考DescribeCoupon接口 + + **Response** + + - **UHostSet** (list) - UHost主机的资源ID数组 + + """ + d = {"Region": self.config.region} + req and d.update(req) + d = apis.UpgradeToArkUHostInstanceRequestSchema().dumps(d) + resp = self.invoke("UpgradeToArkUHostInstance", d, **kwargs) + return apis.UpgradeToArkUHostInstanceResponseSchema().loads(resp)
+
+ +
+ +
+
+ +
+
+ + + + + + + \ No newline at end of file diff --git a/_modules/ucloud/services/ulb/client.html b/_modules/ucloud/services/ulb/client.html new file mode 100644 index 0000000..c11d6fe --- /dev/null +++ b/_modules/ucloud/services/ulb/client.html @@ -0,0 +1,756 @@ + + + + + + + + ucloud.services.ulb.client — ucloud-sdk-python2 documentation + + + + + + + + + + + + + + + + + + +
+
+
+ + +
+ +

Source code for ucloud.services.ulb.client

+# -*- coding: utf-8 -*-
+
+""" Code is generated by ucloud-model, DO NOT EDIT IT. """
+from ucloud.core.client import Client
+from ucloud.services.ulb.schemas import apis
+
+
+
[docs]class ULBClient(Client): + def __init__(self, config, transport=None, middleware=None, logger=None): + super(ULBClient, self).__init__(config, transport, middleware, logger) + +
[docs] def allocate_backend(self, req=None, **kwargs): + """ AllocateBackend - 添加ULB后端资源实例 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **ResourceId** (str) - (Required) 所添加的后端资源的资源ID + - **ResourceType** (str) - (Required) 所添加的后端资源的类型,枚举值:UHost -> 云主机;UPM -> 物理云主机; UDHost -> 私有专区主机;UDocker -> 容器,默认值为“UHost” + - **ULBId** (str) - (Required) 负载均衡实例的ID + - **VServerId** (str) - (Required) VServer实例的ID + - **Enabled** (int) - 后端实例状态开关,枚举值: 1:启用; 0:禁用 默认为启用 + - **Port** (int) - 所添加的后端资源服务端口,取值范围[1-65535],默认80 + - **Weight** (int) - 所添加的后端RS权重(在加权轮询算法下有效),取值范围[0-100],默认为1 + + **Response** + + - **BackendId** (str) - 所添加的后端资源在ULB中的对象ID,(为ULB系统中使用,与资源自身ID无关),可用于 UpdateBackendAttribute/UpdateBackendAttributeBatch/ReleaseBackend + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.AllocateBackendRequestSchema().dumps(d) + resp = self.invoke("AllocateBackend", d, **kwargs) + return apis.AllocateBackendResponseSchema().loads(resp)
+ +
[docs] def allocate_backend_batch(self, req=None, **kwargs): + """ AllocateBackendBatch - 批量添加VServer后端节点 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **Backends** (list) - (Required) 用| 分割字段,格式:ResourceId| ResourceType| Port| Enabled|IP| Weight。ResourceId:所添加的后端资源的资源ID;ResourceType:所添加的后端资源的类型,枚举值:UHost -> 云主机;UPM -> 物理云主机; UDHost -> 私有专区主机;UDocker -> 容器,默认值为“UHost”;Port:所添加的后端资源服务端口,取值范围[1-65535];Enabled:后端实例状态开关,枚举值: 1:启用; 0:禁用;IP:后端资源内网ip;Weight:所添加的后端RS权重(在加权轮询算法下有效),取值范围[0-100],默认为1 + - **ULBId** (str) - (Required) 负载均衡实例的ID + - **VServerId** (str) - (Required) VServer实例的ID + - **ApiVersion** (int) - + + **Response** + + - **BackendSet** (list) - 见 **BackendSet** 模型定义 + + **Response Model** + + **BackendSet** + + - **BackendId** (str) - rs的资源ID + - **ResourceId** (str) - rs对应的UHost ID + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.AllocateBackendBatchRequestSchema().dumps(d) + resp = self.invoke("AllocateBackendBatch", d, **kwargs) + return apis.AllocateBackendBatchResponseSchema().loads(resp)
+ +
[docs] def bind_ssl(self, req=None, **kwargs): + """ BindSSL - 将SSL证书绑定到VServer + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **SSLId** (str) - (Required) SSL证书的Id + - **ULBId** (str) - (Required) 所绑定ULB实例ID + - **VServerId** (str) - (Required) 所绑定VServer实例ID + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.BindSSLRequestSchema().dumps(d) + resp = self.invoke("BindSSL", d, **kwargs) + return apis.BindSSLResponseSchema().loads(resp)
+ +
[docs] def create_policy(self, req=None, **kwargs): + """ CreatePolicy - 创建VServer内容转发策略 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **BackendId** (list) - (Required) 内容转发策略应用的后端资源实例的ID,来源于 AllocateBackend 返回的 BackendId + - **Match** (str) - (Required) 内容转发匹配字段 + - **ULBId** (str) - (Required) 需要添加内容转发策略的负载均衡实例ID + - **VServerId** (str) - (Required) 需要添加内容转发策略的VServer实例ID + - **Type** (str) - 内容转发匹配字段的类型 + + **Response** + + - **PolicyId** (str) - 内容转发策略ID + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.CreatePolicyRequestSchema().dumps(d) + kwargs["max_retries"] = 0 + resp = self.invoke("CreatePolicy", d, **kwargs) + return apis.CreatePolicyResponseSchema().loads(resp)
+ +
[docs] def create_ssl(self, req=None, **kwargs): + """ CreateSSL - 创建SSL证书,可以把整个 Pem 证书内容传过来,或者把证书、私钥、CA证书分别传过来 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **SSLName** (str) - (Required) SSL证书的名字,默认值为空 + - **CaCert** (str) - CA证书 + - **PrivateKey** (str) - 加密证书的私钥 + - **SSLContent** (str) - SSL证书的完整内容,包括用户证书、加密证书的私钥、CA证书 + - **SSLType** (str) - 所添加的SSL证书类型,目前只支持Pem格式 + - **UserCert** (str) - 用户的证书 + + **Response** + + - **SSLId** (str) - SSL证书的Id + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.CreateSSLRequestSchema().dumps(d) + kwargs["max_retries"] = 0 + resp = self.invoke("CreateSSL", d, **kwargs) + return apis.CreateSSLResponseSchema().loads(resp)
+ +
[docs] def create_ulb(self, req=None, **kwargs): + """ CreateULB - 创建负载均衡实例,可以选择内网或者外网 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **BusinessId** (str) - ULB 所属的业务组ID,如果不传则使用默认的业务组 + - **ChargeType** (str) - 付费方式 + - **IPVersion** (str) - ULB ip类型,枚举值:IPv6 / IPv4 (内部测试,暂未对外开放) + - **InnerMode** (str) - 创建的ULB是否为内网模式 + - **ListenType** (str) - ULB 监听器类型,枚举值:RequestProxy / PacketsTransmit (内部测试,暂未对外开放) + - **OuterMode** (str) - 创建的ULB是否为外网模式,默认即为外网模式 + - **PrivateIp** (str) - 创建内网ULB时指定内网IP。若不传值,则随机分配当前子网下的IP(暂时不对外开放,创建外网ULB该字段会忽略) + - **Remark** (str) - 备注 + - **SubnetId** (str) - 内网ULB 所属的子网ID,如果不传则使用默认的子网 + - **Tag** (str) - 业务组 + - **ULBName** (str) - 负载均衡的名字,默认值为“ULB” + - **VPCId** (str) - ULB所在的VPC的ID, 如果不传则使用默认的VPC + + **Response** + + - **ULBId** (str) - 负载均衡实例的Id + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.CreateULBRequestSchema().dumps(d) + kwargs["max_retries"] = 0 + resp = self.invoke("CreateULB", d, **kwargs) + return apis.CreateULBResponseSchema().loads(resp)
+ +
[docs] def create_vserver(self, req=None, **kwargs): + """ CreateVServer - 创建VServer实例,定义监听的协议和端口以及负载均衡算法 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **ULBId** (str) - (Required) 负载均衡实例ID + - **ClientTimeout** (int) - ListenType为RequestProxy时表示空闲连接的回收时间,单位:秒,取值范围:时(0,86400],默认值为60;ListenType为PacketsTransmit时表示连接保持的时间,单位:秒,取值范围:[60,900],0 表示禁用连接保持 + - **Domain** (str) - 根据MonitorType确认; 当MonitorType为Port时,此字段无意义。当MonitorType为Path时,代表HTTP检查域名 + - **FrontendPort** (int) - VServer后端端口,取值范围[1-65535];默认值为80 + - **ListenType** (str) - 监听器类型,枚举值为:RequestProxy -> 请求代理;PacketsTransmit -> 报文转发;默认为"RequestProxy" + - **Method** (str) - VServer负载均衡模式,枚举值:Roundrobin -> 轮询;Source -> 源地址;ConsistentHash -> 一致性哈希;SourcePort -> 源地址(计算端口);ConsistentHashPort -> 一致性哈希(计算端口); WeightRoundrobin -> 加权轮询; Leastconn -> 最小连接数。ConsistentHash,SourcePort,ConsistentHashPort 只在报文转发中使用;Leastconn只在请求代理中使用;Roundrobin、Source和WeightRoundrobin在请求代理和报文转发中使用。默认为:"Roundrobin" + - **MonitorType** (str) - 健康检查类型,枚举值:Port -> 端口检查;Path -> 路径检查; + - **Path** (str) - 根据MonitorType确认; 当MonitorType为Port时,此字段无意义。当MonitorType为Path时,代表HTTP检查路径 + - **PersistenceInfo** (str) - 根据PersistenceType确认; None和ServerInsert: 此字段无意义; UserDefined:此字段传入自定义会话保持String + - **PersistenceType** (str) - VServer会话保持方式,默认关闭会话保持。枚举值:None -> 关闭;ServerInsert -> 自动生成KEY;UserDefined -> 用户自定义KEY。 + - **Protocol** (str) - VServer实例的协议,请求代理模式下有 HTTP、HTTPS、TCP,报文转发下有 TCP,UDP。默认为“HTTP" + - **VServerName** (str) - VServer实例名称,默认为"VServer" + + **Response** + + - **VServerId** (str) - VServer实例的Id + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.CreateVServerRequestSchema().dumps(d) + kwargs["max_retries"] = 0 + resp = self.invoke("CreateVServer", d, **kwargs) + return apis.CreateVServerResponseSchema().loads(resp)
+ +
[docs] def delete_policy(self, req=None, **kwargs): + """ DeletePolicy - 删除内容转发策略 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **PolicyId** (str) - (Required) 内容转发策略ID + - **GroupId** (str) - 内容转发策略组ID + - **VServerId** (str) - VServer 资源ID + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DeletePolicyRequestSchema().dumps(d) + resp = self.invoke("DeletePolicy", d, **kwargs) + return apis.DeletePolicyResponseSchema().loads(resp)
+ +
[docs] def delete_ssl(self, req=None, **kwargs): + """ DeleteSSL - 删除SSL证书 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **SSLId** (str) - (Required) SSL证书的ID + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DeleteSSLRequestSchema().dumps(d) + resp = self.invoke("DeleteSSL", d, **kwargs) + return apis.DeleteSSLResponseSchema().loads(resp)
+ +
[docs] def delete_ulb(self, req=None, **kwargs): + """ DeleteULB - 删除负载均衡实例 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **ULBId** (str) - (Required) 负载均衡实例的ID + - **ReleaseEip** (bool) - 删除ulb时是否释放绑定的EIP,false标识只解绑EIP,true表示会释放绑定的EIP,默认是false + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DeleteULBRequestSchema().dumps(d) + resp = self.invoke("DeleteULB", d, **kwargs) + return apis.DeleteULBResponseSchema().loads(resp)
+ +
[docs] def delete_vserver(self, req=None, **kwargs): + """ DeleteVServer - 删除VServer实例 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **ULBId** (str) - (Required) 负载均衡实例的ID + - **VServerId** (str) - (Required) VServer实例的ID + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DeleteVServerRequestSchema().dumps(d) + resp = self.invoke("DeleteVServer", d, **kwargs) + return apis.DeleteVServerResponseSchema().loads(resp)
+ +
[docs] def describe_ssl(self, req=None, **kwargs): + """ DescribeSSL - 获取SSL证书信息 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **Limit** (int) - 数据分页值,默认为20 + - **Offset** (int) - 数据偏移量,默认值为0 + - **SSLId** (str) - SSL证书的Id + + **Response** + + - **DataSet** (list) - 见 **ULBSSLSet** 模型定义 + - **TotalCount** (int) - 满足条件的SSL证书总数 + + **Response Model** + + **ULBSSLSet** + + - **HashValue** (str) - + - **SSLId** (str) - SSL证书的Id + - **SSLName** (str) - SSL证书的名字 + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DescribeSSLRequestSchema().dumps(d) + resp = self.invoke("DescribeSSL", d, **kwargs) + return apis.DescribeSSLResponseSchema().loads(resp)
+ +
[docs] def describe_ulb(self, req=None, **kwargs): + """ DescribeULB - 获取ULB详细信息 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **BusinessId** (str) - ULB所属的业务组ID + - **Limit** (int) - 数据分页值,默认为20 + - **Offset** (int) - 数据偏移量,默认为0 + - **SubnetId** (str) - ULB所属的子网ID + - **ULBId** (str) - 负载均衡实例的Id。 若指定则返回指定的负载均衡实例的信息; 若不指定则返回当前数据中心中所有的负载均衡实例的信息 + - **VPCId** (str) - ULB所属的VPC + + **Response** + + - **DataSet** (list) - 见 **ULBSet** 模型定义 + - **TotalCount** (int) - 满足条件的ULB总数 + + **Response Model** + + **PolicyBackendSet** + + - **BackendId** (str) - 所添加的后端资源在ULB中的对象ID,(为ULB系统中使用,与资源自身ID无关 + - **ObjectId** (str) - 后端资源的对象ID + - **Port** (int) - 所添加的后端资源服务端口 + - **PrivateIP** (str) - 后端资源的内网IP + - **ResourceName** (str) - 后端资源的实例名称 + + **ULBPolicySet** + + - **BackendSet** (list) - 见 **PolicyBackendSet** 模型定义 + - **Match** (str) - 内容转发匹配字段;默认内容转发类型下为空。 + - **PolicyId** (str) - 内容转发Id,默认内容转发类型下为空。 + - **PolicyPriority** (int) - 内容转发优先级,范围[1,9999],数字越大优先级越高。默认内容转发规则下为0。 + - **PolicyType** (str) - 内容类型,枚举值:Custom -> 客户自定义;Default -> 默认内容转发 + - **TotalCount** (int) - 默认内容转发类型下返回当前rs总数 + - **Type** (str) - 内容转发匹配字段的类型,枚举值:Domain -> 域名;Path -> 路径; 默认内容转发类型下为空 + - **VServerId** (str) - 所属VServerId + + **ULBBackendSet** + + - **BackendId** (str) - 后端资源实例的Id + - **Enabled** (int) - 后端提供服务的实例启用与否,枚举值:0 禁用 1 启用 + - **Port** (int) - 后端提供服务的端口 + - **PrivateIP** (str) - 后端提供服务的内网IP + - **ResourceId** (str) - 资源实例的资源Id + - **ResourceName** (str) - 资源实例的资源名称 + - **ResourceType** (str) - 资源实例的类型 + - **Status** (int) - 后端提供服务的实例运行状态,枚举值:0健康检查健康状态 1 健康检查异常 + - **SubResourceId** (str) - 资源绑定的虚拟网卡实例的资源Id + - **SubResourceName** (str) - 资源绑定的虚拟网卡实例的资源名称 + - **SubResourceType** (str) - 资源绑定的虚拟网卡实例的类型 + - **SubnetId** (str) - 后端提供服务的资源所在的子网的ID + - **Weight** (int) - + + **ULBSSLSet** + + - **HashValue** (str) - + - **SSLId** (str) - SSL证书的Id + - **SSLName** (str) - SSL证书的名字 + + **ULBVServerSet** + + - **BackendSet** (list) - 见 **ULBBackendSet** 模型定义 + - **ClientTimeout** (int) - 空闲连接的回收时间,单位:秒。 + - **Domain** (str) - 根据MonitorType确认; 当MonitorType为Port时,此字段无意义。当MonitorType为Path时,代表HTTP检查域名 + - **FrontendPort** (int) - VServer服务端口 + - **ListenType** (str) - 监听器类型,枚举值为: RequestProxy -> 请求代理;PacketsTransmit -> 报文转发 + - **Method** (str) - VServer负载均衡的模式,枚举值:Roundrobin -> 轮询;Source -> 源地址;ConsistentHash -> 一致性哈希;SourcePort -> 源地址(计算端口);ConsistentHashPort -> 一致性哈希(计算端口)。 + - **MonitorType** (str) - 健康检查类型,枚举值:Port -> 端口检查;Path -> 路径检查; + - **Path** (str) - 根据MonitorType确认; 当MonitorType为Port时,此字段无意义。当MonitorType为Path时,代表HTTP检查路径 + - **PersistenceInfo** (str) - 根据PersistenceType确定: None或ServerInsert,此字段为空; UserDefined,此字段展示用户自定义会话string。 + - **PersistenceType** (str) - VServer会话保持方式。枚举值为: None -> 关闭会话保持; ServerInsert -> 自动生成; UserDefined -> 用户自定义。 + - **PolicySet** (list) - 见 **ULBPolicySet** 模型定义 + - **Protocol** (str) - VServer实例的协议。 枚举值为:HTTP,TCP,UDP,HTTPS。 + - **SSLSet** (list) - 见 **ULBSSLSet** 模型定义 + - **Status** (int) - VServer的运行状态。枚举值: 0 -> rs全部运行正常;1 -> rs全部运行异常;2 -> rs部分运行异常。 + - **VServerId** (str) - VServer实例的Id + - **VServerName** (str) - VServer实例的名字 + + **ULBIPSet** + + - **Bandwidth** (int) - 弹性IP的带宽值(暂未对外开放) + - **BandwidthType** (int) - 弹性IP的带宽类型,枚举值:1 表示是共享带宽,0 普通带宽类型(暂未对外开放) + - **EIP** (str) - 弹性IP地址 + - **EIPId** (str) - 弹性IP的ID + - **OperatorName** (str) - 弹性IP的运营商信息,枚举值为: Bgp:BGP IP International:国际IP + + **ULBSet** + + - **Bandwidth** (int) - 带宽 + - **BandwidthType** (int) - 带宽类型,枚举值为: 0,非共享带宽; 1,共享带宽 + - **BusinessId** (str) - ULB 所属的业务组ID + - **CreateTime** (int) - ULB的创建时间,格式为Unix Timestamp + - **ExpireTime** (int) - ULB的到期时间,格式为Unix Timestamp + - **IPSet** (list) - 见 **ULBIPSet** 模型定义 + - **Name** (str) - 负载均衡的资源名称(资源系统中),缺省值“ULB” + - **PrivateIP** (str) - ULB的内网IP,当ULBType为OuterMode时,该值为空 + - **Remark** (str) - 负载均衡的备注,缺省值“” + - **Resource** (list) - ULB的详细信息列表(废弃) + - **SubnetId** (str) - ULB 为 InnerMode 时,ULB 所属的子网ID,默认为空 + - **Tag** (str) - 负载均衡的业务组名称,缺省值“Default” + - **ULBId** (str) - 负载均衡的资源ID + - **ULBName** (str) - 负载均衡的资源名称(内部记载,废弃) + - **ULBType** (str) - ULB 的类型 + - **VPCId** (str) - ULB所在的VPC的ID + - **VServerSet** (list) - 见 **ULBVServerSet** 模型定义 + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DescribeULBRequestSchema().dumps(d) + resp = self.invoke("DescribeULB", d, **kwargs) + return apis.DescribeULBResponseSchema().loads(resp)
+ +
[docs] def describe_vserver(self, req=None, **kwargs): + """ DescribeVServer - 获取ULB下的VServer的详细信息 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **ULBId** (str) - (Required) 负载均衡实例的Id + - **Limit** (int) - 数据分页值 + - **Offset** (int) - 数据偏移量 + - **VServerId** (str) - VServer实例的Id;若指定则返回指定的VServer实例的信息; 若不指定则返回当前负载均衡实例下所有VServer的信息 + + **Response** + + - **DataSet** (list) - 见 **ULBVServerSet** 模型定义 + - **TotalCount** (int) - 满足条件的VServer总数 + + **Response Model** + + **PolicyBackendSet** + + - **BackendId** (str) - 所添加的后端资源在ULB中的对象ID,(为ULB系统中使用,与资源自身ID无关 + - **ObjectId** (str) - 后端资源的对象ID + - **Port** (int) - 所添加的后端资源服务端口 + - **PrivateIP** (str) - 后端资源的内网IP + - **ResourceName** (str) - 后端资源的实例名称 + + **ULBSSLSet** + + - **HashValue** (str) - + - **SSLId** (str) - SSL证书的Id + - **SSLName** (str) - SSL证书的名字 + + **ULBPolicySet** + + - **BackendSet** (list) - 见 **PolicyBackendSet** 模型定义 + - **Match** (str) - 内容转发匹配字段;默认内容转发类型下为空。 + - **PolicyId** (str) - 内容转发Id,默认内容转发类型下为空。 + - **PolicyPriority** (int) - 内容转发优先级,范围[1,9999],数字越大优先级越高。默认内容转发规则下为0。 + - **PolicyType** (str) - 内容类型,枚举值:Custom -> 客户自定义;Default -> 默认内容转发 + - **TotalCount** (int) - 默认内容转发类型下返回当前rs总数 + - **Type** (str) - 内容转发匹配字段的类型,枚举值:Domain -> 域名;Path -> 路径; 默认内容转发类型下为空 + - **VServerId** (str) - 所属VServerId + + **ULBBackendSet** + + - **BackendId** (str) - 后端资源实例的Id + - **Enabled** (int) - 后端提供服务的实例启用与否,枚举值:0 禁用 1 启用 + - **Port** (int) - 后端提供服务的端口 + - **PrivateIP** (str) - 后端提供服务的内网IP + - **ResourceId** (str) - 资源实例的资源Id + - **ResourceName** (str) - 资源实例的资源名称 + - **ResourceType** (str) - 资源实例的类型 + - **Status** (int) - 后端提供服务的实例运行状态,枚举值:0健康检查健康状态 1 健康检查异常 + - **SubResourceId** (str) - 资源绑定的虚拟网卡实例的资源Id + - **SubResourceName** (str) - 资源绑定的虚拟网卡实例的资源名称 + - **SubResourceType** (str) - 资源绑定的虚拟网卡实例的类型 + - **SubnetId** (str) - 后端提供服务的资源所在的子网的ID + - **Weight** (int) - + + **ULBVServerSet** + + - **BackendSet** (list) - 见 **ULBBackendSet** 模型定义 + - **ClientTimeout** (int) - 空闲连接的回收时间,单位:秒。 + - **Domain** (str) - 根据MonitorType确认; 当MonitorType为Port时,此字段无意义。当MonitorType为Path时,代表HTTP检查域名 + - **FrontendPort** (int) - VServer服务端口 + - **ListenType** (str) - 监听器类型,枚举值为: RequestProxy -> 请求代理;PacketsTransmit -> 报文转发 + - **Method** (str) - VServer负载均衡的模式,枚举值:Roundrobin -> 轮询;Source -> 源地址;ConsistentHash -> 一致性哈希;SourcePort -> 源地址(计算端口);ConsistentHashPort -> 一致性哈希(计算端口)。 + - **MonitorType** (str) - 健康检查类型,枚举值:Port -> 端口检查;Path -> 路径检查; + - **Path** (str) - 根据MonitorType确认; 当MonitorType为Port时,此字段无意义。当MonitorType为Path时,代表HTTP检查路径 + - **PersistenceInfo** (str) - 根据PersistenceType确定: None或ServerInsert,此字段为空; UserDefined,此字段展示用户自定义会话string。 + - **PersistenceType** (str) - VServer会话保持方式。枚举值为: None -> 关闭会话保持; ServerInsert -> 自动生成; UserDefined -> 用户自定义。 + - **PolicySet** (list) - 见 **ULBPolicySet** 模型定义 + - **Protocol** (str) - VServer实例的协议。 枚举值为:HTTP,TCP,UDP,HTTPS。 + - **SSLSet** (list) - 见 **ULBSSLSet** 模型定义 + - **Status** (int) - VServer的运行状态。枚举值: 0 -> rs全部运行正常;1 -> rs全部运行异常;2 -> rs部分运行异常。 + - **VServerId** (str) - VServer实例的Id + - **VServerName** (str) - VServer实例的名字 + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DescribeVServerRequestSchema().dumps(d) + resp = self.invoke("DescribeVServer", d, **kwargs) + return apis.DescribeVServerResponseSchema().loads(resp)
+ +
[docs] def release_backend(self, req=None, **kwargs): + """ ReleaseBackend - 从VServer释放后端资源实例 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **BackendId** (str) - (Required) 后端资源实例的ID(ULB后端ID,非资源自身ID) + - **ULBId** (str) - (Required) 负载均衡实例的ID + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.ReleaseBackendRequestSchema().dumps(d) + resp = self.invoke("ReleaseBackend", d, **kwargs) + return apis.ReleaseBackendResponseSchema().loads(resp)
+ +
[docs] def unbind_ssl(self, req=None, **kwargs): + """ UnbindSSL - 从VServer解绑SSL证书 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **SSLId** (str) - (Required) SSL证书的Id + - **ULBId** (str) - (Required) 所绑定ULB实例ID + - **VServerId** (str) - (Required) 所绑定VServer实例ID + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.UnbindSSLRequestSchema().dumps(d) + resp = self.invoke("UnbindSSL", d, **kwargs) + return apis.UnbindSSLResponseSchema().loads(resp)
+ +
[docs] def update_backend_attribute(self, req=None, **kwargs): + """ UpdateBackendAttribute - 更新ULB后端资源实例(服务节点)属性 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **BackendId** (str) - (Required) 后端资源实例的ID(ULB后端ID,非资源自身ID) + - **ULBId** (str) - (Required) 负载均衡资源ID + - **Enabled** (int) - 后端实例状态开关 + - **Port** (int) - 后端资源服务端口,取值范围[1-65535] + - **Weight** (int) - 所添加的后端RS权重(在加权轮询算法下有效),取值范围[0-100],默认为1 + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.UpdateBackendAttributeRequestSchema().dumps(d) + resp = self.invoke("UpdateBackendAttribute", d, **kwargs) + return apis.UpdateBackendAttributeResponseSchema().loads(resp)
+ +
[docs] def update_policy(self, req=None, **kwargs): + """ UpdatePolicy - 更新内容转发规则,包括转发规则后的服务节点 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **BackendId** (list) - (Required) 内容转发策略应用的后端资源实例的ID,来源于 AllocateBackend 返回的 BackendId + - **Match** (str) - (Required) 内容转发匹配字段 + - **PolicyId** (str) - (Required) 转发规则的ID + - **ULBId** (str) - (Required) 需要添加内容转发策略的负载均衡实例ID + - **VServerId** (str) - (Required) 需要添加内容转发策略的VServer实例ID + - **Type** (str) - 内容转发匹配字段的类型 + + **Response** + + - **PolicyId** (str) - 转发规则的ID + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.UpdatePolicyRequestSchema().dumps(d) + resp = self.invoke("UpdatePolicy", d, **kwargs) + return apis.UpdatePolicyResponseSchema().loads(resp)
+ +
[docs] def update_ulb_attribute(self, req=None, **kwargs): + """ UpdateULBAttribute - 更新ULB名字业务组备注等属性字段 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **ULBId** (str) - (Required) ULB资源ID + - **Name** (str) - 名字 + - **Remark** (str) - 备注 + - **Tag** (str) - 业务 + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.UpdateULBAttributeRequestSchema().dumps(d) + resp = self.invoke("UpdateULBAttribute", d, **kwargs) + return apis.UpdateULBAttributeResponseSchema().loads(resp)
+ +
[docs] def update_vserver_attribute(self, req=None, **kwargs): + """ UpdateVServerAttribute - 更新VServer实例属性 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **ULBId** (str) - (Required) 负载均衡实例ID + - **VServerId** (str) - (Required) VServer实例ID + - **ClientTimeout** (int) - 请求代理的VServer下表示空闲连接的回收时间,单位:秒,取值范围:时(0,86400],默认值为60;报文转发的VServer下表示回话保持的时间,单位:秒,取值范围:[60,900],0 表示禁用连接保持 + - **Domain** (str) - MonitorType 为 Path 时指定健康检查发送请求时HTTP HEADER 里的域名 + - **Method** (str) - VServer负载均衡模式,枚举值:Roundrobin -> 轮询;Source -> 源地址;ConsistentHash -> 一致性哈希;SourcePort -> 源地址(计算端口);ConsistentHashPort -> 一致性哈希(计算端口); WeightRoundrobin -> 加权轮询; Leastconn -> 最小连接数。ConsistentHash,SourcePort,ConsistentHashPort 只在报文转发中使用;Leastconn只在请求代理中使用;Roundrobin、Source和WeightRoundrobin在请求代理和报文转发中使用。默认为:"Roundrobin" + - **MonitorType** (str) - 健康检查的类型,Port:端口,Path:路径 + - **Path** (str) - MonitorType 为 Path 时指定健康检查发送请求时的路径,默认为 / + - **PersistenceInfo** (str) - 根据PersistenceType确定: None或ServerInsert, 此字段无意义; UserDefined, 则此字段传入用户自定义会话保持String. 若无此字段则不做修改 + - **PersistenceType** (str) - VServer会话保持模式,若无此字段则不做修改。枚举值:None:关闭;ServerInsert:自动生成KEY;UserDefined:用户自定义KEY。 + - **Protocol** (str) - VServer协议类型,请求代理只支持修改为 HTTP/HTTPS,报文转发VServer只支持修改为 TCP/UDP + - **VServerName** (str) - VServer实例名称,若无此字段则不做修改 + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.UpdateVServerAttributeRequestSchema().dumps(d) + resp = self.invoke("UpdateVServerAttribute", d, **kwargs) + return apis.UpdateVServerAttributeResponseSchema().loads(resp)
+
+ +
+ +
+
+ +
+
+ + + + + + + \ No newline at end of file diff --git a/_modules/ucloud/services/umem/client.html b/_modules/ucloud/services/umem/client.html new file mode 100644 index 0000000..a56f79b --- /dev/null +++ b/_modules/ucloud/services/umem/client.html @@ -0,0 +1,801 @@ + + + + + + + + ucloud.services.umem.client — ucloud-sdk-python2 documentation + + + + + + + + + + + + + + + + + + +
+
+
+ + +
+ +

Source code for ucloud.services.umem.client

+# -*- coding: utf-8 -*-
+
+""" Code is generated by ucloud-model, DO NOT EDIT IT. """
+from ucloud.core.client import Client
+from ucloud.services.umem.schemas import apis
+
+
+
[docs]class UMemClient(Client): + def __init__(self, config, transport=None, middleware=None, logger=None): + super(UMemClient, self).__init__(config, transport, middleware, logger) + +
[docs] def create_umem_space(self, req=None, **kwargs): + """ CreateUMemSpace - 创建UMem内存空间 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **Name** (str) - (Required) 空间名称,长度(6<=size<=63) + - **Size** (int) - (Required) 内存大小, 单位:GB, 范围[1~1024] + - **ChargeType** (str) - Year , Month, Dynamic, Trial 默认: Month + - **CouponId** (str) - 使用的代金券id + - **Password** (str) - URedis密码。请遵照 `字段规范 <https://docs.ucloud.cn/api/uhost-api/specification>`_ 设定密码。密码需使用base64进行编码,举例如下:# echo -n Password1 | base64UGFzc3dvcmQx。 + - **Protocol** (str) - 协议:memcache, redis (默认redis).注意:redis无single类型 + - **Quantity** (int) - 购买时长 默认: 1 + - **SubnetId** (str) - + - **Tag** (str) - + - **Type** (str) - 空间类型:single(无热备),double(热备)(默认: double) + - **VPCId** (str) - + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + - **SpaceId** (str) - 创建内存空间ID列表 + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.CreateUMemSpaceRequestSchema().dumps(d) + kwargs["max_retries"] = 0 + resp = self.invoke("CreateUMemSpace", d, **kwargs) + return apis.CreateUMemSpaceResponseSchema().loads(resp)
+ +
[docs] def create_umem_cache_group(self, req=None, **kwargs): + """ CreateUMemcacheGroup - 创建单机Memcache + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **Name** (str) - (Required) 请求创建组的名称 范围[6-60] + - **ChargeType** (str) - 计费模式,Year , Month, Dynamic 默认: Month + - **ConfigId** (str) - 配置ID,目前仅支持默认配置id 默认配置id:"9a891891-c245-4b66-bce8-67e59430d67c" + - **CouponId** (str) - 代金券ID + - **Protocol** (str) - + - **Quantity** (int) - 购买时长,默认为1 + - **Size** (int) - 每个节点的内存大小,单位GB,默认1GB 目前仅支持1/2/4/8/16/32这几档 + - **SubnetId** (str) - + - **Tag** (str) - 业务组 默认:Default + - **VPCId** (str) - + - **Version** (str) - Memcache版本信息,默认为1.4.31 + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + - **GroupId** (str) - 创建的组ID + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.CreateUMemcacheGroupRequestSchema().dumps(d) + kwargs["max_retries"] = 0 + resp = self.invoke("CreateUMemcacheGroup", d, **kwargs) + return apis.CreateUMemcacheGroupResponseSchema().loads(resp)
+ +
[docs] def create_uredis_group(self, req=None, **kwargs): + """ CreateURedisGroup - 创建主备redis + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **HighAvailability** (str) - (Required) 是否开启高可用,enable或disable + - **Name** (str) - (Required) 请求创建组的名称 (范围[6-63],只能包含英文、数字以及符号-和_) + - **Zone** (str) - (Required) 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **AutoBackup** (str) - 是否自动备份,enable或disable,默认disable + - **BackupId** (str) - 有此项代表从备份中创建,无代表正常创建 + - **BackupTime** (int) - 自动备份开始时间,范围[0-23],默认3点 + - **ChargeType** (str) - 计费模式,Year , Month, Dynamic 默认: Month + - **ConfigId** (str) - 配置ID,目前支持 3.0版本配置ID:"03f58ca9-b64d-4bdd-abc7-c6b9a46fd801",3.2版本配置ID:"3e45ac48-f8a2-a9q2-261d-l342dab130gf", 4.0版本配置ID:"6c9298a3-9d7f-428c-b1d0-e87ab3b8a1ea",默认版本3.0,从备份创建为必传项 + - **CouponId** (str) - 代金券ID + - **MasterGroupId** (str) - Master Redis Group的ID,创建只读Slave时,必须填写 + - **Password** (str) - 初始化密码,需要 base64 编码 + - **Quantity** (int) - 购买时长,默认为1 + - **Size** (int) - 每个节点的内存大小,单位GB,默认1GB,目前仅支持1/2/4/8/16/32,六种 + - **SlaveZone** (str) - 跨机房URedis,slave所在可用区(必须和Zone在同一Region,且不可相同) + - **SubnetId** (str) - + - **Tag** (str) - 业务组名称 + - **VPCId** (str) - + - **Version** (str) - Redis版本信息(详见DescribeURedisVersion返回结果),默认版本3.0 + + **Response** + + - **GroupId** (str) - 创建的组ID + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.CreateURedisGroupRequestSchema().dumps(d) + kwargs["max_retries"] = 0 + resp = self.invoke("CreateURedisGroup", d, **kwargs) + return apis.CreateURedisGroupResponseSchema().loads(resp)
+ +
[docs] def delete_umem_space(self, req=None, **kwargs): + """ DeleteUMemSpace - 删除UMem内存空间 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **SpaceId** (str) - (Required) UMem内存空间ID + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DeleteUMemSpaceRequestSchema().dumps(d) + resp = self.invoke("DeleteUMemSpace", d, **kwargs) + return apis.DeleteUMemSpaceResponseSchema().loads(resp)
+ +
[docs] def delete_umem_cache_group(self, req=None, **kwargs): + """ DeleteUMemcacheGroup - 删除单机Memcache + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **GroupId** (str) - (Required) 组ID + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DeleteUMemcacheGroupRequestSchema().dumps(d) + resp = self.invoke("DeleteUMemcacheGroup", d, **kwargs) + return apis.DeleteUMemcacheGroupResponseSchema().loads(resp)
+ +
[docs] def delete_uredis_group(self, req=None, **kwargs): + """ DeleteURedisGroup - 删除主备redis + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **GroupId** (str) - (Required) 组ID + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DeleteURedisGroupRequestSchema().dumps(d) + resp = self.invoke("DeleteURedisGroup", d, **kwargs) + return apis.DeleteURedisGroupResponseSchema().loads(resp)
+ +
[docs] def describe_umem_price(self, req=None, **kwargs): + """ DescribeUMemPrice - 获取UMem实例价格信息 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **Size** (int) - (Required) 购买umem大小,单位:GB,范围[1~1024] + - **Type** (str) - (Required) 空间类型:single(无热备),double(热备)(默认: double) + - **Zone** (str) - (Required) 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **ChargeType** (str) - Year, Month, Dynamic,Trial 如果不指定,则一次性获取三种计费 + - **Quantity** (int) - 购买UMem的时长,默认值为1 + - **RegionFlag** (bool) - + + **Response** + + - **DataSet** (list) - 见 **UMemPriceSet** 模型定义 + + **Response Model** + + **UMemPriceSet** + + - **ChargeType** (str) - Year, Month, Dynamic,Trial + - **Price** (float) - 价格,单位: 元,保留小数点后两位有效数字 + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DescribeUMemPriceRequestSchema().dumps(d) + resp = self.invoke("DescribeUMemPrice", d, **kwargs) + return apis.DescribeUMemPriceResponseSchema().loads(resp)
+ +
[docs] def describe_umem_space(self, req=None, **kwargs): + """ DescribeUMemSpace - 获取UMem内存空间列表 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **Limit** (int) - 返回数据长度, 默认为20 + - **Offset** (int) - 数据偏移量, 默认为0 + - **SpaceId** (str) - 内存空间ID (无ID,则获取所有) + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + - **DataSet** (list) - 见 **UMemSpaceSet** 模型定义 + - **TotalCount** (int) - 根据过滤条件得到的总数 + + **Response Model** + + **UMemSpaceAddressSet** + + - **IP** (str) - UMem实例访问IP + - **Port** (int) - UMem实例访问Port + + **UMemSpaceSet** + + - **Address** (list) - 见 **UMemSpaceAddressSet** 模型定义 + - **ChargeType** (str) - Year, Month, Dynamic, Trial + - **CreateTime** (int) - 创建时间 + - **ExpireTime** (int) - 到期时间 + - **Name** (str) - 内存空间名称 + - **Protocol** (str) - 协议类型: memcache, redis + - **RewriteTime** (int) - 运维时间0 //0点1 //1点依次类推 + - **Size** (int) - 容量单位GB + - **SpaceId** (str) - 内存空间ID + - **State** (str) - Starting:创建中 Running:运行中 Fail:失败 + - **SubnetId** (str) - + - **Tag** (str) - + - **Type** (str) - 空间类型:single(无热备),double(热备) + - **UsedSize** (int) - 使用量单位MB + - **VPCId** (str) - + - **Zone** (str) - 可用区,参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DescribeUMemSpaceRequestSchema().dumps(d) + resp = self.invoke("DescribeUMemSpace", d, **kwargs) + return apis.DescribeUMemSpaceResponseSchema().loads(resp)
+ +
[docs] def describe_umem_upgrade_price(self, req=None, **kwargs): + """ DescribeUMemUpgradePrice - 获取UMem升级价格信息 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **Size** (int) - (Required) 购买UMem大小,单位:GB + - **SpaceId** (str) - (Required) 需要升级的空间的SpaceId + - **Type** (str) - (Required) 空间类型:single(无热备),double(热备)(默认: double) + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + - **Price** (float) - 价格 + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DescribeUMemUpgradePriceRequestSchema().dumps(d) + resp = self.invoke("DescribeUMemUpgradePrice", d, **kwargs) + return apis.DescribeUMemUpgradePriceResponseSchema().loads(resp)
+ +
[docs] def describe_umem_cache_group(self, req=None, **kwargs): + """ DescribeUMemcacheGroup - 显示Memcache + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **GroupId** (str) - 组的ID,如果指定则获取描述,否则为列表操 作,需指定Offset/Limit + - **Limit** (int) - 分页显示的条目数, 默认值为20 + - **Offset** (int) - 分页显示的起始偏移, 默认值为0 + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + - **DataSet** (list) - 见 **UMemcacheGroupSet** 模型定义 + - **TotalCount** (int) - 组的总的节点个数 + + **Response Model** + + **UMemcacheGroupSet** + + - **ChargeType** (str) - 计费类型:Year,Month,Dynamic 默认Dynamic + - **ConfigId** (str) - 节点的配置ID + - **CreateTime** (int) - 创建时间 (UNIX时间戳) + - **ExpireTime** (int) - 过期时间 (UNIX时间戳) + - **GroupId** (str) - 组ID + - **ModifyTime** (int) - 修改时间 (UNIX时间戳) + - **Name** (str) - 组名称 + - **Port** (int) - 节点分配的服务端口 + - **Size** (int) - 容量单位GB + - **State** (str) - 状态标记 Creating // 初始化中 CreateFail // 创建失败 Deleting // 删除中 DeleteFail // 删除失败 Running // 运行 Resizing // 容量调整中 ResizeFail // 容量调整失败 Configing // 配置中 ConfigFail // 配置失败Restarting // 重启中 + - **SubnetId** (str) - + - **Tag** (str) - 业务组名称 + - **UsedSize** (int) - 使用量单位MB + - **VPCId** (str) - + - **Version** (str) - Memcache版本信息,默认为1.4.31 + - **VirtualIP** (str) - 节点的虚拟IP地址 + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DescribeUMemcacheGroupRequestSchema().dumps(d) + resp = self.invoke("DescribeUMemcacheGroup", d, **kwargs) + return apis.DescribeUMemcacheGroupResponseSchema().loads(resp)
+ +
[docs] def describe_umem_cache_price(self, req=None, **kwargs): + """ DescribeUMemcachePrice - 获取umemcache组价格信息 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **Size** (int) - (Required) 容量大小,单位:GB 取值范围[1-32] + - **Zone** (str) - (Required) 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **ChargeType** (str) - 计费模式,Year, Month, Dynamic,默认: Dynamic 默认: 获取所有计费模式的价格 + - **Quantity** (int) - 购买umemcache的时长,默认值为1 + - **Type** (str) - 空间类型:single(无热备),double(热备)(默认: double) + + **Response** + + - **DataSet** (list) - 见 **UMemcachePriceSet** 模型定义 + + **Response Model** + + **UMemcachePriceSet** + + - **ChargeType** (str) - 计费模式,Year, Month, Dynamic + - **Price** (float) - 价格,单位: 元,保留小数点后两位有效数字 + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DescribeUMemcachePriceRequestSchema().dumps(d) + resp = self.invoke("DescribeUMemcachePrice", d, **kwargs) + return apis.DescribeUMemcachePriceResponseSchema().loads(resp)
+ +
[docs] def describe_umem_cache_upgrade_price(self, req=None, **kwargs): + """ DescribeUMemcacheUpgradePrice - 获取umemcache升级价格信息 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **GroupId** (str) - (Required) 需要升级的空间的GroupId,请参考DescribeUMemcacheGroup接口 + - **Size** (int) - (Required) 购买umemcache大小,单位:GB + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + - **Price** (float) - 价格,单位:元 + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DescribeUMemcacheUpgradePriceRequestSchema().dumps(d) + resp = self.invoke("DescribeUMemcacheUpgradePrice", d, **kwargs) + return apis.DescribeUMemcacheUpgradePriceResponseSchema().loads(resp)
+ +
[docs] def describe_uredis_backup(self, req=None, **kwargs): + """ DescribeURedisBackup - 查询主备redis备份 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **GroupId** (str) - 组的ID + - **Limit** (int) - 分页显示的条目数, 默认值为10 + - **Offset** (int) - 分页显示的起始偏移, 默认值为0 + + **Response** + + - **DataSet** (list) - 见 **URedisBackupSet** 模型定义 + - **TotalCount** (int) - 用户名下总的备份个数 + + **Response Model** + + **URedisBackupSet** + + - **BackupId** (str) - 备份ID + - **BackupName** (str) - 备份的名称 + - **BackupSize** (int) - 备份文件大小, 以字节为单位 + - **BackupTime** (int) - 备份时间 (UNIX时间戳) + - **BackupType** (str) - 备份类型: Manual 手动 Auto 自动 + - **GroupId** (str) - 对应的实例ID + - **GroupName** (str) - 组名称 + - **State** (str) - 备份的状态: Backuping 备份中 Success 备份成功 Error 备份失败 Expired 备份过期 + - **Zone** (str) - 可用区,参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DescribeURedisBackupRequestSchema().dumps(d) + resp = self.invoke("DescribeURedisBackup", d, **kwargs) + return apis.DescribeURedisBackupResponseSchema().loads(resp)
+ +
[docs] def describe_uredis_backup_url(self, req=None, **kwargs): + """ DescribeURedisBackupURL - 获取主备Redis备份下载链接 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **BackupId** (str) - (Required) 备份ID + - **GroupId** (str) - (Required) + - **RegionFlag** (bool) - 是否是跨机房URedis(默认false) + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + - **BackupPath** (str) - 备份文件公网的地址 + - **BackupURL** (str) - 备份文件公网的地址 + - **InnerBackupPath** (str) - + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DescribeURedisBackupURLRequestSchema().dumps(d) + resp = self.invoke("DescribeURedisBackupURL", d, **kwargs) + return apis.DescribeURedisBackupURLResponseSchema().loads(resp)
+ +
[docs] def describe_uredis_group(self, req=None, **kwargs): + """ DescribeURedisGroup - 查询主备Redis + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **GroupId** (str) - 组的ID,如果指定则获取描述,否则为列表操 作,需指定Offset/Limit + - **Limit** (int) - 分页显示的条目数, 默认值为20 + - **Offset** (int) - 分页显示的起始偏移, 默认值为0 + - **Zone** (str) - + + **Response** + + - **DataSet** (list) - 见 **URedisGroupSet** 模型定义 + - **TotalCount** (int) - 组的总的节点个数 + + **Response Model** + + **URedisGroupSet** + + - **AutoBackup** (str) - 是否需要自动备份,enable,disable + - **BackupTime** (int) - 组自动备份开始时间,单位小时计,范围[0-23] + - **ChargeType** (str) - 计费类型:Year,Month,Dynamic 默认Dynamic + - **ConfigId** (str) - 节点的配置ID + - **CreateTime** (int) - 创建时间 (UNIX时间戳) + - **ExpireTime** (int) - 过期时间 (UNIX时间戳) + - **GroupId** (str) - 组ID + - **GroupName** (str) - 组名称 + - **HighAvailability** (str) - 是否开启高可用,enable,disable + - **MemorySize** (int) - 容量单位GB + - **ModifyTime** (int) - 修改时间 (UNIX时间戳) + - **Name** (str) - 组名称 + - **Port** (int) - 节点分配的服务端口 + - **Protocol** (str) - 协议 + - **RewriteTime** (int) - 返回运维时间 0 //0点 1 //1点 以此类推 + - **Size** (int) - 容量单位GB + - **SlaveZone** (str) - 跨机房URedis,slave redis所在可用区,参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **State** (str) - 状态标记 Creating // 初始化中 CreateFail // 创建失败 Deleting // 删除中 DeleteFail // 删除失败 Running // 运行 Resizing // 容量调整中 ResizeFail // 容量调整失败 Configing // 配置中 ConfigFail // 配置失败 + - **SubnetId** (str) - + - **Tag** (str) - 业务组名称 + - **Type** (str) - + - **UsedSize** (int) - 使用量单位MB + - **VPCId** (str) - + - **Version** (str) - Redis版本信息 + - **VirtualIP** (str) - 节点的虚拟IP地址 + - **Zone** (str) - 实例所在可用区,或者master redis所在可用区,参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DescribeURedisGroupRequestSchema().dumps(d) + resp = self.invoke("DescribeURedisGroup", d, **kwargs) + return apis.DescribeURedisGroupResponseSchema().loads(resp)
+ +
[docs] def describe_uredis_price(self, req=None, **kwargs): + """ DescribeURedisPrice - 取uredis价格信息 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **Size** (int) - (Required) 量大小,单位:GB 取值范围[1-32] + - **Zone** (str) - (Required) 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **ChargeType** (str) - 计费模式,Year, Month, Dynamic;如果不指定,则一次性获取三种计费 + - **ProductType** (str) - 产品类型:MS_Redis(标准主备版),S_Redis(从库),默认为MS_Redis + - **Quantity** (int) - 计费模式为Dynamic时,购买的时长, 默认为1 + - **RegionFlag** (bool) - 是否是跨机房URedis(默认false) + - **Type** (str) - + + **Response** + + - **DataSet** (list) - 见 **URedisPriceSet** 模型定义 + + **Response Model** + + **URedisPriceSet** + + - **ChargeType** (str) - Year, Month, Dynamic,Trial + - **Price** (float) - 价格,单位: 元,保留小数点后两位有效数字 + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DescribeURedisPriceRequestSchema().dumps(d) + resp = self.invoke("DescribeURedisPrice", d, **kwargs) + return apis.DescribeURedisPriceResponseSchema().loads(resp)
+ +
[docs] def describe_uredis_upgrade_price(self, req=None, **kwargs): + """ DescribeURedisUpgradePrice - 获取uredis升级价格信息 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **GroupId** (str) - (Required) 要升级的空间的GroupId,请参考DescribeURedisGroup接口 + - **Size** (int) - (Required) 购买uredis大小,单位:GB,范围是[1-32] + - **Type** (str) - + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + - **Price** (float) - 扩容差价,单位: 元,保留小数点后两位有效数字 + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DescribeURedisUpgradePriceRequestSchema().dumps(d) + resp = self.invoke("DescribeURedisUpgradePrice", d, **kwargs) + return apis.DescribeURedisUpgradePriceResponseSchema().loads(resp)
+ +
[docs] def get_umem_space_state(self, req=None, **kwargs): + """ GetUMemSpaceState - 获取UMem内存空间列表 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **SpaceId** (str) - (Required) 内存空间ID + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + - **State** (str) - Starting:创建中 Running:运行中 Fail:失败 + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.GetUMemSpaceStateRequestSchema().dumps(d) + resp = self.invoke("GetUMemSpaceState", d, **kwargs) + return apis.GetUMemSpaceStateResponseSchema().loads(resp)
+ +
[docs] def modify_umem_space_name(self, req=None, **kwargs): + """ ModifyUMemSpaceName - 修改UMem内存空间名称 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **Name** (str) - (Required) 新的名称,长度(6<=size<=63) + - **SpaceId** (str) - (Required) UMem内存空间ID + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.ModifyUMemSpaceNameRequestSchema().dumps(d) + resp = self.invoke("ModifyUMemSpaceName", d, **kwargs) + return apis.ModifyUMemSpaceNameResponseSchema().loads(resp)
+ +
[docs] def modify_uredis_group_name(self, req=None, **kwargs): + """ ModifyURedisGroupName - 修改主备redis名称 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **GroupId** (str) - (Required) 组的ID + - **Name** (str) - (Required) Redis组名称 (范围[6-63],只能包含英文、数字以及符号-和_) + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.ModifyURedisGroupNameRequestSchema().dumps(d) + resp = self.invoke("ModifyURedisGroupName", d, **kwargs) + return apis.ModifyURedisGroupNameResponseSchema().loads(resp)
+ +
[docs] def resize_udredis_space(self, req=None, **kwargs): + """ ResizeUDredisSpace - 调整内存空间容量 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **Size** (int) - (Required) 内存大小, 单位:GB (需要大于原size,<= 1024) + - **SpaceId** (str) - (Required) 高性能UMem 内存空间Id + - **CouponId** (str) - 使用的代金券Id + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.ResizeUDredisSpaceRequestSchema().dumps(d) + resp = self.invoke("ResizeUDredisSpace", d, **kwargs) + return apis.ResizeUDredisSpaceResponseSchema().loads(resp)
+ +
[docs] def resize_umem_space(self, req=None, **kwargs): + """ ResizeUMemSpace - 调整内存空间容量 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **Size** (int) - (Required) 内存大小, 单位:GB (需要大于原size,<= 1024) + - **SpaceId** (str) - (Required) UMem 内存空间Id + - **ChargeType** (str) - + - **CouponId** (str) - 使用的代金券Id + - **Type** (str) - 空间类型:single(无热备),double(热备)(默认: double) + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.ResizeUMemSpaceRequestSchema().dumps(d) + resp = self.invoke("ResizeUMemSpace", d, **kwargs) + return apis.ResizeUMemSpaceResponseSchema().loads(resp)
+ +
[docs] def resize_uredis_group(self, req=None, **kwargs): + """ ResizeURedisGroup - 调整主备redis容量 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **GroupId** (str) - (Required) 组ID + - **Size** (int) - (Required) 内存大小, 单位:GB (需要大于原size,且小于等于32) 目前仅支持1/2/4/8/16/32 G 六种容量规格 + - **ChargeType** (str) - + - **CouponId** (int) - 代金券ID 请参考DescribeCoupon接口 + - **Type** (str) - 空间类型:single(无热备),double(热备)(默认: double) + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.ResizeURedisGroupRequestSchema().dumps(d) + resp = self.invoke("ResizeURedisGroup", d, **kwargs) + return apis.ResizeURedisGroupResponseSchema().loads(resp)
+ +
[docs] def restart_umem_cache_group(self, req=None, **kwargs): + """ RestartUMemcacheGroup - 重启单机Memcache + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **GroupId** (str) - (Required) 组的ID + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.RestartUMemcacheGroupRequestSchema().dumps(d) + resp = self.invoke("RestartUMemcacheGroup", d, **kwargs) + return apis.RestartUMemcacheGroupResponseSchema().loads(resp)
+
+ +
+ +
+
+ +
+
+ + + + + + + \ No newline at end of file diff --git a/_modules/ucloud/services/unet/client.html b/_modules/ucloud/services/unet/client.html new file mode 100644 index 0000000..5975130 --- /dev/null +++ b/_modules/ucloud/services/unet/client.html @@ -0,0 +1,1029 @@ + + + + + + + + ucloud.services.unet.client — ucloud-sdk-python2 documentation + + + + + + + + + + + + + + + + + + +
+
+
+ + +
+ +

Source code for ucloud.services.unet.client

+# -*- coding: utf-8 -*-
+
+""" Code is generated by ucloud-model, DO NOT EDIT IT. """
+from ucloud.core.client import Client
+from ucloud.services.unet.schemas import apis
+
+
+
[docs]class UNetClient(Client): + def __init__(self, config, transport=None, middleware=None, logger=None): + super(UNetClient, self).__init__(config, transport, middleware, logger) + +
[docs] def allocate_eip(self, req=None, **kwargs): + """ AllocateEIP - 根据提供信息, 申请弹性IP + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 + - **Region** (str) - (Config) 地域。 + - **Bandwidth** (int) - (Required) 弹性IP的外网带宽, 单位为Mbps. 共享带宽模式必须指定0M带宽, 非共享带宽模式必须指定非0Mbps带宽. 各地域非共享带宽的带宽范围如下: 流量计费[1-200],带宽计费[1-800] + - **OperatorName** (str) - (Required) 弹性IP的线路如下: 国际: International BGP: Bgp 各地域允许的线路参数如下: cn-sh1: Bgp cn-sh2: Bgp cn-gd: Bgp cn-bj1: Bgp cn-bj2: Bgp hk: International us-ca: International th-bkk: International kr-seoul:International us-ws:International ge-fra:International sg:International tw-kh:International.其他海外线路均为 International + - **ChargeType** (str) - 付费方式, 枚举值为: Year, 按年付费; Month, 按月付费; Dynamic, 按需付费(需开启权限); Trial, 试用(需开启权限) 默认为按月付费 + - **CouponId** (str) - 代金券ID, 默认不使用 + - **Name** (str) - 弹性IP的名称, 默认为 "EIP" + - **PayMode** (str) - 弹性IP的计费模式. 枚举值: "Traffic", 流量计费; "Bandwidth", 带宽计费; "ShareBandwidth",共享带宽模式. 默认为 "Bandwidth". + - **Quantity** (int) - 购买时长, 默认: 1 + - **Remark** (str) - 弹性IP的备注, 默认为空 + - **ShareBandwidthId** (str) - 绑定的共享带宽Id,仅当PayMode为ShareBandwidth时有效 + - **Tag** (str) - 业务组名称, 默认为 "Default" + + **Response** + + - **EIPSet** (list) - 见 **UnetAllocateEIPSet** 模型定义 + + **Response Model** + + **UnetEIPAddrSet** + + - **IP** (str) - IP地址 + - **OperatorName** (str) - 运营商信息如: 电信: Telecom, 联通: Unicom, 国际: International, Duplet: 双线IP(电信+联通), BGP: Bgp + + **UnetAllocateEIPSet** + + - **EIPAddr** (list) - 见 **UnetEIPAddrSet** 模型定义 + - **EIPId** (str) - 申请到的EIP资源ID + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.AllocateEIPRequestSchema().dumps(d) + kwargs["max_retries"] = 0 + resp = self.invoke("AllocateEIP", d, **kwargs) + return apis.AllocateEIPResponseSchema().loads(resp)
+ +
[docs] def allocate_share_bandwidth(self, req=None, **kwargs): + """ AllocateShareBandwidth - 开通共享带宽 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **ChargeType** (str) - (Required) 付费方式:Year 按年,Month 按月,Dynamic 按时; + - **Name** (str) - (Required) 共享带宽名字 + - **ShareBandwidth** (int) - (Required) 共享带宽值 + - **BwType** (str) - 共享带宽类型,ipv4或者ipv6,不传默认ipv4 + - **Quantity** (int) - 购买时长 + - **ShareBandwidthGuarantee** (int) - 共享带宽保底值(后付费) + + **Response** + + - **ShareBandwidthId** (str) - 共享带宽资源Id + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.AllocateShareBandwidthRequestSchema().dumps(d) + kwargs["max_retries"] = 0 + resp = self.invoke("AllocateShareBandwidth", d, **kwargs) + return apis.AllocateShareBandwidthResponseSchema().loads(resp)
+ +
[docs] def allocate_vip(self, req=None, **kwargs): + """ AllocateVIP - 根据提供信息,申请内网VIP(Virtual IP),多用于高可用程序作为漂移IP。 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域 + - **SubnetId** (str) - (Required) 子网id + - **VPCId** (str) - (Required) 指定vip所属的VPC + - **BusinessId** (str) - 业务组 + - **Count** (int) - 申请数量,默认: 1 + - **Ip** (str) - 指定ip + - **Name** (str) - vip名,默认为VIP + - **Remark** (str) - 备注 + - **Tag** (str) - 业务组名称,默认为Default + - **Zone** (str) - 可用区 + + **Response** + + - **DataSet** (list) - 申请到的VIP地址 + - **VIPSet** (list) - 见 **VIPSet** 模型定义 + + **Response Model** + + **VIPSet** + + - **VIP** (str) - 虚拟ip + - **VIPId** (str) - 虚拟ip id + - **VPCId** (str) - VPC id + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.AllocateVIPRequestSchema().dumps(d) + kwargs["max_retries"] = 0 + resp = self.invoke("AllocateVIP", d, **kwargs) + return apis.AllocateVIPResponseSchema().loads(resp)
+ +
[docs] def associate_eip_with_share_bandwidth(self, req=None, **kwargs): + """ AssociateEIPWithShareBandwidth - 将EIP加入共享带宽 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 + - **Region** (str) - (Config) 地域。 + - **EIPIds** (list) - (Required) 要加入共享带宽的EIP的资源Id + - **ShareBandwidthId** (str) - (Required) 共享带宽ID + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.AssociateEIPWithShareBandwidthRequestSchema().dumps(d) + resp = self.invoke("AssociateEIPWithShareBandwidth", d, **kwargs) + return apis.AssociateEIPWithShareBandwidthResponseSchema().loads(resp)
+ +
[docs] def bind_eip(self, req=None, **kwargs): + """ BindEIP - 将尚未使用的弹性IP绑定到指定的资源 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写 + - **Region** (str) - (Config) 地域 + - **EIPId** (str) - (Required) 弹性IP的资源Id + - **ResourceId** (str) - (Required) 弹性IP请求绑定的资源ID + - **ResourceType** (str) - (Required) 弹性IP请求绑定的资源类型, 枚举值为: uhost: 云主机; ulb, 负载均衡器 upm: 物理机; hadoophost: 大数据集群;fortresshost:堡垒机;udockhost:容器;udhost:私有专区主机;natgw:natgw;udb:udb;vpngw:ipsec vpn;ucdr:云灾备;dbaudit:数据库审计;uni:虚拟网卡。 + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.BindEIPRequestSchema().dumps(d) + resp = self.invoke("BindEIP", d, **kwargs) + return apis.BindEIPResponseSchema().loads(resp)
+ +
[docs] def create_bandwidth_package(self, req=None, **kwargs): + """ CreateBandwidthPackage - 为非共享带宽模式下, 已绑定资源实例的带宽计费弹性IP附加临时带宽包 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 + - **Region** (str) - (Config) 地域 + - **Bandwidth** (int) - (Required) 带宽大小(单位Mbps), 取值范围[2,800] (最大值受地域限制) + - **EIPId** (str) - (Required) 所绑定弹性IP的资源ID + - **TimeRange** (int) - (Required) 带宽包有效时长, 取值范围为大于0的整数, 即该带宽包在EnableTime到 EnableTime+TimeRange时间段内生效 + - **CouponId** (str) - 代金券ID + - **EnableTime** (int) - 生效时间, 格式为 Unix timestamp, 默认为立即开通 + + **Response** + + - **BandwidthPackageId** (str) - 所创建带宽包的资源ID + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.CreateBandwidthPackageRequestSchema().dumps(d) + kwargs["max_retries"] = 0 + resp = self.invoke("CreateBandwidthPackage", d, **kwargs) + return apis.CreateBandwidthPackageResponseSchema().loads(resp)
+ +
[docs] def create_firewall(self, req=None, **kwargs): + """ CreateFirewall - 创建防火墙 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写 + - **Region** (str) - (Config) 地域 + - **Name** (str) - (Required) 防火墙名称 + - **Rule** (list) - (Required) 防火墙规则,例如:TCP|22|192.168.1.1/22|DROP|LOW|禁用22端口,第一个参数代表协议:第二个参数代表端口号,第三个参数为ip,第四个参数为ACCEPT(接受)和DROP(拒绝),第五个参数优先级:HIGH(高),MEDIUM(中),LOW(低),第六个参数为该条规则的自定义备注 + - **Remark** (str) - 防火墙描述,默认为空 + - **Tag** (str) - 防火墙业务组,默认为Default + + **Response** + + - **FWId** (str) - 防火墙ID + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.CreateFirewallRequestSchema().dumps(d) + kwargs["max_retries"] = 0 + resp = self.invoke("CreateFirewall", d, **kwargs) + return apis.CreateFirewallResponseSchema().loads(resp)
+ +
[docs] def delete_bandwidth_package(self, req=None, **kwargs): + """ DeleteBandwidthPackage - 删除弹性IP上已附加带宽包 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写 + - **Region** (str) - (Config) 地域 + - **BandwidthPackageId** (str) - (Required) 带宽包资源ID + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DeleteBandwidthPackageRequestSchema().dumps(d) + resp = self.invoke("DeleteBandwidthPackage", d, **kwargs) + return apis.DeleteBandwidthPackageResponseSchema().loads(resp)
+ +
[docs] def delete_firewall(self, req=None, **kwargs): + """ DeleteFirewall - 删除防火墙 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写 + - **Region** (str) - (Config) 地域 + - **FWId** (str) - (Required) 防火墙资源ID + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DeleteFirewallRequestSchema().dumps(d) + resp = self.invoke("DeleteFirewall", d, **kwargs) + return apis.DeleteFirewallResponseSchema().loads(resp)
+ +
[docs] def describe_bandwidth_package(self, req=None, **kwargs): + """ DescribeBandwidthPackage - 获取某地域下的带宽包信息 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **Limit** (int) - 返回数据分页值, 取值范围为 [0,10000000] 之间的整数, 默认为20 + - **Offset** (int) - 返回数据偏移量, 默认为0 + + **Response** + + - **DataSets** (list) - 见 **UnetBandwidthPackageSet** 模型定义 + - **TotalCount** (int) - 满足条件的带宽包总数 + + **Response Model** + + **EIPAddrSet** + + - **IP** (str) - 弹性IP地址 + - **OperatorName** (str) - 运营商信息, 枚举值为: Telecom 电信; Unicom: 联通; Duplet: 双线; Bgp: BGP; International: 国际. + + **UnetBandwidthPackageSet** + + - **Bandwidth** (int) - 带宽包的临时带宽值, 单位Mbps + - **BandwidthPackageId** (str) - 带宽包的资源ID + - **CreateTime** (int) - 创建时间, 格式为 Unix Timestamp + - **DisableTime** (int) - 失效时间, 格式为 Unix Timestamp + - **EIPAddr** (list) - 见 **EIPAddrSet** 模型定义 + - **EIPId** (str) - 带宽包所绑定弹性IP的资源ID + - **EnableTime** (int) - 生效时间, 格式为 Unix Timestamp + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DescribeBandwidthPackageRequestSchema().dumps(d) + resp = self.invoke("DescribeBandwidthPackage", d, **kwargs) + return apis.DescribeBandwidthPackageResponseSchema().loads(resp)
+ +
[docs] def describe_bandwidth_usage(self, req=None, **kwargs): + """ DescribeBandwidthUsage - 获取带宽用量信息 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **EIPIds** (list) - 弹性IP的资源Id. 如果为空, 则返回当前 Region中符合条件的所有EIP的带宽用量, n为自然数 + - **Limit** (int) - 返回数据分页值, 取值范围为 [0,10000000] 之间的整数, 默认为20 + - **OffSet** (int) - 返回数据偏移量, 默认为0 + + **Response** + + - **EIPSet** (list) - 见 **UnetBandwidthUsageEIPSet** 模型定义 + - **TotalCount** (int) - EIPSet中的元素个数 + + **Response Model** + + **UnetBandwidthUsageEIPSet** + + - **CurBandwidth** (float) - 最近5分钟带宽用量, 单位Mbps + - **EIPId** (str) - 弹性IP资源ID + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DescribeBandwidthUsageRequestSchema().dumps(d) + resp = self.invoke("DescribeBandwidthUsage", d, **kwargs) + return apis.DescribeBandwidthUsageResponseSchema().loads(resp)
+ +
[docs] def describe_eip(self, req=None, **kwargs): + """ DescribeEIP - 获取弹性IP信息 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写 + - **Region** (str) - (Config) 地域 + - **EIPIds** (list) - 弹性IP的资源ID如果为空, 则返回当前 Region中符合条件的的所有EIP + - **Limit** (int) - 数据分页值, 默认为20 + - **Offset** (int) - 数据偏移量, 默认为0 + + **Response** + + - **EIPSet** (list) - 见 **UnetEIPSet** 模型定义 + - **TotalBandwidth** (int) - 满足条件的弹性IP带宽总和, 单位Mbps + - **TotalCount** (int) - 满足条件的弹性IP总数 + + **Response Model** + + **ShareBandwidthSet** + + - **ShareBandwidth** (int) - 共享带宽带宽值 + - **ShareBandwidthId** (str) - 共享带宽ID + - **ShareBandwidthName** (str) - 共享带宽的资源名称 + + **UnetEIPAddrSet** + + - **IP** (str) - IP地址 + - **OperatorName** (str) - 运营商信息如: 电信: Telecom, 联通: Unicom, 国际: International, Duplet: 双线IP(电信+联通), BGP: Bgp + + **UnetEIPResourceSet** + + - **EIPId** (str) - 弹性IP的资源ID + - **ResourceId** (str) - 已绑定资源的资源ID + - **ResourceName** (str) - 已绑定的资源名称 + - **ResourceType** (str) - 已绑定的资源类型, 枚举值为: uhost, 云主机;natgw:NAT网关;ulb:负载均衡器;upm: 物理机; hadoophost: 大数据集群;fortresshost:堡垒机;udockhost:容器;udhost:私有专区主机;vpngw:IPSec VPN;ucdr:云灾备;dbaudit:数据库审计,uni:虚拟网卡。 + - **SubResourceId** (str) - 资源绑定的虚拟网卡的ID + - **SubResourceName** (str) - 资源绑定的虚拟网卡的名称 + - **SubResourceType** (str) - 资源绑定的虚拟网卡的类型。uni,虚拟网卡。 + + **UnetEIPSet** + + - **Bandwidth** (int) - 弹性IP的带宽, 单位为Mbps, 当BandwidthType=1时, 该处显示为共享带宽值. 当BandwidthType=0时, 该处显示这个弹性IP的带宽. + - **BandwidthType** (int) - 带宽模式, 枚举值为: 0: 非共享带宽模式, 1: 共享带宽模式 + - **ChargeType** (str) - 付费方式, 枚举值为: Year, 按年付费; Month, 按月付费; Dynamic, 按小时付费; Trial, 试用. 按小时付费和试用这两种付费模式需要开通权限. + - **CreateTime** (int) - 弹性IP的创建时间, 格式为Unix Timestamp + - **EIPAddr** (list) - 见 **UnetEIPAddrSet** 模型定义 + - **EIPId** (str) - 弹性IP的资源ID + - **Expire** (bool) - 弹性IP是否到期 + - **ExpireTime** (int) - 弹性IP的到期时间, 格式为Unix Timestamp + - **Name** (str) - 弹性IP的名称,缺省值为 "EIP" + - **PayMode** (str) - 弹性IP的计费模式, 枚举值为: "Bandwidth", 带宽计费; "Traffic", 流量计费; "ShareBandwidth",共享带宽模式. 默认为 "Bandwidth". + - **Remark** (str) - 弹性IP的备注, 缺省值为 "" + - **Resource** (dict) - 见 **UnetEIPResourceSet** 模型定义 + - **ShareBandwidthSet** (dict) - 见 **ShareBandwidthSet** 模型定义 + - **Status** (str) - 弹性IP的资源绑定状态, 枚举值为: used: 已绑定, free: 未绑定, freeze: 已冻结 + - **Tag** (str) - 弹性IP的业务组标识, 缺省值为 "Default" + - **Weight** (int) - 外网出口权重, 默认为50, 范围[0-100] + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DescribeEIPRequestSchema().dumps(d) + resp = self.invoke("DescribeEIP", d, **kwargs) + return apis.DescribeEIPResponseSchema().loads(resp)
+ +
[docs] def describe_firewall(self, req=None, **kwargs): + """ DescribeFirewall - 获取防火墙组信息 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写 + - **Region** (str) - (Config) 地域 + - **FWId** (str) - 防火墙ID,默认为返回所有防火墙 + - **Limit** (int) - 返回数据长度,默认为20,最大10000000 + - **Offset** (int) - 列表起始位置偏移量,默认为0 + - **ResourceId** (str) - 绑定防火墙组的资源ID + - **ResourceType** (str) - 绑定防火墙组的资源类型,默认为全部资源类型。枚举值为:"unatgw",NAT网关; "uhost",云主机; "upm",物理云主机; "hadoophost",hadoop节点; "fortresshost",堡垒机; "udhost",私有专区主机;"udockhost",容器;"dbaudit",数据库审计. + + **Response** + + - **DataSet** (list) - 见 **FirewallDataSet** 模型定义 + - **TotalCount** (int) - + + **Response Model** + + **FirewallRuleSet** + + - **DstPort** (str) - 目标端口 + - **Priority** (str) - 优先级 + - **ProtocolType** (str) - 协议类型 + - **Remark** (str) - 防火墙规则备注 + - **RuleAction** (str) - 防火墙动作 + - **SrcIP** (str) - 源地址 + + **FirewallDataSet** + + - **CreateTime** (int) - 防火墙组创建时间,格式为Unix Timestamp + - **FWId** (str) - 防火墙ID + - **GroupId** (str) - 安全组ID(即将废弃) + - **Name** (str) - 防火墙名称 + - **Remark** (str) - 防火墙备注 + - **ResourceCount** (int) - 防火墙绑定资源数量 + - **Rule** (list) - 见 **FirewallRuleSet** 模型定义 + - **Tag** (str) - 防火墙业务组 + - **Type** (str) - 防火墙组类型,枚举值为: "user defined", 用户自定义防火墙; "recommend web", 默认Web防火墙; "recommend non web", 默认非Web防火墙 + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DescribeFirewallRequestSchema().dumps(d) + resp = self.invoke("DescribeFirewall", d, **kwargs) + return apis.DescribeFirewallResponseSchema().loads(resp)
+ +
[docs] def describe_firewall_resource(self, req=None, **kwargs): + """ DescribeFirewallResource - 获取防火墙组所绑定资源的外网IP + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **FWId** (str) - (Required) 防火墙ID + - **Limit** (int) - 返回数据长度,默认为20,最大10000000 + - **Offset** (int) - 列表起始位置偏移量,默认为0 + + **Response** + + - **ResourceSet** (list) - 见 **ResourceSet** 模型定义 + - **TotalCount** (int) - 绑定资源总数 + + **Response Model** + + **ResourceSet** + + - **Name** (str) - 名称 + - **PrivateIP** (str) - 内网IP + - **Remark** (str) - 备注 + - **ResourceID** (str) - 绑定该防火墙的资源id + - **ResourceType** (str) - 绑定资源的资源类型,如"uhost","upm","umem","uhive","uvip","uredis","uhadoop","ufortress","dbaudit","udw","udocker", "umemcache" + - **Status** (int) - 状态 + - **Tag** (str) - 业务组 + - **Zone** (int) - 可用区 + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DescribeFirewallResourceRequestSchema().dumps(d) + resp = self.invoke("DescribeFirewallResource", d, **kwargs) + return apis.DescribeFirewallResourceResponseSchema().loads(resp)
+ +
[docs] def describe_share_bandwidth(self, req=None, **kwargs): + """ DescribeShareBandwidth - 获取共享带宽信息 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **ShareBandwidthIds** (list) - 需要返回的共享带宽Id + + **Response** + + - **DataSet** (list) - 见 **UnetShareBandwidthSet** 模型定义 + - **TotalCount** (int) - 符合条件的共享带宽总数,大于等于返回DataSet长度 + + **Response Model** + + **EIPAddrSet** + + - **IP** (str) - 弹性IP地址 + - **OperatorName** (str) - 运营商信息, 枚举值为: Telecom 电信; Unicom: 联通; Duplet: 双线; Bgp: BGP; International: 国际. + + **EIPSetData** + + - **Bandwidth** (int) - EIP带宽值 + - **EIPAddr** (list) - 见 **EIPAddrSet** 模型定义 + - **EIPId** (str) - EIP资源Id + + **UnetShareBandwidthSet** + + - **BandwidthGuarantee** (int) - 共享带宽保底值(后付费) + - **ChargeType** (str) - 付费方式, 预付费:Year 按年,Month 按月,Dynamic 按需;后付费:PostPay(按月) + - **CreateTime** (int) - 创建时间, 格式为Unix Timestamp + - **EIPSet** (list) - 见 **EIPSetData** 模型定义 + - **ExpireTime** (int) - 过期时间, 格式为Unix Timestamp + - **Name** (str) - 共享带宽名称 + - **PostPayStartTime** (int) - 共享带宽后付费开始计费时间(后付费) + - **ShareBandwidth** (int) - 共享带宽值(预付费)/共享带宽峰值(后付费), 单位Mbps + - **ShareBandwidthId** (str) - 共享带宽的资源ID + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DescribeShareBandwidthRequestSchema().dumps(d) + resp = self.invoke("DescribeShareBandwidth", d, **kwargs) + return apis.DescribeShareBandwidthResponseSchema().loads(resp)
+ +
[docs] def describe_vip(self, req=None, **kwargs): + """ DescribeVIP - 获取内网VIP详细信息 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **BusinessId** (str) - 业务组 + - **SubnetId** (str) - 子网id,不指定则获取VPCId下的所有vip + - **Tag** (str) - 业务组名称, 默认为 Default + - **VPCId** (str) - vpc的id,指定SubnetId时必填 + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + - **DataSet** (list) - 内网VIP地址列表 + - **TotalCount** (int) - vip数量 + - **VIPSet** (list) - 见 **VIPDetailSet** 模型定义 + + **Response Model** + + **VIPDetailSet** + + - **CreateTime** (int) - 创建时间 + - **Name** (str) - + - **RealIp** (str) - 真实主机ip + - **SubnetId** (str) - 子网id + - **VIP** (str) - 虚拟ip + - **VIPId** (str) - 虚拟ip id + - **VPCId** (str) - VPC id + - **Zone** (str) - 地域 + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DescribeVIPRequestSchema().dumps(d) + resp = self.invoke("DescribeVIP", d, **kwargs) + return apis.DescribeVIPResponseSchema().loads(resp)
+ +
[docs] def disassociate_eip_with_share_bandwidth(self, req=None, **kwargs): + """ DisassociateEIPWithShareBandwidth - 将EIP移出共享带宽 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **Bandwidth** (int) - (Required) 移出共享带宽后,EIP的外网带宽, 单位为Mbps. 各地域带宽范围如下: 流量计费[1-200],带宽计费[1-800] + - **ShareBandwidthId** (str) - (Required) 共享带宽ID + - **EIPIds** (list) - EIP的资源Id;默认移出该共享带宽下所有的EIP + - **PayMode** (str) - 移出共享带宽后,EIP的计费模式. 枚举值: "Traffic", 流量计费; "Bandwidth", 带宽计费; 默认为 "Bandwidth". + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DisassociateEIPWithShareBandwidthRequestSchema().dumps(d) + resp = self.invoke("DisassociateEIPWithShareBandwidth", d, **kwargs) + return apis.DisassociateEIPWithShareBandwidthResponseSchema().loads(resp)
+ +
[docs] def get_eip_pay_mode(self, req=None, **kwargs): + """ GetEIPPayMode - 获取弹性IP计费模式 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写 + - **Region** (str) - (Config) 地域 + - **EIPId** (list) - (Required) 弹性IP的资源Id + + **Response** + + - **EIPPayMode** (list) - 见 **EIPPayModeSet** 模型定义 + + **Response Model** + + **EIPPayModeSet** + + - **EIPId** (str) - EIP的资源ID + - **EIPPayMode** (str) - EIP的计费模式. 枚举值为:Bandwidth, 带宽计费;Traffic, 流量计费; "ShareBandwidth",共享带宽模式 + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.GetEIPPayModeRequestSchema().dumps(d) + resp = self.invoke("GetEIPPayMode", d, **kwargs) + return apis.GetEIPPayModeResponseSchema().loads(resp)
+ +
[docs] def get_eip_price(self, req=None, **kwargs): + """ GetEIPPrice - 获取弹性IP价格 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **Bandwidth** (int) - (Required) 弹性IP的外网带宽, 单位为Mbps, 范围 [0-800] + - **OperatorName** (str) - (Required) 弹性IP的线路如下: 国际: International BGP: Bgp 各地域允许的线路参数如下: cn-sh1: Bgp cn-sh2: Bgp cn-gd: Bgp cn-bj1: Bgp cn-bj2: Bgp hk: International us-ca: International th-bkk: International kr-seoul:International us-ws:International ge-fra:International sg:International tw-kh:International.其他海外线路均为 International,泉州为移动单线cn-qz:ChinaMobile + - **ChargeType** (str) - 付费方式, 枚举值为: Year, 按年付费; Month, 按月付费; Dynamic, 按时付费; 默认为获取三种价格 + - **PayMode** (str) - 弹性IP计费方式r. 枚举值为: Traffic, 流量计费; Bandwidth, 带宽计费; "ShareBandwidth",共享带宽模式. 默认为Bandwidth + - **Quantity** (int) - 购买时长。默认: 1。按小时购买(Dynamic)时无需此参数。 月付时,此参数传0,代表了购买至月末 + + **Response** + + - **PriceSet** (list) - 见 **EIPPriceDetailSet** 模型定义 + + **Response Model** + + **EIPPriceDetailSet** + + - **ChargeType** (str) - 弹性IP付费方式 + - **Price** (float) - 弹性IP价格, 单位"元" + - **PurchaseValue** (int) - 资源有效期, 以Unix Timestamp表示 + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.GetEIPPriceRequestSchema().dumps(d) + resp = self.invoke("GetEIPPrice", d, **kwargs) + return apis.GetEIPPriceResponseSchema().loads(resp)
+ +
[docs] def get_eip_upgrade_price(self, req=None, **kwargs): + """ GetEIPUpgradePrice - 获取弹性IP带宽改动价格 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **Bandwidth** (int) - (Required) 弹性IP的外网带宽, 单位为Mbps, 范围 [1-800] + - **EIPId** (str) - (Required) 弹性IP的资源ID + + **Response** + + - **Price** (float) - 调整带宽后的EIP价格, 单位为"元", 如需退费此处为负值 + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.GetEIPUpgradePriceRequestSchema().dumps(d) + resp = self.invoke("GetEIPUpgradePrice", d, **kwargs) + return apis.GetEIPUpgradePriceResponseSchema().loads(resp)
+ +
[docs] def grant_firewall(self, req=None, **kwargs): + """ GrantFirewall - 将防火墙应用到资源上 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **FWId** (str) - (Required) 防火墙资源ID + - **ResourceId** (str) - (Required) 所应用资源ID + - **ResourceType** (str) - (Required) 绑定防火墙组的资源类型,默认为全部资源类型。枚举值为:"unatgw",NAT网关; "uhost",云主机; "upm",物理云主机; "hadoophost",hadoop节点; "fortresshost",堡垒机; "udhost",私有专区主机;"udockhost",容器;"dbaudit",数据库审计,”uni“,虚拟网卡。 + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.GrantFirewallRequestSchema().dumps(d) + resp = self.invoke("GrantFirewall", d, **kwargs) + return apis.GrantFirewallResponseSchema().loads(resp)
+ +
[docs] def modify_eip_bandwidth(self, req=None, **kwargs): + """ ModifyEIPBandwidth - 调整弹性IP的外网带宽 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **Bandwidth** (int) - (Required) 弹性IP的外网带宽, 单位为Mbps. 各地域的带宽值范围如下:流量计费[1-200],带宽计费[1-800] + - **EIPId** (str) - (Required) 弹性IP的资源ID + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.ModifyEIPBandwidthRequestSchema().dumps(d) + resp = self.invoke("ModifyEIPBandwidth", d, **kwargs) + return apis.ModifyEIPBandwidthResponseSchema().loads(resp)
+ +
[docs] def modify_eip_weight(self, req=None, **kwargs): + """ ModifyEIPWeight - 修改弹性IP的外网出口权重 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **EIPId** (str) - (Required) 弹性IP的资源ID + - **Weight** (int) - (Required) 外网出口权重, 范围[0-100] 取值为0时, 该弹性IP不会被使用. 取值为100时, 同主机下只会使用这个弹性IP,其他弹性IP不会被使用 请勿将多个绑定在同一资源的弹性IP设置为相同权重 + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.ModifyEIPWeightRequestSchema().dumps(d) + resp = self.invoke("ModifyEIPWeight", d, **kwargs) + return apis.ModifyEIPWeightResponseSchema().loads(resp)
+ +
[docs] def release_eip(self, req=None, **kwargs): + """ ReleaseEIP - 释放弹性IP资源, 所释放弹性IP必须为非绑定状态. + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **EIPId** (str) - (Required) 弹性IP的资源ID + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.ReleaseEIPRequestSchema().dumps(d) + resp = self.invoke("ReleaseEIP", d, **kwargs) + return apis.ReleaseEIPResponseSchema().loads(resp)
+ +
[docs] def release_share_bandwidth(self, req=None, **kwargs): + """ ReleaseShareBandwidth - 关闭共享带宽 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **EIPBandwidth** (int) - (Required) 关闭共享带宽后,各EIP恢复为的带宽值 + - **ShareBandwidthId** (str) - (Required) 共享带宽ID + - **PayMode** (str) - Bandwidth 带宽计费, Traffic 转流量计费 + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.ReleaseShareBandwidthRequestSchema().dumps(d) + resp = self.invoke("ReleaseShareBandwidth", d, **kwargs) + return apis.ReleaseShareBandwidthResponseSchema().loads(resp)
+ +
[docs] def release_vip(self, req=None, **kwargs): + """ ReleaseVIP - 释放VIP资源 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写 + - **Region** (str) - (Config) 地域 + - **VIPId** (str) - (Required) 内网VIP的id + - **Zone** (str) - 可用区 + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.ReleaseVIPRequestSchema().dumps(d) + resp = self.invoke("ReleaseVIP", d, **kwargs) + return apis.ReleaseVIPResponseSchema().loads(resp)
+ +
[docs] def resize_share_bandwidth(self, req=None, **kwargs): + """ ResizeShareBandwidth - 调整共享带宽的带宽值 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **ShareBandwidth** (int) - (Required) 带宽值,单位为Mb,范围 [20-5000] (最大值受地域限制) + - **ShareBandwidthId** (str) - (Required) 共享带宽的Id + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.ResizeShareBandwidthRequestSchema().dumps(d) + resp = self.invoke("ResizeShareBandwidth", d, **kwargs) + return apis.ResizeShareBandwidthResponseSchema().loads(resp)
+ +
[docs] def set_eip_pay_mode(self, req=None, **kwargs): + """ SetEIPPayMode - 设置弹性IP计费模式, 切换时会涉及付费/退费. + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **Bandwidth** (int) - (Required) 调整的目标带宽值, 单位Mbps. 各地域的带宽值范围如下: 流量计费[1-200],其余情况[1-800] + - **EIPId** (str) - (Required) 弹性IP的资源Id + - **PayMode** (str) - (Required) 计费模式. 枚举值:"Traffic", 流量计费模式; "Bandwidth", 带宽计费模式 + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.SetEIPPayModeRequestSchema().dumps(d) + resp = self.invoke("SetEIPPayMode", d, **kwargs) + return apis.SetEIPPayModeResponseSchema().loads(resp)
+ +
[docs] def un_bind_eip(self, req=None, **kwargs): + """ UnBindEIP - 将弹性IP从资源上解绑 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **EIPId** (str) - (Required) 弹性IP的资源Id + - **ResourceId** (str) - (Required) 弹性IP请求解绑的资源ID + - **ResourceType** (str) - (Required) 弹性IP请求解绑的资源类型, 枚举值为: uhost: 云主机; ulb, 负载均衡器 upm: 物理机; hadoophost: 大数据集群;fortresshost:堡垒机;udockhost:容器;udhost:私有专区主机;natgw:NAT网关;udb:udb;vpngw:ipsec vpn;ucdr:云灾备;dbaudit:数据库审计;uni,虚拟网卡。 + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.UnBindEIPRequestSchema().dumps(d) + resp = self.invoke("UnBindEIP", d, **kwargs) + return apis.UnBindEIPResponseSchema().loads(resp)
+ +
[docs] def update_eip_attribute(self, req=None, **kwargs): + """ UpdateEIPAttribute - 更新弹性IP名称,业务组,备注等属性字段 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **EIPId** (str) - (Required) EIP资源ID + - **Name** (str) - 名字(Name Tag Remark都为空则报错) + - **Remark** (str) - 备注 + - **Tag** (str) - 业务 + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.UpdateEIPAttributeRequestSchema().dumps(d) + resp = self.invoke("UpdateEIPAttribute", d, **kwargs) + return apis.UpdateEIPAttributeResponseSchema().loads(resp)
+ +
[docs] def update_firewall(self, req=None, **kwargs): + """ UpdateFirewall - 更新防火墙规则 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **FWId** (str) - (Required) 防火墙资源ID + - **Rule** (list) - (Required) 防火墙规则,例如:TCP|22|192.168.1.1/22|DROP|LOW|禁用22端口,第一个参数代表协议:第二个参数代表端口号,第三个参数为ip,第四个参数为ACCEPT(接受)和DROP(拒绝),第五个参数优先级:HIGH(高),MEDIUM(中),LOW(低),第六个参数为该条规则的自定义备注 + + **Response** + + - **FWId** (str) - 防火墙id + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.UpdateFirewallRequestSchema().dumps(d) + resp = self.invoke("UpdateFirewall", d, **kwargs) + return apis.UpdateFirewallResponseSchema().loads(resp)
+ +
[docs] def update_firewall_attribute(self, req=None, **kwargs): + """ UpdateFirewallAttribute - 更新防火墙规则 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **FWId** (str) - (Required) 防火墙资源ID + - **Name** (str) - 防火墙名称,默认为空,为空则不做修改。Name,Tag,Remark必须填写1个及以上 + - **Remark** (str) - 防火墙备注,默认为空,为空则不做修改。Name,Tag,Remark必须填写1个及以上 + - **Tag** (str) - 防火墙业务组,默认为空,为空则不做修改。Name,Tag,Remark必须填写1个及以上 + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.UpdateFirewallAttributeRequestSchema().dumps(d) + resp = self.invoke("UpdateFirewallAttribute", d, **kwargs) + return apis.UpdateFirewallAttributeResponseSchema().loads(resp)
+ + _deprecated = { + "allocate_e_ip": "allocate_eip", + "associate_e_ip_with_share_bandwidth": "associate_eip_with_share_bandwidth", + "bind_e_ip": "bind_eip", + "describe_e_ip": "describe_eip", + "disassociate_e_ip_with_share_bandwidth": "disassociate_eip_with_share_bandwidth", + "get_e_ip_pay_mode": "get_eip_pay_mode", + "get_e_ip_price": "get_eip_price", + "get_e_ip_upgrade_price": "get_eip_upgrade_price", + "modify_e_ip_bandwidth": "modify_eip_bandwidth", + "modify_e_ip_weight": "modify_eip_weight", + "release_e_ip": "release_eip", + "set_e_ip_pay_mode": "set_eip_pay_mode", + "un_bind_e_ip": "un_bind_eip", + "update_e_ip_attribute": "update_eip_attribute", + "release_v_ip": "release_vip", + "allocate_v_ip": "allocate_vip", + "describe_v_ip": "describe_vip", + } + + def __getattr__(self, item): + if item in self._deprecated: + instead_of = self._deprecated[item] + msg = "the method {} is deprecated, please use {} instead, this method will remove after 0.5.0 version" + self.logger.warning(msg.format(item, instead_of)) + return getattr(self, self._deprecated[item]) + raise AttributeError( + "'{}' object has no attribute '{}'".format(self.__class__.__name__, item) + )
+
+ +
+ +
+
+ +
+
+ + + + + + + \ No newline at end of file diff --git a/_modules/ucloud/services/uphost/client.html b/_modules/ucloud/services/uphost/client.html new file mode 100644 index 0000000..96c7902 --- /dev/null +++ b/_modules/ucloud/services/uphost/client.html @@ -0,0 +1,455 @@ + + + + + + + + ucloud.services.uphost.client — ucloud-sdk-python2 documentation + + + + + + + + + + + + + + + + + + +
+
+
+ + +
+ +

Source code for ucloud.services.uphost.client

+# -*- coding: utf-8 -*-
+
+""" Code is generated by ucloud-model, DO NOT EDIT IT. """
+from ucloud.core.client import Client
+from ucloud.services.uphost.schemas import apis
+
+
+
[docs]class UPHostClient(Client): + def __init__(self, config, transport=None, middleware=None, logger=None): + super(UPHostClient, self).__init__(config, transport, middleware, logger) + +
[docs] def create_phost(self, req=None, **kwargs): + """ CreatePHost - 指定数据中心,根据资源使用量创建指定数量的UPHost物理云主机实例。 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **ImageId** (str) - (Required) 镜像ID。 请通过 [DescribePHostImage]获取 + - **Password** (str) - (Required) 密码(密码需使用base64进行编码) + - **Zone** (str) - (Required) 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **ChargeType** (str) - 计费模式,枚举值为:year, 按年付费; month,按月付费;dynamic,按需付费,(需开启权限) trial, 试用(需开启权限)。默认为按月付费 + - **Cluster** (str) - 网络环境,可选千兆:1G ,万兆:10G, 默认1G + - **Count** (int) - 购买数量,默认为1,(暂不支持) + - **CouponId** (str) - 代金券 + - **Name** (str) - 物理机名称,默认为phost + - **Quantity** (str) - 购买时长,默认为1,范围[1-10] + - **Raid** (str) - Raid配置,默认Raid10 支持:Raid0、Raid1、Raid5、Raid10,NoRaid + - **Remark** (str) - 物理机备注,默认为空 + - **SecurityGroupId** (str) - 防火墙Id,默认:Web推荐防火墙。如何查询SecurityGroupId请参见 `DescribeSecurityGroup <https://docs.ucloud.cn/api/unet-api/describe_security_group.html>`_ + - **SubnetId** (str) - 子网ID,不填为默认,VPC2.0下需要填写此字段。 + - **Tag** (str) - 业务组,默认为default + - **Type** (str) - 物理机类型,默认为:db-2(基础型-SAS-V3) + - **VPCId** (str) - VPC ID,不填为默认,VPC2.0下需要填写此字段。 + + **Response** + + - **PHostId** (list) - PHost的资源ID数组 + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.CreatePHostRequestSchema().dumps(d) + resp = self.invoke("CreatePHost", d, **kwargs) + return apis.CreatePHostResponseSchema().loads(resp)
+ +
[docs] def describe_phost(self, req=None, **kwargs): + """ DescribePHost - 获取物理机详细信息 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **Limit** (int) - 返回数据长度,默认为20 + - **Offset** (int) - 数据偏移量,默认为0 + - **PHostId** (list) - PHost资源ID,若为空,则返回当前Region所有PHost。 + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + - **PHostSet** (list) - 见 **PHostSet** 模型定义 + - **TotalCount** (int) - 满足条件的PHost总数 + + **Response Model** + + **PHostDiskSet** + + - **Count** (int) - 磁盘数量 + - **IOCap** (int) - 磁盘IO性能,单位MB/s(待废弃) + - **Name** (str) - 磁盘名称,sys/data + - **Space** (int) - 单盘大小,单位GB + - **Type** (str) - 磁盘属性 + + **PHostCPUSet** + + - **CoreCount** (int) - CPU核数 + - **Count** (int) - CPU个数 + - **Frequence** (float) - CPU主频 + - **Model** (str) - CPU型号 + + **PHostIPSet** + + - **Bandwidth** (int) - IP对应带宽,单位Mb,内网IP不显示带宽信息 + - **IPAddr** (str) - IP地址, + - **IPId** (str) - IP资源ID(内网IP无资源ID)(待废弃) + - **MACAddr** (str) - MAC地址 + - **OperatorName** (str) - 国际: Internation, BGP: BGP, 内网: Private + - **SubnetId** (str) - 子网ID + - **VPCId** (str) - VPC ID + + **PHostSet** + + - **AutoRenew** (str) - 自动续费 + - **CPUSet** (list) - 见 **PHostCPUSet** 模型定义 + - **ChargeType** (str) - 计费模式,枚举值为: Year,按年付费; Month,按月付费; Dynamic,按需付费(需开启权限); Trial,试用(需开启权限)默认为月付 + - **Cluster** (str) - 网络环境。枚举值:千兆:1G ,万兆:10G + - **Components** (str) - 组件信息(暂不支持) + - **CreateTime** (int) - 创建时间 + - **DiskSet** (list) - 见 **PHostDiskSet** 模型定义 + - **ExpireTime** (int) - 到期时间 + - **IPSet** (list) - 见 **PHostIPSet** 模型定义 + - **ImageName** (str) - 镜像名称 + - **IsSupportKVM** (str) - 是否支持紧急登录 + - **Memory** (int) - 内存大小,单位:MB + - **Name** (str) - 物理机名称 + - **OSType** (str) - 操作系统类型 + - **OSname** (str) - 操作系统名称 + - **PHostId** (str) - PHost资源ID + - **PHostType** (str) - 物理机类型,参见DescribePHostMachineType返回值 + - **PMStatus** (str) - 物理云主机状态。枚举值:\\ > 初始化:Initializing; \\ > 启动中:Starting; \\ > 运行中:Running;\\ > 关机中:Stopping; \\ > 安装失败:InstallFailed; \\ > 重启中:Rebooting;\\ > 关机:Stopped; + - **PowerState** (str) - 电源状态,on 或 off + - **RaidSupported** (str) - 是否支持Raid。枚举值:Yes:支持;No:不支持。 + - **Remark** (str) - 物理机备注 + - **SN** (str) - 物理机序列号 + - **Tag** (str) - 业务组 + - **Zone** (str) - 可用区,参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DescribePHostRequestSchema().dumps(d) + resp = self.invoke("DescribePHost", d, **kwargs) + return apis.DescribePHostResponseSchema().loads(resp)
+ +
[docs] def describe_phost_image(self, req=None, **kwargs): + """ DescribePHostImage - 获取物理云主机镜像列表 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **Zone** (str) - (Required) 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **ImageId** (list) - 镜像ID + - **ImageType** (str) - 镜像类别,枚举为:Base,标准镜像;默认为标准镜像。 + - **Limit** (int) - 返回数据长度,默认为20 + - **Offset** (int) - 数据偏移量,默认为0 + + **Response** + + - **ImageSet** (list) - 见 **PHostImageSet** 模型定义 + - **TotalCount** (int) - 满足条件的镜像总数 + + **Response Model** + + **PHostImageSet** + + - **ImageId** (str) - 镜像ID + - **ImageName** (str) - 镜像名称 + - **OsName** (str) - 操作系统名称 + - **OsType** (str) - 操作系统类型 + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DescribePHostImageRequestSchema().dumps(d) + resp = self.invoke("DescribePHostImage", d, **kwargs) + return apis.DescribePHostImageResponseSchema().loads(resp)
+ +
[docs] def describe_phost_tags(self, req=None, **kwargs): + """ DescribePHostTags - 获取物理机tag列表(业务组) + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + - **TagSet** (list) - 见 **PHostTagSet** 模型定义 + - **TotalCount** (int) - Tag的个数 + + **Response Model** + + **PHostTagSet** + + - **Tag** (str) - 业务组名称 + - **TotalCount** (int) - 该业务组中包含的主机个数 + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DescribePHostTagsRequestSchema().dumps(d) + resp = self.invoke("DescribePHostTags", d, **kwargs) + return apis.DescribePHostTagsResponseSchema().loads(resp)
+ +
[docs] def get_phost_price(self, req=None, **kwargs): + """ GetPHostPrice - 获取物理机价格列表 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **ChargeType** (str) - (Required) 计费模式,枚举值为: Year/Month/Trial/Dynamic + - **Count** (int) - (Required) 购买数量,范围[1-5] + - **Quantity** (int) - (Required) 购买时长,1-10个月或1-10年 + - **Cluster** (str) - 网络环境,可选千兆:1G ,万兆:10G + - **Type** (str) - 默认为:DB(数据库型) + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + - **PriceSet** (list) - 见 **PHostPriceSet** 模型定义 + + **Response Model** + + **PHostPriceSet** + + - **ChargeType** (str) - Year/Month/Trial/Dynamic + - **Price** (float) - 价格, 单位:元, 保留小数点后两位有效数字 + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.GetPHostPriceRequestSchema().dumps(d) + resp = self.invoke("GetPHostPrice", d, **kwargs) + return apis.GetPHostPriceResponseSchema().loads(resp)
+ +
[docs] def modify_phost_info(self, req=None, **kwargs): + """ ModifyPHostInfo - 更改物理机信息 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **PHostId** (str) - (Required) 物理机资源ID + - **Name** (str) - 物理机名称,默认不更改 + - **Remark** (str) - 物理机备注,默认不更改 + - **Tag** (str) - 业务组,默认不更改 + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + - **PHostId** (str) - PHost 的资源ID + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.ModifyPHostInfoRequestSchema().dumps(d) + resp = self.invoke("ModifyPHostInfo", d, **kwargs) + return apis.ModifyPHostInfoResponseSchema().loads(resp)
+ +
[docs] def poweroff_phost(self, req=None, **kwargs): + """ PoweroffPHost - 断电物理云主机 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **PHostId** (str) - (Required) PHost资源ID + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + - **PHostId** (str) - PHost 的资源ID + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.PoweroffPHostRequestSchema().dumps(d) + resp = self.invoke("PoweroffPHost", d, **kwargs) + return apis.PoweroffPHostResponseSchema().loads(resp)
+ +
[docs] def reboot_phost(self, req=None, **kwargs): + """ RebootPHost - 重启物理机 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **PHostId** (str) - (Required) PHost资源ID + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + - **PHostId** (str) - PHost 的资源ID + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.RebootPHostRequestSchema().dumps(d) + resp = self.invoke("RebootPHost", d, **kwargs) + return apis.RebootPHostResponseSchema().loads(resp)
+ +
[docs] def reinstall_phost(self, req=None, **kwargs): + """ ReinstallPHost - 重装物理机操作系统 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **PHostId** (str) - (Required) PHost资源ID + - **Password** (str) - (Required) 密码 + - **Zone** (str) - (Required) 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **ImageId** (str) - 镜像Id,参考镜像列表,默认使用原镜像 + - **Name** (str) - 物理机名称,默认不更改 + - **Raid** (str) - 不保留数据盘重装,可选Raid + - **Remark** (str) - 物理机备注,默认为不更改。 + - **ReserveDisk** (str) - 是否保留数据盘,保留:Yes,不报留:No, 默认:Yes + - **Tag** (str) - 业务组,默认不更改。 + + **Response** + + - **PHostId** (str) - PHost 的资源ID + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.ReinstallPHostRequestSchema().dumps(d) + resp = self.invoke("ReinstallPHost", d, **kwargs) + return apis.ReinstallPHostResponseSchema().loads(resp)
+ +
[docs] def start_phost(self, req=None, **kwargs): + """ StartPHost - 启动物理机 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **PHostId** (str) - (Required) PHost资源ID + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + - **PHostId** (str) - PHost 的资源ID + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.StartPHostRequestSchema().dumps(d) + resp = self.invoke("StartPHost", d, **kwargs) + return apis.StartPHostResponseSchema().loads(resp)
+ +
[docs] def terminate_phost(self, req=None, **kwargs): + """ TerminatePHost - 删除物理云主机 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **PHostId** (str) - (Required) PHost资源ID + - **ReleaseEIP** (bool) - 是否释放绑定的EIP。true: 解绑EIP后,并释放;其他值或不填:解绑EIP。 + - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + + **Response** + + - **PHostId** (str) - PHost 的资源ID + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.TerminatePHostRequestSchema().dumps(d) + resp = self.invoke("TerminatePHost", d, **kwargs) + return apis.TerminatePHostResponseSchema().loads(resp)
+
+ +
+ +
+
+ +
+
+ + + + + + + \ No newline at end of file diff --git a/_modules/ucloud/services/vpc/client.html b/_modules/ucloud/services/vpc/client.html new file mode 100644 index 0000000..c98bc62 --- /dev/null +++ b/_modules/ucloud/services/vpc/client.html @@ -0,0 +1,643 @@ + + + + + + + + ucloud.services.vpc.client — ucloud-sdk-python2 documentation + + + + + + + + + + + + + + + + + + +
+
+
+ + +
+ +

Source code for ucloud.services.vpc.client

+# -*- coding: utf-8 -*-
+
+""" Code is generated by ucloud-model, DO NOT EDIT IT. """
+from ucloud.core.client import Client
+from ucloud.services.vpc.schemas import apis
+
+
+
[docs]class VPCClient(Client): + def __init__(self, config, transport=None, middleware=None, logger=None): + super(VPCClient, self).__init__(config, transport, middleware, logger) + +
[docs] def add_vpc_network(self, req=None, **kwargs): + """ AddVPCNetwork - 添加VPC网段 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **Network** (list) - (Required) 增加网段 + - **VPCId** (str) - (Required) 源VPC短ID + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.AddVPCNetworkRequestSchema().dumps(d) + kwargs["max_retries"] = 0 + resp = self.invoke("AddVPCNetwork", d, **kwargs) + return apis.AddVPCNetworkResponseSchema().loads(resp)
+ +
[docs] def associate_route_table(self, req=None, **kwargs): + """ AssociateRouteTable - 绑定子网的路由表 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **RouteTableId** (str) - (Required) 路由表ID,仅限自定义路由表 + - **SubnetId** (str) - (Required) 子网ID + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.AssociateRouteTableRequestSchema().dumps(d) + resp = self.invoke("AssociateRouteTable", d, **kwargs) + return apis.AssociateRouteTableResponseSchema().loads(resp)
+ +
[docs] def clone_route_table(self, req=None, **kwargs): + """ CloneRouteTable - 根据一张现有路由表复制一张新的路由表 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **RouteTableId** (str) - (Required) 被克隆的路由表ID + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.CloneRouteTableRequestSchema().dumps(d) + kwargs["max_retries"] = 0 + resp = self.invoke("CloneRouteTable", d, **kwargs) + return apis.CloneRouteTableResponseSchema().loads(resp)
+ +
[docs] def create_route_table(self, req=None, **kwargs): + """ CreateRouteTable - 创建路由表 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **VPCId** (str) - (Required) VPC ID + - **Name** (str) - 路由表名称 Default RouteTable + - **Remark** (str) - 备注 + - **Tag** (str) - 业务组 + + **Response** + + - **RouteTableId** (str) - 路由表ID + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.CreateRouteTableRequestSchema().dumps(d) + kwargs["max_retries"] = 0 + resp = self.invoke("CreateRouteTable", d, **kwargs) + return apis.CreateRouteTableResponseSchema().loads(resp)
+ +
[docs] def create_subnet(self, req=None, **kwargs): + """ CreateSubnet - 创建子网 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **Subnet** (str) - (Required) 子网网络地址,例如192.168.0.0 + - **VPCId** (str) - (Required) VPC资源ID + - **Netmask** (int) - 子网网络号位数,默认为24 + - **Remark** (str) - 备注 + - **SubnetName** (str) - 子网名称,默认为Subnet + - **Tag** (str) - 业务组名称,默认为Default + + **Response** + + - **SubnetId** (str) - 子网ID + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.CreateSubnetRequestSchema().dumps(d) + kwargs["max_retries"] = 0 + resp = self.invoke("CreateSubnet", d, **kwargs) + return apis.CreateSubnetResponseSchema().loads(resp)
+ +
[docs] def create_vpc(self, req=None, **kwargs): + """ CreateVPC - 创建VPC + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **Name** (str) - (Required) VPC名称 + - **Network** (list) - (Required) VPC网段 + - **Remark** (str) - 备注 + - **Tag** (str) - 业务组名称 + - **Type** (int) - VPC类型 + + **Response** + + - **VPCId** (str) - VPC资源Id + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.CreateVPCRequestSchema().dumps(d) + kwargs["max_retries"] = 0 + resp = self.invoke("CreateVPC", d, **kwargs) + return apis.CreateVPCResponseSchema().loads(resp)
+ +
[docs] def create_vpc_intercom(self, req=None, **kwargs): + """ CreateVPCIntercom - 新建VPC互通关系 + + **Request** + + - **ProjectId** (str) - (Config) 源VPC所在项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 源VPC所在地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **DstVPCId** (str) - (Required) 目的VPC短ID + - **VPCId** (str) - (Required) 源VPC短ID + - **DstProjectId** (str) - 目的VPC项目ID。默认与源VPC同项目。 + - **DstRegion** (str) - 目的VPC所在地域,默认与源VPC同地域。 + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.CreateVPCIntercomRequestSchema().dumps(d) + kwargs["max_retries"] = 0 + resp = self.invoke("CreateVPCIntercom", d, **kwargs) + return apis.CreateVPCIntercomResponseSchema().loads(resp)
+ +
[docs] def delete_route_table(self, req=None, **kwargs): + """ DeleteRouteTable - 删除自定义路由表 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **RouteTableId** (str) - (Required) 路由ID + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DeleteRouteTableRequestSchema().dumps(d) + resp = self.invoke("DeleteRouteTable", d, **kwargs) + return apis.DeleteRouteTableResponseSchema().loads(resp)
+ +
[docs] def delete_subnet(self, req=None, **kwargs): + """ DeleteSubnet - 删除子网 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **SubnetId** (str) - (Required) 子网ID + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DeleteSubnetRequestSchema().dumps(d) + resp = self.invoke("DeleteSubnet", d, **kwargs) + return apis.DeleteSubnetResponseSchema().loads(resp)
+ +
[docs] def delete_vpc(self, req=None, **kwargs): + """ DeleteVPC - 删除VPC + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **VPCId** (str) - (Required) VPC资源Id + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DeleteVPCRequestSchema().dumps(d) + resp = self.invoke("DeleteVPC", d, **kwargs) + return apis.DeleteVPCResponseSchema().loads(resp)
+ +
[docs] def delete_vpc_intercom(self, req=None, **kwargs): + """ DeleteVPCIntercom - 删除VPC互通关系 + + **Request** + + - **ProjectId** (str) - (Config) 源VPC所在项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 源VPC所在地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **DstVPCId** (str) - (Required) 目的VPC短ID + - **VPCId** (str) - (Required) 源VPC短ID + - **DstProjectId** (str) - 目的VPC所在项目ID,默认为源VPC所在项目ID + - **DstRegion** (str) - 目的VPC所在地域,默认为源VPC所在地域 + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DeleteVPCIntercomRequestSchema().dumps(d) + resp = self.invoke("DeleteVPCIntercom", d, **kwargs) + return apis.DeleteVPCIntercomResponseSchema().loads(resp)
+ +
[docs] def describe_route_table(self, req=None, **kwargs): + """ DescribeRouteTable - 获取路由表详细信息(包括路由策略) + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **BusinessId** (str) - 业务组ID + - **Limit** (int) - Limit + - **OffSet** (int) - OffSet + - **RouteTableId** (str) - 路由表ID + - **VPCId** (str) - VPC ID + + **Response** + + - **RouteTables** (list) - 见 **RouteTableInfo** 模型定义 + - **TotalCount** (int) - RouteTables字段的数量 + + **Response Model** + + **RouteRuleInfo** + + - **DstAddr** (str) - 目的地址,比如10.10.8/24 + - **NexthopId** (str) - 路由下一跳ID,比如uvnet-3eljvj + - **NexthopType** (str) - 下一跳类型,比如local、vnet + - **Remark** (str) - 路由规则备注 + - **RouteRuleId** (str) - 规则ID + - **RuleType** (int) - 路由规则类型(0表示系统路由,1表示自定义路由) + + **RouteTableInfo** + + - **CreateTime** (int) - 创建时间戳 + - **Remark** (str) - 路由表备注 + - **RouteRules** (list) - 见 **RouteRuleInfo** 模型定义 + - **RouteTableId** (str) - 路由表ID + - **RouteTableType** (int) - 路由表类型,1为默认,0为自定义 + - **SubnetCount** (str) - 绑定了该路由表的子网数量 + - **Tag** (str) - 业务组 + - **VPCId** (str) - 路由表所属vpc + - **VPCName** (str) - vpc名称 + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DescribeRouteTableRequestSchema().dumps(d) + resp = self.invoke("DescribeRouteTable", d, **kwargs) + return apis.DescribeRouteTableResponseSchema().loads(resp)
+ +
[docs] def describe_subnet(self, req=None, **kwargs): + """ DescribeSubnet - 获取子网信息 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **BusinessId** (str) - 业务组 + - **Limit** (int) - 列表长度,默认为20 + - **Offset** (int) - 偏移量,默认为0 + - **RouteTableId** (str) - 路由表Id + - **SubnetId** (str) - 子网id,适用于一次查询一个子网信息 + - **SubnetIds** (list) - 子网id数组,适用于一次查询多个子网信息 + - **Tag** (str) - 业务组名称,默认为Default + - **VPCId** (str) - VPC资源id + + **Response** + + - **DataSet** (list) - 见 **SubnetInfo** 模型定义 + - **TotalCount** (int) - 子网总数量 + + **Response Model** + + **SubnetInfo** + + - **CreateTime** (int) - 创建时间 + - **Gateway** (str) - 子网网关 + - **HasNATGW** (bool) - 是否有natgw + - **IPv6Network** (str) - 子网关联的IPv6网段 + - **Netmask** (int) - 子网掩码 + - **OperatorName** (str) - 子网关联的IPv6网段所属运营商 + - **Remark** (str) - 备注 + - **RouteTableId** (str) - 路由表Id + - **Subnet** (str) - 子网网段 + - **SubnetId** (str) - 子网Id + - **SubnetName** (str) - 子网名称 + - **SubnetType** (int) - 子网类型 + - **Tag** (str) - 业务组 + - **VPCId** (str) - VPCId + - **VPCName** (str) - VPC名称 + - **Zone** (str) - 可用区名称 + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DescribeSubnetRequestSchema().dumps(d) + resp = self.invoke("DescribeSubnet", d, **kwargs) + return apis.DescribeSubnetResponseSchema().loads(resp)
+ +
[docs] def describe_subnet_resource(self, req=None, **kwargs): + """ DescribeSubnetResource - 展示子网资源 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **SubnetId** (str) - (Required) 子网id + - **Limit** (int) - 单页返回数据长度,默认为20 + - **Offset** (int) - 列表起始位置偏移量,默认为0 + - **ResourceType** (str) - 资源类型,默认为全部资源类型。枚举值为:UHOST,云主机;PHOST,物理云主机;ULB,负载均衡;UHADOOP_HOST,hadoop节点;UFORTRESS_HOST,堡垒机;UNATGW,NAT网关;UKAFKA,Kafka消息队列;UMEM,内存存储;DOCKER,容器集群;UDB,数据库;UDW,数据仓库;VIP,内网VIP. + + **Response** + + - **DataSet** (list) - 见 **SubnetResource** 模型定义 + - **TotalCount** (int) - 总数 + + **Response Model** + + **SubnetResource** + + - **IP** (str) - 资源ip + - **IPv6Address** (str) - 资源的IPv6地址 + - **Name** (str) - 资源名称 + - **ResourceId** (str) - 资源Id + - **ResourceType** (str) - 资源类型。对应的资源类型:UHOST,云主机;PHOST,物理云主机;ULB,负载均衡;UHADOOP_HOST,hadoop节点;UFORTRESS_HOST,堡垒机;UNATGW,NAT网关;UKAFKA,Kafka消息队列;UMEM,内存存储;DOCKER,容器集群;UDB,数据库;UDW,数据仓库;VIP,内网VIP. + - **SubResourceId** (str) - 资源绑定的虚拟网卡的实例ID + - **SubResourceName** (str) - 资源绑定的虚拟网卡的实例名称 + - **SubResourceType** (str) - 资源绑定的虚拟网卡的类型 + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DescribeSubnetResourceRequestSchema().dumps(d) + resp = self.invoke("DescribeSubnetResource", d, **kwargs) + return apis.DescribeSubnetResourceResponseSchema().loads(resp)
+ +
[docs] def describe_vpc(self, req=None, **kwargs): + """ DescribeVPC - 获取VPC信息 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **Limit** (int) - + - **Offset** (int) - + - **Tag** (str) - 业务组名称 + - **VPCIds** (list) - VPCId + + **Response** + + - **DataSet** (list) - 见 **VPCInfo** 模型定义 + + **Response Model** + + **VPCNetworkInfo** + + - **Network** (str) - vpc地址空间 + - **SubnetCount** (int) - 地址空间中子网数量 + + **VPCInfo** + + - **CreateTime** (int) - + - **IPv6Network** (str) - VPC关联的IPv6网段 + - **Name** (str) - + - **Network** (list) - + - **NetworkInfo** (list) - 见 **VPCNetworkInfo** 模型定义 + - **OperatorName** (str) - VPC关联的IPv6网段所属运营商 + - **SubnetCount** (int) - + - **Tag** (str) - + - **UpdateTime** (int) - + - **VPCId** (str) - VPCId + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DescribeVPCRequestSchema().dumps(d) + resp = self.invoke("DescribeVPC", d, **kwargs) + return apis.DescribeVPCResponseSchema().loads(resp)
+ +
[docs] def describe_vpc_intercom(self, req=None, **kwargs): + """ DescribeVPCIntercom - 获取VPC互通信息 + + **Request** + + - **ProjectId** (str) - (Config) 源VPC所在项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 源VPC所在地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **VPCId** (str) - (Required) VPC短ID + - **DstProjectId** (str) - 目的项目ID,默认为全部项目 + - **DstRegion** (str) - 目的VPC所在地域,默认为全部地域 + + **Response** + + - **DataSet** (list) - 见 **VPCIntercomInfo** 模型定义 + + **Response Model** + + **VPCIntercomInfo** + + - **DstRegion** (str) - 所属地域 + - **Name** (str) - VPC名字 + - **Network** (list) - VPC的地址空间 + - **ProjectId** (str) - 项目Id + - **Tag** (str) - 业务组(未分组显示为 Default) + - **VPCId** (str) - VPCId + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.DescribeVPCIntercomRequestSchema().dumps(d) + resp = self.invoke("DescribeVPCIntercom", d, **kwargs) + return apis.DescribeVPCIntercomResponseSchema().loads(resp)
+ +
[docs] def modify_route_rule(self, req=None, **kwargs): + """ ModifyRouteRule - 路由策略增、删、改 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **RouteRule** (list) - (Required) 格式: RouteRuleId | 目的网段 | 下一跳类型 | 下一跳 |优先级| 备注 | 增、删、改标志 (下一跳类型为instance或者vip,下一跳为云主机id或者vip的id,优先级使用0,动作标志为add/delete/update) 。"添加"示例: test_id | 10.8.0.0/16 | instance | uhost-xd8ja | 0 | Default Route Rule| add (添加的RouteRuleId填任意非空字符串) 。"删除"示例: routerule-xk3jxa | 10.8.0.0/16 | instance | uhost-xd8ja | 0 | Default Route Rule| delete (RouteRuleId来自DescribeRouteTable中) 。“修改”示例: routerule-xk3jxa | 10.8.0.0/16 | instance | uhost-cjksa2 | 0 | Default Route Rule| update (RouteRuleId来自DescribeRouteTable中) + - **RouteTableId** (str) - (Required) 通过DescribeRouteTable拿到 + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.ModifyRouteRuleRequestSchema().dumps(d) + resp = self.invoke("ModifyRouteRule", d, **kwargs) + return apis.ModifyRouteRuleResponseSchema().loads(resp)
+ +
[docs] def update_route_table_attribute(self, req=None, **kwargs): + """ UpdateRouteTableAttribute - 更新路由表基本信息 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **RouteTableId** (str) - (Required) 路由表ID + - **Name** (str) - 名称 + - **Remark** (str) - 备注 + - **Tag** (str) - 业务组名称 + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.UpdateRouteTableAttributeRequestSchema().dumps(d) + resp = self.invoke("UpdateRouteTableAttribute", d, **kwargs) + return apis.UpdateRouteTableAttributeResponseSchema().loads(resp)
+ +
[docs] def update_subnet_attribute(self, req=None, **kwargs): + """ UpdateSubnetAttribute - 更新子网信息 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **SubnetId** (str) - (Required) 子网ID + - **Name** (str) - 子网名称(如果Name不填写,Tag必须填写) + - **Tag** (str) - 业务组名称(如果Tag不填写,Name必须填写) + + **Response** + + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.UpdateSubnetAttributeRequestSchema().dumps(d) + resp = self.invoke("UpdateSubnetAttribute", d, **kwargs) + return apis.UpdateSubnetAttributeResponseSchema().loads(resp)
+ +
[docs] def update_vpc_network(self, req=None, **kwargs): + """ UpdateVPCNetwork - 更新VPC网段 + + **Request** + + - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_ + - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist.html>`_ + - **Network** (list) - (Required) 需要保留的VPC网段。当前仅支持删除VPC网段,添加网段请参考 `AddVPCNetwork <https://docs.ucloud.cn/api/vpc2.0-api/add_vpc_network>`_ + - **VPCId** (str) - (Required) VPC的ID + + **Response** + + - **Message** (str) - 错误信息 + + """ + d = {"ProjectId": self.config.project_id, "Region": self.config.region} + req and d.update(req) + d = apis.UpdateVPCNetworkRequestSchema().dumps(d) + resp = self.invoke("UpdateVPCNetwork", d, **kwargs) + return apis.UpdateVPCNetworkResponseSchema().loads(resp)
+
+ +
+ +
+
+ +
+
+ + + + + + + \ No newline at end of file diff --git a/_sources/contents.rst.txt b/_sources/contents.rst.txt new file mode 100644 index 0000000..e69de29 diff --git a/_sources/core.rst.txt b/_sources/core.rst.txt new file mode 100644 index 0000000..e6545e5 --- /dev/null +++ b/_sources/core.rst.txt @@ -0,0 +1,35 @@ +Core +==== + +Config +------ + +.. autoclass:: ucloud.core.auth.Credential + :members: + +.. autoclass:: ucloud.core.client.Config + :members: + +Client +------ + +.. autoclass:: ucloud.core.client.Client + :members: + +Transport +--------- + +.. autoclass:: ucloud.core.transport.RequestsTransport + :members: + +Middleware +---------- + +.. autoclass:: ucloud.core.utils.middleware.Middleware + :members: + +Testing +------- + +.. automodule:: ucloud.core.testing.env + :members: diff --git a/_sources/helpers.rst.txt b/_sources/helpers.rst.txt new file mode 100644 index 0000000..e8192e1 --- /dev/null +++ b/_sources/helpers.rst.txt @@ -0,0 +1,13 @@ +Helpers +======= + +Wait Resource State +------------------- + +.. autofunction:: ucloud.helpers.wait.wait_for_state + +Utilities +--------- + +.. automodule:: ucloud.helpers.utils + :members: diff --git a/_sources/index.rst.txt b/_sources/index.rst.txt new file mode 100644 index 0000000..d84f307 --- /dev/null +++ b/_sources/index.rst.txt @@ -0,0 +1,57 @@ +UCloud SDK Python 2 +=================== + +UCloud SDK is a Python client library for accessing the UCloud API. + +This client can run on Linux, macOS and Windows. It requires Python 2.7 and +above. + +- Website: https://www.ucloud.cn/ +- Free software: Apache 2.0 license +- `Documentation `_ + +.. image:: https://img.shields.io/pypi/v/ucloud-sdk-python2.svg + :target: https://pypi.python.org/pypi/ucloud-sdk-python2/ + :alt: Latest Version +.. image:: https://travis-ci.org/ucloud/ucloud-sdk-python2.svg?branch=master + :target: https://travis-ci.org/ucloud/ucloud-sdk-python2 + :alt: Travis CI Status +.. image:: https://codecov.io/github/ucloud/ucloud-sdk-python2/coverage.svg?branch=master + :target: https://codecov.io/github/ucloud/ucloud-sdk-python2?branch=master + :alt: Codecov Status +.. image:: https://img.shields.io/badge/docs-passing-brightgreen.svg + :target: https://ucloud.github.io/ucloud-sdk-python2/ + :alt: Doc Status + +Guide +----- + +.. toctree:: + :maxdepth: 2 + + quick_start + usage + +.. include:: quick_start.rst + +API Reference +------------- + +.. toctree:: + :maxdepth: 2 + + services + helpers + core + +Indices and tables +------------------ + +* :ref:`genindex` +* :ref:`search` + +Feedback & Contribution +----------------------- + +- `Issue `_ +- `Pull Request `_ diff --git a/_sources/quick_start.rst.txt b/_sources/quick_start.rst.txt new file mode 100644 index 0000000..bfc0176 --- /dev/null +++ b/_sources/quick_start.rst.txt @@ -0,0 +1,61 @@ +QuickStart +========== + +Installation +------------ + +Install with pip: + +.. code:: shell + + pip install ucloud-sdk-python2 + +Install with source code: + +.. code:: shell + + clone https://github.com/ucloud/ucloud-sdk-python2.git + cd ucloud-sdk-python2 + python setup.py install + +QuickStart +---------- + +Currently, user public key & private key is the only method of authenticating with the API. You could get your keys here: + +- `Key Generation `_ + +You can then use your keys to create a new client of uhost service: + +.. code-block:: python + + from ucloud.core import exc + from ucloud.client import Client + + client = Client({ + "region": "cn-bj2", + "project_id": "...", + "public_key": "...", + "private_key": "...", + }) + + try: + resp = client.uhost().create_uhost_instance({ + 'Name': 'sdk-python-quickstart', + 'Zone': image["zone"], + 'ImageId': image["image_id"], + 'LoginMode': "Password", + 'Password': utils.b64encode(utils.gen_password(20)), + 'CPU': 1, + 'Memory': 1, + 'Disks': [{ + 'Size': 10, + 'Type': 'CLOUD_SSD' + }], + }) + except exc.UCloudException as e: + print(e) + else: + print(resp) + +.. note:: UHost created above cannot be accessed via Internet unless an EIP is created and bind to the UHost. diff --git a/_sources/services.rst.txt b/_sources/services.rst.txt new file mode 100644 index 0000000..59bfd45 --- /dev/null +++ b/_sources/services.rst.txt @@ -0,0 +1,69 @@ +UCloud SDK Services +=================== + +UDPN +---- + +.. autoclass:: ucloud.services.udpn.client.UDPNClient + :members: + +UAccount +-------- + +.. autoclass:: ucloud.services.uaccount.client.UAccountClient + :members: + +UMem +---- + +.. autoclass:: ucloud.services.umem.client.UMemClient + :members: + +UDB +--- + +.. autoclass:: ucloud.services.udb.client.UDBClient + :members: + +UPHost +------ + +.. autoclass:: ucloud.services.uphost.client.UPHostClient + :members: + +UDisk +----- + +.. autoclass:: ucloud.services.udisk.client.UDiskClient + :members: + +VPC +--- + +.. autoclass:: ucloud.services.vpc.client.VPCClient + :members: + +UNet +---- + +.. autoclass:: ucloud.services.unet.client.UNetClient + :members: + +ULB +--- + +.. autoclass:: ucloud.services.ulb.client.ULBClient + :members: + +PathX +----- + +.. autoclass:: ucloud.services.pathx.client.PathXClient + :members: + +UHost +----- + +.. autoclass:: ucloud.services.uhost.client.UHostClient + :members: + diff --git a/_sources/usage.rst.txt b/_sources/usage.rst.txt new file mode 100644 index 0000000..04986e5 --- /dev/null +++ b/_sources/usage.rst.txt @@ -0,0 +1,96 @@ +Usage +===== + +Type System +----------- + +UCloud Python SDK has type system for runtime checking. + +For example: + +.. code-block:: python + + client.uhost().create_uhost_instance({ + 'CPU': "i am not a integer", + }) + +it will raise :class:`ValidationException` with invalid integer and some required field is miss matched. + +Wait State Changed +------------------ + +SDK also provide state waiter helper to improver usage experience. + +**When using it?** + +Waiter can wait for remote state is achieved to target state. such as, + +- create and wait for resource state is completed. +- invoke/start/stop a resource and wait for it is finished. +- custom retry policies and wait for retrying is finished. + +For example: + +.. code-block:: python + + def mget_uhost_states(uhost_ids): + resp = client.uhost().describe_uhost_instance({'UHostIds': uhost_ids}) + return [inst.get('State') for inst in resp.get('UHostSet')] + + # Stop all instances + for uhost_id in uhost_ids: + client.uhost().stop_uhost_instance({'UHostId': uhost_id}) + + # Wait all instances is stopped + wait.wait_for_state( + target=['stopped'], pending=['pending'], + timeout=300, # wait 5min + refresh=lambda: ( + 'stopped' if all([state == 'Stopped' for state in mget_uhost_states(uhost_ids)]) else 'pending' + ), + ) + + # Remove all instances + for uhost_id in uhost_ids: + client.uhost().terminate_uhost_instance({'UHostId': uhost_id}) + +By the default, waiter will use exponential back-off delay between twice request. +it will raise :class:`WaitTimeoutException` when timeout is reached. + +Client/Transport Middleware +--------------------------- + +UCloud SDK provide middleware feature to client or transport level request. + +It allowed to add custom logic into the lifecycle of request/response. + +For example: + +.. code-block:: python + + @client.middleware.request + def log_params(req): + print('[REQ]', req) + + @client.middleware.response + def log_response(resp): + print('[RESP]', resp) + + +or transport: + +.. code-block:: python + + from ucloud.core.transport import RequestsTransport + + transport = RequestsTransport() + + @transport.middleware.request + def log_request(req): + print('[REQ]', req) + + @transport.middleware.response + def log_response(resp): + print('[RESP]', resp) + + Client({'Region': 'cn-bj2'}, transport=transport) diff --git a/_static/ajax-loader.gif b/_static/ajax-loader.gif new file mode 100644 index 0000000000000000000000000000000000000000..61faf8cab23993bd3e1560bff0668bd628642330 GIT binary patch literal 673 zcmZ?wbhEHb6krfw_{6~Q|Nno%(3)e{?)x>&1u}A`t?OF7Z|1gRivOgXi&7IyQd1Pl zGfOfQ60;I3a`F>X^fL3(@);C=vM_KlFfb_o=k{|A33hf2a5d61U}gjg=>Rd%XaNQW zW@Cw{|b%Y*pl8F?4B9 zlo4Fz*0kZGJabY|>}Okf0}CCg{u4`zEPY^pV?j2@h+|igy0+Kz6p;@SpM4s6)XEMg z#3Y4GX>Hjlml5ftdH$4x0JGdn8~MX(U~_^d!Hi)=HU{V%g+mi8#UGbE-*ao8f#h+S z2a0-5+vc7MU$e-NhmBjLIC1v|)9+Im8x1yacJ7{^tLX(ZhYi^rpmXm0`@ku9b53aN zEXH@Y3JaztblgpxbJt{AtE1ad1Ca>{v$rwwvK(>{m~Gf_=-Ro7Fk{#;i~+{{>QtvI yb2P8Zac~?~=sRA>$6{!(^3;ZP0TPFR(G_-UDU(8Jl0?(IXu$~#4A!880|o%~Al1tN literal 0 HcmV?d00001 diff --git a/_static/alabaster.css b/_static/alabaster.css new file mode 100644 index 0000000..0eddaeb --- /dev/null +++ b/_static/alabaster.css @@ -0,0 +1,701 @@ +@import url("basic.css"); + +/* -- page layout ----------------------------------------------------------- */ + +body { + font-family: Georgia, serif; + font-size: 17px; + background-color: #fff; + color: #000; + margin: 0; + padding: 0; +} + + +div.document { + width: 940px; + margin: 30px auto 0 auto; +} + +div.documentwrapper { + float: left; + width: 100%; +} + +div.bodywrapper { + margin: 0 0 0 220px; +} + +div.sphinxsidebar { + width: 220px; + font-size: 14px; + line-height: 1.5; +} + +hr { + border: 1px solid #B1B4B6; +} + +div.body { + background-color: #fff; + color: #3E4349; + padding: 0 30px 0 30px; +} + +div.body > .section { + text-align: left; +} + +div.footer { + width: 940px; + margin: 20px auto 30px auto; + font-size: 14px; + color: #888; + text-align: right; +} + +div.footer a { + color: #888; +} + +p.caption { + font-family: inherit; + font-size: inherit; +} + + +div.relations { + display: none; +} + + +div.sphinxsidebar a { + color: #444; + text-decoration: none; + border-bottom: 1px dotted #999; +} + +div.sphinxsidebar a:hover { + border-bottom: 1px solid #999; +} + +div.sphinxsidebarwrapper { + padding: 18px 10px; +} + +div.sphinxsidebarwrapper p.logo { + padding: 0; + margin: -10px 0 0 0px; + text-align: center; +} + +div.sphinxsidebarwrapper h1.logo { + margin-top: -10px; + text-align: center; + margin-bottom: 5px; + text-align: left; +} + +div.sphinxsidebarwrapper h1.logo-name { + margin-top: 0px; +} + +div.sphinxsidebarwrapper p.blurb { + margin-top: 0; + font-style: normal; +} + +div.sphinxsidebar h3, +div.sphinxsidebar h4 { + font-family: Georgia, serif; + color: #444; + font-size: 24px; + font-weight: normal; + margin: 0 0 5px 0; + padding: 0; +} + +div.sphinxsidebar h4 { + font-size: 20px; +} + +div.sphinxsidebar h3 a { + color: #444; +} + +div.sphinxsidebar p.logo a, +div.sphinxsidebar h3 a, +div.sphinxsidebar p.logo a:hover, +div.sphinxsidebar h3 a:hover { + border: none; +} + +div.sphinxsidebar p { + color: #555; + margin: 10px 0; +} + +div.sphinxsidebar ul { + margin: 10px 0; + padding: 0; + color: #000; +} + +div.sphinxsidebar ul li.toctree-l1 > a { + font-size: 120%; +} + +div.sphinxsidebar ul li.toctree-l2 > a { + font-size: 110%; +} + +div.sphinxsidebar input { + border: 1px solid #CCC; + font-family: Georgia, serif; + font-size: 1em; +} + +div.sphinxsidebar hr { + border: none; + height: 1px; + color: #AAA; + background: #AAA; + + text-align: left; + margin-left: 0; + width: 50%; +} + +div.sphinxsidebar .badge { + border-bottom: none; +} + +div.sphinxsidebar .badge:hover { + border-bottom: none; +} + +/* To address an issue with donation coming after search */ +div.sphinxsidebar h3.donation { + margin-top: 10px; +} + +/* -- body styles ----------------------------------------------------------- */ + +a { + color: #004B6B; + text-decoration: underline; +} + +a:hover { + color: #6D4100; + text-decoration: underline; +} + +div.body h1, +div.body h2, +div.body h3, +div.body h4, +div.body h5, +div.body h6 { + font-family: Georgia, serif; + font-weight: normal; + margin: 30px 0px 10px 0px; + padding: 0; +} + +div.body h1 { margin-top: 0; padding-top: 0; font-size: 240%; } +div.body h2 { font-size: 180%; } +div.body h3 { font-size: 150%; } +div.body h4 { font-size: 130%; } +div.body h5 { font-size: 100%; } +div.body h6 { font-size: 100%; } + +a.headerlink { + color: #DDD; + padding: 0 4px; + text-decoration: none; +} + +a.headerlink:hover { + color: #444; + background: #EAEAEA; +} + +div.body p, div.body dd, div.body li { + line-height: 1.4em; +} + +div.admonition { + margin: 20px 0px; + padding: 10px 30px; + background-color: #EEE; + border: 1px solid #CCC; +} + +div.admonition tt.xref, div.admonition code.xref, div.admonition a tt { + background-color: #FBFBFB; + border-bottom: 1px solid #fafafa; +} + +div.admonition p.admonition-title { + font-family: Georgia, serif; + font-weight: normal; + font-size: 24px; + margin: 0 0 10px 0; + padding: 0; + line-height: 1; +} + +div.admonition p.last { + margin-bottom: 0; +} + +div.highlight { + background-color: #fff; +} + +dt:target, .highlight { + background: #FAF3E8; +} + +div.warning { + background-color: #FCC; + border: 1px solid #FAA; +} + +div.danger { + background-color: #FCC; + border: 1px solid #FAA; + -moz-box-shadow: 2px 2px 4px #D52C2C; + -webkit-box-shadow: 2px 2px 4px #D52C2C; + box-shadow: 2px 2px 4px #D52C2C; +} + +div.error { + background-color: #FCC; + border: 1px solid #FAA; + -moz-box-shadow: 2px 2px 4px #D52C2C; + -webkit-box-shadow: 2px 2px 4px #D52C2C; + box-shadow: 2px 2px 4px #D52C2C; +} + +div.caution { + background-color: #FCC; + border: 1px solid #FAA; +} + +div.attention { + background-color: #FCC; + border: 1px solid #FAA; +} + +div.important { + background-color: #EEE; + border: 1px solid #CCC; +} + +div.note { + background-color: #EEE; + border: 1px solid #CCC; +} + +div.tip { + background-color: #EEE; + border: 1px solid #CCC; +} + +div.hint { + background-color: #EEE; + border: 1px solid #CCC; +} + +div.seealso { + background-color: #EEE; + border: 1px solid #CCC; +} + +div.topic { + background-color: #EEE; +} + +p.admonition-title { + display: inline; +} + +p.admonition-title:after { + content: ":"; +} + +pre, tt, code { + font-family: 'Consolas', 'Menlo', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace; + font-size: 0.9em; +} + +.hll { + background-color: #FFC; + margin: 0 -12px; + padding: 0 12px; + display: block; +} + +img.screenshot { +} + +tt.descname, tt.descclassname, code.descname, code.descclassname { + font-size: 0.95em; +} + +tt.descname, code.descname { + padding-right: 0.08em; +} + +img.screenshot { + -moz-box-shadow: 2px 2px 4px #EEE; + -webkit-box-shadow: 2px 2px 4px #EEE; + box-shadow: 2px 2px 4px #EEE; +} + +table.docutils { + border: 1px solid #888; + -moz-box-shadow: 2px 2px 4px #EEE; + -webkit-box-shadow: 2px 2px 4px #EEE; + box-shadow: 2px 2px 4px #EEE; +} + +table.docutils td, table.docutils th { + border: 1px solid #888; + padding: 0.25em 0.7em; +} + +table.field-list, table.footnote { + border: none; + -moz-box-shadow: none; + -webkit-box-shadow: none; + box-shadow: none; +} + +table.footnote { + margin: 15px 0; + width: 100%; + border: 1px solid #EEE; + background: #FDFDFD; + font-size: 0.9em; +} + +table.footnote + table.footnote { + margin-top: -15px; + border-top: none; +} + +table.field-list th { + padding: 0 0.8em 0 0; +} + +table.field-list td { + padding: 0; +} + +table.field-list p { + margin-bottom: 0.8em; +} + +/* Cloned from + * https://github.com/sphinx-doc/sphinx/commit/ef60dbfce09286b20b7385333d63a60321784e68 + */ +.field-name { + -moz-hyphens: manual; + -ms-hyphens: manual; + -webkit-hyphens: manual; + hyphens: manual; +} + +table.footnote td.label { + width: .1px; + padding: 0.3em 0 0.3em 0.5em; +} + +table.footnote td { + padding: 0.3em 0.5em; +} + +dl { + margin: 0; + padding: 0; +} + +dl dd { + margin-left: 30px; +} + +blockquote { + margin: 0 0 0 30px; + padding: 0; +} + +ul, ol { + /* Matches the 30px from the narrow-screen "li > ul" selector below */ + margin: 10px 0 10px 30px; + padding: 0; +} + +pre { + background: #EEE; + padding: 7px 30px; + margin: 15px 0px; + line-height: 1.3em; +} + +div.viewcode-block:target { + background: #ffd; +} + +dl pre, blockquote pre, li pre { + margin-left: 0; + padding-left: 30px; +} + +tt, code { + background-color: #ecf0f3; + color: #222; + /* padding: 1px 2px; */ +} + +tt.xref, code.xref, a tt { + background-color: #FBFBFB; + border-bottom: 1px solid #fff; +} + +a.reference { + text-decoration: none; + border-bottom: 1px dotted #004B6B; +} + +/* Don't put an underline on images */ +a.image-reference, a.image-reference:hover { + border-bottom: none; +} + +a.reference:hover { + border-bottom: 1px solid #6D4100; +} + +a.footnote-reference { + text-decoration: none; + font-size: 0.7em; + vertical-align: top; + border-bottom: 1px dotted #004B6B; +} + +a.footnote-reference:hover { + border-bottom: 1px solid #6D4100; +} + +a:hover tt, a:hover code { + background: #EEE; +} + + +@media screen and (max-width: 870px) { + + div.sphinxsidebar { + display: none; + } + + div.document { + width: 100%; + + } + + div.documentwrapper { + margin-left: 0; + margin-top: 0; + margin-right: 0; + margin-bottom: 0; + } + + div.bodywrapper { + margin-top: 0; + margin-right: 0; + margin-bottom: 0; + margin-left: 0; + } + + ul { + margin-left: 0; + } + + li > ul { + /* Matches the 30px from the "ul, ol" selector above */ + margin-left: 30px; + } + + .document { + width: auto; + } + + .footer { + width: auto; + } + + .bodywrapper { + margin: 0; + } + + .footer { + width: auto; + } + + .github { + display: none; + } + + + +} + + + +@media screen and (max-width: 875px) { + + body { + margin: 0; + padding: 20px 30px; + } + + div.documentwrapper { + float: none; + background: #fff; + } + + div.sphinxsidebar { + display: block; + float: none; + width: 102.5%; + margin: 50px -30px -20px -30px; + padding: 10px 20px; + background: #333; + color: #FFF; + } + + div.sphinxsidebar h3, div.sphinxsidebar h4, div.sphinxsidebar p, + div.sphinxsidebar h3 a { + color: #fff; + } + + div.sphinxsidebar a { + color: #AAA; + } + + div.sphinxsidebar p.logo { + display: none; + } + + div.document { + width: 100%; + margin: 0; + } + + div.footer { + display: none; + } + + div.bodywrapper { + margin: 0; + } + + div.body { + min-height: 0; + padding: 0; + } + + .rtd_doc_footer { + display: none; + } + + .document { + width: auto; + } + + .footer { + width: auto; + } + + .footer { + width: auto; + } + + .github { + display: none; + } +} + + +/* misc. */ + +.revsys-inline { + display: none!important; +} + +/* Make nested-list/multi-paragraph items look better in Releases changelog + * pages. Without this, docutils' magical list fuckery causes inconsistent + * formatting between different release sub-lists. + */ +div#changelog > div.section > ul > li > p:only-child { + margin-bottom: 0; +} + +/* Hide fugly table cell borders in ..bibliography:: directive output */ +table.docutils.citation, table.docutils.citation td, table.docutils.citation th { + border: none; + /* Below needed in some edge cases; if not applied, bottom shadows appear */ + -moz-box-shadow: none; + -webkit-box-shadow: none; + box-shadow: none; +} + + +/* relbar */ + +.related { + line-height: 30px; + width: 100%; + font-size: 0.9rem; +} + +.related.top { + border-bottom: 1px solid #EEE; + margin-bottom: 20px; +} + +.related.bottom { + border-top: 1px solid #EEE; +} + +.related ul { + padding: 0; + margin: 0; + list-style: none; +} + +.related li { + display: inline; +} + +nav#rellinks { + float: right; +} + +nav#rellinks li+li:before { + content: "|"; +} + +nav#breadcrumbs li+li:before { + content: "\00BB"; +} + +/* Hide certain items when printing */ +@media print { + div.related { + display: none; + } +} \ No newline at end of file diff --git a/_static/basic.css b/_static/basic.css new file mode 100644 index 0000000..0807176 --- /dev/null +++ b/_static/basic.css @@ -0,0 +1,676 @@ +/* + * basic.css + * ~~~~~~~~~ + * + * Sphinx stylesheet -- basic theme. + * + * :copyright: Copyright 2007-2019 by the Sphinx team, see AUTHORS. + * :license: BSD, see LICENSE for details. + * + */ + +/* -- main layout ----------------------------------------------------------- */ + +div.clearer { + clear: both; +} + +/* -- relbar ---------------------------------------------------------------- */ + +div.related { + width: 100%; + font-size: 90%; +} + +div.related h3 { + display: none; +} + +div.related ul { + margin: 0; + padding: 0 0 0 10px; + list-style: none; +} + +div.related li { + display: inline; +} + +div.related li.right { + float: right; + margin-right: 5px; +} + +/* -- sidebar --------------------------------------------------------------- */ + +div.sphinxsidebarwrapper { + padding: 10px 5px 0 10px; +} + +div.sphinxsidebar { + float: left; + width: 230px; + margin-left: -100%; + font-size: 90%; + word-wrap: break-word; + overflow-wrap : break-word; +} + +div.sphinxsidebar ul { + list-style: none; +} + +div.sphinxsidebar ul ul, +div.sphinxsidebar ul.want-points { + margin-left: 20px; + list-style: square; +} + +div.sphinxsidebar ul ul { + margin-top: 0; + margin-bottom: 0; +} + +div.sphinxsidebar form { + margin-top: 10px; +} + +div.sphinxsidebar input { + border: 1px solid #98dbcc; + font-family: sans-serif; + font-size: 1em; +} + +div.sphinxsidebar #searchbox form.search { + overflow: hidden; +} + +div.sphinxsidebar #searchbox input[type="text"] { + float: left; + width: 80%; + padding: 0.25em; + box-sizing: border-box; +} + +div.sphinxsidebar #searchbox input[type="submit"] { + float: left; + width: 20%; + border-left: none; + padding: 0.25em; + box-sizing: border-box; +} + + +img { + border: 0; + max-width: 100%; +} + +/* -- search page ----------------------------------------------------------- */ + +ul.search { + margin: 10px 0 0 20px; + padding: 0; +} + +ul.search li { + padding: 5px 0 5px 20px; + background-image: url(file.png); + background-repeat: no-repeat; + background-position: 0 7px; +} + +ul.search li a { + font-weight: bold; +} + +ul.search li div.context { + color: #888; + margin: 2px 0 0 30px; + text-align: left; +} + +ul.keywordmatches li.goodmatch a { + font-weight: bold; +} + +/* -- index page ------------------------------------------------------------ */ + +table.contentstable { + width: 90%; + margin-left: auto; + margin-right: auto; +} + +table.contentstable p.biglink { + line-height: 150%; +} + +a.biglink { + font-size: 1.3em; +} + +span.linkdescr { + font-style: italic; + padding-top: 5px; + font-size: 90%; +} + +/* -- general index --------------------------------------------------------- */ + +table.indextable { + width: 100%; +} + +table.indextable td { + text-align: left; + vertical-align: top; +} + +table.indextable ul { + margin-top: 0; + margin-bottom: 0; + list-style-type: none; +} + +table.indextable > tbody > tr > td > ul { + padding-left: 0em; +} + +table.indextable tr.pcap { + height: 10px; +} + +table.indextable tr.cap { + margin-top: 10px; + background-color: #f2f2f2; +} + +img.toggler { + margin-right: 3px; + margin-top: 3px; + cursor: pointer; +} + +div.modindex-jumpbox { + border-top: 1px solid #ddd; + border-bottom: 1px solid #ddd; + margin: 1em 0 1em 0; + padding: 0.4em; +} + +div.genindex-jumpbox { + border-top: 1px solid #ddd; + border-bottom: 1px solid #ddd; + margin: 1em 0 1em 0; + padding: 0.4em; +} + +/* -- domain module index --------------------------------------------------- */ + +table.modindextable td { + padding: 2px; + border-collapse: collapse; +} + +/* -- general body styles --------------------------------------------------- */ + +div.body { + min-width: 450px; + max-width: 800px; +} + +div.body p, div.body dd, div.body li, div.body blockquote { + -moz-hyphens: auto; + -ms-hyphens: auto; + -webkit-hyphens: auto; + hyphens: auto; +} + +a.headerlink { + visibility: hidden; +} + +h1:hover > a.headerlink, +h2:hover > a.headerlink, +h3:hover > a.headerlink, +h4:hover > a.headerlink, +h5:hover > a.headerlink, +h6:hover > a.headerlink, +dt:hover > a.headerlink, +caption:hover > a.headerlink, +p.caption:hover > a.headerlink, +div.code-block-caption:hover > a.headerlink { + visibility: visible; +} + +div.body p.caption { + text-align: inherit; +} + +div.body td { + text-align: left; +} + +.first { + margin-top: 0 !important; +} + +p.rubric { + margin-top: 30px; + font-weight: bold; +} + +img.align-left, .figure.align-left, object.align-left { + clear: left; + float: left; + margin-right: 1em; +} + +img.align-right, .figure.align-right, object.align-right { + clear: right; + float: right; + margin-left: 1em; +} + +img.align-center, .figure.align-center, object.align-center { + display: block; + margin-left: auto; + margin-right: auto; +} + +.align-left { + text-align: left; +} + +.align-center { + text-align: center; +} + +.align-right { + text-align: right; +} + +/* -- sidebars -------------------------------------------------------------- */ + +div.sidebar { + margin: 0 0 0.5em 1em; + border: 1px solid #ddb; + padding: 7px 7px 0 7px; + background-color: #ffe; + width: 40%; + float: right; +} + +p.sidebar-title { + font-weight: bold; +} + +/* -- topics ---------------------------------------------------------------- */ + +div.topic { + border: 1px solid #ccc; + padding: 7px 7px 0 7px; + margin: 10px 0 10px 0; +} + +p.topic-title { + font-size: 1.1em; + font-weight: bold; + margin-top: 10px; +} + +/* -- admonitions ----------------------------------------------------------- */ + +div.admonition { + margin-top: 10px; + margin-bottom: 10px; + padding: 7px; +} + +div.admonition dt { + font-weight: bold; +} + +div.admonition dl { + margin-bottom: 0; +} + +p.admonition-title { + margin: 0px 10px 5px 0px; + font-weight: bold; +} + +div.body p.centered { + text-align: center; + margin-top: 25px; +} + +/* -- tables ---------------------------------------------------------------- */ + +table.docutils { + border: 0; + border-collapse: collapse; +} + +table.align-center { + margin-left: auto; + margin-right: auto; +} + +table caption span.caption-number { + font-style: italic; +} + +table caption span.caption-text { +} + +table.docutils td, table.docutils th { + padding: 1px 8px 1px 5px; + border-top: 0; + border-left: 0; + border-right: 0; + border-bottom: 1px solid #aaa; +} + +table.footnote td, table.footnote th { + border: 0 !important; +} + +th { + text-align: left; + padding-right: 5px; +} + +table.citation { + border-left: solid 1px gray; + margin-left: 1px; +} + +table.citation td { + border-bottom: none; +} + +/* -- figures --------------------------------------------------------------- */ + +div.figure { + margin: 0.5em; + padding: 0.5em; +} + +div.figure p.caption { + padding: 0.3em; +} + +div.figure p.caption span.caption-number { + font-style: italic; +} + +div.figure p.caption span.caption-text { +} + +/* -- field list styles ----------------------------------------------------- */ + +table.field-list td, table.field-list th { + border: 0 !important; +} + +.field-list ul { + margin: 0; + padding-left: 1em; +} + +.field-list p { + margin: 0; +} + +.field-name { + -moz-hyphens: manual; + -ms-hyphens: manual; + -webkit-hyphens: manual; + hyphens: manual; +} + +/* -- hlist styles ---------------------------------------------------------- */ + +table.hlist td { + vertical-align: top; +} + + +/* -- other body styles ----------------------------------------------------- */ + +ol.arabic { + list-style: decimal; +} + +ol.loweralpha { + list-style: lower-alpha; +} + +ol.upperalpha { + list-style: upper-alpha; +} + +ol.lowerroman { + list-style: lower-roman; +} + +ol.upperroman { + list-style: upper-roman; +} + +dl { + margin-bottom: 15px; +} + +dd p { + margin-top: 0px; +} + +dd ul, dd table { + margin-bottom: 10px; +} + +dd { + margin-top: 3px; + margin-bottom: 10px; + margin-left: 30px; +} + +dt:target, span.highlighted { + background-color: #fbe54e; +} + +rect.highlighted { + fill: #fbe54e; +} + +dl.glossary dt { + font-weight: bold; + font-size: 1.1em; +} + +.optional { + font-size: 1.3em; +} + +.sig-paren { + font-size: larger; +} + +.versionmodified { + font-style: italic; +} + +.system-message { + background-color: #fda; + padding: 5px; + border: 3px solid red; +} + +.footnote:target { + background-color: #ffa; +} + +.line-block { + display: block; + margin-top: 1em; + margin-bottom: 1em; +} + +.line-block .line-block { + margin-top: 0; + margin-bottom: 0; + margin-left: 1.5em; +} + +.guilabel, .menuselection { + font-family: sans-serif; +} + +.accelerator { + text-decoration: underline; +} + +.classifier { + font-style: oblique; +} + +abbr, acronym { + border-bottom: dotted 1px; + cursor: help; +} + +/* -- code displays --------------------------------------------------------- */ + +pre { + overflow: auto; + overflow-y: hidden; /* fixes display issues on Chrome browsers */ +} + +span.pre { + -moz-hyphens: none; + -ms-hyphens: none; + -webkit-hyphens: none; + hyphens: none; +} + +td.linenos pre { + padding: 5px 0px; + border: 0; + background-color: transparent; + color: #aaa; +} + +table.highlighttable { + margin-left: 0.5em; +} + +table.highlighttable td { + padding: 0 0.5em 0 0.5em; +} + +div.code-block-caption { + padding: 2px 5px; + font-size: small; +} + +div.code-block-caption code { + background-color: transparent; +} + +div.code-block-caption + div > div.highlight > pre { + margin-top: 0; +} + +div.code-block-caption span.caption-number { + padding: 0.1em 0.3em; + font-style: italic; +} + +div.code-block-caption span.caption-text { +} + +div.literal-block-wrapper { + padding: 1em 1em 0; +} + +div.literal-block-wrapper div.highlight { + margin: 0; +} + +code.descname { + background-color: transparent; + font-weight: bold; + font-size: 1.2em; +} + +code.descclassname { + background-color: transparent; +} + +code.xref, a code { + background-color: transparent; + font-weight: bold; +} + +h1 code, h2 code, h3 code, h4 code, h5 code, h6 code { + background-color: transparent; +} + +.viewcode-link { + float: right; +} + +.viewcode-back { + float: right; + font-family: sans-serif; +} + +div.viewcode-block:target { + margin: -1px -10px; + padding: 0 10px; +} + +/* -- math display ---------------------------------------------------------- */ + +img.math { + vertical-align: middle; +} + +div.body div.math p { + text-align: center; +} + +span.eqno { + float: right; +} + +span.eqno a.headerlink { + position: relative; + left: 0px; + z-index: 1; +} + +div.math:hover a.headerlink { + visibility: visible; +} + +/* -- printout stylesheet --------------------------------------------------- */ + +@media print { + div.document, + div.documentwrapper, + div.bodywrapper { + margin: 0 !important; + width: 100%; + } + + div.sphinxsidebar, + div.related, + div.footer, + #top-link { + display: none; + } +} \ No newline at end of file diff --git a/_static/comment-bright.png b/_static/comment-bright.png new file mode 100644 index 0000000000000000000000000000000000000000..15e27edb12ac25701ac0ac21b97b52bb4e45415e GIT binary patch literal 756 zcmVgfIX78 z$8Pzv({A~p%??+>KickCb#0FM1rYN=mBmQ&Nwp<#JXUhU;{|)}%&s>suq6lXw*~s{ zvHx}3C%<;wE5CH!BR{p5@ml9ws}y)=QN-kL2?#`S5d*6j zk`h<}j1>tD$b?4D^N9w}-k)bxXxFg>+#kme^xx#qg6FI-%iv2U{0h(Y)cs%5a|m%Pn_K3X_bDJ>EH#(Fb73Z zfUt2Q3B>N+ot3qb*DqbTZpFIn4a!#_R-}{?-~Hs=xSS6p&$sZ-k1zDdtqU`Y@`#qL z&zv-~)Q#JCU(dI)Hf;$CEnK=6CK50}q7~wdbI->?E07bJ0R;!GSQTs5Am`#;*WHjvHRvY?&$Lm-vq1a_BzocI^ULXV!lbMd%|^B#fY;XX)n<&R^L z=84u1e_3ziq;Hz-*k5~zwY3*oDKt0;bM@M@@89;@m*4RFgvvM_4;5LB!@OB@^WbVT zjl{t;a8_>od-~P4 m{5|DvB&z#xT;*OnJqG}gk~_7HcNkCr0000W zanA~u9RIXo;n7c96&U)YLgs-FGlx~*_c{Jgvesu1E5(8YEf&5wF=YFPcRe@1=MJmi zag(L*xc2r0(slpcN!vC5CUju;vHJkHc*&70_n2OZsK%O~A=!+YIw z7zLLl7~Z+~RgWOQ=MI6$#0pvpu$Q43 zP@36QAmu6!_9NPM?o<1_!+stoVRRZbW9#SPe!n;#A_6m8f}|xN1;H{`0RoXQ2LM47 zt(g;iZ6|pCb@h2xk&(}S3=EVBUO0e90m2Lp5CB<(SPIaB;n4))3JB87Or#XPOPcum z?<^(g+m9}VNn4Y&B`g8h{t_$+RB1%HKRY6fjtd-<7&EsU;vs0GM(Lmbhi%Gwcfs0FTF}T zL{_M6Go&E0Eg8FuB*(Yn+Z*RVTBE@10eIOb3El^MhO`GabDll(V0&FlJi2k^;q8af zkENdk2}x2)_KVp`5OAwXZM;dG0?M-S)xE1IKDi6BY@5%Or?#aZ9$gcX)dPZ&wA1a< z$rFXHPn|TBf`e?>Are8sKtKrKcjF$i^lp!zkL?C|y^vlHr1HXeVJd;1I~g&Ob-q)& z(fn7s-KI}G{wnKzg_U5G(V%bX6uk zIa+<@>rdmZYd!9Y=C0cuchrbIjuRB_Wq{-RXlic?flu1*_ux}x%(HDH&nT`k^xCeC ziHi1!ChH*sQ6|UqJpTTzX$aw8e(UfcS^f;6yBWd+(1-70zU(rtxtqR%j z-lsH|CKQJXqD{+F7V0OTv8@{~(wp(`oIP^ZykMWgR>&|RsklFMCnOo&Bd{le} zV5F6424Qzl;o2G%oVvmHgRDP9!=rK8fy^!yV8y*4p=??uIRrrr0?>O!(z*g5AvL2!4z0{sq%vhG*Po}`a<6%kTK5TNhtC8}rXNu&h^QH4A&Sk~Autm*s~45(H7+0bi^MraaRVzr05hQ3iK?j` zR#U@^i0WhkIHTg29u~|ypU?sXCQEQgXfObPW;+0YAF;|5XyaMAEM0sQ@4-xCZe=0e z7r$ofiAxn@O5#RodD8rh5D@nKQ;?lcf@tg4o+Wp44aMl~c47azN_(im0N)7OqdPBC zGw;353_o$DqGRDhuhU$Eaj!@m000000NkvXXu0mjfjZ7Z_ literal 0 HcmV?d00001 diff --git a/_static/custom.css b/_static/custom.css new file mode 100644 index 0000000..2a924f1 --- /dev/null +++ b/_static/custom.css @@ -0,0 +1 @@ +/* This file intentionally left blank. */ diff --git a/_static/doctools.js b/_static/doctools.js new file mode 100644 index 0000000..344db17 --- /dev/null +++ b/_static/doctools.js @@ -0,0 +1,315 @@ +/* + * doctools.js + * ~~~~~~~~~~~ + * + * Sphinx JavaScript utilities for all documentation. + * + * :copyright: Copyright 2007-2019 by the Sphinx team, see AUTHORS. + * :license: BSD, see LICENSE for details. + * + */ + +/** + * select a different prefix for underscore + */ +$u = _.noConflict(); + +/** + * make the code below compatible with browsers without + * an installed firebug like debugger +if (!window.console || !console.firebug) { + var names = ["log", "debug", "info", "warn", "error", "assert", "dir", + "dirxml", "group", "groupEnd", "time", "timeEnd", "count", "trace", + "profile", "profileEnd"]; + window.console = {}; + for (var i = 0; i < names.length; ++i) + window.console[names[i]] = function() {}; +} + */ + +/** + * small helper function to urldecode strings + */ +jQuery.urldecode = function(x) { + return decodeURIComponent(x).replace(/\+/g, ' '); +}; + +/** + * small helper function to urlencode strings + */ +jQuery.urlencode = encodeURIComponent; + +/** + * This function returns the parsed url parameters of the + * current request. Multiple values per key are supported, + * it will always return arrays of strings for the value parts. + */ +jQuery.getQueryParameters = function(s) { + if (typeof s === 'undefined') + s = document.location.search; + var parts = s.substr(s.indexOf('?') + 1).split('&'); + var result = {}; + for (var i = 0; i < parts.length; i++) { + var tmp = parts[i].split('=', 2); + var key = jQuery.urldecode(tmp[0]); + var value = jQuery.urldecode(tmp[1]); + if (key in result) + result[key].push(value); + else + result[key] = [value]; + } + return result; +}; + +/** + * highlight a given string on a jquery object by wrapping it in + * span elements with the given class name. + */ +jQuery.fn.highlightText = function(text, className) { + function highlight(node, addItems) { + if (node.nodeType === 3) { + var val = node.nodeValue; + var pos = val.toLowerCase().indexOf(text); + if (pos >= 0 && + !jQuery(node.parentNode).hasClass(className) && + !jQuery(node.parentNode).hasClass("nohighlight")) { + var span; + var isInSVG = jQuery(node).closest("body, svg, foreignObject").is("svg"); + if (isInSVG) { + span = document.createElementNS("http://www.w3.org/2000/svg", "tspan"); + } else { + span = document.createElement("span"); + span.className = className; + } + span.appendChild(document.createTextNode(val.substr(pos, text.length))); + node.parentNode.insertBefore(span, node.parentNode.insertBefore( + document.createTextNode(val.substr(pos + text.length)), + node.nextSibling)); + node.nodeValue = val.substr(0, pos); + if (isInSVG) { + var bbox = span.getBBox(); + var rect = document.createElementNS("http://www.w3.org/2000/svg", "rect"); + rect.x.baseVal.value = bbox.x; + rect.y.baseVal.value = bbox.y; + rect.width.baseVal.value = bbox.width; + rect.height.baseVal.value = bbox.height; + rect.setAttribute('class', className); + var parentOfText = node.parentNode.parentNode; + addItems.push({ + "parent": node.parentNode, + "target": rect}); + } + } + } + else if (!jQuery(node).is("button, select, textarea")) { + jQuery.each(node.childNodes, function() { + highlight(this, addItems); + }); + } + } + var addItems = []; + var result = this.each(function() { + highlight(this, addItems); + }); + for (var i = 0; i < addItems.length; ++i) { + jQuery(addItems[i].parent).before(addItems[i].target); + } + return result; +}; + +/* + * backward compatibility for jQuery.browser + * This will be supported until firefox bug is fixed. + */ +if (!jQuery.browser) { + jQuery.uaMatch = function(ua) { + ua = ua.toLowerCase(); + + var match = /(chrome)[ \/]([\w.]+)/.exec(ua) || + /(webkit)[ \/]([\w.]+)/.exec(ua) || + /(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ua) || + /(msie) ([\w.]+)/.exec(ua) || + ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua) || + []; + + return { + browser: match[ 1 ] || "", + version: match[ 2 ] || "0" + }; + }; + jQuery.browser = {}; + jQuery.browser[jQuery.uaMatch(navigator.userAgent).browser] = true; +} + +/** + * Small JavaScript module for the documentation. + */ +var Documentation = { + + init : function() { + this.fixFirefoxAnchorBug(); + this.highlightSearchWords(); + this.initIndexTable(); + if (DOCUMENTATION_OPTIONS.NAVIGATION_WITH_KEYS) { + this.initOnKeyListeners(); + } + }, + + /** + * i18n support + */ + TRANSLATIONS : {}, + PLURAL_EXPR : function(n) { return n === 1 ? 0 : 1; }, + LOCALE : 'unknown', + + // gettext and ngettext don't access this so that the functions + // can safely bound to a different name (_ = Documentation.gettext) + gettext : function(string) { + var translated = Documentation.TRANSLATIONS[string]; + if (typeof translated === 'undefined') + return string; + return (typeof translated === 'string') ? translated : translated[0]; + }, + + ngettext : function(singular, plural, n) { + var translated = Documentation.TRANSLATIONS[singular]; + if (typeof translated === 'undefined') + return (n == 1) ? singular : plural; + return translated[Documentation.PLURALEXPR(n)]; + }, + + addTranslations : function(catalog) { + for (var key in catalog.messages) + this.TRANSLATIONS[key] = catalog.messages[key]; + this.PLURAL_EXPR = new Function('n', 'return +(' + catalog.plural_expr + ')'); + this.LOCALE = catalog.locale; + }, + + /** + * add context elements like header anchor links + */ + addContextElements : function() { + $('div[id] > :header:first').each(function() { + $('\u00B6'). + attr('href', '#' + this.id). + attr('title', _('Permalink to this headline')). + appendTo(this); + }); + $('dt[id]').each(function() { + $('\u00B6'). + attr('href', '#' + this.id). + attr('title', _('Permalink to this definition')). + appendTo(this); + }); + }, + + /** + * workaround a firefox stupidity + * see: https://bugzilla.mozilla.org/show_bug.cgi?id=645075 + */ + fixFirefoxAnchorBug : function() { + if (document.location.hash && $.browser.mozilla) + window.setTimeout(function() { + document.location.href += ''; + }, 10); + }, + + /** + * highlight the search words provided in the url in the text + */ + highlightSearchWords : function() { + var params = $.getQueryParameters(); + var terms = (params.highlight) ? params.highlight[0].split(/\s+/) : []; + if (terms.length) { + var body = $('div.body'); + if (!body.length) { + body = $('body'); + } + window.setTimeout(function() { + $.each(terms, function() { + body.highlightText(this.toLowerCase(), 'highlighted'); + }); + }, 10); + $('') + .appendTo($('#searchbox')); + } + }, + + /** + * init the domain index toggle buttons + */ + initIndexTable : function() { + var togglers = $('img.toggler').click(function() { + var src = $(this).attr('src'); + var idnum = $(this).attr('id').substr(7); + $('tr.cg-' + idnum).toggle(); + if (src.substr(-9) === 'minus.png') + $(this).attr('src', src.substr(0, src.length-9) + 'plus.png'); + else + $(this).attr('src', src.substr(0, src.length-8) + 'minus.png'); + }).css('display', ''); + if (DOCUMENTATION_OPTIONS.COLLAPSE_INDEX) { + togglers.click(); + } + }, + + /** + * helper function to hide the search marks again + */ + hideSearchWords : function() { + $('#searchbox .highlight-link').fadeOut(300); + $('span.highlighted').removeClass('highlighted'); + }, + + /** + * make the url absolute + */ + makeURL : function(relativeURL) { + return DOCUMENTATION_OPTIONS.URL_ROOT + '/' + relativeURL; + }, + + /** + * get the current relative url + */ + getCurrentURL : function() { + var path = document.location.pathname; + var parts = path.split(/\//); + $.each(DOCUMENTATION_OPTIONS.URL_ROOT.split(/\//), function() { + if (this === '..') + parts.pop(); + }); + var url = parts.join('/'); + return path.substring(url.lastIndexOf('/') + 1, path.length - 1); + }, + + initOnKeyListeners: function() { + $(document).keyup(function(event) { + var activeElementType = document.activeElement.tagName; + // don't navigate when in search box or textarea + if (activeElementType !== 'TEXTAREA' && activeElementType !== 'INPUT' && activeElementType !== 'SELECT') { + switch (event.keyCode) { + case 37: // left + var prevHref = $('link[rel="prev"]').prop('href'); + if (prevHref) { + window.location.href = prevHref; + return false; + } + case 39: // right + var nextHref = $('link[rel="next"]').prop('href'); + if (nextHref) { + window.location.href = nextHref; + return false; + } + } + } + }); + } +}; + +// quick alias for translations +_ = Documentation.gettext; + +$(document).ready(function() { + Documentation.init(); +}); diff --git a/_static/documentation_options.js b/_static/documentation_options.js new file mode 100644 index 0000000..d28647e --- /dev/null +++ b/_static/documentation_options.js @@ -0,0 +1,10 @@ +var DOCUMENTATION_OPTIONS = { + URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'), + VERSION: '', + LANGUAGE: 'None', + COLLAPSE_INDEX: false, + FILE_SUFFIX: '.html', + HAS_SOURCE: true, + SOURCELINK_SUFFIX: '.txt', + NAVIGATION_WITH_KEYS: false, +}; \ No newline at end of file diff --git a/_static/down-pressed.png b/_static/down-pressed.png new file mode 100644 index 0000000000000000000000000000000000000000..5756c8cad8854722893dc70b9eb4bb0400343a39 GIT binary patch literal 222 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`OFdm2Ln;`PZ^+1>KjR?B@S0W7 z%OS_REiHONoJ6{+Ks@6k3590|7k9F+ddB6!zw3#&!aw#S`x}3V3&=A(a#84O-&F7T z^k3tZB;&iR9siw0|F|E|DAL<8r-F4!1H-;1{e*~yAKZN5f0|Ei6yUmR#Is)EM(Po_ zi`qJR6|P<~+)N+kSDgL7AjdIC_!O7Q?eGb+L+qOjm{~LLinM4NHn7U%HcK%uoMYO5 VJ~8zD2B3o(JYD@<);T3K0RV0%P>BEl literal 0 HcmV?d00001 diff --git a/_static/down.png b/_static/down.png new file mode 100644 index 0000000000000000000000000000000000000000..1b3bdad2ceffae91cee61b32f3295f9bbe646e48 GIT binary patch literal 202 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!60wlNoGJgf6CVIL!hEy=F?b*7pIY7kW{q%Rg zx!yQ<9v8bmJwa`TQk7YSw}WVQ()mRdQ;TC;* literal 0 HcmV?d00001 diff --git a/_static/file.png b/_static/file.png new file mode 100644 index 0000000000000000000000000000000000000000..a858a410e4faa62ce324d814e4b816fff83a6fb3 GIT binary patch literal 286 zcmV+(0pb3MP)s`hMrGg#P~ix$^RISR_I47Y|r1 z_CyJOe}D1){SET-^Amu_i71Lt6eYfZjRyw@I6OQAIXXHDfiX^GbOlHe=Ae4>0m)d(f|Me07*qoM6N<$f}vM^LjV8( literal 0 HcmV?d00001 diff --git a/_static/jquery-3.2.1.js b/_static/jquery-3.2.1.js new file mode 100644 index 0000000..d2d8ca4 --- /dev/null +++ b/_static/jquery-3.2.1.js @@ -0,0 +1,10253 @@ +/*! + * jQuery JavaScript Library v3.2.1 + * https://jquery.com/ + * + * Includes Sizzle.js + * https://sizzlejs.com/ + * + * Copyright JS Foundation and other contributors + * Released under the MIT license + * https://jquery.org/license + * + * Date: 2017-03-20T18:59Z + */ +( function( global, factory ) { + + "use strict"; + + if ( typeof module === "object" && typeof module.exports === "object" ) { + + // For CommonJS and CommonJS-like environments where a proper `window` + // is present, execute the factory and get jQuery. + // For environments that do not have a `window` with a `document` + // (such as Node.js), expose a factory as module.exports. + // This accentuates the need for the creation of a real `window`. + // e.g. var jQuery = require("jquery")(window); + // See ticket #14549 for more info. + module.exports = global.document ? + factory( global, true ) : + function( w ) { + if ( !w.document ) { + throw new Error( "jQuery requires a window with a document" ); + } + return factory( w ); + }; + } else { + factory( global ); + } + +// Pass this if window is not defined yet +} )( typeof window !== "undefined" ? window : this, function( window, noGlobal ) { + +// Edge <= 12 - 13+, Firefox <=18 - 45+, IE 10 - 11, Safari 5.1 - 9+, iOS 6 - 9.1 +// throw exceptions when non-strict code (e.g., ASP.NET 4.5) accesses strict mode +// arguments.callee.caller (trac-13335). But as of jQuery 3.0 (2016), strict mode should be common +// enough that all such attempts are guarded in a try block. +"use strict"; + +var arr = []; + +var document = window.document; + +var getProto = Object.getPrototypeOf; + +var slice = arr.slice; + +var concat = arr.concat; + +var push = arr.push; + +var indexOf = arr.indexOf; + +var class2type = {}; + +var toString = class2type.toString; + +var hasOwn = class2type.hasOwnProperty; + +var fnToString = hasOwn.toString; + +var ObjectFunctionString = fnToString.call( Object ); + +var support = {}; + + + + function DOMEval( code, doc ) { + doc = doc || document; + + var script = doc.createElement( "script" ); + + script.text = code; + doc.head.appendChild( script ).parentNode.removeChild( script ); + } +/* global Symbol */ +// Defining this global in .eslintrc.json would create a danger of using the global +// unguarded in another place, it seems safer to define global only for this module + + + +var + version = "3.2.1", + + // Define a local copy of jQuery + jQuery = function( selector, context ) { + + // The jQuery object is actually just the init constructor 'enhanced' + // Need init if jQuery is called (just allow error to be thrown if not included) + return new jQuery.fn.init( selector, context ); + }, + + // Support: Android <=4.0 only + // Make sure we trim BOM and NBSP + rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, + + // Matches dashed string for camelizing + rmsPrefix = /^-ms-/, + rdashAlpha = /-([a-z])/g, + + // Used by jQuery.camelCase as callback to replace() + fcamelCase = function( all, letter ) { + return letter.toUpperCase(); + }; + +jQuery.fn = jQuery.prototype = { + + // The current version of jQuery being used + jquery: version, + + constructor: jQuery, + + // The default length of a jQuery object is 0 + length: 0, + + toArray: function() { + return slice.call( this ); + }, + + // Get the Nth element in the matched element set OR + // Get the whole matched element set as a clean array + get: function( num ) { + + // Return all the elements in a clean array + if ( num == null ) { + return slice.call( this ); + } + + // Return just the one element from the set + return num < 0 ? this[ num + this.length ] : this[ num ]; + }, + + // Take an array of elements and push it onto the stack + // (returning the new matched element set) + pushStack: function( elems ) { + + // Build a new jQuery matched element set + var ret = jQuery.merge( this.constructor(), elems ); + + // Add the old object onto the stack (as a reference) + ret.prevObject = this; + + // Return the newly-formed element set + return ret; + }, + + // Execute a callback for every element in the matched set. + each: function( callback ) { + return jQuery.each( this, callback ); + }, + + map: function( callback ) { + return this.pushStack( jQuery.map( this, function( elem, i ) { + return callback.call( elem, i, elem ); + } ) ); + }, + + slice: function() { + return this.pushStack( slice.apply( this, arguments ) ); + }, + + first: function() { + return this.eq( 0 ); + }, + + last: function() { + return this.eq( -1 ); + }, + + eq: function( i ) { + var len = this.length, + j = +i + ( i < 0 ? len : 0 ); + return this.pushStack( j >= 0 && j < len ? [ this[ j ] ] : [] ); + }, + + end: function() { + return this.prevObject || this.constructor(); + }, + + // For internal use only. + // Behaves like an Array's method, not like a jQuery method. + push: push, + sort: arr.sort, + splice: arr.splice +}; + +jQuery.extend = jQuery.fn.extend = function() { + var options, name, src, copy, copyIsArray, clone, + target = arguments[ 0 ] || {}, + i = 1, + length = arguments.length, + deep = false; + + // Handle a deep copy situation + if ( typeof target === "boolean" ) { + deep = target; + + // Skip the boolean and the target + target = arguments[ i ] || {}; + i++; + } + + // Handle case when target is a string or something (possible in deep copy) + if ( typeof target !== "object" && !jQuery.isFunction( target ) ) { + target = {}; + } + + // Extend jQuery itself if only one argument is passed + if ( i === length ) { + target = this; + i--; + } + + for ( ; i < length; i++ ) { + + // Only deal with non-null/undefined values + if ( ( options = arguments[ i ] ) != null ) { + + // Extend the base object + for ( name in options ) { + src = target[ name ]; + copy = options[ name ]; + + // Prevent never-ending loop + if ( target === copy ) { + continue; + } + + // Recurse if we're merging plain objects or arrays + if ( deep && copy && ( jQuery.isPlainObject( copy ) || + ( copyIsArray = Array.isArray( copy ) ) ) ) { + + if ( copyIsArray ) { + copyIsArray = false; + clone = src && Array.isArray( src ) ? src : []; + + } else { + clone = src && jQuery.isPlainObject( src ) ? src : {}; + } + + // Never move original objects, clone them + target[ name ] = jQuery.extend( deep, clone, copy ); + + // Don't bring in undefined values + } else if ( copy !== undefined ) { + target[ name ] = copy; + } + } + } + } + + // Return the modified object + return target; +}; + +jQuery.extend( { + + // Unique for each copy of jQuery on the page + expando: "jQuery" + ( version + Math.random() ).replace( /\D/g, "" ), + + // Assume jQuery is ready without the ready module + isReady: true, + + error: function( msg ) { + throw new Error( msg ); + }, + + noop: function() {}, + + isFunction: function( obj ) { + return jQuery.type( obj ) === "function"; + }, + + isWindow: function( obj ) { + return obj != null && obj === obj.window; + }, + + isNumeric: function( obj ) { + + // As of jQuery 3.0, isNumeric is limited to + // strings and numbers (primitives or objects) + // that can be coerced to finite numbers (gh-2662) + var type = jQuery.type( obj ); + return ( type === "number" || type === "string" ) && + + // parseFloat NaNs numeric-cast false positives ("") + // ...but misinterprets leading-number strings, particularly hex literals ("0x...") + // subtraction forces infinities to NaN + !isNaN( obj - parseFloat( obj ) ); + }, + + isPlainObject: function( obj ) { + var proto, Ctor; + + // Detect obvious negatives + // Use toString instead of jQuery.type to catch host objects + if ( !obj || toString.call( obj ) !== "[object Object]" ) { + return false; + } + + proto = getProto( obj ); + + // Objects with no prototype (e.g., `Object.create( null )`) are plain + if ( !proto ) { + return true; + } + + // Objects with prototype are plain iff they were constructed by a global Object function + Ctor = hasOwn.call( proto, "constructor" ) && proto.constructor; + return typeof Ctor === "function" && fnToString.call( Ctor ) === ObjectFunctionString; + }, + + isEmptyObject: function( obj ) { + + /* eslint-disable no-unused-vars */ + // See https://github.com/eslint/eslint/issues/6125 + var name; + + for ( name in obj ) { + return false; + } + return true; + }, + + type: function( obj ) { + if ( obj == null ) { + return obj + ""; + } + + // Support: Android <=2.3 only (functionish RegExp) + return typeof obj === "object" || typeof obj === "function" ? + class2type[ toString.call( obj ) ] || "object" : + typeof obj; + }, + + // Evaluates a script in a global context + globalEval: function( code ) { + DOMEval( code ); + }, + + // Convert dashed to camelCase; used by the css and data modules + // Support: IE <=9 - 11, Edge 12 - 13 + // Microsoft forgot to hump their vendor prefix (#9572) + camelCase: function( string ) { + return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase ); + }, + + each: function( obj, callback ) { + var length, i = 0; + + if ( isArrayLike( obj ) ) { + length = obj.length; + for ( ; i < length; i++ ) { + if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) { + break; + } + } + } else { + for ( i in obj ) { + if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) { + break; + } + } + } + + return obj; + }, + + // Support: Android <=4.0 only + trim: function( text ) { + return text == null ? + "" : + ( text + "" ).replace( rtrim, "" ); + }, + + // results is for internal usage only + makeArray: function( arr, results ) { + var ret = results || []; + + if ( arr != null ) { + if ( isArrayLike( Object( arr ) ) ) { + jQuery.merge( ret, + typeof arr === "string" ? + [ arr ] : arr + ); + } else { + push.call( ret, arr ); + } + } + + return ret; + }, + + inArray: function( elem, arr, i ) { + return arr == null ? -1 : indexOf.call( arr, elem, i ); + }, + + // Support: Android <=4.0 only, PhantomJS 1 only + // push.apply(_, arraylike) throws on ancient WebKit + merge: function( first, second ) { + var len = +second.length, + j = 0, + i = first.length; + + for ( ; j < len; j++ ) { + first[ i++ ] = second[ j ]; + } + + first.length = i; + + return first; + }, + + grep: function( elems, callback, invert ) { + var callbackInverse, + matches = [], + i = 0, + length = elems.length, + callbackExpect = !invert; + + // Go through the array, only saving the items + // that pass the validator function + for ( ; i < length; i++ ) { + callbackInverse = !callback( elems[ i ], i ); + if ( callbackInverse !== callbackExpect ) { + matches.push( elems[ i ] ); + } + } + + return matches; + }, + + // arg is for internal usage only + map: function( elems, callback, arg ) { + var length, value, + i = 0, + ret = []; + + // Go through the array, translating each of the items to their new values + if ( isArrayLike( elems ) ) { + length = elems.length; + for ( ; i < length; i++ ) { + value = callback( elems[ i ], i, arg ); + + if ( value != null ) { + ret.push( value ); + } + } + + // Go through every key on the object, + } else { + for ( i in elems ) { + value = callback( elems[ i ], i, arg ); + + if ( value != null ) { + ret.push( value ); + } + } + } + + // Flatten any nested arrays + return concat.apply( [], ret ); + }, + + // A global GUID counter for objects + guid: 1, + + // Bind a function to a context, optionally partially applying any + // arguments. + proxy: function( fn, context ) { + var tmp, args, proxy; + + if ( typeof context === "string" ) { + tmp = fn[ context ]; + context = fn; + fn = tmp; + } + + // Quick check to determine if target is callable, in the spec + // this throws a TypeError, but we will just return undefined. + if ( !jQuery.isFunction( fn ) ) { + return undefined; + } + + // Simulated bind + args = slice.call( arguments, 2 ); + proxy = function() { + return fn.apply( context || this, args.concat( slice.call( arguments ) ) ); + }; + + // Set the guid of unique handler to the same of original handler, so it can be removed + proxy.guid = fn.guid = fn.guid || jQuery.guid++; + + return proxy; + }, + + now: Date.now, + + // jQuery.support is not used in Core but other projects attach their + // properties to it so it needs to exist. + support: support +} ); + +if ( typeof Symbol === "function" ) { + jQuery.fn[ Symbol.iterator ] = arr[ Symbol.iterator ]; +} + +// Populate the class2type map +jQuery.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( " " ), +function( i, name ) { + class2type[ "[object " + name + "]" ] = name.toLowerCase(); +} ); + +function isArrayLike( obj ) { + + // Support: real iOS 8.2 only (not reproducible in simulator) + // `in` check used to prevent JIT error (gh-2145) + // hasOwn isn't used here due to false negatives + // regarding Nodelist length in IE + var length = !!obj && "length" in obj && obj.length, + type = jQuery.type( obj ); + + if ( type === "function" || jQuery.isWindow( obj ) ) { + return false; + } + + return type === "array" || length === 0 || + typeof length === "number" && length > 0 && ( length - 1 ) in obj; +} +var Sizzle = +/*! + * Sizzle CSS Selector Engine v2.3.3 + * https://sizzlejs.com/ + * + * Copyright jQuery Foundation and other contributors + * Released under the MIT license + * http://jquery.org/license + * + * Date: 2016-08-08 + */ +(function( window ) { + +var i, + support, + Expr, + getText, + isXML, + tokenize, + compile, + select, + outermostContext, + sortInput, + hasDuplicate, + + // Local document vars + setDocument, + document, + docElem, + documentIsHTML, + rbuggyQSA, + rbuggyMatches, + matches, + contains, + + // Instance-specific data + expando = "sizzle" + 1 * new Date(), + preferredDoc = window.document, + dirruns = 0, + done = 0, + classCache = createCache(), + tokenCache = createCache(), + compilerCache = createCache(), + sortOrder = function( a, b ) { + if ( a === b ) { + hasDuplicate = true; + } + return 0; + }, + + // Instance methods + hasOwn = ({}).hasOwnProperty, + arr = [], + pop = arr.pop, + push_native = arr.push, + push = arr.push, + slice = arr.slice, + // Use a stripped-down indexOf as it's faster than native + // https://jsperf.com/thor-indexof-vs-for/5 + indexOf = function( list, elem ) { + var i = 0, + len = list.length; + for ( ; i < len; i++ ) { + if ( list[i] === elem ) { + return i; + } + } + return -1; + }, + + booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped", + + // Regular expressions + + // http://www.w3.org/TR/css3-selectors/#whitespace + whitespace = "[\\x20\\t\\r\\n\\f]", + + // http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier + identifier = "(?:\\\\.|[\\w-]|[^\0-\\xa0])+", + + // Attribute selectors: http://www.w3.org/TR/selectors/#attribute-selectors + attributes = "\\[" + whitespace + "*(" + identifier + ")(?:" + whitespace + + // Operator (capture 2) + "*([*^$|!~]?=)" + whitespace + + // "Attribute values must be CSS identifiers [capture 5] or strings [capture 3 or capture 4]" + "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + identifier + "))|)" + whitespace + + "*\\]", + + pseudos = ":(" + identifier + ")(?:\\((" + + // To reduce the number of selectors needing tokenize in the preFilter, prefer arguments: + // 1. quoted (capture 3; capture 4 or capture 5) + "('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|" + + // 2. simple (capture 6) + "((?:\\\\.|[^\\\\()[\\]]|" + attributes + ")*)|" + + // 3. anything else (capture 2) + ".*" + + ")\\)|)", + + // Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter + rwhitespace = new RegExp( whitespace + "+", "g" ), + rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g" ), + + rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ), + rcombinators = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*" ), + + rattributeQuotes = new RegExp( "=" + whitespace + "*([^\\]'\"]*?)" + whitespace + "*\\]", "g" ), + + rpseudo = new RegExp( pseudos ), + ridentifier = new RegExp( "^" + identifier + "$" ), + + matchExpr = { + "ID": new RegExp( "^#(" + identifier + ")" ), + "CLASS": new RegExp( "^\\.(" + identifier + ")" ), + "TAG": new RegExp( "^(" + identifier + "|[*])" ), + "ATTR": new RegExp( "^" + attributes ), + "PSEUDO": new RegExp( "^" + pseudos ), + "CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + whitespace + + "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace + + "*(\\d+)|))" + whitespace + "*\\)|)", "i" ), + "bool": new RegExp( "^(?:" + booleans + ")$", "i" ), + // For use in libraries implementing .is() + // We use this for POS matching in `select` + "needsContext": new RegExp( "^" + whitespace + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + + whitespace + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" ) + }, + + rinputs = /^(?:input|select|textarea|button)$/i, + rheader = /^h\d$/i, + + rnative = /^[^{]+\{\s*\[native \w/, + + // Easily-parseable/retrievable ID or TAG or CLASS selectors + rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, + + rsibling = /[+~]/, + + // CSS escapes + // http://www.w3.org/TR/CSS21/syndata.html#escaped-characters + runescape = new RegExp( "\\\\([\\da-f]{1,6}" + whitespace + "?|(" + whitespace + ")|.)", "ig" ), + funescape = function( _, escaped, escapedWhitespace ) { + var high = "0x" + escaped - 0x10000; + // NaN means non-codepoint + // Support: Firefox<24 + // Workaround erroneous numeric interpretation of +"0x" + return high !== high || escapedWhitespace ? + escaped : + high < 0 ? + // BMP codepoint + String.fromCharCode( high + 0x10000 ) : + // Supplemental Plane codepoint (surrogate pair) + String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 ); + }, + + // CSS string/identifier serialization + // https://drafts.csswg.org/cssom/#common-serializing-idioms + rcssescape = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g, + fcssescape = function( ch, asCodePoint ) { + if ( asCodePoint ) { + + // U+0000 NULL becomes U+FFFD REPLACEMENT CHARACTER + if ( ch === "\0" ) { + return "\uFFFD"; + } + + // Control characters and (dependent upon position) numbers get escaped as code points + return ch.slice( 0, -1 ) + "\\" + ch.charCodeAt( ch.length - 1 ).toString( 16 ) + " "; + } + + // Other potentially-special ASCII characters get backslash-escaped + return "\\" + ch; + }, + + // Used for iframes + // See setDocument() + // Removing the function wrapper causes a "Permission Denied" + // error in IE + unloadHandler = function() { + setDocument(); + }, + + disabledAncestor = addCombinator( + function( elem ) { + return elem.disabled === true && ("form" in elem || "label" in elem); + }, + { dir: "parentNode", next: "legend" } + ); + +// Optimize for push.apply( _, NodeList ) +try { + push.apply( + (arr = slice.call( preferredDoc.childNodes )), + preferredDoc.childNodes + ); + // Support: Android<4.0 + // Detect silently failing push.apply + arr[ preferredDoc.childNodes.length ].nodeType; +} catch ( e ) { + push = { apply: arr.length ? + + // Leverage slice if possible + function( target, els ) { + push_native.apply( target, slice.call(els) ); + } : + + // Support: IE<9 + // Otherwise append directly + function( target, els ) { + var j = target.length, + i = 0; + // Can't trust NodeList.length + while ( (target[j++] = els[i++]) ) {} + target.length = j - 1; + } + }; +} + +function Sizzle( selector, context, results, seed ) { + var m, i, elem, nid, match, groups, newSelector, + newContext = context && context.ownerDocument, + + // nodeType defaults to 9, since context defaults to document + nodeType = context ? context.nodeType : 9; + + results = results || []; + + // Return early from calls with invalid selector or context + if ( typeof selector !== "string" || !selector || + nodeType !== 1 && nodeType !== 9 && nodeType !== 11 ) { + + return results; + } + + // Try to shortcut find operations (as opposed to filters) in HTML documents + if ( !seed ) { + + if ( ( context ? context.ownerDocument || context : preferredDoc ) !== document ) { + setDocument( context ); + } + context = context || document; + + if ( documentIsHTML ) { + + // If the selector is sufficiently simple, try using a "get*By*" DOM method + // (excepting DocumentFragment context, where the methods don't exist) + if ( nodeType !== 11 && (match = rquickExpr.exec( selector )) ) { + + // ID selector + if ( (m = match[1]) ) { + + // Document context + if ( nodeType === 9 ) { + if ( (elem = context.getElementById( m )) ) { + + // Support: IE, Opera, Webkit + // TODO: identify versions + // getElementById can match elements by name instead of ID + if ( elem.id === m ) { + results.push( elem ); + return results; + } + } else { + return results; + } + + // Element context + } else { + + // Support: IE, Opera, Webkit + // TODO: identify versions + // getElementById can match elements by name instead of ID + if ( newContext && (elem = newContext.getElementById( m )) && + contains( context, elem ) && + elem.id === m ) { + + results.push( elem ); + return results; + } + } + + // Type selector + } else if ( match[2] ) { + push.apply( results, context.getElementsByTagName( selector ) ); + return results; + + // Class selector + } else if ( (m = match[3]) && support.getElementsByClassName && + context.getElementsByClassName ) { + + push.apply( results, context.getElementsByClassName( m ) ); + return results; + } + } + + // Take advantage of querySelectorAll + if ( support.qsa && + !compilerCache[ selector + " " ] && + (!rbuggyQSA || !rbuggyQSA.test( selector )) ) { + + if ( nodeType !== 1 ) { + newContext = context; + newSelector = selector; + + // qSA looks outside Element context, which is not what we want + // Thanks to Andrew Dupont for this workaround technique + // Support: IE <=8 + // Exclude object elements + } else if ( context.nodeName.toLowerCase() !== "object" ) { + + // Capture the context ID, setting it first if necessary + if ( (nid = context.getAttribute( "id" )) ) { + nid = nid.replace( rcssescape, fcssescape ); + } else { + context.setAttribute( "id", (nid = expando) ); + } + + // Prefix every selector in the list + groups = tokenize( selector ); + i = groups.length; + while ( i-- ) { + groups[i] = "#" + nid + " " + toSelector( groups[i] ); + } + newSelector = groups.join( "," ); + + // Expand context for sibling selectors + newContext = rsibling.test( selector ) && testContext( context.parentNode ) || + context; + } + + if ( newSelector ) { + try { + push.apply( results, + newContext.querySelectorAll( newSelector ) + ); + return results; + } catch ( qsaError ) { + } finally { + if ( nid === expando ) { + context.removeAttribute( "id" ); + } + } + } + } + } + } + + // All others + return select( selector.replace( rtrim, "$1" ), context, results, seed ); +} + +/** + * Create key-value caches of limited size + * @returns {function(string, object)} Returns the Object data after storing it on itself with + * property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength) + * deleting the oldest entry + */ +function createCache() { + var keys = []; + + function cache( key, value ) { + // Use (key + " ") to avoid collision with native prototype properties (see Issue #157) + if ( keys.push( key + " " ) > Expr.cacheLength ) { + // Only keep the most recent entries + delete cache[ keys.shift() ]; + } + return (cache[ key + " " ] = value); + } + return cache; +} + +/** + * Mark a function for special use by Sizzle + * @param {Function} fn The function to mark + */ +function markFunction( fn ) { + fn[ expando ] = true; + return fn; +} + +/** + * Support testing using an element + * @param {Function} fn Passed the created element and returns a boolean result + */ +function assert( fn ) { + var el = document.createElement("fieldset"); + + try { + return !!fn( el ); + } catch (e) { + return false; + } finally { + // Remove from its parent by default + if ( el.parentNode ) { + el.parentNode.removeChild( el ); + } + // release memory in IE + el = null; + } +} + +/** + * Adds the same handler for all of the specified attrs + * @param {String} attrs Pipe-separated list of attributes + * @param {Function} handler The method that will be applied + */ +function addHandle( attrs, handler ) { + var arr = attrs.split("|"), + i = arr.length; + + while ( i-- ) { + Expr.attrHandle[ arr[i] ] = handler; + } +} + +/** + * Checks document order of two siblings + * @param {Element} a + * @param {Element} b + * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b + */ +function siblingCheck( a, b ) { + var cur = b && a, + diff = cur && a.nodeType === 1 && b.nodeType === 1 && + a.sourceIndex - b.sourceIndex; + + // Use IE sourceIndex if available on both nodes + if ( diff ) { + return diff; + } + + // Check if b follows a + if ( cur ) { + while ( (cur = cur.nextSibling) ) { + if ( cur === b ) { + return -1; + } + } + } + + return a ? 1 : -1; +} + +/** + * Returns a function to use in pseudos for input types + * @param {String} type + */ +function createInputPseudo( type ) { + return function( elem ) { + var name = elem.nodeName.toLowerCase(); + return name === "input" && elem.type === type; + }; +} + +/** + * Returns a function to use in pseudos for buttons + * @param {String} type + */ +function createButtonPseudo( type ) { + return function( elem ) { + var name = elem.nodeName.toLowerCase(); + return (name === "input" || name === "button") && elem.type === type; + }; +} + +/** + * Returns a function to use in pseudos for :enabled/:disabled + * @param {Boolean} disabled true for :disabled; false for :enabled + */ +function createDisabledPseudo( disabled ) { + + // Known :disabled false positives: fieldset[disabled] > legend:nth-of-type(n+2) :can-disable + return function( elem ) { + + // Only certain elements can match :enabled or :disabled + // https://html.spec.whatwg.org/multipage/scripting.html#selector-enabled + // https://html.spec.whatwg.org/multipage/scripting.html#selector-disabled + if ( "form" in elem ) { + + // Check for inherited disabledness on relevant non-disabled elements: + // * listed form-associated elements in a disabled fieldset + // https://html.spec.whatwg.org/multipage/forms.html#category-listed + // https://html.spec.whatwg.org/multipage/forms.html#concept-fe-disabled + // * option elements in a disabled optgroup + // https://html.spec.whatwg.org/multipage/forms.html#concept-option-disabled + // All such elements have a "form" property. + if ( elem.parentNode && elem.disabled === false ) { + + // Option elements defer to a parent optgroup if present + if ( "label" in elem ) { + if ( "label" in elem.parentNode ) { + return elem.parentNode.disabled === disabled; + } else { + return elem.disabled === disabled; + } + } + + // Support: IE 6 - 11 + // Use the isDisabled shortcut property to check for disabled fieldset ancestors + return elem.isDisabled === disabled || + + // Where there is no isDisabled, check manually + /* jshint -W018 */ + elem.isDisabled !== !disabled && + disabledAncestor( elem ) === disabled; + } + + return elem.disabled === disabled; + + // Try to winnow out elements that can't be disabled before trusting the disabled property. + // Some victims get caught in our net (label, legend, menu, track), but it shouldn't + // even exist on them, let alone have a boolean value. + } else if ( "label" in elem ) { + return elem.disabled === disabled; + } + + // Remaining elements are neither :enabled nor :disabled + return false; + }; +} + +/** + * Returns a function to use in pseudos for positionals + * @param {Function} fn + */ +function createPositionalPseudo( fn ) { + return markFunction(function( argument ) { + argument = +argument; + return markFunction(function( seed, matches ) { + var j, + matchIndexes = fn( [], seed.length, argument ), + i = matchIndexes.length; + + // Match elements found at the specified indexes + while ( i-- ) { + if ( seed[ (j = matchIndexes[i]) ] ) { + seed[j] = !(matches[j] = seed[j]); + } + } + }); + }); +} + +/** + * Checks a node for validity as a Sizzle context + * @param {Element|Object=} context + * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value + */ +function testContext( context ) { + return context && typeof context.getElementsByTagName !== "undefined" && context; +} + +// Expose support vars for convenience +support = Sizzle.support = {}; + +/** + * Detects XML nodes + * @param {Element|Object} elem An element or a document + * @returns {Boolean} True iff elem is a non-HTML XML node + */ +isXML = Sizzle.isXML = function( elem ) { + // documentElement is verified for cases where it doesn't yet exist + // (such as loading iframes in IE - #4833) + var documentElement = elem && (elem.ownerDocument || elem).documentElement; + return documentElement ? documentElement.nodeName !== "HTML" : false; +}; + +/** + * Sets document-related variables once based on the current document + * @param {Element|Object} [doc] An element or document object to use to set the document + * @returns {Object} Returns the current document + */ +setDocument = Sizzle.setDocument = function( node ) { + var hasCompare, subWindow, + doc = node ? node.ownerDocument || node : preferredDoc; + + // Return early if doc is invalid or already selected + if ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) { + return document; + } + + // Update global variables + document = doc; + docElem = document.documentElement; + documentIsHTML = !isXML( document ); + + // Support: IE 9-11, Edge + // Accessing iframe documents after unload throws "permission denied" errors (jQuery #13936) + if ( preferredDoc !== document && + (subWindow = document.defaultView) && subWindow.top !== subWindow ) { + + // Support: IE 11, Edge + if ( subWindow.addEventListener ) { + subWindow.addEventListener( "unload", unloadHandler, false ); + + // Support: IE 9 - 10 only + } else if ( subWindow.attachEvent ) { + subWindow.attachEvent( "onunload", unloadHandler ); + } + } + + /* Attributes + ---------------------------------------------------------------------- */ + + // Support: IE<8 + // Verify that getAttribute really returns attributes and not properties + // (excepting IE8 booleans) + support.attributes = assert(function( el ) { + el.className = "i"; + return !el.getAttribute("className"); + }); + + /* getElement(s)By* + ---------------------------------------------------------------------- */ + + // Check if getElementsByTagName("*") returns only elements + support.getElementsByTagName = assert(function( el ) { + el.appendChild( document.createComment("") ); + return !el.getElementsByTagName("*").length; + }); + + // Support: IE<9 + support.getElementsByClassName = rnative.test( document.getElementsByClassName ); + + // Support: IE<10 + // Check if getElementById returns elements by name + // The broken getElementById methods don't pick up programmatically-set names, + // so use a roundabout getElementsByName test + support.getById = assert(function( el ) { + docElem.appendChild( el ).id = expando; + return !document.getElementsByName || !document.getElementsByName( expando ).length; + }); + + // ID filter and find + if ( support.getById ) { + Expr.filter["ID"] = function( id ) { + var attrId = id.replace( runescape, funescape ); + return function( elem ) { + return elem.getAttribute("id") === attrId; + }; + }; + Expr.find["ID"] = function( id, context ) { + if ( typeof context.getElementById !== "undefined" && documentIsHTML ) { + var elem = context.getElementById( id ); + return elem ? [ elem ] : []; + } + }; + } else { + Expr.filter["ID"] = function( id ) { + var attrId = id.replace( runescape, funescape ); + return function( elem ) { + var node = typeof elem.getAttributeNode !== "undefined" && + elem.getAttributeNode("id"); + return node && node.value === attrId; + }; + }; + + // Support: IE 6 - 7 only + // getElementById is not reliable as a find shortcut + Expr.find["ID"] = function( id, context ) { + if ( typeof context.getElementById !== "undefined" && documentIsHTML ) { + var node, i, elems, + elem = context.getElementById( id ); + + if ( elem ) { + + // Verify the id attribute + node = elem.getAttributeNode("id"); + if ( node && node.value === id ) { + return [ elem ]; + } + + // Fall back on getElementsByName + elems = context.getElementsByName( id ); + i = 0; + while ( (elem = elems[i++]) ) { + node = elem.getAttributeNode("id"); + if ( node && node.value === id ) { + return [ elem ]; + } + } + } + + return []; + } + }; + } + + // Tag + Expr.find["TAG"] = support.getElementsByTagName ? + function( tag, context ) { + if ( typeof context.getElementsByTagName !== "undefined" ) { + return context.getElementsByTagName( tag ); + + // DocumentFragment nodes don't have gEBTN + } else if ( support.qsa ) { + return context.querySelectorAll( tag ); + } + } : + + function( tag, context ) { + var elem, + tmp = [], + i = 0, + // By happy coincidence, a (broken) gEBTN appears on DocumentFragment nodes too + results = context.getElementsByTagName( tag ); + + // Filter out possible comments + if ( tag === "*" ) { + while ( (elem = results[i++]) ) { + if ( elem.nodeType === 1 ) { + tmp.push( elem ); + } + } + + return tmp; + } + return results; + }; + + // Class + Expr.find["CLASS"] = support.getElementsByClassName && function( className, context ) { + if ( typeof context.getElementsByClassName !== "undefined" && documentIsHTML ) { + return context.getElementsByClassName( className ); + } + }; + + /* QSA/matchesSelector + ---------------------------------------------------------------------- */ + + // QSA and matchesSelector support + + // matchesSelector(:active) reports false when true (IE9/Opera 11.5) + rbuggyMatches = []; + + // qSa(:focus) reports false when true (Chrome 21) + // We allow this because of a bug in IE8/9 that throws an error + // whenever `document.activeElement` is accessed on an iframe + // So, we allow :focus to pass through QSA all the time to avoid the IE error + // See https://bugs.jquery.com/ticket/13378 + rbuggyQSA = []; + + if ( (support.qsa = rnative.test( document.querySelectorAll )) ) { + // Build QSA regex + // Regex strategy adopted from Diego Perini + assert(function( el ) { + // Select is set to empty string on purpose + // This is to test IE's treatment of not explicitly + // setting a boolean content attribute, + // since its presence should be enough + // https://bugs.jquery.com/ticket/12359 + docElem.appendChild( el ).innerHTML = "" + + ""; + + // Support: IE8, Opera 11-12.16 + // Nothing should be selected when empty strings follow ^= or $= or *= + // The test attribute must be unknown in Opera but "safe" for WinRT + // https://msdn.microsoft.com/en-us/library/ie/hh465388.aspx#attribute_section + if ( el.querySelectorAll("[msallowcapture^='']").length ) { + rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:''|\"\")" ); + } + + // Support: IE8 + // Boolean attributes and "value" are not treated correctly + if ( !el.querySelectorAll("[selected]").length ) { + rbuggyQSA.push( "\\[" + whitespace + "*(?:value|" + booleans + ")" ); + } + + // Support: Chrome<29, Android<4.4, Safari<7.0+, iOS<7.0+, PhantomJS<1.9.8+ + if ( !el.querySelectorAll( "[id~=" + expando + "-]" ).length ) { + rbuggyQSA.push("~="); + } + + // Webkit/Opera - :checked should return selected option elements + // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked + // IE8 throws error here and will not see later tests + if ( !el.querySelectorAll(":checked").length ) { + rbuggyQSA.push(":checked"); + } + + // Support: Safari 8+, iOS 8+ + // https://bugs.webkit.org/show_bug.cgi?id=136851 + // In-page `selector#id sibling-combinator selector` fails + if ( !el.querySelectorAll( "a#" + expando + "+*" ).length ) { + rbuggyQSA.push(".#.+[+~]"); + } + }); + + assert(function( el ) { + el.innerHTML = "" + + ""; + + // Support: Windows 8 Native Apps + // The type and name attributes are restricted during .innerHTML assignment + var input = document.createElement("input"); + input.setAttribute( "type", "hidden" ); + el.appendChild( input ).setAttribute( "name", "D" ); + + // Support: IE8 + // Enforce case-sensitivity of name attribute + if ( el.querySelectorAll("[name=d]").length ) { + rbuggyQSA.push( "name" + whitespace + "*[*^$|!~]?=" ); + } + + // FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled) + // IE8 throws error here and will not see later tests + if ( el.querySelectorAll(":enabled").length !== 2 ) { + rbuggyQSA.push( ":enabled", ":disabled" ); + } + + // Support: IE9-11+ + // IE's :disabled selector does not pick up the children of disabled fieldsets + docElem.appendChild( el ).disabled = true; + if ( el.querySelectorAll(":disabled").length !== 2 ) { + rbuggyQSA.push( ":enabled", ":disabled" ); + } + + // Opera 10-11 does not throw on post-comma invalid pseudos + el.querySelectorAll("*,:x"); + rbuggyQSA.push(",.*:"); + }); + } + + if ( (support.matchesSelector = rnative.test( (matches = docElem.matches || + docElem.webkitMatchesSelector || + docElem.mozMatchesSelector || + docElem.oMatchesSelector || + docElem.msMatchesSelector) )) ) { + + assert(function( el ) { + // Check to see if it's possible to do matchesSelector + // on a disconnected node (IE 9) + support.disconnectedMatch = matches.call( el, "*" ); + + // This should fail with an exception + // Gecko does not error, returns false instead + matches.call( el, "[s!='']:x" ); + rbuggyMatches.push( "!=", pseudos ); + }); + } + + rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join("|") ); + rbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join("|") ); + + /* Contains + ---------------------------------------------------------------------- */ + hasCompare = rnative.test( docElem.compareDocumentPosition ); + + // Element contains another + // Purposefully self-exclusive + // As in, an element does not contain itself + contains = hasCompare || rnative.test( docElem.contains ) ? + function( a, b ) { + var adown = a.nodeType === 9 ? a.documentElement : a, + bup = b && b.parentNode; + return a === bup || !!( bup && bup.nodeType === 1 && ( + adown.contains ? + adown.contains( bup ) : + a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16 + )); + } : + function( a, b ) { + if ( b ) { + while ( (b = b.parentNode) ) { + if ( b === a ) { + return true; + } + } + } + return false; + }; + + /* Sorting + ---------------------------------------------------------------------- */ + + // Document order sorting + sortOrder = hasCompare ? + function( a, b ) { + + // Flag for duplicate removal + if ( a === b ) { + hasDuplicate = true; + return 0; + } + + // Sort on method existence if only one input has compareDocumentPosition + var compare = !a.compareDocumentPosition - !b.compareDocumentPosition; + if ( compare ) { + return compare; + } + + // Calculate position if both inputs belong to the same document + compare = ( a.ownerDocument || a ) === ( b.ownerDocument || b ) ? + a.compareDocumentPosition( b ) : + + // Otherwise we know they are disconnected + 1; + + // Disconnected nodes + if ( compare & 1 || + (!support.sortDetached && b.compareDocumentPosition( a ) === compare) ) { + + // Choose the first element that is related to our preferred document + if ( a === document || a.ownerDocument === preferredDoc && contains(preferredDoc, a) ) { + return -1; + } + if ( b === document || b.ownerDocument === preferredDoc && contains(preferredDoc, b) ) { + return 1; + } + + // Maintain original order + return sortInput ? + ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) : + 0; + } + + return compare & 4 ? -1 : 1; + } : + function( a, b ) { + // Exit early if the nodes are identical + if ( a === b ) { + hasDuplicate = true; + return 0; + } + + var cur, + i = 0, + aup = a.parentNode, + bup = b.parentNode, + ap = [ a ], + bp = [ b ]; + + // Parentless nodes are either documents or disconnected + if ( !aup || !bup ) { + return a === document ? -1 : + b === document ? 1 : + aup ? -1 : + bup ? 1 : + sortInput ? + ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) : + 0; + + // If the nodes are siblings, we can do a quick check + } else if ( aup === bup ) { + return siblingCheck( a, b ); + } + + // Otherwise we need full lists of their ancestors for comparison + cur = a; + while ( (cur = cur.parentNode) ) { + ap.unshift( cur ); + } + cur = b; + while ( (cur = cur.parentNode) ) { + bp.unshift( cur ); + } + + // Walk down the tree looking for a discrepancy + while ( ap[i] === bp[i] ) { + i++; + } + + return i ? + // Do a sibling check if the nodes have a common ancestor + siblingCheck( ap[i], bp[i] ) : + + // Otherwise nodes in our document sort first + ap[i] === preferredDoc ? -1 : + bp[i] === preferredDoc ? 1 : + 0; + }; + + return document; +}; + +Sizzle.matches = function( expr, elements ) { + return Sizzle( expr, null, null, elements ); +}; + +Sizzle.matchesSelector = function( elem, expr ) { + // Set document vars if needed + if ( ( elem.ownerDocument || elem ) !== document ) { + setDocument( elem ); + } + + // Make sure that attribute selectors are quoted + expr = expr.replace( rattributeQuotes, "='$1']" ); + + if ( support.matchesSelector && documentIsHTML && + !compilerCache[ expr + " " ] && + ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) && + ( !rbuggyQSA || !rbuggyQSA.test( expr ) ) ) { + + try { + var ret = matches.call( elem, expr ); + + // IE 9's matchesSelector returns false on disconnected nodes + if ( ret || support.disconnectedMatch || + // As well, disconnected nodes are said to be in a document + // fragment in IE 9 + elem.document && elem.document.nodeType !== 11 ) { + return ret; + } + } catch (e) {} + } + + return Sizzle( expr, document, null, [ elem ] ).length > 0; +}; + +Sizzle.contains = function( context, elem ) { + // Set document vars if needed + if ( ( context.ownerDocument || context ) !== document ) { + setDocument( context ); + } + return contains( context, elem ); +}; + +Sizzle.attr = function( elem, name ) { + // Set document vars if needed + if ( ( elem.ownerDocument || elem ) !== document ) { + setDocument( elem ); + } + + var fn = Expr.attrHandle[ name.toLowerCase() ], + // Don't get fooled by Object.prototype properties (jQuery #13807) + val = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ? + fn( elem, name, !documentIsHTML ) : + undefined; + + return val !== undefined ? + val : + support.attributes || !documentIsHTML ? + elem.getAttribute( name ) : + (val = elem.getAttributeNode(name)) && val.specified ? + val.value : + null; +}; + +Sizzle.escape = function( sel ) { + return (sel + "").replace( rcssescape, fcssescape ); +}; + +Sizzle.error = function( msg ) { + throw new Error( "Syntax error, unrecognized expression: " + msg ); +}; + +/** + * Document sorting and removing duplicates + * @param {ArrayLike} results + */ +Sizzle.uniqueSort = function( results ) { + var elem, + duplicates = [], + j = 0, + i = 0; + + // Unless we *know* we can detect duplicates, assume their presence + hasDuplicate = !support.detectDuplicates; + sortInput = !support.sortStable && results.slice( 0 ); + results.sort( sortOrder ); + + if ( hasDuplicate ) { + while ( (elem = results[i++]) ) { + if ( elem === results[ i ] ) { + j = duplicates.push( i ); + } + } + while ( j-- ) { + results.splice( duplicates[ j ], 1 ); + } + } + + // Clear input after sorting to release objects + // See https://github.com/jquery/sizzle/pull/225 + sortInput = null; + + return results; +}; + +/** + * Utility function for retrieving the text value of an array of DOM nodes + * @param {Array|Element} elem + */ +getText = Sizzle.getText = function( elem ) { + var node, + ret = "", + i = 0, + nodeType = elem.nodeType; + + if ( !nodeType ) { + // If no nodeType, this is expected to be an array + while ( (node = elem[i++]) ) { + // Do not traverse comment nodes + ret += getText( node ); + } + } else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) { + // Use textContent for elements + // innerText usage removed for consistency of new lines (jQuery #11153) + if ( typeof elem.textContent === "string" ) { + return elem.textContent; + } else { + // Traverse its children + for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { + ret += getText( elem ); + } + } + } else if ( nodeType === 3 || nodeType === 4 ) { + return elem.nodeValue; + } + // Do not include comment or processing instruction nodes + + return ret; +}; + +Expr = Sizzle.selectors = { + + // Can be adjusted by the user + cacheLength: 50, + + createPseudo: markFunction, + + match: matchExpr, + + attrHandle: {}, + + find: {}, + + relative: { + ">": { dir: "parentNode", first: true }, + " ": { dir: "parentNode" }, + "+": { dir: "previousSibling", first: true }, + "~": { dir: "previousSibling" } + }, + + preFilter: { + "ATTR": function( match ) { + match[1] = match[1].replace( runescape, funescape ); + + // Move the given value to match[3] whether quoted or unquoted + match[3] = ( match[3] || match[4] || match[5] || "" ).replace( runescape, funescape ); + + if ( match[2] === "~=" ) { + match[3] = " " + match[3] + " "; + } + + return match.slice( 0, 4 ); + }, + + "CHILD": function( match ) { + /* matches from matchExpr["CHILD"] + 1 type (only|nth|...) + 2 what (child|of-type) + 3 argument (even|odd|\d*|\d*n([+-]\d+)?|...) + 4 xn-component of xn+y argument ([+-]?\d*n|) + 5 sign of xn-component + 6 x of xn-component + 7 sign of y-component + 8 y of y-component + */ + match[1] = match[1].toLowerCase(); + + if ( match[1].slice( 0, 3 ) === "nth" ) { + // nth-* requires argument + if ( !match[3] ) { + Sizzle.error( match[0] ); + } + + // numeric x and y parameters for Expr.filter.CHILD + // remember that false/true cast respectively to 0/1 + match[4] = +( match[4] ? match[5] + (match[6] || 1) : 2 * ( match[3] === "even" || match[3] === "odd" ) ); + match[5] = +( ( match[7] + match[8] ) || match[3] === "odd" ); + + // other types prohibit arguments + } else if ( match[3] ) { + Sizzle.error( match[0] ); + } + + return match; + }, + + "PSEUDO": function( match ) { + var excess, + unquoted = !match[6] && match[2]; + + if ( matchExpr["CHILD"].test( match[0] ) ) { + return null; + } + + // Accept quoted arguments as-is + if ( match[3] ) { + match[2] = match[4] || match[5] || ""; + + // Strip excess characters from unquoted arguments + } else if ( unquoted && rpseudo.test( unquoted ) && + // Get excess from tokenize (recursively) + (excess = tokenize( unquoted, true )) && + // advance to the next closing parenthesis + (excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length) ) { + + // excess is a negative index + match[0] = match[0].slice( 0, excess ); + match[2] = unquoted.slice( 0, excess ); + } + + // Return only captures needed by the pseudo filter method (type and argument) + return match.slice( 0, 3 ); + } + }, + + filter: { + + "TAG": function( nodeNameSelector ) { + var nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase(); + return nodeNameSelector === "*" ? + function() { return true; } : + function( elem ) { + return elem.nodeName && elem.nodeName.toLowerCase() === nodeName; + }; + }, + + "CLASS": function( className ) { + var pattern = classCache[ className + " " ]; + + return pattern || + (pattern = new RegExp( "(^|" + whitespace + ")" + className + "(" + whitespace + "|$)" )) && + classCache( className, function( elem ) { + return pattern.test( typeof elem.className === "string" && elem.className || typeof elem.getAttribute !== "undefined" && elem.getAttribute("class") || "" ); + }); + }, + + "ATTR": function( name, operator, check ) { + return function( elem ) { + var result = Sizzle.attr( elem, name ); + + if ( result == null ) { + return operator === "!="; + } + if ( !operator ) { + return true; + } + + result += ""; + + return operator === "=" ? result === check : + operator === "!=" ? result !== check : + operator === "^=" ? check && result.indexOf( check ) === 0 : + operator === "*=" ? check && result.indexOf( check ) > -1 : + operator === "$=" ? check && result.slice( -check.length ) === check : + operator === "~=" ? ( " " + result.replace( rwhitespace, " " ) + " " ).indexOf( check ) > -1 : + operator === "|=" ? result === check || result.slice( 0, check.length + 1 ) === check + "-" : + false; + }; + }, + + "CHILD": function( type, what, argument, first, last ) { + var simple = type.slice( 0, 3 ) !== "nth", + forward = type.slice( -4 ) !== "last", + ofType = what === "of-type"; + + return first === 1 && last === 0 ? + + // Shortcut for :nth-*(n) + function( elem ) { + return !!elem.parentNode; + } : + + function( elem, context, xml ) { + var cache, uniqueCache, outerCache, node, nodeIndex, start, + dir = simple !== forward ? "nextSibling" : "previousSibling", + parent = elem.parentNode, + name = ofType && elem.nodeName.toLowerCase(), + useCache = !xml && !ofType, + diff = false; + + if ( parent ) { + + // :(first|last|only)-(child|of-type) + if ( simple ) { + while ( dir ) { + node = elem; + while ( (node = node[ dir ]) ) { + if ( ofType ? + node.nodeName.toLowerCase() === name : + node.nodeType === 1 ) { + + return false; + } + } + // Reverse direction for :only-* (if we haven't yet done so) + start = dir = type === "only" && !start && "nextSibling"; + } + return true; + } + + start = [ forward ? parent.firstChild : parent.lastChild ]; + + // non-xml :nth-child(...) stores cache data on `parent` + if ( forward && useCache ) { + + // Seek `elem` from a previously-cached index + + // ...in a gzip-friendly way + node = parent; + outerCache = node[ expando ] || (node[ expando ] = {}); + + // Support: IE <9 only + // Defend against cloned attroperties (jQuery gh-1709) + uniqueCache = outerCache[ node.uniqueID ] || + (outerCache[ node.uniqueID ] = {}); + + cache = uniqueCache[ type ] || []; + nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ]; + diff = nodeIndex && cache[ 2 ]; + node = nodeIndex && parent.childNodes[ nodeIndex ]; + + while ( (node = ++nodeIndex && node && node[ dir ] || + + // Fallback to seeking `elem` from the start + (diff = nodeIndex = 0) || start.pop()) ) { + + // When found, cache indexes on `parent` and break + if ( node.nodeType === 1 && ++diff && node === elem ) { + uniqueCache[ type ] = [ dirruns, nodeIndex, diff ]; + break; + } + } + + } else { + // Use previously-cached element index if available + if ( useCache ) { + // ...in a gzip-friendly way + node = elem; + outerCache = node[ expando ] || (node[ expando ] = {}); + + // Support: IE <9 only + // Defend against cloned attroperties (jQuery gh-1709) + uniqueCache = outerCache[ node.uniqueID ] || + (outerCache[ node.uniqueID ] = {}); + + cache = uniqueCache[ type ] || []; + nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ]; + diff = nodeIndex; + } + + // xml :nth-child(...) + // or :nth-last-child(...) or :nth(-last)?-of-type(...) + if ( diff === false ) { + // Use the same loop as above to seek `elem` from the start + while ( (node = ++nodeIndex && node && node[ dir ] || + (diff = nodeIndex = 0) || start.pop()) ) { + + if ( ( ofType ? + node.nodeName.toLowerCase() === name : + node.nodeType === 1 ) && + ++diff ) { + + // Cache the index of each encountered element + if ( useCache ) { + outerCache = node[ expando ] || (node[ expando ] = {}); + + // Support: IE <9 only + // Defend against cloned attroperties (jQuery gh-1709) + uniqueCache = outerCache[ node.uniqueID ] || + (outerCache[ node.uniqueID ] = {}); + + uniqueCache[ type ] = [ dirruns, diff ]; + } + + if ( node === elem ) { + break; + } + } + } + } + } + + // Incorporate the offset, then check against cycle size + diff -= last; + return diff === first || ( diff % first === 0 && diff / first >= 0 ); + } + }; + }, + + "PSEUDO": function( pseudo, argument ) { + // pseudo-class names are case-insensitive + // http://www.w3.org/TR/selectors/#pseudo-classes + // Prioritize by case sensitivity in case custom pseudos are added with uppercase letters + // Remember that setFilters inherits from pseudos + var args, + fn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] || + Sizzle.error( "unsupported pseudo: " + pseudo ); + + // The user may use createPseudo to indicate that + // arguments are needed to create the filter function + // just as Sizzle does + if ( fn[ expando ] ) { + return fn( argument ); + } + + // But maintain support for old signatures + if ( fn.length > 1 ) { + args = [ pseudo, pseudo, "", argument ]; + return Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ? + markFunction(function( seed, matches ) { + var idx, + matched = fn( seed, argument ), + i = matched.length; + while ( i-- ) { + idx = indexOf( seed, matched[i] ); + seed[ idx ] = !( matches[ idx ] = matched[i] ); + } + }) : + function( elem ) { + return fn( elem, 0, args ); + }; + } + + return fn; + } + }, + + pseudos: { + // Potentially complex pseudos + "not": markFunction(function( selector ) { + // Trim the selector passed to compile + // to avoid treating leading and trailing + // spaces as combinators + var input = [], + results = [], + matcher = compile( selector.replace( rtrim, "$1" ) ); + + return matcher[ expando ] ? + markFunction(function( seed, matches, context, xml ) { + var elem, + unmatched = matcher( seed, null, xml, [] ), + i = seed.length; + + // Match elements unmatched by `matcher` + while ( i-- ) { + if ( (elem = unmatched[i]) ) { + seed[i] = !(matches[i] = elem); + } + } + }) : + function( elem, context, xml ) { + input[0] = elem; + matcher( input, null, xml, results ); + // Don't keep the element (issue #299) + input[0] = null; + return !results.pop(); + }; + }), + + "has": markFunction(function( selector ) { + return function( elem ) { + return Sizzle( selector, elem ).length > 0; + }; + }), + + "contains": markFunction(function( text ) { + text = text.replace( runescape, funescape ); + return function( elem ) { + return ( elem.textContent || elem.innerText || getText( elem ) ).indexOf( text ) > -1; + }; + }), + + // "Whether an element is represented by a :lang() selector + // is based solely on the element's language value + // being equal to the identifier C, + // or beginning with the identifier C immediately followed by "-". + // The matching of C against the element's language value is performed case-insensitively. + // The identifier C does not have to be a valid language name." + // http://www.w3.org/TR/selectors/#lang-pseudo + "lang": markFunction( function( lang ) { + // lang value must be a valid identifier + if ( !ridentifier.test(lang || "") ) { + Sizzle.error( "unsupported lang: " + lang ); + } + lang = lang.replace( runescape, funescape ).toLowerCase(); + return function( elem ) { + var elemLang; + do { + if ( (elemLang = documentIsHTML ? + elem.lang : + elem.getAttribute("xml:lang") || elem.getAttribute("lang")) ) { + + elemLang = elemLang.toLowerCase(); + return elemLang === lang || elemLang.indexOf( lang + "-" ) === 0; + } + } while ( (elem = elem.parentNode) && elem.nodeType === 1 ); + return false; + }; + }), + + // Miscellaneous + "target": function( elem ) { + var hash = window.location && window.location.hash; + return hash && hash.slice( 1 ) === elem.id; + }, + + "root": function( elem ) { + return elem === docElem; + }, + + "focus": function( elem ) { + return elem === document.activeElement && (!document.hasFocus || document.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex); + }, + + // Boolean properties + "enabled": createDisabledPseudo( false ), + "disabled": createDisabledPseudo( true ), + + "checked": function( elem ) { + // In CSS3, :checked should return both checked and selected elements + // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked + var nodeName = elem.nodeName.toLowerCase(); + return (nodeName === "input" && !!elem.checked) || (nodeName === "option" && !!elem.selected); + }, + + "selected": function( elem ) { + // Accessing this property makes selected-by-default + // options in Safari work properly + if ( elem.parentNode ) { + elem.parentNode.selectedIndex; + } + + return elem.selected === true; + }, + + // Contents + "empty": function( elem ) { + // http://www.w3.org/TR/selectors/#empty-pseudo + // :empty is negated by element (1) or content nodes (text: 3; cdata: 4; entity ref: 5), + // but not by others (comment: 8; processing instruction: 7; etc.) + // nodeType < 6 works because attributes (2) do not appear as children + for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { + if ( elem.nodeType < 6 ) { + return false; + } + } + return true; + }, + + "parent": function( elem ) { + return !Expr.pseudos["empty"]( elem ); + }, + + // Element/input types + "header": function( elem ) { + return rheader.test( elem.nodeName ); + }, + + "input": function( elem ) { + return rinputs.test( elem.nodeName ); + }, + + "button": function( elem ) { + var name = elem.nodeName.toLowerCase(); + return name === "input" && elem.type === "button" || name === "button"; + }, + + "text": function( elem ) { + var attr; + return elem.nodeName.toLowerCase() === "input" && + elem.type === "text" && + + // Support: IE<8 + // New HTML5 attribute values (e.g., "search") appear with elem.type === "text" + ( (attr = elem.getAttribute("type")) == null || attr.toLowerCase() === "text" ); + }, + + // Position-in-collection + "first": createPositionalPseudo(function() { + return [ 0 ]; + }), + + "last": createPositionalPseudo(function( matchIndexes, length ) { + return [ length - 1 ]; + }), + + "eq": createPositionalPseudo(function( matchIndexes, length, argument ) { + return [ argument < 0 ? argument + length : argument ]; + }), + + "even": createPositionalPseudo(function( matchIndexes, length ) { + var i = 0; + for ( ; i < length; i += 2 ) { + matchIndexes.push( i ); + } + return matchIndexes; + }), + + "odd": createPositionalPseudo(function( matchIndexes, length ) { + var i = 1; + for ( ; i < length; i += 2 ) { + matchIndexes.push( i ); + } + return matchIndexes; + }), + + "lt": createPositionalPseudo(function( matchIndexes, length, argument ) { + var i = argument < 0 ? argument + length : argument; + for ( ; --i >= 0; ) { + matchIndexes.push( i ); + } + return matchIndexes; + }), + + "gt": createPositionalPseudo(function( matchIndexes, length, argument ) { + var i = argument < 0 ? argument + length : argument; + for ( ; ++i < length; ) { + matchIndexes.push( i ); + } + return matchIndexes; + }) + } +}; + +Expr.pseudos["nth"] = Expr.pseudos["eq"]; + +// Add button/input type pseudos +for ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) { + Expr.pseudos[ i ] = createInputPseudo( i ); +} +for ( i in { submit: true, reset: true } ) { + Expr.pseudos[ i ] = createButtonPseudo( i ); +} + +// Easy API for creating new setFilters +function setFilters() {} +setFilters.prototype = Expr.filters = Expr.pseudos; +Expr.setFilters = new setFilters(); + +tokenize = Sizzle.tokenize = function( selector, parseOnly ) { + var matched, match, tokens, type, + soFar, groups, preFilters, + cached = tokenCache[ selector + " " ]; + + if ( cached ) { + return parseOnly ? 0 : cached.slice( 0 ); + } + + soFar = selector; + groups = []; + preFilters = Expr.preFilter; + + while ( soFar ) { + + // Comma and first run + if ( !matched || (match = rcomma.exec( soFar )) ) { + if ( match ) { + // Don't consume trailing commas as valid + soFar = soFar.slice( match[0].length ) || soFar; + } + groups.push( (tokens = []) ); + } + + matched = false; + + // Combinators + if ( (match = rcombinators.exec( soFar )) ) { + matched = match.shift(); + tokens.push({ + value: matched, + // Cast descendant combinators to space + type: match[0].replace( rtrim, " " ) + }); + soFar = soFar.slice( matched.length ); + } + + // Filters + for ( type in Expr.filter ) { + if ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] || + (match = preFilters[ type ]( match ))) ) { + matched = match.shift(); + tokens.push({ + value: matched, + type: type, + matches: match + }); + soFar = soFar.slice( matched.length ); + } + } + + if ( !matched ) { + break; + } + } + + // Return the length of the invalid excess + // if we're just parsing + // Otherwise, throw an error or return tokens + return parseOnly ? + soFar.length : + soFar ? + Sizzle.error( selector ) : + // Cache the tokens + tokenCache( selector, groups ).slice( 0 ); +}; + +function toSelector( tokens ) { + var i = 0, + len = tokens.length, + selector = ""; + for ( ; i < len; i++ ) { + selector += tokens[i].value; + } + return selector; +} + +function addCombinator( matcher, combinator, base ) { + var dir = combinator.dir, + skip = combinator.next, + key = skip || dir, + checkNonElements = base && key === "parentNode", + doneName = done++; + + return combinator.first ? + // Check against closest ancestor/preceding element + function( elem, context, xml ) { + while ( (elem = elem[ dir ]) ) { + if ( elem.nodeType === 1 || checkNonElements ) { + return matcher( elem, context, xml ); + } + } + return false; + } : + + // Check against all ancestor/preceding elements + function( elem, context, xml ) { + var oldCache, uniqueCache, outerCache, + newCache = [ dirruns, doneName ]; + + // We can't set arbitrary data on XML nodes, so they don't benefit from combinator caching + if ( xml ) { + while ( (elem = elem[ dir ]) ) { + if ( elem.nodeType === 1 || checkNonElements ) { + if ( matcher( elem, context, xml ) ) { + return true; + } + } + } + } else { + while ( (elem = elem[ dir ]) ) { + if ( elem.nodeType === 1 || checkNonElements ) { + outerCache = elem[ expando ] || (elem[ expando ] = {}); + + // Support: IE <9 only + // Defend against cloned attroperties (jQuery gh-1709) + uniqueCache = outerCache[ elem.uniqueID ] || (outerCache[ elem.uniqueID ] = {}); + + if ( skip && skip === elem.nodeName.toLowerCase() ) { + elem = elem[ dir ] || elem; + } else if ( (oldCache = uniqueCache[ key ]) && + oldCache[ 0 ] === dirruns && oldCache[ 1 ] === doneName ) { + + // Assign to newCache so results back-propagate to previous elements + return (newCache[ 2 ] = oldCache[ 2 ]); + } else { + // Reuse newcache so results back-propagate to previous elements + uniqueCache[ key ] = newCache; + + // A match means we're done; a fail means we have to keep checking + if ( (newCache[ 2 ] = matcher( elem, context, xml )) ) { + return true; + } + } + } + } + } + return false; + }; +} + +function elementMatcher( matchers ) { + return matchers.length > 1 ? + function( elem, context, xml ) { + var i = matchers.length; + while ( i-- ) { + if ( !matchers[i]( elem, context, xml ) ) { + return false; + } + } + return true; + } : + matchers[0]; +} + +function multipleContexts( selector, contexts, results ) { + var i = 0, + len = contexts.length; + for ( ; i < len; i++ ) { + Sizzle( selector, contexts[i], results ); + } + return results; +} + +function condense( unmatched, map, filter, context, xml ) { + var elem, + newUnmatched = [], + i = 0, + len = unmatched.length, + mapped = map != null; + + for ( ; i < len; i++ ) { + if ( (elem = unmatched[i]) ) { + if ( !filter || filter( elem, context, xml ) ) { + newUnmatched.push( elem ); + if ( mapped ) { + map.push( i ); + } + } + } + } + + return newUnmatched; +} + +function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) { + if ( postFilter && !postFilter[ expando ] ) { + postFilter = setMatcher( postFilter ); + } + if ( postFinder && !postFinder[ expando ] ) { + postFinder = setMatcher( postFinder, postSelector ); + } + return markFunction(function( seed, results, context, xml ) { + var temp, i, elem, + preMap = [], + postMap = [], + preexisting = results.length, + + // Get initial elements from seed or context + elems = seed || multipleContexts( selector || "*", context.nodeType ? [ context ] : context, [] ), + + // Prefilter to get matcher input, preserving a map for seed-results synchronization + matcherIn = preFilter && ( seed || !selector ) ? + condense( elems, preMap, preFilter, context, xml ) : + elems, + + matcherOut = matcher ? + // If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results, + postFinder || ( seed ? preFilter : preexisting || postFilter ) ? + + // ...intermediate processing is necessary + [] : + + // ...otherwise use results directly + results : + matcherIn; + + // Find primary matches + if ( matcher ) { + matcher( matcherIn, matcherOut, context, xml ); + } + + // Apply postFilter + if ( postFilter ) { + temp = condense( matcherOut, postMap ); + postFilter( temp, [], context, xml ); + + // Un-match failing elements by moving them back to matcherIn + i = temp.length; + while ( i-- ) { + if ( (elem = temp[i]) ) { + matcherOut[ postMap[i] ] = !(matcherIn[ postMap[i] ] = elem); + } + } + } + + if ( seed ) { + if ( postFinder || preFilter ) { + if ( postFinder ) { + // Get the final matcherOut by condensing this intermediate into postFinder contexts + temp = []; + i = matcherOut.length; + while ( i-- ) { + if ( (elem = matcherOut[i]) ) { + // Restore matcherIn since elem is not yet a final match + temp.push( (matcherIn[i] = elem) ); + } + } + postFinder( null, (matcherOut = []), temp, xml ); + } + + // Move matched elements from seed to results to keep them synchronized + i = matcherOut.length; + while ( i-- ) { + if ( (elem = matcherOut[i]) && + (temp = postFinder ? indexOf( seed, elem ) : preMap[i]) > -1 ) { + + seed[temp] = !(results[temp] = elem); + } + } + } + + // Add elements to results, through postFinder if defined + } else { + matcherOut = condense( + matcherOut === results ? + matcherOut.splice( preexisting, matcherOut.length ) : + matcherOut + ); + if ( postFinder ) { + postFinder( null, results, matcherOut, xml ); + } else { + push.apply( results, matcherOut ); + } + } + }); +} + +function matcherFromTokens( tokens ) { + var checkContext, matcher, j, + len = tokens.length, + leadingRelative = Expr.relative[ tokens[0].type ], + implicitRelative = leadingRelative || Expr.relative[" "], + i = leadingRelative ? 1 : 0, + + // The foundational matcher ensures that elements are reachable from top-level context(s) + matchContext = addCombinator( function( elem ) { + return elem === checkContext; + }, implicitRelative, true ), + matchAnyContext = addCombinator( function( elem ) { + return indexOf( checkContext, elem ) > -1; + }, implicitRelative, true ), + matchers = [ function( elem, context, xml ) { + var ret = ( !leadingRelative && ( xml || context !== outermostContext ) ) || ( + (checkContext = context).nodeType ? + matchContext( elem, context, xml ) : + matchAnyContext( elem, context, xml ) ); + // Avoid hanging onto element (issue #299) + checkContext = null; + return ret; + } ]; + + for ( ; i < len; i++ ) { + if ( (matcher = Expr.relative[ tokens[i].type ]) ) { + matchers = [ addCombinator(elementMatcher( matchers ), matcher) ]; + } else { + matcher = Expr.filter[ tokens[i].type ].apply( null, tokens[i].matches ); + + // Return special upon seeing a positional matcher + if ( matcher[ expando ] ) { + // Find the next relative operator (if any) for proper handling + j = ++i; + for ( ; j < len; j++ ) { + if ( Expr.relative[ tokens[j].type ] ) { + break; + } + } + return setMatcher( + i > 1 && elementMatcher( matchers ), + i > 1 && toSelector( + // If the preceding token was a descendant combinator, insert an implicit any-element `*` + tokens.slice( 0, i - 1 ).concat({ value: tokens[ i - 2 ].type === " " ? "*" : "" }) + ).replace( rtrim, "$1" ), + matcher, + i < j && matcherFromTokens( tokens.slice( i, j ) ), + j < len && matcherFromTokens( (tokens = tokens.slice( j )) ), + j < len && toSelector( tokens ) + ); + } + matchers.push( matcher ); + } + } + + return elementMatcher( matchers ); +} + +function matcherFromGroupMatchers( elementMatchers, setMatchers ) { + var bySet = setMatchers.length > 0, + byElement = elementMatchers.length > 0, + superMatcher = function( seed, context, xml, results, outermost ) { + var elem, j, matcher, + matchedCount = 0, + i = "0", + unmatched = seed && [], + setMatched = [], + contextBackup = outermostContext, + // We must always have either seed elements or outermost context + elems = seed || byElement && Expr.find["TAG"]( "*", outermost ), + // Use integer dirruns iff this is the outermost matcher + dirrunsUnique = (dirruns += contextBackup == null ? 1 : Math.random() || 0.1), + len = elems.length; + + if ( outermost ) { + outermostContext = context === document || context || outermost; + } + + // Add elements passing elementMatchers directly to results + // Support: IE<9, Safari + // Tolerate NodeList properties (IE: "length"; Safari: ) matching elements by id + for ( ; i !== len && (elem = elems[i]) != null; i++ ) { + if ( byElement && elem ) { + j = 0; + if ( !context && elem.ownerDocument !== document ) { + setDocument( elem ); + xml = !documentIsHTML; + } + while ( (matcher = elementMatchers[j++]) ) { + if ( matcher( elem, context || document, xml) ) { + results.push( elem ); + break; + } + } + if ( outermost ) { + dirruns = dirrunsUnique; + } + } + + // Track unmatched elements for set filters + if ( bySet ) { + // They will have gone through all possible matchers + if ( (elem = !matcher && elem) ) { + matchedCount--; + } + + // Lengthen the array for every element, matched or not + if ( seed ) { + unmatched.push( elem ); + } + } + } + + // `i` is now the count of elements visited above, and adding it to `matchedCount` + // makes the latter nonnegative. + matchedCount += i; + + // Apply set filters to unmatched elements + // NOTE: This can be skipped if there are no unmatched elements (i.e., `matchedCount` + // equals `i`), unless we didn't visit _any_ elements in the above loop because we have + // no element matchers and no seed. + // Incrementing an initially-string "0" `i` allows `i` to remain a string only in that + // case, which will result in a "00" `matchedCount` that differs from `i` but is also + // numerically zero. + if ( bySet && i !== matchedCount ) { + j = 0; + while ( (matcher = setMatchers[j++]) ) { + matcher( unmatched, setMatched, context, xml ); + } + + if ( seed ) { + // Reintegrate element matches to eliminate the need for sorting + if ( matchedCount > 0 ) { + while ( i-- ) { + if ( !(unmatched[i] || setMatched[i]) ) { + setMatched[i] = pop.call( results ); + } + } + } + + // Discard index placeholder values to get only actual matches + setMatched = condense( setMatched ); + } + + // Add matches to results + push.apply( results, setMatched ); + + // Seedless set matches succeeding multiple successful matchers stipulate sorting + if ( outermost && !seed && setMatched.length > 0 && + ( matchedCount + setMatchers.length ) > 1 ) { + + Sizzle.uniqueSort( results ); + } + } + + // Override manipulation of globals by nested matchers + if ( outermost ) { + dirruns = dirrunsUnique; + outermostContext = contextBackup; + } + + return unmatched; + }; + + return bySet ? + markFunction( superMatcher ) : + superMatcher; +} + +compile = Sizzle.compile = function( selector, match /* Internal Use Only */ ) { + var i, + setMatchers = [], + elementMatchers = [], + cached = compilerCache[ selector + " " ]; + + if ( !cached ) { + // Generate a function of recursive functions that can be used to check each element + if ( !match ) { + match = tokenize( selector ); + } + i = match.length; + while ( i-- ) { + cached = matcherFromTokens( match[i] ); + if ( cached[ expando ] ) { + setMatchers.push( cached ); + } else { + elementMatchers.push( cached ); + } + } + + // Cache the compiled function + cached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) ); + + // Save selector and tokenization + cached.selector = selector; + } + return cached; +}; + +/** + * A low-level selection function that works with Sizzle's compiled + * selector functions + * @param {String|Function} selector A selector or a pre-compiled + * selector function built with Sizzle.compile + * @param {Element} context + * @param {Array} [results] + * @param {Array} [seed] A set of elements to match against + */ +select = Sizzle.select = function( selector, context, results, seed ) { + var i, tokens, token, type, find, + compiled = typeof selector === "function" && selector, + match = !seed && tokenize( (selector = compiled.selector || selector) ); + + results = results || []; + + // Try to minimize operations if there is only one selector in the list and no seed + // (the latter of which guarantees us context) + if ( match.length === 1 ) { + + // Reduce context if the leading compound selector is an ID + tokens = match[0] = match[0].slice( 0 ); + if ( tokens.length > 2 && (token = tokens[0]).type === "ID" && + context.nodeType === 9 && documentIsHTML && Expr.relative[ tokens[1].type ] ) { + + context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0]; + if ( !context ) { + return results; + + // Precompiled matchers will still verify ancestry, so step up a level + } else if ( compiled ) { + context = context.parentNode; + } + + selector = selector.slice( tokens.shift().value.length ); + } + + // Fetch a seed set for right-to-left matching + i = matchExpr["needsContext"].test( selector ) ? 0 : tokens.length; + while ( i-- ) { + token = tokens[i]; + + // Abort if we hit a combinator + if ( Expr.relative[ (type = token.type) ] ) { + break; + } + if ( (find = Expr.find[ type ]) ) { + // Search, expanding context for leading sibling combinators + if ( (seed = find( + token.matches[0].replace( runescape, funescape ), + rsibling.test( tokens[0].type ) && testContext( context.parentNode ) || context + )) ) { + + // If seed is empty or no tokens remain, we can return early + tokens.splice( i, 1 ); + selector = seed.length && toSelector( tokens ); + if ( !selector ) { + push.apply( results, seed ); + return results; + } + + break; + } + } + } + } + + // Compile and execute a filtering function if one is not provided + // Provide `match` to avoid retokenization if we modified the selector above + ( compiled || compile( selector, match ) )( + seed, + context, + !documentIsHTML, + results, + !context || rsibling.test( selector ) && testContext( context.parentNode ) || context + ); + return results; +}; + +// One-time assignments + +// Sort stability +support.sortStable = expando.split("").sort( sortOrder ).join("") === expando; + +// Support: Chrome 14-35+ +// Always assume duplicates if they aren't passed to the comparison function +support.detectDuplicates = !!hasDuplicate; + +// Initialize against the default document +setDocument(); + +// Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27) +// Detached nodes confoundingly follow *each other* +support.sortDetached = assert(function( el ) { + // Should return 1, but returns 4 (following) + return el.compareDocumentPosition( document.createElement("fieldset") ) & 1; +}); + +// Support: IE<8 +// Prevent attribute/property "interpolation" +// https://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx +if ( !assert(function( el ) { + el.innerHTML = ""; + return el.firstChild.getAttribute("href") === "#" ; +}) ) { + addHandle( "type|href|height|width", function( elem, name, isXML ) { + if ( !isXML ) { + return elem.getAttribute( name, name.toLowerCase() === "type" ? 1 : 2 ); + } + }); +} + +// Support: IE<9 +// Use defaultValue in place of getAttribute("value") +if ( !support.attributes || !assert(function( el ) { + el.innerHTML = ""; + el.firstChild.setAttribute( "value", "" ); + return el.firstChild.getAttribute( "value" ) === ""; +}) ) { + addHandle( "value", function( elem, name, isXML ) { + if ( !isXML && elem.nodeName.toLowerCase() === "input" ) { + return elem.defaultValue; + } + }); +} + +// Support: IE<9 +// Use getAttributeNode to fetch booleans when getAttribute lies +if ( !assert(function( el ) { + return el.getAttribute("disabled") == null; +}) ) { + addHandle( booleans, function( elem, name, isXML ) { + var val; + if ( !isXML ) { + return elem[ name ] === true ? name.toLowerCase() : + (val = elem.getAttributeNode( name )) && val.specified ? + val.value : + null; + } + }); +} + +return Sizzle; + +})( window ); + + + +jQuery.find = Sizzle; +jQuery.expr = Sizzle.selectors; + +// Deprecated +jQuery.expr[ ":" ] = jQuery.expr.pseudos; +jQuery.uniqueSort = jQuery.unique = Sizzle.uniqueSort; +jQuery.text = Sizzle.getText; +jQuery.isXMLDoc = Sizzle.isXML; +jQuery.contains = Sizzle.contains; +jQuery.escapeSelector = Sizzle.escape; + + + + +var dir = function( elem, dir, until ) { + var matched = [], + truncate = until !== undefined; + + while ( ( elem = elem[ dir ] ) && elem.nodeType !== 9 ) { + if ( elem.nodeType === 1 ) { + if ( truncate && jQuery( elem ).is( until ) ) { + break; + } + matched.push( elem ); + } + } + return matched; +}; + + +var siblings = function( n, elem ) { + var matched = []; + + for ( ; n; n = n.nextSibling ) { + if ( n.nodeType === 1 && n !== elem ) { + matched.push( n ); + } + } + + return matched; +}; + + +var rneedsContext = jQuery.expr.match.needsContext; + + + +function nodeName( elem, name ) { + + return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase(); + +}; +var rsingleTag = ( /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i ); + + + +var risSimple = /^.[^:#\[\.,]*$/; + +// Implement the identical functionality for filter and not +function winnow( elements, qualifier, not ) { + if ( jQuery.isFunction( qualifier ) ) { + return jQuery.grep( elements, function( elem, i ) { + return !!qualifier.call( elem, i, elem ) !== not; + } ); + } + + // Single element + if ( qualifier.nodeType ) { + return jQuery.grep( elements, function( elem ) { + return ( elem === qualifier ) !== not; + } ); + } + + // Arraylike of elements (jQuery, arguments, Array) + if ( typeof qualifier !== "string" ) { + return jQuery.grep( elements, function( elem ) { + return ( indexOf.call( qualifier, elem ) > -1 ) !== not; + } ); + } + + // Simple selector that can be filtered directly, removing non-Elements + if ( risSimple.test( qualifier ) ) { + return jQuery.filter( qualifier, elements, not ); + } + + // Complex selector, compare the two sets, removing non-Elements + qualifier = jQuery.filter( qualifier, elements ); + return jQuery.grep( elements, function( elem ) { + return ( indexOf.call( qualifier, elem ) > -1 ) !== not && elem.nodeType === 1; + } ); +} + +jQuery.filter = function( expr, elems, not ) { + var elem = elems[ 0 ]; + + if ( not ) { + expr = ":not(" + expr + ")"; + } + + if ( elems.length === 1 && elem.nodeType === 1 ) { + return jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : []; + } + + return jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) { + return elem.nodeType === 1; + } ) ); +}; + +jQuery.fn.extend( { + find: function( selector ) { + var i, ret, + len = this.length, + self = this; + + if ( typeof selector !== "string" ) { + return this.pushStack( jQuery( selector ).filter( function() { + for ( i = 0; i < len; i++ ) { + if ( jQuery.contains( self[ i ], this ) ) { + return true; + } + } + } ) ); + } + + ret = this.pushStack( [] ); + + for ( i = 0; i < len; i++ ) { + jQuery.find( selector, self[ i ], ret ); + } + + return len > 1 ? jQuery.uniqueSort( ret ) : ret; + }, + filter: function( selector ) { + return this.pushStack( winnow( this, selector || [], false ) ); + }, + not: function( selector ) { + return this.pushStack( winnow( this, selector || [], true ) ); + }, + is: function( selector ) { + return !!winnow( + this, + + // If this is a positional/relative selector, check membership in the returned set + // so $("p:first").is("p:last") won't return true for a doc with two "p". + typeof selector === "string" && rneedsContext.test( selector ) ? + jQuery( selector ) : + selector || [], + false + ).length; + } +} ); + + +// Initialize a jQuery object + + +// A central reference to the root jQuery(document) +var rootjQuery, + + // A simple way to check for HTML strings + // Prioritize #id over to avoid XSS via location.hash (#9521) + // Strict HTML recognition (#11290: must start with <) + // Shortcut simple #id case for speed + rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/, + + init = jQuery.fn.init = function( selector, context, root ) { + var match, elem; + + // HANDLE: $(""), $(null), $(undefined), $(false) + if ( !selector ) { + return this; + } + + // Method init() accepts an alternate rootjQuery + // so migrate can support jQuery.sub (gh-2101) + root = root || rootjQuery; + + // Handle HTML strings + if ( typeof selector === "string" ) { + if ( selector[ 0 ] === "<" && + selector[ selector.length - 1 ] === ">" && + selector.length >= 3 ) { + + // Assume that strings that start and end with <> are HTML and skip the regex check + match = [ null, selector, null ]; + + } else { + match = rquickExpr.exec( selector ); + } + + // Match html or make sure no context is specified for #id + if ( match && ( match[ 1 ] || !context ) ) { + + // HANDLE: $(html) -> $(array) + if ( match[ 1 ] ) { + context = context instanceof jQuery ? context[ 0 ] : context; + + // Option to run scripts is true for back-compat + // Intentionally let the error be thrown if parseHTML is not present + jQuery.merge( this, jQuery.parseHTML( + match[ 1 ], + context && context.nodeType ? context.ownerDocument || context : document, + true + ) ); + + // HANDLE: $(html, props) + if ( rsingleTag.test( match[ 1 ] ) && jQuery.isPlainObject( context ) ) { + for ( match in context ) { + + // Properties of context are called as methods if possible + if ( jQuery.isFunction( this[ match ] ) ) { + this[ match ]( context[ match ] ); + + // ...and otherwise set as attributes + } else { + this.attr( match, context[ match ] ); + } + } + } + + return this; + + // HANDLE: $(#id) + } else { + elem = document.getElementById( match[ 2 ] ); + + if ( elem ) { + + // Inject the element directly into the jQuery object + this[ 0 ] = elem; + this.length = 1; + } + return this; + } + + // HANDLE: $(expr, $(...)) + } else if ( !context || context.jquery ) { + return ( context || root ).find( selector ); + + // HANDLE: $(expr, context) + // (which is just equivalent to: $(context).find(expr) + } else { + return this.constructor( context ).find( selector ); + } + + // HANDLE: $(DOMElement) + } else if ( selector.nodeType ) { + this[ 0 ] = selector; + this.length = 1; + return this; + + // HANDLE: $(function) + // Shortcut for document ready + } else if ( jQuery.isFunction( selector ) ) { + return root.ready !== undefined ? + root.ready( selector ) : + + // Execute immediately if ready is not present + selector( jQuery ); + } + + return jQuery.makeArray( selector, this ); + }; + +// Give the init function the jQuery prototype for later instantiation +init.prototype = jQuery.fn; + +// Initialize central reference +rootjQuery = jQuery( document ); + + +var rparentsprev = /^(?:parents|prev(?:Until|All))/, + + // Methods guaranteed to produce a unique set when starting from a unique set + guaranteedUnique = { + children: true, + contents: true, + next: true, + prev: true + }; + +jQuery.fn.extend( { + has: function( target ) { + var targets = jQuery( target, this ), + l = targets.length; + + return this.filter( function() { + var i = 0; + for ( ; i < l; i++ ) { + if ( jQuery.contains( this, targets[ i ] ) ) { + return true; + } + } + } ); + }, + + closest: function( selectors, context ) { + var cur, + i = 0, + l = this.length, + matched = [], + targets = typeof selectors !== "string" && jQuery( selectors ); + + // Positional selectors never match, since there's no _selection_ context + if ( !rneedsContext.test( selectors ) ) { + for ( ; i < l; i++ ) { + for ( cur = this[ i ]; cur && cur !== context; cur = cur.parentNode ) { + + // Always skip document fragments + if ( cur.nodeType < 11 && ( targets ? + targets.index( cur ) > -1 : + + // Don't pass non-elements to Sizzle + cur.nodeType === 1 && + jQuery.find.matchesSelector( cur, selectors ) ) ) { + + matched.push( cur ); + break; + } + } + } + } + + return this.pushStack( matched.length > 1 ? jQuery.uniqueSort( matched ) : matched ); + }, + + // Determine the position of an element within the set + index: function( elem ) { + + // No argument, return index in parent + if ( !elem ) { + return ( this[ 0 ] && this[ 0 ].parentNode ) ? this.first().prevAll().length : -1; + } + + // Index in selector + if ( typeof elem === "string" ) { + return indexOf.call( jQuery( elem ), this[ 0 ] ); + } + + // Locate the position of the desired element + return indexOf.call( this, + + // If it receives a jQuery object, the first element is used + elem.jquery ? elem[ 0 ] : elem + ); + }, + + add: function( selector, context ) { + return this.pushStack( + jQuery.uniqueSort( + jQuery.merge( this.get(), jQuery( selector, context ) ) + ) + ); + }, + + addBack: function( selector ) { + return this.add( selector == null ? + this.prevObject : this.prevObject.filter( selector ) + ); + } +} ); + +function sibling( cur, dir ) { + while ( ( cur = cur[ dir ] ) && cur.nodeType !== 1 ) {} + return cur; +} + +jQuery.each( { + parent: function( elem ) { + var parent = elem.parentNode; + return parent && parent.nodeType !== 11 ? parent : null; + }, + parents: function( elem ) { + return dir( elem, "parentNode" ); + }, + parentsUntil: function( elem, i, until ) { + return dir( elem, "parentNode", until ); + }, + next: function( elem ) { + return sibling( elem, "nextSibling" ); + }, + prev: function( elem ) { + return sibling( elem, "previousSibling" ); + }, + nextAll: function( elem ) { + return dir( elem, "nextSibling" ); + }, + prevAll: function( elem ) { + return dir( elem, "previousSibling" ); + }, + nextUntil: function( elem, i, until ) { + return dir( elem, "nextSibling", until ); + }, + prevUntil: function( elem, i, until ) { + return dir( elem, "previousSibling", until ); + }, + siblings: function( elem ) { + return siblings( ( elem.parentNode || {} ).firstChild, elem ); + }, + children: function( elem ) { + return siblings( elem.firstChild ); + }, + contents: function( elem ) { + if ( nodeName( elem, "iframe" ) ) { + return elem.contentDocument; + } + + // Support: IE 9 - 11 only, iOS 7 only, Android Browser <=4.3 only + // Treat the template element as a regular one in browsers that + // don't support it. + if ( nodeName( elem, "template" ) ) { + elem = elem.content || elem; + } + + return jQuery.merge( [], elem.childNodes ); + } +}, function( name, fn ) { + jQuery.fn[ name ] = function( until, selector ) { + var matched = jQuery.map( this, fn, until ); + + if ( name.slice( -5 ) !== "Until" ) { + selector = until; + } + + if ( selector && typeof selector === "string" ) { + matched = jQuery.filter( selector, matched ); + } + + if ( this.length > 1 ) { + + // Remove duplicates + if ( !guaranteedUnique[ name ] ) { + jQuery.uniqueSort( matched ); + } + + // Reverse order for parents* and prev-derivatives + if ( rparentsprev.test( name ) ) { + matched.reverse(); + } + } + + return this.pushStack( matched ); + }; +} ); +var rnothtmlwhite = ( /[^\x20\t\r\n\f]+/g ); + + + +// Convert String-formatted options into Object-formatted ones +function createOptions( options ) { + var object = {}; + jQuery.each( options.match( rnothtmlwhite ) || [], function( _, flag ) { + object[ flag ] = true; + } ); + return object; +} + +/* + * Create a callback list using the following parameters: + * + * options: an optional list of space-separated options that will change how + * the callback list behaves or a more traditional option object + * + * By default a callback list will act like an event callback list and can be + * "fired" multiple times. + * + * Possible options: + * + * once: will ensure the callback list can only be fired once (like a Deferred) + * + * memory: will keep track of previous values and will call any callback added + * after the list has been fired right away with the latest "memorized" + * values (like a Deferred) + * + * unique: will ensure a callback can only be added once (no duplicate in the list) + * + * stopOnFalse: interrupt callings when a callback returns false + * + */ +jQuery.Callbacks = function( options ) { + + // Convert options from String-formatted to Object-formatted if needed + // (we check in cache first) + options = typeof options === "string" ? + createOptions( options ) : + jQuery.extend( {}, options ); + + var // Flag to know if list is currently firing + firing, + + // Last fire value for non-forgettable lists + memory, + + // Flag to know if list was already fired + fired, + + // Flag to prevent firing + locked, + + // Actual callback list + list = [], + + // Queue of execution data for repeatable lists + queue = [], + + // Index of currently firing callback (modified by add/remove as needed) + firingIndex = -1, + + // Fire callbacks + fire = function() { + + // Enforce single-firing + locked = locked || options.once; + + // Execute callbacks for all pending executions, + // respecting firingIndex overrides and runtime changes + fired = firing = true; + for ( ; queue.length; firingIndex = -1 ) { + memory = queue.shift(); + while ( ++firingIndex < list.length ) { + + // Run callback and check for early termination + if ( list[ firingIndex ].apply( memory[ 0 ], memory[ 1 ] ) === false && + options.stopOnFalse ) { + + // Jump to end and forget the data so .add doesn't re-fire + firingIndex = list.length; + memory = false; + } + } + } + + // Forget the data if we're done with it + if ( !options.memory ) { + memory = false; + } + + firing = false; + + // Clean up if we're done firing for good + if ( locked ) { + + // Keep an empty list if we have data for future add calls + if ( memory ) { + list = []; + + // Otherwise, this object is spent + } else { + list = ""; + } + } + }, + + // Actual Callbacks object + self = { + + // Add a callback or a collection of callbacks to the list + add: function() { + if ( list ) { + + // If we have memory from a past run, we should fire after adding + if ( memory && !firing ) { + firingIndex = list.length - 1; + queue.push( memory ); + } + + ( function add( args ) { + jQuery.each( args, function( _, arg ) { + if ( jQuery.isFunction( arg ) ) { + if ( !options.unique || !self.has( arg ) ) { + list.push( arg ); + } + } else if ( arg && arg.length && jQuery.type( arg ) !== "string" ) { + + // Inspect recursively + add( arg ); + } + } ); + } )( arguments ); + + if ( memory && !firing ) { + fire(); + } + } + return this; + }, + + // Remove a callback from the list + remove: function() { + jQuery.each( arguments, function( _, arg ) { + var index; + while ( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) { + list.splice( index, 1 ); + + // Handle firing indexes + if ( index <= firingIndex ) { + firingIndex--; + } + } + } ); + return this; + }, + + // Check if a given callback is in the list. + // If no argument is given, return whether or not list has callbacks attached. + has: function( fn ) { + return fn ? + jQuery.inArray( fn, list ) > -1 : + list.length > 0; + }, + + // Remove all callbacks from the list + empty: function() { + if ( list ) { + list = []; + } + return this; + }, + + // Disable .fire and .add + // Abort any current/pending executions + // Clear all callbacks and values + disable: function() { + locked = queue = []; + list = memory = ""; + return this; + }, + disabled: function() { + return !list; + }, + + // Disable .fire + // Also disable .add unless we have memory (since it would have no effect) + // Abort any pending executions + lock: function() { + locked = queue = []; + if ( !memory && !firing ) { + list = memory = ""; + } + return this; + }, + locked: function() { + return !!locked; + }, + + // Call all callbacks with the given context and arguments + fireWith: function( context, args ) { + if ( !locked ) { + args = args || []; + args = [ context, args.slice ? args.slice() : args ]; + queue.push( args ); + if ( !firing ) { + fire(); + } + } + return this; + }, + + // Call all the callbacks with the given arguments + fire: function() { + self.fireWith( this, arguments ); + return this; + }, + + // To know if the callbacks have already been called at least once + fired: function() { + return !!fired; + } + }; + + return self; +}; + + +function Identity( v ) { + return v; +} +function Thrower( ex ) { + throw ex; +} + +function adoptValue( value, resolve, reject, noValue ) { + var method; + + try { + + // Check for promise aspect first to privilege synchronous behavior + if ( value && jQuery.isFunction( ( method = value.promise ) ) ) { + method.call( value ).done( resolve ).fail( reject ); + + // Other thenables + } else if ( value && jQuery.isFunction( ( method = value.then ) ) ) { + method.call( value, resolve, reject ); + + // Other non-thenables + } else { + + // Control `resolve` arguments by letting Array#slice cast boolean `noValue` to integer: + // * false: [ value ].slice( 0 ) => resolve( value ) + // * true: [ value ].slice( 1 ) => resolve() + resolve.apply( undefined, [ value ].slice( noValue ) ); + } + + // For Promises/A+, convert exceptions into rejections + // Since jQuery.when doesn't unwrap thenables, we can skip the extra checks appearing in + // Deferred#then to conditionally suppress rejection. + } catch ( value ) { + + // Support: Android 4.0 only + // Strict mode functions invoked without .call/.apply get global-object context + reject.apply( undefined, [ value ] ); + } +} + +jQuery.extend( { + + Deferred: function( func ) { + var tuples = [ + + // action, add listener, callbacks, + // ... .then handlers, argument index, [final state] + [ "notify", "progress", jQuery.Callbacks( "memory" ), + jQuery.Callbacks( "memory" ), 2 ], + [ "resolve", "done", jQuery.Callbacks( "once memory" ), + jQuery.Callbacks( "once memory" ), 0, "resolved" ], + [ "reject", "fail", jQuery.Callbacks( "once memory" ), + jQuery.Callbacks( "once memory" ), 1, "rejected" ] + ], + state = "pending", + promise = { + state: function() { + return state; + }, + always: function() { + deferred.done( arguments ).fail( arguments ); + return this; + }, + "catch": function( fn ) { + return promise.then( null, fn ); + }, + + // Keep pipe for back-compat + pipe: function( /* fnDone, fnFail, fnProgress */ ) { + var fns = arguments; + + return jQuery.Deferred( function( newDefer ) { + jQuery.each( tuples, function( i, tuple ) { + + // Map tuples (progress, done, fail) to arguments (done, fail, progress) + var fn = jQuery.isFunction( fns[ tuple[ 4 ] ] ) && fns[ tuple[ 4 ] ]; + + // deferred.progress(function() { bind to newDefer or newDefer.notify }) + // deferred.done(function() { bind to newDefer or newDefer.resolve }) + // deferred.fail(function() { bind to newDefer or newDefer.reject }) + deferred[ tuple[ 1 ] ]( function() { + var returned = fn && fn.apply( this, arguments ); + if ( returned && jQuery.isFunction( returned.promise ) ) { + returned.promise() + .progress( newDefer.notify ) + .done( newDefer.resolve ) + .fail( newDefer.reject ); + } else { + newDefer[ tuple[ 0 ] + "With" ]( + this, + fn ? [ returned ] : arguments + ); + } + } ); + } ); + fns = null; + } ).promise(); + }, + then: function( onFulfilled, onRejected, onProgress ) { + var maxDepth = 0; + function resolve( depth, deferred, handler, special ) { + return function() { + var that = this, + args = arguments, + mightThrow = function() { + var returned, then; + + // Support: Promises/A+ section 2.3.3.3.3 + // https://promisesaplus.com/#point-59 + // Ignore double-resolution attempts + if ( depth < maxDepth ) { + return; + } + + returned = handler.apply( that, args ); + + // Support: Promises/A+ section 2.3.1 + // https://promisesaplus.com/#point-48 + if ( returned === deferred.promise() ) { + throw new TypeError( "Thenable self-resolution" ); + } + + // Support: Promises/A+ sections 2.3.3.1, 3.5 + // https://promisesaplus.com/#point-54 + // https://promisesaplus.com/#point-75 + // Retrieve `then` only once + then = returned && + + // Support: Promises/A+ section 2.3.4 + // https://promisesaplus.com/#point-64 + // Only check objects and functions for thenability + ( typeof returned === "object" || + typeof returned === "function" ) && + returned.then; + + // Handle a returned thenable + if ( jQuery.isFunction( then ) ) { + + // Special processors (notify) just wait for resolution + if ( special ) { + then.call( + returned, + resolve( maxDepth, deferred, Identity, special ), + resolve( maxDepth, deferred, Thrower, special ) + ); + + // Normal processors (resolve) also hook into progress + } else { + + // ...and disregard older resolution values + maxDepth++; + + then.call( + returned, + resolve( maxDepth, deferred, Identity, special ), + resolve( maxDepth, deferred, Thrower, special ), + resolve( maxDepth, deferred, Identity, + deferred.notifyWith ) + ); + } + + // Handle all other returned values + } else { + + // Only substitute handlers pass on context + // and multiple values (non-spec behavior) + if ( handler !== Identity ) { + that = undefined; + args = [ returned ]; + } + + // Process the value(s) + // Default process is resolve + ( special || deferred.resolveWith )( that, args ); + } + }, + + // Only normal processors (resolve) catch and reject exceptions + process = special ? + mightThrow : + function() { + try { + mightThrow(); + } catch ( e ) { + + if ( jQuery.Deferred.exceptionHook ) { + jQuery.Deferred.exceptionHook( e, + process.stackTrace ); + } + + // Support: Promises/A+ section 2.3.3.3.4.1 + // https://promisesaplus.com/#point-61 + // Ignore post-resolution exceptions + if ( depth + 1 >= maxDepth ) { + + // Only substitute handlers pass on context + // and multiple values (non-spec behavior) + if ( handler !== Thrower ) { + that = undefined; + args = [ e ]; + } + + deferred.rejectWith( that, args ); + } + } + }; + + // Support: Promises/A+ section 2.3.3.3.1 + // https://promisesaplus.com/#point-57 + // Re-resolve promises immediately to dodge false rejection from + // subsequent errors + if ( depth ) { + process(); + } else { + + // Call an optional hook to record the stack, in case of exception + // since it's otherwise lost when execution goes async + if ( jQuery.Deferred.getStackHook ) { + process.stackTrace = jQuery.Deferred.getStackHook(); + } + window.setTimeout( process ); + } + }; + } + + return jQuery.Deferred( function( newDefer ) { + + // progress_handlers.add( ... ) + tuples[ 0 ][ 3 ].add( + resolve( + 0, + newDefer, + jQuery.isFunction( onProgress ) ? + onProgress : + Identity, + newDefer.notifyWith + ) + ); + + // fulfilled_handlers.add( ... ) + tuples[ 1 ][ 3 ].add( + resolve( + 0, + newDefer, + jQuery.isFunction( onFulfilled ) ? + onFulfilled : + Identity + ) + ); + + // rejected_handlers.add( ... ) + tuples[ 2 ][ 3 ].add( + resolve( + 0, + newDefer, + jQuery.isFunction( onRejected ) ? + onRejected : + Thrower + ) + ); + } ).promise(); + }, + + // Get a promise for this deferred + // If obj is provided, the promise aspect is added to the object + promise: function( obj ) { + return obj != null ? jQuery.extend( obj, promise ) : promise; + } + }, + deferred = {}; + + // Add list-specific methods + jQuery.each( tuples, function( i, tuple ) { + var list = tuple[ 2 ], + stateString = tuple[ 5 ]; + + // promise.progress = list.add + // promise.done = list.add + // promise.fail = list.add + promise[ tuple[ 1 ] ] = list.add; + + // Handle state + if ( stateString ) { + list.add( + function() { + + // state = "resolved" (i.e., fulfilled) + // state = "rejected" + state = stateString; + }, + + // rejected_callbacks.disable + // fulfilled_callbacks.disable + tuples[ 3 - i ][ 2 ].disable, + + // progress_callbacks.lock + tuples[ 0 ][ 2 ].lock + ); + } + + // progress_handlers.fire + // fulfilled_handlers.fire + // rejected_handlers.fire + list.add( tuple[ 3 ].fire ); + + // deferred.notify = function() { deferred.notifyWith(...) } + // deferred.resolve = function() { deferred.resolveWith(...) } + // deferred.reject = function() { deferred.rejectWith(...) } + deferred[ tuple[ 0 ] ] = function() { + deferred[ tuple[ 0 ] + "With" ]( this === deferred ? undefined : this, arguments ); + return this; + }; + + // deferred.notifyWith = list.fireWith + // deferred.resolveWith = list.fireWith + // deferred.rejectWith = list.fireWith + deferred[ tuple[ 0 ] + "With" ] = list.fireWith; + } ); + + // Make the deferred a promise + promise.promise( deferred ); + + // Call given func if any + if ( func ) { + func.call( deferred, deferred ); + } + + // All done! + return deferred; + }, + + // Deferred helper + when: function( singleValue ) { + var + + // count of uncompleted subordinates + remaining = arguments.length, + + // count of unprocessed arguments + i = remaining, + + // subordinate fulfillment data + resolveContexts = Array( i ), + resolveValues = slice.call( arguments ), + + // the master Deferred + master = jQuery.Deferred(), + + // subordinate callback factory + updateFunc = function( i ) { + return function( value ) { + resolveContexts[ i ] = this; + resolveValues[ i ] = arguments.length > 1 ? slice.call( arguments ) : value; + if ( !( --remaining ) ) { + master.resolveWith( resolveContexts, resolveValues ); + } + }; + }; + + // Single- and empty arguments are adopted like Promise.resolve + if ( remaining <= 1 ) { + adoptValue( singleValue, master.done( updateFunc( i ) ).resolve, master.reject, + !remaining ); + + // Use .then() to unwrap secondary thenables (cf. gh-3000) + if ( master.state() === "pending" || + jQuery.isFunction( resolveValues[ i ] && resolveValues[ i ].then ) ) { + + return master.then(); + } + } + + // Multiple arguments are aggregated like Promise.all array elements + while ( i-- ) { + adoptValue( resolveValues[ i ], updateFunc( i ), master.reject ); + } + + return master.promise(); + } +} ); + + +// These usually indicate a programmer mistake during development, +// warn about them ASAP rather than swallowing them by default. +var rerrorNames = /^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/; + +jQuery.Deferred.exceptionHook = function( error, stack ) { + + // Support: IE 8 - 9 only + // Console exists when dev tools are open, which can happen at any time + if ( window.console && window.console.warn && error && rerrorNames.test( error.name ) ) { + window.console.warn( "jQuery.Deferred exception: " + error.message, error.stack, stack ); + } +}; + + + + +jQuery.readyException = function( error ) { + window.setTimeout( function() { + throw error; + } ); +}; + + + + +// The deferred used on DOM ready +var readyList = jQuery.Deferred(); + +jQuery.fn.ready = function( fn ) { + + readyList + .then( fn ) + + // Wrap jQuery.readyException in a function so that the lookup + // happens at the time of error handling instead of callback + // registration. + .catch( function( error ) { + jQuery.readyException( error ); + } ); + + return this; +}; + +jQuery.extend( { + + // Is the DOM ready to be used? Set to true once it occurs. + isReady: false, + + // A counter to track how many items to wait for before + // the ready event fires. See #6781 + readyWait: 1, + + // Handle when the DOM is ready + ready: function( wait ) { + + // Abort if there are pending holds or we're already ready + if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) { + return; + } + + // Remember that the DOM is ready + jQuery.isReady = true; + + // If a normal DOM Ready event fired, decrement, and wait if need be + if ( wait !== true && --jQuery.readyWait > 0 ) { + return; + } + + // If there are functions bound, to execute + readyList.resolveWith( document, [ jQuery ] ); + } +} ); + +jQuery.ready.then = readyList.then; + +// The ready event handler and self cleanup method +function completed() { + document.removeEventListener( "DOMContentLoaded", completed ); + window.removeEventListener( "load", completed ); + jQuery.ready(); +} + +// Catch cases where $(document).ready() is called +// after the browser event has already occurred. +// Support: IE <=9 - 10 only +// Older IE sometimes signals "interactive" too soon +if ( document.readyState === "complete" || + ( document.readyState !== "loading" && !document.documentElement.doScroll ) ) { + + // Handle it asynchronously to allow scripts the opportunity to delay ready + window.setTimeout( jQuery.ready ); + +} else { + + // Use the handy event callback + document.addEventListener( "DOMContentLoaded", completed ); + + // A fallback to window.onload, that will always work + window.addEventListener( "load", completed ); +} + + + + +// Multifunctional method to get and set values of a collection +// The value/s can optionally be executed if it's a function +var access = function( elems, fn, key, value, chainable, emptyGet, raw ) { + var i = 0, + len = elems.length, + bulk = key == null; + + // Sets many values + if ( jQuery.type( key ) === "object" ) { + chainable = true; + for ( i in key ) { + access( elems, fn, i, key[ i ], true, emptyGet, raw ); + } + + // Sets one value + } else if ( value !== undefined ) { + chainable = true; + + if ( !jQuery.isFunction( value ) ) { + raw = true; + } + + if ( bulk ) { + + // Bulk operations run against the entire set + if ( raw ) { + fn.call( elems, value ); + fn = null; + + // ...except when executing function values + } else { + bulk = fn; + fn = function( elem, key, value ) { + return bulk.call( jQuery( elem ), value ); + }; + } + } + + if ( fn ) { + for ( ; i < len; i++ ) { + fn( + elems[ i ], key, raw ? + value : + value.call( elems[ i ], i, fn( elems[ i ], key ) ) + ); + } + } + } + + if ( chainable ) { + return elems; + } + + // Gets + if ( bulk ) { + return fn.call( elems ); + } + + return len ? fn( elems[ 0 ], key ) : emptyGet; +}; +var acceptData = function( owner ) { + + // Accepts only: + // - Node + // - Node.ELEMENT_NODE + // - Node.DOCUMENT_NODE + // - Object + // - Any + return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType ); +}; + + + + +function Data() { + this.expando = jQuery.expando + Data.uid++; +} + +Data.uid = 1; + +Data.prototype = { + + cache: function( owner ) { + + // Check if the owner object already has a cache + var value = owner[ this.expando ]; + + // If not, create one + if ( !value ) { + value = {}; + + // We can accept data for non-element nodes in modern browsers, + // but we should not, see #8335. + // Always return an empty object. + if ( acceptData( owner ) ) { + + // If it is a node unlikely to be stringify-ed or looped over + // use plain assignment + if ( owner.nodeType ) { + owner[ this.expando ] = value; + + // Otherwise secure it in a non-enumerable property + // configurable must be true to allow the property to be + // deleted when data is removed + } else { + Object.defineProperty( owner, this.expando, { + value: value, + configurable: true + } ); + } + } + } + + return value; + }, + set: function( owner, data, value ) { + var prop, + cache = this.cache( owner ); + + // Handle: [ owner, key, value ] args + // Always use camelCase key (gh-2257) + if ( typeof data === "string" ) { + cache[ jQuery.camelCase( data ) ] = value; + + // Handle: [ owner, { properties } ] args + } else { + + // Copy the properties one-by-one to the cache object + for ( prop in data ) { + cache[ jQuery.camelCase( prop ) ] = data[ prop ]; + } + } + return cache; + }, + get: function( owner, key ) { + return key === undefined ? + this.cache( owner ) : + + // Always use camelCase key (gh-2257) + owner[ this.expando ] && owner[ this.expando ][ jQuery.camelCase( key ) ]; + }, + access: function( owner, key, value ) { + + // In cases where either: + // + // 1. No key was specified + // 2. A string key was specified, but no value provided + // + // Take the "read" path and allow the get method to determine + // which value to return, respectively either: + // + // 1. The entire cache object + // 2. The data stored at the key + // + if ( key === undefined || + ( ( key && typeof key === "string" ) && value === undefined ) ) { + + return this.get( owner, key ); + } + + // When the key is not a string, or both a key and value + // are specified, set or extend (existing objects) with either: + // + // 1. An object of properties + // 2. A key and value + // + this.set( owner, key, value ); + + // Since the "set" path can have two possible entry points + // return the expected data based on which path was taken[*] + return value !== undefined ? value : key; + }, + remove: function( owner, key ) { + var i, + cache = owner[ this.expando ]; + + if ( cache === undefined ) { + return; + } + + if ( key !== undefined ) { + + // Support array or space separated string of keys + if ( Array.isArray( key ) ) { + + // If key is an array of keys... + // We always set camelCase keys, so remove that. + key = key.map( jQuery.camelCase ); + } else { + key = jQuery.camelCase( key ); + + // If a key with the spaces exists, use it. + // Otherwise, create an array by matching non-whitespace + key = key in cache ? + [ key ] : + ( key.match( rnothtmlwhite ) || [] ); + } + + i = key.length; + + while ( i-- ) { + delete cache[ key[ i ] ]; + } + } + + // Remove the expando if there's no more data + if ( key === undefined || jQuery.isEmptyObject( cache ) ) { + + // Support: Chrome <=35 - 45 + // Webkit & Blink performance suffers when deleting properties + // from DOM nodes, so set to undefined instead + // https://bugs.chromium.org/p/chromium/issues/detail?id=378607 (bug restricted) + if ( owner.nodeType ) { + owner[ this.expando ] = undefined; + } else { + delete owner[ this.expando ]; + } + } + }, + hasData: function( owner ) { + var cache = owner[ this.expando ]; + return cache !== undefined && !jQuery.isEmptyObject( cache ); + } +}; +var dataPriv = new Data(); + +var dataUser = new Data(); + + + +// Implementation Summary +// +// 1. Enforce API surface and semantic compatibility with 1.9.x branch +// 2. Improve the module's maintainability by reducing the storage +// paths to a single mechanism. +// 3. Use the same single mechanism to support "private" and "user" data. +// 4. _Never_ expose "private" data to user code (TODO: Drop _data, _removeData) +// 5. Avoid exposing implementation details on user objects (eg. expando properties) +// 6. Provide a clear path for implementation upgrade to WeakMap in 2014 + +var rbrace = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/, + rmultiDash = /[A-Z]/g; + +function getData( data ) { + if ( data === "true" ) { + return true; + } + + if ( data === "false" ) { + return false; + } + + if ( data === "null" ) { + return null; + } + + // Only convert to a number if it doesn't change the string + if ( data === +data + "" ) { + return +data; + } + + if ( rbrace.test( data ) ) { + return JSON.parse( data ); + } + + return data; +} + +function dataAttr( elem, key, data ) { + var name; + + // If nothing was found internally, try to fetch any + // data from the HTML5 data-* attribute + if ( data === undefined && elem.nodeType === 1 ) { + name = "data-" + key.replace( rmultiDash, "-$&" ).toLowerCase(); + data = elem.getAttribute( name ); + + if ( typeof data === "string" ) { + try { + data = getData( data ); + } catch ( e ) {} + + // Make sure we set the data so it isn't changed later + dataUser.set( elem, key, data ); + } else { + data = undefined; + } + } + return data; +} + +jQuery.extend( { + hasData: function( elem ) { + return dataUser.hasData( elem ) || dataPriv.hasData( elem ); + }, + + data: function( elem, name, data ) { + return dataUser.access( elem, name, data ); + }, + + removeData: function( elem, name ) { + dataUser.remove( elem, name ); + }, + + // TODO: Now that all calls to _data and _removeData have been replaced + // with direct calls to dataPriv methods, these can be deprecated. + _data: function( elem, name, data ) { + return dataPriv.access( elem, name, data ); + }, + + _removeData: function( elem, name ) { + dataPriv.remove( elem, name ); + } +} ); + +jQuery.fn.extend( { + data: function( key, value ) { + var i, name, data, + elem = this[ 0 ], + attrs = elem && elem.attributes; + + // Gets all values + if ( key === undefined ) { + if ( this.length ) { + data = dataUser.get( elem ); + + if ( elem.nodeType === 1 && !dataPriv.get( elem, "hasDataAttrs" ) ) { + i = attrs.length; + while ( i-- ) { + + // Support: IE 11 only + // The attrs elements can be null (#14894) + if ( attrs[ i ] ) { + name = attrs[ i ].name; + if ( name.indexOf( "data-" ) === 0 ) { + name = jQuery.camelCase( name.slice( 5 ) ); + dataAttr( elem, name, data[ name ] ); + } + } + } + dataPriv.set( elem, "hasDataAttrs", true ); + } + } + + return data; + } + + // Sets multiple values + if ( typeof key === "object" ) { + return this.each( function() { + dataUser.set( this, key ); + } ); + } + + return access( this, function( value ) { + var data; + + // The calling jQuery object (element matches) is not empty + // (and therefore has an element appears at this[ 0 ]) and the + // `value` parameter was not undefined. An empty jQuery object + // will result in `undefined` for elem = this[ 0 ] which will + // throw an exception if an attempt to read a data cache is made. + if ( elem && value === undefined ) { + + // Attempt to get data from the cache + // The key will always be camelCased in Data + data = dataUser.get( elem, key ); + if ( data !== undefined ) { + return data; + } + + // Attempt to "discover" the data in + // HTML5 custom data-* attrs + data = dataAttr( elem, key ); + if ( data !== undefined ) { + return data; + } + + // We tried really hard, but the data doesn't exist. + return; + } + + // Set the data... + this.each( function() { + + // We always store the camelCased key + dataUser.set( this, key, value ); + } ); + }, null, value, arguments.length > 1, null, true ); + }, + + removeData: function( key ) { + return this.each( function() { + dataUser.remove( this, key ); + } ); + } +} ); + + +jQuery.extend( { + queue: function( elem, type, data ) { + var queue; + + if ( elem ) { + type = ( type || "fx" ) + "queue"; + queue = dataPriv.get( elem, type ); + + // Speed up dequeue by getting out quickly if this is just a lookup + if ( data ) { + if ( !queue || Array.isArray( data ) ) { + queue = dataPriv.access( elem, type, jQuery.makeArray( data ) ); + } else { + queue.push( data ); + } + } + return queue || []; + } + }, + + dequeue: function( elem, type ) { + type = type || "fx"; + + var queue = jQuery.queue( elem, type ), + startLength = queue.length, + fn = queue.shift(), + hooks = jQuery._queueHooks( elem, type ), + next = function() { + jQuery.dequeue( elem, type ); + }; + + // If the fx queue is dequeued, always remove the progress sentinel + if ( fn === "inprogress" ) { + fn = queue.shift(); + startLength--; + } + + if ( fn ) { + + // Add a progress sentinel to prevent the fx queue from being + // automatically dequeued + if ( type === "fx" ) { + queue.unshift( "inprogress" ); + } + + // Clear up the last queue stop function + delete hooks.stop; + fn.call( elem, next, hooks ); + } + + if ( !startLength && hooks ) { + hooks.empty.fire(); + } + }, + + // Not public - generate a queueHooks object, or return the current one + _queueHooks: function( elem, type ) { + var key = type + "queueHooks"; + return dataPriv.get( elem, key ) || dataPriv.access( elem, key, { + empty: jQuery.Callbacks( "once memory" ).add( function() { + dataPriv.remove( elem, [ type + "queue", key ] ); + } ) + } ); + } +} ); + +jQuery.fn.extend( { + queue: function( type, data ) { + var setter = 2; + + if ( typeof type !== "string" ) { + data = type; + type = "fx"; + setter--; + } + + if ( arguments.length < setter ) { + return jQuery.queue( this[ 0 ], type ); + } + + return data === undefined ? + this : + this.each( function() { + var queue = jQuery.queue( this, type, data ); + + // Ensure a hooks for this queue + jQuery._queueHooks( this, type ); + + if ( type === "fx" && queue[ 0 ] !== "inprogress" ) { + jQuery.dequeue( this, type ); + } + } ); + }, + dequeue: function( type ) { + return this.each( function() { + jQuery.dequeue( this, type ); + } ); + }, + clearQueue: function( type ) { + return this.queue( type || "fx", [] ); + }, + + // Get a promise resolved when queues of a certain type + // are emptied (fx is the type by default) + promise: function( type, obj ) { + var tmp, + count = 1, + defer = jQuery.Deferred(), + elements = this, + i = this.length, + resolve = function() { + if ( !( --count ) ) { + defer.resolveWith( elements, [ elements ] ); + } + }; + + if ( typeof type !== "string" ) { + obj = type; + type = undefined; + } + type = type || "fx"; + + while ( i-- ) { + tmp = dataPriv.get( elements[ i ], type + "queueHooks" ); + if ( tmp && tmp.empty ) { + count++; + tmp.empty.add( resolve ); + } + } + resolve(); + return defer.promise( obj ); + } +} ); +var pnum = ( /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/ ).source; + +var rcssNum = new RegExp( "^(?:([+-])=|)(" + pnum + ")([a-z%]*)$", "i" ); + + +var cssExpand = [ "Top", "Right", "Bottom", "Left" ]; + +var isHiddenWithinTree = function( elem, el ) { + + // isHiddenWithinTree might be called from jQuery#filter function; + // in that case, element will be second argument + elem = el || elem; + + // Inline style trumps all + return elem.style.display === "none" || + elem.style.display === "" && + + // Otherwise, check computed style + // Support: Firefox <=43 - 45 + // Disconnected elements can have computed display: none, so first confirm that elem is + // in the document. + jQuery.contains( elem.ownerDocument, elem ) && + + jQuery.css( elem, "display" ) === "none"; + }; + +var swap = function( elem, options, callback, args ) { + var ret, name, + old = {}; + + // Remember the old values, and insert the new ones + for ( name in options ) { + old[ name ] = elem.style[ name ]; + elem.style[ name ] = options[ name ]; + } + + ret = callback.apply( elem, args || [] ); + + // Revert the old values + for ( name in options ) { + elem.style[ name ] = old[ name ]; + } + + return ret; +}; + + + + +function adjustCSS( elem, prop, valueParts, tween ) { + var adjusted, + scale = 1, + maxIterations = 20, + currentValue = tween ? + function() { + return tween.cur(); + } : + function() { + return jQuery.css( elem, prop, "" ); + }, + initial = currentValue(), + unit = valueParts && valueParts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ), + + // Starting value computation is required for potential unit mismatches + initialInUnit = ( jQuery.cssNumber[ prop ] || unit !== "px" && +initial ) && + rcssNum.exec( jQuery.css( elem, prop ) ); + + if ( initialInUnit && initialInUnit[ 3 ] !== unit ) { + + // Trust units reported by jQuery.css + unit = unit || initialInUnit[ 3 ]; + + // Make sure we update the tween properties later on + valueParts = valueParts || []; + + // Iteratively approximate from a nonzero starting point + initialInUnit = +initial || 1; + + do { + + // If previous iteration zeroed out, double until we get *something*. + // Use string for doubling so we don't accidentally see scale as unchanged below + scale = scale || ".5"; + + // Adjust and apply + initialInUnit = initialInUnit / scale; + jQuery.style( elem, prop, initialInUnit + unit ); + + // Update scale, tolerating zero or NaN from tween.cur() + // Break the loop if scale is unchanged or perfect, or if we've just had enough. + } while ( + scale !== ( scale = currentValue() / initial ) && scale !== 1 && --maxIterations + ); + } + + if ( valueParts ) { + initialInUnit = +initialInUnit || +initial || 0; + + // Apply relative offset (+=/-=) if specified + adjusted = valueParts[ 1 ] ? + initialInUnit + ( valueParts[ 1 ] + 1 ) * valueParts[ 2 ] : + +valueParts[ 2 ]; + if ( tween ) { + tween.unit = unit; + tween.start = initialInUnit; + tween.end = adjusted; + } + } + return adjusted; +} + + +var defaultDisplayMap = {}; + +function getDefaultDisplay( elem ) { + var temp, + doc = elem.ownerDocument, + nodeName = elem.nodeName, + display = defaultDisplayMap[ nodeName ]; + + if ( display ) { + return display; + } + + temp = doc.body.appendChild( doc.createElement( nodeName ) ); + display = jQuery.css( temp, "display" ); + + temp.parentNode.removeChild( temp ); + + if ( display === "none" ) { + display = "block"; + } + defaultDisplayMap[ nodeName ] = display; + + return display; +} + +function showHide( elements, show ) { + var display, elem, + values = [], + index = 0, + length = elements.length; + + // Determine new display value for elements that need to change + for ( ; index < length; index++ ) { + elem = elements[ index ]; + if ( !elem.style ) { + continue; + } + + display = elem.style.display; + if ( show ) { + + // Since we force visibility upon cascade-hidden elements, an immediate (and slow) + // check is required in this first loop unless we have a nonempty display value (either + // inline or about-to-be-restored) + if ( display === "none" ) { + values[ index ] = dataPriv.get( elem, "display" ) || null; + if ( !values[ index ] ) { + elem.style.display = ""; + } + } + if ( elem.style.display === "" && isHiddenWithinTree( elem ) ) { + values[ index ] = getDefaultDisplay( elem ); + } + } else { + if ( display !== "none" ) { + values[ index ] = "none"; + + // Remember what we're overwriting + dataPriv.set( elem, "display", display ); + } + } + } + + // Set the display of the elements in a second loop to avoid constant reflow + for ( index = 0; index < length; index++ ) { + if ( values[ index ] != null ) { + elements[ index ].style.display = values[ index ]; + } + } + + return elements; +} + +jQuery.fn.extend( { + show: function() { + return showHide( this, true ); + }, + hide: function() { + return showHide( this ); + }, + toggle: function( state ) { + if ( typeof state === "boolean" ) { + return state ? this.show() : this.hide(); + } + + return this.each( function() { + if ( isHiddenWithinTree( this ) ) { + jQuery( this ).show(); + } else { + jQuery( this ).hide(); + } + } ); + } +} ); +var rcheckableType = ( /^(?:checkbox|radio)$/i ); + +var rtagName = ( /<([a-z][^\/\0>\x20\t\r\n\f]+)/i ); + +var rscriptType = ( /^$|\/(?:java|ecma)script/i ); + + + +// We have to close these tags to support XHTML (#13200) +var wrapMap = { + + // Support: IE <=9 only + option: [ 1, "" ], + + // XHTML parsers do not magically insert elements in the + // same way that tag soup parsers do. So we cannot shorten + // this by omitting or other required elements. + thead: [ 1, "", "
" ], + col: [ 2, "", "
" ], + tr: [ 2, "", "
" ], + td: [ 3, "", "
" ], + + _default: [ 0, "", "" ] +}; + +// Support: IE <=9 only +wrapMap.optgroup = wrapMap.option; + +wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead; +wrapMap.th = wrapMap.td; + + +function getAll( context, tag ) { + + // Support: IE <=9 - 11 only + // Use typeof to avoid zero-argument method invocation on host objects (#15151) + var ret; + + if ( typeof context.getElementsByTagName !== "undefined" ) { + ret = context.getElementsByTagName( tag || "*" ); + + } else if ( typeof context.querySelectorAll !== "undefined" ) { + ret = context.querySelectorAll( tag || "*" ); + + } else { + ret = []; + } + + if ( tag === undefined || tag && nodeName( context, tag ) ) { + return jQuery.merge( [ context ], ret ); + } + + return ret; +} + + +// Mark scripts as having already been evaluated +function setGlobalEval( elems, refElements ) { + var i = 0, + l = elems.length; + + for ( ; i < l; i++ ) { + dataPriv.set( + elems[ i ], + "globalEval", + !refElements || dataPriv.get( refElements[ i ], "globalEval" ) + ); + } +} + + +var rhtml = /<|&#?\w+;/; + +function buildFragment( elems, context, scripts, selection, ignored ) { + var elem, tmp, tag, wrap, contains, j, + fragment = context.createDocumentFragment(), + nodes = [], + i = 0, + l = elems.length; + + for ( ; i < l; i++ ) { + elem = elems[ i ]; + + if ( elem || elem === 0 ) { + + // Add nodes directly + if ( jQuery.type( elem ) === "object" ) { + + // Support: Android <=4.0 only, PhantomJS 1 only + // push.apply(_, arraylike) throws on ancient WebKit + jQuery.merge( nodes, elem.nodeType ? [ elem ] : elem ); + + // Convert non-html into a text node + } else if ( !rhtml.test( elem ) ) { + nodes.push( context.createTextNode( elem ) ); + + // Convert html into DOM nodes + } else { + tmp = tmp || fragment.appendChild( context.createElement( "div" ) ); + + // Deserialize a standard representation + tag = ( rtagName.exec( elem ) || [ "", "" ] )[ 1 ].toLowerCase(); + wrap = wrapMap[ tag ] || wrapMap._default; + tmp.innerHTML = wrap[ 1 ] + jQuery.htmlPrefilter( elem ) + wrap[ 2 ]; + + // Descend through wrappers to the right content + j = wrap[ 0 ]; + while ( j-- ) { + tmp = tmp.lastChild; + } + + // Support: Android <=4.0 only, PhantomJS 1 only + // push.apply(_, arraylike) throws on ancient WebKit + jQuery.merge( nodes, tmp.childNodes ); + + // Remember the top-level container + tmp = fragment.firstChild; + + // Ensure the created nodes are orphaned (#12392) + tmp.textContent = ""; + } + } + } + + // Remove wrapper from fragment + fragment.textContent = ""; + + i = 0; + while ( ( elem = nodes[ i++ ] ) ) { + + // Skip elements already in the context collection (trac-4087) + if ( selection && jQuery.inArray( elem, selection ) > -1 ) { + if ( ignored ) { + ignored.push( elem ); + } + continue; + } + + contains = jQuery.contains( elem.ownerDocument, elem ); + + // Append to fragment + tmp = getAll( fragment.appendChild( elem ), "script" ); + + // Preserve script evaluation history + if ( contains ) { + setGlobalEval( tmp ); + } + + // Capture executables + if ( scripts ) { + j = 0; + while ( ( elem = tmp[ j++ ] ) ) { + if ( rscriptType.test( elem.type || "" ) ) { + scripts.push( elem ); + } + } + } + } + + return fragment; +} + + +( function() { + var fragment = document.createDocumentFragment(), + div = fragment.appendChild( document.createElement( "div" ) ), + input = document.createElement( "input" ); + + // Support: Android 4.0 - 4.3 only + // Check state lost if the name is set (#11217) + // Support: Windows Web Apps (WWA) + // `name` and `type` must use .setAttribute for WWA (#14901) + input.setAttribute( "type", "radio" ); + input.setAttribute( "checked", "checked" ); + input.setAttribute( "name", "t" ); + + div.appendChild( input ); + + // Support: Android <=4.1 only + // Older WebKit doesn't clone checked state correctly in fragments + support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked; + + // Support: IE <=11 only + // Make sure textarea (and checkbox) defaultValue is properly cloned + div.innerHTML = ""; + support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue; +} )(); +var documentElement = document.documentElement; + + + +var + rkeyEvent = /^key/, + rmouseEvent = /^(?:mouse|pointer|contextmenu|drag|drop)|click/, + rtypenamespace = /^([^.]*)(?:\.(.+)|)/; + +function returnTrue() { + return true; +} + +function returnFalse() { + return false; +} + +// Support: IE <=9 only +// See #13393 for more info +function safeActiveElement() { + try { + return document.activeElement; + } catch ( err ) { } +} + +function on( elem, types, selector, data, fn, one ) { + var origFn, type; + + // Types can be a map of types/handlers + if ( typeof types === "object" ) { + + // ( types-Object, selector, data ) + if ( typeof selector !== "string" ) { + + // ( types-Object, data ) + data = data || selector; + selector = undefined; + } + for ( type in types ) { + on( elem, type, selector, data, types[ type ], one ); + } + return elem; + } + + if ( data == null && fn == null ) { + + // ( types, fn ) + fn = selector; + data = selector = undefined; + } else if ( fn == null ) { + if ( typeof selector === "string" ) { + + // ( types, selector, fn ) + fn = data; + data = undefined; + } else { + + // ( types, data, fn ) + fn = data; + data = selector; + selector = undefined; + } + } + if ( fn === false ) { + fn = returnFalse; + } else if ( !fn ) { + return elem; + } + + if ( one === 1 ) { + origFn = fn; + fn = function( event ) { + + // Can use an empty set, since event contains the info + jQuery().off( event ); + return origFn.apply( this, arguments ); + }; + + // Use same guid so caller can remove using origFn + fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ ); + } + return elem.each( function() { + jQuery.event.add( this, types, fn, data, selector ); + } ); +} + +/* + * Helper functions for managing events -- not part of the public interface. + * Props to Dean Edwards' addEvent library for many of the ideas. + */ +jQuery.event = { + + global: {}, + + add: function( elem, types, handler, data, selector ) { + + var handleObjIn, eventHandle, tmp, + events, t, handleObj, + special, handlers, type, namespaces, origType, + elemData = dataPriv.get( elem ); + + // Don't attach events to noData or text/comment nodes (but allow plain objects) + if ( !elemData ) { + return; + } + + // Caller can pass in an object of custom data in lieu of the handler + if ( handler.handler ) { + handleObjIn = handler; + handler = handleObjIn.handler; + selector = handleObjIn.selector; + } + + // Ensure that invalid selectors throw exceptions at attach time + // Evaluate against documentElement in case elem is a non-element node (e.g., document) + if ( selector ) { + jQuery.find.matchesSelector( documentElement, selector ); + } + + // Make sure that the handler has a unique ID, used to find/remove it later + if ( !handler.guid ) { + handler.guid = jQuery.guid++; + } + + // Init the element's event structure and main handler, if this is the first + if ( !( events = elemData.events ) ) { + events = elemData.events = {}; + } + if ( !( eventHandle = elemData.handle ) ) { + eventHandle = elemData.handle = function( e ) { + + // Discard the second event of a jQuery.event.trigger() and + // when an event is called after a page has unloaded + return typeof jQuery !== "undefined" && jQuery.event.triggered !== e.type ? + jQuery.event.dispatch.apply( elem, arguments ) : undefined; + }; + } + + // Handle multiple events separated by a space + types = ( types || "" ).match( rnothtmlwhite ) || [ "" ]; + t = types.length; + while ( t-- ) { + tmp = rtypenamespace.exec( types[ t ] ) || []; + type = origType = tmp[ 1 ]; + namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort(); + + // There *must* be a type, no attaching namespace-only handlers + if ( !type ) { + continue; + } + + // If event changes its type, use the special event handlers for the changed type + special = jQuery.event.special[ type ] || {}; + + // If selector defined, determine special event api type, otherwise given type + type = ( selector ? special.delegateType : special.bindType ) || type; + + // Update special based on newly reset type + special = jQuery.event.special[ type ] || {}; + + // handleObj is passed to all event handlers + handleObj = jQuery.extend( { + type: type, + origType: origType, + data: data, + handler: handler, + guid: handler.guid, + selector: selector, + needsContext: selector && jQuery.expr.match.needsContext.test( selector ), + namespace: namespaces.join( "." ) + }, handleObjIn ); + + // Init the event handler queue if we're the first + if ( !( handlers = events[ type ] ) ) { + handlers = events[ type ] = []; + handlers.delegateCount = 0; + + // Only use addEventListener if the special events handler returns false + if ( !special.setup || + special.setup.call( elem, data, namespaces, eventHandle ) === false ) { + + if ( elem.addEventListener ) { + elem.addEventListener( type, eventHandle ); + } + } + } + + if ( special.add ) { + special.add.call( elem, handleObj ); + + if ( !handleObj.handler.guid ) { + handleObj.handler.guid = handler.guid; + } + } + + // Add to the element's handler list, delegates in front + if ( selector ) { + handlers.splice( handlers.delegateCount++, 0, handleObj ); + } else { + handlers.push( handleObj ); + } + + // Keep track of which events have ever been used, for event optimization + jQuery.event.global[ type ] = true; + } + + }, + + // Detach an event or set of events from an element + remove: function( elem, types, handler, selector, mappedTypes ) { + + var j, origCount, tmp, + events, t, handleObj, + special, handlers, type, namespaces, origType, + elemData = dataPriv.hasData( elem ) && dataPriv.get( elem ); + + if ( !elemData || !( events = elemData.events ) ) { + return; + } + + // Once for each type.namespace in types; type may be omitted + types = ( types || "" ).match( rnothtmlwhite ) || [ "" ]; + t = types.length; + while ( t-- ) { + tmp = rtypenamespace.exec( types[ t ] ) || []; + type = origType = tmp[ 1 ]; + namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort(); + + // Unbind all events (on this namespace, if provided) for the element + if ( !type ) { + for ( type in events ) { + jQuery.event.remove( elem, type + types[ t ], handler, selector, true ); + } + continue; + } + + special = jQuery.event.special[ type ] || {}; + type = ( selector ? special.delegateType : special.bindType ) || type; + handlers = events[ type ] || []; + tmp = tmp[ 2 ] && + new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" ); + + // Remove matching events + origCount = j = handlers.length; + while ( j-- ) { + handleObj = handlers[ j ]; + + if ( ( mappedTypes || origType === handleObj.origType ) && + ( !handler || handler.guid === handleObj.guid ) && + ( !tmp || tmp.test( handleObj.namespace ) ) && + ( !selector || selector === handleObj.selector || + selector === "**" && handleObj.selector ) ) { + handlers.splice( j, 1 ); + + if ( handleObj.selector ) { + handlers.delegateCount--; + } + if ( special.remove ) { + special.remove.call( elem, handleObj ); + } + } + } + + // Remove generic event handler if we removed something and no more handlers exist + // (avoids potential for endless recursion during removal of special event handlers) + if ( origCount && !handlers.length ) { + if ( !special.teardown || + special.teardown.call( elem, namespaces, elemData.handle ) === false ) { + + jQuery.removeEvent( elem, type, elemData.handle ); + } + + delete events[ type ]; + } + } + + // Remove data and the expando if it's no longer used + if ( jQuery.isEmptyObject( events ) ) { + dataPriv.remove( elem, "handle events" ); + } + }, + + dispatch: function( nativeEvent ) { + + // Make a writable jQuery.Event from the native event object + var event = jQuery.event.fix( nativeEvent ); + + var i, j, ret, matched, handleObj, handlerQueue, + args = new Array( arguments.length ), + handlers = ( dataPriv.get( this, "events" ) || {} )[ event.type ] || [], + special = jQuery.event.special[ event.type ] || {}; + + // Use the fix-ed jQuery.Event rather than the (read-only) native event + args[ 0 ] = event; + + for ( i = 1; i < arguments.length; i++ ) { + args[ i ] = arguments[ i ]; + } + + event.delegateTarget = this; + + // Call the preDispatch hook for the mapped type, and let it bail if desired + if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) { + return; + } + + // Determine handlers + handlerQueue = jQuery.event.handlers.call( this, event, handlers ); + + // Run delegates first; they may want to stop propagation beneath us + i = 0; + while ( ( matched = handlerQueue[ i++ ] ) && !event.isPropagationStopped() ) { + event.currentTarget = matched.elem; + + j = 0; + while ( ( handleObj = matched.handlers[ j++ ] ) && + !event.isImmediatePropagationStopped() ) { + + // Triggered event must either 1) have no namespace, or 2) have namespace(s) + // a subset or equal to those in the bound event (both can have no namespace). + if ( !event.rnamespace || event.rnamespace.test( handleObj.namespace ) ) { + + event.handleObj = handleObj; + event.data = handleObj.data; + + ret = ( ( jQuery.event.special[ handleObj.origType ] || {} ).handle || + handleObj.handler ).apply( matched.elem, args ); + + if ( ret !== undefined ) { + if ( ( event.result = ret ) === false ) { + event.preventDefault(); + event.stopPropagation(); + } + } + } + } + } + + // Call the postDispatch hook for the mapped type + if ( special.postDispatch ) { + special.postDispatch.call( this, event ); + } + + return event.result; + }, + + handlers: function( event, handlers ) { + var i, handleObj, sel, matchedHandlers, matchedSelectors, + handlerQueue = [], + delegateCount = handlers.delegateCount, + cur = event.target; + + // Find delegate handlers + if ( delegateCount && + + // Support: IE <=9 + // Black-hole SVG instance trees (trac-13180) + cur.nodeType && + + // Support: Firefox <=42 + // Suppress spec-violating clicks indicating a non-primary pointer button (trac-3861) + // https://www.w3.org/TR/DOM-Level-3-Events/#event-type-click + // Support: IE 11 only + // ...but not arrow key "clicks" of radio inputs, which can have `button` -1 (gh-2343) + !( event.type === "click" && event.button >= 1 ) ) { + + for ( ; cur !== this; cur = cur.parentNode || this ) { + + // Don't check non-elements (#13208) + // Don't process clicks on disabled elements (#6911, #8165, #11382, #11764) + if ( cur.nodeType === 1 && !( event.type === "click" && cur.disabled === true ) ) { + matchedHandlers = []; + matchedSelectors = {}; + for ( i = 0; i < delegateCount; i++ ) { + handleObj = handlers[ i ]; + + // Don't conflict with Object.prototype properties (#13203) + sel = handleObj.selector + " "; + + if ( matchedSelectors[ sel ] === undefined ) { + matchedSelectors[ sel ] = handleObj.needsContext ? + jQuery( sel, this ).index( cur ) > -1 : + jQuery.find( sel, this, null, [ cur ] ).length; + } + if ( matchedSelectors[ sel ] ) { + matchedHandlers.push( handleObj ); + } + } + if ( matchedHandlers.length ) { + handlerQueue.push( { elem: cur, handlers: matchedHandlers } ); + } + } + } + } + + // Add the remaining (directly-bound) handlers + cur = this; + if ( delegateCount < handlers.length ) { + handlerQueue.push( { elem: cur, handlers: handlers.slice( delegateCount ) } ); + } + + return handlerQueue; + }, + + addProp: function( name, hook ) { + Object.defineProperty( jQuery.Event.prototype, name, { + enumerable: true, + configurable: true, + + get: jQuery.isFunction( hook ) ? + function() { + if ( this.originalEvent ) { + return hook( this.originalEvent ); + } + } : + function() { + if ( this.originalEvent ) { + return this.originalEvent[ name ]; + } + }, + + set: function( value ) { + Object.defineProperty( this, name, { + enumerable: true, + configurable: true, + writable: true, + value: value + } ); + } + } ); + }, + + fix: function( originalEvent ) { + return originalEvent[ jQuery.expando ] ? + originalEvent : + new jQuery.Event( originalEvent ); + }, + + special: { + load: { + + // Prevent triggered image.load events from bubbling to window.load + noBubble: true + }, + focus: { + + // Fire native event if possible so blur/focus sequence is correct + trigger: function() { + if ( this !== safeActiveElement() && this.focus ) { + this.focus(); + return false; + } + }, + delegateType: "focusin" + }, + blur: { + trigger: function() { + if ( this === safeActiveElement() && this.blur ) { + this.blur(); + return false; + } + }, + delegateType: "focusout" + }, + click: { + + // For checkbox, fire native event so checked state will be right + trigger: function() { + if ( this.type === "checkbox" && this.click && nodeName( this, "input" ) ) { + this.click(); + return false; + } + }, + + // For cross-browser consistency, don't fire native .click() on links + _default: function( event ) { + return nodeName( event.target, "a" ); + } + }, + + beforeunload: { + postDispatch: function( event ) { + + // Support: Firefox 20+ + // Firefox doesn't alert if the returnValue field is not set. + if ( event.result !== undefined && event.originalEvent ) { + event.originalEvent.returnValue = event.result; + } + } + } + } +}; + +jQuery.removeEvent = function( elem, type, handle ) { + + // This "if" is needed for plain objects + if ( elem.removeEventListener ) { + elem.removeEventListener( type, handle ); + } +}; + +jQuery.Event = function( src, props ) { + + // Allow instantiation without the 'new' keyword + if ( !( this instanceof jQuery.Event ) ) { + return new jQuery.Event( src, props ); + } + + // Event object + if ( src && src.type ) { + this.originalEvent = src; + this.type = src.type; + + // Events bubbling up the document may have been marked as prevented + // by a handler lower down the tree; reflect the correct value. + this.isDefaultPrevented = src.defaultPrevented || + src.defaultPrevented === undefined && + + // Support: Android <=2.3 only + src.returnValue === false ? + returnTrue : + returnFalse; + + // Create target properties + // Support: Safari <=6 - 7 only + // Target should not be a text node (#504, #13143) + this.target = ( src.target && src.target.nodeType === 3 ) ? + src.target.parentNode : + src.target; + + this.currentTarget = src.currentTarget; + this.relatedTarget = src.relatedTarget; + + // Event type + } else { + this.type = src; + } + + // Put explicitly provided properties onto the event object + if ( props ) { + jQuery.extend( this, props ); + } + + // Create a timestamp if incoming event doesn't have one + this.timeStamp = src && src.timeStamp || jQuery.now(); + + // Mark it as fixed + this[ jQuery.expando ] = true; +}; + +// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding +// https://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html +jQuery.Event.prototype = { + constructor: jQuery.Event, + isDefaultPrevented: returnFalse, + isPropagationStopped: returnFalse, + isImmediatePropagationStopped: returnFalse, + isSimulated: false, + + preventDefault: function() { + var e = this.originalEvent; + + this.isDefaultPrevented = returnTrue; + + if ( e && !this.isSimulated ) { + e.preventDefault(); + } + }, + stopPropagation: function() { + var e = this.originalEvent; + + this.isPropagationStopped = returnTrue; + + if ( e && !this.isSimulated ) { + e.stopPropagation(); + } + }, + stopImmediatePropagation: function() { + var e = this.originalEvent; + + this.isImmediatePropagationStopped = returnTrue; + + if ( e && !this.isSimulated ) { + e.stopImmediatePropagation(); + } + + this.stopPropagation(); + } +}; + +// Includes all common event props including KeyEvent and MouseEvent specific props +jQuery.each( { + altKey: true, + bubbles: true, + cancelable: true, + changedTouches: true, + ctrlKey: true, + detail: true, + eventPhase: true, + metaKey: true, + pageX: true, + pageY: true, + shiftKey: true, + view: true, + "char": true, + charCode: true, + key: true, + keyCode: true, + button: true, + buttons: true, + clientX: true, + clientY: true, + offsetX: true, + offsetY: true, + pointerId: true, + pointerType: true, + screenX: true, + screenY: true, + targetTouches: true, + toElement: true, + touches: true, + + which: function( event ) { + var button = event.button; + + // Add which for key events + if ( event.which == null && rkeyEvent.test( event.type ) ) { + return event.charCode != null ? event.charCode : event.keyCode; + } + + // Add which for click: 1 === left; 2 === middle; 3 === right + if ( !event.which && button !== undefined && rmouseEvent.test( event.type ) ) { + if ( button & 1 ) { + return 1; + } + + if ( button & 2 ) { + return 3; + } + + if ( button & 4 ) { + return 2; + } + + return 0; + } + + return event.which; + } +}, jQuery.event.addProp ); + +// Create mouseenter/leave events using mouseover/out and event-time checks +// so that event delegation works in jQuery. +// Do the same for pointerenter/pointerleave and pointerover/pointerout +// +// Support: Safari 7 only +// Safari sends mouseenter too often; see: +// https://bugs.chromium.org/p/chromium/issues/detail?id=470258 +// for the description of the bug (it existed in older Chrome versions as well). +jQuery.each( { + mouseenter: "mouseover", + mouseleave: "mouseout", + pointerenter: "pointerover", + pointerleave: "pointerout" +}, function( orig, fix ) { + jQuery.event.special[ orig ] = { + delegateType: fix, + bindType: fix, + + handle: function( event ) { + var ret, + target = this, + related = event.relatedTarget, + handleObj = event.handleObj; + + // For mouseenter/leave call the handler if related is outside the target. + // NB: No relatedTarget if the mouse left/entered the browser window + if ( !related || ( related !== target && !jQuery.contains( target, related ) ) ) { + event.type = handleObj.origType; + ret = handleObj.handler.apply( this, arguments ); + event.type = fix; + } + return ret; + } + }; +} ); + +jQuery.fn.extend( { + + on: function( types, selector, data, fn ) { + return on( this, types, selector, data, fn ); + }, + one: function( types, selector, data, fn ) { + return on( this, types, selector, data, fn, 1 ); + }, + off: function( types, selector, fn ) { + var handleObj, type; + if ( types && types.preventDefault && types.handleObj ) { + + // ( event ) dispatched jQuery.Event + handleObj = types.handleObj; + jQuery( types.delegateTarget ).off( + handleObj.namespace ? + handleObj.origType + "." + handleObj.namespace : + handleObj.origType, + handleObj.selector, + handleObj.handler + ); + return this; + } + if ( typeof types === "object" ) { + + // ( types-object [, selector] ) + for ( type in types ) { + this.off( type, selector, types[ type ] ); + } + return this; + } + if ( selector === false || typeof selector === "function" ) { + + // ( types [, fn] ) + fn = selector; + selector = undefined; + } + if ( fn === false ) { + fn = returnFalse; + } + return this.each( function() { + jQuery.event.remove( this, types, fn, selector ); + } ); + } +} ); + + +var + + /* eslint-disable max-len */ + + // See https://github.com/eslint/eslint/issues/3229 + rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi, + + /* eslint-enable */ + + // Support: IE <=10 - 11, Edge 12 - 13 + // In IE/Edge using regex groups here causes severe slowdowns. + // See https://connect.microsoft.com/IE/feedback/details/1736512/ + rnoInnerhtml = /\s*$/g; + +// Prefer a tbody over its parent table for containing new rows +function manipulationTarget( elem, content ) { + if ( nodeName( elem, "table" ) && + nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ) { + + return jQuery( ">tbody", elem )[ 0 ] || elem; + } + + return elem; +} + +// Replace/restore the type attribute of script elements for safe DOM manipulation +function disableScript( elem ) { + elem.type = ( elem.getAttribute( "type" ) !== null ) + "/" + elem.type; + return elem; +} +function restoreScript( elem ) { + var match = rscriptTypeMasked.exec( elem.type ); + + if ( match ) { + elem.type = match[ 1 ]; + } else { + elem.removeAttribute( "type" ); + } + + return elem; +} + +function cloneCopyEvent( src, dest ) { + var i, l, type, pdataOld, pdataCur, udataOld, udataCur, events; + + if ( dest.nodeType !== 1 ) { + return; + } + + // 1. Copy private data: events, handlers, etc. + if ( dataPriv.hasData( src ) ) { + pdataOld = dataPriv.access( src ); + pdataCur = dataPriv.set( dest, pdataOld ); + events = pdataOld.events; + + if ( events ) { + delete pdataCur.handle; + pdataCur.events = {}; + + for ( type in events ) { + for ( i = 0, l = events[ type ].length; i < l; i++ ) { + jQuery.event.add( dest, type, events[ type ][ i ] ); + } + } + } + } + + // 2. Copy user data + if ( dataUser.hasData( src ) ) { + udataOld = dataUser.access( src ); + udataCur = jQuery.extend( {}, udataOld ); + + dataUser.set( dest, udataCur ); + } +} + +// Fix IE bugs, see support tests +function fixInput( src, dest ) { + var nodeName = dest.nodeName.toLowerCase(); + + // Fails to persist the checked state of a cloned checkbox or radio button. + if ( nodeName === "input" && rcheckableType.test( src.type ) ) { + dest.checked = src.checked; + + // Fails to return the selected option to the default selected state when cloning options + } else if ( nodeName === "input" || nodeName === "textarea" ) { + dest.defaultValue = src.defaultValue; + } +} + +function domManip( collection, args, callback, ignored ) { + + // Flatten any nested arrays + args = concat.apply( [], args ); + + var fragment, first, scripts, hasScripts, node, doc, + i = 0, + l = collection.length, + iNoClone = l - 1, + value = args[ 0 ], + isFunction = jQuery.isFunction( value ); + + // We can't cloneNode fragments that contain checked, in WebKit + if ( isFunction || + ( l > 1 && typeof value === "string" && + !support.checkClone && rchecked.test( value ) ) ) { + return collection.each( function( index ) { + var self = collection.eq( index ); + if ( isFunction ) { + args[ 0 ] = value.call( this, index, self.html() ); + } + domManip( self, args, callback, ignored ); + } ); + } + + if ( l ) { + fragment = buildFragment( args, collection[ 0 ].ownerDocument, false, collection, ignored ); + first = fragment.firstChild; + + if ( fragment.childNodes.length === 1 ) { + fragment = first; + } + + // Require either new content or an interest in ignored elements to invoke the callback + if ( first || ignored ) { + scripts = jQuery.map( getAll( fragment, "script" ), disableScript ); + hasScripts = scripts.length; + + // Use the original fragment for the last item + // instead of the first because it can end up + // being emptied incorrectly in certain situations (#8070). + for ( ; i < l; i++ ) { + node = fragment; + + if ( i !== iNoClone ) { + node = jQuery.clone( node, true, true ); + + // Keep references to cloned scripts for later restoration + if ( hasScripts ) { + + // Support: Android <=4.0 only, PhantomJS 1 only + // push.apply(_, arraylike) throws on ancient WebKit + jQuery.merge( scripts, getAll( node, "script" ) ); + } + } + + callback.call( collection[ i ], node, i ); + } + + if ( hasScripts ) { + doc = scripts[ scripts.length - 1 ].ownerDocument; + + // Reenable scripts + jQuery.map( scripts, restoreScript ); + + // Evaluate executable scripts on first document insertion + for ( i = 0; i < hasScripts; i++ ) { + node = scripts[ i ]; + if ( rscriptType.test( node.type || "" ) && + !dataPriv.access( node, "globalEval" ) && + jQuery.contains( doc, node ) ) { + + if ( node.src ) { + + // Optional AJAX dependency, but won't run scripts if not present + if ( jQuery._evalUrl ) { + jQuery._evalUrl( node.src ); + } + } else { + DOMEval( node.textContent.replace( rcleanScript, "" ), doc ); + } + } + } + } + } + } + + return collection; +} + +function remove( elem, selector, keepData ) { + var node, + nodes = selector ? jQuery.filter( selector, elem ) : elem, + i = 0; + + for ( ; ( node = nodes[ i ] ) != null; i++ ) { + if ( !keepData && node.nodeType === 1 ) { + jQuery.cleanData( getAll( node ) ); + } + + if ( node.parentNode ) { + if ( keepData && jQuery.contains( node.ownerDocument, node ) ) { + setGlobalEval( getAll( node, "script" ) ); + } + node.parentNode.removeChild( node ); + } + } + + return elem; +} + +jQuery.extend( { + htmlPrefilter: function( html ) { + return html.replace( rxhtmlTag, "<$1>" ); + }, + + clone: function( elem, dataAndEvents, deepDataAndEvents ) { + var i, l, srcElements, destElements, + clone = elem.cloneNode( true ), + inPage = jQuery.contains( elem.ownerDocument, elem ); + + // Fix IE cloning issues + if ( !support.noCloneChecked && ( elem.nodeType === 1 || elem.nodeType === 11 ) && + !jQuery.isXMLDoc( elem ) ) { + + // We eschew Sizzle here for performance reasons: https://jsperf.com/getall-vs-sizzle/2 + destElements = getAll( clone ); + srcElements = getAll( elem ); + + for ( i = 0, l = srcElements.length; i < l; i++ ) { + fixInput( srcElements[ i ], destElements[ i ] ); + } + } + + // Copy the events from the original to the clone + if ( dataAndEvents ) { + if ( deepDataAndEvents ) { + srcElements = srcElements || getAll( elem ); + destElements = destElements || getAll( clone ); + + for ( i = 0, l = srcElements.length; i < l; i++ ) { + cloneCopyEvent( srcElements[ i ], destElements[ i ] ); + } + } else { + cloneCopyEvent( elem, clone ); + } + } + + // Preserve script evaluation history + destElements = getAll( clone, "script" ); + if ( destElements.length > 0 ) { + setGlobalEval( destElements, !inPage && getAll( elem, "script" ) ); + } + + // Return the cloned set + return clone; + }, + + cleanData: function( elems ) { + var data, elem, type, + special = jQuery.event.special, + i = 0; + + for ( ; ( elem = elems[ i ] ) !== undefined; i++ ) { + if ( acceptData( elem ) ) { + if ( ( data = elem[ dataPriv.expando ] ) ) { + if ( data.events ) { + for ( type in data.events ) { + if ( special[ type ] ) { + jQuery.event.remove( elem, type ); + + // This is a shortcut to avoid jQuery.event.remove's overhead + } else { + jQuery.removeEvent( elem, type, data.handle ); + } + } + } + + // Support: Chrome <=35 - 45+ + // Assign undefined instead of using delete, see Data#remove + elem[ dataPriv.expando ] = undefined; + } + if ( elem[ dataUser.expando ] ) { + + // Support: Chrome <=35 - 45+ + // Assign undefined instead of using delete, see Data#remove + elem[ dataUser.expando ] = undefined; + } + } + } + } +} ); + +jQuery.fn.extend( { + detach: function( selector ) { + return remove( this, selector, true ); + }, + + remove: function( selector ) { + return remove( this, selector ); + }, + + text: function( value ) { + return access( this, function( value ) { + return value === undefined ? + jQuery.text( this ) : + this.empty().each( function() { + if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { + this.textContent = value; + } + } ); + }, null, value, arguments.length ); + }, + + append: function() { + return domManip( this, arguments, function( elem ) { + if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { + var target = manipulationTarget( this, elem ); + target.appendChild( elem ); + } + } ); + }, + + prepend: function() { + return domManip( this, arguments, function( elem ) { + if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { + var target = manipulationTarget( this, elem ); + target.insertBefore( elem, target.firstChild ); + } + } ); + }, + + before: function() { + return domManip( this, arguments, function( elem ) { + if ( this.parentNode ) { + this.parentNode.insertBefore( elem, this ); + } + } ); + }, + + after: function() { + return domManip( this, arguments, function( elem ) { + if ( this.parentNode ) { + this.parentNode.insertBefore( elem, this.nextSibling ); + } + } ); + }, + + empty: function() { + var elem, + i = 0; + + for ( ; ( elem = this[ i ] ) != null; i++ ) { + if ( elem.nodeType === 1 ) { + + // Prevent memory leaks + jQuery.cleanData( getAll( elem, false ) ); + + // Remove any remaining nodes + elem.textContent = ""; + } + } + + return this; + }, + + clone: function( dataAndEvents, deepDataAndEvents ) { + dataAndEvents = dataAndEvents == null ? false : dataAndEvents; + deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents; + + return this.map( function() { + return jQuery.clone( this, dataAndEvents, deepDataAndEvents ); + } ); + }, + + html: function( value ) { + return access( this, function( value ) { + var elem = this[ 0 ] || {}, + i = 0, + l = this.length; + + if ( value === undefined && elem.nodeType === 1 ) { + return elem.innerHTML; + } + + // See if we can take a shortcut and just use innerHTML + if ( typeof value === "string" && !rnoInnerhtml.test( value ) && + !wrapMap[ ( rtagName.exec( value ) || [ "", "" ] )[ 1 ].toLowerCase() ] ) { + + value = jQuery.htmlPrefilter( value ); + + try { + for ( ; i < l; i++ ) { + elem = this[ i ] || {}; + + // Remove element nodes and prevent memory leaks + if ( elem.nodeType === 1 ) { + jQuery.cleanData( getAll( elem, false ) ); + elem.innerHTML = value; + } + } + + elem = 0; + + // If using innerHTML throws an exception, use the fallback method + } catch ( e ) {} + } + + if ( elem ) { + this.empty().append( value ); + } + }, null, value, arguments.length ); + }, + + replaceWith: function() { + var ignored = []; + + // Make the changes, replacing each non-ignored context element with the new content + return domManip( this, arguments, function( elem ) { + var parent = this.parentNode; + + if ( jQuery.inArray( this, ignored ) < 0 ) { + jQuery.cleanData( getAll( this ) ); + if ( parent ) { + parent.replaceChild( elem, this ); + } + } + + // Force callback invocation + }, ignored ); + } +} ); + +jQuery.each( { + appendTo: "append", + prependTo: "prepend", + insertBefore: "before", + insertAfter: "after", + replaceAll: "replaceWith" +}, function( name, original ) { + jQuery.fn[ name ] = function( selector ) { + var elems, + ret = [], + insert = jQuery( selector ), + last = insert.length - 1, + i = 0; + + for ( ; i <= last; i++ ) { + elems = i === last ? this : this.clone( true ); + jQuery( insert[ i ] )[ original ]( elems ); + + // Support: Android <=4.0 only, PhantomJS 1 only + // .get() because push.apply(_, arraylike) throws on ancient WebKit + push.apply( ret, elems.get() ); + } + + return this.pushStack( ret ); + }; +} ); +var rmargin = ( /^margin/ ); + +var rnumnonpx = new RegExp( "^(" + pnum + ")(?!px)[a-z%]+$", "i" ); + +var getStyles = function( elem ) { + + // Support: IE <=11 only, Firefox <=30 (#15098, #14150) + // IE throws on elements created in popups + // FF meanwhile throws on frame elements through "defaultView.getComputedStyle" + var view = elem.ownerDocument.defaultView; + + if ( !view || !view.opener ) { + view = window; + } + + return view.getComputedStyle( elem ); + }; + + + +( function() { + + // Executing both pixelPosition & boxSizingReliable tests require only one layout + // so they're executed at the same time to save the second computation. + function computeStyleTests() { + + // This is a singleton, we need to execute it only once + if ( !div ) { + return; + } + + div.style.cssText = + "box-sizing:border-box;" + + "position:relative;display:block;" + + "margin:auto;border:1px;padding:1px;" + + "top:1%;width:50%"; + div.innerHTML = ""; + documentElement.appendChild( container ); + + var divStyle = window.getComputedStyle( div ); + pixelPositionVal = divStyle.top !== "1%"; + + // Support: Android 4.0 - 4.3 only, Firefox <=3 - 44 + reliableMarginLeftVal = divStyle.marginLeft === "2px"; + boxSizingReliableVal = divStyle.width === "4px"; + + // Support: Android 4.0 - 4.3 only + // Some styles come back with percentage values, even though they shouldn't + div.style.marginRight = "50%"; + pixelMarginRightVal = divStyle.marginRight === "4px"; + + documentElement.removeChild( container ); + + // Nullify the div so it wouldn't be stored in the memory and + // it will also be a sign that checks already performed + div = null; + } + + var pixelPositionVal, boxSizingReliableVal, pixelMarginRightVal, reliableMarginLeftVal, + container = document.createElement( "div" ), + div = document.createElement( "div" ); + + // Finish early in limited (non-browser) environments + if ( !div.style ) { + return; + } + + // Support: IE <=9 - 11 only + // Style of cloned element affects source element cloned (#8908) + div.style.backgroundClip = "content-box"; + div.cloneNode( true ).style.backgroundClip = ""; + support.clearCloneStyle = div.style.backgroundClip === "content-box"; + + container.style.cssText = "border:0;width:8px;height:0;top:0;left:-9999px;" + + "padding:0;margin-top:1px;position:absolute"; + container.appendChild( div ); + + jQuery.extend( support, { + pixelPosition: function() { + computeStyleTests(); + return pixelPositionVal; + }, + boxSizingReliable: function() { + computeStyleTests(); + return boxSizingReliableVal; + }, + pixelMarginRight: function() { + computeStyleTests(); + return pixelMarginRightVal; + }, + reliableMarginLeft: function() { + computeStyleTests(); + return reliableMarginLeftVal; + } + } ); +} )(); + + +function curCSS( elem, name, computed ) { + var width, minWidth, maxWidth, ret, + + // Support: Firefox 51+ + // Retrieving style before computed somehow + // fixes an issue with getting wrong values + // on detached elements + style = elem.style; + + computed = computed || getStyles( elem ); + + // getPropertyValue is needed for: + // .css('filter') (IE 9 only, #12537) + // .css('--customProperty) (#3144) + if ( computed ) { + ret = computed.getPropertyValue( name ) || computed[ name ]; + + if ( ret === "" && !jQuery.contains( elem.ownerDocument, elem ) ) { + ret = jQuery.style( elem, name ); + } + + // A tribute to the "awesome hack by Dean Edwards" + // Android Browser returns percentage for some values, + // but width seems to be reliably pixels. + // This is against the CSSOM draft spec: + // https://drafts.csswg.org/cssom/#resolved-values + if ( !support.pixelMarginRight() && rnumnonpx.test( ret ) && rmargin.test( name ) ) { + + // Remember the original values + width = style.width; + minWidth = style.minWidth; + maxWidth = style.maxWidth; + + // Put in the new values to get a computed value out + style.minWidth = style.maxWidth = style.width = ret; + ret = computed.width; + + // Revert the changed values + style.width = width; + style.minWidth = minWidth; + style.maxWidth = maxWidth; + } + } + + return ret !== undefined ? + + // Support: IE <=9 - 11 only + // IE returns zIndex value as an integer. + ret + "" : + ret; +} + + +function addGetHookIf( conditionFn, hookFn ) { + + // Define the hook, we'll check on the first run if it's really needed. + return { + get: function() { + if ( conditionFn() ) { + + // Hook not needed (or it's not possible to use it due + // to missing dependency), remove it. + delete this.get; + return; + } + + // Hook needed; redefine it so that the support test is not executed again. + return ( this.get = hookFn ).apply( this, arguments ); + } + }; +} + + +var + + // Swappable if display is none or starts with table + // except "table", "table-cell", or "table-caption" + // See here for display values: https://developer.mozilla.org/en-US/docs/CSS/display + rdisplayswap = /^(none|table(?!-c[ea]).+)/, + rcustomProp = /^--/, + cssShow = { position: "absolute", visibility: "hidden", display: "block" }, + cssNormalTransform = { + letterSpacing: "0", + fontWeight: "400" + }, + + cssPrefixes = [ "Webkit", "Moz", "ms" ], + emptyStyle = document.createElement( "div" ).style; + +// Return a css property mapped to a potentially vendor prefixed property +function vendorPropName( name ) { + + // Shortcut for names that are not vendor prefixed + if ( name in emptyStyle ) { + return name; + } + + // Check for vendor prefixed names + var capName = name[ 0 ].toUpperCase() + name.slice( 1 ), + i = cssPrefixes.length; + + while ( i-- ) { + name = cssPrefixes[ i ] + capName; + if ( name in emptyStyle ) { + return name; + } + } +} + +// Return a property mapped along what jQuery.cssProps suggests or to +// a vendor prefixed property. +function finalPropName( name ) { + var ret = jQuery.cssProps[ name ]; + if ( !ret ) { + ret = jQuery.cssProps[ name ] = vendorPropName( name ) || name; + } + return ret; +} + +function setPositiveNumber( elem, value, subtract ) { + + // Any relative (+/-) values have already been + // normalized at this point + var matches = rcssNum.exec( value ); + return matches ? + + // Guard against undefined "subtract", e.g., when used as in cssHooks + Math.max( 0, matches[ 2 ] - ( subtract || 0 ) ) + ( matches[ 3 ] || "px" ) : + value; +} + +function augmentWidthOrHeight( elem, name, extra, isBorderBox, styles ) { + var i, + val = 0; + + // If we already have the right measurement, avoid augmentation + if ( extra === ( isBorderBox ? "border" : "content" ) ) { + i = 4; + + // Otherwise initialize for horizontal or vertical properties + } else { + i = name === "width" ? 1 : 0; + } + + for ( ; i < 4; i += 2 ) { + + // Both box models exclude margin, so add it if we want it + if ( extra === "margin" ) { + val += jQuery.css( elem, extra + cssExpand[ i ], true, styles ); + } + + if ( isBorderBox ) { + + // border-box includes padding, so remove it if we want content + if ( extra === "content" ) { + val -= jQuery.css( elem, "padding" + cssExpand[ i ], true, styles ); + } + + // At this point, extra isn't border nor margin, so remove border + if ( extra !== "margin" ) { + val -= jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); + } + } else { + + // At this point, extra isn't content, so add padding + val += jQuery.css( elem, "padding" + cssExpand[ i ], true, styles ); + + // At this point, extra isn't content nor padding, so add border + if ( extra !== "padding" ) { + val += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); + } + } + } + + return val; +} + +function getWidthOrHeight( elem, name, extra ) { + + // Start with computed style + var valueIsBorderBox, + styles = getStyles( elem ), + val = curCSS( elem, name, styles ), + isBorderBox = jQuery.css( elem, "boxSizing", false, styles ) === "border-box"; + + // Computed unit is not pixels. Stop here and return. + if ( rnumnonpx.test( val ) ) { + return val; + } + + // Check for style in case a browser which returns unreliable values + // for getComputedStyle silently falls back to the reliable elem.style + valueIsBorderBox = isBorderBox && + ( support.boxSizingReliable() || val === elem.style[ name ] ); + + // Fall back to offsetWidth/Height when value is "auto" + // This happens for inline elements with no explicit setting (gh-3571) + if ( val === "auto" ) { + val = elem[ "offset" + name[ 0 ].toUpperCase() + name.slice( 1 ) ]; + } + + // Normalize "", auto, and prepare for extra + val = parseFloat( val ) || 0; + + // Use the active box-sizing model to add/subtract irrelevant styles + return ( val + + augmentWidthOrHeight( + elem, + name, + extra || ( isBorderBox ? "border" : "content" ), + valueIsBorderBox, + styles + ) + ) + "px"; +} + +jQuery.extend( { + + // Add in style property hooks for overriding the default + // behavior of getting and setting a style property + cssHooks: { + opacity: { + get: function( elem, computed ) { + if ( computed ) { + + // We should always get a number back from opacity + var ret = curCSS( elem, "opacity" ); + return ret === "" ? "1" : ret; + } + } + } + }, + + // Don't automatically add "px" to these possibly-unitless properties + cssNumber: { + "animationIterationCount": true, + "columnCount": true, + "fillOpacity": true, + "flexGrow": true, + "flexShrink": true, + "fontWeight": true, + "lineHeight": true, + "opacity": true, + "order": true, + "orphans": true, + "widows": true, + "zIndex": true, + "zoom": true + }, + + // Add in properties whose names you wish to fix before + // setting or getting the value + cssProps: { + "float": "cssFloat" + }, + + // Get and set the style property on a DOM Node + style: function( elem, name, value, extra ) { + + // Don't set styles on text and comment nodes + if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) { + return; + } + + // Make sure that we're working with the right name + var ret, type, hooks, + origName = jQuery.camelCase( name ), + isCustomProp = rcustomProp.test( name ), + style = elem.style; + + // Make sure that we're working with the right name. We don't + // want to query the value if it is a CSS custom property + // since they are user-defined. + if ( !isCustomProp ) { + name = finalPropName( origName ); + } + + // Gets hook for the prefixed version, then unprefixed version + hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ]; + + // Check if we're setting a value + if ( value !== undefined ) { + type = typeof value; + + // Convert "+=" or "-=" to relative numbers (#7345) + if ( type === "string" && ( ret = rcssNum.exec( value ) ) && ret[ 1 ] ) { + value = adjustCSS( elem, name, ret ); + + // Fixes bug #9237 + type = "number"; + } + + // Make sure that null and NaN values aren't set (#7116) + if ( value == null || value !== value ) { + return; + } + + // If a number was passed in, add the unit (except for certain CSS properties) + if ( type === "number" ) { + value += ret && ret[ 3 ] || ( jQuery.cssNumber[ origName ] ? "" : "px" ); + } + + // background-* props affect original clone's values + if ( !support.clearCloneStyle && value === "" && name.indexOf( "background" ) === 0 ) { + style[ name ] = "inherit"; + } + + // If a hook was provided, use that value, otherwise just set the specified value + if ( !hooks || !( "set" in hooks ) || + ( value = hooks.set( elem, value, extra ) ) !== undefined ) { + + if ( isCustomProp ) { + style.setProperty( name, value ); + } else { + style[ name ] = value; + } + } + + } else { + + // If a hook was provided get the non-computed value from there + if ( hooks && "get" in hooks && + ( ret = hooks.get( elem, false, extra ) ) !== undefined ) { + + return ret; + } + + // Otherwise just get the value from the style object + return style[ name ]; + } + }, + + css: function( elem, name, extra, styles ) { + var val, num, hooks, + origName = jQuery.camelCase( name ), + isCustomProp = rcustomProp.test( name ); + + // Make sure that we're working with the right name. We don't + // want to modify the value if it is a CSS custom property + // since they are user-defined. + if ( !isCustomProp ) { + name = finalPropName( origName ); + } + + // Try prefixed name followed by the unprefixed name + hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ]; + + // If a hook was provided get the computed value from there + if ( hooks && "get" in hooks ) { + val = hooks.get( elem, true, extra ); + } + + // Otherwise, if a way to get the computed value exists, use that + if ( val === undefined ) { + val = curCSS( elem, name, styles ); + } + + // Convert "normal" to computed value + if ( val === "normal" && name in cssNormalTransform ) { + val = cssNormalTransform[ name ]; + } + + // Make numeric if forced or a qualifier was provided and val looks numeric + if ( extra === "" || extra ) { + num = parseFloat( val ); + return extra === true || isFinite( num ) ? num || 0 : val; + } + + return val; + } +} ); + +jQuery.each( [ "height", "width" ], function( i, name ) { + jQuery.cssHooks[ name ] = { + get: function( elem, computed, extra ) { + if ( computed ) { + + // Certain elements can have dimension info if we invisibly show them + // but it must have a current display style that would benefit + return rdisplayswap.test( jQuery.css( elem, "display" ) ) && + + // Support: Safari 8+ + // Table columns in Safari have non-zero offsetWidth & zero + // getBoundingClientRect().width unless display is changed. + // Support: IE <=11 only + // Running getBoundingClientRect on a disconnected node + // in IE throws an error. + ( !elem.getClientRects().length || !elem.getBoundingClientRect().width ) ? + swap( elem, cssShow, function() { + return getWidthOrHeight( elem, name, extra ); + } ) : + getWidthOrHeight( elem, name, extra ); + } + }, + + set: function( elem, value, extra ) { + var matches, + styles = extra && getStyles( elem ), + subtract = extra && augmentWidthOrHeight( + elem, + name, + extra, + jQuery.css( elem, "boxSizing", false, styles ) === "border-box", + styles + ); + + // Convert to pixels if value adjustment is needed + if ( subtract && ( matches = rcssNum.exec( value ) ) && + ( matches[ 3 ] || "px" ) !== "px" ) { + + elem.style[ name ] = value; + value = jQuery.css( elem, name ); + } + + return setPositiveNumber( elem, value, subtract ); + } + }; +} ); + +jQuery.cssHooks.marginLeft = addGetHookIf( support.reliableMarginLeft, + function( elem, computed ) { + if ( computed ) { + return ( parseFloat( curCSS( elem, "marginLeft" ) ) || + elem.getBoundingClientRect().left - + swap( elem, { marginLeft: 0 }, function() { + return elem.getBoundingClientRect().left; + } ) + ) + "px"; + } + } +); + +// These hooks are used by animate to expand properties +jQuery.each( { + margin: "", + padding: "", + border: "Width" +}, function( prefix, suffix ) { + jQuery.cssHooks[ prefix + suffix ] = { + expand: function( value ) { + var i = 0, + expanded = {}, + + // Assumes a single number if not a string + parts = typeof value === "string" ? value.split( " " ) : [ value ]; + + for ( ; i < 4; i++ ) { + expanded[ prefix + cssExpand[ i ] + suffix ] = + parts[ i ] || parts[ i - 2 ] || parts[ 0 ]; + } + + return expanded; + } + }; + + if ( !rmargin.test( prefix ) ) { + jQuery.cssHooks[ prefix + suffix ].set = setPositiveNumber; + } +} ); + +jQuery.fn.extend( { + css: function( name, value ) { + return access( this, function( elem, name, value ) { + var styles, len, + map = {}, + i = 0; + + if ( Array.isArray( name ) ) { + styles = getStyles( elem ); + len = name.length; + + for ( ; i < len; i++ ) { + map[ name[ i ] ] = jQuery.css( elem, name[ i ], false, styles ); + } + + return map; + } + + return value !== undefined ? + jQuery.style( elem, name, value ) : + jQuery.css( elem, name ); + }, name, value, arguments.length > 1 ); + } +} ); + + +function Tween( elem, options, prop, end, easing ) { + return new Tween.prototype.init( elem, options, prop, end, easing ); +} +jQuery.Tween = Tween; + +Tween.prototype = { + constructor: Tween, + init: function( elem, options, prop, end, easing, unit ) { + this.elem = elem; + this.prop = prop; + this.easing = easing || jQuery.easing._default; + this.options = options; + this.start = this.now = this.cur(); + this.end = end; + this.unit = unit || ( jQuery.cssNumber[ prop ] ? "" : "px" ); + }, + cur: function() { + var hooks = Tween.propHooks[ this.prop ]; + + return hooks && hooks.get ? + hooks.get( this ) : + Tween.propHooks._default.get( this ); + }, + run: function( percent ) { + var eased, + hooks = Tween.propHooks[ this.prop ]; + + if ( this.options.duration ) { + this.pos = eased = jQuery.easing[ this.easing ]( + percent, this.options.duration * percent, 0, 1, this.options.duration + ); + } else { + this.pos = eased = percent; + } + this.now = ( this.end - this.start ) * eased + this.start; + + if ( this.options.step ) { + this.options.step.call( this.elem, this.now, this ); + } + + if ( hooks && hooks.set ) { + hooks.set( this ); + } else { + Tween.propHooks._default.set( this ); + } + return this; + } +}; + +Tween.prototype.init.prototype = Tween.prototype; + +Tween.propHooks = { + _default: { + get: function( tween ) { + var result; + + // Use a property on the element directly when it is not a DOM element, + // or when there is no matching style property that exists. + if ( tween.elem.nodeType !== 1 || + tween.elem[ tween.prop ] != null && tween.elem.style[ tween.prop ] == null ) { + return tween.elem[ tween.prop ]; + } + + // Passing an empty string as a 3rd parameter to .css will automatically + // attempt a parseFloat and fallback to a string if the parse fails. + // Simple values such as "10px" are parsed to Float; + // complex values such as "rotate(1rad)" are returned as-is. + result = jQuery.css( tween.elem, tween.prop, "" ); + + // Empty strings, null, undefined and "auto" are converted to 0. + return !result || result === "auto" ? 0 : result; + }, + set: function( tween ) { + + // Use step hook for back compat. + // Use cssHook if its there. + // Use .style if available and use plain properties where available. + if ( jQuery.fx.step[ tween.prop ] ) { + jQuery.fx.step[ tween.prop ]( tween ); + } else if ( tween.elem.nodeType === 1 && + ( tween.elem.style[ jQuery.cssProps[ tween.prop ] ] != null || + jQuery.cssHooks[ tween.prop ] ) ) { + jQuery.style( tween.elem, tween.prop, tween.now + tween.unit ); + } else { + tween.elem[ tween.prop ] = tween.now; + } + } + } +}; + +// Support: IE <=9 only +// Panic based approach to setting things on disconnected nodes +Tween.propHooks.scrollTop = Tween.propHooks.scrollLeft = { + set: function( tween ) { + if ( tween.elem.nodeType && tween.elem.parentNode ) { + tween.elem[ tween.prop ] = tween.now; + } + } +}; + +jQuery.easing = { + linear: function( p ) { + return p; + }, + swing: function( p ) { + return 0.5 - Math.cos( p * Math.PI ) / 2; + }, + _default: "swing" +}; + +jQuery.fx = Tween.prototype.init; + +// Back compat <1.8 extension point +jQuery.fx.step = {}; + + + + +var + fxNow, inProgress, + rfxtypes = /^(?:toggle|show|hide)$/, + rrun = /queueHooks$/; + +function schedule() { + if ( inProgress ) { + if ( document.hidden === false && window.requestAnimationFrame ) { + window.requestAnimationFrame( schedule ); + } else { + window.setTimeout( schedule, jQuery.fx.interval ); + } + + jQuery.fx.tick(); + } +} + +// Animations created synchronously will run synchronously +function createFxNow() { + window.setTimeout( function() { + fxNow = undefined; + } ); + return ( fxNow = jQuery.now() ); +} + +// Generate parameters to create a standard animation +function genFx( type, includeWidth ) { + var which, + i = 0, + attrs = { height: type }; + + // If we include width, step value is 1 to do all cssExpand values, + // otherwise step value is 2 to skip over Left and Right + includeWidth = includeWidth ? 1 : 0; + for ( ; i < 4; i += 2 - includeWidth ) { + which = cssExpand[ i ]; + attrs[ "margin" + which ] = attrs[ "padding" + which ] = type; + } + + if ( includeWidth ) { + attrs.opacity = attrs.width = type; + } + + return attrs; +} + +function createTween( value, prop, animation ) { + var tween, + collection = ( Animation.tweeners[ prop ] || [] ).concat( Animation.tweeners[ "*" ] ), + index = 0, + length = collection.length; + for ( ; index < length; index++ ) { + if ( ( tween = collection[ index ].call( animation, prop, value ) ) ) { + + // We're done with this property + return tween; + } + } +} + +function defaultPrefilter( elem, props, opts ) { + var prop, value, toggle, hooks, oldfire, propTween, restoreDisplay, display, + isBox = "width" in props || "height" in props, + anim = this, + orig = {}, + style = elem.style, + hidden = elem.nodeType && isHiddenWithinTree( elem ), + dataShow = dataPriv.get( elem, "fxshow" ); + + // Queue-skipping animations hijack the fx hooks + if ( !opts.queue ) { + hooks = jQuery._queueHooks( elem, "fx" ); + if ( hooks.unqueued == null ) { + hooks.unqueued = 0; + oldfire = hooks.empty.fire; + hooks.empty.fire = function() { + if ( !hooks.unqueued ) { + oldfire(); + } + }; + } + hooks.unqueued++; + + anim.always( function() { + + // Ensure the complete handler is called before this completes + anim.always( function() { + hooks.unqueued--; + if ( !jQuery.queue( elem, "fx" ).length ) { + hooks.empty.fire(); + } + } ); + } ); + } + + // Detect show/hide animations + for ( prop in props ) { + value = props[ prop ]; + if ( rfxtypes.test( value ) ) { + delete props[ prop ]; + toggle = toggle || value === "toggle"; + if ( value === ( hidden ? "hide" : "show" ) ) { + + // Pretend to be hidden if this is a "show" and + // there is still data from a stopped show/hide + if ( value === "show" && dataShow && dataShow[ prop ] !== undefined ) { + hidden = true; + + // Ignore all other no-op show/hide data + } else { + continue; + } + } + orig[ prop ] = dataShow && dataShow[ prop ] || jQuery.style( elem, prop ); + } + } + + // Bail out if this is a no-op like .hide().hide() + propTween = !jQuery.isEmptyObject( props ); + if ( !propTween && jQuery.isEmptyObject( orig ) ) { + return; + } + + // Restrict "overflow" and "display" styles during box animations + if ( isBox && elem.nodeType === 1 ) { + + // Support: IE <=9 - 11, Edge 12 - 13 + // Record all 3 overflow attributes because IE does not infer the shorthand + // from identically-valued overflowX and overflowY + opts.overflow = [ style.overflow, style.overflowX, style.overflowY ]; + + // Identify a display type, preferring old show/hide data over the CSS cascade + restoreDisplay = dataShow && dataShow.display; + if ( restoreDisplay == null ) { + restoreDisplay = dataPriv.get( elem, "display" ); + } + display = jQuery.css( elem, "display" ); + if ( display === "none" ) { + if ( restoreDisplay ) { + display = restoreDisplay; + } else { + + // Get nonempty value(s) by temporarily forcing visibility + showHide( [ elem ], true ); + restoreDisplay = elem.style.display || restoreDisplay; + display = jQuery.css( elem, "display" ); + showHide( [ elem ] ); + } + } + + // Animate inline elements as inline-block + if ( display === "inline" || display === "inline-block" && restoreDisplay != null ) { + if ( jQuery.css( elem, "float" ) === "none" ) { + + // Restore the original display value at the end of pure show/hide animations + if ( !propTween ) { + anim.done( function() { + style.display = restoreDisplay; + } ); + if ( restoreDisplay == null ) { + display = style.display; + restoreDisplay = display === "none" ? "" : display; + } + } + style.display = "inline-block"; + } + } + } + + if ( opts.overflow ) { + style.overflow = "hidden"; + anim.always( function() { + style.overflow = opts.overflow[ 0 ]; + style.overflowX = opts.overflow[ 1 ]; + style.overflowY = opts.overflow[ 2 ]; + } ); + } + + // Implement show/hide animations + propTween = false; + for ( prop in orig ) { + + // General show/hide setup for this element animation + if ( !propTween ) { + if ( dataShow ) { + if ( "hidden" in dataShow ) { + hidden = dataShow.hidden; + } + } else { + dataShow = dataPriv.access( elem, "fxshow", { display: restoreDisplay } ); + } + + // Store hidden/visible for toggle so `.stop().toggle()` "reverses" + if ( toggle ) { + dataShow.hidden = !hidden; + } + + // Show elements before animating them + if ( hidden ) { + showHide( [ elem ], true ); + } + + /* eslint-disable no-loop-func */ + + anim.done( function() { + + /* eslint-enable no-loop-func */ + + // The final step of a "hide" animation is actually hiding the element + if ( !hidden ) { + showHide( [ elem ] ); + } + dataPriv.remove( elem, "fxshow" ); + for ( prop in orig ) { + jQuery.style( elem, prop, orig[ prop ] ); + } + } ); + } + + // Per-property setup + propTween = createTween( hidden ? dataShow[ prop ] : 0, prop, anim ); + if ( !( prop in dataShow ) ) { + dataShow[ prop ] = propTween.start; + if ( hidden ) { + propTween.end = propTween.start; + propTween.start = 0; + } + } + } +} + +function propFilter( props, specialEasing ) { + var index, name, easing, value, hooks; + + // camelCase, specialEasing and expand cssHook pass + for ( index in props ) { + name = jQuery.camelCase( index ); + easing = specialEasing[ name ]; + value = props[ index ]; + if ( Array.isArray( value ) ) { + easing = value[ 1 ]; + value = props[ index ] = value[ 0 ]; + } + + if ( index !== name ) { + props[ name ] = value; + delete props[ index ]; + } + + hooks = jQuery.cssHooks[ name ]; + if ( hooks && "expand" in hooks ) { + value = hooks.expand( value ); + delete props[ name ]; + + // Not quite $.extend, this won't overwrite existing keys. + // Reusing 'index' because we have the correct "name" + for ( index in value ) { + if ( !( index in props ) ) { + props[ index ] = value[ index ]; + specialEasing[ index ] = easing; + } + } + } else { + specialEasing[ name ] = easing; + } + } +} + +function Animation( elem, properties, options ) { + var result, + stopped, + index = 0, + length = Animation.prefilters.length, + deferred = jQuery.Deferred().always( function() { + + // Don't match elem in the :animated selector + delete tick.elem; + } ), + tick = function() { + if ( stopped ) { + return false; + } + var currentTime = fxNow || createFxNow(), + remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ), + + // Support: Android 2.3 only + // Archaic crash bug won't allow us to use `1 - ( 0.5 || 0 )` (#12497) + temp = remaining / animation.duration || 0, + percent = 1 - temp, + index = 0, + length = animation.tweens.length; + + for ( ; index < length; index++ ) { + animation.tweens[ index ].run( percent ); + } + + deferred.notifyWith( elem, [ animation, percent, remaining ] ); + + // If there's more to do, yield + if ( percent < 1 && length ) { + return remaining; + } + + // If this was an empty animation, synthesize a final progress notification + if ( !length ) { + deferred.notifyWith( elem, [ animation, 1, 0 ] ); + } + + // Resolve the animation and report its conclusion + deferred.resolveWith( elem, [ animation ] ); + return false; + }, + animation = deferred.promise( { + elem: elem, + props: jQuery.extend( {}, properties ), + opts: jQuery.extend( true, { + specialEasing: {}, + easing: jQuery.easing._default + }, options ), + originalProperties: properties, + originalOptions: options, + startTime: fxNow || createFxNow(), + duration: options.duration, + tweens: [], + createTween: function( prop, end ) { + var tween = jQuery.Tween( elem, animation.opts, prop, end, + animation.opts.specialEasing[ prop ] || animation.opts.easing ); + animation.tweens.push( tween ); + return tween; + }, + stop: function( gotoEnd ) { + var index = 0, + + // If we are going to the end, we want to run all the tweens + // otherwise we skip this part + length = gotoEnd ? animation.tweens.length : 0; + if ( stopped ) { + return this; + } + stopped = true; + for ( ; index < length; index++ ) { + animation.tweens[ index ].run( 1 ); + } + + // Resolve when we played the last frame; otherwise, reject + if ( gotoEnd ) { + deferred.notifyWith( elem, [ animation, 1, 0 ] ); + deferred.resolveWith( elem, [ animation, gotoEnd ] ); + } else { + deferred.rejectWith( elem, [ animation, gotoEnd ] ); + } + return this; + } + } ), + props = animation.props; + + propFilter( props, animation.opts.specialEasing ); + + for ( ; index < length; index++ ) { + result = Animation.prefilters[ index ].call( animation, elem, props, animation.opts ); + if ( result ) { + if ( jQuery.isFunction( result.stop ) ) { + jQuery._queueHooks( animation.elem, animation.opts.queue ).stop = + jQuery.proxy( result.stop, result ); + } + return result; + } + } + + jQuery.map( props, createTween, animation ); + + if ( jQuery.isFunction( animation.opts.start ) ) { + animation.opts.start.call( elem, animation ); + } + + // Attach callbacks from options + animation + .progress( animation.opts.progress ) + .done( animation.opts.done, animation.opts.complete ) + .fail( animation.opts.fail ) + .always( animation.opts.always ); + + jQuery.fx.timer( + jQuery.extend( tick, { + elem: elem, + anim: animation, + queue: animation.opts.queue + } ) + ); + + return animation; +} + +jQuery.Animation = jQuery.extend( Animation, { + + tweeners: { + "*": [ function( prop, value ) { + var tween = this.createTween( prop, value ); + adjustCSS( tween.elem, prop, rcssNum.exec( value ), tween ); + return tween; + } ] + }, + + tweener: function( props, callback ) { + if ( jQuery.isFunction( props ) ) { + callback = props; + props = [ "*" ]; + } else { + props = props.match( rnothtmlwhite ); + } + + var prop, + index = 0, + length = props.length; + + for ( ; index < length; index++ ) { + prop = props[ index ]; + Animation.tweeners[ prop ] = Animation.tweeners[ prop ] || []; + Animation.tweeners[ prop ].unshift( callback ); + } + }, + + prefilters: [ defaultPrefilter ], + + prefilter: function( callback, prepend ) { + if ( prepend ) { + Animation.prefilters.unshift( callback ); + } else { + Animation.prefilters.push( callback ); + } + } +} ); + +jQuery.speed = function( speed, easing, fn ) { + var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : { + complete: fn || !fn && easing || + jQuery.isFunction( speed ) && speed, + duration: speed, + easing: fn && easing || easing && !jQuery.isFunction( easing ) && easing + }; + + // Go to the end state if fx are off + if ( jQuery.fx.off ) { + opt.duration = 0; + + } else { + if ( typeof opt.duration !== "number" ) { + if ( opt.duration in jQuery.fx.speeds ) { + opt.duration = jQuery.fx.speeds[ opt.duration ]; + + } else { + opt.duration = jQuery.fx.speeds._default; + } + } + } + + // Normalize opt.queue - true/undefined/null -> "fx" + if ( opt.queue == null || opt.queue === true ) { + opt.queue = "fx"; + } + + // Queueing + opt.old = opt.complete; + + opt.complete = function() { + if ( jQuery.isFunction( opt.old ) ) { + opt.old.call( this ); + } + + if ( opt.queue ) { + jQuery.dequeue( this, opt.queue ); + } + }; + + return opt; +}; + +jQuery.fn.extend( { + fadeTo: function( speed, to, easing, callback ) { + + // Show any hidden elements after setting opacity to 0 + return this.filter( isHiddenWithinTree ).css( "opacity", 0 ).show() + + // Animate to the value specified + .end().animate( { opacity: to }, speed, easing, callback ); + }, + animate: function( prop, speed, easing, callback ) { + var empty = jQuery.isEmptyObject( prop ), + optall = jQuery.speed( speed, easing, callback ), + doAnimation = function() { + + // Operate on a copy of prop so per-property easing won't be lost + var anim = Animation( this, jQuery.extend( {}, prop ), optall ); + + // Empty animations, or finishing resolves immediately + if ( empty || dataPriv.get( this, "finish" ) ) { + anim.stop( true ); + } + }; + doAnimation.finish = doAnimation; + + return empty || optall.queue === false ? + this.each( doAnimation ) : + this.queue( optall.queue, doAnimation ); + }, + stop: function( type, clearQueue, gotoEnd ) { + var stopQueue = function( hooks ) { + var stop = hooks.stop; + delete hooks.stop; + stop( gotoEnd ); + }; + + if ( typeof type !== "string" ) { + gotoEnd = clearQueue; + clearQueue = type; + type = undefined; + } + if ( clearQueue && type !== false ) { + this.queue( type || "fx", [] ); + } + + return this.each( function() { + var dequeue = true, + index = type != null && type + "queueHooks", + timers = jQuery.timers, + data = dataPriv.get( this ); + + if ( index ) { + if ( data[ index ] && data[ index ].stop ) { + stopQueue( data[ index ] ); + } + } else { + for ( index in data ) { + if ( data[ index ] && data[ index ].stop && rrun.test( index ) ) { + stopQueue( data[ index ] ); + } + } + } + + for ( index = timers.length; index--; ) { + if ( timers[ index ].elem === this && + ( type == null || timers[ index ].queue === type ) ) { + + timers[ index ].anim.stop( gotoEnd ); + dequeue = false; + timers.splice( index, 1 ); + } + } + + // Start the next in the queue if the last step wasn't forced. + // Timers currently will call their complete callbacks, which + // will dequeue but only if they were gotoEnd. + if ( dequeue || !gotoEnd ) { + jQuery.dequeue( this, type ); + } + } ); + }, + finish: function( type ) { + if ( type !== false ) { + type = type || "fx"; + } + return this.each( function() { + var index, + data = dataPriv.get( this ), + queue = data[ type + "queue" ], + hooks = data[ type + "queueHooks" ], + timers = jQuery.timers, + length = queue ? queue.length : 0; + + // Enable finishing flag on private data + data.finish = true; + + // Empty the queue first + jQuery.queue( this, type, [] ); + + if ( hooks && hooks.stop ) { + hooks.stop.call( this, true ); + } + + // Look for any active animations, and finish them + for ( index = timers.length; index--; ) { + if ( timers[ index ].elem === this && timers[ index ].queue === type ) { + timers[ index ].anim.stop( true ); + timers.splice( index, 1 ); + } + } + + // Look for any animations in the old queue and finish them + for ( index = 0; index < length; index++ ) { + if ( queue[ index ] && queue[ index ].finish ) { + queue[ index ].finish.call( this ); + } + } + + // Turn off finishing flag + delete data.finish; + } ); + } +} ); + +jQuery.each( [ "toggle", "show", "hide" ], function( i, name ) { + var cssFn = jQuery.fn[ name ]; + jQuery.fn[ name ] = function( speed, easing, callback ) { + return speed == null || typeof speed === "boolean" ? + cssFn.apply( this, arguments ) : + this.animate( genFx( name, true ), speed, easing, callback ); + }; +} ); + +// Generate shortcuts for custom animations +jQuery.each( { + slideDown: genFx( "show" ), + slideUp: genFx( "hide" ), + slideToggle: genFx( "toggle" ), + fadeIn: { opacity: "show" }, + fadeOut: { opacity: "hide" }, + fadeToggle: { opacity: "toggle" } +}, function( name, props ) { + jQuery.fn[ name ] = function( speed, easing, callback ) { + return this.animate( props, speed, easing, callback ); + }; +} ); + +jQuery.timers = []; +jQuery.fx.tick = function() { + var timer, + i = 0, + timers = jQuery.timers; + + fxNow = jQuery.now(); + + for ( ; i < timers.length; i++ ) { + timer = timers[ i ]; + + // Run the timer and safely remove it when done (allowing for external removal) + if ( !timer() && timers[ i ] === timer ) { + timers.splice( i--, 1 ); + } + } + + if ( !timers.length ) { + jQuery.fx.stop(); + } + fxNow = undefined; +}; + +jQuery.fx.timer = function( timer ) { + jQuery.timers.push( timer ); + jQuery.fx.start(); +}; + +jQuery.fx.interval = 13; +jQuery.fx.start = function() { + if ( inProgress ) { + return; + } + + inProgress = true; + schedule(); +}; + +jQuery.fx.stop = function() { + inProgress = null; +}; + +jQuery.fx.speeds = { + slow: 600, + fast: 200, + + // Default speed + _default: 400 +}; + + +// Based off of the plugin by Clint Helfers, with permission. +// https://web.archive.org/web/20100324014747/http://blindsignals.com/index.php/2009/07/jquery-delay/ +jQuery.fn.delay = function( time, type ) { + time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time; + type = type || "fx"; + + return this.queue( type, function( next, hooks ) { + var timeout = window.setTimeout( next, time ); + hooks.stop = function() { + window.clearTimeout( timeout ); + }; + } ); +}; + + +( function() { + var input = document.createElement( "input" ), + select = document.createElement( "select" ), + opt = select.appendChild( document.createElement( "option" ) ); + + input.type = "checkbox"; + + // Support: Android <=4.3 only + // Default value for a checkbox should be "on" + support.checkOn = input.value !== ""; + + // Support: IE <=11 only + // Must access selectedIndex to make default options select + support.optSelected = opt.selected; + + // Support: IE <=11 only + // An input loses its value after becoming a radio + input = document.createElement( "input" ); + input.value = "t"; + input.type = "radio"; + support.radioValue = input.value === "t"; +} )(); + + +var boolHook, + attrHandle = jQuery.expr.attrHandle; + +jQuery.fn.extend( { + attr: function( name, value ) { + return access( this, jQuery.attr, name, value, arguments.length > 1 ); + }, + + removeAttr: function( name ) { + return this.each( function() { + jQuery.removeAttr( this, name ); + } ); + } +} ); + +jQuery.extend( { + attr: function( elem, name, value ) { + var ret, hooks, + nType = elem.nodeType; + + // Don't get/set attributes on text, comment and attribute nodes + if ( nType === 3 || nType === 8 || nType === 2 ) { + return; + } + + // Fallback to prop when attributes are not supported + if ( typeof elem.getAttribute === "undefined" ) { + return jQuery.prop( elem, name, value ); + } + + // Attribute hooks are determined by the lowercase version + // Grab necessary hook if one is defined + if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) { + hooks = jQuery.attrHooks[ name.toLowerCase() ] || + ( jQuery.expr.match.bool.test( name ) ? boolHook : undefined ); + } + + if ( value !== undefined ) { + if ( value === null ) { + jQuery.removeAttr( elem, name ); + return; + } + + if ( hooks && "set" in hooks && + ( ret = hooks.set( elem, value, name ) ) !== undefined ) { + return ret; + } + + elem.setAttribute( name, value + "" ); + return value; + } + + if ( hooks && "get" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) { + return ret; + } + + ret = jQuery.find.attr( elem, name ); + + // Non-existent attributes return null, we normalize to undefined + return ret == null ? undefined : ret; + }, + + attrHooks: { + type: { + set: function( elem, value ) { + if ( !support.radioValue && value === "radio" && + nodeName( elem, "input" ) ) { + var val = elem.value; + elem.setAttribute( "type", value ); + if ( val ) { + elem.value = val; + } + return value; + } + } + } + }, + + removeAttr: function( elem, value ) { + var name, + i = 0, + + // Attribute names can contain non-HTML whitespace characters + // https://html.spec.whatwg.org/multipage/syntax.html#attributes-2 + attrNames = value && value.match( rnothtmlwhite ); + + if ( attrNames && elem.nodeType === 1 ) { + while ( ( name = attrNames[ i++ ] ) ) { + elem.removeAttribute( name ); + } + } + } +} ); + +// Hooks for boolean attributes +boolHook = { + set: function( elem, value, name ) { + if ( value === false ) { + + // Remove boolean attributes when set to false + jQuery.removeAttr( elem, name ); + } else { + elem.setAttribute( name, name ); + } + return name; + } +}; + +jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( i, name ) { + var getter = attrHandle[ name ] || jQuery.find.attr; + + attrHandle[ name ] = function( elem, name, isXML ) { + var ret, handle, + lowercaseName = name.toLowerCase(); + + if ( !isXML ) { + + // Avoid an infinite loop by temporarily removing this function from the getter + handle = attrHandle[ lowercaseName ]; + attrHandle[ lowercaseName ] = ret; + ret = getter( elem, name, isXML ) != null ? + lowercaseName : + null; + attrHandle[ lowercaseName ] = handle; + } + return ret; + }; +} ); + + + + +var rfocusable = /^(?:input|select|textarea|button)$/i, + rclickable = /^(?:a|area)$/i; + +jQuery.fn.extend( { + prop: function( name, value ) { + return access( this, jQuery.prop, name, value, arguments.length > 1 ); + }, + + removeProp: function( name ) { + return this.each( function() { + delete this[ jQuery.propFix[ name ] || name ]; + } ); + } +} ); + +jQuery.extend( { + prop: function( elem, name, value ) { + var ret, hooks, + nType = elem.nodeType; + + // Don't get/set properties on text, comment and attribute nodes + if ( nType === 3 || nType === 8 || nType === 2 ) { + return; + } + + if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) { + + // Fix name and attach hooks + name = jQuery.propFix[ name ] || name; + hooks = jQuery.propHooks[ name ]; + } + + if ( value !== undefined ) { + if ( hooks && "set" in hooks && + ( ret = hooks.set( elem, value, name ) ) !== undefined ) { + return ret; + } + + return ( elem[ name ] = value ); + } + + if ( hooks && "get" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) { + return ret; + } + + return elem[ name ]; + }, + + propHooks: { + tabIndex: { + get: function( elem ) { + + // Support: IE <=9 - 11 only + // elem.tabIndex doesn't always return the + // correct value when it hasn't been explicitly set + // https://web.archive.org/web/20141116233347/http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/ + // Use proper attribute retrieval(#12072) + var tabindex = jQuery.find.attr( elem, "tabindex" ); + + if ( tabindex ) { + return parseInt( tabindex, 10 ); + } + + if ( + rfocusable.test( elem.nodeName ) || + rclickable.test( elem.nodeName ) && + elem.href + ) { + return 0; + } + + return -1; + } + } + }, + + propFix: { + "for": "htmlFor", + "class": "className" + } +} ); + +// Support: IE <=11 only +// Accessing the selectedIndex property +// forces the browser to respect setting selected +// on the option +// The getter ensures a default option is selected +// when in an optgroup +// eslint rule "no-unused-expressions" is disabled for this code +// since it considers such accessions noop +if ( !support.optSelected ) { + jQuery.propHooks.selected = { + get: function( elem ) { + + /* eslint no-unused-expressions: "off" */ + + var parent = elem.parentNode; + if ( parent && parent.parentNode ) { + parent.parentNode.selectedIndex; + } + return null; + }, + set: function( elem ) { + + /* eslint no-unused-expressions: "off" */ + + var parent = elem.parentNode; + if ( parent ) { + parent.selectedIndex; + + if ( parent.parentNode ) { + parent.parentNode.selectedIndex; + } + } + } + }; +} + +jQuery.each( [ + "tabIndex", + "readOnly", + "maxLength", + "cellSpacing", + "cellPadding", + "rowSpan", + "colSpan", + "useMap", + "frameBorder", + "contentEditable" +], function() { + jQuery.propFix[ this.toLowerCase() ] = this; +} ); + + + + + // Strip and collapse whitespace according to HTML spec + // https://html.spec.whatwg.org/multipage/infrastructure.html#strip-and-collapse-whitespace + function stripAndCollapse( value ) { + var tokens = value.match( rnothtmlwhite ) || []; + return tokens.join( " " ); + } + + +function getClass( elem ) { + return elem.getAttribute && elem.getAttribute( "class" ) || ""; +} + +jQuery.fn.extend( { + addClass: function( value ) { + var classes, elem, cur, curValue, clazz, j, finalValue, + i = 0; + + if ( jQuery.isFunction( value ) ) { + return this.each( function( j ) { + jQuery( this ).addClass( value.call( this, j, getClass( this ) ) ); + } ); + } + + if ( typeof value === "string" && value ) { + classes = value.match( rnothtmlwhite ) || []; + + while ( ( elem = this[ i++ ] ) ) { + curValue = getClass( elem ); + cur = elem.nodeType === 1 && ( " " + stripAndCollapse( curValue ) + " " ); + + if ( cur ) { + j = 0; + while ( ( clazz = classes[ j++ ] ) ) { + if ( cur.indexOf( " " + clazz + " " ) < 0 ) { + cur += clazz + " "; + } + } + + // Only assign if different to avoid unneeded rendering. + finalValue = stripAndCollapse( cur ); + if ( curValue !== finalValue ) { + elem.setAttribute( "class", finalValue ); + } + } + } + } + + return this; + }, + + removeClass: function( value ) { + var classes, elem, cur, curValue, clazz, j, finalValue, + i = 0; + + if ( jQuery.isFunction( value ) ) { + return this.each( function( j ) { + jQuery( this ).removeClass( value.call( this, j, getClass( this ) ) ); + } ); + } + + if ( !arguments.length ) { + return this.attr( "class", "" ); + } + + if ( typeof value === "string" && value ) { + classes = value.match( rnothtmlwhite ) || []; + + while ( ( elem = this[ i++ ] ) ) { + curValue = getClass( elem ); + + // This expression is here for better compressibility (see addClass) + cur = elem.nodeType === 1 && ( " " + stripAndCollapse( curValue ) + " " ); + + if ( cur ) { + j = 0; + while ( ( clazz = classes[ j++ ] ) ) { + + // Remove *all* instances + while ( cur.indexOf( " " + clazz + " " ) > -1 ) { + cur = cur.replace( " " + clazz + " ", " " ); + } + } + + // Only assign if different to avoid unneeded rendering. + finalValue = stripAndCollapse( cur ); + if ( curValue !== finalValue ) { + elem.setAttribute( "class", finalValue ); + } + } + } + } + + return this; + }, + + toggleClass: function( value, stateVal ) { + var type = typeof value; + + if ( typeof stateVal === "boolean" && type === "string" ) { + return stateVal ? this.addClass( value ) : this.removeClass( value ); + } + + if ( jQuery.isFunction( value ) ) { + return this.each( function( i ) { + jQuery( this ).toggleClass( + value.call( this, i, getClass( this ), stateVal ), + stateVal + ); + } ); + } + + return this.each( function() { + var className, i, self, classNames; + + if ( type === "string" ) { + + // Toggle individual class names + i = 0; + self = jQuery( this ); + classNames = value.match( rnothtmlwhite ) || []; + + while ( ( className = classNames[ i++ ] ) ) { + + // Check each className given, space separated list + if ( self.hasClass( className ) ) { + self.removeClass( className ); + } else { + self.addClass( className ); + } + } + + // Toggle whole class name + } else if ( value === undefined || type === "boolean" ) { + className = getClass( this ); + if ( className ) { + + // Store className if set + dataPriv.set( this, "__className__", className ); + } + + // If the element has a class name or if we're passed `false`, + // then remove the whole classname (if there was one, the above saved it). + // Otherwise bring back whatever was previously saved (if anything), + // falling back to the empty string if nothing was stored. + if ( this.setAttribute ) { + this.setAttribute( "class", + className || value === false ? + "" : + dataPriv.get( this, "__className__" ) || "" + ); + } + } + } ); + }, + + hasClass: function( selector ) { + var className, elem, + i = 0; + + className = " " + selector + " "; + while ( ( elem = this[ i++ ] ) ) { + if ( elem.nodeType === 1 && + ( " " + stripAndCollapse( getClass( elem ) ) + " " ).indexOf( className ) > -1 ) { + return true; + } + } + + return false; + } +} ); + + + + +var rreturn = /\r/g; + +jQuery.fn.extend( { + val: function( value ) { + var hooks, ret, isFunction, + elem = this[ 0 ]; + + if ( !arguments.length ) { + if ( elem ) { + hooks = jQuery.valHooks[ elem.type ] || + jQuery.valHooks[ elem.nodeName.toLowerCase() ]; + + if ( hooks && + "get" in hooks && + ( ret = hooks.get( elem, "value" ) ) !== undefined + ) { + return ret; + } + + ret = elem.value; + + // Handle most common string cases + if ( typeof ret === "string" ) { + return ret.replace( rreturn, "" ); + } + + // Handle cases where value is null/undef or number + return ret == null ? "" : ret; + } + + return; + } + + isFunction = jQuery.isFunction( value ); + + return this.each( function( i ) { + var val; + + if ( this.nodeType !== 1 ) { + return; + } + + if ( isFunction ) { + val = value.call( this, i, jQuery( this ).val() ); + } else { + val = value; + } + + // Treat null/undefined as ""; convert numbers to string + if ( val == null ) { + val = ""; + + } else if ( typeof val === "number" ) { + val += ""; + + } else if ( Array.isArray( val ) ) { + val = jQuery.map( val, function( value ) { + return value == null ? "" : value + ""; + } ); + } + + hooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ]; + + // If set returns undefined, fall back to normal setting + if ( !hooks || !( "set" in hooks ) || hooks.set( this, val, "value" ) === undefined ) { + this.value = val; + } + } ); + } +} ); + +jQuery.extend( { + valHooks: { + option: { + get: function( elem ) { + + var val = jQuery.find.attr( elem, "value" ); + return val != null ? + val : + + // Support: IE <=10 - 11 only + // option.text throws exceptions (#14686, #14858) + // Strip and collapse whitespace + // https://html.spec.whatwg.org/#strip-and-collapse-whitespace + stripAndCollapse( jQuery.text( elem ) ); + } + }, + select: { + get: function( elem ) { + var value, option, i, + options = elem.options, + index = elem.selectedIndex, + one = elem.type === "select-one", + values = one ? null : [], + max = one ? index + 1 : options.length; + + if ( index < 0 ) { + i = max; + + } else { + i = one ? index : 0; + } + + // Loop through all the selected options + for ( ; i < max; i++ ) { + option = options[ i ]; + + // Support: IE <=9 only + // IE8-9 doesn't update selected after form reset (#2551) + if ( ( option.selected || i === index ) && + + // Don't return options that are disabled or in a disabled optgroup + !option.disabled && + ( !option.parentNode.disabled || + !nodeName( option.parentNode, "optgroup" ) ) ) { + + // Get the specific value for the option + value = jQuery( option ).val(); + + // We don't need an array for one selects + if ( one ) { + return value; + } + + // Multi-Selects return an array + values.push( value ); + } + } + + return values; + }, + + set: function( elem, value ) { + var optionSet, option, + options = elem.options, + values = jQuery.makeArray( value ), + i = options.length; + + while ( i-- ) { + option = options[ i ]; + + /* eslint-disable no-cond-assign */ + + if ( option.selected = + jQuery.inArray( jQuery.valHooks.option.get( option ), values ) > -1 + ) { + optionSet = true; + } + + /* eslint-enable no-cond-assign */ + } + + // Force browsers to behave consistently when non-matching value is set + if ( !optionSet ) { + elem.selectedIndex = -1; + } + return values; + } + } + } +} ); + +// Radios and checkboxes getter/setter +jQuery.each( [ "radio", "checkbox" ], function() { + jQuery.valHooks[ this ] = { + set: function( elem, value ) { + if ( Array.isArray( value ) ) { + return ( elem.checked = jQuery.inArray( jQuery( elem ).val(), value ) > -1 ); + } + } + }; + if ( !support.checkOn ) { + jQuery.valHooks[ this ].get = function( elem ) { + return elem.getAttribute( "value" ) === null ? "on" : elem.value; + }; + } +} ); + + + + +// Return jQuery for attributes-only inclusion + + +var rfocusMorph = /^(?:focusinfocus|focusoutblur)$/; + +jQuery.extend( jQuery.event, { + + trigger: function( event, data, elem, onlyHandlers ) { + + var i, cur, tmp, bubbleType, ontype, handle, special, + eventPath = [ elem || document ], + type = hasOwn.call( event, "type" ) ? event.type : event, + namespaces = hasOwn.call( event, "namespace" ) ? event.namespace.split( "." ) : []; + + cur = tmp = elem = elem || document; + + // Don't do events on text and comment nodes + if ( elem.nodeType === 3 || elem.nodeType === 8 ) { + return; + } + + // focus/blur morphs to focusin/out; ensure we're not firing them right now + if ( rfocusMorph.test( type + jQuery.event.triggered ) ) { + return; + } + + if ( type.indexOf( "." ) > -1 ) { + + // Namespaced trigger; create a regexp to match event type in handle() + namespaces = type.split( "." ); + type = namespaces.shift(); + namespaces.sort(); + } + ontype = type.indexOf( ":" ) < 0 && "on" + type; + + // Caller can pass in a jQuery.Event object, Object, or just an event type string + event = event[ jQuery.expando ] ? + event : + new jQuery.Event( type, typeof event === "object" && event ); + + // Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true) + event.isTrigger = onlyHandlers ? 2 : 3; + event.namespace = namespaces.join( "." ); + event.rnamespace = event.namespace ? + new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" ) : + null; + + // Clean up the event in case it is being reused + event.result = undefined; + if ( !event.target ) { + event.target = elem; + } + + // Clone any incoming data and prepend the event, creating the handler arg list + data = data == null ? + [ event ] : + jQuery.makeArray( data, [ event ] ); + + // Allow special events to draw outside the lines + special = jQuery.event.special[ type ] || {}; + if ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) { + return; + } + + // Determine event propagation path in advance, per W3C events spec (#9951) + // Bubble up to document, then to window; watch for a global ownerDocument var (#9724) + if ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) { + + bubbleType = special.delegateType || type; + if ( !rfocusMorph.test( bubbleType + type ) ) { + cur = cur.parentNode; + } + for ( ; cur; cur = cur.parentNode ) { + eventPath.push( cur ); + tmp = cur; + } + + // Only add window if we got to document (e.g., not plain obj or detached DOM) + if ( tmp === ( elem.ownerDocument || document ) ) { + eventPath.push( tmp.defaultView || tmp.parentWindow || window ); + } + } + + // Fire handlers on the event path + i = 0; + while ( ( cur = eventPath[ i++ ] ) && !event.isPropagationStopped() ) { + + event.type = i > 1 ? + bubbleType : + special.bindType || type; + + // jQuery handler + handle = ( dataPriv.get( cur, "events" ) || {} )[ event.type ] && + dataPriv.get( cur, "handle" ); + if ( handle ) { + handle.apply( cur, data ); + } + + // Native handler + handle = ontype && cur[ ontype ]; + if ( handle && handle.apply && acceptData( cur ) ) { + event.result = handle.apply( cur, data ); + if ( event.result === false ) { + event.preventDefault(); + } + } + } + event.type = type; + + // If nobody prevented the default action, do it now + if ( !onlyHandlers && !event.isDefaultPrevented() ) { + + if ( ( !special._default || + special._default.apply( eventPath.pop(), data ) === false ) && + acceptData( elem ) ) { + + // Call a native DOM method on the target with the same name as the event. + // Don't do default actions on window, that's where global variables be (#6170) + if ( ontype && jQuery.isFunction( elem[ type ] ) && !jQuery.isWindow( elem ) ) { + + // Don't re-trigger an onFOO event when we call its FOO() method + tmp = elem[ ontype ]; + + if ( tmp ) { + elem[ ontype ] = null; + } + + // Prevent re-triggering of the same event, since we already bubbled it above + jQuery.event.triggered = type; + elem[ type ](); + jQuery.event.triggered = undefined; + + if ( tmp ) { + elem[ ontype ] = tmp; + } + } + } + } + + return event.result; + }, + + // Piggyback on a donor event to simulate a different one + // Used only for `focus(in | out)` events + simulate: function( type, elem, event ) { + var e = jQuery.extend( + new jQuery.Event(), + event, + { + type: type, + isSimulated: true + } + ); + + jQuery.event.trigger( e, null, elem ); + } + +} ); + +jQuery.fn.extend( { + + trigger: function( type, data ) { + return this.each( function() { + jQuery.event.trigger( type, data, this ); + } ); + }, + triggerHandler: function( type, data ) { + var elem = this[ 0 ]; + if ( elem ) { + return jQuery.event.trigger( type, data, elem, true ); + } + } +} ); + + +jQuery.each( ( "blur focus focusin focusout resize scroll click dblclick " + + "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " + + "change select submit keydown keypress keyup contextmenu" ).split( " " ), + function( i, name ) { + + // Handle event binding + jQuery.fn[ name ] = function( data, fn ) { + return arguments.length > 0 ? + this.on( name, null, data, fn ) : + this.trigger( name ); + }; +} ); + +jQuery.fn.extend( { + hover: function( fnOver, fnOut ) { + return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver ); + } +} ); + + + + +support.focusin = "onfocusin" in window; + + +// Support: Firefox <=44 +// Firefox doesn't have focus(in | out) events +// Related ticket - https://bugzilla.mozilla.org/show_bug.cgi?id=687787 +// +// Support: Chrome <=48 - 49, Safari <=9.0 - 9.1 +// focus(in | out) events fire after focus & blur events, +// which is spec violation - http://www.w3.org/TR/DOM-Level-3-Events/#events-focusevent-event-order +// Related ticket - https://bugs.chromium.org/p/chromium/issues/detail?id=449857 +if ( !support.focusin ) { + jQuery.each( { focus: "focusin", blur: "focusout" }, function( orig, fix ) { + + // Attach a single capturing handler on the document while someone wants focusin/focusout + var handler = function( event ) { + jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ) ); + }; + + jQuery.event.special[ fix ] = { + setup: function() { + var doc = this.ownerDocument || this, + attaches = dataPriv.access( doc, fix ); + + if ( !attaches ) { + doc.addEventListener( orig, handler, true ); + } + dataPriv.access( doc, fix, ( attaches || 0 ) + 1 ); + }, + teardown: function() { + var doc = this.ownerDocument || this, + attaches = dataPriv.access( doc, fix ) - 1; + + if ( !attaches ) { + doc.removeEventListener( orig, handler, true ); + dataPriv.remove( doc, fix ); + + } else { + dataPriv.access( doc, fix, attaches ); + } + } + }; + } ); +} +var location = window.location; + +var nonce = jQuery.now(); + +var rquery = ( /\?/ ); + + + +// Cross-browser xml parsing +jQuery.parseXML = function( data ) { + var xml; + if ( !data || typeof data !== "string" ) { + return null; + } + + // Support: IE 9 - 11 only + // IE throws on parseFromString with invalid input. + try { + xml = ( new window.DOMParser() ).parseFromString( data, "text/xml" ); + } catch ( e ) { + xml = undefined; + } + + if ( !xml || xml.getElementsByTagName( "parsererror" ).length ) { + jQuery.error( "Invalid XML: " + data ); + } + return xml; +}; + + +var + rbracket = /\[\]$/, + rCRLF = /\r?\n/g, + rsubmitterTypes = /^(?:submit|button|image|reset|file)$/i, + rsubmittable = /^(?:input|select|textarea|keygen)/i; + +function buildParams( prefix, obj, traditional, add ) { + var name; + + if ( Array.isArray( obj ) ) { + + // Serialize array item. + jQuery.each( obj, function( i, v ) { + if ( traditional || rbracket.test( prefix ) ) { + + // Treat each array item as a scalar. + add( prefix, v ); + + } else { + + // Item is non-scalar (array or object), encode its numeric index. + buildParams( + prefix + "[" + ( typeof v === "object" && v != null ? i : "" ) + "]", + v, + traditional, + add + ); + } + } ); + + } else if ( !traditional && jQuery.type( obj ) === "object" ) { + + // Serialize object item. + for ( name in obj ) { + buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add ); + } + + } else { + + // Serialize scalar item. + add( prefix, obj ); + } +} + +// Serialize an array of form elements or a set of +// key/values into a query string +jQuery.param = function( a, traditional ) { + var prefix, + s = [], + add = function( key, valueOrFunction ) { + + // If value is a function, invoke it and use its return value + var value = jQuery.isFunction( valueOrFunction ) ? + valueOrFunction() : + valueOrFunction; + + s[ s.length ] = encodeURIComponent( key ) + "=" + + encodeURIComponent( value == null ? "" : value ); + }; + + // If an array was passed in, assume that it is an array of form elements. + if ( Array.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) { + + // Serialize the form elements + jQuery.each( a, function() { + add( this.name, this.value ); + } ); + + } else { + + // If traditional, encode the "old" way (the way 1.3.2 or older + // did it), otherwise encode params recursively. + for ( prefix in a ) { + buildParams( prefix, a[ prefix ], traditional, add ); + } + } + + // Return the resulting serialization + return s.join( "&" ); +}; + +jQuery.fn.extend( { + serialize: function() { + return jQuery.param( this.serializeArray() ); + }, + serializeArray: function() { + return this.map( function() { + + // Can add propHook for "elements" to filter or add form elements + var elements = jQuery.prop( this, "elements" ); + return elements ? jQuery.makeArray( elements ) : this; + } ) + .filter( function() { + var type = this.type; + + // Use .is( ":disabled" ) so that fieldset[disabled] works + return this.name && !jQuery( this ).is( ":disabled" ) && + rsubmittable.test( this.nodeName ) && !rsubmitterTypes.test( type ) && + ( this.checked || !rcheckableType.test( type ) ); + } ) + .map( function( i, elem ) { + var val = jQuery( this ).val(); + + if ( val == null ) { + return null; + } + + if ( Array.isArray( val ) ) { + return jQuery.map( val, function( val ) { + return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) }; + } ); + } + + return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) }; + } ).get(); + } +} ); + + +var + r20 = /%20/g, + rhash = /#.*$/, + rantiCache = /([?&])_=[^&]*/, + rheaders = /^(.*?):[ \t]*([^\r\n]*)$/mg, + + // #7653, #8125, #8152: local protocol detection + rlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/, + rnoContent = /^(?:GET|HEAD)$/, + rprotocol = /^\/\//, + + /* Prefilters + * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example) + * 2) These are called: + * - BEFORE asking for a transport + * - AFTER param serialization (s.data is a string if s.processData is true) + * 3) key is the dataType + * 4) the catchall symbol "*" can be used + * 5) execution will start with transport dataType and THEN continue down to "*" if needed + */ + prefilters = {}, + + /* Transports bindings + * 1) key is the dataType + * 2) the catchall symbol "*" can be used + * 3) selection will start with transport dataType and THEN go to "*" if needed + */ + transports = {}, + + // Avoid comment-prolog char sequence (#10098); must appease lint and evade compression + allTypes = "*/".concat( "*" ), + + // Anchor tag for parsing the document origin + originAnchor = document.createElement( "a" ); + originAnchor.href = location.href; + +// Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport +function addToPrefiltersOrTransports( structure ) { + + // dataTypeExpression is optional and defaults to "*" + return function( dataTypeExpression, func ) { + + if ( typeof dataTypeExpression !== "string" ) { + func = dataTypeExpression; + dataTypeExpression = "*"; + } + + var dataType, + i = 0, + dataTypes = dataTypeExpression.toLowerCase().match( rnothtmlwhite ) || []; + + if ( jQuery.isFunction( func ) ) { + + // For each dataType in the dataTypeExpression + while ( ( dataType = dataTypes[ i++ ] ) ) { + + // Prepend if requested + if ( dataType[ 0 ] === "+" ) { + dataType = dataType.slice( 1 ) || "*"; + ( structure[ dataType ] = structure[ dataType ] || [] ).unshift( func ); + + // Otherwise append + } else { + ( structure[ dataType ] = structure[ dataType ] || [] ).push( func ); + } + } + } + }; +} + +// Base inspection function for prefilters and transports +function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) { + + var inspected = {}, + seekingTransport = ( structure === transports ); + + function inspect( dataType ) { + var selected; + inspected[ dataType ] = true; + jQuery.each( structure[ dataType ] || [], function( _, prefilterOrFactory ) { + var dataTypeOrTransport = prefilterOrFactory( options, originalOptions, jqXHR ); + if ( typeof dataTypeOrTransport === "string" && + !seekingTransport && !inspected[ dataTypeOrTransport ] ) { + + options.dataTypes.unshift( dataTypeOrTransport ); + inspect( dataTypeOrTransport ); + return false; + } else if ( seekingTransport ) { + return !( selected = dataTypeOrTransport ); + } + } ); + return selected; + } + + return inspect( options.dataTypes[ 0 ] ) || !inspected[ "*" ] && inspect( "*" ); +} + +// A special extend for ajax options +// that takes "flat" options (not to be deep extended) +// Fixes #9887 +function ajaxExtend( target, src ) { + var key, deep, + flatOptions = jQuery.ajaxSettings.flatOptions || {}; + + for ( key in src ) { + if ( src[ key ] !== undefined ) { + ( flatOptions[ key ] ? target : ( deep || ( deep = {} ) ) )[ key ] = src[ key ]; + } + } + if ( deep ) { + jQuery.extend( true, target, deep ); + } + + return target; +} + +/* Handles responses to an ajax request: + * - finds the right dataType (mediates between content-type and expected dataType) + * - returns the corresponding response + */ +function ajaxHandleResponses( s, jqXHR, responses ) { + + var ct, type, finalDataType, firstDataType, + contents = s.contents, + dataTypes = s.dataTypes; + + // Remove auto dataType and get content-type in the process + while ( dataTypes[ 0 ] === "*" ) { + dataTypes.shift(); + if ( ct === undefined ) { + ct = s.mimeType || jqXHR.getResponseHeader( "Content-Type" ); + } + } + + // Check if we're dealing with a known content-type + if ( ct ) { + for ( type in contents ) { + if ( contents[ type ] && contents[ type ].test( ct ) ) { + dataTypes.unshift( type ); + break; + } + } + } + + // Check to see if we have a response for the expected dataType + if ( dataTypes[ 0 ] in responses ) { + finalDataType = dataTypes[ 0 ]; + } else { + + // Try convertible dataTypes + for ( type in responses ) { + if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[ 0 ] ] ) { + finalDataType = type; + break; + } + if ( !firstDataType ) { + firstDataType = type; + } + } + + // Or just use first one + finalDataType = finalDataType || firstDataType; + } + + // If we found a dataType + // We add the dataType to the list if needed + // and return the corresponding response + if ( finalDataType ) { + if ( finalDataType !== dataTypes[ 0 ] ) { + dataTypes.unshift( finalDataType ); + } + return responses[ finalDataType ]; + } +} + +/* Chain conversions given the request and the original response + * Also sets the responseXXX fields on the jqXHR instance + */ +function ajaxConvert( s, response, jqXHR, isSuccess ) { + var conv2, current, conv, tmp, prev, + converters = {}, + + // Work with a copy of dataTypes in case we need to modify it for conversion + dataTypes = s.dataTypes.slice(); + + // Create converters map with lowercased keys + if ( dataTypes[ 1 ] ) { + for ( conv in s.converters ) { + converters[ conv.toLowerCase() ] = s.converters[ conv ]; + } + } + + current = dataTypes.shift(); + + // Convert to each sequential dataType + while ( current ) { + + if ( s.responseFields[ current ] ) { + jqXHR[ s.responseFields[ current ] ] = response; + } + + // Apply the dataFilter if provided + if ( !prev && isSuccess && s.dataFilter ) { + response = s.dataFilter( response, s.dataType ); + } + + prev = current; + current = dataTypes.shift(); + + if ( current ) { + + // There's only work to do if current dataType is non-auto + if ( current === "*" ) { + + current = prev; + + // Convert response if prev dataType is non-auto and differs from current + } else if ( prev !== "*" && prev !== current ) { + + // Seek a direct converter + conv = converters[ prev + " " + current ] || converters[ "* " + current ]; + + // If none found, seek a pair + if ( !conv ) { + for ( conv2 in converters ) { + + // If conv2 outputs current + tmp = conv2.split( " " ); + if ( tmp[ 1 ] === current ) { + + // If prev can be converted to accepted input + conv = converters[ prev + " " + tmp[ 0 ] ] || + converters[ "* " + tmp[ 0 ] ]; + if ( conv ) { + + // Condense equivalence converters + if ( conv === true ) { + conv = converters[ conv2 ]; + + // Otherwise, insert the intermediate dataType + } else if ( converters[ conv2 ] !== true ) { + current = tmp[ 0 ]; + dataTypes.unshift( tmp[ 1 ] ); + } + break; + } + } + } + } + + // Apply converter (if not an equivalence) + if ( conv !== true ) { + + // Unless errors are allowed to bubble, catch and return them + if ( conv && s.throws ) { + response = conv( response ); + } else { + try { + response = conv( response ); + } catch ( e ) { + return { + state: "parsererror", + error: conv ? e : "No conversion from " + prev + " to " + current + }; + } + } + } + } + } + } + + return { state: "success", data: response }; +} + +jQuery.extend( { + + // Counter for holding the number of active queries + active: 0, + + // Last-Modified header cache for next request + lastModified: {}, + etag: {}, + + ajaxSettings: { + url: location.href, + type: "GET", + isLocal: rlocalProtocol.test( location.protocol ), + global: true, + processData: true, + async: true, + contentType: "application/x-www-form-urlencoded; charset=UTF-8", + + /* + timeout: 0, + data: null, + dataType: null, + username: null, + password: null, + cache: null, + throws: false, + traditional: false, + headers: {}, + */ + + accepts: { + "*": allTypes, + text: "text/plain", + html: "text/html", + xml: "application/xml, text/xml", + json: "application/json, text/javascript" + }, + + contents: { + xml: /\bxml\b/, + html: /\bhtml/, + json: /\bjson\b/ + }, + + responseFields: { + xml: "responseXML", + text: "responseText", + json: "responseJSON" + }, + + // Data converters + // Keys separate source (or catchall "*") and destination types with a single space + converters: { + + // Convert anything to text + "* text": String, + + // Text to html (true = no transformation) + "text html": true, + + // Evaluate text as a json expression + "text json": JSON.parse, + + // Parse text as xml + "text xml": jQuery.parseXML + }, + + // For options that shouldn't be deep extended: + // you can add your own custom options here if + // and when you create one that shouldn't be + // deep extended (see ajaxExtend) + flatOptions: { + url: true, + context: true + } + }, + + // Creates a full fledged settings object into target + // with both ajaxSettings and settings fields. + // If target is omitted, writes into ajaxSettings. + ajaxSetup: function( target, settings ) { + return settings ? + + // Building a settings object + ajaxExtend( ajaxExtend( target, jQuery.ajaxSettings ), settings ) : + + // Extending ajaxSettings + ajaxExtend( jQuery.ajaxSettings, target ); + }, + + ajaxPrefilter: addToPrefiltersOrTransports( prefilters ), + ajaxTransport: addToPrefiltersOrTransports( transports ), + + // Main method + ajax: function( url, options ) { + + // If url is an object, simulate pre-1.5 signature + if ( typeof url === "object" ) { + options = url; + url = undefined; + } + + // Force options to be an object + options = options || {}; + + var transport, + + // URL without anti-cache param + cacheURL, + + // Response headers + responseHeadersString, + responseHeaders, + + // timeout handle + timeoutTimer, + + // Url cleanup var + urlAnchor, + + // Request state (becomes false upon send and true upon completion) + completed, + + // To know if global events are to be dispatched + fireGlobals, + + // Loop variable + i, + + // uncached part of the url + uncached, + + // Create the final options object + s = jQuery.ajaxSetup( {}, options ), + + // Callbacks context + callbackContext = s.context || s, + + // Context for global events is callbackContext if it is a DOM node or jQuery collection + globalEventContext = s.context && + ( callbackContext.nodeType || callbackContext.jquery ) ? + jQuery( callbackContext ) : + jQuery.event, + + // Deferreds + deferred = jQuery.Deferred(), + completeDeferred = jQuery.Callbacks( "once memory" ), + + // Status-dependent callbacks + statusCode = s.statusCode || {}, + + // Headers (they are sent all at once) + requestHeaders = {}, + requestHeadersNames = {}, + + // Default abort message + strAbort = "canceled", + + // Fake xhr + jqXHR = { + readyState: 0, + + // Builds headers hashtable if needed + getResponseHeader: function( key ) { + var match; + if ( completed ) { + if ( !responseHeaders ) { + responseHeaders = {}; + while ( ( match = rheaders.exec( responseHeadersString ) ) ) { + responseHeaders[ match[ 1 ].toLowerCase() ] = match[ 2 ]; + } + } + match = responseHeaders[ key.toLowerCase() ]; + } + return match == null ? null : match; + }, + + // Raw string + getAllResponseHeaders: function() { + return completed ? responseHeadersString : null; + }, + + // Caches the header + setRequestHeader: function( name, value ) { + if ( completed == null ) { + name = requestHeadersNames[ name.toLowerCase() ] = + requestHeadersNames[ name.toLowerCase() ] || name; + requestHeaders[ name ] = value; + } + return this; + }, + + // Overrides response content-type header + overrideMimeType: function( type ) { + if ( completed == null ) { + s.mimeType = type; + } + return this; + }, + + // Status-dependent callbacks + statusCode: function( map ) { + var code; + if ( map ) { + if ( completed ) { + + // Execute the appropriate callbacks + jqXHR.always( map[ jqXHR.status ] ); + } else { + + // Lazy-add the new callbacks in a way that preserves old ones + for ( code in map ) { + statusCode[ code ] = [ statusCode[ code ], map[ code ] ]; + } + } + } + return this; + }, + + // Cancel the request + abort: function( statusText ) { + var finalText = statusText || strAbort; + if ( transport ) { + transport.abort( finalText ); + } + done( 0, finalText ); + return this; + } + }; + + // Attach deferreds + deferred.promise( jqXHR ); + + // Add protocol if not provided (prefilters might expect it) + // Handle falsy url in the settings object (#10093: consistency with old signature) + // We also use the url parameter if available + s.url = ( ( url || s.url || location.href ) + "" ) + .replace( rprotocol, location.protocol + "//" ); + + // Alias method option to type as per ticket #12004 + s.type = options.method || options.type || s.method || s.type; + + // Extract dataTypes list + s.dataTypes = ( s.dataType || "*" ).toLowerCase().match( rnothtmlwhite ) || [ "" ]; + + // A cross-domain request is in order when the origin doesn't match the current origin. + if ( s.crossDomain == null ) { + urlAnchor = document.createElement( "a" ); + + // Support: IE <=8 - 11, Edge 12 - 13 + // IE throws exception on accessing the href property if url is malformed, + // e.g. http://example.com:80x/ + try { + urlAnchor.href = s.url; + + // Support: IE <=8 - 11 only + // Anchor's host property isn't correctly set when s.url is relative + urlAnchor.href = urlAnchor.href; + s.crossDomain = originAnchor.protocol + "//" + originAnchor.host !== + urlAnchor.protocol + "//" + urlAnchor.host; + } catch ( e ) { + + // If there is an error parsing the URL, assume it is crossDomain, + // it can be rejected by the transport if it is invalid + s.crossDomain = true; + } + } + + // Convert data if not already a string + if ( s.data && s.processData && typeof s.data !== "string" ) { + s.data = jQuery.param( s.data, s.traditional ); + } + + // Apply prefilters + inspectPrefiltersOrTransports( prefilters, s, options, jqXHR ); + + // If request was aborted inside a prefilter, stop there + if ( completed ) { + return jqXHR; + } + + // We can fire global events as of now if asked to + // Don't fire events if jQuery.event is undefined in an AMD-usage scenario (#15118) + fireGlobals = jQuery.event && s.global; + + // Watch for a new set of requests + if ( fireGlobals && jQuery.active++ === 0 ) { + jQuery.event.trigger( "ajaxStart" ); + } + + // Uppercase the type + s.type = s.type.toUpperCase(); + + // Determine if request has content + s.hasContent = !rnoContent.test( s.type ); + + // Save the URL in case we're toying with the If-Modified-Since + // and/or If-None-Match header later on + // Remove hash to simplify url manipulation + cacheURL = s.url.replace( rhash, "" ); + + // More options handling for requests with no content + if ( !s.hasContent ) { + + // Remember the hash so we can put it back + uncached = s.url.slice( cacheURL.length ); + + // If data is available, append data to url + if ( s.data ) { + cacheURL += ( rquery.test( cacheURL ) ? "&" : "?" ) + s.data; + + // #9682: remove data so that it's not used in an eventual retry + delete s.data; + } + + // Add or update anti-cache param if needed + if ( s.cache === false ) { + cacheURL = cacheURL.replace( rantiCache, "$1" ); + uncached = ( rquery.test( cacheURL ) ? "&" : "?" ) + "_=" + ( nonce++ ) + uncached; + } + + // Put hash and anti-cache on the URL that will be requested (gh-1732) + s.url = cacheURL + uncached; + + // Change '%20' to '+' if this is encoded form body content (gh-2658) + } else if ( s.data && s.processData && + ( s.contentType || "" ).indexOf( "application/x-www-form-urlencoded" ) === 0 ) { + s.data = s.data.replace( r20, "+" ); + } + + // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode. + if ( s.ifModified ) { + if ( jQuery.lastModified[ cacheURL ] ) { + jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ cacheURL ] ); + } + if ( jQuery.etag[ cacheURL ] ) { + jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ cacheURL ] ); + } + } + + // Set the correct header, if data is being sent + if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) { + jqXHR.setRequestHeader( "Content-Type", s.contentType ); + } + + // Set the Accepts header for the server, depending on the dataType + jqXHR.setRequestHeader( + "Accept", + s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[ 0 ] ] ? + s.accepts[ s.dataTypes[ 0 ] ] + + ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) : + s.accepts[ "*" ] + ); + + // Check for headers option + for ( i in s.headers ) { + jqXHR.setRequestHeader( i, s.headers[ i ] ); + } + + // Allow custom headers/mimetypes and early abort + if ( s.beforeSend && + ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || completed ) ) { + + // Abort if not done already and return + return jqXHR.abort(); + } + + // Aborting is no longer a cancellation + strAbort = "abort"; + + // Install callbacks on deferreds + completeDeferred.add( s.complete ); + jqXHR.done( s.success ); + jqXHR.fail( s.error ); + + // Get transport + transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR ); + + // If no transport, we auto-abort + if ( !transport ) { + done( -1, "No Transport" ); + } else { + jqXHR.readyState = 1; + + // Send global event + if ( fireGlobals ) { + globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] ); + } + + // If request was aborted inside ajaxSend, stop there + if ( completed ) { + return jqXHR; + } + + // Timeout + if ( s.async && s.timeout > 0 ) { + timeoutTimer = window.setTimeout( function() { + jqXHR.abort( "timeout" ); + }, s.timeout ); + } + + try { + completed = false; + transport.send( requestHeaders, done ); + } catch ( e ) { + + // Rethrow post-completion exceptions + if ( completed ) { + throw e; + } + + // Propagate others as results + done( -1, e ); + } + } + + // Callback for when everything is done + function done( status, nativeStatusText, responses, headers ) { + var isSuccess, success, error, response, modified, + statusText = nativeStatusText; + + // Ignore repeat invocations + if ( completed ) { + return; + } + + completed = true; + + // Clear timeout if it exists + if ( timeoutTimer ) { + window.clearTimeout( timeoutTimer ); + } + + // Dereference transport for early garbage collection + // (no matter how long the jqXHR object will be used) + transport = undefined; + + // Cache response headers + responseHeadersString = headers || ""; + + // Set readyState + jqXHR.readyState = status > 0 ? 4 : 0; + + // Determine if successful + isSuccess = status >= 200 && status < 300 || status === 304; + + // Get response data + if ( responses ) { + response = ajaxHandleResponses( s, jqXHR, responses ); + } + + // Convert no matter what (that way responseXXX fields are always set) + response = ajaxConvert( s, response, jqXHR, isSuccess ); + + // If successful, handle type chaining + if ( isSuccess ) { + + // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode. + if ( s.ifModified ) { + modified = jqXHR.getResponseHeader( "Last-Modified" ); + if ( modified ) { + jQuery.lastModified[ cacheURL ] = modified; + } + modified = jqXHR.getResponseHeader( "etag" ); + if ( modified ) { + jQuery.etag[ cacheURL ] = modified; + } + } + + // if no content + if ( status === 204 || s.type === "HEAD" ) { + statusText = "nocontent"; + + // if not modified + } else if ( status === 304 ) { + statusText = "notmodified"; + + // If we have data, let's convert it + } else { + statusText = response.state; + success = response.data; + error = response.error; + isSuccess = !error; + } + } else { + + // Extract error from statusText and normalize for non-aborts + error = statusText; + if ( status || !statusText ) { + statusText = "error"; + if ( status < 0 ) { + status = 0; + } + } + } + + // Set data for the fake xhr object + jqXHR.status = status; + jqXHR.statusText = ( nativeStatusText || statusText ) + ""; + + // Success/Error + if ( isSuccess ) { + deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] ); + } else { + deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] ); + } + + // Status-dependent callbacks + jqXHR.statusCode( statusCode ); + statusCode = undefined; + + if ( fireGlobals ) { + globalEventContext.trigger( isSuccess ? "ajaxSuccess" : "ajaxError", + [ jqXHR, s, isSuccess ? success : error ] ); + } + + // Complete + completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] ); + + if ( fireGlobals ) { + globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] ); + + // Handle the global AJAX counter + if ( !( --jQuery.active ) ) { + jQuery.event.trigger( "ajaxStop" ); + } + } + } + + return jqXHR; + }, + + getJSON: function( url, data, callback ) { + return jQuery.get( url, data, callback, "json" ); + }, + + getScript: function( url, callback ) { + return jQuery.get( url, undefined, callback, "script" ); + } +} ); + +jQuery.each( [ "get", "post" ], function( i, method ) { + jQuery[ method ] = function( url, data, callback, type ) { + + // Shift arguments if data argument was omitted + if ( jQuery.isFunction( data ) ) { + type = type || callback; + callback = data; + data = undefined; + } + + // The url can be an options object (which then must have .url) + return jQuery.ajax( jQuery.extend( { + url: url, + type: method, + dataType: type, + data: data, + success: callback + }, jQuery.isPlainObject( url ) && url ) ); + }; +} ); + + +jQuery._evalUrl = function( url ) { + return jQuery.ajax( { + url: url, + + // Make this explicit, since user can override this through ajaxSetup (#11264) + type: "GET", + dataType: "script", + cache: true, + async: false, + global: false, + "throws": true + } ); +}; + + +jQuery.fn.extend( { + wrapAll: function( html ) { + var wrap; + + if ( this[ 0 ] ) { + if ( jQuery.isFunction( html ) ) { + html = html.call( this[ 0 ] ); + } + + // The elements to wrap the target around + wrap = jQuery( html, this[ 0 ].ownerDocument ).eq( 0 ).clone( true ); + + if ( this[ 0 ].parentNode ) { + wrap.insertBefore( this[ 0 ] ); + } + + wrap.map( function() { + var elem = this; + + while ( elem.firstElementChild ) { + elem = elem.firstElementChild; + } + + return elem; + } ).append( this ); + } + + return this; + }, + + wrapInner: function( html ) { + if ( jQuery.isFunction( html ) ) { + return this.each( function( i ) { + jQuery( this ).wrapInner( html.call( this, i ) ); + } ); + } + + return this.each( function() { + var self = jQuery( this ), + contents = self.contents(); + + if ( contents.length ) { + contents.wrapAll( html ); + + } else { + self.append( html ); + } + } ); + }, + + wrap: function( html ) { + var isFunction = jQuery.isFunction( html ); + + return this.each( function( i ) { + jQuery( this ).wrapAll( isFunction ? html.call( this, i ) : html ); + } ); + }, + + unwrap: function( selector ) { + this.parent( selector ).not( "body" ).each( function() { + jQuery( this ).replaceWith( this.childNodes ); + } ); + return this; + } +} ); + + +jQuery.expr.pseudos.hidden = function( elem ) { + return !jQuery.expr.pseudos.visible( elem ); +}; +jQuery.expr.pseudos.visible = function( elem ) { + return !!( elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length ); +}; + + + + +jQuery.ajaxSettings.xhr = function() { + try { + return new window.XMLHttpRequest(); + } catch ( e ) {} +}; + +var xhrSuccessStatus = { + + // File protocol always yields status code 0, assume 200 + 0: 200, + + // Support: IE <=9 only + // #1450: sometimes IE returns 1223 when it should be 204 + 1223: 204 + }, + xhrSupported = jQuery.ajaxSettings.xhr(); + +support.cors = !!xhrSupported && ( "withCredentials" in xhrSupported ); +support.ajax = xhrSupported = !!xhrSupported; + +jQuery.ajaxTransport( function( options ) { + var callback, errorCallback; + + // Cross domain only allowed if supported through XMLHttpRequest + if ( support.cors || xhrSupported && !options.crossDomain ) { + return { + send: function( headers, complete ) { + var i, + xhr = options.xhr(); + + xhr.open( + options.type, + options.url, + options.async, + options.username, + options.password + ); + + // Apply custom fields if provided + if ( options.xhrFields ) { + for ( i in options.xhrFields ) { + xhr[ i ] = options.xhrFields[ i ]; + } + } + + // Override mime type if needed + if ( options.mimeType && xhr.overrideMimeType ) { + xhr.overrideMimeType( options.mimeType ); + } + + // X-Requested-With header + // For cross-domain requests, seeing as conditions for a preflight are + // akin to a jigsaw puzzle, we simply never set it to be sure. + // (it can always be set on a per-request basis or even using ajaxSetup) + // For same-domain requests, won't change header if already provided. + if ( !options.crossDomain && !headers[ "X-Requested-With" ] ) { + headers[ "X-Requested-With" ] = "XMLHttpRequest"; + } + + // Set headers + for ( i in headers ) { + xhr.setRequestHeader( i, headers[ i ] ); + } + + // Callback + callback = function( type ) { + return function() { + if ( callback ) { + callback = errorCallback = xhr.onload = + xhr.onerror = xhr.onabort = xhr.onreadystatechange = null; + + if ( type === "abort" ) { + xhr.abort(); + } else if ( type === "error" ) { + + // Support: IE <=9 only + // On a manual native abort, IE9 throws + // errors on any property access that is not readyState + if ( typeof xhr.status !== "number" ) { + complete( 0, "error" ); + } else { + complete( + + // File: protocol always yields status 0; see #8605, #14207 + xhr.status, + xhr.statusText + ); + } + } else { + complete( + xhrSuccessStatus[ xhr.status ] || xhr.status, + xhr.statusText, + + // Support: IE <=9 only + // IE9 has no XHR2 but throws on binary (trac-11426) + // For XHR2 non-text, let the caller handle it (gh-2498) + ( xhr.responseType || "text" ) !== "text" || + typeof xhr.responseText !== "string" ? + { binary: xhr.response } : + { text: xhr.responseText }, + xhr.getAllResponseHeaders() + ); + } + } + }; + }; + + // Listen to events + xhr.onload = callback(); + errorCallback = xhr.onerror = callback( "error" ); + + // Support: IE 9 only + // Use onreadystatechange to replace onabort + // to handle uncaught aborts + if ( xhr.onabort !== undefined ) { + xhr.onabort = errorCallback; + } else { + xhr.onreadystatechange = function() { + + // Check readyState before timeout as it changes + if ( xhr.readyState === 4 ) { + + // Allow onerror to be called first, + // but that will not handle a native abort + // Also, save errorCallback to a variable + // as xhr.onerror cannot be accessed + window.setTimeout( function() { + if ( callback ) { + errorCallback(); + } + } ); + } + }; + } + + // Create the abort callback + callback = callback( "abort" ); + + try { + + // Do send the request (this may raise an exception) + xhr.send( options.hasContent && options.data || null ); + } catch ( e ) { + + // #14683: Only rethrow if this hasn't been notified as an error yet + if ( callback ) { + throw e; + } + } + }, + + abort: function() { + if ( callback ) { + callback(); + } + } + }; + } +} ); + + + + +// Prevent auto-execution of scripts when no explicit dataType was provided (See gh-2432) +jQuery.ajaxPrefilter( function( s ) { + if ( s.crossDomain ) { + s.contents.script = false; + } +} ); + +// Install script dataType +jQuery.ajaxSetup( { + accepts: { + script: "text/javascript, application/javascript, " + + "application/ecmascript, application/x-ecmascript" + }, + contents: { + script: /\b(?:java|ecma)script\b/ + }, + converters: { + "text script": function( text ) { + jQuery.globalEval( text ); + return text; + } + } +} ); + +// Handle cache's special case and crossDomain +jQuery.ajaxPrefilter( "script", function( s ) { + if ( s.cache === undefined ) { + s.cache = false; + } + if ( s.crossDomain ) { + s.type = "GET"; + } +} ); + +// Bind script tag hack transport +jQuery.ajaxTransport( "script", function( s ) { + + // This transport only deals with cross domain requests + if ( s.crossDomain ) { + var script, callback; + return { + send: function( _, complete ) { + script = jQuery( " + + + + + + + + + + + + + + + +
+
+
+ + +
+ + + +
+ +
+
+ +
+
+ + + + + + + \ No newline at end of file diff --git a/core.html b/core.html new file mode 100644 index 0000000..1f7e8e0 --- /dev/null +++ b/core.html @@ -0,0 +1,344 @@ + + + + + + + + Core — ucloud-sdk-python2 documentation + + + + + + + + + + + + + + + + + + +
+
+
+ + +
+ +
+

Core

+
+

Config

+
+
+class ucloud.core.auth.Credential(public_key, private_key, **kwargs)[source]
+

credential is the object to store credential information

+

the keys can be found on APIKey documentation

+

it can calculate signature for OpenAPI:

+
>>> cred = Credential('my_public_key', 'my_private_key')
+>>> cred.verify_ac({"foo": "bar"})
+'d4411ab30953fb0bbcb1e7313081f05e4e91a394'
+
+
+ +++ + + + +
Parameters:
    +
  • public_key
  • +
  • private_key
  • +
+
+
+ +
+
+class ucloud.core.client.Config(region, project_id=None, base_url='https://api.ucloud.cn', user_agent=None, timeout=30, max_retries=3, log_level=20, **kwargs)[source]
+

Config is the config of ucloud sdk, use for setting up

+ +++ + + + +
Parameters:
    +
  • region (str) – Region is the region of backend service, +See also Region list Documentation
  • +
  • project_id (str) – ProjectId is the unique identify of project, used for organize resources, +Most of resources should belong to a project. Sub-Account must have an project id. +See also Project list Documentation
  • +
  • base_url (str) – BaseUrl is the url of backend api
  • +
  • user_agent – UserAgent is an attribute for sdk client, used for distinguish who is using sdk. +See also User Agent +It will be appended to the end of sdk user-agent. +eg. “MyAPP/0.10.1” -> “Python/3.7.0 Python-SDK/0.1.0 MyAPP/0.10.1”
  • +
  • timeout (int) – Timeout is timeout for every request.
  • +
  • max_retries (int) – MaxRetries is the number of max retry times. +Set MaxRetries more than 0 to enable auto-retry for network and service availability problem +if auto-retry is enabled, it will enable default retry policy using exponential backoff.
  • +
  • log_level (int) – LogLevel is equal to builtin logging level, +if logLevel not be set, use INFO level as default.
  • +
+
+
+ +
+
+

Client

+
+
+class ucloud.core.client.Client(config, transport=None, middleware=None, logger=None)[source]
+
+
+invoke(action, args=None, **options)[source]
+

invoke will invoke the action with arguments data and options

+ +++ + + + + + +
Parameters:
    +
  • action (str) – the api action, like CreateUHostInstance
  • +
  • args (dict) – arguments of api(action), see doc: UCloud API Documentation
  • +
+
Returns:

+
+
+ +
+ +
+
+

Transport

+
+
+class ucloud.core.transport.RequestsTransport(max_retries=3, backoff_factor=0.3, status_forcelist=(500, 502, 504))[source]
+

transport is the implementation of http client, use for send a request and return a http response

+ +++ + + + +
Parameters:
    +
  • max_retries (int) – max retries is the max number of transport request when occur http error
  • +
  • backoff_factor (float) – backoff factor will calculate the backoff delay during retrying, +the backoff delay = {backoff factor} * (2 ^ ({number of total retries} - 1))
  • +
  • status_forcelist (tuple) – the status code list that could be retried
  • +
+
+
+
+middleware
+

the middleware object, see :mod:

+ +++ + + + +
Returns:the transport middleware
+
+ +
+
+send(req, **options)[source]
+

send request and return the response

+ +++ + + + + + +
Parameters:req – the full http request descriptor
Returns:the response of http request
+
+ +
+ +
+
+

Middleware

+
+
+class ucloud.core.utils.middleware.Middleware[source]
+

middleware is the object to store request/response handlers

+
>>> middleware = Middleware()
+
+
+

Add a request handler to prepare the request

+
>>> @middleware.request
+... def prepare(req):
+...     req['Region'] = 'cn-bj2'
+...     return req
+
+
+

Add a response handler to log the response detail

+
>>> @middleware.response
+... def logged(resp):
+...     print(resp)
+...     return resp
+
+
+
>>> len(middleware.request_handlers), len(middleware.response_handlers)
+(1, 1)
+
+
+
+
+request(handler, index=-1)[source]
+

request is the request handler register to add request handler.

+ +++ + + + + + +
Parameters:
    +
  • handler – request handler function, receive request object +and return a new request
  • +
  • index (int) – the position of request in the handler list, +default is append it to end
  • +
+
Returns:

+
+
+ +
+
+response(handler, index=-1)[source]
+

response is the response handler register to add response handler.

+ +++ + + + + + +
Parameters:
    +
  • handler – response handler function, receive response object +and return a new response
  • +
  • index (int) – the position of response in the handler list, +default is append it to end
  • +
+
Returns:

+
+
+ +
+ +
+
+

Testing

+
+
+ucloud.core.testing.env.is_acc()[source]
+

check test env is acceptance testing or not

+
+ +
+
+ucloud.core.testing.env.is_ut()[source]
+

check test env is unit testing or not

+
+ +
+
+ucloud.core.testing.env.pre_check_env()[source]
+

pre check environment for testing

+

NOTE: system environment variables credential is required for test environment

+
+ +
+
+ + +
+ +
+
+ +
+
+ + + + + + + \ No newline at end of file diff --git a/genindex.html b/genindex.html new file mode 100644 index 0000000..d2897b8 --- /dev/null +++ b/genindex.html @@ -0,0 +1,727 @@ + + + + + + + + + Index — ucloud-sdk-python2 documentation + + + + + + + + + + + + + + + + + + +
+
+
+ + +
+ + +

Index

+ +
+ A + | B + | C + | D + | E + | F + | G + | I + | M + | P + | R + | S + | T + | U + | V + | W + +
+

A

+ + + +
+ +

B

+ + + +
+ +

C

+ + + +
+ +

D

+ + + +
+ +

E

+ + +
+ +

F

+ + +
+ +

G

+ + + +
+ +

I

+ + + +
+ +

M

+ + + +
+ +

P

+ + + +
+ +

R

+ + + +
+ +

S

+ + + +
+ +

T

+ + + +
+ +

U

+ + + +
+ +

V

+ + +
+ +

W

+ + +
+ + + +
+ +
+
+ +
+
+ + + + + + + \ No newline at end of file diff --git a/helpers.html b/helpers.html new file mode 100644 index 0000000..f0d076e --- /dev/null +++ b/helpers.html @@ -0,0 +1,207 @@ + + + + + + + + Helpers — ucloud-sdk-python2 documentation + + + + + + + + + + + + + + + + + + +
+
+
+ + +
+ +
+

Helpers

+
+

Wait Resource State

+
+
+ucloud.helpers.wait.wait_for_state(pending, target, refresh, timeout, startup_delay=0, min_backoff_interval=0.1, max_backoff_interval=10)[source]
+

wait_for_state is a utilities function to wait the state return by refresh function achieve the specific state, +the generally usage is wait the cloud resource, such as uhost, udb … is +ready after created.

+
>>> wait_for_state(
+...     pending=["pending"],
+...     target=["running"],
+...     refresh=lambda: "running",
+...     timeout=0.5,
+... )
+
+
+ +++ + + + +
Parameters:
    +
  • pending – pending is the list of pending state, the state is returned by refresh function
  • +
  • target – target is the list of target state, it is usually the terminate state, eg. running and fail
  • +
  • refresh – the customized refresh function, expect no arguments and return a state
  • +
  • timeout – timeout is the total time to wait state is achieved
  • +
  • startup_delay – the time to wait before first refresh function is called
  • +
  • min_backoff_interval – the backoff time for first refresh interval
  • +
  • max_backoff_interval – the max backoff time for refresh interval
  • +
+
+
+ +
+
+

Utilities

+
+
+ucloud.helpers.utils.b64decode(s)[source]
+

base64 decode

+ +++ + + + + + +
Parameters:s (str) – base64 string
Returns:output string
+
+ +
+
+ucloud.helpers.utils.b64encode(s)[source]
+

base64 encode

+ +++ + + + + + +
Parameters:s (str) – input string
Returns:base64 string
+
+ +
+
+ucloud.helpers.utils.gen_password(n, lower_letters='abcdefghijklmnopqrstuvwxyz', upper_letters='ABCDEFGHIJKLMNOPQRSTUVWXYZ', number_letters='0123456789', special_letters='_', min_lower=1, min_upper=1, min_number=1, min_specials=1)[source]
+

generate password for any resource

+
>>> len(gen_password(20))
+20
+
+
+ +++ + + + + + +
Parameters:
    +
  • n (int) – password total length
  • +
  • lower_letters (str) – all lowercase letters
  • +
  • upper_letters (str) – all uppercase letters
  • +
  • number_letters (str) – all number letters
  • +
  • special_letters (str) – all special letters
  • +
  • min_lower (int) – minimal number of lowercase letters
  • +
  • min_upper (int) – minimal number of uppercase letters
  • +
  • min_number (int) – minimal number of number letters
  • +
  • min_specials (int) – minimal number of special letters
  • +
+
Returns:

+
+
+ +
+
+ + +
+ +
+
+ +
+
+ + + + + + + \ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 0000000..49612ec --- /dev/null +++ b/index.html @@ -0,0 +1,240 @@ + + + + + + + + UCloud SDK Python 2 — ucloud-sdk-python2 documentation + + + + + + + + + + + + + + + + + + +
+
+
+ + +
+ +
+

UCloud SDK Python 2

+

UCloud SDK is a Python client library for accessing the UCloud API.

+

This client can run on Linux, macOS and Windows. It requires Python 2.7 and +above.

+ +Latest Version +Travis CI Status +Codecov Status +Doc Status + +
+
+

QuickStart

+
+

Installation

+

Install with pip:

+
pip install ucloud-sdk-python2
+
+
+

Install with source code:

+
clone https://github.com/ucloud/ucloud-sdk-python2.git
+cd ucloud-sdk-python2
+python setup.py install
+
+
+
+
+

QuickStart

+

Currently, user public key & private key is the only method of authenticating with the API. You could get your keys here:

+ +

You can then use your keys to create a new client of uhost service:

+
from ucloud.core import exc
+from ucloud.client import Client
+
+client = Client({
+    "region": "cn-bj2",
+    "project_id": "...",
+    "public_key": "...",
+    "private_key": "...",
+})
+
+try:
+    resp = client.uhost().create_uhost_instance({
+        'Name': 'sdk-python-quickstart',
+        'Zone': image["zone"],
+        'ImageId': image["image_id"],
+        'LoginMode': "Password",
+        'Password': utils.b64encode(utils.gen_password(20)),
+        'CPU': 1,
+        'Memory': 1,
+        'Disks': [{
+            'Size': 10,
+            'Type': 'CLOUD_SSD'
+        }],
+    })
+except exc.UCloudException as e:
+    print(e)
+else:
+    print(resp)
+
+
+
+

Note

+

UHost created above cannot be accessed via Internet unless an EIP is created and bind to the UHost.

+
+
+ +
+

Indices and tables

+ +
+
+

Feedback & Contribution

+ +
+
+ + +
+ +
+
+ +
+
+ + + + + + + \ No newline at end of file diff --git a/objects.inv b/objects.inv new file mode 100644 index 0000000000000000000000000000000000000000..7f9e44ad444c587bf629667b67d2463e5910abaf GIT binary patch literal 2069 zcmV+w2NERX>N99Zgg*Qc_4OWa&u{KZXhxWBOp+6Z)#;@bUGk)V{C7A zWG!=KYb|hjbZBpGG72LgR%LQ?X>V>iAPOTORA^-&a%F8{X>Md?av*PJAarPHb0B7E zY-J#6b0A}HZE$jBb8}^6Aa!$TZf78RY-wUH3V7PRoZXM(CJ?~i^H)S_U)O4@st>2C zQoHwXRePsxw^#KIVN7Bg3_ifgrGI_FfIl`L>yY7IHimjOk?s*2MCR(*qEV-zbpLz8)$ifUogcZP92 zQJ{D~)8+N&x&kPa*X({(EXh8Z&?y6z3m?d;9g^)?a~ z9o!>}u?n=6Dan42hIu`hE%wg?#=A*7g$X9b|{M&}3kr8`3;z3!h+7 z$?a!K>hZdOez1vhI>o^yz`Ds9a8!PnE@hRH(?ozn|26&>GFYov&Q{N?eb;Uku5vv^ z<~|1=LnrK=ab{zB(p2F( zH?138XWrLE&$5R}fyI|tR0md>8V0RwG{-uv(Q2v34WoDVN0NhHpcF*5M?^Z?JsZTD zgh}&7upetqNS838@wlSo{g{1^x(v` zt}8-Z&gdtvv_dIq-Ye`p)(OiYIDGPc$DUu`VjPyL($0%$hayk2bLio7Q^LyHv zmotPhb9c*IFVCa`G3{rjNMymDHzvkVPaJrF&m1R*fT5-nkRc(g$j7iXp7Mud!}XWAeZb2s ziiUPiXE(GN;O}XZG-91)4587MBI5F}wEd0O;kw0y!eSM*DI=u5G0}1rRq9+(wKnsVb9Cs0sCkq19$z11^4aYyw05?g`nfq{{v0ivpCBb zr_q$bXf+abjTKGb`+0@F2h&$;NmwueIxth`(Y&8SfLS@DdV`Lsr!=q9H%!rkwKxnk zBxIRX4s>Xh!vK;^=@WjZ;pt#rHxM(KIbx9woU&5{+7MYf_PB}xW@e_pR8(^Li<8je zW72VtSEwn8)^+4vIot)b!omQ%bjYxr#=tE$As;B))&>R}*Ui9UMFeJX+X&yoY1^lO zS(MdT`dB9rY)TQ<v31fus!SrG+pO*wzKw>d?@H5XV?XDH-Kq3jyqYoX`7*o z=_!Y6F2nm5EcD!@;o&kkzNjE0ZI7cXORUun|Y*;(Uo6iNEM-JJd|BrHmOHLuc{y!6-p*|euq3W)*h6M!L zGFY08AJ#94Y#^{<+6!#UxJ?db%ec1(kM`SYONE_{(9iuX9G8^4o8nb}xSdF-F z*M#)((b;4D{Pwr?)6qVkSbw*2?r^F>dwhrmzUq7b9zd_lr;d>w>T{2&q{(Gp=?{0| z+5KK=iWRBnLi{y<>$5L^vRU&gntaNhHN*5lo + + + + + + Python Module Index — ucloud-sdk-python2 documentation + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + +
+ + +

Python Module Index

+ +
+ u +
+ + + + + + + + + + + + + +
 
+ u
+ ucloud +
    + ucloud.core.testing.env +
    + ucloud.helpers.utils +
+ + +
+ +
+
+ +
+
+ + + + + + + \ No newline at end of file diff --git a/quick_start.html b/quick_start.html new file mode 100644 index 0000000..86f8a9d --- /dev/null +++ b/quick_start.html @@ -0,0 +1,159 @@ + + + + + + + + QuickStart — ucloud-sdk-python2 documentation + + + + + + + + + + + + + + + + + + +
+
+
+ + +
+ +
+

QuickStart

+
+

Installation

+

Install with pip:

+
pip install ucloud-sdk-python2
+
+
+

Install with source code:

+
clone https://github.com/ucloud/ucloud-sdk-python2.git
+cd ucloud-sdk-python2
+python setup.py install
+
+
+
+
+

QuickStart

+

Currently, user public key & private key is the only method of authenticating with the API. You could get your keys here:

+ +

You can then use your keys to create a new client of uhost service:

+
from ucloud.core import exc
+from ucloud.client import Client
+
+client = Client({
+    "region": "cn-bj2",
+    "project_id": "...",
+    "public_key": "...",
+    "private_key": "...",
+})
+
+try:
+    resp = client.uhost().create_uhost_instance({
+        'Name': 'sdk-python-quickstart',
+        'Zone': image["zone"],
+        'ImageId': image["image_id"],
+        'LoginMode': "Password",
+        'Password': utils.b64encode(utils.gen_password(20)),
+        'CPU': 1,
+        'Memory': 1,
+        'Disks': [{
+            'Size': 10,
+            'Type': 'CLOUD_SSD'
+        }],
+    })
+except exc.UCloudException as e:
+    print(e)
+else:
+    print(resp)
+
+
+
+

Note

+

UHost created above cannot be accessed via Internet unless an EIP is created and bind to the UHost.

+
+
+
+ + +
+ +
+
+ +
+
+ + + + + + + \ No newline at end of file diff --git a/search.html b/search.html new file mode 100644 index 0000000..aa55391 --- /dev/null +++ b/search.html @@ -0,0 +1,117 @@ + + + + + + + + Search — ucloud-sdk-python2 documentation + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + +
+ +

Search

+
+ +

+ Please activate JavaScript to enable the search + functionality. +

+
+

+ From here you can search these documents. Enter your search + words into the box below and click "search". Note that the search + function will automatically search for all of the words. Pages + containing fewer words won't appear in the result list. +

+
+ + + +
+ +
+ +
+ +
+ +
+
+ +
+
+ + + + + + + \ No newline at end of file diff --git a/searchindex.js b/searchindex.js new file mode 100644 index 0000000..5ebe383 --- /dev/null +++ b/searchindex.js @@ -0,0 +1 @@ +Search.setIndex({docnames:["contents","core","helpers","index","quick_start","services","usage"],envversion:{"sphinx.domains.c":1,"sphinx.domains.changeset":1,"sphinx.domains.cpp":1,"sphinx.domains.javascript":1,"sphinx.domains.math":2,"sphinx.domains.python":1,"sphinx.domains.rst":1,"sphinx.domains.std":1,"sphinx.ext.todo":1,"sphinx.ext.viewcode":1,sphinx:54},filenames:["contents.rst","core.rst","helpers.rst","index.rst","quick_start.rst","services.rst","usage.rst"],objects:{"ucloud.core.auth":{Credential:[1,0,1,""]},"ucloud.core.client":{Client:[1,0,1,""],Config:[1,0,1,""]},"ucloud.core.client.Client":{invoke:[1,1,1,""]},"ucloud.core.testing":{env:[1,2,0,"-"]},"ucloud.core.testing.env":{is_acc:[1,3,1,""],is_ut:[1,3,1,""],pre_check_env:[1,3,1,""]},"ucloud.core.transport":{RequestsTransport:[1,0,1,""]},"ucloud.core.transport.RequestsTransport":{middleware:[1,4,1,""],send:[1,1,1,""]},"ucloud.core.utils.middleware":{Middleware:[1,0,1,""]},"ucloud.core.utils.middleware.Middleware":{request:[1,1,1,""],response:[1,1,1,""]},"ucloud.helpers":{utils:[2,2,0,"-"]},"ucloud.helpers.utils":{b64decode:[2,3,1,""],b64encode:[2,3,1,""],gen_password:[2,3,1,""]},"ucloud.helpers.wait":{wait_for_state:[2,3,1,""]},"ucloud.services.pathx.client":{PathXClient:[5,0,1,""]},"ucloud.services.pathx.client.PathXClient":{create_global_ssh_instance:[5,1,1,""],delete_global_ssh_instance:[5,1,1,""],describe_global_ssh_area:[5,1,1,""],describe_global_ssh_instance:[5,1,1,""],modify_global_ssh_port:[5,1,1,""],modify_global_ssh_remark:[5,1,1,""]},"ucloud.services.uaccount.client":{UAccountClient:[5,0,1,""]},"ucloud.services.uaccount.client.UAccountClient":{create_project:[5,1,1,""],get_project_list:[5,1,1,""],get_region:[5,1,1,""],get_user_info:[5,1,1,""],modify_project:[5,1,1,""],terminate_project:[5,1,1,""]},"ucloud.services.udb.client":{UDBClient:[5,0,1,""]},"ucloud.services.udb.client.UDBClient":{backup_udb_instance:[5,1,1,""],backup_udb_instance_binlog:[5,1,1,""],backup_udb_instance_error_log:[5,1,1,""],backup_udb_instance_slow_log:[5,1,1,""],check_recover_udb_instance:[5,1,1,""],check_udb_instance_to_ha_allowance:[5,1,1,""],clear_udb_log:[5,1,1,""],create_udb_instance:[5,1,1,""],create_udb_instance_by_recovery:[5,1,1,""],create_udb_param_group:[5,1,1,""],create_udb_replication_instance:[5,1,1,""],create_udb_route_instance:[5,1,1,""],create_udb_slave:[5,1,1,""],delete_udb_backup:[5,1,1,""],delete_udb_instance:[5,1,1,""],delete_udb_log_package:[5,1,1,""],delete_udb_param_group:[5,1,1,""],describe_udb_backup:[5,1,1,""],describe_udb_backup_blacklist:[5,1,1,""],describe_udb_binlog_backup_url:[5,1,1,""],describe_udb_instance:[5,1,1,""],describe_udb_instance_backup_state:[5,1,1,""],describe_udb_instance_backup_url:[5,1,1,""],describe_udb_instance_binlog:[5,1,1,""],describe_udb_instance_binlog_backup_state:[5,1,1,""],describe_udb_instance_price:[5,1,1,""],describe_udb_instance_state:[5,1,1,""],describe_udb_instance_upgrade_price:[5,1,1,""],describe_udb_log_backup_url:[5,1,1,""],describe_udb_log_package:[5,1,1,""],describe_udb_param_group:[5,1,1,""],describe_udb_type:[5,1,1,""],edit_udb_backup_blacklist:[5,1,1,""],fetch_udb_instance_earliest_recover_time:[5,1,1,""],modify_udb_instance_name:[5,1,1,""],modify_udb_instance_password:[5,1,1,""],promote_udb_instance_to_ha:[5,1,1,""],promote_udb_slave:[5,1,1,""],resize_udb_instance:[5,1,1,""],restart_udb_instance:[5,1,1,""],start_udb_instance:[5,1,1,""],stop_udb_instance:[5,1,1,""],switch_udb_instance_to_ha:[5,1,1,""],update_udb_instance_backup_strategy:[5,1,1,""],update_udb_instance_slave_backup_switch:[5,1,1,""],update_udb_param_group:[5,1,1,""],upload_udb_param_group:[5,1,1,""]},"ucloud.services.udisk.client":{UDiskClient:[5,0,1,""]},"ucloud.services.udisk.client.UDiskClient":{attach_udisk:[5,1,1,""],clone_udisk:[5,1,1,""],clone_udisk_snapshot:[5,1,1,""],create_udisk:[5,1,1,""],create_udisk_snapshot:[5,1,1,""],delete_udisk:[5,1,1,""],delete_udisk_snapshot:[5,1,1,""],describe_udisk:[5,1,1,""],describe_udisk_price:[5,1,1,""],describe_udisk_snapshot:[5,1,1,""],describe_udisk_upgrade_price:[5,1,1,""],detach_udisk:[5,1,1,""],rename_udisk:[5,1,1,""],resize_udisk:[5,1,1,""],restore_udisk:[5,1,1,""],set_udisk__udataark_mode:[5,1,1,""]},"ucloud.services.udpn.client":{UDPNClient:[5,0,1,""]},"ucloud.services.udpn.client.UDPNClient":{allocate_udpn:[5,1,1,""],describe_udpn:[5,1,1,""],get_udpn_line_list:[5,1,1,""],get_udpn_price:[5,1,1,""],get_udpn_upgrade_price:[5,1,1,""],modify_udpn_bandwidth:[5,1,1,""],release_udpn:[5,1,1,""]},"ucloud.services.uhost.client":{UHostClient:[5,0,1,""]},"ucloud.services.uhost.client.UHostClient":{copy_custom_image:[5,1,1,""],create_custom_image:[5,1,1,""],create_uhost_instance:[5,1,1,""],describe_image:[5,1,1,""],describe_uhost_instance:[5,1,1,""],describe_uhost_tags:[5,1,1,""],get_uhost_instance_price:[5,1,1,""],get_uhost_instance_vnc_info:[5,1,1,""],get_uhost_upgrade_price:[5,1,1,""],import_custom_image:[5,1,1,""],modify_uhost_instance_name:[5,1,1,""],modify_uhost_instance_remark:[5,1,1,""],modify_uhost_instance_tag:[5,1,1,""],poweroff_uhost_instance:[5,1,1,""],reboot_uhost_instance:[5,1,1,""],reinstall_uhost_instance:[5,1,1,""],reset_uhost_instance_password:[5,1,1,""],resize_attached_disk:[5,1,1,""],resize_uhost_instance:[5,1,1,""],start_uhost_instance:[5,1,1,""],stop_uhost_instance:[5,1,1,""],terminate_custom_image:[5,1,1,""],terminate_uhost_instance:[5,1,1,""],upgrade_to_ark_uhost_instance:[5,1,1,""]},"ucloud.services.ulb.client":{ULBClient:[5,0,1,""]},"ucloud.services.ulb.client.ULBClient":{allocate_backend:[5,1,1,""],allocate_backend_batch:[5,1,1,""],bind_ssl:[5,1,1,""],create_policy:[5,1,1,""],create_ssl:[5,1,1,""],create_ulb:[5,1,1,""],create_vserver:[5,1,1,""],delete_policy:[5,1,1,""],delete_ssl:[5,1,1,""],delete_ulb:[5,1,1,""],delete_vserver:[5,1,1,""],describe_ssl:[5,1,1,""],describe_ulb:[5,1,1,""],describe_vserver:[5,1,1,""],release_backend:[5,1,1,""],unbind_ssl:[5,1,1,""],update_backend_attribute:[5,1,1,""],update_policy:[5,1,1,""],update_ulb_attribute:[5,1,1,""],update_vserver_attribute:[5,1,1,""]},"ucloud.services.umem.client":{UMemClient:[5,0,1,""]},"ucloud.services.umem.client.UMemClient":{create_umem_cache_group:[5,1,1,""],create_umem_space:[5,1,1,""],create_uredis_group:[5,1,1,""],delete_umem_cache_group:[5,1,1,""],delete_umem_space:[5,1,1,""],delete_uredis_group:[5,1,1,""],describe_umem_cache_group:[5,1,1,""],describe_umem_cache_price:[5,1,1,""],describe_umem_cache_upgrade_price:[5,1,1,""],describe_umem_price:[5,1,1,""],describe_umem_space:[5,1,1,""],describe_umem_upgrade_price:[5,1,1,""],describe_uredis_backup:[5,1,1,""],describe_uredis_backup_url:[5,1,1,""],describe_uredis_group:[5,1,1,""],describe_uredis_price:[5,1,1,""],describe_uredis_upgrade_price:[5,1,1,""],get_umem_space_state:[5,1,1,""],modify_umem_space_name:[5,1,1,""],modify_uredis_group_name:[5,1,1,""],resize_udredis_space:[5,1,1,""],resize_umem_space:[5,1,1,""],resize_uredis_group:[5,1,1,""],restart_umem_cache_group:[5,1,1,""]},"ucloud.services.unet.client":{UNetClient:[5,0,1,""]},"ucloud.services.unet.client.UNetClient":{allocate_eip:[5,1,1,""],allocate_share_bandwidth:[5,1,1,""],allocate_vip:[5,1,1,""],associate_eip_with_share_bandwidth:[5,1,1,""],bind_eip:[5,1,1,""],create_bandwidth_package:[5,1,1,""],create_firewall:[5,1,1,""],delete_bandwidth_package:[5,1,1,""],delete_firewall:[5,1,1,""],describe_bandwidth_package:[5,1,1,""],describe_bandwidth_usage:[5,1,1,""],describe_eip:[5,1,1,""],describe_firewall:[5,1,1,""],describe_firewall_resource:[5,1,1,""],describe_share_bandwidth:[5,1,1,""],describe_vip:[5,1,1,""],disassociate_eip_with_share_bandwidth:[5,1,1,""],get_eip_pay_mode:[5,1,1,""],get_eip_price:[5,1,1,""],get_eip_upgrade_price:[5,1,1,""],grant_firewall:[5,1,1,""],modify_eip_bandwidth:[5,1,1,""],modify_eip_weight:[5,1,1,""],release_eip:[5,1,1,""],release_share_bandwidth:[5,1,1,""],release_vip:[5,1,1,""],resize_share_bandwidth:[5,1,1,""],set_eip_pay_mode:[5,1,1,""],un_bind_eip:[5,1,1,""],update_eip_attribute:[5,1,1,""],update_firewall:[5,1,1,""],update_firewall_attribute:[5,1,1,""]},"ucloud.services.uphost.client":{UPHostClient:[5,0,1,""]},"ucloud.services.uphost.client.UPHostClient":{create_phost:[5,1,1,""],describe_phost:[5,1,1,""],describe_phost_image:[5,1,1,""],describe_phost_tags:[5,1,1,""],get_phost_price:[5,1,1,""],modify_phost_info:[5,1,1,""],poweroff_phost:[5,1,1,""],reboot_phost:[5,1,1,""],reinstall_phost:[5,1,1,""],start_phost:[5,1,1,""],terminate_phost:[5,1,1,""]},"ucloud.services.vpc.client":{VPCClient:[5,0,1,""]},"ucloud.services.vpc.client.VPCClient":{add_vpc_network:[5,1,1,""],associate_route_table:[5,1,1,""],clone_route_table:[5,1,1,""],create_route_table:[5,1,1,""],create_subnet:[5,1,1,""],create_vpc:[5,1,1,""],create_vpc_intercom:[5,1,1,""],delete_route_table:[5,1,1,""],delete_subnet:[5,1,1,""],delete_vpc:[5,1,1,""],delete_vpc_intercom:[5,1,1,""],describe_route_table:[5,1,1,""],describe_subnet:[5,1,1,""],describe_subnet_resource:[5,1,1,""],describe_vpc:[5,1,1,""],describe_vpc_intercom:[5,1,1,""],modify_route_rule:[5,1,1,""],update_route_table_attribute:[5,1,1,""],update_subnet_attribute:[5,1,1,""],update_vpc_network:[5,1,1,""]}},objnames:{"0":["py","class","Python class"],"1":["py","method","Python method"],"2":["py","module","Python module"],"3":["py","function","Python function"],"4":["py","attribute","Python attribute"]},objtypes:{"0":"py:class","1":"py:method","2":"py:module","3":"py:function","4":"py:attribute"},terms:{"03f58ca9":5,"0\u4e0b\u9700\u8981\u586b\u5199\u6b64\u5b57\u6bb5":5,"0\u4e0d\u652f\u6301":5,"0\u4e0d\u8fd4\u56de":5,"0\u4e3a\u81ea\u5b9a\u4e49":5,"0\u4ee3\u8868\u5e0c\u671b\u5347\u7ea7\u7684\u4e3b\u673a1":5,"0\u4ee3\u8868\u5e0c\u671b\u83b7\u53d6\u4fe1\u606f":5,"0\u5065\u5eb7\u68c0\u67e5\u5065\u5eb7\u72b6\u6001":5,"0\u60c5\u51b5\u4e0b":5,"0\u60c5\u51b5\u4e0b\u65e0\u9700\u586b\u5199":5,"0\u70b91":5,"0\u7248\u672c\u914d\u7f6eid":5,"0\u8868\u793a\u4e0d\u53d8":5,"0\u8868\u793a\u4ece\u5e93\u5907\u4efd\u529f\u80fd\u5173\u95ed":5,"0\u8868\u793a\u5173\u95ed\u5f53\u5929\u5907\u4efd":5,"0\u8868\u793a\u6309\u7167\u539f\u6765\u7684\u903b\u8f91":5,"0\u8868\u793a\u7cfb\u7edf\u8def\u7531":5,"0\u8868\u793a\u81ea\u52a8":5,"1000m":5,"10\u4e2a\u6708\u62161":5,"10\u5e74":5,"10g":5,"1100000\u8868\u793a\u6253\u5f00\u661f\u671f\u516d\u548c\u661f\u671f\u4e94\u7684\u5907\u4efd\u529f\u80fd":5,"12000m":5,"15000m":5,"1500m":5,"16000m":5,"1\u4e3a\u9ed8\u8ba4":5,"1\u4ee3\u8868\u4e3b\u673a2":5,"1\u652f\u6301":5,"1\u70b9\u4f9d\u6b21\u7c7b\u63a8":5,"1\u8868\u793a\u624b\u52a8":5,"1\u8868\u793a\u6253\u5f00\u5f53\u5929\u5907\u4efd":5,"1\u8868\u793a\u76f4\u63a5\u5220\u9664":5,"1\u8868\u793a\u81ea\u5b9a\u4e49\u8def\u7531":5,"1\u8fd4\u56de":5,"2000m":5,"24000m":5,"261d":5,"2\u7248\u672c\u914d\u7f6eid":5,"2\u8868\u793a\u964d\u7ea7":5,"30000m":5,"3000g":5,"3000m":5,"32000m":5,"32\u8fd9\u51e0\u6863":5,"3e45ac48":5,"3eljvj":5,"4000m":5,"428c":5,"443\u7aef\u53e3":5,"48000m":5,"4b66":5,"4bdd":5,"500g":5,"5\u53ca\u4ee5\u4e0a\u7248\u672c":5,"5\u7b49\u955c\u50cf\u4f1a\u6807\u8bb0\u4e3a":5,"5min":6,"6000m":5,"600m":5,"63\u4f4d":5,"64000m":5,"65535\u4e14\u4e0d\u80fd\u4f7f\u752880":5,"67e59430d67c":5,"6c9298a3":5,"8000m":5,"96000m":5,"9a891891":5,"9d7f":5,"\u4e00\u5929\u5185\u5907\u4efd\u65f6\u95f4\u95f4\u9694":5,"\u4e00\u81f4\u6027\u54c8\u5e0c":5,"\u4e07\u5146":5,"\u4e0a\u6d77\u4e00":5,"\u4e0a\u6d77\u4e8c":5,"\u4e0b\u4e00\u8df3":5,"\u4e0b\u4e00\u8df3\u4e3a\u4e91\u4e3b\u673aid\u6216\u8005vip\u7684id":5,"\u4e0b\u4e00\u8df3\u7c7b\u578b":5,"\u4e0b\u4e00\u8df3\u7c7b\u578b\u4e3ainstance\u6216\u8005vip":5,"\u4e0d\u4f1a\u5f71\u54cd\u521b\u5efa\u4e3b\u673a\u6d41\u7a0b":5,"\u4e0d\u4f20\u83b7\u53d6\u9879\u76ee\u4e0b\u5168\u90e8\u5b9e\u4f8b":5,"\u4e0d\u4f20\u9ed8\u8ba4ipv4":5,"\u4e0d\u4fdd\u7559\u6570\u636e\u76d8\u91cd\u88c5":5,"\u4e0d\u5141\u8bb8\u591a\u70b9\u6302\u8f7d":5,"\u4e0d\u52a0\u5bc6":5,"\u4e0d\u533a\u5206\u5927\u5c0f\u5199":5,"\u4e0d\u53ef\u4fee\u6539":5,"\u4e0d\u53ef\u7528":5,"\u4e0d\u5728\u9694\u79bb\u7ec4\u5219\u8fd4\u56de":5,"\u4e0d\u586b\u4e3a\u9ed8\u8ba4":5,"\u4e0d\u586b\u5199\u4e3a\u9ed8\u8ba4\u9879\u76ee":5,"\u4e0d\u586b\u5219\u6309\u73b0\u5728\u5355\u70b9\u8ba1\u8d39\u6267\u884c":5,"\u4e0d\u586b\u9ed8\u8ba4\u4e3a\u7a7a":5,"\u4e0d\u586b\u9ed8\u8ba4\u4e3a\u7a7a\u5b57\u7b26\u4e32":5,"\u4e0d\u586b\u9ed8\u8ba4ye":5,"\u4e0d\u5b89\u88c5":5,"\u4e0d\u5efa\u8bae\u8c03\u7528":5,"\u4e0d\u5f00\u542f":5,"\u4e0d\u62a5\u7559":5,"\u4e0d\u6307\u5b9a\u5219\u83b7\u53d6vpcid\u4e0b\u7684\u6240\u6709vip":5,"\u4e0d\u652f\u6301":5,"\u4e0d\u662f":5,"\u4e0d\u81ea\u52a8\u7eed\u8d39":5,"\u4e0d\u8de8\u5730\u57df\u4e0d\u7528\u586b":5,"\u4e0d\u9002\u7528\u4e8e\u7cfb\u7edf\u76d8":5,"\u4e0d\u9700\u8981\u586b\u5199":5,"\u4e0d\u9700\u8981\u914d\u7f6einstancemod":5,"\u4e0e\u8d44\u6e90\u81ea\u8eabid\u65e0\u5173":5,"\u4e0ekey\u914d\u5408\u4f7f\u7528":5,"\u4e0evalue\u914d\u5408\u4f7f\u7528":5,"\u4e13\u533a\u7684id":5,"\u4e13\u533aid":5,"\u4e13\u533aid\u4fe1\u606f":5,"\u4e13\u7ebf":5,"\u4e13\u7ebf\u4ef7\u683c":5,"\u4e13\u7ebf\u53ef\u7528\u533a1":5,"\u4e13\u7ebf\u53ef\u7528\u533a2":5,"\u4e13\u7ebf\u5e26\u5bbd\u8d44\u6e90":5,"\u4e14\u4e0d\u53ef\u76f8\u540c":5,"\u4e14\u544a\u8b66\u6a21\u677fid\u6b63\u786e":5,"\u4e14\u5c0f\u4e8e\u7b49\u4e8e32":5,"\u4e1a\u52a1":5,"\u4e1a\u52a1\u7ec4":5,"\u4e1a\u52a1\u7ec4\u540d\u79f0":5,"\u4e1a\u52a1\u7ec4id":5,"\u4e1c\u4eac":5,"\u4e24\u5957\u53c2\u6570\u53ef\u4ee5\u914d\u7f6e\u5347\u964d\u673a":5,"\u4e2a":5,"\u4e2d":5,"\u4e3a":5,"\u4e3a\u6307\u5b9a\u5e93":5,"\u4e3a\u661f\u671f\u5929\u7684\u5907\u4efd\u5f00\u5173":5,"\u4e3a\u7a7a\u5219\u4e0d\u505a\u4fee\u6539":5,"\u4e3a\u7a7a\u62c9\u53d6\u6240\u6709":5,"\u4e3a\u975e\u5171\u4eab\u5e26\u5bbd\u6a21\u5f0f\u4e0b":5,"\u4e3amongodb\u65f6":5,"\u4e3aulb\u7cfb\u7edf\u4e2d\u4f7f\u7528":5,"\u4e3b\u4ece\u7ed3\u5bf9\u6570\u91cf":5,"\u4e3b\u5e93\u7684id":5,"\u4e3b\u673a\u4ee3\u91d1\u5238id":5,"\u4e3b\u673a\u767b\u9646\u6a21\u5f0f":5,"\u4e3b\u673a\u7684\u751f\u547d\u5468\u671f\u7c7b\u578b":5,"\u4e3b\u673a\u7684\u7cfb\u7edf\u76d8id":5,"\u4e3b\u673a\u78c1\u76d8\u7c7b\u578b":5,"\u4e3b\u673a\u7cfb\u5217":5,"\u4e3b\u673aid\u7b49\u53c2\u6570\u8fdb\u884c\u8fc7\u6ee4":5,"\u4e3b\u8282\u70b9\u7684id":5,"\u4e3e\u4f8b\u5982\u4e0b":5,"\u4e4b\u524dlog":5,"\u4e4b\u95f4\u7684\u6574\u6570":5,"\u4e5f\u4e0d\u4f1a\u5728\u524d\u7aef\u62a5\u9519":5,"\u4e702\u4e2a\u6708":5,"\u4e91\u4e3b\u673a":5,"\u4e91\u4e3b\u673a\u673a\u578b":5,"\u4e91\u4e3b\u673a\u673a\u578b\u8bf4\u660e":5,"\u4e91\u4e3b\u673a\u673a\u578bv1":5,"\u4e91\u707e\u5907":5,"\u4e91\u707e\u5907\u6307\u660e191":5,"\u4e91\u76d8":5,"\u4e91\u76d8\u4ee3\u91d1\u5238id":5,"\u4e91\u76d8\u652f\u63010":5,"\u4e91\u786c\u76d8":5,"\u4e91\u786c\u76d8\u7c7b\u578b":5,"\u4e9a\u592a":5,"\u4ea7\u54c1\u7c7b\u578b":5,"\u4ec5\u5317\u4eaca\u7684\u4e91\u4e3b\u673a\u4f1a\u8fd4\u56de\u6b64\u5b57\u6bb5":5,"\u4ec5\u5728sqlserver\u7684\u60c5\u51b5\u4e0b\u586b\u8be5\u53c2\u6570":5,"\u4ec5\u5f53\u78c1\u76d8\u662fudisk\u65f6\u8fd4\u56de":5,"\u4ec5\u5f53paymode\u4e3asharebandwidth\u65f6\u6709\u6548":5,"\u4ec5\u652f\u6301\u90e8\u5206\u53ef\u7528\u533a":5,"\u4ec5\u884c\u4e1a\u955c\u50cf\u5c06\u8fd4\u56de\u8fd9\u4e2a\u503c":5,"\u4ec5\u90e8\u5206\u53ef\u7528\u533a\u652f\u6301\u4e91\u786c\u76d8\u65b9\u5f0f\u7684\u4e3b\u673a\u5b58\u50a8\u65b9\u5f0f":5,"\u4ec5\u9650\u81ea\u5b9a\u4e49\u8def\u7531\u8868":5,"\u4ec5gpu\u673a\u578b\u652f\u6301\u6b64\u5b57\u6bb5":5,"\u4ecb\u7ecd\u94fe\u63a5":5,"\u4ecd\u5728\u521d\u59cb\u5316\u7684\u7cfb\u7edf\u76d8\u65e0\u6cd5\u5236\u4f5c\u955c\u50cf":5,"\u4ece\u5907\u4efd\u521b\u5efa\u4e3a\u5fc5\u4f20\u9879":5,"\u4ece\u5907\u4efd\u6062\u590d\u6570\u636e\u81f3udisk":5,"\u4ece\u5df2\u6709\u914d\u7f6e\u6587\u4ef6\u521b\u5efa\u65b0\u914d\u7f6e\u6587\u4ef6":5,"\u4ece\u5e93":5,"\u4ece\u5e93\u5b9e\u4f8b":5,"\u4ece\u5e93\u63d0\u5347\u4e3a\u72ec\u7acb\u5e93":5,"\u4ece\u5e93\u7684\u5907\u4efd\u5f00\u5173":5,"\u4ece\u5e93\u7684id":5,"\u4ece\u5feb\u7167\u521b\u5efaudisk\u514b\u9686":5,"\u4ece\u6307\u5b9a\u7684\u5feb\u7167\u6062\u590d":5,"\u4ece\u6307\u5b9auhost\u5b9e\u4f8b":5,"\u4eceudisk\u521b\u5efaudisk\u514b\u9686":5,"\u4ecevserver\u89e3\u7ed1ssl\u8bc1\u4e66":5,"\u4ecevserver\u91ca\u653e\u540e\u7aef\u8d44\u6e90\u5b9e\u4f8b":5,"\u4ed8\u8d39\u65b9\u5f0f":5,"\u4ee3\u8868\u4e86\u8d2d\u4e70\u81f3\u6708\u672b":5,"\u4ee3\u8868\u4f18\u5148\u9009\u62e9\u57fa\u7840\u7f51\u7edc":5,"\u4ee3\u8868\u610f\u4e49\u4e3a":5,"\u4ee3\u8868\u8d2d\u4e70\u81f3\u6708\u672b":5,"\u4ee3\u8868\u9009\u62e9\u5b50\u7f51":5,"\u4ee3\u8868http\u68c0\u67e5\u57df\u540d":5,"\u4ee3\u8868http\u68c0\u67e5\u8def\u5f84":5,"\u4ee3\u91d1\u5238":5,"\u4ee3\u91d1\u5238id":5,"\u4ee3\u91d1\u52b5":5,"\u4ee5":5,"\u4ee5\u5730\u533aairport":5,"\u4ee5\u5b57\u8282\u4e3a\u5355\u4f4d":5,"\u4ee5\u6b64\u7c7b\u63a8":5,"\u4ee5\u7a7a\u683c\u952e\u5206\u5272":5,"\u4ee5unix":5,"\u4ef2\u88c1\u8282\u70b9\u6309\u6700\u5c0f\u673a\u578b\u521b\u5efa":5,"\u4ef7\u683c":5,"\u4f18\u5148\u7ea7":5,"\u4f18\u5148\u7ea7\u4f7f\u75280":5,"\u4f1a\u5458\u7c7b\u578b":5,"\u4f20\u5b9e\u4f8bid\u83b7\u53d6\u5355\u4e2a\u5b9e\u4f8b\u4fe1\u606f":5,"\u4f4e":5,"\u4f5c":5,"\u4f7f\u7528\u4ee3\u91d1\u5238\u53ef\u51b2\u62b5\u90e8\u5206\u8d39\u7528":5,"\u4f7f\u7528\u7684\u4ee3\u91d1\u5238id":5,"\u4f7f\u7528\u7684\u5907\u4efd\u65b9\u5f0f":5,"\u4f7f\u7528\u91cf\u5355\u4f4dmb":5,"\u4f7f\u7528describeudbparamgroup\u83b7\u5f97":5,"\u4f8b\u5982":5,"\u4f8b\u5982192":5,"\u4f8b\u5982uhostid":5,"\u4f9b\u5e94\u5546":5,"\u4fdd\u7559":5,"\u4fdd\u7559\u5c0f\u6570\u70b9\u540e\u4e24\u4f4d":5,"\u4fdd\u7559\u5c0f\u6570\u70b9\u540e\u4e24\u4f4d\u6709\u6548\u6570\u5b57":5,"\u4fee\u6539":5,"\u4fee\u6539\u4e3b\u5907redis\u540d\u79f0":5,"\u4fee\u6539\u5e26\u5bbd\u503c":5,"\u4fee\u6539\u5f39\u6027ip\u7684\u5916\u7f51\u51fa\u53e3\u6743\u91cd":5,"\u4fee\u6539\u6302\u8f7d\u7684\u78c1\u76d8\u5927\u5c0f":5,"\u4fee\u6539\u6307\u5b9auhost\u5b9e\u4f8b\u4e1a\u52a1\u7ec4\u6807\u8bc6":5,"\u4fee\u6539\u6307\u5b9auhost\u5b9e\u4f8b\u540d\u79f0":5,"\u4fee\u6539\u6307\u5b9auhost\u5b9e\u4f8b\u5907\u6ce8\u4fe1\u606f":5,"\u4fee\u6539\u6307\u5b9auhost\u5b9e\u4f8b\u7684\u8d44\u6e90\u914d\u7f6e":5,"\u4fee\u6539\u65f6\u95f4":5,"\u4fee\u6539\u9879\u76ee":5,"\u4fee\u6539db\u5b9e\u4f8b\u7684\u7ba1\u7406\u5458\u5bc6\u7801":5,"\u4fee\u6539globalssh\u5907\u6ce8":5,"\u4fee\u6539globalssh\u7aef\u53e3":5,"\u4fee\u6539udb\u81ea\u52a8\u5907\u4efd\u7b56\u7565":5,"\u4fee\u6539umem\u5185\u5b58\u7a7a\u95f4\u540d\u79f0":5,"\u503c":5,"\u504f\u79fb\u91cf":5,"\u5065\u5eb7\u68c0\u67e5\u5f02\u5e38":5,"\u5065\u5eb7\u68c0\u67e5\u7684\u7c7b\u578b":5,"\u5065\u5eb7\u68c0\u67e5\u7c7b\u578b":5,"\u5141\u8bb8\u4e00\u4e2a\u6216\u8005\u4e09\u4e2a":5,"\u5141\u8bb8\u503c\u7684\u683c\u5f0f\u7c7b\u578b":5,"\u5141\u8bb8\u591a\u70b9\u6302\u8f7d":5,"\u5141\u8bb8\u7684\u503c":5,"\u5143":5,"\u514b\u9686\u4e2d":5,"\u514b\u9686\u7236disk\u7684id":5,"\u514b\u9686\u7236snapshot\u7684id":5,"\u514d\u8d39\u5e26\u5bbd\u6a21\u5f0f":5,"\u516c\u53f8\u540d\u79f0":5,"\u516c\u53f8\u5730\u5740":5,"\u516d\u7684\u5907\u4efd\u914d\u7f6e\u5f00\u5173":5,"\u516d\u79cd":5,"\u516d\u79cd\u5bb9\u91cf\u89c4\u683c":5,"\u51717\u4f4d":5,"\u5171\u4eab\u5e26\u5bbd":5,"\u5171\u4eab\u5e26\u5bbd\u4fdd\u5e95\u503c":5,"\u5171\u4eab\u5e26\u5bbd\u503c":5,"\u5171\u4eab\u5e26\u5bbd\u540d\u5b57":5,"\u5171\u4eab\u5e26\u5bbd\u540d\u79f0":5,"\u5171\u4eab\u5e26\u5bbd\u540e\u4ed8\u8d39\u5f00\u59cb\u8ba1\u8d39\u65f6\u95f4":5,"\u5171\u4eab\u5e26\u5bbd\u5cf0\u503c":5,"\u5171\u4eab\u5e26\u5bbd\u5e26\u5bbd\u503c":5,"\u5171\u4eab\u5e26\u5bbd\u6a21\u5f0f":5,"\u5171\u4eab\u5e26\u5bbd\u6a21\u5f0f\u5fc5\u987b\u6307\u5b9a0m\u5e26\u5bbd":5,"\u5171\u4eab\u5e26\u5bbd\u7684\u8d44\u6e90\u540d\u79f0":5,"\u5171\u4eab\u5e26\u5bbd\u7684\u8d44\u6e90id":5,"\u5171\u4eab\u5e26\u5bbd\u7684id":5,"\u5171\u4eab\u5e26\u5bbd\u7c7b\u578b":5,"\u5171\u4eab\u5e26\u5bbd\u8d44\u6e90id":5,"\u5171\u4eab\u5e26\u5bbdid":5,"\u5173\u673a":5,"\u5173\u673a\u4e2d":5,"\u5173\u95ed":5,"\u5173\u95ed\u4e2d":5,"\u5173\u95ed\u4f1a\u8bdd\u4fdd\u6301":5,"\u5173\u95ed\u5171\u4eab\u5e26\u5bbd":5,"\u5173\u95ed\u5171\u4eab\u5e26\u5bbd\u540e":5,"\u5173\u95edudb\u5b9e\u4f8b":5,"\u5176\u4e2dcongfigsrv\u5206\u4e3asccc\u548ccsrs\u4e24\u79cd\u6a21\u5f0f":5,"\u5176\u4ed6\u4e0d\u5220\u9664":5,"\u5176\u4ed6\u503c":5,"\u5176\u4ed6\u503c\u6216\u4e0d\u586b":5,"\u5176\u4ed6\u573a\u666f\u9700\u8981\u4e8b\u5148\u5173\u95ed\u5b9e\u4f8b":5,"\u5176\u4ed6\u5f39\u6027ip\u4e0d\u4f1a\u88ab\u4f7f\u7528":5,"\u5176\u4ed6\u6216\u8005\u4e0d\u586b":5,"\u5176\u4ed6\u6d77\u5916\u7ebf\u8def\u5747\u4e3a":5,"\u5176\u4f59\u4ece\u53f3\u5230\u5de6\u4f9d\u6b21\u4e3a\u661f\u671f\u4e00\u5230\u661f\u671f":5,"\u5176\u4f59\u4ece\u53f3\u5230\u5de6\u4f9d\u6b21\u4e3a\u661f\u671f\u4e00\u5230\u661f\u671f\u516d\u7684\u5907\u4efd\u914d\u7f6e\u5f00\u5173":5,"\u5176\u4f59\u60c5\u51b5":5,"\u5176\u53d6\u503c\u5982\u4e0b":5,"\u5177\u4f53\u673a\u578b\u4e0ecpu\u7684\u5bf9\u5e94\u5173\u7cfb\u53c2\u7167\u63a7\u5236\u53f0":5,"\u5177\u4f53\u8bf7\u67e5\u8be2\u63a7\u5236\u53f0":5,"\u5185\u5b58\u5927\u5c0f":5,"\u5185\u5b58\u5b58\u50a8":5,"\u5185\u5b58\u5bb9\u91cf\u5927\u5c0f":5,"\u5185\u5b58\u7a7a\u95f4\u540d\u79f0":5,"\u5185\u5b58\u7a7a\u95f4id":5,"\u5185\u5b58\u9650\u5236":5,"\u5185\u5bb9\u7c7b\u578b":5,"\u5185\u5bb9\u8f6c\u53d1\u4f18\u5148\u7ea7":5,"\u5185\u5bb9\u8f6c\u53d1\u5339\u914d\u5b57\u6bb5":5,"\u5185\u5bb9\u8f6c\u53d1\u5339\u914d\u5b57\u6bb5\u7684\u7c7b\u578b":5,"\u5185\u5bb9\u8f6c\u53d1\u7b56\u7565\u5e94\u7528\u7684\u540e\u7aef\u8d44\u6e90\u5b9e\u4f8b\u7684id":5,"\u5185\u5bb9\u8f6c\u53d1\u7b56\u7565\u7ec4id":5,"\u5185\u5bb9\u8f6c\u53d1\u7b56\u7565id":5,"\u5185\u5bb9\u8f6c\u53d1id":5,"\u5185\u7f51":5,"\u5185\u7f51ip":5,"\u5185\u7f51ip\u4e0d\u663e\u793a\u5e26\u5bbd\u4fe1\u606f":5,"\u5185\u7f51ip\u65e0\u5bf9\u5e94\u7684\u8d44\u6e90id":5,"\u5185\u7f51ip\u65e0\u8d44\u6e90id":5,"\u5185\u7f51ulb":5,"\u5185\u7f51vip":5,"\u5185\u7f51vip\u5730\u5740\u5217\u8868":5,"\u5185\u7f51vip\u7684id":5,"\u5185\u90e8\u53c2\u6570":5,"\u5185\u90e8\u5b57\u6bb5":5,"\u5185\u90e8\u6d4b\u8bd5":5,"\u5185\u90e8\u8bb0\u8f7d":5,"\u5206":5,"\u5206\u5272\u5b57\u6bb5":5,"\u5206\u7247\u96c6\u7fa4":5,"\u5206\u914d\u4e00\u6761":5,"\u5206\u914d\u4e2d":5,"\u5206\u9694":5,"\u5206\u9875\u663e\u793a\u6570\u91cf":5,"\u5206\u9875\u663e\u793a\u7684\u6761\u76ee\u6570":5,"\u5206\u9875\u663e\u793a\u7684\u8d77\u59cb\u504f\u79fb":5,"\u5206\u9875\u663e\u793a\u8d77\u59cb\u504f\u79fb\u4f4d\u7f6e":5,"\u5207\u6362\u540e\u9ad8\u53ef\u7528db\u5b9e\u4f8b\u7684id":5,"\u5207\u6362\u65f6\u4f1a\u6d89\u53ca\u4ed8\u8d39":5,"\u5217\u8868\u64cd\u4f5c\u5219\u6307\u5b9a":5,"\u5217\u8868\u64cd\u4f5c\u65f6\u624d\u4f1a\u6709\u8be5\u53c2\u6570":5,"\u5217\u8868\u8d77\u59cb\u4f4d\u7f6e\u504f\u79fb\u91cf":5,"\u5217\u8868\u957f\u5ea6":5,"\u5217\u8868udb\u5b9e\u4f8b\u5907\u4efd\u4fe1\u606f":5,"\u5217\u8868udb\u5b9e\u4f8bbinlog\u6216slowlog\u6216errorlog\u5907\u4efd\u4fe1\u606f":5,"\u5219\u4e00\u6b21\u6027\u83b7\u53d6\u4e09\u79cd\u8ba1\u8d39":5,"\u5219\u4e3adataark":5,"\u5219\u53ea\u6709master":5,"\u5219\u53ea\u83b7\u53d6\u8be5db\u7684\u5907\u4efd\u4fe1\u606f":5,"\u5219\u53ef\u9009\u662f\u5426\u9009\u53d6\u7279\u5b9adb\u7c7b\u578b\u7684\u914d\u7f6e":5,"\u5219\u5fc5\u586b":5,"\u5219\u5fc5\u9009":5,"\u5219\u5fc5\u987b\u586b\u5199":5,"\u5219\u5fc5\u987b\u8d4b\u503c":5,"\u5219\u65e0\u6cd5\u4fdd\u7559\u6570\u636e\u76d8":5,"\u5219\u662f\u8be5db\u5907\u4efd\u603b\u6570":5,"\u5219\u67e5\u8be2\u8be5\u7528\u6237\u5728\u673a\u623f\u6240\u6709\u7684\u4e13\u7ebf\u4fe1\u606f":5,"\u5219\u6b64\u5b57\u6bb5\u4f20\u5165\u7528\u6237\u81ea\u5b9a\u4e49\u4f1a\u8bdd\u4fdd\u6301string":5,"\u5219\u7ed1\u5b9a\u544a\u8b66\u6a21\u677f":5,"\u5219\u83b7\u53d6\u6240\u6709":5,"\u5219\u8868\u660e\u4ece\u5907\u4efd\u6062\u590d\u5b9e\u4f8b":5,"\u5219\u8868\u793a\u4efb\u4f55\u5b9e\u4f8b\u7c7b\u578b\u5747\u53ef":5,"\u5219\u8868\u793a\u4efb\u4f55\u78c1\u76d8\u7c7b\u578b\u5747\u53ef":5,"\u5219\u8fd4\u56de\u5f53\u524d":5,"\u5219\u8fd4\u56de\u5f53\u524dregion":5,"\u5219\u8fd4\u56de\u5f53\u524dregion\u6240\u6709phost":5,"\u5219\u8fdb\u5165\u56de\u6536\u7ad9":5,"\u5219\u968f\u673a\u5206\u914d\u5f53\u524d\u5b50\u7f51\u4e0b\u7684ip":5,"\u5219\u9700\u8981\u6307\u5b9a":5,"\u521b\u5efa\u4e2d":5,"\u521b\u5efa\u4e3b\u5907redi":5,"\u521b\u5efa\u4e3b\u673a\u7684\u6700\u521d\u6765\u6e90\u955c\u50cf\u7684\u64cd\u4f5c\u7cfb\u7edf\u540d\u79f0":5,"\u521b\u5efa\u4e91\u4e3b\u673a\u65f6\u6307\u5b9a\u5185\u7f51ip":5,"\u521b\u5efa\u4e91\u4e3b\u673a\u65f6\u6307\u5b9amac":5,"\u521b\u5efa\u4ece\u8282\u70b9\u7684dbid":5,"\u521b\u5efa\u5185\u5b58\u7a7a\u95f4id\u5217\u8868":5,"\u521b\u5efa\u5185\u7f51ulb\u65f6\u6307\u5b9a\u5185\u7f51ip":5,"\u521b\u5efa\u5355\u673amemcach":5,"\u521b\u5efa\u53ea\u8bfbslave\u65f6":5,"\u521b\u5efa\u5916\u7f51ulb\u8be5\u5b57\u6bb5\u4f1a\u5ffd\u7565":5,"\u521b\u5efa\u5931\u8d25":5,"\u521b\u5efa\u5b50\u7f51":5,"\u521b\u5efa\u65f6\u95f4":5,"\u521b\u5efa\u65f6\u95f4\u6233":5,"\u521b\u5efa\u7684\u7ec4id":5,"\u521b\u5efa\u7684ulb\u662f\u5426\u4e3a\u5185\u7f51\u6a21\u5f0f":5,"\u521b\u5efa\u7684ulb\u662f\u5426\u4e3a\u5916\u7f51\u6a21\u5f0f":5,"\u521b\u5efa\u8d1f\u8f7d\u5747\u8861\u5b9e\u4f8b":5,"\u521b\u5efa\u8def\u7531\u8868":5,"\u521b\u5efa\u9632\u706b\u5899":5,"\u521b\u5efa\u9879\u76ee":5,"\u521b\u5efadb":5,"\u521b\u5efaglobalssh\u5b9e\u4f8b":5,"\u521b\u5efamongodb\u7684\u526f\u672c\u8282\u70b9":5,"\u521b\u5efamongos\u5b9e\u4f8b":5,"\u521b\u5efaslave\u7684dbid":5,"\u521b\u5efasnapshot\u5feb\u7167":5,"\u521b\u5efassl\u8bc1\u4e66":5,"\u521b\u5efaudb\u5b9e\u4f8b":5,"\u521b\u5efaudb\u5b9e\u4f8b\u7684slav":5,"\u521b\u5efaudisk":5,"\u521b\u5efaudisk\u78c1\u76d8":5,"\u521b\u5efauhost\u5b9e\u4f8b":5,"\u521b\u5efaumem\u5185\u5b58\u7a7a\u95f4":5,"\u521b\u5efavpc":5,"\u521b\u5efavserver\u5185\u5bb9\u8f6c\u53d1\u7b56\u7565":5,"\u521b\u5efavserver\u5b9e\u4f8b":5,"\u521d\u59cb\u5316":5,"\u521d\u59cb\u5316\u4e2d":5,"\u521d\u59cb\u5316\u5bc6\u7801":5,"\u5220":5,"\u5220\u9664":5,"\u5220\u9664\u4e2d":5,"\u5220\u9664\u4e3b\u5907redi":5,"\u5220\u9664\u5185\u5bb9\u8f6c\u53d1\u7b56\u7565":5,"\u5220\u9664\u5355\u673amemcach":5,"\u5220\u9664\u5931\u8d25":5,"\u5220\u9664\u5b50\u7f51":5,"\u5220\u9664\u5f39\u6027ip\u4e0a\u5df2\u9644\u52a0\u5e26\u5bbd\u5305":5,"\u5220\u9664\u6307\u5b9a\u6570\u636e\u4e2d\u5fc3\u7684uhost\u5b9e\u4f8b":5,"\u5220\u9664\u65f6\u95f4\u70b9":5,"\u5220\u9664\u7269\u7406\u4e91\u4e3b\u673a":5,"\u5220\u9664\u7528\u6237\u81ea\u5b9a\u4e49\u955c\u50cf":5,"\u5220\u9664\u81ea\u5b9a\u4e49\u8def\u7531\u8868":5,"\u5220\u9664\u8be5\u76d8\u6240\u521b\u5efa\u51fa\u6765\u7684\u6240\u6709\u5feb\u7167":5,"\u5220\u9664\u8d1f\u8f7d\u5747\u8861\u5b9e\u4f8b":5,"\u5220\u9664\u914d\u7f6e\u53c2\u6570\u7ec4":5,"\u5220\u9664\u9632\u706b\u5899":5,"\u5220\u9664\u9879\u76ee":5,"\u5220\u9664globalssh\u5b9e\u4f8b":5,"\u5220\u9664snapshot":5,"\u5220\u9664ssl\u8bc1\u4e66":5,"\u5220\u9664udb\u5b9e\u4f8b":5,"\u5220\u9664udb\u5b9e\u4f8b\u5907\u4efd":5,"\u5220\u9664udb\u65e5\u5fd7\u5305":5,"\u5220\u9664udisk":5,"\u5220\u9664ulb\u65f6\u662f\u5426\u91ca\u653e\u7ed1\u5b9a\u7684eip":5,"\u5220\u9664umem\u5185\u5b58\u7a7a\u95f4":5,"\u5220\u9664vpc":5,"\u5220\u9664vpc\u4e92\u901a\u5173\u7cfb":5,"\u5220\u9664vserver\u5b9e\u4f8b":5,"\u522b\u4e3apvft_unkown":5,"\u522b\u540d":5,"\u5230\u671f\u65f6\u95f4":5,"\u5236\u4f5c\u4e2d":5,"\u524d\u65f6\u95f4\u70b9\u524d\u4e00\u5929":5,"\u524d\u7aef\u6682\u65f6\u53ea\u5f00\u653e\u5185\u5b58\u5b9a\u5236":5,"\u526f\u672c\u96c6\u6570\u91cf":5,"\u529f\u80fd\u4ec5\u90e8\u5206\u53ef\u7528\u533a\u5f00\u653e":5,"\u52a0\u5bc6":5,"\u52a0\u5bc6\u76d8":5,"\u52a0\u5bc6\u76d8\u5bc6\u7801":5,"\u52a0\u5bc6\u76d8\u7684\u5bc6\u7801":5,"\u52a0\u5bc6\u76d8\u9700\u8981\u6743\u9650\u4f4d":5,"\u52a0\u5bc6\u8bc1\u4e66\u7684\u79c1\u94a5":5,"\u52a0\u5bc6\u9700\u8981\u7684cmk":5,"\u52a0\u6743\u8f6e\u8be2":5,"\u52a0\u901f\u57df\u540d":5,"\u52a8\u4f5c\u6807\u5fd7\u4e3aadd":5,"\u5305\u542b\u7cfb\u7edf\u76d8\u548c\u6570\u636e\u76d8":5,"\u5305\u62ec":5,"\u5305\u62ec2":5,"\u5305\u62ec\u4ef2\u88c1":5,"\u5305\u62ec\u5185\u5b58\u548c\u78c1\u76d8\u7684\u914d\u7f6e":5,"\u5305\u62ec\u521b\u5efamysql":5,"\u5305\u62ec\u6240\u6709gpu\u673a\u578b":5,"\u5305\u62ec\u6bcf\u4e2a\u5355\u53ef\u7528\u533a\u548c\u8de8\u53ef\u7528\u533a":5,"\u5305\u62ec\u7528\u6237\u8bc1\u4e66":5,"\u5305\u62ec\u8def\u7531\u7b56\u7565":5,"\u5305\u62ec\u8f6c\u53d1\u89c4\u5219\u540e\u7684\u670d\u52a1\u8282\u70b9":5,"\u5317\u4eac\u4e00\u5730\u57df\u65e0\u6548":5,"\u5317\u4eac\u4e00\u5f53\u524d\u5b57\u6bb5\u4e3a\u7a7a":5,"\u5317\u4eac\u4e8c":5,"\u533a\u57df\u822a\u7a7a\u6e2f\u56fd\u9645\u901a\u7528\u4ee3\u7801":5,"\u5343\u5146":5,"\u5347\u7ea7\u4e2d":5,"\u5347\u7ea7\u540e\u7684\u4ef7\u683c":5,"\u5347\u7ea7\u548c\u964d\u7ea7":5,"\u5347\u7ea7\u76ee\u6807udisk":5,"\u5347\u964d\u7ea7\u540e\u662f\u5426\u542f\u52a8db":5,"\u534e\u76db\u987f":5,"\u534f\u8bae":5,"\u534f\u8bae\u7c7b\u578b":5,"\u5355\u4f4d":5,"\u5355\u4f4d\u4e3a":5,"\u5355\u4f4d\u4e3a\u5206":5,"\u5355\u4f4d\u4e3amb":5,"\u5355\u4f4d\u4e3ambp":5,"\u5355\u4f4d\u5206":5,"\u5355\u4f4d\u5c0f\u65f6":5,"\u5355\u4f4d\u5c0f\u65f6\u8ba1":5,"\u5355\u4f4dgb":5,"\u5355\u4f4dmb":5,"\u5355\u4f4dmbp":5,"\u5355\u70b9":5,"\u5355\u76d8\u5927\u5c0f":5,"\u5355\u9875\u8fd4\u56de\u6570\u636e\u957f\u5ea6":5,"\u5373\u5c06\u5e9f\u5f03":5,"\u5373\u8be5\u5e26\u5bbd\u5305\u5728enabletime\u5230":5,"\u5373\u8fd4\u56delocaldisk":5,"\u5378\u8f7d\u4e2d":5,"\u5378\u8f7d\u67d0\u4e2a\u5df2\u7ecf\u6302\u8f7d\u5728\u6307\u5b9auhost\u5b9e\u4f8b\u4e0a\u7684udisk":5,"\u5378\u8f7d\u7684udisk\u5b9e\u4f8bid":5,"\u5378\u8f7d\u7684uhost\u5b9e\u4f8bid":5,"\u539fdb\u72b6\u6001\u4e3awaitforswitch\u65f6":5,"\u53c2\u6570":5,"\u53c2\u6570\u4e3aother":5,"\u53c2\u6570\u503c":5,"\u53c2\u6570\u503c\u5e94\u7528\u7c7b\u578b":5,"\u53c2\u6570\u540d\u79f0":5,"\u53c2\u6570\u7ec4\u540d\u79f0":5,"\u53c2\u6570\u7ec4\u603b\u6570":5,"\u53c2\u6570\u7ec4\u63cf\u8ff0":5,"\u53c2\u6570\u7ec4\u662f\u5426\u53ef\u4fee\u6539":5,"\u53c2\u6570\u7ec4\u7684\u540d\u5b57":5,"\u53c2\u6570\u7ec4\u7684\u63cf\u8ff0":5,"\u53c2\u6570\u7ec4id":5,"\u53c2\u8003":5,"\u53c2\u8003\u955c\u50cf\u5217\u8868":5,"\u53c2\u89c1":5,"\u53c2\u89c1describephostmachinetype\u8fd4\u56de\u503c":5,"\u53c2\u89c1describesubnet":5,"\u53ca\u65b0\u7684\u5b9e\u4f8b\u540d\u79f0":5,"\u53cc\u7ebf":5,"\u53cc\u7ebfip":5,"\u53d6\u503c\u4e3a0\u62161":5,"\u53d6\u503c\u4e3a0\u65f6":5,"\u53d6\u503c\u4e3a100\u65f6":5,"\u53d6\u503c\u4e3a1024\u7684\u500d\u6570":5,"\u53d6\u503c\u8303\u56f4":5,"\u53d6\u503c\u8303\u56f43306\u81f365535":5,"\u53d6\u503c\u8303\u56f4\u4e3a":5,"\u53d6\u503c\u8303\u56f4\u4e3a\u5927\u4e8e0\u7684\u6574\u6570":5,"\u53d6\u503c\u8303\u56f4\u4e3a\u5927\u4e8e\u7b49\u4e8e2\u4e14\u5c0f\u4e8e\u7b49\u4e8e1000":5,"\u53d6\u503c\u8303\u56f4\u662f":5,"\u53d6\u503c\u8303\u56f4\u9700\u5927\u4e8e\u5f53\u524d\u78c1\u76d8\u5927\u5c0f":5,"\u53d6uredis\u4ef7\u683c\u4fe1\u606f":5,"\u53ea\u5728\u62a5\u6587\u8f6c\u53d1\u4e2d\u4f7f\u7528":5,"\u53ea\u652f\u6301\u666e\u901a\u7248db\u4e0d\u652f\u6301\u9ad8\u53ef\u7528":5,"\u53ea\u6709\u903b\u8f91\u5907\u4efd\u4e0b\u5907\u4efd\u9ed1\u540d\u5355\u624d\u751f\u6548":5,"\u53ea\u80fd\u5305\u542b\u82f1\u6587":5,"\u53ea\u8981\u6709\u4e00\u5757\u78c1\u76d8\u4e3a\u672c\u5730\u76d8":5,"\u53ea\u9488\u5bf9mysql5":5,"\u53ef\u4ee5\u628a\u6574\u4e2a":5,"\u53ef\u4ee5\u83b7\u53d6\u591a\u4e2a\u7c7b\u578b\u7684\u65e5\u5fd7\u8bb0\u5f55":5,"\u53ef\u4ee5\u9009\u62e9\u5185\u7f51\u6216\u8005\u5916\u7f51":5,"\u53ef\u7528":5,"\u53ef\u7528\u4e8e":5,"\u53ef\u7528\u533a":5,"\u53ef\u7528\u533a\u5217\u8868":5,"\u53ef\u7528\u533a\u540d\u5b57":5,"\u53ef\u7528\u533a\u540d\u79f0":5,"\u53ef\u7528\u533a\u57df":5,"\u53ef\u7f6e\u4e3atrue":5,"\u53ef\u81ea\u5b9a\u4e49dn":5,"\u53ef\u9009":5,"\u53ef\u9009\u503c\u4e3a":5,"\u53ef\u9009\u503c\u4e3aconfigsrv":5,"\u53ef\u9009\u503c\u5982\u4e0b":5,"\u53ef\u9009\u5343\u5146":5,"\u53ef\u9009\u53c2\u6570":5,"\u53ef\u9009\u8303\u56f4\u4e0euhosttype\u76f8\u5173":5,"\u53ef\u9009\u8303\u56f4\u53c2\u7167\u597d\u63a7\u5236\u53f0":5,"\u53ef\u9009\u8303\u56f4\u53c2\u7167\u63a7\u5236\u53f0":5,"\u53ef\u9009\u8303\u56f4\u53c2\u8003\u63a7\u5236\u53f0":5,"\u53ef\u9009\u914d\u7f6e\u8303\u56f4\u8bf7\u53c2\u8003":5,"\u53ef\u9009raid":5,"\u53ef\u9009raw":5,"\u53ef\u901a\u8fc7":5,"\u53ef\u901a\u8fc7describeisolationgroup\u83b7\u53d6":5,"\u53ef\u901a\u8fc7describeudbbackup\u83b7\u5f97":5,"\u53ef\u901a\u8fc7describeudbinstancebinlog\u83b7\u5f97":5,"\u53ef\u901a\u8fc7describeudblogpackage\u83b7\u5f97":5,"\u53ef\u901a\u8fc7describeudbparamgroup\u83b7\u53d6":5,"\u5404\u503c":5,"\u5404\u503c\u4ee3\u8868":5,"\u5404\u5730\u57df\u5141\u8bb8\u7684\u7ebf\u8def\u53c2\u6570\u5982\u4e0b":5,"\u5404\u5730\u57df\u5e26\u5bbd\u8303\u56f4\u5982\u4e0b":5,"\u5404\u5730\u57df\u7684\u5e26\u5bbd\u503c\u8303\u56f4\u5982\u4e0b":5,"\u5404\u5730\u57df\u975e\u5171\u4eab\u5e26\u5bbd\u7684\u5e26\u5bbd\u8303\u56f4\u5982\u4e0b":5,"\u5404eip\u6062\u590d\u4e3a\u7684\u5e26\u5bbd\u503c":5,"\u540c\u4e3b\u673a\u4e0b\u53ea\u4f1a\u4f7f\u7528\u8fd9\u4e2a\u5f39\u6027ip":5,"\u540c\u65f6\u4f20snapshotid\u4f18\u5148":5,"\u540c\u65f6\u8bbe\u5b9a\u7cfb\u7edf\u76d8\u548c\u6570\u636e\u76d8":5,"\u540c\u65f6\u8bbe\u5b9a\u7cfb\u7edf\u76d8\u548c\u6570\u636e\u76d8\u7684\u78c1\u76d8\u7c7b\u578b":5,"\u540d\u5b57":5,"\u540d\u79f0":5,"\u540e\u4ed8\u8d39":5,"\u540e\u7aef\u5b9e\u4f8b\u72b6\u6001\u5f00\u5173":5,"\u540e\u7aef\u63d0\u4f9b\u670d\u52a1\u7684\u5185\u7f51ip":5,"\u540e\u7aef\u63d0\u4f9b\u670d\u52a1\u7684\u5b9e\u4f8b\u542f\u7528\u4e0e\u5426":5,"\u540e\u7aef\u63d0\u4f9b\u670d\u52a1\u7684\u5b9e\u4f8b\u8fd0\u884c\u72b6\u6001":5,"\u540e\u7aef\u63d0\u4f9b\u670d\u52a1\u7684\u7aef\u53e3":5,"\u540e\u7aef\u63d0\u4f9b\u670d\u52a1\u7684\u8d44\u6e90\u6240\u5728\u7684\u5b50\u7f51\u7684id":5,"\u540e\u7aef\u8d44\u6e90\u5185\u7f51ip":5,"\u540e\u7aef\u8d44\u6e90\u5b9e\u4f8b\u7684id":5,"\u540e\u7aef\u8d44\u6e90\u670d\u52a1\u7aef\u53e3":5,"\u540e\u7aef\u8d44\u6e90\u7684\u5185\u7f51ip":5,"\u540e\u7aef\u8d44\u6e90\u7684\u5b9e\u4f8b\u540d\u79f0":5,"\u540e\u7aef\u8d44\u6e90\u7684\u5bf9\u8c61id":5,"\u5426":5,"\u5426\u5219":5,"\u5426\u5219\u4e3a\u5217\u8868\u64cd":5,"\u5426\u5219\u4e3a\u5217\u8868\u64cd\u4f5c":5,"\u5426\u5219\u4f7f\u7528\u5355\u70b9\u8ba1\u8d39\u7b56\u7565\u7684\u503c":5,"\u5426\u5219\u662f\u5217\u8868\u64cd\u4f5c":5,"\u542f\u52a8\u4e2d":5,"\u542f\u52a8\u5904\u4e8e\u5173\u95ed\u72b6\u6001\u7684uhost\u5b9e\u4f8b":5,"\u542f\u52a8\u7269\u7406\u673a":5,"\u542f\u52a8udb\u5b9e\u4f8b":5,"\u542f\u7528":5,"\u544a\u8b66\u6a21\u677fid":5,"\u548c_":5,"\u548cdrop":5,"\u56e0\u6b64\u4e0d\u5141\u8bb8\u8f93\u5165\u6bd4\u5f53\u524d\u5b9e\u4f8b\u6570\u636e\u76d8\u5927\u5c0f\u7684\u503c":5,"\u56e0\u6b64\u4e0d\u5141\u8bb8\u8f93\u5165\u6bd4\u5f53\u524d\u5b9e\u4f8b\u7cfb\u7edf\u76d8\u5c0f\u7684\u503c":5,"\u56fd\u9645":5,"\u56fd\u9645\u53f7\u7801\u524d\u7f00":5,"\u56fd\u9645ip":5,"\u5728\u52a0\u6743\u8f6e\u8be2\u7b97\u6cd5\u4e0b\u6709\u6548":5,"\u5730\u533a\u4ee3\u53f7":5,"\u5730\u5740\u7a7a\u95f4\u4e2d\u5b50\u7f51\u6570\u91cf":5,"\u5730\u57df":5,"\u5730\u57df\u540d\u5b57":5,"\u5730\u57df\u548c\u53ef\u7528\u533a\u5217\u8868":5,"\u57ce\u5e02":5,"\u57df\u540d":5,"\u57fa\u4e8evip\u548c\u54e8\u5175\u8282\u70b9\u7684\u67b6\u6784":5,"\u57fa\u7840\u578b":5,"\u57fa\u7840\u7f51\u7edc\u6a21\u5f0f":5,"\u57fa\u7840\u955c\u50cf\u540d\u79f0":5,"\u57fa\u7840\u955c\u50cfid":5,"\u5821\u5792\u673a":5,"\u586b":5,"\u586b\u4ee3\u8868\u5355\u53ef\u7528\u533a":5,"\u586b\u5199\u652f\u6301ssh\u8bbf\u95eeip\u7684\u5730\u533a\u540d\u79f0":5,"\u589e":5,"\u589e\u52a0\u7f51\u6bb5":5,"\u5907\u4efd\u4e2d":5,"\u5907\u4efd\u540d\u79f0":5,"\u5907\u4efd\u5916\u7f51url":5,"\u5907\u4efd\u5931\u8d25":5,"\u5907\u4efd\u5b8c\u6210\u65f6\u95f4":5,"\u5907\u4efd\u5f00\u59cb\u65f6\u95f4":5,"\u5907\u4efd\u603b\u6570":5,"\u5907\u4efd\u6210\u529f":5,"\u5907\u4efd\u6240\u5728\u53ef\u7528\u533a":5,"\u5907\u4efd\u6587\u4ef6\u4fdd\u7559\u7684\u6570\u91cf":5,"\u5907\u4efd\u6587\u4ef6\u516c\u7f51\u7684\u5730\u5740":5,"\u5907\u4efd\u6587\u4ef6\u540d\u79f0":5,"\u5907\u4efd\u6587\u4ef6\u5927\u5c0f":5,"\u5907\u4efd\u65b9\u6848":5,"\u5907\u4efd\u65e5\u671f\u6807\u8bb0\u4f4d":5,"\u5907\u4efd\u65f6\u671f\u6807\u8bb0\u4f4d":5,"\u5907\u4efd\u65f6\u95f4":5,"\u5907\u4efd\u65f6\u95f4\u95f4\u9694":5,"\u5907\u4efd\u72b6\u6001":5,"\u5907\u4efd\u7528\u6237\u7f51url":5,"\u5907\u4efd\u7684\u540d\u79f0":5,"\u5907\u4efd\u7684\u6574\u70b9\u65f6\u95f4":5,"\u5907\u4efd\u7684\u72b6\u6001":5,"\u5907\u4efd\u7b56\u7565":5,"\u5907\u4efd\u7c7b\u578b":5,"\u5907\u4efd\u8bb0\u5f55id":5,"\u5907\u4efd\u8fc7\u671f":5,"\u5907\u4efd\u9519\u8bef\u4fe1\u606f":5,"\u5907\u4efd\u9ed1\u540d\u5355":5,"\u5907\u4efd\u9ed1\u540d\u5355\u5217\u8868":5,"\u5907\u4efdid":5,"\u5907\u4efdudb\u5b9e\u4f8b":5,"\u5907\u4efdudb\u6307\u5b9a\u65f6\u95f4\u6bb5\u7684binlog\u5217\u8868":5,"\u5907\u4efdudb\u6307\u5b9a\u65f6\u95f4\u6bb5\u7684errorlog":5,"\u5907\u4efdudb\u6307\u5b9a\u65f6\u95f4\u6bb5\u7684slowlog\u5206\u6790\u7ed3\u679c":5,"\u5907\u6ce8":5,"\u5907\u6ce8\u4fe1\u606f":5,"\u5907\u6ce8\u7b49\u5c5e\u6027\u5b57\u6bb5":5,"\u590d\u5236\u81ea\u5236\u955c\u50cf":5,"\u5916\u7f51\u51fa\u53e3\u6743\u91cd":5,"\u591a\u7528\u4e8e\u9ad8\u53ef\u7528\u7a0b\u5e8f\u4f5c\u4e3a\u6f02\u79fbip":5,"\u5927\u4e8e100\u4e3a\u5b50\u5e10\u6237":5,"\u5927\u4e8e\u7b49\u4e8e\u8fd4\u56dedataset\u957f\u5ea6":5,"\u5927\u6570\u636e\u96c6\u7fa4":5,"\u5931\u6548":5,"\u5931\u6548\u65f6\u95f4":5,"\u5931\u8d25":5,"\u5982":5,"\u5982\u4e0d\u4f20\u6b64\u53c2\u6570":5,"\u5982\u4f55\u67e5\u8be2securitygroupid\u8bf7\u53c2\u89c1":5,"\u5982\u6309\u6708":5,"\u5982\u679c\u4e0d\u4f20\u5165":5,"\u5982\u679c\u4e0d\u4f20\u5219\u4f7f\u7528\u9ed8\u8ba4\u7684\u4e1a\u52a1\u7ec4":5,"\u5982\u679c\u4e0d\u4f20\u5219\u4f7f\u7528\u9ed8\u8ba4\u7684\u5b50\u7f51":5,"\u5982\u679c\u4e0d\u4f20\u5219\u4f7f\u7528\u9ed8\u8ba4\u7684vpc":5,"\u5982\u679c\u4e0d\u6307\u5b9a":5,"\u5982\u679c\u4e3a\u7a7a":5,"\u5982\u679c\u4ece\u5e93\u5907\u4efd\u5f00\u5173\u8bbe\u5b9a\u4e3a\u6253\u5f00":5,"\u5982\u679c\u4ece\u5e93\u843d\u540e\u53ef\u80fd\u4f1a\u7981\u6b62\u63d0\u5347":5,"\u5982\u679c\u4f20\u4e86\u544a\u8b66\u6a21\u677fid":5,"\u5982\u679c\u521b\u5efauhost\u5b9e\u4f8b\u65f6loginmode\u4e3apassword":5,"\u5982\u679c\u586b\u4e86backupid":5,"\u5982\u679c\u6307\u5b9a":5,"\u5982\u679c\u6307\u5b9a\u4e3atrue":5,"\u5982\u679c\u6307\u5b9a\u5219\u83b7\u53d6\u63cf\u8ff0":5,"\u5982\u679c\u6307\u5b9adbid":5,"\u5982\u679c\u662f\u4ecewindows\u91cd\u88c5\u4e3alinux\u6216\u53cd\u4e4b":5,"\u5982\u679c\u662f\u5217\u8868\u64cd\u4f5c":5,"\u5982\u679c\u6709\u503c\u8868\u793a\u4e13\u533a\u4e2d\u7684db\u914d\u7f6e\u5347\u964d\u7ea7":5,"\u5982\u679c\u6709\u8be5\u9009\u9879":5,"\u5982\u679c\u672a\u6307\u5b9agroupid":5,"\u5982\u679c\u6ca1\u4f20":5,"\u5982\u679c\u7ed1\u5b9aeip\u8fd9\u4e2a\u53c2\u6570\u5fc5\u586b":5,"\u5982\u679c\u843d\u540e\u60c5\u51b5\u4e0b":5,"\u5982\u679c\u8981\u4f20\u5165\u591a\u4e2a\u6587\u4ef6\u540d":5,"\u5982\u679c\u8ba1\u8d39\u5355\u4f4d\u662f":5,"\u5982\u679c\u8fd9\u4e2a\u53c2\u6570\u5b58\u5728\u8fd9\u8bf4\u660e\u662f\u5728\u4e13\u533a\u4e2d\u521b\u5efadb":5,"\u5982\u679cloginmode\u4e3akeypair":5,"\u5982\u679cname\u4e0d\u586b\u5199":5,"\u5982\u679ctag\u4e0d\u586b\u5199":5,"\u5982\u679cudbid\u4e0d\u4e3a\u7a7a\u5219\u53ea\u67e5\u770b\u6b64\u4e13\u533a\u4e0b\u9762\u7684db":5,"\u5982\u679cusessd\u4e3atru":5,"\u5982\u9700\u9000\u8d39\u6b64\u5904\u4e3a\u8d1f\u503c":5,"\u5982\u9999\u6e2f":5,"\u5982cn":5,"\u5982cpu\u6838\u5fc3\u6570":5,"\u5982hk":5,"\u5982month":5,"\u5982mysql":5,"\u5982org":5,"\u5b50\u5e10\u53f7\u5fc5\u987b\u586b\u5199":5,"\u5b50\u7f51":5,"\u5b50\u7f51\u5173\u8054\u7684ipv6\u7f51\u6bb5":5,"\u5b50\u7f51\u5173\u8054\u7684ipv6\u7f51\u6bb5\u6240\u5c5e\u8fd0\u8425\u5546":5,"\u5b50\u7f51\u540d\u79f0":5,"\u5b50\u7f51\u603b\u6570\u91cf":5,"\u5b50\u7f51\u63a9\u7801":5,"\u5b50\u7f51\u6a21\u5f0f":5,"\u5b50\u7f51\u7c7b\u578b":5,"\u5b50\u7f51\u7f51\u5173":5,"\u5b50\u7f51\u7f51\u6bb5":5,"\u5b50\u7f51\u7f51\u7edc\u53f7\u4f4d\u6570":5,"\u5b50\u7f51\u7f51\u7edc\u5730\u5740":5,"\u5b50\u7f51id":5,"\u5b50\u7f51id\u6570\u7ec4":5,"\u5b57\u6bb5\u89c4\u8303":5,"\u5b57\u8282":5,"\u5b89\u5168\u7ec4id":5,"\u5b89\u88c5":5,"\u5b89\u88c5\u5931\u8d25":5,"\u5b9a\u4e49\u76d1\u542c\u7684\u534f\u8bae\u548c\u7aef\u53e3\u4ee5\u53ca\u8d1f\u8f7d\u5747\u8861\u7b97\u6cd5":5,"\u5b9e\u4f8b":5,"\u5b9e\u4f8b\u540d\u79f0":5,"\u5b9e\u4f8b\u6240\u5728\u53ef\u7528\u533a":5,"\u5b9e\u4f8b\u72b6\u6001":5,"\u5b9e\u4f8b\u7684\u65b0\u540d\u5b57":5,"\u5b9e\u4f8b\u7684\u65b0\u5bc6\u7801":5,"\u5b9e\u4f8b\u7684\u90e8\u7f72\u7c7b\u578b":5,"\u5b9e\u4f8b\u7684id":5,"\u5b9e\u4f8bid":5,"\u5b9e\u540d\u8ba4\u8bc1\u72b6\u6001":5,"\u5ba2\u6237\u81ea\u5b9a\u4e49":5,"\u5bb9\u5668":5,"\u5bb9\u5668\u96c6\u7fa4":5,"\u5bb9\u91cf\u5355\u4f4dgb":5,"\u5bb9\u91cf\u5927\u5c0f":5,"\u5bb9\u91cf\u8c03\u6574\u4e2d":5,"\u5bb9\u91cf\u8c03\u6574\u5931\u8d25":5,"\u5bbf\u4e3b\u673a\u7c7b\u578b":5,"\u5bc6\u7801":5,"\u5bc6\u7801\u683c\u5f0f\u4f7f\u7528base64\u7f16\u7801":5,"\u5bc6\u7801\u9700\u4f7f\u7528base64\u8fdb\u884c\u7f16\u7801":5,"\u5bf9\u4e8e":5,"\u5bf9\u4e8e\u5185\u5b58\u5347\u7ea7\u65e0\u9700\u5173\u95ed\u5b9e\u4f8b":5,"\u5bf9\u5e94\u7684\u5b9e\u4f8bid":5,"\u5bf9\u5e94\u7684\u8d44\u6e90\u7c7b\u578b":5,"\u5bf9\u5e94\u7684db\u540d\u79f0":5,"\u5bf9\u5e94\u78c1\u76d8\u5236\u4f5c\u5feb\u7167\u65f6\u6240\u6302\u8f7d\u7684\u4e3b\u673a":5,"\u5bf9\u5e94\u78c1\u76d8\u662f\u5426\u5904\u4e8e\u53ef\u7528\u72b6\u6001":5,"\u5bf9master\u5219\u4e3a\u7a7a":5,"\u5bf9mongodb\u5219\u662f\u526f\u672c\u96c6id":5,"\u5bf9mysql\u7684slave\u800c\u8a00\u662fmaster\u7684dbid":5,"\u5bfc\u5165\u7684\u914d\u7f6e\u5185\u5bb9\u91c7\u7528base64\u7f16\u7801":5,"\u5bfc\u5165udb\u914d\u7f6e":5,"\u5c06\u4e00\u4e2a\u53ef\u7528\u7684udisk\u6302\u8f7d\u5230\u67d0\u53f0\u4e3b\u673a\u4e0a":5,"\u5c06\u5c1a\u672a\u4f7f\u7528\u7684\u5f39\u6027ip\u7ed1\u5b9a\u5230\u6307\u5b9a\u7684\u8d44\u6e90":5,"\u5c06\u5f39\u6027ip\u4ece\u8d44\u6e90\u4e0a\u89e3\u7ed1":5,"\u5c06\u65b0\u521b\u5efa\u7684db\u6062\u590d\u5230\u6307\u5b9adb\u67d0\u4e2a\u6307\u5b9a\u65f6\u95f4\u70b9":5,"\u5c06\u9632\u706b\u5899\u5e94\u7528\u5230\u8d44\u6e90\u4e0a":5,"\u5c06eip\u52a0\u5165\u5171\u4eab\u5e26\u5bbd":5,"\u5c06eip\u79fb\u51fa\u5171\u4eab\u5e26\u5bbd":5,"\u5c06ssl\u8bc1\u4e66\u7ed1\u5b9a\u5230vserver":5,"\u5c55\u793a\u5b50\u7f51\u8d44\u6e90":5,"\u5c5e\u6027":5,"\u5df2\u5173\u95ed":5,"\u5df2\u51bb\u7ed3":5,"\u5df2\u5220\u9664":5,"\u5df2\u5e9f\u5f03":5,"\u5df2\u6302\u8f7d":5,"\u5df2\u6709\u4e3b\u673a\u7684\u4e1a\u52a1\u7ec4\u603b\u4e2a\u6570":5,"\u5df2\u7ed1\u5b9a":5,"\u5df2\u7ed1\u5b9a\u7684\u8d44\u6e90\u540d\u79f0":5,"\u5df2\u7ed1\u5b9a\u7684\u8d44\u6e90\u7c7b\u578b":5,"\u5df2\u7ed1\u5b9a\u8d44\u6e90\u5b9e\u4f8b\u7684\u5e26\u5bbd\u8ba1\u8d39\u5f39\u6027ip\u9644\u52a0\u4e34\u65f6\u5e26\u5bbd\u5305":5,"\u5df2\u7ed1\u5b9a\u8d44\u6e90\u7684\u8d44\u6e90id":5,"\u5e26\u5bbd":5,"\u5e26\u5bbd\u4fe1\u606f":5,"\u5e26\u5bbd\u503c":5,"\u5e26\u5bbd\u5305\u6240\u7ed1\u5b9a\u5f39\u6027ip\u7684\u8d44\u6e90id":5,"\u5e26\u5bbd\u5305\u6709\u6548\u65f6\u957f":5,"\u5e26\u5bbd\u5305\u7684\u4e34\u65f6\u5e26\u5bbd\u503c":5,"\u5e26\u5bbd\u5305\u7684\u8d44\u6e90id":5,"\u5e26\u5bbd\u5305\u8d44\u6e90id":5,"\u5e26\u5bbd\u5927\u5c0f":5,"\u5e26\u5bbd\u6a21\u5f0f":5,"\u5e26\u5bbd\u7c7b\u578b":5,"\u5e26\u5bbd\u8ba1\u8d39":5,"\u5e26\u5bbd\u8ba1\u8d39\u6a21\u5f0f":5,"\u5e76\u4e14quantity\u4e3a0":5,"\u5e76\u53ef\u6839\u636e\u6570\u636e\u4e2d\u5fc3":5,"\u5e76\u91ca\u653e":5,"\u5e7f\u4e1c":5,"\u5e9f\u5f03":5,"\u5efa\u8bae\u4e0d\u518d\u4f7f\u7528":5,"\u5efa\u8bae\u540e\u7eed\u4e0d\u518d\u4f7f\u7528":5,"\u5f00\u542f":5,"\u5f00\u542f\u6216\u8005\u5173\u95edudb\u4ece\u5e93\u5907\u4efd":5,"\u5f00\u542f\u65b9\u821f":5,"\u5f00\u542f\u70ed\u5347\u7ea7":5,"\u5f00\u542f\u7f51\u7edc\u589e\u5f3a1":5,"\u5f00\u542f\u7f51\u7edc\u589e\u5f3a2":5,"\u5f00\u59cb\u65f6\u95f4":5,"\u5f00\u901a\u5171\u4eab\u5e26\u5bbd":5,"\u5f39\u6027ip\u4ed8\u8d39\u65b9\u5f0f":5,"\u5f39\u6027ip\u4ef7\u683c":5,"\u5f39\u6027ip\u5730\u5740":5,"\u5f39\u6027ip\u662f\u5426\u5230\u671f":5,"\u5f39\u6027ip\u7684\u4e1a\u52a1\u7ec4\u6807\u8bc6":5,"\u5f39\u6027ip\u7684\u521b\u5efa\u65f6\u95f4":5,"\u5f39\u6027ip\u7684\u5230\u671f\u65f6\u95f4":5,"\u5f39\u6027ip\u7684\u540d\u79f0":5,"\u5f39\u6027ip\u7684\u5907\u6ce8":5,"\u5f39\u6027ip\u7684\u5916\u7f51\u5e26\u5bbd":5,"\u5f39\u6027ip\u7684\u5e26\u5bbd":5,"\u5f39\u6027ip\u7684\u5e26\u5bbd\u503c":5,"\u5f39\u6027ip\u7684\u5e26\u5bbd\u7c7b\u578b":5,"\u5f39\u6027ip\u7684\u7ebf\u8def\u5982\u4e0b":5,"\u5f39\u6027ip\u7684\u8ba1\u8d39\u6a21\u5f0f":5,"\u5f39\u6027ip\u7684\u8d44\u6e90\u7ed1\u5b9a\u72b6\u6001":5,"\u5f39\u6027ip\u7684\u8d44\u6e90id":5,"\u5f39\u6027ip\u7684\u8d44\u6e90id\u5982\u679c\u4e3a\u7a7a":5,"\u5f39\u6027ip\u7684\u8fd0\u8425\u5546\u4fe1\u606f":5,"\u5f39\u6027ip\u7684id":5,"\u5f39\u6027ip\u8ba1\u8d39\u65b9\u5f0fr":5,"\u5f39\u6027ip\u8bf7\u6c42\u7ed1\u5b9a\u7684\u8d44\u6e90\u7c7b\u578b":5,"\u5f39\u6027ip\u8bf7\u6c42\u7ed1\u5b9a\u7684\u8d44\u6e90id":5,"\u5f39\u6027ip\u8bf7\u6c42\u89e3\u7ed1\u7684\u8d44\u6e90\u7c7b\u578b":5,"\u5f39\u6027ip\u8bf7\u6c42\u89e3\u7ed1\u7684\u8d44\u6e90id":5,"\u5f39\u6027ip\u8d44\u6e90id":5,"\u5f3a\u5236\u63d0\u5347\u4e22\u5931\u6570\u636e":5,"\u5f53\u524d\u4ec5\u652f\u6301\u5220\u9664vpc\u7f51\u6bb5":5,"\u5f53\u524d\u4ec5\u652f\u6301mysql":5,"\u5f53\u524d\u53ea\u652f\u6301\u4e00\u4e2a\u5185\u7f51ip":5,"\u5f53\u524d\u652f\u6301mysql\u548cpg":5,"\u5f53\u524d\u78c1\u76d8\u652f\u6301\u7684\u5907\u4efd\u6a21\u5f0f\u53c2\u8003":5,"\u5f53\u524deip\u4ee3\u91d1\u5238id":5,"\u5f53\u53ea\u83b7\u53d6\u8fd9\u4e2a\u7279\u5b9adbid\u7684\u4fe1\u606f\u65f6":5,"\u5f53\u5bfc\u51fa\u67d0\u4e9b\u6570\u636e\u9047\u5230\u95ee\u9898\u540e":5,"\u5f53\u8bf7\u6c42\u6ca1\u6709\u586b\u5199zone\u65f6":5,"\u5f53bandwidthtyp":5,"\u5f53cento":5,"\u5f53db\u7c7b\u578b":5,"\u5f53db\u7c7b\u578b\u4e3amongodb\u65f6":5,"\u5f53monitortype\u4e3apath\u65f6":5,"\u5f53monitortype\u4e3aport\u65f6":5,"\u5f53udisk\u6302\u8f7d\u6210\u529f\u540e":5,"\u5f53ulbtype\u4e3aoutermode\u65f6":5,"\u5f7b\u5e95\u5220\u9664":5,"\u5f85\u5e9f\u5f03":5,"\u5fc5\u586b":5,"\u5fc5\u987b\u540c\u65f6\u4f20zone":5,"\u5fc5\u987b\u548czone\u5728\u540c\u4e00region":5,"\u5fc5\u987b\u586b\u5199":5,"\u5fc5\u987b\u586btrue":5,"\u5feb\u7167\u540d\u79f0":5,"\u5feb\u7167\u5907\u4efd\u5373\u7269\u7406\u5907\u4efd":5,"\u5feb\u7167\u5907\u4efd\u5907\u4efd\u9ed1\u540d\u5355\u4e0b\u65e0\u6548":5,"\u5feb\u7167\u63cf\u8ff0":5,"\u5feb\u7167\u7248\u672c":5,"\u5feb\u7167\u72b6\u6001":5,"\u5feb\u7167\u7684\u6e90udisk\u7684id":5,"\u5feb\u7167\u7684\u6e90udisk\u7684nam":5,"\u5feb\u7167\u7684udisk\u7684id":5,"\u5feb\u7167id":5,"\u603b\u6570":5,"\u603b\u7684\u6570\u636e\u76d8\u5b58\u50a8\u7a7a\u95f4":5,"\u6062\u590d\u4e2d":5,"\u6062\u590d\u5230\u67d0\u4e2a\u65f6\u95f4\u70b9\u7684\u65f6\u95f4\u6233":5,"\u6062\u590d\u5931\u8d25":5,"\u610f\u4e49\u4e3a0":5,"\u610f\u4e49\u5206":5,"\u6216":5,"\u6216\u767b\u5f55\u7528\u6237\u4e2d\u5fc3\u67e5\u770b":5,"\u6216\u8005":5,"\u6216\u8005\u628a\u8bc1\u4e66":5,"\u6216\u8005master":5,"\u6240\u521b\u5efa\u5e26\u5bbd\u5305\u7684\u8d44\u6e90id":5,"\u6240\u521b\u5efa\u9879\u76ee\u7684id":5,"\u6240\u5728\u53ef\u7528\u533a":5,"\u6240\u5c5e\u5730\u57df":5,"\u6240\u5c5e\u7684\u4e1a\u52a1\u7ec4id":5,"\u6240\u5c5e\u7684\u5b50\u7f51id":5,"\u6240\u5c5e\u884c\u4e1a":5,"\u6240\u5c5evserverid":5,"\u6240\u5e94\u7528\u8d44\u6e90id":5,"\u6240\u6709\u7b26\u5408\u6761\u4ef6\u7684uhost\u5b9e\u4f8b":5,"\u6240\u6dfb\u52a0\u7684\u540e\u7aef\u8d44\u6e90\u5728ulb\u4e2d\u7684\u5bf9\u8c61id":5,"\u6240\u6dfb\u52a0\u7684\u540e\u7aef\u8d44\u6e90\u670d\u52a1\u7aef\u53e3":5,"\u6240\u6dfb\u52a0\u7684\u540e\u7aef\u8d44\u6e90\u7684\u7c7b\u578b":5,"\u6240\u6dfb\u52a0\u7684\u540e\u7aef\u8d44\u6e90\u7684\u8d44\u6e90id":5,"\u6240\u6dfb\u52a0\u7684\u540e\u7aefrs\u6743\u91cd":5,"\u6240\u6dfb\u52a0\u7684ssl\u8bc1\u4e66\u7c7b\u578b":5,"\u6240\u7ed1\u5b9a\u5f39\u6027ip\u7684\u8d44\u6e90id":5,"\u6240\u7ed1\u5b9aulb\u5b9e\u4f8bid":5,"\u6240\u7ed1\u5b9avserver\u5b9e\u4f8bid":5,"\u6240\u91ca\u653e\u5f39\u6027ip\u5fc5\u987b\u4e3a\u975e\u7ed1\u5b9a\u72b6\u6001":5,"\u624b\u52a8":5,"\u6253\u5f00":5,"\u6269\u5bb9\u5dee\u4ef7":5,"\u6279\u91cf\u521b\u5efa\u4e0d\u4f1a\u8fd4\u56de":5,"\u6279\u91cf\u521b\u5efa\u4e3b\u673a\u65f6\u5fc5\u586b":5,"\u6279\u91cf\u521b\u5efa\u8be5\u53c2\u6570\u65e0\u6548":5,"\u6279\u91cf\u6dfb\u52a0vserver\u540e\u7aef\u8282\u70b9":5,"\u628aufile\u7684\u955c\u50cf\u6587\u4ef6\u5bfc\u5165\u5230uhost":5,"\u62a2\u5360\u578b\u4e91\u4e3b\u673a":5,"\u62a2\u5360\u6027\u4e91\u4e3b\u673a":5,"\u62a5\u6587\u8f6c\u53d1":5,"\u62a5\u6587\u8f6c\u53d1\u4e0b\u6709":5,"\u62a5\u6587\u8f6c\u53d1\u7684vserver\u4e0b\u8868\u793a\u56de\u8bdd\u4fdd\u6301\u7684\u65f6\u95f4":5,"\u62a5\u6587\u8f6c\u53d1vserver\u53ea\u652f\u6301\u4fee\u6539\u4e3a":5,"\u62c9\u53d6\u6240\u6709\u673a\u623f\u7684\u914d\u7f6e\u6587\u4ef6":5,"\u62d2\u7edd":5,"\u6302\u8f7d\u4e2d":5,"\u6302\u8f7d\u7684\u8bbe\u5907\u540d\u79f0":5,"\u6302\u8f7d\u7684udisk\u5b9e\u4f8bid":5,"\u6302\u8f7d\u7684uhost\u5b9e\u4f8bid":5,"\u6302\u8f7d\u7684uhost\u7684id":5,"\u6302\u8f7d\u7684uhost\u7684ip":5,"\u6302\u8f7d\u7684uhost\u7684nam":5,"\u6307\u505c\u6b62\u5904\u4e8e\u8fd0\u884c\u72b6\u6001\u7684uhost\u5b9e\u4f8b":5,"\u6307\u5b9a\u4ece\u65b9\u821f\u6062\u590d\u7684\u5907\u4efd\u65f6\u95f4\u70b9":5,"\u6307\u5b9a\u5e93mysql":5,"\u6307\u5b9a\u6570\u636e\u4e2d\u5fc3":5,"\u6307\u5b9a\u662f\u5426\u662f\u5426\u4f7f\u7528ssd":5,"\u6307\u5b9a\u8868citi":5,"\u6307\u5b9aclasstyp":5,"\u6307\u5b9adbid\u7528\u4e8e\u83b7\u53d6\u8be5db\u7684\u4fe1\u606f":5,"\u6307\u5b9aip":5,"\u6307\u5b9aoffset":5,"\u6307\u5b9asubnetid\u65f6\u5fc5\u586b":5,"\u6307\u5b9avip\u6240\u5c5e\u7684vpc":5,"\u6307\u5f53\u524d\u81ea\u5b9a\u4e49\u955c\u50cf\u7684\u6765\u6e90\u955c\u50cf":5,"\u6309\u5c0f\u65f6\u4ed8\u8d39":5,"\u6309\u5c0f\u65f6\u4ed8\u8d39\u548c\u8bd5\u7528\u8fd9\u4e24\u79cd\u4ed8\u8d39\u6a21\u5f0f\u9700\u8981\u5f00\u901a\u6743\u9650":5,"\u6309\u5c0f\u65f6\u8d2d\u4e70":5,"\u6309\u5e74":5,"\u6309\u5e74\u4ed8\u8d39":5,"\u6309\u65f6":5,"\u6309\u65f6\u4ed8\u8d39":5,"\u6309\u6708":5,"\u6309\u6708\u4ed8\u8d39":5,"\u6309\u9700":5,"\u6309\u9700\u4ed8\u8d39":5,"\u63a5\u53d7":5,"\u63a5\u53e3\u8fd4\u56de\u6d88\u606f":5,"\u63cf\u8ff0":5,"\u63d0\u5347\u4e3a\u72ec\u5e93\u8fdb\u884c\u4e2d":5,"\u63d0\u793a\u4fe1\u606f":5,"\u642d\u914d\u4f7f\u7528":5,"\u64cd\u4f5c\u7cfb\u7edf\u540d\u79f0":5,"\u64cd\u4f5c\u7cfb\u7edf\u5e73\u53f0":5,"\u64cd\u4f5c\u7cfb\u7edf\u7c7b\u522b":5,"\u64cd\u4f5c\u7cfb\u7edf\u7c7b\u578b":5,"\u64cd\u4f5c\u7cfb\u7edf\u8be6\u7ec6\u7248\u672c":5,"\u652f\u4ed8\u5468\u671f":5,"\u652f\u4ed8\u65b9\u5f0f":5,"\u652f\u6301":5,"\u652f\u6301100":5,"\u652f\u6301\u4e24\u7c7b\u64cd\u4f5c":5,"\u652f\u6301\u5730\u57df":5,"\u652f\u6301\u591a\u503c\u4f20\u5165":5,"\u652f\u6301udpn\u7684\u5730\u57df\u4e4b\u4e00":5,"\u6539":5,"\u6539\u6807\u5fd7":5,"\u6539\u914d\u6210\u529f\u7684\u78c1\u76d8id":5,"\u653e\u5165\u56de\u6536\u7ad9":5,"\u6570\u503c\u5bf9\u5e94\u7684\u7248\u672c\u5982\u4e0b":5,"\u6570\u5b57\u4ee5\u53ca\u7b26\u53f7":5,"\u6570\u5b57\u8d8a\u5927\u4f18\u5148\u7ea7\u8d8a\u9ad8":5,"\u6570\u636e\u4e2d\u5fc3\u540d\u79f0":5,"\u6570\u636e\u4e2d\u5fc3id":5,"\u6570\u636e\u4ed3\u5e93":5,"\u6570\u636e\u504f\u79fb\u91cf":5,"\u6570\u636e\u5206\u9875\u503c":5,"\u6570\u636e\u5e93":5,"\u6570\u636e\u5e93\u578b":5,"\u6570\u636e\u5e93\u5ba1\u8ba1":5,"\u6570\u636e\u65b9\u821f":5,"\u6570\u636e\u65b9\u821f\u6a21\u5f0f":5,"\u6570\u636e\u76d8":5,"\u6570\u636e\u76d8\u4e0d\u652f\u6301\u7f29\u5bb9":5,"\u6570\u636e\u76d8\u5927\u5c0f":5,"\u6570\u636e\u8282\u70b9":5,"\u6570\u7ec4":5,"\u65ad\u5f00":5,"\u65ad\u7535\u7269\u7406\u4e91\u4e3b\u673a":5,"\u65b0":5,"\u65b0\u52a0\u5761":5,"\u65b0\u5efavpc\u4e92\u901a\u5173\u7cfb":5,"\u65b0\u673a\u623f\u53ea\u63d0\u4f9bssd\u8d44\u6e90":5,"\u65b0\u7684\u540d\u79f0":5,"\u65b0\u7684\u9879\u76ee\u540d\u79f0":5,"\u65b0\u914d\u7f6e\u53c2\u6570\u7ec4\u540d\u79f0":5,"\u65b0\u914d\u7f6e\u53c2\u6570\u7ec4id":5,"\u65b9\u821f\u662f\u5426\u5f00\u542f":5,"\u65b9\u821f\u673a\u578b":5,"\u65e0":5,"\u65e0\u4ee3\u8868\u6b63\u5e38\u521b\u5efa":5,"\u65e0\u5907\u4efd":5,"\u65e0\u70ed\u5907":5,"\u65e0\u9700\u7b49\u5f85\u5b9e\u4f8b\u6b63\u5e38\u5173\u95ed":5,"\u65e0id":5,"\u65e5\u5fd7\u5305id":5,"\u65e5\u5fd7\u7c7b\u578b":5,"\u65e7":5,"\u65f6":5,"\u65f6\u6307\u5b9a\u5065\u5eb7\u68c0\u67e5\u53d1\u9001\u8bf7\u6c42\u65f6\u7684\u8def\u5f84":5,"\u65f6\u6307\u5b9a\u5065\u5eb7\u68c0\u67e5\u53d1\u9001\u8bf7\u6c42\u65f6http":5,"\u65f6\u65e0\u9700\u6b64\u53c2\u6570":5,"\u65f6\u95f4\u6233":5,"\u662f":5,"\u662f\u5426\u4e3a\u9ed8\u8ba4\u9879\u76ee":5,"\u662f\u5426\u4f7f\u7528\u5f3a\u5236\u624b\u6bb5\u5173\u95eddb":5,"\u662f\u5426\u4f7f\u7528\u9ed1\u540d\u5355\u5907\u4efd":5,"\u662f\u5426\u4f7f\u7528ssd":5,"\u662f\u5426\u4fdd\u7559\u6570\u636e\u76d8":5,"\u662f\u5426\u5141\u8bb8\u591a\u70b9\u6302\u8f7d":5,"\u662f\u5426\u5220\u9664\u6302\u8f7d\u7684\u6570\u636e\u76d8":5,"\u662f\u5426\u52a0\u5bc6":5,"\u662f\u5426\u53ef\u66f4\u6539":5,"\u662f\u5426\u5b50\u5e10\u6237":5,"\u662f\u5426\u5b89\u88c5uga":5,"\u662f\u5426\u5c5e\u4e8e\u5730\u57df\u7ea7\u522b":5,"\u662f\u5426\u5f00\u542f\u5f02\u6b65\u9ad8\u53ef\u7528":5,"\u662f\u5426\u5f00\u542f\u6570\u636e\u65b9\u821f":5,"\u662f\u5426\u5f00\u542f\u65b9\u821f\u7279\u6027":5,"\u662f\u5426\u5f00\u542f\u70ed\u5347\u7ea7\u7279\u6027":5,"\u662f\u5426\u5f00\u542f\u9ad8\u53ef\u7528":5,"\u662f\u5426\u5f3a\u5236":5,"\u662f\u5426\u5f3a\u5236\u5bfc\u51fa\u5176\u4ed6\u5269\u4f59\u6570\u636e\u9ed8\u8ba4\u662ffalse\u9700\u8981\u540c\u65f6\u8bbe\u7f6ebackupdate\u5b57\u6bb5":5,"\u662f\u5426\u6253\u5f00\u6570\u636e\u65b9\u821f":5,"\u662f\u5426\u6388\u6743":5,"\u662f\u5426\u652f\u6301\u514b\u9686":5,"\u662f\u5426\u652f\u6301\u5f00\u542f\u65b9\u821f":5,"\u662f\u5426\u652f\u6301\u5feb\u7167":5,"\u662f\u5426\u652f\u6301\u6570\u636e\u65b9\u821f":5,"\u662f\u5426\u652f\u6301\u7d27\u6025\u767b\u5f55":5,"\u662f\u5426\u652f\u6301raid":5,"\u662f\u5426\u662f\u4ef2\u88c1\u8282\u70b9":5,"\u662f\u5426\u662f\u52a0\u5bc6\u76d8":5,"\u662f\u5426\u662f\u52a0\u5bc6\u76d8\u5feb\u7167":5,"\u662f\u5426\u662f\u5730\u57df\u7ea7\u522b\u7684\u914d\u7f6e\u6587\u4ef6":5,"\u662f\u5426\u662f\u7cfb\u7edf\u76d8":5,"\u662f\u5426\u662f\u8d22\u52a1\u8d26\u53f7":5,"\u662f\u5426\u662f\u8de8\u673a\u623furedi":5,"\u662f\u5426\u6709\u8d22\u52a1\u6743\u9650":5,"\u662f\u5426\u6709natgw":5,"\u662f\u5426\u67e5\u770b\u4e13\u533a\u91cc\u9762db":5,"\u662f\u5426\u7528\u6237\u5f53\u524d\u9ed8\u8ba4\u6570\u636e\u4e2d\u5fc3":5,"\u662f\u5426\u76f4\u63a5\u5220\u9664":5,"\u662f\u5426\u81ea\u52a8\u5907\u4efd":5,"\u662f\u5426\u81ea\u52a8\u7eed\u8d39":5,"\u662f\u5426\u8d85\u7ea7\u7ba1\u7406\u5458":5,"\u662f\u5426\u8fd4\u56de\u4ef7\u683c":5,"\u662f\u5426\u9009\u53d6\u4e13\u533a\u4e2d\u914d\u7f6e":5,"\u662f\u5426\u91ca\u653e\u7ed1\u5b9a\u7684eip":5,"\u662f\u5426\u9501\u4e3b\u5e93":5,"\u662f\u5426\u9700\u8981\u81ea\u52a8\u5907\u4efd":5,"\u662f\u5426\u9ed8\u8ba4\u7684\u5f39\u6027\u7f51\u5361\u7684\u4fe1\u606f":5,"\u662f\u6570\u636e\u76d8":5,"\u662f\u7cfb\u7edf\u76d8":5,"\u662f\u9ed8\u8ba4\u5f39\u6027\u7f51\u5361":5,"\u663e\u793amemcach":5,"\u666e\u901a":5,"\u666e\u901a\u4e91\u4e3b\u673a":5,"\u666e\u901a\u4e91\u76d8\u7684\u7ec4\u5408\u652f\u6301\u5f00\u542f\u65b9\u821f":5,"\u666e\u901a\u5347\u7ea7\u4e3a\u65b9\u821f\u673a\u578b":5,"\u666e\u901a\u5355\u70b9\u5b9e\u4f8b":5,"\u666e\u901a\u5355\u70b9\u5b9e\u4f8bha":5,"\u666e\u901a\u5e26\u5bbd\u7c7b\u578b":5,"\u666e\u901a\u6570\u636e\u76d8":5,"\u666e\u901a\u672c\u5730\u76d8":5,"\u666e\u901a\u7248udb\u5b9e\u4f8b":5,"\u666e\u901a\u76d8":5,"\u666e\u901a\u7cfb\u7edf\u76d8":5,"\u666e\u901adb\u5347\u7ea7\u4e3a\u9ad8\u53ef\u7528":5,"\u666e\u901audb\u5207\u6362\u4e3a\u9ad8\u53ef\u7528":5,"\u6682\u4e0d\u652f\u6301":5,"\u6682\u65f6\u4e0d\u5bf9\u5916\u5f00\u653e":5,"\u6682\u65f6\u652f\u630120":5,"\u6682\u65f6\u652f\u630120g":5,"\u6682\u672a\u5bf9\u5916\u5f00\u653e":5,"\u66f4\u6539\u7269\u7406\u673a\u4fe1\u606f":5,"\u66f4\u65b0\u5185\u5bb9\u8f6c\u53d1\u89c4\u5219":5,"\u66f4\u65b0\u5b50\u7f51\u4fe1\u606f":5,"\u66f4\u65b0\u5f39\u6027ip\u540d\u79f0":5,"\u66f4\u65b0\u8def\u7531\u8868\u57fa\u672c\u4fe1\u606f":5,"\u66f4\u65b0\u9632\u706b\u5899\u89c4\u5219":5,"\u66f4\u65b0udb\u914d\u7f6e\u53c2\u6570\u9879":5,"\u66f4\u65b0ulb\u540d\u5b57\u4e1a\u52a1\u7ec4\u5907\u6ce8\u7b49\u5c5e\u6027\u5b57\u6bb5":5,"\u66f4\u65b0ulb\u540e\u7aef\u8d44\u6e90\u5b9e\u4f8b":5,"\u66f4\u65b0vpc\u7f51\u6bb5":5,"\u66f4\u65b0vserver\u5b9e\u4f8b\u5c5e\u6027":5,"\u6700\u4f4ecpu\u5e73\u53f0":5,"\u6700\u53f3\u8fb9\u7684\u4e00\u4f4d":5,"\u6700\u53f3\u8fb9\u7684\u4e00\u4f4d\u4e3a\u661f\u671f\u5929\u7684\u5907\u4efd\u5f00\u5173":5,"\u6700\u5927100":5,"\u6700\u592710000000":5,"\u6700\u5927\u503c\u53d7\u5730\u57df\u9650\u5236":5,"\u6700\u5927\u503c\u8bf7\u53c2\u8003":5,"\u6700\u5927\u521b\u5efa\u4e3b\u673a\u6570\u91cf":5,"\u6700\u5927\u6570\u91cf\u4e3a10\u53f0":5,"\u6700\u5c0f\u8fde\u63a5\u6570":5,"\u6700\u8fd15\u5206\u949f\u5e26\u5bbd\u7528\u91cf":5,"\u6708\u4ed8\u65f6":5,"\u6709\u56de\u6536\u7ad9\u6743\u9650":5,"\u6709\u6b64\u9879\u4ee3\u8868\u4ece\u5907\u4efd\u4e2d\u521b\u5efa":5,"\u670d\u52a1\u8282\u70b9":5,"\u672a\u5206\u7ec4\u663e\u793a\u4e3a":5,"\u672a\u5f00\u542f\u65b9\u821f":5,"\u672a\u5f00\u542f\u70ed\u5347\u7ea7":5,"\u672a\u652f\u6301":5,"\u672a\u77e5":5,"\u672a\u7ed1\u5b9a":5,"\u672a\u8fc7\u671f":5,"\u672c\u5730\u666e\u901a\u76d8\u652f\u63010":5,"\u672c\u5730\u76d8":5,"\u672c\u5730\u78c1\u76d8":5,"\u672c\u5730ssd\u76d8":5,"\u673a\u623f\u5730\u57df\u4ee3\u53f7":5,"\u6743\u9650\u4f4d\u63a7\u5236\u53ef\u8fbe8000":5,"\u6743\u9650\u4f4d\u63a7\u5236\u53ef\u8fbe8t":5,"\u6765\u6e90\u4e8e":5,"\u679a\u4e3e\u4e3a":5,"\u679a\u4e3e\u503c":5,"\u679a\u4e3e\u503c\u4e3a":5,"\u67e5\u8be2\u4e3b\u5907redi":5,"\u67e5\u8be2\u4e3b\u5907redis\u5907\u4efd":5,"\u67e5\u8be2\u5230\u7684\u603b\u6570\u91cf":5,"\u67e5\u8be2\u67d0\u4e00\u4e2a\u7c7b\u578bdb":5,"\u6807\u51c6\u4e3b\u5907\u7248":5,"\u6807\u51c6\u5927\u5bb9\u91cf\u673a\u578b":5,"\u6807\u51c6\u673a\u578b":5,"\u6807\u51c6\u955c\u50cf":5,"\u6838\u67e5\u5931\u8d25\u4e0d\u8fd4\u56de":5,"\u6838\u67e5\u6210\u529f\u8fd4\u56de\u503c\u4e3a\u53ef\u4ee5\u56de\u6863\u5230\u7684\u6700\u8fd1\u65f6\u523b":5,"\u6838\u67e5db\u662f\u5426\u53ef\u4ee5\u4f7f\u7528\u56de\u6863\u529f\u80fd":5,"\u6838\u67e5db\u662f\u5426\u53ef\u4ee5\u5347\u7ea7\u4e3a\u9ad8\u53ef\u7528":5,"\u6839\u636e\u4e00\u5f20\u73b0\u6709\u8def\u7531\u8868\u590d\u5236\u4e00\u5f20\u65b0\u7684\u8def\u7531\u8868":5,"\u6839\u636e\u53c2\u6570\u7c7b\u578b":5,"\u6839\u636e\u63d0\u4f9b\u4fe1\u606f":5,"\u6839\u636e\u8d44\u6e90\u4f7f\u7528\u91cf\u521b\u5efa\u6307\u5b9a\u6570\u91cf\u7684uphost\u7269\u7406\u4e91\u4e3b\u673a\u5b9e\u4f8b":5,"\u6839\u636e\u8fc7\u6ee4\u6761\u4ef6\u5f97\u5230\u7684\u603b\u6570":5,"\u6839\u636emonitortype\u786e\u8ba4":5,"\u6839\u636epersistencetype\u786e\u5b9a":5,"\u6839\u636epersistencetype\u786e\u8ba4":5,"\u6839\u636euhost\u5b9e\u4f8b\u914d\u7f6e":5,"\u683c\u5f0f":5,"\u683c\u5f0f\u4e3a":5,"\u683c\u5f0f\u4e3aunix":5,"\u683c\u5f0f\u4e3aunix\u65f6\u95f4\u6233":5,"\u6a21\u578b\u5b9a\u4e49":5,"\u6b63\u5e38":5,"\u6b64\u53c2\u6570\u4f200":5,"\u6b64\u5904\u8fd4\u56de\u548cbasicimagename\u4e00\u81f4":5,"\u6b64\u5b57\u6bb5\u4e3a\u7a7a":5,"\u6b64\u5b57\u6bb5\u4f20\u5165\u81ea\u5b9a\u4e49\u4f1a\u8bdd\u4fdd\u6301string":5,"\u6b64\u5b57\u6bb5\u5c55\u793a\u7528\u6237\u81ea\u5b9a\u4e49\u4f1a\u8bddstring":5,"\u6b64\u5b57\u6bb5\u65e0\u610f\u4e49":5,"\u6b65\u957f":5,"\u6b65\u957f\u4e3a10":5,"\u6bcf\u4e00\u4f4d\u4e3a\u4e00\u5468\u4e2d\u4e00\u5929\u7684\u5907\u4efd\u60c5\u51b5":5,"\u6bcf\u4e2a\u8282\u70b9\u7684\u5185\u5b58\u5927\u5c0f":5,"\u6bcf\u5468\u5907\u4efd\u6570\u91cf":5,"\u6bcf\u5468\u5fc5\u987b\u81f3\u5c11\u8bbe\u7f6e\u4e24\u5929\u5907\u4efd":5,"\u6bcf\u79cd\u6587\u4ef6\u7684\u503c\u5982\u4e0b":5,"\u6bd4\u5982":5,"\u6bd4\u598210":5,"\u6bd4\u5982cento":5,"\u6bd4\u5982local":5,"\u6bd4\u5982uvnet":5,"\u6ca1\u6709slave":5,"\u6cc9\u5dde\u4e3a\u79fb\u52a8\u5355\u7ebfcn":5,"\u6cd5\u5170\u514b\u798f":5,"\u6ce8\u610f":5,"\u6ce8\u610f\u53ea\u6709ssd\u7248\u672c\u7684mysql\u5b9e\u4f8b\u652f\u6301\u8bbe\u7f6e\u4e3asnapshot":5,"\u6ce8\u610f\u73b0\u5728\u53ea\u6709ssd":5,"\u6d1b\u6749\u77f6":5,"\u6d1b\u6749\u77f6\u7b49":5,"\u6d41\u91cf\u8ba1\u8d39":5,"\u6d41\u91cf\u8ba1\u8d39\u6a21\u5f0f":5,"\u6d77\u5916\u673a\u623f":5,"\u6dfb\u52a0":5,"\u6dfb\u52a0\u7684routeruleid\u586b\u4efb\u610f\u975e\u7a7a\u5b57\u7b26\u4e32":5,"\u6dfb\u52a0\u7f51\u6bb5\u8bf7\u53c2\u8003":5,"\u6dfb\u52a0ulb\u540e\u7aef\u8d44\u6e90\u5b9e\u4f8b":5,"\u6dfb\u52a0vpc\u7f51\u6bb5":5,"\u6e05\u9664udb\u5b9e\u4f8b\u7684log":5,"\u6e90\u53c2\u6570\u7ec4id":5,"\u6e90\u5730\u5740":5,"\u6e90\u5b9e\u4f8b\u7684id":5,"\u6e90\u955c\u50cfid":5,"\u6e90vpc\u6240\u5728\u5730\u57df":5,"\u6e90vpc\u6240\u5728\u9879\u76eeid":5,"\u6e90vpc\u77edid":5,"\u6ee1\u8db3\u6761\u4ef6\u5907\u4efd\u603b\u6570":5,"\u6ee1\u8db3\u6761\u4ef6\u7684\u5e26\u5bbd\u5305\u603b\u6570":5,"\u6ee1\u8db3\u6761\u4ef6\u7684\u5f39\u6027ip\u5e26\u5bbd\u603b\u548c":5,"\u6ee1\u8db3\u6761\u4ef6\u7684\u5f39\u6027ip\u603b\u6570":5,"\u6ee1\u8db3\u6761\u4ef6\u7684\u955c\u50cf\u603b\u6570":5,"\u6ee1\u8db3\u6761\u4ef6\u7684phost\u603b\u6570":5,"\u6ee1\u8db3\u6761\u4ef6\u7684ssl\u8bc1\u4e66\u603b\u6570":5,"\u6ee1\u8db3\u6761\u4ef6\u7684ulb\u603b\u6570":5,"\u6ee1\u8db3\u6761\u4ef6\u7684vserver\u603b\u6570":5,"\u70ed\u5907":5,"\u7236\u9879\u76ee\u540d\u79f0":5,"\u7236\u9879\u76eeid":5,"\u7248\u672c\u7684":5,"\u7269\u7406\u4e91\u4e3b\u673a":5,"\u7269\u7406\u4e91\u4e3b\u673a\u72b6\u6001":5,"\u7269\u7406\u5907\u4efd":5,"\u7269\u7406\u5907\u4efd\u6b64\u53c2\u6570\u65e0\u6548":5,"\u7269\u7406\u673a":5,"\u7269\u7406\u673a\u540d\u79f0":5,"\u7269\u7406\u673a\u5907\u6ce8":5,"\u7269\u7406\u673a\u5e8f\u5217\u53f7":5,"\u7269\u7406\u673a\u7c7b\u578b":5,"\u7269\u7406\u673a\u8d44\u6e90id":5,"\u7279\u6b8a\u72b6\u6001\u6807\u8bc6":5,"\u72b6\u6001":5,"\u72b6\u6001\u6807\u8bb0":5,"\u751f\u6210\u81ea\u5b9a\u4e49\u955c\u50cf":5,"\u751f\u6548\u65f6\u95f4":5,"\u7528":5,"\u7528\u4e8e\u63a7\u5236\u663e\u793a\u54ea\u4e9b\u673a\u623f\u5730\u57df\u53ef\u4ee5\u4f7f\u7528ssh\u7279\u6027":5,"\u7528\u5206\u9694\u7b26\u8868\u793a":5,"\u7528\u5355\u5f15\u53f7\u5305\u542b":5,"\u7528\u6237\u521d\u59cb\u5316\u811a\u672c":5,"\u7528\u6237\u53ef\u901a\u8fc7\u6307\u5b9a\u64cd\u4f5c\u7cfb\u7edf\u7c7b\u578b":5,"\u7528\u6237\u540d\u4e0b\u603b\u7684\u5907\u4efd\u4e2a\u6570":5,"\u7528\u6237\u5728\u6b64\u6570\u636e\u4e2d\u5fc3\u7684\u6743\u9650\u4f4d":5,"\u7528\u6237\u624b\u673a":5,"\u7528\u6237\u7684\u8bc1\u4e66":5,"\u7528\u6237\u81ea\u5b9a\u4e49":5,"\u7528\u6237\u81ea\u5b9a\u4e49\u9632\u706b\u5899":5,"\u7528\u6237\u81ea\u5b9a\u4e49kei":5,"\u7528\u6237\u90ae\u7bb1":5,"\u7528\u6237db\u7ec4\u7684\u6570\u91cf":5,"\u7528\u6237id":5,"\u7533\u8bf7\u5185\u7f51vip":5,"\u7533\u8bf7\u5230\u7684":5,"\u7533\u8bf7\u5230\u7684eip\u8d44\u6e90id":5,"\u7533\u8bf7\u5230\u7684vip\u5730\u5740":5,"\u7533\u8bf7\u5f39\u6027ip":5,"\u7533\u8bf7\u6570\u91cf":5,"\u7535\u4fe1":5,"\u7535\u6e90\u72b6\u6001":5,"\u7559\u7a7a\u8fd4\u56de\u5168\u90e8":5,"\u767b\u5f55\u5bc6\u7801":5,"\u7684\u4e3b\u673a1":5,"\u7684\u6574\u6570":5,"\u7684\u7c7b\u578b":5,"\u7684\u8d44\u6e90id":5,"\u76d1\u542c\u5668\u7c7b\u578b":5,"\u76ee\u524d\u4e3b\u8981\u53ef\u7528\u533a":5,"\u76ee\u524d\u4ec5\u652f\u63011":5,"\u76ee\u524d\u4ec5\u652f\u6301\u9ed8\u8ba4\u914d\u7f6eid":5,"\u76ee\u524d\u4ec5\u652f\u6301normal":5,"\u76ee\u524d\u4ec5\u9009\u62e9\u666e\u901a\u672c\u5730\u76d8":5,"\u76ee\u524d\u5305\u542bnetenhnc":5,"\u76ee\u524d\u53ea\u652f\u6301pem\u683c\u5f0f":5,"\u76ee\u524d\u652f\u6301":5,"\u76ee\u524d\u652f\u6301\u4ee5\u4e0b\u51e0\u6863":5,"\u76ee\u524d\u652f\u6301n1":5,"\u76ee\u524did\u7684\u53d6\u503c\u8303\u56f4\u4e3a":5,"\u76ee\u6807\u5730\u57df":5,"\u76ee\u6807\u7aef\u53e3":5,"\u76ee\u6807\u955c\u50cf\u540d\u79f0":5,"\u76ee\u6807\u955c\u50cf\u63cf\u8ff0":5,"\u76ee\u6807\u955c\u50cfid":5,"\u76ee\u6807\u9879\u76eeid":5,"\u76ee\u7684\u5730\u5740":5,"\u76ee\u7684\u7f51\u6bb5":5,"\u76ee\u7684\u9879\u76eeid":5,"\u76ee\u7684vpc\u6240\u5728\u5730\u57df":5,"\u76ee\u7684vpc\u6240\u5728\u9879\u76eeid":5,"\u76ee\u7684vpc\u77edid":5,"\u76ee\u7684vpc\u9879\u76eeid":5,"\u76f4\u63a5\u5173\u95eduhost\u5b9e\u4f8b\u7535\u6e90":5,"\u7701\u4efd":5,"\u771f\u5b9e\u4e3b\u673aip":5,"\u786c\u4ef6\u9694\u79bb\u7ec4id":5,"\u78c1\u76d8\u540d\u79f0":5,"\u78c1\u76d8\u5907\u4efd\u65b9\u6848":5,"\u78c1\u76d8\u5927\u5c0f":5,"\u78c1\u76d8\u5c5e\u6027":5,"\u78c1\u76d8\u6570\u91cf":5,"\u78c1\u76d8\u662f\u5426\u52a0\u5bc6":5,"\u78c1\u76d8\u76d8\u7b26":5,"\u78c1\u76d8\u7a7a\u95f4":5,"\u78c1\u76d8\u7c7b\u578b":5,"\u78c1\u76d8id":5,"\u78c1\u76d8io\u6027\u80fd":5,"\u793a\u4f8b":5,"\u7981\u7528":5,"\u7981\u752822\u7aef\u53e3":5,"\u79c1\u6709\u4e13\u533a\u4e3b\u673a":5,"\u79c1\u94a5":5,"\u79d2":5,"\u79f0\u547c":5,"\u79fb\u51fa\u5171\u4eab\u5e26\u5bbd\u540e":5,"\u7a7a\u95f2\u8fde\u63a5\u7684\u56de\u6536\u65f6\u95f4":5,"\u7a7a\u95f4\u540d\u79f0":5,"\u7a7a\u95f4\u7c7b\u578b":5,"\u7aef\u53e3":5,"\u7aef\u53e3\u53f7":5,"\u7aef\u53e3\u68c0\u67e5":5,"\u7b26\u5408\u6761\u4ef6\u7684\u5171\u4eab\u5e26\u5bbd\u603b\u6570":5,"\u7b2c\u4e00\u4e2a\u53c2\u6570\u4ee3\u8868\u534f\u8bae":5,"\u7b2c\u4e09\u4e2a\u53c2\u6570\u4e3aip":5,"\u7b2c\u4e8c\u4e2a\u53c2\u6570\u4ee3\u8868\u7aef\u53e3\u53f7":5,"\u7b2c\u4e94\u4e2a\u53c2\u6570\u4f18\u5148\u7ea7":5,"\u7b2c\u516d\u4e2a\u53c2\u6570\u4e3a\u8be5\u6761\u89c4\u5219\u7684\u81ea\u5b9a\u4e49\u5907\u6ce8":5,"\u7b2c\u56db\u4e2a\u53c2\u6570\u4e3aaccept":5,"\u7ba1\u7406\u5458":5,"\u7ba1\u7406\u5458\u5bc6\u7801":5,"\u7ba1\u7406\u5458\u5e10\u6237\u540d":5,"\u7c7b\u578b":5,"\u7cbe\u786e\u5230\u5c0f\u6570\u70b9\u540e2\u4f4d":5,"\u7cfb\u7edf\u5927\u5c0f":5,"\u7cfb\u7edf\u76d8":5,"\u7cfb\u7edf\u76d8\u4e0d\u652f\u6301\u7f29\u5bb9":5,"\u7cfb\u7edf\u76d8\u5927\u5c0f":5,"\u7cfb\u7edf\u76d8\u72b6\u6001":5,"\u7ebf\u8def\u5e26\u5bbd\u4e0a\u9650":5,"\u7ec4\u4ef6\u4fe1\u606f":5,"\u7ec4\u540d\u79f0":5,"\u7ec4\u7684\u603b\u7684\u8282\u70b9\u4e2a\u6570":5,"\u7ec4\u7684id":5,"\u7ec4\u81ea\u52a8\u5907\u4efd\u5f00\u59cb\u65f6\u95f4":5,"\u7ec4id":5,"\u7ed1\u5b9a\u4e86\u8be5\u8def\u7531\u8868\u7684\u5b50\u7f51\u6570\u91cf":5,"\u7ed1\u5b9a\u544a\u8b66\u6a21\u677f\u5931\u8d25\u53ea\u4f1a\u5728\u540e\u53f0\u6709\u65e5\u5fd7":5,"\u7ed1\u5b9a\u5b50\u7f51\u7684\u8def\u7531\u8868":5,"\u7ed1\u5b9a\u7684\u5171\u4eab\u5e26\u5bbdid":5,"\u7ed1\u5b9a\u8be5\u9632\u706b\u5899\u7684\u8d44\u6e90id":5,"\u7ed1\u5b9a\u8d44\u6e90\u603b\u6570":5,"\u7ed1\u5b9a\u8d44\u6e90\u7684\u8d44\u6e90\u7c7b\u578b":5,"\u7ed1\u5b9a\u9632\u706b\u5899\u7ec4\u7684\u8d44\u6e90\u7c7b\u578b":5,"\u7ed1\u5b9a\u9632\u706b\u5899\u7ec4\u7684\u8d44\u6e90id":5,"\u7ed3\u675f\u65f6\u95f4":5,"\u7f16\u7801":5,"\u7f16\u8f91udb\u5b9e\u4f8b\u7684\u5907\u4efd\u9ed1\u540d\u5355":5,"\u7f3a\u7701\u503c":5,"\u7f3a\u7701\u503c\u4e3a":5,"\u7f51\u5361\u5347\u964d\u7ea7":5,"\u7f51\u7edc\u589e\u5f3a":5,"\u7f51\u7edc\u589e\u5f3a1":5,"\u7f51\u7edc\u589e\u5f3a2":5,"\u7f51\u7edc\u589e\u5f3a\u7b49":5,"\u7f51\u7edc\u72b6\u6001":5,"\u7f51\u7edc\u73af\u5883":5,"\u7f51\u7edc\u76d8":5,"\u7f51\u7edcid":5,"\u8054\u901a":5,"\u81ea\u5236\u955c\u50cfid":5,"\u81ea\u52a8":5,"\u81ea\u52a8\u5907\u4efd\u5f00\u59cb\u65f6\u95f4":5,"\u81ea\u52a8\u751f\u6210":5,"\u81ea\u52a8\u751f\u6210kei":5,"\u81ea\u52a8\u7eed\u8d39":5,"\u81ea\u52a8\u9009\u62e9\u52a0\u5bc6\u76d8":5,"\u81ea\u5b9a\u4e49\u955c\u50cf":5,"\u81f3\u5c116\u4f4d":5,"\u81f3\u5c11\u524d\u4e00\u5929":5,"\u8282\u70b9\u5206\u914d\u7684\u670d\u52a1\u7aef\u53e3":5,"\u8282\u70b9\u7684\u865a\u62dfip\u5730\u5740":5,"\u8282\u70b9\u7684\u914d\u7f6eid":5,"\u82e5\u4e0d\u4f20\u503c":5,"\u82e5\u4e0d\u586b\u5199":5,"\u82e5\u4e0d\u6307\u5b9a\u5219\u8fd4\u56de\u5f53\u524d\u6570\u636e\u4e2d\u5fc3\u4e2d\u6240\u6709\u7684\u8d1f\u8f7d\u5747\u8861\u5b9e\u4f8b\u7684\u4fe1\u606f":5,"\u82e5\u4e0d\u6307\u5b9a\u5219\u8fd4\u56de\u5f53\u524d\u8d1f\u8f7d\u5747\u8861\u5b9e\u4f8b\u4e0b\u6240\u6709vserver\u7684\u4fe1\u606f":5,"\u82e5\u4e3a\u7a7a":5,"\u82e5\u586b\u5199":5,"\u82e5\u5bfc\u5165\u63a7\u5236\u53f0\u4e0a\u6ca1\u6709\u7684\u64cd\u4f5c\u7cfb\u7edf":5,"\u82e5\u5f00\u901a\u4e86\u6570\u636e\u65b9\u821f":5,"\u82e5\u6307\u5b9a\u5219\u8fd4\u56de\u6307\u5b9a\u7684\u8d1f\u8f7d\u5747\u8861\u5b9e\u4f8b\u7684\u4fe1\u606f":5,"\u82e5\u6307\u5b9a\u5219\u8fd4\u56de\u6307\u5b9a\u7684vserver\u5b9e\u4f8b\u7684\u4fe1\u606f":5,"\u82e5\u65e0\u6b64\u5b57\u6bb5\u5219\u4e0d\u505a\u4fee\u6539":5,"\u82e5\u76f4\u63a5\u901a\u8fc7\u57fa\u7840\u955c\u50cf\u521b\u5efa":5,"\u82e5\u8f93\u5165\u6b64\u5b57\u6bb5":5,"\u82e5\u9700\u8981\u8bf7\u7533\u8bf7\u5f00\u901a\u76f8\u5173\u6743\u9650":5,"\u8303\u56f4":5,"\u8303\u56f4\u662f":5,"\u83b7\u53d6":5,"\u83b7\u53d6\u4e13\u7ebf\u5347\u7ea7\u4ef7\u683c":5,"\u83b7\u53d6\u4e3b\u5907redis\u5907\u4efd\u4e0b\u8f7d\u94fe\u63a5":5,"\u83b7\u53d6\u4e3b\u673a\u6216\u4e3b\u673a\u5217\u8868\u4fe1\u606f":5,"\u83b7\u53d6\u5171\u4eab\u5e26\u5bbd\u4fe1\u606f":5,"\u83b7\u53d6\u5185\u7f51vip\u8be6\u7ec6\u4fe1\u606f":5,"\u83b7\u53d6\u53c2\u6570\u7ec4\u8be6\u7ec6\u53c2\u6570\u4fe1\u606f":5,"\u83b7\u53d6\u5b50\u7f51\u4fe1\u606f":5,"\u83b7\u53d6\u5e26\u5bbd\u7528\u91cf\u4fe1\u606f":5,"\u83b7\u53d6\u5f39\u6027ip\u4ef7\u683c":5,"\u83b7\u53d6\u5f39\u6027ip\u4fe1\u606f":5,"\u83b7\u53d6\u5f39\u6027ip\u5e26\u5bbd\u6539\u52a8\u4ef7\u683c":5,"\u83b7\u53d6\u5f39\u6027ip\u8ba1\u8d39\u6a21\u5f0f":5,"\u83b7\u53d6\u5f53\u524d\u652f\u6301\u7684\u4e13\u7ebf\u7ebf\u8def\u5217\u8868":5,"\u83b7\u53d6\u6240\u6709\u8ba1\u8d39\u6a21\u5f0f\u7684\u4ef7\u683c":5,"\u83b7\u53d6\u6307\u5b9a\u6570\u636e\u4e2d\u5fc3\u7684\u4e1a\u52a1\u7ec4\u5217\u8868":5,"\u83b7\u53d6\u6307\u5b9a\u6570\u636e\u4e2d\u5fc3\u955c\u50cf\u5217\u8868":5,"\u83b7\u53d6\u6307\u5b9auhost\u5b9e\u4f8b\u7684\u7ba1\u7406vnc\u914d\u7f6e\u8be6\u7ec6\u4fe1\u606f":5,"\u83b7\u53d6\u6700\u65e9\u53ef\u56de\u6863\u65f6\u95f4\u70b9":5,"\u83b7\u53d6\u67d0\u5730\u57df\u4e0b\u7684\u5e26\u5bbd\u5305\u4fe1\u606f":5,"\u83b7\u53d6\u7269\u7406\u4e91\u4e3b\u673a\u955c\u50cf\u5217\u8868":5,"\u83b7\u53d6\u7269\u7406\u673a\u4ef7\u683c\u5217\u8868":5,"\u83b7\u53d6\u7269\u7406\u673a\u8be6\u7ec6\u4fe1\u606f":5,"\u83b7\u53d6\u7269\u7406\u673atag\u5217\u8868":5,"\u83b7\u53d6\u7528\u6237\u4fe1\u606f":5,"\u83b7\u53d6\u7528\u6237\u5728\u5404\u6570\u636e\u4e2d\u5fc3\u7684\u6743\u9650\u7b49\u4fe1\u606f":5,"\u83b7\u53d6\u8d44\u6e90\u5176\u4ed6\u4fe1\u606f":5,"\u83b7\u53d6\u8def\u7531\u8868\u8be6\u7ec6\u4fe1\u606f":5,"\u83b7\u53d6\u955c\u50cfid":5,"\u83b7\u53d6\u9632\u706b\u5899\u7ec4\u4fe1\u606f":5,"\u83b7\u53d6\u9632\u706b\u5899\u7ec4\u6240\u7ed1\u5b9a\u8d44\u6e90\u7684\u5916\u7f51ip":5,"\u83b7\u53d6\u9879\u76ee\u5217\u8868":5,"\u83b7\u53d6globalssh\u5b9e\u4f8b\u5217\u8868":5,"\u83b7\u53d6globalssh\u8986\u76d6\u7684\u5730\u533a\u5217\u8868":5,"\u83b7\u53d6ssl\u8bc1\u4e66\u4fe1\u606f":5,"\u83b7\u53d6udb\u5907\u4efd\u4e0b\u8f7d\u5730\u5740":5,"\u83b7\u53d6udb\u5b9e\u4f8b\u4ef7\u683c\u4fe1\u606f":5,"\u83b7\u53d6udb\u5b9e\u4f8b\u4fe1\u606f":5,"\u83b7\u53d6udb\u5b9e\u4f8b\u5347\u964d\u7ea7\u4ef7\u683c\u4fe1\u606f":5,"\u83b7\u53d6udb\u5b9e\u4f8b\u5907\u4efd\u72b6\u6001":5,"\u83b7\u53d6udb\u5b9e\u4f8b\u72b6\u6001":5,"\u83b7\u53d6udb\u5b9e\u4f8b\u7684\u5907\u4efd\u9ed1\u540d\u5355":5,"\u83b7\u53d6udb\u6307\u5b9a\u65f6\u95f4\u6bb5\u7684binlog\u5217\u8868":5,"\u83b7\u53d6udb\u652f\u6301\u7684\u7c7b\u578b\u4fe1\u606f":5,"\u83b7\u53d6udb\u6700\u65e9\u53ef\u56de\u6863\u7684\u65f6\u95f4\u70b9":5,"\u83b7\u53d6udb\u7684binlog\u5907\u4efd\u5730\u5740":5,"\u83b7\u53d6udb\u7684slowlog\u5907\u4efd\u5730\u5740":5,"\u83b7\u53d6udisk\u5347\u7ea7\u4ef7\u683c\u4fe1\u606f":5,"\u83b7\u53d6udisk\u5b9e\u4f8b":5,"\u83b7\u53d6udisk\u5b9e\u4f8b\u4ef7\u683c\u4fe1\u606f":5,"\u83b7\u53d6udisk\u5feb\u7167":5,"\u83b7\u53d6uhost\u5b9e\u4f8b\u5347\u7ea7\u914d\u7f6e\u7684\u4ef7\u683c":5,"\u83b7\u53d6uhost\u5b9e\u4f8b\u7684\u4ef7\u683c":5,"\u83b7\u53d6ulb\u4e0b\u7684vserver\u7684\u8be6\u7ec6\u4fe1\u606f":5,"\u83b7\u53d6ulb\u8be6\u7ec6\u4fe1\u606f":5,"\u83b7\u53d6umem\u5185\u5b58\u7a7a\u95f4\u5217\u8868":5,"\u83b7\u53d6umem\u5347\u7ea7\u4ef7\u683c\u4fe1\u606f":5,"\u83b7\u53d6umem\u5b9e\u4f8b\u4ef7\u683c\u4fe1\u606f":5,"\u83b7\u53d6umemcache\u5347\u7ea7\u4ef7\u683c\u4fe1\u606f":5,"\u83b7\u53d6umemcache\u7ec4\u4ef7\u683c\u4fe1\u606f":5,"\u83b7\u53d6uredis\u5347\u7ea7\u4ef7\u683c\u4fe1\u606f":5,"\u83b7\u53d6vpc\u4e92\u901a\u4fe1\u606f":5,"\u83b7\u53d6vpc\u4fe1\u606f":5,"\u865a\u62df\u7f51\u5361":5,"\u865a\u62dfcpu\u6838\u6570":5,"\u865a\u62dfip":5,"\u884c\u4e1a\u955c\u50cf":5,"\u884c\u4e1a\u955c\u50cf\u7c7b\u578b":5,"\u8868\u793a":5,"\u8868\u793a\u4ece\u5e93\u5907\u4efd\u5f00\u5173\u6253\u5f00":5,"\u8868\u793a\u4f7f\u7528\u5feb\u7167":5,"\u8868\u793a\u4f7f\u7528\u903b\u8f91\u5907\u4efd":5,"\u8868\u793a\u5347\u7ea7":5,"\u8868\u793a\u53ea\u62c9\u53d6\u8de8\u53ef\u7528\u533a\u7684\u76f8\u5173\u914d\u7f6e\u6587\u4ef6":5,"\u8868\u793a\u6253\u5f00\u661f\u671f\u516d\u548c\u661f\u671f\u4e94\u7684\u81ea\u52a8\u5907\u4efd\u529f\u80fd":5,"\u8868\u793a\u662f\u5171\u4eab\u5e26\u5bbd":5,"\u8868\u793a\u7981\u7528\u8fde\u63a5\u4fdd\u6301":5,"\u8868\u793a\u7cfb\u52171":5,"\u8868\u793a\u7cfb\u52172":5,"\u88ab\u514b\u9686\u7684\u8def\u7531\u8868id":5,"\u88abssh\u8bbf\u95ee\u7684eip":5,"\u88abssh\u8bbf\u95ee\u7684ip":5,"\u88abssh\u8bbf\u95ee\u7684ip\u6240\u5728\u5730\u533a":5,"\u8981\u5220\u9664\u7684udisk\u7684id":5,"\u8981\u52a0\u5165\u5171\u4eab\u5e26\u5bbd\u7684eip\u7684\u8d44\u6e90id":5,"\u8981\u5347\u7ea7\u7684\u7a7a\u95f4\u7684groupid":5,"\u8981\u67e5\u8be2\u7684\u4e1a\u52a1\u7ec4\u540d\u79f0":5,"\u89c1":5,"\u89c4\u5219id":5,"\u89c4\u683c\u8c03\u6574\u5dee\u4ef7":5,"\u89c4\u8303\u793a\u4f8b":5,"\u89e3\u7ed1eip":5,"\u89e3\u7ed1eip\u540e":5,"\u8ba1\u7b97\u7aef\u53e3":5,"\u8ba1\u8d39\u65f6\u957f":5,"\u8ba1\u8d39\u65f6\u95f4\u5355\u4f4d":5,"\u8ba1\u8d39\u6a21\u5f0f":5,"\u8ba1\u8d39\u6a21\u5f0f\u4e3adynamic\u65f6":5,"\u8ba1\u8d39\u7c7b\u578b":5,"\u8bbe\u5b9a\u4e1a\u52a1\u7ec4":5,"\u8bbe\u5b9a\u5b9e\u4f8b\u540d\u79f0":5,"\u8bbe\u5b9a\u5bc6\u7801":5,"\u8bbe\u7f6e\u5f39\u6027ip\u8ba1\u8d39\u6a21\u5f0f":5,"\u8bbe\u7f6eudisk\u6570\u636e\u65b9\u821f\u7684\u72b6\u6001":5,"\u8bbf\u95ee\u8be5\u57df\u540d\u53ef\u5c31\u8fd1\u63a5\u5165":5,"\u8bc1\u4e66\u5185\u5bb9\u4f20\u8fc7\u6765":5,"\u8bd5\u7528":5,"\u8be5\u4e1a\u52a1\u7ec4\u4e2d\u5305\u542b\u7684\u4e3b\u673a\u4e2a\u6570":5,"\u8be5\u503c\u4e3a\u7a7a":5,"\u8be5\u503c\u53ef\u4ee5\u901a\u8fc7describeudbbackup\u83b7\u53d6":5,"\u8be5\u503c\u53ef\u4ee5\u901a\u8fc7describeudbinstance\u83b7\u53d6":5,"\u8be5\u503c\u53ef\u901a\u8fc7describeudbinstance\u83b7\u53d6":5,"\u8be5\u5904\u663e\u793a\u4e3a\u5171\u4eab\u5e26\u5bbd\u503c":5,"\u8be5\u5904\u663e\u793a\u8fd9\u4e2a\u5f39\u6027ip\u7684\u5e26\u5bbd":5,"\u8be5\u5f39\u6027ip\u4e0d\u4f1a\u88ab\u4f7f\u7528":5,"\u8be5\u5feb\u7167\u7684\u5bc6\u6587\u5bc6\u94a5":5,"\u8be5\u5feb\u7167\u7684cmk":5,"\u8be5\u5feb\u7167cmk\u7684\u72b6\u6001":5,"\u8be5\u76d8\u5feb\u7167\u4e0a\u9650":5,"\u8be5\u76d8\u5feb\u7167\u4e2a\u6570":5,"\u8be5\u76d8\u7684\u5bc6\u6587\u5bc6\u94a5":5,"\u8be5\u76d8\u7684cmk":5,"\u8be5\u76d8cmk\u7684\u72b6\u6001":5,"\u8be5\u914d\u7f6e\u6587\u4ef6\u662f\u5426\u662f\u5730\u57df\u7ea7\u522b\u914d\u7f6e\u6587\u4ef6":5,"\u8be6\u89c1describeuredisversion\u8fd4\u56de\u7ed3\u679c":5,"\u8be6\u8be2\u6280\u672f\u652f\u6301":5,"\u8bf4\u660e\u67e5\u770b\u6574\u4e2a\u53ef\u7528\u533a\u7684\u4e13\u533a\u7684db":5,"\u8bf7\u52ff\u5c06\u591a\u4e2a\u7ed1\u5b9a\u5728\u540c\u4e00\u8d44\u6e90\u7684\u5f39\u6027ip\u8bbe\u7f6e\u4e3a\u76f8\u540c\u6743\u91cd":5,"\u8bf7\u53c2\u8003":5,"\u8bf7\u53c2\u8003\u63a7\u5236\u53f0":5,"\u8bf7\u53c2\u8003\u63a7\u5236\u53f0\u7684\u955c\u50cf\u7248\u672c":5,"\u8bf7\u53c2\u8003describecoupon\u63a5\u53e3":5,"\u8bf7\u53c2\u8003describeumemcachegroup\u63a5\u53e3":5,"\u8bf7\u53c2\u8003describeuredisgroup\u63a5\u53e3":5,"\u8bf7\u6c42\u4ee3\u7406":5,"\u8bf7\u6c42\u4ee3\u7406\u53ea\u652f\u6301\u4fee\u6539\u4e3a":5,"\u8bf7\u6c42\u4ee3\u7406\u6a21\u5f0f\u4e0b\u6709":5,"\u8bf7\u6c42\u4ee3\u7406\u7684vserver\u4e0b\u8868\u793a\u7a7a\u95f2\u8fde\u63a5\u7684\u56de\u6536\u65f6\u95f4":5,"\u8bf7\u6c42\u521b\u5efa\u7ec4\u7684\u540d\u79f0":5,"\u8bf7\u901a\u8fc7":5,"\u8bf7\u901a\u8fc7describecoupon\u63a5\u53e3\u67e5\u8be2":5,"\u8bf7\u9075\u7167":5,"\u8c03\u6574\u4e3b\u5907redis\u5bb9\u91cf":5,"\u8c03\u6574\u5171\u4eab\u5e26\u5bbd\u7684\u5e26\u5bbd\u503c":5,"\u8c03\u6574\u5185\u5b58\u7a7a\u95f4\u5bb9\u91cf":5,"\u8c03\u6574\u540e\u4e13\u7ebf\u5e26\u5bbd":5,"\u8c03\u6574\u540e\u5927\u5c0f":5,"\u8c03\u6574\u540e\u7684ssh\u767b\u9646\u7aef\u53e3":5,"\u8c03\u6574\u5e26\u5bbd\u540e\u7684eip\u4ef7\u683c":5,"\u8c03\u6574\u5f39\u6027ip\u7684\u5916\u7f51\u5e26\u5bbd":5,"\u8c03\u6574\u7684\u76ee\u6807\u5e26\u5bbd\u503c":5,"\u8c03\u6574udisk\u5bb9\u91cf":5,"\u8c03\u7528\u65b9\u5f0f\u4e3e\u4f8b":5,"\u8c03\u7528\u8be5api":5,"\u8d1f\u8f7d\u5747\u8861":5,"\u8d1f\u8f7d\u5747\u8861\u5668":5,"\u8d1f\u8f7d\u5747\u8861\u5b9e\u4f8b\u7684id":5,"\u8d1f\u8f7d\u5747\u8861\u5b9e\u4f8bid":5,"\u8d1f\u8f7d\u5747\u8861\u7684\u4e1a\u52a1\u7ec4\u540d\u79f0":5,"\u8d1f\u8f7d\u5747\u8861\u7684\u540d\u5b57":5,"\u8d1f\u8f7d\u5747\u8861\u7684\u5907\u6ce8":5,"\u8d1f\u8f7d\u5747\u8861\u7684\u8d44\u6e90\u540d\u79f0":5,"\u8d1f\u8f7d\u5747\u8861\u7684\u8d44\u6e90id":5,"\u8d1f\u8f7d\u5747\u8861\u8d44\u6e90id":5,"\u8d2d\u4e70\u5230\u6708\u5e95":5,"\u8d2d\u4e70\u53f0\u6570":5,"\u8d2d\u4e70\u6570\u91cf":5,"\u8d2d\u4e70\u65f6\u957f":5,"\u8d2d\u4e70\u7684\u65f6\u957f":5,"\u8d2d\u4e70db\u5b9e\u4f8b\u6570\u91cf":5,"\u8d2d\u4e70udisk\u5927\u5c0f":5,"\u8d2d\u4e70udisk\u7684\u65f6\u957f":5,"\u8d2d\u4e70umem\u5927\u5c0f":5,"\u8d2d\u4e70umem\u7684\u65f6\u957f":5,"\u8d2d\u4e70umemcache\u5927\u5c0f":5,"\u8d2d\u4e70umemcache\u7684\u65f6\u957f":5,"\u8d2d\u4e70uredis\u5927\u5c0f":5,"\u8d44\u6e90":5,"\u8d44\u6e90\u521b\u5efa\u65f6\u95f4\u6233":5,"\u8d44\u6e90\u540d\u79f0":5,"\u8d44\u6e90\u552f\u4e00\u6807\u8bc6":5,"\u8d44\u6e90\u5b9e\u4f8b\u7684\u7c7b\u578b":5,"\u8d44\u6e90\u5b9e\u4f8b\u7684\u8d44\u6e90\u540d\u79f0":5,"\u8d44\u6e90\u5b9e\u4f8b\u7684\u8d44\u6e90id":5,"\u8d44\u6e90\u662f\u5426\u8fc7\u671f":5,"\u8d44\u6e90\u6709\u6548\u671f":5,"\u8d44\u6e90\u7684\u552f\u4e00\u6807\u8bc6":5,"\u8d44\u6e90\u7684ipv6\u5730\u5740":5,"\u8d44\u6e90\u77ed":5,"\u8d44\u6e90\u7c7b\u578b":5,"\u8d44\u6e90\u7cfb\u7edf\u4e2d":5,"\u8d44\u6e90\u7ed1\u5b9a\u7684\u865a\u62df\u7f51\u5361\u5b9e\u4f8b\u7684\u7c7b\u578b":5,"\u8d44\u6e90\u7ed1\u5b9a\u7684\u865a\u62df\u7f51\u5361\u5b9e\u4f8b\u7684\u8d44\u6e90\u540d\u79f0":5,"\u8d44\u6e90\u7ed1\u5b9a\u7684\u865a\u62df\u7f51\u5361\u5b9e\u4f8b\u7684\u8d44\u6e90id":5,"\u8d44\u6e90\u7ed1\u5b9a\u7684\u865a\u62df\u7f51\u5361\u7684\u540d\u79f0":5,"\u8d44\u6e90\u7ed1\u5b9a\u7684\u865a\u62df\u7f51\u5361\u7684\u5b9e\u4f8b\u540d\u79f0":5,"\u8d44\u6e90\u7ed1\u5b9a\u7684\u865a\u62df\u7f51\u5361\u7684\u5b9e\u4f8bid":5,"\u8d44\u6e90\u7ed1\u5b9a\u7684\u865a\u62df\u7f51\u5361\u7684\u7c7b\u578b":5,"\u8d44\u6e90\u7ed1\u5b9a\u7684\u865a\u62df\u7f51\u5361\u7684id":5,"\u8d44\u6e90\u8fc7\u671f\u65f6\u95f4\u6233":5,"\u8d44\u6e90id":5,"\u8d44\u6e90ip":5,"\u8d77\u59cb\u65f6\u95f4":5,"\u8de8\u53ef\u7528\u533a\u9ad8\u53ef\u7528\u5907\u5e93\u6240\u5728\u53ef\u7528\u533a":5,"\u8de8\u673a\u623f\u9ad8\u53ef\u7528\u5907\u5e93\u6240\u5728\u53ef\u7528\u533a":5,"\u8de8\u673a\u623furedi":5,"\u8def\u5f84":5,"\u8def\u5f84\u68c0\u67e5":5,"\u8def\u7531\u4e0b\u4e00\u8df3id":5,"\u8def\u7531\u7b56\u7565\u589e":5,"\u8def\u7531\u8868\u540d\u79f0":5,"\u8def\u7531\u8868\u5907\u6ce8":5,"\u8def\u7531\u8868\u6240\u5c5evpc":5,"\u8def\u7531\u8868\u7c7b\u578b":5,"\u8def\u7531\u8868id":5,"\u8def\u7531\u89c4\u5219\u5907\u6ce8":5,"\u8def\u7531\u89c4\u5219\u7c7b\u578b":5,"\u8def\u7531id":5,"\u8f6c\u53d1\u89c4\u5219\u7684id":5,"\u8f6c\u6d41\u91cf\u8ba1\u8d39":5,"\u8f6e\u8be2":5,"\u8f93\u5165\u4e0d\u5e26\u5355\u4f4d":5,"\u8f93\u5165\u53c2\u6570\u4e3aother":5,"\u8fc7\u671f":5,"\u8fc7\u671f\u65f6\u95f4":5,"\u8fc7\u6ee4\u6761\u4ef6":5,"\u8fd0\u7ef4\u65f6\u95f40":5,"\u8fd0\u8425\u5546\u4fe1\u606f":5,"\u8fd0\u8425\u5546\u4fe1\u606f\u5982":5,"\u8fd0\u884c":5,"\u8fd0\u884c\u4e2d":5,"\u8fd4\u56de":5,"\u8fd4\u56de\u503c\u4e2d\u7684diskset":5,"\u8fd4\u56de\u6240\u6709\u652f\u6301\u5730\u533a":5,"\u8fd4\u56de\u652f\u6301\u67d0\u79cd\u5b9e\u4f8b\u7c7b\u578b\u7684db\u7c7b\u578b":5,"\u8fd4\u56de\u652f\u6301\u67d0\u79cd\u78c1\u76d8\u7c7b\u578b\u7684db\u7c7b\u578b":5,"\u8fd4\u56de\u6570\u636e\u504f\u79fb\u91cf":5,"\u8fd4\u56de\u6570\u636e\u5206\u9875\u503c":5,"\u8fd4\u56de\u6570\u636e\u957f\u5ea6":5,"\u8fd4\u56de\u7684":5,"\u8fd4\u56de\u8be5\u5b9e\u4f8b\u6240\u5728\u96c6\u7fa4\u4e2d\u7684\u89d2\u8272":5,"\u8fd4\u56de\u8be5\u76d8\u6240\u505a\u5feb\u7167":5,"\u8fd4\u56de\u8fd0\u7ef4\u65f6\u95f4":5,"\u8fd8\u9700\u8981\u5728\u4e3b\u673a\u5185\u90e8\u8fdb\u884c\u6587\u4ef6\u7cfb\u7edf\u64cd\u4f5c":5,"\u8fd9\u4e24\u5957\u7b2c\u4e8c\u5957\u53c2\u6570\u7684\u4f18\u5148\u7ea7\u66f4\u9ad8":5,"\u8fde\u63a5":5,"\u9000\u8d39":5,"\u9002\u7528\u4e8e\u4e00\u6b21\u67e5\u8be2\u4e00\u4e2a\u5b50\u7f51\u4fe1\u606f":5,"\u9002\u7528\u4e8e\u4e00\u6b21\u67e5\u8be2\u591a\u4e2a\u5b50\u7f51\u4fe1\u606f":5,"\u9009\u62e9\u52a0\u5bc6\u76d8\u65f6\u5fc5\u586b":5,"\u9009\u62e9\u9ed8\u8ba4\u7684\u5907\u4efd\u65b9\u5f0f":5,"\u901a\u8fc7\u5b50\u7f51\u7b5b\u9009\u4e3b\u673a":5,"\u901a\u8fc7\u786c\u4ef6\u9694\u79bb\u7ec4\u7b5b\u9009\u4e3b\u673a":5,"\u901a\u8fc7describeroutetable\u62ff\u5230":5,"\u901a\u8fc7vpc\u7b5b\u9009\u4e3b\u673a":5,"\u90a3\u4e48\u53ea\u62c9\u53d6\u8fd9\u4e2a\u5907\u4efd\u7684\u8bb0\u5f55":5,"\u90a3\u4e48\u628a\u8fd9\u4e2adbid\u5b9e\u4f8b\u7684\u6240\u6709\u4ece\u5e93\u4fe1\u606f\u4e00\u8d77\u62c9\u53d6\u5e76\u8fd4\u56de":5,"\u914d\u7f6e\u4e2d":5,"\u914d\u7f6e\u5185\u5bb9":5,"\u914d\u7f6e\u53c2\u6570\u7ec4\u540d\u79f0":5,"\u914d\u7f6e\u53c2\u6570\u7ec4id":5,"\u914d\u7f6e\u5931\u8d25":5,"\u914d\u7f6e\u5931\u8d25restart":5,"\u914d\u7f6e\u6587\u4ef6\u5b50\u7c7b\u578b":5,"\u914d\u7f6e\u670d\u52a1\u5668\u7684dbid":5,"\u914d\u7f6e\u8282\u70b9":5,"\u914d\u7f6eid":5,"\u914d\u7f6einstancetyp":5,"\u914d\u7f6eusessd\u548cssdtyp":5,"\u91c7\u7528\u65f6\u95f4\u6233":5,"\u91c7\u7528utc\u8ba1\u65f6\u65f6\u95f4\u6233":5,"\u91ca\u653e":5,"\u91ca\u653e\u5f39\u6027ip\u8d44\u6e90":5,"\u91ca\u653evip\u8d44\u6e90":5,"\u91cc\u7684\u57df\u540d":5,"\u91cd\u542f\u4e2d":5,"\u91cd\u542f\u5355\u673amemcach":5,"\u91cd\u542f\u7269\u7406\u673a":5,"\u91cd\u542fudb\u5b9e\u4f8b":5,"\u91cd\u547d\u540d\u7684udisk\u7684id":5,"\u91cd\u547d\u540dudb\u5b9e\u4f8b":5,"\u91cd\u547d\u540dudisk":5,"\u91cd\u547d\u540dudisk\u7684nam":5,"\u91cd\u65b0\u542f\u52a8uhost\u5b9e\u4f8b":5,"\u91cd\u65b0\u5b89\u88c5\u6307\u5b9auhost\u5b9e\u4f8b\u7684\u64cd\u4f5c\u7cfb\u7edf":5,"\u91cd\u7f6euhost\u5b9e\u4f8b\u7684\u7ba1\u7406\u5458\u5bc6\u7801":5,"\u91cd\u88c5\u7269\u7406\u673a\u64cd\u4f5c\u7cfb\u7edf":5,"\u91cf\u5927\u5c0f":5,"\u9488\u5bf9\u975e\u79c1\u6709\u5b50\u7f51\u4e3b\u673a":5,"\u9519\u8bef\u4fe1\u606f":5,"\u955c\u50cf\u540d\u79f0":5,"\u955c\u50cf\u5927\u5c0f":5,"\u955c\u50cf\u5e02\u573a":5,"\u955c\u50cf\u63cf\u8ff0":5,"\u955c\u50cf\u683c\u5f0f":5,"\u955c\u50cf\u72b6\u6001":5,"\u955c\u50cf\u7c7b\u522b":5,"\u955c\u50cf\u7c7b\u578b":5,"\u955c\u50cfid":5,"\u955c\u50cfid\u8fdb\u884c\u8fc7\u6ee4":5,"\u957f\u5ea6":5,"\u957f\u5ea6\u8981\u6c42\u4e3a6":5,"\u9632\u706b\u5899\u4e1a\u52a1\u7ec4":5,"\u9632\u706b\u5899\u52a8\u4f5c":5,"\u9632\u706b\u5899\u540d\u79f0":5,"\u9632\u706b\u5899\u5907\u6ce8":5,"\u9632\u706b\u5899\u63cf\u8ff0":5,"\u9632\u706b\u5899\u7ec4\u521b\u5efa\u65f6\u95f4":5,"\u9632\u706b\u5899\u7ec4\u7c7b\u578b":5,"\u9632\u706b\u5899\u7ed1\u5b9a\u8d44\u6e90\u6570\u91cf":5,"\u9632\u706b\u5899\u89c4\u5219":5,"\u9632\u706b\u5899\u89c4\u5219\u5907\u6ce8":5,"\u9632\u706b\u5899\u8d44\u6e90id":5,"\u9632\u706b\u5899id":5,"\u9694\u79bb\u7ec4id":5,"\u96c6\u6210\u8f6f\u4ef6\u540d\u79f0":5,"\u9700\u586b\u5199projectid":5,"\u9700\u5f00\u542f\u6743\u9650":5,"\u9700\u6307\u5b9a\u6570\u636e\u4e2d\u5fc3\u53cauhostid":5,"\u9700\u6307\u5b9aoffset":5,"\u9700\u8981":5,"\u9700\u8981\u4fdd\u7559\u7684vpc\u7f51\u6bb5":5,"\u9700\u8981\u5217\u51fa\u7684\u5907\u4efd\u6587\u4ef6\u7c7b\u578b":5,"\u9700\u8981\u5347\u7ea7\u7684\u7a7a\u95f4\u7684groupid":5,"\u9700\u8981\u5347\u7ea7\u7684\u7a7a\u95f4\u7684spaceid":5,"\u9700\u8981\u5378\u8f7d\u7684udisk\u5b9e\u4f8bid":5,"\u9700\u8981\u540c\u65f6\u8bbe\u7f6ebackupdate\u5b57\u6bb5":5,"\u9700\u8981\u548c":5,"\u9700\u8981\u5907\u4efd\u6587\u4ef6":5,"\u9700\u8981\u5927\u4e8e\u539fsize":5,"\u9700\u8981\u6062\u590d\u7684\u76d8id":5,"\u9700\u8981\u6302\u8f7d\u7684udisk\u5b9e\u4f8bid":5,"\u9700\u8981\u6307\u5b9a\u6570\u636e\u4e2d\u5fc3\u53cauhostid\u4e24\u4e2a\u53c2\u6570\u7684\u503c":5,"\u9700\u8981\u6307\u5b9amongo\u7684\u89d2\u8272":5,"\u9700\u8981\u6dfb\u52a0\u5185\u5bb9\u8f6c\u53d1\u7b56\u7565\u7684\u8d1f\u8f7d\u5747\u8861\u5b9e\u4f8bid":5,"\u9700\u8981\u6dfb\u52a0\u5185\u5bb9\u8f6c\u53d1\u7b56\u7565\u7684vserver\u5b9e\u4f8bid":5,"\u9700\u8981\u7ed9\u51fa\u6570\u636e\u4e2d\u5fc3":5,"\u9700\u8981\u8bbe\u7f6e\u6570\u636e\u65b9\u821f\u7684udisk\u7684id":5,"\u9700\u8981\u8fd4\u56de\u7684\u5171\u4eab\u5e26\u5bbdid":5,"\u975e\u5171\u4eab\u5e26\u5bbd":5,"\u975e\u5171\u4eab\u5e26\u5bbd\u6a21\u5f0f":5,"\u975e\u5171\u4eab\u5e26\u5bbd\u6a21\u5f0f\u5fc5\u987b\u6307\u5b9a\u975e0mbps\u5e26\u5bbd":5,"\u975e\u52a0\u5bc6\u76d8":5,"\u975e\u8d44\u6e90\u81ea\u8eabid":5,"\u975e\u9ed8\u8ba4\u9879\u76ee\u8d44\u6e90":5,"\u975essd\u8d44\u6e90\u4e0d\u518d\u63d0\u4f9b":5,"\u9879\u76ee\u4e0b\u6210\u5458\u6570\u91cf":5,"\u9879\u76ee\u4e0b\u8d44\u6e90\u6570\u91cf":5,"\u9879\u76ee\u540d\u79f0":5,"\u9879\u76ee\u603b\u6570":5,"\u9879\u76eeid":5,"\u9884\u4ed8\u8d39":5,"\u9999\u6e2f":5,"\u9ad8":5,"\u9ad8\u53ef\u7528":5,"\u9ad8\u53ef\u7528\u67b6\u6784":5,"\u9ad8\u53ef\u7528\u7248udb\u5b9e\u4f8b":5,"\u9ad8\u53ef\u7528\u90e8\u7f72\u5b9e\u4f8b":5,"\u9ad8\u6027\u80fdumem":5,"\u9ed1\u540d\u5355":5,"\u9ed8\u8ba4":5,"\u9ed8\u8ba41\u70b9":5,"\u9ed8\u8ba41g":5,"\u9ed8\u8ba41gb":5,"\u9ed8\u8ba424\u5c0f\u65f6":5,"\u9ed8\u8ba427017":5,"\u9ed8\u8ba43\u70b9":5,"\u9ed8\u8ba47\u6b21":5,"\u9ed8\u8ba480":5,"\u9ed8\u8ba4\u4e0d\u4f7f\u7528":5,"\u9ed8\u8ba4\u4e0d\u586b":5,"\u9ed8\u8ba4\u4e0d\u66f4\u6539":5,"\u9ed8\u8ba4\u4e0d\u8fd4\u56de":5,"\u9ed8\u8ba4\u4e0e\u6e90vpc\u540c\u5730\u57df":5,"\u9ed8\u8ba4\u4e0e\u6e90vpc\u540c\u9879\u76ee":5,"\u9ed8\u8ba4\u4e3a":5,"\u9ed8\u8ba4\u4e3a0":5,"\u9ed8\u8ba4\u4e3a1":5,"\u9ed8\u8ba4\u4e3a1\u53f0":5,"\u9ed8\u8ba4\u4e3a20":5,"\u9ed8\u8ba4\u4e3a24":5,"\u9ed8\u8ba4\u4e3a50":5,"\u9ed8\u8ba4\u4e3a\u4e0d\u66f4\u6539":5,"\u9ed8\u8ba4\u4e3a\u5168\u90e8\u5730\u57df":5,"\u9ed8\u8ba4\u4e3a\u5168\u90e8\u8d44\u6e90\u7c7b\u578b":5,"\u9ed8\u8ba4\u4e3a\u5168\u90e8\u9879\u76ee":5,"\u9ed8\u8ba4\u4e3a\u542f\u7528":5,"\u9ed8\u8ba4\u4e3a\u5f53\u524d\u5730\u57df\u7684\u9ed8\u8ba4\u5b50\u7f51":5,"\u9ed8\u8ba4\u4e3a\u5f53\u524d\u5730\u57df\u7684\u9ed8\u8ba4vpc":5,"\u9ed8\u8ba4\u4e3a\u6309\u6708\u4ed8\u8d39":5,"\u9ed8\u8ba4\u4e3a\u6708\u4ed8":5,"\u9ed8\u8ba4\u4e3a\u6807\u51c6\u955c\u50cf":5,"\u9ed8\u8ba4\u4e3a\u6e90vpc\u6240\u5728\u5730\u57df":5,"\u9ed8\u8ba4\u4e3a\u6e90vpc\u6240\u5728\u9879\u76eeid":5,"\u9ed8\u8ba4\u4e3a\u7a7a":5,"\u9ed8\u8ba4\u4e3a\u7acb\u5373\u5f00\u901a":5,"\u9ed8\u8ba4\u4e3a\u83b7\u53d6\u4e09\u79cd\u4ef7\u683c":5,"\u9ed8\u8ba4\u4e3a\u8fd4\u56de\u6240\u6709\u9632\u706b\u5899":5,"\u9ed8\u8ba4\u4e3abandwidth":5,"\u9ed8\u8ba4\u4e3adatadisk":5,"\u9ed8\u8ba4\u4e3adefault":5,"\u9ed8\u8ba4\u4e3afals":5,"\u9ed8\u8ba4\u4e3alocaldisk":5,"\u9ed8\u8ba4\u4e3ams_redi":5,"\u9ed8\u8ba4\u4e3aphost":5,"\u9ed8\u8ba4\u4e3asubnet":5,"\u9ed8\u8ba4\u4e3atrue":5,"\u9ed8\u8ba4\u4e3avip":5,"\u9ed8\u8ba4\u4f7f\u7528\u4e3b\u5e93\u7684\u914d\u7f6e":5,"\u9ed8\u8ba4\u4f7f\u7528\u539f\u955c\u50cf":5,"\u9ed8\u8ba4\u503c":5,"\u9ed8\u8ba4\u503c1":5,"\u9ed8\u8ba4\u503c\u4e3a":5,"\u9ed8\u8ba4\u503c\u4e3a0":5,"\u9ed8\u8ba4\u503c\u4e3a1":5,"\u9ed8\u8ba4\u503c\u4e3a10":5,"\u9ed8\u8ba4\u503c\u4e3a20":5,"\u9ed8\u8ba4\u503c\u4e3a60":5,"\u9ed8\u8ba4\u503c\u4e3a80":5,"\u9ed8\u8ba4\u503c\u4e3a\u5f53\u524d\u5b9e\u4f8b\u7684\u5185\u5b58\u5927\u5c0f":5,"\u9ed8\u8ba4\u503c\u4e3a\u5f53\u524d\u5b9e\u4f8b\u7684\u6570\u636e\u76d8\u5927\u5c0f":5,"\u9ed8\u8ba4\u503c\u4e3a\u5f53\u524d\u5b9e\u4f8b\u7684cpu\u6838\u6570":5,"\u9ed8\u8ba4\u503c\u4e3a\u7a7a":5,"\u9ed8\u8ba4\u503c\u4e3anormal":5,"\u9ed8\u8ba4\u503c\u662f\u8be5\u4e3b\u673a\u5f53\u524d\u6570\u636e\u76d8\u5927\u5c0f":5,"\u9ed8\u8ba4\u5168\u90e8\u83b7\u53d6":5,"\u9ed8\u8ba4\u5173\u95ed":5,"\u9ed8\u8ba4\u5173\u95ed\u4f1a\u8bdd\u4fdd\u6301":5,"\u9ed8\u8ba4\u5185\u5bb9\u8f6c\u53d1":5,"\u9ed8\u8ba4\u5185\u5bb9\u8f6c\u53d1\u7c7b\u578b\u4e0b\u4e3a\u7a7a":5,"\u9ed8\u8ba4\u5185\u5bb9\u8f6c\u53d1\u7c7b\u578b\u4e0b\u8fd4\u56de\u5f53\u524drs\u603b\u6570":5,"\u9ed8\u8ba4\u5185\u5bb9\u8f6c\u53d1\u89c4\u5219\u4e0b\u4e3a0":5,"\u9ed8\u8ba4\u5355\u4f4d\u79d2":5,"\u9ed8\u8ba4\u5373\u4e3a\u5916\u7f51\u6a21\u5f0f":5,"\u9ed8\u8ba4\u5f53":5,"\u9ed8\u8ba4\u662f":5,"\u9ed8\u8ba4\u662ffals":5,"\u9ed8\u8ba4\u662fno":5,"\u9ed8\u8ba4\u662fnormal":5,"\u9ed8\u8ba4\u666e\u901a":5,"\u9ed8\u8ba4\u6839\u636e\u914d\u7f6e\u673a\u578b":5,"\u9ed8\u8ba4\u7248\u672c3":5,"\u9ed8\u8ba4\u79fb\u51fa\u8be5\u5171\u4eab\u5e26\u5bbd\u4e0b\u6240\u6709\u7684eip":5,"\u9ed8\u8ba4\u8fd4\u56de\u6240\u6709\u7c7b\u578b":5,"\u9ed8\u8ba4\u9009\u9879":5,"\u9ed8\u8ba4\u914d\u7f6eid":5,"\u9ed8\u8ba4\u975eweb\u9632\u706b\u5899":5,"\u9ed8\u8ba4disabl":5,"\u9ed8\u8ba4dynam":5,"\u9ed8\u8ba4fals":5,"\u9ed8\u8ba4raid10":5,"\u9ed8\u8ba4redi":5,"\u9ed8\u8ba4root":5,"\u9ed8\u8ba4web\u9632\u706b\u5899":5,"api\u652f\u6301":5,"area\u548careacode\u4e24\u8005\u5fc5\u586b\u4e00\u4e2a":5,"bd\u5b9e\u4f8bid":5,"binlog\u5907\u4efd":5,"binlog\u6587\u4ef6\u540d":5,"binlog\u6587\u4ef6\u5927\u5c0f":5,"binlog\u6587\u4ef6\u751f\u6210\u65f6\u95f4":5,"binlog\u6587\u4ef6\u7ed3\u675f\u65f6\u95f4":5,"ca\u8bc1\u4e66":5,"ca\u8bc1\u4e66\u5206\u522b\u4f20\u8fc7\u6765":5,"class":[1,5],"cloudinit\u65b9\u5f0f\u4e0b":5,"configsvr\u8282\u70b9\u548c\u4ece\u5907\u4efd\u6062\u590d\u5b9e\u4f8b":5,"cpu\u4e2a\u6570":5,"cpu\u4e3b\u9891":5,"cpu\u578b\u53f7":5,"cpu\u6838\u6570":5,"dataset\u4e2d\u7684\u5143\u7d20\u4e2a\u6570":5,"db\u5173\u95ed\u72b6\u6001\u4e0b\u5347\u964d\u7ea7":5,"db\u5907\u4efd\u6587\u4ef6\u540d\u79f0":5,"db\u5b9e\u4f8b\u4f7f\u7528\u7684\u914d\u7f6e\u53c2\u6570\u7ec4id":5,"db\u5b9e\u4f8b\u4fee\u6539\u65f6\u95f4":5,"db\u5b9e\u4f8b\u521b\u5efa\u65f6\u95f4":5,"db\u5b9e\u4f8b\u5907\u4efd\u6587\u4ef6\u516c\u7f51\u7684\u5730\u5740":5,"db\u5b9e\u4f8b\u5907\u4efd\u6587\u4ef6\u5185\u7f51\u7684\u5730\u5740":5,"db\u5b9e\u4f8b\u5907\u4efd\u6587\u4ef6\u7684\u516c\u7f51\u5730\u5740":5,"db\u5b9e\u4f8b\u5907\u4efd\u6587\u4ef6\u7684\u5185\u7f51\u5730\u5740":5,"db\u5b9e\u4f8b\u5907\u4efdid":5,"db\u5b9e\u4f8b\u6240\u5728\u53ef\u7528\u533a":5,"db\u5b9e\u4f8b\u6570\u636e\u6587\u4ef6\u5927\u5c0f":5,"db\u5b9e\u4f8b\u65e5\u5fd7\u6587\u4ef6\u5927\u5c0f":5,"db\u5b9e\u4f8b\u7684id":5,"db\u5b9e\u4f8b\u78c1\u76d8\u5df2\u4f7f\u7528\u7a7a\u95f4":5,"db\u5b9e\u4f8b\u7c7b\u578b":5,"db\u5b9e\u4f8b\u7cfb\u7edf\u6587\u4ef6\u5927\u5c0f":5,"db\u5b9e\u4f8b\u865aip":5,"db\u5b9e\u4f8b\u865aip\u7684mac\u5730\u5740":5,"db\u5b9e\u4f8b\u89d2\u8272":5,"db\u5b9e\u4f8b\u8fc7\u671f\u65f6\u95f4":5,"db\u5b9e\u4f8bid":5,"db\u72b6\u6001\u6807\u8bb0":5,"db\u7684\u9ed1\u540d\u5355\u5217\u8868":5,"db\u79cd\u7c7b":5,"db\u7c7b\u578bid":5,"db\u8d2d\u4e70\u591a\u5c11\u4e2a":5,"dbid\u53ef\u901a\u8fc7describeudbinstance\u83b7\u53d6":5,"default":[1,5,6],"default\u5373\u4e3a\u672a\u5206\u7ec4":5,"disk\u6ce8\u91ca":5,"disks\u6570\u7ec4\u4e2d\u6709\u4e14\u53ea\u80fd\u6709\u4e00\u5757\u76d8\u662f\u7cfb\u7edf\u76d8":5,"eip\u5e26\u5bbd\u503c":5,"eip\u7684\u5916\u7f51\u5e26\u5bbd":5,"eip\u7684\u8ba1\u8d39\u6a21\u5f0f":5,"eip\u7684\u8d44\u6e90id":5,"eip\u8d44\u6e90id":5,"eipset\u4e2d\u7684\u5143\u7d20\u4e2a\u6570":5,"enable\u6216dis":5,"false\u4e3a\u672a\u5f00\u542f":5,"false\u52a0\u5bc6\u5fc5\u987b\u4f20\u5165\u5bf9\u5e94\u7684\u7684kmskeyid":5,"false\u6807\u8bc6\u53ea\u89e3\u7ed1eip":5,"false\u8868\u793a\u4e0d\u4f7f\u7528":5,"float":[1,5],"function":[1,2],"getprojectlist\u63a5\u53e3":5,"globalssh\u7684":5,"globalssh\u8986\u76d6\u7684\u5730\u533a":5,"gpu\u4e2a\u6570":5,"gpu\u5361\u6838\u5fc3\u6570":5,"gpu\u7c7b\u578b":5,"group\u7684id":5,"hadoop\u8282\u70b9":5,"import":[3,4,6],"initializing\u8868\u793a\u5728\u521d\u59cb\u5316":5,"int":[1,2,5],"ip\u4fe1\u606f":5,"ip\u5730\u5740":5,"ip\u5730\u5740\u5bf9\u5e94\u7684\u5b50\u7f51":5,"ip\u5730\u5740\u5bf9\u5e94\u7684vpc":5,"ip\u5bf9\u5e94\u5e26\u5bbd":5,"ip\u5bf9\u5e94\u7684\u5e26\u5bbd":5,"ip\u7c7b\u578b":5,"ip\u8d44\u6e90id":5,"ipv4\u6216\u8005ipv6":5,"isinudbc\u4e3atru":5,"kafka\u6d88\u606f\u961f\u5217":5,"keypair\u516c\u94a5":5,"leastconn\u53ea\u5728\u8bf7\u6c42\u4ee3\u7406\u4e2d\u4f7f\u7528":5,"limit\u7528\u4e8e\u5217\u8868\u64cd\u4f5c":5,"listentype\u4e3apacketstransmit\u65f6\u8868\u793a\u8fde\u63a5\u4fdd\u6301\u7684\u65f6\u95f4":5,"listentype\u4e3arequestproxy\u65f6\u8868\u793a\u7a7a\u95f2\u8fde\u63a5\u7684\u56de\u6536\u65f6\u95f4":5,"loginmode\u4e0d\u53ef\u53d8\u66f4":5,"loginmode\u4e3akeypair\u65f6\u6b64\u9879\u5fc5\u987b":5,"mac\u5730\u5740":5,"master\u5b9e\u4f8b\u7684dbid":5,"master\u8282\u70b9":5,"memcache\u7248\u672c\u4fe1\u606f":5,"mongodb\u5219\u4e0d\u9002\u7528":5,"mongodb\u591a\u79cd\u89d2\u8272":5,"mongodb\u6309\u7248\u672c\u7ec6\u5206\u5404\u6709\u4e00\u4e2aid":5,"mongodb\u6309\u7248\u672c\u7ec6\u5206\u67091":5,"mongodb\u9ed8\u8ba427017":5,"mysql\u533a\u5206mast":5,"mysql\u5b9e\u4f8b\u652f\u6301\u7269\u7406\u5907\u4efd":5,"mysql\u9ed8\u8ba43306":5,"n\u4e3a\u81ea\u7136\u6570":5,"n\u53ef\u4e3a0":5,"name\u5fc5\u987b\u586b\u5199":5,"nat\u7f51\u5173":5,"new":[1,3,4],"no\u4e3a\u4e0d\u53ef\u4ee5\u5347\u7ea7":5,"no\u4e3a\u5173\u95ed\u65b9\u821f":5,"none\u548cserverinsert":5,"none\u6216serverinsert":5,"normal\u548csata_ssd":5,"normal\u8868\u793a\u521d\u59cb\u5316\u5b8c\u6210":5,"ostype\u4e3aother\u65f6":5,"phost\u7684\u8d44\u6e90id\u6570\u7ec4":5,"phost\u8d44\u6e90id":5,"postgesql\u6309\u7248\u672c\u7ec6\u5206":5,"postgresql\u9ed8\u8ba45432":5,"primary\u8282\u70b9\u7684dbid":5,"public":[3,4],"quantity\u5c31\u662f2":5,"raid\u914d\u7f6e":5,"redhat\u7b49":5,"redis\u6240\u5728\u53ef\u7528\u533a":5,"redis\u65e0single\u7c7b\u578b":5,"redis\u7248\u672c\u4fe1\u606f":5,"redis\u7ec4\u540d\u79f0":5,"region\u4e2d\u7b26\u5408\u6761\u4ef6\u7684\u6240\u6709eip\u7684\u5e26\u5bbd\u7528\u91cf":5,"region\u4e2d\u7b26\u5408\u6761\u4ef6\u7684\u7684\u6240\u6709eip":5,"remark\u5fc5\u987b\u586b\u51991\u4e2a\u53ca\u4ee5\u4e0a":5,"remark\u90fd\u4e3a\u7a7a\u5219\u62a5\u9519":5,"return":[1,2,6],"routeruleid\u6765\u81eadescriberoutetable\u4e2d":5,"routetables\u5b57\u6bb5\u7684\u6570\u91cf":5,"rs\u5168\u90e8\u8fd0\u884c\u5f02\u5e38":5,"rs\u5168\u90e8\u8fd0\u884c\u6b63\u5e38":5,"rs\u5bf9\u5e94\u7684uhost":5,"rs\u7684\u8d44\u6e90id":5,"rs\u90e8\u5206\u8fd0\u884c\u5f02\u5e38":5,"rssd\u6570\u636e\u76d8":5,"shardsrv\u5206\u4e3adatanode\u548carbiter\u4e24\u79cd\u6a21\u5f0f":5,"slave\u6240\u5728\u53ef\u7528\u533a":5,"slowlog\u5907\u4efd":5,"source\u548cweightroundrobin\u5728\u8bf7\u6c42\u4ee3\u7406\u548c\u62a5\u6587\u8f6c\u53d1\u4e2d\u4f7f\u7528":5,"sqlserver\u5e10\u53f7":5,"ssd\u4e91\u76d8":5,"ssd\u5927\u5bb9\u91cf\u673a\u578b":5,"ssd\u6570\u636e\u76d8":5,"ssd\u673a\u578b":5,"ssd\u76d8":5,"ssd\u7c7b\u578b":5,"ssd\u7cfb\u7edf\u76d8":5,"ssd\u9ad8\u6027\u80fd\u5927\u5bb9\u91cf\u673a\u578b":5,"ssd\u9ad8\u6027\u80fd\u673a\u578b":5,"ssh\u767b\u9646\u7aef\u53e3":5,"ssh\u7aef\u53e3":5,"ssl\u8bc1\u4e66\u7684\u540d\u5b57":5,"ssl\u8bc1\u4e66\u7684\u5b8c\u6574\u5185\u5bb9":5,"ssl\u8bc1\u4e66\u7684id":5,"static":5,"super":5,"tablename\u4e3a\u6307\u5b9a\u8868":5,"tag\u5fc5\u987b\u586b\u5199":5,"tag\u7684\u4e2a\u6570":5,"timerange\u65f6\u95f4\u6bb5\u5185\u751f\u6548":5,"timestamp\u8868\u793a":5,"true":5,"true\u4e3a\u5f00\u542f":5,"true\u5220\u9664":5,"true\u8868\u793a\u4f1a\u91ca\u653e\u7ed1\u5b9a\u7684eip":5,"true\u8868\u793a\u903b\u8f91\u5907\u4efd\u65f6\u662f\u4f7f\u7528":5,"try":[3,4],"types\u4f5c\u4e3atype\u7684\u8865\u5145":5,"ucloud\u673a\u623f\u4ee3\u53f7\u6784\u6210\u7684\u6570\u7ec4":5,"udb\u5b9e\u4f8b\u6a21\u5f0f\u7c7b\u578b":5,"udb\u5b9e\u4f8b\u7684\u914d\u7f6e":5,"udb\u5b9e\u4f8b\u7684db\u7248\u672c\u5b57\u7b26\u4e32":5,"udb\u5b9e\u4f8b\u7c7b\u578b":5,"udb\u5b9e\u4f8b\u90e8\u7f72\u6a21\u5f0f":5,"udb\u6570\u636e\u5e93\u673a\u578b":5,"udb\u6570\u636e\u5e93\u673a\u578bid":5,"udbcid\u4e3a\u7a7a":5,"udisk\u540d\u5b57":5,"udisk\u5b9e\u4f8bid":5,"ufile\u79c1\u6709\u7a7a\u95f4\u5730\u5740":5,"uhost\u4e3b\u673a\u7684\u8d44\u6e90id":5,"uhost\u4e3b\u673a\u7684\u8d44\u6e90id\u6570\u7ec4":5,"uhost\u5b9e\u4f8b\u540d\u79f0":5,"uhost\u5b9e\u4f8b\u8d44\u6e90id":5,"uhost\u5b9e\u4f8bid":5,"uhost\u5b9e\u4f8bid\u96c6\u5408":5,"uhost\u5bc6\u7801":5,"uhost\u65b0\u5bc6\u7801":5,"uhost\u8d44\u6e90id":5,"uhostinstance\u603b\u6570":5,"ukmsmode\u4e3ayes\u65f6":5,"ulb\u540e\u7aefid":5,"ulb\u6240\u5728\u7684vpc\u7684id":5,"ulb\u6240\u5c5e\u7684\u4e1a\u52a1\u7ec4id":5,"ulb\u6240\u5c5e\u7684\u5b50\u7f51id":5,"ulb\u6240\u5c5e\u7684vpc":5,"ulb\u7684\u5185\u7f51ip":5,"ulb\u7684\u521b\u5efa\u65f6\u95f4":5,"ulb\u7684\u5230\u671f\u65f6\u95f4":5,"ulb\u7684\u8be6\u7ec6\u4fe1\u606f\u5217\u8868":5,"ulb\u8d44\u6e90id":5,"umem\u5185\u5b58\u7a7a\u95f4id":5,"umem\u5b9e\u4f8b\u8bbf\u95eeip":5,"umem\u5b9e\u4f8b\u8bbf\u95eeport":5,"unix\u65f6\u95f4\u6233":5,"uredis\u5bc6\u7801":5,"utc\u65f6\u95f4\u683c\u5f0f":5,"v1\u7248\u672c\u6982\u5ff5":5,"v2\u7248\u672c\u6982\u5ff5":5,"vip\u540d":5,"vip\u6570\u91cf":5,"vnc\u767b\u5f55\u7aef\u53e3":5,"vnc\u767b\u5f55ip":5,"vpc\u5173\u8054\u7684ipv6\u7f51\u6bb5":5,"vpc\u5173\u8054\u7684ipv6\u7f51\u6bb5\u6240\u5c5e\u8fd0\u8425\u5546":5,"vpc\u540d\u5b57":5,"vpc\u540d\u79f0":5,"vpc\u5730\u5740\u7a7a\u95f4":5,"vpc\u7684\u5730\u5740\u7a7a\u95f4":5,"vpc\u7684id":5,"vpc\u77edid":5,"vpc\u7c7b\u578b":5,"vpc\u7f51\u6bb5":5,"vpc\u8d44\u6e90id":5,"vserver\u4f1a\u8bdd\u4fdd\u6301\u65b9\u5f0f":5,"vserver\u4f1a\u8bdd\u4fdd\u6301\u6a21\u5f0f":5,"vserver\u534f\u8bae\u7c7b\u578b":5,"vserver\u540e\u7aef\u7aef\u53e3":5,"vserver\u5b9e\u4f8b\u540d\u79f0":5,"vserver\u5b9e\u4f8b\u7684\u534f\u8bae":5,"vserver\u5b9e\u4f8b\u7684\u540d\u5b57":5,"vserver\u5b9e\u4f8b\u7684id":5,"vserver\u5b9e\u4f8bid":5,"vserver\u670d\u52a1\u7aef\u53e3":5,"vserver\u7684\u8fd0\u884c\u72b6\u6001":5,"vserver\u8d1f\u8f7d\u5747\u8861\u6a21\u5f0f":5,"vserver\u8d1f\u8f7d\u5747\u8861\u7684\u6a21\u5f0f":5,"web\u63a8\u8350\u9632\u706b\u5899":5,"ws\u7b49":5,"year\u7b49":5,"yes\u4e3a\u5f00\u542f\u65b9\u821f":5,"yes\u5373\u53ef\u4ee5\u5347\u7ea7":5,"zone\u4e0d\u586b\u8868\u793a\u591a\u53ef\u7528\u533a":5,For:6,IPs:5,SAS:5,Yes:5,a9q2:5,abc7:5,abcdefghijklmnopqrstuvwxyz:2,abov:[3,4],acceleratingdomain:5,accept:1,access:[3,4],account:1,accountnam:5,achiev:[2,6],action:1,add:[1,5,6],add_vpc_network:5,address:5,addvpcnetwork:5,admin:5,administr:5,adminpassword:5,adminus:5,after:2,agent:1,alarmtemplateid:5,all:[2,6],allocate_backend:5,allocate_backend_batch:5,allocate_eip:5,allocate_share_bandwidth:5,allocate_udpn:5,allocate_vip:5,allocatebackend:5,allocatebackendbatch:5,allocateeip:5,allocatesharebandwidth:5,allocateudpn:5,allocatevip:5,allow:[5,6],allowedv:5,also:[1,6],ani:2,apach:3,api:[1,4],apikei:1,apivers:5,append:1,applytyp:5,area:5,areacod:5,areaset:5,arg:1,argument:[1,2],arkswitchen:5,associate_eip_with_share_bandwidth:5,associate_route_t:5,associateeipwithsharebandwidth:5,associateroutet:5,attach:5,attach_udisk:5,attachudisk:5,attribut:1,auth:[1,5],authent:[3,4],authstat:5,auto:[1,5],autobackup:5,autorenew:5,avail:[1,5],b1d0:5,b64d:5,b64decod:2,b64encod:[2,3,4],back:6,backend:[1,5],backendid:5,backendset:5,backoff:[1,2],backoff_factor:1,backup:5,backup_udb_inst:5,backup_udb_instance_binlog:5,backup_udb_instance_error_log:5,backup_udb_instance_slow_log:5,backupbegintim:5,backupblacklist:5,backupcount:5,backupd:5,backupdur:5,backupendtim:5,backupfil:5,backupid:5,backupmethod:5,backupnam:5,backuppath:5,backups:5,backupswitch:5,backuptim:5,backuptyp:5,backupudbinst:5,backupudbinstancebinlog:5,backupudbinstanceerrorlog:5,backupudbinstanceslowlog:5,backupurl:5,backupzon:5,bandwidth:5,bandwidthguarante:5,bandwidthpackageid:5,bandwidthtyp:5,bandwidthupperlimit:5,bar:1,base64:[2,5],base64ugfzc3dvcmqx:5,base:5,base_url:1,baseurl:1,basicimageid:5,basicimagenam:5,bce8:5,befor:2,beforetim:5,begintim:5,belong:1,between:6,bgp:5,bind:[3,4],bind_eip:5,bind_ssl:5,bindeip:5,bindssl:5,binlog:5,binlog_backup:5,bitmap:5,bj1:5,bj2:[1,3,4,5,6],bkk:5,blacklist:5,bool:5,boot:5,bootdiskspac:5,bootdiskst:5,broadwel:5,builtin:1,busi:5,businessid:5,bwtype:5,c245:5,c6b9a46fd801:5,cacert:5,calcul:1,call:2,can:[1,3,4,6],cannot:[3,4],cascadelak:5,chang:3,chargenam:5,chargetyp:5,check:[1,6],check_recover_udb_inst:5,check_udb_instance_to_ha_allow:5,checkrecoverudbinst:5,checkudbinstancetohaallow:5,chinamobil:5,citi:5,cjksa2:5,classtyp:5,clear_udb_log:5,clearudblog:5,client:[3,4,5],clienttimeout:5,clone:[3,4,5],clone_route_t:5,clone_udisk:5,clone_udisk_snapshot:5,cloneen:5,cloneroutet:5,cloneudisk:5,cloneudisksnapshot:5,cloud:2,cloud_ssd:[3,4],cluserrol:5,cluster:5,clusterrol:5,cmk:5,cmkid:5,cmkidalia:5,cmkidstatu:5,code:[1,3,4,5],com:[3,4],comment:5,companynam:5,complet:6,compon:5,config:[3,5],configfail:5,configid:5,configsrv_csr:5,configsrv_sccc:5,configsvr:5,configsvrid:5,connect:5,consistenthash:5,consistenthashport:5,content:5,copy_custom_imag:5,copycustomimag:5,core:[3,4,6],corecount:5,could:[1,3,4],count:5,couponid:5,cpu:[3,4,5,6],cpuset:5,creat:[2,3,4,5,6],create_bandwidth_packag:5,create_custom_imag:5,create_firewal:5,create_global_ssh_inst:5,create_phost:5,create_polici:5,create_project:5,create_route_t:5,create_ssl:5,create_subnet:5,create_udb_inst:5,create_udb_instance_by_recoveri:5,create_udb_param_group:5,create_udb_replication_inst:5,create_udb_route_inst:5,create_udb_slav:5,create_udisk:5,create_udisk_snapshot:5,create_uhost_inst:[3,4,5,6],create_ulb:5,create_umem_cache_group:5,create_umem_spac:5,create_uredis_group:5,create_vpc:5,create_vpc_intercom:5,create_vserv:5,createbandwidthpackag:5,createcustomimag:5,createfail:5,createfirewal:5,createglobalsshinst:5,createphost:5,createpolici:5,createproject:5,createroutet:5,createssl:5,createsubnet:5,createtim:5,createudbinst:5,createudbinstancebyrecoveri:5,createudbparamgroup:5,createudbreplicationinst:5,createudbrouteinst:5,createudbslav:5,createudisk:5,createudisksnapshot:5,createuhostinst:[1,5],createuhostinstanceparamdisk:5,createuhostinstanceparamnetworkinterfac:5,createuhostinstanceparamnetworkinterfaceeip:5,createuhostinstanceparamnetworkinterfaceeipglobalssh:5,createulb:5,createumemcachegroup:5,createumemspac:5,createuredisgroup:5,createvpc:5,createvpcintercom:5,createvserv:5,cred:1,credenti:1,curbandwidth:5,current:[3,4],custom:[2,5,6],d4411ab30953fb0bbcb1e7313081f05e4e91a394:1,data:[1,5],dataark:5,datadisk:5,datafiles:5,datakei:5,dataset:5,dbaudit:5,dbclustertyp:5,dbid:5,dbname:5,dbtypeid:5,decod:2,def:[1,6],defin:5,delai:[1,6],delet:5,delete_bandwidth_packag:5,delete_firewal:5,delete_global_ssh_inst:5,delete_polici:5,delete_route_t:5,delete_ssl:5,delete_subnet:5,delete_udb_backup:5,delete_udb_inst:5,delete_udb_log_packag:5,delete_udb_param_group:5,delete_udisk:5,delete_udisk_snapshot:5,delete_ulb:5,delete_umem_cache_group:5,delete_umem_spac:5,delete_uredis_group:5,delete_vpc:5,delete_vpc_intercom:5,delete_vserv:5,deletebandwidthpackag:5,deletefail:5,deletefirewal:5,deleteglobalsshinst:5,deletepolici:5,deleteroutet:5,deletessl:5,deletesubnet:5,deleteudbbackup:5,deleteudbinst:5,deleteudblogpackag:5,deleteudbparamgroup:5,deleteudisk:5,deleteudisksnapshot:5,deleteulb:5,deleteumemcachegroup:5,deleteumemspac:5,deleteuredisgroup:5,deletevpc:5,deletevpcintercom:5,deletevserv:5,describe_bandwidth_packag:5,describe_bandwidth_usag:5,describe_eip:5,describe_firewal:5,describe_firewall_resourc:5,describe_global_ssh_area:5,describe_global_ssh_inst:5,describe_imag:5,describe_phost:5,describe_phost_imag:5,describe_phost_tag:5,describe_route_t:5,describe_share_bandwidth:5,describe_ssl:5,describe_subnet:5,describe_subnet_resourc:5,describe_udb_backup:5,describe_udb_backup_blacklist:5,describe_udb_binlog_backup_url:5,describe_udb_inst:5,describe_udb_instance_backup_st:5,describe_udb_instance_backup_url:5,describe_udb_instance_binlog:5,describe_udb_instance_binlog_backup_st:5,describe_udb_instance_pric:5,describe_udb_instance_st:5,describe_udb_instance_upgrade_pric:5,describe_udb_log_backup_url:5,describe_udb_log_packag:5,describe_udb_param_group:5,describe_udb_typ:5,describe_udisk:5,describe_udisk_pric:5,describe_udisk_snapshot:5,describe_udisk_upgrade_pric:5,describe_udpn:5,describe_uhost_inst:[5,6],describe_uhost_tag:5,describe_ulb:5,describe_umem_cache_group:5,describe_umem_cache_pric:5,describe_umem_cache_upgrade_pric:5,describe_umem_pric:5,describe_umem_spac:5,describe_umem_upgrade_pric:5,describe_uredis_backup:5,describe_uredis_backup_url:5,describe_uredis_group:5,describe_uredis_pric:5,describe_uredis_upgrade_pric:5,describe_vip:5,describe_vpc:5,describe_vpc_intercom:5,describe_vserv:5,describebandwidthpackag:5,describebandwidthusag:5,describeeip:5,describefirewal:5,describefirewallresourc:5,describeglobalssharea:5,describeglobalsshinst:5,describeimag:5,describephost:5,describephostimag:5,describephosttag:5,describeroutet:5,describesecuritygroup:5,describesharebandwidth:5,describessl:5,describesubnet:5,describesubnetresourc:5,describeudbbackup:5,describeudbbackupblacklist:5,describeudbbinlogbackupurl:5,describeudbinst:5,describeudbinstancebackupst:5,describeudbinstancebackupurl:5,describeudbinstancebinlog:5,describeudbinstancebinlogbackupst:5,describeudbinstancepric:5,describeudbinstancest:5,describeudbinstanceupgradepric:5,describeudblogbackupurl:5,describeudblogpackag:5,describeudbparamgroup:5,describeudbtyp:5,describeudisk:5,describeudiskpric:5,describeudisksnapshot:5,describeudiskupgradepric:5,describeudpn:5,describeuhostinst:5,describeuhosttag:5,describeulb:5,describeumemcachegroup:5,describeumemcachepric:5,describeumemcacheupgradepric:5,describeumempric:5,describeumemspac:5,describeumemupgradepric:5,describeuredisbackup:5,describeuredisbackupurl:5,describeuredisgroup:5,describeuredispric:5,describeuredisupgradepric:5,describevip:5,describevpc:5,describevpcintercom:5,describevserv:5,descript:5,descriptor:1,destroi:5,detach:5,detach_udisk:5,detachudisk:5,detail:1,devicenam:5,dict:[1,5],disabl:5,disablesemisync:5,disabletim:5,disassociate_eip_with_share_bandwidth:5,disassociateeipwithsharebandwidth:5,disk:[3,4,5],diskid:5,diskpassword:5,diskset:5,diskspac:5,disktyp:5,diskuseds:5,distinguish:1,dnsserver:5,doc:1,docker:5,document:[1,3],domain:5,doubl:5,drive:5,drop:5,dstaddr:5,dstport:5,dstprojectid:5,dstregion:5,dstvpcid:5,duplet:5,dure:1,dynam:5,e87ab3b8a1ea:5,earliesttim:5,echo:5,edit_udb_backup_blacklist:5,editudbbackupblacklist:5,eip:[3,4,5],eipaddr:5,eipaddrset:5,eipbandwidth:5,eipid:5,eippaymod:5,eippaymodeset:5,eippricedetailset:5,eipset:5,eipsetdata:5,els:[3,4,6],enabl:[1,5],enabletim:5,encod:2,encrypt:5,end:1,endtim:5,env:1,environ:1,equal:1,error:[1,5],errorinfo:5,errorlog_backup:5,everi:1,exampl:6,exc:[3,4],except:[3,4],expect:2,experi:6,expir:5,expiredtim:5,expiretim:5,exponenti:[1,6],f8a2:5,factor:1,fail:[2,5],fals:5,featur:[5,6],fetch_udb_instance_earliest_recover_tim:5,fetchudbinstanceearliestrecovertim:5,field:6,financ:5,finish:6,firewalldataset:5,firewallruleset:5,first:2,foo:1,forc:5,forcebackup:5,forcedump:5,forcetokil:5,format:5,formattyp:5,fortresshost:5,found:1,fra:5,free:[3,5],freez:5,frequenc:5,from:[3,4,6],frontendport:5,full:1,functyp:5,fwid:5,gatewai:5,gen_password:[2,3,4],gener:[2,3,4],get:[3,4,6],get_eip_pay_mod:5,get_eip_pric:5,get_eip_upgrade_pric:5,get_phost_pric:5,get_project_list:5,get_region:5,get_udpn_line_list:5,get_udpn_pric:5,get_udpn_upgrade_pric:5,get_uhost_instance_pric:5,get_uhost_instance_vnc_info:5,get_uhost_upgrade_pric:5,get_umem_space_st:5,get_user_info:5,geteippaymod:5,geteippric:5,geteipupgradepric:5,getphostpric:5,getprojectlist:5,getregion:5,getudpnlinelist:5,getudpnpric:5,getudpnupgradepric:5,getuhostinstancepric:5,getuhostinstancepriceparamdisk:5,getuhostinstancevncinfo:5,getuhostupgradepric:5,getumemspacest:5,getuserinfo:5,git:[3,4],github:[3,4],globalssh:5,globalssharea:5,globalsshinfo:5,gpu:5,gputyp:5,grant_firewal:5,grantfirewal:5,groupid:5,groupnam:5,haarch:5,hadoophost:5,handler:1,haproxi:5,has:6,hashvalu:5,hasnatgw:5,haswel:5,have:1,header:5,helper:[3,6],here:[3,4],high:5,highavail:5,hosttyp:5,hotplugfeatur:5,http:[1,3,4,5],identifi:1,imag:[3,4],image_id:[3,4],imagedescript:5,imageid:[3,4,5],imagenam:5,images:5,imageset:5,imagetyp:5,implement:1,import_custom_imag:5,importcustomimag:5,improv:6,includeslav:5,index:[1,3],industrytyp:5,info:1,inform:1,init:5,initi:5,initializ:5,innerbackuppath:5,innermod:5,input:2,inrecycl:5,inst:6,instal:5,installag:5,installfail:5,instanc:[5,6],instanceid:5,instancemod:5,instanceset:5,instancetyp:5,instancetypeid:5,integ:6,integratedsoftwar:5,intel:5,intern:5,internet:[3,4],interv:2,inus:5,invalid:6,invok:[1,6],iocap:5,ipaddr:5,ipid:5,ipsec:5,ipset:5,ipv4:5,ipv6:5,ipv6address:5,ipv6network:5,ipvers:5,is_acc:1,is_ut:1,isarbit:5,isboot:5,isdefault:5,isexpir:5,isfin:5,isforc:5,isinudbc:5,islock:5,isolationgroup:5,issu:3,issupportkvm:5,isudiskavail:5,ivybridg:5,jpn:5,k80:5,kei:[1,3,4,5],keypair:5,kms:5,kmskeyid:5,kwarg:[1,5],l342dab130gf:5,lambda:[2,6],lastesttim:5,leastconn:5,len:[1,2],length:2,letter:2,level:[1,6],librari:3,licens:3,lifecycl:[5,6],like:1,limit:5,link:5,linux:[3,5],list:[1,2,5],listentyp:5,liunx:5,localdisk:5,localregion:5,log:1,log_level:1,log_param:6,log_request:6,log_respons:6,logfiles:5,logger:[1,5],logic:[5,6],loginmod:[3,4,5],loglevel:1,logpackagedataset:5,logtyp:5,low:5,lower_lett:2,lowercas:2,macaddr:5,machinetyp:5,maco:3,make:5,manual:5,mariadb:5,master:5,masterdbid:5,mastergroupid:5,match:[5,6],max:[1,2],max_backoff_interv:2,max_retri:1,maxcount:5,maxretri:1,medium:5,membercount:5,memcach:5,memori:[3,4,5],memorylimit:5,memorys:5,messag:5,method:[3,4,5],mget_uhost_st:6,middlewar:[3,5],min_backoff_interv:2,min_low:2,min_numb:2,min_speci:2,min_upp:2,minim:2,minimalcpu:5,minimalcpuplatform:5,miss:6,mmapv1:5,mod:1,model:5,modifi:5,modify_eip_bandwidth:5,modify_eip_weight:5,modify_global_ssh_port:5,modify_global_ssh_remark:5,modify_phost_info:5,modify_project:5,modify_route_rul:5,modify_udb_instance_nam:5,modify_udb_instance_password:5,modify_udpn_bandwidth:5,modify_uhost_instance_nam:5,modify_uhost_instance_remark:5,modify_uhost_instance_tag:5,modify_umem_space_nam:5,modify_uredis_group_nam:5,modifyeipbandwidth:5,modifyeipweight:5,modifyglobalsshport:5,modifyglobalsshremark:5,modifyphostinfo:5,modifyproject:5,modifyrouterul:5,modifytim:5,modifyudbinstancenam:5,modifyudbinstancepassword:5,modifyudpnbandwidth:5,modifyuhostinstancenam:5,modifyuhostinstanceremark:5,modifyuhostinstancetag:5,modifyumemspacenam:5,modifyuredisgroupnam:5,mongo:5,mongodb:5,monitortyp:5,month:5,more:1,most:1,ms_redi:5,multiattach:5,must:1,my_private_kei:1,my_public_kei:1,myapp:1,mysql:5,name:[3,4,5],natgw:5,netcap:5,netcapvalu:5,netenhanced_ultra:5,netmask:5,network:[1,5],networkid:5,networkinfo:5,networkinterfac:5,networkst:5,nexthopid:5,nexthoptyp:5,nocmkid:5,non:5,none:[1,5],noraid:5,normal:5,normal_volum:5,nosql:5,notconnect:5,note:1,number:[1,2],number_lett:2,object:1,objectid:5,occur:1,off:[5,6],offset:5,onli:[3,4],openapi:1,operatornam:5,option:1,organ:1,osnam:5,ostyp:5,outermod:5,output:2,p40:5,packetstransmit:5,page:3,paramet:[1,2],paramgroupid:5,paramgrouptypeid:5,parammemb:5,parentid:5,parentnam:5,password1:5,password:[2,3,4,5],path:5,pathx:3,pathxclient:5,paymod:5,pci:5,pcie_ssd:5,pcie_ssd_volum:5,peer1:5,peer2:5,pem:5,pend:[2,6],percona:5,persistenceinfo:5,persistencetyp:5,phoneprefix:5,phost:5,phostcpuset:5,phostdiskset:5,phostid:5,phostimageset:5,phostipset:5,phostpriceset:5,phostset:5,phosttagset:5,phosttyp:5,pip:[3,4],pmstatu:5,polici:[1,6],policybackendset:5,policyid:5,policyprior:5,policyset:5,policytyp:5,port:5,posit:1,postgresql:5,postpai:5,postpaystarttim:5,poweroff_phost:5,poweroff_uhost_inst:5,poweroffphost:5,poweroffuhostinst:5,powerst:5,pre:1,pre_check_env:1,prepar:1,price:5,priceset:5,primari:5,print:[1,3,4,6],prioriti:5,privat:[3,4,5],private_kei:[1,3,4],privateip:5,privatekei:5,privatemac:5,problem:1,producttyp:5,project:1,project_id:[1,3,4],projectcount:5,projectid:[1,5],projectlistinfo:5,projectnam:5,projectset:5,promot:5,promote_udb_instance_to_ha:5,promote_udb_slav:5,promoteudbinstancetoha:5,promoteudbslav:5,protocol:5,protocoltyp:5,provid:6,provinc:5,public_kei:[1,3,4],pull:3,purchasevalu:5,pvft_enum:5,pvft_rang:5,python2:[3,4],python:[1,4,6],qcow2:5,quantiti:5,raid0:5,raid10:5,raid1:5,raid5:5,raid:5,raidsupport:5,rais:6,reach:6,readi:2,realip:5,reboot:5,reboot_phost:5,reboot_uhost_inst:5,rebootphost:5,rebootuhostinst:5,receiv:1,recommend:5,recov:5,recoverytim:5,redi:5,refresh:[2,6],region:[1,3,4,5,6],regionflag:5,regionid:5,regioninfo:5,regionnam:5,regionset:5,regist:1,reinstall_phost:5,reinstall_uhost_inst:5,reinstallphost:5,reinstalluhostinst:5,release_backend:5,release_eip:5,release_share_bandwidth:5,release_udpn:5,release_vip:5,releasebackend:5,releaseeip:5,releasesharebandwidth:5,releaseudisk:5,releaseudpn:5,releasevip:5,remark:5,remot:6,remoteregion:5,remov:6,rename_udisk:5,renameudisk:5,req:[1,5,6],request:[1,3,5,6],request_handl:1,requestproxi:5,requeststransport:[1,6],requir:[1,3,5,6],reservedisk:5,reset_uhost_instance_password:5,resetuhostinstancepassword:5,resiz:5,resize_attached_disk:5,resize_share_bandwidth:5,resize_udb_inst:5,resize_udisk:5,resize_udredis_spac:5,resize_uhost_inst:5,resize_umem_spac:5,resize_uredis_group:5,resizeattacheddisk:5,resizefail:5,resizesharebandwidth:5,resizeudbinst:5,resizeudisk:5,resizeudredisspac:5,resizeuhostinst:5,resizeumemspac:5,resizeuredisgroup:5,resourc:[1,3,5,6],resourcecount:5,resourceid:5,resourcenam:5,resourceset:5,resourcetyp:5,resp:[1,3,4,6],respons:[1,5,6],response_handl:1,restart_udb_inst:5,restart_umem_cache_group:5,restartudbinst:5,restartumemcachegroup:5,restor:5,restore_udisk:5,restorefail:5,restoreudisk:5,retri:[1,6],rewritetim:5,role:5,roundrobin:5,rout:5,routerul:5,routeruleid:5,routeruleinfo:5,routet:5,routetableid:5,routetableinfo:5,routetabletyp:5,rssddatadisk:5,rule:5,ruleact:5,ruletyp:5,run:[2,3,5],runtim:6,s_redi:5,sata:5,sata_ssd:5,sata_ssd_volum:5,sdk:[1,4,6],search:3,securitygroupid:5,see:1,send:1,sentinel:5,seoul:5,serverinsert:5,servic:[1,3,4],set:1,set_eip_pay_mod:5,set_udisk__udataark_mod:5,seteippaymod:5,setid:5,setudiskudataarkmod:5,setup:[3,4],sh1:5,sh2:5,sharded_clust:5,shardsrv:5,shardsrv_arbit:5,shardsrv_datanod:5,shardsvr:5,sharebandwidth:5,sharebandwidthguarante:5,sharebandwidthid:5,sharebandwidthnam:5,sharebandwidthset:5,should:1,shutdown:5,shutoff:5,signatur:1,singl:5,size:[3,4,5],skylak:5,slave:5,slavedbid:5,slavezon:5,slow:5,slow_query_backup:5,snapen:5,snapshot:5,snapshotcount:5,snapshotid:5,snapshotlimit:5,snapshottim:5,softwar:3,some:6,sourc:[1,2,3,4,5],sourceid:5,sourceimageid:5,sourceport:5,space:5,spaceid:5,special:2,special_lett:2,specif:2,sql:5,sqlserver:5,srcdbid:5,srcgroupid:5,srcid:5,srcip:5,ssddatadisk:5,ssdsystemdisk:5,ssdtype:5,sslcontent:5,sslid:5,sslname:5,sslset:5,ssltype:5,start:[5,6],start_phost:5,start_udb_inst:5,start_uhost_inst:5,startafterupgrad:5,startphost:5,startudbinst:5,startuhostinst:5,startup_delai:2,state:[3,5],statu:[1,5],status_forcelist:1,stop:[5,6],stop_udb_inst:5,stop_uhost_inst:[5,6],stopudbinst:5,stopuhostinst:5,storagetyp:5,store:1,str:[1,2,5],string:[2,5],sub:1,subnet:5,subnetcount:5,subnetid:5,subnetinfo:5,subnetnam:5,subnetresourc:5,subnettyp:5,subresourceid:5,subresourcenam:5,subresourcetyp:5,success:5,switch_udb_instance_to_ha:5,switchudbinstancetoha:5,sys:5,system:[1,3],systemdisk:5,systemfiles:5,tag:5,tagset:5,target:[2,6],targetimagedescript:5,targetimageid:5,targetimagenam:5,targetip:5,targetprojectid:5,targetregion:5,tcp:5,telecom:5,termin:2,terminate_custom_imag:5,terminate_phost:5,terminate_project:5,terminate_uhost_inst:[5,6],terminatecustomimag:5,terminatephost:5,terminateproject:5,terminateuhostinst:5,test:[3,5],test_id:5,than:1,thi:3,time:[1,2],timemachinefeatur:5,timeout:[1,2,6],timerang:5,timestamp:5,tky:5,total:[1,2],totalbandwidth:5,totalcount:5,totaldiskspac:5,traffic:5,transport:[3,5],trial:5,tupl:1,twice:6,type:[3,4,5],uaccount:3,uaccountcli:5,ubuntu:5,ucdr:5,ucloud:[1,2,4,6],ucloudexcept:[3,4],udataark:5,udataarkmod:5,udb:[2,3],udbbackupset:5,udbcid:5,udbclient:5,udbinstancebinlogset:5,udbinstancepriceset:5,udbinstanceset:5,udbparamgroupset:5,udbparammemberset:5,udbslaveinstanceset:5,udbtypeset:5,udhost:5,udisk:3,udiskcli:5,udiskdataset:5,udiskid:5,udisknam:5,udiskpricedataset:5,udisksnapshotset:5,udock:5,udockhost:5,udp:5,udpn:3,udpnclient:5,udpndata:5,udpnid:5,udpnlineset:5,udw:5,ufileurl:5,ufortress:5,ufortress_host:5,uhadoop:5,uhadoop_host:5,uhiv:5,uhost:[2,3,4,6],uhost_id:6,uhostcli:5,uhostdiskset:5,uhostid:[5,6],uhostimageset:5,uhostinstanceset:5,uhostip:5,uhostipset:5,uhostnam:5,uhostpriceset:5,uhostset:[5,6],uhosttagset:5,uhosttyp:5,ukafka:5,ukmsmod:5,ulb:3,ulbbackendset:5,ulbclient:5,ulbid:5,ulbipset:5,ulbnam:5,ulbpolicyset:5,ulbset:5,ulbsslset:5,ulbtyp:5,ulbvserverset:5,ultra:5,umem:3,umemcach:5,umemcachegroupset:5,umemcachepriceset:5,umemcli:5,umempriceset:5,umemspaceaddressset:5,umemspaceset:5,un_bind_eip:5,unatgw:5,unavail:5,unbind_ssl:5,unbindeip:5,unbindssl:5,unet:3,unetallocateeipset:5,unetbandwidthpackageset:5,unetbandwidthusageeipset:5,unetcli:5,uneteipaddrset:5,uneteipresourceset:5,uneteipset:5,unetsharebandwidthset:5,uni:5,unicom:5,uniqu:1,unit:1,unix:5,unknown:5,unless:[3,4],updat:5,update_backend_attribut:5,update_eip_attribut:5,update_firewal:5,update_firewall_attribut:5,update_polici:5,update_route_table_attribut:5,update_subnet_attribut:5,update_udb_instance_backup_strategi:5,update_udb_instance_slave_backup_switch:5,update_udb_param_group:5,update_ulb_attribut:5,update_vpc_network:5,update_vserver_attribut:5,updatebackendattribut:5,updatebackendattributebatch:5,updateeipattribut:5,updatefirewal:5,updatefirewallattribut:5,updatepolici:5,updateroutetableattribut:5,updatesubnetattribut:5,updatetim:5,updateudbinstancebackupstrategi:5,updateudbinstanceslavebackupswitch:5,updateudbparamgroup:5,updateulbattribut:5,updatevpcnetwork:5,updatevserverattribut:5,upgrad:5,upgrade_to_ark_uhost_inst:5,upgradetoarkuhostinst:5,uphost:3,uphostcli:5,upload_udb_param_group:5,uploadudbparamgroup:5,upm:5,upper_lett:2,uppercas:2,uredi:5,uredisbackupset:5,uredisgroupset:5,uredispriceset:5,url:1,usag:[2,3],use:[1,3,4,6],useblacklist:5,used:[1,5],useds:5,user:[1,3,4,5],user_ag:1,useraddress:5,userag:1,usercert:5,userdatascript:5,userdefin:5,useremail:5,userid:5,userinfo:5,usernam:5,usernetpath:5,userphon:5,usertyp:5,uservers:5,usessd:5,using:[1,6],usual:2,util:[1,3,4],uvip:5,v100:5,validationexcept:6,valu:5,valuetyp:5,variabl:1,vendor:5,verify_ac:1,version:5,vhd:5,via:[3,4],vip:5,vipdetailset:5,vipid:5,vipset:5,virtual:5,virtualip:5,virtualipmac:5,vmdk:5,vnc:5,vncip:5,vncpassword:5,vncport:5,vnet:5,vpc1:5,vpc2:5,vpc:3,vpcclient:5,vpcid:5,vpcinfo:5,vpcintercominfo:5,vpcname:5,vpcnetworkinfo:5,vpn:5,vpngw:5,vserver:5,vserverid:5,vservernam:5,vserverset:5,wait:3,wait_for_st:[2,6],waiter:6,waittimeoutexcept:6,web:5,websit:3,weight:5,weightroundrobin:5,when:[1,6],who:1,window:[3,5],wiredtig:5,www:3,xd8ja:5,xk3jxa:5,xxxx:5,year:5,yes:5,you:[3,4],your:[3,4],zone:[3,4,5]},titles:["<no title>","Core","Helpers","UCloud SDK Python 2","QuickStart","UCloud SDK Services","Usage"],titleterms:{api:3,chang:6,client:[1,6],config:1,contribut:3,core:1,feedback:3,guid:3,helper:2,indic:3,instal:[3,4],middlewar:[1,6],pathx:5,python:3,quickstart:[3,4],refer:3,resourc:2,sdk:[3,5],servic:5,state:[2,6],system:6,tabl:3,test:1,transport:[1,6],type:6,uaccount:5,ucloud:[3,5],udb:5,udisk:5,udpn:5,uhost:5,ulb:5,umem:5,unet:5,uphost:5,usag:6,util:2,vpc:5,wait:[2,6]}}) \ No newline at end of file diff --git a/services.html b/services.html new file mode 100644 index 0000000..9adb76d --- /dev/null +++ b/services.html @@ -0,0 +1,5166 @@ + + + + + + + + UCloud SDK Services — ucloud-sdk-python2 documentation + + + + + + + + + + + + + + + + + + +
+
+
+ + +
+ +
+

UCloud SDK Services

+
+

UDPN

+
+
+class ucloud.services.udpn.client.UDPNClient(config, transport=None, middleware=None, logger=None)[source]
+
+
+allocate_udpn(req=None, **kwargs)[source]
+

AllocateUDPN - 分配一条 UDPN 专线

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • Bandwidth (int) - (Required) 带宽
  • +
  • Peer1 (str) - (Required) 专线可用区1,支持地域:北京二:cn-bj2, 上海二:cn-sh2, 广东:cn-gd, 亚太: hk, 上海一:cn-sh1, 法兰克福:ge-fra, 新加坡:sg, 洛杉矶:us-la, 华盛顿:us-ws, 东京:jpn-tky
  • +
  • Peer2 (str) - (Required) 专线可用区2,支持地域:北京二:cn-bj2, 上海二:cn-sh2, 广东:cn-gd, 亚太: hk, 上海一:cn-sh1, 法兰克福:ge-fra, 新加坡:sg, 洛杉矶:us-la, 华盛顿:us-ws, 东京:jpn-tky
  • +
  • ChargeType (str) - 计费类型,枚举值为: Year,按年付费; Month,按月付费; Dynamic,按需付费
  • +
  • CouponId (str) - 代金劵
  • +
  • Quantity (int) - 计费时长,默认 1
  • +
+

Response

+
    +
  • UDPNId (str) - 资源名称
  • +
+
+ +
+
+describe_udpn(req=None, **kwargs)[source]
+

DescribeUDPN - 描述 UDPN

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • Limit (int) - 返回数据长度,默认为 20
  • +
  • Offset (int) - 列表起始位置偏移量,默认为 0
  • +
  • UDPNId (str) - 申请到的 UDPN 资源 ID。若为空,则查询该用户在机房所有的专线信息。非默认项目资源,需填写ProjectId
  • +
+

Response

+
    +
  • DataSet (list) - 见 UDPNData 模型定义
  • +
  • TotalCount (int) - 查询到的总数量
  • +
+

Response Model

+

UDPNData

+
    +
  • Bandwidth (int) - 带宽
  • +
  • ChargeType (str) - 计费类型
  • +
  • CreateTime (int) - unix 时间戳 创建时间
  • +
  • ExpireTime (int) - unix 时间戳 到期时间
  • +
  • Peer1 (str) - 可用区域 1
  • +
  • Peer2 (str) - 可用区域 2
  • +
  • UDPNId (str) - UDPN 资源短 ID
  • +
+
+ +
+
+get_udpn_line_list(req=None, **kwargs)[source]
+

GetUDPNLineList - 获取当前支持的专线线路列表

+

Request

+ +

Response

+
    +
  • DataSet (list) - 见 UDPNLineSet 模型定义
  • +
  • TotalCount (int) - DataSet中的元素个数
  • +
+

Response Model

+

UDPNLineSet

+
    +
  • BandwidthUpperLimit (int) - 线路带宽上限,单位 M
  • +
  • LocalRegion (str) - 支持UDPN的地域之一,北京二:cn-bj2, 上海二:cn-sh2, 广东:cn-gd, 亚太: hk, 上海一:cn-sh1, 法兰克福:ge-fra, 新加坡:sg, 华盛顿:us-ws, 洛杉矶:us-la, 东京:jpn-tky
  • +
  • RemoteRegion (str) - 支持UDPN的地域之一,北京二:cn-bj2, 上海二:cn-sh2, 广东:cn-gd, 亚太: hk, 上海一:cn-sh1, 法兰克福:ge-fra, 新加坡:sg, 华盛顿:us-ws, 洛杉矶:us-la, 东京:jpn-tky
  • +
+
+ +
+
+get_udpn_price(req=None, **kwargs)[source]
+

GetUDPNPrice - 获取 UDPN 价格

+

Request

+
    +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • Bandwidth (int) - (Required) 带宽信息
  • +
  • Peer1 (str) - (Required) 专线可用区1,支持地域:北京二:cn-bj2, 上海二:cn-sh2, 广东:cn-gd, 亚太: hk, 上海一:cn-sh1, 法兰克福:ge-fra, 新加坡:sg, 洛杉矶:us-la, 华盛顿:us-ws, 东京:jpn-tky
  • +
  • Peer2 (str) - (Required) 专线可用区2,支持地域:北京二:cn-bj2, 上海二:cn-sh2, 广东:cn-gd, 亚太: hk, 上海一:cn-sh1, 法兰克福:ge-fra, 新加坡:sg, 洛杉矶:us-la, 华盛顿:us-ws, 东京:jpn-tky
  • +
  • ChargeType (str) - 计费类型
  • +
  • Quantity (int) - 购买时长
  • +
+

Response

+
    +
  • Price (float) - 专线价格
  • +
  • PurchaseValue (int) - 资源有效期 unix 时间戳
  • +
+
+ +
+
+get_udpn_upgrade_price(req=None, **kwargs)[source]
+

GetUDPNUpgradePrice - 获取专线升级价格

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • Bandwidth (int) - (Required) 带宽
  • +
  • UDPNId (str) - (Required) 专线带宽资源 Id
  • +
+

Response

+
    +
  • Price (float) - 升级后的价格
  • +
+
+ +
+
+modify_udpn_bandwidth(req=None, **kwargs)[source]
+

ModifyUDPNBandwidth - 修改带宽值

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • Bandwidth (int) - (Required) 调整后专线带宽, 单位为Mbps,取值范围为大于等于2且小于等于1000([2-1000])的整数
  • +
  • UDPNId (str) - (Required) UDPN Id
  • +
  • CouponId (str) - 代金劵 ID
  • +
+

Response

+
+ +
+
+release_udpn(req=None, **kwargs)[source]
+

ReleaseUDPN - 释放 UDPN

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • UDPNId (str) - (Required) UDPN 资源 Id
  • +
+

Response

+
+ +
+ +
+
+

UAccount

+
+
+class ucloud.services.uaccount.client.UAccountClient(config, transport=None, middleware=None, logger=None)[source]
+
+
+create_project(req=None, **kwargs)[source]
+

CreateProject - 创建项目

+

Request

+
    +
  • ProjectName (str) - (Required) 项目名称
  • +
+

Response

+
    +
  • ProjectId (str) - 所创建项目的Id
  • +
+
+ +
+
+get_project_list(req=None, **kwargs)[source]
+

GetProjectList - 获取项目列表

+

Request

+
    +
  • IsFinance (str) - 是否是财务账号
  • +
+

Response

+
    +
  • ProjectCount (int) - 项目总数
  • +
  • ProjectSet (list) - 见 ProjectListInfo 模型定义
  • +
+

Response Model

+

ProjectListInfo

+
    +
  • CreateTime (int) - 创建时间(Unix时间戳)
  • +
  • IsDefault (bool) - 是否为默认项目
  • +
  • MemberCount (int) - 项目下成员数量
  • +
  • ParentId (str) - 父项目ID
  • +
  • ParentName (str) - 父项目名称
  • +
  • ProjectId (str) - 项目ID
  • +
  • ProjectName (str) - 项目名称
  • +
  • ResourceCount (int) - 项目下资源数量
  • +
+
+ +
+
+get_region(req=None, **kwargs)[source]
+

GetRegion - 获取用户在各数据中心的权限等信息

+

Request

+

Response

+
    +
  • Regions (list) - 见 RegionInfo 模型定义
  • +
+

Response Model

+

RegionInfo

+
    +
  • BitMaps (str) - 用户在此数据中心的权限位
  • +
  • IsDefault (bool) - 是否用户当前默认数据中心
  • +
  • Region (str) - 地域名字,如cn-bj
  • +
  • RegionId (int) - 数据中心ID
  • +
  • RegionName (str) - 数据中心名称
  • +
  • Zone (str) - 可用区名字,如cn-bj-01
  • +
+
+ +
+
+get_user_info(req=None, **kwargs)[source]
+

GetUserInfo - 获取用户信息

+

Request

+

Response

+
    +
  • DataSet (list) - 见 UserInfo 模型定义
  • +
+

Response Model

+

UserInfo

+
    +
  • Admin (int) - 是否超级管理员 0:否 1:是
  • +
  • Administrator (str) - 管理员
  • +
  • AuthState (str) - 实名认证状态
  • +
  • City (str) - 城市
  • +
  • CompanyName (str) - 公司名称
  • +
  • Finance (int) - 是否有财务权限 0:否 1:是
  • +
  • IndustryType (int) - 所属行业
  • +
  • PhonePrefix (str) - 国际号码前缀
  • +
  • Province (str) - 省份
  • +
  • UserAddress (str) - 公司地址
  • +
  • UserEmail (str) - 用户邮箱
  • +
  • UserId (int) - 用户Id
  • +
  • UserName (str) - 称呼
  • +
  • UserPhone (str) - 用户手机
  • +
  • UserType (int) - 会员类型
  • +
  • UserVersion (int) - 是否子帐户(大于100为子帐户)
  • +
+
+ +
+
+modify_project(req=None, **kwargs)[source]
+

ModifyProject - 修改项目

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • ProjectName (str) - (Required) 新的项目名称
  • +
+

Response

+
+ +
+
+terminate_project(req=None, **kwargs)[source]
+

TerminateProject - 删除项目

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID,不填写为默认项目,子帐号必须填写。
  • +
+

Response

+
+ +
+ +
+
+

UMem

+
+
+class ucloud.services.umem.client.UMemClient(config, transport=None, middleware=None, logger=None)[source]
+
+
+create_umem_cache_group(req=None, **kwargs)[source]
+

CreateUMemcacheGroup - 创建单机Memcache

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • Name (str) - (Required) 请求创建组的名称 范围[6-60]
  • +
  • ChargeType (str) - 计费模式,Year , Month, Dynamic 默认: Month
  • +
  • ConfigId (str) - 配置ID,目前仅支持默认配置id 默认配置id:”9a891891-c245-4b66-bce8-67e59430d67c”
  • +
  • CouponId (str) - 代金券ID
  • +
  • Protocol (str) -
  • +
  • Quantity (int) - 购买时长,默认为1
  • +
  • Size (int) - 每个节点的内存大小,单位GB,默认1GB 目前仅支持1/2/4/8/16/32这几档
  • +
  • SubnetId (str) -
  • +
  • Tag (str) - 业务组 默认:Default
  • +
  • VPCId (str) -
  • +
  • Version (str) - Memcache版本信息,默认为1.4.31
  • +
  • Zone (str) - 可用区。参见 可用区列表
  • +
+

Response

+
    +
  • GroupId (str) - 创建的组ID
  • +
+
+ +
+
+create_umem_space(req=None, **kwargs)[source]
+

CreateUMemSpace - 创建UMem内存空间

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • Name (str) - (Required) 空间名称,长度(6<=size<=63)
  • +
  • Size (int) - (Required) 内存大小, 单位:GB, 范围[1~1024]
  • +
  • ChargeType (str) - Year , Month, Dynamic, Trial 默认: Month
  • +
  • CouponId (str) - 使用的代金券id
  • +
  • Password (str) - URedis密码。请遵照 字段规范 设定密码。密码需使用base64进行编码,举例如下:# echo -n Password1 | base64UGFzc3dvcmQx。
  • +
  • Protocol (str) - 协议:memcache, redis (默认redis).注意:redis无single类型
  • +
  • Quantity (int) - 购买时长 默认: 1
  • +
  • SubnetId (str) -
  • +
  • Tag (str) -
  • +
  • Type (str) - 空间类型:single(无热备),double(热备)(默认: double)
  • +
  • VPCId (str) -
  • +
  • Zone (str) - 可用区。参见 可用区列表
  • +
+

Response

+
    +
  • SpaceId (str) - 创建内存空间ID列表
  • +
+
+ +
+
+create_uredis_group(req=None, **kwargs)[source]
+

CreateURedisGroup - 创建主备redis

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • HighAvailability (str) - (Required) 是否开启高可用,enable或disable
  • +
  • Name (str) - (Required) 请求创建组的名称 (范围[6-63],只能包含英文、数字以及符号-和_)
  • +
  • Zone (str) - (Required) 可用区。参见 可用区列表
  • +
  • AutoBackup (str) - 是否自动备份,enable或disable,默认disable
  • +
  • BackupId (str) - 有此项代表从备份中创建,无代表正常创建
  • +
  • BackupTime (int) - 自动备份开始时间,范围[0-23],默认3点
  • +
  • ChargeType (str) - 计费模式,Year , Month, Dynamic 默认: Month
  • +
  • ConfigId (str) - 配置ID,目前支持 3.0版本配置ID:”03f58ca9-b64d-4bdd-abc7-c6b9a46fd801”,3.2版本配置ID:”3e45ac48-f8a2-a9q2-261d-l342dab130gf”, 4.0版本配置ID:”6c9298a3-9d7f-428c-b1d0-e87ab3b8a1ea”,默认版本3.0,从备份创建为必传项
  • +
  • CouponId (str) - 代金券ID
  • +
  • MasterGroupId (str) - Master Redis Group的ID,创建只读Slave时,必须填写
  • +
  • Password (str) - 初始化密码,需要 base64 编码
  • +
  • Quantity (int) - 购买时长,默认为1
  • +
  • Size (int) - 每个节点的内存大小,单位GB,默认1GB,目前仅支持1/2/4/8/16/32,六种
  • +
  • SlaveZone (str) - 跨机房URedis,slave所在可用区(必须和Zone在同一Region,且不可相同)
  • +
  • SubnetId (str) -
  • +
  • Tag (str) - 业务组名称
  • +
  • VPCId (str) -
  • +
  • Version (str) - Redis版本信息(详见DescribeURedisVersion返回结果),默认版本3.0
  • +
+

Response

+
    +
  • GroupId (str) - 创建的组ID
  • +
+
+ +
+
+delete_umem_cache_group(req=None, **kwargs)[source]
+

DeleteUMemcacheGroup - 删除单机Memcache

+

Request

+ +

Response

+
+ +
+
+delete_umem_space(req=None, **kwargs)[source]
+

DeleteUMemSpace - 删除UMem内存空间

+

Request

+ +

Response

+
+ +
+
+delete_uredis_group(req=None, **kwargs)[source]
+

DeleteURedisGroup - 删除主备redis

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • GroupId (str) - (Required) 组ID
  • +
+

Response

+
+ +
+
+describe_umem_cache_group(req=None, **kwargs)[source]
+

DescribeUMemcacheGroup - 显示Memcache

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • GroupId (str) - 组的ID,如果指定则获取描述,否则为列表操 作,需指定Offset/Limit
  • +
  • Limit (int) - 分页显示的条目数, 默认值为20
  • +
  • Offset (int) - 分页显示的起始偏移, 默认值为0
  • +
  • Zone (str) - 可用区。参见 可用区列表
  • +
+

Response

+
    +
  • DataSet (list) - 见 UMemcacheGroupSet 模型定义
  • +
  • TotalCount (int) - 组的总的节点个数
  • +
+

Response Model

+

UMemcacheGroupSet

+
    +
  • ChargeType (str) - 计费类型:Year,Month,Dynamic 默认Dynamic
  • +
  • ConfigId (str) - 节点的配置ID
  • +
  • CreateTime (int) - 创建时间 (UNIX时间戳)
  • +
  • ExpireTime (int) - 过期时间 (UNIX时间戳)
  • +
  • GroupId (str) - 组ID
  • +
  • ModifyTime (int) - 修改时间 (UNIX时间戳)
  • +
  • Name (str) - 组名称
  • +
  • Port (int) - 节点分配的服务端口
  • +
  • Size (int) - 容量单位GB
  • +
  • State (str) - 状态标记 Creating // 初始化中 CreateFail // 创建失败 Deleting // 删除中 DeleteFail // 删除失败 Running // 运行 Resizing // 容量调整中 ResizeFail // 容量调整失败 Configing // 配置中 ConfigFail // 配置失败Restarting // 重启中
  • +
  • SubnetId (str) -
  • +
  • Tag (str) - 业务组名称
  • +
  • UsedSize (int) - 使用量单位MB
  • +
  • VPCId (str) -
  • +
  • Version (str) - Memcache版本信息,默认为1.4.31
  • +
  • VirtualIP (str) - 节点的虚拟IP地址
  • +
+
+ +
+
+describe_umem_cache_price(req=None, **kwargs)[source]
+

DescribeUMemcachePrice - 获取umemcache组价格信息

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • Size (int) - (Required) 容量大小,单位:GB 取值范围[1-32]
  • +
  • Zone (str) - (Required) 可用区。参见 可用区列表
  • +
  • ChargeType (str) - 计费模式,Year, Month, Dynamic,默认: Dynamic 默认: 获取所有计费模式的价格
  • +
  • Quantity (int) - 购买umemcache的时长,默认值为1
  • +
  • Type (str) - 空间类型:single(无热备),double(热备)(默认: double)
  • +
+

Response

+
    +
  • DataSet (list) - 见 UMemcachePriceSet 模型定义
  • +
+

Response Model

+

UMemcachePriceSet

+
    +
  • ChargeType (str) - 计费模式,Year, Month, Dynamic
  • +
  • Price (float) - 价格,单位: 元,保留小数点后两位有效数字
  • +
+
+ +
+
+describe_umem_cache_upgrade_price(req=None, **kwargs)[source]
+

DescribeUMemcacheUpgradePrice - 获取umemcache升级价格信息

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • GroupId (str) - (Required) 需要升级的空间的GroupId,请参考DescribeUMemcacheGroup接口
  • +
  • Size (int) - (Required) 购买umemcache大小,单位:GB
  • +
  • Zone (str) - 可用区。参见 可用区列表
  • +
+

Response

+
    +
  • Price (float) - 价格,单位:元
  • +
+
+ +
+
+describe_umem_price(req=None, **kwargs)[source]
+

DescribeUMemPrice - 获取UMem实例价格信息

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • Size (int) - (Required) 购买umem大小,单位:GB,范围[1~1024]
  • +
  • Type (str) - (Required) 空间类型:single(无热备),double(热备)(默认: double)
  • +
  • Zone (str) - (Required) 可用区。参见 可用区列表
  • +
  • ChargeType (str) - Year, Month, Dynamic,Trial 如果不指定,则一次性获取三种计费
  • +
  • Quantity (int) - 购买UMem的时长,默认值为1
  • +
  • RegionFlag (bool) -
  • +
+

Response

+
    +
  • DataSet (list) - 见 UMemPriceSet 模型定义
  • +
+

Response Model

+

UMemPriceSet

+
    +
  • ChargeType (str) - Year, Month, Dynamic,Trial
  • +
  • Price (float) - 价格,单位: 元,保留小数点后两位有效数字
  • +
+
+ +
+
+describe_umem_space(req=None, **kwargs)[source]
+

DescribeUMemSpace - 获取UMem内存空间列表

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • Limit (int) - 返回数据长度, 默认为20
  • +
  • Offset (int) - 数据偏移量, 默认为0
  • +
  • SpaceId (str) - 内存空间ID (无ID,则获取所有)
  • +
  • Zone (str) - 可用区。参见 可用区列表
  • +
+

Response

+
    +
  • DataSet (list) - 见 UMemSpaceSet 模型定义
  • +
  • TotalCount (int) - 根据过滤条件得到的总数
  • +
+

Response Model

+

UMemSpaceAddressSet

+
    +
  • IP (str) - UMem实例访问IP
  • +
  • Port (int) - UMem实例访问Port
  • +
+

UMemSpaceSet

+
    +
  • Address (list) - 见 UMemSpaceAddressSet 模型定义
  • +
  • ChargeType (str) - Year, Month, Dynamic, Trial
  • +
  • CreateTime (int) - 创建时间
  • +
  • ExpireTime (int) - 到期时间
  • +
  • Name (str) - 内存空间名称
  • +
  • Protocol (str) - 协议类型: memcache, redis
  • +
  • RewriteTime (int) - 运维时间0 //0点1 //1点依次类推
  • +
  • Size (int) - 容量单位GB
  • +
  • SpaceId (str) - 内存空间ID
  • +
  • State (str) - Starting:创建中 Running:运行中 Fail:失败
  • +
  • SubnetId (str) -
  • +
  • Tag (str) -
  • +
  • Type (str) - 空间类型:single(无热备),double(热备)
  • +
  • UsedSize (int) - 使用量单位MB
  • +
  • VPCId (str) -
  • +
  • Zone (str) - 可用区,参见 可用区列表
  • +
+
+ +
+
+describe_umem_upgrade_price(req=None, **kwargs)[source]
+

DescribeUMemUpgradePrice - 获取UMem升级价格信息

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • Size (int) - (Required) 购买UMem大小,单位:GB
  • +
  • SpaceId (str) - (Required) 需要升级的空间的SpaceId
  • +
  • Type (str) - (Required) 空间类型:single(无热备),double(热备)(默认: double)
  • +
  • Zone (str) - 可用区。参见 可用区列表
  • +
+

Response

+
    +
  • Price (float) - 价格
  • +
+
+ +
+
+describe_uredis_backup(req=None, **kwargs)[source]
+

DescribeURedisBackup - 查询主备redis备份

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • GroupId (str) - 组的ID
  • +
  • Limit (int) - 分页显示的条目数, 默认值为10
  • +
  • Offset (int) - 分页显示的起始偏移, 默认值为0
  • +
+

Response

+
    +
  • DataSet (list) - 见 URedisBackupSet 模型定义
  • +
  • TotalCount (int) - 用户名下总的备份个数
  • +
+

Response Model

+

URedisBackupSet

+
    +
  • BackupId (str) - 备份ID
  • +
  • BackupName (str) - 备份的名称
  • +
  • BackupSize (int) - 备份文件大小, 以字节为单位
  • +
  • BackupTime (int) - 备份时间 (UNIX时间戳)
  • +
  • BackupType (str) - 备份类型: Manual 手动 Auto 自动
  • +
  • GroupId (str) - 对应的实例ID
  • +
  • GroupName (str) - 组名称
  • +
  • State (str) - 备份的状态: Backuping 备份中 Success 备份成功 Error 备份失败 Expired 备份过期
  • +
  • Zone (str) - 可用区,参见 可用区列表
  • +
+
+ +
+
+describe_uredis_backup_url(req=None, **kwargs)[source]
+

DescribeURedisBackupURL - 获取主备Redis备份下载链接

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • BackupId (str) - (Required) 备份ID
  • +
  • GroupId (str) - (Required)
  • +
  • RegionFlag (bool) - 是否是跨机房URedis(默认false)
  • +
  • Zone (str) - 可用区。参见 可用区列表
  • +
+

Response

+
    +
  • BackupPath (str) - 备份文件公网的地址
  • +
  • BackupURL (str) - 备份文件公网的地址
  • +
  • InnerBackupPath (str) -
  • +
+
+ +
+
+describe_uredis_group(req=None, **kwargs)[source]
+

DescribeURedisGroup - 查询主备Redis

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • GroupId (str) - 组的ID,如果指定则获取描述,否则为列表操 作,需指定Offset/Limit
  • +
  • Limit (int) - 分页显示的条目数, 默认值为20
  • +
  • Offset (int) - 分页显示的起始偏移, 默认值为0
  • +
  • Zone (str) -
  • +
+

Response

+
    +
  • DataSet (list) - 见 URedisGroupSet 模型定义
  • +
  • TotalCount (int) - 组的总的节点个数
  • +
+

Response Model

+

URedisGroupSet

+
    +
  • AutoBackup (str) - 是否需要自动备份,enable,disable
  • +
  • BackupTime (int) - 组自动备份开始时间,单位小时计,范围[0-23]
  • +
  • ChargeType (str) - 计费类型:Year,Month,Dynamic 默认Dynamic
  • +
  • ConfigId (str) - 节点的配置ID
  • +
  • CreateTime (int) - 创建时间 (UNIX时间戳)
  • +
  • ExpireTime (int) - 过期时间 (UNIX时间戳)
  • +
  • GroupId (str) - 组ID
  • +
  • GroupName (str) - 组名称
  • +
  • HighAvailability (str) - 是否开启高可用,enable,disable
  • +
  • MemorySize (int) - 容量单位GB
  • +
  • ModifyTime (int) - 修改时间 (UNIX时间戳)
  • +
  • Name (str) - 组名称
  • +
  • Port (int) - 节点分配的服务端口
  • +
  • Protocol (str) - 协议
  • +
  • RewriteTime (int) - 返回运维时间 0 //0点 1 //1点 以此类推
  • +
  • Size (int) - 容量单位GB
  • +
  • SlaveZone (str) - 跨机房URedis,slave redis所在可用区,参见 可用区列表
  • +
  • State (str) - 状态标记 Creating // 初始化中 CreateFail // 创建失败 Deleting // 删除中 DeleteFail // 删除失败 Running // 运行 Resizing // 容量调整中 ResizeFail // 容量调整失败 Configing // 配置中 ConfigFail // 配置失败
  • +
  • SubnetId (str) -
  • +
  • Tag (str) - 业务组名称
  • +
  • Type (str) -
  • +
  • UsedSize (int) - 使用量单位MB
  • +
  • VPCId (str) -
  • +
  • Version (str) - Redis版本信息
  • +
  • VirtualIP (str) - 节点的虚拟IP地址
  • +
  • Zone (str) - 实例所在可用区,或者master redis所在可用区,参见 可用区列表
  • +
+
+ +
+
+describe_uredis_price(req=None, **kwargs)[source]
+

DescribeURedisPrice - 取uredis价格信息

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • Size (int) - (Required) 量大小,单位:GB 取值范围[1-32]
  • +
  • Zone (str) - (Required) 可用区。参见 可用区列表
  • +
  • ChargeType (str) - 计费模式,Year, Month, Dynamic;如果不指定,则一次性获取三种计费
  • +
  • ProductType (str) - 产品类型:MS_Redis(标准主备版),S_Redis(从库),默认为MS_Redis
  • +
  • Quantity (int) - 计费模式为Dynamic时,购买的时长, 默认为1
  • +
  • RegionFlag (bool) - 是否是跨机房URedis(默认false)
  • +
  • Type (str) -
  • +
+

Response

+
    +
  • DataSet (list) - 见 URedisPriceSet 模型定义
  • +
+

Response Model

+

URedisPriceSet

+
    +
  • ChargeType (str) - Year, Month, Dynamic,Trial
  • +
  • Price (float) - 价格,单位: 元,保留小数点后两位有效数字
  • +
+
+ +
+
+describe_uredis_upgrade_price(req=None, **kwargs)[source]
+

DescribeURedisUpgradePrice - 获取uredis升级价格信息

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • GroupId (str) - (Required) 要升级的空间的GroupId,请参考DescribeURedisGroup接口
  • +
  • Size (int) - (Required) 购买uredis大小,单位:GB,范围是[1-32]
  • +
  • Type (str) -
  • +
  • Zone (str) - 可用区。参见 可用区列表
  • +
+

Response

+
    +
  • Price (float) - 扩容差价,单位: 元,保留小数点后两位有效数字
  • +
+
+ +
+
+get_umem_space_state(req=None, **kwargs)[source]
+

GetUMemSpaceState - 获取UMem内存空间列表

+

Request

+ +

Response

+
    +
  • State (str) - Starting:创建中 Running:运行中 Fail:失败
  • +
+
+ +
+
+modify_umem_space_name(req=None, **kwargs)[source]
+

ModifyUMemSpaceName - 修改UMem内存空间名称

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • Name (str) - (Required) 新的名称,长度(6<=size<=63)
  • +
  • SpaceId (str) - (Required) UMem内存空间ID
  • +
  • Zone (str) - 可用区。参见 可用区列表
  • +
+

Response

+
+ +
+
+modify_uredis_group_name(req=None, **kwargs)[source]
+

ModifyURedisGroupName - 修改主备redis名称

+

Request

+ +

Response

+
+ +
+
+resize_udredis_space(req=None, **kwargs)[source]
+

ResizeUDredisSpace - 调整内存空间容量

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • Size (int) - (Required) 内存大小, 单位:GB (需要大于原size,<= 1024)
  • +
  • SpaceId (str) - (Required) 高性能UMem 内存空间Id
  • +
  • CouponId (str) - 使用的代金券Id
  • +
  • Zone (str) - 可用区。参见 可用区列表
  • +
+

Response

+
+ +
+
+resize_umem_space(req=None, **kwargs)[source]
+

ResizeUMemSpace - 调整内存空间容量

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • Size (int) - (Required) 内存大小, 单位:GB (需要大于原size,<= 1024)
  • +
  • SpaceId (str) - (Required) UMem 内存空间Id
  • +
  • ChargeType (str) -
  • +
  • CouponId (str) - 使用的代金券Id
  • +
  • Type (str) - 空间类型:single(无热备),double(热备)(默认: double)
  • +
  • Zone (str) - 可用区。参见 可用区列表
  • +
+

Response

+
+ +
+
+resize_uredis_group(req=None, **kwargs)[source]
+

ResizeURedisGroup - 调整主备redis容量

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • GroupId (str) - (Required) 组ID
  • +
  • Size (int) - (Required) 内存大小, 单位:GB (需要大于原size,且小于等于32) 目前仅支持1/2/4/8/16/32 G 六种容量规格
  • +
  • ChargeType (str) -
  • +
  • CouponId (int) - 代金券ID 请参考DescribeCoupon接口
  • +
  • Type (str) - 空间类型:single(无热备),double(热备)(默认: double)
  • +
  • Zone (str) - 可用区。参见 可用区列表
  • +
+

Response

+
+ +
+
+restart_umem_cache_group(req=None, **kwargs)[source]
+

RestartUMemcacheGroup - 重启单机Memcache

+

Request

+ +

Response

+
+ +
+ +
+
+

UDB

+
+
+class ucloud.services.udb.client.UDBClient(config, transport=None, middleware=None, logger=None)[source]
+
+
+backup_udb_instance(req=None, **kwargs)[source]
+

BackupUDBInstance - 备份UDB实例

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • BackupName (str) - (Required) 备份名称
  • +
  • DBId (str) - (Required) DB实例Id,该值可以通过DescribeUDBInstance获取
  • +
  • BackupMethod (str) - 使用的备份方式。(快照备份即物理备份。注意只有SSD版本的mysql实例支持设置为snapshot)
  • +
  • Blacklist (str) - 备份黑名单列表,以 ; 分隔。注意:只有逻辑备份下备份黑名单才生效,快照备份备份黑名单下无效
  • +
  • ForceBackup (bool) - true表示逻辑备份时是使用 –force 参数,false表示不使用 –force 参数。物理备份此参数无效。
  • +
  • UseBlacklist (bool) - 是否使用黑名单备份,默认false
  • +
  • Zone (str) - 可用区。参见 可用区列表
  • +
+

Response

+
+ +
+
+backup_udb_instance_binlog(req=None, **kwargs)[source]
+

BackupUDBInstanceBinlog - 备份UDB指定时间段的binlog列表

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • BackupFile (str) - (Required) 需要备份文件,可通过DescribeUDBInstanceBinlog获得 如果要传入多个文件名,以空格键分割,用单引号包含.
  • +
  • DBId (str) - (Required) DB实例Id,该值可以通过DescribeUDBInstance获取
  • +
  • BackupName (str) - DB备份文件名称
  • +
  • Zone (str) - 可用区。参见 可用区列表
  • +
+

Response

+
+ +
+
+backup_udb_instance_error_log(req=None, **kwargs)[source]
+

BackupUDBInstanceErrorLog - 备份UDB指定时间段的errorlog

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • BackupName (str) - (Required) 备份名称
  • +
  • DBId (str) - (Required) DB实例Id,该值可以通过DescribeUDBInstance获取
  • +
  • Zone (str) - 可用区。参见 可用区列表
  • +
+

Response

+
+ +
+
+backup_udb_instance_slow_log(req=None, **kwargs)[source]
+

BackupUDBInstanceSlowLog - 备份UDB指定时间段的slowlog分析结果

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • BackupName (str) - (Required) 备份文件名称
  • +
  • BeginTime (int) - (Required) 过滤条件:起始时间(时间戳)
  • +
  • DBId (str) - (Required) DB实例Id,该值可以通过DescribeUDBInstance获取
  • +
  • EndTime (int) - (Required) 过滤条件:结束时间(时间戳)
  • +
+

Response

+
+ +
+
+check_recover_udb_instance(req=None, **kwargs)[source]
+

CheckRecoverUDBInstance - 核查db是否可以使用回档功能

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • SrcDBId (str) - (Required) 源实例的Id(只支持普通版DB不支持高可用)
  • +
  • Zone (str) - 可用区。参见 可用区列表
  • +
+

Response

+
    +
  • LastestTime (int) - 核查成功返回值为可以回档到的最近时刻,核查失败不返回
  • +
+
+ +
+
+check_udb_instance_to_ha_allowance(req=None, **kwargs)[source]
+

CheckUDBInstanceToHAAllowance - 核查db是否可以升级为高可用

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • DBId (str) - (Required) 实例的Id,该值可以通过DescribeUDBInstance获取
  • +
+

Response

+
    +
  • Allowance (str) - Yes ,No ,Yes即可以升级,No为不可以升级
  • +
+
+ +
+
+clear_udb_log(req=None, **kwargs)[source]
+

ClearUDBLog - 清除UDB实例的log

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • DBId (str) - (Required) DB实例的id,该值可以通过DescribeUDBInstance获取
  • +
  • LogType (int) - (Required) 日志类型,10-error(暂不支持)、20-slow(暂不支持 )、30-binlog
  • +
  • BeforeTime (int) - 删除时间点(至少前一天)之前log,采用时间戳(秒),默认当 前时间点前一天
  • +
  • Zone (str) - 可用区。参见 可用区列表
  • +
+

Response

+
+ +
+
+create_udb_instance(req=None, **kwargs)[source]
+

CreateUDBInstance - 创建UDB实例(包括创建mysql master节点、mongodb primary/configsvr节点和从备份恢复实例)

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • AdminPassword (str) - (Required) 管理员密码
  • +
  • DBTypeId (str) - (Required) DB类型id,mysql/mongodb/postgesql按版本细分 1:mysql-5.1,2:mysql-5.5,3:percona-5.5,4:mysql-5.6,5:percona-5.6,6:mysql-5.7,7:percona-5.7,8:mariadb-10.0,9:mongodb-2.4,10:mongodb-2.6,11:mongodb-3.0,12:mongodb-3.2,13:postgresql-9.4,14:postgresql-9.6,14:postgresql-10.4
  • +
  • DiskSpace (int) - (Required) 磁盘空间(GB), 暂时支持20G - 3000G
  • +
  • MemoryLimit (int) - (Required) 内存限制(MB),目前支持以下几档 1000M/2000M/4000M/ 6000M/8000M/12000M/16000M/ 24000M/32000M/48000M/ 64000M/96000M
  • +
  • Name (str) - (Required) 实例名称,至少6位
  • +
  • ParamGroupId (int) - (Required) DB实例使用的配置参数组id
  • +
  • Port (int) - (Required) 端口号,mysql默认3306,mongodb默认27017,postgresql默认5432
  • +
  • Zone (str) - (Required) 可用区。参见 可用区列表
  • +
  • AdminUser (str) - 管理员帐户名,默认root
  • +
  • BackupCount (int) - 备份策略,每周备份数量,默认7次
  • +
  • BackupDuration (int) - 备份策略,备份时间间隔,单位小时计,默认24小时
  • +
  • BackupId (int) - 备份id,如果指定,则表明从备份恢复实例
  • +
  • BackupTime (int) - 备份策略,备份开始时间,单位小时计,默认1点
  • +
  • BackupZone (str) - 跨可用区高可用备库所在可用区,参见 可用区列表
  • +
  • CPU (int) - cpu核数
  • +
  • ChargeType (str) - Year, Month, Dynamic,Trial,默认: Month
  • +
  • ClusterRole (str) - 当DB类型(DBTypeId)为mongodb时,需要指定mongo的角色,可选值为configsrv (配置节点),shardsrv (数据节点)
  • +
  • CouponId (str) - 使用的代金券id
  • +
  • DisableSemisync (bool) - 是否开启异步高可用,默认不填,可置为true
  • +
  • HAArch (str) - 高可用架构:1) haproxy(默认): 当前仅支持mysql。2) sentinel: 基于vip和哨兵节点的架构,当前支持mysql和pg。
  • +
  • InstanceMode (str) - UDB实例模式类型, 可选值如下: “Normal”: 普通版UDB实例 “HA”: 高可用版UDB实例 默认是”Normal”
  • +
  • InstanceType (str) - UDB数据库机型
  • +
  • Quantity (int) - 购买时长,默认值1
  • +
  • SSDType (str) - SSD类型,可选值为”SATA”、”PCI-E”,如果UseSSD为true ,则必选
  • +
  • SubnetId (str) - 子网ID
  • +
  • Tag (str) -
  • +
  • UDBCId (str) - 专区ID信息(如果这个参数存在这说明是在专区中创建DB)
  • +
  • UseSSD (bool) - 是否使用SSD,默认为false。目前主要可用区、海外机房、新机房只提供SSD资源,非SSD资源不再提供。
  • +
  • VPCId (str) - VPC的ID
  • +
+

Response

+
    +
  • DBId (str) - BD实例id
  • +
+
+ +
+
+create_udb_instance_by_recovery(req=None, **kwargs)[source]
+

CreateUDBInstanceByRecovery - 创建db,将新创建的db恢复到指定db某个指定时间点

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • Name (str) - (Required) 实例名称,至少6位
  • +
  • RecoveryTime (int) - (Required) 恢复到某个时间点的时间戳(UTC时间格式,默认单位秒)
  • +
  • SrcDBId (str) - (Required) 源实例的Id
  • +
  • ChargeType (str) - Year, Month, Dynamic,Trial,默认: Dynamic
  • +
  • CouponId (str) - 使用的代金券id
  • +
  • Quantity (int) - 购买时长,默认值1
  • +
  • SubnetId (str) - 子网ID
  • +
  • UDBCId (str) - 专区的Id
  • +
  • UseSSD (bool) - 指定是否是否使用SSD,默认使用主库的配置
  • +
  • VPCId (str) - VPC的ID
  • +
  • Zone (str) - 可用区。参见 可用区列表
  • +
+

Response

+
    +
  • DBId (str) - db实例id
  • +
+
+ +
+
+create_udb_param_group(req=None, **kwargs)[source]
+

CreateUDBParamGroup - 从已有配置文件创建新配置文件

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • DBTypeId (str) - (Required) DB类型id,mysql/mongodb/postgesql按版本细分 1:mysql-5.1,2:mysql-5.5,3:percona-5.5,4:mysql-5.6,5:percona-5.6,6:mysql-5.7,7:percona-5.7,8:mariadb-10.0,9:mongodb-2.4,10:mongodb-2.6,11:mongodb-3.0,12:mongodb-3.2,13:postgresql-9.4,14:postgresql-9.6
  • +
  • Description (str) - (Required) 参数组描述
  • +
  • GroupName (str) - (Required) 新配置参数组名称
  • +
  • SrcGroupId (int) - (Required) 源参数组id
  • +
  • Zone (str) - (Required) 可用区。参见 可用区列表
  • +
  • RegionFlag (bool) - 是否是地域级别的配置文件,默认是false
  • +
+

Response

+
    +
  • GroupId (int) - 新配置参数组id
  • +
+
+ +
+
+create_udb_replication_instance(req=None, **kwargs)[source]
+

CreateUDBReplicationInstance - 创建MongoDB的副本节点(包括仲裁)

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • Name (str) - (Required) 实例名称,至少6位
  • +
  • SrcId (str) - (Required) primary节点的DBId,该值可以通过DescribeUDBInstance获取
  • +
  • CouponId (str) - 使用的代金券id
  • +
  • IsArbiter (bool) - 是否是仲裁节点,默认false,仲裁节点按最小机型创建
  • +
  • Port (int) - 端口号,默认27017,取值范围3306至65535。
  • +
  • UseSSD (bool) - 是否使用SSD,默认不使用
  • +
  • Zone (str) - 可用区。参见 可用区列表
  • +
+

Response

+
    +
  • DBId (str) - 创建从节点的DBId
  • +
+
+ +
+
+create_udb_route_instance(req=None, **kwargs)[source]
+

CreateUDBRouteInstance - 创建mongos实例

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • ConfigsvrId (list) - (Required) 配置服务器的dbid,允许一个或者三个。
  • +
  • DBTypeId (str) - (Required) DB类型id,mongodb按版本细分有1:mongodb-2.4,2:mongodb-2.6,3:mongodb-3.0,4:mongodb-3.2
  • +
  • DiskSpace (int) - (Required) 磁盘空间(GB), 暂时支持20G - 500G
  • +
  • MemoryLimit (int) - (Required) 内存限制(MB),目前支持以下几档 600M/1500M/3000M /6000M/15000M/30000M
  • +
  • Name (str) - (Required) 实例名称,至少6位
  • +
  • ParamGroupId (int) - (Required) DB实例使用的配置参数组id
  • +
  • Port (int) - (Required) 端口号,mongodb默认27017
  • +
  • ChargeType (str) - Year, Month, Dynamic,Trial,默认: Month
  • +
  • CouponId (str) - 使用的代金券id
  • +
  • Quantity (int) - 购买时长,默认值1
  • +
  • UseSSD (bool) - 是否使用SSD,默认为false
  • +
  • Zone (str) - 可用区。参见 可用区列表
  • +
+

Response

+
    +
  • DBId (str) - db实例id
  • +
+
+ +
+
+create_udb_slave(req=None, **kwargs)[source]
+

CreateUDBSlave - 创建UDB实例的slave

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • Name (str) - (Required) 实例名称,至少6位
  • +
  • SrcId (str) - (Required) master实例的DBId,该值可以通过DescribeUDBInstance获取
  • +
  • CouponId (str) - 使用的代金券id
  • +
  • DiskSpace (int) - 磁盘空间(GB), 暂时支持20G - 3000G(API支持,前端暂时只开放内存定制)
  • +
  • InstanceMode (str) - UDB实例部署模式,可选值如下:Normal: 普通单点实例HA: 高可用部署实例
  • +
  • InstanceType (str) - UDB实例类型:Normal和SATA_SSD
  • +
  • IsLock (bool) - 是否锁主库,默认为true
  • +
  • MemoryLimit (int) - 内存限制(MB),目前支持以下几档 1000M/2000M/4000M/ 6000M/8000M/12000M/16000M/ 24000M/32000M/48000M/ 64000M/96000M
  • +
  • Port (int) - 端口号,mysql默认3306
  • +
  • SSDType (str) - SSD类型,可选值为”SATA”、”PCI-E”,如果UseSSD为true ,则必选
  • +
  • UseSSD (bool) - 是否使用SSD,默认为false
  • +
  • Zone (str) - 可用区。参见 可用区列表
  • +
+

Response

+
    +
  • DBId (str) - 创建slave的DBId
  • +
+
+ +
+
+delete_udb_backup(req=None, **kwargs)[source]
+

DeleteUDBBackup - 删除UDB实例备份

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • BackupId (int) - (Required) 备份id,可通过DescribeUDBBackup获得
  • +
  • Zone (str) - (Required) 可用区。参见 可用区列表
  • +
  • BackupZone (str) - 跨可用区高可用备库所在可用区,参见[可用区列表]
  • +
+

Response

+
+ +
+
+delete_udb_instance(req=None, **kwargs)[source]
+

DeleteUDBInstance - 删除UDB实例

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • DBId (str) - (Required) DB实例的id,该值可以通过DescribeUDBInstance获取
  • +
  • UDBCId (str) - 专区ID
  • +
  • Zone (str) - 可用区。参见 可用区列表
  • +
+

Response

+
+ +
+
+delete_udb_log_package(req=None, **kwargs)[source]
+

DeleteUDBLogPackage - 删除UDB日志包

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • BackupId (int) - (Required) 日志包id,可通过DescribeUDBLogPackage获得
  • +
  • Zone (str) - (Required) 可用区。参见 可用区列表
  • +
  • BackupZone (str) - 跨可用区高可用备库所在可用区
  • +
+

Response

+
+ +
+
+delete_udb_param_group(req=None, **kwargs)[source]
+

DeleteUDBParamGroup - 删除配置参数组

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • GroupId (int) - (Required) 参数组id,可通过DescribeUDBParamGroup获取
  • +
  • Zone (str) - (Required) 可用区。参见 可用区列表
  • +
  • RegionFlag (bool) - 是否属于地域级别
  • +
+

Response

+
+ +
+
+describe_udb_backup(req=None, **kwargs)[source]
+

DescribeUDBBackup - 列表UDB实例备份信息.Zone不填表示多可用区,填代表单可用区

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • Limit (int) - (Required) 分页显示的条目数,列表操作则指定
  • +
  • Offset (int) - (Required) 分页显示的起始偏移,列表操作则指定
  • +
  • BackupId (int) - 如果填了BackupId, 那么只拉取这个备份的记录
  • +
  • BackupType (int) - 备份类型,取值为0或1,0表示自动,1表示手动
  • +
  • BeginTime (int) - 过滤条件:起始时间(Unix时间戳)
  • +
  • ClassType (str) - 如果未指定GroupId,则可选是否选取特定DB类型的配置(sql, nosql, postgresql, sqlserver)
  • +
  • DBId (str) - DB实例Id,如果指定,则只获取该db的备份信息 该值可以通过DescribeUDBInstance获取
  • +
  • EndTime (int) - 过滤条件:结束时间(Unix时间戳)
  • +
  • Zone (str) - 可用区。参见 可用区列表
  • +
+

Response

+
    +
  • DataSet (list) - 见 UDBBackupSet 模型定义
  • +
  • TotalCount (int) - 满足条件备份总数,如果指定dbid,则是该db备份总数
  • +
+

Response Model

+

UDBBackupSet

+
    +
  • BackupEndTime (int) - 备份完成时间(Unix时间戳)
  • +
  • BackupId (int) - 备份id
  • +
  • BackupName (str) - 备份名称
  • +
  • BackupSize (int) - 备份文件大小(字节)
  • +
  • BackupTime (int) - 备份时间(Unix时间戳)
  • +
  • BackupType (int) - 备份类型,取值为0或1,0表示自动,1表示手动
  • +
  • BackupZone (str) - 跨机房高可用备库所在可用区
  • +
  • DBId (str) - dbid
  • +
  • DBName (str) - 对应的db名称
  • +
  • ErrorInfo (str) - 备份错误信息
  • +
  • State (str) - 备份状态 Backuping // 备份中 Success // 备份成功 Failed // 备份失败 Expired // 备份过期
  • +
  • Zone (str) - 备份所在可用区
  • +
+
+ +
+
+describe_udb_backup_blacklist(req=None, **kwargs)[source]
+

DescribeUDBBackupBlacklist - 获取UDB实例的备份黑名单

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • DBId (str) - (Required) DB实例Id,该值可以通过DescribeUDBInstance获取
  • +
  • Zone (str) - 可用区。参见 可用区列表
  • +
+

Response

+
    +
  • Blacklist (str) - DB的黑名单列表, db.%为指定库 dbname.tablename为指定表
  • +
+
+ +
+
+describe_udb_binlog_backup_url(req=None, **kwargs)[source]
+

DescribeUDBBinlogBackupURL - 获取UDB的Binlog备份地址

+

Request

+
    +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • BackupId (int) - (Required) DB实例备份ID
  • +
  • DBId (str) - (Required) DB实例Id
  • +
  • Zone (str) - 可用区。参见 可用区列表
  • +
+

Response

+
    +
  • BackupPath (str) - DB实例备份文件的公网地址
  • +
  • InnerBackupPath (str) - DB实例备份文件的内网地址
  • +
+
+ +
+
+describe_udb_instance(req=None, **kwargs)[source]
+

DescribeUDBInstance - 获取UDB实例信息,支持两类操作:(1)指定DBId用于获取该db的信息;(2)指定ClassType、Offset、Limit用于列表操作,查询某一个类型db。

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • ClassType (str) - (Required) DB种类,如果是列表操作,则需要指定,不区分大小写,其取值如下:mysql: SQL;mongo: NOSQL;postgresql: postgresql
  • +
  • Limit (int) - (Required) 分页显示数量,列表操作则指定
  • +
  • Offset (int) - (Required) 分页显示起始偏移位置,列表操作则指定
  • +
  • DBId (str) - DB实例id,如果指定则获取描述,否则为列表操作, 指定Offset/Limit/ClassType DBId可通过DescribeUDBInstance获取
  • +
  • IncludeSlaves (bool) - 当只获取这个特定DBId的信息时,如果有该选项,那么把这个DBId实例的所有从库信息一起拉取并返回
  • +
  • IsInUDBC (bool) - 是否查看专区里面DB
  • +
  • UDBCId (str) - IsInUDBC为True,UDBCId为空,说明查看整个可用区的专区的db,如果UDBId不为空则只查看此专区下面的db
  • +
  • Zone (str) - 可用区。参见 可用区列表
  • +
+

Response

+
    +
  • DataSet (list) - 见 UDBInstanceSet 模型定义
  • +
  • TotalCount (int) - 用户db组的数量,对于 mysql: 主从结对数量,没有slave,则只有master mongodb: 副本集数量
  • +
+

Response Model

+

UDBSlaveInstanceSet

+
    +
  • AdminUser (str) - 管理员帐户名,默认root
  • +
  • BackupBeginTime (int) - 备份策略,不可修改,开始时间,单位小时计,默认3点
  • +
  • BackupBlacklist (str) - 备份策略,备份黑名单,mongodb则不适用
  • +
  • BackupCount (int) - 备份策略,不可修改,备份文件保留的数量,默认7次
  • +
  • BackupDate (str) - 备份日期标记位。共7位,每一位为一周中一天的备份情况 0表示关闭当天备份,1表示打开当天备份。最右边的一位 为星期天的备份开关,其余从右到左依次为星期一到星期 六的备份配置开关,每周必须至少设置两天备份。 例如:1100000 表示打开星期六和星期五的自动备份功能
  • +
  • BackupDuration (int) - 备份策略,一天内备份时间间隔,单位小时,默认24小时
  • +
  • ChargeType (str) - Year, Month, Dynamic,Trial,默认: Dynamic
  • +
  • ClusterRole (str) - 当DB类型为mongodb时,返回该实例所在集群中的角色,包括:mongos、configsrv_sccc、configsrv_csrs、shardsrv_datanode、shardsrv_arbiter,其中congfigsrv分为sccc和csrs两种模式,shardsrv分为datanode和arbiter两种模式
  • +
  • CreateTime (int) - DB实例创建时间,采用UTC计时时间戳
  • +
  • DBId (str) - DB实例id
  • +
  • DBTypeId (str) - DB类型id,mysql/mongodb按版本细分各有一个id 目前id的取值范围为[1,7],数值对应的版本如下: 1:mysql-5.5,2:mysql-5.1,3:percona-5.5 4:mongodb-2.4,5:mongodb-2.6,6:mysql-5.6, 7:percona-5.6
  • +
  • DataFileSize (float) - DB实例数据文件大小,单位GB
  • +
  • DiskSpace (int) - 磁盘空间(GB), 默认根据配置机型
  • +
  • DiskUsedSize (float) - DB实例磁盘已使用空间,单位GB
  • +
  • ExpiredTime (int) - DB实例过期时间,采用UTC计时时间戳
  • +
  • InstanceMode (str) - UDB实例模式类型, 可选值如下: “Normal”: 普通版UDB实例;”HA”: 高可用版UDB实例
  • +
  • InstanceType (str) - UDB数据库机型
  • +
  • InstanceTypeId (int) - UDB数据库机型ID
  • +
  • LogFileSize (float) - DB实例日志文件大小,单位GB
  • +
  • MemoryLimit (int) - 内存限制(MB),默认根据配置机型
  • +
  • ModifyTime (int) - DB实例修改时间,采用UTC计时时间戳
  • +
  • Name (str) - 实例名称,至少6位
  • +
  • ParamGroupId (int) - DB实例使用的配置参数组id
  • +
  • Port (int) - 端口号,mysql默认3306,mongodb默认27017
  • +
  • Role (str) - DB实例角色,mysql区分master/slave,mongodb多种角色
  • +
  • SSDType (str) - SSD类型,SATA/PCI-E
  • +
  • SrcDBId (str) - 对mysql的slave而言是master的DBId,对master则为空, 对mongodb则是副本集id
  • +
  • State (str) - DB状态标记 Init:初始化中,Fail:安装失败,Starting:启动中,Running:运行,Shutdown:关闭中,Shutoff:已关闭,Delete:已删除,Upgrading:升级中,Promoting:提升为独库进行中,Recovering:恢复中,Recover fail:恢复失败
  • +
  • SubnetId (str) - 子网ID
  • +
  • SystemFileSize (float) - DB实例系统文件大小,单位GB
  • +
  • Tag (str) - 获取资源其他信息
  • +
  • UseSSD (bool) - 是否使用SSD
  • +
  • VPCId (str) - VPC的ID
  • +
  • VirtualIP (str) - DB实例虚ip
  • +
  • VirtualIPMac (str) - DB实例虚ip的mac地址
  • +
  • Zone (str) - 可用区
  • +
+

UDBInstanceSet

+
    +
  • AdminUser (str) - 管理员帐户名,默认root
  • +
  • BackupBeginTime (int) - 备份策略,不可修改,开始时间,单位小时计,默认3点
  • +
  • BackupBlacklist (str) - 备份策略,备份黑名单,mongodb则不适用
  • +
  • BackupCount (int) - 备份策略,不可修改,备份文件保留的数量,默认7次
  • +
  • BackupDate (str) - 备份日期标记位。共7位,每一位为一周中一天的备份情况 0表示关闭当天备份,1表示打开当天备份。最右边的一位 为星期天的备份开关,其余从右到左依次为星期一到星期 六的备份配置开关,每周必须至少设置两天备份。 例如:1100000 表示打开星期六和星期五的自动备份功能
  • +
  • BackupDuration (int) - 备份策略,一天内备份时间间隔,单位小时,默认24小时
  • +
  • BackupZone (str) - 跨可用区高可用备库所在可用区
  • +
  • ChargeType (str) - Year, Month, Dynamic,Trial,默认: Dynamic
  • +
  • CluserRole (str) - 当DB类型为mongodb时,返回该实例所在集群中的角色,包括:mongos、configsrv_sccc、configsrv_csrs、shardsrv_datanode、shardsrv_arbiter,其中congfigsrv分为sccc和csrs两种模式,shardsrv分为datanode和arbiter两种模式
  • +
  • CreateTime (int) - DB实例创建时间,采用UTC计时时间戳
  • +
  • DBId (str) - DB实例id
  • +
  • DBTypeId (str) - DB类型id,mysql/mongodb按版本细分各有一个id 目前id的取值范围为[1,7],数值对应的版本如下: 1:mysql-5.5,2:mysql-5.1,3:percona-5.5 4:mongodb-2.4,5:mongodb-2.6,6:mysql-5.6, 7:percona-5.6
  • +
  • DataFileSize (float) - DB实例数据文件大小,单位GB
  • +
  • DataSet (list) - 见 UDBSlaveInstanceSet 模型定义
  • +
  • DiskSpace (int) - 磁盘空间(GB), 默认根据配置机型
  • +
  • DiskUsedSize (float) - DB实例磁盘已使用空间,单位GB
  • +
  • ExpiredTime (int) - DB实例过期时间,采用UTC计时时间戳
  • +
  • InstanceMode (str) - UDB实例模式类型, 可选值如下: “Normal”: 普通版UDB实例 “HA”: 高可用版UDB实例
  • +
  • InstanceType (str) - UDB数据库机型
  • +
  • InstanceTypeId (int) - UDB数据库机型ID
  • +
  • LogFileSize (float) - DB实例日志文件大小,单位GB
  • +
  • MemoryLimit (int) - 内存限制(MB),默认根据配置机型
  • +
  • ModifyTime (int) - DB实例修改时间,采用UTC计时时间戳
  • +
  • Name (str) - 实例名称,至少6位
  • +
  • ParamGroupId (int) - DB实例使用的配置参数组id
  • +
  • Port (int) - 端口号,mysql默认3306,mongodb默认27017
  • +
  • Role (str) - DB实例角色,mysql区分master/slave,mongodb多种角色
  • +
  • SSDType (str) - SSD类型,SATA/PCI-E
  • +
  • SrcDBId (str) - 对mysql的slave而言是master的DBId,对master则为空, 对mongodb则是副本集id
  • +
  • State (str) - DB状态标记 Init:初始化中,Fail:安装失败,Starting:启动中,Running:运行,Shutdown:关闭中,Shutoff:已关闭,Delete:已删除,Upgrading:升级中,Promoting:提升为独库进行中,Recovering:恢复中,Recover fail:恢复失败
  • +
  • SubnetId (str) - 子网ID
  • +
  • SystemFileSize (float) - DB实例系统文件大小,单位GB
  • +
  • Tag (str) - 获取资源其他信息
  • +
  • UseSSD (bool) - 是否使用SSD
  • +
  • VPCId (str) - VPC的ID
  • +
  • VirtualIP (str) - DB实例虚ip
  • +
  • VirtualIPMac (str) - DB实例虚ip的mac地址
  • +
  • Zone (str) - DB实例所在可用区
  • +
+
+ +
+
+describe_udb_instance_backup_state(req=None, **kwargs)[source]
+

DescribeUDBInstanceBackupState - 获取UDB实例备份状态

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • BackupId (int) - (Required) 备份记录ID
  • +
  • Zone (str) - (Required) 可用区。参见 可用区列表
  • +
  • BackupZone (str) - 跨可用区高可用备库所在可用区,参见[可用区列表]
  • +
+

Response

+
    +
  • BackupEndTime (int) -
  • +
  • BackupSize (int) -
  • +
  • State (str) - 备份状态 0 Backuping // 备份中 1 Success // 备份成功 2 Failed // 备份失败 3 Expired // 备份过期
  • +
+
+ +
+
+describe_udb_instance_backup_url(req=None, **kwargs)[source]
+

DescribeUDBInstanceBackupURL - 获取UDB备份下载地址

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • BackupId (int) - (Required) DB实例备份ID,该值可以通过DescribeUDBBackup获取
  • +
  • DBId (str) - (Required) DB实例Id,该值可通过DescribeUDBInstance获取
  • +
  • Zone (str) - 可用区。参见 可用区列表
  • +
+

Response

+
    +
  • BackupPath (str) - DB实例备份文件公网的地址
  • +
  • InnerBackupPath (str) - DB实例备份文件内网的地址
  • +
+
+ +
+
+describe_udb_instance_binlog(req=None, **kwargs)[source]
+

DescribeUDBInstanceBinlog - 获取UDB指定时间段的binlog列表

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • BeginTime (int) - (Required) 过滤条件:起始时间(时间戳)
  • +
  • DBId (str) - (Required) DB实例Id
  • +
  • EndTime (int) - (Required) 过滤条件:结束时间(时间戳)
  • +
  • Zone (str) - 可用区。参见 可用区列表
  • +
+

Response

+
    +
  • DataSet (list) - 见 UDBInstanceBinlogSet 模型定义
  • +
+

Response Model

+

UDBInstanceBinlogSet

+
    +
  • BeginTime (int) - Binlog文件生成时间(时间戳)
  • +
  • EndTime (int) - Binlog文件结束时间(时间戳)
  • +
  • Name (str) - Binlog文件名
  • +
  • Size (int) - Binlog文件大小
  • +
+
+ +
+
+describe_udb_instance_binlog_backup_state(req=None, **kwargs)[source]
+

DescribeUDBInstanceBinlogBackupState - 获取udb实例备份状态

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • BackupId (int) - (Required) 备份记录ID
  • +
  • Zone (str) - (Required) 可用区。参见 可用区列表
  • +
  • BackupZone (str) - 跨可用区高可用备库所在可用区
  • +
+

Response

+
    +
  • BackupSize (int) - 备份文件大小(字节)
  • +
  • State (str) - 备份状态 0 Backuping // 备份中 1 Success // 备份成功 2 Failed // 备份失败 3 Expired // 备份过期
  • +
+
+ +
+
+describe_udb_instance_price(req=None, **kwargs)[source]
+

DescribeUDBInstancePrice - 获取UDB实例价格信息

+

Request

+
    +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • DBTypeId (str) - (Required) UDB实例的DB版本字符串
  • +
  • DiskSpace (int) - (Required) 磁盘空间(GB),暂时支持20(GB) - 3000(GB), 输入不带单位
  • +
  • MemoryLimit (int) - (Required) 内存限制(MB),单位为MB.目前支持:1000-96000
  • +
  • Zone (str) - (Required) 可用区。参见 可用区列表
  • +
  • ChargeType (str) - Year,按年付费; Month,按月付费 Dynamic,按需付费(需开启权限) Trial,试用(需开启权限)默认为月付
  • +
  • Count (int) - 购买DB实例数量,最大数量为10台, 默认为1台
  • +
  • InstanceMode (str) - 实例的部署类型。可选值为:Normal: 普通单点实例,Slave: 从库实例,HA: 高可用部署实例,默认是Normal
  • +
  • Quantity (int) - DB购买多少个”计费时间单位”,默认值为1。比如:买2个月,Quantity就是2。如果计费单位是“按月”,并且Quantity为0,表示“购买到月底”
  • +
  • SSDType (str) - SSD类型,可选值为”SATA”、”PCI-E”,如果UseSSD为true ,则必填
  • +
  • UseSSD (bool) - 是否使用SSD,默认为false
  • +
+

Response

+
    +
  • DataSet (list) - 见 UDBInstancePriceSet 模型定义
  • +
+

Response Model

+

UDBInstancePriceSet

+
    +
  • ChargeType (str) - Year, Month, Dynamic,Trial
  • +
  • Price (float) - 价格,单位为分,保留小数点后两位
  • +
+
+ +
+
+describe_udb_instance_state(req=None, **kwargs)[source]
+

DescribeUDBInstanceState - 获取UDB实例状态

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • DBId (str) - (Required) 实例的Id,该值可以通过DescribeUDBInstance获取
  • +
  • Zone (str) - 可用区。参见 可用区列表
  • +
+

Response

+
    +
  • State (str) - DB状态标记 Init:初始化中;Fail:安装失败; Starting:启动中; Running : 运行 ;Shutdown:关闭中; Shutoff :已关闭; Delete:已删除; Upgrading:升级中; Promoting: 提升为独库进行中; Recovering: 恢复中; Recover fail:恢复失败。
  • +
+
+ +
+
+describe_udb_instance_upgrade_price(req=None, **kwargs)[source]
+

DescribeUDBInstanceUpgradePrice - 获取UDB实例升降级价格信息

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • DBId (str) - (Required) 实例的Id
  • +
  • DiskSpace (int) - (Required) 磁盘空间(GB), 暂时支持20G - 500G
  • +
  • MemoryLimit (int) - (Required) 内存限制(MB)
  • +
  • SSDType (str) - SSD类型,可选值为”SATA”、”PCI-E”,如果UseSSD为true ,则必选
  • +
  • UseSSD (bool) - 是否使用SSD,默认为false
  • +
  • Zone (str) - 可用区。参见 可用区列表
  • +
+

Response

+
    +
  • Price (float) - 价格,单位分
  • +
+
+ +
+
+describe_udb_log_backup_url(req=None, **kwargs)[source]
+

DescribeUDBLogBackupURL - 获取UDB的slowlog备份地址

+

Request

+
    +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • BackupId (int) - (Required) DB实例备份ID
  • +
  • DBId (str) - (Required) DB实例Id
  • +
  • Zone (str) - 可用区。参见 可用区列表
  • +
+

Response

+
    +
  • BackupPath (str) - 备份外网URL
  • +
  • UsernetPath (str) - 备份用户网URL
  • +
+
+ +
+
+describe_udb_log_package(req=None, **kwargs)[source]
+

DescribeUDBLogPackage - 列表UDB实例binlog或slowlog或errorlog备份信息

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • Limit (int) - (Required) 分页显示的条目数,列表操作则指定
  • +
  • Offset (int) - (Required) 分页显示的起始偏移,列表操作则指定
  • +
  • BeginTime (int) - 过滤条件:起始时间(时间戳)
  • +
  • DBId (str) - DB实例Id,如果指定,则只获取该db的备份信息
  • +
  • EndTime (int) - 过滤条件:结束时间(时间戳)
  • +
  • Type (int) - 需要列出的备份文件类型,每种文件的值如下 2 : BINLOG_BACKUP 3 : SLOW_QUERY_BACKUP 4 : ERRORLOG_BACKUP
  • +
  • Types (list) - Types作为Type的补充,支持多值传入,可以获取多个类型的日志记录,如:Types.0=2&Types.1=3
  • +
  • Zone (str) - 可用区。参见 可用区列表
  • +
+

Response

+
    +
  • DataSet (list) - 见 LogPackageDataSet 模型定义
  • +
  • TotalCount (int) - 备份总数,如果指定dbid,则是该db备份总数
  • +
+

Response Model

+

LogPackageDataSet

+
    +
  • BackupId (int) - 备份id
  • +
  • BackupName (str) - 备份名称
  • +
  • BackupSize (int) - 备份文件大小
  • +
  • BackupTime (int) - 备份时间
  • +
  • BackupType (int) - 备份类型,包括2-binlog备份,3-slowlog备份
  • +
  • BackupZone (str) - 跨可用区高可用备库所在可用区
  • +
  • DBId (str) - dbid
  • +
  • DBName (str) - 对应的db名称
  • +
  • State (str) - 备份状态 Backuping // 备份中 Success // 备份成功 Failed // 备份失败 Expired // 备份过期
  • +
  • Zone (str) - 所在可用区
  • +
+
+ +
+
+describe_udb_param_group(req=None, **kwargs)[source]
+

DescribeUDBParamGroup - 获取参数组详细参数信息

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • Limit (int) - (Required) 分页显示的条目数,列表操作则指定
  • +
  • Offset (int) - (Required) 分页显示的起始偏移,列表操作则指定
  • +
  • ClassType (str) - 如果未指定GroupId,则可选是否选取特定DB类型的配置(sql, nosql, postgresql, sqlserver)
  • +
  • GroupId (int) - 参数组id,如果指定则获取描述,否则是列表操作,需要 指定Offset/Limit
  • +
  • IsInUDBC (bool) - 是否选取专区中配置
  • +
  • RegionFlag (bool) - 当请求没有填写Zone时,如果指定为true,表示只拉取跨可用区的相关配置文件,否则,拉取所有机房的配置文件(包括每个单可用区和跨可用区)
  • +
  • Zone (str) - 可用区。参见 可用区列表
  • +
+

Response

+
    +
  • DataSet (list) - 见 UDBParamGroupSet 模型定义
  • +
  • TotalCount (int) - 参数组总数,列表操作时才会有该参数
  • +
+

Response Model

+

UDBParamMemberSet

+
    +
  • AllowedVal (str) - 允许的值(根据参数类型,用分隔符表示)
  • +
  • ApplyType (int) - 参数值应用类型,取值范围为{0,10,20},各值代表 意义为0-unknown、10-static、20-dynamic
  • +
  • FormatType (int) - 允许值的格式类型,取值范围为{0,10,20},意义分 别为PVFT_UNKOWN=0,PVFT_RANGE=10, PVFT_ENUM=20
  • +
  • Key (str) - 参数名称
  • +
  • Modifiable (bool) - 是否可更改,默认为false
  • +
  • Value (str) - 参数值
  • +
  • ValueType (int) - 参数值应用类型,取值范围为{0,10,20,30},各值 代表意义为 0-unknown、10-int、20-string、 30-bool
  • +
+

UDBParamGroupSet

+
    +
  • DBTypeId (str) - DB类型id,mysql/mongodb按版本细分各有一个id 目前id的取值范围为[1,7],数值对应的版本如下 1:mysql-5.5,2:mysql-5.1,3:percona-5.5 4:mongodb-2.4,5:mongodb-2.6,6:mysql-5.6 7:percona-5.6
  • +
  • Description (str) - 参数组描述
  • +
  • GroupId (int) - 参数组id
  • +
  • GroupName (str) - 参数组名称
  • +
  • Modifiable (bool) - 参数组是否可修改
  • +
  • ParamMember (list) - 见 UDBParamMemberSet 模型定义
  • +
  • RegionFlag (bool) -
  • +
  • Zone (str) -
  • +
+
+ +
+
+describe_udb_type(req=None, **kwargs)[source]
+

DescribeUDBType - 获取UDB支持的类型信息

+

Request

+
    +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • Zone (str) - (Required) 可用区。参见 可用区列表
  • +
  • DBClusterType (str) - DB实例类型,如mysql,sqlserver,mongo,postgresql
  • +
  • DiskType (str) - 返回支持某种磁盘类型的DB类型。如果没传,则表示任何磁盘类型均可。
  • +
  • InstanceMode (str) - 返回支持某种实例类型的DB类型。如果没传,则表示任何实例类型均可。normal:单点,ha:高可用,sharded_cluster:分片集群
  • +
+

Response

+
    +
  • DataSet (list) - 见 UDBTypeSet 模型定义
  • +
+

Response Model

+

UDBTypeSet

+
    +
  • DBTypeId (str) - DB类型id,mysql/mongodb按版本细分各有一个id, 目前id的取值范围为[1,7],数值对应的版本如下: 1:mysql-5.5,2:mysql-5.1,3:percona-5.5 4:mongodb-2.4,5:mongodb-2.6,6:mysql-5.6, 7:percona-5.6
  • +
+
+ +
+
+edit_udb_backup_blacklist(req=None, **kwargs)[source]
+

EditUDBBackupBlacklist - 编辑UDB实例的备份黑名单

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • Blacklist (str) - (Required) 黑名单,规范示例,指定库mysql.%;test.%; 指定表city.address;
  • +
  • DBId (str) - (Required) DB实例Id,该值可以通过DescribeUDBInstance获取
  • +
  • Zone (str) - 可用区。参见 可用区列表
  • +
+

Response

+
+ +
+
+fetch_udb_instance_earliest_recover_time(req=None, **kwargs)[source]
+

FetchUDBInstanceEarliestRecoverTime - 获取UDB最早可回档的时间点

+

Request

+ +

Response

+
    +
  • EarliestTime (int) - 获取最早可回档时间点
  • +
+
+ +
+
+modify_udb_instance_name(req=None, **kwargs)[source]
+

ModifyUDBInstanceName - 重命名UDB实例

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • DBId (str) - (Required) 实例的Id,该值可以通过DescribeUDBInstance获取
  • +
  • Name (str) - (Required) 实例的新名字, 长度要求为6~63位
  • +
  • Zone (str) - 可用区。参见 可用区列表
  • +
+

Response

+
+ +
+
+modify_udb_instance_password(req=None, **kwargs)[source]
+

ModifyUDBInstancePassword - 修改DB实例的管理员密码

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • DBId (str) - (Required) 实例的ID,该值可以通过DescribeUDBInstance获取
  • +
  • Password (str) - (Required) 实例的新密码
  • +
  • AccountName (str) - sqlserver帐号,仅在sqlserver的情况下填该参数
  • +
  • Zone (str) - 可用区。参见 可用区列表
  • +
+

Response

+
+ +
+
+promote_udb_instance_to_ha(req=None, **kwargs)[source]
+

PromoteUDBInstanceToHA - 普通db升级为高可用(只针对mysql5.5及以上版本)

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • DBId (str) - (Required) 实例的Id,该值可以通过DescribeUDBInstance获取
  • +
+

Response

+
+ +
+
+promote_udb_slave(req=None, **kwargs)[source]
+

PromoteUDBSlave - 从库提升为独立库

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • DBId (str) - (Required) 实例的Id,该值可以通过DescribeUDBInstance获取
  • +
  • IsForce (bool) - 是否强制(如果从库落后可能会禁止提升),默认false 如果落后情况下,强制提升丢失数据
  • +
  • Zone (str) - 可用区。参见 可用区列表
  • +
+

Response

+
+ +
+
+resize_udb_instance(req=None, **kwargs)[source]
+

ResizeUDBInstance - 修改(升级和降级)UDB实例的配置,包括内存和磁盘的配置,对于内存升级无需关闭实例,其他场景需要事先关闭实例。两套参数可以配置升降机:1.配置UseSSD和SSDType 2.配置InstanceType,不需要配置InstanceMode。这两套第二套参数的优先级更高

+

Request

+
    +
  • ProjectId (int) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • DBId (str) - (Required) 实例的Id
  • +
  • DiskSpace (int) - (Required) 磁盘空间(GB), 暂时支持20G-3000G
  • +
  • MemoryLimit (int) - (Required) 内存限制(MB),目前支持以下几档 1000M/2000M/4000M/ 6000M/8000M/ 12000M/16000M/ 24000M/32000M/ 48000M/64000M/96000M。
  • +
  • CouponId (str) - 使用的代金券id
  • +
  • InstanceMode (str) - UDB实例模式类型, 可选值如下: “Normal”: 普通版UDB实例 “HA”: 高可用版UDB实例 默认是”Normal”
  • +
  • InstanceType (str) - UDB数据库机型: “Normal”: “标准机型” , “SATA_SSD”: “SSD机型” , “PCIE_SSD”: “SSD高性能机型” , “Normal_Volume”: “标准大容量机型”, “SATA_SSD_Volume”: “SSD大容量机型” , “PCIE_SSD_Volume”: “SSD高性能大容量机型”
  • +
  • SSDType (str) - SSD类型,可选值为”SATA”、”PCI-E”,如果UseSSD为true ,则必选
  • +
  • StartAfterUpgrade (bool) - DB关闭状态下升降级,升降级后是否启动DB,默认为false
  • +
  • UDBCId (str) - 专区的ID,如果有值表示专区中的DB配置升降级
  • +
  • UseSSD (bool) - 是否使用SSD,默认为false
  • +
  • Zone (str) - 可用区。参见 可用区列表
  • +
+

Response

+
+ +
+
+restart_udb_instance(req=None, **kwargs)[source]
+

RestartUDBInstance - 重启UDB实例

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • DBId (str) - (Required) 实例的Id,该值可以通过DescribeUDBInstance获取
  • +
  • Zone (str) - 可用区。参见 可用区列表
  • +
+

Response

+
+ +
+
+start_udb_instance(req=None, **kwargs)[source]
+

StartUDBInstance - 启动UDB实例

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • DBId (str) - (Required) 实例的Id,该值可以通过DescribeUDBInstance获取
  • +
  • Zone (str) - 可用区。参见 可用区列表
  • +
+

Response

+
+ +
+
+stop_udb_instance(req=None, **kwargs)[source]
+

StopUDBInstance - 关闭UDB实例

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • DBId (str) - (Required) 实例的Id,该值可以通过DescribeUDBInstance获取
  • +
  • ForceToKill (bool) - 是否使用强制手段关闭DB,默认是false
  • +
  • Zone (str) - 可用区。参见 可用区列表
  • +
+

Response

+
+ +
+
+switch_udb_instance_to_ha(req=None, **kwargs)[source]
+

SwitchUDBInstanceToHA - 普通UDB切换为高可用,原db状态为WaitForSwitch时,调用该api

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • DBId (str) - (Required) 实例的Id,该值可以通过DescribeUDBInstance获取
  • +
  • ChargeType (str) - Year, Month, Dynamic,Trial,不填则按现在单点计费执行
  • +
  • Quantity (str) - 购买时长,需要和 ChargeType 搭配使用,否则使用单点计费策略的值
  • +
  • Tag (str) - 业务组
  • +
+

Response

+
    +
  • DBId (str) - 切换后高可用db实例的Id
  • +
+
+ +
+
+update_udb_instance_backup_strategy(req=None, **kwargs)[source]
+

UpdateUDBInstanceBackupStrategy - 修改UDB自动备份策略

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • DBId (str) - (Required) 主节点的Id
  • +
  • BackupDate (str) - 备份时期标记位。共7位,每一位为一周中一天的备份情况,0表示关闭当天备份,1表示打开当天备份。最右边的一位为星期天的备份开关,其余从右到左依次为星期一到星期六的备份配置开关,每周必须至少设置两天备份。例如:1100000表示打开星期六和星期五的备份功能
  • +
  • BackupMethod (str) - 选择默认的备份方式,可选 snapshot 表示使用快照/物理备份,填 logic 表示使用逻辑备份。需要同时设置BackupDate字段。(注意现在只有SSD 版本的 MySQL实例支持物理备份)
  • +
  • BackupTime (int) - 备份的整点时间,范围[0,23]
  • +
  • ForceDump (bool) - 当导出某些数据遇到问题后,是否强制导出其他剩余数据默认是false需要同时设置BackupDate字段
  • +
  • Zone (str) - 可用区。参见 可用区列表
  • +
+

Response

+
+ +
+
+update_udb_instance_slave_backup_switch(req=None, **kwargs)[source]
+

UpdateUDBInstanceSlaveBackupSwitch - 开启或者关闭UDB从库备份

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • BackupSwitch (int) - (Required) 从库的备份开关,范围[0,1],0表示从库备份功能关闭,1 表示从库备份开关打开。
  • +
  • MasterDBId (str) - (Required) 主库的Id
  • +
  • SlaveDBId (str) - 从库的Id,如果从库备份开关设定为打开,则必须赋值。
  • +
  • Zone (str) - 可用区。参见 可用区列表
  • +
+

Response

+
+ +
+
+update_udb_param_group(req=None, **kwargs)[source]
+

UpdateUDBParamGroup - 更新UDB配置参数项

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • GroupId (int) - (Required) 配置参数组id,使用DescribeUDBParamGroup获得
  • +
  • Zone (str) - (Required) 可用区。参见 可用区列表
  • +
  • Description (str) - 参数组的描述
  • +
  • Key (str) - 参数名称(与Value配合使用)
  • +
  • Name (str) - 参数组的名字
  • +
  • RegionFlag (bool) - 该配置文件是否是地域级别配置文件,默认是false
  • +
  • Value (str) - 参数值(与Key配合使用)
  • +
+

Response

+
+ +
+
+upload_udb_param_group(req=None, **kwargs)[source]
+

UploadUDBParamGroup - 导入UDB配置

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • Content (str) - (Required) 配置内容,导入的配置内容采用base64编码
  • +
  • DBTypeId (str) - (Required) DB类型id,DB类型id,mysql/mongodb/postgesql按版本细分 1:mysql-5.1,2:mysql-5.5,3:percona-5.5,4:mysql-5.6,5:percona-5.6,6:mysql-5.7,7:percona-5.7,8:mariadb-10.0,9:mongodb-2.4,10:mongodb-2.6,11:mongodb-3.0,12:mongodb-3.2,13:postgresql-9.4,14:postgresql-9.6
  • +
  • Description (str) - (Required) 参数组描述
  • +
  • GroupName (str) - (Required) 配置参数组名称
  • +
  • Zone (str) - (Required) 可用区。参见 可用区列表
  • +
  • ParamGroupTypeId (int) - 配置文件子类型 0-未知, 1-Shardsvr-MMAPv1, 2-Shardsvr-WiredTiger, 3-Configsvr-MMAPv1, 4-Configsvr-WiredTiger, 5-Mongos
  • +
  • RegionFlag (bool) - 该配置文件是否是地域级别配置文件,默认是false
  • +
+

Response

+
    +
  • GroupId (int) - 配置参数组id
  • +
+
+ +
+ +
+
+

UPHost

+
+
+class ucloud.services.uphost.client.UPHostClient(config, transport=None, middleware=None, logger=None)[source]
+
+
+create_phost(req=None, **kwargs)[source]
+

CreatePHost - 指定数据中心,根据资源使用量创建指定数量的UPHost物理云主机实例。

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • ImageId (str) - (Required) 镜像ID。 请通过 [DescribePHostImage]获取
  • +
  • Password (str) - (Required) 密码(密码需使用base64进行编码)
  • +
  • Zone (str) - (Required) 可用区。参见 可用区列表
  • +
  • ChargeType (str) - 计费模式,枚举值为:year, 按年付费; month,按月付费;dynamic,按需付费,(需开启权限) trial, 试用(需开启权限)。默认为按月付费
  • +
  • Cluster (str) - 网络环境,可选千兆:1G ,万兆:10G, 默认1G
  • +
  • Count (int) - 购买数量,默认为1,(暂不支持)
  • +
  • CouponId (str) - 代金券
  • +
  • Name (str) - 物理机名称,默认为phost
  • +
  • Quantity (str) - 购买时长,默认为1,范围[1-10]
  • +
  • Raid (str) - Raid配置,默认Raid10 支持:Raid0、Raid1、Raid5、Raid10,NoRaid
  • +
  • Remark (str) - 物理机备注,默认为空
  • +
  • SecurityGroupId (str) - 防火墙Id,默认:Web推荐防火墙。如何查询SecurityGroupId请参见 DescribeSecurityGroup
  • +
  • SubnetId (str) - 子网ID,不填为默认,VPC2.0下需要填写此字段。
  • +
  • Tag (str) - 业务组,默认为default
  • +
  • Type (str) - 物理机类型,默认为:db-2(基础型-SAS-V3)
  • +
  • VPCId (str) - VPC ID,不填为默认,VPC2.0下需要填写此字段。
  • +
+

Response

+
    +
  • PHostId (list) - PHost的资源ID数组
  • +
+
+ +
+
+describe_phost(req=None, **kwargs)[source]
+

DescribePHost - 获取物理机详细信息

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • Limit (int) - 返回数据长度,默认为20
  • +
  • Offset (int) - 数据偏移量,默认为0
  • +
  • PHostId (list) - PHost资源ID,若为空,则返回当前Region所有PHost。
  • +
  • Zone (str) - 可用区。参见 可用区列表
  • +
+

Response

+
    +
  • PHostSet (list) - 见 PHostSet 模型定义
  • +
  • TotalCount (int) - 满足条件的PHost总数
  • +
+

Response Model

+

PHostDiskSet

+
    +
  • Count (int) - 磁盘数量
  • +
  • IOCap (int) - 磁盘IO性能,单位MB/s(待废弃)
  • +
  • Name (str) - 磁盘名称,sys/data
  • +
  • Space (int) - 单盘大小,单位GB
  • +
  • Type (str) - 磁盘属性
  • +
+

PHostCPUSet

+
    +
  • CoreCount (int) - CPU核数
  • +
  • Count (int) - CPU个数
  • +
  • Frequence (float) - CPU主频
  • +
  • Model (str) - CPU型号
  • +
+

PHostIPSet

+
    +
  • Bandwidth (int) - IP对应带宽,单位Mb,内网IP不显示带宽信息
  • +
  • IPAddr (str) - IP地址,
  • +
  • IPId (str) - IP资源ID(内网IP无资源ID)(待废弃)
  • +
  • MACAddr (str) - MAC地址
  • +
  • OperatorName (str) - 国际: Internation, BGP: BGP, 内网: Private
  • +
  • SubnetId (str) - 子网ID
  • +
  • VPCId (str) - VPC ID
  • +
+

PHostSet

+
    +
  • AutoRenew (str) - 自动续费
  • +
  • CPUSet (list) - 见 PHostCPUSet 模型定义
  • +
  • ChargeType (str) - 计费模式,枚举值为: Year,按年付费; Month,按月付费; Dynamic,按需付费(需开启权限); Trial,试用(需开启权限)默认为月付
  • +
  • Cluster (str) - 网络环境。枚举值:千兆:1G ,万兆:10G
  • +
  • Components (str) - 组件信息(暂不支持)
  • +
  • CreateTime (int) - 创建时间
  • +
  • DiskSet (list) - 见 PHostDiskSet 模型定义
  • +
  • ExpireTime (int) - 到期时间
  • +
  • IPSet (list) - 见 PHostIPSet 模型定义
  • +
  • ImageName (str) - 镜像名称
  • +
  • IsSupportKVM (str) - 是否支持紧急登录
  • +
  • Memory (int) - 内存大小,单位:MB
  • +
  • Name (str) - 物理机名称
  • +
  • OSType (str) - 操作系统类型
  • +
  • OSname (str) - 操作系统名称
  • +
  • PHostId (str) - PHost资源ID
  • +
  • PHostType (str) - 物理机类型,参见DescribePHostMachineType返回值
  • +
  • PMStatus (str) - 物理云主机状态。枚举值:> 初始化:Initializing; > 启动中:Starting; > 运行中:Running;> 关机中:Stopping; > 安装失败:InstallFailed; > 重启中:Rebooting;> 关机:Stopped;
  • +
  • PowerState (str) - 电源状态,on 或 off
  • +
  • RaidSupported (str) - 是否支持Raid。枚举值:Yes:支持;No:不支持。
  • +
  • Remark (str) - 物理机备注
  • +
  • SN (str) - 物理机序列号
  • +
  • Tag (str) - 业务组
  • +
  • Zone (str) - 可用区,参见 可用区列表
  • +
+
+ +
+
+describe_phost_image(req=None, **kwargs)[source]
+

DescribePHostImage - 获取物理云主机镜像列表

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • Zone (str) - (Required) 可用区。参见 可用区列表
  • +
  • ImageId (list) - 镜像ID
  • +
  • ImageType (str) - 镜像类别,枚举为:Base,标准镜像;默认为标准镜像。
  • +
  • Limit (int) - 返回数据长度,默认为20
  • +
  • Offset (int) - 数据偏移量,默认为0
  • +
+

Response

+
    +
  • ImageSet (list) - 见 PHostImageSet 模型定义
  • +
  • TotalCount (int) - 满足条件的镜像总数
  • +
+

Response Model

+

PHostImageSet

+
    +
  • ImageId (str) - 镜像ID
  • +
  • ImageName (str) - 镜像名称
  • +
  • OsName (str) - 操作系统名称
  • +
  • OsType (str) - 操作系统类型
  • +
+
+ +
+
+describe_phost_tags(req=None, **kwargs)[source]
+

DescribePHostTags - 获取物理机tag列表(业务组)

+

Request

+ +

Response

+
    +
  • TagSet (list) - 见 PHostTagSet 模型定义
  • +
  • TotalCount (int) - Tag的个数
  • +
+

Response Model

+

PHostTagSet

+
    +
  • Tag (str) - 业务组名称
  • +
  • TotalCount (int) - 该业务组中包含的主机个数
  • +
+
+ +
+
+get_phost_price(req=None, **kwargs)[source]
+

GetPHostPrice - 获取物理机价格列表

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • ChargeType (str) - (Required) 计费模式,枚举值为: Year/Month/Trial/Dynamic
  • +
  • Count (int) - (Required) 购买数量,范围[1-5]
  • +
  • Quantity (int) - (Required) 购买时长,1-10个月或1-10年
  • +
  • Cluster (str) - 网络环境,可选千兆:1G ,万兆:10G
  • +
  • Type (str) - 默认为:DB(数据库型)
  • +
  • Zone (str) - 可用区。参见 可用区列表
  • +
+

Response

+
    +
  • PriceSet (list) - 见 PHostPriceSet 模型定义
  • +
+

Response Model

+

PHostPriceSet

+
    +
  • ChargeType (str) - Year/Month/Trial/Dynamic
  • +
  • Price (float) - 价格, 单位:元, 保留小数点后两位有效数字
  • +
+
+ +
+
+modify_phost_info(req=None, **kwargs)[source]
+

ModifyPHostInfo - 更改物理机信息

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • PHostId (str) - (Required) 物理机资源ID
  • +
  • Name (str) - 物理机名称,默认不更改
  • +
  • Remark (str) - 物理机备注,默认不更改
  • +
  • Tag (str) - 业务组,默认不更改
  • +
  • Zone (str) - 可用区。参见 可用区列表
  • +
+

Response

+
    +
  • PHostId (str) - PHost 的资源ID
  • +
+
+ +
+
+poweroff_phost(req=None, **kwargs)[source]
+

PoweroffPHost - 断电物理云主机

+

Request

+ +

Response

+
    +
  • PHostId (str) - PHost 的资源ID
  • +
+
+ +
+
+reboot_phost(req=None, **kwargs)[source]
+

RebootPHost - 重启物理机

+

Request

+ +

Response

+
    +
  • PHostId (str) - PHost 的资源ID
  • +
+
+ +
+
+reinstall_phost(req=None, **kwargs)[source]
+

ReinstallPHost - 重装物理机操作系统

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • PHostId (str) - (Required) PHost资源ID
  • +
  • Password (str) - (Required) 密码
  • +
  • Zone (str) - (Required) 可用区。参见 可用区列表
  • +
  • ImageId (str) - 镜像Id,参考镜像列表,默认使用原镜像
  • +
  • Name (str) - 物理机名称,默认不更改
  • +
  • Raid (str) - 不保留数据盘重装,可选Raid
  • +
  • Remark (str) - 物理机备注,默认为不更改。
  • +
  • ReserveDisk (str) - 是否保留数据盘,保留:Yes,不报留:No, 默认:Yes
  • +
  • Tag (str) - 业务组,默认不更改。
  • +
+

Response

+
    +
  • PHostId (str) - PHost 的资源ID
  • +
+
+ +
+
+start_phost(req=None, **kwargs)[source]
+

StartPHost - 启动物理机

+

Request

+ +

Response

+
    +
  • PHostId (str) - PHost 的资源ID
  • +
+
+ +
+
+terminate_phost(req=None, **kwargs)[source]
+

TerminatePHost - 删除物理云主机

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • PHostId (str) - (Required) PHost资源ID
  • +
  • ReleaseEIP (bool) - 是否释放绑定的EIP。true: 解绑EIP后,并释放;其他值或不填:解绑EIP。
  • +
  • Zone (str) - 可用区。参见 可用区列表
  • +
+

Response

+
    +
  • PHostId (str) - PHost 的资源ID
  • +
+
+ +
+ +
+
+

UDisk

+
+
+class ucloud.services.udisk.client.UDiskClient(config, transport=None, middleware=None, logger=None)[source]
+
+
+attach_udisk(req=None, **kwargs)[source]
+

AttachUDisk - 将一个可用的UDisk挂载到某台主机上,当UDisk挂载成功后,还需要在主机内部进行文件系统操作

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • UDiskId (str) - (Required) 需要挂载的UDisk实例ID.
  • +
  • UHostId (str) - (Required) UHost实例ID
  • +
  • Zone (str) - (Required) 可用区。参见 可用区列表
  • +
  • MultiAttach (str) - 是否允许多点挂载(Yes: 允许多点挂载, No: 不允许多点挂载, 不填默认Yes )
  • +
+

Response

+
    +
  • UDiskId (str) - 挂载的UDisk实例ID
  • +
  • UHostId (str) - 挂载的UHost实例ID
  • +
+
+ +
+
+clone_udisk(req=None, **kwargs)[source]
+

CloneUDisk - 从UDisk创建UDisk克隆

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • Name (str) - (Required) 实例名称
  • +
  • SourceId (str) - (Required) 克隆父Disk的Id
  • +
  • Zone (str) - (Required) 可用区。参见 可用区列表
  • +
  • ChargeType (str) - Year , Month, Dynamic,Postpay 默认: Dynamic
  • +
  • Comment (str) - Disk注释
  • +
  • CouponId (str) - 使用的代金券id
  • +
  • Quantity (int) - 购买时长 默认: 1
  • +
  • UDataArkMode (str) - 方舟是否开启,”Yes”:开启,”No”:关闭;默认为”No”
  • +
+

Response

+
    +
  • UDiskId (list) - 创建UDisk Id
  • +
+
+ +
+
+clone_udisk_snapshot(req=None, **kwargs)[source]
+

CloneUDiskSnapshot - 从快照创建UDisk克隆

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • Name (str) - (Required) 实例名称
  • +
  • Size (int) - (Required) 购买UDisk大小,单位:GB,范围[1~2000], 权限位控制可达8T,若需要请申请开通相关权限。
  • +
  • SourceId (str) - (Required) 克隆父Snapshot的Id
  • +
  • Zone (str) - (Required) 可用区。参见 可用区列表
  • +
  • ChargeType (str) - Year , Month, Dynamic,Postpay 默认: Dynamic
  • +
  • Comment (str) - Disk注释
  • +
  • CouponId (str) - 使用的代金券id
  • +
  • Quantity (int) - 购买时长 默认: 1
  • +
  • UDataArkMode (str) - 是否开启数据方舟 默认:No
  • +
+

Response

+
    +
  • UDiskId (list) - 创建UDisk Id
  • +
+
+ +
+
+create_udisk(req=None, **kwargs)[source]
+

CreateUDisk - 创建UDisk磁盘

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • Name (str) - (Required) 实例名称
  • +
  • Size (int) - (Required) 购买UDisk大小,单位:GB,普通盘: 范围[1~2000], 权限位控制可达8T,若需要请申请开通相关权限;SSD盘: 范围[1~4000]。
  • +
  • Zone (str) - (Required) 可用区。参见 可用区列表
  • +
  • ChargeType (str) - Year , Month, Dynamic, Postpay, Trial 默认: Dynamic
  • +
  • CmkId (str) - 加密需要的cmk id,UKmsMode为Yes时,必填
  • +
  • CouponId (str) - 使用的代金券id
  • +
  • DiskType (str) - UDisk 类型: DataDisk(普通数据盘),SSDDataDisk(SSD数据盘),RSSDDataDisk(RSSD数据盘),默认值(DataDisk)
  • +
  • Quantity (int) - 购买时长 默认: 1
  • +
  • Tag (str) - 业务组 默认:Default
  • +
  • UDataArkMode (str) - 是否开启数据方舟
  • +
  • UKmsMode (str) - 是否加密。Yes:加密,No:不加密,默认值(No)
  • +
+

Response

+
    +
  • UDiskId (list) - UDisk实例Id
  • +
+
+ +
+
+create_udisk_snapshot(req=None, **kwargs)[source]
+

CreateUDiskSnapshot - 创建snapshot快照

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • Name (str) - (Required) 快照名称
  • +
  • UDiskId (str) - (Required) 快照的UDisk的Id
  • +
  • Zone (str) - (Required) 可用区。参见 可用区列表
  • +
  • ChargeType (str) - Year , Month, Dynamic 默认: Dynamic
  • +
  • Comment (str) - 快照描述
  • +
  • Quantity (int) - 购买时长 默认: 1
  • +
+

Response

+
    +
  • SnapshotId (list) - 快照Id
  • +
+
+ +
+
+delete_udisk(req=None, **kwargs)[source]
+

DeleteUDisk - 删除UDisk

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • UDiskId (str) - (Required) 要删除的UDisk的Id
  • +
  • Zone (str) - (Required) 可用区。参见 可用区列表
  • +
+

Response

+
+ +
+
+delete_udisk_snapshot(req=None, **kwargs)[source]
+

DeleteUDiskSnapshot - 删除Snapshot

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • SnapshotId (str) - (Required) 快照Id
  • +
  • Zone (str) - (Required) 可用区。参见 可用区列表
  • +
  • UDiskId (str) - UDisk Id,删除该盘所创建出来的所有快照
  • +
+

Response

+
+ +
+
+describe_udisk(req=None, **kwargs)[source]
+

DescribeUDisk - 获取UDisk实例

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • DiskType (str) - 普通数据盘:DataDisk; 普通系统盘:SystemDisk; SSD数据盘:SSDDataDisk; RSSD数据盘:RSSDDataDisk; 为空拉取所有
  • +
  • Limit (int) - 返回数据长度, 默认为20
  • +
  • Offset (int) - 数据偏移量, 默认为0
  • +
  • UDiskId (str) - UDisk Id(留空返回全部)
  • +
  • Zone (str) - 可用区。参见 可用区列表
  • +
+

Response

+
    +
  • DataSet (list) - 见 UDiskDataSet 模型定义
  • +
  • TotalCount (int) - 根据过滤条件得到的总数
  • +
+

Response Model

+

UDiskDataSet

+
    +
  • ArkSwitchEnable (int) - 是否支持开启方舟,1支持 ,0不支持
  • +
  • ChargeType (str) - Year,Month,Dynamic,Trial,Postpay
  • +
  • CloneEnable (int) - 是否支持克隆,1支持 ,0不支持
  • +
  • CmkId (str) - 该盘的cmk id
  • +
  • CmkIdAlias (str) - cmk id 别名
  • +
  • CmkIdStatus (str) - 该盘cmk的状态, Enabled(正常),Disabled(失效),Deleted(删除),NoCmkId(非加密盘)
  • +
  • CreateTime (int) - 创建时间
  • +
  • DataKey (str) - 该盘的密文密钥
  • +
  • DeviceName (str) - 挂载的设备名称
  • +
  • DiskType (str) - 云硬盘类型: 普通数据盘:DataDisk,普通系统盘:SystemDisk,SSD数据盘:SSDDataDisk,RSSD数据盘:RSSDDataDisk
  • +
  • ExpiredTime (int) - 过期时间
  • +
  • IsExpire (str) - 资源是否过期,过期:”Yes”, 未过期:”No”
  • +
  • Name (str) - 实例名称
  • +
  • Size (int) - 容量单位GB
  • +
  • SnapEnable (int) - 是否支持快照,1支持 ,0不支持
  • +
  • SnapshotCount (int) - 该盘快照个数
  • +
  • SnapshotLimit (int) - 该盘快照上限
  • +
  • Status (str) - 状态:Available(可用),Attaching(挂载中), InUse(已挂载), Detaching(卸载中), Initializating(分配中), Failed(创建失败),Cloning(克隆中),Restoring(恢复中),RestoreFailed(恢复失败),
  • +
  • Tag (str) - 业务组名称
  • +
  • UDataArkMode (str) - 是否开启数据方舟,开启:”Yes”, 不支持:”No”
  • +
  • UDiskId (str) - UDisk实例Id
  • +
  • UHostIP (str) - 挂载的UHost的IP
  • +
  • UHostId (str) - 挂载的UHost的Id
  • +
  • UHostName (str) - 挂载的UHost的Name
  • +
  • UKmsMode (str) - 是否是加密盘,是:”Yes”, 否:”No”
  • +
  • Version (str) - 是否支持数据方舟,支持:”2.0”, 不支持:”1.0”
  • +
  • Zone (str) - 可用区
  • +
+
+ +
+
+describe_udisk_price(req=None, **kwargs)[source]
+

DescribeUDiskPrice - 获取UDisk实例价格信息

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • Size (int) - (Required) 购买UDisk大小,单位:GB,范围[1~1000]
  • +
  • Zone (str) - (Required) 可用区。参见 可用区列表
  • +
  • ChargeType (str) - Year, Month, Dynamic,Trial,默认: Dynamic 如果不指定,则一次性获取三种计费
  • +
  • DiskType (str) - UDisk 类型: DataDisk(普通数据盘),SSDDataDisk(SSD数据盘),默认值(DataDisk)
  • +
  • Quantity (int) - 购买UDisk的时长,默认值为1
  • +
  • UDataArkMode (str) - 是否打开数据方舟, 打开”Yes”,关闭”No”, 默认关闭
  • +
+

Response

+
    +
  • DataSet (list) - 见 UDiskPriceDataSet 模型定义
  • +
+

Response Model

+

UDiskPriceDataSet

+
    +
  • ChargeName (str) - “UDataArk”,”UDisk”
  • +
  • ChargeType (str) - Year, Month, Dynamic,Trial
  • +
  • Price (float) - 价格 (单位: 分)
  • +
+
+ +
+
+describe_udisk_snapshot(req=None, **kwargs)[source]
+

DescribeUDiskSnapshot - 获取UDisk快照

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • Limit (int) - 返回数据长度, 默认为20
  • +
  • Offset (int) - 数据偏移量, 默认为0
  • +
  • SnapshotId (str) - 快照id,SnapshotId , UDiskId 同时传SnapshotId优先
  • +
  • UDiskId (str) - UDiskId,返回该盘所做快照.(必须同时传Zone)
  • +
  • Zone (str) - 可用区。参见 可用区列表
  • +
+

Response

+
    +
  • DataSet (list) - 见 UDiskSnapshotSet 模型定义
  • +
  • TotalCount (int) - 根据过滤条件得到的总数
  • +
+

Response Model

+

UDiskSnapshotSet

+
    +
  • CmkId (str) - 该快照的cmk id
  • +
  • CmkIdAlias (str) - cmk id 别名
  • +
  • CmkIdStatus (str) - 该快照cmk的状态, Enabled(正常),Disabled(失效),Deleted(删除),NoCmkId(非加密盘)
  • +
  • Comment (str) - 快照描述
  • +
  • CreateTime (int) - 创建时间
  • +
  • DataKey (str) - 该快照的密文密钥
  • +
  • DiskType (int) - 磁盘类型,0:数据盘,1:系统盘
  • +
  • ExpiredTime (int) - 过期时间
  • +
  • IsUDiskAvailable (bool) - 对应磁盘是否处于可用状态
  • +
  • Name (str) - 快照名称
  • +
  • Size (int) - 容量单位GB
  • +
  • SnapshotId (str) - 快照Id
  • +
  • Status (str) - 快照状态,Normal:正常,Failed:失败,Creating:制作中
  • +
  • UDiskId (str) - 快照的源UDisk的Id
  • +
  • UDiskName (str) - 快照的源UDisk的Name
  • +
  • UHostId (str) - 对应磁盘制作快照时所挂载的主机
  • +
  • UKmsMode (str) - 是否是加密盘快照,是:”Yes”, 否:”No”
  • +
  • Version (str) - 快照版本
  • +
+
+ +
+
+describe_udisk_upgrade_price(req=None, **kwargs)[source]
+

DescribeUDiskUpgradePrice - 获取UDisk升级价格信息

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • Size (int) - (Required) 购买UDisk大小,单位:GB,范围[1~2000], 权限位控制可达8T,若需要请申请开通相关权限。
  • +
  • SourceId (str) - (Required) 升级目标UDisk ID
  • +
  • UDataArkMode (str) - (Required) 是否打开数据方舟, 打开”Yes”,关闭”No”, 默认关闭
  • +
  • Zone (str) - (Required) 可用区。参见 可用区列表
  • +
  • DiskType (str) - 磁盘类型,SSDDataDisk:ssd数据盘,DataDisk:普通数据盘,SystemDisk:普通系统盘,SSDSystemDisk:ssd系统盘。默认为DataDisk
  • +
+

Response

+
    +
  • Price (float) - 价格
  • +
+
+ +
+
+detach_udisk(req=None, **kwargs)[source]
+

DetachUDisk - 卸载某个已经挂载在指定UHost实例上的UDisk

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • UDiskId (str) - (Required) 需要卸载的UDisk实例ID
  • +
  • UHostId (str) - (Required) UHost实例ID
  • +
  • Zone (str) - (Required) 可用区。参见 可用区列表
  • +
+

Response

+
    +
  • UDiskId (str) - 卸载的UDisk实例ID
  • +
  • UHostId (str) - 卸载的UHost实例ID
  • +
+
+ +
+
+rename_udisk(req=None, **kwargs)[source]
+

RenameUDisk - 重命名UDisk

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • UDiskId (str) - (Required) 重命名的UDisk的Id
  • +
  • UDiskName (str) - (Required) 重命名UDisk的name
  • +
  • Zone (str) - (Required) 可用区。参见 可用区列表
  • +
+

Response

+
+ +
+
+resize_udisk(req=None, **kwargs)[source]
+

ResizeUDisk - 调整UDisk容量

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • Size (int) - (Required) 调整后大小, 单位:GB, 范围[1~2000],权限位控制可达8000,若需要请申请开通相关权限。
  • +
  • UDiskId (str) - (Required) UDisk Id
  • +
  • Zone (str) - (Required) 可用区。参见 可用区列表
  • +
  • CouponId (str) - 使用的代金券id
  • +
+

Response

+
+ +
+
+restore_udisk(req=None, **kwargs)[source]
+

RestoreUDisk - 从备份恢复数据至UDisk

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • UDiskId (str) - (Required) 需要恢复的盘id
  • +
  • Zone (str) - (Required) 可用区。参见 可用区列表
  • +
  • SnapshotId (str) - 从指定的快照恢复
  • +
  • SnapshotTime (int) - 指定从方舟恢复的备份时间点
  • +
+

Response

+
+ +
+
+set_udisk__udataark_mode(req=None, **kwargs)[source]
+

SetUDiskUDataArkMode - 设置UDisk数据方舟的状态

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • UDataArkMode (str) - (Required) 是否开启数据方舟,开启:”Yes”, 不支持:”No”
  • +
  • UDiskId (str) - (Required) 需要设置数据方舟的UDisk的Id
  • +
  • Zone (str) - (Required) 可用区。参见 可用区列表
  • +
+

Response

+
+ +
+ +
+
+

VPC

+
+
+class ucloud.services.vpc.client.VPCClient(config, transport=None, middleware=None, logger=None)[source]
+
+
+add_vpc_network(req=None, **kwargs)[source]
+

AddVPCNetwork - 添加VPC网段

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • Network (list) - (Required) 增加网段
  • +
  • VPCId (str) - (Required) 源VPC短ID
  • +
+

Response

+
+ +
+
+associate_route_table(req=None, **kwargs)[source]
+

AssociateRouteTable - 绑定子网的路由表

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • RouteTableId (str) - (Required) 路由表ID,仅限自定义路由表
  • +
  • SubnetId (str) - (Required) 子网ID
  • +
+

Response

+
+ +
+
+clone_route_table(req=None, **kwargs)[source]
+

CloneRouteTable - 根据一张现有路由表复制一张新的路由表

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • RouteTableId (str) - (Required) 被克隆的路由表ID
  • +
+

Response

+
+ +
+
+create_route_table(req=None, **kwargs)[source]
+

CreateRouteTable - 创建路由表

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • VPCId (str) - (Required) VPC ID
  • +
  • Name (str) - 路由表名称 Default RouteTable
  • +
  • Remark (str) - 备注
  • +
  • Tag (str) - 业务组
  • +
+

Response

+
    +
  • RouteTableId (str) - 路由表ID
  • +
+
+ +
+
+create_subnet(req=None, **kwargs)[source]
+

CreateSubnet - 创建子网

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • Subnet (str) - (Required) 子网网络地址,例如192.168.0.0
  • +
  • VPCId (str) - (Required) VPC资源ID
  • +
  • Netmask (int) - 子网网络号位数,默认为24
  • +
  • Remark (str) - 备注
  • +
  • SubnetName (str) - 子网名称,默认为Subnet
  • +
  • Tag (str) - 业务组名称,默认为Default
  • +
+

Response

+
    +
  • SubnetId (str) - 子网ID
  • +
+
+ +
+
+create_vpc(req=None, **kwargs)[source]
+

CreateVPC - 创建VPC

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • Name (str) - (Required) VPC名称
  • +
  • Network (list) - (Required) VPC网段
  • +
  • Remark (str) - 备注
  • +
  • Tag (str) - 业务组名称
  • +
  • Type (int) - VPC类型
  • +
+

Response

+
    +
  • VPCId (str) - VPC资源Id
  • +
+
+ +
+
+create_vpc_intercom(req=None, **kwargs)[source]
+

CreateVPCIntercom - 新建VPC互通关系

+

Request

+
    +
  • ProjectId (str) - (Config) 源VPC所在项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 源VPC所在地域。 参见 地域和可用区列表
  • +
  • DstVPCId (str) - (Required) 目的VPC短ID
  • +
  • VPCId (str) - (Required) 源VPC短ID
  • +
  • DstProjectId (str) - 目的VPC项目ID。默认与源VPC同项目。
  • +
  • DstRegion (str) - 目的VPC所在地域,默认与源VPC同地域。
  • +
+

Response

+
+ +
+
+delete_route_table(req=None, **kwargs)[source]
+

DeleteRouteTable - 删除自定义路由表

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • RouteTableId (str) - (Required) 路由ID
  • +
+

Response

+
+ +
+
+delete_subnet(req=None, **kwargs)[source]
+

DeleteSubnet - 删除子网

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • SubnetId (str) - (Required) 子网ID
  • +
+

Response

+
+ +
+
+delete_vpc(req=None, **kwargs)[source]
+

DeleteVPC - 删除VPC

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • VPCId (str) - (Required) VPC资源Id
  • +
+

Response

+
+ +
+
+delete_vpc_intercom(req=None, **kwargs)[source]
+

DeleteVPCIntercom - 删除VPC互通关系

+

Request

+
    +
  • ProjectId (str) - (Config) 源VPC所在项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 源VPC所在地域。 参见 地域和可用区列表
  • +
  • DstVPCId (str) - (Required) 目的VPC短ID
  • +
  • VPCId (str) - (Required) 源VPC短ID
  • +
  • DstProjectId (str) - 目的VPC所在项目ID,默认为源VPC所在项目ID
  • +
  • DstRegion (str) - 目的VPC所在地域,默认为源VPC所在地域
  • +
+

Response

+
+ +
+
+describe_route_table(req=None, **kwargs)[source]
+

DescribeRouteTable - 获取路由表详细信息(包括路由策略)

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • BusinessId (str) - 业务组ID
  • +
  • Limit (int) - Limit
  • +
  • OffSet (int) - OffSet
  • +
  • RouteTableId (str) - 路由表ID
  • +
  • VPCId (str) - VPC ID
  • +
+

Response

+
    +
  • RouteTables (list) - 见 RouteTableInfo 模型定义
  • +
  • TotalCount (int) - RouteTables字段的数量
  • +
+

Response Model

+

RouteRuleInfo

+
    +
  • DstAddr (str) - 目的地址,比如10.10.8/24
  • +
  • NexthopId (str) - 路由下一跳ID,比如uvnet-3eljvj
  • +
  • NexthopType (str) - 下一跳类型,比如local、vnet
  • +
  • Remark (str) - 路由规则备注
  • +
  • RouteRuleId (str) - 规则ID
  • +
  • RuleType (int) - 路由规则类型(0表示系统路由,1表示自定义路由)
  • +
+

RouteTableInfo

+
    +
  • CreateTime (int) - 创建时间戳
  • +
  • Remark (str) - 路由表备注
  • +
  • RouteRules (list) - 见 RouteRuleInfo 模型定义
  • +
  • RouteTableId (str) - 路由表ID
  • +
  • RouteTableType (int) - 路由表类型,1为默认,0为自定义
  • +
  • SubnetCount (str) - 绑定了该路由表的子网数量
  • +
  • Tag (str) - 业务组
  • +
  • VPCId (str) - 路由表所属vpc
  • +
  • VPCName (str) - vpc名称
  • +
+
+ +
+
+describe_subnet(req=None, **kwargs)[source]
+

DescribeSubnet - 获取子网信息

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • BusinessId (str) - 业务组
  • +
  • Limit (int) - 列表长度,默认为20
  • +
  • Offset (int) - 偏移量,默认为0
  • +
  • RouteTableId (str) - 路由表Id
  • +
  • SubnetId (str) - 子网id,适用于一次查询一个子网信息
  • +
  • SubnetIds (list) - 子网id数组,适用于一次查询多个子网信息
  • +
  • Tag (str) - 业务组名称,默认为Default
  • +
  • VPCId (str) - VPC资源id
  • +
+

Response

+
    +
  • DataSet (list) - 见 SubnetInfo 模型定义
  • +
  • TotalCount (int) - 子网总数量
  • +
+

Response Model

+

SubnetInfo

+
    +
  • CreateTime (int) - 创建时间
  • +
  • Gateway (str) - 子网网关
  • +
  • HasNATGW (bool) - 是否有natgw
  • +
  • IPv6Network (str) - 子网关联的IPv6网段
  • +
  • Netmask (int) - 子网掩码
  • +
  • OperatorName (str) - 子网关联的IPv6网段所属运营商
  • +
  • Remark (str) - 备注
  • +
  • RouteTableId (str) - 路由表Id
  • +
  • Subnet (str) - 子网网段
  • +
  • SubnetId (str) - 子网Id
  • +
  • SubnetName (str) - 子网名称
  • +
  • SubnetType (int) - 子网类型
  • +
  • Tag (str) - 业务组
  • +
  • VPCId (str) - VPCId
  • +
  • VPCName (str) - VPC名称
  • +
  • Zone (str) - 可用区名称
  • +
+
+ +
+
+describe_subnet_resource(req=None, **kwargs)[source]
+

DescribeSubnetResource - 展示子网资源

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • SubnetId (str) - (Required) 子网id
  • +
  • Limit (int) - 单页返回数据长度,默认为20
  • +
  • Offset (int) - 列表起始位置偏移量,默认为0
  • +
  • ResourceType (str) - 资源类型,默认为全部资源类型。枚举值为:UHOST,云主机;PHOST,物理云主机;ULB,负载均衡;UHADOOP_HOST,hadoop节点;UFORTRESS_HOST,堡垒机;UNATGW,NAT网关;UKAFKA,Kafka消息队列;UMEM,内存存储;DOCKER,容器集群;UDB,数据库;UDW,数据仓库;VIP,内网VIP.
  • +
+

Response

+
    +
  • DataSet (list) - 见 SubnetResource 模型定义
  • +
  • TotalCount (int) - 总数
  • +
+

Response Model

+

SubnetResource

+
    +
  • IP (str) - 资源ip
  • +
  • IPv6Address (str) - 资源的IPv6地址
  • +
  • Name (str) - 资源名称
  • +
  • ResourceId (str) - 资源Id
  • +
  • ResourceType (str) - 资源类型。对应的资源类型:UHOST,云主机;PHOST,物理云主机;ULB,负载均衡;UHADOOP_HOST,hadoop节点;UFORTRESS_HOST,堡垒机;UNATGW,NAT网关;UKAFKA,Kafka消息队列;UMEM,内存存储;DOCKER,容器集群;UDB,数据库;UDW,数据仓库;VIP,内网VIP.
  • +
  • SubResourceId (str) - 资源绑定的虚拟网卡的实例ID
  • +
  • SubResourceName (str) - 资源绑定的虚拟网卡的实例名称
  • +
  • SubResourceType (str) - 资源绑定的虚拟网卡的类型
  • +
+
+ +
+
+describe_vpc(req=None, **kwargs)[source]
+

DescribeVPC - 获取VPC信息

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • Limit (int) -
  • +
  • Offset (int) -
  • +
  • Tag (str) - 业务组名称
  • +
  • VPCIds (list) - VPCId
  • +
+

Response

+
    +
  • DataSet (list) - 见 VPCInfo 模型定义
  • +
+

Response Model

+

VPCNetworkInfo

+
    +
  • Network (str) - vpc地址空间
  • +
  • SubnetCount (int) - 地址空间中子网数量
  • +
+

VPCInfo

+
    +
  • CreateTime (int) -
  • +
  • IPv6Network (str) - VPC关联的IPv6网段
  • +
  • Name (str) -
  • +
  • Network (list) -
  • +
  • NetworkInfo (list) - 见 VPCNetworkInfo 模型定义
  • +
  • OperatorName (str) - VPC关联的IPv6网段所属运营商
  • +
  • SubnetCount (int) -
  • +
  • Tag (str) -
  • +
  • UpdateTime (int) -
  • +
  • VPCId (str) - VPCId
  • +
+
+ +
+
+describe_vpc_intercom(req=None, **kwargs)[source]
+

DescribeVPCIntercom - 获取VPC互通信息

+

Request

+
    +
  • ProjectId (str) - (Config) 源VPC所在项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 源VPC所在地域。 参见 地域和可用区列表
  • +
  • VPCId (str) - (Required) VPC短ID
  • +
  • DstProjectId (str) - 目的项目ID,默认为全部项目
  • +
  • DstRegion (str) - 目的VPC所在地域,默认为全部地域
  • +
+

Response

+
    +
  • DataSet (list) - 见 VPCIntercomInfo 模型定义
  • +
+

Response Model

+

VPCIntercomInfo

+
    +
  • DstRegion (str) - 所属地域
  • +
  • Name (str) - VPC名字
  • +
  • Network (list) - VPC的地址空间
  • +
  • ProjectId (str) - 项目Id
  • +
  • Tag (str) - 业务组(未分组显示为 Default)
  • +
  • VPCId (str) - VPCId
  • +
+
+ +
+
+modify_route_rule(req=None, **kwargs)[source]
+

ModifyRouteRule - 路由策略增、删、改

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • RouteRule (list) - (Required) 格式: RouteRuleId | 目的网段 | 下一跳类型 | 下一跳 |优先级| 备注 | 增、删、改标志 (下一跳类型为instance或者vip,下一跳为云主机id或者vip的id,优先级使用0,动作标志为add/delete/update) 。”添加”示例: test_id | 10.8.0.0/16 | instance | uhost-xd8ja | 0 | Default Route Rule| add (添加的RouteRuleId填任意非空字符串) 。”删除”示例: routerule-xk3jxa | 10.8.0.0/16 | instance | uhost-xd8ja | 0 | Default Route Rule| delete (RouteRuleId来自DescribeRouteTable中) 。“修改”示例: routerule-xk3jxa | 10.8.0.0/16 | instance | uhost-cjksa2 | 0 | Default Route Rule| update (RouteRuleId来自DescribeRouteTable中)
  • +
  • RouteTableId (str) - (Required) 通过DescribeRouteTable拿到
  • +
+

Response

+
+ +
+
+update_route_table_attribute(req=None, **kwargs)[source]
+

UpdateRouteTableAttribute - 更新路由表基本信息

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • RouteTableId (str) - (Required) 路由表ID
  • +
  • Name (str) - 名称
  • +
  • Remark (str) - 备注
  • +
  • Tag (str) - 业务组名称
  • +
+

Response

+
+ +
+
+update_subnet_attribute(req=None, **kwargs)[source]
+

UpdateSubnetAttribute - 更新子网信息

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • SubnetId (str) - (Required) 子网ID
  • +
  • Name (str) - 子网名称(如果Name不填写,Tag必须填写)
  • +
  • Tag (str) - 业务组名称(如果Tag不填写,Name必须填写)
  • +
+

Response

+
+ +
+
+update_vpc_network(req=None, **kwargs)[source]
+

UpdateVPCNetwork - 更新VPC网段

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • Network (list) - (Required) 需要保留的VPC网段。当前仅支持删除VPC网段,添加网段请参考 AddVPCNetwork
  • +
  • VPCId (str) - (Required) VPC的ID
  • +
+

Response

+
    +
  • Message (str) - 错误信息
  • +
+
+ +
+ +
+
+

UNet

+
+
+class ucloud.services.unet.client.UNetClient(config, transport=None, middleware=None, logger=None)[source]
+
+
+allocate_eip(req=None, **kwargs)[source]
+

AllocateEIP - 根据提供信息, 申请弹性IP

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。
  • +
  • Region (str) - (Config) 地域。
  • +
  • Bandwidth (int) - (Required) 弹性IP的外网带宽, 单位为Mbps. 共享带宽模式必须指定0M带宽, 非共享带宽模式必须指定非0Mbps带宽. 各地域非共享带宽的带宽范围如下: 流量计费[1-200],带宽计费[1-800]
  • +
  • OperatorName (str) - (Required) 弹性IP的线路如下: 国际: International BGP: Bgp 各地域允许的线路参数如下: cn-sh1: Bgp cn-sh2: Bgp cn-gd: Bgp cn-bj1: Bgp cn-bj2: Bgp hk: International us-ca: International th-bkk: International kr-seoul:International us-ws:International ge-fra:International sg:International tw-kh:International.其他海外线路均为 International
  • +
  • ChargeType (str) - 付费方式, 枚举值为: Year, 按年付费; Month, 按月付费; Dynamic, 按需付费(需开启权限); Trial, 试用(需开启权限) 默认为按月付费
  • +
  • CouponId (str) - 代金券ID, 默认不使用
  • +
  • Name (str) - 弹性IP的名称, 默认为 “EIP”
  • +
  • PayMode (str) - 弹性IP的计费模式. 枚举值: “Traffic”, 流量计费; “Bandwidth”, 带宽计费; “ShareBandwidth”,共享带宽模式. 默认为 “Bandwidth”.
  • +
  • Quantity (int) - 购买时长, 默认: 1
  • +
  • Remark (str) - 弹性IP的备注, 默认为空
  • +
  • ShareBandwidthId (str) - 绑定的共享带宽Id,仅当PayMode为ShareBandwidth时有效
  • +
  • Tag (str) - 业务组名称, 默认为 “Default”
  • +
+

Response

+
    +
  • EIPSet (list) - 见 UnetAllocateEIPSet 模型定义
  • +
+

Response Model

+

UnetEIPAddrSet

+
    +
  • IP (str) - IP地址
  • +
  • OperatorName (str) - 运营商信息如: 电信: Telecom, 联通: Unicom, 国际: International, Duplet: 双线IP(电信+联通), BGP: Bgp
  • +
+

UnetAllocateEIPSet

+
    +
  • EIPAddr (list) - 见 UnetEIPAddrSet 模型定义
  • +
  • EIPId (str) - 申请到的EIP资源ID
  • +
+
+ +
+
+allocate_share_bandwidth(req=None, **kwargs)[source]
+

AllocateShareBandwidth - 开通共享带宽

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • ChargeType (str) - (Required) 付费方式:Year 按年,Month 按月,Dynamic 按时;
  • +
  • Name (str) - (Required) 共享带宽名字
  • +
  • ShareBandwidth (int) - (Required) 共享带宽值
  • +
  • BwType (str) - 共享带宽类型,ipv4或者ipv6,不传默认ipv4
  • +
  • Quantity (int) - 购买时长
  • +
  • ShareBandwidthGuarantee (int) - 共享带宽保底值(后付费)
  • +
+

Response

+
    +
  • ShareBandwidthId (str) - 共享带宽资源Id
  • +
+
+ +
+
+allocate_vip(req=None, **kwargs)[source]
+

AllocateVIP - 根据提供信息,申请内网VIP(Virtual IP),多用于高可用程序作为漂移IP。

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域
  • +
  • SubnetId (str) - (Required) 子网id
  • +
  • VPCId (str) - (Required) 指定vip所属的VPC
  • +
  • BusinessId (str) - 业务组
  • +
  • Count (int) - 申请数量,默认: 1
  • +
  • Ip (str) - 指定ip
  • +
  • Name (str) - vip名,默认为VIP
  • +
  • Remark (str) - 备注
  • +
  • Tag (str) - 业务组名称,默认为Default
  • +
  • Zone (str) - 可用区
  • +
+

Response

+
    +
  • DataSet (list) - 申请到的VIP地址
  • +
  • VIPSet (list) - 见 VIPSet 模型定义
  • +
+

Response Model

+

VIPSet

+
    +
  • VIP (str) - 虚拟ip
  • +
  • VIPId (str) - 虚拟ip id
  • +
  • VPCId (str) - VPC id
  • +
+
+ +
+
+associate_eip_with_share_bandwidth(req=None, **kwargs)[source]
+

AssociateEIPWithShareBandwidth - 将EIP加入共享带宽

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。
  • +
  • Region (str) - (Config) 地域。
  • +
  • EIPIds (list) - (Required) 要加入共享带宽的EIP的资源Id
  • +
  • ShareBandwidthId (str) - (Required) 共享带宽ID
  • +
+

Response

+
+ +
+
+bind_eip(req=None, **kwargs)[source]
+

BindEIP - 将尚未使用的弹性IP绑定到指定的资源

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写
  • +
  • Region (str) - (Config) 地域
  • +
  • EIPId (str) - (Required) 弹性IP的资源Id
  • +
  • ResourceId (str) - (Required) 弹性IP请求绑定的资源ID
  • +
  • ResourceType (str) - (Required) 弹性IP请求绑定的资源类型, 枚举值为: uhost: 云主机; ulb, 负载均衡器 upm: 物理机; hadoophost: 大数据集群;fortresshost:堡垒机;udockhost:容器;udhost:私有专区主机;natgw:natgw;udb:udb;vpngw:ipsec vpn;ucdr:云灾备;dbaudit:数据库审计;uni:虚拟网卡。
  • +
+

Response

+
+ +
+
+create_bandwidth_package(req=None, **kwargs)[source]
+

CreateBandwidthPackage - 为非共享带宽模式下, 已绑定资源实例的带宽计费弹性IP附加临时带宽包

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。
  • +
  • Region (str) - (Config) 地域
  • +
  • Bandwidth (int) - (Required) 带宽大小(单位Mbps), 取值范围[2,800] (最大值受地域限制)
  • +
  • EIPId (str) - (Required) 所绑定弹性IP的资源ID
  • +
  • TimeRange (int) - (Required) 带宽包有效时长, 取值范围为大于0的整数, 即该带宽包在EnableTime到 EnableTime+TimeRange时间段内生效
  • +
  • CouponId (str) - 代金券ID
  • +
  • EnableTime (int) - 生效时间, 格式为 Unix timestamp, 默认为立即开通
  • +
+

Response

+
    +
  • BandwidthPackageId (str) - 所创建带宽包的资源ID
  • +
+
+ +
+
+create_firewall(req=None, **kwargs)[source]
+

CreateFirewall - 创建防火墙

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写
  • +
  • Region (str) - (Config) 地域
  • +
  • Name (str) - (Required) 防火墙名称
  • +
  • Rule (list) - (Required) 防火墙规则,例如:TCP|22|192.168.1.1/22|DROP|LOW|禁用22端口,第一个参数代表协议:第二个参数代表端口号,第三个参数为ip,第四个参数为ACCEPT(接受)和DROP(拒绝),第五个参数优先级:HIGH(高),MEDIUM(中),LOW(低),第六个参数为该条规则的自定义备注
  • +
  • Remark (str) - 防火墙描述,默认为空
  • +
  • Tag (str) - 防火墙业务组,默认为Default
  • +
+

Response

+
    +
  • FWId (str) - 防火墙ID
  • +
+
+ +
+
+delete_bandwidth_package(req=None, **kwargs)[source]
+

DeleteBandwidthPackage - 删除弹性IP上已附加带宽包

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写
  • +
  • Region (str) - (Config) 地域
  • +
  • BandwidthPackageId (str) - (Required) 带宽包资源ID
  • +
+

Response

+
+ +
+
+delete_firewall(req=None, **kwargs)[source]
+

DeleteFirewall - 删除防火墙

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写
  • +
  • Region (str) - (Config) 地域
  • +
  • FWId (str) - (Required) 防火墙资源ID
  • +
+

Response

+
+ +
+
+describe_bandwidth_package(req=None, **kwargs)[source]
+

DescribeBandwidthPackage - 获取某地域下的带宽包信息

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • Limit (int) - 返回数据分页值, 取值范围为 [0,10000000] 之间的整数, 默认为20
  • +
  • Offset (int) - 返回数据偏移量, 默认为0
  • +
+

Response

+
    +
  • DataSets (list) - 见 UnetBandwidthPackageSet 模型定义
  • +
  • TotalCount (int) - 满足条件的带宽包总数
  • +
+

Response Model

+

EIPAddrSet

+
    +
  • IP (str) - 弹性IP地址
  • +
  • OperatorName (str) - 运营商信息, 枚举值为: Telecom 电信; Unicom: 联通; Duplet: 双线; Bgp: BGP; International: 国际.
  • +
+

UnetBandwidthPackageSet

+
    +
  • Bandwidth (int) - 带宽包的临时带宽值, 单位Mbps
  • +
  • BandwidthPackageId (str) - 带宽包的资源ID
  • +
  • CreateTime (int) - 创建时间, 格式为 Unix Timestamp
  • +
  • DisableTime (int) - 失效时间, 格式为 Unix Timestamp
  • +
  • EIPAddr (list) - 见 EIPAddrSet 模型定义
  • +
  • EIPId (str) - 带宽包所绑定弹性IP的资源ID
  • +
  • EnableTime (int) - 生效时间, 格式为 Unix Timestamp
  • +
+
+ +
+
+describe_bandwidth_usage(req=None, **kwargs)[source]
+

DescribeBandwidthUsage - 获取带宽用量信息

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • EIPIds (list) - 弹性IP的资源Id. 如果为空, 则返回当前 Region中符合条件的所有EIP的带宽用量, n为自然数
  • +
  • Limit (int) - 返回数据分页值, 取值范围为 [0,10000000] 之间的整数, 默认为20
  • +
  • OffSet (int) - 返回数据偏移量, 默认为0
  • +
+

Response

+
    +
  • EIPSet (list) - 见 UnetBandwidthUsageEIPSet 模型定义
  • +
  • TotalCount (int) - EIPSet中的元素个数
  • +
+

Response Model

+

UnetBandwidthUsageEIPSet

+
    +
  • CurBandwidth (float) - 最近5分钟带宽用量, 单位Mbps
  • +
  • EIPId (str) - 弹性IP资源ID
  • +
+
+ +
+
+describe_eip(req=None, **kwargs)[source]
+

DescribeEIP - 获取弹性IP信息

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写
  • +
  • Region (str) - (Config) 地域
  • +
  • EIPIds (list) - 弹性IP的资源ID如果为空, 则返回当前 Region中符合条件的的所有EIP
  • +
  • Limit (int) - 数据分页值, 默认为20
  • +
  • Offset (int) - 数据偏移量, 默认为0
  • +
+

Response

+
    +
  • EIPSet (list) - 见 UnetEIPSet 模型定义
  • +
  • TotalBandwidth (int) - 满足条件的弹性IP带宽总和, 单位Mbps
  • +
  • TotalCount (int) - 满足条件的弹性IP总数
  • +
+

Response Model

+

ShareBandwidthSet

+
    +
  • ShareBandwidth (int) - 共享带宽带宽值
  • +
  • ShareBandwidthId (str) - 共享带宽ID
  • +
  • ShareBandwidthName (str) - 共享带宽的资源名称
  • +
+

UnetEIPAddrSet

+
    +
  • IP (str) - IP地址
  • +
  • OperatorName (str) - 运营商信息如: 电信: Telecom, 联通: Unicom, 国际: International, Duplet: 双线IP(电信+联通), BGP: Bgp
  • +
+

UnetEIPResourceSet

+
    +
  • EIPId (str) - 弹性IP的资源ID
  • +
  • ResourceId (str) - 已绑定资源的资源ID
  • +
  • ResourceName (str) - 已绑定的资源名称
  • +
  • ResourceType (str) - 已绑定的资源类型, 枚举值为: uhost, 云主机;natgw:NAT网关;ulb:负载均衡器;upm: 物理机; hadoophost: 大数据集群;fortresshost:堡垒机;udockhost:容器;udhost:私有专区主机;vpngw:IPSec VPN;ucdr:云灾备;dbaudit:数据库审计,uni:虚拟网卡。
  • +
  • SubResourceId (str) - 资源绑定的虚拟网卡的ID
  • +
  • SubResourceName (str) - 资源绑定的虚拟网卡的名称
  • +
  • SubResourceType (str) - 资源绑定的虚拟网卡的类型。uni,虚拟网卡。
  • +
+

UnetEIPSet

+
    +
  • Bandwidth (int) - 弹性IP的带宽, 单位为Mbps, 当BandwidthType=1时, 该处显示为共享带宽值. 当BandwidthType=0时, 该处显示这个弹性IP的带宽.
  • +
  • BandwidthType (int) - 带宽模式, 枚举值为: 0: 非共享带宽模式, 1: 共享带宽模式
  • +
  • ChargeType (str) - 付费方式, 枚举值为: Year, 按年付费; Month, 按月付费; Dynamic, 按小时付费; Trial, 试用. 按小时付费和试用这两种付费模式需要开通权限.
  • +
  • CreateTime (int) - 弹性IP的创建时间, 格式为Unix Timestamp
  • +
  • EIPAddr (list) - 见 UnetEIPAddrSet 模型定义
  • +
  • EIPId (str) - 弹性IP的资源ID
  • +
  • Expire (bool) - 弹性IP是否到期
  • +
  • ExpireTime (int) - 弹性IP的到期时间, 格式为Unix Timestamp
  • +
  • Name (str) - 弹性IP的名称,缺省值为 “EIP”
  • +
  • PayMode (str) - 弹性IP的计费模式, 枚举值为: “Bandwidth”, 带宽计费; “Traffic”, 流量计费; “ShareBandwidth”,共享带宽模式. 默认为 “Bandwidth”.
  • +
  • Remark (str) - 弹性IP的备注, 缺省值为 “”
  • +
  • Resource (dict) - 见 UnetEIPResourceSet 模型定义
  • +
  • ShareBandwidthSet (dict) - 见 ShareBandwidthSet 模型定义
  • +
  • Status (str) - 弹性IP的资源绑定状态, 枚举值为: used: 已绑定, free: 未绑定, freeze: 已冻结
  • +
  • Tag (str) - 弹性IP的业务组标识, 缺省值为 “Default”
  • +
  • Weight (int) - 外网出口权重, 默认为50, 范围[0-100]
  • +
+
+ +
+
+describe_firewall(req=None, **kwargs)[source]
+

DescribeFirewall - 获取防火墙组信息

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写
  • +
  • Region (str) - (Config) 地域
  • +
  • FWId (str) - 防火墙ID,默认为返回所有防火墙
  • +
  • Limit (int) - 返回数据长度,默认为20,最大10000000
  • +
  • Offset (int) - 列表起始位置偏移量,默认为0
  • +
  • ResourceId (str) - 绑定防火墙组的资源ID
  • +
  • ResourceType (str) - 绑定防火墙组的资源类型,默认为全部资源类型。枚举值为:”unatgw”,NAT网关; “uhost”,云主机; “upm”,物理云主机; “hadoophost”,hadoop节点; “fortresshost”,堡垒机; “udhost”,私有专区主机;”udockhost”,容器;”dbaudit”,数据库审计.
  • +
+

Response

+
    +
  • DataSet (list) - 见 FirewallDataSet 模型定义
  • +
  • TotalCount (int) -
  • +
+

Response Model

+

FirewallRuleSet

+
    +
  • DstPort (str) - 目标端口
  • +
  • Priority (str) - 优先级
  • +
  • ProtocolType (str) - 协议类型
  • +
  • Remark (str) - 防火墙规则备注
  • +
  • RuleAction (str) - 防火墙动作
  • +
  • SrcIP (str) - 源地址
  • +
+

FirewallDataSet

+
    +
  • CreateTime (int) - 防火墙组创建时间,格式为Unix Timestamp
  • +
  • FWId (str) - 防火墙ID
  • +
  • GroupId (str) - 安全组ID(即将废弃)
  • +
  • Name (str) - 防火墙名称
  • +
  • Remark (str) - 防火墙备注
  • +
  • ResourceCount (int) - 防火墙绑定资源数量
  • +
  • Rule (list) - 见 FirewallRuleSet 模型定义
  • +
  • Tag (str) - 防火墙业务组
  • +
  • Type (str) - 防火墙组类型,枚举值为: “user defined”, 用户自定义防火墙; “recommend web”, 默认Web防火墙; “recommend non web”, 默认非Web防火墙
  • +
+
+ +
+
+describe_firewall_resource(req=None, **kwargs)[source]
+

DescribeFirewallResource - 获取防火墙组所绑定资源的外网IP

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • FWId (str) - (Required) 防火墙ID
  • +
  • Limit (int) - 返回数据长度,默认为20,最大10000000
  • +
  • Offset (int) - 列表起始位置偏移量,默认为0
  • +
+

Response

+
    +
  • ResourceSet (list) - 见 ResourceSet 模型定义
  • +
  • TotalCount (int) - 绑定资源总数
  • +
+

Response Model

+

ResourceSet

+
    +
  • Name (str) - 名称
  • +
  • PrivateIP (str) - 内网IP
  • +
  • Remark (str) - 备注
  • +
  • ResourceID (str) - 绑定该防火墙的资源id
  • +
  • ResourceType (str) - 绑定资源的资源类型,如”uhost”,”upm”,”umem”,”uhive”,”uvip”,”uredis”,”uhadoop”,”ufortress”,”dbaudit”,”udw”,”udocker”, “umemcache”
  • +
  • Status (int) - 状态
  • +
  • Tag (str) - 业务组
  • +
  • Zone (int) - 可用区
  • +
+
+ +
+
+describe_share_bandwidth(req=None, **kwargs)[source]
+

DescribeShareBandwidth - 获取共享带宽信息

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • ShareBandwidthIds (list) - 需要返回的共享带宽Id
  • +
+

Response

+
    +
  • DataSet (list) - 见 UnetShareBandwidthSet 模型定义
  • +
  • TotalCount (int) - 符合条件的共享带宽总数,大于等于返回DataSet长度
  • +
+

Response Model

+

EIPAddrSet

+
    +
  • IP (str) - 弹性IP地址
  • +
  • OperatorName (str) - 运营商信息, 枚举值为: Telecom 电信; Unicom: 联通; Duplet: 双线; Bgp: BGP; International: 国际.
  • +
+

EIPSetData

+
    +
  • Bandwidth (int) - EIP带宽值
  • +
  • EIPAddr (list) - 见 EIPAddrSet 模型定义
  • +
  • EIPId (str) - EIP资源Id
  • +
+

UnetShareBandwidthSet

+
    +
  • BandwidthGuarantee (int) - 共享带宽保底值(后付费)
  • +
  • ChargeType (str) - 付费方式, 预付费:Year 按年,Month 按月,Dynamic 按需;后付费:PostPay(按月)
  • +
  • CreateTime (int) - 创建时间, 格式为Unix Timestamp
  • +
  • EIPSet (list) - 见 EIPSetData 模型定义
  • +
  • ExpireTime (int) - 过期时间, 格式为Unix Timestamp
  • +
  • Name (str) - 共享带宽名称
  • +
  • PostPayStartTime (int) - 共享带宽后付费开始计费时间(后付费)
  • +
  • ShareBandwidth (int) - 共享带宽值(预付费)/共享带宽峰值(后付费), 单位Mbps
  • +
  • ShareBandwidthId (str) - 共享带宽的资源ID
  • +
+
+ +
+
+describe_vip(req=None, **kwargs)[source]
+

DescribeVIP - 获取内网VIP详细信息

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • BusinessId (str) - 业务组
  • +
  • SubnetId (str) - 子网id,不指定则获取VPCId下的所有vip
  • +
  • Tag (str) - 业务组名称, 默认为 Default
  • +
  • VPCId (str) - vpc的id,指定SubnetId时必填
  • +
  • Zone (str) - 可用区。参见 可用区列表
  • +
+

Response

+
    +
  • DataSet (list) - 内网VIP地址列表
  • +
  • TotalCount (int) - vip数量
  • +
  • VIPSet (list) - 见 VIPDetailSet 模型定义
  • +
+

Response Model

+

VIPDetailSet

+
    +
  • CreateTime (int) - 创建时间
  • +
  • Name (str) -
  • +
  • RealIp (str) - 真实主机ip
  • +
  • SubnetId (str) - 子网id
  • +
  • VIP (str) - 虚拟ip
  • +
  • VIPId (str) - 虚拟ip id
  • +
  • VPCId (str) - VPC id
  • +
  • Zone (str) - 地域
  • +
+
+ +
+
+disassociate_eip_with_share_bandwidth(req=None, **kwargs)[source]
+

DisassociateEIPWithShareBandwidth - 将EIP移出共享带宽

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • Bandwidth (int) - (Required) 移出共享带宽后,EIP的外网带宽, 单位为Mbps. 各地域带宽范围如下: 流量计费[1-200],带宽计费[1-800]
  • +
  • ShareBandwidthId (str) - (Required) 共享带宽ID
  • +
  • EIPIds (list) - EIP的资源Id;默认移出该共享带宽下所有的EIP
  • +
  • PayMode (str) - 移出共享带宽后,EIP的计费模式. 枚举值: “Traffic”, 流量计费; “Bandwidth”, 带宽计费; 默认为 “Bandwidth”.
  • +
+

Response

+
+ +
+
+get_eip_pay_mode(req=None, **kwargs)[source]
+

GetEIPPayMode - 获取弹性IP计费模式

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写
  • +
  • Region (str) - (Config) 地域
  • +
  • EIPId (list) - (Required) 弹性IP的资源Id
  • +
+

Response

+
    +
  • EIPPayMode (list) - 见 EIPPayModeSet 模型定义
  • +
+

Response Model

+

EIPPayModeSet

+
    +
  • EIPId (str) - EIP的资源ID
  • +
  • EIPPayMode (str) - EIP的计费模式. 枚举值为:Bandwidth, 带宽计费;Traffic, 流量计费; “ShareBandwidth”,共享带宽模式
  • +
+
+ +
+
+get_eip_price(req=None, **kwargs)[source]
+

GetEIPPrice - 获取弹性IP价格

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • Bandwidth (int) - (Required) 弹性IP的外网带宽, 单位为Mbps, 范围 [0-800]
  • +
  • OperatorName (str) - (Required) 弹性IP的线路如下: 国际: International BGP: Bgp 各地域允许的线路参数如下: cn-sh1: Bgp cn-sh2: Bgp cn-gd: Bgp cn-bj1: Bgp cn-bj2: Bgp hk: International us-ca: International th-bkk: International kr-seoul:International us-ws:International ge-fra:International sg:International tw-kh:International.其他海外线路均为 International,泉州为移动单线cn-qz:ChinaMobile
  • +
  • ChargeType (str) - 付费方式, 枚举值为: Year, 按年付费; Month, 按月付费; Dynamic, 按时付费; 默认为获取三种价格
  • +
  • PayMode (str) - 弹性IP计费方式r. 枚举值为: Traffic, 流量计费; Bandwidth, 带宽计费; “ShareBandwidth”,共享带宽模式. 默认为Bandwidth
  • +
  • Quantity (int) - 购买时长。默认: 1。按小时购买(Dynamic)时无需此参数。 月付时,此参数传0,代表了购买至月末
  • +
+

Response

+
    +
  • PriceSet (list) - 见 EIPPriceDetailSet 模型定义
  • +
+

Response Model

+

EIPPriceDetailSet

+
    +
  • ChargeType (str) - 弹性IP付费方式
  • +
  • Price (float) - 弹性IP价格, 单位”元”
  • +
  • PurchaseValue (int) - 资源有效期, 以Unix Timestamp表示
  • +
+
+ +
+
+get_eip_upgrade_price(req=None, **kwargs)[source]
+

GetEIPUpgradePrice - 获取弹性IP带宽改动价格

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • Bandwidth (int) - (Required) 弹性IP的外网带宽, 单位为Mbps, 范围 [1-800]
  • +
  • EIPId (str) - (Required) 弹性IP的资源ID
  • +
+

Response

+
    +
  • Price (float) - 调整带宽后的EIP价格, 单位为”元”, 如需退费此处为负值
  • +
+
+ +
+
+grant_firewall(req=None, **kwargs)[source]
+

GrantFirewall - 将防火墙应用到资源上

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • FWId (str) - (Required) 防火墙资源ID
  • +
  • ResourceId (str) - (Required) 所应用资源ID
  • +
  • ResourceType (str) - (Required) 绑定防火墙组的资源类型,默认为全部资源类型。枚举值为:”unatgw”,NAT网关; “uhost”,云主机; “upm”,物理云主机; “hadoophost”,hadoop节点; “fortresshost”,堡垒机; “udhost”,私有专区主机;”udockhost”,容器;”dbaudit”,数据库审计,”uni“,虚拟网卡。
  • +
+

Response

+
+ +
+
+modify_eip_bandwidth(req=None, **kwargs)[source]
+

ModifyEIPBandwidth - 调整弹性IP的外网带宽

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • Bandwidth (int) - (Required) 弹性IP的外网带宽, 单位为Mbps. 各地域的带宽值范围如下:流量计费[1-200],带宽计费[1-800]
  • +
  • EIPId (str) - (Required) 弹性IP的资源ID
  • +
+

Response

+
+ +
+
+modify_eip_weight(req=None, **kwargs)[source]
+

ModifyEIPWeight - 修改弹性IP的外网出口权重

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • EIPId (str) - (Required) 弹性IP的资源ID
  • +
  • Weight (int) - (Required) 外网出口权重, 范围[0-100] 取值为0时, 该弹性IP不会被使用. 取值为100时, 同主机下只会使用这个弹性IP,其他弹性IP不会被使用 请勿将多个绑定在同一资源的弹性IP设置为相同权重
  • +
+

Response

+
+ +
+
+release_eip(req=None, **kwargs)[source]
+

ReleaseEIP - 释放弹性IP资源, 所释放弹性IP必须为非绑定状态.

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • EIPId (str) - (Required) 弹性IP的资源ID
  • +
+

Response

+
+ +
+
+release_share_bandwidth(req=None, **kwargs)[source]
+

ReleaseShareBandwidth - 关闭共享带宽

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • EIPBandwidth (int) - (Required) 关闭共享带宽后,各EIP恢复为的带宽值
  • +
  • ShareBandwidthId (str) - (Required) 共享带宽ID
  • +
  • PayMode (str) - Bandwidth 带宽计费, Traffic 转流量计费
  • +
+

Response

+
+ +
+
+release_vip(req=None, **kwargs)[source]
+

ReleaseVIP - 释放VIP资源

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写
  • +
  • Region (str) - (Config) 地域
  • +
  • VIPId (str) - (Required) 内网VIP的id
  • +
  • Zone (str) - 可用区
  • +
+

Response

+
+ +
+
+resize_share_bandwidth(req=None, **kwargs)[source]
+

ResizeShareBandwidth - 调整共享带宽的带宽值

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • ShareBandwidth (int) - (Required) 带宽值,单位为Mb,范围 [20-5000] (最大值受地域限制)
  • +
  • ShareBandwidthId (str) - (Required) 共享带宽的Id
  • +
+

Response

+
+ +
+
+set_eip_pay_mode(req=None, **kwargs)[source]
+

SetEIPPayMode - 设置弹性IP计费模式, 切换时会涉及付费/退费.

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • Bandwidth (int) - (Required) 调整的目标带宽值, 单位Mbps. 各地域的带宽值范围如下: 流量计费[1-200],其余情况[1-800]
  • +
  • EIPId (str) - (Required) 弹性IP的资源Id
  • +
  • PayMode (str) - (Required) 计费模式. 枚举值:”Traffic”, 流量计费模式; “Bandwidth”, 带宽计费模式
  • +
+

Response

+
+ +
+
+un_bind_eip(req=None, **kwargs)[source]
+

UnBindEIP - 将弹性IP从资源上解绑

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • EIPId (str) - (Required) 弹性IP的资源Id
  • +
  • ResourceId (str) - (Required) 弹性IP请求解绑的资源ID
  • +
  • ResourceType (str) - (Required) 弹性IP请求解绑的资源类型, 枚举值为: uhost: 云主机; ulb, 负载均衡器 upm: 物理机; hadoophost: 大数据集群;fortresshost:堡垒机;udockhost:容器;udhost:私有专区主机;natgw:NAT网关;udb:udb;vpngw:ipsec vpn;ucdr:云灾备;dbaudit:数据库审计;uni,虚拟网卡。
  • +
+

Response

+
+ +
+
+update_eip_attribute(req=None, **kwargs)[source]
+

UpdateEIPAttribute - 更新弹性IP名称,业务组,备注等属性字段

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • EIPId (str) - (Required) EIP资源ID
  • +
  • Name (str) - 名字(Name Tag Remark都为空则报错)
  • +
  • Remark (str) - 备注
  • +
  • Tag (str) - 业务
  • +
+

Response

+
+ +
+
+update_firewall(req=None, **kwargs)[source]
+

UpdateFirewall - 更新防火墙规则

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • FWId (str) - (Required) 防火墙资源ID
  • +
  • Rule (list) - (Required) 防火墙规则,例如:TCP|22|192.168.1.1/22|DROP|LOW|禁用22端口,第一个参数代表协议:第二个参数代表端口号,第三个参数为ip,第四个参数为ACCEPT(接受)和DROP(拒绝),第五个参数优先级:HIGH(高),MEDIUM(中),LOW(低),第六个参数为该条规则的自定义备注
  • +
+

Response

+
    +
  • FWId (str) - 防火墙id
  • +
+
+ +
+
+update_firewall_attribute(req=None, **kwargs)[source]
+

UpdateFirewallAttribute - 更新防火墙规则

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • FWId (str) - (Required) 防火墙资源ID
  • +
  • Name (str) - 防火墙名称,默认为空,为空则不做修改。Name,Tag,Remark必须填写1个及以上
  • +
  • Remark (str) - 防火墙备注,默认为空,为空则不做修改。Name,Tag,Remark必须填写1个及以上
  • +
  • Tag (str) - 防火墙业务组,默认为空,为空则不做修改。Name,Tag,Remark必须填写1个及以上
  • +
+

Response

+
+ +
+ +
+
+

ULB

+
+
+class ucloud.services.ulb.client.ULBClient(config, transport=None, middleware=None, logger=None)[source]
+
+
+allocate_backend(req=None, **kwargs)[source]
+

AllocateBackend - 添加ULB后端资源实例

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • ResourceId (str) - (Required) 所添加的后端资源的资源ID
  • +
  • ResourceType (str) - (Required) 所添加的后端资源的类型,枚举值:UHost -> 云主机;UPM -> 物理云主机; UDHost -> 私有专区主机;UDocker -> 容器,默认值为“UHost”
  • +
  • ULBId (str) - (Required) 负载均衡实例的ID
  • +
  • VServerId (str) - (Required) VServer实例的ID
  • +
  • Enabled (int) - 后端实例状态开关,枚举值: 1:启用; 0:禁用 默认为启用
  • +
  • Port (int) - 所添加的后端资源服务端口,取值范围[1-65535],默认80
  • +
  • Weight (int) - 所添加的后端RS权重(在加权轮询算法下有效),取值范围[0-100],默认为1
  • +
+

Response

+
    +
  • BackendId (str) - 所添加的后端资源在ULB中的对象ID,(为ULB系统中使用,与资源自身ID无关),可用于 UpdateBackendAttribute/UpdateBackendAttributeBatch/ReleaseBackend
  • +
+
+ +
+
+allocate_backend_batch(req=None, **kwargs)[source]
+

AllocateBackendBatch - 批量添加VServer后端节点

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • Backends (list) - (Required) 用| 分割字段,格式:ResourceId| ResourceType| Port| Enabled|IP| Weight。ResourceId:所添加的后端资源的资源ID;ResourceType:所添加的后端资源的类型,枚举值:UHost -> 云主机;UPM -> 物理云主机; UDHost -> 私有专区主机;UDocker -> 容器,默认值为“UHost”;Port:所添加的后端资源服务端口,取值范围[1-65535];Enabled:后端实例状态开关,枚举值: 1:启用; 0:禁用;IP:后端资源内网ip;Weight:所添加的后端RS权重(在加权轮询算法下有效),取值范围[0-100],默认为1
  • +
  • ULBId (str) - (Required) 负载均衡实例的ID
  • +
  • VServerId (str) - (Required) VServer实例的ID
  • +
  • ApiVersion (int) -
  • +
+

Response

+
    +
  • BackendSet (list) - 见 BackendSet 模型定义
  • +
+

Response Model

+

BackendSet

+
    +
  • BackendId (str) - rs的资源ID
  • +
  • ResourceId (str) - rs对应的UHost ID
  • +
+
+ +
+
+bind_ssl(req=None, **kwargs)[source]
+

BindSSL - 将SSL证书绑定到VServer

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • SSLId (str) - (Required) SSL证书的Id
  • +
  • ULBId (str) - (Required) 所绑定ULB实例ID
  • +
  • VServerId (str) - (Required) 所绑定VServer实例ID
  • +
+

Response

+
+ +
+
+create_policy(req=None, **kwargs)[source]
+

CreatePolicy - 创建VServer内容转发策略

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • BackendId (list) - (Required) 内容转发策略应用的后端资源实例的ID,来源于 AllocateBackend 返回的 BackendId
  • +
  • Match (str) - (Required) 内容转发匹配字段
  • +
  • ULBId (str) - (Required) 需要添加内容转发策略的负载均衡实例ID
  • +
  • VServerId (str) - (Required) 需要添加内容转发策略的VServer实例ID
  • +
  • Type (str) - 内容转发匹配字段的类型
  • +
+

Response

+
    +
  • PolicyId (str) - 内容转发策略ID
  • +
+
+ +
+
+create_ssl(req=None, **kwargs)[source]
+

CreateSSL - 创建SSL证书,可以把整个 Pem 证书内容传过来,或者把证书、私钥、CA证书分别传过来

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • SSLName (str) - (Required) SSL证书的名字,默认值为空
  • +
  • CaCert (str) - CA证书
  • +
  • PrivateKey (str) - 加密证书的私钥
  • +
  • SSLContent (str) - SSL证书的完整内容,包括用户证书、加密证书的私钥、CA证书
  • +
  • SSLType (str) - 所添加的SSL证书类型,目前只支持Pem格式
  • +
  • UserCert (str) - 用户的证书
  • +
+

Response

+
    +
  • SSLId (str) - SSL证书的Id
  • +
+
+ +
+
+create_ulb(req=None, **kwargs)[source]
+

CreateULB - 创建负载均衡实例,可以选择内网或者外网

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • BusinessId (str) - ULB 所属的业务组ID,如果不传则使用默认的业务组
  • +
  • ChargeType (str) - 付费方式
  • +
  • IPVersion (str) - ULB ip类型,枚举值:IPv6 / IPv4 (内部测试,暂未对外开放)
  • +
  • InnerMode (str) - 创建的ULB是否为内网模式
  • +
  • ListenType (str) - ULB 监听器类型,枚举值:RequestProxy / PacketsTransmit (内部测试,暂未对外开放)
  • +
  • OuterMode (str) - 创建的ULB是否为外网模式,默认即为外网模式
  • +
  • PrivateIp (str) - 创建内网ULB时指定内网IP。若不传值,则随机分配当前子网下的IP(暂时不对外开放,创建外网ULB该字段会忽略)
  • +
  • Remark (str) - 备注
  • +
  • SubnetId (str) - 内网ULB 所属的子网ID,如果不传则使用默认的子网
  • +
  • Tag (str) - 业务组
  • +
  • ULBName (str) - 负载均衡的名字,默认值为“ULB”
  • +
  • VPCId (str) - ULB所在的VPC的ID, 如果不传则使用默认的VPC
  • +
+

Response

+
    +
  • ULBId (str) - 负载均衡实例的Id
  • +
+
+ +
+
+create_vserver(req=None, **kwargs)[source]
+

CreateVServer - 创建VServer实例,定义监听的协议和端口以及负载均衡算法

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • ULBId (str) - (Required) 负载均衡实例ID
  • +
  • ClientTimeout (int) - ListenType为RequestProxy时表示空闲连接的回收时间,单位:秒,取值范围:时(0,86400],默认值为60;ListenType为PacketsTransmit时表示连接保持的时间,单位:秒,取值范围:[60,900],0 表示禁用连接保持
  • +
  • Domain (str) - 根据MonitorType确认; 当MonitorType为Port时,此字段无意义。当MonitorType为Path时,代表HTTP检查域名
  • +
  • FrontendPort (int) - VServer后端端口,取值范围[1-65535];默认值为80
  • +
  • ListenType (str) - 监听器类型,枚举值为:RequestProxy -> 请求代理;PacketsTransmit -> 报文转发;默认为”RequestProxy”
  • +
  • Method (str) - VServer负载均衡模式,枚举值:Roundrobin -> 轮询;Source -> 源地址;ConsistentHash -> 一致性哈希;SourcePort -> 源地址(计算端口);ConsistentHashPort -> 一致性哈希(计算端口); WeightRoundrobin -> 加权轮询; Leastconn -> 最小连接数。ConsistentHash,SourcePort,ConsistentHashPort 只在报文转发中使用;Leastconn只在请求代理中使用;Roundrobin、Source和WeightRoundrobin在请求代理和报文转发中使用。默认为:”Roundrobin”
  • +
  • MonitorType (str) - 健康检查类型,枚举值:Port -> 端口检查;Path -> 路径检查;
  • +
  • Path (str) - 根据MonitorType确认; 当MonitorType为Port时,此字段无意义。当MonitorType为Path时,代表HTTP检查路径
  • +
  • PersistenceInfo (str) - 根据PersistenceType确认; None和ServerInsert: 此字段无意义; UserDefined:此字段传入自定义会话保持String
  • +
  • PersistenceType (str) - VServer会话保持方式,默认关闭会话保持。枚举值:None -> 关闭;ServerInsert -> 自动生成KEY;UserDefined -> 用户自定义KEY。
  • +
  • Protocol (str) - VServer实例的协议,请求代理模式下有 HTTP、HTTPS、TCP,报文转发下有 TCP,UDP。默认为“HTTP”
  • +
  • VServerName (str) - VServer实例名称,默认为”VServer”
  • +
+

Response

+
    +
  • VServerId (str) - VServer实例的Id
  • +
+
+ +
+
+delete_policy(req=None, **kwargs)[source]
+

DeletePolicy - 删除内容转发策略

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • PolicyId (str) - (Required) 内容转发策略ID
  • +
  • GroupId (str) - 内容转发策略组ID
  • +
  • VServerId (str) - VServer 资源ID
  • +
+

Response

+
+ +
+
+delete_ssl(req=None, **kwargs)[source]
+

DeleteSSL - 删除SSL证书

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • SSLId (str) - (Required) SSL证书的ID
  • +
+

Response

+
+ +
+
+delete_ulb(req=None, **kwargs)[source]
+

DeleteULB - 删除负载均衡实例

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • ULBId (str) - (Required) 负载均衡实例的ID
  • +
  • ReleaseEip (bool) - 删除ulb时是否释放绑定的EIP,false标识只解绑EIP,true表示会释放绑定的EIP,默认是false
  • +
+

Response

+
+ +
+
+delete_vserver(req=None, **kwargs)[source]
+

DeleteVServer - 删除VServer实例

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • ULBId (str) - (Required) 负载均衡实例的ID
  • +
  • VServerId (str) - (Required) VServer实例的ID
  • +
+

Response

+
+ +
+
+describe_ssl(req=None, **kwargs)[source]
+

DescribeSSL - 获取SSL证书信息

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • Limit (int) - 数据分页值,默认为20
  • +
  • Offset (int) - 数据偏移量,默认值为0
  • +
  • SSLId (str) - SSL证书的Id
  • +
+

Response

+
    +
  • DataSet (list) - 见 ULBSSLSet 模型定义
  • +
  • TotalCount (int) - 满足条件的SSL证书总数
  • +
+

Response Model

+

ULBSSLSet

+
    +
  • HashValue (str) -
  • +
  • SSLId (str) - SSL证书的Id
  • +
  • SSLName (str) - SSL证书的名字
  • +
+
+ +
+
+describe_ulb(req=None, **kwargs)[source]
+

DescribeULB - 获取ULB详细信息

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • BusinessId (str) - ULB所属的业务组ID
  • +
  • Limit (int) - 数据分页值,默认为20
  • +
  • Offset (int) - 数据偏移量,默认为0
  • +
  • SubnetId (str) - ULB所属的子网ID
  • +
  • ULBId (str) - 负载均衡实例的Id。 若指定则返回指定的负载均衡实例的信息; 若不指定则返回当前数据中心中所有的负载均衡实例的信息
  • +
  • VPCId (str) - ULB所属的VPC
  • +
+

Response

+
    +
  • DataSet (list) - 见 ULBSet 模型定义
  • +
  • TotalCount (int) - 满足条件的ULB总数
  • +
+

Response Model

+

PolicyBackendSet

+
    +
  • BackendId (str) - 所添加的后端资源在ULB中的对象ID,(为ULB系统中使用,与资源自身ID无关
  • +
  • ObjectId (str) - 后端资源的对象ID
  • +
  • Port (int) - 所添加的后端资源服务端口
  • +
  • PrivateIP (str) - 后端资源的内网IP
  • +
  • ResourceName (str) - 后端资源的实例名称
  • +
+

ULBPolicySet

+
    +
  • BackendSet (list) - 见 PolicyBackendSet 模型定义
  • +
  • Match (str) - 内容转发匹配字段;默认内容转发类型下为空。
  • +
  • PolicyId (str) - 内容转发Id,默认内容转发类型下为空。
  • +
  • PolicyPriority (int) - 内容转发优先级,范围[1,9999],数字越大优先级越高。默认内容转发规则下为0。
  • +
  • PolicyType (str) - 内容类型,枚举值:Custom -> 客户自定义;Default -> 默认内容转发
  • +
  • TotalCount (int) - 默认内容转发类型下返回当前rs总数
  • +
  • Type (str) - 内容转发匹配字段的类型,枚举值:Domain -> 域名;Path -> 路径; 默认内容转发类型下为空
  • +
  • VServerId (str) - 所属VServerId
  • +
+

ULBBackendSet

+
    +
  • BackendId (str) - 后端资源实例的Id
  • +
  • Enabled (int) - 后端提供服务的实例启用与否,枚举值:0 禁用 1 启用
  • +
  • Port (int) - 后端提供服务的端口
  • +
  • PrivateIP (str) - 后端提供服务的内网IP
  • +
  • ResourceId (str) - 资源实例的资源Id
  • +
  • ResourceName (str) - 资源实例的资源名称
  • +
  • ResourceType (str) - 资源实例的类型
  • +
  • Status (int) - 后端提供服务的实例运行状态,枚举值:0健康检查健康状态 1 健康检查异常
  • +
  • SubResourceId (str) - 资源绑定的虚拟网卡实例的资源Id
  • +
  • SubResourceName (str) - 资源绑定的虚拟网卡实例的资源名称
  • +
  • SubResourceType (str) - 资源绑定的虚拟网卡实例的类型
  • +
  • SubnetId (str) - 后端提供服务的资源所在的子网的ID
  • +
  • Weight (int) -
  • +
+

ULBSSLSet

+
    +
  • HashValue (str) -
  • +
  • SSLId (str) - SSL证书的Id
  • +
  • SSLName (str) - SSL证书的名字
  • +
+

ULBVServerSet

+
    +
  • BackendSet (list) - 见 ULBBackendSet 模型定义
  • +
  • ClientTimeout (int) - 空闲连接的回收时间,单位:秒。
  • +
  • Domain (str) - 根据MonitorType确认; 当MonitorType为Port时,此字段无意义。当MonitorType为Path时,代表HTTP检查域名
  • +
  • FrontendPort (int) - VServer服务端口
  • +
  • ListenType (str) - 监听器类型,枚举值为: RequestProxy -> 请求代理;PacketsTransmit -> 报文转发
  • +
  • Method (str) - VServer负载均衡的模式,枚举值:Roundrobin -> 轮询;Source -> 源地址;ConsistentHash -> 一致性哈希;SourcePort -> 源地址(计算端口);ConsistentHashPort -> 一致性哈希(计算端口)。
  • +
  • MonitorType (str) - 健康检查类型,枚举值:Port -> 端口检查;Path -> 路径检查;
  • +
  • Path (str) - 根据MonitorType确认; 当MonitorType为Port时,此字段无意义。当MonitorType为Path时,代表HTTP检查路径
  • +
  • PersistenceInfo (str) - 根据PersistenceType确定: None或ServerInsert,此字段为空; UserDefined,此字段展示用户自定义会话string。
  • +
  • PersistenceType (str) - VServer会话保持方式。枚举值为: None -> 关闭会话保持; ServerInsert -> 自动生成; UserDefined -> 用户自定义。
  • +
  • PolicySet (list) - 见 ULBPolicySet 模型定义
  • +
  • Protocol (str) - VServer实例的协议。 枚举值为:HTTP,TCP,UDP,HTTPS。
  • +
  • SSLSet (list) - 见 ULBSSLSet 模型定义
  • +
  • Status (int) - VServer的运行状态。枚举值: 0 -> rs全部运行正常;1 -> rs全部运行异常;2 -> rs部分运行异常。
  • +
  • VServerId (str) - VServer实例的Id
  • +
  • VServerName (str) - VServer实例的名字
  • +
+

ULBIPSet

+
    +
  • Bandwidth (int) - 弹性IP的带宽值(暂未对外开放)
  • +
  • BandwidthType (int) - 弹性IP的带宽类型,枚举值:1 表示是共享带宽,0 普通带宽类型(暂未对外开放)
  • +
  • EIP (str) - 弹性IP地址
  • +
  • EIPId (str) - 弹性IP的ID
  • +
  • OperatorName (str) - 弹性IP的运营商信息,枚举值为: Bgp:BGP IP International:国际IP
  • +
+

ULBSet

+
    +
  • Bandwidth (int) - 带宽
  • +
  • BandwidthType (int) - 带宽类型,枚举值为: 0,非共享带宽; 1,共享带宽
  • +
  • BusinessId (str) - ULB 所属的业务组ID
  • +
  • CreateTime (int) - ULB的创建时间,格式为Unix Timestamp
  • +
  • ExpireTime (int) - ULB的到期时间,格式为Unix Timestamp
  • +
  • IPSet (list) - 见 ULBIPSet 模型定义
  • +
  • Name (str) - 负载均衡的资源名称(资源系统中),缺省值“ULB”
  • +
  • PrivateIP (str) - ULB的内网IP,当ULBType为OuterMode时,该值为空
  • +
  • Remark (str) - 负载均衡的备注,缺省值“”
  • +
  • Resource (list) - ULB的详细信息列表(废弃)
  • +
  • SubnetId (str) - ULB 为 InnerMode 时,ULB 所属的子网ID,默认为空
  • +
  • Tag (str) - 负载均衡的业务组名称,缺省值“Default”
  • +
  • ULBId (str) - 负载均衡的资源ID
  • +
  • ULBName (str) - 负载均衡的资源名称(内部记载,废弃)
  • +
  • ULBType (str) - ULB 的类型
  • +
  • VPCId (str) - ULB所在的VPC的ID
  • +
  • VServerSet (list) - 见 ULBVServerSet 模型定义
  • +
+
+ +
+
+describe_vserver(req=None, **kwargs)[source]
+

DescribeVServer - 获取ULB下的VServer的详细信息

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • ULBId (str) - (Required) 负载均衡实例的Id
  • +
  • Limit (int) - 数据分页值
  • +
  • Offset (int) - 数据偏移量
  • +
  • VServerId (str) - VServer实例的Id;若指定则返回指定的VServer实例的信息; 若不指定则返回当前负载均衡实例下所有VServer的信息
  • +
+

Response

+
    +
  • DataSet (list) - 见 ULBVServerSet 模型定义
  • +
  • TotalCount (int) - 满足条件的VServer总数
  • +
+

Response Model

+

PolicyBackendSet

+
    +
  • BackendId (str) - 所添加的后端资源在ULB中的对象ID,(为ULB系统中使用,与资源自身ID无关
  • +
  • ObjectId (str) - 后端资源的对象ID
  • +
  • Port (int) - 所添加的后端资源服务端口
  • +
  • PrivateIP (str) - 后端资源的内网IP
  • +
  • ResourceName (str) - 后端资源的实例名称
  • +
+

ULBSSLSet

+
    +
  • HashValue (str) -
  • +
  • SSLId (str) - SSL证书的Id
  • +
  • SSLName (str) - SSL证书的名字
  • +
+

ULBPolicySet

+
    +
  • BackendSet (list) - 见 PolicyBackendSet 模型定义
  • +
  • Match (str) - 内容转发匹配字段;默认内容转发类型下为空。
  • +
  • PolicyId (str) - 内容转发Id,默认内容转发类型下为空。
  • +
  • PolicyPriority (int) - 内容转发优先级,范围[1,9999],数字越大优先级越高。默认内容转发规则下为0。
  • +
  • PolicyType (str) - 内容类型,枚举值:Custom -> 客户自定义;Default -> 默认内容转发
  • +
  • TotalCount (int) - 默认内容转发类型下返回当前rs总数
  • +
  • Type (str) - 内容转发匹配字段的类型,枚举值:Domain -> 域名;Path -> 路径; 默认内容转发类型下为空
  • +
  • VServerId (str) - 所属VServerId
  • +
+

ULBBackendSet

+
    +
  • BackendId (str) - 后端资源实例的Id
  • +
  • Enabled (int) - 后端提供服务的实例启用与否,枚举值:0 禁用 1 启用
  • +
  • Port (int) - 后端提供服务的端口
  • +
  • PrivateIP (str) - 后端提供服务的内网IP
  • +
  • ResourceId (str) - 资源实例的资源Id
  • +
  • ResourceName (str) - 资源实例的资源名称
  • +
  • ResourceType (str) - 资源实例的类型
  • +
  • Status (int) - 后端提供服务的实例运行状态,枚举值:0健康检查健康状态 1 健康检查异常
  • +
  • SubResourceId (str) - 资源绑定的虚拟网卡实例的资源Id
  • +
  • SubResourceName (str) - 资源绑定的虚拟网卡实例的资源名称
  • +
  • SubResourceType (str) - 资源绑定的虚拟网卡实例的类型
  • +
  • SubnetId (str) - 后端提供服务的资源所在的子网的ID
  • +
  • Weight (int) -
  • +
+

ULBVServerSet

+
    +
  • BackendSet (list) - 见 ULBBackendSet 模型定义
  • +
  • ClientTimeout (int) - 空闲连接的回收时间,单位:秒。
  • +
  • Domain (str) - 根据MonitorType确认; 当MonitorType为Port时,此字段无意义。当MonitorType为Path时,代表HTTP检查域名
  • +
  • FrontendPort (int) - VServer服务端口
  • +
  • ListenType (str) - 监听器类型,枚举值为: RequestProxy -> 请求代理;PacketsTransmit -> 报文转发
  • +
  • Method (str) - VServer负载均衡的模式,枚举值:Roundrobin -> 轮询;Source -> 源地址;ConsistentHash -> 一致性哈希;SourcePort -> 源地址(计算端口);ConsistentHashPort -> 一致性哈希(计算端口)。
  • +
  • MonitorType (str) - 健康检查类型,枚举值:Port -> 端口检查;Path -> 路径检查;
  • +
  • Path (str) - 根据MonitorType确认; 当MonitorType为Port时,此字段无意义。当MonitorType为Path时,代表HTTP检查路径
  • +
  • PersistenceInfo (str) - 根据PersistenceType确定: None或ServerInsert,此字段为空; UserDefined,此字段展示用户自定义会话string。
  • +
  • PersistenceType (str) - VServer会话保持方式。枚举值为: None -> 关闭会话保持; ServerInsert -> 自动生成; UserDefined -> 用户自定义。
  • +
  • PolicySet (list) - 见 ULBPolicySet 模型定义
  • +
  • Protocol (str) - VServer实例的协议。 枚举值为:HTTP,TCP,UDP,HTTPS。
  • +
  • SSLSet (list) - 见 ULBSSLSet 模型定义
  • +
  • Status (int) - VServer的运行状态。枚举值: 0 -> rs全部运行正常;1 -> rs全部运行异常;2 -> rs部分运行异常。
  • +
  • VServerId (str) - VServer实例的Id
  • +
  • VServerName (str) - VServer实例的名字
  • +
+
+ +
+
+release_backend(req=None, **kwargs)[source]
+

ReleaseBackend - 从VServer释放后端资源实例

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • BackendId (str) - (Required) 后端资源实例的ID(ULB后端ID,非资源自身ID)
  • +
  • ULBId (str) - (Required) 负载均衡实例的ID
  • +
+

Response

+
+ +
+
+unbind_ssl(req=None, **kwargs)[source]
+

UnbindSSL - 从VServer解绑SSL证书

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • SSLId (str) - (Required) SSL证书的Id
  • +
  • ULBId (str) - (Required) 所绑定ULB实例ID
  • +
  • VServerId (str) - (Required) 所绑定VServer实例ID
  • +
+

Response

+
+ +
+
+update_backend_attribute(req=None, **kwargs)[source]
+

UpdateBackendAttribute - 更新ULB后端资源实例(服务节点)属性

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • BackendId (str) - (Required) 后端资源实例的ID(ULB后端ID,非资源自身ID)
  • +
  • ULBId (str) - (Required) 负载均衡资源ID
  • +
  • Enabled (int) - 后端实例状态开关
  • +
  • Port (int) - 后端资源服务端口,取值范围[1-65535]
  • +
  • Weight (int) - 所添加的后端RS权重(在加权轮询算法下有效),取值范围[0-100],默认为1
  • +
+

Response

+
+ +
+
+update_policy(req=None, **kwargs)[source]
+

UpdatePolicy - 更新内容转发规则,包括转发规则后的服务节点

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • BackendId (list) - (Required) 内容转发策略应用的后端资源实例的ID,来源于 AllocateBackend 返回的 BackendId
  • +
  • Match (str) - (Required) 内容转发匹配字段
  • +
  • PolicyId (str) - (Required) 转发规则的ID
  • +
  • ULBId (str) - (Required) 需要添加内容转发策略的负载均衡实例ID
  • +
  • VServerId (str) - (Required) 需要添加内容转发策略的VServer实例ID
  • +
  • Type (str) - 内容转发匹配字段的类型
  • +
+

Response

+
    +
  • PolicyId (str) - 转发规则的ID
  • +
+
+ +
+
+update_ulb_attribute(req=None, **kwargs)[source]
+

UpdateULBAttribute - 更新ULB名字业务组备注等属性字段

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • ULBId (str) - (Required) ULB资源ID
  • +
  • Name (str) - 名字
  • +
  • Remark (str) - 备注
  • +
  • Tag (str) - 业务
  • +
+

Response

+
+ +
+
+update_vserver_attribute(req=None, **kwargs)[source]
+

UpdateVServerAttribute - 更新VServer实例属性

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • ULBId (str) - (Required) 负载均衡实例ID
  • +
  • VServerId (str) - (Required) VServer实例ID
  • +
  • ClientTimeout (int) - 请求代理的VServer下表示空闲连接的回收时间,单位:秒,取值范围:时(0,86400],默认值为60;报文转发的VServer下表示回话保持的时间,单位:秒,取值范围:[60,900],0 表示禁用连接保持
  • +
  • Domain (str) - MonitorType 为 Path 时指定健康检查发送请求时HTTP HEADER 里的域名
  • +
  • Method (str) - VServer负载均衡模式,枚举值:Roundrobin -> 轮询;Source -> 源地址;ConsistentHash -> 一致性哈希;SourcePort -> 源地址(计算端口);ConsistentHashPort -> 一致性哈希(计算端口); WeightRoundrobin -> 加权轮询; Leastconn -> 最小连接数。ConsistentHash,SourcePort,ConsistentHashPort 只在报文转发中使用;Leastconn只在请求代理中使用;Roundrobin、Source和WeightRoundrobin在请求代理和报文转发中使用。默认为:”Roundrobin”
  • +
  • MonitorType (str) - 健康检查的类型,Port:端口,Path:路径
  • +
  • Path (str) - MonitorType 为 Path 时指定健康检查发送请求时的路径,默认为 /
  • +
  • PersistenceInfo (str) - 根据PersistenceType确定: None或ServerInsert, 此字段无意义; UserDefined, 则此字段传入用户自定义会话保持String. 若无此字段则不做修改
  • +
  • PersistenceType (str) - VServer会话保持模式,若无此字段则不做修改。枚举值:None:关闭;ServerInsert:自动生成KEY;UserDefined:用户自定义KEY。
  • +
  • Protocol (str) - VServer协议类型,请求代理只支持修改为 HTTP/HTTPS,报文转发VServer只支持修改为 TCP/UDP
  • +
  • VServerName (str) - VServer实例名称,若无此字段则不做修改
  • +
+

Response

+
+ +
+ +
+
+

PathX

+
+
+class ucloud.services.pathx.client.PathXClient(config, transport=None, middleware=None, logger=None)[source]
+
+
+create_global_ssh_instance(req=None, **kwargs)[source]
+

CreateGlobalSSHInstance - 创建GlobalSSH实例

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID,如org-xxxx。请参考 GetProjectList接口
  • +
  • Area (str) - (Required) 填写支持SSH访问IP的地区名称,如“洛杉矶”,“新加坡”,“香港”,“东京”,“华盛顿”,“法兰克福”。Area和AreaCode两者必填一个
  • +
  • AreaCode (str) - (Required) AreaCode, 区域航空港国际通用代码。Area和AreaCode两者必填一个
  • +
  • Port (int) - (Required) SSH端口,1-65535且不能使用80,443端口
  • +
  • TargetIP (str) - (Required) 被SSH访问的IP
  • +
  • ChargeType (str) - 支付方式,如按月、按年、按时
  • +
  • CouponId (str) - 使用代金券可冲抵部分费用
  • +
  • Quantity (int) - 购买数量
  • +
  • Remark (str) - 备注信息
  • +
+

Response

+
    +
  • AcceleratingDomain (str) - 加速域名,访问该域名可就近接入
  • +
  • InstanceId (str) - 实例ID,资源唯一标识
  • +
  • Message (str) - 提示信息
  • +
+
+ +
+
+delete_global_ssh_instance(req=None, **kwargs)[source]
+

DeleteGlobalSSHInstance - 删除GlobalSSH实例

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID,如org-xxxx。请参考 GetProjectList接口
  • +
  • InstanceId (str) - (Required) 实例Id,资源的唯一标识
  • +
+

Response

+
    +
  • Message (str) - 提示信息
  • +
+
+ +
+
+describe_global_ssh_area(req=None, **kwargs)[source]
+

DescribeGlobalSSHArea - 获取GlobalSSH覆盖的地区列表 用于控制显示哪些机房地域可以使用SSH特性

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID,如org-xxxx。请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 机房地域代号,如hk、 us-ca、 us-ws等。不填默认为空,返回所有支持地区。
  • +
+

Response

+
    +
  • AreaSet (list) - 见 GlobalSSHArea 模型定义
  • +
  • Message (str) - 提示信息
  • +
+

Response Model

+

GlobalSSHArea

+
    +
  • Area (str) - GlobalSSH覆盖的地区,如香港、东京、洛杉矶等
  • +
  • AreaCode (str) - 地区代号,以地区AirPort Code
  • +
  • RegionSet (list) - ucloud机房代号构成的数组,如[“hk”,”us-ca”]
  • +
+
+ +
+
+describe_global_ssh_instance(req=None, **kwargs)[source]
+

DescribeGlobalSSHInstance - 获取GlobalSSH实例列表(传实例ID获取单个实例信息,不传获取项目下全部实例)

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID,如org-xxxx。请参考 GetProjectList接口
  • +
  • InstanceId (str) - 实例ID,资源唯一标识
  • +
+

Response

+
    +
  • InstanceSet (list) - 见 GlobalSSHInfo 模型定义
  • +
+

Response Model

+

GlobalSSHInfo

+
    +
  • AcceleratingDomain (str) - 加速域名
  • +
  • Area (str) - 被SSH访问的IP所在地区
  • +
  • ChargeType (str) - 支付周期,如Month,Year等
  • +
  • CreateTime (int) - 资源创建时间戳
  • +
  • ExpireTime (int) - 资源过期时间戳
  • +
  • InstanceId (str) - 实例ID,资源唯一标识
  • +
  • Port (int) - SSH登陆端口
  • +
  • Remark (str) - 备注信息
  • +
  • TargetIP (str) - 被SSH访问的EIP
  • +
+
+ +
+
+modify_global_ssh_port(req=None, **kwargs)[source]
+

ModifyGlobalSSHPort - 修改GlobalSSH端口

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID,如org-xxxx。请参考 GetProjectList接口
  • +
  • InstanceId (str) - (Required) 实例ID,资源唯一标识
  • +
  • Port (int) - (Required) 调整后的SSH登陆端口
  • +
+

Response

+
    +
  • Message (str) - 提示信息
  • +
+
+ +
+
+modify_global_ssh_remark(req=None, **kwargs)[source]
+

ModifyGlobalSSHRemark - 修改GlobalSSH备注

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID,如org-xxxx。请参考 GetProjectList接口
  • +
  • InstanceId (str) - (Required) 实例ID,资源唯一标识
  • +
  • Remark (str) - 备注信息,不填默认为空字符串
  • +
+

Response

+
    +
  • Message (str) - 接口返回消息
  • +
+
+ +
+ +
+
+

UHost

+
+
+class ucloud.services.uhost.client.UHostClient(config, transport=None, middleware=None, logger=None)[source]
+
+
+copy_custom_image(req=None, **kwargs)[source]
+

CopyCustomImage - 复制自制镜像

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • SourceImageId (str) - (Required) 源镜像Id, 参见 DescribeImage
  • +
  • TargetProjectId (str) - (Required) 目标项目Id, 参见 GetProjectList
  • +
  • TargetImageDescription (str) - 目标镜像描述
  • +
  • TargetImageName (str) - 目标镜像名称
  • +
  • TargetRegion (str) - 目标地域,不跨地域不用填
  • +
  • Zone (str) - 可用区。参见 可用区列表
  • +
+

Response

+
    +
  • TargetImageId (str) - 目标镜像Id
  • +
+
+ +
+
+create_custom_image(req=None, **kwargs)[source]
+

CreateCustomImage - 从指定UHost实例,生成自定义镜像。

+

Request

+ +

Response

+
    +
  • ImageId (str) - 镜像Id
  • +
+
+ +
+
+create_uhost_instance(req=None, **kwargs)[source]
+

CreateUHostInstance - 创建UHost实例。

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • ImageId (str) - (Required) 镜像ID。 请通过 DescribeImage 获取
  • +
  • LoginMode (str) - (Required) 主机登陆模式。密码(默认选项): Password。
  • +
  • Password (str) - (Required) UHost密码。请遵照 字段规范 设定密码。密码需使用base64进行编码,举例如下:# echo -n Password1 | base64UGFzc3dvcmQx。
  • +
  • Zone (str) - (Required) 可用区。参见 可用区列表
  • +
  • AlarmTemplateId (int) - 告警模板id,如果传了告警模板id,且告警模板id正确,则绑定告警模板。绑定告警模板失败只会在后台有日志,不会影响创建主机流程,也不会在前端报错。
  • +
  • BootDiskSpace (int) - 【待废弃,不建议调用】系统盘大小。 单位:GB, 范围[20,100], 步长:10
  • +
  • CPU (int) - 虚拟CPU核数。可选参数:1-64(具体机型与CPU的对应关系参照控制台)。默认值: 4。
  • +
  • ChargeType (str) - 计费模式。枚举值为: > Year,按年付费; > Month,按月付费;> Dynamic,按小时付费 默认为月付
  • +
  • CouponId (str) - 主机代金券ID。请通过DescribeCoupon接口查询,或登录用户中心查看
  • +
  • DiskPassword (str) - 【待废弃,不建议调用】加密盘的密码。若输入此字段,自动选择加密盘。加密盘需要权限位。
  • +
  • DiskSpace (int) - 【待废弃,不建议调用】数据盘大小。 单位:GB, 范围[0,8000], 步长:10, 默认值:20,云盘支持0-8000;本地普通盘支持0-2000;本地SSD盘(包括所有GPU机型)支持100-1000
  • +
  • Disks (list) - 见 CreateUHostInstanceParamDisks 模型定义
  • +
  • GPU (int) - GPU卡核心数。仅GPU机型支持此字段(可选范围与UHostType相关)
  • +
  • GpuType (str) - GPU类型,枚举值[“K80”, “P40”, “V100”]
  • +
  • HostType (str) - 【已废弃】宿主机类型,N2,N1
  • +
  • HotplugFeature (bool) - 是否开启热升级特性。True为开启,False为未开启,默认False。
  • +
  • InstallAgent (str) - 【暂不支持】是否安装UGA。’yes’: 安装;其他或者不填:不安装。
  • +
  • IsolationGroup (str) - 硬件隔离组id。可通过DescribeIsolationGroup获取。
  • +
  • KeyPair (str) - 【暂不支持】Keypair公钥,LoginMode为KeyPair时此项必须
  • +
  • MachineType (str) - 云主机机型(V2.0),枚举值[“N”, “C”, “G”, “O”]。参考 云主机机型说明
  • +
  • MaxCount (int) - 【批量创建主机时必填】最大创建主机数量,取值范围是[1,100];
  • +
  • Memory (int) - 内存大小。单位:MB。范围 :[1024, 262144],取值为1024的倍数(可选范围参考控制台)。默认值:8192
  • +
  • MinimalCpuPlatform (str) - 最低cpu平台,枚举值[“Intel/Auto”, “Intel/IvyBridge”, “Intel/Haswell”, “Intel/Broadwell”, “Intel/Skylake”, “Intel/Cascadelake”。
  • +
  • Name (str) - UHost实例名称。默认:UHost。请遵照 字段规范 设定实例名称。
  • +
  • NetCapability (str) - 网络增强。枚举值:Normal(默认),不开启; Super,开启网络增强1.0; Ultra,开启网络增强2.0(仅支持部分可用区,请参考控制台)
  • +
  • NetworkId (str) - 【已废弃】网络ID(VPC2.0情况下无需填写)。VPC1.0情况下,若不填写,代表优先选择基础网络; 若填写,代表选择子网。参见DescribeSubnet。
  • +
  • NetworkInterface (list) - 见 CreateUHostInstanceParamNetworkInterface 模型定义
  • +
  • PrivateIp (list) - 【数组】创建云主机时指定内网IP。若不传值,则随机分配当前子网下的IP。调用方式举例:PrivateIp.0=x.x.x.x。当前只支持一个内网IP。
  • +
  • PrivateMac (str) - 【批量创建该参数无效】【内部字段】创建云主机时指定Mac。调用方式举例:PrivateMac=”xx:xx:xx:xx:xx:xx”。
  • +
  • Quantity (int) - 购买时长。默认:值 1。按小时购买(Dynamic)时无需此参数。 月付时,此参数传0,代表购买至月末。
  • +
  • ResourceType (int) - 【内部参数】资源类型
  • +
  • SecurityGroupId (str) - 防火墙Id,默认:Web推荐防火墙。如何查询SecurityGroupId请参见 DescribeSecurityGroup
  • +
  • SetId (int) -
  • +
  • StorageType (str) - 【待废弃,不建议调用】磁盘类型,同时设定系统盘和数据盘的磁盘类型。枚举值为:LocalDisk,本地磁盘; UDisk,云硬盘;默认为LocalDisk。仅部分可用区支持云硬盘方式的主机存储方式,具体请查询控制台。
  • +
  • SubnetId (str) - 子网 ID。默认为当前地域的默认子网。
  • +
  • Tag (str) - 业务组。默认:Default(Default即为未分组)。请遵照 字段规范 设定业务组。
  • +
  • TimemachineFeature (str) - 【待废弃,不建议调用】是否开启方舟特性。Yes为开启方舟,No为关闭方舟。目前仅选择普通本地盘+普通本地盘 或 SSD云盘+普通云盘的组合支持开启方舟。
  • +
  • UHostType (str) - 【建议后续不再使用】云主机机型V1.0。参考 云主机机型说明
  • +
  • UserDataScript (str) - 【暂不支持】cloudinit方式下,用户初始化脚本
  • +
  • VPCId (str) - VPC ID。默认为当前地域的默认VPC。
  • +
+

Response

+
    +
  • IPs (list) - 【批量创建不会返回】IP信息
  • +
  • UHostIds (list) - UHost实例Id集合
  • +
+

Request Model

+

CreateUHostInstanceParamNetworkInterfaceEIPGlobalSSH

+
    +
  • Area (str) - 填写支持SSH访问IP的地区名称,如“洛杉矶”,“新加坡”,“香港”,“东京”,“华盛顿”,“法兰克福”。Area和AreaCode两者必填一个
  • +
  • AreaCode (str) - GlobalSSH的。AreaCode, 区域航空港国际通用代码。Area和AreaCode两者必填一个
  • +
  • Port (int) - SSH端口,1-65535且不能使用80,443端口
  • +
+

CreateUHostInstanceParamNetworkInterfaceEIP

+
    +
  • Bandwidth (int) - 【如果绑定EIP这个参数必填】弹性IP的外网带宽, 单位为Mbps. 共享带宽模式必须指定0M带宽, 非共享带宽模式必须指定非0Mbps带宽. 各地域非共享带宽的带宽范围如下: 流量计费[1-300],带宽计费[1-800]
  • +
  • CouponId (str) - 当前EIP代金券id。请通过DescribeCoupon接口查询,或登录用户中心查看
  • +
  • GlobalSSH (dict) - 见 CreateUHostInstanceParamNetworkInterfaceEIPGlobalSSH 模型定义
  • +
  • OperatorName (str) - 【如果绑定EIP这个参数必填】弹性IP的线路如下: 国际: International BGP: Bgp 各地域允许的线路参数如下: cn-sh1: Bgp cn-sh2: Bgp cn-gd: Bgp cn-bj1: Bgp cn-bj2: Bgp hk: International us-ca: International th-bkk: International kr-seoul:International us-ws:International ge-fra:International sg:International tw-kh:International.其他海外线路均为 International
  • +
  • PayMode (str) - 弹性IP的计费模式. 枚举值: “Traffic”, 流量计费; “Bandwidth”, 带宽计费; “ShareBandwidth”,共享带宽模式. “Free”:免费带宽模式.默认为 “Bandwidth”.
  • +
  • ShareBandwidthId (str) - 绑定的共享带宽Id,仅当PayMode为ShareBandwidth时有效
  • +
+

CreateUHostInstanceParamDisks

+
    +
  • BackupType (str) - 磁盘备份方案。枚举值:> NONE,无备份 > DATAARK,数据方舟 当前磁盘支持的备份模式参考 磁盘类型
  • +
  • CouponId (str) - 云盘代金券id。不适用于系统盘/本地盘。请通过DescribeCoupon接口查询,或登录用户中心查看
  • +
  • Encrypted (bool) - 【功能仅部分可用区开放,详询技术支持】磁盘是否加密。加密:true, 不加密: false加密必须传入对应的的KmsKeyId
  • +
  • IsBoot (str) - 是否是系统盘。枚举值:> True,是系统盘 > False,是数据盘(默认)。Disks数组中有且只能有一块盘是系统盘。
  • +
  • KmsKeyId (str) - 【功能仅部分可用区开放,详询技术支持】kms key id。选择加密盘时必填。
  • +
  • Size (int) - 磁盘大小,单位GB。请参考 磁盘类型
  • +
  • Type (str) - 磁盘类型。请参考 磁盘类型
  • +
+

CreateUHostInstanceParamNetworkInterface

+
    +
  • EIP (dict) - 见 CreateUHostInstanceParamNetworkInterfaceEIP 模型定义
  • +
+
+ +
+
+describe_image(req=None, **kwargs)[source]
+

DescribeImage - 获取指定数据中心镜像列表,用户可通过指定操作系统类型,镜像Id进行过滤。

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • ImageId (str) - 镜像Id
  • +
  • ImageType (str) - 镜像类型。标准镜像:Base,镜像市场:Business, 自定义镜像:Custom,默认返回所有类型
  • +
  • Limit (int) - 返回数据长度,默认为20
  • +
  • Offset (int) - 列表起始位置偏移量,默认为0
  • +
  • OsType (str) - 操作系统类型:Linux, Windows 默认返回所有类型
  • +
  • PriceSet (int) - 是否返回价格:1返回,0不返回;默认不返回
  • +
  • Zone (str) - 可用区。参见 可用区列表
  • +
+

Response

+
    +
  • ImageSet (list) - 见 UHostImageSet 模型定义
  • +
  • TotalCount (int) - 满足条件的镜像总数
  • +
+

Response Model

+

UHostImageSet

+
    +
  • CreateTime (int) - 创建时间,格式为Unix时间戳
  • +
  • Features (list) - 特殊状态标识, 目前包含NetEnhnced(网络增强1.0), NetEnhanced_Ultra](网络增强2.0)
  • +
  • FuncType (str) - 行业镜像类型(仅行业镜像将返回这个值)
  • +
  • ImageDescription (str) - 镜像描述
  • +
  • ImageId (str) - 镜像ID
  • +
  • ImageName (str) - 镜像名称
  • +
  • ImageSize (int) - 镜像大小
  • +
  • ImageType (str) - 镜像类型 标准镜像:Base, 行业镜像:Business,自定义镜像:Custom
  • +
  • IntegratedSoftware (str) - 集成软件名称(仅行业镜像将返回这个值)
  • +
  • Links (str) - 介绍链接(仅行业镜像将返回这个值)
  • +
  • MinimalCPU (str) - 默认值为空’’’。当CentOS 7.3/7.4/7.5等镜像会标记为“Broadwell”
  • +
  • OsName (str) - 操作系统名称
  • +
  • OsType (str) - 操作系统类型:Liunx,Windows
  • +
  • State (str) - 镜像状态, 可用:Available,制作中:Making, 不可用:Unavailable
  • +
  • Vendor (str) - 供应商(仅行业镜像将返回这个值)
  • +
  • Zone (str) - 可用区,参见 可用区列表 |
  • +
+
+ +
+
+describe_uhost_instance(req=None, **kwargs)[source]
+

DescribeUHostInstance - 获取主机或主机列表信息,并可根据数据中心,主机ID等参数进行过滤。

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • IsolationGroup (str) - 硬件隔离组id。通过硬件隔离组筛选主机。
  • +
  • LifeCycle (int) - 1:普通云主机;2:抢占型云主机;如不传此参数,默认全部获取
  • +
  • Limit (int) - 返回数据长度,默认为20,最大100
  • +
  • Offset (int) - 列表起始位置偏移量,默认为0
  • +
  • SubnetId (str) - 子网id。通过子网筛选主机。北京一地域无效。
  • +
  • Tag (str) - 要查询的业务组名称
  • +
  • UHostIds (list) - 【数组】UHost主机的资源ID,例如UHostIds.0代表希望获取信息 的主机1,UHostIds.1代表主机2。 如果不传入,则返回当前Region 所有符合条件的UHost实例。
  • +
  • VPCId (str) - vpc id。通过VPC筛选主机。北京一地域无效。
  • +
  • Zone (str) - 可用区。参见 可用区列表
  • +
+

Response

+
    +
  • TotalCount (int) - UHostInstance总数
  • +
  • UHostSet (list) - 见 UHostInstanceSet 模型定义
  • +
+

Response Model

+

UHostDiskSet

+
    +
  • BackupType (str) - 备份方案。若开通了数据方舟,则为DataArk
  • +
  • DiskId (str) - 磁盘ID
  • +
  • DiskType (str) - 磁盘类型。请参考 磁盘类型
  • +
  • Drive (str) - 磁盘盘符
  • +
  • Encrypted (bool) - true: 加密盘 false:非加密盘
  • +
  • IsBoot (str) - 是否是系统盘。枚举值:> True,是系统盘 > False,是数据盘(默认)。Disks数组中有且只能有一块盘是系统盘。
  • +
  • Name (str) - UDisk名字(仅当磁盘是UDisk时返回)
  • +
  • Size (int) - 磁盘大小,单位: GB
  • +
  • Type (str) - 【建议不再使用】磁盘类型。系统盘: Boot,数据盘: Data,网络盘:Udisk
  • +
+

UHostIPSet

+
    +
  • Bandwidth (int) - IP对应的带宽, 单位: Mb (内网IP不显示带宽信息)
  • +
  • Default (str) - 是否默认的弹性网卡的信息。true: 是默认弹性网卡;其他值:不是。
  • +
  • IP (str) - IP地址
  • +
  • IPId (str) - IP资源ID (内网IP无对应的资源ID)
  • +
  • SubnetId (str) - IP地址对应的子网 ID(北京一当前字段为空)
  • +
  • Type (str) - 国际: Internation,BGP: Bgp,内网: Private
  • +
  • VPCId (str) - IP地址对应的VPC ID(北京一当前字段为空)
  • +
+

UHostInstanceSet

+
    +
  • AutoRenew (str) - 是否自动续费,自动续费:“Yes”,不自动续费:“No”
  • +
  • BasicImageId (str) - 基础镜像ID(指当前自定义镜像的来源镜像)
  • +
  • BasicImageName (str) - 基础镜像名称(指当前自定义镜像的来源镜像)
  • +
  • BootDiskState (str) - 系统盘状态 Normal表示初始化完成;Initializing表示在初始化。仍在初始化的系统盘无法制作镜像。
  • +
  • CPU (int) - 虚拟CPU核数,单位: 个
  • +
  • ChargeType (str) - 计费模式,枚举值为: Year,按年付费; Month,按月付费; Dynamic,按需付费(需开启权限);
  • +
  • CreateTime (int) - 创建时间,格式为Unix时间戳
  • +
  • DiskSet (list) - 见 UHostDiskSet 模型定义
  • +
  • ExpireTime (int) - 到期时间,格式为Unix时间戳
  • +
  • GPU (int) - GPU个数
  • +
  • HostType (str) - 【建议不再使用】主机系列:N2,表示系列2;N1,表示系列1
  • +
  • HotplugFeature (bool) - true: 开启热升级; false,未开启热升级
  • +
  • IPSet (list) - 见 UHostIPSet 模型定义
  • +
  • ImageId (str) - 【建议不再使用】主机的系统盘ID。
  • +
  • IsolationGroup (str) - 隔离组id,不在隔离组则返回””
  • +
  • LifeCycle (str) - 主机的生命周期类型。目前仅支持Normal:普通;
  • +
  • MachineType (str) - 云主机机型(新)。参考 云主机机型说明
  • +
  • Memory (int) - 内存大小,单位: MB
  • +
  • Name (str) - UHost实例名称
  • +
  • NetCapability (str) - 网络增强。Normal: 无;Super: 网络增强1.0; Ultra: 网络增强2.0
  • +
  • NetworkState (str) - 【建议不再使用】网络状态。 连接:Connected, 断开:NotConnected
  • +
  • OsName (str) - 创建主机的最初来源镜像的操作系统名称(若直接通过基础镜像创建,此处返回和BasicImageName一致)
  • +
  • OsType (str) - 操作系统类别。返回”Linux”或者”Windows”
  • +
  • Remark (str) - 备注
  • +
  • State (str) - 实例状态,枚举值:>初始化: Initializing; >启动中: Starting; > 运行中: Running; > 关机中: Stopping; >关机: Stopped >安装失败: Install Fail; >重启中: Rebooting
  • +
  • StorageType (str) - 【建议不再使用】主机磁盘类型。 枚举值为:> LocalDisk,本地磁盘; > UDisk 云盘。只要有一块磁盘为本地盘,即返回LocalDisk。
  • +
  • SubnetType (str) - 【建议不再使用】仅北京A的云主机会返回此字段。基础网络模式:Default;子网模式:Private
  • +
  • Tag (str) - 业务组名称
  • +
  • TimemachineFeature (str) - 【建议不再使用】数据方舟模式。枚举值:> Yes: 开启方舟; > no,未开启方舟
  • +
  • TotalDiskSpace (int) - 总的数据盘存储空间。
  • +
  • UHostId (str) - UHost实例ID
  • +
  • UHostType (str) - 【建议不再使用】云主机机型(旧)。参考 云主机机型说明
  • +
  • Zone (str) - 可用区。参见 可用区列表
  • +
+
+ +
+
+describe_uhost_tags(req=None, **kwargs)[source]
+

DescribeUHostTags - 获取指定数据中心的业务组列表。

+

Request

+ +

Response

+
    +
  • TagSet (list) - 见 UHostTagSet 模型定义
  • +
  • TotalCount (int) - 已有主机的业务组总个数
  • +
+

Response Model

+

UHostTagSet

+
    +
  • Tag (str) - 业务组名称
  • +
  • TotalCount (int) - 该业务组中包含的主机个数
  • +
  • Zone (str) - 可用区
  • +
+
+ +
+
+get_uhost_instance_price(req=None, **kwargs)[source]
+

GetUHostInstancePrice - 根据UHost实例配置,获取UHost实例的价格。

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • CPU (int) - (Required) CPU核数。可选参数:1-64。可选范围参照控制台。默认值: 4
  • +
  • Count (int) - (Required) 购买台数,范围[1,5]
  • +
  • ImageId (str) - (Required) 镜像Id,可通过 DescribeImage 获取镜像ID
  • +
  • Memory (int) - (Required) 内存大小。单位:MB。范围 :[1024, 262144],取值为1024的倍数(可选范围参照好控制台)。默认值:8192
  • +
  • ChargeType (str) - 计费模式。枚举值为: > Year,按年付费; > Month,按月付费;> Dynamic,按小时付费 默认为月付。
  • +
  • DiskSpace (int) - 【待废弃】数据盘大小,单位: GB,范围[0,1000],步长: 10,默认值: 0
  • +
  • Disks (list) - 见 GetUHostInstancePriceParamDisks 模型定义
  • +
  • GPU (int) - GPU卡核心数。仅GPU机型支持此字段。
  • +
  • GpuType (str) - GPU类型,枚举值[“K80”, “P40”, “V100”]
  • +
  • LifeCycle (int) - 【未支持】1:普通云主机;2:抢占性云主机;默认普通
  • +
  • MachineType (str) - 云主机机型(V2版本概念)。枚举值[“N”, “C”, “G”, “O”]。参考 云主机机型说明
  • +
  • NetCapability (str) - 网络增强。枚举值:Normal,不开启; Super,开启网络增强1.0。 默认值为Normal。
  • +
  • Quantity (int) - 购买时长。默认: 1。按小时购买(Dynamic)时无需此参数。 月付时,此参数传0,代表了购买至月末。
  • +
  • StorageType (str) - 【待废弃】磁盘类型,同时设定系统盘和数据盘, 枚举值为:LocalDisk,本地磁盘; UDisk,云硬盘; 默认为LocalDisk 仅部分可用区支持云硬盘方式的主机存储方式,具体请查询控制台。
  • +
  • TimemachineFeature (str) - 【待废弃】方舟机型。No,Yes。默认是No。
  • +
  • UHostType (str) - 【待废弃】云主机机型(V1版本概念)。参考 云主机机型说明
  • +
  • Zone (str) - 可用区。参见 可用区列表
  • +
+

Response

+
    +
  • PriceSet (list) - 见 UHostPriceSet 模型定义
  • +
+

Request Model

+

GetUHostInstancePriceParamDisks

+
    +
  • BackupType (str) - 磁盘备份方案。枚举值:> NONE,无备份 > DATAARK,数据方舟 当前磁盘支持的备份模式参考 磁盘类型
  • +
  • IsBoot (str) - 是否是系统盘。枚举值:> True,是系统盘 > False,是数据盘(默认)。Disks数组中有且只能有一块盘是系统盘。
  • +
  • Size (int) - 磁盘大小,单位GB。请参考 磁盘类型
  • +
  • Type (str) - 磁盘类型。请参考 磁盘类型
  • +
+

Response Model

+

UHostPriceSet

+
    +
  • ChargeType (str) - 计费类型。Year,Month,Dynamic
  • +
  • Price (float) - 价格,单位: 元,保留小数点后两位有效数字
  • +
+
+ +
+
+get_uhost_instance_vnc_info(req=None, **kwargs)[source]
+

GetUHostInstanceVncInfo - 获取指定UHost实例的管理VNC配置详细信息。

+

Request

+ +

Response

+
    +
  • UhostId (str) - UHost实例ID
  • +
  • VncIP (str) - Vnc登录IP
  • +
  • VncPassword (str) - Vnc 登录密码
  • +
  • VncPort (int) - Vnc登录端口
  • +
+
+ +
+
+get_uhost_upgrade_price(req=None, **kwargs)[source]
+

GetUHostUpgradePrice - 获取UHost实例升级配置的价格。可选配置范围请参考 云主机机型说明

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • UHostId (str) - (Required) UHost实例ID。 参见 DescribeUHostInstance
  • +
  • BootDiskSpace (int) - 【待废弃】系统大小,单位: GB,范围[20,100],步长: 10。
  • +
  • CPU (int) - 虚拟CPU核数。可选参数:1-64(可选范围参考控制台)。默认值为当前实例的CPU核数。
  • +
  • DiskSpace (int) - 【待废弃】数据盘大小,单位: GB,范围[0,1000],步长: 10, 默认值是该主机当前数据盘大小。
  • +
  • HostType (str) - 【待废弃】主机系列,目前支持N1,N2
  • +
  • Memory (int) - 内存大小。单位:MB。范围 :[1024, 262144],取值为1024的倍数(可选范围参考控制台)。默认值为当前实例的内存大小。
  • +
  • NetCapValue (int) - 网卡升降级(1,表示升级,2表示降级,0表示不变)
  • +
  • TimemachineFeature (str) - 方舟机型。No,Yes。默认是No。
  • +
  • Zone (str) - 可用区。参见 可用区列表
  • +
+

Response

+
    +
  • Price (float) - 规格调整差价。精确到小数点后2位。
  • +
+
+ +
+
+import_custom_image(req=None, **kwargs)[source]
+

ImportCustomImage - 把UFile的镜像文件导入到UHost,生成自定义镜像

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • Auth (bool) - (Required) 是否授权。必须填true
  • +
  • Format (str) - (Required) 镜像格式,可选RAW、VHD、VMDK、qcow2
  • +
  • ImageName (str) - (Required) 镜像名称
  • +
  • OsName (str) - (Required) 操作系统详细版本,请参考控制台的镜像版本;OsType为Other时,输入参数为Other
  • +
  • OsType (str) - (Required) 操作系统平台,比如CentOS、Ubuntu、Windows、RedHat等,请参考控制台的镜像版本;若导入控制台上没有的操作系统,参数为Other
  • +
  • UFileUrl (str) - (Required) UFile私有空间地址
  • +
  • ImageDescription (str) - 镜像描述
  • +
+

Response

+
    +
  • ImageId (str) - 镜像Id
  • +
+
+ +
+
+modify_uhost_instance_name(req=None, **kwargs)[source]
+

ModifyUHostInstanceName - 修改指定UHost实例名称,需要给出数据中心,UHostId,及新的实例名称。

+

Request

+ +

Response

+
    +
  • UhostId (str) - UHost实例ID
  • +
+
+ +
+
+modify_uhost_instance_remark(req=None, **kwargs)[source]
+

ModifyUHostInstanceRemark - 修改指定UHost实例备注信息。

+

Request

+ +

Response

+
    +
  • UhostId (str) - UHost实例ID
  • +
+
+ +
+
+modify_uhost_instance_tag(req=None, **kwargs)[source]
+

ModifyUHostInstanceTag - 修改指定UHost实例业务组标识。

+

Request

+ +

Response

+
    +
  • UhostId (str) - UHost实例ID
  • +
+
+ +
+
+poweroff_uhost_instance(req=None, **kwargs)[source]
+

PoweroffUHostInstance - 直接关闭UHost实例电源,无需等待实例正常关闭。

+

Request

+ +

Response

+
    +
  • UhostId (str) - UHost实例ID
  • +
+
+ +
+
+reboot_uhost_instance(req=None, **kwargs)[source]
+

RebootUHostInstance - 重新启动UHost实例,需要指定数据中心及UHostID两个参数的值。

+

Request

+ +

Response

+
    +
  • UhostId (str) - UHost实例ID
  • +
+
+ +
+
+reinstall_uhost_instance(req=None, **kwargs)[source]
+

ReinstallUHostInstance - 重新安装指定UHost实例的操作系统

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • UHostId (str) - (Required) UHost实例资源ID 参见 DescribeUHostInstance
  • +
  • BootDiskSpace (int) - 系统盘大小。 单位:GB, 范围[20,100], 步长:10
  • +
  • DNSServers (list) - 针对非私有子网主机,可自定义DNS。n可为0-2
  • +
  • ImageId (str) - 镜像Id,默认使用原镜像 参见 DescribeImage
  • +
  • Password (str) - 如果创建UHost实例时LoginMode为Password,则必须填写,如果LoginMode为KeyPair,不需要填写 (密码格式使用BASE64编码;LoginMode不可变更)
  • +
  • ReserveDisk (str) - 是否保留数据盘,保留:Yes,不报留:No, 默认:Yes;如果是从Windows重装为Linux或反之,则无法保留数据盘
  • +
  • ResourceType (int) - 云灾备指明191
  • +
  • Zone (str) - 可用区。参见 可用区列表
  • +
+

Response

+
    +
  • UhostId (str) - UHost实例资源ID
  • +
+
+ +
+
+reset_uhost_instance_password(req=None, **kwargs)[source]
+

ResetUHostInstancePassword - 重置UHost实例的管理员密码。

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • Password (str) - (Required) UHost新密码(密码格式使用BASE64编码)
  • +
  • UHostId (str) - (Required) UHost实例ID
  • +
  • Zone (str) - 可用区。参见 可用区列表
  • +
+

Response

+
    +
  • UhostId (str) - UHost实例ID
  • +
+
+ +
+
+resize_attached_disk(req=None, **kwargs)[source]
+

ResizeAttachedDisk - 修改挂载的磁盘大小,包含系统盘和数据盘

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • DiskId (str) - (Required) 磁盘ID。参见 DescribeUHostInstance 返回值中的DiskSet。
  • +
  • DiskSpace (int) - (Required) 磁盘大小,单位GB,步长为10。取值范围需大于当前磁盘大小,最大值请参考 磁盘类型
  • +
  • UHostId (str) - (Required) UHost实例ID。 参见 DescribeUHostInstance
  • +
  • Zone (str) - (Required) 可用区。参见 可用区列表
  • +
+

Response

+
    +
  • DiskId (str) - 改配成功的磁盘id
  • +
+
+ +
+
+resize_uhost_instance(req=None, **kwargs)[source]
+

ResizeUHostInstance - 修改指定UHost实例的资源配置,如CPU核心数,内存容量大小,网络增强等。可选配置范围请参考 云主机机型说明

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • UHostId (str) - (Required) UHost实例ID 参见 DescribeUHostInstance
  • +
  • BootDiskSpace (int) - 【待废弃】系统盘大小,单位:GB,范围[20,100],步长:10,系统盘不支持缩容,因此不允许输入比当前实例系统盘小的值
  • +
  • CPU (int) - 虚拟CPU核数。可选参数:1-32(可选范围与UHostType相关)。默认值为当前实例的CPU核数
  • +
  • DiskSpace (int) - 【待废弃】数据盘大小,单位:GB,范围[10,1000]; SSD机型,单位:GB,范围[100,500];步长:10,默认值为当前实例的数据盘大小,数据盘不支持缩容,因此不允许输入比当前实例数据盘大小的值
  • +
  • Memory (int) - 内存大小。单位:MB。范围 :[1024, 262144],取值为1024的倍数(可选范围与UHostType相关)。默认值为当前实例的内存大小。
  • +
  • NetCapValue (int) - 网卡升降级(1,表示升级,2表示降级,0表示不变)
  • +
  • Zone (str) - 可用区。参见 可用区列表
  • +
+

Response

+
    +
  • UhostId (str) - UHost实例ID
  • +
+
+ +
+
+start_uhost_instance(req=None, **kwargs)[source]
+

StartUHostInstance - 启动处于关闭状态的UHost实例,需要指定数据中心及UHostID两个参数的值。

+

Request

+ +

Response

+
    +
  • UhostId (str) - UHost实例ID
  • +
+
+ +
+
+stop_uhost_instance(req=None, **kwargs)[source]
+

StopUHostInstance - 指停止处于运行状态的UHost实例,需指定数据中心及UhostID。

+

Request

+ +

Response

+
    +
  • UhostId (str) - UHost实例ID
  • +
+
+ +
+
+terminate_custom_image(req=None, **kwargs)[source]
+

TerminateCustomImage - 删除用户自定义镜像

+

Request

+ +

Response

+
    +
  • ImageId (str) - 自制镜像Id
  • +
+
+ +
+
+terminate_uhost_instance(req=None, **kwargs)[source]
+

TerminateUHostInstance - 删除指定数据中心的UHost实例。

+

Request

+
    +
  • ProjectId (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 GetProjectList接口
  • +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • UHostId (str) - (Required) UHost资源Id 参见 DescribeUHostInstance
  • +
  • Destroy (int) - 是否直接删除,0表示按照原来的逻辑(有回收站权限,则进入回收站),1表示直接删除
  • +
  • ReleaseEIP (bool) - 是否释放绑定的EIP。true: 解绑EIP后,并释放;其他值或不填:解绑EIP。
  • +
  • ReleaseUDisk (bool) - 是否删除挂载的数据盘。true删除,其他不删除。
  • +
  • Zone (str) - 可用区。参见 可用区列表
  • +
+

Response

+
    +
  • InRecycle (str) - 放入回收站:”Yes”, 彻底删除:“No”
  • +
  • UHostId (str) - UHost 实例 Id
  • +
+
+ +
+
+upgrade_to_ark_uhost_instance(req=None, **kwargs)[source]
+

UpgradeToArkUHostInstance - 普通升级为方舟机型

+

Request

+
    +
  • Region (str) - (Config) 地域。 参见 地域和可用区列表
  • +
  • UHostIds (list) - (Required) UHost主机的资源ID,例如UHostIds.0代表希望升级的主机1,UHostIds.1代表主机2。
  • +
  • Zone (str) - (Required) 可用区。参见 可用区列表
  • +
  • CouponId (str) - 代金券ID 请参考DescribeCoupon接口
  • +
+

Response

+
    +
  • UHostSet (list) - UHost主机的资源ID数组
  • +
+
+ +
+ +
+
+ + +
+ +
+
+ +
+
+ + + + + + + \ No newline at end of file diff --git a/usage.html b/usage.html new file mode 100644 index 0000000..53ac785 --- /dev/null +++ b/usage.html @@ -0,0 +1,182 @@ + + + + + + + + Usage — ucloud-sdk-python2 documentation + + + + + + + + + + + + + + + + + + +
+
+
+ + +
+ +
+

Usage

+
+

Type System

+

UCloud Python SDK has type system for runtime checking.

+

For example:

+
client.uhost().create_uhost_instance({
+    'CPU': "i am not a integer",
+})
+
+
+

it will raise ValidationException with invalid integer and some required field is miss matched.

+
+
+

Wait State Changed

+

SDK also provide state waiter helper to improver usage experience.

+

When using it?

+

Waiter can wait for remote state is achieved to target state. such as,

+
    +
  • create and wait for resource state is completed.
  • +
  • invoke/start/stop a resource and wait for it is finished.
  • +
  • custom retry policies and wait for retrying is finished.
  • +
+

For example:

+
def mget_uhost_states(uhost_ids):
+    resp = client.uhost().describe_uhost_instance({'UHostIds': uhost_ids})
+    return [inst.get('State') for inst in resp.get('UHostSet')]
+
+# Stop all instances
+for uhost_id in uhost_ids:
+    client.uhost().stop_uhost_instance({'UHostId': uhost_id})
+
+# Wait all instances is stopped
+wait.wait_for_state(
+    target=['stopped'], pending=['pending'],
+    timeout=300, # wait 5min
+    refresh=lambda: (
+        'stopped' if all([state == 'Stopped' for state in mget_uhost_states(uhost_ids)]) else 'pending'
+    ),
+)
+
+# Remove all instances
+for uhost_id in uhost_ids:
+    client.uhost().terminate_uhost_instance({'UHostId': uhost_id})
+
+
+

By the default, waiter will use exponential back-off delay between twice request. +it will raise WaitTimeoutException when timeout is reached.

+
+
+

Client/Transport Middleware

+

UCloud SDK provide middleware feature to client or transport level request.

+

It allowed to add custom logic into the lifecycle of request/response.

+

For example:

+
@client.middleware.request
+def log_params(req):
+    print('[REQ]', req)
+
+@client.middleware.response
+def log_response(resp):
+    print('[RESP]', resp)
+
+
+

or transport:

+
from ucloud.core.transport import RequestsTransport
+
+transport = RequestsTransport()
+
+@transport.middleware.request
+def log_request(req):
+    print('[REQ]', req)
+
+@transport.middleware.response
+def log_response(resp):
+    print('[RESP]', resp)
+
+Client({'Region': 'cn-bj2'}, transport=transport)
+
+
+
+
+ + +
+ +
+
+ +
+
+ + + + + + + \ No newline at end of file From 9fb7425e0b04a59e5e1c219d28c5520f279f5d08 Mon Sep 17 00:00:00 2001 From: ucloud-bot Date: Mon, 23 Sep 2019 14:36:29 +0000 Subject: [PATCH 02/10] auto release documentation --- _modules/index.html | 9 +- _modules/ucloud/core/auth/_cfg.html | 10 +- _modules/ucloud/core/client/_cfg.html | 6 +- _modules/ucloud/core/client/_client.html | 36 +- _modules/ucloud/core/transport/_requests.html | 12 +- _modules/ucloud/core/utils/middleware.html | 6 +- _modules/ucloud/helpers/utils.html | 6 +- _modules/ucloud/helpers/wait.html | 6 +- _modules/ucloud/services/pathx/client.html | 6 +- _modules/ucloud/services/stepflow/client.html | 185 + _modules/ucloud/services/uaccount/client.html | 10 +- _modules/ucloud/services/udb/client.html | 47 +- _modules/ucloud/services/udisk/client.html | 29 +- _modules/ucloud/services/udpn/client.html | 6 +- _modules/ucloud/services/uhost/client.html | 6 +- _modules/ucloud/services/ulb/client.html | 6 +- _modules/ucloud/services/umem/client.html | 50 +- _modules/ucloud/services/unet/client.html | 14 +- _modules/ucloud/services/uphost/client.html | 10 +- _modules/ucloud/services/usms/client.html | 385 + _modules/ucloud/services/vpc/client.html | 6 +- _sources/index.rst.txt | 3 +- _sources/services.rst.txt | 56 +- contents.html | 6 +- core.html | 29 +- docs/build/doctrees/contents.doctree | Bin 0 -> 2090 bytes docs/build/doctrees/core.doctree | Bin 0 -> 53966 bytes docs/build/doctrees/environment.pickle | Bin 0 -> 491945 bytes docs/build/doctrees/helpers.doctree | Bin 0 -> 31135 bytes docs/build/doctrees/index.doctree | Bin 0 -> 17222 bytes docs/build/doctrees/quick_start.doctree | Bin 0 -> 7946 bytes docs/build/doctrees/services.doctree | Bin 0 -> 3349722 bytes docs/build/doctrees/usage.doctree | Bin 0 -> 11466 bytes docs/build/html/.buildinfo | 4 + docs/build/html/_modules/index.html | 119 + .../html/_modules/ucloud/core/auth/_cfg.html | 173 + .../_modules/ucloud/core/client/_cfg.html | 182 + .../_modules/ucloud/core/client/_client.html | 220 + .../ucloud/core/transport/_requests.html | 198 + .../ucloud/core/utils/middleware.html | 154 + .../html/_modules/ucloud/helpers/utils.html | 187 + .../html/_modules/ucloud/helpers/wait.html | 201 + .../ucloud/services/pathx/client.html | 260 + .../ucloud/services/stepflow/client.html | 185 + .../ucloud/services/uaccount/client.html | 265 + .../_modules/ucloud/services/udb/client.html | 1416 +++ .../ucloud/services/udisk/client.html | 566 + .../_modules/ucloud/services/udpn/client.html | 285 + .../ucloud/services/uhost/client.html | 866 ++ .../_modules/ucloud/services/ulb/client.html | 756 ++ .../_modules/ucloud/services/umem/client.html | 831 ++ .../_modules/ucloud/services/unet/client.html | 1033 ++ .../ucloud/services/uphost/client.html | 457 + .../_modules/ucloud/services/usms/client.html | 385 + .../_modules/ucloud/services/vpc/client.html | 643 + docs/build/html/_sources/contents.rst.txt | 0 docs/build/html/_sources/core.rst.txt | 35 + docs/build/html/_sources/helpers.rst.txt | 13 + docs/build/html/_sources/index.rst.txt | 56 + docs/build/html/_sources/quick_start.rst.txt | 61 + docs/build/html/_sources/services.rst.txt | 81 + docs/build/html/_sources/usage.rst.txt | 96 + docs/build/html/_static/ajax-loader.gif | Bin 0 -> 673 bytes docs/build/html/_static/alabaster.css | 701 ++ docs/build/html/_static/basic.css | 676 + docs/build/html/_static/comment-bright.png | Bin 0 -> 756 bytes docs/build/html/_static/comment-close.png | Bin 0 -> 829 bytes docs/build/html/_static/comment.png | Bin 0 -> 641 bytes docs/build/html/_static/custom.css | 1 + docs/build/html/_static/doctools.js | 315 + .../html/_static/documentation_options.js | 10 + docs/build/html/_static/down-pressed.png | Bin 0 -> 222 bytes docs/build/html/_static/down.png | Bin 0 -> 202 bytes docs/build/html/_static/file.png | Bin 0 -> 286 bytes docs/build/html/_static/jquery-3.2.1.js | 10253 ++++++++++++++++ docs/build/html/_static/jquery.js | 4 + docs/build/html/_static/language_data.js | 297 + docs/build/html/_static/minus.png | Bin 0 -> 90 bytes docs/build/html/_static/plus.png | Bin 0 -> 90 bytes docs/build/html/_static/pygments.css | 77 + docs/build/html/_static/searchtools.js | 481 + docs/build/html/_static/underscore-1.3.1.js | 999 ++ docs/build/html/_static/underscore.js | 31 + docs/build/html/_static/up-pressed.png | Bin 0 -> 214 bytes docs/build/html/_static/up.png | Bin 0 -> 203 bytes docs/build/html/_static/websupport.js | 808 ++ docs/build/html/contents.html | 101 + docs/build/html/core.html | 325 + docs/build/html/genindex.html | 756 ++ docs/build/html/helpers.html | 207 + docs/build/html/index.html | 241 + docs/build/html/objects.inv | Bin 0 -> 2161 bytes docs/build/html/py-modindex.html | 124 + docs/build/html/quick_start.html | 159 + docs/build/html/search.html | 117 + docs/build/html/searchindex.js | 1 + docs/build/html/services.html | 5507 +++++++++ docs/build/html/usage.html | 182 + genindex.html | 63 +- helpers.html | 6 +- index.html | 27 +- objects.inv | Bin 2069 -> 2161 bytes py-modindex.html | 11 +- quick_start.html | 6 +- search.html | 6 +- searchindex.js | 2 +- services.html | 6103 ++++----- usage.html | 6 +- 108 files changed, 36185 insertions(+), 3091 deletions(-) create mode 100644 _modules/ucloud/services/stepflow/client.html create mode 100644 _modules/ucloud/services/usms/client.html create mode 100644 docs/build/doctrees/contents.doctree create mode 100644 docs/build/doctrees/core.doctree create mode 100644 docs/build/doctrees/environment.pickle create mode 100644 docs/build/doctrees/helpers.doctree create mode 100644 docs/build/doctrees/index.doctree create mode 100644 docs/build/doctrees/quick_start.doctree create mode 100644 docs/build/doctrees/services.doctree create mode 100644 docs/build/doctrees/usage.doctree create mode 100644 docs/build/html/.buildinfo create mode 100644 docs/build/html/_modules/index.html create mode 100644 docs/build/html/_modules/ucloud/core/auth/_cfg.html create mode 100644 docs/build/html/_modules/ucloud/core/client/_cfg.html create mode 100644 docs/build/html/_modules/ucloud/core/client/_client.html create mode 100644 docs/build/html/_modules/ucloud/core/transport/_requests.html create mode 100644 docs/build/html/_modules/ucloud/core/utils/middleware.html create mode 100644 docs/build/html/_modules/ucloud/helpers/utils.html create mode 100644 docs/build/html/_modules/ucloud/helpers/wait.html create mode 100644 docs/build/html/_modules/ucloud/services/pathx/client.html create mode 100644 docs/build/html/_modules/ucloud/services/stepflow/client.html create mode 100644 docs/build/html/_modules/ucloud/services/uaccount/client.html create mode 100644 docs/build/html/_modules/ucloud/services/udb/client.html create mode 100644 docs/build/html/_modules/ucloud/services/udisk/client.html create mode 100644 docs/build/html/_modules/ucloud/services/udpn/client.html create mode 100644 docs/build/html/_modules/ucloud/services/uhost/client.html create mode 100644 docs/build/html/_modules/ucloud/services/ulb/client.html create mode 100644 docs/build/html/_modules/ucloud/services/umem/client.html create mode 100644 docs/build/html/_modules/ucloud/services/unet/client.html create mode 100644 docs/build/html/_modules/ucloud/services/uphost/client.html create mode 100644 docs/build/html/_modules/ucloud/services/usms/client.html create mode 100644 docs/build/html/_modules/ucloud/services/vpc/client.html create mode 100644 docs/build/html/_sources/contents.rst.txt create mode 100644 docs/build/html/_sources/core.rst.txt create mode 100644 docs/build/html/_sources/helpers.rst.txt create mode 100644 docs/build/html/_sources/index.rst.txt create mode 100644 docs/build/html/_sources/quick_start.rst.txt create mode 100644 docs/build/html/_sources/services.rst.txt create mode 100644 docs/build/html/_sources/usage.rst.txt create mode 100644 docs/build/html/_static/ajax-loader.gif create mode 100644 docs/build/html/_static/alabaster.css create mode 100644 docs/build/html/_static/basic.css create mode 100644 docs/build/html/_static/comment-bright.png create mode 100644 docs/build/html/_static/comment-close.png create mode 100644 docs/build/html/_static/comment.png create mode 100644 docs/build/html/_static/custom.css create mode 100644 docs/build/html/_static/doctools.js create mode 100644 docs/build/html/_static/documentation_options.js create mode 100644 docs/build/html/_static/down-pressed.png create mode 100644 docs/build/html/_static/down.png create mode 100644 docs/build/html/_static/file.png create mode 100644 docs/build/html/_static/jquery-3.2.1.js create mode 100644 docs/build/html/_static/jquery.js create mode 100644 docs/build/html/_static/language_data.js create mode 100644 docs/build/html/_static/minus.png create mode 100644 docs/build/html/_static/plus.png create mode 100644 docs/build/html/_static/pygments.css create mode 100644 docs/build/html/_static/searchtools.js create mode 100644 docs/build/html/_static/underscore-1.3.1.js create mode 100644 docs/build/html/_static/underscore.js create mode 100644 docs/build/html/_static/up-pressed.png create mode 100644 docs/build/html/_static/up.png create mode 100644 docs/build/html/_static/websupport.js create mode 100644 docs/build/html/contents.html create mode 100644 docs/build/html/core.html create mode 100644 docs/build/html/genindex.html create mode 100644 docs/build/html/helpers.html create mode 100644 docs/build/html/index.html create mode 100644 docs/build/html/objects.inv create mode 100644 docs/build/html/py-modindex.html create mode 100644 docs/build/html/quick_start.html create mode 100644 docs/build/html/search.html create mode 100644 docs/build/html/searchindex.js create mode 100644 docs/build/html/services.html create mode 100644 docs/build/html/usage.html diff --git a/_modules/index.html b/_modules/index.html index 6e6d701..8074c0a 100644 --- a/_modules/index.html +++ b/_modules/index.html @@ -6,7 +6,7 @@ - Overview: module code — ucloud-sdk-python2 documentation + Overview: module code — ucloud-sdk-python3 documentation @@ -36,12 +36,12 @@

All modules for which code is available

@@ -60,7 +61,7 @@

All modules for which code is available