Skip to content

Commit

Permalink
feat(compute): update the API
Browse files Browse the repository at this point in the history
#### compute:alpha
The following keys were added:
- schemas.InstanceGroupManagersApplyUpdatesRequest.properties.allInstances.description
- schemas.InstanceGroupManagersApplyUpdatesRequest.properties.allInstances.type
- schemas.RegionInstanceGroupManagersApplyUpdatesRequest.properties.allInstances.description
- schemas.RegionInstanceGroupManagersApplyUpdatesRequest.properties.allInstances.type
- schemas.ResourcePolicy.properties.instanceSchedulePolicy.$ref
- schemas.ResourcePolicy.properties.instanceSchedulePolicy.description
- schemas.ResourcePolicyInstanceSchedulePolicy.description
- schemas.ResourcePolicyInstanceSchedulePolicy.id
- schemas.ResourcePolicyInstanceSchedulePolicy.properties.vmStartSchedule.$ref
- schemas.ResourcePolicyInstanceSchedulePolicy.properties.vmStartSchedule.description
- schemas.ResourcePolicyInstanceSchedulePolicy.properties.vmStopSchedule.$ref
- schemas.ResourcePolicyInstanceSchedulePolicy.properties.vmStopSchedule.description
- schemas.ResourcePolicyInstanceSchedulePolicy.type
- schemas.ResourcePolicyInstanceSchedulePolicySchedule.description
- schemas.ResourcePolicyInstanceSchedulePolicySchedule.id
- schemas.ResourcePolicyInstanceSchedulePolicySchedule.properties.schedule.description
- schemas.ResourcePolicyInstanceSchedulePolicySchedule.properties.schedule.type
- schemas.ResourcePolicyInstanceSchedulePolicySchedule.properties.timeZone.description
- schemas.ResourcePolicyInstanceSchedulePolicySchedule.properties.timeZone.type
- schemas.ResourcePolicyInstanceSchedulePolicySchedule.type
- schemas.ResourcePolicySnapshotSchedulePolicySnapshotProperties.properties.chainName.description
- schemas.ResourcePolicySnapshotSchedulePolicySnapshotProperties.properties.chainName.type
- schemas.Snapshot.properties.chainName.description
- schemas.Snapshot.properties.chainName.type

The following keys were changed:
- schemas.Disk.properties.physicalBlockSizeBytes.description

#### compute:beta
The following keys were added:
- schemas.ResourcePolicySnapshotSchedulePolicySnapshotProperties.properties.chainName.description
- schemas.ResourcePolicySnapshotSchedulePolicySnapshotProperties.properties.chainName.type
- schemas.Snapshot.properties.chainName.description
- schemas.Snapshot.properties.chainName.type

The following keys were changed:
- schemas.Disk.properties.physicalBlockSizeBytes.description

#### compute:v1
The following keys were changed:
- schemas.Disk.properties.physicalBlockSizeBytes.description
  • Loading branch information
yoshi-automation authored and JustinBeckwith committed Jun 16, 2020
1 parent 33fe343 commit 4590a48
Show file tree
Hide file tree
Showing 6 changed files with 134 additions and 12 deletions.
56 changes: 53 additions & 3 deletions discovery/compute-alpha.json
Expand Up @@ -29,7 +29,7 @@
"description": "Creates and runs virtual machines on Google Cloud Platform.",
"discoveryVersion": "v1",
"documentationLink": "https://developers.google.com/compute/docs/reference/latest/",
"etag": "\"u9GIe6H63LSGq-9_t39K2Zx_EAc/C6naPwndpbeXcTR-HqK1djbE6fw\"",
"etag": "\"u9GIe6H63LSGq-9_t39K2Zx_EAc/Tw7d5qByrzQGrI9D9LwLH04Iq4A\"",
"icons": {
"x16": "https://www.google.com/images/icons/product/compute_engine-16.png",
"x32": "https://www.google.com/images/icons/product/compute_engine-32.png"
Expand Down Expand Up @@ -31696,7 +31696,7 @@
}
}
},
"revision": "20200511",
"revision": "20200515",
"rootUrl": "https://compute.googleapis.com/",
"schemas": {
"AcceleratorConfig": {
Expand Down Expand Up @@ -36005,7 +36005,7 @@
"type": "string"
},
"physicalBlockSizeBytes": {
"description": "Physical block size of the persistent disk, in bytes. If not present in a request, a default value is used. Currently supported sizes are 4096 and 16384, other sizes may be added in the future. If an unsupported value is requested, the error message will list the supported values for the caller's project.",
"description": "Physical block size of the persistent disk, in bytes. If not present in a request, a default value is used. The currently supported size is 4096, other sizes may be added in the future. If an unsupported value is requested, the error message will list the supported values for the caller's project.",
"format": "int64",
"type": "string"
},
Expand Down Expand Up @@ -42053,6 +42053,10 @@
"description": "InstanceGroupManagers.applyUpdatesToInstances",
"id": "InstanceGroupManagersApplyUpdatesRequest",
"properties": {
"allInstances": {
"description": "Flag to update all instances instead of specified list of ?instances?. If the flag is set to true then the instances may not be specified in the request.",
"type": "boolean"
},
"instances": {
"description": "The list of URLs of one or more instances for which you want to apply updates. Each URL can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].",
"items": {
Expand Down Expand Up @@ -52995,6 +52999,10 @@
"description": "InstanceGroupManagers.applyUpdatesToInstances",
"id": "RegionInstanceGroupManagersApplyUpdatesRequest",
"properties": {
"allInstances": {
"description": "Flag to update all instances instead of specified list of ?instances?. If the flag is set to true then the instances may not be specified in the request.",
"type": "boolean"
},
"instances": {
"description": "The list of URLs of one or more instances for which you want to apply updates. Each URL can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].",
"items": {
Expand Down Expand Up @@ -54224,6 +54232,10 @@
"format": "uint64",
"type": "string"
},
"instanceSchedulePolicy": {
"$ref": "ResourcePolicyInstanceSchedulePolicy",
"description": "Resource policy for scheduling instance operations."
},
"kind": {
"default": "compute#resourcePolicy",
"description": "[Output Only] Type of the resource. Always compute#resource_policies for resource policies.",
Expand Down Expand Up @@ -54499,6 +54511,36 @@
},
"type": "object"
},
"ResourcePolicyInstanceSchedulePolicy": {
"description": "An InstanceSchedulePolicy specifies when and how frequent certain operations are performed on the instance.",
"id": "ResourcePolicyInstanceSchedulePolicy",
"properties": {
"vmStartSchedule": {
"$ref": "ResourcePolicyInstanceSchedulePolicySchedule",
"description": "Specifies the schedule for starting instance."
},
"vmStopSchedule": {
"$ref": "ResourcePolicyInstanceSchedulePolicySchedule",
"description": "Specifies the schedule for stopping instance."
}
},
"type": "object"
},
"ResourcePolicyInstanceSchedulePolicySchedule": {
"description": "Schedule for the instance operation.",
"id": "ResourcePolicyInstanceSchedulePolicySchedule",
"properties": {
"schedule": {
"description": "Specifies the frequency for the operation, using the unix-cron format.",
"type": "string"
},
"timeZone": {
"description": "Specifies the time zone to be used in interpreting Schedule.schedule. The value of this field must be a time zone name from the tz database: http://en.wikipedia.org/wiki/Tz_database.",
"type": "string"
}
},
"type": "object"
},
"ResourcePolicyList": {
"id": "ResourcePolicyList",
"properties": {
Expand Down Expand Up @@ -54694,6 +54736,10 @@
"description": "Specified snapshot properties for scheduled snapshots created by this policy.",
"id": "ResourcePolicySnapshotSchedulePolicySnapshotProperties",
"properties": {
"chainName": {
"description": "Chain name that the snapshot is created in.",
"type": "string"
},
"guestFlush": {
"description": "Indication to perform a 'guest aware' snapshot.",
"type": "boolean"
Expand Down Expand Up @@ -57505,6 +57551,10 @@
"description": "[Output Only] Set to true if snapshots are automatically created by applying resource policy on the target disk.",
"type": "boolean"
},
"chainName": {
"description": "Chain name should conform to RFC1035.",
"type": "string"
},
"creationTimestamp": {
"description": "[Output Only] Creation timestamp in RFC3339 text format.",
"type": "string"
Expand Down
14 changes: 11 additions & 3 deletions discovery/compute-beta.json
Expand Up @@ -29,7 +29,7 @@
"description": "Creates and runs virtual machines on Google Cloud Platform.",
"discoveryVersion": "v1",
"documentationLink": "https://developers.google.com/compute/docs/reference/latest/",
"etag": "\"u9GIe6H63LSGq-9_t39K2Zx_EAc/69ND3IwVNcOnVLF-ZC0OyHds1bQ\"",
"etag": "\"u9GIe6H63LSGq-9_t39K2Zx_EAc/MNcrndeYTaDX4ARVTRYYFFDtyD0\"",
"icons": {
"x16": "https://www.google.com/images/icons/product/compute_engine-16.png",
"x32": "https://www.google.com/images/icons/product/compute_engine-32.png"
Expand Down Expand Up @@ -27461,7 +27461,7 @@
}
}
},
"revision": "20200511",
"revision": "20200515",
"rootUrl": "https://compute.googleapis.com/",
"schemas": {
"AcceleratorConfig": {
Expand Down Expand Up @@ -31349,7 +31349,7 @@
"type": "string"
},
"physicalBlockSizeBytes": {
"description": "Physical block size of the persistent disk, in bytes. If not present in a request, a default value is used. Currently supported sizes are 4096 and 16384, other sizes may be added in the future. If an unsupported value is requested, the error message will list the supported values for the caller's project.",
"description": "Physical block size of the persistent disk, in bytes. If not present in a request, a default value is used. The currently supported size is 4096, other sizes may be added in the future. If an unsupported value is requested, the error message will list the supported values for the caller's project.",
"format": "int64",
"type": "string"
},
Expand Down Expand Up @@ -47641,6 +47641,10 @@
"description": "Specified snapshot properties for scheduled snapshots created by this policy.",
"id": "ResourcePolicySnapshotSchedulePolicySnapshotProperties",
"properties": {
"chainName": {
"description": "Chain name that the snapshot is created in.",
"type": "string"
},
"guestFlush": {
"description": "Indication to perform a 'guest aware' snapshot.",
"type": "boolean"
Expand Down Expand Up @@ -49930,6 +49934,10 @@
"description": "[Output Only] Set to true if snapshots are automatically created by applying resource policy on the target disk.",
"type": "boolean"
},
"chainName": {
"description": "Chain name should conform to RFC1035.",
"type": "string"
},
"creationTimestamp": {
"description": "[Output Only] Creation timestamp in RFC3339 text format.",
"type": "string"
Expand Down
6 changes: 3 additions & 3 deletions discovery/compute-v1.json
Expand Up @@ -29,7 +29,7 @@
"description": "Creates and runs virtual machines on Google Cloud Platform.",
"discoveryVersion": "v1",
"documentationLink": "https://developers.google.com/compute/docs/reference/latest/",
"etag": "\"u9GIe6H63LSGq-9_t39K2Zx_EAc/TsQz1DNIXY-nbvufkMv4C85tMsw\"",
"etag": "\"u9GIe6H63LSGq-9_t39K2Zx_EAc/1qThsnp409WPlAMDctY9ILp8CKs\"",
"icons": {
"x16": "https://www.google.com/images/icons/product/compute_engine-16.png",
"x32": "https://www.google.com/images/icons/product/compute_engine-32.png"
Expand Down Expand Up @@ -23387,7 +23387,7 @@
}
}
},
"revision": "20200511",
"revision": "20200515",
"rootUrl": "https://compute.googleapis.com/",
"schemas": {
"AcceleratorConfig": {
Expand Down Expand Up @@ -26912,7 +26912,7 @@
"type": "string"
},
"physicalBlockSizeBytes": {
"description": "Physical block size of the persistent disk, in bytes. If not present in a request, a default value is used. Currently supported sizes are 4096 and 16384, other sizes may be added in the future. If an unsupported value is requested, the error message will list the supported values for the caller's project.",
"description": "Physical block size of the persistent disk, in bytes. If not present in a request, a default value is used. The currently supported size is 4096, other sizes may be added in the future. If an unsupported value is requested, the error message will list the supported values for the caller's project.",
"format": "int64",
"type": "string"
},
Expand Down
55 changes: 54 additions & 1 deletion src/apis/compute/alpha.ts
Expand Up @@ -2340,7 +2340,7 @@ export namespace compute_alpha {
*/
options?: string | null;
/**
* Physical block size of the persistent disk, in bytes. If not present in a request, a default value is used. Currently supported sizes are 4096 and 16384, other sizes may be added in the future. If an unsupported value is requested, the error message will list the supported values for the caller's project.
* Physical block size of the persistent disk, in bytes. If not present in a request, a default value is used. The currently supported size is 4096, other sizes may be added in the future. If an unsupported value is requested, the error message will list the supported values for the caller's project.
*/
physicalBlockSizeBytes?: string | null;
/**
Expand Down Expand Up @@ -5168,6 +5168,10 @@ export namespace compute_alpha {
* InstanceGroupManagers.applyUpdatesToInstances
*/
export interface Schema$InstanceGroupManagersApplyUpdatesRequest {
/**
* Flag to update all instances instead of specified list of ?instances?. If the flag is set to true then the instances may not be specified in the request.
*/
allInstances?: boolean | null;
/**
* The list of URLs of one or more instances for which you want to apply updates. Each URL can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
*/
Expand Down Expand Up @@ -9872,6 +9876,10 @@ export namespace compute_alpha {
* InstanceGroupManagers.applyUpdatesToInstances
*/
export interface Schema$RegionInstanceGroupManagersApplyUpdatesRequest {
/**
* Flag to update all instances instead of specified list of ?instances?. If the flag is set to true then the instances may not be specified in the request.
*/
allInstances?: boolean | null;
/**
* The list of URLs of one or more instances for which you want to apply updates. Each URL can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME].
*/
Expand Down Expand Up @@ -10315,6 +10323,10 @@ export namespace compute_alpha {
* [Output Only] The unique identifier for the resource. This identifier is defined by the server.
*/
id?: string | null;
/**
* Resource policy for scheduling instance operations.
*/
instanceSchedulePolicy?: Schema$ResourcePolicyInstanceSchedulePolicy;
/**
* [Output Only] Type of the resource. Always compute#resource_policies for resource policies.
*/
Expand Down Expand Up @@ -10442,6 +10454,32 @@ export namespace compute_alpha {
*/
startTime?: string | null;
}
/**
* An InstanceSchedulePolicy specifies when and how frequent certain operations are performed on the instance.
*/
export interface Schema$ResourcePolicyInstanceSchedulePolicy {
/**
* Specifies the schedule for starting instance.
*/
vmStartSchedule?: Schema$ResourcePolicyInstanceSchedulePolicySchedule;
/**
* Specifies the schedule for stopping instance.
*/
vmStopSchedule?: Schema$ResourcePolicyInstanceSchedulePolicySchedule;
}
/**
* Schedule for the instance operation.
*/
export interface Schema$ResourcePolicyInstanceSchedulePolicySchedule {
/**
* Specifies the frequency for the operation, using the unix-cron format.
*/
schedule?: string | null;
/**
* Specifies the time zone to be used in interpreting Schedule.schedule. The value of this field must be a time zone name from the tz database: http://en.wikipedia.org/wiki/Tz_database.
*/
timeZone?: string | null;
}
export interface Schema$ResourcePolicyList {
etag?: string | null;
/**
Expand Down Expand Up @@ -10519,6 +10557,10 @@ export namespace compute_alpha {
* Specified snapshot properties for scheduled snapshots created by this policy.
*/
export interface Schema$ResourcePolicySnapshotSchedulePolicySnapshotProperties {
/**
* Chain name that the snapshot is created in.
*/
chainName?: string | null;
/**
* Indication to perform a 'guest aware' snapshot.
*/
Expand Down Expand Up @@ -11952,6 +11994,10 @@ export namespace compute_alpha {
* [Output Only] Set to true if snapshots are automatically created by applying resource policy on the target disk.
*/
autoCreated?: boolean | null;
/**
* Chain name should conform to RFC1035.
*/
chainName?: string | null;
/**
* [Output Only] Creation timestamp in RFC3339 text format.
*/
Expand Down Expand Up @@ -23199,6 +23245,7 @@ export namespace compute_alpha {
* // request body parameters
* // {
* // "autoCreated": false,
* // "chainName": "my_chainName",
* // "creationTimestamp": "my_creationTimestamp",
* // "description": "my_description",
* // "diskSizeGb": "my_diskSizeGb",
Expand Down Expand Up @@ -43615,6 +43662,7 @@ export namespace compute_alpha {
* requestBody: {
* // request body parameters
* // {
* // "allInstances": false,
* // "instances": [],
* // "maximalAction": "my_maximalAction",
* // "minimalAction": "my_minimalAction",
Expand Down Expand Up @@ -91813,6 +91861,7 @@ export namespace compute_alpha {
* // request body parameters
* // {
* // "autoCreated": false,
* // "chainName": "my_chainName",
* // "creationTimestamp": "my_creationTimestamp",
* // "description": "my_description",
* // "diskSizeGb": "my_diskSizeGb",
Expand Down Expand Up @@ -98706,6 +98755,7 @@ export namespace compute_alpha {
* requestBody: {
* // request body parameters
* // {
* // "allInstances": false,
* // "instances": [],
* // "maximalAction": "my_maximalAction",
* // "minimalAction": "my_minimalAction",
Expand Down Expand Up @@ -114431,6 +114481,7 @@ export namespace compute_alpha {
* // "description": "my_description",
* // "groupPlacementPolicy": {},
* // "id": "my_id",
* // "instanceSchedulePolicy": {},
* // "kind": "my_kind",
* // "name": "my_name",
* // "region": "my_region",
Expand Down Expand Up @@ -114737,6 +114788,7 @@ export namespace compute_alpha {
* // "description": "my_description",
* // "groupPlacementPolicy": {},
* // "id": "my_id",
* // "instanceSchedulePolicy": {},
* // "kind": "my_kind",
* // "name": "my_name",
* // "region": "my_region",
Expand Down Expand Up @@ -122451,6 +122503,7 @@ export namespace compute_alpha {
* // Example response
* // {
* // "autoCreated": false,
* // "chainName": "my_chainName",
* // "creationTimestamp": "my_creationTimestamp",
* // "description": "my_description",
* // "diskSizeGb": "my_diskSizeGb",
Expand Down

0 comments on commit 4590a48

Please sign in to comment.