# REST Resource: projects.locations.preferenceSets

- [Resource: PreferenceSet](https://docs.cloud.google.com/migration-center/docs/reference/rest/v1/projects.locations.preferenceSets#PreferenceSet)
  - [JSON representation](https://docs.cloud.google.com/migration-center/docs/reference/rest/v1/projects.locations.preferenceSets#PreferenceSet.SCHEMA_REPRESENTATION)
- [Methods](https://docs.cloud.google.com/migration-center/docs/reference/rest/v1/projects.locations.preferenceSets#METHODS_SUMMARY)

## Resource: PreferenceSet

The preferences that apply to all assets in a given context.

| JSON representation |
|---|
| ``` { "name": string, "createTime": string, "updateTime": string, "displayName": string, "description": string, "virtualMachinePreferences": { object (`https://docs.cloud.google.com/migration-center/docs/reference/rest/v1/VirtualMachinePreferences`) } } ``` |

| Fields ||
|---|---|
| `name` | `string` Output only. Name of the preference set. |
| `createTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. The timestamp when the preference set was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: `"2014-10-02T15:01:23Z"` and `"2014-10-02T15:01:23.045123456Z"`. |
| `updateTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. The timestamp when the preference set was last updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: `"2014-10-02T15:01:23Z"` and `"2014-10-02T15:01:23.045123456Z"`. |
| `displayName` | `string` User-friendly display name. Maximum length is 63 characters. |
| `description` | `string` A description of the preference set. |
| `virtualMachinePreferences` | ``object (`https://docs.cloud.google.com/migration-center/docs/reference/rest/v1/VirtualMachinePreferences`)`` Optional. A set of preferences that applies to all virtual machines in the context. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/migration-center/docs/reference/rest/v1/projects.locations.preferenceSets/create` | Creates a new preference set in a given project and location. |
| ### `https://docs.cloud.google.com/migration-center/docs/reference/rest/v1/projects.locations.preferenceSets/delete` | Deletes a preference set. |
| ### `https://docs.cloud.google.com/migration-center/docs/reference/rest/v1/projects.locations.preferenceSets/get` | Gets the details of a preference set. |
| ### `https://docs.cloud.google.com/migration-center/docs/reference/rest/v1/projects.locations.preferenceSets/list` | Lists all the preference sets in a given project and location. |
| ### `https://docs.cloud.google.com/migration-center/docs/reference/rest/v1/projects.locations.preferenceSets/patch` | Updates the parameters of a preference set. |