1. Packages
  2. Google Cloud Native
  3. API Docs
  4. pubsub
  5. pubsub/v1
  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.pubsub/v1.getSchema

Explore with Pulumi AI

google-native logo

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>
    def get_schema(project: Optional[str] = None,
                   schema_id: Optional[str] = None,
                   view: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetSchemaResult
    def get_schema_output(project: Optional[pulumi.Input[str]] = None,
                   schema_id: Optional[pulumi.Input[str]] = None,
                   view: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetSchemaResult]
    func LookupSchema(ctx *Context, args *LookupSchemaArgs, opts ...InvokeOption) (*LookupSchemaResult, error)
    func LookupSchemaOutput(ctx *Context, args *LookupSchemaOutputArgs, opts ...InvokeOption) LookupSchemaResultOutput

    > 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)
    }
    public static CompletableFuture<GetSchemaResult> getSchema(GetSchemaArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: google-native:pubsub/v1:getSchema
      arguments:
        # arguments dictionary

    The following arguments are supported:

    SchemaId string
    Project string
    View string
    SchemaId string
    Project string
    View string
    schemaId String
    project String
    view String
    schemaId string
    project string
    view string
    schemaId String
    project String
    view String

    getSchema Result

    The following output properties are available:

    Definition string
    The definition of the schema. This should contain a string representing the full definition of the schema that is a valid schema definition of the type specified in type.
    Name string
    Name of the schema. Format is projects/{project}/schemas/{schema}.
    RevisionCreateTime string
    The timestamp that the revision was created.
    RevisionId string
    Immutable. The revision ID of the schema.
    Type string
    The type of the schema definition.
    Definition string
    The definition of the schema. This should contain a string representing the full definition of the schema that is a valid schema definition of the type specified in type.
    Name string
    Name of the schema. Format is projects/{project}/schemas/{schema}.
    RevisionCreateTime string
    The timestamp that the revision was created.
    RevisionId string
    Immutable. The revision ID of the schema.
    Type string
    The type of the schema definition.
    definition String
    The definition of the schema. This should contain a string representing the full definition of the schema that is a valid schema definition of the type specified in type.
    name String
    Name of the schema. Format is projects/{project}/schemas/{schema}.
    revisionCreateTime String
    The timestamp that the revision was created.
    revisionId String
    Immutable. The revision ID of the schema.
    type String
    The type of the schema definition.
    definition string
    The definition of the schema. This should contain a string representing the full definition of the schema that is a valid schema definition of the type specified in type.
    name string
    Name of the schema. Format is projects/{project}/schemas/{schema}.
    revisionCreateTime string
    The timestamp that the revision was created.
    revisionId string
    Immutable. The revision ID of the schema.
    type string
    The type of the schema definition.
    definition str
    The definition of the schema. This should contain a string representing the full definition of the schema that is a valid schema definition of the type specified in type.
    name str
    Name of the schema. Format is projects/{project}/schemas/{schema}.
    revision_create_time str
    The timestamp that the revision was created.
    revision_id str
    Immutable. The revision ID of the schema.
    type str
    The type of the schema definition.
    definition String
    The definition of the schema. This should contain a string representing the full definition of the schema that is a valid schema definition of the type specified in type.
    name String
    Name of the schema. Format is projects/{project}/schemas/{schema}.
    revisionCreateTime String
    The timestamp that the revision was created.
    revisionId String
    Immutable. The revision ID of the schema.
    type String
    The type of the schema definition.

    Package Details

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

    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