# REST Resource: projects.locations.vodConfigs

- [Resource: VodConfig](https://docs.cloud.google.com/video-stitcher/docs/reference/rest/v1/projects.locations.vodConfigs#VodConfig)
  - [JSON representation](https://docs.cloud.google.com/video-stitcher/docs/reference/rest/v1/projects.locations.vodConfigs#VodConfig.SCHEMA_REPRESENTATION)
- [GamVodConfig](https://docs.cloud.google.com/video-stitcher/docs/reference/rest/v1/projects.locations.vodConfigs#GamVodConfig)
  - [JSON representation](https://docs.cloud.google.com/video-stitcher/docs/reference/rest/v1/projects.locations.vodConfigs#GamVodConfig.SCHEMA_REPRESENTATION)
- [State](https://docs.cloud.google.com/video-stitcher/docs/reference/rest/v1/projects.locations.vodConfigs#State)
- [Methods](https://docs.cloud.google.com/video-stitcher/docs/reference/rest/v1/projects.locations.vodConfigs#METHODS_SUMMARY)

## Resource: VodConfig

Metadata used to register VOD configs.

| JSON representation |
|---|
| ``` { "name": string, "sourceUri": string, "adTagUri": string, "gamVodConfig": { object (`https://docs.cloud.google.com/video-stitcher/docs/reference/rest/v1/projects.locations.vodConfigs#GamVodConfig`) }, "state": enum (`https://docs.cloud.google.com/video-stitcher/docs/reference/rest/v1/projects.locations.vodConfigs#State`), "sourceFetchOptions": { object (`https://docs.cloud.google.com/video-stitcher/docs/reference/rest/v1/FetchOptions`) } } ``` |

| Fields ||
|---|---|
| `name` | `string` Output only. The resource name of the VOD config, in the form of `projects/{project}/locations/{location}/vodConfigs/{id}`. |
| `sourceUri` | `string` Required. Source URI for the VOD stream manifest. |
| `adTagUri` | `string` Required. The default ad tag associated with this VOD config. |
| `gamVodConfig` | ``object (`https://docs.cloud.google.com/video-stitcher/docs/reference/rest/v1/projects.locations.vodConfigs#GamVodConfig`)`` Optional. Google Ad Manager (GAM) metadata. |
| `state` | ``enum (`https://docs.cloud.google.com/video-stitcher/docs/reference/rest/v1/projects.locations.vodConfigs#State`)`` Output only. State of the VOD config. |
| `sourceFetchOptions` | ``object (`https://docs.cloud.google.com/video-stitcher/docs/reference/rest/v1/FetchOptions`)`` Options for fetching source manifests and segments. |

## GamVodConfig

Metadata used for GAM ad decisioning.

| JSON representation |
|---|
| ``` { "networkCode": string } ``` |

| Fields ||
|---|---|
| `networkCode` | `string` Required. Ad Manager network code to associate with the VOD config. |

## State

State of the VOD config.

| Enums ||
|---|---|
| `STATE_UNSPECIFIED` | State is not specified. |
| `CREATING` | VOD config is being created. |
| `READY` | VOD config is ready for use. |
| `DELETING` | VOD config is queued up for deletion. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/video-stitcher/docs/reference/rest/v1/projects.locations.vodConfigs/create` | Registers the VOD config with the provided unique ID in the specified region. |
| ### `https://docs.cloud.google.com/video-stitcher/docs/reference/rest/v1/projects.locations.vodConfigs/delete` | Deletes the specified VOD config. |
| ### `https://docs.cloud.google.com/video-stitcher/docs/reference/rest/v1/projects.locations.vodConfigs/get` | Returns the specified VOD config managed by the Video Stitcher API service. |
| ### `https://docs.cloud.google.com/video-stitcher/docs/reference/rest/v1/projects.locations.vodConfigs/list` | Lists all VOD configs managed by the Video Stitcher API that belong to the specified project and region. |
| ### `https://docs.cloud.google.com/video-stitcher/docs/reference/rest/v1/projects.locations.vodConfigs/patch` | Updates the specified VOD config. |