models.py•6.82 kB
# generated by fastapi-codegen:
# filename: openapi.yaml
# timestamp: 2025-06-29T01:14:54+00:00
from __future__ import annotations
from enum import Enum
from typing import Any, Dict, List, Optional
from pydantic import BaseModel, Field
class GoogleCloudPrivatecatalogV1beta1Catalog(BaseModel):
createTime: Optional[str] = Field(
None, description='Output only. The time when the catalog was created.'
)
description: Optional[str] = Field(
None, description='Output only. The description of the catalog.'
)
displayName: Optional[str] = Field(
None,
description='Output only. The descriptive name of the catalog as it appears in UIs.',
)
name: Optional[str] = Field(
None,
description="Output only. The resource name of the target catalog, in the format of\n`catalogs/{catalog_id}'.",
)
updateTime: Optional[str] = Field(
None, description='Output only. The time when the catalog was last updated.'
)
class GoogleCloudPrivatecatalogV1beta1Product(BaseModel):
assetType: Optional[str] = Field(
None,
description='Output only. The type of the product asset. It can be one of the\nfollowing values:\n\n* `google.deploymentmanager.Template`\n* `google.cloudprivatecatalog.ListingOnly`',
)
createTime: Optional[str] = Field(
None, description='Output only. The time when the product was created.'
)
displayMetadata: Optional[Dict[str, Any]] = Field(
None,
description='Output only. The display metadata to describe the product.\nThe JSON schema of the metadata differs by Product.asset_type.\nWhen the type is `google.deploymentmanager.Template`, the schema is as\nfollows:\n\n```\n"$schema": http://json-schema.org/draft-04/schema#\ntype: object\nproperties:\n name:\n type: string\n minLength: 1\n maxLength: 64\n description:\n type: string\n minLength: 1\n maxLength: 2048\n tagline:\n type: string\n minLength: 1\n maxLength: 100\n support_info:\n type: string\n minLength: 1\n maxLength: 2048\n creator:\n type: string\n minLength: 1\n maxLength: 100\n documentation:\n type: array\n items:\n type: object\n properties:\n url:\n type: string\n pattern:\n "^(https?)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]"\n title:\n type: string\n minLength: 1\n maxLength: 64\n description:\n type: string\n minLength: 1\n maxLength: 2048\nrequired:\n- name\n- description\nadditionalProperties: false\n\n```\n\nWhen the asset type is `google.cloudprivatecatalog.ListingOnly`, the schema\nis as follows:\n\n```\n"$schema": http://json-schema.org/draft-04/schema#\ntype: object\nproperties:\n name:\n type: string\n minLength: 1\n maxLength: 64\n description:\n type: string\n minLength: 1\n maxLength: 2048\n tagline:\n type: string\n minLength: 1\n maxLength: 100\n support_info:\n type: string\n minLength: 1\n maxLength: 2048\n creator:\n type: string\n minLength: 1\n maxLength: 100\n documentation:\n type: array\n items:\n type: object\n properties:\n url:\n type: string\n pattern:\n "^(https?)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]"\n title:\n type: string\n minLength: 1\n maxLength: 64\n description:\n type: string\n minLength: 1\n maxLength: 2048\n signup_url:\n type: string\n pattern:\n "^(https?)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]"\nrequired:\n- name\n- description\n- signup_url\nadditionalProperties: false\n```',
)
iconUri: Optional[str] = Field(
None, description='Output only. The icon URI of the product.'
)
name: Optional[str] = Field(
None,
description="Output only. The resource name of the target product, in the format of\n`products/a-z*[a-z0-9]'.\n\nA unique identifier for the product under a catalog.",
)
updateTime: Optional[str] = Field(
None, description='Output only. The time when the product was last updated.'
)
class GoogleCloudPrivatecatalogV1beta1SearchCatalogsResponse(BaseModel):
catalogs: Optional[List[GoogleCloudPrivatecatalogV1beta1Catalog]] = Field(
None, description='The `Catalog`s computed from the resource context.'
)
nextPageToken: Optional[str] = Field(
None,
description='A pagination token returned from a previous call to SearchCatalogs that\nindicates from where listing should continue.\nThis field is optional.',
)
class GoogleCloudPrivatecatalogV1beta1SearchProductsResponse(BaseModel):
nextPageToken: Optional[str] = Field(
None,
description='A pagination token returned from a previous call to SearchProducts that\nindicates from where listing should continue.\nThis field is optional.',
)
products: Optional[List[GoogleCloudPrivatecatalogV1beta1Product]] = Field(
None, description='The `Product` resources computed from the resource context.'
)
class GoogleCloudPrivatecatalogV1beta1Version(BaseModel):
asset: Optional[Dict[str, Any]] = Field(
None,
description='Output only. The asset which has been validated and is ready to be\nprovisioned. See\ngoogle.cloud.privatecatalogproducer.v1beta.Version.asset for details.',
)
createTime: Optional[str] = Field(
None, description='Output only. The time when the version was created.'
)
description: Optional[str] = Field(
None,
description='Output only. The user-supplied description of the version. Maximum of 256\ncharacters.',
)
name: Optional[str] = Field(
None,
description="Output only. The resource name of the version, in the format\n`catalogs/{catalog_id}/products/{product_id}/versions/a-z*[a-z0-9]'.\n\nA unique identifier for the version under a product.",
)
updateTime: Optional[str] = Field(
None, description='Output only. The time when the version was last updated.'
)
class FieldXgafv(Enum):
field_1 = '1'
field_2 = '2'
class Alt(Enum):
json = 'json'
media = 'media'
proto = 'proto'
class GoogleCloudPrivatecatalogV1beta1SearchVersionsResponse(BaseModel):
nextPageToken: Optional[str] = Field(
None,
description='A pagination token returned from a previous call to SearchVersions that\nindicates from where the listing should continue.\nThis field is optional.',
)
versions: Optional[List[GoogleCloudPrivatecatalogV1beta1Version]] = Field(
None, description='The `Version` resources computed from the resource context.'
)