diff --git a/packages/google-cloud-compute/.mocharc.js b/packages/google-cloud-compute/.mocharc.js index 49e7e228701..1a38f257db7 100644 --- a/packages/google-cloud-compute/.mocharc.js +++ b/packages/google-cloud-compute/.mocharc.js @@ -4,18 +4,22 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + const config = { "enable-source-maps": true, "throw-deprecation": true, - "timeout": 10000, - "recursive": true + "timeout": 10000 } if (process.env.MOCHA_THROW_DEPRECATION === 'false') { delete config['throw-deprecation']; diff --git a/packages/google-cloud-compute/protos/google/cloud/compute/v1/compute.proto b/packages/google-cloud-compute/protos/google/cloud/compute/v1/compute.proto index 04d01834af5..8a6341f340d 100644 --- a/packages/google-cloud-compute/protos/google/cloud/compute/v1/compute.proto +++ b/packages/google-cloud-compute/protos/google/cloud/compute/v1/compute.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ // Generated by the disco-to-proto3-converter. DO NOT EDIT! // Source Discovery file: compute.v1.json -// Source file revision: 20221126 +// Source file revision: 20230103 // API name: compute // API version: v1 @@ -1930,6 +1930,18 @@ message AliasIpRange { } +// +message AllocationResourceStatus { + optional AllocationResourceStatusSpecificSKUAllocation specific_sku_allocation = 196231151; + +} + +// +message AllocationResourceStatusSpecificSKUAllocation { + optional string source_instance_template_id = 111196154; + +} + // message AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk { // Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. For performance characteristics of SCSI over NVMe, see Local SSD performance. @@ -1985,6 +1997,9 @@ message AllocationSpecificSKUReservation { // The instance properties for the reservation. optional AllocationSpecificSKUAllocationReservedInstanceProperties instance_properties = 215355165; + // Specifies the instance template to create the reservation. If you use this field, you must exclude the instanceProperties field. This field is optional, and it can be a full or partial URL. For example, the following are all valid URLs to an instance template: - https://www.googleapis.com/compute/v1/projects/project /global/instanceTemplates/instanceTemplate - projects/project/global/instanceTemplates/instanceTemplate - global/instanceTemplates/instanceTemplate + optional string source_instance_template = 332423616; + } // @@ -7126,7 +7141,7 @@ message FirewallPolicyRule { } - // The Action to perform when the client connection triggers the rule. Can currently be either "allow" or "deny()" where valid values for status are 403, 404, and 502. + // The Action to perform when the client connection triggers the rule. Valid actions are "allow", "deny" and "goto_next". optional string action = 187661878; // An optional description for this resource. @@ -7422,7 +7437,7 @@ message ForwardingRule { // This field identifies the subnetwork that the load balanced IP should belong to for this Forwarding Rule, used in internal load balancing and network load balancing with IPv6. If the network specified is in auto subnet mode, this field is optional. However, a subnetwork must be specified if the network is in custom subnet mode or when creating external forwarding rule with IPv6. optional string subnetwork = 307827694; - // The URL of the target resource to receive the matched traffic. For regional forwarding rules, this target must be in the same region as the forwarding rule. For global forwarding rules, this target must be a global load balancing resource. The forwarded traffic must be of a type appropriate to the target object. For more information, see the "Target" column in [Port specifications](https://cloud.google.com/load-balancing/docs/forwarding-rule-concepts#ip_address_specifications). For Private Service Connect forwarding rules that forward traffic to Google APIs, provide the name of a supported Google API bundle: - vpc-sc - APIs that support VPC Service Controls. - all-apis - All supported Google APIs. + // The URL of the target resource to receive the matched traffic. For regional forwarding rules, this target must be in the same region as the forwarding rule. For global forwarding rules, this target must be a global load balancing resource. The forwarded traffic must be of a type appropriate to the target object. - For load balancers, see the "Target" column in [Port specifications](https://cloud.google.com/load-balancing/docs/forwarding-rule-concepts#ip_address_specifications). - For Private Service Connect forwarding rules that forward traffic to Google APIs, provide the name of a supported Google API bundle: - vpc-sc - APIs that support VPC Service Controls. - all-apis - All supported Google APIs. - For Private Service Connect forwarding rules that forward traffic to managed services, the target must be a service attachment. optional string target = 192835985; } @@ -9306,6 +9321,8 @@ message GuestOsFeature { SEV_CAPABLE = 87083793; + SEV_SNP_CAPABLE = 426919; + UEFI_COMPATIBLE = 195865408; VIRTIO_SCSI_MULTIQUEUE = 201597069; @@ -13181,7 +13198,7 @@ message Interconnect { // Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. optional string name = 3373707; - // Email address to contact the customer NOC for operations and maintenance notifications regarding this Interconnect. If specified, this will be used for notifications in addition to all other forms described, such as Stackdriver logs alerting and Cloud Notifications. + // Email address to contact the customer NOC for operations and maintenance notifications regarding this Interconnect. If specified, this will be used for notifications in addition to all other forms described, such as Cloud Monitoring logs alerting and Cloud Notifications. This field is required for users who sign up for Cloud Interconnect using workforce identity federation. optional string noc_contact_email = 14072832; // [Output Only] The current status of this Interconnect's functionality, which can take one of the following values: - OS_ACTIVE: A valid Interconnect, which is turned up and is ready to use. Attachments may be provisioned on this Interconnect. - OS_UNPROVISIONED: An Interconnect that has not completed turnup. No attachments may be provisioned on this Interconnect. - OS_UNDER_MAINTENANCE: An Interconnect that is undergoing internal maintenance. No attachments may be provisioned or updated on this Interconnect. @@ -17949,6 +17966,9 @@ message NetworkInterface { // URL of the VPC network resource for this instance. When creating an instance, if neither the network nor the subnetwork is specified, the default network global/networks/default is used. If the selected project doesn't have the default network, you must specify a network or subnet. If the network is not specified but the subnetwork is specified, the network is inferred. If you specify this property, you can specify the network as a full or partial URL. For example, the following are all valid URLs: - https://www.googleapis.com/compute/v1/projects/project/global/networks/ network - projects/project/global/networks/network - global/networks/default optional string network = 232872494; + // The URL of the network attachment that this interface should connect to in the following format: projects/{project_number}/regions/{region_name}/networkAttachments/{network_attachment_name}. + optional string network_attachment = 224644052; + // An IPv4 internal IP address to assign to the instance for this network interface. If not specified by the user, an unused internal IP is assigned by the system. optional string network_i_p = 207181961; @@ -22050,9 +22070,11 @@ message Reservation { // The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. optional string name = 3373707; - // Resource policies to be added to this reservation. The key is defined by user, and the value is resource policy url. This is to define placement policy with reservation. map resource_policies = 22220385; + // [Output Only] Status information for Reservation resource. + optional AllocationResourceStatus resource_status = 249429315; + // [Output Only] Reserved for future use. optional bool satisfies_pzs = 480964267; @@ -26485,7 +26507,7 @@ message SourceDiskEncryptionKey { // A specification of the parameters to use when creating the instance template from a source instance. message SourceInstanceParams { - // Attached disks configuration. If not provided, defaults are applied: For boot disk and any other R/W disks, new custom images will be created from each disk. For read-only disks, they will be attached in read-only mode. Local SSD disks will be created as blank volumes. + // Attached disks configuration. If not provided, defaults are applied: For boot disk and any other R/W disks, the source images for each disk will be used. For read-only disks, they will be attached in read-only mode. Local SSD disks will be created as blank volumes. repeated DiskInstantiationConfig disk_configs = 235580623; } diff --git a/packages/google-cloud-compute/protos/protos.d.ts b/packages/google-cloud-compute/protos/protos.d.ts index 513c5d22339..3cdd4e2709a 100644 --- a/packages/google-cloud-compute/protos/protos.d.ts +++ b/packages/google-cloud-compute/protos/protos.d.ts @@ -10470,6 +10470,206 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an AllocationResourceStatus. */ + interface IAllocationResourceStatus { + + /** AllocationResourceStatus specificSkuAllocation */ + specificSkuAllocation?: (google.cloud.compute.v1.IAllocationResourceStatusSpecificSKUAllocation|null); + } + + /** Represents an AllocationResourceStatus. */ + class AllocationResourceStatus implements IAllocationResourceStatus { + + /** + * Constructs a new AllocationResourceStatus. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IAllocationResourceStatus); + + /** AllocationResourceStatus specificSkuAllocation. */ + public specificSkuAllocation?: (google.cloud.compute.v1.IAllocationResourceStatusSpecificSKUAllocation|null); + + /** AllocationResourceStatus _specificSkuAllocation. */ + public _specificSkuAllocation?: "specificSkuAllocation"; + + /** + * Creates a new AllocationResourceStatus instance using the specified properties. + * @param [properties] Properties to set + * @returns AllocationResourceStatus instance + */ + public static create(properties?: google.cloud.compute.v1.IAllocationResourceStatus): google.cloud.compute.v1.AllocationResourceStatus; + + /** + * Encodes the specified AllocationResourceStatus message. Does not implicitly {@link google.cloud.compute.v1.AllocationResourceStatus.verify|verify} messages. + * @param message AllocationResourceStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IAllocationResourceStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AllocationResourceStatus message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AllocationResourceStatus.verify|verify} messages. + * @param message AllocationResourceStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IAllocationResourceStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AllocationResourceStatus message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AllocationResourceStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1.AllocationResourceStatus; + + /** + * Decodes an AllocationResourceStatus message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AllocationResourceStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1.AllocationResourceStatus; + + /** + * Verifies an AllocationResourceStatus message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an AllocationResourceStatus message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AllocationResourceStatus + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.AllocationResourceStatus; + + /** + * Creates a plain object from an AllocationResourceStatus message. Also converts values to other types if specified. + * @param message AllocationResourceStatus + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.AllocationResourceStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AllocationResourceStatus to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AllocationResourceStatus + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an AllocationResourceStatusSpecificSKUAllocation. */ + interface IAllocationResourceStatusSpecificSKUAllocation { + + /** AllocationResourceStatusSpecificSKUAllocation sourceInstanceTemplateId */ + sourceInstanceTemplateId?: (string|null); + } + + /** Represents an AllocationResourceStatusSpecificSKUAllocation. */ + class AllocationResourceStatusSpecificSKUAllocation implements IAllocationResourceStatusSpecificSKUAllocation { + + /** + * Constructs a new AllocationResourceStatusSpecificSKUAllocation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IAllocationResourceStatusSpecificSKUAllocation); + + /** AllocationResourceStatusSpecificSKUAllocation sourceInstanceTemplateId. */ + public sourceInstanceTemplateId?: (string|null); + + /** AllocationResourceStatusSpecificSKUAllocation _sourceInstanceTemplateId. */ + public _sourceInstanceTemplateId?: "sourceInstanceTemplateId"; + + /** + * Creates a new AllocationResourceStatusSpecificSKUAllocation instance using the specified properties. + * @param [properties] Properties to set + * @returns AllocationResourceStatusSpecificSKUAllocation instance + */ + public static create(properties?: google.cloud.compute.v1.IAllocationResourceStatusSpecificSKUAllocation): google.cloud.compute.v1.AllocationResourceStatusSpecificSKUAllocation; + + /** + * Encodes the specified AllocationResourceStatusSpecificSKUAllocation message. Does not implicitly {@link google.cloud.compute.v1.AllocationResourceStatusSpecificSKUAllocation.verify|verify} messages. + * @param message AllocationResourceStatusSpecificSKUAllocation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IAllocationResourceStatusSpecificSKUAllocation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AllocationResourceStatusSpecificSKUAllocation message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AllocationResourceStatusSpecificSKUAllocation.verify|verify} messages. + * @param message AllocationResourceStatusSpecificSKUAllocation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IAllocationResourceStatusSpecificSKUAllocation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AllocationResourceStatusSpecificSKUAllocation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AllocationResourceStatusSpecificSKUAllocation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1.AllocationResourceStatusSpecificSKUAllocation; + + /** + * Decodes an AllocationResourceStatusSpecificSKUAllocation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AllocationResourceStatusSpecificSKUAllocation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1.AllocationResourceStatusSpecificSKUAllocation; + + /** + * Verifies an AllocationResourceStatusSpecificSKUAllocation message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an AllocationResourceStatusSpecificSKUAllocation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AllocationResourceStatusSpecificSKUAllocation + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.AllocationResourceStatusSpecificSKUAllocation; + + /** + * Creates a plain object from an AllocationResourceStatusSpecificSKUAllocation message. Also converts values to other types if specified. + * @param message AllocationResourceStatusSpecificSKUAllocation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.AllocationResourceStatusSpecificSKUAllocation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AllocationResourceStatusSpecificSKUAllocation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AllocationResourceStatusSpecificSKUAllocation + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk. */ interface IAllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk { @@ -10733,6 +10933,9 @@ export namespace google { /** AllocationSpecificSKUReservation instanceProperties */ instanceProperties?: (google.cloud.compute.v1.IAllocationSpecificSKUAllocationReservedInstanceProperties|null); + + /** AllocationSpecificSKUReservation sourceInstanceTemplate */ + sourceInstanceTemplate?: (string|null); } /** Represents an AllocationSpecificSKUReservation. */ @@ -10756,6 +10959,9 @@ export namespace google { /** AllocationSpecificSKUReservation instanceProperties. */ public instanceProperties?: (google.cloud.compute.v1.IAllocationSpecificSKUAllocationReservedInstanceProperties|null); + /** AllocationSpecificSKUReservation sourceInstanceTemplate. */ + public sourceInstanceTemplate?: (string|null); + /** AllocationSpecificSKUReservation _assuredCount. */ public _assuredCount?: "assuredCount"; @@ -10768,6 +10974,9 @@ export namespace google { /** AllocationSpecificSKUReservation _instanceProperties. */ public _instanceProperties?: "instanceProperties"; + /** AllocationSpecificSKUReservation _sourceInstanceTemplate. */ + public _sourceInstanceTemplate?: "sourceInstanceTemplate"; + /** * Creates a new AllocationSpecificSKUReservation instance using the specified properties. * @param [properties] Properties to set @@ -54955,6 +55164,7 @@ export namespace google { MULTI_IP_SUBNET = 151776719, SECURE_BOOT = 376811194, SEV_CAPABLE = 87083793, + SEV_SNP_CAPABLE = 426919, UEFI_COMPATIBLE = 195865408, VIRTIO_SCSI_MULTIQUEUE = 201597069, WINDOWS = 456863331 @@ -102116,6 +102326,9 @@ export namespace google { /** NetworkInterface network */ network?: (string|null); + /** NetworkInterface networkAttachment */ + networkAttachment?: (string|null); + /** NetworkInterface networkIP */ networkIP?: (string|null); @@ -102171,6 +102384,9 @@ export namespace google { /** NetworkInterface network. */ public network?: (string|null); + /** NetworkInterface networkAttachment. */ + public networkAttachment?: (string|null); + /** NetworkInterface networkIP. */ public networkIP?: (string|null); @@ -102207,6 +102423,9 @@ export namespace google { /** NetworkInterface _network. */ public _network?: "network"; + /** NetworkInterface _networkAttachment. */ + public _networkAttachment?: "networkAttachment"; + /** NetworkInterface _networkIP. */ public _networkIP?: "networkIP"; @@ -124028,6 +124247,9 @@ export namespace google { /** Reservation resourcePolicies */ resourcePolicies?: ({ [k: string]: string }|null); + /** Reservation resourceStatus */ + resourceStatus?: (google.cloud.compute.v1.IAllocationResourceStatus|null); + /** Reservation satisfiesPzs */ satisfiesPzs?: (boolean|null); @@ -124080,6 +124302,9 @@ export namespace google { /** Reservation resourcePolicies. */ public resourcePolicies: { [k: string]: string }; + /** Reservation resourceStatus. */ + public resourceStatus?: (google.cloud.compute.v1.IAllocationResourceStatus|null); + /** Reservation satisfiesPzs. */ public satisfiesPzs?: (boolean|null); @@ -124119,6 +124344,9 @@ export namespace google { /** Reservation _name. */ public _name?: "name"; + /** Reservation _resourceStatus. */ + public _resourceStatus?: "resourceStatus"; + /** Reservation _satisfiesPzs. */ public _satisfiesPzs?: "satisfiesPzs"; diff --git a/packages/google-cloud-compute/protos/protos.js b/packages/google-cloud-compute/protos/protos.js index 81c460c0434..c2a1845f43b 100644 --- a/packages/google-cloud-compute/protos/protos.js +++ b/packages/google-cloud-compute/protos/protos.js @@ -29498,6 +29498,454 @@ return AliasIpRange; })(); + v1.AllocationResourceStatus = (function() { + + /** + * Properties of an AllocationResourceStatus. + * @memberof google.cloud.compute.v1 + * @interface IAllocationResourceStatus + * @property {google.cloud.compute.v1.IAllocationResourceStatusSpecificSKUAllocation|null} [specificSkuAllocation] AllocationResourceStatus specificSkuAllocation + */ + + /** + * Constructs a new AllocationResourceStatus. + * @memberof google.cloud.compute.v1 + * @classdesc Represents an AllocationResourceStatus. + * @implements IAllocationResourceStatus + * @constructor + * @param {google.cloud.compute.v1.IAllocationResourceStatus=} [properties] Properties to set + */ + function AllocationResourceStatus(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * AllocationResourceStatus specificSkuAllocation. + * @member {google.cloud.compute.v1.IAllocationResourceStatusSpecificSKUAllocation|null|undefined} specificSkuAllocation + * @memberof google.cloud.compute.v1.AllocationResourceStatus + * @instance + */ + AllocationResourceStatus.prototype.specificSkuAllocation = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * AllocationResourceStatus _specificSkuAllocation. + * @member {"specificSkuAllocation"|undefined} _specificSkuAllocation + * @memberof google.cloud.compute.v1.AllocationResourceStatus + * @instance + */ + Object.defineProperty(AllocationResourceStatus.prototype, "_specificSkuAllocation", { + get: $util.oneOfGetter($oneOfFields = ["specificSkuAllocation"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new AllocationResourceStatus instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.AllocationResourceStatus + * @static + * @param {google.cloud.compute.v1.IAllocationResourceStatus=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AllocationResourceStatus} AllocationResourceStatus instance + */ + AllocationResourceStatus.create = function create(properties) { + return new AllocationResourceStatus(properties); + }; + + /** + * Encodes the specified AllocationResourceStatus message. Does not implicitly {@link google.cloud.compute.v1.AllocationResourceStatus.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.AllocationResourceStatus + * @static + * @param {google.cloud.compute.v1.IAllocationResourceStatus} message AllocationResourceStatus message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AllocationResourceStatus.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.specificSkuAllocation != null && Object.hasOwnProperty.call(message, "specificSkuAllocation")) + $root.google.cloud.compute.v1.AllocationResourceStatusSpecificSKUAllocation.encode(message.specificSkuAllocation, writer.uint32(/* id 196231151, wireType 2 =*/1569849210).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified AllocationResourceStatus message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AllocationResourceStatus.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.AllocationResourceStatus + * @static + * @param {google.cloud.compute.v1.IAllocationResourceStatus} message AllocationResourceStatus message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AllocationResourceStatus.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AllocationResourceStatus message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.AllocationResourceStatus + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.AllocationResourceStatus} AllocationResourceStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AllocationResourceStatus.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AllocationResourceStatus(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 196231151: { + message.specificSkuAllocation = $root.google.cloud.compute.v1.AllocationResourceStatusSpecificSKUAllocation.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AllocationResourceStatus message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.AllocationResourceStatus + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.AllocationResourceStatus} AllocationResourceStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AllocationResourceStatus.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AllocationResourceStatus message. + * @function verify + * @memberof google.cloud.compute.v1.AllocationResourceStatus + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AllocationResourceStatus.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.specificSkuAllocation != null && message.hasOwnProperty("specificSkuAllocation")) { + properties._specificSkuAllocation = 1; + { + var error = $root.google.cloud.compute.v1.AllocationResourceStatusSpecificSKUAllocation.verify(message.specificSkuAllocation); + if (error) + return "specificSkuAllocation." + error; + } + } + return null; + }; + + /** + * Creates an AllocationResourceStatus message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.AllocationResourceStatus + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.AllocationResourceStatus} AllocationResourceStatus + */ + AllocationResourceStatus.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AllocationResourceStatus) + return object; + var message = new $root.google.cloud.compute.v1.AllocationResourceStatus(); + if (object.specificSkuAllocation != null) { + if (typeof object.specificSkuAllocation !== "object") + throw TypeError(".google.cloud.compute.v1.AllocationResourceStatus.specificSkuAllocation: object expected"); + message.specificSkuAllocation = $root.google.cloud.compute.v1.AllocationResourceStatusSpecificSKUAllocation.fromObject(object.specificSkuAllocation); + } + return message; + }; + + /** + * Creates a plain object from an AllocationResourceStatus message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.AllocationResourceStatus + * @static + * @param {google.cloud.compute.v1.AllocationResourceStatus} message AllocationResourceStatus + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AllocationResourceStatus.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.specificSkuAllocation != null && message.hasOwnProperty("specificSkuAllocation")) { + object.specificSkuAllocation = $root.google.cloud.compute.v1.AllocationResourceStatusSpecificSKUAllocation.toObject(message.specificSkuAllocation, options); + if (options.oneofs) + object._specificSkuAllocation = "specificSkuAllocation"; + } + return object; + }; + + /** + * Converts this AllocationResourceStatus to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.AllocationResourceStatus + * @instance + * @returns {Object.} JSON object + */ + AllocationResourceStatus.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for AllocationResourceStatus + * @function getTypeUrl + * @memberof google.cloud.compute.v1.AllocationResourceStatus + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AllocationResourceStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.AllocationResourceStatus"; + }; + + return AllocationResourceStatus; + })(); + + v1.AllocationResourceStatusSpecificSKUAllocation = (function() { + + /** + * Properties of an AllocationResourceStatusSpecificSKUAllocation. + * @memberof google.cloud.compute.v1 + * @interface IAllocationResourceStatusSpecificSKUAllocation + * @property {string|null} [sourceInstanceTemplateId] AllocationResourceStatusSpecificSKUAllocation sourceInstanceTemplateId + */ + + /** + * Constructs a new AllocationResourceStatusSpecificSKUAllocation. + * @memberof google.cloud.compute.v1 + * @classdesc Represents an AllocationResourceStatusSpecificSKUAllocation. + * @implements IAllocationResourceStatusSpecificSKUAllocation + * @constructor + * @param {google.cloud.compute.v1.IAllocationResourceStatusSpecificSKUAllocation=} [properties] Properties to set + */ + function AllocationResourceStatusSpecificSKUAllocation(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * AllocationResourceStatusSpecificSKUAllocation sourceInstanceTemplateId. + * @member {string|null|undefined} sourceInstanceTemplateId + * @memberof google.cloud.compute.v1.AllocationResourceStatusSpecificSKUAllocation + * @instance + */ + AllocationResourceStatusSpecificSKUAllocation.prototype.sourceInstanceTemplateId = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * AllocationResourceStatusSpecificSKUAllocation _sourceInstanceTemplateId. + * @member {"sourceInstanceTemplateId"|undefined} _sourceInstanceTemplateId + * @memberof google.cloud.compute.v1.AllocationResourceStatusSpecificSKUAllocation + * @instance + */ + Object.defineProperty(AllocationResourceStatusSpecificSKUAllocation.prototype, "_sourceInstanceTemplateId", { + get: $util.oneOfGetter($oneOfFields = ["sourceInstanceTemplateId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new AllocationResourceStatusSpecificSKUAllocation instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.AllocationResourceStatusSpecificSKUAllocation + * @static + * @param {google.cloud.compute.v1.IAllocationResourceStatusSpecificSKUAllocation=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AllocationResourceStatusSpecificSKUAllocation} AllocationResourceStatusSpecificSKUAllocation instance + */ + AllocationResourceStatusSpecificSKUAllocation.create = function create(properties) { + return new AllocationResourceStatusSpecificSKUAllocation(properties); + }; + + /** + * Encodes the specified AllocationResourceStatusSpecificSKUAllocation message. Does not implicitly {@link google.cloud.compute.v1.AllocationResourceStatusSpecificSKUAllocation.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.AllocationResourceStatusSpecificSKUAllocation + * @static + * @param {google.cloud.compute.v1.IAllocationResourceStatusSpecificSKUAllocation} message AllocationResourceStatusSpecificSKUAllocation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AllocationResourceStatusSpecificSKUAllocation.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.sourceInstanceTemplateId != null && Object.hasOwnProperty.call(message, "sourceInstanceTemplateId")) + writer.uint32(/* id 111196154, wireType 2 =*/889569234).string(message.sourceInstanceTemplateId); + return writer; + }; + + /** + * Encodes the specified AllocationResourceStatusSpecificSKUAllocation message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AllocationResourceStatusSpecificSKUAllocation.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.AllocationResourceStatusSpecificSKUAllocation + * @static + * @param {google.cloud.compute.v1.IAllocationResourceStatusSpecificSKUAllocation} message AllocationResourceStatusSpecificSKUAllocation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AllocationResourceStatusSpecificSKUAllocation.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AllocationResourceStatusSpecificSKUAllocation message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.AllocationResourceStatusSpecificSKUAllocation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.AllocationResourceStatusSpecificSKUAllocation} AllocationResourceStatusSpecificSKUAllocation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AllocationResourceStatusSpecificSKUAllocation.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AllocationResourceStatusSpecificSKUAllocation(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 111196154: { + message.sourceInstanceTemplateId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AllocationResourceStatusSpecificSKUAllocation message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.AllocationResourceStatusSpecificSKUAllocation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.AllocationResourceStatusSpecificSKUAllocation} AllocationResourceStatusSpecificSKUAllocation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AllocationResourceStatusSpecificSKUAllocation.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AllocationResourceStatusSpecificSKUAllocation message. + * @function verify + * @memberof google.cloud.compute.v1.AllocationResourceStatusSpecificSKUAllocation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AllocationResourceStatusSpecificSKUAllocation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.sourceInstanceTemplateId != null && message.hasOwnProperty("sourceInstanceTemplateId")) { + properties._sourceInstanceTemplateId = 1; + if (!$util.isString(message.sourceInstanceTemplateId)) + return "sourceInstanceTemplateId: string expected"; + } + return null; + }; + + /** + * Creates an AllocationResourceStatusSpecificSKUAllocation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.AllocationResourceStatusSpecificSKUAllocation + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.AllocationResourceStatusSpecificSKUAllocation} AllocationResourceStatusSpecificSKUAllocation + */ + AllocationResourceStatusSpecificSKUAllocation.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AllocationResourceStatusSpecificSKUAllocation) + return object; + var message = new $root.google.cloud.compute.v1.AllocationResourceStatusSpecificSKUAllocation(); + if (object.sourceInstanceTemplateId != null) + message.sourceInstanceTemplateId = String(object.sourceInstanceTemplateId); + return message; + }; + + /** + * Creates a plain object from an AllocationResourceStatusSpecificSKUAllocation message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.AllocationResourceStatusSpecificSKUAllocation + * @static + * @param {google.cloud.compute.v1.AllocationResourceStatusSpecificSKUAllocation} message AllocationResourceStatusSpecificSKUAllocation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AllocationResourceStatusSpecificSKUAllocation.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.sourceInstanceTemplateId != null && message.hasOwnProperty("sourceInstanceTemplateId")) { + object.sourceInstanceTemplateId = message.sourceInstanceTemplateId; + if (options.oneofs) + object._sourceInstanceTemplateId = "sourceInstanceTemplateId"; + } + return object; + }; + + /** + * Converts this AllocationResourceStatusSpecificSKUAllocation to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.AllocationResourceStatusSpecificSKUAllocation + * @instance + * @returns {Object.} JSON object + */ + AllocationResourceStatusSpecificSKUAllocation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for AllocationResourceStatusSpecificSKUAllocation + * @function getTypeUrl + * @memberof google.cloud.compute.v1.AllocationResourceStatusSpecificSKUAllocation + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AllocationResourceStatusSpecificSKUAllocation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.AllocationResourceStatusSpecificSKUAllocation"; + }; + + return AllocationResourceStatusSpecificSKUAllocation; + })(); + v1.AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk = (function() { /** @@ -30180,6 +30628,7 @@ * @property {number|Long|null} [count] AllocationSpecificSKUReservation count * @property {number|Long|null} [inUseCount] AllocationSpecificSKUReservation inUseCount * @property {google.cloud.compute.v1.IAllocationSpecificSKUAllocationReservedInstanceProperties|null} [instanceProperties] AllocationSpecificSKUReservation instanceProperties + * @property {string|null} [sourceInstanceTemplate] AllocationSpecificSKUReservation sourceInstanceTemplate */ /** @@ -30229,6 +30678,14 @@ */ AllocationSpecificSKUReservation.prototype.instanceProperties = null; + /** + * AllocationSpecificSKUReservation sourceInstanceTemplate. + * @member {string|null|undefined} sourceInstanceTemplate + * @memberof google.cloud.compute.v1.AllocationSpecificSKUReservation + * @instance + */ + AllocationSpecificSKUReservation.prototype.sourceInstanceTemplate = null; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -30276,6 +30733,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * AllocationSpecificSKUReservation _sourceInstanceTemplate. + * @member {"sourceInstanceTemplate"|undefined} _sourceInstanceTemplate + * @memberof google.cloud.compute.v1.AllocationSpecificSKUReservation + * @instance + */ + Object.defineProperty(AllocationSpecificSKUReservation.prototype, "_sourceInstanceTemplate", { + get: $util.oneOfGetter($oneOfFields = ["sourceInstanceTemplate"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Creates a new AllocationSpecificSKUReservation instance using the specified properties. * @function create @@ -30306,6 +30774,8 @@ $root.google.cloud.compute.v1.AllocationSpecificSKUAllocationReservedInstanceProperties.encode(message.instanceProperties, writer.uint32(/* id 215355165, wireType 2 =*/1722841322).fork()).ldelim(); if (message.assuredCount != null && Object.hasOwnProperty.call(message, "assuredCount")) writer.uint32(/* id 281197645, wireType 0 =*/2249581160).int64(message.assuredCount); + if (message.sourceInstanceTemplate != null && Object.hasOwnProperty.call(message, "sourceInstanceTemplate")) + writer.uint32(/* id 332423616, wireType 2 =*/2659388930).string(message.sourceInstanceTemplate); if (message.inUseCount != null && Object.hasOwnProperty.call(message, "inUseCount")) writer.uint32(/* id 493458877, wireType 0 =*/3947671016).int64(message.inUseCount); return writer; @@ -30358,6 +30828,10 @@ message.instanceProperties = $root.google.cloud.compute.v1.AllocationSpecificSKUAllocationReservedInstanceProperties.decode(reader, reader.uint32()); break; } + case 332423616: { + message.sourceInstanceTemplate = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -30417,6 +30891,11 @@ return "instanceProperties." + error; } } + if (message.sourceInstanceTemplate != null && message.hasOwnProperty("sourceInstanceTemplate")) { + properties._sourceInstanceTemplate = 1; + if (!$util.isString(message.sourceInstanceTemplate)) + return "sourceInstanceTemplate: string expected"; + } return null; }; @@ -30464,6 +30943,8 @@ throw TypeError(".google.cloud.compute.v1.AllocationSpecificSKUReservation.instanceProperties: object expected"); message.instanceProperties = $root.google.cloud.compute.v1.AllocationSpecificSKUAllocationReservedInstanceProperties.fromObject(object.instanceProperties); } + if (object.sourceInstanceTemplate != null) + message.sourceInstanceTemplate = String(object.sourceInstanceTemplate); return message; }; @@ -30501,6 +30982,11 @@ if (options.oneofs) object._assuredCount = "assuredCount"; } + if (message.sourceInstanceTemplate != null && message.hasOwnProperty("sourceInstanceTemplate")) { + object.sourceInstanceTemplate = message.sourceInstanceTemplate; + if (options.oneofs) + object._sourceInstanceTemplate = "sourceInstanceTemplate"; + } if (message.inUseCount != null && message.hasOwnProperty("inUseCount")) { if (typeof message.inUseCount === "number") object.inUseCount = options.longs === String ? String(message.inUseCount) : message.inUseCount; @@ -144417,6 +144903,7 @@ * @property {number} MULTI_IP_SUBNET=151776719 MULTI_IP_SUBNET value * @property {number} SECURE_BOOT=376811194 SECURE_BOOT value * @property {number} SEV_CAPABLE=87083793 SEV_CAPABLE value + * @property {number} SEV_SNP_CAPABLE=426919 SEV_SNP_CAPABLE value * @property {number} UEFI_COMPATIBLE=195865408 UEFI_COMPATIBLE value * @property {number} VIRTIO_SCSI_MULTIQUEUE=201597069 VIRTIO_SCSI_MULTIQUEUE value * @property {number} WINDOWS=456863331 WINDOWS value @@ -144429,6 +144916,7 @@ values[valuesById[151776719] = "MULTI_IP_SUBNET"] = 151776719; values[valuesById[376811194] = "SECURE_BOOT"] = 376811194; values[valuesById[87083793] = "SEV_CAPABLE"] = 87083793; + values[valuesById[426919] = "SEV_SNP_CAPABLE"] = 426919; values[valuesById[195865408] = "UEFI_COMPATIBLE"] = 195865408; values[valuesById[201597069] = "VIRTIO_SCSI_MULTIQUEUE"] = 201597069; values[valuesById[456863331] = "WINDOWS"] = 456863331; @@ -276127,6 +276615,7 @@ * @property {string|null} [kind] NetworkInterface kind * @property {string|null} [name] NetworkInterface name * @property {string|null} [network] NetworkInterface network + * @property {string|null} [networkAttachment] NetworkInterface networkAttachment * @property {string|null} [networkIP] NetworkInterface networkIP * @property {string|null} [nicType] NetworkInterface nicType * @property {number|null} [queueCount] NetworkInterface queueCount @@ -276232,6 +276721,14 @@ */ NetworkInterface.prototype.network = null; + /** + * NetworkInterface networkAttachment. + * @member {string|null|undefined} networkAttachment + * @memberof google.cloud.compute.v1.NetworkInterface + * @instance + */ + NetworkInterface.prototype.networkAttachment = null; + /** * NetworkInterface networkIP. * @member {string|null|undefined} networkIP @@ -276352,6 +276849,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * NetworkInterface _networkAttachment. + * @member {"networkAttachment"|undefined} _networkAttachment + * @memberof google.cloud.compute.v1.NetworkInterface + * @instance + */ + Object.defineProperty(NetworkInterface.prototype, "_networkAttachment", { + get: $util.oneOfGetter($oneOfFields = ["networkAttachment"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * NetworkInterface _networkIP. * @member {"networkIP"|undefined} _networkIP @@ -276447,6 +276955,8 @@ writer.uint32(/* id 203833757, wireType 0 =*/1630670056).int32(message.internalIpv6PrefixLength); if (message.networkIP != null && Object.hasOwnProperty.call(message, "networkIP")) writer.uint32(/* id 207181961, wireType 2 =*/1657455690).string(message.networkIP); + if (message.networkAttachment != null && Object.hasOwnProperty.call(message, "networkAttachment")) + writer.uint32(/* id 224644052, wireType 2 =*/1797152418).string(message.networkAttachment); if (message.network != null && Object.hasOwnProperty.call(message, "network")) writer.uint32(/* id 232872494, wireType 2 =*/1862979954).string(message.network); if (message.fingerprint != null && Object.hasOwnProperty.call(message, "fingerprint")) @@ -276544,6 +277054,10 @@ message.network = reader.string(); break; } + case 224644052: { + message.networkAttachment = reader.string(); + break; + } case 207181961: { message.networkIP = reader.string(); break; @@ -276662,6 +277176,11 @@ if (!$util.isString(message.network)) return "network: string expected"; } + if (message.networkAttachment != null && message.hasOwnProperty("networkAttachment")) { + properties._networkAttachment = 1; + if (!$util.isString(message.networkAttachment)) + return "networkAttachment: string expected"; + } if (message.networkIP != null && message.hasOwnProperty("networkIP")) { properties._networkIP = 1; if (!$util.isString(message.networkIP)) @@ -276746,6 +277265,8 @@ message.name = String(object.name); if (object.network != null) message.network = String(object.network); + if (object.networkAttachment != null) + message.networkAttachment = String(object.networkAttachment); if (object.networkIP != null) message.networkIP = String(object.networkIP); if (object.nicType != null) @@ -276812,6 +277333,11 @@ if (options.oneofs) object._networkIP = "networkIP"; } + if (message.networkAttachment != null && message.hasOwnProperty("networkAttachment")) { + object.networkAttachment = message.networkAttachment; + if (options.oneofs) + object._networkAttachment = "networkAttachment"; + } if (message.network != null && message.hasOwnProperty("network")) { object.network = message.network; if (options.oneofs) @@ -335958,6 +336484,7 @@ * @property {string|null} [kind] Reservation kind * @property {string|null} [name] Reservation name * @property {Object.|null} [resourcePolicies] Reservation resourcePolicies + * @property {google.cloud.compute.v1.IAllocationResourceStatus|null} [resourceStatus] Reservation resourceStatus * @property {boolean|null} [satisfiesPzs] Reservation satisfiesPzs * @property {string|null} [selfLink] Reservation selfLink * @property {google.cloud.compute.v1.IShareSettings|null} [shareSettings] Reservation shareSettings @@ -336039,6 +336566,14 @@ */ Reservation.prototype.resourcePolicies = $util.emptyObject; + /** + * Reservation resourceStatus. + * @member {google.cloud.compute.v1.IAllocationResourceStatus|null|undefined} resourceStatus + * @memberof google.cloud.compute.v1.Reservation + * @instance + */ + Reservation.prototype.resourceStatus = null; + /** * Reservation satisfiesPzs. * @member {boolean|null|undefined} satisfiesPzs @@ -336164,6 +336699,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * Reservation _resourceStatus. + * @member {"resourceStatus"|undefined} _resourceStatus + * @memberof google.cloud.compute.v1.Reservation + * @instance + */ + Object.defineProperty(Reservation.prototype, "_resourceStatus", { + get: $util.oneOfGetter($oneOfFields = ["resourceStatus"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Reservation _satisfiesPzs. * @member {"satisfiesPzs"|undefined} _satisfiesPzs @@ -336282,6 +336828,8 @@ writer.uint32(/* id 181260274, wireType 2 =*/1450082194).string(message.status); if (message.specificReservationRequired != null && Object.hasOwnProperty.call(message, "specificReservationRequired")) writer.uint32(/* id 226550687, wireType 0 =*/1812405496).bool(message.specificReservationRequired); + if (message.resourceStatus != null && Object.hasOwnProperty.call(message, "resourceStatus")) + $root.google.cloud.compute.v1.AllocationResourceStatus.encode(message.resourceStatus, writer.uint32(/* id 249429315, wireType 2 =*/1995434522).fork()).ldelim(); if (message.shareSettings != null && Object.hasOwnProperty.call(message, "shareSettings")) $root.google.cloud.compute.v1.ShareSettings.encode(message.shareSettings, writer.uint32(/* id 266668163, wireType 2 =*/2133345306).fork()).ldelim(); if (message.specificReservation != null && Object.hasOwnProperty.call(message, "specificReservation")) @@ -336375,6 +336923,10 @@ message.resourcePolicies[key] = value; break; } + case 249429315: { + message.resourceStatus = $root.google.cloud.compute.v1.AllocationResourceStatus.decode(reader, reader.uint32()); + break; + } case 480964267: { message.satisfiesPzs = reader.bool(); break; @@ -336477,6 +337029,14 @@ if (!$util.isString(message.resourcePolicies[key[i]])) return "resourcePolicies: string{k:string} expected"; } + if (message.resourceStatus != null && message.hasOwnProperty("resourceStatus")) { + properties._resourceStatus = 1; + { + var error = $root.google.cloud.compute.v1.AllocationResourceStatus.verify(message.resourceStatus); + if (error) + return "resourceStatus." + error; + } + } if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) { properties._satisfiesPzs = 1; if (typeof message.satisfiesPzs !== "boolean") @@ -336559,6 +337119,11 @@ for (var keys = Object.keys(object.resourcePolicies), i = 0; i < keys.length; ++i) message.resourcePolicies[keys[i]] = String(object.resourcePolicies[keys[i]]); } + if (object.resourceStatus != null) { + if (typeof object.resourceStatus !== "object") + throw TypeError(".google.cloud.compute.v1.Reservation.resourceStatus: object expected"); + message.resourceStatus = $root.google.cloud.compute.v1.AllocationResourceStatus.fromObject(object.resourceStatus); + } if (object.satisfiesPzs != null) message.satisfiesPzs = Boolean(object.satisfiesPzs); if (object.selfLink != null) @@ -336641,6 +337206,11 @@ if (options.oneofs) object._specificReservationRequired = "specificReservationRequired"; } + if (message.resourceStatus != null && message.hasOwnProperty("resourceStatus")) { + object.resourceStatus = $root.google.cloud.compute.v1.AllocationResourceStatus.toObject(message.resourceStatus, options); + if (options.oneofs) + object._resourceStatus = "resourceStatus"; + } if (message.shareSettings != null && message.hasOwnProperty("shareSettings")) { object.shareSettings = $root.google.cloud.compute.v1.ShareSettings.toObject(message.shareSettings, options); if (options.oneofs) diff --git a/packages/google-cloud-compute/protos/protos.json b/packages/google-cloud-compute/protos/protos.json index d08c1ea0823..c344b97ef31 100644 --- a/packages/google-cloud-compute/protos/protos.json +++ b/packages/google-cloud-compute/protos/protos.json @@ -5387,6 +5387,42 @@ } } }, + "AllocationResourceStatus": { + "oneofs": { + "_specificSkuAllocation": { + "oneof": [ + "specificSkuAllocation" + ] + } + }, + "fields": { + "specificSkuAllocation": { + "type": "AllocationResourceStatusSpecificSKUAllocation", + "id": 196231151, + "options": { + "proto3_optional": true + } + } + } + }, + "AllocationResourceStatusSpecificSKUAllocation": { + "oneofs": { + "_sourceInstanceTemplateId": { + "oneof": [ + "sourceInstanceTemplateId" + ] + } + }, + "fields": { + "sourceInstanceTemplateId": { + "type": "string", + "id": 111196154, + "options": { + "proto3_optional": true + } + } + } + }, "AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk": { "oneofs": { "_diskSizeGb": { @@ -5499,6 +5535,11 @@ "oneof": [ "instanceProperties" ] + }, + "_sourceInstanceTemplate": { + "oneof": [ + "sourceInstanceTemplate" + ] } }, "fields": { @@ -5529,6 +5570,13 @@ "options": { "proto3_optional": true } + }, + "sourceInstanceTemplate": { + "type": "string", + "id": 332423616, + "options": { + "proto3_optional": true + } } } }, @@ -21392,6 +21440,7 @@ "MULTI_IP_SUBNET": 151776719, "SECURE_BOOT": 376811194, "SEV_CAPABLE": 87083793, + "SEV_SNP_CAPABLE": 426919, "UEFI_COMPATIBLE": 195865408, "VIRTIO_SCSI_MULTIQUEUE": 201597069, "WINDOWS": 456863331 @@ -43456,6 +43505,11 @@ "network" ] }, + "_networkAttachment": { + "oneof": [ + "networkAttachment" + ] + }, "_networkIP": { "oneof": [ "networkIP" @@ -43547,6 +43601,13 @@ "proto3_optional": true } }, + "networkAttachment": { + "type": "string", + "id": 224644052, + "options": { + "proto3_optional": true + } + }, "networkIP": { "type": "string", "id": 207181961, @@ -52685,6 +52746,11 @@ "name" ] }, + "_resourceStatus": { + "oneof": [ + "resourceStatus" + ] + }, "_satisfiesPzs": { "oneof": [ "satisfiesPzs" @@ -52769,6 +52835,13 @@ "type": "string", "id": 22220385 }, + "resourceStatus": { + "type": "AllocationResourceStatus", + "id": 249429315, + "options": { + "proto3_optional": true + } + }, "satisfiesPzs": { "type": "bool", "id": 480964267,