Skip to content

Commit

Permalink
wip compare
Browse files Browse the repository at this point in the history
  • Loading branch information
yuwenma committed May 21, 2024
1 parent 7e07af4 commit 636cd69
Showing 1 changed file with 9 additions and 108 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Server: ESF
Vary: Origin
Vary: X-Origin
Vary: Referer
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 0

Expand Down Expand Up @@ -47,58 +48,19 @@ Server: ESF
Vary: Origin
Vary: X-Origin
Vary: Referer
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 0

{
"metadata": {
"@type": "type.googleapis.com/google.spanner.admin.instance.v1.CreateInstanceMetadata",
"instance": {
"config": "projects/${projectId}/instanceConfigs/regional-us-west1",
"displayName": "Spanner Instance Sample",
"instanceType": "PROVISIONED",
"labels": {
"cnrm-test": "true",
"label-one": "value-one",
"managed-by-cnrm": "true"
},
"name": "projects/${projectId}/instances/spannerinstance-sample-${uniqueId}",
"nodeCount": 2,
"processingUnits": 2000,
"state": "READY"
},
"startTime": "2024-04-01T12:34:56.123456Z"
},
"name": "projects/${projectId}/instances/spannerinstance-sample-${uniqueId}/operations/${operationID}"
}

---

GET https://spanner.googleapis.com/v1/projects/${projectId}/instances/spannerinstance-sample-${uniqueId}/operations/${operationID}?alt=json
Content-Type: application/json
User-Agent: Terraform/ (+https://www.terraform.io) Terraform-Plugin-SDK/2.10.1 terraform-provider-google-beta/kcc/controller-manager

200 OK
Cache-Control: private
Content-Type: application/json; charset=UTF-8
Server: ESF
Vary: Origin
Vary: X-Origin
Vary: Referer
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 0

{
"done": true,
"metadata": {
"@type": "type.googleapis.com/google.spanner.admin.instance.v1.CreateInstanceMetadata",
"endTime": "2024-04-01T12:34:56.123456Z",
"expectedFulfillmentPeriod": "FULFILLMENT_PERIOD_NORMAL",
"instance": {
"config": "projects/${projectId}/instanceConfigs/regional-us-west1",
"createTime": "2024-04-01T12:34:56.123456Z",
"displayName": "Spanner Instance Sample",
"instanceType": "PROVISIONED",
"labels": {
"cnrm-test": "true",
"label-one": "value-one",
Expand All @@ -118,7 +80,6 @@ X-Xss-Protection: 0
"config": "projects/${projectId}/instanceConfigs/regional-us-west1",
"createTime": "2024-04-01T12:34:56.123456Z",
"displayName": "Spanner Instance Sample",
"instanceType": "PROVISIONED",
"labels": {
"cnrm-test": "true",
"label-one": "value-one",
Expand All @@ -145,14 +106,14 @@ Server: ESF
Vary: Origin
Vary: X-Origin
Vary: Referer
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 0

{
"config": "projects/${projectId}/instanceConfigs/regional-us-west1",
"createTime": "2024-04-01T12:34:56.123456Z",
"displayName": "Spanner Instance Sample",
"instanceType": "PROVISIONED",
"labels": {
"cnrm-test": "true",
"label-one": "value-one",
Expand Down Expand Up @@ -193,89 +154,29 @@ Server: ESF
Vary: Origin
Vary: X-Origin
Vary: Referer
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 0

{
"metadata": {
"@type": "type.googleapis.com/google.spanner.admin.instance.v1.UpdateInstanceMetadata",
"instance": {
"config": "projects/${projectId}/instanceConfigs/regional-us-west1",
"createTime": "2024-04-01T12:34:56.123456Z",
"displayName": "Spanner Instance Sample",
"instanceType": "PROVISIONED",
"labels": {
"cnrm-test": "true",
"label-one": "value-one",
"managed-by-cnrm": "true"
},
"name": "projects/${projectId}/instances/spannerinstance-sample-${uniqueId}",
"nodeCount": 3,
"processingUnits": 3000,
"state": "READY",
"updateTime": "2024-04-01T12:34:56.123456Z"
},
"startTime": "2024-04-01T12:34:56.123456Z"
},
"name": "projects/${projectId}/instances/spannerinstance-sample-${uniqueId}/operations/${operationID}"
}

---

GET https://spanner.googleapis.com/v1/projects/${projectId}/instances/spannerinstance-sample-${uniqueId}/operations/${operationID}?alt=json
Content-Type: application/json
User-Agent: Terraform/ (+https://www.terraform.io) Terraform-Plugin-SDK/2.10.1 terraform-provider-google-beta/kcc/controller-manager

200 OK
Cache-Control: private
Content-Type: application/json; charset=UTF-8
Server: ESF
Vary: Origin
Vary: X-Origin
Vary: Referer
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 0

{
"done": true,
"metadata": {
"@type": "type.googleapis.com/google.spanner.admin.instance.v1.UpdateInstanceMetadata",
"endTime": "2024-04-01T12:34:56.123456Z",
"expectedFulfillmentPeriod": "FULFILLMENT_PERIOD_NORMAL",
"instance": {
"config": "projects/${projectId}/instanceConfigs/regional-us-west1",
"createTime": "2024-04-01T12:34:56.123456Z",
"displayName": "Spanner Instance Sample",
"instanceType": "PROVISIONED",
"labels": {
"cnrm-test": "true",
"label-one": "value-one",
"managed-by-cnrm": "true"
},
"name": "projects/${projectId}/instances/spannerinstance-sample-${uniqueId}",
"nodeCount": 3,
"processingUnits": 3000,
"state": "READY",
"updateTime": "2024-04-01T12:34:56.123456Z"
},
"startTime": "2024-04-01T12:34:56.123456Z"
"@type": "type.googleapis.com/google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata"
},
"name": "projects/${projectId}/instances/spannerinstance-sample-${uniqueId}/operations/${operationID}",
"response": {
"@type": "type.googleapis.com/google.spanner.admin.instance.v1.Instance",
"config": "projects/${projectId}/instanceConfigs/regional-us-west1",
"createTime": "2024-04-01T12:34:56.123456Z",
"displayName": "Spanner Instance Sample",
"instanceType": "PROVISIONED",
"labels": {
"cnrm-test": "true",
"label-one": "value-one",
"managed-by-cnrm": "true"
},
"name": "projects/${projectId}/instances/spannerinstance-sample-${uniqueId}",
"nodeCount": 3,
"processingUnits": 3000,
"state": "READY",
"processingUnits": 2000,
"updateTime": "2024-04-01T12:34:56.123456Z"
}
}
Expand All @@ -293,23 +194,22 @@ Server: ESF
Vary: Origin
Vary: X-Origin
Vary: Referer
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 0

{
"config": "projects/${projectId}/instanceConfigs/regional-us-west1",
"createTime": "2024-04-01T12:34:56.123456Z",
"displayName": "Spanner Instance Sample",
"instanceType": "PROVISIONED",
"labels": {
"cnrm-test": "true",
"label-one": "value-one",
"managed-by-cnrm": "true"
},
"name": "projects/${projectId}/instances/spannerinstance-sample-${uniqueId}",
"nodeCount": 3,
"processingUnits": 3000,
"state": "READY",
"processingUnits": 2000,
"updateTime": "2024-04-01T12:34:56.123456Z"
}

Expand All @@ -326,6 +226,7 @@ Server: ESF
Vary: Origin
Vary: X-Origin
Vary: Referer
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 0

Expand Down

0 comments on commit 636cd69

Please sign in to comment.