class OneviewSDK::API200::ConnectionTemplate
Connection template resource implementation
Constants
- BASE_URI
Public Class Methods
get_default(client)
click to toggle source
Get the default network connection template @param [OneviewSDK::Client] client The client object for the OneView appliance @return [OneviewSDK::ConnectionTemplate] Connection template
# File lib/oneview-sdk/resource/api200/connection_template.rb, line 46 def self.get_default(client) response = client.rest_get(BASE_URI + '/defaultConnectionTemplate') variant = name.split('::').at(-2) OneviewSDK.resource_named('ConnectionTemplate', client.api_version, variant).new(client, client.response_handler(response)) end
new(client, params = {}, api_ver = nil)
click to toggle source
Create a resource object, associate it with a client, and set its properties. @param [OneviewSDK::Client] client The client object for the OneView appliance @param [Hash] params The options for this resource (key-value pairs) @param [Integer] api_ver The api version to use when interracting with this resource.
Calls superclass method
OneviewSDK::Resource::new
# File lib/oneview-sdk/resource/api200/connection_template.rb, line 24 def initialize(client, params = {}, api_ver = nil) super # Default values: @data['bandwidth'] ||= {} @data['type'] ||= 'connection-template' end
Public Instance Methods
create(*)
click to toggle source
Method is not available @raise [OneviewSDK::MethodUnavailable] method is not available
# File lib/oneview-sdk/resource/api200/connection_template.rb, line 33 def create(*) unavailable_method end
delete(*)
click to toggle source
Method is not available @raise [OneviewSDK::MethodUnavailable] method is not available
# File lib/oneview-sdk/resource/api200/connection_template.rb, line 39 def delete(*) unavailable_method end