1. Packages
  2. Google Cloud Native
  3. API Docs
  4. discoveryengine
  5. discoveryengine/v1beta
  6. getSchema

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

google-native.discoveryengine/v1beta.getSchema

Explore with Pulumi AI

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

Gets a Schema.

Using getSchema

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getSchema(args: GetSchemaArgs, opts?: InvokeOptions): Promise<GetSchemaResult>
function getSchemaOutput(args: GetSchemaOutputArgs, opts?: InvokeOptions): Output<GetSchemaResult>
Copy
def get_schema(collection_id: Optional[str] = None,
               data_store_id: Optional[str] = None,
               location: Optional[str] = None,
               project: Optional[str] = None,
               schema_id: Optional[str] = None,
               opts: Optional[InvokeOptions] = None) -> GetSchemaResult
def get_schema_output(collection_id: Optional[pulumi.Input[str]] = None,
               data_store_id: Optional[pulumi.Input[str]] = None,
               location: Optional[pulumi.Input[str]] = None,
               project: Optional[pulumi.Input[str]] = None,
               schema_id: Optional[pulumi.Input[str]] = None,
               opts: Optional[InvokeOptions] = None) -> Output[GetSchemaResult]
Copy
func LookupSchema(ctx *Context, args *LookupSchemaArgs, opts ...InvokeOption) (*LookupSchemaResult, error)
func LookupSchemaOutput(ctx *Context, args *LookupSchemaOutputArgs, opts ...InvokeOption) LookupSchemaResultOutput
Copy

> Note: This function is named LookupSchema in the Go SDK.

public static class GetSchema 
{
    public static Task<GetSchemaResult> InvokeAsync(GetSchemaArgs args, InvokeOptions? opts = null)
    public static Output<GetSchemaResult> Invoke(GetSchemaInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetSchemaResult> getSchema(GetSchemaArgs args, InvokeOptions options)
public static Output<GetSchemaResult> getSchema(GetSchemaArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: google-native:discoveryengine/v1beta:getSchema
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

CollectionId This property is required. string
DataStoreId This property is required. string
Location This property is required. string
SchemaId This property is required. string
Project string
CollectionId This property is required. string
DataStoreId This property is required. string
Location This property is required. string
SchemaId This property is required. string
Project string
collectionId This property is required. String
dataStoreId This property is required. String
location This property is required. String
schemaId This property is required. String
project String
collectionId This property is required. string
dataStoreId This property is required. string
location This property is required. string
schemaId This property is required. string
project string
collection_id This property is required. str
data_store_id This property is required. str
location This property is required. str
schema_id This property is required. str
project str
collectionId This property is required. String
dataStoreId This property is required. String
location This property is required. String
schemaId This property is required. String
project String

getSchema Result

The following output properties are available:

JsonSchema string
The JSON representation of the schema.
Name string
Immutable. The full resource name of the schema, in the format of projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}. This field must be a UTF-8 encoded string with a length limit of 1024 characters.
StructSchema Dictionary<string, string>
The structured representation of the schema.
JsonSchema string
The JSON representation of the schema.
Name string
Immutable. The full resource name of the schema, in the format of projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}. This field must be a UTF-8 encoded string with a length limit of 1024 characters.
StructSchema map[string]string
The structured representation of the schema.
jsonSchema String
The JSON representation of the schema.
name String
Immutable. The full resource name of the schema, in the format of projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}. This field must be a UTF-8 encoded string with a length limit of 1024 characters.
structSchema Map<String,String>
The structured representation of the schema.
jsonSchema string
The JSON representation of the schema.
name string
Immutable. The full resource name of the schema, in the format of projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}. This field must be a UTF-8 encoded string with a length limit of 1024 characters.
structSchema {[key: string]: string}
The structured representation of the schema.
json_schema str
The JSON representation of the schema.
name str
Immutable. The full resource name of the schema, in the format of projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}. This field must be a UTF-8 encoded string with a length limit of 1024 characters.
struct_schema Mapping[str, str]
The structured representation of the schema.
jsonSchema String
The JSON representation of the schema.
name String
Immutable. The full resource name of the schema, in the format of projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}. This field must be a UTF-8 encoded string with a length limit of 1024 characters.
structSchema Map<String>
The structured representation of the schema.

Package Details

Repository
Google Cloud Native pulumi/pulumi-google-native
License
Apache-2.0

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi