Skip to content

Commit

Permalink
Generated python 2021-04-08 for BizWorks.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Mar 11, 2024
1 parent 4172833 commit 3434082
Show file tree
Hide file tree
Showing 15 changed files with 1,105 additions and 0 deletions.
14 changes: 14 additions & 0 deletions bizworks-20210408/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
composer.phar
/vendor/

# Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
composer.lock

.vscode/
.idea
.DS_Store

cache/
*.cache
runtime/
3 changes: 3 additions & 0 deletions bizworks-20210408/ChangeLog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
2024-03-11 Version: 1.0.0
- Generated python 2021-04-08 for BizWorks.

13 changes: 13 additions & 0 deletions bizworks-20210408/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Copyright (c) 2009-present, Alibaba Cloud All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
2 changes: 2 additions & 0 deletions bizworks-20210408/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
include LICENSE
include *.md
42 changes: 42 additions & 0 deletions bizworks-20210408/README-CN.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
[English](README.md) | 简体中文

![](https://aliyunsdk-pages.alicdn.com/icons/AlibabaCloud.svg)

## Alibaba Cloud BizWorks SDK for Python

## 要求

- Python >= 3.6

## 安装

- **使用 pip 安装(推荐)**

如未安装 `pip`, 请先至pip官网 [pip user guide](https://pip.pypa.io/en/stable/installing/ "pip User Guide") 安装pip .

```bash
# 安装 alibabacloud_bizworks20210408
pip install alibabacloud_bizworks20210408
```

## 问题

[提交 Issue](https://github.com/aliyun/alibabacloud-python-sdk/issues/new),不符合指南的问题可能会立即关闭。

## 使用说明

[快速使用](https://github.com/aliyun/alibabacloud-python-sdk/blob/master/docs/0-Usage-CN.md#%E5%BF%AB%E9%80%9F%E4%BD%BF%E7%94%A8)

## 发行说明

每个版本的详细更改记录在[发行说明](https://github.com/aliyun/alibabacloud-python-sdk/blob/master/bizworks-20210408/ChangeLog.md)中。

## 相关

- [最新源码](https://github.com/aliyun/alibabacloud-python-sdk/)

## 许可证

[Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0)

Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
41 changes: 41 additions & 0 deletions bizworks-20210408/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
English | [简体中文](README-CN.md)
![](https://aliyunsdk-pages.alicdn.com/icons/AlibabaCloud.svg)

## Alibaba Cloud BizWorks SDK for Python

## Requirements

- Python >= 3.6

## Installation

- **Install with pip**

Python SDK uses a common package management tool named `pip`. If pip is not installed, see the [pip user guide](https://pip.pypa.io/en/stable/installing/ "pip User Guide") to install pip.

```bash
# Install the alibabacloud_bizworks20210408
pip install alibabacloud_bizworks20210408
```

## Issues

[Opening an Issue](https://github.com/aliyun/alibabacloud-sdk/issues/new), Issues not conforming to the guidelines may be closed immediately.

## Usage

[Quick Examples](https://github.com/aliyun/alibabacloud-python-sdk/blob/master/docs/0-Usage-EN.md#quick-examples)

## Changelog

Detailed changes for each release are documented in the [release notes](https://github.com/aliyun/alibabacloud-python-sdk/blob/master/bizworks-20210408/ChangeLog.md).

## References

- [Latest Release](https://github.com/aliyun/alibabacloud-sdk/tree/master/python)

## License

[Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0)

Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = '1.0.0'
Binary file not shown.
Binary file not shown.
Binary file not shown.
91 changes: 91 additions & 0 deletions bizworks-20210408/alibabacloud_bizworks20210408/client.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
# -*- coding: utf-8 -*-
# This file is auto-generated, don't edit it. Thanks.
from typing import Dict
from Tea.core import TeaCore

from alibabacloud_tea_openapi.client import Client as OpenApiClient
from alibabacloud_tea_openapi import models as open_api_models
from alibabacloud_tea_util.client import Client as UtilClient
from alibabacloud_endpoint_util.client import Client as EndpointUtilClient
from alibabacloud_tea_util import models as util_models
from alibabacloud_bizworks20210408 import models as biz_works_20210408_models


class Client(OpenApiClient):
"""
*\
"""
def __init__(
self,
config: open_api_models.Config,
):
super().__init__(config)
self._endpoint_rule = ''
self.check_config(config)
self._endpoint = self.get_endpoint('bizworks', self._region_id, self._endpoint_rule, self._network, self._suffix, self._endpoint_map, self._endpoint)

def get_endpoint(
self,
product_id: str,
region_id: str,
endpoint_rule: str,
network: str,
suffix: str,
endpoint_map: Dict[str, str],
endpoint: str,
) -> str:
if not UtilClient.empty(endpoint):
return endpoint
if not UtilClient.is_unset(endpoint_map) and not UtilClient.empty(endpoint_map.get(region_id)):
return endpoint_map.get(region_id)
return EndpointUtilClient.get_endpoint_rules(product_id, region_id, endpoint_rule, network, suffix)

def query_usage_with_options(
self,
runtime: util_models.RuntimeOptions,
) -> biz_works_20210408_models.QueryUsageResponse:
req = open_api_models.OpenApiRequest()
params = open_api_models.Params(
action='QueryUsage',
version='2021-04-08',
protocol='HTTPS',
pathname='/',
method='GET',
auth_type='AK',
style='RPC',
req_body_type='formData',
body_type='json'
)
return TeaCore.from_map(
biz_works_20210408_models.QueryUsageResponse(),
self.call_api(params, req, runtime)
)

async def query_usage_with_options_async(
self,
runtime: util_models.RuntimeOptions,
) -> biz_works_20210408_models.QueryUsageResponse:
req = open_api_models.OpenApiRequest()
params = open_api_models.Params(
action='QueryUsage',
version='2021-04-08',
protocol='HTTPS',
pathname='/',
method='GET',
auth_type='AK',
style='RPC',
req_body_type='formData',
body_type='json'
)
return TeaCore.from_map(
biz_works_20210408_models.QueryUsageResponse(),
await self.call_api_async(params, req, runtime)
)

def query_usage(self) -> biz_works_20210408_models.QueryUsageResponse:
runtime = util_models.RuntimeOptions()
return self.query_usage_with_options(runtime)

async def query_usage_async(self) -> biz_works_20210408_models.QueryUsageResponse:
runtime = util_models.RuntimeOptions()
return await self.query_usage_with_options_async(runtime)
Loading

0 comments on commit 3434082

Please sign in to comment.