Skip to content

Commit

Permalink
feat(all): auto-regenerate discovery clients (#2072)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation authored Jul 15, 2023
1 parent 16cf0c3 commit 52ac522
Show file tree
Hide file tree
Showing 33 changed files with 897 additions and 470 deletions.
21 changes: 15 additions & 6 deletions batch/v1/batch-api.json
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,11 @@
"location": "query",
"type": "string"
},
"orderBy": {
"description": "Optional. Sort results. Supported are \"name\", \"name desc\", \"create_time\", and \"create_time desc\".",
"location": "query",
"type": "string"
},
"pageSize": {
"description": "Page size.",
"format": "int32",
Expand Down Expand Up @@ -556,7 +561,7 @@
}
}
},
"revision": "20230621",
"revision": "20230705",
"rootUrl": "https://batch.googleapis.com/",
"schemas": {
"Accelerator": {
Expand All @@ -568,6 +573,10 @@
"format": "int64",
"type": "string"
},
"driverVersion": {
"description": "Optional. The NVIDIA GPU driver version that should be installed for this type. You can define the specific driver version such as \"470.103.01\", following the driver version requirements in https://cloud.google.com/compute/docs/gpus/install-drivers-gpu#minimum-driver. Batch will install the specific accelerator driver if qualified.",
"type": "string"
},
"installGpuDrivers": {
"deprecated": true,
"description": "Deprecated: please use instances[0].install_gpu_drivers instead.",
Expand Down Expand Up @@ -658,7 +667,7 @@
"id": "AgentInfo",
"properties": {
"jobId": {
"description": "The assigned Job ID",
"description": "Optional. The assigned Job ID",
"type": "string"
},
"reportTime": {
Expand Down Expand Up @@ -1082,7 +1091,7 @@
"type": "string"
},
"image": {
"description": "Name of a public or custom image used as the data source. For example, the following are all valid URLs: * Specify the image by its family name: projects/{project}/global/images/family/{image_family} * Specify the image version: projects/{project}/global/images/{image_version} You can also use Batch customized image in short names. The following image values are supported for a boot disk: * \"batch-debian\": use Batch Debian images. * \"batch-centos\": use Batch CentOS images. * \"batch-cos\": use Batch Container-Optimized images. * \"batch-hpc-centos\": use Batch HPC CentOS images.",
"description": "Name of an image used as the data source. For example, the following are all valid URLs: * Specify the image by its family name: projects/project/global/images/family/image_family * Specify the image version: projects/project/global/images/image_version You can also use Batch customized image in short names. The following image values are supported for a boot disk: * `batch-debian`: use Batch Debian images. * `batch-centos`: use Batch CentOS images. * `batch-cos`: use Batch Container-Optimized images. * `batch-hpc-centos`: use Batch HPC CentOS images.",
"type": "string"
},
"sizeGb": {
Expand Down Expand Up @@ -1197,7 +1206,7 @@
"id": "InstancePolicyOrTemplate",
"properties": {
"installGpuDrivers": {
"description": "Set this field true if users want Batch to help fetch drivers from a third party location and install them for GPUs specified in policy.accelerators or instance_template on their behalf. Default is false.",
"description": "Set this field true if users want Batch to help fetch drivers from a third party location and install them for GPUs specified in policy.accelerators or instance_template on their behalf. Default is false. For Container-Optimized Image cases, Batch will install the accelerator driver following milestones of https://cloud.google.com/container-optimized-os/docs/release-notes. For non Container-Optimized Image cases, following https://github.com/GoogleCloudPlatform/compute-gpu-installation/blob/main/linux/install_gpu_driver.py.",
"type": "boolean"
},
"instanceTemplate": {
Expand Down Expand Up @@ -1660,15 +1669,15 @@
"id": "NetworkInterface",
"properties": {
"network": {
"description": "The URL of an existing network resource. 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/{network}",
"description": "The URL of an existing network resource. 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/network ",
"type": "string"
},
"noExternalIpAddress": {
"description": "Default is false (with an external IP address). Required if no external public IP address is attached to the VM. If no external public IP address, additional configuration is required to allow the VM to access Google Services. See https://cloud.google.com/vpc/docs/configure-private-google-access and https://cloud.google.com/nat/docs/gce-example#create-nat for more information.",
"type": "boolean"
},
"subnetwork": {
"description": "The URL of an existing subnetwork resource in the network. You can specify the subnetwork as a full or partial URL. For example, the following are all valid URLs: * https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork} * projects/{project}/regions/{region}/subnetworks/{subnetwork} * regions/{region}/subnetworks/{subnetwork}",
"description": "The URL of an existing subnetwork resource in the network. You can specify the subnetwork as a full or partial URL. For example, the following are all valid URLs: https://www.googleapis.com/compute/v1/projects/project/regions/region/subnetworks/subnetwork projects/project/regions/region/subnetworks/subnetwork regions/region/subnetworks/subnetwork ",
"type": "string"
}
},
Expand Down
62 changes: 42 additions & 20 deletions batch/v1/batch-gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

58 changes: 57 additions & 1 deletion container/v1/container-api.json
Original file line number Diff line number Diff line change
Expand Up @@ -2540,7 +2540,7 @@
}
}
},
"revision": "20230626",
"revision": "20230629",
"rootUrl": "https://container.googleapis.com/",
"schemas": {
"AcceleratorConfig": {
Expand Down Expand Up @@ -2571,6 +2571,40 @@
},
"type": "object"
},
"AdditionalNodeNetworkConfig": {
"description": "AdditionalNodeNetworkConfig is the configuration for additional node networks within the NodeNetworkConfig message",
"id": "AdditionalNodeNetworkConfig",
"properties": {
"network": {
"description": "Name of the VPC where the additional interface belongs",
"type": "string"
},
"subnetwork": {
"description": "Name of the subnetwork where the additional interface belongs",
"type": "string"
}
},
"type": "object"
},
"AdditionalPodNetworkConfig": {
"description": "AdditionalPodNetworkConfig is the configuration for additional pod networks within the NodeNetworkConfig message",
"id": "AdditionalPodNetworkConfig",
"properties": {
"maxPodsPerNode": {
"$ref": "MaxPodsConstraint",
"description": "The maximum number of pods per node which use this pod network"
},
"secondaryPodRange": {
"description": "The name of the secondary range on the subnet which provides IP address for this pod range",
"type": "string"
},
"subnetwork": {
"description": "Name of the subnetwork where the additional pod network belongs",
"type": "string"
}
},
"type": "object"
},
"AdditionalPodRangesConfig": {
"description": "AdditionalPodRangesConfig is the configuration for additional pod secondary ranges supporting the ClusterUpdate message.",
"id": "AdditionalPodRangesConfig",
Expand Down Expand Up @@ -4845,6 +4879,10 @@
"description": "Whether L4ILB Subsetting is enabled for this cluster.",
"type": "boolean"
},
"enableMultiNetworking": {
"description": "Whether multi-networking is enabled for this cluster.",
"type": "boolean"
},
"gatewayApiConfig": {
"$ref": "GatewayAPIConfig",
"description": "GatewayAPIConfig contains the desired config of Gateway API on this cluster."
Expand Down Expand Up @@ -5229,6 +5267,20 @@
"description": "Parameters for node pool-level network config.",
"id": "NodeNetworkConfig",
"properties": {
"additionalNodeNetworkConfigs": {
"description": "We specify the additional node networks for this node pool using this list. Each node network corresponds to an additional interface",
"items": {
"$ref": "AdditionalNodeNetworkConfig"
},
"type": "array"
},
"additionalPodNetworkConfigs": {
"description": "We specify the additional pod networks for this node pool using this list. Each pod network corresponds to an additional alias IP range for the node",
"items": {
"$ref": "AdditionalPodNetworkConfig"
},
"type": "array"
},
"createPodRange": {
"description": "Input only. Whether to create a new range for pod IPs in this node pool. Defaults are provided for `pod_range` and `pod_ipv4_cidr_block` if they are not specified. If neither `create_pod_range` or `pod_range` are specified, the cluster-level default (`ip_allocation_policy.cluster_ipv4_cidr_block`) is used. Only applicable if `ip_allocation_policy.use_ip_aliases` is true. This field cannot be changed after the node pool has been created.",
"type": "boolean"
Expand Down Expand Up @@ -5693,6 +5745,10 @@
"description": "PlacementPolicy defines the placement policy used by the node pool.",
"id": "PlacementPolicy",
"properties": {
"policyName": {
"description": "If set, refers to the name of a custom resource policy supplied by the user. The resource policy must be in the same project and region as the node pool. If not found, InvalidArgument error is returned.",
"type": "string"
},
"type": {
"description": "The type of placement.",
"enum": [
Expand Down
Loading

0 comments on commit 52ac522

Please sign in to comment.