Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.vision/v1.getReferenceImage
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Gets information associated with a ReferenceImage. Possible errors: * Returns NOT_FOUND if the specified image does not exist.
Using getReferenceImage
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 getReferenceImage(args: GetReferenceImageArgs, opts?: InvokeOptions): Promise<GetReferenceImageResult>
function getReferenceImageOutput(args: GetReferenceImageOutputArgs, opts?: InvokeOptions): Output<GetReferenceImageResult>def get_reference_image(location: Optional[str] = None,
                        product_id: Optional[str] = None,
                        project: Optional[str] = None,
                        reference_image_id: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetReferenceImageResult
def get_reference_image_output(location: Optional[pulumi.Input[str]] = None,
                        product_id: Optional[pulumi.Input[str]] = None,
                        project: Optional[pulumi.Input[str]] = None,
                        reference_image_id: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetReferenceImageResult]func LookupReferenceImage(ctx *Context, args *LookupReferenceImageArgs, opts ...InvokeOption) (*LookupReferenceImageResult, error)
func LookupReferenceImageOutput(ctx *Context, args *LookupReferenceImageOutputArgs, opts ...InvokeOption) LookupReferenceImageResultOutput> Note: This function is named LookupReferenceImage in the Go SDK.
public static class GetReferenceImage 
{
    public static Task<GetReferenceImageResult> InvokeAsync(GetReferenceImageArgs args, InvokeOptions? opts = null)
    public static Output<GetReferenceImageResult> Invoke(GetReferenceImageInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetReferenceImageResult> getReferenceImage(GetReferenceImageArgs args, InvokeOptions options)
public static Output<GetReferenceImageResult> getReferenceImage(GetReferenceImageArgs args, InvokeOptions options)
fn::invoke:
  function: google-native:vision/v1:getReferenceImage
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Location string
- ProductId string
- ReferenceImage stringId 
- Project string
- Location string
- ProductId string
- ReferenceImage stringId 
- Project string
- location String
- productId String
- referenceImage StringId 
- project String
- location string
- productId string
- referenceImage stringId 
- project string
- location str
- product_id str
- reference_image_ strid 
- project str
- location String
- productId String
- referenceImage StringId 
- project String
getReferenceImage Result
The following output properties are available:
- BoundingPolys List<Pulumi.Google Native. Vision. V1. Outputs. Bounding Poly Response> 
- 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).
- Name string
- 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.
- Uri string
- The Google Cloud Storage URI of the reference image. The URI must start with gs://.
- BoundingPolys []BoundingPoly Response 
- 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).
- Name string
- 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.
- Uri string
- The Google Cloud Storage URI of the reference image. The URI must start with gs://.
- boundingPolys List<BoundingPoly Response> 
- 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).
- name String
- 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.
- uri String
- The Google Cloud Storage URI of the reference image. The URI must start with gs://.
- boundingPolys BoundingPoly Response[] 
- 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).
- name string
- 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.
- uri string
- The Google Cloud Storage URI of the reference image. The URI must start with gs://.
- bounding_polys Sequence[BoundingPoly Response] 
- 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).
- name str
- 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.
- uri str
- The Google Cloud Storage URI of the reference image. The URI must start with gs://.
- boundingPolys List<Property Map>
- 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).
- name String
- 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.
- uri String
- The Google Cloud Storage URI of the reference image. The URI must start with gs://.
Supporting Types
BoundingPolyResponse  
- NormalizedVertices List<Pulumi.Google Native. Vision. V1. Inputs. Normalized Vertex Response> 
- The bounding polygon normalized vertices.
- Vertices
List<Pulumi.Google Native. Vision. V1. Inputs. Vertex Response> 
- The bounding polygon vertices.
- NormalizedVertices []NormalizedVertex Response 
- The bounding polygon normalized vertices.
- Vertices
[]VertexResponse 
- The bounding polygon vertices.
- normalizedVertices List<NormalizedVertex Response> 
- The bounding polygon normalized vertices.
- vertices
List<VertexResponse> 
- The bounding polygon vertices.
- normalizedVertices NormalizedVertex Response[] 
- The bounding polygon normalized vertices.
- vertices
VertexResponse[] 
- The bounding polygon vertices.
- normalized_vertices Sequence[NormalizedVertex Response] 
- The bounding polygon normalized vertices.
- vertices
Sequence[VertexResponse] 
- The bounding polygon vertices.
- normalizedVertices List<Property Map>
- The bounding polygon normalized vertices.
- vertices List<Property Map>
- The bounding polygon vertices.
NormalizedVertexResponse  
VertexResponse 
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.