## maintenance.goog/v1

Package v1 contains API Schema definitions for the Maintenace Policy v1 API group

### DateTimeRange

*Appears in:*
- [MaintenanceExclusion](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/gdcag/apis/service/dbs/v1/maintenance-v1.md.txt#maintenanceexclusion)

| Field | Description |
|---|---|
| `startDateTime` *[Time](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.25/#time-v1-meta)* | Deny period start date. Date matching this period will have to be the same or after the start. |
| `endDateTime` *[Time](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.25/#time-v1-meta)* | Deny period end date. Date matching this period will have to be before the end. |

### DayOfWeek

*Underlying type:* `string`

*Appears in:*
- [WeeklyCycle](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/gdcag/apis/service/dbs/v1/maintenance-v1.md.txt#weeklycycle)

### MaintenanceExclusion

MaintenanceExclusion is a period of time when maintenance is forbidden even if otherwise allowed by maintenance window.
Ranges in MaintenanceExclusion use inclusive start values and exclusive end values (half-closed intervals). In interval
notation, this is \[start, end).

*Appears in:*
- [MaintenancePolicySpec](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/gdcag/apis/service/dbs/v1/maintenance-v1.md.txt#maintenancepolicyspec)

| Field | Description |
|---|---|
| `dateTimeRange` *[DateTimeRange](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/gdcag/apis/service/dbs/v1/maintenance-v1.md.txt#datetimerange)* | Period of time when maintenance is forbidden. |

### MaintenancePolicy

*Appears in:*
- [MaintenancePolicyList](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/gdcag/apis/service/dbs/v1/maintenance-v1.md.txt#maintenancepolicylist)

| Field | Description |
|---|---|
| `apiVersion` *string* | `maintenance.goog/v1` |
| `kind` *string* | `MaintenancePolicy` |
| `metadata` *[ObjectMeta](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.25/#objectmeta-v1-meta)* | Refer to Kubernetes API documentation for fields of `metadata`. |
| `spec` *[MaintenancePolicySpec](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/gdcag/apis/service/dbs/v1/maintenance-v1.md.txt#maintenancepolicyspec)* |   |
| `status` *[MaintenancePolicyStatus](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/gdcag/apis/service/dbs/v1/maintenance-v1.md.txt#maintenancepolicystatus)* |   |

### MaintenancePolicyBinding

*Appears in:*
- [MaintenancePolicyBindingList](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/gdcag/apis/service/dbs/v1/maintenance-v1.md.txt#maintenancepolicybindinglist)

| Field | Description |
|---|---|
| `apiVersion` *string* | `maintenance.goog/v1` |
| `kind` *string* | `MaintenancePolicyBinding` |
| `metadata` *[ObjectMeta](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.25/#objectmeta-v1-meta)* | Refer to Kubernetes API documentation for fields of `metadata`. |
| `spec` *[MaintenancePolicyBindingSpec](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/gdcag/apis/service/dbs/v1/maintenance-v1.md.txt#maintenancepolicybindingspec)* |   |
| `status` *[MaintenancePolicyBindingStatus](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/gdcag/apis/service/dbs/v1/maintenance-v1.md.txt#maintenancepolicybindingstatus)* |   |

### MaintenancePolicyBindingList

| Field | Description |
|---|---|
| `apiVersion` *string* | `maintenance.goog/v1` |
| `kind` *string* | `MaintenancePolicyBindingList` |
| `metadata` *[ListMeta](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.25/#listmeta-v1-meta)* | Refer to Kubernetes API documentation for fields of `metadata`. |
| `items` *[MaintenancePolicyBinding](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/gdcag/apis/service/dbs/v1/maintenance-v1.md.txt#maintenancepolicybinding) array* |   |

### MaintenancePolicyBindingSpec

*Appears in:*
- [MaintenancePolicyBinding](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/gdcag/apis/service/dbs/v1/maintenance-v1.md.txt#maintenancepolicybinding)

| Field | Description |
|---|---|
| `maintenancePolicy` *[MaintenancePolicyRef](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/gdcag/apis/service/dbs/v1/maintenance-v1.md.txt#maintenancepolicyref)* |   |
| `resource` *[MaintenancePolicyResourceRef](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/gdcag/apis/service/dbs/v1/maintenance-v1.md.txt#maintenancepolicyresourceref)* |   |

### MaintenancePolicyBindingStatus

*Appears in:*
- [MaintenancePolicyBinding](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/gdcag/apis/service/dbs/v1/maintenance-v1.md.txt#maintenancepolicybinding)

| Field | Description |
|---|---|
| `conditions` *[Condition](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.25/#condition-v1-meta) array* | Conditions contain conditions for MaintenancePolicyBindings. The maintenance policy binding controller sets the Valid condition. The following are known values for the reason field: - BindingDuplicated: The controller found more than one binding assigned to a given resource, the status of the condition will be False. - MaintenancePolicyMissing: The maintenance policy the binding is pointing to is missing, t the status of the condition will be False. - ResourceMissing: The resource the binding is pointing to is missing, the status of the condition will be False. - Valid: There is a single binding for given resource, which both ends are referencing existing entities, the status of the condition will be True. |

### MaintenancePolicyList

| Field | Description |
|---|---|
| `apiVersion` *string* | `maintenance.goog/v1` |
| `kind` *string* | `MaintenancePolicyList` |
| `metadata` *[ListMeta](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.25/#listmeta-v1-meta)* | Refer to Kubernetes API documentation for fields of `metadata`. |
| `items` *[MaintenancePolicy](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/gdcag/apis/service/dbs/v1/maintenance-v1.md.txt#maintenancepolicy) array* |   |

### MaintenancePolicyRef

*Appears in:*
- [MaintenancePolicyBindingSpec](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/gdcag/apis/service/dbs/v1/maintenance-v1.md.txt#maintenancepolicybindingspec)

| Field | Description |
|---|---|
| `apiGroup` *string* |   |
| `kind` *string* |   |
| `name` *string* |   |

### MaintenancePolicyResourceRef

*Appears in:*
- [MaintenancePolicyBindingSpec](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/gdcag/apis/service/dbs/v1/maintenance-v1.md.txt#maintenancepolicybindingspec)

| Field | Description |
|---|---|
| `apiGroup` *string* |   |
| `kind` *string* |   |
| `name` *string* |   |

### MaintenancePolicySpec

*Appears in:*
- [MaintenancePolicy](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/gdcag/apis/service/dbs/v1/maintenance-v1.md.txt#maintenancepolicy)

| Field | Description |
|---|---|
| `maintenanceWindow` *[MaintenanceWindow](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/gdcag/apis/service/dbs/v1/maintenance-v1.md.txt#maintenancewindow)* | Maintenance window that is applied to services covered by this policy. |
| `maintenanceExclusions` *object (keys:string, values:[MaintenanceExclusion](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/gdcag/apis/service/dbs/v1/maintenance-v1.md.txt#maintenanceexclusion))* | Named periods when maintenance is forbidden even if otherwise allowed by maintenanceWindow. |

### MaintenancePolicyStatus

*Appears in:*
- [MaintenancePolicy](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/gdcag/apis/service/dbs/v1/maintenance-v1.md.txt#maintenancepolicy)

| Field | Description |
|---|---|
| `conditions` *[Condition](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.25/#condition-v1-meta) array* | Conditions field contain conditions for MaintenancePolicies. The maintenance policy controller sets the "MaintenanceAllowed" condition. The following are known values for the reason field: - InsideMaintenanceWindow: We are currently inside the scheduled Maintenance Window and the maintenance is allowed. The status of the condition will be True. - OutsideMaintenanceWindow: We are currently inside the Maintenance Window, but the exclusion is in effect, the maintenance is not allowed. The status of the condition will be False. - InsideMaintenanceExclusion: We are currently outside the Maintenance Window, the maintenance is not allowed. The status of the condition will be False. |

### MaintenanceWindow

MaintenanceWindow represents a period of time when maintenance is allowed.
One and only one of the fields must be present.

*Appears in:*
- [MaintenancePolicySpec](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/gdcag/apis/service/dbs/v1/maintenance-v1.md.txt#maintenancepolicyspec)

| Field | Description |
|---|---|
| `weeklyCycle` *[WeeklyCycle](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/gdcag/apis/service/dbs/v1/maintenance-v1.md.txt#weeklycycle)* | Weekly cycle. |

### TimeOfDay

*Underlying type:* `string`
TimeOfDay is the time in the text format "HH:mm"

*Appears in:*
- [WeeklyCycle](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/gdcag/apis/service/dbs/v1/maintenance-v1.md.txt#weeklycycle)

### WeeklyCycle

WeeklyCycle represents the weekly-recurring time window for operations.

*Appears in:*
- [MaintenanceWindow](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/gdcag/apis/service/dbs/v1/maintenance-v1.md.txt#maintenancewindow)

| Field | Description |
|---|---|
| `daysOfWeek` *[DayOfWeek](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/gdcag/apis/service/dbs/v1/maintenance-v1.md.txt#dayofweek) array* | Day of the week when the operations can be started. One or more days may be specified. |
| `startTime` *[TimeOfDay](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/gdcag/apis/service/dbs/v1/maintenance-v1.md.txt#timeofday)* | Time within the day to start the operations. UTC timezone is assumed. |
| `duration` *[Duration](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.25/#duration-v1-meta)* | Duration of the time window. |