vas 0.4.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +1 -1
- data/lib/vas.rb +44 -1
- data/lib/vas/gemfire/agent_instances.rb +4 -3
- data/lib/vas/gemfire/agent_live_configurations.rb +3 -3
- data/lib/vas/gemfire/agent_node_instances.rb +2 -2
- data/lib/vas/gemfire/agent_node_live_configurations.rb +39 -0
- data/lib/vas/gemfire/application_code.rb +13 -12
- data/lib/vas/gemfire/application_code_images.rb +13 -11
- data/lib/vas/gemfire/cache_server_instances.rb +20 -12
- data/lib/vas/gemfire/cache_server_live_configurations.rb +3 -3
- data/lib/vas/gemfire/cache_server_node_instances.rb +16 -9
- data/lib/vas/gemfire/cache_server_node_live_configurations.rb +39 -0
- data/lib/vas/gemfire/disk_stores.rb +19 -11
- data/lib/vas/gemfire/gemfire.rb +4 -4
- data/lib/vas/gemfire/groups.rb +17 -10
- data/lib/vas/gemfire/installations.rb +12 -3
- data/lib/vas/gemfire/live_application_codes.rb +2 -2
- data/lib/vas/gemfire/locator_instances.rb +23 -13
- data/lib/vas/gemfire/locator_live_configurations.rb +3 -3
- data/lib/vas/gemfire/locator_node_instances.rb +22 -14
- data/lib/vas/gemfire/locator_node_live_configurations.rb +39 -0
- data/lib/vas/gemfire/nodes.rb +27 -6
- data/lib/vas/gemfire/pending_application_codes.rb +7 -2
- data/lib/vas/gemfire/statistics.rb +18 -11
- data/lib/vas/rabbitmq/groups.rb +6 -4
- data/lib/vas/rabbitmq/installations.rb +14 -6
- data/lib/vas/rabbitmq/instances.rb +9 -6
- data/lib/vas/rabbitmq/live_configurations.rb +3 -3
- data/lib/vas/rabbitmq/node_instances.rb +2 -2
- data/lib/vas/rabbitmq/node_live_configurations.rb +39 -0
- data/lib/vas/rabbitmq/nodes.rb +11 -8
- data/lib/vas/rabbitmq/plugin_images.rb +14 -7
- data/lib/vas/rabbitmq/plugins.rb +29 -20
- data/lib/vas/rabbitmq/rabbitmq.rb +4 -4
- data/lib/vas/shared/collection.rb +34 -11
- data/lib/vas/shared/configuration.rb +16 -9
- data/lib/vas/shared/deletable.rb +34 -0
- data/lib/vas/shared/groups.rb +26 -15
- data/lib/vas/shared/installation_images.rb +18 -10
- data/lib/vas/shared/installations.rb +22 -22
- data/lib/vas/shared/instance.rb +40 -19
- data/lib/vas/shared/live_configuration.rb +42 -0
- data/lib/vas/shared/logs.rb +27 -14
- data/lib/vas/shared/mutable_collection.rb +13 -5
- data/lib/vas/shared/node_configuration.rb +74 -0
- data/lib/vas/shared/node_instances.rb +32 -14
- data/lib/vas/shared/nodes.rb +37 -14
- data/lib/vas/shared/{pending_configuration.rb → pending_configurations.rb} +4 -2
- data/lib/vas/shared/resource.rb +12 -2
- data/lib/vas/shared/security.rb +11 -4
- data/lib/vas/shared/state_resource.rb +1 -1
- data/lib/vas/sqlfire/agent_instances.rb +98 -0
- data/lib/vas/sqlfire/agent_live_configurations.rb +39 -0
- data/lib/vas/sqlfire/agent_logs.rb +39 -0
- data/lib/vas/sqlfire/agent_node_instances.rb +54 -0
- data/lib/vas/sqlfire/agent_node_live_configurations.rb +39 -0
- data/lib/vas/sqlfire/agent_pending_configurations.rb +39 -0
- data/lib/vas/sqlfire/groups.rb +58 -0
- data/lib/vas/sqlfire/installation_images.rb +39 -0
- data/lib/vas/sqlfire/installations.rb +61 -0
- data/lib/vas/sqlfire/locator_instances.rb +210 -0
- data/lib/vas/sqlfire/locator_live_configurations.rb +39 -0
- data/lib/vas/sqlfire/locator_logs.rb +39 -0
- data/lib/vas/sqlfire/locator_node_instances.rb +91 -0
- data/lib/vas/sqlfire/locator_node_live_configurations.rb +39 -0
- data/lib/vas/sqlfire/locator_pending_configurations.rb +39 -0
- data/lib/vas/sqlfire/nodes.rb +73 -0
- data/lib/vas/sqlfire/server_instances.rb +192 -0
- data/lib/vas/sqlfire/server_live_configurations.rb +39 -0
- data/lib/vas/sqlfire/server_logs.rb +39 -0
- data/lib/vas/sqlfire/server_node_instances.rb +86 -0
- data/lib/vas/sqlfire/server_node_live_configurations.rb +39 -0
- data/lib/vas/sqlfire/server_pending_configurations.rb +39 -0
- data/lib/vas/sqlfire/sqlfire.rb +44 -0
- data/lib/vas/tc_server/applications.rb +32 -21
- data/lib/vas/tc_server/configuration.rb +1 -1
- data/lib/vas/tc_server/groups.rb +7 -4
- data/lib/vas/tc_server/installations.rb +16 -6
- data/lib/vas/tc_server/instances.rb +25 -13
- data/lib/vas/tc_server/live_configurations.rb +11 -1
- data/lib/vas/tc_server/logs.rb +4 -2
- data/lib/vas/tc_server/node_applications.rb +21 -17
- data/lib/vas/tc_server/node_instances.rb +23 -9
- data/lib/vas/tc_server/node_live_configurations.rb +39 -0
- data/lib/vas/tc_server/node_revisions.rb +15 -10
- data/lib/vas/tc_server/nodes.rb +15 -8
- data/lib/vas/tc_server/revision_images.rb +16 -10
- data/lib/vas/tc_server/revisions.rb +20 -16
- data/lib/vas/tc_server/tc_server.rb +5 -5
- data/lib/vas/tc_server/template_images.rb +13 -7
- data/lib/vas/tc_server/templates.rb +21 -13
- data/lib/vas/util/client.rb +15 -6
- data/lib/vas/vfabric/agent_image.rb +1 -1
- data/lib/vas/vfabric/nodes.rb +4 -11
- data/lib/vas/vfabric/v_fabric.rb +2 -2
- data/lib/vas/vfabric_administration_server.rb +37 -6
- data/lib/vas/web_server/configuration.rb +29 -0
- data/lib/vas/web_server/groups.rb +44 -0
- data/lib/vas/web_server/installation_images.rb +54 -0
- data/lib/vas/web_server/installations.rb +52 -0
- data/lib/vas/web_server/instances.rb +65 -0
- data/lib/vas/web_server/live_configurations.rb +39 -0
- data/lib/vas/web_server/logs.rb +37 -0
- data/lib/vas/web_server/node_instances.rb +39 -0
- data/lib/vas/web_server/node_live_configurations.rb +39 -0
- data/lib/vas/web_server/nodes.rb +53 -0
- data/lib/vas/web_server/pending_configurations.rb +39 -0
- data/lib/vas/web_server/web_server.rb +43 -0
- metadata +137 -76
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# vFabric Administration Server Ruby API
|
|
2
|
+
# Copyright (c) 2012 VMware, Inc. All Rights Reserved.
|
|
3
|
+
#
|
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
# you may not use this file except in compliance with the License.
|
|
6
|
+
# You may obtain a copy of the License at
|
|
7
|
+
#
|
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
#
|
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
# See the License for the specific language governing permissions and
|
|
14
|
+
# limitations under the License.
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
module WebServer
|
|
18
|
+
|
|
19
|
+
# Used to enumerate, create, and delete Web Server instances
|
|
20
|
+
class Instances < Shared::MutableCollection
|
|
21
|
+
|
|
22
|
+
# @private
|
|
23
|
+
def initialize(location, client)
|
|
24
|
+
super(location, client, "group-instances", Instance)
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
# Creates a new instance
|
|
28
|
+
#
|
|
29
|
+
# @param installation [Installation] the installation to be used by the instance
|
|
30
|
+
# @param name [String] the name of the instance
|
|
31
|
+
# @param properties [Hash] optional properties to use when creating the instance
|
|
32
|
+
#
|
|
33
|
+
# @return [Instance] the new instance
|
|
34
|
+
def create(installation, name, properties = nil)
|
|
35
|
+
payload = { :installation => installation.location,
|
|
36
|
+
:name => name}
|
|
37
|
+
payload[:properties] = properties unless properties.nil?
|
|
38
|
+
|
|
39
|
+
super(payload, 'group-instance')
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# A Web Server instance
|
|
45
|
+
class Instance < Shared::Instance
|
|
46
|
+
|
|
47
|
+
# @private
|
|
48
|
+
def initialize(location, client)
|
|
49
|
+
super(location, client, Group, Installation, LiveConfigurations, PendingConfigurations, NodeInstance, 'node-instance')
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# Updates the installation used by the instance
|
|
53
|
+
#
|
|
54
|
+
# @param installation [Installation] the installation to be used by the instance
|
|
55
|
+
#
|
|
56
|
+
# @return [void]
|
|
57
|
+
def update(installation)
|
|
58
|
+
payload = { :installation => installation.location }
|
|
59
|
+
client.post(location, payload)
|
|
60
|
+
reload
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
end
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# vFabric Administration Server Ruby API
|
|
2
|
+
# Copyright (c) 2012 VMware, Inc. All Rights Reserved.
|
|
3
|
+
#
|
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
# you may not use this file except in compliance with the License.
|
|
6
|
+
# You may obtain a copy of the License at
|
|
7
|
+
#
|
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
#
|
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
# See the License for the specific language governing permissions and
|
|
14
|
+
# limitations under the License.
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
module WebServer
|
|
18
|
+
|
|
19
|
+
# Used to enumerate an instance's live configuration
|
|
20
|
+
class LiveConfigurations < Shared::Collection
|
|
21
|
+
|
|
22
|
+
# @private
|
|
23
|
+
def initialize(location, client)
|
|
24
|
+
super(location, client, 'live-configurations', Configuration)
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
# A live configuration file in a Web Server instance
|
|
30
|
+
class LiveConfiguration < Shared::LiveConfiguration
|
|
31
|
+
|
|
32
|
+
# @private
|
|
33
|
+
def initialize(location, client)
|
|
34
|
+
super(location, client, 'group-instance', Instance, NodeLiveConfiguration)
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
end
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# vFabric Administration Server Ruby API
|
|
2
|
+
# Copyright (c) 2012 VMware, Inc. All Rights Reserved.
|
|
3
|
+
#
|
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
# you may not use this file except in compliance with the License.
|
|
6
|
+
# You may obtain a copy of the License at
|
|
7
|
+
#
|
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
#
|
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
# See the License for the specific language governing permissions and
|
|
14
|
+
# limitations under the License.
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
module WebServer
|
|
18
|
+
|
|
19
|
+
# Used to enumerate a Web Server node instance's logs
|
|
20
|
+
class Logs < Shared::Logs
|
|
21
|
+
|
|
22
|
+
def initialize(location, client)
|
|
23
|
+
super(location, client, Log)
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# A log file in a Web Server node instance
|
|
29
|
+
class Log < Shared::Log
|
|
30
|
+
|
|
31
|
+
def initialize(location, client)
|
|
32
|
+
super(location, client, 'node-instance', NodeInstance)
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
end
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# vFabric Administration Server Ruby API
|
|
2
|
+
# Copyright (c) 2012 VMware, Inc. All Rights Reserved.
|
|
3
|
+
#
|
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
# you may not use this file except in compliance with the License.
|
|
6
|
+
# You may obtain a copy of the License at
|
|
7
|
+
#
|
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
#
|
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
# See the License for the specific language governing permissions and
|
|
14
|
+
# limitations under the License.
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
module WebServer
|
|
18
|
+
|
|
19
|
+
# Used to enumerate Web Server instances on an individual node
|
|
20
|
+
class NodeInstances < Shared::NodeInstances
|
|
21
|
+
|
|
22
|
+
# @private
|
|
23
|
+
def initialize(location, client)
|
|
24
|
+
super(location, client, 'node-instances', NodeInstance)
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
# A Web Server node instance
|
|
30
|
+
class NodeInstance < Shared::NodeInstance
|
|
31
|
+
|
|
32
|
+
# @private
|
|
33
|
+
def initialize(location, client)
|
|
34
|
+
super(location, client, Node, Logs, Instance, 'group-instance', NodeLiveConfigurations)
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
end
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# vFabric Administration Server Ruby API
|
|
2
|
+
# Copyright (c) 2012 VMware, Inc. All Rights Reserved.
|
|
3
|
+
#
|
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
# you may not use this file except in compliance with the License.
|
|
6
|
+
# You may obtain a copy of the License at
|
|
7
|
+
#
|
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
#
|
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
# See the License for the specific language governing permissions and
|
|
14
|
+
# limitations under the License.
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
module WebServer
|
|
18
|
+
|
|
19
|
+
# Used to enumerate a node instance's live configuration
|
|
20
|
+
class NodeLiveConfigurations < Shared::Collection
|
|
21
|
+
|
|
22
|
+
# @private
|
|
23
|
+
def initialize(location, client)
|
|
24
|
+
super(location, client, 'node-live-configurations', NodeLiveConfiguration)
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
# A live configuration file in a node instance
|
|
30
|
+
class NodeLiveConfiguration < Shared::NodeConfiguration
|
|
31
|
+
|
|
32
|
+
# @private
|
|
33
|
+
def initialize(location, client)
|
|
34
|
+
super(location, client, 'node-instance', NodeInstance, LiveConfiguration)
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
end
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# vFabric Administration Server Ruby API
|
|
2
|
+
# Copyright (c) 2012 VMware, Inc. All Rights Reserved.
|
|
3
|
+
#
|
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
# you may not use this file except in compliance with the License.
|
|
6
|
+
# You may obtain a copy of the License at
|
|
7
|
+
#
|
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
#
|
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
# See the License for the specific language governing permissions and
|
|
14
|
+
# limitations under the License.
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
module WebServer
|
|
18
|
+
|
|
19
|
+
# Used to enumerate Web Server nodes
|
|
20
|
+
class Nodes < Shared::Collection
|
|
21
|
+
|
|
22
|
+
# @private
|
|
23
|
+
def initialize(location, client)
|
|
24
|
+
super(location, client, 'nodes', Node)
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
# A Web Server node
|
|
30
|
+
class Node < Shared::GroupableNode
|
|
31
|
+
|
|
32
|
+
attr_reader :instances
|
|
33
|
+
|
|
34
|
+
# @private
|
|
35
|
+
def initialize(location, client)
|
|
36
|
+
super(location, client, Group)
|
|
37
|
+
|
|
38
|
+
@node_instances_location = Util::LinkUtils.get_link_href(details, 'node-instances')
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# @return [NodeInstances] the node's instances
|
|
42
|
+
def instances
|
|
43
|
+
@instances ||= NodeInstances.new(@node_instances_location, client)
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# @return [String] a string representation of the node
|
|
47
|
+
def to_s
|
|
48
|
+
"#<#{self.class} host_names='#{host_names}' ip_addresses='#{ip_addresses}' ipv4_addresses='#{ipv4_addresses}' ipv6_addresses='#{ipv6_addresses}' operating_system='#{operating_system}' architecture='#{architecture}' agent_home='#{agent_home}' metedata='#{metadata}'>"
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
end
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# vFabric Administration Server Ruby API
|
|
2
|
+
# Copyright (c) 2012 VMware, Inc. All Rights Reserved.
|
|
3
|
+
#
|
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
# you may not use this file except in compliance with the License.
|
|
6
|
+
# You may obtain a copy of the License at
|
|
7
|
+
#
|
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
#
|
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
# See the License for the specific language governing permissions and
|
|
14
|
+
# limitations under the License.
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
module WebServer
|
|
18
|
+
|
|
19
|
+
# Used to enumerate an instance's pending configuration
|
|
20
|
+
class PendingConfigurations < Shared::PendingConfigurations
|
|
21
|
+
|
|
22
|
+
# @private
|
|
23
|
+
def initialize(location, client)
|
|
24
|
+
super(location, client, 'pending-configurations', PendingConfiguration)
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
# A configuration file that is pending
|
|
30
|
+
class PendingConfiguration < Shared::PendingConfiguration
|
|
31
|
+
|
|
32
|
+
# @private
|
|
33
|
+
def initialize(location, client)
|
|
34
|
+
super(location, client, 'group-instance', Instance)
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
end
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# vFabric Administration Server Ruby API
|
|
2
|
+
# Copyright (c) 2012 VMware, Inc. All Rights Reserved.
|
|
3
|
+
#
|
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
# you may not use this file except in compliance with the License.
|
|
6
|
+
# You may obtain a copy of the License at
|
|
7
|
+
#
|
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
#
|
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
# See the License for the specific language governing permissions and
|
|
14
|
+
# limitations under the License.
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# API for administering vFabric Web Server
|
|
18
|
+
module WebServer
|
|
19
|
+
|
|
20
|
+
# The entry point to the API for administering vFabric Web Server
|
|
21
|
+
class WebServer
|
|
22
|
+
|
|
23
|
+
# @return [Groups] the Web Server groups
|
|
24
|
+
attr_reader :groups
|
|
25
|
+
|
|
26
|
+
# @return [InstallationImages] the Web Server installation images
|
|
27
|
+
attr_reader :installation_images
|
|
28
|
+
|
|
29
|
+
# @return [Nodes] the Web Server Nodes
|
|
30
|
+
attr_reader :nodes
|
|
31
|
+
|
|
32
|
+
# @private
|
|
33
|
+
def initialize(location, client)
|
|
34
|
+
|
|
35
|
+
json = client.get(location)
|
|
36
|
+
|
|
37
|
+
@groups = Groups.new(Util::LinkUtils.get_link_href(json, 'groups'), client)
|
|
38
|
+
@installation_images = InstallationImages.new(Util::LinkUtils.get_link_href(json, 'installation-images'), client)
|
|
39
|
+
@nodes = Nodes.new(Util::LinkUtils.get_link_href(json, 'nodes'), client)
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
end
|
|
43
|
+
end
|
metadata
CHANGED
|
@@ -1,105 +1,113 @@
|
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: vas
|
|
3
|
-
version: !ruby/object:Gem::Version
|
|
4
|
-
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
hash: 23
|
|
5
5
|
prerelease:
|
|
6
|
+
segments:
|
|
7
|
+
- 1
|
|
8
|
+
- 0
|
|
9
|
+
- 0
|
|
10
|
+
version: 1.0.0
|
|
6
11
|
platform: ruby
|
|
7
|
-
authors:
|
|
12
|
+
authors:
|
|
8
13
|
- VMware
|
|
9
14
|
autorequire:
|
|
10
15
|
bindir: bin
|
|
11
16
|
cert_chain: []
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
+
|
|
18
|
+
date: 2012-10-17 00:00:00 Z
|
|
19
|
+
dependencies:
|
|
20
|
+
- !ruby/object:Gem::Dependency
|
|
21
|
+
prerelease: false
|
|
22
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
|
17
23
|
none: false
|
|
18
|
-
requirements:
|
|
24
|
+
requirements:
|
|
19
25
|
- - ~>
|
|
20
|
-
- !ruby/object:Gem::Version
|
|
26
|
+
- !ruby/object:Gem::Version
|
|
27
|
+
hash: 13
|
|
28
|
+
segments:
|
|
29
|
+
- 1
|
|
30
|
+
- 7
|
|
31
|
+
- 3
|
|
21
32
|
version: 1.7.3
|
|
22
33
|
type: :runtime
|
|
34
|
+
name: json_pure
|
|
35
|
+
version_requirements: *id001
|
|
36
|
+
- !ruby/object:Gem::Dependency
|
|
23
37
|
prerelease: false
|
|
24
|
-
|
|
25
|
-
none: false
|
|
26
|
-
requirements:
|
|
27
|
-
- - ~>
|
|
28
|
-
- !ruby/object:Gem::Version
|
|
29
|
-
version: 1.7.3
|
|
30
|
-
- !ruby/object:Gem::Dependency
|
|
31
|
-
name: multipart-post
|
|
32
|
-
requirement: !ruby/object:Gem::Requirement
|
|
38
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
|
33
39
|
none: false
|
|
34
|
-
requirements:
|
|
40
|
+
requirements:
|
|
35
41
|
- - ~>
|
|
36
|
-
- !ruby/object:Gem::Version
|
|
42
|
+
- !ruby/object:Gem::Version
|
|
43
|
+
hash: 25
|
|
44
|
+
segments:
|
|
45
|
+
- 1
|
|
46
|
+
- 1
|
|
47
|
+
- 5
|
|
37
48
|
version: 1.1.5
|
|
38
49
|
type: :runtime
|
|
50
|
+
name: multipart-post
|
|
51
|
+
version_requirements: *id002
|
|
52
|
+
- !ruby/object:Gem::Dependency
|
|
39
53
|
prerelease: false
|
|
40
|
-
|
|
54
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
|
41
55
|
none: false
|
|
42
|
-
requirements:
|
|
56
|
+
requirements:
|
|
43
57
|
- - ~>
|
|
44
|
-
- !ruby/object:Gem::Version
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
requirements:
|
|
51
|
-
- - ~>
|
|
52
|
-
- !ruby/object:Gem::Version
|
|
58
|
+
- !ruby/object:Gem::Version
|
|
59
|
+
hash: 41
|
|
60
|
+
segments:
|
|
61
|
+
- 0
|
|
62
|
+
- 9
|
|
63
|
+
- 9
|
|
53
64
|
version: 0.9.9
|
|
54
65
|
type: :runtime
|
|
66
|
+
name: rubyzip
|
|
67
|
+
version_requirements: *id003
|
|
68
|
+
- !ruby/object:Gem::Dependency
|
|
55
69
|
prerelease: false
|
|
56
|
-
|
|
70
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
|
57
71
|
none: false
|
|
58
|
-
requirements:
|
|
72
|
+
requirements:
|
|
59
73
|
- - ~>
|
|
60
|
-
- !ruby/object:Gem::Version
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
requirements:
|
|
67
|
-
- - ~>
|
|
68
|
-
- !ruby/object:Gem::Version
|
|
74
|
+
- !ruby/object:Gem::Version
|
|
75
|
+
hash: 15
|
|
76
|
+
segments:
|
|
77
|
+
- 0
|
|
78
|
+
- 6
|
|
79
|
+
- 4
|
|
69
80
|
version: 0.6.4
|
|
70
81
|
type: :development
|
|
82
|
+
name: simplecov
|
|
83
|
+
version_requirements: *id004
|
|
84
|
+
- !ruby/object:Gem::Dependency
|
|
71
85
|
prerelease: false
|
|
72
|
-
|
|
86
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
|
73
87
|
none: false
|
|
74
|
-
requirements:
|
|
88
|
+
requirements:
|
|
75
89
|
- - ~>
|
|
76
|
-
- !ruby/object:Gem::Version
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
requirements:
|
|
83
|
-
- - ~>
|
|
84
|
-
- !ruby/object:Gem::Version
|
|
90
|
+
- !ruby/object:Gem::Version
|
|
91
|
+
hash: 27
|
|
92
|
+
segments:
|
|
93
|
+
- 1
|
|
94
|
+
- 3
|
|
95
|
+
- 0
|
|
85
96
|
version: 1.3.0
|
|
86
97
|
type: :development
|
|
87
|
-
|
|
88
|
-
version_requirements:
|
|
89
|
-
none: false
|
|
90
|
-
requirements:
|
|
91
|
-
- - ~>
|
|
92
|
-
- !ruby/object:Gem::Version
|
|
93
|
-
version: 1.3.0
|
|
98
|
+
name: fakeweb
|
|
99
|
+
version_requirements: *id005
|
|
94
100
|
description: A Ruby API for VMware vFabric Administration Server
|
|
95
101
|
email: support@vmware.com
|
|
96
102
|
executables: []
|
|
103
|
+
|
|
97
104
|
extensions: []
|
|
98
|
-
|
|
105
|
+
|
|
106
|
+
extra_rdoc_files:
|
|
99
107
|
- README.md
|
|
100
108
|
- LICENSE
|
|
101
109
|
- NOTICE
|
|
102
|
-
files:
|
|
110
|
+
files:
|
|
103
111
|
- LICENSE
|
|
104
112
|
- NOTICE
|
|
105
113
|
- README.md
|
|
@@ -108,6 +116,7 @@ files:
|
|
|
108
116
|
- lib/vas/gemfire/agent_live_configurations.rb
|
|
109
117
|
- lib/vas/gemfire/agent_logs.rb
|
|
110
118
|
- lib/vas/gemfire/agent_node_instances.rb
|
|
119
|
+
- lib/vas/gemfire/agent_node_live_configurations.rb
|
|
111
120
|
- lib/vas/gemfire/agent_pending_configurations.rb
|
|
112
121
|
- lib/vas/gemfire/application_code.rb
|
|
113
122
|
- lib/vas/gemfire/application_code_images.rb
|
|
@@ -115,6 +124,7 @@ files:
|
|
|
115
124
|
- lib/vas/gemfire/cache_server_live_configurations.rb
|
|
116
125
|
- lib/vas/gemfire/cache_server_logs.rb
|
|
117
126
|
- lib/vas/gemfire/cache_server_node_instances.rb
|
|
127
|
+
- lib/vas/gemfire/cache_server_node_live_configurations.rb
|
|
118
128
|
- lib/vas/gemfire/cache_server_pending_configurations.rb
|
|
119
129
|
- lib/vas/gemfire/disk_stores.rb
|
|
120
130
|
- lib/vas/gemfire/gemfire.rb
|
|
@@ -126,6 +136,7 @@ files:
|
|
|
126
136
|
- lib/vas/gemfire/locator_live_configurations.rb
|
|
127
137
|
- lib/vas/gemfire/locator_logs.rb
|
|
128
138
|
- lib/vas/gemfire/locator_node_instances.rb
|
|
139
|
+
- lib/vas/gemfire/locator_node_live_configurations.rb
|
|
129
140
|
- lib/vas/gemfire/locator_pending_configurations.rb
|
|
130
141
|
- lib/vas/gemfire/nodes.rb
|
|
131
142
|
- lib/vas/gemfire/pending_application_codes.rb
|
|
@@ -137,6 +148,7 @@ files:
|
|
|
137
148
|
- lib/vas/rabbitmq/live_configurations.rb
|
|
138
149
|
- lib/vas/rabbitmq/logs.rb
|
|
139
150
|
- lib/vas/rabbitmq/node_instances.rb
|
|
151
|
+
- lib/vas/rabbitmq/node_live_configurations.rb
|
|
140
152
|
- lib/vas/rabbitmq/nodes.rb
|
|
141
153
|
- lib/vas/rabbitmq/pending_configurations.rb
|
|
142
154
|
- lib/vas/rabbitmq/plugin_images.rb
|
|
@@ -144,18 +156,44 @@ files:
|
|
|
144
156
|
- lib/vas/rabbitmq/rabbitmq.rb
|
|
145
157
|
- lib/vas/shared/collection.rb
|
|
146
158
|
- lib/vas/shared/configuration.rb
|
|
159
|
+
- lib/vas/shared/deletable.rb
|
|
147
160
|
- lib/vas/shared/groups.rb
|
|
148
161
|
- lib/vas/shared/installation_images.rb
|
|
149
162
|
- lib/vas/shared/installations.rb
|
|
150
163
|
- lib/vas/shared/instance.rb
|
|
164
|
+
- lib/vas/shared/live_configuration.rb
|
|
151
165
|
- lib/vas/shared/logs.rb
|
|
152
166
|
- lib/vas/shared/mutable_collection.rb
|
|
167
|
+
- lib/vas/shared/node_configuration.rb
|
|
153
168
|
- lib/vas/shared/node_instances.rb
|
|
154
169
|
- lib/vas/shared/nodes.rb
|
|
155
|
-
- lib/vas/shared/
|
|
170
|
+
- lib/vas/shared/pending_configurations.rb
|
|
156
171
|
- lib/vas/shared/resource.rb
|
|
157
172
|
- lib/vas/shared/security.rb
|
|
158
173
|
- lib/vas/shared/state_resource.rb
|
|
174
|
+
- lib/vas/sqlfire/agent_instances.rb
|
|
175
|
+
- lib/vas/sqlfire/agent_live_configurations.rb
|
|
176
|
+
- lib/vas/sqlfire/agent_logs.rb
|
|
177
|
+
- lib/vas/sqlfire/agent_node_instances.rb
|
|
178
|
+
- lib/vas/sqlfire/agent_node_live_configurations.rb
|
|
179
|
+
- lib/vas/sqlfire/agent_pending_configurations.rb
|
|
180
|
+
- lib/vas/sqlfire/groups.rb
|
|
181
|
+
- lib/vas/sqlfire/installation_images.rb
|
|
182
|
+
- lib/vas/sqlfire/installations.rb
|
|
183
|
+
- lib/vas/sqlfire/locator_instances.rb
|
|
184
|
+
- lib/vas/sqlfire/locator_live_configurations.rb
|
|
185
|
+
- lib/vas/sqlfire/locator_logs.rb
|
|
186
|
+
- lib/vas/sqlfire/locator_node_instances.rb
|
|
187
|
+
- lib/vas/sqlfire/locator_node_live_configurations.rb
|
|
188
|
+
- lib/vas/sqlfire/locator_pending_configurations.rb
|
|
189
|
+
- lib/vas/sqlfire/nodes.rb
|
|
190
|
+
- lib/vas/sqlfire/server_instances.rb
|
|
191
|
+
- lib/vas/sqlfire/server_live_configurations.rb
|
|
192
|
+
- lib/vas/sqlfire/server_logs.rb
|
|
193
|
+
- lib/vas/sqlfire/server_node_instances.rb
|
|
194
|
+
- lib/vas/sqlfire/server_node_live_configurations.rb
|
|
195
|
+
- lib/vas/sqlfire/server_pending_configurations.rb
|
|
196
|
+
- lib/vas/sqlfire/sqlfire.rb
|
|
159
197
|
- lib/vas/tc_server/applications.rb
|
|
160
198
|
- lib/vas/tc_server/configuration.rb
|
|
161
199
|
- lib/vas/tc_server/groups.rb
|
|
@@ -166,6 +204,7 @@ files:
|
|
|
166
204
|
- lib/vas/tc_server/logs.rb
|
|
167
205
|
- lib/vas/tc_server/node_applications.rb
|
|
168
206
|
- lib/vas/tc_server/node_instances.rb
|
|
207
|
+
- lib/vas/tc_server/node_live_configurations.rb
|
|
169
208
|
- lib/vas/tc_server/node_revisions.rb
|
|
170
209
|
- lib/vas/tc_server/nodes.rb
|
|
171
210
|
- lib/vas/tc_server/pending_configurations.rb
|
|
@@ -181,29 +220,51 @@ files:
|
|
|
181
220
|
- lib/vas/vfabric/nodes.rb
|
|
182
221
|
- lib/vas/vfabric/v_fabric.rb
|
|
183
222
|
- lib/vas/vfabric_administration_server.rb
|
|
223
|
+
- lib/vas/web_server/configuration.rb
|
|
224
|
+
- lib/vas/web_server/groups.rb
|
|
225
|
+
- lib/vas/web_server/installation_images.rb
|
|
226
|
+
- lib/vas/web_server/installations.rb
|
|
227
|
+
- lib/vas/web_server/instances.rb
|
|
228
|
+
- lib/vas/web_server/live_configurations.rb
|
|
229
|
+
- lib/vas/web_server/logs.rb
|
|
230
|
+
- lib/vas/web_server/node_instances.rb
|
|
231
|
+
- lib/vas/web_server/node_live_configurations.rb
|
|
232
|
+
- lib/vas/web_server/nodes.rb
|
|
233
|
+
- lib/vas/web_server/pending_configurations.rb
|
|
234
|
+
- lib/vas/web_server/web_server.rb
|
|
184
235
|
- lib/vas.rb
|
|
185
236
|
homepage: http://vfabric.co
|
|
186
237
|
licenses: []
|
|
238
|
+
|
|
187
239
|
post_install_message:
|
|
188
240
|
rdoc_options: []
|
|
189
|
-
|
|
241
|
+
|
|
242
|
+
require_paths:
|
|
190
243
|
- lib
|
|
191
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
|
244
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
192
245
|
none: false
|
|
193
|
-
requirements:
|
|
194
|
-
- -
|
|
195
|
-
- !ruby/object:Gem::Version
|
|
196
|
-
|
|
197
|
-
|
|
246
|
+
requirements:
|
|
247
|
+
- - ">="
|
|
248
|
+
- !ruby/object:Gem::Version
|
|
249
|
+
hash: 3
|
|
250
|
+
segments:
|
|
251
|
+
- 0
|
|
252
|
+
version: "0"
|
|
253
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
198
254
|
none: false
|
|
199
|
-
requirements:
|
|
200
|
-
- -
|
|
201
|
-
- !ruby/object:Gem::Version
|
|
202
|
-
|
|
255
|
+
requirements:
|
|
256
|
+
- - ">="
|
|
257
|
+
- !ruby/object:Gem::Version
|
|
258
|
+
hash: 3
|
|
259
|
+
segments:
|
|
260
|
+
- 0
|
|
261
|
+
version: "0"
|
|
203
262
|
requirements: []
|
|
263
|
+
|
|
204
264
|
rubyforge_project:
|
|
205
265
|
rubygems_version: 1.8.24
|
|
206
266
|
signing_key:
|
|
207
267
|
specification_version: 3
|
|
208
268
|
summary: vFabric Administration Server Ruby API
|
|
209
269
|
test_files: []
|
|
270
|
+
|