Skip to content

Commit

Permalink
feat(dialogflow)!: update the API
Browse files Browse the repository at this point in the history
BREAKING CHANGE: This release has breaking changes.
#### dialogflow:v2beta1
The following keys were deleted:
- schemas.GoogleCloudKnowledgeV1alpha1OperationMetadata.description
- schemas.GoogleCloudKnowledgeV1alpha1OperationMetadata.id
- schemas.GoogleCloudKnowledgeV1alpha1OperationMetadata.properties.errorCode.description
- schemas.GoogleCloudKnowledgeV1alpha1OperationMetadata.properties.errorCode.items.format
- schemas.GoogleCloudKnowledgeV1alpha1OperationMetadata.properties.errorCode.items.type
- schemas.GoogleCloudKnowledgeV1alpha1OperationMetadata.properties.errorCode.type
- schemas.GoogleCloudKnowledgeV1alpha1OperationMetadata.properties.message.description
- schemas.GoogleCloudKnowledgeV1alpha1OperationMetadata.properties.message.items.type
- schemas.GoogleCloudKnowledgeV1alpha1OperationMetadata.properties.message.type
- schemas.GoogleCloudKnowledgeV1alpha1OperationMetadata.properties.state.description
- schemas.GoogleCloudKnowledgeV1alpha1OperationMetadata.properties.state.enum
- schemas.GoogleCloudKnowledgeV1alpha1OperationMetadata.properties.state.enumDescriptions
- schemas.GoogleCloudKnowledgeV1alpha1OperationMetadata.properties.state.type
- schemas.GoogleCloudKnowledgeV1alpha1OperationMetadata.type

The following keys were changed:
- resources.projects.resources.agent.resources.knowledgeBases.resources.documents.methods.reload.description
- resources.projects.resources.knowledgeBases.resources.documents.methods.reload.description

#### dialogflow:v3beta1
The following keys were deleted:
- schemas.GoogleCloudKnowledgeV1alpha1OperationMetadata.description
- schemas.GoogleCloudKnowledgeV1alpha1OperationMetadata.id
- schemas.GoogleCloudKnowledgeV1alpha1OperationMetadata.properties.errorCode.description
- schemas.GoogleCloudKnowledgeV1alpha1OperationMetadata.properties.errorCode.items.format
- schemas.GoogleCloudKnowledgeV1alpha1OperationMetadata.properties.errorCode.items.type
- schemas.GoogleCloudKnowledgeV1alpha1OperationMetadata.properties.errorCode.type
- schemas.GoogleCloudKnowledgeV1alpha1OperationMetadata.properties.message.description
- schemas.GoogleCloudKnowledgeV1alpha1OperationMetadata.properties.message.items.type
- schemas.GoogleCloudKnowledgeV1alpha1OperationMetadata.properties.message.type
- schemas.GoogleCloudKnowledgeV1alpha1OperationMetadata.properties.state.description
- schemas.GoogleCloudKnowledgeV1alpha1OperationMetadata.properties.state.enum
- schemas.GoogleCloudKnowledgeV1alpha1OperationMetadata.properties.state.enumDescriptions
- schemas.GoogleCloudKnowledgeV1alpha1OperationMetadata.properties.state.type
- schemas.GoogleCloudKnowledgeV1alpha1OperationMetadata.type

#### dialogflow:v2
The following keys were deleted:
- schemas.GoogleCloudKnowledgeV1alpha1OperationMetadata.description
- schemas.GoogleCloudKnowledgeV1alpha1OperationMetadata.id
- schemas.GoogleCloudKnowledgeV1alpha1OperationMetadata.properties.errorCode.description
- schemas.GoogleCloudKnowledgeV1alpha1OperationMetadata.properties.errorCode.items.format
- schemas.GoogleCloudKnowledgeV1alpha1OperationMetadata.properties.errorCode.items.type
- schemas.GoogleCloudKnowledgeV1alpha1OperationMetadata.properties.errorCode.type
- schemas.GoogleCloudKnowledgeV1alpha1OperationMetadata.properties.message.description
- schemas.GoogleCloudKnowledgeV1alpha1OperationMetadata.properties.message.items.type
- schemas.GoogleCloudKnowledgeV1alpha1OperationMetadata.properties.message.type
- schemas.GoogleCloudKnowledgeV1alpha1OperationMetadata.properties.state.description
- schemas.GoogleCloudKnowledgeV1alpha1OperationMetadata.properties.state.enum
- schemas.GoogleCloudKnowledgeV1alpha1OperationMetadata.properties.state.enumDescriptions
- schemas.GoogleCloudKnowledgeV1alpha1OperationMetadata.properties.state.type
- schemas.GoogleCloudKnowledgeV1alpha1OperationMetadata.type
  • Loading branch information
yoshi-automation authored and bcoe committed Nov 12, 2020
1 parent 4ce4618 commit ca9c4b6
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 172 deletions.
40 changes: 1 addition & 39 deletions discovery/dialogflow-v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -2065,7 +2065,7 @@
}
}
},
"revision": "20201028",
"revision": "20201109",
"rootUrl": "https://dialogflow.googleapis.com/",
"schemas": {
"GoogleCloudDialogflowCxV3PageInfo": {
Expand Down Expand Up @@ -6974,44 +6974,6 @@
},
"type": "object"
},
"GoogleCloudKnowledgeV1alpha1OperationMetadata": {
"description": "Metadata in google::longrunning::Operation.",
"id": "GoogleCloudKnowledgeV1alpha1OperationMetadata",
"properties": {
"errorCode": {
"description": "The error codes from Manifold endpoints' last failures.",
"items": {
"format": "int32",
"type": "integer"
},
"type": "array"
},
"message": {
"description": "The failure messages from Manifold endpoints' last failures.",
"items": {
"type": "string"
},
"type": "array"
},
"state": {
"description": "Required. The current state of this operation.",
"enum": [
"STATE_UNSPECIFIED",
"PENDING",
"RUNNING",
"DONE"
],
"enumDescriptions": [
"Unspecified state. Should never be used.",
"The operation has been created.",
"The operation is currently running.",
"The operation is done, either cancelled or completed."
],
"type": "string"
}
},
"type": "object"
},
"GoogleLongrunningListOperationsResponse": {
"description": "The response message for Operations.ListOperations.",
"id": "GoogleLongrunningListOperationsResponse",
Expand Down
44 changes: 3 additions & 41 deletions discovery/dialogflow-v2beta1.json
Original file line number Diff line number Diff line change
Expand Up @@ -1813,7 +1813,7 @@
]
},
"reload": {
"description": "Reloads the specified document from its specified source, content_uri or content. The previously loaded content of the document will be deleted. Note: Even when the content of the document has not changed, there still may be side effects because of internal implementation changes. Note: The `projects.agent.knowledgeBases.documents` resource is deprecated; only use `projects.knowledgeBases.documents`.",
"description": "Reloads the specified document from its specified source, content_uri or content. The previously loaded content of the document will be deleted. Note: Even when the content of the document has not changed, there still may be side effects because of internal implementation changes. Note: If the document source is Google Cloud Storage URI, its metadata will be replaced with the custom metadata from Google Cloud Storage if the `import_gcs_custom_metadata` field is set to true in the request. Note: The `projects.agent.knowledgeBases.documents` resource is deprecated; only use `projects.knowledgeBases.documents`.",
"flatPath": "v2beta1/projects/{projectsId}/agent/knowledgeBases/{knowledgeBasesId}/documents/{documentsId}:reload",
"httpMethod": "POST",
"id": "dialogflow.projects.agent.knowledgeBases.documents.reload",
Expand Down Expand Up @@ -2550,7 +2550,7 @@
]
},
"reload": {
"description": "Reloads the specified document from its specified source, content_uri or content. The previously loaded content of the document will be deleted. Note: Even when the content of the document has not changed, there still may be side effects because of internal implementation changes. Note: The `projects.agent.knowledgeBases.documents` resource is deprecated; only use `projects.knowledgeBases.documents`.",
"description": "Reloads the specified document from its specified source, content_uri or content. The previously loaded content of the document will be deleted. Note: Even when the content of the document has not changed, there still may be side effects because of internal implementation changes. Note: If the document source is Google Cloud Storage URI, its metadata will be replaced with the custom metadata from Google Cloud Storage if the `import_gcs_custom_metadata` field is set to true in the request. Note: The `projects.agent.knowledgeBases.documents` resource is deprecated; only use `projects.knowledgeBases.documents`.",
"flatPath": "v2beta1/projects/{projectsId}/knowledgeBases/{knowledgeBasesId}/documents/{documentsId}:reload",
"httpMethod": "POST",
"id": "dialogflow.projects.knowledgeBases.documents.reload",
Expand Down Expand Up @@ -4537,7 +4537,7 @@
}
}
},
"revision": "20201028",
"revision": "20201109",
"rootUrl": "https://dialogflow.googleapis.com/",
"schemas": {
"GoogleCloudDialogflowCxV3PageInfo": {
Expand Down Expand Up @@ -9641,44 +9641,6 @@
},
"type": "object"
},
"GoogleCloudKnowledgeV1alpha1OperationMetadata": {
"description": "Metadata in google::longrunning::Operation.",
"id": "GoogleCloudKnowledgeV1alpha1OperationMetadata",
"properties": {
"errorCode": {
"description": "The error codes from Manifold endpoints' last failures.",
"items": {
"format": "int32",
"type": "integer"
},
"type": "array"
},
"message": {
"description": "The failure messages from Manifold endpoints' last failures.",
"items": {
"type": "string"
},
"type": "array"
},
"state": {
"description": "Required. The current state of this operation.",
"enum": [
"STATE_UNSPECIFIED",
"PENDING",
"RUNNING",
"DONE"
],
"enumDescriptions": [
"Unspecified state. Should never be used.",
"The operation has been created.",
"The operation is currently running.",
"The operation is done, either cancelled or completed."
],
"type": "string"
}
},
"type": "object"
},
"GoogleLongrunningListOperationsResponse": {
"description": "The response message for Operations.ListOperations.",
"id": "GoogleLongrunningListOperationsResponse",
Expand Down
40 changes: 1 addition & 39 deletions discovery/dialogflow-v3beta1.json
Original file line number Diff line number Diff line change
Expand Up @@ -2525,7 +2525,7 @@
}
}
},
"revision": "20201102",
"revision": "20201109",
"rootUrl": "https://dialogflow.googleapis.com/",
"schemas": {
"GoogleCloudDialogflowCxV3PageInfo": {
Expand Down Expand Up @@ -8141,44 +8141,6 @@
},
"type": "object"
},
"GoogleCloudKnowledgeV1alpha1OperationMetadata": {
"description": "Metadata in google::longrunning::Operation.",
"id": "GoogleCloudKnowledgeV1alpha1OperationMetadata",
"properties": {
"errorCode": {
"description": "The error codes from Manifold endpoints' last failures.",
"items": {
"format": "int32",
"type": "integer"
},
"type": "array"
},
"message": {
"description": "The failure messages from Manifold endpoints' last failures.",
"items": {
"type": "string"
},
"type": "array"
},
"state": {
"description": "Required. The current state of this operation.",
"enum": [
"STATE_UNSPECIFIED",
"PENDING",
"RUNNING",
"DONE"
],
"enumDescriptions": [
"Unspecified state. Should never be used.",
"The operation has been created.",
"The operation is currently running.",
"The operation is done, either cancelled or completed."
],
"type": "string"
}
},
"type": "object"
},
"GoogleLongrunningListOperationsResponse": {
"description": "The response message for Operations.ListOperations.",
"id": "GoogleLongrunningListOperationsResponse",
Expand Down
17 changes: 0 additions & 17 deletions src/apis/dialogflow/v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3584,23 +3584,6 @@ export namespace dialogflow_v2 {
*/
source?: string | null;
}
/**
* Metadata in google::longrunning::Operation.
*/
export interface Schema$GoogleCloudKnowledgeV1alpha1OperationMetadata {
/**
* The error codes from Manifold endpoints' last failures.
*/
errorCode?: number[] | null;
/**
* The failure messages from Manifold endpoints' last failures.
*/
message?: string[] | null;
/**
* Required. The current state of this operation.
*/
state?: string | null;
}
/**
* The response message for Operations.ListOperations.
*/
Expand Down
21 changes: 2 additions & 19 deletions src/apis/dialogflow/v2beta1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3731,23 +3731,6 @@ export namespace dialogflow_v2beta1 {
*/
source?: string | null;
}
/**
* Metadata in google::longrunning::Operation.
*/
export interface Schema$GoogleCloudKnowledgeV1alpha1OperationMetadata {
/**
* The error codes from Manifold endpoints' last failures.
*/
errorCode?: number[] | null;
/**
* The failure messages from Manifold endpoints' last failures.
*/
message?: string[] | null;
/**
* Required. The current state of this operation.
*/
state?: string | null;
}
/**
* The response message for Operations.ListOperations.
*/
Expand Down Expand Up @@ -12472,7 +12455,7 @@ export namespace dialogflow_v2beta1 {
}

/**
* Reloads the specified document from its specified source, content_uri or content. The previously loaded content of the document will be deleted. Note: Even when the content of the document has not changed, there still may be side effects because of internal implementation changes. Note: The `projects.agent.knowledgeBases.documents` resource is deprecated; only use `projects.knowledgeBases.documents`.
* Reloads the specified document from its specified source, content_uri or content. The previously loaded content of the document will be deleted. Note: Even when the content of the document has not changed, there still may be side effects because of internal implementation changes. Note: If the document source is Google Cloud Storage URI, its metadata will be replaced with the custom metadata from Google Cloud Storage if the `import_gcs_custom_metadata` field is set to true in the request. Note: The `projects.agent.knowledgeBases.documents` resource is deprecated; only use `projects.knowledgeBases.documents`.
* @example
* ```js
* // Before running the sample:
Expand Down Expand Up @@ -16309,7 +16292,7 @@ export namespace dialogflow_v2beta1 {
}

/**
* Reloads the specified document from its specified source, content_uri or content. The previously loaded content of the document will be deleted. Note: Even when the content of the document has not changed, there still may be side effects because of internal implementation changes. Note: The `projects.agent.knowledgeBases.documents` resource is deprecated; only use `projects.knowledgeBases.documents`.
* Reloads the specified document from its specified source, content_uri or content. The previously loaded content of the document will be deleted. Note: Even when the content of the document has not changed, there still may be side effects because of internal implementation changes. Note: If the document source is Google Cloud Storage URI, its metadata will be replaced with the custom metadata from Google Cloud Storage if the `import_gcs_custom_metadata` field is set to true in the request. Note: The `projects.agent.knowledgeBases.documents` resource is deprecated; only use `projects.knowledgeBases.documents`.
* @example
* ```js
* // Before running the sample:
Expand Down
17 changes: 0 additions & 17 deletions src/apis/dialogflow/v3beta1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4154,23 +4154,6 @@ export namespace dialogflow_v3beta1 {
*/
source?: string | null;
}
/**
* Metadata in google::longrunning::Operation.
*/
export interface Schema$GoogleCloudKnowledgeV1alpha1OperationMetadata {
/**
* The error codes from Manifold endpoints' last failures.
*/
errorCode?: number[] | null;
/**
* The failure messages from Manifold endpoints' last failures.
*/
message?: string[] | null;
/**
* Required. The current state of this operation.
*/
state?: string | null;
}
/**
* The response message for Operations.ListOperations.
*/
Expand Down

0 comments on commit ca9c4b6

Please sign in to comment.