Skip to content

Commit 5903d86

Browse files
author
uesyn
committed
regenerate src/gen
1 parent 953ec5b commit 5903d86

File tree

9 files changed

+53
-49
lines changed

9 files changed

+53
-49
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2f1c88a05f74b314b5acf7df6711ddd86f9df0431d5ba7cba844ec9121985f04
1+
d7d7f59b89dfcaf8a1fb55631bdfbe8546459089b215e9d33040fc78c7f08102

src/gen/model/coreV1Event.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import { RequestFile } from './models';
1414
import { CoreV1EventSeries } from './coreV1EventSeries';
1515
import { V1EventSource } from './v1EventSource';
16+
import { V1MicroTime } from '../../types';
1617
import { V1ObjectMeta } from './v1ObjectMeta';
1718
import { V1ObjectReference } from './v1ObjectReference';
1819

@@ -33,9 +34,9 @@ export class CoreV1Event {
3334
*/
3435
'count'?: number;
3536
/**
36-
* Time when this Event was first observed.
37+
* MicroTime is version of Time with microsecond level precision.
3738
*/
38-
'eventTime'?: Date;
39+
'eventTime'?: V1MicroTime;
3940
/**
4041
* The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)
4142
*/
@@ -95,7 +96,7 @@ export class CoreV1Event {
9596
{
9697
"name": "eventTime",
9798
"baseName": "eventTime",
98-
"type": "Date"
99+
"type": "V1MicroTime"
99100
},
100101
{
101102
"name": "firstTimestamp",

src/gen/model/coreV1EventSeries.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
*/
1212

1313
import { RequestFile } from './models';
14+
import { V1MicroTime } from '../../types';
1415

1516
/**
1617
* EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time.
@@ -21,9 +22,9 @@ export class CoreV1EventSeries {
2122
*/
2223
'count'?: number;
2324
/**
24-
* Time of the last occurrence observed
25+
* MicroTime is version of Time with microsecond level precision.
2526
*/
26-
'lastObservedTime'?: Date;
27+
'lastObservedTime'?: V1MicroTime;
2728

2829
static discriminator: string | undefined = undefined;
2930

@@ -36,7 +37,7 @@ export class CoreV1EventSeries {
3637
{
3738
"name": "lastObservedTime",
3839
"baseName": "lastObservedTime",
39-
"type": "Date"
40+
"type": "V1MicroTime"
4041
} ];
4142

4243
static getAttributeTypeMap() {

src/gen/model/eventsV1Event.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import { RequestFile } from './models';
1414
import { EventsV1EventSeries } from './eventsV1EventSeries';
1515
import { V1EventSource } from './v1EventSource';
16+
import { V1MicroTime } from '../../types';
1617
import { V1ObjectMeta } from './v1ObjectMeta';
1718
import { V1ObjectReference } from './v1ObjectReference';
1819

@@ -42,9 +43,9 @@ export class EventsV1Event {
4243
'deprecatedLastTimestamp'?: Date;
4344
'deprecatedSource'?: V1EventSource;
4445
/**
45-
* eventTime is the time when this Event was first observed. It is required.
46+
* MicroTime is version of Time with microsecond level precision.
4647
*/
47-
'eventTime': Date;
48+
'eventTime': V1MicroTime;
4849
/**
4950
* Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
5051
*/
@@ -110,7 +111,7 @@ export class EventsV1Event {
110111
{
111112
"name": "eventTime",
112113
"baseName": "eventTime",
113-
"type": "Date"
114+
"type": "V1MicroTime"
114115
},
115116
{
116117
"name": "kind",

src/gen/model/eventsV1EventSeries.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
*/
1212

1313
import { RequestFile } from './models';
14+
import { V1MicroTime } from '../../types';
1415

1516
/**
1617
* EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time. How often to update the EventSeries is up to the event reporters. The default event reporter in \"k8s.io/client-go/tools/events/event_broadcaster.go\" shows how this struct is updated on heartbeats and can guide customized reporter implementations.
@@ -21,9 +22,9 @@ export class EventsV1EventSeries {
2122
*/
2223
'count': number;
2324
/**
24-
* lastObservedTime is the time when last Event from the series was seen before last heartbeat.
25+
* MicroTime is version of Time with microsecond level precision.
2526
*/
26-
'lastObservedTime': Date;
27+
'lastObservedTime': V1MicroTime;
2728

2829
static discriminator: string | undefined = undefined;
2930

@@ -36,7 +37,7 @@ export class EventsV1EventSeries {
3637
{
3738
"name": "lastObservedTime",
3839
"baseName": "lastObservedTime",
39-
"type": "Date"
40+
"type": "V1MicroTime"
4041
} ];
4142

4243
static getAttributeTypeMap() {

src/gen/model/v1LeaseSpec.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,16 @@
1111
*/
1212

1313
import { RequestFile } from './models';
14+
import { V1MicroTime } from '../../types';
1415

1516
/**
1617
* LeaseSpec is a specification of a Lease.
1718
*/
1819
export class V1LeaseSpec {
1920
/**
20-
* acquireTime is a time when the current lease was acquired.
21+
* MicroTime is version of Time with microsecond level precision.
2122
*/
22-
'acquireTime'?: Date;
23+
'acquireTime'?: V1MicroTime;
2324
/**
2425
* holderIdentity contains the identity of the holder of a current lease.
2526
*/
@@ -33,17 +34,17 @@ export class V1LeaseSpec {
3334
*/
3435
'leaseTransitions'?: number;
3536
/**
36-
* renewTime is a time when the current holder of a lease has last updated the lease.
37+
* MicroTime is version of Time with microsecond level precision.
3738
*/
38-
'renewTime'?: Date;
39+
'renewTime'?: V1MicroTime;
3940

4041
static discriminator: string | undefined = undefined;
4142

4243
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
4344
{
4445
"name": "acquireTime",
4546
"baseName": "acquireTime",
46-
"type": "Date"
47+
"type": "V1MicroTime"
4748
},
4849
{
4950
"name": "holderIdentity",
@@ -63,7 +64,7 @@ export class V1LeaseSpec {
6364
{
6465
"name": "renewTime",
6566
"baseName": "renewTime",
66-
"type": "Date"
67+
"type": "V1MicroTime"
6768
} ];
6869

6970
static getAttributeTypeMap() {

src/gen/model/v1beta1Event.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
import { RequestFile } from './models';
1414
import { V1EventSource } from './v1EventSource';
15+
import { V1MicroTime } from '../../types';
1516
import { V1ObjectMeta } from './v1ObjectMeta';
1617
import { V1ObjectReference } from './v1ObjectReference';
1718
import { V1beta1EventSeries } from './v1beta1EventSeries';
@@ -42,9 +43,9 @@ export class V1beta1Event {
4243
'deprecatedLastTimestamp'?: Date;
4344
'deprecatedSource'?: V1EventSource;
4445
/**
45-
* eventTime is the time when this Event was first observed. It is required.
46+
* MicroTime is version of Time with microsecond level precision.
4647
*/
47-
'eventTime': Date;
48+
'eventTime': V1MicroTime;
4849
/**
4950
* Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
5051
*/
@@ -110,7 +111,7 @@ export class V1beta1Event {
110111
{
111112
"name": "eventTime",
112113
"baseName": "eventTime",
113-
"type": "Date"
114+
"type": "V1MicroTime"
114115
},
115116
{
116117
"name": "kind",

src/gen/model/v1beta1EventSeries.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
*/
1212

1313
import { RequestFile } from './models';
14+
import { V1MicroTime } from '../../types';
1415

1516
/**
1617
* EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time.
@@ -21,9 +22,9 @@ export class V1beta1EventSeries {
2122
*/
2223
'count': number;
2324
/**
24-
* lastObservedTime is the time when last Event from the series was seen before last heartbeat.
25+
* MicroTime is version of Time with microsecond level precision.
2526
*/
26-
'lastObservedTime': Date;
27+
'lastObservedTime': V1MicroTime;
2728

2829
static discriminator: string | undefined = undefined;
2930

@@ -36,7 +37,7 @@ export class V1beta1EventSeries {
3637
{
3738
"name": "lastObservedTime",
3839
"baseName": "lastObservedTime",
39-
"type": "Date"
40+
"type": "V1MicroTime"
4041
} ];
4142

4243
static getAttributeTypeMap() {

src/gen/swagger.json

Lines changed: 21 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4757,9 +4757,8 @@
47574757
"description": "LeaseSpec is a specification of a Lease.",
47584758
"properties": {
47594759
"acquireTime": {
4760-
"description": "acquireTime is a time when the current lease was acquired.",
4761-
"format": "date-time",
4762-
"type": "string"
4760+
"$ref": "#/definitions/v1.MicroTime",
4761+
"description": "acquireTime is a time when the current lease was acquired."
47634762
},
47644763
"holderIdentity": {
47654764
"description": "holderIdentity contains the identity of the holder of a current lease.",
@@ -4776,9 +4775,8 @@
47764775
"type": "integer"
47774776
},
47784777
"renewTime": {
4779-
"description": "renewTime is a time when the current holder of a lease has last updated the lease.",
4780-
"format": "date-time",
4781-
"type": "string"
4778+
"$ref": "#/definitions/v1.MicroTime",
4779+
"description": "renewTime is a time when the current holder of a lease has last updated the lease."
47824780
}
47834781
},
47844782
"type": "object"
@@ -6250,9 +6248,8 @@
62506248
"type": "integer"
62516249
},
62526250
"eventTime": {
6253-
"description": "Time when this Event was first observed.",
6254-
"format": "date-time",
6255-
"type": "string"
6251+
"$ref": "#/definitions/v1.MicroTime",
6252+
"description": "Time when this Event was first observed."
62566253
},
62576254
"firstTimestamp": {
62586255
"description": "The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)",
@@ -6366,9 +6363,8 @@
63666363
"type": "integer"
63676364
},
63686365
"lastObservedTime": {
6369-
"description": "Time of the last occurrence observed",
6370-
"format": "date-time",
6371-
"type": "string"
6366+
"$ref": "#/definitions/v1.MicroTime",
6367+
"description": "Time of the last occurrence observed"
63726368
}
63736369
},
63746370
"type": "object"
@@ -11126,9 +11122,8 @@
1112611122
"description": "deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type."
1112711123
},
1112811124
"eventTime": {
11129-
"description": "eventTime is the time when this Event was first observed. It is required.",
11130-
"format": "date-time",
11131-
"type": "string"
11125+
"$ref": "#/definitions/v1.MicroTime",
11126+
"description": "eventTime is the time when this Event was first observed. It is required."
1113211127
},
1113311128
"kind": {
1113411129
"description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
@@ -11227,9 +11222,8 @@
1122711222
"type": "integer"
1122811223
},
1122911224
"lastObservedTime": {
11230-
"description": "lastObservedTime is the time when last Event from the series was seen before last heartbeat.",
11231-
"format": "date-time",
11232-
"type": "string"
11225+
"$ref": "#/definitions/v1.MicroTime",
11226+
"description": "lastObservedTime is the time when last Event from the series was seen before last heartbeat."
1123311227
}
1123411228
},
1123511229
"required": [
@@ -11269,9 +11263,8 @@
1126911263
"description": "deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type."
1127011264
},
1127111265
"eventTime": {
11272-
"description": "eventTime is the time when this Event was first observed. It is required.",
11273-
"format": "date-time",
11274-
"type": "string"
11266+
"$ref": "#/definitions/v1.MicroTime",
11267+
"description": "eventTime is the time when this Event was first observed. It is required."
1127511268
},
1127611269
"kind": {
1127711270
"description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
@@ -11370,9 +11363,8 @@
1137011363
"type": "integer"
1137111364
},
1137211365
"lastObservedTime": {
11373-
"description": "lastObservedTime is the time when last Event from the series was seen before last heartbeat.",
11374-
"format": "date-time",
11375-
"type": "string"
11366+
"$ref": "#/definitions/v1.MicroTime",
11367+
"description": "lastObservedTime is the time when last Event from the series was seen before last heartbeat."
1137611368
}
1137711369
},
1137811370
"required": [
@@ -16443,6 +16435,11 @@
1644316435
},
1644416436
"type": "object"
1644516437
},
16438+
"v1.MicroTime": {
16439+
"description": "MicroTime is version of Time with microsecond level precision.",
16440+
"format": "date-time-micro",
16441+
"type": "string"
16442+
},
1644616443
"v1.ObjectMeta": {
1644716444
"description": "ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.",
1644816445
"properties": {

0 commit comments

Comments
 (0)