REST Resource: projects.locations.applications.instances

リソース: インスタンス

Instance オブジェクトについて説明するメッセージ

JSON 表現
{
  "name": string,
  "createTime": string,
  "updateTime": string,
  "labels": {
    string: string,
    ...
  },
  "displayName": string,
  "description": string,
  "inputResources": [
    {
      object (InputResource)
    }
  ],
  "outputResources": [
    {
      object (OutputResource)
    }
  ],
  "state": enum (State)
}
フィールド
name

string

出力専用。リソースの名前

createTime

string (Timestamp format)

出力専用。[出力専用] 作成タイムスタンプ

RFC3339 UTC「Zulu」形式のタイムスタンプ。精度はナノ秒まで、小数点以下は最大 9 桁。例: "2014-10-02T15:01:23Z""2014-10-02T15:01:23.045123456Z"

updateTime

string (Timestamp format)

出力専用。[出力専用] 更新タイムスタンプ

RFC3339 UTC「Zulu」形式のタイムスタンプ。精度はナノ秒まで、小数点以下は最大 9 桁。例: "2014-10-02T15:01:23Z""2014-10-02T15:01:23.045123456Z"

labels

map (key: string, value: string)

Key-Value ペアとしてのラベル。

"key": value ペアのリストを含むオブジェクト。例: { "name": "wrench", "mass": "1.3kg", "count": "3" }

displayName

string

必須。ソリューションのわかりやすい表示名。

description

string

このインスタンスの説明。

inputResources[]

object (InputResource)

現在のアプリケーション インスタンスの入力リソース。例: inputResources: visionai.googleapis.com/v1/projects/123/locations/us-central1/clusters/456/streams/stream-a

outputResources[]

object (OutputResource)

1 つのアプリケーション インスタンスに関連付けられているすべての出力リソース。

state

enum (State)

インスタンスの状態。

InputResource

1 つのアプリケーション インスタンスで使用される入力リソースのメッセージ。

JSON 表現
{
  "consumerNode": string,
  "inputResourceBinding": string,
  "annotations": {
    object (ResourceAnnotations)
  },

  // Union field input_resource_information can be only one of the following:
  "inputResource": string,
  "annotatedStream": {
    object (StreamWithAnnotation)
  }
  // End of list of possible types for union field input_resource_information.
}
フィールド
consumerNode

string

入力リソースを受信するグラフノードの名前。例: inputResource: visionai.googleapis.com/v1/projects/123/locations/us-central1/clusters/456/streams/input-stream-a consumerNode: stream-input

inputResourceBinding

string

入力バインディングが 1 つしかない場合は、現在の入力リソースを使用する特定の入力リソース バインディングは無視できます。

annotations

object (ResourceAnnotations)

リソース アノテーションが含まれている。

共用体フィールド input_resource_information。必須。アプリケーション インスタンスへの入力を指定します。input_resource_information は次のいずれかになります。
inputResource

string

直接入力リソース名。インスタンスタイプが STREAMING_PREDICTION の場合、入力リソースの形式は「projects/123/locations/us-central1/clusters/456/streams/stream-a」です。インスタンスタイプが Cloud Storage 入力コンテナの BATCH_PREDICTION の場合、入力リソースの形式は「gs://bucket-a」です。

annotatedStream
(deprecated)

object (StreamWithAnnotation)

入力リソースが VisionAI ストリームの場合は、代わりに annotatedStream を使用して関連するアノテーションを指定できます。

ResourceAnnotations

リソースの一般的なアノテーションを説明するメッセージ。

JSON 表現
{
  "applicationAnnotations": [
    {
      object (StreamAnnotation)
    }
  ],
  "nodeAnnotations": [
    {
      object (ApplicationNodeAnnotation)
    }
  ]
}
フィールド
applicationAnnotations[]

object (StreamAnnotation)

アプリケーション全体に適用されるアノテーション。

nodeAnnotations[]

object (ApplicationNodeAnnotation)

アプリケーションの特定のノードに適用されるアノテーション。アプリケーションとノードの両方に同じタイプのアノテーションが適用されている場合、グローバル アプリケーションのアノテーションに加えて、ノード アノテーションが追加されます。たとえば、アプリ全体に 1 つのアクティブ ゾーン アノテーションがあり、占有状況分析プロセッサに 1 つのアクティブ ゾーン アノテーションがある場合、占有状況分析プロセッサには 2 つのアクティブ ゾーンが定義されます。

ApplicationNodeAnnotation

アプリケーション ノードに固有のアノテーションを説明するメッセージ。このメッセージは StreamWithAnnotation.NodeAnnotation の重複です。

JSON 表現
{
  "node": string,
  "annotations": [
    {
      object (StreamAnnotation)
    }
  ]
}
フィールド
node

string

アプリケーション グラフのノード名。

annotations[]

object (StreamAnnotation)

ノード固有のストリームのアノテーション。

OutputResource

1 つのアプリケーション インスタンスで使用される出力リソースのメッセージ。

JSON 表現
{
  "outputResource": string,
  "producerNode": string,
  "outputResourceBinding": string,
  "isTemporary": boolean,
  "autogen": boolean
}
フィールド
outputResource

string

現在のアプリケーション インスタンスの出力リソース名。

producerNode

string

出力リソース名を生成するグラフノードの名前。例: outputResource: /projects/123/locations/us-central1/clusters/456/streams/output-application-789-stream-a-occupancy-counting producerNode: occupancy-counting

outputResourceBinding

string

現在の OutputResource を生成する特定の出力リソース バインディング。

isTemporary

boolean

出力専用。出力リソースが一時的であるかどうか。つまり、リソースがアプリケーションのデプロイ中に生成されるかどうか。一時リソースは、アプリケーションのアンデプロイ中に削除されます。

autogen

boolean

出力専用。出力リソースが Vision AI App Platform によって自動的に作成されるかどうか。

インスタンスの状態

列挙型
STATE_UNSPECIFIED デフォルト値。この値は、状態を省略した場合に使用されます。
CREATING 状態は CREATING。
CREATED 状態は CREATED です。
DEPLOYING ステータス: DEPLOYING。
DEPLOYED 状態 DEPLOYED。
UNDEPLOYING ステータスは UNDEPLOYING です。
DELETED ステータス DELETED。
ERROR 状態が ERROR です。
UPDATING ステータスの更新
DELETING 状態: 削除中。
FIXING 状態の修正。

メソッド

get

1 つのインスタンスの詳細を取得します。

list

指定されたプロジェクトとロケーションでのインスタンスを一覧で表示します。