Skip to content

Commit

Permalink
feat(migrationcenter): update the API
Browse files Browse the repository at this point in the history
#### migrationcenter:v1alpha1

The following keys were added:
- resources.projects.resources.locations.resources.assets.methods.list.parameters.showHidden.description
- resources.projects.resources.locations.resources.assets.methods.list.parameters.showHidden.location
- resources.projects.resources.locations.resources.assets.methods.list.parameters.showHidden.type
- schemas.AggregateAssetsValuesRequest.properties.showHidden.description
- schemas.AggregateAssetsValuesRequest.properties.showHidden.type
- schemas.Asset.properties.hidden.description
- schemas.Asset.properties.hidden.type
- schemas.Asset.properties.hideReason.description
- schemas.Asset.properties.hideReason.type
- schemas.Asset.properties.hideTime.description
- schemas.Asset.properties.hideTime.format
- schemas.Asset.properties.hideTime.readOnly
- schemas.Asset.properties.hideTime.type

The following keys were changed:
- schemas.VirtualMachinePreferences.properties.regionPreferences.description
  • Loading branch information
yoshi-automation authored and sofisl committed Nov 27, 2023
1 parent 1a19ff2 commit 57ae0b7
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 3 deletions.
27 changes: 25 additions & 2 deletions discovery/migrationcenter-v1alpha1.json
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,11 @@
"required": true,
"type": "string"
},
"showHidden": {
"description": "Optional. When this value is set to 'true' the response will include all assets, including those that are hidden.",
"location": "query",
"type": "boolean"
},
"view": {
"description": "View of the assets. Defaults to BASIC.",
"enum": [
Expand Down Expand Up @@ -2102,7 +2107,7 @@
}
}
},
"revision": "20231013",
"revision": "20231101",
"rootUrl": "https://migrationcenter.googleapis.com/",
"schemas": {
"AddAssetsToGroupRequest": {
Expand Down Expand Up @@ -2138,6 +2143,10 @@
"filter": {
"description": "The aggregation will be performed on assets that match the provided filter.",
"type": "string"
},
"showHidden": {
"description": "Optional. When this value is set to 'true' the response will include all assets, including those that are hidden.",
"type": "boolean"
}
},
"type": "object"
Expand Down Expand Up @@ -2335,6 +2344,20 @@
"readOnly": true,
"type": "string"
},
"hidden": {
"description": "Optional. Indicates if the asset is hidden.",
"type": "boolean"
},
"hideReason": {
"description": "Optional. An optional reason for marking this asset as hidden.",
"type": "string"
},
"hideTime": {
"description": "Output only. The timestamp when the asset was marked as hidden.",
"format": "google-datetime",
"readOnly": true,
"type": "string"
},
"insightList": {
"$ref": "InsightList",
"description": "Output only. The list of insights associated with the asset.",
Expand Down Expand Up @@ -5844,7 +5867,7 @@
},
"regionPreferences": {
"$ref": "RegionPreferences",
"description": "Region preferences for assets using this preference set. If you are unsure which value to set, the migration service API region is often a good value to start with."
"description": "Region preferences for assets using this preference set. If you are unsure which value to set, the migration service API region is often a good value to start with. If PreferenceSet.RegionPreferences is specified, it overrides this field."
},
"sizingOptimizationCustomParameters": {
"$ref": "VirtualMachinePreferencesSizingOptimizationCustomParameters",
Expand Down
22 changes: 21 additions & 1 deletion src/apis/migrationcenter/v1alpha1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,10 @@ export namespace migrationcenter_v1alpha1 {
* The aggregation will be performed on assets that match the provided filter.
*/
filter?: string | null;
/**
* Optional. When this value is set to 'true' the response will include all assets, including those that are hidden.
*/
showHidden?: boolean | null;
}
/**
* A response to a request to aggregated assets values.
Expand Down Expand Up @@ -279,6 +283,18 @@ export namespace migrationcenter_v1alpha1 {
* Output only. The timestamp when the asset was created.
*/
createTime?: string | null;
/**
* Optional. Indicates if the asset is hidden.
*/
hidden?: boolean | null;
/**
* Optional. An optional reason for marking this asset as hidden.
*/
hideReason?: string | null;
/**
* Output only. The timestamp when the asset was marked as hidden.
*/
hideTime?: string | null;
/**
* Output only. The list of insights associated with the asset.
*/
Expand Down Expand Up @@ -2798,7 +2814,7 @@ export namespace migrationcenter_v1alpha1 {
*/
networkCostParameters?: Schema$VirtualMachinePreferencesNetworkCostParameters;
/**
* Region preferences for assets using this preference set. If you are unsure which value to set, the migration service API region is often a good value to start with.
* Region preferences for assets using this preference set. If you are unsure which value to set, the migration service API region is often a good value to start with. If PreferenceSet.RegionPreferences is specified, it overrides this field.
*/
regionPreferences?: Schema$RegionPreferences;
/**
Expand Down Expand Up @@ -4164,6 +4180,10 @@ export namespace migrationcenter_v1alpha1 {
* Required. Parent value for `ListAssetsRequest`.
*/
parent?: string;
/**
* Optional. When this value is set to 'true' the response will include all assets, including those that are hidden.
*/
showHidden?: boolean;
/**
* View of the assets. Defaults to BASIC.
*/
Expand Down

0 comments on commit 57ae0b7

Please sign in to comment.