- HTTP request
- Request body
- Response body
- Authorization Scopes
- ChangeReport
- ConfigChange
- ChangeType
- Advice
- Diagnostic
- Kind
Generates and returns a report (errors, warnings and changes from existing configurations) associated with GenerateConfigReportRequest.new_value
If GenerateConfigReportRequest.old_value is specified, GenerateConfigReportRequest will contain a single ChangeReport based on the comparison between GenerateConfigReportRequest.new_value and GenerateConfigReportRequest.old_value. If GenerateConfigReportRequest.old_value is not specified, this method will compare GenerateConfigReportRequest.new_value with the last pushed service configuration.
HTTP request
POST https://servicemanagement.googleapis.com/v1/services:generateConfigReport
The URL uses gRPC Transcoding syntax.
Request body
The request body contains data with the following structure:
JSON representation |
---|
{ "newConfig": { "@type": string, field1: ..., ... }, "oldConfig": { "@type": string, field1: ..., ... } } |
Fields | |
---|---|
newConfig |
Required. Service configuration for which we want to generate the report. For this version of API, the supported types are An object containing fields of an arbitrary type. An additional field |
oldConfig |
Optional. Service configuration against which the comparison will be done. For this version of API, the supported types are An object containing fields of an arbitrary type. An additional field |
Response body
If successful, the response body contains data with the following structure:
Response message for services.generateConfigReport method.
JSON representation |
---|
{ "serviceName": string, "id": string, "changeReports": [ { object ( |
Fields | |
---|---|
serviceName |
name of the service this report belongs to. |
id |
ID of the service configuration this report belongs to. |
changeReports[] |
list of ChangeReport, each corresponding to comparison between two service configurations. |
diagnostics[] |
Errors / Linter warnings associated with the service definition this report belongs to. |
Authorization Scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/service.management
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
ChangeReport
Change report associated with a particular service configuration.
It contains a list of ConfigChanges based on the comparison between two service configurations.
JSON representation |
---|
{
"configChanges": [
{
object ( |
Fields | |
---|---|
configChanges[] |
List of changes between two service configurations. The changes will be alphabetically sorted based on the identifier of each change. A ConfigChange identifier is a dot separated path to the configuration. Example: visibility.rules[selector='LibraryService.CreateBook'].restriction |
ConfigChange
Output generated from semantically comparing two versions of a service configuration.
Includes detailed information about a field that have changed with applicable advice about potential consequences for the change, such as backwards-incompatibility.
JSON representation |
---|
{ "element": string, "oldValue": string, "newValue": string, "changeType": enum ( |
Fields | |
---|---|
element |
Object hierarchy path to the change, with levels separated by a '.' character. For repeated fields, an applicable unique identifier field is used for the index (usually selector, name, or id). For maps, the term 'key' is used. If the field has no unique identifier, the numeric index is used. Examples: - visibility.rules[selector=="google.LibraryService.ListBooks"].restriction - quota.metric_rules[selector=="google"].metric_costs[key=="reads"].value - logging.producer_destinations[0] |
oldValue |
Value of the changed object in the old Service configuration, in JSON format. This field will not be populated if changetype == ADDED. |
newValue |
Value of the changed object in the new Service configuration, in JSON format. This field will not be populated if changetype == REMOVED. |
changeType |
The type for this change, either ADDED, REMOVED, or MODIFIED. |
advices[] |
Collection of advice provided for this change, useful for determining the possible impact of this change. |
ChangeType
Classifies set of possible modifications to an object in the service configuration.
Enums | |
---|---|
CHANGE_TYPE_UNSPECIFIED |
No value was provided. |
ADDED |
The changed object exists in the 'new' service configuration, but not in the 'old' service configuration. |
REMOVED |
The changed object exists in the 'old' service configuration, but not in the 'new' service configuration. |
MODIFIED |
The changed object exists in both service configurations, but its value is different. |
Advice
Generated advice about this change, used for providing more information about how a change will affect the existing service.
JSON representation |
---|
{ "description": string } |
Fields | |
---|---|
description |
Useful description for why this advice was applied and what actions should be taken to mitigate any implied risks. |
Diagnostic
Represents a diagnostic message (error or warning)
JSON representation |
---|
{
"location": string,
"kind": enum ( |
Fields | |
---|---|
location |
File name and line number of the error or warning. |
kind |
The kind of diagnostic information provided. |
message |
Message describing the error or warning. |
Kind
The kind of diagnostic information possible.
Enums | |
---|---|
WARNING |
Warnings and errors |
ERROR |
Only errors |