Skip to content

Commit

Permalink
feat(all): auto-regenerate discovery clients (#2972)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation authored Jan 20, 2025
1 parent 607d371 commit 0f4ee9d
Show file tree
Hide file tree
Showing 8 changed files with 802 additions and 18 deletions.
137 changes: 136 additions & 1 deletion migrationcenter/v1/migrationcenter-api.json
Original file line number Diff line number Diff line change
Expand Up @@ -1698,6 +1698,81 @@
}
}
},
"relations": {
"methods": {
"get": {
"description": "Gets the details of an relation.",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/relations/{relationsId}",
"httpMethod": "GET",
"id": "migrationcenter.projects.locations.relations.get",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Required. Name of the resource.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/relations/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1/{+name}",
"response": {
"$ref": "Relation"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"list": {
"description": "Lists all the relations in a given project and location.",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/relations",
"httpMethod": "GET",
"id": "migrationcenter.projects.locations.relations.list",
"parameterOrder": [
"parent"
],
"parameters": {
"filter": {
"description": "Optional. Filtering results.",
"location": "query",
"type": "string"
},
"orderBy": {
"description": "Optional. Field to sort by. See https://google.aip.dev/132#ordering for more details.",
"location": "query",
"type": "string"
},
"pageSize": {
"description": "Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.",
"format": "int32",
"location": "query",
"type": "integer"
},
"pageToken": {
"description": "Optional. A token identifying a page of results the server should return.",
"location": "query",
"type": "string"
},
"parent": {
"description": "Required. Parent value for `ListRelationsRequest`.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1/{+parent}/relations",
"response": {
"$ref": "ListRelationsResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
}
}
},
"reportConfigs": {
"methods": {
"create": {
Expand Down Expand Up @@ -2309,7 +2384,7 @@
}
}
},
"revision": "20241205",
"revision": "20250115",
"rootUrl": "https://migrationcenter.googleapis.com/",
"schemas": {
"AddAssetsToGroupRequest": {
Expand Down Expand Up @@ -4622,6 +4697,24 @@
},
"type": "object"
},
"ListRelationsResponse": {
"description": "Response message for listing relations.",
"id": "ListRelationsResponse",
"properties": {
"nextPageToken": {
"description": "A token identifying a page of results the server should return.",
"type": "string"
},
"relations": {
"description": "A list of relations.",
"items": {
"$ref": "Relation"
},
"type": "array"
}
},
"type": "object"
},
"ListReportConfigsResponse": {
"description": "Response message for listing report configs.",
"id": "ListReportConfigsResponse",
Expand Down Expand Up @@ -5704,6 +5797,48 @@
},
"type": "object"
},
"Relation": {
"description": "Message representing a relation between 2 resource.",
"id": "Relation",
"properties": {
"createTime": {
"description": "Output only. The timestamp when the relation was created.",
"format": "google-datetime",
"readOnly": true,
"type": "string"
},
"dstAsset": {
"description": "Output only. The destination asset name in the relation.",
"readOnly": true,
"type": "string"
},
"name": {
"description": "Output only. Identifier. The identifier of the relation.",
"readOnly": true,
"type": "string"
},
"srcAsset": {
"description": "Output only. The source asset name in the relation.",
"readOnly": true,
"type": "string"
},
"type": {
"description": "Optional. The type of the relation.",
"enum": [
"TYPE_UNSPECIFIED",
"LOGICAL_DATABASE",
"DATABASE_DEPLOYMENT_HOSTING_SERVER"
],
"enumDescriptions": [
"Default value.",
"DBDeployment -\u003e Database",
"A relation between a machine/VM and the database deployment it hosts."
],
"type": "string"
}
},
"type": "object"
},
"RemoveAssetsFromGroupRequest": {
"description": "A request to remove assets from a group.",
"id": "RemoveAssetsFromGroupRequest",
Expand Down
Loading

0 comments on commit 0f4ee9d

Please sign in to comment.