knife-google 0.0.1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +22 -0
- data/CONTRIB.md +64 -0
- data/Gemfile +11 -0
- data/README.md +287 -0
- data/Rakefile +53 -0
- data/knife-google.gemspec +26 -0
- data/lib/chef/knife/google_base.rb +39 -68
- data/lib/chef/knife/google_disk_create.rb +60 -0
- data/lib/chef/knife/google_disk_delete.rb +60 -0
- data/lib/chef/knife/google_disk_list.rb +75 -0
- data/lib/chef/knife/google_server_create.rb +273 -184
- data/lib/chef/knife/google_server_delete.rb +74 -32
- data/lib/chef/knife/google_server_list.rb +45 -64
- data/lib/chef/knife/google_setup.rb +31 -0
- data/lib/chef/knife/google_zone_list.rb +78 -0
- data/lib/google/compute.rb +46 -0
- data/lib/google/compute/client.rb +188 -0
- data/lib/google/compute/config.rb +23 -0
- data/lib/google/compute/creatable_resource_collection.rb +38 -0
- data/lib/google/compute/deletable_resource_collection.rb +51 -0
- data/lib/google/compute/disk.rb +40 -0
- data/lib/google/compute/exception.rb +28 -0
- data/lib/google/compute/firewall.rb +65 -0
- data/lib/google/compute/global_operation.rb +60 -0
- data/lib/google/compute/image.rb +30 -0
- data/lib/google/compute/kernel.rb +20 -0
- data/lib/google/compute/listable_resource_collection.rb +33 -0
- data/lib/google/compute/machine_type.rb +36 -0
- data/lib/google/compute/mixins/utils.rb +58 -0
- data/lib/google/compute/network.rb +29 -0
- data/lib/google/compute/project.rb +76 -0
- data/lib/google/compute/resource.rb +81 -0
- data/lib/google/compute/resource_collection.rb +78 -0
- data/lib/google/compute/server.rb +87 -0
- data/lib/google/compute/server/attached_disk.rb +39 -0
- data/lib/google/compute/server/network_interface.rb +38 -0
- data/lib/google/compute/server/network_interface/access_config.rb +35 -0
- data/lib/google/compute/server/serial_port_output.rb +31 -0
- data/lib/google/compute/snapshot.rb +30 -0
- data/lib/google/compute/version.rb +19 -0
- data/lib/google/compute/zone.rb +32 -0
- data/lib/google/compute/zone_operation.rb +60 -0
- data/lib/knife-google/version.rb +18 -2
- data/spec/chef/knife/google_base_spec.rb +46 -0
- data/spec/chef/knife/google_disk_create_spec.rb +36 -0
- data/spec/chef/knife/google_disk_delete_spec.rb +65 -0
- data/spec/chef/knife/google_disk_list_spec.rb +36 -0
- data/spec/chef/knife/google_server_create_spec.rb +84 -0
- data/spec/chef/knife/google_server_delete_spec.rb +105 -0
- data/spec/chef/knife/google_server_list_spec.rb +39 -0
- data/spec/chef/knife/google_setup_spec.rb +25 -0
- data/spec/chef/knife/google_zone_list_spec.rb +32 -0
- data/spec/data/client.json +14 -0
- data/spec/data/compute-v1beta14.json +3386 -0
- data/spec/data/disk.json +15 -0
- data/spec/data/firewall.json +13 -0
- data/spec/data/global_operation.json +36 -0
- data/spec/data/image.json +12 -0
- data/spec/data/kernel.json +15 -0
- data/spec/data/machine_type.json +24 -0
- data/spec/data/network.json +10 -0
- data/spec/data/project.json +21 -0
- data/spec/data/serial_port_output.json +5 -0
- data/spec/data/server.json +46 -0
- data/spec/data/snapshot.json +12 -0
- data/spec/data/zone.json +30 -0
- data/spec/data/zone_operation.json +36 -0
- data/spec/google/compute/disk_spec.rb +105 -0
- data/spec/google/compute/firewall_spec.rb +128 -0
- data/spec/google/compute/global_operation_spec.rb +62 -0
- data/spec/google/compute/image_spec.rb +75 -0
- data/spec/google/compute/kernel_spec.rb +49 -0
- data/spec/google/compute/machine_type_spec.rb +53 -0
- data/spec/google/compute/network_spec.rb +68 -0
- data/spec/google/compute/project_spec.rb +71 -0
- data/spec/google/compute/server_spec.rb +125 -0
- data/spec/google/compute/snapshot_spec.rb +69 -0
- data/spec/google/compute/zone_operation_spec.rb +62 -0
- data/spec/google/compute/zone_spec.rb +50 -0
- data/spec/spec_helper.rb +44 -0
- data/spec/support/mocks.rb +62 -0
- data/spec/support/resource_examples.rb +70 -0
- data/spec/support/spec_google_base.rb +56 -0
- metadata +121 -31
- data/README.rdoc +0 -96
@@ -0,0 +1,105 @@
|
|
1
|
+
# Copyright 2013 Google Inc. All Rights Reserved.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
#
|
15
|
+
#
|
16
|
+
|
17
|
+
require 'spec_helper'
|
18
|
+
|
19
|
+
describe Chef::Knife::GoogleServerDelete do
|
20
|
+
|
21
|
+
let(:knife_plugin) do
|
22
|
+
Chef::Knife::GoogleServerDelete.new(
|
23
|
+
[stored_instance.name, "-Z"+stored_zone.name])
|
24
|
+
end
|
25
|
+
|
26
|
+
it "should print out error message if the server is not found" do
|
27
|
+
zones = mock(Google::Compute::ListableResourceCollection)
|
28
|
+
zones.should_receive(:get).with(stored_zone.name).
|
29
|
+
and_return(stored_zone)
|
30
|
+
|
31
|
+
instances = mock(Google::Compute::DeletableResourceCollection)
|
32
|
+
instances.should_receive(:get).
|
33
|
+
with(:name=>stored_instance.name, :zone=>stored_zone.name).
|
34
|
+
and_raise(Google::Compute::ResourceNotFound)
|
35
|
+
instances.should_not_receive(:delete)
|
36
|
+
|
37
|
+
client = mock(Google::Compute::Client,
|
38
|
+
:instances=>instances, :zones=>zones)
|
39
|
+
Google::Compute::Client.stub!(:from_json).and_return(client)
|
40
|
+
|
41
|
+
knife_plugin.config[:yes] = true
|
42
|
+
knife_plugin.ui.should_receive(:error).
|
43
|
+
with("Could not locate server '#{stored_zone.name}:#{stored_instance.name}'.")
|
44
|
+
knife_plugin.stub!(:msg_pair)
|
45
|
+
knife_plugin.run
|
46
|
+
end
|
47
|
+
|
48
|
+
describe "without purge" do
|
49
|
+
|
50
|
+
it "should invoke api delete method when run is called" do
|
51
|
+
zones = mock(Google::Compute::ListableResourceCollection)
|
52
|
+
zones.should_receive(:get).with(stored_zone.name).
|
53
|
+
and_return(stored_zone)
|
54
|
+
|
55
|
+
instances = mock(Google::Compute::DeletableResourceCollection)
|
56
|
+
instances.should_receive(:get).
|
57
|
+
with(:name=>stored_instance.name, :zone=>stored_zone.name).
|
58
|
+
and_return(stored_instance)
|
59
|
+
instances.should_receive(:delete).
|
60
|
+
with(:instance=>stored_instance.name, :zone=>stored_zone.name)
|
61
|
+
|
62
|
+
client = mock(Google::Compute::Client,
|
63
|
+
:zones=>zones, :instances=>instances)
|
64
|
+
Google::Compute::Client.stub!(:from_json).and_return(client)
|
65
|
+
knife_plugin.config[:yes] = true
|
66
|
+
knife_plugin.ui.should_receive(:warn).twice
|
67
|
+
knife_plugin.stub!(:msg_pair)
|
68
|
+
knife_plugin.run
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
describe "with purge" do
|
73
|
+
it "should invoke api delete method as well as chef objects destroy when run is called" do
|
74
|
+
chef_client = mock(Chef::ApiClient)
|
75
|
+
chef_client.should_receive(:destroy)
|
76
|
+
chef_node = mock(Chef::Node)
|
77
|
+
chef_node.should_receive(:destroy)
|
78
|
+
|
79
|
+
zones = mock(Google::Compute::ListableResourceCollection)
|
80
|
+
zones.should_receive(:get).with(stored_zone.name).
|
81
|
+
and_return(stored_zone)
|
82
|
+
|
83
|
+
instances = mock(Google::Compute::DeletableResourceCollection)
|
84
|
+
instances.should_receive(:get).
|
85
|
+
with(:name=>stored_instance.name, :zone=>stored_zone.name).
|
86
|
+
and_return(stored_instance)
|
87
|
+
instances.should_receive(:delete).
|
88
|
+
with(:instance=>stored_instance.name, :zone=>stored_zone.name)
|
89
|
+
|
90
|
+
client = mock(Google::Compute::Client,
|
91
|
+
:zones=>zones, :instances=>instances)
|
92
|
+
Google::Compute::Client.stub!(:from_json).and_return(client)
|
93
|
+
|
94
|
+
knife_plugin.config[:yes] = true
|
95
|
+
knife_plugin.config[:purge] = true
|
96
|
+
knife_plugin.ui.stub!(:warn)
|
97
|
+
knife_plugin.stub!(:msg_pair)
|
98
|
+
Chef::Node.should_receive(:load).with(stored_instance.name).
|
99
|
+
and_return(chef_node)
|
100
|
+
Chef::ApiClient.should_receive(:load).with(stored_instance.name).
|
101
|
+
and_return(chef_client)
|
102
|
+
knife_plugin.run
|
103
|
+
end
|
104
|
+
end
|
105
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
# Copyright 2013 Google Inc. All Rights Reserved.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
#
|
15
|
+
require 'spec_helper'
|
16
|
+
|
17
|
+
describe Chef::Knife::GoogleServerList do
|
18
|
+
|
19
|
+
let(:knife_plugin) do
|
20
|
+
Chef::Knife::GoogleServerList.new(["-Z"+stored_zone.name])
|
21
|
+
end
|
22
|
+
|
23
|
+
it "should enlist all the GCE servers when run invoked" do
|
24
|
+
zones = mock(Google::Compute::ListableResourceCollection)
|
25
|
+
zones.should_receive(:get).with(stored_zone.name).
|
26
|
+
and_return(stored_zone)
|
27
|
+
|
28
|
+
instances = mock(Google::Compute::DeletableResourceCollection)
|
29
|
+
instances.should_receive(:list).with(:zone=>stored_zone.name).
|
30
|
+
and_return([stored_instance])
|
31
|
+
|
32
|
+
client = mock(Google::Compute::Client,
|
33
|
+
:instances=>instances, :zones=>zones)
|
34
|
+
Google::Compute::Client.stub!(:from_json).and_return(client)
|
35
|
+
|
36
|
+
$stdout.should_receive(:write).with(kind_of(String))
|
37
|
+
knife_plugin.run
|
38
|
+
end
|
39
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# Copyright 2013 Google Inc. All Rights Reserved.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
#
|
15
|
+
require 'spec_helper'
|
16
|
+
|
17
|
+
describe Chef::Knife::GoogleSetup do
|
18
|
+
|
19
|
+
let(:knife_plugin) { Chef::Knife::GoogleSetup.new(["-f credential.json"]) }
|
20
|
+
|
21
|
+
it "should invoke the google-compute-client-ruby setup process" do
|
22
|
+
Google::Compute::Client.should_receive(:setup)
|
23
|
+
knife_plugin.run
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# Copyright 2013 Google Inc. All Rights Reserved.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
#
|
15
|
+
require 'spec_helper'
|
16
|
+
|
17
|
+
describe Chef::Knife::GoogleZoneList do
|
18
|
+
|
19
|
+
let(:knife_plugin) do
|
20
|
+
Chef::Knife::GoogleZoneList.new([])
|
21
|
+
end
|
22
|
+
|
23
|
+
it "should enlist all the GCE zones when run invoked" do
|
24
|
+
client = mock(Google::Compute::Client)
|
25
|
+
Google::Compute::Client.stub!(:from_json).
|
26
|
+
and_return(client)
|
27
|
+
client.should_receive(:zones).
|
28
|
+
and_return(mock("zone-collection", :list=>[stored_zone]))
|
29
|
+
$stdout.should_receive(:write).with(kind_of(String))
|
30
|
+
knife_plugin.run
|
31
|
+
end
|
32
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
{
|
2
|
+
"authorization_uri":"https://accounts.google.com/o/oauth2/auth",
|
3
|
+
"token_credential_uri":"https://accounts.google.com/o/oauth2/token",
|
4
|
+
"scope":["https://www.googleapis.com/auth/compute","https://www.googleapis.com/auth/compute.readonly","https://www.googleapis.com/auth/devstorage.full_control","https://www.googleapis.com/auth/devstorage.read_only","https://www.googleapis.com/auth/devstorage.read_write","https://www.googleapis.com/auth/devstorage.write_only","https://www.googleapis.com/auth/userinfo.email"],
|
5
|
+
"redirect_uri":"urn:ietf:wg:oauth:2.0:oob",
|
6
|
+
"client_id":"xxx1112345673qww4565.apps.googleusercontent.com",
|
7
|
+
"client_secret":"W5KHDDIOHDLIFDLHDOK",
|
8
|
+
"access_token":"ya29sadfajdslfkjsaldSqXhdasdMk",
|
9
|
+
"expires_in":3600,
|
10
|
+
"refresh_token":"1sasdlkfhsaoZNiA",
|
11
|
+
"id_token":"eyJrnxBX_X7IIsadfhaslkhfaskleuhfalsiehfliuhfalisudhfliasuhfalsidufhalsiufeafdfbdbfyabfiabvfafvaifvadsvtaseifvtqwfetwftbabfuasftvakiftaifteawiutfevvvvvvvvvvvvvvvvvvvvvvvvvvvvvewaffffffffffffffffffeeeeeeeeeeeeeeeeeeeeiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiffffffffffffffffffffffffffffffffffffffffffffffffuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuaqqqqqqqqqqqqqqqqqqqqqfebbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbiwwwwwwwwwwwwwwwwwwweffffffqqqqqqoiyyyyyyyyyyyyyyyyyyyqweqqqqqqqqqqqwwwwwwwwwwrrrrrrrrrrrrrrrr",
|
12
|
+
"issued_at":"2013-01-18 15:25:29 -0800",
|
13
|
+
"project" : "mock-project"
|
14
|
+
}
|
@@ -0,0 +1,3386 @@
|
|
1
|
+
{
|
2
|
+
"kind": "discovery#restDescription",
|
3
|
+
"etag": "\"DsY8aw3zSOMYNAy_X4JnK21hrvA/jMkGiSUPovOxLdbwSvW2hSiv5bs\"",
|
4
|
+
"discoveryVersion": "v1",
|
5
|
+
"id": "compute:v1beta14",
|
6
|
+
"name": "compute",
|
7
|
+
"version": "v1beta14",
|
8
|
+
"revision": "20130403",
|
9
|
+
"title": "Compute Engine API",
|
10
|
+
"description": "API for the Google Compute Engine service.",
|
11
|
+
"ownerDomain": "google.com",
|
12
|
+
"ownerName": "Google",
|
13
|
+
"icons": {
|
14
|
+
"x16": "http://www.google.com/images/icons/product/compute_engine-16.png",
|
15
|
+
"x32": "http://www.google.com/images/icons/product/compute_engine-32.png"
|
16
|
+
},
|
17
|
+
"documentationLink": "https://developers.google.com/compute/docs/reference/v1beta14",
|
18
|
+
"labels": [
|
19
|
+
"limited_availability"
|
20
|
+
],
|
21
|
+
"protocol": "rest",
|
22
|
+
"baseUrl": "https://www.googleapis.com/compute/v1beta14/projects/",
|
23
|
+
"basePath": "/compute/v1beta14/projects/",
|
24
|
+
"rootUrl": "https://www.googleapis.com/",
|
25
|
+
"servicePath": "compute/v1beta14/projects/",
|
26
|
+
"batchPath": "batch",
|
27
|
+
"parameters": {
|
28
|
+
"alt": {
|
29
|
+
"type": "string",
|
30
|
+
"description": "Data format for the response.",
|
31
|
+
"default": "json",
|
32
|
+
"enum": [
|
33
|
+
"json"
|
34
|
+
],
|
35
|
+
"enumDescriptions": [
|
36
|
+
"Responses with Content-Type of application/json"
|
37
|
+
],
|
38
|
+
"location": "query"
|
39
|
+
},
|
40
|
+
"fields": {
|
41
|
+
"type": "string",
|
42
|
+
"description": "Selector specifying which fields to include in a partial response.",
|
43
|
+
"location": "query"
|
44
|
+
},
|
45
|
+
"key": {
|
46
|
+
"type": "string",
|
47
|
+
"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.",
|
48
|
+
"location": "query"
|
49
|
+
},
|
50
|
+
"oauth_token": {
|
51
|
+
"type": "string",
|
52
|
+
"description": "OAuth 2.0 token for the current user.",
|
53
|
+
"location": "query"
|
54
|
+
},
|
55
|
+
"prettyPrint": {
|
56
|
+
"type": "boolean",
|
57
|
+
"description": "Returns response with indentations and line breaks.",
|
58
|
+
"default": "true",
|
59
|
+
"location": "query"
|
60
|
+
},
|
61
|
+
"quotaUser": {
|
62
|
+
"type": "string",
|
63
|
+
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.",
|
64
|
+
"location": "query"
|
65
|
+
},
|
66
|
+
"userIp": {
|
67
|
+
"type": "string",
|
68
|
+
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
|
69
|
+
"location": "query"
|
70
|
+
}
|
71
|
+
},
|
72
|
+
"auth": {
|
73
|
+
"oauth2": {
|
74
|
+
"scopes": {
|
75
|
+
"https://www.googleapis.com/auth/compute": {
|
76
|
+
"description": "View and manage your Google Compute Engine resources"
|
77
|
+
},
|
78
|
+
"https://www.googleapis.com/auth/compute.readonly": {
|
79
|
+
"description": "View your Google Compute Engine resources"
|
80
|
+
},
|
81
|
+
"https://www.googleapis.com/auth/devstorage.read_only": {
|
82
|
+
"description": "View your data in Google Cloud Storage"
|
83
|
+
}
|
84
|
+
}
|
85
|
+
}
|
86
|
+
},
|
87
|
+
"schemas": {
|
88
|
+
"AccessConfig": {
|
89
|
+
"id": "AccessConfig",
|
90
|
+
"type": "object",
|
91
|
+
"description": "An access configuration attached to an instance's network interface.",
|
92
|
+
"properties": {
|
93
|
+
"kind": {
|
94
|
+
"type": "string",
|
95
|
+
"description": "Type of the resource.",
|
96
|
+
"default": "compute#accessConfig"
|
97
|
+
},
|
98
|
+
"name": {
|
99
|
+
"type": "string",
|
100
|
+
"description": "Name of this access configuration."
|
101
|
+
},
|
102
|
+
"natIP": {
|
103
|
+
"type": "string",
|
104
|
+
"description": "An external IP address associated with this instance. Specify an unused static IP address available to the project. If not specified, the external IP will be drawn from a shared ephemeral pool."
|
105
|
+
},
|
106
|
+
"type": {
|
107
|
+
"type": "string",
|
108
|
+
"description": "Type of configuration. Must be set to \"ONE_TO_ONE_NAT\". This configures port-for-port NAT to the internet.",
|
109
|
+
"default": "ONE_TO_ONE_NAT"
|
110
|
+
}
|
111
|
+
}
|
112
|
+
},
|
113
|
+
"AttachedDisk": {
|
114
|
+
"id": "AttachedDisk",
|
115
|
+
"type": "object",
|
116
|
+
"description": "An instance-attached disk resource.",
|
117
|
+
"properties": {
|
118
|
+
"boot": {
|
119
|
+
"type": "boolean",
|
120
|
+
"description": "Indicates that this is a boot disk. VM will use the first partition of the disk for its root filesystem."
|
121
|
+
},
|
122
|
+
"deviceName": {
|
123
|
+
"type": "string",
|
124
|
+
"description": "Persistent disk only; must be unique within the instance when specified. This represents a unique device name that is reflected into the /dev/ tree of a Linux operating system running within the instance. If not specified, a default will be chosen by the system."
|
125
|
+
},
|
126
|
+
"index": {
|
127
|
+
"type": "integer",
|
128
|
+
"description": "A zero-based index to assign to this disk, where 0 is reserved for the boot disk. If not specified, the server will choose an appropriate value.",
|
129
|
+
"format": "int32"
|
130
|
+
},
|
131
|
+
"kind": {
|
132
|
+
"type": "string",
|
133
|
+
"description": "Type of the resource.",
|
134
|
+
"default": "compute#attachedDisk"
|
135
|
+
},
|
136
|
+
"mode": {
|
137
|
+
"type": "string",
|
138
|
+
"description": "The mode in which to attach this disk, either \"READ_WRITE\" or \"READ_ONLY\"."
|
139
|
+
},
|
140
|
+
"source": {
|
141
|
+
"type": "string",
|
142
|
+
"description": "Persistent disk only; the URL of the persistent disk resource."
|
143
|
+
},
|
144
|
+
"type": {
|
145
|
+
"type": "string",
|
146
|
+
"description": "Type of the disk, either \"EPHEMERAL\" or \"PERSISTENT\". Note that persistent disks must be created before you can specify them here.",
|
147
|
+
"annotations": {
|
148
|
+
"required": [
|
149
|
+
"compute.instances.insert"
|
150
|
+
]
|
151
|
+
}
|
152
|
+
}
|
153
|
+
}
|
154
|
+
},
|
155
|
+
"DeprecationStatus": {
|
156
|
+
"id": "DeprecationStatus",
|
157
|
+
"type": "object",
|
158
|
+
"description": "Deprecation status for a public resource.",
|
159
|
+
"properties": {
|
160
|
+
"deleted": {
|
161
|
+
"type": "string",
|
162
|
+
"description": "An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to DELETED."
|
163
|
+
},
|
164
|
+
"deprecated": {
|
165
|
+
"type": "string",
|
166
|
+
"description": "An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to DEPRECATED."
|
167
|
+
},
|
168
|
+
"obsolete": {
|
169
|
+
"type": "string",
|
170
|
+
"description": "An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to OBSOLETE."
|
171
|
+
},
|
172
|
+
"replacement": {
|
173
|
+
"type": "string",
|
174
|
+
"description": "A URL of the suggested replacement for the deprecated resource. The deprecated resource and its replacement must be resources of the same kind."
|
175
|
+
},
|
176
|
+
"state": {
|
177
|
+
"type": "string",
|
178
|
+
"description": "The deprecation state. Can be \"DEPRECATED\", \"OBSOLETE\", or \"DELETED\". Operations which create a new resource using a \"DEPRECATED\" resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. New uses of \"OBSOLETE\" or \"DELETED\" resources will result in an error."
|
179
|
+
}
|
180
|
+
}
|
181
|
+
},
|
182
|
+
"Disk": {
|
183
|
+
"id": "Disk",
|
184
|
+
"type": "object",
|
185
|
+
"description": "A persistent disk resource.",
|
186
|
+
"properties": {
|
187
|
+
"creationTimestamp": {
|
188
|
+
"type": "string",
|
189
|
+
"description": "Creation timestamp in RFC3339 text format (output only)."
|
190
|
+
},
|
191
|
+
"description": {
|
192
|
+
"type": "string",
|
193
|
+
"description": "An optional textual description of the resource; provided by the client when the resource is created."
|
194
|
+
},
|
195
|
+
"id": {
|
196
|
+
"type": "string",
|
197
|
+
"description": "Unique identifier for the resource; defined by the server (output only).",
|
198
|
+
"format": "uint64"
|
199
|
+
},
|
200
|
+
"kind": {
|
201
|
+
"type": "string",
|
202
|
+
"description": "Type of the resource.",
|
203
|
+
"default": "compute#disk"
|
204
|
+
},
|
205
|
+
"name": {
|
206
|
+
"type": "string",
|
207
|
+
"description": "Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.",
|
208
|
+
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
209
|
+
"annotations": {
|
210
|
+
"required": [
|
211
|
+
"compute.disks.insert"
|
212
|
+
]
|
213
|
+
}
|
214
|
+
},
|
215
|
+
"options": {
|
216
|
+
"type": "string",
|
217
|
+
"description": "Internal use only."
|
218
|
+
},
|
219
|
+
"selfLink": {
|
220
|
+
"type": "string",
|
221
|
+
"description": "Server defined URL for the resource (output only)."
|
222
|
+
},
|
223
|
+
"sizeGb": {
|
224
|
+
"type": "string",
|
225
|
+
"description": "Size of the persistent disk, specified in GB. This parameter is optional when creating a disk from a disk image or a snapshot, otherwise it is required.",
|
226
|
+
"format": "int64"
|
227
|
+
},
|
228
|
+
"sourceSnapshot": {
|
229
|
+
"type": "string",
|
230
|
+
"description": "The source snapshot used to create this disk. Once the source snapshot has been deleted from the system, this field will be cleared, and will not be set even if a snapshot with the same name has been re-created."
|
231
|
+
},
|
232
|
+
"sourceSnapshotId": {
|
233
|
+
"type": "string",
|
234
|
+
"description": "The 'id' value of the snapshot used to create this disk. This value may be used to determine whether the disk was created from the current or a previous instance of a given disk snapshot."
|
235
|
+
},
|
236
|
+
"status": {
|
237
|
+
"type": "string",
|
238
|
+
"description": "The status of disk creation (output only)."
|
239
|
+
},
|
240
|
+
"zone": {
|
241
|
+
"type": "string",
|
242
|
+
"description": "URL of the zone where the disk resides (output only)."
|
243
|
+
}
|
244
|
+
}
|
245
|
+
},
|
246
|
+
"DiskList": {
|
247
|
+
"id": "DiskList",
|
248
|
+
"type": "object",
|
249
|
+
"description": "Contains a list of persistent disk resources.",
|
250
|
+
"properties": {
|
251
|
+
"id": {
|
252
|
+
"type": "string",
|
253
|
+
"description": "Unique identifier for the resource; defined by the server (output only)."
|
254
|
+
},
|
255
|
+
"items": {
|
256
|
+
"type": "array",
|
257
|
+
"description": "The persistent disk resources.",
|
258
|
+
"items": {
|
259
|
+
"$ref": "Disk"
|
260
|
+
}
|
261
|
+
},
|
262
|
+
"kind": {
|
263
|
+
"type": "string",
|
264
|
+
"description": "Type of resource.",
|
265
|
+
"default": "compute#diskList"
|
266
|
+
},
|
267
|
+
"nextPageToken": {
|
268
|
+
"type": "string",
|
269
|
+
"description": "A token used to continue a truncated list request (output only)."
|
270
|
+
},
|
271
|
+
"selfLink": {
|
272
|
+
"type": "string",
|
273
|
+
"description": "Server defined URL for this resource (output only)."
|
274
|
+
}
|
275
|
+
}
|
276
|
+
},
|
277
|
+
"Firewall": {
|
278
|
+
"id": "Firewall",
|
279
|
+
"type": "object",
|
280
|
+
"description": "A firewall resource.",
|
281
|
+
"properties": {
|
282
|
+
"allowed": {
|
283
|
+
"type": "array",
|
284
|
+
"description": "The list of rules specified by this firewall. Each rule specifies a protocol and port-range tuple that describes a permitted connection.",
|
285
|
+
"items": {
|
286
|
+
"type": "object",
|
287
|
+
"properties": {
|
288
|
+
"IPProtocol": {
|
289
|
+
"type": "string",
|
290
|
+
"description": "Required; this is the IP protocol that is allowed for this rule. This can either be a well known protocol string (tcp, udp or icmp) or the IP protocol number."
|
291
|
+
},
|
292
|
+
"ports": {
|
293
|
+
"type": "array",
|
294
|
+
"description": "An optional list of ports which are allowed. It is an error to specify this for any protocol that isn't UDP or TCP. Each entry must be either an integer or a range. If not specified, connections through any port are allowed.\n\nExample inputs include: [\"22\"], [\"80\",\"443\"] and [\"12345-12349\"].",
|
295
|
+
"items": {
|
296
|
+
"type": "string"
|
297
|
+
}
|
298
|
+
}
|
299
|
+
}
|
300
|
+
}
|
301
|
+
},
|
302
|
+
"creationTimestamp": {
|
303
|
+
"type": "string",
|
304
|
+
"description": "Creation timestamp in RFC3339 text format (output only)."
|
305
|
+
},
|
306
|
+
"description": {
|
307
|
+
"type": "string",
|
308
|
+
"description": "An optional textual description of the resource; provided by the client when the resource is created."
|
309
|
+
},
|
310
|
+
"id": {
|
311
|
+
"type": "string",
|
312
|
+
"description": "Unique identifier for the resource; defined by the server (output only).",
|
313
|
+
"format": "uint64"
|
314
|
+
},
|
315
|
+
"kind": {
|
316
|
+
"type": "string",
|
317
|
+
"description": "Type of the resource.",
|
318
|
+
"default": "compute#firewall"
|
319
|
+
},
|
320
|
+
"name": {
|
321
|
+
"type": "string",
|
322
|
+
"description": "Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.",
|
323
|
+
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
324
|
+
"annotations": {
|
325
|
+
"required": [
|
326
|
+
"compute.firewalls.insert",
|
327
|
+
"compute.firewalls.patch"
|
328
|
+
]
|
329
|
+
}
|
330
|
+
},
|
331
|
+
"network": {
|
332
|
+
"type": "string",
|
333
|
+
"description": "URL of the network to which this firewall is applied; provided by the client when the firewall is created.",
|
334
|
+
"annotations": {
|
335
|
+
"required": [
|
336
|
+
"compute.firewalls.insert",
|
337
|
+
"compute.firewalls.patch"
|
338
|
+
]
|
339
|
+
}
|
340
|
+
},
|
341
|
+
"selfLink": {
|
342
|
+
"type": "string",
|
343
|
+
"description": "Server defined URL for the resource (output only)."
|
344
|
+
},
|
345
|
+
"sourceRanges": {
|
346
|
+
"type": "array",
|
347
|
+
"description": "A list of IP address blocks expressed in CIDR format which this rule applies to. One or both of sourceRanges and sourceTags may be set; an inbound connection is allowed if either the range or the tag of the source matches.",
|
348
|
+
"items": {
|
349
|
+
"type": "string"
|
350
|
+
}
|
351
|
+
},
|
352
|
+
"sourceTags": {
|
353
|
+
"type": "array",
|
354
|
+
"description": "A list of instance tags which this rule applies to. One or both of sourceRanges and sourceTags may be set; an inbound connection is allowed if either the range or the tag of the source matches.",
|
355
|
+
"items": {
|
356
|
+
"type": "string"
|
357
|
+
}
|
358
|
+
},
|
359
|
+
"targetTags": {
|
360
|
+
"type": "array",
|
361
|
+
"description": "A list of instance tags indicating sets of instances located on network which may make network connections as specified in allowed. If no targetTags are specified, the firewall rule applies to all instances on the specified network.",
|
362
|
+
"items": {
|
363
|
+
"type": "string"
|
364
|
+
}
|
365
|
+
}
|
366
|
+
}
|
367
|
+
},
|
368
|
+
"FirewallList": {
|
369
|
+
"id": "FirewallList",
|
370
|
+
"type": "object",
|
371
|
+
"description": "Contains a list of firewall resources.",
|
372
|
+
"properties": {
|
373
|
+
"id": {
|
374
|
+
"type": "string",
|
375
|
+
"description": "Unique identifier for the resource; defined by the server (output only)."
|
376
|
+
},
|
377
|
+
"items": {
|
378
|
+
"type": "array",
|
379
|
+
"description": "The firewall resources.",
|
380
|
+
"items": {
|
381
|
+
"$ref": "Firewall"
|
382
|
+
}
|
383
|
+
},
|
384
|
+
"kind": {
|
385
|
+
"type": "string",
|
386
|
+
"description": "Type of resource.",
|
387
|
+
"default": "compute#firewallList"
|
388
|
+
},
|
389
|
+
"nextPageToken": {
|
390
|
+
"type": "string",
|
391
|
+
"description": "A token used to continue a truncated list request (output only)."
|
392
|
+
},
|
393
|
+
"selfLink": {
|
394
|
+
"type": "string",
|
395
|
+
"description": "Server defined URL for this resource (output only)."
|
396
|
+
}
|
397
|
+
}
|
398
|
+
},
|
399
|
+
"Image": {
|
400
|
+
"id": "Image",
|
401
|
+
"type": "object",
|
402
|
+
"description": "A disk image resource.",
|
403
|
+
"properties": {
|
404
|
+
"creationTimestamp": {
|
405
|
+
"type": "string",
|
406
|
+
"description": "Creation timestamp in RFC3339 text format (output only)."
|
407
|
+
},
|
408
|
+
"deprecated": {
|
409
|
+
"$ref": "DeprecationStatus",
|
410
|
+
"description": "The deprecation status associated with this image."
|
411
|
+
},
|
412
|
+
"description": {
|
413
|
+
"type": "string",
|
414
|
+
"description": "Textual description of the resource; provided by the client when the resource is created."
|
415
|
+
},
|
416
|
+
"id": {
|
417
|
+
"type": "string",
|
418
|
+
"description": "Unique identifier for the resource; defined by the server (output only).",
|
419
|
+
"format": "uint64"
|
420
|
+
},
|
421
|
+
"kind": {
|
422
|
+
"type": "string",
|
423
|
+
"description": "Type of the resource.",
|
424
|
+
"default": "compute#image"
|
425
|
+
},
|
426
|
+
"name": {
|
427
|
+
"type": "string",
|
428
|
+
"description": "Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.",
|
429
|
+
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
430
|
+
"annotations": {
|
431
|
+
"required": [
|
432
|
+
"compute.images.insert"
|
433
|
+
]
|
434
|
+
}
|
435
|
+
},
|
436
|
+
"preferredKernel": {
|
437
|
+
"type": "string",
|
438
|
+
"description": "An optional URL of the preferred kernel for use with this disk image. If not specified, a server defined default kernel will be used.",
|
439
|
+
"annotations": {
|
440
|
+
"required": [
|
441
|
+
"compute.images.insert"
|
442
|
+
]
|
443
|
+
}
|
444
|
+
},
|
445
|
+
"rawDisk": {
|
446
|
+
"type": "object",
|
447
|
+
"description": "The raw disk image parameters.",
|
448
|
+
"properties": {
|
449
|
+
"containerType": {
|
450
|
+
"type": "string",
|
451
|
+
"description": "The format used to encode and transmit the block device. Should be TAR. This is just a container and transmission format and not a runtime format. Provided by the client when the disk image is created.",
|
452
|
+
"default": "TAR"
|
453
|
+
},
|
454
|
+
"sha1Checksum": {
|
455
|
+
"type": "string",
|
456
|
+
"description": "An optional SHA1 checksum of the disk image before unpackaging; provided by the client when the disk image is created.",
|
457
|
+
"pattern": "[a-f0-9]{40}"
|
458
|
+
},
|
459
|
+
"source": {
|
460
|
+
"type": "string",
|
461
|
+
"description": "The full Google Cloud Storage URL where the disk image is stored; provided by the client when the disk image is created.",
|
462
|
+
"annotations": {
|
463
|
+
"required": [
|
464
|
+
"compute.images.insert"
|
465
|
+
]
|
466
|
+
}
|
467
|
+
}
|
468
|
+
}
|
469
|
+
},
|
470
|
+
"selfLink": {
|
471
|
+
"type": "string",
|
472
|
+
"description": "Server defined URL for the resource (output only)."
|
473
|
+
},
|
474
|
+
"sourceType": {
|
475
|
+
"type": "string",
|
476
|
+
"description": "Must be \"RAW\"; provided by the client when the disk image is created.",
|
477
|
+
"default": "RAW",
|
478
|
+
"annotations": {
|
479
|
+
"required": [
|
480
|
+
"compute.images.insert"
|
481
|
+
]
|
482
|
+
}
|
483
|
+
}
|
484
|
+
}
|
485
|
+
},
|
486
|
+
"ImageList": {
|
487
|
+
"id": "ImageList",
|
488
|
+
"type": "object",
|
489
|
+
"description": "Contains a list of disk image resources.",
|
490
|
+
"properties": {
|
491
|
+
"id": {
|
492
|
+
"type": "string",
|
493
|
+
"description": "Unique identifier for the resource; defined by the server (output only)."
|
494
|
+
},
|
495
|
+
"items": {
|
496
|
+
"type": "array",
|
497
|
+
"description": "The disk image resources.",
|
498
|
+
"items": {
|
499
|
+
"$ref": "Image"
|
500
|
+
}
|
501
|
+
},
|
502
|
+
"kind": {
|
503
|
+
"type": "string",
|
504
|
+
"description": "Type of resource.",
|
505
|
+
"default": "compute#imageList"
|
506
|
+
},
|
507
|
+
"nextPageToken": {
|
508
|
+
"type": "string",
|
509
|
+
"description": "A token used to continue a truncated list request (output only)."
|
510
|
+
},
|
511
|
+
"selfLink": {
|
512
|
+
"type": "string",
|
513
|
+
"description": "Server defined URL for this resource (output only)."
|
514
|
+
}
|
515
|
+
}
|
516
|
+
},
|
517
|
+
"Instance": {
|
518
|
+
"id": "Instance",
|
519
|
+
"type": "object",
|
520
|
+
"description": "An instance resource.",
|
521
|
+
"properties": {
|
522
|
+
"canIpForward": {
|
523
|
+
"type": "boolean",
|
524
|
+
"description": "Reserved for future use."
|
525
|
+
},
|
526
|
+
"creationTimestamp": {
|
527
|
+
"type": "string",
|
528
|
+
"description": "Creation timestamp in RFC3339 text format (output only)."
|
529
|
+
},
|
530
|
+
"description": {
|
531
|
+
"type": "string",
|
532
|
+
"description": "An optional textual description of the resource; provided by the client when the resource is created."
|
533
|
+
},
|
534
|
+
"disks": {
|
535
|
+
"type": "array",
|
536
|
+
"description": "Array of disks associated with this instance. Persistent disks must be created before you can assign them.",
|
537
|
+
"items": {
|
538
|
+
"$ref": "AttachedDisk"
|
539
|
+
}
|
540
|
+
},
|
541
|
+
"id": {
|
542
|
+
"type": "string",
|
543
|
+
"description": "Unique identifier for the resource; defined by the server (output only).",
|
544
|
+
"format": "uint64"
|
545
|
+
},
|
546
|
+
"image": {
|
547
|
+
"type": "string",
|
548
|
+
"description": "An optional URL of the disk image resource to be installed on this instance; provided by the client when the instance is created. Alternatively to passing the image, the client may choose to boot from a persistent disk, by setting boot=true flag on one of the entries in disks[] collection."
|
549
|
+
},
|
550
|
+
"kernel": {
|
551
|
+
"type": "string",
|
552
|
+
"description": "URL of the kernel resource to use when booting. In case of booting from persistent disk, this parameter is required. When booting from a disk image, it is optional, but may be provided to use a different kernel than the one associated with the image."
|
553
|
+
},
|
554
|
+
"kind": {
|
555
|
+
"type": "string",
|
556
|
+
"description": "Type of the resource.",
|
557
|
+
"default": "compute#instance"
|
558
|
+
},
|
559
|
+
"machineType": {
|
560
|
+
"type": "string",
|
561
|
+
"description": "URL of the machine type resource describing which machine type to use to host the instance; provided by the client when the instance is created.",
|
562
|
+
"annotations": {
|
563
|
+
"required": [
|
564
|
+
"compute.instances.insert"
|
565
|
+
]
|
566
|
+
}
|
567
|
+
},
|
568
|
+
"metadata": {
|
569
|
+
"$ref": "Metadata",
|
570
|
+
"description": "Metadata key/value pairs assigned to this instance. Consists of custom metadata or predefined keys; see Instance documentation for more information."
|
571
|
+
},
|
572
|
+
"name": {
|
573
|
+
"type": "string",
|
574
|
+
"description": "Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.",
|
575
|
+
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
576
|
+
"annotations": {
|
577
|
+
"required": [
|
578
|
+
"compute.instances.insert"
|
579
|
+
]
|
580
|
+
}
|
581
|
+
},
|
582
|
+
"networkInterfaces": {
|
583
|
+
"type": "array",
|
584
|
+
"description": "Array of configurations for this interface. This specifies how this interface is configured to interact with other network services, such as connecting to the internet. Currently, ONE_TO_ONE_NAT is the only access config supported. If there are no accessConfigs specified, then this instance will have no external internet access.",
|
585
|
+
"items": {
|
586
|
+
"$ref": "NetworkInterface"
|
587
|
+
}
|
588
|
+
},
|
589
|
+
"selfLink": {
|
590
|
+
"type": "string",
|
591
|
+
"description": "Server defined URL for the resource (output only)."
|
592
|
+
},
|
593
|
+
"serviceAccounts": {
|
594
|
+
"type": "array",
|
595
|
+
"description": "A list of service accounts each with specified scopes, for which access tokens are to be made available to the instance through metadata queries.",
|
596
|
+
"items": {
|
597
|
+
"$ref": "ServiceAccount"
|
598
|
+
}
|
599
|
+
},
|
600
|
+
"status": {
|
601
|
+
"type": "string",
|
602
|
+
"description": "Instance status. One of the following values: \"PROVISIONING\", \"STAGING\", \"RUNNING\", \"STOPPING\", \"STOPPED\", \"TERMINATED\" (output only)."
|
603
|
+
},
|
604
|
+
"statusMessage": {
|
605
|
+
"type": "string",
|
606
|
+
"description": "An optional, human-readable explanation of the status (output only)."
|
607
|
+
},
|
608
|
+
"tags": {
|
609
|
+
"$ref": "Tags",
|
610
|
+
"description": "A list of tags to be applied to this instance. Used to identify valid sources or targets for network firewalls. Provided by the client on instance creation. The tags can be later modified by the setTags method. Each tag within the list must comply with RFC1035."
|
611
|
+
},
|
612
|
+
"zone": {
|
613
|
+
"type": "string",
|
614
|
+
"description": "URL of the zone where the instance resides (output only)."
|
615
|
+
}
|
616
|
+
}
|
617
|
+
},
|
618
|
+
"InstanceList": {
|
619
|
+
"id": "InstanceList",
|
620
|
+
"type": "object",
|
621
|
+
"description": "Contains a list of instance resources.",
|
622
|
+
"properties": {
|
623
|
+
"id": {
|
624
|
+
"type": "string",
|
625
|
+
"description": "Unique identifier for the resource; defined by the server (output only)."
|
626
|
+
},
|
627
|
+
"items": {
|
628
|
+
"type": "array",
|
629
|
+
"description": "A list of instance resources.",
|
630
|
+
"items": {
|
631
|
+
"$ref": "Instance"
|
632
|
+
}
|
633
|
+
},
|
634
|
+
"kind": {
|
635
|
+
"type": "string",
|
636
|
+
"description": "Type of resource.",
|
637
|
+
"default": "compute#instanceList"
|
638
|
+
},
|
639
|
+
"nextPageToken": {
|
640
|
+
"type": "string",
|
641
|
+
"description": "A token used to continue a truncated list request (output only)."
|
642
|
+
},
|
643
|
+
"selfLink": {
|
644
|
+
"type": "string",
|
645
|
+
"description": "Server defined URL for this resource (output only)."
|
646
|
+
}
|
647
|
+
}
|
648
|
+
},
|
649
|
+
"Kernel": {
|
650
|
+
"id": "Kernel",
|
651
|
+
"type": "object",
|
652
|
+
"description": "A kernel resource.",
|
653
|
+
"properties": {
|
654
|
+
"creationTimestamp": {
|
655
|
+
"type": "string",
|
656
|
+
"description": "Creation timestamp in RFC3339 text format (output only)."
|
657
|
+
},
|
658
|
+
"deprecated": {
|
659
|
+
"$ref": "DeprecationStatus",
|
660
|
+
"description": "The deprecation status associated with this kernel."
|
661
|
+
},
|
662
|
+
"description": {
|
663
|
+
"type": "string",
|
664
|
+
"description": "An optional textual description of the resource."
|
665
|
+
},
|
666
|
+
"id": {
|
667
|
+
"type": "string",
|
668
|
+
"description": "Unique identifier for the resource; defined by the server (output only).",
|
669
|
+
"format": "uint64"
|
670
|
+
},
|
671
|
+
"kind": {
|
672
|
+
"type": "string",
|
673
|
+
"description": "Type of the resource.",
|
674
|
+
"default": "compute#kernel"
|
675
|
+
},
|
676
|
+
"name": {
|
677
|
+
"type": "string",
|
678
|
+
"description": "Name of the resource.",
|
679
|
+
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"
|
680
|
+
},
|
681
|
+
"selfLink": {
|
682
|
+
"type": "string",
|
683
|
+
"description": "Server defined URL for the resource (output only)."
|
684
|
+
}
|
685
|
+
}
|
686
|
+
},
|
687
|
+
"KernelList": {
|
688
|
+
"id": "KernelList",
|
689
|
+
"type": "object",
|
690
|
+
"description": "Contains a list of kernel resources.",
|
691
|
+
"properties": {
|
692
|
+
"id": {
|
693
|
+
"type": "string",
|
694
|
+
"description": "Unique identifier for the resource; defined by the server (output only)."
|
695
|
+
},
|
696
|
+
"items": {
|
697
|
+
"type": "array",
|
698
|
+
"description": "The kernel resources.",
|
699
|
+
"items": {
|
700
|
+
"$ref": "Kernel"
|
701
|
+
}
|
702
|
+
},
|
703
|
+
"kind": {
|
704
|
+
"type": "string",
|
705
|
+
"description": "Type of resource.",
|
706
|
+
"default": "compute#kernelList"
|
707
|
+
},
|
708
|
+
"nextPageToken": {
|
709
|
+
"type": "string",
|
710
|
+
"description": "A token used to continue a truncated list request (output only)."
|
711
|
+
},
|
712
|
+
"selfLink": {
|
713
|
+
"type": "string",
|
714
|
+
"description": "Server defined URL for this resource (output only)."
|
715
|
+
}
|
716
|
+
}
|
717
|
+
},
|
718
|
+
"MachineType": {
|
719
|
+
"id": "MachineType",
|
720
|
+
"type": "object",
|
721
|
+
"description": "A machine type resource.",
|
722
|
+
"properties": {
|
723
|
+
"availableZone": {
|
724
|
+
"type": "array",
|
725
|
+
"description": "The zones that this machine type can run in.",
|
726
|
+
"items": {
|
727
|
+
"type": "string"
|
728
|
+
}
|
729
|
+
},
|
730
|
+
"creationTimestamp": {
|
731
|
+
"type": "string",
|
732
|
+
"description": "Creation timestamp in RFC3339 text format (output only)."
|
733
|
+
},
|
734
|
+
"deprecated": {
|
735
|
+
"$ref": "DeprecationStatus",
|
736
|
+
"description": "The deprecation status associated with this machine type."
|
737
|
+
},
|
738
|
+
"description": {
|
739
|
+
"type": "string",
|
740
|
+
"description": "An optional textual description of the resource."
|
741
|
+
},
|
742
|
+
"ephemeralDisks": {
|
743
|
+
"type": "array",
|
744
|
+
"description": "List of extended ephemeral disks assigned to the instance.",
|
745
|
+
"items": {
|
746
|
+
"type": "object",
|
747
|
+
"properties": {
|
748
|
+
"diskGb": {
|
749
|
+
"type": "integer",
|
750
|
+
"description": "Size of the ephemeral disk, defined in GB.",
|
751
|
+
"format": "int32"
|
752
|
+
}
|
753
|
+
}
|
754
|
+
}
|
755
|
+
},
|
756
|
+
"guestCpus": {
|
757
|
+
"type": "integer",
|
758
|
+
"description": "Count of CPUs exposed to the instance.",
|
759
|
+
"format": "int32"
|
760
|
+
},
|
761
|
+
"id": {
|
762
|
+
"type": "string",
|
763
|
+
"description": "Unique identifier for the resource; defined by the server (output only).",
|
764
|
+
"format": "uint64"
|
765
|
+
},
|
766
|
+
"imageSpaceGb": {
|
767
|
+
"type": "integer",
|
768
|
+
"description": "Space allotted for the image, defined in GB.",
|
769
|
+
"format": "int32"
|
770
|
+
},
|
771
|
+
"kind": {
|
772
|
+
"type": "string",
|
773
|
+
"description": "Type of the resource.",
|
774
|
+
"default": "compute#machineType"
|
775
|
+
},
|
776
|
+
"maximumPersistentDisks": {
|
777
|
+
"type": "integer",
|
778
|
+
"description": "Maximum persistent disks allowed.",
|
779
|
+
"format": "int32"
|
780
|
+
},
|
781
|
+
"maximumPersistentDisksSizeGb": {
|
782
|
+
"type": "string",
|
783
|
+
"description": "Maximum total persistent disks size (GB) allowed.",
|
784
|
+
"format": "int64"
|
785
|
+
},
|
786
|
+
"memoryMb": {
|
787
|
+
"type": "integer",
|
788
|
+
"description": "Physical memory assigned to the instance, defined in MB.",
|
789
|
+
"format": "int32"
|
790
|
+
},
|
791
|
+
"name": {
|
792
|
+
"type": "string",
|
793
|
+
"description": "Name of the resource.",
|
794
|
+
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"
|
795
|
+
},
|
796
|
+
"selfLink": {
|
797
|
+
"type": "string",
|
798
|
+
"description": "Server defined URL for the resource (output only)."
|
799
|
+
}
|
800
|
+
}
|
801
|
+
},
|
802
|
+
"MachineTypeList": {
|
803
|
+
"id": "MachineTypeList",
|
804
|
+
"type": "object",
|
805
|
+
"description": "Contains a list of machine type resources.",
|
806
|
+
"properties": {
|
807
|
+
"id": {
|
808
|
+
"type": "string",
|
809
|
+
"description": "Unique identifier for the resource; defined by the server (output only)."
|
810
|
+
},
|
811
|
+
"items": {
|
812
|
+
"type": "array",
|
813
|
+
"description": "The machine type resources.",
|
814
|
+
"items": {
|
815
|
+
"$ref": "MachineType"
|
816
|
+
}
|
817
|
+
},
|
818
|
+
"kind": {
|
819
|
+
"type": "string",
|
820
|
+
"description": "Type of the resource.",
|
821
|
+
"default": "compute#machineTypeList"
|
822
|
+
},
|
823
|
+
"nextPageToken": {
|
824
|
+
"type": "string",
|
825
|
+
"description": "A token used to continue a truncated list request (output only)."
|
826
|
+
},
|
827
|
+
"selfLink": {
|
828
|
+
"type": "string",
|
829
|
+
"description": "Server defined URL for the resource (output only)."
|
830
|
+
}
|
831
|
+
}
|
832
|
+
},
|
833
|
+
"Metadata": {
|
834
|
+
"id": "Metadata",
|
835
|
+
"type": "object",
|
836
|
+
"description": "A metadata key/value entry.",
|
837
|
+
"properties": {
|
838
|
+
"fingerprint": {
|
839
|
+
"type": "string",
|
840
|
+
"description": "Fingerprint of this resource. A hash of the metadata's contents. This field is used for optimistic locking. An up-to-date metadata fingerprint must be provided in order to modify metadata.",
|
841
|
+
"format": "byte"
|
842
|
+
},
|
843
|
+
"items": {
|
844
|
+
"type": "array",
|
845
|
+
"description": "Array of key/value pairs. The total size of all keys and values must be less than 512 KB.",
|
846
|
+
"items": {
|
847
|
+
"type": "object",
|
848
|
+
"properties": {
|
849
|
+
"key": {
|
850
|
+
"type": "string",
|
851
|
+
"description": "Key for the metadata entry. Keys must conform to the following regexp: [a-zA-Z0-9-_]+, and be less than 128 bytes in length. This is reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project.",
|
852
|
+
"pattern": "[a-zA-Z0-9-_]{1,128}",
|
853
|
+
"annotations": {
|
854
|
+
"required": [
|
855
|
+
"compute.instances.insert",
|
856
|
+
"compute.projects.setCommonInstanceMetadata"
|
857
|
+
]
|
858
|
+
}
|
859
|
+
},
|
860
|
+
"value": {
|
861
|
+
"type": "string",
|
862
|
+
"description": "Value for the metadata entry. These are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on values is that their size must be less than or equal to 32768 bytes.",
|
863
|
+
"annotations": {
|
864
|
+
"required": [
|
865
|
+
"compute.instances.insert",
|
866
|
+
"compute.projects.setCommonInstanceMetadata"
|
867
|
+
]
|
868
|
+
}
|
869
|
+
}
|
870
|
+
}
|
871
|
+
}
|
872
|
+
},
|
873
|
+
"kind": {
|
874
|
+
"type": "string",
|
875
|
+
"description": "Type of the resource.",
|
876
|
+
"default": "compute#metadata"
|
877
|
+
}
|
878
|
+
}
|
879
|
+
},
|
880
|
+
"Network": {
|
881
|
+
"id": "Network",
|
882
|
+
"type": "object",
|
883
|
+
"description": "A network resource.",
|
884
|
+
"properties": {
|
885
|
+
"IPv4Range": {
|
886
|
+
"type": "string",
|
887
|
+
"description": "Required; The range of internal addresses that are legal on this network. This range is a CIDR specification, for example: 192.168.0.0/16. Provided by the client when the network is created.",
|
888
|
+
"pattern": "[0-9]{1,3}(?:\\.[0-9]{1,3}){3}/[0-9]{1,2}",
|
889
|
+
"annotations": {
|
890
|
+
"required": [
|
891
|
+
"compute.networks.insert"
|
892
|
+
]
|
893
|
+
}
|
894
|
+
},
|
895
|
+
"creationTimestamp": {
|
896
|
+
"type": "string",
|
897
|
+
"description": "Creation timestamp in RFC3339 text format (output only)."
|
898
|
+
},
|
899
|
+
"description": {
|
900
|
+
"type": "string",
|
901
|
+
"description": "An optional textual description of the resource; provided by the client when the resource is created."
|
902
|
+
},
|
903
|
+
"gatewayIPv4": {
|
904
|
+
"type": "string",
|
905
|
+
"description": "An optional address that is used for default routing to other networks. This must be within the range specified by IPv4Range, and is typically the first usable address in that range. If not specified, the default value is the first usable address in IPv4Range.",
|
906
|
+
"pattern": "[0-9]{1,3}(?:\\.[0-9]{1,3}){3}"
|
907
|
+
},
|
908
|
+
"id": {
|
909
|
+
"type": "string",
|
910
|
+
"description": "Unique identifier for the resource; defined by the server (output only).",
|
911
|
+
"format": "uint64"
|
912
|
+
},
|
913
|
+
"kind": {
|
914
|
+
"type": "string",
|
915
|
+
"description": "Type of the resource.",
|
916
|
+
"default": "compute#network"
|
917
|
+
},
|
918
|
+
"name": {
|
919
|
+
"type": "string",
|
920
|
+
"description": "Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.",
|
921
|
+
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
922
|
+
"annotations": {
|
923
|
+
"required": [
|
924
|
+
"compute.networks.insert"
|
925
|
+
]
|
926
|
+
}
|
927
|
+
},
|
928
|
+
"selfLink": {
|
929
|
+
"type": "string",
|
930
|
+
"description": "Server defined URL for the resource (output only)."
|
931
|
+
}
|
932
|
+
}
|
933
|
+
},
|
934
|
+
"NetworkInterface": {
|
935
|
+
"id": "NetworkInterface",
|
936
|
+
"type": "object",
|
937
|
+
"description": "A network interface resource attached to an instance.",
|
938
|
+
"properties": {
|
939
|
+
"accessConfigs": {
|
940
|
+
"type": "array",
|
941
|
+
"description": "Array of configurations for this interface. This specifies how this interface is configured to interact with other network services, such as connecting to the internet. Currently, ONE_TO_ONE_NAT is the only access config supported. If there are no accessConfigs specified, then this instance will have no external internet access.",
|
942
|
+
"items": {
|
943
|
+
"$ref": "AccessConfig"
|
944
|
+
}
|
945
|
+
},
|
946
|
+
"name": {
|
947
|
+
"type": "string",
|
948
|
+
"description": "Name of the network interface, determined by the server; for network devices, these are e.g. eth0, eth1, etc. (output only)."
|
949
|
+
},
|
950
|
+
"network": {
|
951
|
+
"type": "string",
|
952
|
+
"description": "URL of the network resource attached to this interface.",
|
953
|
+
"annotations": {
|
954
|
+
"required": [
|
955
|
+
"compute.instances.insert"
|
956
|
+
]
|
957
|
+
}
|
958
|
+
},
|
959
|
+
"networkIP": {
|
960
|
+
"type": "string",
|
961
|
+
"description": "An optional IPV4 internal network address to assign to the instance for this network interface. If not specified, one will be assigned from the available range."
|
962
|
+
}
|
963
|
+
}
|
964
|
+
},
|
965
|
+
"NetworkList": {
|
966
|
+
"id": "NetworkList",
|
967
|
+
"type": "object",
|
968
|
+
"description": "Contains a list of network resources.",
|
969
|
+
"properties": {
|
970
|
+
"id": {
|
971
|
+
"type": "string",
|
972
|
+
"description": "Unique identifier for the resource; defined by the server (output only)."
|
973
|
+
},
|
974
|
+
"items": {
|
975
|
+
"type": "array",
|
976
|
+
"description": "The network resources.",
|
977
|
+
"items": {
|
978
|
+
"$ref": "Network"
|
979
|
+
}
|
980
|
+
},
|
981
|
+
"kind": {
|
982
|
+
"type": "string",
|
983
|
+
"description": "Type of resource.",
|
984
|
+
"default": "compute#networkList"
|
985
|
+
},
|
986
|
+
"nextPageToken": {
|
987
|
+
"type": "string",
|
988
|
+
"description": "A token used to continue a truncated list request (output only)."
|
989
|
+
},
|
990
|
+
"selfLink": {
|
991
|
+
"type": "string",
|
992
|
+
"description": "Server defined URL for this resource (output only)."
|
993
|
+
}
|
994
|
+
}
|
995
|
+
},
|
996
|
+
"Operation": {
|
997
|
+
"id": "Operation",
|
998
|
+
"type": "object",
|
999
|
+
"description": "An operation resource, used to manage asynchronous API requests.",
|
1000
|
+
"properties": {
|
1001
|
+
"clientOperationId": {
|
1002
|
+
"type": "string",
|
1003
|
+
"description": "An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only)."
|
1004
|
+
},
|
1005
|
+
"creationTimestamp": {
|
1006
|
+
"type": "string",
|
1007
|
+
"description": "Creation timestamp in RFC3339 text format (output only)."
|
1008
|
+
},
|
1009
|
+
"endTime": {
|
1010
|
+
"type": "string",
|
1011
|
+
"description": "The time that this operation was completed. This is in RFC 3339 format (output only)."
|
1012
|
+
},
|
1013
|
+
"error": {
|
1014
|
+
"type": "object",
|
1015
|
+
"description": "If errors occurred during processing of this operation, this field will be populated (output only).",
|
1016
|
+
"properties": {
|
1017
|
+
"errors": {
|
1018
|
+
"type": "array",
|
1019
|
+
"description": "The array of errors encountered while processing this operation.",
|
1020
|
+
"items": {
|
1021
|
+
"type": "object",
|
1022
|
+
"properties": {
|
1023
|
+
"code": {
|
1024
|
+
"type": "string",
|
1025
|
+
"description": "The error type identifier for this error."
|
1026
|
+
},
|
1027
|
+
"location": {
|
1028
|
+
"type": "string",
|
1029
|
+
"description": "Indicates the field in the request which caused the error. This property is optional."
|
1030
|
+
},
|
1031
|
+
"message": {
|
1032
|
+
"type": "string",
|
1033
|
+
"description": "An optional, human-readable error message."
|
1034
|
+
}
|
1035
|
+
}
|
1036
|
+
}
|
1037
|
+
}
|
1038
|
+
}
|
1039
|
+
},
|
1040
|
+
"httpErrorMessage": {
|
1041
|
+
"type": "string",
|
1042
|
+
"description": "If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only)."
|
1043
|
+
},
|
1044
|
+
"httpErrorStatusCode": {
|
1045
|
+
"type": "integer",
|
1046
|
+
"description": "If operation fails, the HTTP error status code returned, e.g. 404. (output only).",
|
1047
|
+
"format": "int32"
|
1048
|
+
},
|
1049
|
+
"id": {
|
1050
|
+
"type": "string",
|
1051
|
+
"description": "Unique identifier for the resource; defined by the server (output only).",
|
1052
|
+
"format": "uint64"
|
1053
|
+
},
|
1054
|
+
"insertTime": {
|
1055
|
+
"type": "string",
|
1056
|
+
"description": "The time that this operation was requested. This is in RFC 3339 format (output only)."
|
1057
|
+
},
|
1058
|
+
"kind": {
|
1059
|
+
"type": "string",
|
1060
|
+
"description": "Type of the resource.",
|
1061
|
+
"default": "compute#operation"
|
1062
|
+
},
|
1063
|
+
"name": {
|
1064
|
+
"type": "string",
|
1065
|
+
"description": "Name of the resource (output only)."
|
1066
|
+
},
|
1067
|
+
"operationType": {
|
1068
|
+
"type": "string",
|
1069
|
+
"description": "Type of the operation. Examples include \"insert\", \"update\", and \"delete\" (output only)."
|
1070
|
+
},
|
1071
|
+
"progress": {
|
1072
|
+
"type": "integer",
|
1073
|
+
"description": "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 (output only).",
|
1074
|
+
"format": "int32"
|
1075
|
+
},
|
1076
|
+
"selfLink": {
|
1077
|
+
"type": "string",
|
1078
|
+
"description": "Server defined URL for the resource (output only)."
|
1079
|
+
},
|
1080
|
+
"startTime": {
|
1081
|
+
"type": "string",
|
1082
|
+
"description": "The time that this operation was started by the server. This is in RFC 3339 format (output only)."
|
1083
|
+
},
|
1084
|
+
"status": {
|
1085
|
+
"type": "string",
|
1086
|
+
"description": "Status of the operation. Can be one of the following: \"PENDING\", \"RUNNING\", or \"DONE\" (output only)."
|
1087
|
+
},
|
1088
|
+
"statusMessage": {
|
1089
|
+
"type": "string",
|
1090
|
+
"description": "An optional textual description of the current status of the operation (output only)."
|
1091
|
+
},
|
1092
|
+
"targetId": {
|
1093
|
+
"type": "string",
|
1094
|
+
"description": "Unique target id which identifies a particular incarnation of the target (output only).",
|
1095
|
+
"format": "uint64"
|
1096
|
+
},
|
1097
|
+
"targetLink": {
|
1098
|
+
"type": "string",
|
1099
|
+
"description": "URL of the resource the operation is mutating (output only)."
|
1100
|
+
},
|
1101
|
+
"user": {
|
1102
|
+
"type": "string",
|
1103
|
+
"description": "User who requested the operation, for example \"user@example.com\" (output only)."
|
1104
|
+
},
|
1105
|
+
"warnings": {
|
1106
|
+
"type": "array",
|
1107
|
+
"description": "If warning messages generated during processing of this operation, this field will be populated (output only).",
|
1108
|
+
"items": {
|
1109
|
+
"type": "object",
|
1110
|
+
"properties": {
|
1111
|
+
"code": {
|
1112
|
+
"type": "string",
|
1113
|
+
"description": "The warning type identifier for this warning."
|
1114
|
+
},
|
1115
|
+
"data": {
|
1116
|
+
"type": "array",
|
1117
|
+
"description": "Metadata for this warning in 'key: value' format.",
|
1118
|
+
"items": {
|
1119
|
+
"type": "object",
|
1120
|
+
"properties": {
|
1121
|
+
"key": {
|
1122
|
+
"type": "string",
|
1123
|
+
"description": "A key for the warning data."
|
1124
|
+
},
|
1125
|
+
"value": {
|
1126
|
+
"type": "string",
|
1127
|
+
"description": "A warning data value corresponding to the key."
|
1128
|
+
}
|
1129
|
+
}
|
1130
|
+
}
|
1131
|
+
},
|
1132
|
+
"message": {
|
1133
|
+
"type": "string",
|
1134
|
+
"description": "Optional human-readable details for this warning."
|
1135
|
+
}
|
1136
|
+
}
|
1137
|
+
}
|
1138
|
+
},
|
1139
|
+
"zone": {
|
1140
|
+
"type": "string",
|
1141
|
+
"description": "URL of the zone where the operation resides (output only)."
|
1142
|
+
}
|
1143
|
+
}
|
1144
|
+
},
|
1145
|
+
"OperationList": {
|
1146
|
+
"id": "OperationList",
|
1147
|
+
"type": "object",
|
1148
|
+
"description": "Contains a list of operation resources.",
|
1149
|
+
"properties": {
|
1150
|
+
"id": {
|
1151
|
+
"type": "string",
|
1152
|
+
"description": "Unique identifier for the resource; defined by the server (output only)."
|
1153
|
+
},
|
1154
|
+
"items": {
|
1155
|
+
"type": "array",
|
1156
|
+
"description": "The operation resources.",
|
1157
|
+
"items": {
|
1158
|
+
"$ref": "Operation"
|
1159
|
+
}
|
1160
|
+
},
|
1161
|
+
"kind": {
|
1162
|
+
"type": "string",
|
1163
|
+
"description": "Type of resource.",
|
1164
|
+
"default": "compute#operationList"
|
1165
|
+
},
|
1166
|
+
"nextPageToken": {
|
1167
|
+
"type": "string",
|
1168
|
+
"description": "A token used to continue a truncated list request (output only)."
|
1169
|
+
},
|
1170
|
+
"selfLink": {
|
1171
|
+
"type": "string",
|
1172
|
+
"description": "Server defined URL for this resource (output only)."
|
1173
|
+
}
|
1174
|
+
}
|
1175
|
+
},
|
1176
|
+
"Project": {
|
1177
|
+
"id": "Project",
|
1178
|
+
"type": "object",
|
1179
|
+
"description": "A project resource. Projects can be created only in the APIs Console. Unless marked otherwise, values can only be modified in the console.",
|
1180
|
+
"properties": {
|
1181
|
+
"commonInstanceMetadata": {
|
1182
|
+
"$ref": "Metadata",
|
1183
|
+
"description": "Metadata key/value pairs available to all instances contained in this project."
|
1184
|
+
},
|
1185
|
+
"creationTimestamp": {
|
1186
|
+
"type": "string",
|
1187
|
+
"description": "Creation timestamp in RFC3339 text format (output only)."
|
1188
|
+
},
|
1189
|
+
"description": {
|
1190
|
+
"type": "string",
|
1191
|
+
"description": "An optional textual description of the resource."
|
1192
|
+
},
|
1193
|
+
"externalIpAddresses": {
|
1194
|
+
"type": "array",
|
1195
|
+
"description": "Internet available IP addresses available for use in this project.",
|
1196
|
+
"items": {
|
1197
|
+
"type": "string"
|
1198
|
+
}
|
1199
|
+
},
|
1200
|
+
"id": {
|
1201
|
+
"type": "string",
|
1202
|
+
"description": "Unique identifier for the resource; defined by the server (output only).",
|
1203
|
+
"format": "uint64"
|
1204
|
+
},
|
1205
|
+
"kind": {
|
1206
|
+
"type": "string",
|
1207
|
+
"description": "Type of the resource.",
|
1208
|
+
"default": "compute#project"
|
1209
|
+
},
|
1210
|
+
"name": {
|
1211
|
+
"type": "string",
|
1212
|
+
"description": "Name of the resource."
|
1213
|
+
},
|
1214
|
+
"quotas": {
|
1215
|
+
"type": "array",
|
1216
|
+
"description": "Quotas assigned to this project.",
|
1217
|
+
"items": {
|
1218
|
+
"$ref": "Quota"
|
1219
|
+
}
|
1220
|
+
},
|
1221
|
+
"selfLink": {
|
1222
|
+
"type": "string",
|
1223
|
+
"description": "Server defined URL for the resource (output only)."
|
1224
|
+
}
|
1225
|
+
}
|
1226
|
+
},
|
1227
|
+
"Quota": {
|
1228
|
+
"id": "Quota",
|
1229
|
+
"type": "object",
|
1230
|
+
"description": "A quotas entry.",
|
1231
|
+
"properties": {
|
1232
|
+
"limit": {
|
1233
|
+
"type": "number",
|
1234
|
+
"description": "Quota limit for this metric.",
|
1235
|
+
"format": "double"
|
1236
|
+
},
|
1237
|
+
"metric": {
|
1238
|
+
"type": "string",
|
1239
|
+
"description": "Name of the quota metric."
|
1240
|
+
},
|
1241
|
+
"usage": {
|
1242
|
+
"type": "number",
|
1243
|
+
"description": "Current usage of this metric.",
|
1244
|
+
"format": "double"
|
1245
|
+
}
|
1246
|
+
}
|
1247
|
+
},
|
1248
|
+
"SerialPortOutput": {
|
1249
|
+
"id": "SerialPortOutput",
|
1250
|
+
"type": "object",
|
1251
|
+
"description": "An instance serial console output.",
|
1252
|
+
"properties": {
|
1253
|
+
"contents": {
|
1254
|
+
"type": "string",
|
1255
|
+
"description": "The contents of the console output."
|
1256
|
+
},
|
1257
|
+
"kind": {
|
1258
|
+
"type": "string",
|
1259
|
+
"description": "Type of the resource.",
|
1260
|
+
"default": "compute#serialPortOutput"
|
1261
|
+
},
|
1262
|
+
"selfLink": {
|
1263
|
+
"type": "string",
|
1264
|
+
"description": "Server defined URL for the resource (output only)."
|
1265
|
+
}
|
1266
|
+
}
|
1267
|
+
},
|
1268
|
+
"ServiceAccount": {
|
1269
|
+
"id": "ServiceAccount",
|
1270
|
+
"type": "object",
|
1271
|
+
"description": "A service account.",
|
1272
|
+
"properties": {
|
1273
|
+
"email": {
|
1274
|
+
"type": "string",
|
1275
|
+
"description": "Email address of the service account."
|
1276
|
+
},
|
1277
|
+
"scopes": {
|
1278
|
+
"type": "array",
|
1279
|
+
"description": "The list of scopes to be made available for this service account.",
|
1280
|
+
"items": {
|
1281
|
+
"type": "string"
|
1282
|
+
}
|
1283
|
+
}
|
1284
|
+
}
|
1285
|
+
},
|
1286
|
+
"Snapshot": {
|
1287
|
+
"id": "Snapshot",
|
1288
|
+
"type": "object",
|
1289
|
+
"description": "A persistent disk snapshot resource.",
|
1290
|
+
"properties": {
|
1291
|
+
"creationTimestamp": {
|
1292
|
+
"type": "string",
|
1293
|
+
"description": "Creation timestamp in RFC3339 text format (output only)."
|
1294
|
+
},
|
1295
|
+
"description": {
|
1296
|
+
"type": "string",
|
1297
|
+
"description": "An optional textual description of the resource; provided by the client when the resource is created."
|
1298
|
+
},
|
1299
|
+
"diskSizeGb": {
|
1300
|
+
"type": "string",
|
1301
|
+
"description": "Size of the persistent disk snapshot, specified in GB (output only).",
|
1302
|
+
"format": "int64"
|
1303
|
+
},
|
1304
|
+
"id": {
|
1305
|
+
"type": "string",
|
1306
|
+
"description": "Unique identifier for the resource; defined by the server (output only).",
|
1307
|
+
"format": "uint64"
|
1308
|
+
},
|
1309
|
+
"kind": {
|
1310
|
+
"type": "string",
|
1311
|
+
"description": "Type of the resource.",
|
1312
|
+
"default": "compute#snapshot"
|
1313
|
+
},
|
1314
|
+
"name": {
|
1315
|
+
"type": "string",
|
1316
|
+
"description": "Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.",
|
1317
|
+
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
1318
|
+
"annotations": {
|
1319
|
+
"required": [
|
1320
|
+
"compute.snapshots.insert"
|
1321
|
+
]
|
1322
|
+
}
|
1323
|
+
},
|
1324
|
+
"selfLink": {
|
1325
|
+
"type": "string",
|
1326
|
+
"description": "Server defined URL for the resource (output only)."
|
1327
|
+
},
|
1328
|
+
"sourceDisk": {
|
1329
|
+
"type": "string",
|
1330
|
+
"description": "The source disk used to create this snapshot. Once the source disk has been deleted from the system, this field will be cleared, and will not be set even if a disk with the same name has been re-created."
|
1331
|
+
},
|
1332
|
+
"sourceDiskId": {
|
1333
|
+
"type": "string",
|
1334
|
+
"description": "The 'id' value of the disk used to create this snapshot. This value may be used to determine whether the snapshot was taken from the current or a previous instance of a given disk name."
|
1335
|
+
},
|
1336
|
+
"status": {
|
1337
|
+
"type": "string",
|
1338
|
+
"description": "The status of the persistent disk snapshot (output only)."
|
1339
|
+
}
|
1340
|
+
}
|
1341
|
+
},
|
1342
|
+
"SnapshotList": {
|
1343
|
+
"id": "SnapshotList",
|
1344
|
+
"type": "object",
|
1345
|
+
"description": "Contains a list of persistent disk snapshot resources.",
|
1346
|
+
"properties": {
|
1347
|
+
"id": {
|
1348
|
+
"type": "string",
|
1349
|
+
"description": "Unique identifier for the resource; defined by the server (output only)."
|
1350
|
+
},
|
1351
|
+
"items": {
|
1352
|
+
"type": "array",
|
1353
|
+
"description": "The persistent snapshot resources.",
|
1354
|
+
"items": {
|
1355
|
+
"$ref": "Snapshot"
|
1356
|
+
}
|
1357
|
+
},
|
1358
|
+
"kind": {
|
1359
|
+
"type": "string",
|
1360
|
+
"description": "Type of resource.",
|
1361
|
+
"default": "compute#snapshotList"
|
1362
|
+
},
|
1363
|
+
"nextPageToken": {
|
1364
|
+
"type": "string",
|
1365
|
+
"description": "A token used to continue a truncated list request (output only)."
|
1366
|
+
},
|
1367
|
+
"selfLink": {
|
1368
|
+
"type": "string",
|
1369
|
+
"description": "Server defined URL for this resource (output only)."
|
1370
|
+
}
|
1371
|
+
}
|
1372
|
+
},
|
1373
|
+
"Tags": {
|
1374
|
+
"id": "Tags",
|
1375
|
+
"type": "object",
|
1376
|
+
"description": "A set of instance tags.",
|
1377
|
+
"properties": {
|
1378
|
+
"fingerprint": {
|
1379
|
+
"type": "string",
|
1380
|
+
"description": "Fingerprint of this resource. A hash of the tags stored in this object. This field is used optimistic locking. An up-to-date tags fingerprint must be provided in order to modify tags.",
|
1381
|
+
"format": "byte"
|
1382
|
+
},
|
1383
|
+
"items": {
|
1384
|
+
"type": "array",
|
1385
|
+
"description": "An array of tags. Each tag must be 1-63 characters long, and comply with RFC1035.",
|
1386
|
+
"items": {
|
1387
|
+
"type": "string"
|
1388
|
+
}
|
1389
|
+
}
|
1390
|
+
}
|
1391
|
+
},
|
1392
|
+
"Zone": {
|
1393
|
+
"id": "Zone",
|
1394
|
+
"type": "object",
|
1395
|
+
"description": "A zone resource.",
|
1396
|
+
"properties": {
|
1397
|
+
"availableMachineType": {
|
1398
|
+
"type": "array",
|
1399
|
+
"description": "The machine types that can be used in this zone (output only).",
|
1400
|
+
"items": {
|
1401
|
+
"type": "string"
|
1402
|
+
}
|
1403
|
+
},
|
1404
|
+
"creationTimestamp": {
|
1405
|
+
"type": "string",
|
1406
|
+
"description": "Creation timestamp in RFC3339 text format (output only)."
|
1407
|
+
},
|
1408
|
+
"deprecated": {
|
1409
|
+
"$ref": "DeprecationStatus",
|
1410
|
+
"description": "The deprecation status associated with this zone."
|
1411
|
+
},
|
1412
|
+
"description": {
|
1413
|
+
"type": "string",
|
1414
|
+
"description": "Textual description of the resource."
|
1415
|
+
},
|
1416
|
+
"id": {
|
1417
|
+
"type": "string",
|
1418
|
+
"description": "Unique identifier for the resource; defined by the server (output only).",
|
1419
|
+
"format": "uint64"
|
1420
|
+
},
|
1421
|
+
"kind": {
|
1422
|
+
"type": "string",
|
1423
|
+
"description": "Type of the resource.",
|
1424
|
+
"default": "compute#zone"
|
1425
|
+
},
|
1426
|
+
"maintenanceWindows": {
|
1427
|
+
"type": "array",
|
1428
|
+
"description": "Scheduled maintenance windows for the zone. When the zone is in a maintenance window, all resources which reside in the zone will be unavailable.",
|
1429
|
+
"items": {
|
1430
|
+
"type": "object",
|
1431
|
+
"properties": {
|
1432
|
+
"beginTime": {
|
1433
|
+
"type": "string",
|
1434
|
+
"description": "Begin time of the maintenance window, in RFC 3339 format."
|
1435
|
+
},
|
1436
|
+
"description": {
|
1437
|
+
"type": "string",
|
1438
|
+
"description": "Textual description of the maintenance window."
|
1439
|
+
},
|
1440
|
+
"endTime": {
|
1441
|
+
"type": "string",
|
1442
|
+
"description": "End time of the maintenance window, in RFC 3339 format."
|
1443
|
+
},
|
1444
|
+
"name": {
|
1445
|
+
"type": "string",
|
1446
|
+
"description": "Name of the maintenance window."
|
1447
|
+
}
|
1448
|
+
}
|
1449
|
+
}
|
1450
|
+
},
|
1451
|
+
"name": {
|
1452
|
+
"type": "string",
|
1453
|
+
"description": "Name of the resource."
|
1454
|
+
},
|
1455
|
+
"quotas": {
|
1456
|
+
"type": "array",
|
1457
|
+
"description": "Quotas assigned to this zone.",
|
1458
|
+
"items": {
|
1459
|
+
"$ref": "Quota"
|
1460
|
+
}
|
1461
|
+
},
|
1462
|
+
"selfLink": {
|
1463
|
+
"type": "string",
|
1464
|
+
"description": "Server defined URL for the resource (output only)."
|
1465
|
+
},
|
1466
|
+
"status": {
|
1467
|
+
"type": "string",
|
1468
|
+
"description": "Status of the zone. \"UP\" or \"DOWN\"."
|
1469
|
+
}
|
1470
|
+
}
|
1471
|
+
},
|
1472
|
+
"ZoneList": {
|
1473
|
+
"id": "ZoneList",
|
1474
|
+
"type": "object",
|
1475
|
+
"description": "Contains a list of zone resources.",
|
1476
|
+
"properties": {
|
1477
|
+
"id": {
|
1478
|
+
"type": "string",
|
1479
|
+
"description": "Unique identifier for the resource; defined by the server (output only)."
|
1480
|
+
},
|
1481
|
+
"items": {
|
1482
|
+
"type": "array",
|
1483
|
+
"description": "The zone resources.",
|
1484
|
+
"items": {
|
1485
|
+
"$ref": "Zone"
|
1486
|
+
}
|
1487
|
+
},
|
1488
|
+
"kind": {
|
1489
|
+
"type": "string",
|
1490
|
+
"description": "Type of resource.",
|
1491
|
+
"default": "compute#zoneList"
|
1492
|
+
},
|
1493
|
+
"nextPageToken": {
|
1494
|
+
"type": "string",
|
1495
|
+
"description": "A token used to continue a truncated list request (output only)."
|
1496
|
+
},
|
1497
|
+
"selfLink": {
|
1498
|
+
"type": "string",
|
1499
|
+
"description": "Server defined URL for this resource (output only)."
|
1500
|
+
}
|
1501
|
+
}
|
1502
|
+
}
|
1503
|
+
},
|
1504
|
+
"resources": {
|
1505
|
+
"disks": {
|
1506
|
+
"methods": {
|
1507
|
+
"delete": {
|
1508
|
+
"id": "compute.disks.delete",
|
1509
|
+
"path": "{project}/zones/{zone}/disks/{disk}",
|
1510
|
+
"httpMethod": "DELETE",
|
1511
|
+
"description": "Deletes the specified persistent disk resource.",
|
1512
|
+
"parameters": {
|
1513
|
+
"disk": {
|
1514
|
+
"type": "string",
|
1515
|
+
"description": "Name of the persistent disk resource to delete.",
|
1516
|
+
"required": true,
|
1517
|
+
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
1518
|
+
"location": "path"
|
1519
|
+
},
|
1520
|
+
"project": {
|
1521
|
+
"type": "string",
|
1522
|
+
"description": "Name of the project scoping this request.",
|
1523
|
+
"required": true,
|
1524
|
+
"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])?))",
|
1525
|
+
"location": "path"
|
1526
|
+
},
|
1527
|
+
"zone": {
|
1528
|
+
"type": "string",
|
1529
|
+
"description": "Name of the zone scoping this request.",
|
1530
|
+
"required": true,
|
1531
|
+
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
1532
|
+
"location": "path"
|
1533
|
+
}
|
1534
|
+
},
|
1535
|
+
"parameterOrder": [
|
1536
|
+
"project",
|
1537
|
+
"zone",
|
1538
|
+
"disk"
|
1539
|
+
],
|
1540
|
+
"response": {
|
1541
|
+
"$ref": "Operation"
|
1542
|
+
},
|
1543
|
+
"scopes": [
|
1544
|
+
"https://www.googleapis.com/auth/compute"
|
1545
|
+
]
|
1546
|
+
},
|
1547
|
+
"get": {
|
1548
|
+
"id": "compute.disks.get",
|
1549
|
+
"path": "{project}/zones/{zone}/disks/{disk}",
|
1550
|
+
"httpMethod": "GET",
|
1551
|
+
"description": "Returns the specified persistent disk resource.",
|
1552
|
+
"parameters": {
|
1553
|
+
"disk": {
|
1554
|
+
"type": "string",
|
1555
|
+
"description": "Name of the persistent disk resource to return.",
|
1556
|
+
"required": true,
|
1557
|
+
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
1558
|
+
"location": "path"
|
1559
|
+
},
|
1560
|
+
"project": {
|
1561
|
+
"type": "string",
|
1562
|
+
"description": "Name of the project scoping this request.",
|
1563
|
+
"required": true,
|
1564
|
+
"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])?))",
|
1565
|
+
"location": "path"
|
1566
|
+
},
|
1567
|
+
"zone": {
|
1568
|
+
"type": "string",
|
1569
|
+
"description": "Name of the zone scoping this request.",
|
1570
|
+
"required": true,
|
1571
|
+
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
1572
|
+
"location": "path"
|
1573
|
+
}
|
1574
|
+
},
|
1575
|
+
"parameterOrder": [
|
1576
|
+
"project",
|
1577
|
+
"zone",
|
1578
|
+
"disk"
|
1579
|
+
],
|
1580
|
+
"response": {
|
1581
|
+
"$ref": "Disk"
|
1582
|
+
},
|
1583
|
+
"scopes": [
|
1584
|
+
"https://www.googleapis.com/auth/compute",
|
1585
|
+
"https://www.googleapis.com/auth/compute.readonly"
|
1586
|
+
]
|
1587
|
+
},
|
1588
|
+
"insert": {
|
1589
|
+
"id": "compute.disks.insert",
|
1590
|
+
"path": "{project}/zones/{zone}/disks",
|
1591
|
+
"httpMethod": "POST",
|
1592
|
+
"description": "Creates a persistent disk resource in the specified project using the data included in the request.",
|
1593
|
+
"parameters": {
|
1594
|
+
"project": {
|
1595
|
+
"type": "string",
|
1596
|
+
"description": "Name of the project scoping this request.",
|
1597
|
+
"required": true,
|
1598
|
+
"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])?))",
|
1599
|
+
"location": "path"
|
1600
|
+
},
|
1601
|
+
"sourceImage": {
|
1602
|
+
"type": "string",
|
1603
|
+
"description": "Optional. Source image to restore onto a disk.",
|
1604
|
+
"location": "query"
|
1605
|
+
},
|
1606
|
+
"zone": {
|
1607
|
+
"type": "string",
|
1608
|
+
"description": "Name of the zone scoping this request.",
|
1609
|
+
"required": true,
|
1610
|
+
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
1611
|
+
"location": "path"
|
1612
|
+
}
|
1613
|
+
},
|
1614
|
+
"parameterOrder": [
|
1615
|
+
"project",
|
1616
|
+
"zone"
|
1617
|
+
],
|
1618
|
+
"request": {
|
1619
|
+
"$ref": "Disk"
|
1620
|
+
},
|
1621
|
+
"response": {
|
1622
|
+
"$ref": "Operation"
|
1623
|
+
},
|
1624
|
+
"scopes": [
|
1625
|
+
"https://www.googleapis.com/auth/compute"
|
1626
|
+
]
|
1627
|
+
},
|
1628
|
+
"list": {
|
1629
|
+
"id": "compute.disks.list",
|
1630
|
+
"path": "{project}/zones/{zone}/disks",
|
1631
|
+
"httpMethod": "GET",
|
1632
|
+
"description": "Retrieves the list of persistent disk resources contained within the specified zone.",
|
1633
|
+
"parameters": {
|
1634
|
+
"filter": {
|
1635
|
+
"type": "string",
|
1636
|
+
"description": "Optional. Filter expression for filtering listed resources.",
|
1637
|
+
"location": "query"
|
1638
|
+
},
|
1639
|
+
"maxResults": {
|
1640
|
+
"type": "integer",
|
1641
|
+
"description": "Optional. Maximum count of results to be returned. Maximum and default value is 100.",
|
1642
|
+
"default": "100",
|
1643
|
+
"format": "uint32",
|
1644
|
+
"minimum": "0",
|
1645
|
+
"maximum": "100",
|
1646
|
+
"location": "query"
|
1647
|
+
},
|
1648
|
+
"pageToken": {
|
1649
|
+
"type": "string",
|
1650
|
+
"description": "Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.",
|
1651
|
+
"location": "query"
|
1652
|
+
},
|
1653
|
+
"project": {
|
1654
|
+
"type": "string",
|
1655
|
+
"description": "Name of the project scoping this request.",
|
1656
|
+
"required": true,
|
1657
|
+
"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])?))",
|
1658
|
+
"location": "path"
|
1659
|
+
},
|
1660
|
+
"zone": {
|
1661
|
+
"type": "string",
|
1662
|
+
"description": "Name of the zone scoping this request.",
|
1663
|
+
"required": true,
|
1664
|
+
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
1665
|
+
"location": "path"
|
1666
|
+
}
|
1667
|
+
},
|
1668
|
+
"parameterOrder": [
|
1669
|
+
"project",
|
1670
|
+
"zone"
|
1671
|
+
],
|
1672
|
+
"response": {
|
1673
|
+
"$ref": "DiskList"
|
1674
|
+
},
|
1675
|
+
"scopes": [
|
1676
|
+
"https://www.googleapis.com/auth/compute",
|
1677
|
+
"https://www.googleapis.com/auth/compute.readonly"
|
1678
|
+
]
|
1679
|
+
}
|
1680
|
+
}
|
1681
|
+
},
|
1682
|
+
"firewalls": {
|
1683
|
+
"methods": {
|
1684
|
+
"delete": {
|
1685
|
+
"id": "compute.firewalls.delete",
|
1686
|
+
"path": "{project}/global/firewalls/{firewall}",
|
1687
|
+
"httpMethod": "DELETE",
|
1688
|
+
"description": "Deletes the specified firewall resource.",
|
1689
|
+
"parameters": {
|
1690
|
+
"firewall": {
|
1691
|
+
"type": "string",
|
1692
|
+
"description": "Name of the firewall resource to delete.",
|
1693
|
+
"required": true,
|
1694
|
+
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
1695
|
+
"location": "path"
|
1696
|
+
},
|
1697
|
+
"project": {
|
1698
|
+
"type": "string",
|
1699
|
+
"description": "Name of the project scoping this request.",
|
1700
|
+
"required": true,
|
1701
|
+
"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])?))",
|
1702
|
+
"location": "path"
|
1703
|
+
}
|
1704
|
+
},
|
1705
|
+
"parameterOrder": [
|
1706
|
+
"project",
|
1707
|
+
"firewall"
|
1708
|
+
],
|
1709
|
+
"response": {
|
1710
|
+
"$ref": "Operation"
|
1711
|
+
},
|
1712
|
+
"scopes": [
|
1713
|
+
"https://www.googleapis.com/auth/compute"
|
1714
|
+
]
|
1715
|
+
},
|
1716
|
+
"get": {
|
1717
|
+
"id": "compute.firewalls.get",
|
1718
|
+
"path": "{project}/global/firewalls/{firewall}",
|
1719
|
+
"httpMethod": "GET",
|
1720
|
+
"description": "Returns the specified firewall resource.",
|
1721
|
+
"parameters": {
|
1722
|
+
"firewall": {
|
1723
|
+
"type": "string",
|
1724
|
+
"description": "Name of the firewall resource to return.",
|
1725
|
+
"required": true,
|
1726
|
+
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
1727
|
+
"location": "path"
|
1728
|
+
},
|
1729
|
+
"project": {
|
1730
|
+
"type": "string",
|
1731
|
+
"description": "Name of the project scoping this request.",
|
1732
|
+
"required": true,
|
1733
|
+
"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])?))",
|
1734
|
+
"location": "path"
|
1735
|
+
}
|
1736
|
+
},
|
1737
|
+
"parameterOrder": [
|
1738
|
+
"project",
|
1739
|
+
"firewall"
|
1740
|
+
],
|
1741
|
+
"response": {
|
1742
|
+
"$ref": "Firewall"
|
1743
|
+
},
|
1744
|
+
"scopes": [
|
1745
|
+
"https://www.googleapis.com/auth/compute",
|
1746
|
+
"https://www.googleapis.com/auth/compute.readonly"
|
1747
|
+
]
|
1748
|
+
},
|
1749
|
+
"insert": {
|
1750
|
+
"id": "compute.firewalls.insert",
|
1751
|
+
"path": "{project}/global/firewalls",
|
1752
|
+
"httpMethod": "POST",
|
1753
|
+
"description": "Creates a firewall resource in the specified project using the data included in the request.",
|
1754
|
+
"parameters": {
|
1755
|
+
"project": {
|
1756
|
+
"type": "string",
|
1757
|
+
"description": "Name of the project scoping this request.",
|
1758
|
+
"required": true,
|
1759
|
+
"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])?))",
|
1760
|
+
"location": "path"
|
1761
|
+
}
|
1762
|
+
},
|
1763
|
+
"parameterOrder": [
|
1764
|
+
"project"
|
1765
|
+
],
|
1766
|
+
"request": {
|
1767
|
+
"$ref": "Firewall"
|
1768
|
+
},
|
1769
|
+
"response": {
|
1770
|
+
"$ref": "Operation"
|
1771
|
+
},
|
1772
|
+
"scopes": [
|
1773
|
+
"https://www.googleapis.com/auth/compute"
|
1774
|
+
]
|
1775
|
+
},
|
1776
|
+
"list": {
|
1777
|
+
"id": "compute.firewalls.list",
|
1778
|
+
"path": "{project}/global/firewalls",
|
1779
|
+
"httpMethod": "GET",
|
1780
|
+
"description": "Retrieves the list of firewall resources available to the specified project.",
|
1781
|
+
"parameters": {
|
1782
|
+
"filter": {
|
1783
|
+
"type": "string",
|
1784
|
+
"description": "Optional. Filter expression for filtering listed resources.",
|
1785
|
+
"location": "query"
|
1786
|
+
},
|
1787
|
+
"maxResults": {
|
1788
|
+
"type": "integer",
|
1789
|
+
"description": "Optional. Maximum count of results to be returned. Maximum and default value is 100.",
|
1790
|
+
"default": "100",
|
1791
|
+
"format": "uint32",
|
1792
|
+
"minimum": "0",
|
1793
|
+
"maximum": "100",
|
1794
|
+
"location": "query"
|
1795
|
+
},
|
1796
|
+
"pageToken": {
|
1797
|
+
"type": "string",
|
1798
|
+
"description": "Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.",
|
1799
|
+
"location": "query"
|
1800
|
+
},
|
1801
|
+
"project": {
|
1802
|
+
"type": "string",
|
1803
|
+
"description": "Name of the project scoping this request.",
|
1804
|
+
"required": true,
|
1805
|
+
"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])?))",
|
1806
|
+
"location": "path"
|
1807
|
+
}
|
1808
|
+
},
|
1809
|
+
"parameterOrder": [
|
1810
|
+
"project"
|
1811
|
+
],
|
1812
|
+
"response": {
|
1813
|
+
"$ref": "FirewallList"
|
1814
|
+
},
|
1815
|
+
"scopes": [
|
1816
|
+
"https://www.googleapis.com/auth/compute",
|
1817
|
+
"https://www.googleapis.com/auth/compute.readonly"
|
1818
|
+
]
|
1819
|
+
},
|
1820
|
+
"patch": {
|
1821
|
+
"id": "compute.firewalls.patch",
|
1822
|
+
"path": "{project}/global/firewalls/{firewall}",
|
1823
|
+
"httpMethod": "PATCH",
|
1824
|
+
"description": "Updates the specified firewall resource with the data included in the request. This method supports patch semantics.",
|
1825
|
+
"parameters": {
|
1826
|
+
"firewall": {
|
1827
|
+
"type": "string",
|
1828
|
+
"description": "Name of the firewall resource to update.",
|
1829
|
+
"required": true,
|
1830
|
+
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
1831
|
+
"location": "path"
|
1832
|
+
},
|
1833
|
+
"project": {
|
1834
|
+
"type": "string",
|
1835
|
+
"description": "Name of the project scoping this request.",
|
1836
|
+
"required": true,
|
1837
|
+
"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])?))",
|
1838
|
+
"location": "path"
|
1839
|
+
}
|
1840
|
+
},
|
1841
|
+
"parameterOrder": [
|
1842
|
+
"project",
|
1843
|
+
"firewall"
|
1844
|
+
],
|
1845
|
+
"request": {
|
1846
|
+
"$ref": "Firewall"
|
1847
|
+
},
|
1848
|
+
"response": {
|
1849
|
+
"$ref": "Operation"
|
1850
|
+
},
|
1851
|
+
"scopes": [
|
1852
|
+
"https://www.googleapis.com/auth/compute"
|
1853
|
+
]
|
1854
|
+
},
|
1855
|
+
"update": {
|
1856
|
+
"id": "compute.firewalls.update",
|
1857
|
+
"path": "{project}/global/firewalls/{firewall}",
|
1858
|
+
"httpMethod": "PUT",
|
1859
|
+
"description": "Updates the specified firewall resource with the data included in the request.",
|
1860
|
+
"parameters": {
|
1861
|
+
"firewall": {
|
1862
|
+
"type": "string",
|
1863
|
+
"description": "Name of the firewall resource to update.",
|
1864
|
+
"required": true,
|
1865
|
+
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
1866
|
+
"location": "path"
|
1867
|
+
},
|
1868
|
+
"project": {
|
1869
|
+
"type": "string",
|
1870
|
+
"description": "Name of the project scoping this request.",
|
1871
|
+
"required": true,
|
1872
|
+
"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])?))",
|
1873
|
+
"location": "path"
|
1874
|
+
}
|
1875
|
+
},
|
1876
|
+
"parameterOrder": [
|
1877
|
+
"project",
|
1878
|
+
"firewall"
|
1879
|
+
],
|
1880
|
+
"request": {
|
1881
|
+
"$ref": "Firewall"
|
1882
|
+
},
|
1883
|
+
"response": {
|
1884
|
+
"$ref": "Operation"
|
1885
|
+
},
|
1886
|
+
"scopes": [
|
1887
|
+
"https://www.googleapis.com/auth/compute"
|
1888
|
+
]
|
1889
|
+
}
|
1890
|
+
}
|
1891
|
+
},
|
1892
|
+
"globalOperations": {
|
1893
|
+
"methods": {
|
1894
|
+
"delete": {
|
1895
|
+
"id": "compute.globalOperations.delete",
|
1896
|
+
"path": "{project}/global/operations/{operation}",
|
1897
|
+
"httpMethod": "DELETE",
|
1898
|
+
"description": "Deletes the specified operation resource.",
|
1899
|
+
"parameters": {
|
1900
|
+
"operation": {
|
1901
|
+
"type": "string",
|
1902
|
+
"description": "Name of the operation resource to delete.",
|
1903
|
+
"required": true,
|
1904
|
+
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
1905
|
+
"location": "path"
|
1906
|
+
},
|
1907
|
+
"project": {
|
1908
|
+
"type": "string",
|
1909
|
+
"description": "Name of the project scoping this request.",
|
1910
|
+
"required": true,
|
1911
|
+
"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])?))",
|
1912
|
+
"location": "path"
|
1913
|
+
}
|
1914
|
+
},
|
1915
|
+
"parameterOrder": [
|
1916
|
+
"project",
|
1917
|
+
"operation"
|
1918
|
+
],
|
1919
|
+
"scopes": [
|
1920
|
+
"https://www.googleapis.com/auth/compute"
|
1921
|
+
]
|
1922
|
+
},
|
1923
|
+
"get": {
|
1924
|
+
"id": "compute.globalOperations.get",
|
1925
|
+
"path": "{project}/global/operations/{operation}",
|
1926
|
+
"httpMethod": "GET",
|
1927
|
+
"description": "Retrieves the specified operation resource.",
|
1928
|
+
"parameters": {
|
1929
|
+
"operation": {
|
1930
|
+
"type": "string",
|
1931
|
+
"description": "Name of the operation resource to return.",
|
1932
|
+
"required": true,
|
1933
|
+
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
1934
|
+
"location": "path"
|
1935
|
+
},
|
1936
|
+
"project": {
|
1937
|
+
"type": "string",
|
1938
|
+
"description": "Name of the project scoping this request.",
|
1939
|
+
"required": true,
|
1940
|
+
"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])?))",
|
1941
|
+
"location": "path"
|
1942
|
+
}
|
1943
|
+
},
|
1944
|
+
"parameterOrder": [
|
1945
|
+
"project",
|
1946
|
+
"operation"
|
1947
|
+
],
|
1948
|
+
"response": {
|
1949
|
+
"$ref": "Operation"
|
1950
|
+
},
|
1951
|
+
"scopes": [
|
1952
|
+
"https://www.googleapis.com/auth/compute",
|
1953
|
+
"https://www.googleapis.com/auth/compute.readonly"
|
1954
|
+
]
|
1955
|
+
},
|
1956
|
+
"list": {
|
1957
|
+
"id": "compute.globalOperations.list",
|
1958
|
+
"path": "{project}/global/operations",
|
1959
|
+
"httpMethod": "GET",
|
1960
|
+
"description": "Retrieves the list of operation resources contained within the specified project.",
|
1961
|
+
"parameters": {
|
1962
|
+
"filter": {
|
1963
|
+
"type": "string",
|
1964
|
+
"description": "Optional. Filter expression for filtering listed resources.",
|
1965
|
+
"location": "query"
|
1966
|
+
},
|
1967
|
+
"maxResults": {
|
1968
|
+
"type": "integer",
|
1969
|
+
"description": "Optional. Maximum count of results to be returned. Maximum and default value is 100.",
|
1970
|
+
"default": "100",
|
1971
|
+
"format": "uint32",
|
1972
|
+
"minimum": "0",
|
1973
|
+
"maximum": "100",
|
1974
|
+
"location": "query"
|
1975
|
+
},
|
1976
|
+
"pageToken": {
|
1977
|
+
"type": "string",
|
1978
|
+
"description": "Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.",
|
1979
|
+
"location": "query"
|
1980
|
+
},
|
1981
|
+
"project": {
|
1982
|
+
"type": "string",
|
1983
|
+
"description": "Name of the project scoping this request.",
|
1984
|
+
"required": true,
|
1985
|
+
"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])?))",
|
1986
|
+
"location": "path"
|
1987
|
+
}
|
1988
|
+
},
|
1989
|
+
"parameterOrder": [
|
1990
|
+
"project"
|
1991
|
+
],
|
1992
|
+
"response": {
|
1993
|
+
"$ref": "OperationList"
|
1994
|
+
},
|
1995
|
+
"scopes": [
|
1996
|
+
"https://www.googleapis.com/auth/compute",
|
1997
|
+
"https://www.googleapis.com/auth/compute.readonly"
|
1998
|
+
]
|
1999
|
+
}
|
2000
|
+
}
|
2001
|
+
},
|
2002
|
+
"images": {
|
2003
|
+
"methods": {
|
2004
|
+
"delete": {
|
2005
|
+
"id": "compute.images.delete",
|
2006
|
+
"path": "{project}/global/images/{image}",
|
2007
|
+
"httpMethod": "DELETE",
|
2008
|
+
"description": "Deletes the specified image resource.",
|
2009
|
+
"parameters": {
|
2010
|
+
"image": {
|
2011
|
+
"type": "string",
|
2012
|
+
"description": "Name of the image resource to delete.",
|
2013
|
+
"required": true,
|
2014
|
+
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
2015
|
+
"location": "path"
|
2016
|
+
},
|
2017
|
+
"project": {
|
2018
|
+
"type": "string",
|
2019
|
+
"description": "Name of the project scoping this request.",
|
2020
|
+
"required": true,
|
2021
|
+
"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])?))",
|
2022
|
+
"location": "path"
|
2023
|
+
}
|
2024
|
+
},
|
2025
|
+
"parameterOrder": [
|
2026
|
+
"project",
|
2027
|
+
"image"
|
2028
|
+
],
|
2029
|
+
"response": {
|
2030
|
+
"$ref": "Operation"
|
2031
|
+
},
|
2032
|
+
"scopes": [
|
2033
|
+
"https://www.googleapis.com/auth/compute"
|
2034
|
+
]
|
2035
|
+
},
|
2036
|
+
"deprecate": {
|
2037
|
+
"id": "compute.images.deprecate",
|
2038
|
+
"path": "{project}/global/images/{image}/deprecate",
|
2039
|
+
"httpMethod": "POST",
|
2040
|
+
"description": "Sets the deprecation status of an image. If no message body is given, clears the deprecation status instead.",
|
2041
|
+
"parameters": {
|
2042
|
+
"image": {
|
2043
|
+
"type": "string",
|
2044
|
+
"description": "Image name.",
|
2045
|
+
"required": true,
|
2046
|
+
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
2047
|
+
"location": "path"
|
2048
|
+
},
|
2049
|
+
"project": {
|
2050
|
+
"type": "string",
|
2051
|
+
"description": "Name of the project scoping this request.",
|
2052
|
+
"required": true,
|
2053
|
+
"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])?))",
|
2054
|
+
"location": "path"
|
2055
|
+
}
|
2056
|
+
},
|
2057
|
+
"parameterOrder": [
|
2058
|
+
"project",
|
2059
|
+
"image"
|
2060
|
+
],
|
2061
|
+
"request": {
|
2062
|
+
"$ref": "DeprecationStatus"
|
2063
|
+
},
|
2064
|
+
"response": {
|
2065
|
+
"$ref": "Operation"
|
2066
|
+
},
|
2067
|
+
"scopes": [
|
2068
|
+
"https://www.googleapis.com/auth/compute"
|
2069
|
+
]
|
2070
|
+
},
|
2071
|
+
"get": {
|
2072
|
+
"id": "compute.images.get",
|
2073
|
+
"path": "{project}/global/images/{image}",
|
2074
|
+
"httpMethod": "GET",
|
2075
|
+
"description": "Returns the specified image resource.",
|
2076
|
+
"parameters": {
|
2077
|
+
"image": {
|
2078
|
+
"type": "string",
|
2079
|
+
"description": "Name of the image resource to return.",
|
2080
|
+
"required": true,
|
2081
|
+
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
2082
|
+
"location": "path"
|
2083
|
+
},
|
2084
|
+
"project": {
|
2085
|
+
"type": "string",
|
2086
|
+
"description": "Name of the project scoping this request.",
|
2087
|
+
"required": true,
|
2088
|
+
"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])?))",
|
2089
|
+
"location": "path"
|
2090
|
+
}
|
2091
|
+
},
|
2092
|
+
"parameterOrder": [
|
2093
|
+
"project",
|
2094
|
+
"image"
|
2095
|
+
],
|
2096
|
+
"response": {
|
2097
|
+
"$ref": "Image"
|
2098
|
+
},
|
2099
|
+
"scopes": [
|
2100
|
+
"https://www.googleapis.com/auth/compute",
|
2101
|
+
"https://www.googleapis.com/auth/compute.readonly"
|
2102
|
+
]
|
2103
|
+
},
|
2104
|
+
"insert": {
|
2105
|
+
"id": "compute.images.insert",
|
2106
|
+
"path": "{project}/global/images",
|
2107
|
+
"httpMethod": "POST",
|
2108
|
+
"description": "Creates an image resource in the specified project using the data included in the request.",
|
2109
|
+
"parameters": {
|
2110
|
+
"project": {
|
2111
|
+
"type": "string",
|
2112
|
+
"description": "Name of the project scoping this request.",
|
2113
|
+
"required": true,
|
2114
|
+
"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])?))",
|
2115
|
+
"location": "path"
|
2116
|
+
}
|
2117
|
+
},
|
2118
|
+
"parameterOrder": [
|
2119
|
+
"project"
|
2120
|
+
],
|
2121
|
+
"request": {
|
2122
|
+
"$ref": "Image"
|
2123
|
+
},
|
2124
|
+
"response": {
|
2125
|
+
"$ref": "Operation"
|
2126
|
+
},
|
2127
|
+
"scopes": [
|
2128
|
+
"https://www.googleapis.com/auth/compute",
|
2129
|
+
"https://www.googleapis.com/auth/devstorage.read_only"
|
2130
|
+
]
|
2131
|
+
},
|
2132
|
+
"list": {
|
2133
|
+
"id": "compute.images.list",
|
2134
|
+
"path": "{project}/global/images",
|
2135
|
+
"httpMethod": "GET",
|
2136
|
+
"description": "Retrieves the list of image resources available to the specified project.",
|
2137
|
+
"parameters": {
|
2138
|
+
"filter": {
|
2139
|
+
"type": "string",
|
2140
|
+
"description": "Optional. Filter expression for filtering listed resources.",
|
2141
|
+
"location": "query"
|
2142
|
+
},
|
2143
|
+
"maxResults": {
|
2144
|
+
"type": "integer",
|
2145
|
+
"description": "Optional. Maximum count of results to be returned. Maximum and default value is 100.",
|
2146
|
+
"default": "100",
|
2147
|
+
"format": "uint32",
|
2148
|
+
"minimum": "0",
|
2149
|
+
"maximum": "100",
|
2150
|
+
"location": "query"
|
2151
|
+
},
|
2152
|
+
"pageToken": {
|
2153
|
+
"type": "string",
|
2154
|
+
"description": "Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.",
|
2155
|
+
"location": "query"
|
2156
|
+
},
|
2157
|
+
"project": {
|
2158
|
+
"type": "string",
|
2159
|
+
"description": "Name of the project scoping this request.",
|
2160
|
+
"required": true,
|
2161
|
+
"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])?))",
|
2162
|
+
"location": "path"
|
2163
|
+
}
|
2164
|
+
},
|
2165
|
+
"parameterOrder": [
|
2166
|
+
"project"
|
2167
|
+
],
|
2168
|
+
"response": {
|
2169
|
+
"$ref": "ImageList"
|
2170
|
+
},
|
2171
|
+
"scopes": [
|
2172
|
+
"https://www.googleapis.com/auth/compute",
|
2173
|
+
"https://www.googleapis.com/auth/compute.readonly"
|
2174
|
+
]
|
2175
|
+
}
|
2176
|
+
}
|
2177
|
+
},
|
2178
|
+
"instances": {
|
2179
|
+
"methods": {
|
2180
|
+
"addAccessConfig": {
|
2181
|
+
"id": "compute.instances.addAccessConfig",
|
2182
|
+
"path": "{project}/zones/{zone}/instances/{instance}/addAccessConfig",
|
2183
|
+
"httpMethod": "POST",
|
2184
|
+
"description": "Adds an access config to an instance's network interface.",
|
2185
|
+
"parameters": {
|
2186
|
+
"instance": {
|
2187
|
+
"type": "string",
|
2188
|
+
"description": "Instance name.",
|
2189
|
+
"required": true,
|
2190
|
+
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
2191
|
+
"location": "path"
|
2192
|
+
},
|
2193
|
+
"network_interface": {
|
2194
|
+
"type": "string",
|
2195
|
+
"description": "Network interface name.",
|
2196
|
+
"required": true,
|
2197
|
+
"location": "query"
|
2198
|
+
},
|
2199
|
+
"project": {
|
2200
|
+
"type": "string",
|
2201
|
+
"description": "Project name.",
|
2202
|
+
"required": true,
|
2203
|
+
"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])?))",
|
2204
|
+
"location": "path"
|
2205
|
+
},
|
2206
|
+
"zone": {
|
2207
|
+
"type": "string",
|
2208
|
+
"description": "Name of the zone scoping this request.",
|
2209
|
+
"required": true,
|
2210
|
+
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
2211
|
+
"location": "path"
|
2212
|
+
}
|
2213
|
+
},
|
2214
|
+
"parameterOrder": [
|
2215
|
+
"project",
|
2216
|
+
"zone",
|
2217
|
+
"instance",
|
2218
|
+
"network_interface"
|
2219
|
+
],
|
2220
|
+
"request": {
|
2221
|
+
"$ref": "AccessConfig"
|
2222
|
+
},
|
2223
|
+
"response": {
|
2224
|
+
"$ref": "Operation"
|
2225
|
+
},
|
2226
|
+
"scopes": [
|
2227
|
+
"https://www.googleapis.com/auth/compute"
|
2228
|
+
]
|
2229
|
+
},
|
2230
|
+
"attachDisk": {
|
2231
|
+
"id": "compute.instances.attachDisk",
|
2232
|
+
"path": "{project}/zones/{zone}/instances/{instance}/attachDisk",
|
2233
|
+
"httpMethod": "POST",
|
2234
|
+
"description": "Attaches a disk resource to an instance.",
|
2235
|
+
"parameters": {
|
2236
|
+
"instance": {
|
2237
|
+
"type": "string",
|
2238
|
+
"description": "Instance name.",
|
2239
|
+
"required": true,
|
2240
|
+
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
2241
|
+
"location": "path"
|
2242
|
+
},
|
2243
|
+
"project": {
|
2244
|
+
"type": "string",
|
2245
|
+
"description": "Project name.",
|
2246
|
+
"required": true,
|
2247
|
+
"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])?))",
|
2248
|
+
"location": "path"
|
2249
|
+
},
|
2250
|
+
"zone": {
|
2251
|
+
"type": "string",
|
2252
|
+
"description": "Name of the zone scoping this request.",
|
2253
|
+
"required": true,
|
2254
|
+
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
2255
|
+
"location": "path"
|
2256
|
+
}
|
2257
|
+
},
|
2258
|
+
"parameterOrder": [
|
2259
|
+
"project",
|
2260
|
+
"zone",
|
2261
|
+
"instance"
|
2262
|
+
],
|
2263
|
+
"request": {
|
2264
|
+
"$ref": "AttachedDisk"
|
2265
|
+
},
|
2266
|
+
"response": {
|
2267
|
+
"$ref": "Operation"
|
2268
|
+
},
|
2269
|
+
"scopes": [
|
2270
|
+
"https://www.googleapis.com/auth/compute"
|
2271
|
+
]
|
2272
|
+
},
|
2273
|
+
"delete": {
|
2274
|
+
"id": "compute.instances.delete",
|
2275
|
+
"path": "{project}/zones/{zone}/instances/{instance}",
|
2276
|
+
"httpMethod": "DELETE",
|
2277
|
+
"description": "Deletes the specified instance resource.",
|
2278
|
+
"parameters": {
|
2279
|
+
"instance": {
|
2280
|
+
"type": "string",
|
2281
|
+
"description": "Name of the instance resource to delete.",
|
2282
|
+
"required": true,
|
2283
|
+
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
2284
|
+
"location": "path"
|
2285
|
+
},
|
2286
|
+
"project": {
|
2287
|
+
"type": "string",
|
2288
|
+
"description": "Name of the project scoping this request.",
|
2289
|
+
"required": true,
|
2290
|
+
"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])?))",
|
2291
|
+
"location": "path"
|
2292
|
+
},
|
2293
|
+
"zone": {
|
2294
|
+
"type": "string",
|
2295
|
+
"description": "Name of the zone scoping this request.",
|
2296
|
+
"required": true,
|
2297
|
+
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
2298
|
+
"location": "path"
|
2299
|
+
}
|
2300
|
+
},
|
2301
|
+
"parameterOrder": [
|
2302
|
+
"project",
|
2303
|
+
"zone",
|
2304
|
+
"instance"
|
2305
|
+
],
|
2306
|
+
"response": {
|
2307
|
+
"$ref": "Operation"
|
2308
|
+
},
|
2309
|
+
"scopes": [
|
2310
|
+
"https://www.googleapis.com/auth/compute"
|
2311
|
+
]
|
2312
|
+
},
|
2313
|
+
"deleteAccessConfig": {
|
2314
|
+
"id": "compute.instances.deleteAccessConfig",
|
2315
|
+
"path": "{project}/zones/{zone}/instances/{instance}/deleteAccessConfig",
|
2316
|
+
"httpMethod": "POST",
|
2317
|
+
"description": "Deletes an access config from an instance's network interface.",
|
2318
|
+
"parameters": {
|
2319
|
+
"access_config": {
|
2320
|
+
"type": "string",
|
2321
|
+
"description": "Access config name.",
|
2322
|
+
"required": true,
|
2323
|
+
"location": "query"
|
2324
|
+
},
|
2325
|
+
"instance": {
|
2326
|
+
"type": "string",
|
2327
|
+
"description": "Instance name.",
|
2328
|
+
"required": true,
|
2329
|
+
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
2330
|
+
"location": "path"
|
2331
|
+
},
|
2332
|
+
"network_interface": {
|
2333
|
+
"type": "string",
|
2334
|
+
"description": "Network interface name.",
|
2335
|
+
"required": true,
|
2336
|
+
"location": "query"
|
2337
|
+
},
|
2338
|
+
"project": {
|
2339
|
+
"type": "string",
|
2340
|
+
"description": "Project name.",
|
2341
|
+
"required": true,
|
2342
|
+
"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])?))",
|
2343
|
+
"location": "path"
|
2344
|
+
},
|
2345
|
+
"zone": {
|
2346
|
+
"type": "string",
|
2347
|
+
"description": "Name of the zone scoping this request.",
|
2348
|
+
"required": true,
|
2349
|
+
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
2350
|
+
"location": "path"
|
2351
|
+
}
|
2352
|
+
},
|
2353
|
+
"parameterOrder": [
|
2354
|
+
"project",
|
2355
|
+
"zone",
|
2356
|
+
"instance",
|
2357
|
+
"access_config",
|
2358
|
+
"network_interface"
|
2359
|
+
],
|
2360
|
+
"response": {
|
2361
|
+
"$ref": "Operation"
|
2362
|
+
},
|
2363
|
+
"scopes": [
|
2364
|
+
"https://www.googleapis.com/auth/compute"
|
2365
|
+
]
|
2366
|
+
},
|
2367
|
+
"detachDisk": {
|
2368
|
+
"id": "compute.instances.detachDisk",
|
2369
|
+
"path": "{project}/zones/{zone}/instances/{instance}/detachDisk",
|
2370
|
+
"httpMethod": "POST",
|
2371
|
+
"description": "Detaches a disk from an instance.",
|
2372
|
+
"parameters": {
|
2373
|
+
"deviceName": {
|
2374
|
+
"type": "string",
|
2375
|
+
"description": "Disk device name to detach.",
|
2376
|
+
"required": true,
|
2377
|
+
"pattern": "\\w[\\w.-]{0,254}",
|
2378
|
+
"location": "query"
|
2379
|
+
},
|
2380
|
+
"instance": {
|
2381
|
+
"type": "string",
|
2382
|
+
"description": "Instance name.",
|
2383
|
+
"required": true,
|
2384
|
+
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
2385
|
+
"location": "path"
|
2386
|
+
},
|
2387
|
+
"project": {
|
2388
|
+
"type": "string",
|
2389
|
+
"description": "Project name.",
|
2390
|
+
"required": true,
|
2391
|
+
"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])?))",
|
2392
|
+
"location": "path"
|
2393
|
+
},
|
2394
|
+
"zone": {
|
2395
|
+
"type": "string",
|
2396
|
+
"description": "Name of the zone scoping this request.",
|
2397
|
+
"required": true,
|
2398
|
+
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
2399
|
+
"location": "path"
|
2400
|
+
}
|
2401
|
+
},
|
2402
|
+
"parameterOrder": [
|
2403
|
+
"project",
|
2404
|
+
"zone",
|
2405
|
+
"instance",
|
2406
|
+
"deviceName"
|
2407
|
+
],
|
2408
|
+
"response": {
|
2409
|
+
"$ref": "Operation"
|
2410
|
+
},
|
2411
|
+
"scopes": [
|
2412
|
+
"https://www.googleapis.com/auth/compute"
|
2413
|
+
]
|
2414
|
+
},
|
2415
|
+
"get": {
|
2416
|
+
"id": "compute.instances.get",
|
2417
|
+
"path": "{project}/zones/{zone}/instances/{instance}",
|
2418
|
+
"httpMethod": "GET",
|
2419
|
+
"description": "Returns the specified instance resource.",
|
2420
|
+
"parameters": {
|
2421
|
+
"instance": {
|
2422
|
+
"type": "string",
|
2423
|
+
"description": "Name of the instance resource to return.",
|
2424
|
+
"required": true,
|
2425
|
+
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
2426
|
+
"location": "path"
|
2427
|
+
},
|
2428
|
+
"project": {
|
2429
|
+
"type": "string",
|
2430
|
+
"description": "Name of the project scoping this request.",
|
2431
|
+
"required": true,
|
2432
|
+
"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])?))",
|
2433
|
+
"location": "path"
|
2434
|
+
},
|
2435
|
+
"zone": {
|
2436
|
+
"type": "string",
|
2437
|
+
"description": "Name of the zone scoping this request.",
|
2438
|
+
"required": true,
|
2439
|
+
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
2440
|
+
"location": "path"
|
2441
|
+
}
|
2442
|
+
},
|
2443
|
+
"parameterOrder": [
|
2444
|
+
"project",
|
2445
|
+
"zone",
|
2446
|
+
"instance"
|
2447
|
+
],
|
2448
|
+
"response": {
|
2449
|
+
"$ref": "Instance"
|
2450
|
+
},
|
2451
|
+
"scopes": [
|
2452
|
+
"https://www.googleapis.com/auth/compute",
|
2453
|
+
"https://www.googleapis.com/auth/compute.readonly"
|
2454
|
+
]
|
2455
|
+
},
|
2456
|
+
"getSerialPortOutput": {
|
2457
|
+
"id": "compute.instances.getSerialPortOutput",
|
2458
|
+
"path": "{project}/zones/{zone}/instances/{instance}/serialPort",
|
2459
|
+
"httpMethod": "GET",
|
2460
|
+
"description": "Returns the specified instance's serial port output.",
|
2461
|
+
"parameters": {
|
2462
|
+
"instance": {
|
2463
|
+
"type": "string",
|
2464
|
+
"description": "Name of the instance scoping this request.",
|
2465
|
+
"required": true,
|
2466
|
+
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
2467
|
+
"location": "path"
|
2468
|
+
},
|
2469
|
+
"project": {
|
2470
|
+
"type": "string",
|
2471
|
+
"description": "Name of the project scoping this request.",
|
2472
|
+
"required": true,
|
2473
|
+
"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])?))",
|
2474
|
+
"location": "path"
|
2475
|
+
},
|
2476
|
+
"zone": {
|
2477
|
+
"type": "string",
|
2478
|
+
"description": "Name of the zone scoping this request.",
|
2479
|
+
"required": true,
|
2480
|
+
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
2481
|
+
"location": "path"
|
2482
|
+
}
|
2483
|
+
},
|
2484
|
+
"parameterOrder": [
|
2485
|
+
"project",
|
2486
|
+
"zone",
|
2487
|
+
"instance"
|
2488
|
+
],
|
2489
|
+
"response": {
|
2490
|
+
"$ref": "SerialPortOutput"
|
2491
|
+
},
|
2492
|
+
"scopes": [
|
2493
|
+
"https://www.googleapis.com/auth/compute",
|
2494
|
+
"https://www.googleapis.com/auth/compute.readonly"
|
2495
|
+
]
|
2496
|
+
},
|
2497
|
+
"insert": {
|
2498
|
+
"id": "compute.instances.insert",
|
2499
|
+
"path": "{project}/zones/{zone}/instances",
|
2500
|
+
"httpMethod": "POST",
|
2501
|
+
"description": "Creates an instance resource in the specified project using the data included in the request.",
|
2502
|
+
"parameters": {
|
2503
|
+
"project": {
|
2504
|
+
"type": "string",
|
2505
|
+
"description": "Name of the project scoping this request.",
|
2506
|
+
"required": true,
|
2507
|
+
"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])?))",
|
2508
|
+
"location": "path"
|
2509
|
+
},
|
2510
|
+
"zone": {
|
2511
|
+
"type": "string",
|
2512
|
+
"description": "Name of the zone scoping this request.",
|
2513
|
+
"required": true,
|
2514
|
+
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
2515
|
+
"location": "path"
|
2516
|
+
}
|
2517
|
+
},
|
2518
|
+
"parameterOrder": [
|
2519
|
+
"project",
|
2520
|
+
"zone"
|
2521
|
+
],
|
2522
|
+
"request": {
|
2523
|
+
"$ref": "Instance"
|
2524
|
+
},
|
2525
|
+
"response": {
|
2526
|
+
"$ref": "Operation"
|
2527
|
+
},
|
2528
|
+
"scopes": [
|
2529
|
+
"https://www.googleapis.com/auth/compute"
|
2530
|
+
]
|
2531
|
+
},
|
2532
|
+
"list": {
|
2533
|
+
"id": "compute.instances.list",
|
2534
|
+
"path": "{project}/zones/{zone}/instances",
|
2535
|
+
"httpMethod": "GET",
|
2536
|
+
"description": "Retrieves the list of instance resources contained within the specified zone.",
|
2537
|
+
"parameters": {
|
2538
|
+
"filter": {
|
2539
|
+
"type": "string",
|
2540
|
+
"description": "Optional. Filter expression for filtering listed resources.",
|
2541
|
+
"location": "query"
|
2542
|
+
},
|
2543
|
+
"maxResults": {
|
2544
|
+
"type": "integer",
|
2545
|
+
"description": "Optional. Maximum count of results to be returned. Maximum and default value is 100.",
|
2546
|
+
"default": "100",
|
2547
|
+
"format": "uint32",
|
2548
|
+
"minimum": "0",
|
2549
|
+
"maximum": "100",
|
2550
|
+
"location": "query"
|
2551
|
+
},
|
2552
|
+
"pageToken": {
|
2553
|
+
"type": "string",
|
2554
|
+
"description": "Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.",
|
2555
|
+
"location": "query"
|
2556
|
+
},
|
2557
|
+
"project": {
|
2558
|
+
"type": "string",
|
2559
|
+
"description": "Name of the project scoping this request.",
|
2560
|
+
"required": true,
|
2561
|
+
"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])?))",
|
2562
|
+
"location": "path"
|
2563
|
+
},
|
2564
|
+
"zone": {
|
2565
|
+
"type": "string",
|
2566
|
+
"description": "Name of the zone scoping this request.",
|
2567
|
+
"required": true,
|
2568
|
+
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
2569
|
+
"location": "path"
|
2570
|
+
}
|
2571
|
+
},
|
2572
|
+
"parameterOrder": [
|
2573
|
+
"project",
|
2574
|
+
"zone"
|
2575
|
+
],
|
2576
|
+
"response": {
|
2577
|
+
"$ref": "InstanceList"
|
2578
|
+
},
|
2579
|
+
"scopes": [
|
2580
|
+
"https://www.googleapis.com/auth/compute",
|
2581
|
+
"https://www.googleapis.com/auth/compute.readonly"
|
2582
|
+
]
|
2583
|
+
},
|
2584
|
+
"setMetadata": {
|
2585
|
+
"id": "compute.instances.setMetadata",
|
2586
|
+
"path": "{project}/zones/{zone}/instances/{instance}/setMetadata",
|
2587
|
+
"httpMethod": "POST",
|
2588
|
+
"description": "Sets metadata for the specified instance to the data included in the request.",
|
2589
|
+
"parameters": {
|
2590
|
+
"instance": {
|
2591
|
+
"type": "string",
|
2592
|
+
"description": "Name of the instance scoping this request.",
|
2593
|
+
"required": true,
|
2594
|
+
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
2595
|
+
"location": "path"
|
2596
|
+
},
|
2597
|
+
"project": {
|
2598
|
+
"type": "string",
|
2599
|
+
"description": "Name of the project scoping this request.",
|
2600
|
+
"required": true,
|
2601
|
+
"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])?))",
|
2602
|
+
"location": "path"
|
2603
|
+
},
|
2604
|
+
"zone": {
|
2605
|
+
"type": "string",
|
2606
|
+
"description": "Name of the zone scoping this request.",
|
2607
|
+
"required": true,
|
2608
|
+
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
2609
|
+
"location": "path"
|
2610
|
+
}
|
2611
|
+
},
|
2612
|
+
"parameterOrder": [
|
2613
|
+
"project",
|
2614
|
+
"zone",
|
2615
|
+
"instance"
|
2616
|
+
],
|
2617
|
+
"request": {
|
2618
|
+
"$ref": "Metadata"
|
2619
|
+
},
|
2620
|
+
"response": {
|
2621
|
+
"$ref": "Operation"
|
2622
|
+
},
|
2623
|
+
"scopes": [
|
2624
|
+
"https://www.googleapis.com/auth/compute"
|
2625
|
+
]
|
2626
|
+
},
|
2627
|
+
"setTags": {
|
2628
|
+
"id": "compute.instances.setTags",
|
2629
|
+
"path": "{project}/zones/{zone}/instances/{instance}/setTags",
|
2630
|
+
"httpMethod": "POST",
|
2631
|
+
"description": "Sets tags for the specified instance to the data included in the request.",
|
2632
|
+
"parameters": {
|
2633
|
+
"instance": {
|
2634
|
+
"type": "string",
|
2635
|
+
"description": "Name of the instance scoping this request.",
|
2636
|
+
"required": true,
|
2637
|
+
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
2638
|
+
"location": "path"
|
2639
|
+
},
|
2640
|
+
"project": {
|
2641
|
+
"type": "string",
|
2642
|
+
"description": "Name of the project scoping this request.",
|
2643
|
+
"required": true,
|
2644
|
+
"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])?))",
|
2645
|
+
"location": "path"
|
2646
|
+
},
|
2647
|
+
"zone": {
|
2648
|
+
"type": "string",
|
2649
|
+
"description": "Name of the zone scoping this request.",
|
2650
|
+
"required": true,
|
2651
|
+
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
2652
|
+
"location": "path"
|
2653
|
+
}
|
2654
|
+
},
|
2655
|
+
"parameterOrder": [
|
2656
|
+
"project",
|
2657
|
+
"zone",
|
2658
|
+
"instance"
|
2659
|
+
],
|
2660
|
+
"request": {
|
2661
|
+
"$ref": "Tags"
|
2662
|
+
},
|
2663
|
+
"response": {
|
2664
|
+
"$ref": "Operation"
|
2665
|
+
},
|
2666
|
+
"scopes": [
|
2667
|
+
"https://www.googleapis.com/auth/compute"
|
2668
|
+
]
|
2669
|
+
}
|
2670
|
+
}
|
2671
|
+
},
|
2672
|
+
"kernels": {
|
2673
|
+
"methods": {
|
2674
|
+
"get": {
|
2675
|
+
"id": "compute.kernels.get",
|
2676
|
+
"path": "{project}/global/kernels/{kernel}",
|
2677
|
+
"httpMethod": "GET",
|
2678
|
+
"description": "Returns the specified kernel resource.",
|
2679
|
+
"parameters": {
|
2680
|
+
"kernel": {
|
2681
|
+
"type": "string",
|
2682
|
+
"description": "Name of the kernel resource to return.",
|
2683
|
+
"required": true,
|
2684
|
+
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
2685
|
+
"location": "path"
|
2686
|
+
},
|
2687
|
+
"project": {
|
2688
|
+
"type": "string",
|
2689
|
+
"description": "Name of the project scoping this request.",
|
2690
|
+
"required": true,
|
2691
|
+
"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])?))",
|
2692
|
+
"location": "path"
|
2693
|
+
}
|
2694
|
+
},
|
2695
|
+
"parameterOrder": [
|
2696
|
+
"project",
|
2697
|
+
"kernel"
|
2698
|
+
],
|
2699
|
+
"response": {
|
2700
|
+
"$ref": "Kernel"
|
2701
|
+
},
|
2702
|
+
"scopes": [
|
2703
|
+
"https://www.googleapis.com/auth/compute",
|
2704
|
+
"https://www.googleapis.com/auth/compute.readonly"
|
2705
|
+
]
|
2706
|
+
},
|
2707
|
+
"list": {
|
2708
|
+
"id": "compute.kernels.list",
|
2709
|
+
"path": "{project}/global/kernels",
|
2710
|
+
"httpMethod": "GET",
|
2711
|
+
"description": "Retrieves the list of kernel resources available to the specified project.",
|
2712
|
+
"parameters": {
|
2713
|
+
"filter": {
|
2714
|
+
"type": "string",
|
2715
|
+
"description": "Optional. Filter expression for filtering listed resources.",
|
2716
|
+
"location": "query"
|
2717
|
+
},
|
2718
|
+
"maxResults": {
|
2719
|
+
"type": "integer",
|
2720
|
+
"description": "Optional. Maximum count of results to be returned. Maximum and default value is 100.",
|
2721
|
+
"default": "100",
|
2722
|
+
"format": "uint32",
|
2723
|
+
"minimum": "0",
|
2724
|
+
"maximum": "100",
|
2725
|
+
"location": "query"
|
2726
|
+
},
|
2727
|
+
"pageToken": {
|
2728
|
+
"type": "string",
|
2729
|
+
"description": "Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.",
|
2730
|
+
"location": "query"
|
2731
|
+
},
|
2732
|
+
"project": {
|
2733
|
+
"type": "string",
|
2734
|
+
"description": "Name of the project scoping this request.",
|
2735
|
+
"required": true,
|
2736
|
+
"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])?))",
|
2737
|
+
"location": "path"
|
2738
|
+
}
|
2739
|
+
},
|
2740
|
+
"parameterOrder": [
|
2741
|
+
"project"
|
2742
|
+
],
|
2743
|
+
"response": {
|
2744
|
+
"$ref": "KernelList"
|
2745
|
+
},
|
2746
|
+
"scopes": [
|
2747
|
+
"https://www.googleapis.com/auth/compute",
|
2748
|
+
"https://www.googleapis.com/auth/compute.readonly"
|
2749
|
+
]
|
2750
|
+
}
|
2751
|
+
}
|
2752
|
+
},
|
2753
|
+
"machineTypes": {
|
2754
|
+
"methods": {
|
2755
|
+
"get": {
|
2756
|
+
"id": "compute.machineTypes.get",
|
2757
|
+
"path": "{project}/global/machineTypes/{machineType}",
|
2758
|
+
"httpMethod": "GET",
|
2759
|
+
"description": "Returns the specified machine type resource.",
|
2760
|
+
"parameters": {
|
2761
|
+
"machineType": {
|
2762
|
+
"type": "string",
|
2763
|
+
"description": "Name of the machine type resource to return.",
|
2764
|
+
"required": true,
|
2765
|
+
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
2766
|
+
"location": "path"
|
2767
|
+
},
|
2768
|
+
"project": {
|
2769
|
+
"type": "string",
|
2770
|
+
"description": "Name of the project scoping this request.",
|
2771
|
+
"required": true,
|
2772
|
+
"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])?))",
|
2773
|
+
"location": "path"
|
2774
|
+
}
|
2775
|
+
},
|
2776
|
+
"parameterOrder": [
|
2777
|
+
"project",
|
2778
|
+
"machineType"
|
2779
|
+
],
|
2780
|
+
"response": {
|
2781
|
+
"$ref": "MachineType"
|
2782
|
+
},
|
2783
|
+
"scopes": [
|
2784
|
+
"https://www.googleapis.com/auth/compute",
|
2785
|
+
"https://www.googleapis.com/auth/compute.readonly"
|
2786
|
+
]
|
2787
|
+
},
|
2788
|
+
"list": {
|
2789
|
+
"id": "compute.machineTypes.list",
|
2790
|
+
"path": "{project}/global/machineTypes",
|
2791
|
+
"httpMethod": "GET",
|
2792
|
+
"description": "Retrieves the list of machine type resources available to the specified project.",
|
2793
|
+
"parameters": {
|
2794
|
+
"filter": {
|
2795
|
+
"type": "string",
|
2796
|
+
"description": "Optional. Filter expression for filtering listed resources.",
|
2797
|
+
"location": "query"
|
2798
|
+
},
|
2799
|
+
"maxResults": {
|
2800
|
+
"type": "integer",
|
2801
|
+
"description": "Optional. Maximum count of results to be returned. Maximum and default value is 100.",
|
2802
|
+
"default": "100",
|
2803
|
+
"format": "uint32",
|
2804
|
+
"minimum": "0",
|
2805
|
+
"maximum": "100",
|
2806
|
+
"location": "query"
|
2807
|
+
},
|
2808
|
+
"pageToken": {
|
2809
|
+
"type": "string",
|
2810
|
+
"description": "Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.",
|
2811
|
+
"location": "query"
|
2812
|
+
},
|
2813
|
+
"project": {
|
2814
|
+
"type": "string",
|
2815
|
+
"description": "Name of the project scoping this request.",
|
2816
|
+
"required": true,
|
2817
|
+
"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])?))",
|
2818
|
+
"location": "path"
|
2819
|
+
}
|
2820
|
+
},
|
2821
|
+
"parameterOrder": [
|
2822
|
+
"project"
|
2823
|
+
],
|
2824
|
+
"response": {
|
2825
|
+
"$ref": "MachineTypeList"
|
2826
|
+
},
|
2827
|
+
"scopes": [
|
2828
|
+
"https://www.googleapis.com/auth/compute",
|
2829
|
+
"https://www.googleapis.com/auth/compute.readonly"
|
2830
|
+
]
|
2831
|
+
}
|
2832
|
+
}
|
2833
|
+
},
|
2834
|
+
"networks": {
|
2835
|
+
"methods": {
|
2836
|
+
"delete": {
|
2837
|
+
"id": "compute.networks.delete",
|
2838
|
+
"path": "{project}/global/networks/{network}",
|
2839
|
+
"httpMethod": "DELETE",
|
2840
|
+
"description": "Deletes the specified network resource.",
|
2841
|
+
"parameters": {
|
2842
|
+
"network": {
|
2843
|
+
"type": "string",
|
2844
|
+
"description": "Name of the network resource to delete.",
|
2845
|
+
"required": true,
|
2846
|
+
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
2847
|
+
"location": "path"
|
2848
|
+
},
|
2849
|
+
"project": {
|
2850
|
+
"type": "string",
|
2851
|
+
"description": "Name of the project scoping this request.",
|
2852
|
+
"required": true,
|
2853
|
+
"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])?))",
|
2854
|
+
"location": "path"
|
2855
|
+
}
|
2856
|
+
},
|
2857
|
+
"parameterOrder": [
|
2858
|
+
"project",
|
2859
|
+
"network"
|
2860
|
+
],
|
2861
|
+
"response": {
|
2862
|
+
"$ref": "Operation"
|
2863
|
+
},
|
2864
|
+
"scopes": [
|
2865
|
+
"https://www.googleapis.com/auth/compute"
|
2866
|
+
]
|
2867
|
+
},
|
2868
|
+
"get": {
|
2869
|
+
"id": "compute.networks.get",
|
2870
|
+
"path": "{project}/global/networks/{network}",
|
2871
|
+
"httpMethod": "GET",
|
2872
|
+
"description": "Returns the specified network resource.",
|
2873
|
+
"parameters": {
|
2874
|
+
"network": {
|
2875
|
+
"type": "string",
|
2876
|
+
"description": "Name of the network resource to return.",
|
2877
|
+
"required": true,
|
2878
|
+
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
2879
|
+
"location": "path"
|
2880
|
+
},
|
2881
|
+
"project": {
|
2882
|
+
"type": "string",
|
2883
|
+
"description": "Name of the project scoping this request.",
|
2884
|
+
"required": true,
|
2885
|
+
"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])?))",
|
2886
|
+
"location": "path"
|
2887
|
+
}
|
2888
|
+
},
|
2889
|
+
"parameterOrder": [
|
2890
|
+
"project",
|
2891
|
+
"network"
|
2892
|
+
],
|
2893
|
+
"response": {
|
2894
|
+
"$ref": "Network"
|
2895
|
+
},
|
2896
|
+
"scopes": [
|
2897
|
+
"https://www.googleapis.com/auth/compute",
|
2898
|
+
"https://www.googleapis.com/auth/compute.readonly"
|
2899
|
+
]
|
2900
|
+
},
|
2901
|
+
"insert": {
|
2902
|
+
"id": "compute.networks.insert",
|
2903
|
+
"path": "{project}/global/networks",
|
2904
|
+
"httpMethod": "POST",
|
2905
|
+
"description": "Creates a network resource in the specified project using the data included in the request.",
|
2906
|
+
"parameters": {
|
2907
|
+
"project": {
|
2908
|
+
"type": "string",
|
2909
|
+
"description": "Name of the project scoping this request.",
|
2910
|
+
"required": true,
|
2911
|
+
"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])?))",
|
2912
|
+
"location": "path"
|
2913
|
+
}
|
2914
|
+
},
|
2915
|
+
"parameterOrder": [
|
2916
|
+
"project"
|
2917
|
+
],
|
2918
|
+
"request": {
|
2919
|
+
"$ref": "Network"
|
2920
|
+
},
|
2921
|
+
"response": {
|
2922
|
+
"$ref": "Operation"
|
2923
|
+
},
|
2924
|
+
"scopes": [
|
2925
|
+
"https://www.googleapis.com/auth/compute"
|
2926
|
+
]
|
2927
|
+
},
|
2928
|
+
"list": {
|
2929
|
+
"id": "compute.networks.list",
|
2930
|
+
"path": "{project}/global/networks",
|
2931
|
+
"httpMethod": "GET",
|
2932
|
+
"description": "Retrieves the list of network resources available to the specified project.",
|
2933
|
+
"parameters": {
|
2934
|
+
"filter": {
|
2935
|
+
"type": "string",
|
2936
|
+
"description": "Optional. Filter expression for filtering listed resources.",
|
2937
|
+
"location": "query"
|
2938
|
+
},
|
2939
|
+
"maxResults": {
|
2940
|
+
"type": "integer",
|
2941
|
+
"description": "Optional. Maximum count of results to be returned. Maximum and default value is 100.",
|
2942
|
+
"default": "100",
|
2943
|
+
"format": "uint32",
|
2944
|
+
"minimum": "0",
|
2945
|
+
"maximum": "100",
|
2946
|
+
"location": "query"
|
2947
|
+
},
|
2948
|
+
"pageToken": {
|
2949
|
+
"type": "string",
|
2950
|
+
"description": "Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.",
|
2951
|
+
"location": "query"
|
2952
|
+
},
|
2953
|
+
"project": {
|
2954
|
+
"type": "string",
|
2955
|
+
"description": "Name of the project scoping this request.",
|
2956
|
+
"required": true,
|
2957
|
+
"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])?))",
|
2958
|
+
"location": "path"
|
2959
|
+
}
|
2960
|
+
},
|
2961
|
+
"parameterOrder": [
|
2962
|
+
"project"
|
2963
|
+
],
|
2964
|
+
"response": {
|
2965
|
+
"$ref": "NetworkList"
|
2966
|
+
},
|
2967
|
+
"scopes": [
|
2968
|
+
"https://www.googleapis.com/auth/compute",
|
2969
|
+
"https://www.googleapis.com/auth/compute.readonly"
|
2970
|
+
]
|
2971
|
+
}
|
2972
|
+
}
|
2973
|
+
},
|
2974
|
+
"projects": {
|
2975
|
+
"methods": {
|
2976
|
+
"get": {
|
2977
|
+
"id": "compute.projects.get",
|
2978
|
+
"path": "{project}",
|
2979
|
+
"httpMethod": "GET",
|
2980
|
+
"description": "Returns the specified project resource.",
|
2981
|
+
"parameters": {
|
2982
|
+
"project": {
|
2983
|
+
"type": "string",
|
2984
|
+
"description": "Name of the project resource to retrieve.",
|
2985
|
+
"required": true,
|
2986
|
+
"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])?))",
|
2987
|
+
"location": "path"
|
2988
|
+
}
|
2989
|
+
},
|
2990
|
+
"parameterOrder": [
|
2991
|
+
"project"
|
2992
|
+
],
|
2993
|
+
"response": {
|
2994
|
+
"$ref": "Project"
|
2995
|
+
},
|
2996
|
+
"scopes": [
|
2997
|
+
"https://www.googleapis.com/auth/compute",
|
2998
|
+
"https://www.googleapis.com/auth/compute.readonly"
|
2999
|
+
]
|
3000
|
+
},
|
3001
|
+
"setCommonInstanceMetadata": {
|
3002
|
+
"id": "compute.projects.setCommonInstanceMetadata",
|
3003
|
+
"path": "{project}/setCommonInstanceMetadata",
|
3004
|
+
"httpMethod": "POST",
|
3005
|
+
"description": "Sets metadata common to all instances within the specified project using the data included in the request.",
|
3006
|
+
"parameters": {
|
3007
|
+
"project": {
|
3008
|
+
"type": "string",
|
3009
|
+
"description": "Name of the project scoping this request.",
|
3010
|
+
"required": true,
|
3011
|
+
"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])?))",
|
3012
|
+
"location": "path"
|
3013
|
+
}
|
3014
|
+
},
|
3015
|
+
"parameterOrder": [
|
3016
|
+
"project"
|
3017
|
+
],
|
3018
|
+
"request": {
|
3019
|
+
"$ref": "Metadata"
|
3020
|
+
},
|
3021
|
+
"response": {
|
3022
|
+
"$ref": "Operation"
|
3023
|
+
},
|
3024
|
+
"scopes": [
|
3025
|
+
"https://www.googleapis.com/auth/compute"
|
3026
|
+
]
|
3027
|
+
}
|
3028
|
+
}
|
3029
|
+
},
|
3030
|
+
"snapshots": {
|
3031
|
+
"methods": {
|
3032
|
+
"delete": {
|
3033
|
+
"id": "compute.snapshots.delete",
|
3034
|
+
"path": "{project}/global/snapshots/{snapshot}",
|
3035
|
+
"httpMethod": "DELETE",
|
3036
|
+
"description": "Deletes the specified persistent disk snapshot resource.",
|
3037
|
+
"parameters": {
|
3038
|
+
"project": {
|
3039
|
+
"type": "string",
|
3040
|
+
"description": "Name of the project scoping this request.",
|
3041
|
+
"required": true,
|
3042
|
+
"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])?))",
|
3043
|
+
"location": "path"
|
3044
|
+
},
|
3045
|
+
"snapshot": {
|
3046
|
+
"type": "string",
|
3047
|
+
"description": "Name of the persistent disk snapshot resource to delete.",
|
3048
|
+
"required": true,
|
3049
|
+
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
3050
|
+
"location": "path"
|
3051
|
+
}
|
3052
|
+
},
|
3053
|
+
"parameterOrder": [
|
3054
|
+
"project",
|
3055
|
+
"snapshot"
|
3056
|
+
],
|
3057
|
+
"response": {
|
3058
|
+
"$ref": "Operation"
|
3059
|
+
},
|
3060
|
+
"scopes": [
|
3061
|
+
"https://www.googleapis.com/auth/compute"
|
3062
|
+
]
|
3063
|
+
},
|
3064
|
+
"get": {
|
3065
|
+
"id": "compute.snapshots.get",
|
3066
|
+
"path": "{project}/global/snapshots/{snapshot}",
|
3067
|
+
"httpMethod": "GET",
|
3068
|
+
"description": "Returns the specified persistent disk snapshot resource.",
|
3069
|
+
"parameters": {
|
3070
|
+
"project": {
|
3071
|
+
"type": "string",
|
3072
|
+
"description": "Name of the project scoping this request.",
|
3073
|
+
"required": true,
|
3074
|
+
"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])?))",
|
3075
|
+
"location": "path"
|
3076
|
+
},
|
3077
|
+
"snapshot": {
|
3078
|
+
"type": "string",
|
3079
|
+
"description": "Name of the persistent disk snapshot resource to return.",
|
3080
|
+
"required": true,
|
3081
|
+
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
3082
|
+
"location": "path"
|
3083
|
+
}
|
3084
|
+
},
|
3085
|
+
"parameterOrder": [
|
3086
|
+
"project",
|
3087
|
+
"snapshot"
|
3088
|
+
],
|
3089
|
+
"response": {
|
3090
|
+
"$ref": "Snapshot"
|
3091
|
+
},
|
3092
|
+
"scopes": [
|
3093
|
+
"https://www.googleapis.com/auth/compute",
|
3094
|
+
"https://www.googleapis.com/auth/compute.readonly"
|
3095
|
+
]
|
3096
|
+
},
|
3097
|
+
"insert": {
|
3098
|
+
"id": "compute.snapshots.insert",
|
3099
|
+
"path": "{project}/global/snapshots",
|
3100
|
+
"httpMethod": "POST",
|
3101
|
+
"description": "Creates a persistent disk snapshot resource in the specified project using the data included in the request.",
|
3102
|
+
"parameters": {
|
3103
|
+
"project": {
|
3104
|
+
"type": "string",
|
3105
|
+
"description": "Name of the project scoping this request.",
|
3106
|
+
"required": true,
|
3107
|
+
"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])?))",
|
3108
|
+
"location": "path"
|
3109
|
+
}
|
3110
|
+
},
|
3111
|
+
"parameterOrder": [
|
3112
|
+
"project"
|
3113
|
+
],
|
3114
|
+
"request": {
|
3115
|
+
"$ref": "Snapshot"
|
3116
|
+
},
|
3117
|
+
"response": {
|
3118
|
+
"$ref": "Operation"
|
3119
|
+
},
|
3120
|
+
"scopes": [
|
3121
|
+
"https://www.googleapis.com/auth/compute"
|
3122
|
+
]
|
3123
|
+
},
|
3124
|
+
"list": {
|
3125
|
+
"id": "compute.snapshots.list",
|
3126
|
+
"path": "{project}/global/snapshots",
|
3127
|
+
"httpMethod": "GET",
|
3128
|
+
"description": "Retrieves the list of persistent disk snapshot resources contained within the specified project.",
|
3129
|
+
"parameters": {
|
3130
|
+
"filter": {
|
3131
|
+
"type": "string",
|
3132
|
+
"description": "Optional. Filter expression for filtering listed resources.",
|
3133
|
+
"location": "query"
|
3134
|
+
},
|
3135
|
+
"maxResults": {
|
3136
|
+
"type": "integer",
|
3137
|
+
"description": "Optional. Maximum count of results to be returned. Maximum and default value is 100.",
|
3138
|
+
"default": "100",
|
3139
|
+
"format": "uint32",
|
3140
|
+
"minimum": "0",
|
3141
|
+
"maximum": "100",
|
3142
|
+
"location": "query"
|
3143
|
+
},
|
3144
|
+
"pageToken": {
|
3145
|
+
"type": "string",
|
3146
|
+
"description": "Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.",
|
3147
|
+
"location": "query"
|
3148
|
+
},
|
3149
|
+
"project": {
|
3150
|
+
"type": "string",
|
3151
|
+
"description": "Name of the project scoping this request.",
|
3152
|
+
"required": true,
|
3153
|
+
"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])?))",
|
3154
|
+
"location": "path"
|
3155
|
+
}
|
3156
|
+
},
|
3157
|
+
"parameterOrder": [
|
3158
|
+
"project"
|
3159
|
+
],
|
3160
|
+
"response": {
|
3161
|
+
"$ref": "SnapshotList"
|
3162
|
+
},
|
3163
|
+
"scopes": [
|
3164
|
+
"https://www.googleapis.com/auth/compute",
|
3165
|
+
"https://www.googleapis.com/auth/compute.readonly"
|
3166
|
+
]
|
3167
|
+
}
|
3168
|
+
}
|
3169
|
+
},
|
3170
|
+
"zoneOperations": {
|
3171
|
+
"methods": {
|
3172
|
+
"delete": {
|
3173
|
+
"id": "compute.zoneOperations.delete",
|
3174
|
+
"path": "{project}/zones/{zone}/operations/{operation}",
|
3175
|
+
"httpMethod": "DELETE",
|
3176
|
+
"description": "Deletes the specified zone-specific operation resource.",
|
3177
|
+
"parameters": {
|
3178
|
+
"operation": {
|
3179
|
+
"type": "string",
|
3180
|
+
"description": "Name of the operation resource to delete.",
|
3181
|
+
"required": true,
|
3182
|
+
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
3183
|
+
"location": "path"
|
3184
|
+
},
|
3185
|
+
"project": {
|
3186
|
+
"type": "string",
|
3187
|
+
"description": "Name of the project scoping this request.",
|
3188
|
+
"required": true,
|
3189
|
+
"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])?))",
|
3190
|
+
"location": "path"
|
3191
|
+
},
|
3192
|
+
"zone": {
|
3193
|
+
"type": "string",
|
3194
|
+
"description": "Name of the zone scoping this request.",
|
3195
|
+
"required": true,
|
3196
|
+
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
3197
|
+
"location": "path"
|
3198
|
+
}
|
3199
|
+
},
|
3200
|
+
"parameterOrder": [
|
3201
|
+
"project",
|
3202
|
+
"zone",
|
3203
|
+
"operation"
|
3204
|
+
],
|
3205
|
+
"scopes": [
|
3206
|
+
"https://www.googleapis.com/auth/compute"
|
3207
|
+
]
|
3208
|
+
},
|
3209
|
+
"get": {
|
3210
|
+
"id": "compute.zoneOperations.get",
|
3211
|
+
"path": "{project}/zones/{zone}/operations/{operation}",
|
3212
|
+
"httpMethod": "GET",
|
3213
|
+
"description": "Retrieves the specified zone-specific operation resource.",
|
3214
|
+
"parameters": {
|
3215
|
+
"operation": {
|
3216
|
+
"type": "string",
|
3217
|
+
"description": "Name of the operation resource to return.",
|
3218
|
+
"required": true,
|
3219
|
+
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
3220
|
+
"location": "path"
|
3221
|
+
},
|
3222
|
+
"project": {
|
3223
|
+
"type": "string",
|
3224
|
+
"description": "Name of the project scoping this request.",
|
3225
|
+
"required": true,
|
3226
|
+
"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])?))",
|
3227
|
+
"location": "path"
|
3228
|
+
},
|
3229
|
+
"zone": {
|
3230
|
+
"type": "string",
|
3231
|
+
"description": "Name of the zone scoping this request.",
|
3232
|
+
"required": true,
|
3233
|
+
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
3234
|
+
"location": "path"
|
3235
|
+
}
|
3236
|
+
},
|
3237
|
+
"parameterOrder": [
|
3238
|
+
"project",
|
3239
|
+
"zone",
|
3240
|
+
"operation"
|
3241
|
+
],
|
3242
|
+
"response": {
|
3243
|
+
"$ref": "Operation"
|
3244
|
+
},
|
3245
|
+
"scopes": [
|
3246
|
+
"https://www.googleapis.com/auth/compute",
|
3247
|
+
"https://www.googleapis.com/auth/compute.readonly"
|
3248
|
+
]
|
3249
|
+
},
|
3250
|
+
"list": {
|
3251
|
+
"id": "compute.zoneOperations.list",
|
3252
|
+
"path": "{project}/zones/{zone}/operations",
|
3253
|
+
"httpMethod": "GET",
|
3254
|
+
"description": "Retrieves the list of operation resources contained within the specified zone.",
|
3255
|
+
"parameters": {
|
3256
|
+
"filter": {
|
3257
|
+
"type": "string",
|
3258
|
+
"description": "Optional. Filter expression for filtering listed resources.",
|
3259
|
+
"location": "query"
|
3260
|
+
},
|
3261
|
+
"maxResults": {
|
3262
|
+
"type": "integer",
|
3263
|
+
"description": "Optional. Maximum count of results to be returned. Maximum and default value is 100.",
|
3264
|
+
"default": "100",
|
3265
|
+
"format": "uint32",
|
3266
|
+
"minimum": "0",
|
3267
|
+
"maximum": "100",
|
3268
|
+
"location": "query"
|
3269
|
+
},
|
3270
|
+
"pageToken": {
|
3271
|
+
"type": "string",
|
3272
|
+
"description": "Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.",
|
3273
|
+
"location": "query"
|
3274
|
+
},
|
3275
|
+
"project": {
|
3276
|
+
"type": "string",
|
3277
|
+
"description": "Name of the project scoping this request.",
|
3278
|
+
"required": true,
|
3279
|
+
"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])?))",
|
3280
|
+
"location": "path"
|
3281
|
+
},
|
3282
|
+
"zone": {
|
3283
|
+
"type": "string",
|
3284
|
+
"description": "Name of the zone scoping this request.",
|
3285
|
+
"required": true,
|
3286
|
+
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
3287
|
+
"location": "path"
|
3288
|
+
}
|
3289
|
+
},
|
3290
|
+
"parameterOrder": [
|
3291
|
+
"project",
|
3292
|
+
"zone"
|
3293
|
+
],
|
3294
|
+
"response": {
|
3295
|
+
"$ref": "OperationList"
|
3296
|
+
},
|
3297
|
+
"scopes": [
|
3298
|
+
"https://www.googleapis.com/auth/compute",
|
3299
|
+
"https://www.googleapis.com/auth/compute.readonly"
|
3300
|
+
]
|
3301
|
+
}
|
3302
|
+
}
|
3303
|
+
},
|
3304
|
+
"zones": {
|
3305
|
+
"methods": {
|
3306
|
+
"get": {
|
3307
|
+
"id": "compute.zones.get",
|
3308
|
+
"path": "{project}/zones/{zone}",
|
3309
|
+
"httpMethod": "GET",
|
3310
|
+
"description": "Returns the specified zone resource.",
|
3311
|
+
"parameters": {
|
3312
|
+
"project": {
|
3313
|
+
"type": "string",
|
3314
|
+
"description": "Name of the project scoping this request.",
|
3315
|
+
"required": true,
|
3316
|
+
"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])?))",
|
3317
|
+
"location": "path"
|
3318
|
+
},
|
3319
|
+
"zone": {
|
3320
|
+
"type": "string",
|
3321
|
+
"description": "Name of the zone resource to return.",
|
3322
|
+
"required": true,
|
3323
|
+
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
3324
|
+
"location": "path"
|
3325
|
+
}
|
3326
|
+
},
|
3327
|
+
"parameterOrder": [
|
3328
|
+
"project",
|
3329
|
+
"zone"
|
3330
|
+
],
|
3331
|
+
"response": {
|
3332
|
+
"$ref": "Zone"
|
3333
|
+
},
|
3334
|
+
"scopes": [
|
3335
|
+
"https://www.googleapis.com/auth/compute",
|
3336
|
+
"https://www.googleapis.com/auth/compute.readonly"
|
3337
|
+
]
|
3338
|
+
},
|
3339
|
+
"list": {
|
3340
|
+
"id": "compute.zones.list",
|
3341
|
+
"path": "{project}/zones",
|
3342
|
+
"httpMethod": "GET",
|
3343
|
+
"description": "Retrieves the list of zone resources available to the specified project.",
|
3344
|
+
"parameters": {
|
3345
|
+
"filter": {
|
3346
|
+
"type": "string",
|
3347
|
+
"description": "Optional. Filter expression for filtering listed resources.",
|
3348
|
+
"location": "query"
|
3349
|
+
},
|
3350
|
+
"maxResults": {
|
3351
|
+
"type": "integer",
|
3352
|
+
"description": "Optional. Maximum count of results to be returned. Maximum and default value is 100.",
|
3353
|
+
"default": "100",
|
3354
|
+
"format": "uint32",
|
3355
|
+
"minimum": "0",
|
3356
|
+
"maximum": "100",
|
3357
|
+
"location": "query"
|
3358
|
+
},
|
3359
|
+
"pageToken": {
|
3360
|
+
"type": "string",
|
3361
|
+
"description": "Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.",
|
3362
|
+
"location": "query"
|
3363
|
+
},
|
3364
|
+
"project": {
|
3365
|
+
"type": "string",
|
3366
|
+
"description": "Name of the project scoping this request.",
|
3367
|
+
"required": true,
|
3368
|
+
"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])?))",
|
3369
|
+
"location": "path"
|
3370
|
+
}
|
3371
|
+
},
|
3372
|
+
"parameterOrder": [
|
3373
|
+
"project"
|
3374
|
+
],
|
3375
|
+
"response": {
|
3376
|
+
"$ref": "ZoneList"
|
3377
|
+
},
|
3378
|
+
"scopes": [
|
3379
|
+
"https://www.googleapis.com/auth/compute",
|
3380
|
+
"https://www.googleapis.com/auth/compute.readonly"
|
3381
|
+
]
|
3382
|
+
}
|
3383
|
+
}
|
3384
|
+
}
|
3385
|
+
}
|
3386
|
+
}
|