v1

package
v0.32.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoundingPoly

type BoundingPoly struct {
	// The bounding polygon normalized vertices.
	NormalizedVertices []NormalizedVertex `pulumi:"normalizedVertices"`
	// The bounding polygon vertices.
	Vertices []Vertex `pulumi:"vertices"`
}

A bounding polygon for the detected image annotation.

type BoundingPolyArgs

type BoundingPolyArgs struct {
	// The bounding polygon normalized vertices.
	NormalizedVertices NormalizedVertexArrayInput `pulumi:"normalizedVertices"`
	// The bounding polygon vertices.
	Vertices VertexArrayInput `pulumi:"vertices"`
}

A bounding polygon for the detected image annotation.

func (BoundingPolyArgs) ElementType

func (BoundingPolyArgs) ElementType() reflect.Type

func (BoundingPolyArgs) ToBoundingPolyOutput

func (i BoundingPolyArgs) ToBoundingPolyOutput() BoundingPolyOutput

func (BoundingPolyArgs) ToBoundingPolyOutputWithContext

func (i BoundingPolyArgs) ToBoundingPolyOutputWithContext(ctx context.Context) BoundingPolyOutput

type BoundingPolyArray

type BoundingPolyArray []BoundingPolyInput

func (BoundingPolyArray) ElementType

func (BoundingPolyArray) ElementType() reflect.Type

func (BoundingPolyArray) ToBoundingPolyArrayOutput

func (i BoundingPolyArray) ToBoundingPolyArrayOutput() BoundingPolyArrayOutput

func (BoundingPolyArray) ToBoundingPolyArrayOutputWithContext

func (i BoundingPolyArray) ToBoundingPolyArrayOutputWithContext(ctx context.Context) BoundingPolyArrayOutput

type BoundingPolyArrayInput

type BoundingPolyArrayInput interface {
	pulumi.Input

	ToBoundingPolyArrayOutput() BoundingPolyArrayOutput
	ToBoundingPolyArrayOutputWithContext(context.Context) BoundingPolyArrayOutput
}

BoundingPolyArrayInput is an input type that accepts BoundingPolyArray and BoundingPolyArrayOutput values. You can construct a concrete instance of `BoundingPolyArrayInput` via:

BoundingPolyArray{ BoundingPolyArgs{...} }

type BoundingPolyArrayOutput

type BoundingPolyArrayOutput struct{ *pulumi.OutputState }

func (BoundingPolyArrayOutput) ElementType

func (BoundingPolyArrayOutput) ElementType() reflect.Type

func (BoundingPolyArrayOutput) Index

func (BoundingPolyArrayOutput) ToBoundingPolyArrayOutput

func (o BoundingPolyArrayOutput) ToBoundingPolyArrayOutput() BoundingPolyArrayOutput

func (BoundingPolyArrayOutput) ToBoundingPolyArrayOutputWithContext

func (o BoundingPolyArrayOutput) ToBoundingPolyArrayOutputWithContext(ctx context.Context) BoundingPolyArrayOutput

type BoundingPolyInput

type BoundingPolyInput interface {
	pulumi.Input

	ToBoundingPolyOutput() BoundingPolyOutput
	ToBoundingPolyOutputWithContext(context.Context) BoundingPolyOutput
}

BoundingPolyInput is an input type that accepts BoundingPolyArgs and BoundingPolyOutput values. You can construct a concrete instance of `BoundingPolyInput` via:

BoundingPolyArgs{...}

type BoundingPolyOutput

type BoundingPolyOutput struct{ *pulumi.OutputState }

A bounding polygon for the detected image annotation.

func (BoundingPolyOutput) ElementType

func (BoundingPolyOutput) ElementType() reflect.Type

func (BoundingPolyOutput) NormalizedVertices

func (o BoundingPolyOutput) NormalizedVertices() NormalizedVertexArrayOutput

The bounding polygon normalized vertices.

func (BoundingPolyOutput) ToBoundingPolyOutput

func (o BoundingPolyOutput) ToBoundingPolyOutput() BoundingPolyOutput

func (BoundingPolyOutput) ToBoundingPolyOutputWithContext

func (o BoundingPolyOutput) ToBoundingPolyOutputWithContext(ctx context.Context) BoundingPolyOutput

func (BoundingPolyOutput) Vertices

The bounding polygon vertices.

type BoundingPolyResponse

type BoundingPolyResponse struct {
	// The bounding polygon normalized vertices.
	NormalizedVertices []NormalizedVertexResponse `pulumi:"normalizedVertices"`
	// The bounding polygon vertices.
	Vertices []VertexResponse `pulumi:"vertices"`
}

A bounding polygon for the detected image annotation.

type BoundingPolyResponseArrayOutput

type BoundingPolyResponseArrayOutput struct{ *pulumi.OutputState }

func (BoundingPolyResponseArrayOutput) ElementType

func (BoundingPolyResponseArrayOutput) Index

func (BoundingPolyResponseArrayOutput) ToBoundingPolyResponseArrayOutput

func (o BoundingPolyResponseArrayOutput) ToBoundingPolyResponseArrayOutput() BoundingPolyResponseArrayOutput

func (BoundingPolyResponseArrayOutput) ToBoundingPolyResponseArrayOutputWithContext

func (o BoundingPolyResponseArrayOutput) ToBoundingPolyResponseArrayOutputWithContext(ctx context.Context) BoundingPolyResponseArrayOutput

type BoundingPolyResponseOutput

type BoundingPolyResponseOutput struct{ *pulumi.OutputState }

A bounding polygon for the detected image annotation.

func (BoundingPolyResponseOutput) ElementType

func (BoundingPolyResponseOutput) ElementType() reflect.Type

func (BoundingPolyResponseOutput) NormalizedVertices

The bounding polygon normalized vertices.

func (BoundingPolyResponseOutput) ToBoundingPolyResponseOutput

func (o BoundingPolyResponseOutput) ToBoundingPolyResponseOutput() BoundingPolyResponseOutput

func (BoundingPolyResponseOutput) ToBoundingPolyResponseOutputWithContext

func (o BoundingPolyResponseOutput) ToBoundingPolyResponseOutputWithContext(ctx context.Context) BoundingPolyResponseOutput

func (BoundingPolyResponseOutput) Vertices

The bounding polygon vertices.

type KeyValue

type KeyValue struct {
	// The key of the label attached to the product. Cannot be empty and cannot exceed 128 bytes.
	Key *string `pulumi:"key"`
	// The value of the label attached to the product. Cannot be empty and cannot exceed 128 bytes.
	Value *string `pulumi:"value"`
}

A product label represented as a key-value pair.

type KeyValueArgs

type KeyValueArgs struct {
	// The key of the label attached to the product. Cannot be empty and cannot exceed 128 bytes.
	Key pulumi.StringPtrInput `pulumi:"key"`
	// The value of the label attached to the product. Cannot be empty and cannot exceed 128 bytes.
	Value pulumi.StringPtrInput `pulumi:"value"`
}

A product label represented as a key-value pair.

func (KeyValueArgs) ElementType

func (KeyValueArgs) ElementType() reflect.Type

func (KeyValueArgs) ToKeyValueOutput

func (i KeyValueArgs) ToKeyValueOutput() KeyValueOutput

func (KeyValueArgs) ToKeyValueOutputWithContext

func (i KeyValueArgs) ToKeyValueOutputWithContext(ctx context.Context) KeyValueOutput

type KeyValueArray

type KeyValueArray []KeyValueInput

func (KeyValueArray) ElementType

func (KeyValueArray) ElementType() reflect.Type

func (KeyValueArray) ToKeyValueArrayOutput

func (i KeyValueArray) ToKeyValueArrayOutput() KeyValueArrayOutput

func (KeyValueArray) ToKeyValueArrayOutputWithContext

func (i KeyValueArray) ToKeyValueArrayOutputWithContext(ctx context.Context) KeyValueArrayOutput

type KeyValueArrayInput

type KeyValueArrayInput interface {
	pulumi.Input

	ToKeyValueArrayOutput() KeyValueArrayOutput
	ToKeyValueArrayOutputWithContext(context.Context) KeyValueArrayOutput
}

KeyValueArrayInput is an input type that accepts KeyValueArray and KeyValueArrayOutput values. You can construct a concrete instance of `KeyValueArrayInput` via:

KeyValueArray{ KeyValueArgs{...} }

type KeyValueArrayOutput

type KeyValueArrayOutput struct{ *pulumi.OutputState }

func (KeyValueArrayOutput) ElementType

func (KeyValueArrayOutput) ElementType() reflect.Type

func (KeyValueArrayOutput) Index

func (KeyValueArrayOutput) ToKeyValueArrayOutput

func (o KeyValueArrayOutput) ToKeyValueArrayOutput() KeyValueArrayOutput

func (KeyValueArrayOutput) ToKeyValueArrayOutputWithContext

func (o KeyValueArrayOutput) ToKeyValueArrayOutputWithContext(ctx context.Context) KeyValueArrayOutput

type KeyValueInput

type KeyValueInput interface {
	pulumi.Input

	ToKeyValueOutput() KeyValueOutput
	ToKeyValueOutputWithContext(context.Context) KeyValueOutput
}

KeyValueInput is an input type that accepts KeyValueArgs and KeyValueOutput values. You can construct a concrete instance of `KeyValueInput` via:

KeyValueArgs{...}

type KeyValueOutput

type KeyValueOutput struct{ *pulumi.OutputState }

A product label represented as a key-value pair.

func (KeyValueOutput) ElementType

func (KeyValueOutput) ElementType() reflect.Type

func (KeyValueOutput) Key

The key of the label attached to the product. Cannot be empty and cannot exceed 128 bytes.

func (KeyValueOutput) ToKeyValueOutput

func (o KeyValueOutput) ToKeyValueOutput() KeyValueOutput

func (KeyValueOutput) ToKeyValueOutputWithContext

func (o KeyValueOutput) ToKeyValueOutputWithContext(ctx context.Context) KeyValueOutput

func (KeyValueOutput) Value

The value of the label attached to the product. Cannot be empty and cannot exceed 128 bytes.

type KeyValueResponse

type KeyValueResponse struct {
	// The key of the label attached to the product. Cannot be empty and cannot exceed 128 bytes.
	Key string `pulumi:"key"`
	// The value of the label attached to the product. Cannot be empty and cannot exceed 128 bytes.
	Value string `pulumi:"value"`
}

A product label represented as a key-value pair.

type KeyValueResponseArrayOutput

type KeyValueResponseArrayOutput struct{ *pulumi.OutputState }

func (KeyValueResponseArrayOutput) ElementType

func (KeyValueResponseArrayOutput) Index

func (KeyValueResponseArrayOutput) ToKeyValueResponseArrayOutput

func (o KeyValueResponseArrayOutput) ToKeyValueResponseArrayOutput() KeyValueResponseArrayOutput

func (KeyValueResponseArrayOutput) ToKeyValueResponseArrayOutputWithContext

func (o KeyValueResponseArrayOutput) ToKeyValueResponseArrayOutputWithContext(ctx context.Context) KeyValueResponseArrayOutput

type KeyValueResponseOutput

type KeyValueResponseOutput struct{ *pulumi.OutputState }

A product label represented as a key-value pair.

func (KeyValueResponseOutput) ElementType

func (KeyValueResponseOutput) ElementType() reflect.Type

func (KeyValueResponseOutput) Key

The key of the label attached to the product. Cannot be empty and cannot exceed 128 bytes.

func (KeyValueResponseOutput) ToKeyValueResponseOutput

func (o KeyValueResponseOutput) ToKeyValueResponseOutput() KeyValueResponseOutput

func (KeyValueResponseOutput) ToKeyValueResponseOutputWithContext

func (o KeyValueResponseOutput) ToKeyValueResponseOutputWithContext(ctx context.Context) KeyValueResponseOutput

func (KeyValueResponseOutput) Value

The value of the label attached to the product. Cannot be empty and cannot exceed 128 bytes.

type LookupProductArgs added in v0.4.0

type LookupProductArgs struct {
	Location  string  `pulumi:"location"`
	ProductId string  `pulumi:"productId"`
	Project   *string `pulumi:"project"`
}

type LookupProductOutputArgs added in v0.8.0

type LookupProductOutputArgs struct {
	Location  pulumi.StringInput    `pulumi:"location"`
	ProductId pulumi.StringInput    `pulumi:"productId"`
	Project   pulumi.StringPtrInput `pulumi:"project"`
}

func (LookupProductOutputArgs) ElementType added in v0.8.0

func (LookupProductOutputArgs) ElementType() reflect.Type

type LookupProductResult added in v0.4.0

type LookupProductResult struct {
	// User-provided metadata to be stored with this product. Must be at most 4096 characters long.
	Description string `pulumi:"description"`
	// The user-provided name for this Product. Must not be empty. Must be at most 4096 characters long.
	DisplayName string `pulumi:"displayName"`
	// The resource name of the product. Format is: `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`. This field is ignored when creating a product.
	Name string `pulumi:"name"`
	// Immutable. The category for the product identified by the reference image. This should be one of "homegoods-v2", "apparel-v2", "toys-v2", "packagedgoods-v1" or "general-v1". The legacy categories "homegoods", "apparel", and "toys" are still supported, but these should not be used for new products.
	ProductCategory string `pulumi:"productCategory"`
	// Key-value pairs that can be attached to a product. At query time, constraints can be specified based on the product_labels. Note that integer values can be provided as strings, e.g. "1199". Only strings with integer values can match a range-based restriction which is to be supported soon. Multiple values can be assigned to the same key. One product may have up to 500 product_labels. Notice that the total number of distinct product_labels over all products in one ProductSet cannot exceed 1M, otherwise the product search pipeline will refuse to work for that ProductSet.
	ProductLabels []KeyValueResponse `pulumi:"productLabels"`
}

func LookupProduct added in v0.4.0

func LookupProduct(ctx *pulumi.Context, args *LookupProductArgs, opts ...pulumi.InvokeOption) (*LookupProductResult, error)

Gets information associated with a Product. Possible errors: * Returns NOT_FOUND if the Product does not exist.

type LookupProductResultOutput added in v0.8.0

type LookupProductResultOutput struct{ *pulumi.OutputState }

func LookupProductOutput added in v0.8.0

func LookupProductOutput(ctx *pulumi.Context, args LookupProductOutputArgs, opts ...pulumi.InvokeOption) LookupProductResultOutput

func (LookupProductResultOutput) Description added in v0.8.0

User-provided metadata to be stored with this product. Must be at most 4096 characters long.

func (LookupProductResultOutput) DisplayName added in v0.8.0

The user-provided name for this Product. Must not be empty. Must be at most 4096 characters long.

func (LookupProductResultOutput) ElementType added in v0.8.0

func (LookupProductResultOutput) ElementType() reflect.Type

func (LookupProductResultOutput) Name added in v0.8.0

The resource name of the product. Format is: `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`. This field is ignored when creating a product.

func (LookupProductResultOutput) ProductCategory added in v0.8.0

func (o LookupProductResultOutput) ProductCategory() pulumi.StringOutput

Immutable. The category for the product identified by the reference image. This should be one of "homegoods-v2", "apparel-v2", "toys-v2", "packagedgoods-v1" or "general-v1". The legacy categories "homegoods", "apparel", and "toys" are still supported, but these should not be used for new products.

func (LookupProductResultOutput) ProductLabels added in v0.8.0

Key-value pairs that can be attached to a product. At query time, constraints can be specified based on the product_labels. Note that integer values can be provided as strings, e.g. "1199". Only strings with integer values can match a range-based restriction which is to be supported soon. Multiple values can be assigned to the same key. One product may have up to 500 product_labels. Notice that the total number of distinct product_labels over all products in one ProductSet cannot exceed 1M, otherwise the product search pipeline will refuse to work for that ProductSet.

func (LookupProductResultOutput) ToLookupProductResultOutput added in v0.8.0

func (o LookupProductResultOutput) ToLookupProductResultOutput() LookupProductResultOutput

func (LookupProductResultOutput) ToLookupProductResultOutputWithContext added in v0.8.0

func (o LookupProductResultOutput) ToLookupProductResultOutputWithContext(ctx context.Context) LookupProductResultOutput

type LookupProductSetArgs added in v0.4.0

type LookupProductSetArgs struct {
	Location     string  `pulumi:"location"`
	ProductSetId string  `pulumi:"productSetId"`
	Project      *string `pulumi:"project"`
}

type LookupProductSetOutputArgs added in v0.8.0

type LookupProductSetOutputArgs struct {
	Location     pulumi.StringInput    `pulumi:"location"`
	ProductSetId pulumi.StringInput    `pulumi:"productSetId"`
	Project      pulumi.StringPtrInput `pulumi:"project"`
}

func (LookupProductSetOutputArgs) ElementType added in v0.8.0

func (LookupProductSetOutputArgs) ElementType() reflect.Type

type LookupProductSetResult added in v0.4.0

type LookupProductSetResult struct {
	// The user-provided name for this ProductSet. Must not be empty. Must be at most 4096 characters long.
	DisplayName string `pulumi:"displayName"`
	// If there was an error with indexing the product set, the field is populated. This field is ignored when creating a ProductSet.
	IndexError StatusResponse `pulumi:"indexError"`
	// The time at which this ProductSet was last indexed. Query results will reflect all updates before this time. If this ProductSet has never been indexed, this timestamp is the default value "1970-01-01T00:00:00Z". This field is ignored when creating a ProductSet.
	IndexTime string `pulumi:"indexTime"`
	// The resource name of the ProductSet. Format is: `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`. This field is ignored when creating a ProductSet.
	Name string `pulumi:"name"`
}

func LookupProductSet added in v0.4.0

func LookupProductSet(ctx *pulumi.Context, args *LookupProductSetArgs, opts ...pulumi.InvokeOption) (*LookupProductSetResult, error)

Gets information associated with a ProductSet. Possible errors: * Returns NOT_FOUND if the ProductSet does not exist.

type LookupProductSetResultOutput added in v0.8.0

type LookupProductSetResultOutput struct{ *pulumi.OutputState }

func LookupProductSetOutput added in v0.8.0

func (LookupProductSetResultOutput) DisplayName added in v0.8.0

The user-provided name for this ProductSet. Must not be empty. Must be at most 4096 characters long.

func (LookupProductSetResultOutput) ElementType added in v0.8.0

func (LookupProductSetResultOutput) IndexError added in v0.8.0

If there was an error with indexing the product set, the field is populated. This field is ignored when creating a ProductSet.

func (LookupProductSetResultOutput) IndexTime added in v0.8.0

The time at which this ProductSet was last indexed. Query results will reflect all updates before this time. If this ProductSet has never been indexed, this timestamp is the default value "1970-01-01T00:00:00Z". This field is ignored when creating a ProductSet.

func (LookupProductSetResultOutput) Name added in v0.8.0

The resource name of the ProductSet. Format is: `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`. This field is ignored when creating a ProductSet.

func (LookupProductSetResultOutput) ToLookupProductSetResultOutput added in v0.8.0

func (o LookupProductSetResultOutput) ToLookupProductSetResultOutput() LookupProductSetResultOutput

func (LookupProductSetResultOutput) ToLookupProductSetResultOutputWithContext added in v0.8.0

func (o LookupProductSetResultOutput) ToLookupProductSetResultOutputWithContext(ctx context.Context) LookupProductSetResultOutput

type LookupReferenceImageArgs added in v0.4.0

type LookupReferenceImageArgs struct {
	Location         string  `pulumi:"location"`
	ProductId        string  `pulumi:"productId"`
	Project          *string `pulumi:"project"`
	ReferenceImageId string  `pulumi:"referenceImageId"`
}

type LookupReferenceImageOutputArgs added in v0.8.0

type LookupReferenceImageOutputArgs struct {
	Location         pulumi.StringInput    `pulumi:"location"`
	ProductId        pulumi.StringInput    `pulumi:"productId"`
	Project          pulumi.StringPtrInput `pulumi:"project"`
	ReferenceImageId pulumi.StringInput    `pulumi:"referenceImageId"`
}

func (LookupReferenceImageOutputArgs) ElementType added in v0.8.0

type LookupReferenceImageResult added in v0.4.0

type LookupReferenceImageResult struct {
	// Optional. Bounding polygons around the areas of interest in the reference image. If this field is empty, the system will try to detect regions of interest. At most 10 bounding polygons will be used. The provided shape is converted into a non-rotated rectangle. Once converted, the small edge of the rectangle must be greater than or equal to 300 pixels. The aspect ratio must be 1:4 or less (i.e. 1:3 is ok; 1:5 is not).
	BoundingPolys []BoundingPolyResponse `pulumi:"boundingPolys"`
	// The resource name of the reference image. Format is: `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`. This field is ignored when creating a reference image.
	Name string `pulumi:"name"`
	// The Google Cloud Storage URI of the reference image. The URI must start with `gs://`.
	Uri string `pulumi:"uri"`
}

func LookupReferenceImage added in v0.4.0

func LookupReferenceImage(ctx *pulumi.Context, args *LookupReferenceImageArgs, opts ...pulumi.InvokeOption) (*LookupReferenceImageResult, error)

Gets information associated with a ReferenceImage. Possible errors: * Returns NOT_FOUND if the specified image does not exist.

type LookupReferenceImageResultOutput added in v0.8.0

type LookupReferenceImageResultOutput struct{ *pulumi.OutputState }

func LookupReferenceImageOutput added in v0.8.0

func (LookupReferenceImageResultOutput) BoundingPolys added in v0.8.0

Optional. Bounding polygons around the areas of interest in the reference image. If this field is empty, the system will try to detect regions of interest. At most 10 bounding polygons will be used. The provided shape is converted into a non-rotated rectangle. Once converted, the small edge of the rectangle must be greater than or equal to 300 pixels. The aspect ratio must be 1:4 or less (i.e. 1:3 is ok; 1:5 is not).

func (LookupReferenceImageResultOutput) ElementType added in v0.8.0

func (LookupReferenceImageResultOutput) Name added in v0.8.0

The resource name of the reference image. Format is: `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`. This field is ignored when creating a reference image.

func (LookupReferenceImageResultOutput) ToLookupReferenceImageResultOutput added in v0.8.0

func (o LookupReferenceImageResultOutput) ToLookupReferenceImageResultOutput() LookupReferenceImageResultOutput

func (LookupReferenceImageResultOutput) ToLookupReferenceImageResultOutputWithContext added in v0.8.0

func (o LookupReferenceImageResultOutput) ToLookupReferenceImageResultOutputWithContext(ctx context.Context) LookupReferenceImageResultOutput

func (LookupReferenceImageResultOutput) Uri added in v0.8.0

The Google Cloud Storage URI of the reference image. The URI must start with `gs://`.

type NormalizedVertex

type NormalizedVertex struct {
	// X coordinate.
	X *float64 `pulumi:"x"`
	// Y coordinate.
	Y *float64 `pulumi:"y"`
}

A vertex represents a 2D point in the image. NOTE: the normalized vertex coordinates are relative to the original image and range from 0 to 1.

type NormalizedVertexArgs

type NormalizedVertexArgs struct {
	// X coordinate.
	X pulumi.Float64PtrInput `pulumi:"x"`
	// Y coordinate.
	Y pulumi.Float64PtrInput `pulumi:"y"`
}

A vertex represents a 2D point in the image. NOTE: the normalized vertex coordinates are relative to the original image and range from 0 to 1.

func (NormalizedVertexArgs) ElementType

func (NormalizedVertexArgs) ElementType() reflect.Type

func (NormalizedVertexArgs) ToNormalizedVertexOutput

func (i NormalizedVertexArgs) ToNormalizedVertexOutput() NormalizedVertexOutput

func (NormalizedVertexArgs) ToNormalizedVertexOutputWithContext

func (i NormalizedVertexArgs) ToNormalizedVertexOutputWithContext(ctx context.Context) NormalizedVertexOutput

type NormalizedVertexArray

type NormalizedVertexArray []NormalizedVertexInput

func (NormalizedVertexArray) ElementType

func (NormalizedVertexArray) ElementType() reflect.Type

func (NormalizedVertexArray) ToNormalizedVertexArrayOutput

func (i NormalizedVertexArray) ToNormalizedVertexArrayOutput() NormalizedVertexArrayOutput

func (NormalizedVertexArray) ToNormalizedVertexArrayOutputWithContext

func (i NormalizedVertexArray) ToNormalizedVertexArrayOutputWithContext(ctx context.Context) NormalizedVertexArrayOutput

type NormalizedVertexArrayInput

type NormalizedVertexArrayInput interface {
	pulumi.Input

	ToNormalizedVertexArrayOutput() NormalizedVertexArrayOutput
	ToNormalizedVertexArrayOutputWithContext(context.Context) NormalizedVertexArrayOutput
}

NormalizedVertexArrayInput is an input type that accepts NormalizedVertexArray and NormalizedVertexArrayOutput values. You can construct a concrete instance of `NormalizedVertexArrayInput` via:

NormalizedVertexArray{ NormalizedVertexArgs{...} }

type NormalizedVertexArrayOutput

type NormalizedVertexArrayOutput struct{ *pulumi.OutputState }

func (NormalizedVertexArrayOutput) ElementType

func (NormalizedVertexArrayOutput) Index

func (NormalizedVertexArrayOutput) ToNormalizedVertexArrayOutput

func (o NormalizedVertexArrayOutput) ToNormalizedVertexArrayOutput() NormalizedVertexArrayOutput

func (NormalizedVertexArrayOutput) ToNormalizedVertexArrayOutputWithContext

func (o NormalizedVertexArrayOutput) ToNormalizedVertexArrayOutputWithContext(ctx context.Context) NormalizedVertexArrayOutput

type NormalizedVertexInput

type NormalizedVertexInput interface {
	pulumi.Input

	ToNormalizedVertexOutput() NormalizedVertexOutput
	ToNormalizedVertexOutputWithContext(context.Context) NormalizedVertexOutput
}

NormalizedVertexInput is an input type that accepts NormalizedVertexArgs and NormalizedVertexOutput values. You can construct a concrete instance of `NormalizedVertexInput` via:

NormalizedVertexArgs{...}

type NormalizedVertexOutput

type NormalizedVertexOutput struct{ *pulumi.OutputState }

A vertex represents a 2D point in the image. NOTE: the normalized vertex coordinates are relative to the original image and range from 0 to 1.

func (NormalizedVertexOutput) ElementType

func (NormalizedVertexOutput) ElementType() reflect.Type

func (NormalizedVertexOutput) ToNormalizedVertexOutput

func (o NormalizedVertexOutput) ToNormalizedVertexOutput() NormalizedVertexOutput

func (NormalizedVertexOutput) ToNormalizedVertexOutputWithContext

func (o NormalizedVertexOutput) ToNormalizedVertexOutputWithContext(ctx context.Context) NormalizedVertexOutput

func (NormalizedVertexOutput) X

X coordinate.

func (NormalizedVertexOutput) Y

Y coordinate.

type NormalizedVertexResponse

type NormalizedVertexResponse struct {
	// X coordinate.
	X float64 `pulumi:"x"`
	// Y coordinate.
	Y float64 `pulumi:"y"`
}

A vertex represents a 2D point in the image. NOTE: the normalized vertex coordinates are relative to the original image and range from 0 to 1.

type NormalizedVertexResponseArrayOutput

type NormalizedVertexResponseArrayOutput struct{ *pulumi.OutputState }

func (NormalizedVertexResponseArrayOutput) ElementType

func (NormalizedVertexResponseArrayOutput) Index

func (NormalizedVertexResponseArrayOutput) ToNormalizedVertexResponseArrayOutput

func (o NormalizedVertexResponseArrayOutput) ToNormalizedVertexResponseArrayOutput() NormalizedVertexResponseArrayOutput

func (NormalizedVertexResponseArrayOutput) ToNormalizedVertexResponseArrayOutputWithContext

func (o NormalizedVertexResponseArrayOutput) ToNormalizedVertexResponseArrayOutputWithContext(ctx context.Context) NormalizedVertexResponseArrayOutput

type NormalizedVertexResponseOutput

type NormalizedVertexResponseOutput struct{ *pulumi.OutputState }

A vertex represents a 2D point in the image. NOTE: the normalized vertex coordinates are relative to the original image and range from 0 to 1.

func (NormalizedVertexResponseOutput) ElementType

func (NormalizedVertexResponseOutput) ToNormalizedVertexResponseOutput

func (o NormalizedVertexResponseOutput) ToNormalizedVertexResponseOutput() NormalizedVertexResponseOutput

func (NormalizedVertexResponseOutput) ToNormalizedVertexResponseOutputWithContext

func (o NormalizedVertexResponseOutput) ToNormalizedVertexResponseOutputWithContext(ctx context.Context) NormalizedVertexResponseOutput

func (NormalizedVertexResponseOutput) X

X coordinate.

func (NormalizedVertexResponseOutput) Y

Y coordinate.

type Product

type Product struct {
	pulumi.CustomResourceState

	// User-provided metadata to be stored with this product. Must be at most 4096 characters long.
	Description pulumi.StringOutput `pulumi:"description"`
	// The user-provided name for this Product. Must not be empty. Must be at most 4096 characters long.
	DisplayName pulumi.StringOutput `pulumi:"displayName"`
	Location    pulumi.StringOutput `pulumi:"location"`
	// The resource name of the product. Format is: `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`. This field is ignored when creating a product.
	Name pulumi.StringOutput `pulumi:"name"`
	// Immutable. The category for the product identified by the reference image. This should be one of "homegoods-v2", "apparel-v2", "toys-v2", "packagedgoods-v1" or "general-v1". The legacy categories "homegoods", "apparel", and "toys" are still supported, but these should not be used for new products.
	ProductCategory pulumi.StringOutput `pulumi:"productCategory"`
	// A user-supplied resource id for this Product. If set, the server will attempt to use this value as the resource id. If it is already in use, an error is returned with code ALREADY_EXISTS. Must be at most 128 characters long. It cannot contain the character `/`.
	ProductId pulumi.StringPtrOutput `pulumi:"productId"`
	// Key-value pairs that can be attached to a product. At query time, constraints can be specified based on the product_labels. Note that integer values can be provided as strings, e.g. "1199". Only strings with integer values can match a range-based restriction which is to be supported soon. Multiple values can be assigned to the same key. One product may have up to 500 product_labels. Notice that the total number of distinct product_labels over all products in one ProductSet cannot exceed 1M, otherwise the product search pipeline will refuse to work for that ProductSet.
	ProductLabels KeyValueResponseArrayOutput `pulumi:"productLabels"`
	Project       pulumi.StringOutput         `pulumi:"project"`
}

Creates and returns a new product resource. Possible errors: * Returns INVALID_ARGUMENT if display_name is missing or longer than 4096 characters. * Returns INVALID_ARGUMENT if description is longer than 4096 characters. * Returns INVALID_ARGUMENT if product_category is missing or invalid.

func GetProduct

func GetProduct(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ProductState, opts ...pulumi.ResourceOption) (*Product, error)

GetProduct gets an existing Product resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewProduct

func NewProduct(ctx *pulumi.Context,
	name string, args *ProductArgs, opts ...pulumi.ResourceOption) (*Product, error)

NewProduct registers a new resource with the given unique name, arguments, and options.

func (*Product) ElementType

func (*Product) ElementType() reflect.Type

func (*Product) ToProductOutput

func (i *Product) ToProductOutput() ProductOutput

func (*Product) ToProductOutputWithContext

func (i *Product) ToProductOutputWithContext(ctx context.Context) ProductOutput

type ProductArgs

type ProductArgs struct {
	// User-provided metadata to be stored with this product. Must be at most 4096 characters long.
	Description pulumi.StringPtrInput
	// The user-provided name for this Product. Must not be empty. Must be at most 4096 characters long.
	DisplayName pulumi.StringPtrInput
	Location    pulumi.StringPtrInput
	// The resource name of the product. Format is: `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`. This field is ignored when creating a product.
	Name pulumi.StringPtrInput
	// Immutable. The category for the product identified by the reference image. This should be one of "homegoods-v2", "apparel-v2", "toys-v2", "packagedgoods-v1" or "general-v1". The legacy categories "homegoods", "apparel", and "toys" are still supported, but these should not be used for new products.
	ProductCategory pulumi.StringPtrInput
	// A user-supplied resource id for this Product. If set, the server will attempt to use this value as the resource id. If it is already in use, an error is returned with code ALREADY_EXISTS. Must be at most 128 characters long. It cannot contain the character `/`.
	ProductId pulumi.StringPtrInput
	// Key-value pairs that can be attached to a product. At query time, constraints can be specified based on the product_labels. Note that integer values can be provided as strings, e.g. "1199". Only strings with integer values can match a range-based restriction which is to be supported soon. Multiple values can be assigned to the same key. One product may have up to 500 product_labels. Notice that the total number of distinct product_labels over all products in one ProductSet cannot exceed 1M, otherwise the product search pipeline will refuse to work for that ProductSet.
	ProductLabels KeyValueArrayInput
	Project       pulumi.StringPtrInput
}

The set of arguments for constructing a Product resource.

func (ProductArgs) ElementType

func (ProductArgs) ElementType() reflect.Type

type ProductInput

type ProductInput interface {
	pulumi.Input

	ToProductOutput() ProductOutput
	ToProductOutputWithContext(ctx context.Context) ProductOutput
}

type ProductOutput

type ProductOutput struct{ *pulumi.OutputState }

func (ProductOutput) Description added in v0.19.0

func (o ProductOutput) Description() pulumi.StringOutput

User-provided metadata to be stored with this product. Must be at most 4096 characters long.

func (ProductOutput) DisplayName added in v0.19.0

func (o ProductOutput) DisplayName() pulumi.StringOutput

The user-provided name for this Product. Must not be empty. Must be at most 4096 characters long.

func (ProductOutput) ElementType

func (ProductOutput) ElementType() reflect.Type

func (ProductOutput) Location added in v0.21.0

func (o ProductOutput) Location() pulumi.StringOutput

func (ProductOutput) Name added in v0.19.0

The resource name of the product. Format is: `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`. This field is ignored when creating a product.

func (ProductOutput) ProductCategory added in v0.19.0

func (o ProductOutput) ProductCategory() pulumi.StringOutput

Immutable. The category for the product identified by the reference image. This should be one of "homegoods-v2", "apparel-v2", "toys-v2", "packagedgoods-v1" or "general-v1". The legacy categories "homegoods", "apparel", and "toys" are still supported, but these should not be used for new products.

func (ProductOutput) ProductId added in v0.21.0

func (o ProductOutput) ProductId() pulumi.StringPtrOutput

A user-supplied resource id for this Product. If set, the server will attempt to use this value as the resource id. If it is already in use, an error is returned with code ALREADY_EXISTS. Must be at most 128 characters long. It cannot contain the character `/`.

func (ProductOutput) ProductLabels added in v0.19.0

func (o ProductOutput) ProductLabels() KeyValueResponseArrayOutput

Key-value pairs that can be attached to a product. At query time, constraints can be specified based on the product_labels. Note that integer values can be provided as strings, e.g. "1199". Only strings with integer values can match a range-based restriction which is to be supported soon. Multiple values can be assigned to the same key. One product may have up to 500 product_labels. Notice that the total number of distinct product_labels over all products in one ProductSet cannot exceed 1M, otherwise the product search pipeline will refuse to work for that ProductSet.

func (ProductOutput) Project added in v0.21.0

func (o ProductOutput) Project() pulumi.StringOutput

func (ProductOutput) ToProductOutput

func (o ProductOutput) ToProductOutput() ProductOutput

func (ProductOutput) ToProductOutputWithContext

func (o ProductOutput) ToProductOutputWithContext(ctx context.Context) ProductOutput

type ProductSet

type ProductSet struct {
	pulumi.CustomResourceState

	// The user-provided name for this ProductSet. Must not be empty. Must be at most 4096 characters long.
	DisplayName pulumi.StringOutput `pulumi:"displayName"`
	// If there was an error with indexing the product set, the field is populated. This field is ignored when creating a ProductSet.
	IndexError StatusResponseOutput `pulumi:"indexError"`
	// The time at which this ProductSet was last indexed. Query results will reflect all updates before this time. If this ProductSet has never been indexed, this timestamp is the default value "1970-01-01T00:00:00Z". This field is ignored when creating a ProductSet.
	IndexTime pulumi.StringOutput `pulumi:"indexTime"`
	Location  pulumi.StringOutput `pulumi:"location"`
	// The resource name of the ProductSet. Format is: `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`. This field is ignored when creating a ProductSet.
	Name pulumi.StringOutput `pulumi:"name"`
	// A user-supplied resource id for this ProductSet. If set, the server will attempt to use this value as the resource id. If it is already in use, an error is returned with code ALREADY_EXISTS. Must be at most 128 characters long. It cannot contain the character `/`.
	ProductSetId pulumi.StringPtrOutput `pulumi:"productSetId"`
	Project      pulumi.StringOutput    `pulumi:"project"`
}

Creates and returns a new ProductSet resource. Possible errors: * Returns INVALID_ARGUMENT if display_name is missing, or is longer than 4096 characters.

func GetProductSet

func GetProductSet(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ProductSetState, opts ...pulumi.ResourceOption) (*ProductSet, error)

GetProductSet gets an existing ProductSet resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewProductSet

func NewProductSet(ctx *pulumi.Context,
	name string, args *ProductSetArgs, opts ...pulumi.ResourceOption) (*ProductSet, error)

NewProductSet registers a new resource with the given unique name, arguments, and options.

func (*ProductSet) ElementType

func (*ProductSet) ElementType() reflect.Type

func (*ProductSet) ToProductSetOutput

func (i *ProductSet) ToProductSetOutput() ProductSetOutput

func (*ProductSet) ToProductSetOutputWithContext

func (i *ProductSet) ToProductSetOutputWithContext(ctx context.Context) ProductSetOutput

type ProductSetArgs

type ProductSetArgs struct {
	// The user-provided name for this ProductSet. Must not be empty. Must be at most 4096 characters long.
	DisplayName pulumi.StringPtrInput
	Location    pulumi.StringPtrInput
	// The resource name of the ProductSet. Format is: `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`. This field is ignored when creating a ProductSet.
	Name pulumi.StringPtrInput
	// A user-supplied resource id for this ProductSet. If set, the server will attempt to use this value as the resource id. If it is already in use, an error is returned with code ALREADY_EXISTS. Must be at most 128 characters long. It cannot contain the character `/`.
	ProductSetId pulumi.StringPtrInput
	Project      pulumi.StringPtrInput
}

The set of arguments for constructing a ProductSet resource.

func (ProductSetArgs) ElementType

func (ProductSetArgs) ElementType() reflect.Type

type ProductSetInput

type ProductSetInput interface {
	pulumi.Input

	ToProductSetOutput() ProductSetOutput
	ToProductSetOutputWithContext(ctx context.Context) ProductSetOutput
}

type ProductSetOutput

type ProductSetOutput struct{ *pulumi.OutputState }

func (ProductSetOutput) DisplayName added in v0.19.0

func (o ProductSetOutput) DisplayName() pulumi.StringOutput

The user-provided name for this ProductSet. Must not be empty. Must be at most 4096 characters long.

func (ProductSetOutput) ElementType

func (ProductSetOutput) ElementType() reflect.Type

func (ProductSetOutput) IndexError added in v0.19.0

func (o ProductSetOutput) IndexError() StatusResponseOutput

If there was an error with indexing the product set, the field is populated. This field is ignored when creating a ProductSet.

func (ProductSetOutput) IndexTime added in v0.19.0

func (o ProductSetOutput) IndexTime() pulumi.StringOutput

The time at which this ProductSet was last indexed. Query results will reflect all updates before this time. If this ProductSet has never been indexed, this timestamp is the default value "1970-01-01T00:00:00Z". This field is ignored when creating a ProductSet.

func (ProductSetOutput) Location added in v0.21.0

func (o ProductSetOutput) Location() pulumi.StringOutput

func (ProductSetOutput) Name added in v0.19.0

The resource name of the ProductSet. Format is: `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`. This field is ignored when creating a ProductSet.

func (ProductSetOutput) ProductSetId added in v0.21.0

func (o ProductSetOutput) ProductSetId() pulumi.StringPtrOutput

A user-supplied resource id for this ProductSet. If set, the server will attempt to use this value as the resource id. If it is already in use, an error is returned with code ALREADY_EXISTS. Must be at most 128 characters long. It cannot contain the character `/`.

func (ProductSetOutput) Project added in v0.21.0

func (o ProductSetOutput) Project() pulumi.StringOutput

func (ProductSetOutput) ToProductSetOutput

func (o ProductSetOutput) ToProductSetOutput() ProductSetOutput

func (ProductSetOutput) ToProductSetOutputWithContext

func (o ProductSetOutput) ToProductSetOutputWithContext(ctx context.Context) ProductSetOutput

type ProductSetState

type ProductSetState struct {
}

func (ProductSetState) ElementType

func (ProductSetState) ElementType() reflect.Type

type ProductState

type ProductState struct {
}

func (ProductState) ElementType

func (ProductState) ElementType() reflect.Type

type ReferenceImage added in v0.3.0

type ReferenceImage struct {
	pulumi.CustomResourceState

	// Optional. Bounding polygons around the areas of interest in the reference image. If this field is empty, the system will try to detect regions of interest. At most 10 bounding polygons will be used. The provided shape is converted into a non-rotated rectangle. Once converted, the small edge of the rectangle must be greater than or equal to 300 pixels. The aspect ratio must be 1:4 or less (i.e. 1:3 is ok; 1:5 is not).
	BoundingPolys BoundingPolyResponseArrayOutput `pulumi:"boundingPolys"`
	Location      pulumi.StringOutput             `pulumi:"location"`
	// The resource name of the reference image. Format is: `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`. This field is ignored when creating a reference image.
	Name      pulumi.StringOutput `pulumi:"name"`
	ProductId pulumi.StringOutput `pulumi:"productId"`
	Project   pulumi.StringOutput `pulumi:"project"`
	// A user-supplied resource id for the ReferenceImage to be added. If set, the server will attempt to use this value as the resource id. If it is already in use, an error is returned with code ALREADY_EXISTS. Must be at most 128 characters long. It cannot contain the character `/`.
	ReferenceImageId pulumi.StringPtrOutput `pulumi:"referenceImageId"`
	// The Google Cloud Storage URI of the reference image. The URI must start with `gs://`.
	Uri pulumi.StringOutput `pulumi:"uri"`
}

Creates and returns a new ReferenceImage resource. The `bounding_poly` field is optional. If `bounding_poly` is not specified, the system will try to detect regions of interest in the image that are compatible with the product_category on the parent product. If it is specified, detection is ALWAYS skipped. The system converts polygons into non-rotated rectangles. Note that the pipeline will resize the image if the image resolution is too large to process (above 50MP). Possible errors: * Returns INVALID_ARGUMENT if the image_uri is missing or longer than 4096 characters. * Returns INVALID_ARGUMENT if the product does not exist. * Returns INVALID_ARGUMENT if bounding_poly is not provided, and nothing compatible with the parent product's product_category is detected. * Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons.

func GetReferenceImage added in v0.3.0

func GetReferenceImage(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ReferenceImageState, opts ...pulumi.ResourceOption) (*ReferenceImage, error)

GetReferenceImage gets an existing ReferenceImage resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewReferenceImage added in v0.3.0

func NewReferenceImage(ctx *pulumi.Context,
	name string, args *ReferenceImageArgs, opts ...pulumi.ResourceOption) (*ReferenceImage, error)

NewReferenceImage registers a new resource with the given unique name, arguments, and options.

func (*ReferenceImage) ElementType added in v0.3.0

func (*ReferenceImage) ElementType() reflect.Type

func (*ReferenceImage) ToReferenceImageOutput added in v0.3.0

func (i *ReferenceImage) ToReferenceImageOutput() ReferenceImageOutput

func (*ReferenceImage) ToReferenceImageOutputWithContext added in v0.3.0

func (i *ReferenceImage) ToReferenceImageOutputWithContext(ctx context.Context) ReferenceImageOutput

type ReferenceImageArgs added in v0.3.0

type ReferenceImageArgs struct {
	// Optional. Bounding polygons around the areas of interest in the reference image. If this field is empty, the system will try to detect regions of interest. At most 10 bounding polygons will be used. The provided shape is converted into a non-rotated rectangle. Once converted, the small edge of the rectangle must be greater than or equal to 300 pixels. The aspect ratio must be 1:4 or less (i.e. 1:3 is ok; 1:5 is not).
	BoundingPolys BoundingPolyArrayInput
	Location      pulumi.StringPtrInput
	// The resource name of the reference image. Format is: `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`. This field is ignored when creating a reference image.
	Name      pulumi.StringPtrInput
	ProductId pulumi.StringInput
	Project   pulumi.StringPtrInput
	// A user-supplied resource id for the ReferenceImage to be added. If set, the server will attempt to use this value as the resource id. If it is already in use, an error is returned with code ALREADY_EXISTS. Must be at most 128 characters long. It cannot contain the character `/`.
	ReferenceImageId pulumi.StringPtrInput
	// The Google Cloud Storage URI of the reference image. The URI must start with `gs://`.
	Uri pulumi.StringInput
}

The set of arguments for constructing a ReferenceImage resource.

func (ReferenceImageArgs) ElementType added in v0.3.0

func (ReferenceImageArgs) ElementType() reflect.Type

type ReferenceImageInput added in v0.3.0

type ReferenceImageInput interface {
	pulumi.Input

	ToReferenceImageOutput() ReferenceImageOutput
	ToReferenceImageOutputWithContext(ctx context.Context) ReferenceImageOutput
}

type ReferenceImageOutput added in v0.3.0

type ReferenceImageOutput struct{ *pulumi.OutputState }

func (ReferenceImageOutput) BoundingPolys added in v0.19.0

Optional. Bounding polygons around the areas of interest in the reference image. If this field is empty, the system will try to detect regions of interest. At most 10 bounding polygons will be used. The provided shape is converted into a non-rotated rectangle. Once converted, the small edge of the rectangle must be greater than or equal to 300 pixels. The aspect ratio must be 1:4 or less (i.e. 1:3 is ok; 1:5 is not).

func (ReferenceImageOutput) ElementType added in v0.3.0

func (ReferenceImageOutput) ElementType() reflect.Type

func (ReferenceImageOutput) Location added in v0.21.0

func (ReferenceImageOutput) Name added in v0.19.0

The resource name of the reference image. Format is: `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`. This field is ignored when creating a reference image.

func (ReferenceImageOutput) ProductId added in v0.21.0

func (ReferenceImageOutput) Project added in v0.21.0

func (ReferenceImageOutput) ReferenceImageId added in v0.21.0

func (o ReferenceImageOutput) ReferenceImageId() pulumi.StringPtrOutput

A user-supplied resource id for the ReferenceImage to be added. If set, the server will attempt to use this value as the resource id. If it is already in use, an error is returned with code ALREADY_EXISTS. Must be at most 128 characters long. It cannot contain the character `/`.

func (ReferenceImageOutput) ToReferenceImageOutput added in v0.3.0

func (o ReferenceImageOutput) ToReferenceImageOutput() ReferenceImageOutput

func (ReferenceImageOutput) ToReferenceImageOutputWithContext added in v0.3.0

func (o ReferenceImageOutput) ToReferenceImageOutputWithContext(ctx context.Context) ReferenceImageOutput

func (ReferenceImageOutput) Uri added in v0.19.0

The Google Cloud Storage URI of the reference image. The URI must start with `gs://`.

type ReferenceImageState added in v0.3.0

type ReferenceImageState struct {
}

func (ReferenceImageState) ElementType added in v0.3.0

func (ReferenceImageState) ElementType() reflect.Type

type StatusResponse

type StatusResponse struct {
	// The status code, which should be an enum value of google.rpc.Code.
	Code int `pulumi:"code"`
	// A list of messages that carry the error details. There is a common set of message types for APIs to use.
	Details []map[string]string `pulumi:"details"`
	// A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
	Message string `pulumi:"message"`
}

The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).

type StatusResponseOutput

type StatusResponseOutput struct{ *pulumi.OutputState }

The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).

func (StatusResponseOutput) Code

The status code, which should be an enum value of google.rpc.Code.

func (StatusResponseOutput) Details

A list of messages that carry the error details. There is a common set of message types for APIs to use.

func (StatusResponseOutput) ElementType

func (StatusResponseOutput) ElementType() reflect.Type

func (StatusResponseOutput) Message

A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.

func (StatusResponseOutput) ToStatusResponseOutput

func (o StatusResponseOutput) ToStatusResponseOutput() StatusResponseOutput

func (StatusResponseOutput) ToStatusResponseOutputWithContext

func (o StatusResponseOutput) ToStatusResponseOutputWithContext(ctx context.Context) StatusResponseOutput

type Vertex

type Vertex struct {
	// X coordinate.
	X *int `pulumi:"x"`
	// Y coordinate.
	Y *int `pulumi:"y"`
}

A vertex represents a 2D point in the image. NOTE: the vertex coordinates are in the same scale as the original image.

type VertexArgs

type VertexArgs struct {
	// X coordinate.
	X pulumi.IntPtrInput `pulumi:"x"`
	// Y coordinate.
	Y pulumi.IntPtrInput `pulumi:"y"`
}

A vertex represents a 2D point in the image. NOTE: the vertex coordinates are in the same scale as the original image.

func (VertexArgs) ElementType

func (VertexArgs) ElementType() reflect.Type

func (VertexArgs) ToVertexOutput

func (i VertexArgs) ToVertexOutput() VertexOutput

func (VertexArgs) ToVertexOutputWithContext

func (i VertexArgs) ToVertexOutputWithContext(ctx context.Context) VertexOutput

type VertexArray

type VertexArray []VertexInput

func (VertexArray) ElementType

func (VertexArray) ElementType() reflect.Type

func (VertexArray) ToVertexArrayOutput

func (i VertexArray) ToVertexArrayOutput() VertexArrayOutput

func (VertexArray) ToVertexArrayOutputWithContext

func (i VertexArray) ToVertexArrayOutputWithContext(ctx context.Context) VertexArrayOutput

type VertexArrayInput

type VertexArrayInput interface {
	pulumi.Input

	ToVertexArrayOutput() VertexArrayOutput
	ToVertexArrayOutputWithContext(context.Context) VertexArrayOutput
}

VertexArrayInput is an input type that accepts VertexArray and VertexArrayOutput values. You can construct a concrete instance of `VertexArrayInput` via:

VertexArray{ VertexArgs{...} }

type VertexArrayOutput

type VertexArrayOutput struct{ *pulumi.OutputState }

func (VertexArrayOutput) ElementType

func (VertexArrayOutput) ElementType() reflect.Type

func (VertexArrayOutput) Index

func (VertexArrayOutput) ToVertexArrayOutput

func (o VertexArrayOutput) ToVertexArrayOutput() VertexArrayOutput

func (VertexArrayOutput) ToVertexArrayOutputWithContext

func (o VertexArrayOutput) ToVertexArrayOutputWithContext(ctx context.Context) VertexArrayOutput

type VertexInput

type VertexInput interface {
	pulumi.Input

	ToVertexOutput() VertexOutput
	ToVertexOutputWithContext(context.Context) VertexOutput
}

VertexInput is an input type that accepts VertexArgs and VertexOutput values. You can construct a concrete instance of `VertexInput` via:

VertexArgs{...}

type VertexOutput

type VertexOutput struct{ *pulumi.OutputState }

A vertex represents a 2D point in the image. NOTE: the vertex coordinates are in the same scale as the original image.

func (VertexOutput) ElementType

func (VertexOutput) ElementType() reflect.Type

func (VertexOutput) ToVertexOutput

func (o VertexOutput) ToVertexOutput() VertexOutput

func (VertexOutput) ToVertexOutputWithContext

func (o VertexOutput) ToVertexOutputWithContext(ctx context.Context) VertexOutput

func (VertexOutput) X

X coordinate.

func (VertexOutput) Y

Y coordinate.

type VertexResponse

type VertexResponse struct {
	// X coordinate.
	X int `pulumi:"x"`
	// Y coordinate.
	Y int `pulumi:"y"`
}

A vertex represents a 2D point in the image. NOTE: the vertex coordinates are in the same scale as the original image.

type VertexResponseArrayOutput

type VertexResponseArrayOutput struct{ *pulumi.OutputState }

func (VertexResponseArrayOutput) ElementType

func (VertexResponseArrayOutput) ElementType() reflect.Type

func (VertexResponseArrayOutput) Index

func (VertexResponseArrayOutput) ToVertexResponseArrayOutput

func (o VertexResponseArrayOutput) ToVertexResponseArrayOutput() VertexResponseArrayOutput

func (VertexResponseArrayOutput) ToVertexResponseArrayOutputWithContext

func (o VertexResponseArrayOutput) ToVertexResponseArrayOutputWithContext(ctx context.Context) VertexResponseArrayOutput

type VertexResponseOutput

type VertexResponseOutput struct{ *pulumi.OutputState }

A vertex represents a 2D point in the image. NOTE: the vertex coordinates are in the same scale as the original image.

func (VertexResponseOutput) ElementType

func (VertexResponseOutput) ElementType() reflect.Type

func (VertexResponseOutput) ToVertexResponseOutput

func (o VertexResponseOutput) ToVertexResponseOutput() VertexResponseOutput

func (VertexResponseOutput) ToVertexResponseOutputWithContext

func (o VertexResponseOutput) ToVertexResponseOutputWithContext(ctx context.Context) VertexResponseOutput

func (VertexResponseOutput) X

X coordinate.

func (VertexResponseOutput) Y

Y coordinate.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL