diff --git a/packages/google-container/protos/google/container/v1/cluster_service.proto b/packages/google-container/protos/google/container/v1/cluster_service.proto index f79bff88adf..2013c15fe8c 100644 --- a/packages/google-container/protos/google/container/v1/cluster_service.proto +++ b/packages/google-container/protos/google/container/v1/cluster_service.proto @@ -565,6 +565,9 @@ message LinuxNodeConfig { // net.ipv4.tcp_rmem // net.ipv4.tcp_wmem // net.ipv4.tcp_tw_reuse + // kernel.shmmni + // kernel.shmmax + // kernel.shmall map sysctls = 1; // cgroup_mode specifies the cgroup mode to be used on the node. @@ -647,6 +650,26 @@ message NodeKubeletConfig { // [AutoprovisioningNodePoolDefaults][google.container.v1.AutoprovisioningNodePoolDefaults] // instead. message NodeConfig { + // LocalSsdEncryptionMode specifies the method used for encrypting the Local + // SSDs attached to the node. + enum LocalSsdEncryptionMode { + // The given node will be encrypted using keys managed by Google + // infrastructure and the keys will be deleted when the node is + // deleted. + LOCAL_SSD_ENCRYPTION_MODE_UNSPECIFIED = 0; + + // The given node will be encrypted using keys managed by Google + // infrastructure and the keys will be deleted when the node is + // deleted. + STANDARD_ENCRYPTION = 1; + + // The given node will opt-in for using ephemeral key for + // encryption of Local SSDs. + // The Local SSDs will not be able to recover data in case of node + // crash. + EPHEMERAL_KEY_ENCRYPTION = 2; + } + // Possible effective cgroup modes for the node. enum EffectiveCgroupMode { // EFFECTIVE_CGROUP_MODE_UNSPECIFIED means the cgroup configuration for the @@ -887,6 +910,10 @@ message NodeConfig { optional SecondaryBootDiskUpdateStrategy secondary_boot_disk_update_strategy = 50; + // Specifies which method should be used for encrypting the + // Local SSDs attahced to the node. + optional LocalSsdEncryptionMode local_ssd_encryption_mode = 54; + // Output only. effective_cgroup_mode is the cgroup mode actually used by the // node pool. It is determined by the cgroup mode specified in the // LinuxNodeConfig or the default cgroup mode based on the cluster creation @@ -2358,6 +2385,10 @@ message NodePoolAutoConfig { // // Currently only `insecure_kubelet_readonly_port_enabled` can be set here. NodeKubeletConfig node_kubelet_config = 3; + + // Output only. Configuration options for Linux nodes. + LinuxNodeConfig linux_node_config = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Subset of Nodepool message that has defaults. @@ -2662,6 +2693,15 @@ message ClusterUpdate { // RBACBindingConfig allows user to restrict ClusterRoleBindings an // RoleBindings that can be created. optional RBACBindingConfig desired_rbac_binding_config = 144; + + // The desired enterprise configuration for the cluster. + DesiredEnterpriseConfig desired_enterprise_config = 147; + + // The desired Linux node config for all auto-provisioned node pools + // in autopilot clusters and node auto-provisioning enabled clusters. + // + // Currently only `cgroup_mode` can be set here. + LinuxNodeConfig desired_node_pool_auto_config_linux_node_config = 150; } // AdditionalPodRangesConfig is the configuration for additional pod secondary @@ -2684,6 +2724,12 @@ message RangeInfo { double utilization = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; } +// DesiredEnterpriseConfig is a wrapper used for updating enterprise_config. +message DesiredEnterpriseConfig { + // desired_tier specifies the desired tier of the cluster. + EnterpriseConfig.ClusterTier desired_tier = 1; +} + // This operation resource represents operations that may have happened or are // happening on the cluster. All fields are output only. message Operation { @@ -4402,11 +4448,11 @@ message NodePoolAutoscaling { // Is autoscaling enabled for this node pool. bool enabled = 1; - // Minimum number of nodes for one location in the NodePool. Must be >= 1 and - // <= max_node_count. + // Minimum number of nodes for one location in the node pool. Must be greater + // than or equal to 0 and less than or equal to max_node_count. int32 min_node_count = 2; - // Maximum number of nodes for one location in the NodePool. Must be >= + // Maximum number of nodes for one location in the node pool. Must be >= // min_node_count. There has to be enough quota to scale up the cluster. int32 max_node_count = 3; @@ -4416,13 +4462,13 @@ message NodePoolAutoscaling { // Location policy used when scaling up a nodepool. LocationPolicy location_policy = 5; - // Minimum number of nodes in the node pool. Must be greater than 1 less than - // total_max_node_count. + // Minimum number of nodes in the node pool. Must be greater than or equal + // to 0 and less than or equal to total_max_node_count. // The total_*_node_count fields are mutually exclusive with the *_node_count // fields. int32 total_min_node_count = 6; - // Maximum number of nodes in the node pool. Must be greater than + // Maximum number of nodes in the node pool. Must be greater than or equal to // total_min_node_count. There has to be enough quota to scale up the cluster. // The total_*_node_count fields are mutually exclusive with the *_node_count // fields. @@ -5451,6 +5497,56 @@ message UpgradeEvent { string resource = 6; } +// UpgradeInfoEvent is a notification sent to customers about the upgrade +// information of a resource. +message UpgradeInfoEvent { + // The state of the upgrade. + enum State { + // STATE_UNSPECIFIED indicates the state is unspecified. + STATE_UNSPECIFIED = 0; + + // STARTED indicates the upgrade has started. + STARTED = 3; + + // SUCCEEDED indicates the upgrade has completed successfully. + SUCCEEDED = 4; + + // FAILED indicates the upgrade has failed. + FAILED = 5; + + // CANCELED indicates the upgrade has canceled. + CANCELED = 6; + } + + // The resource type associated with the upgrade. + UpgradeResourceType resource_type = 1; + + // The operation associated with this upgrade. + string operation = 2; + + // The time when the operation was started. + google.protobuf.Timestamp start_time = 3; + + // The time when the operation ended. + google.protobuf.Timestamp end_time = 4; + + // The current version before the upgrade. + string current_version = 5; + + // The target version for the upgrade. + string target_version = 6; + + // Optional relative path to the resource. For example in node pool upgrades, + // the relative path of the node pool. + string resource = 7; + + // Output only. The state of the upgrade. + State state = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // A brief description of the event. + string description = 11; +} + // UpgradeAvailableEvent is a notification sent to customers when a new // available version is released. message UpgradeAvailableEvent { @@ -5915,6 +6011,9 @@ message EnterpriseConfig { // Output only. cluster_tier indicates the effective tier of the cluster. ClusterTier cluster_tier = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // desired_tier specifies the desired tier of the cluster. + ClusterTier desired_tier = 2; } // SecretManagerConfig is config for secret manager enablement. diff --git a/packages/google-container/protos/protos.d.ts b/packages/google-container/protos/protos.d.ts index 52965e8acd3..3605fd3e161 100644 --- a/packages/google-container/protos/protos.d.ts +++ b/packages/google-container/protos/protos.d.ts @@ -1346,6 +1346,9 @@ export namespace google { /** NodeConfig secondaryBootDiskUpdateStrategy */ secondaryBootDiskUpdateStrategy?: (google.container.v1.ISecondaryBootDiskUpdateStrategy|null); + /** NodeConfig localSsdEncryptionMode */ + localSsdEncryptionMode?: (google.container.v1.NodeConfig.LocalSsdEncryptionMode|keyof typeof google.container.v1.NodeConfig.LocalSsdEncryptionMode|null); + /** NodeConfig effectiveCgroupMode */ effectiveCgroupMode?: (google.container.v1.NodeConfig.EffectiveCgroupMode|keyof typeof google.container.v1.NodeConfig.EffectiveCgroupMode|null); } @@ -1479,6 +1482,9 @@ export namespace google { /** NodeConfig secondaryBootDiskUpdateStrategy. */ public secondaryBootDiskUpdateStrategy?: (google.container.v1.ISecondaryBootDiskUpdateStrategy|null); + /** NodeConfig localSsdEncryptionMode. */ + public localSsdEncryptionMode?: (google.container.v1.NodeConfig.LocalSsdEncryptionMode|keyof typeof google.container.v1.NodeConfig.LocalSsdEncryptionMode|null); + /** NodeConfig effectiveCgroupMode. */ public effectiveCgroupMode: (google.container.v1.NodeConfig.EffectiveCgroupMode|keyof typeof google.container.v1.NodeConfig.EffectiveCgroupMode); @@ -1488,6 +1494,9 @@ export namespace google { /** NodeConfig _secondaryBootDiskUpdateStrategy. */ public _secondaryBootDiskUpdateStrategy?: "secondaryBootDiskUpdateStrategy"; + /** NodeConfig _localSsdEncryptionMode. */ + public _localSsdEncryptionMode?: "localSsdEncryptionMode"; + /** * Creates a new NodeConfig instance using the specified properties. * @param [properties] Properties to set @@ -1568,6 +1577,13 @@ export namespace google { namespace NodeConfig { + /** LocalSsdEncryptionMode enum. */ + enum LocalSsdEncryptionMode { + LOCAL_SSD_ENCRYPTION_MODE_UNSPECIFIED = 0, + STANDARD_ENCRYPTION = 1, + EPHEMERAL_KEY_ENCRYPTION = 2 + } + /** EffectiveCgroupMode enum. */ enum EffectiveCgroupMode { EFFECTIVE_CGROUP_MODE_UNSPECIFIED = 0, @@ -7973,6 +7989,9 @@ export namespace google { /** NodePoolAutoConfig nodeKubeletConfig */ nodeKubeletConfig?: (google.container.v1.INodeKubeletConfig|null); + + /** NodePoolAutoConfig linuxNodeConfig */ + linuxNodeConfig?: (google.container.v1.ILinuxNodeConfig|null); } /** Represents a NodePoolAutoConfig. */ @@ -7993,6 +8012,9 @@ export namespace google { /** NodePoolAutoConfig nodeKubeletConfig. */ public nodeKubeletConfig?: (google.container.v1.INodeKubeletConfig|null); + /** NodePoolAutoConfig linuxNodeConfig. */ + public linuxNodeConfig?: (google.container.v1.ILinuxNodeConfig|null); + /** * Creates a new NodePoolAutoConfig instance using the specified properties. * @param [properties] Properties to set @@ -8471,6 +8493,12 @@ export namespace google { /** ClusterUpdate desiredRbacBindingConfig */ desiredRbacBindingConfig?: (google.container.v1.IRBACBindingConfig|null); + + /** ClusterUpdate desiredEnterpriseConfig */ + desiredEnterpriseConfig?: (google.container.v1.IDesiredEnterpriseConfig|null); + + /** ClusterUpdate desiredNodePoolAutoConfigLinuxNodeConfig */ + desiredNodePoolAutoConfigLinuxNodeConfig?: (google.container.v1.ILinuxNodeConfig|null); } /** Represents a ClusterUpdate. */ @@ -8668,6 +8696,12 @@ export namespace google { /** ClusterUpdate desiredRbacBindingConfig. */ public desiredRbacBindingConfig?: (google.container.v1.IRBACBindingConfig|null); + /** ClusterUpdate desiredEnterpriseConfig. */ + public desiredEnterpriseConfig?: (google.container.v1.IDesiredEnterpriseConfig|null); + + /** ClusterUpdate desiredNodePoolAutoConfigLinuxNodeConfig. */ + public desiredNodePoolAutoConfigLinuxNodeConfig?: (google.container.v1.ILinuxNodeConfig|null); + /** ClusterUpdate _desiredEnablePrivateEndpoint. */ public _desiredEnablePrivateEndpoint?: "desiredEnablePrivateEndpoint"; @@ -8979,6 +9013,103 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a DesiredEnterpriseConfig. */ + interface IDesiredEnterpriseConfig { + + /** DesiredEnterpriseConfig desiredTier */ + desiredTier?: (google.container.v1.EnterpriseConfig.ClusterTier|keyof typeof google.container.v1.EnterpriseConfig.ClusterTier|null); + } + + /** Represents a DesiredEnterpriseConfig. */ + class DesiredEnterpriseConfig implements IDesiredEnterpriseConfig { + + /** + * Constructs a new DesiredEnterpriseConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IDesiredEnterpriseConfig); + + /** DesiredEnterpriseConfig desiredTier. */ + public desiredTier: (google.container.v1.EnterpriseConfig.ClusterTier|keyof typeof google.container.v1.EnterpriseConfig.ClusterTier); + + /** + * Creates a new DesiredEnterpriseConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns DesiredEnterpriseConfig instance + */ + public static create(properties?: google.container.v1.IDesiredEnterpriseConfig): google.container.v1.DesiredEnterpriseConfig; + + /** + * Encodes the specified DesiredEnterpriseConfig message. Does not implicitly {@link google.container.v1.DesiredEnterpriseConfig.verify|verify} messages. + * @param message DesiredEnterpriseConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IDesiredEnterpriseConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DesiredEnterpriseConfig message, length delimited. Does not implicitly {@link google.container.v1.DesiredEnterpriseConfig.verify|verify} messages. + * @param message DesiredEnterpriseConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IDesiredEnterpriseConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DesiredEnterpriseConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DesiredEnterpriseConfig + * @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.container.v1.DesiredEnterpriseConfig; + + /** + * Decodes a DesiredEnterpriseConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DesiredEnterpriseConfig + * @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.container.v1.DesiredEnterpriseConfig; + + /** + * Verifies a DesiredEnterpriseConfig 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 a DesiredEnterpriseConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DesiredEnterpriseConfig + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.DesiredEnterpriseConfig; + + /** + * Creates a plain object from a DesiredEnterpriseConfig message. Also converts values to other types if specified. + * @param message DesiredEnterpriseConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.DesiredEnterpriseConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DesiredEnterpriseConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DesiredEnterpriseConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an Operation. */ interface IOperation { @@ -21351,6 +21482,163 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an UpgradeInfoEvent. */ + interface IUpgradeInfoEvent { + + /** UpgradeInfoEvent resourceType */ + resourceType?: (google.container.v1.UpgradeResourceType|keyof typeof google.container.v1.UpgradeResourceType|null); + + /** UpgradeInfoEvent operation */ + operation?: (string|null); + + /** UpgradeInfoEvent startTime */ + startTime?: (google.protobuf.ITimestamp|null); + + /** UpgradeInfoEvent endTime */ + endTime?: (google.protobuf.ITimestamp|null); + + /** UpgradeInfoEvent currentVersion */ + currentVersion?: (string|null); + + /** UpgradeInfoEvent targetVersion */ + targetVersion?: (string|null); + + /** UpgradeInfoEvent resource */ + resource?: (string|null); + + /** UpgradeInfoEvent state */ + state?: (google.container.v1.UpgradeInfoEvent.State|keyof typeof google.container.v1.UpgradeInfoEvent.State|null); + + /** UpgradeInfoEvent description */ + description?: (string|null); + } + + /** Represents an UpgradeInfoEvent. */ + class UpgradeInfoEvent implements IUpgradeInfoEvent { + + /** + * Constructs a new UpgradeInfoEvent. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IUpgradeInfoEvent); + + /** UpgradeInfoEvent resourceType. */ + public resourceType: (google.container.v1.UpgradeResourceType|keyof typeof google.container.v1.UpgradeResourceType); + + /** UpgradeInfoEvent operation. */ + public operation: string; + + /** UpgradeInfoEvent startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); + + /** UpgradeInfoEvent endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); + + /** UpgradeInfoEvent currentVersion. */ + public currentVersion: string; + + /** UpgradeInfoEvent targetVersion. */ + public targetVersion: string; + + /** UpgradeInfoEvent resource. */ + public resource: string; + + /** UpgradeInfoEvent state. */ + public state: (google.container.v1.UpgradeInfoEvent.State|keyof typeof google.container.v1.UpgradeInfoEvent.State); + + /** UpgradeInfoEvent description. */ + public description: string; + + /** + * Creates a new UpgradeInfoEvent instance using the specified properties. + * @param [properties] Properties to set + * @returns UpgradeInfoEvent instance + */ + public static create(properties?: google.container.v1.IUpgradeInfoEvent): google.container.v1.UpgradeInfoEvent; + + /** + * Encodes the specified UpgradeInfoEvent message. Does not implicitly {@link google.container.v1.UpgradeInfoEvent.verify|verify} messages. + * @param message UpgradeInfoEvent message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IUpgradeInfoEvent, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpgradeInfoEvent message, length delimited. Does not implicitly {@link google.container.v1.UpgradeInfoEvent.verify|verify} messages. + * @param message UpgradeInfoEvent message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IUpgradeInfoEvent, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpgradeInfoEvent message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpgradeInfoEvent + * @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.container.v1.UpgradeInfoEvent; + + /** + * Decodes an UpgradeInfoEvent message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpgradeInfoEvent + * @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.container.v1.UpgradeInfoEvent; + + /** + * Verifies an UpgradeInfoEvent 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 UpgradeInfoEvent message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpgradeInfoEvent + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.UpgradeInfoEvent; + + /** + * Creates a plain object from an UpgradeInfoEvent message. Also converts values to other types if specified. + * @param message UpgradeInfoEvent + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.UpgradeInfoEvent, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpgradeInfoEvent to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpgradeInfoEvent + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace UpgradeInfoEvent { + + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + STARTED = 3, + SUCCEEDED = 4, + FAILED = 5, + CANCELED = 6 + } + } + /** Properties of an UpgradeAvailableEvent. */ interface IUpgradeAvailableEvent { @@ -23661,6 +23949,9 @@ export namespace google { /** EnterpriseConfig clusterTier */ clusterTier?: (google.container.v1.EnterpriseConfig.ClusterTier|keyof typeof google.container.v1.EnterpriseConfig.ClusterTier|null); + + /** EnterpriseConfig desiredTier */ + desiredTier?: (google.container.v1.EnterpriseConfig.ClusterTier|keyof typeof google.container.v1.EnterpriseConfig.ClusterTier|null); } /** Represents an EnterpriseConfig. */ @@ -23675,6 +23966,9 @@ export namespace google { /** EnterpriseConfig clusterTier. */ public clusterTier: (google.container.v1.EnterpriseConfig.ClusterTier|keyof typeof google.container.v1.EnterpriseConfig.ClusterTier); + /** EnterpriseConfig desiredTier. */ + public desiredTier: (google.container.v1.EnterpriseConfig.ClusterTier|keyof typeof google.container.v1.EnterpriseConfig.ClusterTier); + /** * Creates a new EnterpriseConfig instance using the specified properties. * @param [properties] Properties to set diff --git a/packages/google-container/protos/protos.js b/packages/google-container/protos/protos.js index 6e8d336035f..76223167e4a 100644 --- a/packages/google-container/protos/protos.js +++ b/packages/google-container/protos/protos.js @@ -2446,6 +2446,7 @@ * @property {Array.|null} [secondaryBootDisks] NodeConfig secondaryBootDisks * @property {Array.|null} [storagePools] NodeConfig storagePools * @property {google.container.v1.ISecondaryBootDiskUpdateStrategy|null} [secondaryBootDiskUpdateStrategy] NodeConfig secondaryBootDiskUpdateStrategy + * @property {google.container.v1.NodeConfig.LocalSsdEncryptionMode|null} [localSsdEncryptionMode] NodeConfig localSsdEncryptionMode * @property {google.container.v1.NodeConfig.EffectiveCgroupMode|null} [effectiveCgroupMode] NodeConfig effectiveCgroupMode */ @@ -2793,6 +2794,14 @@ */ NodeConfig.prototype.secondaryBootDiskUpdateStrategy = null; + /** + * NodeConfig localSsdEncryptionMode. + * @member {google.container.v1.NodeConfig.LocalSsdEncryptionMode|null|undefined} localSsdEncryptionMode + * @memberof google.container.v1.NodeConfig + * @instance + */ + NodeConfig.prototype.localSsdEncryptionMode = null; + /** * NodeConfig effectiveCgroupMode. * @member {google.container.v1.NodeConfig.EffectiveCgroupMode} effectiveCgroupMode @@ -2826,6 +2835,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * NodeConfig _localSsdEncryptionMode. + * @member {"localSsdEncryptionMode"|undefined} _localSsdEncryptionMode + * @memberof google.container.v1.NodeConfig + * @instance + */ + Object.defineProperty(NodeConfig.prototype, "_localSsdEncryptionMode", { + get: $util.oneOfGetter($oneOfFields = ["localSsdEncryptionMode"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Creates a new NodeConfig instance using the specified properties. * @function create @@ -2939,6 +2959,8 @@ writer.uint32(/* id 49, wireType 2 =*/394).string(message.storagePools[i]); if (message.secondaryBootDiskUpdateStrategy != null && Object.hasOwnProperty.call(message, "secondaryBootDiskUpdateStrategy")) $root.google.container.v1.SecondaryBootDiskUpdateStrategy.encode(message.secondaryBootDiskUpdateStrategy, writer.uint32(/* id 50, wireType 2 =*/402).fork()).ldelim(); + if (message.localSsdEncryptionMode != null && Object.hasOwnProperty.call(message, "localSsdEncryptionMode")) + writer.uint32(/* id 54, wireType 0 =*/432).int32(message.localSsdEncryptionMode); if (message.effectiveCgroupMode != null && Object.hasOwnProperty.call(message, "effectiveCgroupMode")) writer.uint32(/* id 55, wireType 0 =*/440).int32(message.effectiveCgroupMode); return writer; @@ -3204,6 +3226,10 @@ message.secondaryBootDiskUpdateStrategy = $root.google.container.v1.SecondaryBootDiskUpdateStrategy.decode(reader, reader.uint32()); break; } + case 54: { + message.localSsdEncryptionMode = reader.int32(); + break; + } case 55: { message.effectiveCgroupMode = reader.int32(); break; @@ -3453,6 +3479,17 @@ return "secondaryBootDiskUpdateStrategy." + error; } } + if (message.localSsdEncryptionMode != null && message.hasOwnProperty("localSsdEncryptionMode")) { + properties._localSsdEncryptionMode = 1; + switch (message.localSsdEncryptionMode) { + default: + return "localSsdEncryptionMode: enum value expected"; + case 0: + case 1: + case 2: + break; + } + } if (message.effectiveCgroupMode != null && message.hasOwnProperty("effectiveCgroupMode")) switch (message.effectiveCgroupMode) { default: @@ -3668,6 +3705,26 @@ throw TypeError(".google.container.v1.NodeConfig.secondaryBootDiskUpdateStrategy: object expected"); message.secondaryBootDiskUpdateStrategy = $root.google.container.v1.SecondaryBootDiskUpdateStrategy.fromObject(object.secondaryBootDiskUpdateStrategy); } + switch (object.localSsdEncryptionMode) { + default: + if (typeof object.localSsdEncryptionMode === "number") { + message.localSsdEncryptionMode = object.localSsdEncryptionMode; + break; + } + break; + case "LOCAL_SSD_ENCRYPTION_MODE_UNSPECIFIED": + case 0: + message.localSsdEncryptionMode = 0; + break; + case "STANDARD_ENCRYPTION": + case 1: + message.localSsdEncryptionMode = 1; + break; + case "EPHEMERAL_KEY_ENCRYPTION": + case 2: + message.localSsdEncryptionMode = 2; + break; + } switch (object.effectiveCgroupMode) { default: if (typeof object.effectiveCgroupMode === "number") { @@ -3863,6 +3920,11 @@ if (options.oneofs) object._secondaryBootDiskUpdateStrategy = "secondaryBootDiskUpdateStrategy"; } + if (message.localSsdEncryptionMode != null && message.hasOwnProperty("localSsdEncryptionMode")) { + object.localSsdEncryptionMode = options.enums === String ? $root.google.container.v1.NodeConfig.LocalSsdEncryptionMode[message.localSsdEncryptionMode] === undefined ? message.localSsdEncryptionMode : $root.google.container.v1.NodeConfig.LocalSsdEncryptionMode[message.localSsdEncryptionMode] : message.localSsdEncryptionMode; + if (options.oneofs) + object._localSsdEncryptionMode = "localSsdEncryptionMode"; + } if (message.effectiveCgroupMode != null && message.hasOwnProperty("effectiveCgroupMode")) object.effectiveCgroupMode = options.enums === String ? $root.google.container.v1.NodeConfig.EffectiveCgroupMode[message.effectiveCgroupMode] === undefined ? message.effectiveCgroupMode : $root.google.container.v1.NodeConfig.EffectiveCgroupMode[message.effectiveCgroupMode] : message.effectiveCgroupMode; return object; @@ -3894,6 +3956,22 @@ return typeUrlPrefix + "/google.container.v1.NodeConfig"; }; + /** + * LocalSsdEncryptionMode enum. + * @name google.container.v1.NodeConfig.LocalSsdEncryptionMode + * @enum {number} + * @property {number} LOCAL_SSD_ENCRYPTION_MODE_UNSPECIFIED=0 LOCAL_SSD_ENCRYPTION_MODE_UNSPECIFIED value + * @property {number} STANDARD_ENCRYPTION=1 STANDARD_ENCRYPTION value + * @property {number} EPHEMERAL_KEY_ENCRYPTION=2 EPHEMERAL_KEY_ENCRYPTION value + */ + NodeConfig.LocalSsdEncryptionMode = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "LOCAL_SSD_ENCRYPTION_MODE_UNSPECIFIED"] = 0; + values[valuesById[1] = "STANDARD_ENCRYPTION"] = 1; + values[valuesById[2] = "EPHEMERAL_KEY_ENCRYPTION"] = 2; + return values; + })(); + /** * EffectiveCgroupMode enum. * @name google.container.v1.NodeConfig.EffectiveCgroupMode @@ -20224,6 +20302,7 @@ * @property {google.container.v1.INetworkTags|null} [networkTags] NodePoolAutoConfig networkTags * @property {google.container.v1.IResourceManagerTags|null} [resourceManagerTags] NodePoolAutoConfig resourceManagerTags * @property {google.container.v1.INodeKubeletConfig|null} [nodeKubeletConfig] NodePoolAutoConfig nodeKubeletConfig + * @property {google.container.v1.ILinuxNodeConfig|null} [linuxNodeConfig] NodePoolAutoConfig linuxNodeConfig */ /** @@ -20265,6 +20344,14 @@ */ NodePoolAutoConfig.prototype.nodeKubeletConfig = null; + /** + * NodePoolAutoConfig linuxNodeConfig. + * @member {google.container.v1.ILinuxNodeConfig|null|undefined} linuxNodeConfig + * @memberof google.container.v1.NodePoolAutoConfig + * @instance + */ + NodePoolAutoConfig.prototype.linuxNodeConfig = null; + /** * Creates a new NodePoolAutoConfig instance using the specified properties. * @function create @@ -20295,6 +20382,8 @@ $root.google.container.v1.ResourceManagerTags.encode(message.resourceManagerTags, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.nodeKubeletConfig != null && Object.hasOwnProperty.call(message, "nodeKubeletConfig")) $root.google.container.v1.NodeKubeletConfig.encode(message.nodeKubeletConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.linuxNodeConfig != null && Object.hasOwnProperty.call(message, "linuxNodeConfig")) + $root.google.container.v1.LinuxNodeConfig.encode(message.linuxNodeConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; @@ -20341,6 +20430,10 @@ message.nodeKubeletConfig = $root.google.container.v1.NodeKubeletConfig.decode(reader, reader.uint32()); break; } + case 4: { + message.linuxNodeConfig = $root.google.container.v1.LinuxNodeConfig.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -20391,6 +20484,11 @@ if (error) return "nodeKubeletConfig." + error; } + if (message.linuxNodeConfig != null && message.hasOwnProperty("linuxNodeConfig")) { + var error = $root.google.container.v1.LinuxNodeConfig.verify(message.linuxNodeConfig); + if (error) + return "linuxNodeConfig." + error; + } return null; }; @@ -20421,6 +20519,11 @@ throw TypeError(".google.container.v1.NodePoolAutoConfig.nodeKubeletConfig: object expected"); message.nodeKubeletConfig = $root.google.container.v1.NodeKubeletConfig.fromObject(object.nodeKubeletConfig); } + if (object.linuxNodeConfig != null) { + if (typeof object.linuxNodeConfig !== "object") + throw TypeError(".google.container.v1.NodePoolAutoConfig.linuxNodeConfig: object expected"); + message.linuxNodeConfig = $root.google.container.v1.LinuxNodeConfig.fromObject(object.linuxNodeConfig); + } return message; }; @@ -20441,6 +20544,7 @@ object.networkTags = null; object.resourceManagerTags = null; object.nodeKubeletConfig = null; + object.linuxNodeConfig = null; } if (message.networkTags != null && message.hasOwnProperty("networkTags")) object.networkTags = $root.google.container.v1.NetworkTags.toObject(message.networkTags, options); @@ -20448,6 +20552,8 @@ object.resourceManagerTags = $root.google.container.v1.ResourceManagerTags.toObject(message.resourceManagerTags, options); if (message.nodeKubeletConfig != null && message.hasOwnProperty("nodeKubeletConfig")) object.nodeKubeletConfig = $root.google.container.v1.NodeKubeletConfig.toObject(message.nodeKubeletConfig, options); + if (message.linuxNodeConfig != null && message.hasOwnProperty("linuxNodeConfig")) + object.linuxNodeConfig = $root.google.container.v1.LinuxNodeConfig.toObject(message.linuxNodeConfig, options); return object; }; @@ -21049,6 +21155,8 @@ * @property {google.container.v1.INodeKubeletConfig|null} [desiredNodePoolAutoConfigKubeletConfig] ClusterUpdate desiredNodePoolAutoConfigKubeletConfig * @property {google.container.v1.IUserManagedKeysConfig|null} [userManagedKeysConfig] ClusterUpdate userManagedKeysConfig * @property {google.container.v1.IRBACBindingConfig|null} [desiredRbacBindingConfig] ClusterUpdate desiredRbacBindingConfig + * @property {google.container.v1.IDesiredEnterpriseConfig|null} [desiredEnterpriseConfig] ClusterUpdate desiredEnterpriseConfig + * @property {google.container.v1.ILinuxNodeConfig|null} [desiredNodePoolAutoConfigLinuxNodeConfig] ClusterUpdate desiredNodePoolAutoConfigLinuxNodeConfig */ /** @@ -21563,6 +21671,22 @@ */ ClusterUpdate.prototype.desiredRbacBindingConfig = null; + /** + * ClusterUpdate desiredEnterpriseConfig. + * @member {google.container.v1.IDesiredEnterpriseConfig|null|undefined} desiredEnterpriseConfig + * @memberof google.container.v1.ClusterUpdate + * @instance + */ + ClusterUpdate.prototype.desiredEnterpriseConfig = null; + + /** + * ClusterUpdate desiredNodePoolAutoConfigLinuxNodeConfig. + * @member {google.container.v1.ILinuxNodeConfig|null|undefined} desiredNodePoolAutoConfigLinuxNodeConfig + * @memberof google.container.v1.ClusterUpdate + * @instance + */ + ClusterUpdate.prototype.desiredNodePoolAutoConfigLinuxNodeConfig = null; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -21814,6 +21938,10 @@ $root.google.container.v1.UserManagedKeysConfig.encode(message.userManagedKeysConfig, writer.uint32(/* id 143, wireType 2 =*/1146).fork()).ldelim(); if (message.desiredRbacBindingConfig != null && Object.hasOwnProperty.call(message, "desiredRbacBindingConfig")) $root.google.container.v1.RBACBindingConfig.encode(message.desiredRbacBindingConfig, writer.uint32(/* id 144, wireType 2 =*/1154).fork()).ldelim(); + if (message.desiredEnterpriseConfig != null && Object.hasOwnProperty.call(message, "desiredEnterpriseConfig")) + $root.google.container.v1.DesiredEnterpriseConfig.encode(message.desiredEnterpriseConfig, writer.uint32(/* id 147, wireType 2 =*/1178).fork()).ldelim(); + if (message.desiredNodePoolAutoConfigLinuxNodeConfig != null && Object.hasOwnProperty.call(message, "desiredNodePoolAutoConfigLinuxNodeConfig")) + $root.google.container.v1.LinuxNodeConfig.encode(message.desiredNodePoolAutoConfigLinuxNodeConfig, writer.uint32(/* id 150, wireType 2 =*/1202).fork()).ldelim(); return writer; }; @@ -22098,6 +22226,14 @@ message.desiredRbacBindingConfig = $root.google.container.v1.RBACBindingConfig.decode(reader, reader.uint32()); break; } + case 147: { + message.desiredEnterpriseConfig = $root.google.container.v1.DesiredEnterpriseConfig.decode(reader, reader.uint32()); + break; + } + case 150: { + message.desiredNodePoolAutoConfigLinuxNodeConfig = $root.google.container.v1.LinuxNodeConfig.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -22460,6 +22596,16 @@ return "desiredRbacBindingConfig." + error; } } + if (message.desiredEnterpriseConfig != null && message.hasOwnProperty("desiredEnterpriseConfig")) { + var error = $root.google.container.v1.DesiredEnterpriseConfig.verify(message.desiredEnterpriseConfig); + if (error) + return "desiredEnterpriseConfig." + error; + } + if (message.desiredNodePoolAutoConfigLinuxNodeConfig != null && message.hasOwnProperty("desiredNodePoolAutoConfigLinuxNodeConfig")) { + var error = $root.google.container.v1.LinuxNodeConfig.verify(message.desiredNodePoolAutoConfigLinuxNodeConfig); + if (error) + return "desiredNodePoolAutoConfigLinuxNodeConfig." + error; + } return null; }; @@ -22815,6 +22961,16 @@ throw TypeError(".google.container.v1.ClusterUpdate.desiredRbacBindingConfig: object expected"); message.desiredRbacBindingConfig = $root.google.container.v1.RBACBindingConfig.fromObject(object.desiredRbacBindingConfig); } + if (object.desiredEnterpriseConfig != null) { + if (typeof object.desiredEnterpriseConfig !== "object") + throw TypeError(".google.container.v1.ClusterUpdate.desiredEnterpriseConfig: object expected"); + message.desiredEnterpriseConfig = $root.google.container.v1.DesiredEnterpriseConfig.fromObject(object.desiredEnterpriseConfig); + } + if (object.desiredNodePoolAutoConfigLinuxNodeConfig != null) { + if (typeof object.desiredNodePoolAutoConfigLinuxNodeConfig !== "object") + throw TypeError(".google.container.v1.ClusterUpdate.desiredNodePoolAutoConfigLinuxNodeConfig: object expected"); + message.desiredNodePoolAutoConfigLinuxNodeConfig = $root.google.container.v1.LinuxNodeConfig.fromObject(object.desiredNodePoolAutoConfigLinuxNodeConfig); + } return message; }; @@ -22886,6 +23042,8 @@ object.desiredNodeKubeletConfig = null; object.desiredNodePoolAutoConfigKubeletConfig = null; object.userManagedKeysConfig = null; + object.desiredEnterpriseConfig = null; + object.desiredNodePoolAutoConfigLinuxNodeConfig = null; } if (message.desiredNodeVersion != null && message.hasOwnProperty("desiredNodeVersion")) object.desiredNodeVersion = message.desiredNodeVersion; @@ -23041,6 +23199,10 @@ if (options.oneofs) object._desiredRbacBindingConfig = "desiredRbacBindingConfig"; } + if (message.desiredEnterpriseConfig != null && message.hasOwnProperty("desiredEnterpriseConfig")) + object.desiredEnterpriseConfig = $root.google.container.v1.DesiredEnterpriseConfig.toObject(message.desiredEnterpriseConfig, options); + if (message.desiredNodePoolAutoConfigLinuxNodeConfig != null && message.hasOwnProperty("desiredNodePoolAutoConfigLinuxNodeConfig")) + object.desiredNodePoolAutoConfigLinuxNodeConfig = $root.google.container.v1.LinuxNodeConfig.toObject(message.desiredNodePoolAutoConfigLinuxNodeConfig, options); return object; }; @@ -23564,6 +23726,233 @@ return RangeInfo; })(); + v1.DesiredEnterpriseConfig = (function() { + + /** + * Properties of a DesiredEnterpriseConfig. + * @memberof google.container.v1 + * @interface IDesiredEnterpriseConfig + * @property {google.container.v1.EnterpriseConfig.ClusterTier|null} [desiredTier] DesiredEnterpriseConfig desiredTier + */ + + /** + * Constructs a new DesiredEnterpriseConfig. + * @memberof google.container.v1 + * @classdesc Represents a DesiredEnterpriseConfig. + * @implements IDesiredEnterpriseConfig + * @constructor + * @param {google.container.v1.IDesiredEnterpriseConfig=} [properties] Properties to set + */ + function DesiredEnterpriseConfig(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]]; + } + + /** + * DesiredEnterpriseConfig desiredTier. + * @member {google.container.v1.EnterpriseConfig.ClusterTier} desiredTier + * @memberof google.container.v1.DesiredEnterpriseConfig + * @instance + */ + DesiredEnterpriseConfig.prototype.desiredTier = 0; + + /** + * Creates a new DesiredEnterpriseConfig instance using the specified properties. + * @function create + * @memberof google.container.v1.DesiredEnterpriseConfig + * @static + * @param {google.container.v1.IDesiredEnterpriseConfig=} [properties] Properties to set + * @returns {google.container.v1.DesiredEnterpriseConfig} DesiredEnterpriseConfig instance + */ + DesiredEnterpriseConfig.create = function create(properties) { + return new DesiredEnterpriseConfig(properties); + }; + + /** + * Encodes the specified DesiredEnterpriseConfig message. Does not implicitly {@link google.container.v1.DesiredEnterpriseConfig.verify|verify} messages. + * @function encode + * @memberof google.container.v1.DesiredEnterpriseConfig + * @static + * @param {google.container.v1.IDesiredEnterpriseConfig} message DesiredEnterpriseConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DesiredEnterpriseConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.desiredTier != null && Object.hasOwnProperty.call(message, "desiredTier")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.desiredTier); + return writer; + }; + + /** + * Encodes the specified DesiredEnterpriseConfig message, length delimited. Does not implicitly {@link google.container.v1.DesiredEnterpriseConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.DesiredEnterpriseConfig + * @static + * @param {google.container.v1.IDesiredEnterpriseConfig} message DesiredEnterpriseConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DesiredEnterpriseConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DesiredEnterpriseConfig message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.DesiredEnterpriseConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.DesiredEnterpriseConfig} DesiredEnterpriseConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DesiredEnterpriseConfig.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.container.v1.DesiredEnterpriseConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.desiredTier = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DesiredEnterpriseConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.DesiredEnterpriseConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.DesiredEnterpriseConfig} DesiredEnterpriseConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DesiredEnterpriseConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DesiredEnterpriseConfig message. + * @function verify + * @memberof google.container.v1.DesiredEnterpriseConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DesiredEnterpriseConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.desiredTier != null && message.hasOwnProperty("desiredTier")) + switch (message.desiredTier) { + default: + return "desiredTier: enum value expected"; + case 0: + case 1: + case 2: + break; + } + return null; + }; + + /** + * Creates a DesiredEnterpriseConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.DesiredEnterpriseConfig + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.DesiredEnterpriseConfig} DesiredEnterpriseConfig + */ + DesiredEnterpriseConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.DesiredEnterpriseConfig) + return object; + var message = new $root.google.container.v1.DesiredEnterpriseConfig(); + switch (object.desiredTier) { + default: + if (typeof object.desiredTier === "number") { + message.desiredTier = object.desiredTier; + break; + } + break; + case "CLUSTER_TIER_UNSPECIFIED": + case 0: + message.desiredTier = 0; + break; + case "STANDARD": + case 1: + message.desiredTier = 1; + break; + case "ENTERPRISE": + case 2: + message.desiredTier = 2; + break; + } + return message; + }; + + /** + * Creates a plain object from a DesiredEnterpriseConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.DesiredEnterpriseConfig + * @static + * @param {google.container.v1.DesiredEnterpriseConfig} message DesiredEnterpriseConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DesiredEnterpriseConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.desiredTier = options.enums === String ? "CLUSTER_TIER_UNSPECIFIED" : 0; + if (message.desiredTier != null && message.hasOwnProperty("desiredTier")) + object.desiredTier = options.enums === String ? $root.google.container.v1.EnterpriseConfig.ClusterTier[message.desiredTier] === undefined ? message.desiredTier : $root.google.container.v1.EnterpriseConfig.ClusterTier[message.desiredTier] : message.desiredTier; + return object; + }; + + /** + * Converts this DesiredEnterpriseConfig to JSON. + * @function toJSON + * @memberof google.container.v1.DesiredEnterpriseConfig + * @instance + * @returns {Object.} JSON object + */ + DesiredEnterpriseConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DesiredEnterpriseConfig + * @function getTypeUrl + * @memberof google.container.v1.DesiredEnterpriseConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DesiredEnterpriseConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.DesiredEnterpriseConfig"; + }; + + return DesiredEnterpriseConfig; + })(); + v1.Operation = (function() { /** @@ -55147,6 +55536,482 @@ return UpgradeEvent; })(); + v1.UpgradeInfoEvent = (function() { + + /** + * Properties of an UpgradeInfoEvent. + * @memberof google.container.v1 + * @interface IUpgradeInfoEvent + * @property {google.container.v1.UpgradeResourceType|null} [resourceType] UpgradeInfoEvent resourceType + * @property {string|null} [operation] UpgradeInfoEvent operation + * @property {google.protobuf.ITimestamp|null} [startTime] UpgradeInfoEvent startTime + * @property {google.protobuf.ITimestamp|null} [endTime] UpgradeInfoEvent endTime + * @property {string|null} [currentVersion] UpgradeInfoEvent currentVersion + * @property {string|null} [targetVersion] UpgradeInfoEvent targetVersion + * @property {string|null} [resource] UpgradeInfoEvent resource + * @property {google.container.v1.UpgradeInfoEvent.State|null} [state] UpgradeInfoEvent state + * @property {string|null} [description] UpgradeInfoEvent description + */ + + /** + * Constructs a new UpgradeInfoEvent. + * @memberof google.container.v1 + * @classdesc Represents an UpgradeInfoEvent. + * @implements IUpgradeInfoEvent + * @constructor + * @param {google.container.v1.IUpgradeInfoEvent=} [properties] Properties to set + */ + function UpgradeInfoEvent(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]]; + } + + /** + * UpgradeInfoEvent resourceType. + * @member {google.container.v1.UpgradeResourceType} resourceType + * @memberof google.container.v1.UpgradeInfoEvent + * @instance + */ + UpgradeInfoEvent.prototype.resourceType = 0; + + /** + * UpgradeInfoEvent operation. + * @member {string} operation + * @memberof google.container.v1.UpgradeInfoEvent + * @instance + */ + UpgradeInfoEvent.prototype.operation = ""; + + /** + * UpgradeInfoEvent startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.container.v1.UpgradeInfoEvent + * @instance + */ + UpgradeInfoEvent.prototype.startTime = null; + + /** + * UpgradeInfoEvent endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.container.v1.UpgradeInfoEvent + * @instance + */ + UpgradeInfoEvent.prototype.endTime = null; + + /** + * UpgradeInfoEvent currentVersion. + * @member {string} currentVersion + * @memberof google.container.v1.UpgradeInfoEvent + * @instance + */ + UpgradeInfoEvent.prototype.currentVersion = ""; + + /** + * UpgradeInfoEvent targetVersion. + * @member {string} targetVersion + * @memberof google.container.v1.UpgradeInfoEvent + * @instance + */ + UpgradeInfoEvent.prototype.targetVersion = ""; + + /** + * UpgradeInfoEvent resource. + * @member {string} resource + * @memberof google.container.v1.UpgradeInfoEvent + * @instance + */ + UpgradeInfoEvent.prototype.resource = ""; + + /** + * UpgradeInfoEvent state. + * @member {google.container.v1.UpgradeInfoEvent.State} state + * @memberof google.container.v1.UpgradeInfoEvent + * @instance + */ + UpgradeInfoEvent.prototype.state = 0; + + /** + * UpgradeInfoEvent description. + * @member {string} description + * @memberof google.container.v1.UpgradeInfoEvent + * @instance + */ + UpgradeInfoEvent.prototype.description = ""; + + /** + * Creates a new UpgradeInfoEvent instance using the specified properties. + * @function create + * @memberof google.container.v1.UpgradeInfoEvent + * @static + * @param {google.container.v1.IUpgradeInfoEvent=} [properties] Properties to set + * @returns {google.container.v1.UpgradeInfoEvent} UpgradeInfoEvent instance + */ + UpgradeInfoEvent.create = function create(properties) { + return new UpgradeInfoEvent(properties); + }; + + /** + * Encodes the specified UpgradeInfoEvent message. Does not implicitly {@link google.container.v1.UpgradeInfoEvent.verify|verify} messages. + * @function encode + * @memberof google.container.v1.UpgradeInfoEvent + * @static + * @param {google.container.v1.IUpgradeInfoEvent} message UpgradeInfoEvent message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpgradeInfoEvent.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.resourceType != null && Object.hasOwnProperty.call(message, "resourceType")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.resourceType); + if (message.operation != null && Object.hasOwnProperty.call(message, "operation")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.operation); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.currentVersion != null && Object.hasOwnProperty.call(message, "currentVersion")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.currentVersion); + if (message.targetVersion != null && Object.hasOwnProperty.call(message, "targetVersion")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.targetVersion); + if (message.resource != null && Object.hasOwnProperty.call(message, "resource")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.resource); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 8, wireType 0 =*/64).int32(message.state); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.description); + return writer; + }; + + /** + * Encodes the specified UpgradeInfoEvent message, length delimited. Does not implicitly {@link google.container.v1.UpgradeInfoEvent.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.UpgradeInfoEvent + * @static + * @param {google.container.v1.IUpgradeInfoEvent} message UpgradeInfoEvent message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpgradeInfoEvent.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpgradeInfoEvent message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.UpgradeInfoEvent + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.UpgradeInfoEvent} UpgradeInfoEvent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpgradeInfoEvent.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.container.v1.UpgradeInfoEvent(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.resourceType = reader.int32(); + break; + } + case 2: { + message.operation = reader.string(); + break; + } + case 3: { + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 4: { + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 5: { + message.currentVersion = reader.string(); + break; + } + case 6: { + message.targetVersion = reader.string(); + break; + } + case 7: { + message.resource = reader.string(); + break; + } + case 8: { + message.state = reader.int32(); + break; + } + case 11: { + message.description = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UpgradeInfoEvent message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.UpgradeInfoEvent + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.UpgradeInfoEvent} UpgradeInfoEvent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpgradeInfoEvent.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpgradeInfoEvent message. + * @function verify + * @memberof google.container.v1.UpgradeInfoEvent + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpgradeInfoEvent.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + switch (message.resourceType) { + default: + return "resourceType: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.operation != null && message.hasOwnProperty("operation")) + if (!$util.isString(message.operation)) + return "operation: string expected"; + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (error) + return "startTime." + error; + } + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; + } + if (message.currentVersion != null && message.hasOwnProperty("currentVersion")) + if (!$util.isString(message.currentVersion)) + return "currentVersion: string expected"; + if (message.targetVersion != null && message.hasOwnProperty("targetVersion")) + if (!$util.isString(message.targetVersion)) + return "targetVersion: string expected"; + if (message.resource != null && message.hasOwnProperty("resource")) + if (!$util.isString(message.resource)) + return "resource: string expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 3: + case 4: + case 5: + case 6: + break; + } + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + return null; + }; + + /** + * Creates an UpgradeInfoEvent message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.UpgradeInfoEvent + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.UpgradeInfoEvent} UpgradeInfoEvent + */ + UpgradeInfoEvent.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.UpgradeInfoEvent) + return object; + var message = new $root.google.container.v1.UpgradeInfoEvent(); + switch (object.resourceType) { + default: + if (typeof object.resourceType === "number") { + message.resourceType = object.resourceType; + break; + } + break; + case "UPGRADE_RESOURCE_TYPE_UNSPECIFIED": + case 0: + message.resourceType = 0; + break; + case "MASTER": + case 1: + message.resourceType = 1; + break; + case "NODE_POOL": + case 2: + message.resourceType = 2; + break; + } + if (object.operation != null) + message.operation = String(object.operation); + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.container.v1.UpgradeInfoEvent.startTime: object expected"); + message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); + } + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.container.v1.UpgradeInfoEvent.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + } + if (object.currentVersion != null) + message.currentVersion = String(object.currentVersion); + if (object.targetVersion != null) + message.targetVersion = String(object.targetVersion); + if (object.resource != null) + message.resource = String(object.resource); + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "STARTED": + case 3: + message.state = 3; + break; + case "SUCCEEDED": + case 4: + message.state = 4; + break; + case "FAILED": + case 5: + message.state = 5; + break; + case "CANCELED": + case 6: + message.state = 6; + break; + } + if (object.description != null) + message.description = String(object.description); + return message; + }; + + /** + * Creates a plain object from an UpgradeInfoEvent message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.UpgradeInfoEvent + * @static + * @param {google.container.v1.UpgradeInfoEvent} message UpgradeInfoEvent + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpgradeInfoEvent.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.resourceType = options.enums === String ? "UPGRADE_RESOURCE_TYPE_UNSPECIFIED" : 0; + object.operation = ""; + object.startTime = null; + object.endTime = null; + object.currentVersion = ""; + object.targetVersion = ""; + object.resource = ""; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.description = ""; + } + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + object.resourceType = options.enums === String ? $root.google.container.v1.UpgradeResourceType[message.resourceType] === undefined ? message.resourceType : $root.google.container.v1.UpgradeResourceType[message.resourceType] : message.resourceType; + if (message.operation != null && message.hasOwnProperty("operation")) + object.operation = message.operation; + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); + if (message.endTime != null && message.hasOwnProperty("endTime")) + object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); + if (message.currentVersion != null && message.hasOwnProperty("currentVersion")) + object.currentVersion = message.currentVersion; + if (message.targetVersion != null && message.hasOwnProperty("targetVersion")) + object.targetVersion = message.targetVersion; + if (message.resource != null && message.hasOwnProperty("resource")) + object.resource = message.resource; + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.container.v1.UpgradeInfoEvent.State[message.state] === undefined ? message.state : $root.google.container.v1.UpgradeInfoEvent.State[message.state] : message.state; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + return object; + }; + + /** + * Converts this UpgradeInfoEvent to JSON. + * @function toJSON + * @memberof google.container.v1.UpgradeInfoEvent + * @instance + * @returns {Object.} JSON object + */ + UpgradeInfoEvent.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for UpgradeInfoEvent + * @function getTypeUrl + * @memberof google.container.v1.UpgradeInfoEvent + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpgradeInfoEvent.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.UpgradeInfoEvent"; + }; + + /** + * State enum. + * @name google.container.v1.UpgradeInfoEvent.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} STARTED=3 STARTED value + * @property {number} SUCCEEDED=4 SUCCEEDED value + * @property {number} FAILED=5 FAILED value + * @property {number} CANCELED=6 CANCELED value + */ + UpgradeInfoEvent.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[3] = "STARTED"] = 3; + values[valuesById[4] = "SUCCEEDED"] = 4; + values[valuesById[5] = "FAILED"] = 5; + values[valuesById[6] = "CANCELED"] = 6; + return values; + })(); + + return UpgradeInfoEvent; + })(); + v1.UpgradeAvailableEvent = (function() { /** @@ -60701,6 +61566,7 @@ * @memberof google.container.v1 * @interface IEnterpriseConfig * @property {google.container.v1.EnterpriseConfig.ClusterTier|null} [clusterTier] EnterpriseConfig clusterTier + * @property {google.container.v1.EnterpriseConfig.ClusterTier|null} [desiredTier] EnterpriseConfig desiredTier */ /** @@ -60726,6 +61592,14 @@ */ EnterpriseConfig.prototype.clusterTier = 0; + /** + * EnterpriseConfig desiredTier. + * @member {google.container.v1.EnterpriseConfig.ClusterTier} desiredTier + * @memberof google.container.v1.EnterpriseConfig + * @instance + */ + EnterpriseConfig.prototype.desiredTier = 0; + /** * Creates a new EnterpriseConfig instance using the specified properties. * @function create @@ -60752,6 +61626,8 @@ writer = $Writer.create(); if (message.clusterTier != null && Object.hasOwnProperty.call(message, "clusterTier")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.clusterTier); + if (message.desiredTier != null && Object.hasOwnProperty.call(message, "desiredTier")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.desiredTier); return writer; }; @@ -60790,6 +61666,10 @@ message.clusterTier = reader.int32(); break; } + case 2: { + message.desiredTier = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -60834,6 +61714,15 @@ case 2: break; } + if (message.desiredTier != null && message.hasOwnProperty("desiredTier")) + switch (message.desiredTier) { + default: + return "desiredTier: enum value expected"; + case 0: + case 1: + case 2: + break; + } return null; }; @@ -60869,6 +61758,26 @@ message.clusterTier = 2; break; } + switch (object.desiredTier) { + default: + if (typeof object.desiredTier === "number") { + message.desiredTier = object.desiredTier; + break; + } + break; + case "CLUSTER_TIER_UNSPECIFIED": + case 0: + message.desiredTier = 0; + break; + case "STANDARD": + case 1: + message.desiredTier = 1; + break; + case "ENTERPRISE": + case 2: + message.desiredTier = 2; + break; + } return message; }; @@ -60885,10 +61794,14 @@ if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { object.clusterTier = options.enums === String ? "CLUSTER_TIER_UNSPECIFIED" : 0; + object.desiredTier = options.enums === String ? "CLUSTER_TIER_UNSPECIFIED" : 0; + } if (message.clusterTier != null && message.hasOwnProperty("clusterTier")) object.clusterTier = options.enums === String ? $root.google.container.v1.EnterpriseConfig.ClusterTier[message.clusterTier] === undefined ? message.clusterTier : $root.google.container.v1.EnterpriseConfig.ClusterTier[message.clusterTier] : message.clusterTier; + if (message.desiredTier != null && message.hasOwnProperty("desiredTier")) + object.desiredTier = options.enums === String ? $root.google.container.v1.EnterpriseConfig.ClusterTier[message.desiredTier] === undefined ? message.desiredTier : $root.google.container.v1.EnterpriseConfig.ClusterTier[message.desiredTier] : message.desiredTier; return object; }; diff --git a/packages/google-container/protos/protos.json b/packages/google-container/protos/protos.json index 1895850a6ee..5ef0f4cc845 100644 --- a/packages/google-container/protos/protos.json +++ b/packages/google-container/protos/protos.json @@ -1013,6 +1013,11 @@ "oneof": [ "secondaryBootDiskUpdateStrategy" ] + }, + "_localSsdEncryptionMode": { + "oneof": [ + "localSsdEncryptionMode" + ] } }, "fields": { @@ -1194,6 +1199,13 @@ "proto3_optional": true } }, + "localSsdEncryptionMode": { + "type": "LocalSsdEncryptionMode", + "id": 54, + "options": { + "proto3_optional": true + } + }, "effectiveCgroupMode": { "type": "EffectiveCgroupMode", "id": 55, @@ -1203,6 +1215,13 @@ } }, "nested": { + "LocalSsdEncryptionMode": { + "values": { + "LOCAL_SSD_ENCRYPTION_MODE_UNSPECIFIED": 0, + "STANDARD_ENCRYPTION": 1, + "EPHEMERAL_KEY_ENCRYPTION": 2 + } + }, "EffectiveCgroupMode": { "values": { "EFFECTIVE_CGROUP_MODE_UNSPECIFIED": 0, @@ -2783,6 +2802,13 @@ "nodeKubeletConfig": { "type": "NodeKubeletConfig", "id": 3 + }, + "linuxNodeConfig": { + "type": "LinuxNodeConfig", + "id": 4, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } } }, @@ -3145,6 +3171,14 @@ "options": { "proto3_optional": true } + }, + "desiredEnterpriseConfig": { + "type": "DesiredEnterpriseConfig", + "id": 147 + }, + "desiredNodePoolAutoConfigLinuxNodeConfig": { + "type": "LinuxNodeConfig", + "id": 150 } } }, @@ -3183,6 +3217,14 @@ } } }, + "DesiredEnterpriseConfig": { + "fields": { + "desiredTier": { + "type": "EnterpriseConfig.ClusterTier", + "id": 1 + } + } + }, "Operation": { "fields": { "name": { @@ -6203,6 +6245,60 @@ } } }, + "UpgradeInfoEvent": { + "fields": { + "resourceType": { + "type": "UpgradeResourceType", + "id": 1 + }, + "operation": { + "type": "string", + "id": 2 + }, + "startTime": { + "type": "google.protobuf.Timestamp", + "id": 3 + }, + "endTime": { + "type": "google.protobuf.Timestamp", + "id": 4 + }, + "currentVersion": { + "type": "string", + "id": 5 + }, + "targetVersion": { + "type": "string", + "id": 6 + }, + "resource": { + "type": "string", + "id": 7 + }, + "state": { + "type": "State", + "id": 8, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "description": { + "type": "string", + "id": 11 + } + }, + "nested": { + "State": { + "values": { + "STATE_UNSPECIFIED": 0, + "STARTED": 3, + "SUCCEEDED": 4, + "FAILED": 5, + "CANCELED": 6 + } + } + } + }, "UpgradeAvailableEvent": { "fields": { "version": { @@ -6647,6 +6743,10 @@ "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } + }, + "desiredTier": { + "type": "ClusterTier", + "id": 2 } }, "nested": {