feat: Add new gcloud commands, API clients, and third-party libraries across various services.

This commit is contained in:
2026-01-01 20:26:35 +01:00
parent 5e23cbece0
commit a19e592eb7
25221 changed files with 8324611 additions and 0 deletions

View File

@@ -0,0 +1,100 @@
$schema: "http://json-schema.org/draft-06/schema#"
title: gkebackup v1 exclusion windows export schema
description: Specifying the exclusion windows yaml definition
type: object
additionalProperties: false
properties:
exclusionWindows:
description: |-
User specified time windows during which backup can NOT happen for this
BackupPlan - backups should start and finish outside of any given
exclusion window. Note: backup jobs will be scheduled to start and finish
outside the duration of the window as much as possible, but running jobs
will not get canceled when it runs into the window. All the time and date
values in exclusion_windows entry in the API are in UTC. We only allow <=1
recurrence (daily or weekly) exclusion window for a BackupPlan while no
restriction on number of single occurrence windows.
type: array
items:
type: object
required:
- duration
- startTime
additionalProperties: false
properties:
daily:
description: |-
The exclusion window occurs every day if set to "True". Specifying this
field to "False" is an error.
type: boolean
daysOfWeek:
description: The exclusion window occurs on these days of each week in UTC.
type: object
additionalProperties: false
properties:
daysOfWeek:
description: A list of days of week.
type: array
items:
type: string
enum:
- DAY_OF_WEEK_UNSPECIFIED
- FRIDAY
- MONDAY
- SATURDAY
- SUNDAY
- THURSDAY
- TUESDAY
- WEDNESDAY
duration:
description: |-
Specifies duration of the window. Restrictions for duration based on the
recurrence type to allow some time for backup to
type: string
singleOccurrenceDate:
description: |-
No recurrence. The exclusion window occurs only once and on this date in
UTC.
type: object
additionalProperties: false
properties:
day:
description: |-
Day of a month. Must be from 1 to 31 and valid for the year and month, or
0 to specify a year by itself or a year and month where the day isn't
significant.
type: integer
month:
description: |-
Month of a year. Must be from 1 to 12, or 0 to specify a year without a
month and day.
type: integer
year:
description: |-
Year of the date. Must be from 1 to 9999, or 0 to specify a date without a
year.
type: integer
startTime:
description: |-
Specifies the start time of the window using time of the day in UTC.
type: object
additionalProperties: false
properties:
hours:
description: |-
Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
to allow the value "24:00:00" for scenarios like business closing time.
type: integer
minutes:
description: Minutes of hour of day. Must be from 0 to 59.
type: integer
nanos:
description: |-
Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
type: integer
seconds:
description: |-
Seconds of minutes of the time. Must normally be from 0 to 59. An API may
allow the value 60 if it allows leap-seconds.
type: integer

View File

@@ -0,0 +1,23 @@
$schema: "http://json-schema.org/draft-06/schema#"
title: gkebackup v1 Filter export schema
description: Schema of Backup for GKE fine-grained restore Filter.
type: object
additionalProperties: false
properties:
exclusionFilters:
description: |-
Excludes resources from restoration. If specified, a resource will not be
restored if it matches any ResourceSelector of the exclusion_filters.
type: array
items:
$ref: ResourceSelector.yaml
inclusionFilters:
description: |-
Selects resources for restoration. If specified, only resources which
match inclusion_filters will be selected for restoration. A resource
will be selected if it matches any ResourceSelector of the
inclusion_filters.
type: array
items:
$ref: ResourceSelector.yaml

View File

@@ -0,0 +1,17 @@
$schema: "http://json-schema.org/draft-06/schema#"
title: gkebackup v1 GroupKind export schema
description: Backup for GKE GroupKind schema.
type: object
additionalProperties: false
properties:
resourceGroup:
description: |-
API group string of a Kubernetes resource, e.g. "apiextensions.k8s.io",
"storage.k8s.io", etc. Note: use empty string for core API group.
type: string
resourceKind:
description: |-
Kind of a Kubernetes resource, must be in UpperCamelCase (PascalCase) and
singular form. E.g. "CustomResourceDefinition", "StorageClass", etc.
type: string

View File

@@ -0,0 +1,12 @@
$schema: "http://json-schema.org/draft-06/schema#"
title: gkebackup v1 Label export schema
description: A gcloud export/import command YAML validation schema.
type: object
additionalProperties:
key:
description: Name of the additional property.
type: string
value:
description: A string attribute.
type: string

View File

@@ -0,0 +1,33 @@
$schema: "http://json-schema.org/draft-06/schema#"
title: gkebackup v1 ResourceSelector export schema
description: Schema of Backup for GKE fine-grained restore ResourceSelector.
type: object
additionalProperties: false
properties:
groupKind:
description: |-
Selects resources using their Kubernetes GroupKinds. If specified, only
resources of provided GroupKind will be selected.
$ref: GroupKind.yaml
labels:
description: |-
Selects resources using Kubernetes labels. If specified, a resource will be
selected if and only if the resource has all of the provided labels and all
the label values match.
$ref: Label.yaml
name:
description: |-
Selects resources using their resource names. If specified, only resources
with the provided name will be selected.
type: string
namespace:
description: |-
Selects resources using their namespaces. This only applies to namespace
scoped resources and cannot be used for selecting cluster scoped
resources. If specified, only resources in the provided namespace will be
selected. If not specified, the filter will apply to both cluster scoped
and namespace scoped resources (e.g. name or label). The
Namespace resource itself will be restored if and only if any resources
within the namespace are restored.
type: string

View File

@@ -0,0 +1,53 @@
$schema: "http://json-schema.org/draft-06/schema#"
title: gkebackup v1 RestoreOrder export schema
description: A gcloud export/import command YAML validation schema.
type: object
additionalProperties: false
properties:
groupKindDependencies:
description: |-
Contains a list of group kind dependency pairs provided by the customer,
that is used by Backup for GKE to generate a group kind restore order.
type: array
items:
type: object
required:
- requiring
- satisfying
additionalProperties: false
properties:
requiring:
description: |-
The requiring group kind requires that the satisfying group kind be restored
first.
type: object
additionalProperties: false
properties:
resourceGroup:
description: |-
API group of a Kubernetes resource, e.g. "apiextensions.k8s.io",
"storage.k8s.io", etc. Note: use empty string for core API group
type: string
resourceKind:
description: |-
Kind of a Kubernetes resource, must be in singular form. E.g.
"CustomResourceDefinition", "StorageClass", etc.
type: string
satisfying:
description: |-
The satisfying group kind must be restored first in order to satisfy the
dependency.
type: object
additionalProperties: false
properties:
resourceGroup:
description: |-
API group string of a Kubernetes resource, e.g. "apiextensions.k8s.io",
"storage.k8s.io", etc. Note: use empty string for core API group
type: string
resourceKind:
description: |-
Kind of a Kubernetes resource, must be in singular form. E.g.
"CustomResourceDefinition", "StorageClass", etc.
type: string

View File

@@ -0,0 +1,33 @@
$schema: "http://json-schema.org/draft-06/schema#"
title: backup for gke v1 substitution rule schema
description: backup for gke substitution rule file YAML validation schema
type: object
additionalProperties: false
properties:
substitutionRules:
type: array
items:
type: object
additionalProperties: false
properties:
targetNamespaces:
type: array
items:
type: string
targetGroupKinds:
type: array
items:
type: object
additionalProperties: false
properties:
resourceGroup:
type: string
resourceKind:
type: string
targetJsonPath:
type: string
originalValuePattern:
type: string
newValue:
type: string

View File

@@ -0,0 +1,49 @@
$schema: "http://json-schema.org/draft-06/schema#"
title: backup for gke v1 transformation rule schema
description: backup for gke transformation rule file YAML validation schema
type: object
additionalProperties: false
properties:
transformationRules:
type: array
items:
type: object
additionalProperties: false
properties:
description:
type: string
resourceFilter:
type: object
additionalProperties: false
properties:
namespaces:
type: array
items:
type: string
groupKinds:
type: array
items:
type: object
additionalProperties: false
properties:
resourceGroup:
type: string
resourceKind:
type: string
jsonPath:
type: string
fieldActions:
type: array
items:
type: object
additionalProperties: false
properties:
op:
type: string
fromPath:
type: string
path:
type: string
value:
type: string

View File

@@ -0,0 +1,45 @@
$schema: "http://json-schema.org/draft-06/schema#"
title: gkebackup v1 volume data restore policy overrides export schema
description: Specifying the volume data restore policy overrides yaml definition.
type: object
additionalProperties: false
properties:
volumeDataRestorePolicyOverrides:
description: |-
Immutable. Overrides the volume data restore policies selected in the
Restore Config for override-scoped resources.
type: array
items:
type: object
required:
- policy
additionalProperties: false
properties:
policy:
description: |-
The VolumeDataRestorePolicy to apply when restoring volumes in scope.
type: string
enum:
- NO_VOLUME_DATA_RESTORATION
- RESTORE_VOLUME_DATA_FROM_BACKUP
- REUSE_VOLUME_HANDLE_FROM_BACKUP
- VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED
selectedPvcs:
description: A list of PVCs to apply the policy override to.
type: object
additionalProperties: false
properties:
namespacedNames:
description: A list of namespaced Kubernetes resources.
type: array
items:
type: object
additionalProperties: false
properties:
name:
description: The name of the Kubernetes resource.
type: string
namespace:
description: The Namespace of the Kubernetes resource.
type: string