代表层数据配置的类。通过利用该类,您可以快速指定层数据的来源,而无需关注层数据的数据类型。
class LayerContent
继承:tencent.cloud.serverless.functions.client.FunctionCode
类。
该类是 FunctionCode 的子类,其方法、可访问属性等与父类相同。
该类仅支持构造类实例后使用,其构造实例方法签名如下:
def __init__(self)
在下文中我们将向您演示如何构造一个层数据类实例并使用它。
from tencent.cloud.serverless import functions# The method will return itself.functions.LayerContent().use_object_storage_bucket(region_id = 'ap-shanghai-1',bucket_name = 'scf-layer',object_name = 'layer-data.zip')
产品软件包:tencent-cloud-sdk-serverless-functions >= 0.1.2