1414from .types import (
1515 ListSecretsRequestOrderBy ,
1616 Product ,
17+ SecretType ,
1718 SecretVersionStatus ,
1819 AccessSecretVersionResponse ,
1920 ListSecretVersionsResponse ,
@@ -57,6 +58,7 @@ async def create_secret(
5758 self ,
5859 * ,
5960 name : str ,
61+ type_ : SecretType ,
6062 region : Optional [Region ] = None ,
6163 project_id : Optional [str ] = None ,
6264 tags : Optional [List [str ]] = None ,
@@ -70,12 +72,17 @@ async def create_secret(
7072 :param name: Name of the secret.
7173 :param tags: List of the secret's tags.
7274 :param description: Description of the secret.
75+ :param type_: Type of the secret.
76+ (Optional.) See `Secret.Type` enum for description of values. If not specified, the type is `Opaque`.
7377 :return: :class:`Secret <Secret>`
7478
7579 Usage:
7680 ::
7781
78- result = await api.create_secret(name="example")
82+ result = await api.create_secret(
83+ name="example",
84+ type_=unknown_secret_type,
85+ )
7986 """
8087
8188 param_region = validate_path_param (
@@ -88,6 +95,7 @@ async def create_secret(
8895 body = marshal_CreateSecretRequest (
8996 CreateSecretRequest (
9097 name = name ,
98+ type_ = type_ ,
9199 region = region ,
92100 project_id = project_id ,
93101 tags = tags ,
@@ -367,8 +375,9 @@ async def add_secret_owner(
367375 Allow a product to use the secret.
368376 :param region: Region to target. If none is passed will use default region from the config.
369377 :param secret_id: ID of the secret.
370- :param product_name: (Deprecated: use product field) ID of the product to add (see product enum).
371- :param product: ID of the product to add (see product enum).
378+ :param product_name: (Deprecated: use `product` field) Name of the product to add.
379+ :param product: ID of the product to add.
380+ See `Product` enum for description of values.
372381
373382 Usage:
374383 ::
0 commit comments