Skip to content

Commit

Permalink
feat(servicecontrol): update the API
Browse files Browse the repository at this point in the history
#### servicecontrol:v1

The following keys were added:
- schemas.CheckResponse.properties.esfMigrationServerOverride.$ref
- schemas.CheckResponse.properties.esfMigrationServerOverride.description
- schemas.EsfMigrationServerOverride.description
- schemas.EsfMigrationServerOverride.id
- schemas.EsfMigrationServerOverride.properties.overrideMode.description
- schemas.EsfMigrationServerOverride.properties.overrideMode.enum
- schemas.EsfMigrationServerOverride.properties.overrideMode.enumDescriptions
- schemas.EsfMigrationServerOverride.properties.overrideMode.type
- schemas.EsfMigrationServerOverride.type

#### servicecontrol:v2

The following keys were added:
- schemas.CheckResponse.properties.esfMigrationServerOverride.$ref
- schemas.CheckResponse.properties.esfMigrationServerOverride.description
- schemas.EsfMigrationServerOverride.description
- schemas.EsfMigrationServerOverride.id
- schemas.EsfMigrationServerOverride.properties.overrideMode.description
- schemas.EsfMigrationServerOverride.properties.overrideMode.enum
- schemas.EsfMigrationServerOverride.properties.overrideMode.enumDescriptions
- schemas.EsfMigrationServerOverride.properties.overrideMode.type
- schemas.EsfMigrationServerOverride.type
  • Loading branch information
yoshi-automation authored and sofisl committed Feb 9, 2023
1 parent 7f66ecb commit 2af2ce1
Show file tree
Hide file tree
Showing 4 changed files with 80 additions and 2 deletions.
27 changes: 26 additions & 1 deletion discovery/servicecontrol-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@
}
}
},
"revision": "20230106",
"revision": "20230127",
"rootUrl": "https://servicecontrol.googleapis.com/",
"schemas": {
"AllocateInfo": {
Expand Down Expand Up @@ -646,6 +646,10 @@
"$ref": "CheckInfo",
"description": "Feedback data returned from the server during processing a Check request."
},
"esfMigrationServerOverride": {
"$ref": "EsfMigrationServerOverride",
"description": "Esf migration server override during check v2 migration. This is temporary and Chemist internal only."
},
"operationId": {
"description": "The same operation_id value used in the CheckRequest. Used for logging and diagnostics purposes.",
"type": "string"
Expand Down Expand Up @@ -759,6 +763,27 @@
},
"type": "object"
},
"EsfMigrationServerOverride": {
"description": "Esf migration server override during chemist check v2 migration",
"id": "EsfMigrationServerOverride",
"properties": {
"overrideMode": {
"description": "Esf migration override mode",
"enum": [
"ESF_MIGRATION_OVERRIDE_MODE_UNSPECIFIED",
"DRY_RUN",
"NO_OVERRIDE"
],
"enumDescriptions": [
"Default, ESF should use the mode that is determined by the configuration.",
"ESF should send 95% v1 request and 5% dry run request.",
"Same as ESF_MIGRATION_OVERRIDE_MODE_UNSPECIFIED, remove the override mode. This is used for safe unpush."
],
"type": "string"
}
},
"type": "object"
},
"Exemplar": {
"description": "Exemplars are example points that may be used to annotate aggregated distribution values. They are metadata that gives information about a particular value added to a Distribution bucket, such as a trace ID that was active when a value was added. They may contain further information, such as a example values and timestamps, origin, etc.",
"id": "Exemplar",
Expand Down
27 changes: 26 additions & 1 deletion discovery/servicecontrol-v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@
}
}
},
"revision": "20221204",
"revision": "20230127",
"rootUrl": "https://servicecontrol.googleapis.com/",
"schemas": {
"Api": {
Expand Down Expand Up @@ -460,6 +460,10 @@
"description": "Response message for the Check method.",
"id": "CheckResponse",
"properties": {
"esfMigrationServerOverride": {
"$ref": "EsfMigrationServerOverride",
"description": "Esf migration server override during check v2 migration. This is temporary and Chemist internal only."
},
"headers": {
"additionalProperties": {
"type": "string"
Expand All @@ -474,6 +478,27 @@
},
"type": "object"
},
"EsfMigrationServerOverride": {
"description": "Esf migration server override during chemist check v2 migration",
"id": "EsfMigrationServerOverride",
"properties": {
"overrideMode": {
"description": "Esf migration override mode",
"enum": [
"ESF_MIGRATION_OVERRIDE_MODE_UNSPECIFIED",
"DRY_RUN",
"NO_OVERRIDE"
],
"enumDescriptions": [
"Default, ESF should use the mode that is determined by the configuration.",
"ESF should send 95% v1 request and 5% dry run request.",
"Same as ESF_MIGRATION_OVERRIDE_MODE_UNSPECIFIED, remove the override mode. This is used for safe unpush."
],
"type": "string"
}
},
"type": "object"
},
"FirstPartyPrincipal": {
"description": "First party identity principal.",
"id": "FirstPartyPrincipal",
Expand Down
14 changes: 14 additions & 0 deletions src/apis/servicecontrol/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,10 @@ export namespace servicecontrol_v1 {
* Feedback data returned from the server during processing a Check request.
*/
checkInfo?: Schema$CheckInfo;
/**
* Esf migration server override during check v2 migration. This is temporary and Chemist internal only.
*/
esfMigrationServerOverride?: Schema$EsfMigrationServerOverride;
/**
* The same operation_id value used in the CheckRequest. Used for logging and diagnostics purposes.
*/
Expand Down Expand Up @@ -484,6 +488,15 @@ export namespace servicecontrol_v1 {
*/
sumOfSquaredDeviation?: number | null;
}
/**
* Esf migration server override during chemist check v2 migration
*/
export interface Schema$EsfMigrationServerOverride {
/**
* Esf migration override mode
*/
overrideMode?: string | null;
}
/**
* Exemplars are example points that may be used to annotate aggregated distribution values. They are metadata that gives information about a particular value added to a Distribution bucket, such as a trace ID that was active when a value was added. They may contain further information, such as a example values and timestamps, origin, etc.
*/
Expand Down Expand Up @@ -1685,6 +1698,7 @@ export namespace servicecontrol_v1 {
* // {
* // "checkErrors": [],
* // "checkInfo": {},
* // "esfMigrationServerOverride": {},
* // "operationId": "my_operationId",
* // "quotaInfo": {},
* // "serviceConfigId": "my_serviceConfigId",
Expand Down
14 changes: 14 additions & 0 deletions src/apis/servicecontrol/v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,10 @@ export namespace servicecontrol_v2 {
* Response message for the Check method.
*/
export interface Schema$CheckResponse {
/**
* Esf migration server override during check v2 migration. This is temporary and Chemist internal only.
*/
esfMigrationServerOverride?: Schema$EsfMigrationServerOverride;
/**
* Returns a set of request contexts generated from the `CheckRequest`.
*/
Expand All @@ -356,6 +360,15 @@ export namespace servicecontrol_v2 {
*/
status?: Schema$Status;
}
/**
* Esf migration server override during chemist check v2 migration
*/
export interface Schema$EsfMigrationServerOverride {
/**
* Esf migration override mode
*/
overrideMode?: string | null;
}
/**
* First party identity principal.
*/
Expand Down Expand Up @@ -923,6 +936,7 @@ export namespace servicecontrol_v2 {
*
* // Example response
* // {
* // "esfMigrationServerOverride": {},
* // "headers": {},
* // "status": {}
* // }
Expand Down

0 comments on commit 2af2ce1

Please sign in to comment.