Skip to content

Commit

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

The following keys were added:
- schemas.ClusterUpdate.properties.desiredNodePoolLoggingConfig.$ref
- schemas.ClusterUpdate.properties.desiredNodePoolLoggingConfig.description
- schemas.LoggingVariantConfig.description
- schemas.LoggingVariantConfig.id
- schemas.LoggingVariantConfig.properties.variant.description
- schemas.LoggingVariantConfig.properties.variant.enum
- schemas.LoggingVariantConfig.properties.variant.enumDescriptions
- schemas.LoggingVariantConfig.properties.variant.type
- schemas.LoggingVariantConfig.type
- schemas.NodeConfig.properties.loggingConfig.$ref
- schemas.NodeConfig.properties.loggingConfig.description
- schemas.NodeConfigDefaults.properties.loggingConfig.$ref
- schemas.NodeConfigDefaults.properties.loggingConfig.description
- schemas.NodePoolLoggingConfig.description
- schemas.NodePoolLoggingConfig.id
- schemas.NodePoolLoggingConfig.properties.variantConfig.$ref
- schemas.NodePoolLoggingConfig.properties.variantConfig.description
- schemas.NodePoolLoggingConfig.type
- schemas.UpdateNodePoolRequest.properties.loggingConfig.$ref
- schemas.UpdateNodePoolRequest.properties.loggingConfig.description

The following keys were changed:
- schemas.AutoprovisioningNodePoolDefaults.properties.minCpuPlatform.description
- schemas.NodeConfig.properties.minCpuPlatform.description
- schemas.ReservationAffinity.properties.key.description

#### container:v1

The following keys were added:
- schemas.ClusterUpdate.properties.desiredNodePoolLoggingConfig.$ref
- schemas.ClusterUpdate.properties.desiredNodePoolLoggingConfig.description
- schemas.LoggingVariantConfig.description
- schemas.LoggingVariantConfig.id
- schemas.LoggingVariantConfig.properties.variant.description
- schemas.LoggingVariantConfig.properties.variant.enum
- schemas.LoggingVariantConfig.properties.variant.enumDescriptions
- schemas.LoggingVariantConfig.properties.variant.type
- schemas.LoggingVariantConfig.type
- schemas.NodeConfig.properties.loggingConfig.$ref
- schemas.NodeConfig.properties.loggingConfig.description
- schemas.NodeConfigDefaults.properties.loggingConfig.$ref
- schemas.NodeConfigDefaults.properties.loggingConfig.description
- schemas.NodePoolLoggingConfig.description
- schemas.NodePoolLoggingConfig.id
- schemas.NodePoolLoggingConfig.properties.variantConfig.$ref
- schemas.NodePoolLoggingConfig.properties.variantConfig.description
- schemas.NodePoolLoggingConfig.type
- schemas.UpdateNodePoolRequest.properties.loggingConfig.$ref
- schemas.UpdateNodePoolRequest.properties.loggingConfig.description

The following keys were changed:
- schemas.AutoprovisioningNodePoolDefaults.properties.minCpuPlatform.description
- schemas.ReservationAffinity.properties.key.description
  • Loading branch information
yoshi-automation authored and sofisl committed Sep 21, 2022
1 parent 23f5ee6 commit 6832365
Show file tree
Hide file tree
Showing 5 changed files with 181 additions and 13 deletions.
54 changes: 51 additions & 3 deletions discovery/container-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -2487,7 +2487,7 @@
}
}
},
"revision": "20220727",
"revision": "20220826",
"rootUrl": "https://container.googleapis.com/",
"schemas": {
"AcceleratorConfig": {
Expand Down Expand Up @@ -2636,7 +2636,7 @@
"description": "Specifies the node management options for NAP created node-pools."
},
"minCpuPlatform": {
"description": "Deprecated. Minimum CPU platform to be used for NAP created node pools. The instance may be scheduled on the specified or newer CPU platform. Applicable values are the friendly names of CPU platforms, such as minCpuPlatform: Intel Haswell or minCpuPlatform: Intel Sandy Bridge. For more information, read [how to specify min CPU platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) This field is deprecated, min_cpu_platform should be specified using https://cloud.google.com/requested-min-cpu-platform label selector on the pod. To unset the min cpu platform field pass \"automatic\" as field value.",
"description": "Deprecated. Minimum CPU platform to be used for NAP created node pools. The instance may be scheduled on the specified or newer CPU platform. Applicable values are the friendly names of CPU platforms, such as minCpuPlatform: Intel Haswell or minCpuPlatform: Intel Sandy Bridge. For more information, read [how to specify min CPU platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform). This field is deprecated, min_cpu_platform should be specified using https://cloud.google.com/requested-min-cpu-platform label selector on the pod. To unset the min cpu platform field pass \"automatic\" as field value.",
"type": "string"
},
"oauthScopes": {
Expand Down Expand Up @@ -3284,6 +3284,10 @@
"description": "The node pool to be upgraded. This field is mandatory if \"desired_node_version\", \"desired_image_family\" or \"desired_node_pool_autoscaling\" is specified and there is more than one node pool on the cluster.",
"type": "string"
},
"desiredNodePoolLoggingConfig": {
"$ref": "NodePoolLoggingConfig",
"description": "The desired node pool logging configuration defaults for the cluster."
},
"desiredNodeVersion": {
"description": "The Kubernetes version to change the nodes to (typically an upgrade). Users may specify either explicit versions offered by Kubernetes Engine or version aliases, which have the following behavior: - \"latest\": picks the highest valid Kubernetes version - \"1.X\": picks the highest valid patch+gke.N patch in the 1.X version - \"1.X.Y\": picks the highest valid gke.N patch in the 1.X.Y version - \"1.X.Y-gke.N\": picks an explicit Kubernetes version - \"-\": picks the Kubernetes master version",
"type": "string"
Expand Down Expand Up @@ -4033,6 +4037,27 @@
},
"type": "object"
},
"LoggingVariantConfig": {
"description": "LoggingVariantConfig specifies the behaviour of the logging component.",
"id": "LoggingVariantConfig",
"properties": {
"variant": {
"description": "Logging variant deployed on nodes.",
"enum": [
"VARIANT_UNSPECIFIED",
"DEFAULT",
"MAX_THROUGHPUT"
],
"enumDescriptions": [
"Default value. This shouldn't be used.",
"default logging variant.",
"maximum logging throughput variant."
],
"type": "string"
}
},
"type": "object"
},
"MaintenanceExclusionOptions": {
"description": "Represents the Maintenance exclusion option.",
"id": "MaintenanceExclusionOptions",
Expand Down Expand Up @@ -4438,6 +4463,10 @@
"format": "int32",
"type": "integer"
},
"loggingConfig": {
"$ref": "NodePoolLoggingConfig",
"description": "Logging configuration."
},
"machineType": {
"description": "The name of a Google Compute Engine [machine type](https://cloud.google.com/compute/docs/machine-types) If unspecified, the default machine type is `e2-medium`.",
"type": "string"
Expand Down Expand Up @@ -4516,6 +4545,10 @@
"gcfsConfig": {
"$ref": "GcfsConfig",
"description": "GCFS (Google Container File System, also known as Riptide) options."
},
"loggingConfig": {
"$ref": "NodePoolLoggingConfig",
"description": "Logging configuration for node pools."
}
},
"type": "object"
Expand Down Expand Up @@ -4776,6 +4809,17 @@
},
"type": "object"
},
"NodePoolLoggingConfig": {
"description": "NodePoolLoggingConfig specifies logging configuration for nodepools.",
"id": "NodePoolLoggingConfig",
"properties": {
"variantConfig": {
"$ref": "LoggingVariantConfig",
"description": "Logging variant configuration."
}
},
"type": "object"
},
"NodeTaint": {
"description": "Kubernetes taint is comprised of three fields: key, value, and effect. Effect can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute. See [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration) for more information, including usage and the valid values.",
"id": "NodeTaint",
Expand Down Expand Up @@ -5160,7 +5204,7 @@
"type": "string"
},
"key": {
"description": "Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify \"googleapis.com/reservation-name\" as the key and specify the name of your reservation as its value.",
"description": "Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify \"compute.googleapis.com/reservation-name\" as the key and specify the name of your reservation as its value.",
"type": "string"
},
"values": {
Expand Down Expand Up @@ -6042,6 +6086,10 @@
},
"type": "array"
},
"loggingConfig": {
"$ref": "NodePoolLoggingConfig",
"description": "Logging configuration."
},
"name": {
"description": "The name (project, location, cluster, node pool) of the node pool to update. Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.",
"type": "string"
Expand Down
56 changes: 52 additions & 4 deletions discovery/container-v1beta1.json
Original file line number Diff line number Diff line change
Expand Up @@ -2512,7 +2512,7 @@
}
}
},
"revision": "20220727",
"revision": "20220826",
"rootUrl": "https://container.googleapis.com/",
"schemas": {
"AcceleratorConfig": {
Expand Down Expand Up @@ -2678,7 +2678,7 @@
"description": "NodeManagement configuration for this NodePool."
},
"minCpuPlatform": {
"description": "Deprecated. Minimum CPU platform to be used for NAP created node pools. The instance may be scheduled on the specified or newer CPU platform. Applicable values are the friendly names of CPU platforms, such as minCpuPlatform: Intel Haswell or minCpuPlatform: Intel Sandy Bridge. For more information, read [how to specify min CPU platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) This field is deprecated, min_cpu_platform should be specified using https://cloud.google.com/requested-min-cpu-platform label selector on the pod. To unset the min cpu platform field pass \"automatic\" as field value.",
"description": "Deprecated. Minimum CPU platform to be used for NAP created node pools. The instance may be scheduled on the specified or newer CPU platform. Applicable values are the friendly names of CPU platforms, such as minCpuPlatform: Intel Haswell or minCpuPlatform: Intel Sandy Bridge. For more information, read [how to specify min CPU platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform). This field is deprecated, min_cpu_platform should be specified using https://cloud.google.com/requested-min-cpu-platform label selector on the pod. To unset the min cpu platform field pass \"automatic\" as field value.",
"type": "string"
},
"oauthScopes": {
Expand Down Expand Up @@ -3416,6 +3416,10 @@
"description": "The node pool to be upgraded. This field is mandatory if \"desired_node_version\", \"desired_image_family\", \"desired_node_pool_autoscaling\", or \"desired_workload_metadata_config\" is specified and there is more than one node pool on the cluster.",
"type": "string"
},
"desiredNodePoolLoggingConfig": {
"$ref": "NodePoolLoggingConfig",
"description": "The desired node pool logging configuration defaults for the cluster."
},
"desiredNodeVersion": {
"description": "The Kubernetes version to change the nodes to (typically an upgrade). Users may specify either explicit versions offered by Kubernetes Engine or version aliases, which have the following behavior: - \"latest\": picks the highest valid Kubernetes version - \"1.X\": picks the highest valid patch+gke.N patch in the 1.X version - \"1.X.Y\": picks the highest valid gke.N patch in the 1.X.Y version - \"1.X.Y-gke.N\": picks an explicit Kubernetes version - \"-\": picks the Kubernetes master version",
"type": "string"
Expand Down Expand Up @@ -4380,6 +4384,27 @@
},
"type": "object"
},
"LoggingVariantConfig": {
"description": "LoggingVariantConfig specifies the behaviour of the logging component.",
"id": "LoggingVariantConfig",
"properties": {
"variant": {
"description": "Logging variant deployed on nodes.",
"enum": [
"VARIANT_UNSPECIFIED",
"DEFAULT",
"MAX_THROUGHPUT"
],
"enumDescriptions": [
"Default value. This shouldn't be used.",
"default logging variant.",
"maximum logging throughput variant."
],
"type": "string"
}
},
"type": "object"
},
"MaintenanceExclusionOptions": {
"description": "Represents the Maintenance exclusion option.",
"id": "MaintenanceExclusionOptions",
Expand Down Expand Up @@ -4808,6 +4833,10 @@
"format": "int32",
"type": "integer"
},
"loggingConfig": {
"$ref": "NodePoolLoggingConfig",
"description": "Logging configuration."
},
"machineType": {
"description": "The name of a Google Compute Engine [machine type](https://cloud.google.com/compute/docs/machine-types). If unspecified, the default machine type is `e2-medium`.",
"type": "string"
Expand All @@ -4820,7 +4849,7 @@
"type": "object"
},
"minCpuPlatform": {
"description": "Minimum CPU platform to be used by this instance. The instance may be scheduled on the specified or newer CPU platform. Applicable values are the friendly names of CPU platforms, such as `minCpuPlatform: \"Intel Haswell\"` or `minCpuPlatform: \"Intel Sandy Bridge\"`. For more information, read [how to specify min CPU platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)",
"description": "Minimum CPU platform to be used by this instance. The instance may be scheduled on the specified or newer CPU platform. Applicable values are the friendly names of CPU platforms, such as `minCpuPlatform: \"Intel Haswell\"` or `minCpuPlatform: \"Intel Sandy Bridge\"`. For more information, read [how to specify min CPU platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform).",
"type": "string"
},
"nodeGroup": {
Expand Down Expand Up @@ -4886,6 +4915,10 @@
"gcfsConfig": {
"$ref": "GcfsConfig",
"description": "GCFS (Google Container File System, also known as Riptide) options."
},
"loggingConfig": {
"$ref": "NodePoolLoggingConfig",
"description": "Logging configuration for node pools."
}
},
"type": "object"
Expand Down Expand Up @@ -5150,6 +5183,17 @@
},
"type": "object"
},
"NodePoolLoggingConfig": {
"description": "NodePoolLoggingConfig specifies logging configuration for nodepools.",
"id": "NodePoolLoggingConfig",
"properties": {
"variantConfig": {
"$ref": "LoggingVariantConfig",
"description": "Logging variant configuration."
}
},
"type": "object"
},
"NodeTaint": {
"description": "Kubernetes taint is comprised of three fields: key, value, and effect. Effect can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute. See [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration) for more information, including usage and the valid values.",
"id": "NodeTaint",
Expand Down Expand Up @@ -5582,7 +5626,7 @@
"type": "string"
},
"key": {
"description": "Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify \"googleapis.com/reservation-name\" as the key and specify the name of your reservation as its value.",
"description": "Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify \"compute.googleapis.com/reservation-name\" as the key and specify the name of your reservation as its value.",
"type": "string"
},
"values": {
Expand Down Expand Up @@ -6494,6 +6538,10 @@
},
"type": "array"
},
"loggingConfig": {
"$ref": "NodePoolLoggingConfig",
"description": "Logging configuration."
},
"name": {
"description": "The name (project, location, cluster, node pool) of the node pool to update. Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.",
"type": "string"
Expand Down
2 changes: 1 addition & 1 deletion src/apis/container/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"webpack": "webpack"
},
"dependencies": {
"googleapis-common": "^5.0.1"
"googleapis-common": "^6.0.3"
},
"devDependencies": {
"@microsoft/api-documenter": "^7.8.10",
Expand Down
Loading

0 comments on commit 6832365

Please sign in to comment.