on develop help sign in
Updating sqladmin service definition
ab76c7cBrendan Hay
gen/model/sqladmin/v1beta3/sqladmin-api.json+5−5
@@ -1,19 +1,19 @@
1{
1{
2 "kind": "discovery#restDescription",
2 "kind": "discovery#restDescription",
3− "etag": "\"C5oy1hgQsABtYOYIOXWcR3BgYqU/rs_DQWHim90IDXEvdyPL84OX8xI\"",
3+ "etag": "\"tbys6C40o18GZwyMen5GMkdK-3s/hio_YKqxpICjgrIvvAJqH_YueMs\"",
4 "discoveryVersion": "v1",
4 "discoveryVersion": "v1",
5 "id": "sqladmin:v1beta3",
5 "id": "sqladmin:v1beta3",
6 "name": "sqladmin",
6 "name": "sqladmin",
7 "canonicalName": "SQL Admin",
7 "canonicalName": "SQL Admin",
8 "version": "v1beta3",
8 "version": "v1beta3",
9− "revision": "20161005",
9+ "revision": "20161110",
10 "title": "Cloud SQL Administration API",
10 "title": "Cloud SQL Administration API",
11 "description": "Creates and configures Cloud SQL instances, which provide fully-managed MySQL databases.",
11 "description": "Creates and configures Cloud SQL instances, which provide fully-managed MySQL databases.",
12 "ownerDomain": "google.com",
12 "ownerDomain": "google.com",
13 "ownerName": "Google",
13 "ownerName": "Google",
14 "icons": {
14 "icons": {
15− "x16": "http://www.google.com/images/icons/product/search-16.gif",
15+ "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
16− "x32": "http://www.google.com/images/icons/product/search-32.gif"
16+ "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
17 },
17 },
18 "documentationLink": "https://cloud.google.com/sql/docs/reference/latest",
18 "documentationLink": "https://cloud.google.com/sql/docs/reference/latest",
19 "protocol": "rest",
19 "protocol": "rest",
@@ -1100,7 +1100,7 @@
1100 },
1100 },
1101 "region": {
1101 "region": {
1102 "type": "array",
1102 "type": "array",
1103− "description": "The applicable regions for this tier. Can be us-east1, europe-west1, or asia-east1.",
1103+ "description": "The applicable regions for this tier.",
1104 "items": {
1104 "items": {
1105 "type": "string"
1105 "type": "string"
1106 }
1106 }
gen/model/sqladmin/v1beta4/sqladmin-api.json+70−5
@@ -1,19 +1,19 @@
1{
1{
2 "kind": "discovery#restDescription",
2 "kind": "discovery#restDescription",
3− "etag": "\"C5oy1hgQsABtYOYIOXWcR3BgYqU/3N67oP6YvKEGZVsm61m3h9547Qo\"",
3+ "etag": "\"tbys6C40o18GZwyMen5GMkdK-3s/t9edOSlewaa7VyZ4dauqNzzg4MU\"",
4 "discoveryVersion": "v1",
4 "discoveryVersion": "v1",
5 "id": "sqladmin:v1beta4",
5 "id": "sqladmin:v1beta4",
6 "name": "sqladmin",
6 "name": "sqladmin",
7 "canonicalName": "SQL Admin",
7 "canonicalName": "SQL Admin",
8 "version": "v1beta4",
8 "version": "v1beta4",
9− "revision": "20161005",
9+ "revision": "20161220",
10 "title": "Cloud SQL Administration API",
10 "title": "Cloud SQL Administration API",
11 "description": "Creates and configures Cloud SQL instances, which provide fully-managed MySQL databases.",
11 "description": "Creates and configures Cloud SQL instances, which provide fully-managed MySQL databases.",
12 "ownerDomain": "google.com",
12 "ownerDomain": "google.com",
13 "ownerName": "Google",
13 "ownerName": "Google",
14 "icons": {
14 "icons": {
15− "x16": "http://www.google.com/images/icons/product/search-16.gif",
15+ "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
16− "x32": "http://www.google.com/images/icons/product/search-32.gif"
16+ "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
17 },
17 },
18 "documentationLink": "https://cloud.google.com/sql/docs/reference/latest",
18 "documentationLink": "https://cloud.google.com/sql/docs/reference/latest",
19 "protocol": "rest",
19 "protocol": "rest",
@@ -736,6 +736,17 @@
736 }
736 }
737 }
737 }
738 },
738 },
739+ "InstancesTruncateLogRequest": {
740+ "id": "InstancesTruncateLogRequest",
741+ "type": "object",
742+ "description": "Instance truncate log request.",
743+ "properties": {
744+ "truncateLogContext": {
745+ "$ref": "TruncateLogContext",
746+ "description": "Contains details about the truncate log operation."
747+ }
748+ }
749+ },
739 "IpConfiguration": {
750 "IpConfiguration": {
740 "id": "IpConfiguration",
751 "id": "IpConfiguration",
741 "type": "object",
752 "type": "object",
@@ -771,6 +782,10 @@
771 "type": "string",
782 "type": "string",
772 "description": "The due time for this IP to be retired in RFC 3339 format, for example 2012-11-15T16:19:00.094Z. This field is only available when the IP is scheduled to be retired.",
783 "description": "The due time for this IP to be retired in RFC 3339 format, for example 2012-11-15T16:19:00.094Z. This field is only available when the IP is scheduled to be retired.",
773 "format": "date-time"
784 "format": "date-time"
785+ },
786+ "type": {
787+ "type": "string",
788+ "description": "The type of this IP address. A PRIMARY address is an address that can accept incoming connections. An OUTGOING address is the source address of connections originating from the instance, if supported."
774 }
789 }
775 }
790 }
776 },
791 },
@@ -1311,7 +1326,7 @@
1311 },
1326 },
1312 "region": {
1327 "region": {
1313 "type": "array",
1328 "type": "array",
1314− "description": "The applicable regions for this tier. Can be us-east1, europe-west1 or asia-east1.",
1329+ "description": "The applicable regions for this tier.",
1315 "items": {
1330 "items": {
1316 "type": "string"
1331 "type": "string"
1317 }
1332 }
@@ -1341,6 +1356,22 @@
1341 }
1356 }
1342 }
1357 }
1343 },
1358 },
1359+ "TruncateLogContext": {
1360+ "id": "TruncateLogContext",
1361+ "type": "object",
1362+ "description": "Database Instance truncate log context.",
1363+ "properties": {
1364+ "kind": {
1365+ "type": "string",
1366+ "description": "This is always sql#truncateLogContext.",
1367+ "default": "sql#truncateLogContext"
1368+ },
1369+ "logType": {
1370+ "type": "string",
1371+ "description": "The type of log to truncate. Valid values are MYSQL_GENERAL_TABLE and MYSQL_SLOW_TABLE."
1372+ }
1373+ }
1374+ },
1344 "User": {
1375 "User": {
1345 "id": "User",
1376 "id": "User",
1346 "type": "object",
1377 "type": "object",
@@ -2287,6 +2318,40 @@
2287 "https://www.googleapis.com/auth/sqlservice.admin"
2318 "https://www.googleapis.com/auth/sqlservice.admin"
2288 ]
2319 ]
2289 },
2320 },
2321+ "truncateLog": {
2322+ "id": "sql.instances.truncateLog",
2323+ "path": "projects/{project}/instances/{instance}/truncateLog",
2324+ "httpMethod": "POST",
2325+ "description": "Truncate MySQL general and slow query log tables",
2326+ "parameters": {
2327+ "instance": {
2328+ "type": "string",
2329+ "description": "Cloud SQL instance ID. This does not include the project ID.",
2330+ "required": true,
2331+ "location": "path"
2332+ },
2333+ "project": {
2334+ "type": "string",
2335+ "description": "Project ID of the Cloud SQL project.",
2336+ "required": true,
2337+ "location": "path"
2338+ }
2339+ },
2340+ "parameterOrder": [
2341+ "project",
2342+ "instance"
2343+ ],
2344+ "request": {
2345+ "$ref": "InstancesTruncateLogRequest"
2346+ },
2347+ "response": {
2348+ "$ref": "Operation"
2349+ },
2350+ "scopes": [
2351+ "https://www.googleapis.com/auth/cloud-platform",
2352+ "https://www.googleapis.com/auth/sqlservice.admin"
2353+ ]
2354+ },
2290 "update": {
2355 "update": {
2291 "id": "sql.instances.update",
2356 "id": "sql.instances.update",
2292 "path": "projects/{project}/instances/{instance}",
2357 "path": "projects/{project}/instances/{instance}",