mirror of
https://github.com/dutchcoders/transfer.sh.git
synced 2024-12-12 05:40:19 +01:00
1052 lines
36 KiB
JSON
1052 lines
36 KiB
JSON
|
{
|
||
|
"auth": {
|
||
|
"oauth2": {
|
||
|
"scopes": {
|
||
|
"https://www.googleapis.com/auth/cloud-platform": {
|
||
|
"description": "View and manage your data across Google Cloud Platform services"
|
||
|
},
|
||
|
"https://www.googleapis.com/auth/cloud-platform.read-only": {
|
||
|
"description": "View your data across Google Cloud Platform services"
|
||
|
},
|
||
|
"https://www.googleapis.com/auth/compute": {
|
||
|
"description": "View and manage your Google Compute Engine resources"
|
||
|
},
|
||
|
"https://www.googleapis.com/auth/compute.readonly": {
|
||
|
"description": "View your Google Compute Engine resources"
|
||
|
},
|
||
|
"https://www.googleapis.com/auth/ndev.cloudman": {
|
||
|
"description": "View and manage your Google Cloud Platform management resources and deployment status information"
|
||
|
},
|
||
|
"https://www.googleapis.com/auth/ndev.cloudman.readonly": {
|
||
|
"description": "View your Google Cloud Platform management resources and deployment status information"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"basePath": "/resourceviews/v1beta2/projects/",
|
||
|
"baseUrl": "https://www.googleapis.com/resourceviews/v1beta2/projects/",
|
||
|
"batchPath": "batch/resourceviews/v1beta2",
|
||
|
"description": "The Resource View API allows users to create and manage logical sets of Google Compute Engine instances.",
|
||
|
"discoveryVersion": "v1",
|
||
|
"documentationLink": "https://developers.google.com/compute/",
|
||
|
"etag": "\"Zkyw9ACJZUvcYmlFaKGChzhmtnE/NTJxXPeLIjeT39FhZUufuT3wwcg\"",
|
||
|
"icons": {
|
||
|
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
|
||
|
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
|
||
|
},
|
||
|
"id": "resourceviews:v1beta2",
|
||
|
"kind": "discovery#restDescription",
|
||
|
"labels": [
|
||
|
"limited_availability"
|
||
|
],
|
||
|
"name": "resourceviews",
|
||
|
"ownerDomain": "google.com",
|
||
|
"ownerName": "Google",
|
||
|
"parameters": {
|
||
|
"alt": {
|
||
|
"default": "json",
|
||
|
"description": "Data format for the response.",
|
||
|
"enum": [
|
||
|
"json"
|
||
|
],
|
||
|
"enumDescriptions": [
|
||
|
"Responses with Content-Type of application/json"
|
||
|
],
|
||
|
"location": "query",
|
||
|
"type": "string"
|
||
|
},
|
||
|
"fields": {
|
||
|
"description": "Selector specifying which fields to include in a partial response.",
|
||
|
"location": "query",
|
||
|
"type": "string"
|
||
|
},
|
||
|
"key": {
|
||
|
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
|
||
|
"location": "query",
|
||
|
"type": "string"
|
||
|
},
|
||
|
"oauth_token": {
|
||
|
"description": "OAuth 2.0 token for the current user.",
|
||
|
"location": "query",
|
||
|
"type": "string"
|
||
|
},
|
||
|
"prettyPrint": {
|
||
|
"default": "true",
|
||
|
"description": "Returns response with indentations and line breaks.",
|
||
|
"location": "query",
|
||
|
"type": "boolean"
|
||
|
},
|
||
|
"quotaUser": {
|
||
|
"description": "An opaque string that represents a user for quota purposes. Must not exceed 40 characters.",
|
||
|
"location": "query",
|
||
|
"type": "string"
|
||
|
},
|
||
|
"userIp": {
|
||
|
"description": "Deprecated. Please use quotaUser instead.",
|
||
|
"location": "query",
|
||
|
"type": "string"
|
||
|
}
|
||
|
},
|
||
|
"protocol": "rest",
|
||
|
"resources": {
|
||
|
"zoneOperations": {
|
||
|
"methods": {
|
||
|
"get": {
|
||
|
"description": "Retrieves the specified zone-specific operation resource.",
|
||
|
"httpMethod": "GET",
|
||
|
"id": "resourceviews.zoneOperations.get",
|
||
|
"parameterOrder": [
|
||
|
"project",
|
||
|
"zone",
|
||
|
"operation"
|
||
|
],
|
||
|
"parameters": {
|
||
|
"operation": {
|
||
|
"description": "Name of the operation resource to return.",
|
||
|
"location": "path",
|
||
|
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
||
|
"required": true,
|
||
|
"type": "string"
|
||
|
},
|
||
|
"project": {
|
||
|
"description": "Name of the project scoping this request.",
|
||
|
"location": "path",
|
||
|
"pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))",
|
||
|
"required": true,
|
||
|
"type": "string"
|
||
|
},
|
||
|
"zone": {
|
||
|
"description": "Name of the zone scoping this request.",
|
||
|
"location": "path",
|
||
|
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
||
|
"required": true,
|
||
|
"type": "string"
|
||
|
}
|
||
|
},
|
||
|
"path": "{project}/zones/{zone}/operations/{operation}",
|
||
|
"response": {
|
||
|
"$ref": "Operation"
|
||
|
},
|
||
|
"scopes": [
|
||
|
"https://www.googleapis.com/auth/cloud-platform",
|
||
|
"https://www.googleapis.com/auth/cloud-platform.read-only",
|
||
|
"https://www.googleapis.com/auth/compute",
|
||
|
"https://www.googleapis.com/auth/compute.readonly",
|
||
|
"https://www.googleapis.com/auth/ndev.cloudman",
|
||
|
"https://www.googleapis.com/auth/ndev.cloudman.readonly"
|
||
|
]
|
||
|
},
|
||
|
"list": {
|
||
|
"description": "Retrieves the list of operation resources contained within the specified zone.",
|
||
|
"httpMethod": "GET",
|
||
|
"id": "resourceviews.zoneOperations.list",
|
||
|
"parameterOrder": [
|
||
|
"project",
|
||
|
"zone"
|
||
|
],
|
||
|
"parameters": {
|
||
|
"filter": {
|
||
|
"description": "Optional. Filter expression for filtering listed resources.",
|
||
|
"location": "query",
|
||
|
"type": "string"
|
||
|
},
|
||
|
"maxResults": {
|
||
|
"default": "500",
|
||
|
"description": "Optional. Maximum count of results to be returned. Maximum value is 500 and default value is 500.",
|
||
|
"format": "uint32",
|
||
|
"location": "query",
|
||
|
"maximum": "500",
|
||
|
"minimum": "0",
|
||
|
"type": "integer"
|
||
|
},
|
||
|
"pageToken": {
|
||
|
"description": "Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.",
|
||
|
"location": "query",
|
||
|
"type": "string"
|
||
|
},
|
||
|
"project": {
|
||
|
"description": "Name of the project scoping this request.",
|
||
|
"location": "path",
|
||
|
"pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))",
|
||
|
"required": true,
|
||
|
"type": "string"
|
||
|
},
|
||
|
"zone": {
|
||
|
"description": "Name of the zone scoping this request.",
|
||
|
"location": "path",
|
||
|
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
||
|
"required": true,
|
||
|
"type": "string"
|
||
|
}
|
||
|
},
|
||
|
"path": "{project}/zones/{zone}/operations",
|
||
|
"response": {
|
||
|
"$ref": "OperationList"
|
||
|
},
|
||
|
"scopes": [
|
||
|
"https://www.googleapis.com/auth/cloud-platform",
|
||
|
"https://www.googleapis.com/auth/cloud-platform.read-only",
|
||
|
"https://www.googleapis.com/auth/compute",
|
||
|
"https://www.googleapis.com/auth/compute.readonly",
|
||
|
"https://www.googleapis.com/auth/ndev.cloudman",
|
||
|
"https://www.googleapis.com/auth/ndev.cloudman.readonly"
|
||
|
]
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"zoneViews": {
|
||
|
"methods": {
|
||
|
"addResources": {
|
||
|
"description": "Add resources to the view.",
|
||
|
"httpMethod": "POST",
|
||
|
"id": "resourceviews.zoneViews.addResources",
|
||
|
"parameterOrder": [
|
||
|
"project",
|
||
|
"zone",
|
||
|
"resourceView"
|
||
|
],
|
||
|
"parameters": {
|
||
|
"project": {
|
||
|
"description": "The project name of the resource view.",
|
||
|
"location": "path",
|
||
|
"required": true,
|
||
|
"type": "string"
|
||
|
},
|
||
|
"resourceView": {
|
||
|
"description": "The name of the resource view.",
|
||
|
"location": "path",
|
||
|
"required": true,
|
||
|
"type": "string"
|
||
|
},
|
||
|
"zone": {
|
||
|
"description": "The zone name of the resource view.",
|
||
|
"location": "path",
|
||
|
"required": true,
|
||
|
"type": "string"
|
||
|
}
|
||
|
},
|
||
|
"path": "{project}/zones/{zone}/resourceViews/{resourceView}/addResources",
|
||
|
"request": {
|
||
|
"$ref": "ZoneViewsAddResourcesRequest"
|
||
|
},
|
||
|
"response": {
|
||
|
"$ref": "Operation"
|
||
|
},
|
||
|
"scopes": [
|
||
|
"https://www.googleapis.com/auth/cloud-platform",
|
||
|
"https://www.googleapis.com/auth/compute",
|
||
|
"https://www.googleapis.com/auth/ndev.cloudman"
|
||
|
]
|
||
|
},
|
||
|
"delete": {
|
||
|
"description": "Delete a resource view.",
|
||
|
"httpMethod": "DELETE",
|
||
|
"id": "resourceviews.zoneViews.delete",
|
||
|
"parameterOrder": [
|
||
|
"project",
|
||
|
"zone",
|
||
|
"resourceView"
|
||
|
],
|
||
|
"parameters": {
|
||
|
"project": {
|
||
|
"description": "The project name of the resource view.",
|
||
|
"location": "path",
|
||
|
"required": true,
|
||
|
"type": "string"
|
||
|
},
|
||
|
"resourceView": {
|
||
|
"description": "The name of the resource view.",
|
||
|
"location": "path",
|
||
|
"required": true,
|
||
|
"type": "string"
|
||
|
},
|
||
|
"zone": {
|
||
|
"description": "The zone name of the resource view.",
|
||
|
"location": "path",
|
||
|
"required": true,
|
||
|
"type": "string"
|
||
|
}
|
||
|
},
|
||
|
"path": "{project}/zones/{zone}/resourceViews/{resourceView}",
|
||
|
"response": {
|
||
|
"$ref": "Operation"
|
||
|
},
|
||
|
"scopes": [
|
||
|
"https://www.googleapis.com/auth/cloud-platform",
|
||
|
"https://www.googleapis.com/auth/compute",
|
||
|
"https://www.googleapis.com/auth/ndev.cloudman"
|
||
|
]
|
||
|
},
|
||
|
"get": {
|
||
|
"description": "Get the information of a zonal resource view.",
|
||
|
"httpMethod": "GET",
|
||
|
"id": "resourceviews.zoneViews.get",
|
||
|
"parameterOrder": [
|
||
|
"project",
|
||
|
"zone",
|
||
|
"resourceView"
|
||
|
],
|
||
|
"parameters": {
|
||
|
"project": {
|
||
|
"description": "The project name of the resource view.",
|
||
|
"location": "path",
|
||
|
"required": true,
|
||
|
"type": "string"
|
||
|
},
|
||
|
"resourceView": {
|
||
|
"description": "The name of the resource view.",
|
||
|
"location": "path",
|
||
|
"required": true,
|
||
|
"type": "string"
|
||
|
},
|
||
|
"zone": {
|
||
|
"description": "The zone name of the resource view.",
|
||
|
"location": "path",
|
||
|
"required": true,
|
||
|
"type": "string"
|
||
|
}
|
||
|
},
|
||
|
"path": "{project}/zones/{zone}/resourceViews/{resourceView}",
|
||
|
"response": {
|
||
|
"$ref": "ResourceView"
|
||
|
},
|
||
|
"scopes": [
|
||
|
"https://www.googleapis.com/auth/cloud-platform",
|
||
|
"https://www.googleapis.com/auth/cloud-platform.read-only",
|
||
|
"https://www.googleapis.com/auth/compute",
|
||
|
"https://www.googleapis.com/auth/compute.readonly",
|
||
|
"https://www.googleapis.com/auth/ndev.cloudman",
|
||
|
"https://www.googleapis.com/auth/ndev.cloudman.readonly"
|
||
|
]
|
||
|
},
|
||
|
"getService": {
|
||
|
"description": "Get the service information of a resource view or a resource.",
|
||
|
"httpMethod": "POST",
|
||
|
"id": "resourceviews.zoneViews.getService",
|
||
|
"parameterOrder": [
|
||
|
"project",
|
||
|
"zone",
|
||
|
"resourceView"
|
||
|
],
|
||
|
"parameters": {
|
||
|
"project": {
|
||
|
"description": "The project name of the resource view.",
|
||
|
"location": "path",
|
||
|
"required": true,
|
||
|
"type": "string"
|
||
|
},
|
||
|
"resourceName": {
|
||
|
"description": "The name of the resource if user wants to get the service information of the resource.",
|
||
|
"location": "query",
|
||
|
"type": "string"
|
||
|
},
|
||
|
"resourceView": {
|
||
|
"description": "The name of the resource view.",
|
||
|
"location": "path",
|
||
|
"required": true,
|
||
|
"type": "string"
|
||
|
},
|
||
|
"zone": {
|
||
|
"description": "The zone name of the resource view.",
|
||
|
"location": "path",
|
||
|
"required": true,
|
||
|
"type": "string"
|
||
|
}
|
||
|
},
|
||
|
"path": "{project}/zones/{zone}/resourceViews/{resourceView}/getService",
|
||
|
"response": {
|
||
|
"$ref": "ZoneViewsGetServiceResponse"
|
||
|
},
|
||
|
"scopes": [
|
||
|
"https://www.googleapis.com/auth/cloud-platform",
|
||
|
"https://www.googleapis.com/auth/compute",
|
||
|
"https://www.googleapis.com/auth/ndev.cloudman"
|
||
|
]
|
||
|
},
|
||
|
"insert": {
|
||
|
"description": "Create a resource view.",
|
||
|
"httpMethod": "POST",
|
||
|
"id": "resourceviews.zoneViews.insert",
|
||
|
"parameterOrder": [
|
||
|
"project",
|
||
|
"zone"
|
||
|
],
|
||
|
"parameters": {
|
||
|
"project": {
|
||
|
"description": "The project name of the resource view.",
|
||
|
"location": "path",
|
||
|
"required": true,
|
||
|
"type": "string"
|
||
|
},
|
||
|
"zone": {
|
||
|
"description": "The zone name of the resource view.",
|
||
|
"location": "path",
|
||
|
"required": true,
|
||
|
"type": "string"
|
||
|
}
|
||
|
},
|
||
|
"path": "{project}/zones/{zone}/resourceViews",
|
||
|
"request": {
|
||
|
"$ref": "ResourceView"
|
||
|
},
|
||
|
"response": {
|
||
|
"$ref": "Operation"
|
||
|
},
|
||
|
"scopes": [
|
||
|
"https://www.googleapis.com/auth/cloud-platform",
|
||
|
"https://www.googleapis.com/auth/compute",
|
||
|
"https://www.googleapis.com/auth/ndev.cloudman"
|
||
|
]
|
||
|
},
|
||
|
"list": {
|
||
|
"description": "List resource views.",
|
||
|
"httpMethod": "GET",
|
||
|
"id": "resourceviews.zoneViews.list",
|
||
|
"parameterOrder": [
|
||
|
"project",
|
||
|
"zone"
|
||
|
],
|
||
|
"parameters": {
|
||
|
"maxResults": {
|
||
|
"default": "5000",
|
||
|
"description": "Maximum count of results to be returned. Acceptable values are 0 to 5000, inclusive. (Default: 5000)",
|
||
|
"format": "int32",
|
||
|
"location": "query",
|
||
|
"maximum": "5000",
|
||
|
"minimum": "0",
|
||
|
"type": "integer"
|
||
|
},
|
||
|
"pageToken": {
|
||
|
"description": "Specifies a nextPageToken returned by a previous list request. This token can be used to request the next page of results from a previous list request.",
|
||
|
"location": "query",
|
||
|
"type": "string"
|
||
|
},
|
||
|
"project": {
|
||
|
"description": "The project name of the resource view.",
|
||
|
"location": "path",
|
||
|
"required": true,
|
||
|
"type": "string"
|
||
|
},
|
||
|
"zone": {
|
||
|
"description": "The zone name of the resource view.",
|
||
|
"location": "path",
|
||
|
"required": true,
|
||
|
"type": "string"
|
||
|
}
|
||
|
},
|
||
|
"path": "{project}/zones/{zone}/resourceViews",
|
||
|
"response": {
|
||
|
"$ref": "ZoneViewsList"
|
||
|
},
|
||
|
"scopes": [
|
||
|
"https://www.googleapis.com/auth/cloud-platform",
|
||
|
"https://www.googleapis.com/auth/cloud-platform.read-only",
|
||
|
"https://www.googleapis.com/auth/compute",
|
||
|
"https://www.googleapis.com/auth/compute.readonly",
|
||
|
"https://www.googleapis.com/auth/ndev.cloudman",
|
||
|
"https://www.googleapis.com/auth/ndev.cloudman.readonly"
|
||
|
]
|
||
|
},
|
||
|
"listResources": {
|
||
|
"description": "List the resources of the resource view.",
|
||
|
"httpMethod": "GET",
|
||
|
"id": "resourceviews.zoneViews.listResources",
|
||
|
"parameterOrder": [
|
||
|
"project",
|
||
|
"zone",
|
||
|
"resourceView"
|
||
|
],
|
||
|
"parameters": {
|
||
|
"format": {
|
||
|
"description": "The requested format of the return value. It can be URL or URL_PORT. A JSON object will be included in the response based on the format. The default format is NONE, which results in no JSON in the response.",
|
||
|
"enum": [
|
||
|
"NONE",
|
||
|
"URL",
|
||
|
"URL_PORT"
|
||
|
],
|
||
|
"enumDescriptions": [
|
||
|
"",
|
||
|
"",
|
||
|
""
|
||
|
],
|
||
|
"location": "query",
|
||
|
"type": "string"
|
||
|
},
|
||
|
"listState": {
|
||
|
"default": "ALL",
|
||
|
"description": "The state of the instance to list. By default, it lists all instances.",
|
||
|
"enum": [
|
||
|
"ALL",
|
||
|
"RUNNING"
|
||
|
],
|
||
|
"enumDescriptions": [
|
||
|
"",
|
||
|
""
|
||
|
],
|
||
|
"location": "query",
|
||
|
"type": "string"
|
||
|
},
|
||
|
"maxResults": {
|
||
|
"default": "5000",
|
||
|
"description": "Maximum count of results to be returned. Acceptable values are 0 to 5000, inclusive. (Default: 5000)",
|
||
|
"format": "int32",
|
||
|
"location": "query",
|
||
|
"maximum": "5000",
|
||
|
"minimum": "0",
|
||
|
"type": "integer"
|
||
|
},
|
||
|
"pageToken": {
|
||
|
"description": "Specifies a nextPageToken returned by a previous list request. This token can be used to request the next page of results from a previous list request.",
|
||
|
"location": "query",
|
||
|
"type": "string"
|
||
|
},
|
||
|
"project": {
|
||
|
"description": "The project name of the resource view.",
|
||
|
"location": "path",
|
||
|
"required": true,
|
||
|
"type": "string"
|
||
|
},
|
||
|
"resourceView": {
|
||
|
"description": "The name of the resource view.",
|
||
|
"location": "path",
|
||
|
"required": true,
|
||
|
"type": "string"
|
||
|
},
|
||
|
"serviceName": {
|
||
|
"description": "The service name to return in the response. It is optional and if it is not set, all the service end points will be returned.",
|
||
|
"location": "query",
|
||
|
"type": "string"
|
||
|
},
|
||
|
"zone": {
|
||
|
"description": "The zone name of the resource view.",
|
||
|
"location": "path",
|
||
|
"required": true,
|
||
|
"type": "string"
|
||
|
}
|
||
|
},
|
||
|
"path": "{project}/zones/{zone}/resourceViews/{resourceView}/resources",
|
||
|
"response": {
|
||
|
"$ref": "ZoneViewsListResourcesResponse"
|
||
|
},
|
||
|
"scopes": [
|
||
|
"https://www.googleapis.com/auth/cloud-platform",
|
||
|
"https://www.googleapis.com/auth/cloud-platform.read-only",
|
||
|
"https://www.googleapis.com/auth/compute",
|
||
|
"https://www.googleapis.com/auth/compute.readonly",
|
||
|
"https://www.googleapis.com/auth/ndev.cloudman",
|
||
|
"https://www.googleapis.com/auth/ndev.cloudman.readonly"
|
||
|
]
|
||
|
},
|
||
|
"removeResources": {
|
||
|
"description": "Remove resources from the view.",
|
||
|
"httpMethod": "POST",
|
||
|
"id": "resourceviews.zoneViews.removeResources",
|
||
|
"parameterOrder": [
|
||
|
"project",
|
||
|
"zone",
|
||
|
"resourceView"
|
||
|
],
|
||
|
"parameters": {
|
||
|
"project": {
|
||
|
"description": "The project name of the resource view.",
|
||
|
"location": "path",
|
||
|
"required": true,
|
||
|
"type": "string"
|
||
|
},
|
||
|
"resourceView": {
|
||
|
"description": "The name of the resource view.",
|
||
|
"location": "path",
|
||
|
"required": true,
|
||
|
"type": "string"
|
||
|
},
|
||
|
"zone": {
|
||
|
"description": "The zone name of the resource view.",
|
||
|
"location": "path",
|
||
|
"required": true,
|
||
|
"type": "string"
|
||
|
}
|
||
|
},
|
||
|
"path": "{project}/zones/{zone}/resourceViews/{resourceView}/removeResources",
|
||
|
"request": {
|
||
|
"$ref": "ZoneViewsRemoveResourcesRequest"
|
||
|
},
|
||
|
"response": {
|
||
|
"$ref": "Operation"
|
||
|
},
|
||
|
"scopes": [
|
||
|
"https://www.googleapis.com/auth/cloud-platform",
|
||
|
"https://www.googleapis.com/auth/compute",
|
||
|
"https://www.googleapis.com/auth/ndev.cloudman"
|
||
|
]
|
||
|
},
|
||
|
"setService": {
|
||
|
"description": "Update the service information of a resource view or a resource.",
|
||
|
"httpMethod": "POST",
|
||
|
"id": "resourceviews.zoneViews.setService",
|
||
|
"parameterOrder": [
|
||
|
"project",
|
||
|
"zone",
|
||
|
"resourceView"
|
||
|
],
|
||
|
"parameters": {
|
||
|
"project": {
|
||
|
"description": "The project name of the resource view.",
|
||
|
"location": "path",
|
||
|
"required": true,
|
||
|
"type": "string"
|
||
|
},
|
||
|
"resourceView": {
|
||
|
"description": "The name of the resource view.",
|
||
|
"location": "path",
|
||
|
"required": true,
|
||
|
"type": "string"
|
||
|
},
|
||
|
"zone": {
|
||
|
"description": "The zone name of the resource view.",
|
||
|
"location": "path",
|
||
|
"required": true,
|
||
|
"type": "string"
|
||
|
}
|
||
|
},
|
||
|
"path": "{project}/zones/{zone}/resourceViews/{resourceView}/setService",
|
||
|
"request": {
|
||
|
"$ref": "ZoneViewsSetServiceRequest"
|
||
|
},
|
||
|
"response": {
|
||
|
"$ref": "Operation"
|
||
|
},
|
||
|
"scopes": [
|
||
|
"https://www.googleapis.com/auth/cloud-platform",
|
||
|
"https://www.googleapis.com/auth/compute",
|
||
|
"https://www.googleapis.com/auth/ndev.cloudman"
|
||
|
]
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"revision": "20160512",
|
||
|
"rootUrl": "https://www.googleapis.com/",
|
||
|
"schemas": {
|
||
|
"Label": {
|
||
|
"description": "The Label to be applied to the resource views.",
|
||
|
"id": "Label",
|
||
|
"properties": {
|
||
|
"key": {
|
||
|
"description": "Key of the label.",
|
||
|
"type": "string"
|
||
|
},
|
||
|
"value": {
|
||
|
"description": "Value of the label.",
|
||
|
"type": "string"
|
||
|
}
|
||
|
},
|
||
|
"type": "object"
|
||
|
},
|
||
|
"ListResourceResponseItem": {
|
||
|
"description": "The list response item that contains the resource and end points information.",
|
||
|
"id": "ListResourceResponseItem",
|
||
|
"properties": {
|
||
|
"endpoints": {
|
||
|
"additionalProperties": {
|
||
|
"description": "The name of the service end point.",
|
||
|
"items": {
|
||
|
"format": "int32",
|
||
|
"type": "integer"
|
||
|
},
|
||
|
"type": "array"
|
||
|
},
|
||
|
"description": "The list of service end points on the resource.",
|
||
|
"type": "object"
|
||
|
},
|
||
|
"resource": {
|
||
|
"description": "The full URL of the resource.",
|
||
|
"type": "string"
|
||
|
}
|
||
|
},
|
||
|
"type": "object"
|
||
|
},
|
||
|
"Operation": {
|
||
|
"description": "An operation resource, used to manage asynchronous API requests.",
|
||
|
"id": "Operation",
|
||
|
"properties": {
|
||
|
"clientOperationId": {
|
||
|
"description": "[Output only] An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project.",
|
||
|
"type": "string"
|
||
|
},
|
||
|
"creationTimestamp": {
|
||
|
"description": "[Output Only] The time that this operation was requested, in RFC3339 text format.",
|
||
|
"type": "string"
|
||
|
},
|
||
|
"endTime": {
|
||
|
"description": "[Output Only] The time that this operation was completed, in RFC3339 text format.",
|
||
|
"type": "string"
|
||
|
},
|
||
|
"error": {
|
||
|
"description": "[Output Only] If errors occurred during processing of this operation, this field will be populated.",
|
||
|
"properties": {
|
||
|
"errors": {
|
||
|
"description": "[Output Only] The array of errors encountered while processing this operation.",
|
||
|
"items": {
|
||
|
"properties": {
|
||
|
"code": {
|
||
|
"description": "[Output Only] The error type identifier for this error.",
|
||
|
"type": "string"
|
||
|
},
|
||
|
"location": {
|
||
|
"description": "[Output Only] Indicates the field in the request which caused the error. This property is optional.",
|
||
|
"type": "string"
|
||
|
},
|
||
|
"message": {
|
||
|
"description": "[Output Only] An optional, human-readable error message.",
|
||
|
"type": "string"
|
||
|
}
|
||
|
},
|
||
|
"type": "object"
|
||
|
},
|
||
|
"type": "array"
|
||
|
}
|
||
|
},
|
||
|
"type": "object"
|
||
|
},
|
||
|
"httpErrorMessage": {
|
||
|
"description": "[Output only] If operation fails, the HTTP error message returned.",
|
||
|
"type": "string"
|
||
|
},
|
||
|
"httpErrorStatusCode": {
|
||
|
"description": "[Output only] If operation fails, the HTTP error status code returned.",
|
||
|
"format": "int32",
|
||
|
"type": "integer"
|
||
|
},
|
||
|
"id": {
|
||
|
"description": "[Output Only] Unique identifier for the resource, generated by the server.",
|
||
|
"format": "uint64",
|
||
|
"type": "string"
|
||
|
},
|
||
|
"insertTime": {
|
||
|
"description": "[Output Only] The time that this operation was requested, in RFC3339 text format.",
|
||
|
"type": "string"
|
||
|
},
|
||
|
"kind": {
|
||
|
"default": "resourceviews#operation",
|
||
|
"description": "[Output only] Type of the resource.",
|
||
|
"type": "string"
|
||
|
},
|
||
|
"name": {
|
||
|
"description": "[Output Only] Name of the resource.",
|
||
|
"type": "string"
|
||
|
},
|
||
|
"operationType": {
|
||
|
"description": "[Output only] Type of the operation. Operations include insert, update, and delete.",
|
||
|
"type": "string"
|
||
|
},
|
||
|
"progress": {
|
||
|
"description": "[Output only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses.",
|
||
|
"format": "int32",
|
||
|
"type": "integer"
|
||
|
},
|
||
|
"region": {
|
||
|
"description": "[Output Only] URL of the region where the operation resides. Only available when performing regional operations.",
|
||
|
"type": "string"
|
||
|
},
|
||
|
"selfLink": {
|
||
|
"description": "[Output Only] Server-defined fully-qualified URL for this resource.",
|
||
|
"type": "string"
|
||
|
},
|
||
|
"startTime": {
|
||
|
"description": "[Output Only] The time that this operation was started by the server, in RFC3339 text format.",
|
||
|
"type": "string"
|
||
|
},
|
||
|
"status": {
|
||
|
"description": "[Output Only] Status of the operation.",
|
||
|
"type": "string"
|
||
|
},
|
||
|
"statusMessage": {
|
||
|
"description": "[Output Only] An optional textual description of the current status of the operation.",
|
||
|
"type": "string"
|
||
|
},
|
||
|
"targetId": {
|
||
|
"description": "[Output Only] Unique target ID which identifies a particular incarnation of the target.",
|
||
|
"format": "uint64",
|
||
|
"type": "string"
|
||
|
},
|
||
|
"targetLink": {
|
||
|
"description": "[Output only] URL of the resource the operation is mutating.",
|
||
|
"type": "string"
|
||
|
},
|
||
|
"user": {
|
||
|
"description": "[Output Only] User who requested the operation, for example: user@example.com.",
|
||
|
"type": "string"
|
||
|
},
|
||
|
"warnings": {
|
||
|
"description": "[Output Only] If there are issues with this operation, a warning is returned.",
|
||
|
"items": {
|
||
|
"properties": {
|
||
|
"code": {
|
||
|
"description": "[Output only] The warning type identifier for this warning.",
|
||
|
"type": "string"
|
||
|
},
|
||
|
"data": {
|
||
|
"description": "[Output only] Metadata for this warning in key:value format.",
|
||
|
"items": {
|
||
|
"properties": {
|
||
|
"key": {
|
||
|
"description": "[Output Only] Metadata key for this warning.",
|
||
|
"type": "string"
|
||
|
},
|
||
|
"value": {
|
||
|
"description": "[Output Only] Metadata value for this warning.",
|
||
|
"type": "string"
|
||
|
}
|
||
|
},
|
||
|
"type": "object"
|
||
|
},
|
||
|
"type": "array"
|
||
|
},
|
||
|
"message": {
|
||
|
"description": "[Output only] Optional human-readable details for this warning.",
|
||
|
"type": "string"
|
||
|
}
|
||
|
},
|
||
|
"type": "object"
|
||
|
},
|
||
|
"type": "array"
|
||
|
},
|
||
|
"zone": {
|
||
|
"description": "[Output Only] URL of the zone where the operation resides. Only available when performing per-zone operations.",
|
||
|
"type": "string"
|
||
|
}
|
||
|
},
|
||
|
"type": "object"
|
||
|
},
|
||
|
"OperationList": {
|
||
|
"id": "OperationList",
|
||
|
"properties": {
|
||
|
"id": {
|
||
|
"description": "Unique identifier for the resource; defined by the server (output only).",
|
||
|
"type": "string"
|
||
|
},
|
||
|
"items": {
|
||
|
"description": "The operation resources.",
|
||
|
"items": {
|
||
|
"$ref": "Operation"
|
||
|
},
|
||
|
"type": "array"
|
||
|
},
|
||
|
"kind": {
|
||
|
"default": "resourceviews#operationList",
|
||
|
"description": "Type of resource.",
|
||
|
"type": "string"
|
||
|
},
|
||
|
"nextPageToken": {
|
||
|
"description": "A token used to continue a truncated list request (output only).",
|
||
|
"type": "string"
|
||
|
},
|
||
|
"selfLink": {
|
||
|
"description": "Server defined URL for this resource (output only).",
|
||
|
"type": "string"
|
||
|
}
|
||
|
},
|
||
|
"type": "object"
|
||
|
},
|
||
|
"ResourceView": {
|
||
|
"description": "The resource view object.",
|
||
|
"id": "ResourceView",
|
||
|
"properties": {
|
||
|
"creationTimestamp": {
|
||
|
"description": "The creation time of the resource view.",
|
||
|
"type": "string"
|
||
|
},
|
||
|
"description": {
|
||
|
"description": "The detailed description of the resource view.",
|
||
|
"type": "string"
|
||
|
},
|
||
|
"endpoints": {
|
||
|
"description": "Services endpoint information.",
|
||
|
"items": {
|
||
|
"$ref": "ServiceEndpoint"
|
||
|
},
|
||
|
"type": "array"
|
||
|
},
|
||
|
"fingerprint": {
|
||
|
"description": "The fingerprint of the service endpoint information.",
|
||
|
"type": "string"
|
||
|
},
|
||
|
"id": {
|
||
|
"description": "[Output Only] The ID of the resource view.",
|
||
|
"type": "string"
|
||
|
},
|
||
|
"kind": {
|
||
|
"default": "resourceviews#resourceView",
|
||
|
"description": "Type of the resource.",
|
||
|
"type": "string"
|
||
|
},
|
||
|
"labels": {
|
||
|
"description": "The labels for events.",
|
||
|
"items": {
|
||
|
"$ref": "Label"
|
||
|
},
|
||
|
"type": "array"
|
||
|
},
|
||
|
"name": {
|
||
|
"description": "The name of the resource view.",
|
||
|
"type": "string"
|
||
|
},
|
||
|
"network": {
|
||
|
"description": "The URL of a Compute Engine network to which the resources in the view belong.",
|
||
|
"type": "string"
|
||
|
},
|
||
|
"resources": {
|
||
|
"description": "A list of all resources in the resource view.",
|
||
|
"items": {
|
||
|
"type": "string"
|
||
|
},
|
||
|
"type": "array"
|
||
|
},
|
||
|
"selfLink": {
|
||
|
"description": "[Output Only] A self-link to the resource view.",
|
||
|
"type": "string"
|
||
|
},
|
||
|
"size": {
|
||
|
"description": "The total number of resources in the resource view.",
|
||
|
"format": "uint32",
|
||
|
"type": "integer"
|
||
|
}
|
||
|
},
|
||
|
"type": "object"
|
||
|
},
|
||
|
"ServiceEndpoint": {
|
||
|
"description": "The service endpoint that may be started in a VM.",
|
||
|
"id": "ServiceEndpoint",
|
||
|
"properties": {
|
||
|
"name": {
|
||
|
"description": "The name of the service endpoint.",
|
||
|
"type": "string"
|
||
|
},
|
||
|
"port": {
|
||
|
"description": "The port of the service endpoint.",
|
||
|
"format": "int32",
|
||
|
"type": "integer"
|
||
|
}
|
||
|
},
|
||
|
"type": "object"
|
||
|
},
|
||
|
"ZoneViewsAddResourcesRequest": {
|
||
|
"description": "The request to add resources to the resource view.",
|
||
|
"id": "ZoneViewsAddResourcesRequest",
|
||
|
"properties": {
|
||
|
"resources": {
|
||
|
"description": "The list of resources to be added.",
|
||
|
"items": {
|
||
|
"type": "string"
|
||
|
},
|
||
|
"type": "array"
|
||
|
}
|
||
|
},
|
||
|
"type": "object"
|
||
|
},
|
||
|
"ZoneViewsGetServiceResponse": {
|
||
|
"id": "ZoneViewsGetServiceResponse",
|
||
|
"properties": {
|
||
|
"endpoints": {
|
||
|
"description": "The service information.",
|
||
|
"items": {
|
||
|
"$ref": "ServiceEndpoint"
|
||
|
},
|
||
|
"type": "array"
|
||
|
},
|
||
|
"fingerprint": {
|
||
|
"description": "The fingerprint of the service information.",
|
||
|
"type": "string"
|
||
|
}
|
||
|
},
|
||
|
"type": "object"
|
||
|
},
|
||
|
"ZoneViewsList": {
|
||
|
"description": "The response to a list request.",
|
||
|
"id": "ZoneViewsList",
|
||
|
"properties": {
|
||
|
"items": {
|
||
|
"description": "The result that contains all resource views that meet the criteria.",
|
||
|
"items": {
|
||
|
"$ref": "ResourceView"
|
||
|
},
|
||
|
"type": "array"
|
||
|
},
|
||
|
"kind": {
|
||
|
"default": "resourceviews#zoneViewsList",
|
||
|
"description": "Type of resource.",
|
||
|
"type": "string"
|
||
|
},
|
||
|
"nextPageToken": {
|
||
|
"description": "A token used for pagination.",
|
||
|
"type": "string"
|
||
|
},
|
||
|
"selfLink": {
|
||
|
"description": "Server defined URL for this resource (output only).",
|
||
|
"type": "string"
|
||
|
}
|
||
|
},
|
||
|
"type": "object"
|
||
|
},
|
||
|
"ZoneViewsListResourcesResponse": {
|
||
|
"description": "The response to a list resource request.",
|
||
|
"id": "ZoneViewsListResourcesResponse",
|
||
|
"properties": {
|
||
|
"items": {
|
||
|
"description": "The formatted JSON that is requested by the user.",
|
||
|
"items": {
|
||
|
"$ref": "ListResourceResponseItem"
|
||
|
},
|
||
|
"type": "array"
|
||
|
},
|
||
|
"network": {
|
||
|
"description": "The URL of a Compute Engine network to which the resources in the view belong.",
|
||
|
"type": "string"
|
||
|
},
|
||
|
"nextPageToken": {
|
||
|
"description": "A token used for pagination.",
|
||
|
"type": "string"
|
||
|
}
|
||
|
},
|
||
|
"type": "object"
|
||
|
},
|
||
|
"ZoneViewsRemoveResourcesRequest": {
|
||
|
"description": "The request to remove resources from the resource view.",
|
||
|
"id": "ZoneViewsRemoveResourcesRequest",
|
||
|
"properties": {
|
||
|
"resources": {
|
||
|
"description": "The list of resources to be removed.",
|
||
|
"items": {
|
||
|
"type": "string"
|
||
|
},
|
||
|
"type": "array"
|
||
|
}
|
||
|
},
|
||
|
"type": "object"
|
||
|
},
|
||
|
"ZoneViewsSetServiceRequest": {
|
||
|
"id": "ZoneViewsSetServiceRequest",
|
||
|
"properties": {
|
||
|
"endpoints": {
|
||
|
"description": "The service information to be updated.",
|
||
|
"items": {
|
||
|
"$ref": "ServiceEndpoint"
|
||
|
},
|
||
|
"type": "array"
|
||
|
},
|
||
|
"fingerprint": {
|
||
|
"description": "Fingerprint of the service information; a hash of the contents. This field is used for optimistic locking when updating the service entries.",
|
||
|
"type": "string"
|
||
|
},
|
||
|
"resourceName": {
|
||
|
"description": "The name of the resource if user wants to update the service information of the resource.",
|
||
|
"type": "string"
|
||
|
}
|
||
|
},
|
||
|
"type": "object"
|
||
|
}
|
||
|
},
|
||
|
"servicePath": "resourceviews/v1beta2/projects/",
|
||
|
"title": "Google Compute Engine Instance Groups API",
|
||
|
"version": "v1beta2"
|
||
|
}
|