|
394 | 394 | }, |
395 | 395 | "description": "Message for spending limit configuration." |
396 | 396 | }, |
| 397 | + "ClusterUsage": { |
| 398 | + "type": "object", |
| 399 | + "properties": { |
| 400 | + "requestUnit": { |
| 401 | + "type": "string", |
| 402 | + "format": "int64", |
| 403 | + "description": "Output_only. The Request Units used in this month.", |
| 404 | + "readOnly": true |
| 405 | + }, |
| 406 | + "rowBasedStorage": { |
| 407 | + "type": "number", |
| 408 | + "format": "double", |
| 409 | + "description": "Output_only. The storage used on row-based storage in bytes.", |
| 410 | + "readOnly": true |
| 411 | + }, |
| 412 | + "columnarStorage": { |
| 413 | + "type": "number", |
| 414 | + "format": "double", |
| 415 | + "description": "Output_only. The storage used on column-based storage in bytes.", |
| 416 | + "readOnly": true |
| 417 | + } |
| 418 | + }, |
| 419 | + "description": "Message for usage statistics of a cluster." |
| 420 | + }, |
397 | 421 | "EndpointsPrivate": { |
398 | 422 | "type": "object", |
399 | 423 | "properties": { |
|
444 | 468 | "disabled": { |
445 | 469 | "type": "boolean", |
446 | 470 | "description": "Optional. Whether the public endpoint is disabled." |
| 471 | + }, |
| 472 | + "authorizedNetworks": { |
| 473 | + "type": "array", |
| 474 | + "items": { |
| 475 | + "type": "object", |
| 476 | + "$ref": "#/definitions/EndpointsPublicAuthorizedNetwork" |
| 477 | + }, |
| 478 | + "title": "The list of networks that are allowed to connect to the cluster" |
447 | 479 | } |
448 | 480 | }, |
449 | 481 | "description": "Message for public endpoint to connect to the cluster." |
450 | 482 | }, |
| 483 | + "EndpointsPublicAuthorizedNetwork": { |
| 484 | + "type": "object", |
| 485 | + "properties": { |
| 486 | + "startIpAddress": { |
| 487 | + "type": "string" |
| 488 | + }, |
| 489 | + "endIpAddress": { |
| 490 | + "type": "string" |
| 491 | + }, |
| 492 | + "displayName": { |
| 493 | + "type": "string" |
| 494 | + } |
| 495 | + }, |
| 496 | + "required": [ |
| 497 | + "startIpAddress", |
| 498 | + "endIpAddress", |
| 499 | + "displayName" |
| 500 | + ] |
| 501 | + }, |
451 | 502 | "PrivateAWS": { |
452 | 503 | "type": "object", |
453 | 504 | "properties": { |
|
685 | 736 | "readOnly": true, |
686 | 737 | "allOf": [ |
687 | 738 | { |
688 | | - "$ref": "#/definitions/v1beta1ClusterUsage" |
| 739 | + "$ref": "#/definitions/ClusterUsage" |
689 | 740 | } |
690 | 741 | ] |
691 | 742 | }, |
|
715 | 766 | "format": "date-time", |
716 | 767 | "description": "Output_only. Timestamp when the cluster was last updated.", |
717 | 768 | "readOnly": true |
| 769 | + }, |
| 770 | + "auditLogConfig": { |
| 771 | + "description": "Optional. The audit log configuration for the cluster.", |
| 772 | + "allOf": [ |
| 773 | + { |
| 774 | + "$ref": "#/definitions/v1beta1ClusterAuditLogConfig" |
| 775 | + } |
| 776 | + ] |
718 | 777 | } |
719 | 778 | }, |
720 | 779 | "description": "Message for a serverless TiDB cluster resource.", |
|
823 | 882 | "type": "object", |
824 | 883 | "description": "Responses message to the request for changing the root password of a TiDB Cloud Serverless cluster." |
825 | 884 | }, |
| 885 | + "v1beta1ClusterAuditLogConfig": { |
| 886 | + "type": "object", |
| 887 | + "properties": { |
| 888 | + "enabled": { |
| 889 | + "type": "boolean", |
| 890 | + "x-nullable": true, |
| 891 | + "description": "Optional. Whether audit log is enabled." |
| 892 | + }, |
| 893 | + "unredacted": { |
| 894 | + "type": "boolean", |
| 895 | + "x-nullable": true, |
| 896 | + "description": "Optional. Whether unredacted the audit log." |
| 897 | + } |
| 898 | + }, |
| 899 | + "description": "Message for audit log configuration." |
| 900 | + }, |
826 | 901 | "v1beta1ClusterAutomatedBackupPolicy": { |
827 | 902 | "type": "object", |
828 | 903 | "properties": { |
829 | 904 | "startTime": { |
830 | 905 | "type": "string", |
831 | | - "description": "Optional. Cron expression for when automated backups should start." |
| 906 | + "description": "Optional. When automated backups should start, in HH:mm format, UTC." |
832 | 907 | }, |
833 | 908 | "retentionDays": { |
834 | 909 | "type": "integer", |
|
871 | 946 | }, |
872 | 947 | "description": "Message for endpoint information for connecting to a cluster." |
873 | 948 | }, |
874 | | - "v1beta1ClusterUsage": { |
875 | | - "type": "object", |
876 | | - "properties": { |
877 | | - "requestUnit": { |
878 | | - "type": "string", |
879 | | - "format": "int64", |
880 | | - "description": "Output_only. The Request Units used in this month.", |
881 | | - "readOnly": true |
882 | | - }, |
883 | | - "rowBasedStorage": { |
884 | | - "type": "number", |
885 | | - "format": "double", |
886 | | - "description": "Output_only. The storage used on row-based storage in bytes.", |
887 | | - "readOnly": true |
888 | | - }, |
889 | | - "columnarStorage": { |
890 | | - "type": "number", |
891 | | - "format": "double", |
892 | | - "description": "Output_only. The storage used on column-based storage in bytes.", |
893 | | - "readOnly": true |
894 | | - } |
895 | | - }, |
896 | | - "description": "Message for usage statistics of a cluster." |
897 | | - }, |
898 | 949 | "v1beta1PartialUpdateClusterRequestPartialUpdateCluster": { |
899 | 950 | "type": "object", |
900 | 951 | "properties": { |
|
936 | 987 | "type": "string" |
937 | 988 | }, |
938 | 989 | "description": "Optional. The labels for the cluster.\ntidb.cloud/organization. The label for the cluster organization id.\ntidb.cloud/project. The label for the cluster project id." |
| 990 | + }, |
| 991 | + "auditLogConfig": { |
| 992 | + "description": "Optional. The audit log configuration for the cluster.", |
| 993 | + "allOf": [ |
| 994 | + { |
| 995 | + "$ref": "#/definitions/v1beta1ClusterAuditLogConfig" |
| 996 | + } |
| 997 | + ] |
939 | 998 | } |
940 | 999 | }, |
941 | 1000 | "required": [ |
|
947 | 1006 | "enum": [ |
948 | 1007 | "aws", |
949 | 1008 | "gcp", |
950 | | - "azure" |
| 1009 | + "azure", |
| 1010 | + "alicloud" |
951 | 1011 | ], |
952 | | - "description": "Enum of cloud provider names.\n\n - aws: Amazon Web Services.\nbuf:lint:ignore ENUM_VALUE_UPPER_SNAKE_CASE\n - gcp: Google Cloud Platform.\nbuf:lint:ignore ENUM_VALUE_UPPER_SNAKE_CASE\n - azure: Microsoft Azure.\nbuf:lint:ignore ENUM_VALUE_UPPER_SNAKE_CASE" |
| 1012 | + "description": "Enum of cloud provider names.\n\n - aws: Amazon Web Services.\n - gcp: Google Cloud Platform.\n - azure: Microsoft Azure.\n - alicloud: Alibaba Cloud" |
953 | 1013 | }, |
954 | 1014 | "v1beta1ServerlessServicePartialUpdateClusterBody": { |
955 | 1015 | "type": "object", |
|
991 | 1051 | "type": "string" |
992 | 1052 | }, |
993 | 1053 | "description": "Optional. The labels for the cluster.\ntidb.cloud/organization. The label for the cluster organization id.\ntidb.cloud/project. The label for the cluster project id." |
| 1054 | + }, |
| 1055 | + "auditLogConfig": { |
| 1056 | + "description": "Optional. The audit log configuration for the cluster.", |
| 1057 | + "allOf": [ |
| 1058 | + { |
| 1059 | + "$ref": "#/definitions/v1beta1ClusterAuditLogConfig" |
| 1060 | + } |
| 1061 | + ] |
994 | 1062 | } |
995 | 1063 | }, |
996 | 1064 | "description": "Required. The cluster to be updated.", |
|
0 commit comments