Skip to content

Commit 1c2cc5f

Browse files
yoshi-automationsofisl
authored andcommitted
feat(migrationcenter): update the API
#### migrationcenter:v1alpha1 The following keys were added: - resources.projects.resources.locations.resources.relations.methods.get.description - resources.projects.resources.locations.resources.relations.methods.get.flatPath - resources.projects.resources.locations.resources.relations.methods.get.httpMethod - resources.projects.resources.locations.resources.relations.methods.get.id - resources.projects.resources.locations.resources.relations.methods.get.parameterOrder - resources.projects.resources.locations.resources.relations.methods.get.parameters.name.description - resources.projects.resources.locations.resources.relations.methods.get.parameters.name.location - resources.projects.resources.locations.resources.relations.methods.get.parameters.name.pattern - resources.projects.resources.locations.resources.relations.methods.get.parameters.name.required - resources.projects.resources.locations.resources.relations.methods.get.parameters.name.type - resources.projects.resources.locations.resources.relations.methods.get.path - resources.projects.resources.locations.resources.relations.methods.get.response.$ref - resources.projects.resources.locations.resources.relations.methods.get.scopes - resources.projects.resources.locations.resources.relations.methods.list.description - resources.projects.resources.locations.resources.relations.methods.list.flatPath - resources.projects.resources.locations.resources.relations.methods.list.httpMethod - resources.projects.resources.locations.resources.relations.methods.list.id - resources.projects.resources.locations.resources.relations.methods.list.parameterOrder - resources.projects.resources.locations.resources.relations.methods.list.parameters.filter.description - resources.projects.resources.locations.resources.relations.methods.list.parameters.filter.location - resources.projects.resources.locations.resources.relations.methods.list.parameters.filter.type - resources.projects.resources.locations.resources.relations.methods.list.parameters.orderBy.description - resources.projects.resources.locations.resources.relations.methods.list.parameters.orderBy.location - resources.projects.resources.locations.resources.relations.methods.list.parameters.orderBy.type - resources.projects.resources.locations.resources.relations.methods.list.parameters.pageSize.description - resources.projects.resources.locations.resources.relations.methods.list.parameters.pageSize.format - resources.projects.resources.locations.resources.relations.methods.list.parameters.pageSize.location - resources.projects.resources.locations.resources.relations.methods.list.parameters.pageSize.type - resources.projects.resources.locations.resources.relations.methods.list.parameters.pageToken.description - resources.projects.resources.locations.resources.relations.methods.list.parameters.pageToken.location - resources.projects.resources.locations.resources.relations.methods.list.parameters.pageToken.type - resources.projects.resources.locations.resources.relations.methods.list.parameters.parent.description - resources.projects.resources.locations.resources.relations.methods.list.parameters.parent.location - resources.projects.resources.locations.resources.relations.methods.list.parameters.parent.pattern - resources.projects.resources.locations.resources.relations.methods.list.parameters.parent.required - resources.projects.resources.locations.resources.relations.methods.list.parameters.parent.type - resources.projects.resources.locations.resources.relations.methods.list.path - resources.projects.resources.locations.resources.relations.methods.list.response.$ref - resources.projects.resources.locations.resources.relations.methods.list.scopes - schemas.BatchDeleteAssetsRequest.properties.cascadingRules.description - schemas.BatchDeleteAssetsRequest.properties.cascadingRules.items.$ref - schemas.BatchDeleteAssetsRequest.properties.cascadingRules.type - schemas.CascadeLogicalDBsRule.description - schemas.CascadeLogicalDBsRule.id - schemas.CascadeLogicalDBsRule.type - schemas.CascadingRule.description - schemas.CascadingRule.id - schemas.CascadingRule.properties.cascadeLogicalDbs.$ref - schemas.CascadingRule.properties.cascadeLogicalDbs.description - schemas.CascadingRule.type - schemas.DatabaseDeploymentTopology.properties.physicalCoreCount.description - schemas.DatabaseDeploymentTopology.properties.physicalCoreCount.format - schemas.DatabaseDeploymentTopology.properties.physicalCoreCount.type - schemas.DatabaseDeploymentTopology.properties.physicalCoreLimit.description - schemas.DatabaseDeploymentTopology.properties.physicalCoreLimit.format - schemas.DatabaseDeploymentTopology.properties.physicalCoreLimit.type - schemas.DatabaseInstance.properties.network.$ref - schemas.DatabaseInstance.properties.network.description - schemas.DatabaseInstanceNetwork.description - schemas.DatabaseInstanceNetwork.id - schemas.DatabaseInstanceNetwork.properties.hostNames.description - schemas.DatabaseInstanceNetwork.properties.hostNames.items.type - schemas.DatabaseInstanceNetwork.properties.hostNames.type - schemas.DatabaseInstanceNetwork.properties.ipAddresses.description - schemas.DatabaseInstanceNetwork.properties.ipAddresses.items.type - schemas.DatabaseInstanceNetwork.properties.ipAddresses.type - schemas.DatabaseInstanceNetwork.properties.primaryMacAddress.description - schemas.DatabaseInstanceNetwork.properties.primaryMacAddress.type - schemas.DatabaseInstanceNetwork.type - schemas.ListRelationsResponse.description - schemas.ListRelationsResponse.id - schemas.ListRelationsResponse.properties.nextPageToken.description - schemas.ListRelationsResponse.properties.nextPageToken.type - schemas.ListRelationsResponse.properties.relations.description - schemas.ListRelationsResponse.properties.relations.items.$ref - schemas.ListRelationsResponse.properties.relations.type - schemas.ListRelationsResponse.type - schemas.Relation.description - schemas.Relation.id - schemas.Relation.properties.createTime.description - schemas.Relation.properties.createTime.format - schemas.Relation.properties.createTime.readOnly - schemas.Relation.properties.createTime.type - schemas.Relation.properties.dstAsset.description - schemas.Relation.properties.dstAsset.readOnly - schemas.Relation.properties.dstAsset.type - schemas.Relation.properties.name.description - schemas.Relation.properties.name.readOnly - schemas.Relation.properties.name.type - schemas.Relation.properties.srcAsset.description - schemas.Relation.properties.srcAsset.readOnly - schemas.Relation.properties.srcAsset.type - schemas.Relation.properties.type.description - schemas.Relation.properties.type.enum - schemas.Relation.properties.type.enumDescriptions - schemas.Relation.properties.type.type - schemas.Relation.type - schemas.ReportSummaryGroupPreferenceSetFinding.properties.monthlyCostGcveProtected.$ref - schemas.ReportSummaryGroupPreferenceSetFinding.properties.monthlyCostGcveProtected.description - schemas.ReportSummaryGroupPreferenceSetFinding.properties.monthlyCostGcveProtected.readOnly - schemas.ReportSummaryGroupPreferenceSetFinding.properties.monthlyCostPortableVmwareLicense.$ref - schemas.ReportSummaryGroupPreferenceSetFinding.properties.monthlyCostPortableVmwareLicense.description - schemas.ReportSummaryGroupPreferenceSetFinding.properties.monthlyCostPortableVmwareLicense.readOnly - schemas.SqlServerSchemaDetails.properties.clrObjectCount.description - schemas.SqlServerSchemaDetails.properties.clrObjectCount.format - schemas.SqlServerSchemaDetails.properties.clrObjectCount.type - schemas.VMwareEngineMachinePreferences.description - schemas.VMwareEngineMachinePreferences.id - schemas.VMwareEngineMachinePreferences.properties.allowedMachineSeries.description - schemas.VMwareEngineMachinePreferences.properties.allowedMachineSeries.items.$ref - schemas.VMwareEngineMachinePreferences.properties.allowedMachineSeries.type - schemas.VMwareEngineMachinePreferences.properties.protectedNodes.description - schemas.VMwareEngineMachinePreferences.properties.protectedNodes.enum - schemas.VMwareEngineMachinePreferences.properties.protectedNodes.enumDescriptions - schemas.VMwareEngineMachinePreferences.properties.protectedNodes.type - schemas.VMwareEngineMachinePreferences.properties.storageOnlyNodes.description - schemas.VMwareEngineMachinePreferences.properties.storageOnlyNodes.enum - schemas.VMwareEngineMachinePreferences.properties.storageOnlyNodes.enumDescriptions - schemas.VMwareEngineMachinePreferences.properties.storageOnlyNodes.type - schemas.VMwareEngineMachinePreferences.type - schemas.VmwareEnginePreferences.properties.licenseDiscountPercentage.description - schemas.VmwareEnginePreferences.properties.licenseDiscountPercentage.format - schemas.VmwareEnginePreferences.properties.licenseDiscountPercentage.type - schemas.VmwareEnginePreferences.properties.machinePreferences.$ref - schemas.VmwareEnginePreferences.properties.machinePreferences.description - schemas.VmwareEnginePreferences.properties.serviceType.description - schemas.VmwareEnginePreferences.properties.serviceType.enum - schemas.VmwareEnginePreferences.properties.serviceType.enumDescriptions - schemas.VmwareEnginePreferences.properties.serviceType.type
1 parent f9aa1e5 commit 1c2cc5f

File tree

2 files changed

+628
-3
lines changed

2 files changed

+628
-3
lines changed

discovery/migrationcenter-v1alpha1.json

Lines changed: 281 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1862,6 +1862,81 @@
18621862
}
18631863
}
18641864
},
1865+
"relations": {
1866+
"methods": {
1867+
"get": {
1868+
"description": "Gets the details of an relation.",
1869+
"flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/relations/{relationsId}",
1870+
"httpMethod": "GET",
1871+
"id": "migrationcenter.projects.locations.relations.get",
1872+
"parameterOrder": [
1873+
"name"
1874+
],
1875+
"parameters": {
1876+
"name": {
1877+
"description": "Required. Name of the resource.",
1878+
"location": "path",
1879+
"pattern": "^projects/[^/]+/locations/[^/]+/relations/[^/]+$",
1880+
"required": true,
1881+
"type": "string"
1882+
}
1883+
},
1884+
"path": "v1alpha1/{+name}",
1885+
"response": {
1886+
"$ref": "Relation"
1887+
},
1888+
"scopes": [
1889+
"https://www.googleapis.com/auth/cloud-platform"
1890+
]
1891+
},
1892+
"list": {
1893+
"description": "Lists all the relations in a given project and location.",
1894+
"flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/relations",
1895+
"httpMethod": "GET",
1896+
"id": "migrationcenter.projects.locations.relations.list",
1897+
"parameterOrder": [
1898+
"parent"
1899+
],
1900+
"parameters": {
1901+
"filter": {
1902+
"description": "Filtering results.",
1903+
"location": "query",
1904+
"type": "string"
1905+
},
1906+
"orderBy": {
1907+
"description": "Field to sort by. See https://google.aip.dev/132#ordering for more details.",
1908+
"location": "query",
1909+
"type": "string"
1910+
},
1911+
"pageSize": {
1912+
"description": "Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.",
1913+
"format": "int32",
1914+
"location": "query",
1915+
"type": "integer"
1916+
},
1917+
"pageToken": {
1918+
"description": "A token identifying a page of results the server should return.",
1919+
"location": "query",
1920+
"type": "string"
1921+
},
1922+
"parent": {
1923+
"description": "Required. Parent value for `ListRelationsRequest`.",
1924+
"location": "path",
1925+
"pattern": "^projects/[^/]+/locations/[^/]+$",
1926+
"required": true,
1927+
"type": "string"
1928+
}
1929+
},
1930+
"path": "v1alpha1/{+parent}/relations",
1931+
"response": {
1932+
"$ref": "ListRelationsResponse"
1933+
},
1934+
"scopes": [
1935+
"https://www.googleapis.com/auth/cloud-platform"
1936+
]
1937+
}
1938+
}
1939+
},
18651940
"reportConfigs": {
18661941
"methods": {
18671942
"create": {
@@ -2473,7 +2548,7 @@
24732548
}
24742549
}
24752550
},
2476-
"revision": "20240711",
2551+
"revision": "20240815",
24772552
"rootUrl": "https://migrationcenter.googleapis.com/",
24782553
"schemas": {
24792554
"AddAssetsToGroupRequest": {
@@ -3048,6 +3123,13 @@
30483123
"description": "Optional. When this value is set to `true` the request is a no-op for non-existing assets. See https://google.aip.dev/135#delete-if-existing for additional details. Default value is `false`.",
30493124
"type": "boolean"
30503125
},
3126+
"cascadingRules": {
3127+
"description": "Optional. Optional cascading rules for deleting related assets.",
3128+
"items": {
3129+
"$ref": "CascadingRule"
3130+
},
3131+
"type": "array"
3132+
},
30513133
"names": {
30523134
"description": "Required. The IDs of the assets to delete. A maximum of 1000 assets can be deleted in a batch. Format: projects/{project}/locations/{location}/assets/{name}.",
30533135
"items": {
@@ -3119,6 +3201,23 @@
31193201
"properties": {},
31203202
"type": "object"
31213203
},
3204+
"CascadeLogicalDBsRule": {
3205+
"description": "Cascading rule for related logical DBs.",
3206+
"id": "CascadeLogicalDBsRule",
3207+
"properties": {},
3208+
"type": "object"
3209+
},
3210+
"CascadingRule": {
3211+
"description": "Specifies cascading rules for traversing relations.",
3212+
"id": "CascadingRule",
3213+
"properties": {
3214+
"cascadeLogicalDbs": {
3215+
"$ref": "CascadeLogicalDBsRule",
3216+
"description": "Cascading rule for related logical DBs."
3217+
}
3218+
},
3219+
"type": "object"
3220+
},
31223221
"CloudDatabaseMigrationTarget": {
31233222
"description": "Cloud database migration target.",
31243223
"id": "CloudDatabaseMigrationTarget",
@@ -3791,6 +3890,16 @@
37913890
"description": "Optional. Total memory in bytes limited by db deployment.",
37923891
"format": "int64",
37933892
"type": "string"
3893+
},
3894+
"physicalCoreCount": {
3895+
"description": "Optional. Number of total physical cores.",
3896+
"format": "int32",
3897+
"type": "integer"
3898+
},
3899+
"physicalCoreLimit": {
3900+
"description": "Optional. Number of total physical cores limited by db deployment.",
3901+
"format": "int32",
3902+
"type": "integer"
37943903
}
37953904
},
37963905
"type": "object"
@@ -3845,6 +3954,10 @@
38453954
"description": "The instance's name.",
38463955
"type": "string"
38473956
},
3957+
"network": {
3958+
"$ref": "DatabaseInstanceNetwork",
3959+
"description": "Optional. Networking details."
3960+
},
38483961
"role": {
38493962
"description": "The instance role in the database engine.",
38503963
"enum": [
@@ -3864,6 +3977,31 @@
38643977
},
38653978
"type": "object"
38663979
},
3980+
"DatabaseInstanceNetwork": {
3981+
"description": "Network details of a database instance.",
3982+
"id": "DatabaseInstanceNetwork",
3983+
"properties": {
3984+
"hostNames": {
3985+
"description": "Optional. The instance's host names.",
3986+
"items": {
3987+
"type": "string"
3988+
},
3989+
"type": "array"
3990+
},
3991+
"ipAddresses": {
3992+
"description": "Optional. The instance's IP addresses.",
3993+
"items": {
3994+
"type": "string"
3995+
},
3996+
"type": "array"
3997+
},
3998+
"primaryMacAddress": {
3999+
"description": "Optional. The instance's primary MAC address.",
4000+
"type": "string"
4001+
}
4002+
},
4003+
"type": "object"
4004+
},
38674005
"DatabaseObjects": {
38684006
"description": "Details of a group of database objects.",
38694007
"id": "DatabaseObjects",
@@ -5620,6 +5758,24 @@
56205758
},
56215759
"type": "object"
56225760
},
5761+
"ListRelationsResponse": {
5762+
"description": "Response message for listing relations.",
5763+
"id": "ListRelationsResponse",
5764+
"properties": {
5765+
"nextPageToken": {
5766+
"description": "A token identifying a page of results the server should return.",
5767+
"type": "string"
5768+
},
5769+
"relations": {
5770+
"description": "A list of relations.",
5771+
"items": {
5772+
"$ref": "Relation"
5773+
},
5774+
"type": "array"
5775+
}
5776+
},
5777+
"type": "object"
5778+
},
56235779
"ListReportConfigsResponse": {
56245780
"description": "Response message for listing report configs.",
56255781
"id": "ListReportConfigsResponse",
@@ -6602,6 +6758,48 @@
66026758
},
66036759
"type": "object"
66046760
},
6761+
"Relation": {
6762+
"description": "Message representing a relation between 2 resource.",
6763+
"id": "Relation",
6764+
"properties": {
6765+
"createTime": {
6766+
"description": "Output only. The timestamp when the relation was created.",
6767+
"format": "google-datetime",
6768+
"readOnly": true,
6769+
"type": "string"
6770+
},
6771+
"dstAsset": {
6772+
"description": "Output only. The destination asset name in the relation.",
6773+
"readOnly": true,
6774+
"type": "string"
6775+
},
6776+
"name": {
6777+
"description": "Output only. Identifier. The identifier of the relation.",
6778+
"readOnly": true,
6779+
"type": "string"
6780+
},
6781+
"srcAsset": {
6782+
"description": "Output only. The source asset name in the relation.",
6783+
"readOnly": true,
6784+
"type": "string"
6785+
},
6786+
"type": {
6787+
"description": "Optional. The type of the relation.",
6788+
"enum": [
6789+
"TYPE_UNSPECIFIED",
6790+
"LOGICAL_DATABASE",
6791+
"DATABASE_DEPLOYMENT_HOSTING_SERVER"
6792+
],
6793+
"enumDescriptions": [
6794+
"Default value.",
6795+
"DBDeployment -> Database",
6796+
"A relation between a machine/VM and the database deployment it hosts."
6797+
],
6798+
"type": "string"
6799+
}
6800+
},
6801+
"type": "object"
6802+
},
66056803
"RemoveAssetsFromGroupRequest": {
66066804
"description": "A request to remove assets from a group.",
66076805
"id": "RemoveAssetsFromGroupRequest",
@@ -7004,6 +7202,11 @@
70047202
"description": "Output only. Database licensing monthly cost for this preference set. Only present for databases.",
70057203
"readOnly": true
70067204
},
7205+
"monthlyCostGcveProtected": {
7206+
"$ref": "Money",
7207+
"description": "Output only. GCVE Protected nodes cost for this preference set.",
7208+
"readOnly": true
7209+
},
70077210
"monthlyCostNetworkEgress": {
70087211
"$ref": "Money",
70097212
"description": "Output only. Network Egress monthly cost for this preference set. Only present for virtual machines.",
@@ -7019,6 +7222,11 @@
70197222
"description": "Output only. Miscellaneous monthly cost for this preference set.",
70207223
"readOnly": true
70217224
},
7225+
"monthlyCostPortableVmwareLicense": {
7226+
"$ref": "Money",
7227+
"description": "Output only. VMware portable license monthly cost for this preference set. Only present for VMware target with portable license service type. This cost is not paid to google, but is an estimate of license costs paid to VMware.",
7228+
"readOnly": true
7229+
},
70227230
"monthlyCostStorage": {
70237231
"$ref": "Money",
70247232
"description": "Output only. Storage monthly cost for this preference set.",
@@ -7736,7 +7944,13 @@
77367944
"SqlServerSchemaDetails": {
77377945
"description": "Specific details for a SqlServer database.",
77387946
"id": "SqlServerSchemaDetails",
7739-
"properties": {},
7947+
"properties": {
7948+
"clrObjectCount": {
7949+
"description": "Optional. SqlServer number of CLR objects.",
7950+
"format": "int32",
7951+
"type": "integer"
7952+
}
7953+
},
77407954
"type": "object"
77417955
},
77427956
"SqlServerServerFlag": {
@@ -7873,6 +8087,48 @@
78738087
},
78748088
"type": "object"
78758089
},
8090+
"VMwareEngineMachinePreferences": {
8091+
"description": "The type of machines to consider when calculating virtual machine migration insights and recommendations for VMware Engine. Not all machine types are available in all zones and regions.",
8092+
"id": "VMwareEngineMachinePreferences",
8093+
"properties": {
8094+
"allowedMachineSeries": {
8095+
"description": "Optional. VMware Engine on Google Cloud machine series to consider for insights and recommendations. If empty, no restriction is applied on the machine series.",
8096+
"items": {
8097+
"$ref": "MachineSeries"
8098+
},
8099+
"type": "array"
8100+
},
8101+
"protectedNodes": {
8102+
"description": "Optional. Whether to use VMware Engine Protected offering.",
8103+
"enum": [
8104+
"PROTECTED_NODES_UNSPECIFIED",
8105+
"PROTECTED_NODES_ENABLED",
8106+
"PROTECTED_NODES_DISABLED"
8107+
],
8108+
"enumDescriptions": [
8109+
"Unspecified protected nodes preference.",
8110+
"Use only protected nodes for the selected allowed_machine_series.",
8111+
"Do not use protected nodes."
8112+
],
8113+
"type": "string"
8114+
},
8115+
"storageOnlyNodes": {
8116+
"description": "Optional. Whether to use storage-only nodes, if those are available.",
8117+
"enum": [
8118+
"STORAGE_ONLY_NODES_UNSPECIFIED",
8119+
"STORAGE_ONLY_NODES_ENABLED",
8120+
"STORAGE_ONLY_NODES_DISABLED"
8121+
],
8122+
"enumDescriptions": [
8123+
"Unspecified storage-only nodes preference.",
8124+
"Use storage-only nodes for selected allowed_machine_series, if available.",
8125+
"Do not use storage-only nodes."
8126+
],
8127+
"type": "string"
8128+
}
8129+
},
8130+
"type": "object"
8131+
},
78768132
"ValidateImportJobRequest": {
78778133
"description": "A request to validate an import job.",
78788134
"id": "ValidateImportJobRequest",
@@ -8323,11 +8579,34 @@
83238579
"format": "double",
83248580
"type": "number"
83258581
},
8582+
"licenseDiscountPercentage": {
8583+
"description": "Optional. Discount percentage for the license type offered to you by Broadcom. Must be between 0 and 100. Only valid when service_type is set to SERVICE_TYPE_PORTABLE_LICENSE.",
8584+
"format": "float",
8585+
"type": "number"
8586+
},
8587+
"machinePreferences": {
8588+
"$ref": "VMwareEngineMachinePreferences",
8589+
"description": "Optional. Preferences concerning the machine types to consider on Google Cloud VMware Engine."
8590+
},
83268591
"memoryOvercommitRatio": {
83278592
"description": "Memory overcommit ratio. Acceptable values are 1.0, 1.25, 1.5, 1.75 and 2.0.",
83288593
"format": "double",
83298594
"type": "number"
83308595
},
8596+
"serviceType": {
8597+
"description": "Optional. VMWare Service Type (Fully Licensed or Portable License).",
8598+
"enum": [
8599+
"SERVICE_TYPE_UNSPECIFIED",
8600+
"SERVICE_TYPE_FULLY_LICENSED",
8601+
"SERVICE_TYPE_PORTABLE_LICENSE"
8602+
],
8603+
"enumDescriptions": [
8604+
"Same as SERVICE_TYPE_FULLY_LICENSED.",
8605+
"Google provided VCF license.",
8606+
"Bring Your Own License."
8607+
],
8608+
"type": "string"
8609+
},
83318610
"storageDeduplicationCompressionRatio": {
83328611
"description": "The Deduplication and Compression ratio is based on the logical (Used Before) space required to store data before applying deduplication and compression, in relation to the physical (Used After) space required after applying deduplication and compression. Specifically, the ratio is the Used Before space divided by the Used After space. For example, if the Used Before space is 3 GB, but the physical Used After space is 1 GB, the deduplication and compression ratio is 3x. Acceptable values are between 1.0 and 4.0.",
83338612
"format": "double",

0 commit comments

Comments
 (0)