query stringlengths 7 9.55k | document stringlengths 10 363k | metadata dict | negatives listlengths 0 101 | negative_scores listlengths 0 101 | document_score stringlengths 3 10 | document_rank stringclasses 102
values |
|---|---|---|---|---|---|---|
Get a specific thread by context (last message content) Arguments: username: (String) job_key: (String) application_id: (String) context: (String) | def get_thread_by_context_last_posts(username, job_key, application_id, context = 'Interviews')
$LOG.i "running " + __method__.to_s
@client.get '/mc/v1/contexts/' + username + '/' + context + ':' + job_key + ':' + application_id + '/last_posts'
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_thread_by_context(username, job_key, application_id, context = 'Interviews')\n $LOG.i \"running \" + __method__.to_s\n @client.get '/mc/v1/contexts/' + username + '/' + context + ':' + job_key + ':' + application_id\n end",
"def get_thread_details(username, thread_id)\n ... | [
"0.90433764",
"0.6546529",
"0.6099379",
"0.59626466",
"0.57531637",
"0.5443963",
"0.5407274",
"0.5343799",
"0.5333464",
"0.53129274",
"0.5299808",
"0.52810794",
"0.5277654",
"0.52568537",
"0.5245978",
"0.52453715",
"0.5243057",
"0.52323",
"0.5183873",
"0.5177748",
"0.5175886"... | 0.78011036 | 1 |
Send new message Arguments: username: (String) params: (Hash) | def start_new_thread(username, params = {})
$LOG.i "running " + __method__.to_s
@client.post '/mc/v1/threads/' + username, params
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def send_message (*params)\n send_line Message.new(*params)\n end",
"def send_message!(params = {})\n call_api(\"directmessage/#{secret}/#{token}\",params)\n end",
"def message(user, text)\n post('/direct_messages/new.json', :user => user, :text => text)\n end",
"def message(user, tex... | [
"0.73304063",
"0.7010857",
"0.6936314",
"0.6936314",
"0.68902075",
"0.6883178",
"0.6883178",
"0.6845647",
"0.67903835",
"0.67569983",
"0.6725361",
"0.6668136",
"0.666332",
"0.66293824",
"0.66280097",
"0.6604641",
"0.6561196",
"0.65416986",
"0.6520773",
"0.6518907",
"0.651555"... | 0.0 | -1 |
Reply to existent thread Arguments: username: (String) thread_id: (String) params: (Hash) | def reply_to_thread(username, thread_id, params = {})
$LOG.i "running " + __method__.to_s
@client.post '/mc/v1/threads/' + username + '/' + thread_id, params
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_thread_details(username, thread_id)\n $LOG.i \"running \" + __method__.to_s\n @client.get '/mc/v1/threads/' + username + '/' + thread_id\n end",
"def mark_thread(username, thread_id, params = {})\n $LOG.i \"running \" + __method__.to_s\n @client.put '/mc/v1/thre... | [
"0.6649858",
"0.6567626",
"0.6379899",
"0.5936893",
"0.58895916",
"0.5888623",
"0.58756536",
"0.58087105",
"0.57858366",
"0.5774683",
"0.57677025",
"0.57232624",
"0.57140875",
"0.57089037",
"0.5705264",
"0.5624129",
"0.56214494",
"0.5602357",
"0.55733466",
"0.55558854",
"0.55... | 0.8369394 | 0 |
Update threads based on user actions Arguments: username: (String) thread_id: (String) params: (Hash) | def mark_thread(username, thread_id, params = {})
$LOG.i "running " + __method__.to_s
@client.put '/mc/v1/threads/' + username + '/' + thread_id, params
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def update\n @my_thread = current_user.organization.my_threads.find(params[:id])\n\n respond_to do |format|\n if @my_thread.update_attributes(params[:my_thread])\n format.html { redirect_to my_threads_url, notice: 'Thread was successfully updated.' }\n format.json { head :no_content }\n ... | [
"0.67174834",
"0.67030066",
"0.652548",
"0.63984907",
"0.6394196",
"0.6227196",
"0.6186988",
"0.61527216",
"0.60583925",
"0.59899414",
"0.59706146",
"0.5969369",
"0.59635746",
"0.5942089",
"0.5928348",
"0.58855003",
"0.58802927",
"0.58802927",
"0.5876877",
"0.5873665",
"0.586... | 0.6895659 | 0 |
Find based in user ID | def find_by_user(id)
aggregate(:user_id).where(id: id).map_to(Video)
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def find_by_id\n User.find_by_id(@username_or_id)\n end",
"def find_by_id(user_id)\n find_by_query do |table|\n table.where(:id => user_id)\n end\n end",
"def find_by_id!\n User.find(@username_or_id)\n end",
"def find_by_id(id)\n users.find { |user| user.id == id } ||... | [
"0.7753214",
"0.7654",
"0.74564934",
"0.73942816",
"0.7259035",
"0.7223587",
"0.7203711",
"0.7185905",
"0.7172479",
"0.71539205",
"0.71244776",
"0.71210015",
"0.71146876",
"0.7068565",
"0.7040604",
"0.6954785",
"0.6937081",
"0.693647",
"0.69137776",
"0.6912133",
"0.6910072",
... | 0.621349 | 95 |
Find Video by ID (uuid) | def find_by_id(id)
videos.where(id: id).as(Video).one
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_video_by_id(args = {})\n receive_video_id? args\n receive_valid_thumbsize? args\n args = receive_should_validate? args\n\n get('redtube.Videos.getVideoById', args,\n [:video_id, :thumbsize], args[:should_validate])\n end",
"def my_video(video_id)\n client.get_my_video(v... | [
"0.74597305",
"0.70499665",
"0.7021901",
"0.6900243",
"0.68722343",
"0.6867137",
"0.6857305",
"0.6806138",
"0.67943656",
"0.67848986",
"0.67652",
"0.6742284",
"0.6738973",
"0.67267823",
"0.67267823",
"0.67267823",
"0.67090535",
"0.67046475",
"0.668658",
"0.6661648",
"0.663172... | 0.7971653 | 0 |
Exists video then return true else false | def video_exists?(id)
find_by_id(id).nil?
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def has_video?\n false\n end",
"def video?\n !!video_stream\n end",
"def exists?( video_content )\n\t\tftp_open do |ftp|\n\t\t\treturn self.class.ftp_file_exists?( ftp, file_hash_and_extension_to_array( video_content.file_hash, video_content.file_extension ).join('/') )\n\t\tend\n\tend",
"def contain... | [
"0.8220764",
"0.78918785",
"0.77375203",
"0.7716991",
"0.76630926",
"0.7644667",
"0.74223477",
"0.74222356",
"0.7389042",
"0.7255969",
"0.72456366",
"0.72388345",
"0.7218542",
"0.72113717",
"0.71970206",
"0.71782535",
"0.71408063",
"0.70793307",
"0.70788276",
"0.7035493",
"0.... | 0.78763324 | 2 |
Search by title and description | def search_text(query, text)
text = pattern(text)
query.where { title.ilike(text) | description.ilike(text) }
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def search_search_text\n query\n .where(localized_search_text_in(:title), text: \"%#{search_text}%\")\n .or(query.where(localized_search_text_in(:description), text: \"%#{search_text}%\"))\n end",
"def searchdescription\n end",
"def search\n\t\t@articles = Article.where(\"text = ... | [
"0.7571297",
"0.74445957",
"0.7392111",
"0.70525575",
"0.7019904",
"0.69964486",
"0.6978769",
"0.6969915",
"0.6879379",
"0.6816217",
"0.6804178",
"0.67768586",
"0.6725285",
"0.6720571",
"0.6711465",
"0.6656234",
"0.6641639",
"0.6635438",
"0.66284704",
"0.6624188",
"0.66210634... | 0.7485608 | 1 |
Create a 'virtualization.VirtualDisk' resource. | def create_virtualization_virtual_disk(virtualization_virtual_disk, opts = {})
data, _status_code, _headers = create_virtualization_virtual_disk_with_http_info(virtualization_virtual_disk, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def create_disk(name, size_mb, vm = nil, retries = @retries[\"default\"])\n new_disk = Xml::WrapperFactory.create_instance(\"DiskCreateParams\")\n new_disk.name = name\n new_disk.size_bytes = size_mb * 1024 * 1024 # VCD expects bytes\n new_disk.bus_type = Xml::HARDWARE_TYPE[:SCSI_CONTROLLER]\n ... | [
"0.74821234",
"0.69925296",
"0.68853515",
"0.68793076",
"0.68130535",
"0.6806039",
"0.6732663",
"0.67213166",
"0.66617525",
"0.6661507",
"0.66367674",
"0.65392727",
"0.6499852",
"0.64937806",
"0.6483851",
"0.6435621",
"0.64091676",
"0.6400287",
"0.63974607",
"0.63817626",
"0.... | 0.6881903 | 3 |
Create a &39;virtualization.VirtualDisk&39; resource. | def create_virtualization_virtual_disk_with_http_info(virtualization_virtual_disk, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: VirtualizationApi.create_virtualization_virtual_disk ...'
end
# verify the required parameter 'virtualization_virtual_disk' is set
if @api_client.config.client_side_validation && virtualization_virtual_disk.nil?
fail ArgumentError, "Missing the required parameter 'virtualization_virtual_disk' when calling VirtualizationApi.create_virtualization_virtual_disk"
end
# resource path
local_var_path = '/api/v1/virtualization/VirtualDisks'
# query parameters
query_params = opts[:query_params] || {}
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
content_type = @api_client.select_header_content_type(['application/json'])
if !content_type.nil?
header_params['Content-Type'] = content_type
end
header_params[:'If-Match'] = opts[:'if_match'] if !opts[:'if_match'].nil?
header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil?
# form parameters
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:debug_body] || @api_client.object_to_http_body(virtualization_virtual_disk)
# return_type
return_type = opts[:debug_return_type] || 'VirtualizationVirtualDisk'
# auth_names
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'http_signature', 'oAuth2', 'oAuth2']
new_options = opts.merge(
:operation => :"VirtualizationApi.create_virtualization_virtual_disk",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => return_type
)
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: VirtualizationApi#create_virtualization_virtual_disk\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def create_disk(name, size_mb, vm = nil, retries = @retries[\"default\"])\n new_disk = Xml::WrapperFactory.create_instance(\"DiskCreateParams\")\n new_disk.name = name\n new_disk.size_bytes = size_mb * 1024 * 1024 # VCD expects bytes\n new_disk.bus_type = Xml::HARDWARE_TYPE[:SCSI_CONTROLLER]\n ... | [
"0.7537861",
"0.71271896",
"0.6893837",
"0.6878768",
"0.68488395",
"0.6831173",
"0.67251265",
"0.67141634",
"0.66909474",
"0.66895807",
"0.66513395",
"0.65967983",
"0.65949064",
"0.65840924",
"0.65840816",
"0.65516055",
"0.6497505",
"0.64822125",
"0.64231515",
"0.6406906",
"0... | 0.69113356 | 2 |
Create a 'virtualization.VirtualMachine' resource. | def create_virtualization_virtual_machine(virtualization_virtual_machine, opts = {})
data, _status_code, _headers = create_virtualization_virtual_machine_with_http_info(virtualization_virtual_machine, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def create_vm\n if new_resource.clone\n clone_vm\n else\n data = {\n vmid: vmid,\n bootdisk: 'virtio0',\n cores: INSTANCE_SIZE[new_resource.size]['cpu'],\n memory: INSTANCE_SIZE[new_resource.size]['memory'],\n ide2: \"#{new_resource.cdrom},media=cdrom\",\n numa: (new_resource.... | [
"0.7432735",
"0.7426336",
"0.71593493",
"0.7116368",
"0.7072659",
"0.705233",
"0.66988087",
"0.6641611",
"0.65235084",
"0.6453876",
"0.64424515",
"0.64264226",
"0.63963753",
"0.6370339",
"0.6370339",
"0.627976",
"0.62438905",
"0.62436813",
"0.6204436",
"0.61921287",
"0.616290... | 0.6303976 | 15 |
Create a &39;virtualization.VirtualMachine&39; resource. | def create_virtualization_virtual_machine_with_http_info(virtualization_virtual_machine, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: VirtualizationApi.create_virtualization_virtual_machine ...'
end
# verify the required parameter 'virtualization_virtual_machine' is set
if @api_client.config.client_side_validation && virtualization_virtual_machine.nil?
fail ArgumentError, "Missing the required parameter 'virtualization_virtual_machine' when calling VirtualizationApi.create_virtualization_virtual_machine"
end
# resource path
local_var_path = '/api/v1/virtualization/VirtualMachines'
# query parameters
query_params = opts[:query_params] || {}
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
content_type = @api_client.select_header_content_type(['application/json'])
if !content_type.nil?
header_params['Content-Type'] = content_type
end
header_params[:'If-Match'] = opts[:'if_match'] if !opts[:'if_match'].nil?
header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil?
# form parameters
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:debug_body] || @api_client.object_to_http_body(virtualization_virtual_machine)
# return_type
return_type = opts[:debug_return_type] || 'VirtualizationVirtualMachine'
# auth_names
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'http_signature', 'oAuth2', 'oAuth2']
new_options = opts.merge(
:operation => :"VirtualizationApi.create_virtualization_virtual_machine",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => return_type
)
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: VirtualizationApi#create_virtualization_virtual_machine\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def create_vm\n if new_resource.clone\n clone_vm\n else\n data = {\n vmid: vmid,\n bootdisk: 'virtio0',\n cores: INSTANCE_SIZE[new_resource.size]['cpu'],\n memory: INSTANCE_SIZE[new_resource.size]['memory'],\n ide2: \"#{new_resource.cdrom},media=cdrom\",\n numa: (new_resource.... | [
"0.73745865",
"0.7275006",
"0.710334",
"0.6998771",
"0.69201195",
"0.6911976",
"0.65141505",
"0.6453625",
"0.64179766",
"0.6350128",
"0.6321718",
"0.6321718",
"0.631058",
"0.6275855",
"0.62711126",
"0.6240607",
"0.6215132",
"0.61977273",
"0.61369497",
"0.61024296",
"0.608069"... | 0.60581285 | 23 |
Create a 'virtualization.VirtualNetwork' resource. | def create_virtualization_virtual_network(virtualization_virtual_network, opts = {})
data, _status_code, _headers = create_virtualization_virtual_network_with_http_info(virtualization_virtual_network, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def createVNET(vnet_name)\n puts 'Creating a virtual network'\n vnet_create_params = Azure::ARM::Network::Models::VirtualNetwork.new.tap do |vnet|\n vnet.location = $region_dc\n vnet.address_space = Azure::ARM::Network::Models::AddressSpace.new.tap do |addr_space|\n addr_space.address_prefixes = ['10.... | [
"0.7395756",
"0.73911077",
"0.7101692",
"0.69838935",
"0.6612278",
"0.6548781",
"0.6544117",
"0.65427667",
"0.65369874",
"0.6531203",
"0.6506898",
"0.64782715",
"0.6344538",
"0.6332626",
"0.62988406",
"0.62985635",
"0.62369025",
"0.62269884",
"0.6186623",
"0.6064972",
"0.6064... | 0.64490294 | 12 |
Create a &39;virtualization.VirtualNetwork&39; resource. | def create_virtualization_virtual_network_with_http_info(virtualization_virtual_network, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: VirtualizationApi.create_virtualization_virtual_network ...'
end
# verify the required parameter 'virtualization_virtual_network' is set
if @api_client.config.client_side_validation && virtualization_virtual_network.nil?
fail ArgumentError, "Missing the required parameter 'virtualization_virtual_network' when calling VirtualizationApi.create_virtualization_virtual_network"
end
# resource path
local_var_path = '/api/v1/virtualization/VirtualNetworks'
# query parameters
query_params = opts[:query_params] || {}
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
content_type = @api_client.select_header_content_type(['application/json'])
if !content_type.nil?
header_params['Content-Type'] = content_type
end
header_params[:'If-Match'] = opts[:'if_match'] if !opts[:'if_match'].nil?
header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil?
# form parameters
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:debug_body] || @api_client.object_to_http_body(virtualization_virtual_network)
# return_type
return_type = opts[:debug_return_type] || 'VirtualizationVirtualNetwork'
# auth_names
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'http_signature', 'oAuth2', 'oAuth2']
new_options = opts.merge(
:operation => :"VirtualizationApi.create_virtualization_virtual_network",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => return_type
)
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: VirtualizationApi#create_virtualization_virtual_network\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def createVNET(vnet_name)\n puts 'Creating a virtual network'\n vnet_create_params = Azure::ARM::Network::Models::VirtualNetwork.new.tap do |vnet|\n vnet.location = $region_dc\n vnet.address_space = Azure::ARM::Network::Models::AddressSpace.new.tap do |addr_space|\n addr_space.address_prefixes = ['10.... | [
"0.73864174",
"0.7172426",
"0.6947873",
"0.6831957",
"0.67235523",
"0.66493505",
"0.6641955",
"0.65679836",
"0.6512241",
"0.64997065",
"0.64764",
"0.6463447",
"0.6453267",
"0.64157087",
"0.64140403",
"0.6372006",
"0.63535553",
"0.62825334",
"0.6255987",
"0.6235709",
"0.619773... | 0.6765738 | 4 |
Delete a 'virtualization.VirtualDisk' resource. | def delete_virtualization_virtual_disk(moid, opts = {})
delete_virtualization_virtual_disk_with_http_info(moid, opts)
nil
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def delete_virtual_machine_disk(disk_name)\n Loggerx.info \"Deleting Disk \\\"#{disk_name}\\\". \"\n path = \"/services/disks/#{disk_name}\"\n request = ManagementHttpRequest.new(:delete, path)\n request.call\n end",
"def destroy\n @vdisk = Vdisk.find(params[:id])\n @vdisk.... | [
"0.7707277",
"0.7300276",
"0.699919",
"0.6543276",
"0.6514597",
"0.65074223",
"0.64074755",
"0.6401026",
"0.638818",
"0.63842446",
"0.63475007",
"0.63358456",
"0.6330695",
"0.61639756",
"0.6028501",
"0.60080236",
"0.59986216",
"0.5962911",
"0.5962168",
"0.5948023",
"0.5944540... | 0.7564716 | 1 |
Delete a &39;virtualization.VirtualDisk&39; resource. | def delete_virtualization_virtual_disk_with_http_info(moid, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: VirtualizationApi.delete_virtualization_virtual_disk ...'
end
# verify the required parameter 'moid' is set
if @api_client.config.client_side_validation && moid.nil?
fail ArgumentError, "Missing the required parameter 'moid' when calling VirtualizationApi.delete_virtualization_virtual_disk"
end
# resource path
local_var_path = '/api/v1/virtualization/VirtualDisks/{Moid}'.sub('{' + 'Moid' + '}', CGI.escape(moid.to_s))
# query parameters
query_params = opts[:query_params] || {}
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# form parameters
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:debug_body]
# return_type
return_type = opts[:debug_return_type]
# auth_names
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'http_signature', 'oAuth2', 'oAuth2']
new_options = opts.merge(
:operation => :"VirtualizationApi.delete_virtualization_virtual_disk",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => return_type
)
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: VirtualizationApi#delete_virtualization_virtual_disk\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def delete_virtual_machine_disk(disk_name)\n Loggerx.info \"Deleting Disk \\\"#{disk_name}\\\". \"\n path = \"/services/disks/#{disk_name}\"\n request = ManagementHttpRequest.new(:delete, path)\n request.call\n end",
"def delete_virtualization_virtual_disk(moid, opts = {})\n ... | [
"0.77815545",
"0.7495323",
"0.7293028",
"0.70911735",
"0.6811837",
"0.67838144",
"0.6633472",
"0.6495293",
"0.64668274",
"0.6425169",
"0.6421121",
"0.636642",
"0.63037705",
"0.62627697",
"0.6204745",
"0.6150096",
"0.6069865",
"0.60385513",
"0.59657776",
"0.59655243",
"0.59595... | 0.6429393 | 9 |
Delete a 'virtualization.VirtualMachine' resource. | def delete_virtualization_virtual_machine(moid, opts = {})
delete_virtualization_virtual_machine_with_http_info(moid, opts)
nil
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def delete\n execute(\"unregistervm\", @uuid, \"--delete\")\n end",
"def vm_delete(vm)\n connection[vms_collection].find(_id: vm).delete_one\n end",
"def delete_vm_instance(name, namespace)\n @conn.vminstances.destroy(name, namespace)\n end",
"def delete\n unless @vm.exists?\... | [
"0.72644144",
"0.7211579",
"0.6974828",
"0.69185984",
"0.6911926",
"0.6835932",
"0.68163645",
"0.68078166",
"0.67431355",
"0.6730752",
"0.67158663",
"0.6700197",
"0.6611599",
"0.65763414",
"0.65710044",
"0.65046996",
"0.6487595",
"0.6486312",
"0.64841336",
"0.64391893",
"0.64... | 0.664528 | 12 |
Delete a &39;virtualization.VirtualMachine&39; resource. | def delete_virtualization_virtual_machine_with_http_info(moid, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: VirtualizationApi.delete_virtualization_virtual_machine ...'
end
# verify the required parameter 'moid' is set
if @api_client.config.client_side_validation && moid.nil?
fail ArgumentError, "Missing the required parameter 'moid' when calling VirtualizationApi.delete_virtualization_virtual_machine"
end
# resource path
local_var_path = '/api/v1/virtualization/VirtualMachines/{Moid}'.sub('{' + 'Moid' + '}', CGI.escape(moid.to_s))
# query parameters
query_params = opts[:query_params] || {}
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# form parameters
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:debug_body]
# return_type
return_type = opts[:debug_return_type]
# auth_names
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'http_signature', 'oAuth2', 'oAuth2']
new_options = opts.merge(
:operation => :"VirtualizationApi.delete_virtualization_virtual_machine",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => return_type
)
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: VirtualizationApi#delete_virtualization_virtual_machine\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def delete\n execute(\"unregistervm\", @uuid, \"--delete\")\n end",
"def vm_delete(vm)\n connection[vms_collection].find(_id: vm).delete_one\n end",
"def delete_compute(request, params)\n # --- Get the VM ---\n vm = VirtualMachineOCCI.new(\n VirtualMachine.b... | [
"0.70748615",
"0.685274",
"0.67895985",
"0.67802244",
"0.67315066",
"0.6650411",
"0.6641245",
"0.662818",
"0.66143775",
"0.6612722",
"0.6586133",
"0.6583993",
"0.6554537",
"0.6506556",
"0.6449569",
"0.6441132",
"0.64008856",
"0.6371042",
"0.63710374",
"0.6357123",
"0.6330437"... | 0.5733041 | 65 |
Delete a 'virtualization.VirtualNetwork' resource. | def delete_virtualization_virtual_network(moid, opts = {})
delete_virtualization_virtual_network_with_http_info(moid, opts)
nil
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def delete_network(request, params)\n network = VirtualNetworkOCCI.new(\n VirtualNetwork.build_xml(params[:id]),\n @client)\n\n # --- Delete the VNET ---\n rc = network.delete\n if OpenNebula.is_error?(rc)\n return rc, CloudServer... | [
"0.76418275",
"0.6780513",
"0.6767936",
"0.67006564",
"0.6601857",
"0.65575004",
"0.6472054",
"0.6411923",
"0.6408997",
"0.63801455",
"0.63801455",
"0.63801455",
"0.6378272",
"0.63721806",
"0.6330889",
"0.62740535",
"0.62725526",
"0.62464154",
"0.6241464",
"0.62267274",
"0.61... | 0.7006632 | 1 |
Delete a &39;virtualization.VirtualNetwork&39; resource. | def delete_virtualization_virtual_network_with_http_info(moid, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: VirtualizationApi.delete_virtualization_virtual_network ...'
end
# verify the required parameter 'moid' is set
if @api_client.config.client_side_validation && moid.nil?
fail ArgumentError, "Missing the required parameter 'moid' when calling VirtualizationApi.delete_virtualization_virtual_network"
end
# resource path
local_var_path = '/api/v1/virtualization/VirtualNetworks/{Moid}'.sub('{' + 'Moid' + '}', CGI.escape(moid.to_s))
# query parameters
query_params = opts[:query_params] || {}
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# form parameters
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:debug_body]
# return_type
return_type = opts[:debug_return_type]
# auth_names
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'http_signature', 'oAuth2', 'oAuth2']
new_options = opts.merge(
:operation => :"VirtualizationApi.delete_virtualization_virtual_network",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => return_type
)
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: VirtualizationApi#delete_virtualization_virtual_network\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def delete_network(request, params)\n network = VirtualNetworkOCCI.new(\n VirtualNetwork.build_xml(params[:id]),\n @client)\n\n # --- Delete the VNET ---\n rc = network.delete\n if OpenNebula.is_error?(rc)\n return rc, CloudServer... | [
"0.7841365",
"0.71850586",
"0.6779968",
"0.6663015",
"0.66591233",
"0.65525794",
"0.6545679",
"0.6490391",
"0.6450015",
"0.64129984",
"0.6373503",
"0.6356953",
"0.6342801",
"0.6335986",
"0.6328761",
"0.6328761",
"0.6328761",
"0.62952805",
"0.6291",
"0.6230343",
"0.6221152",
... | 0.64877725 | 8 |
Read a 'virtualization.Host' resource. | def get_virtualization_host_by_moid(moid, opts = {})
data, _status_code, _headers = get_virtualization_host_by_moid_with_http_info(moid, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_host(name)\n # create a host object to work with\n host_obj = Com::Vmware::Vcenter::Host.new(vapi_config)\n\n if name.nil?\n host = host_obj.list\n else\n filter = Com::Vmware::Vcenter::Host::FilterSpec.new(names: Set.new([name]))\n host = host_obj.lis... | [
"0.6231144",
"0.60877776",
"0.60635525",
"0.590692",
"0.58932406",
"0.58932406",
"0.58932406",
"0.5807996",
"0.5791392",
"0.5732373",
"0.57263273",
"0.5718537",
"0.57133836",
"0.5697406",
"0.5696519",
"0.5683504",
"0.5675895",
"0.5653871",
"0.5608999",
"0.556504",
"0.5546452"... | 0.5105198 | 77 |
Read a &39;virtualization.Host&39; resource. | def get_virtualization_host_by_moid_with_http_info(moid, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: VirtualizationApi.get_virtualization_host_by_moid ...'
end
# verify the required parameter 'moid' is set
if @api_client.config.client_side_validation && moid.nil?
fail ArgumentError, "Missing the required parameter 'moid' when calling VirtualizationApi.get_virtualization_host_by_moid"
end
# resource path
local_var_path = '/api/v1/virtualization/Hosts/{Moid}'.sub('{' + 'Moid' + '}', CGI.escape(moid.to_s))
# query parameters
query_params = opts[:query_params] || {}
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/csv', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'])
# form parameters
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:debug_body]
# return_type
return_type = opts[:debug_return_type] || 'VirtualizationHost'
# auth_names
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'http_signature', 'oAuth2', 'oAuth2']
new_options = opts.merge(
:operation => :"VirtualizationApi.get_virtualization_host_by_moid",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => return_type
)
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: VirtualizationApi#get_virtualization_host_by_moid\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_es_resource(resource)\n r = RestClient::Resource.new(\"#{config[:scheme]}://#{config[:server]}:#{config[:port]}/#{resource}\", timeout: 45)\n JSON.parse(r.get)\n rescue Errno::ECONNREFUSED\n warning 'Connection refused'\n rescue RestClient::RequestTimeout\n warning 'Connection timed out'\n e... | [
"0.5937655",
"0.5772777",
"0.57449937",
"0.5705332",
"0.5656907",
"0.5583621",
"0.55620706",
"0.5545333",
"0.55391806",
"0.55167776",
"0.5496942",
"0.54955775",
"0.5493484",
"0.54717636",
"0.5450446",
"0.54322475",
"0.54315907",
"0.54315907",
"0.54080623",
"0.5406162",
"0.540... | 0.0 | -1 |
Read a 'virtualization.Host' resource. | def get_virtualization_host_list(opts = {})
data, _status_code, _headers = get_virtualization_host_list_with_http_info(opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_host(name)\n # create a host object to work with\n host_obj = Com::Vmware::Vcenter::Host.new(vapi_config)\n\n if name.nil?\n host = host_obj.list\n else\n filter = Com::Vmware::Vcenter::Host::FilterSpec.new(names: Set.new([name]))\n host = host_obj.lis... | [
"0.6231144",
"0.60877776",
"0.60635525",
"0.590692",
"0.58932406",
"0.58932406",
"0.58932406",
"0.5807996",
"0.5791392",
"0.5732373",
"0.57263273",
"0.5718537",
"0.57133836",
"0.5697406",
"0.5696519",
"0.5683504",
"0.5675895",
"0.5653871",
"0.5608999",
"0.556504",
"0.5546452"... | 0.5101302 | 80 |
Read a &39;virtualization.Host&39; resource. | def get_virtualization_host_list_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: VirtualizationApi.get_virtualization_host_list ...'
end
allowable_values = ["allpages", "none"]
if @api_client.config.client_side_validation && opts[:'inlinecount'] && !allowable_values.include?(opts[:'inlinecount'])
fail ArgumentError, "invalid value for \"inlinecount\", must be one of #{allowable_values}"
end
# resource path
local_var_path = '/api/v1/virtualization/Hosts'
# query parameters
query_params = opts[:query_params] || {}
query_params[:'$filter'] = opts[:'filter'] if !opts[:'filter'].nil?
query_params[:'$orderby'] = opts[:'orderby'] if !opts[:'orderby'].nil?
query_params[:'$top'] = opts[:'top'] if !opts[:'top'].nil?
query_params[:'$skip'] = opts[:'skip'] if !opts[:'skip'].nil?
query_params[:'$select'] = opts[:'select'] if !opts[:'select'].nil?
query_params[:'$expand'] = opts[:'expand'] if !opts[:'expand'].nil?
query_params[:'$apply'] = opts[:'apply'] if !opts[:'apply'].nil?
query_params[:'$count'] = opts[:'count'] if !opts[:'count'].nil?
query_params[:'$inlinecount'] = opts[:'inlinecount'] if !opts[:'inlinecount'].nil?
query_params[:'at'] = opts[:'at'] if !opts[:'at'].nil?
query_params[:'tags'] = opts[:'tags'] if !opts[:'tags'].nil?
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/csv', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'])
# form parameters
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:debug_body]
# return_type
return_type = opts[:debug_return_type] || 'VirtualizationHostResponse'
# auth_names
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'http_signature', 'oAuth2', 'oAuth2']
new_options = opts.merge(
:operation => :"VirtualizationApi.get_virtualization_host_list",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => return_type
)
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: VirtualizationApi#get_virtualization_host_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_es_resource(resource)\n r = RestClient::Resource.new(\"#{config[:scheme]}://#{config[:server]}:#{config[:port]}/#{resource}\", timeout: 45)\n JSON.parse(r.get)\n rescue Errno::ECONNREFUSED\n warning 'Connection refused'\n rescue RestClient::RequestTimeout\n warning 'Connection timed out'\n e... | [
"0.5937655",
"0.5772777",
"0.57449937",
"0.5705332",
"0.5656907",
"0.5583621",
"0.55620706",
"0.5545333",
"0.55391806",
"0.55167776",
"0.5496942",
"0.54955775",
"0.5493484",
"0.54717636",
"0.5450446",
"0.54322475",
"0.54315907",
"0.54315907",
"0.54080623",
"0.5406162",
"0.540... | 0.0 | -1 |
Read a 'virtualization.VirtualDisk' resource. | def get_virtualization_virtual_disk_by_moid(moid, opts = {})
data, _status_code, _headers = get_virtualization_virtual_disk_by_moid_with_http_info(moid, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def disk\n @disk ||= begin\n dInfo = OpenStruct.new\n dInfo.lvObj = self\n dInfo.hardwareId = \"\"\n MiqDisk.new(Lvm2DiskIO, dInfo, 0)\n end\n end",
"def get_os_disk(vm)\n uri = Addressable::URI.parse(vm.properties.storage_profile.os_disk.vhd.uri)\n\n # The uri looks like... | [
"0.66635346",
"0.62772465",
"0.6094525",
"0.6012656",
"0.59751195",
"0.5968719",
"0.59618306",
"0.591484",
"0.5876878",
"0.5859169",
"0.57449424",
"0.5672294",
"0.5643716",
"0.5605917",
"0.55924374",
"0.555852",
"0.54945356",
"0.54692984",
"0.54551154",
"0.54467124",
"0.54414... | 0.56860626 | 11 |
Read a &39;virtualization.VirtualDisk&39; resource. | def get_virtualization_virtual_disk_by_moid_with_http_info(moid, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: VirtualizationApi.get_virtualization_virtual_disk_by_moid ...'
end
# verify the required parameter 'moid' is set
if @api_client.config.client_side_validation && moid.nil?
fail ArgumentError, "Missing the required parameter 'moid' when calling VirtualizationApi.get_virtualization_virtual_disk_by_moid"
end
# resource path
local_var_path = '/api/v1/virtualization/VirtualDisks/{Moid}'.sub('{' + 'Moid' + '}', CGI.escape(moid.to_s))
# query parameters
query_params = opts[:query_params] || {}
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/csv', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'])
# form parameters
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:debug_body]
# return_type
return_type = opts[:debug_return_type] || 'VirtualizationVirtualDisk'
# auth_names
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'http_signature', 'oAuth2', 'oAuth2']
new_options = opts.merge(
:operation => :"VirtualizationApi.get_virtualization_virtual_disk_by_moid",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => return_type
)
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: VirtualizationApi#get_virtualization_virtual_disk_by_moid\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def disk\n @disk ||= begin\n dInfo = OpenStruct.new\n dInfo.lvObj = self\n dInfo.hardwareId = \"\"\n MiqDisk.new(Lvm2DiskIO, dInfo, 0)\n end\n end",
"def show\n @physical_disk = PhysicalDisk.find(params[:id])\n\n respond_to do |format|\n format.html # show.html.erb\n fo... | [
"0.6376923",
"0.6258201",
"0.6227638",
"0.6165242",
"0.6154312",
"0.591702",
"0.58880997",
"0.5878763",
"0.58763725",
"0.5869117",
"0.57560223",
"0.56881547",
"0.5663116",
"0.55547273",
"0.5554209",
"0.546431",
"0.54343474",
"0.54235524",
"0.5410152",
"0.53857327",
"0.5378722... | 0.4865713 | 78 |
Read a 'virtualization.VirtualDisk' resource. | def get_virtualization_virtual_disk_list(opts = {})
data, _status_code, _headers = get_virtualization_virtual_disk_list_with_http_info(opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def disk\n @disk ||= begin\n dInfo = OpenStruct.new\n dInfo.lvObj = self\n dInfo.hardwareId = \"\"\n MiqDisk.new(Lvm2DiskIO, dInfo, 0)\n end\n end",
"def get_os_disk(vm)\n uri = Addressable::URI.parse(vm.properties.storage_profile.os_disk.vhd.uri)\n\n # The uri looks like... | [
"0.66635346",
"0.62772465",
"0.6094525",
"0.6012656",
"0.59751195",
"0.5968719",
"0.59618306",
"0.591484",
"0.5876878",
"0.5859169",
"0.57449424",
"0.56860626",
"0.5672294",
"0.5643716",
"0.5605917",
"0.55924374",
"0.555852",
"0.54945356",
"0.54692984",
"0.54551154",
"0.54467... | 0.5369993 | 29 |
Read a &39;virtualization.VirtualDisk&39; resource. | def get_virtualization_virtual_disk_list_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: VirtualizationApi.get_virtualization_virtual_disk_list ...'
end
allowable_values = ["allpages", "none"]
if @api_client.config.client_side_validation && opts[:'inlinecount'] && !allowable_values.include?(opts[:'inlinecount'])
fail ArgumentError, "invalid value for \"inlinecount\", must be one of #{allowable_values}"
end
# resource path
local_var_path = '/api/v1/virtualization/VirtualDisks'
# query parameters
query_params = opts[:query_params] || {}
query_params[:'$filter'] = opts[:'filter'] if !opts[:'filter'].nil?
query_params[:'$orderby'] = opts[:'orderby'] if !opts[:'orderby'].nil?
query_params[:'$top'] = opts[:'top'] if !opts[:'top'].nil?
query_params[:'$skip'] = opts[:'skip'] if !opts[:'skip'].nil?
query_params[:'$select'] = opts[:'select'] if !opts[:'select'].nil?
query_params[:'$expand'] = opts[:'expand'] if !opts[:'expand'].nil?
query_params[:'$apply'] = opts[:'apply'] if !opts[:'apply'].nil?
query_params[:'$count'] = opts[:'count'] if !opts[:'count'].nil?
query_params[:'$inlinecount'] = opts[:'inlinecount'] if !opts[:'inlinecount'].nil?
query_params[:'at'] = opts[:'at'] if !opts[:'at'].nil?
query_params[:'tags'] = opts[:'tags'] if !opts[:'tags'].nil?
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/csv', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'])
# form parameters
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:debug_body]
# return_type
return_type = opts[:debug_return_type] || 'VirtualizationVirtualDiskResponse'
# auth_names
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'http_signature', 'oAuth2', 'oAuth2']
new_options = opts.merge(
:operation => :"VirtualizationApi.get_virtualization_virtual_disk_list",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => return_type
)
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: VirtualizationApi#get_virtualization_virtual_disk_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def disk\n @disk ||= begin\n dInfo = OpenStruct.new\n dInfo.lvObj = self\n dInfo.hardwareId = \"\"\n MiqDisk.new(Lvm2DiskIO, dInfo, 0)\n end\n end",
"def show\n @physical_disk = PhysicalDisk.find(params[:id])\n\n respond_to do |format|\n format.html # show.html.erb\n fo... | [
"0.6376923",
"0.6258201",
"0.6227638",
"0.6165242",
"0.6154312",
"0.591702",
"0.58880997",
"0.5878763",
"0.58763725",
"0.5869117",
"0.57560223",
"0.56881547",
"0.5663116",
"0.55547273",
"0.5554209",
"0.546431",
"0.54343474",
"0.54235524",
"0.5410152",
"0.53857327",
"0.5378722... | 0.53782576 | 21 |
Read a 'virtualization.VirtualMachine' resource. | def get_virtualization_virtual_machine_by_moid(moid, opts = {})
data, _status_code, _headers = get_virtualization_virtual_machine_by_moid_with_http_info(moid, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vm(name)\n logger.debug \"Retrieving VM '#{name}' from #{description}\"\n Derelict::VirtualMachine.new(self, name).validate!\n end",
"def vm(name)\n @conn.vms.get(name)\n end",
"def virtual_machine(name)\n kubevirt_client.get_virtual_machine(name, @namespace)\n end",
"def get_vm_info... | [
"0.68195695",
"0.6379977",
"0.6277662",
"0.6104524",
"0.60858643",
"0.6051921",
"0.6018843",
"0.60087675",
"0.5940833",
"0.5845016",
"0.58072037",
"0.5771226",
"0.57053393",
"0.5677798",
"0.5656454",
"0.56402284",
"0.562723",
"0.5626182",
"0.5618819",
"0.5550061",
"0.5535513"... | 0.0 | -1 |
Read a &39;virtualization.VirtualMachine&39; resource. | def get_virtualization_virtual_machine_by_moid_with_http_info(moid, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: VirtualizationApi.get_virtualization_virtual_machine_by_moid ...'
end
# verify the required parameter 'moid' is set
if @api_client.config.client_side_validation && moid.nil?
fail ArgumentError, "Missing the required parameter 'moid' when calling VirtualizationApi.get_virtualization_virtual_machine_by_moid"
end
# resource path
local_var_path = '/api/v1/virtualization/VirtualMachines/{Moid}'.sub('{' + 'Moid' + '}', CGI.escape(moid.to_s))
# query parameters
query_params = opts[:query_params] || {}
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/csv', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'])
# form parameters
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:debug_body]
# return_type
return_type = opts[:debug_return_type] || 'VirtualizationVirtualMachine'
# auth_names
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'http_signature', 'oAuth2', 'oAuth2']
new_options = opts.merge(
:operation => :"VirtualizationApi.get_virtualization_virtual_machine_by_moid",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => return_type
)
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: VirtualizationApi#get_virtualization_virtual_machine_by_moid\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vm(name)\n logger.debug \"Retrieving VM '#{name}' from #{description}\"\n Derelict::VirtualMachine.new(self, name).validate!\n end",
"def get_vm_info()\n promise = @compute_client.virtual_machines.get(@rg_name, @instance_name)\n result = promise.value!\n OOLog.info(\"vm info :\"+r... | [
"0.62303865",
"0.5957033",
"0.5932169",
"0.5930859",
"0.59185237",
"0.58911175",
"0.57261497",
"0.5715955",
"0.57118076",
"0.5695356",
"0.56902283",
"0.5578734",
"0.5574988",
"0.5550222",
"0.55335754",
"0.552236",
"0.55049205",
"0.5476313",
"0.5433523",
"0.5433523",
"0.542113... | 0.0 | -1 |
Read a 'virtualization.VirtualMachine' resource. | def get_virtualization_virtual_machine_list(opts = {})
data, _status_code, _headers = get_virtualization_virtual_machine_list_with_http_info(opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vm(name)\n logger.debug \"Retrieving VM '#{name}' from #{description}\"\n Derelict::VirtualMachine.new(self, name).validate!\n end",
"def vm(name)\n @conn.vms.get(name)\n end",
"def virtual_machine(name)\n kubevirt_client.get_virtual_machine(name, @namespace)\n end",
"def get_vm_info... | [
"0.68195695",
"0.6379977",
"0.6277662",
"0.6104524",
"0.60858643",
"0.6051921",
"0.6018843",
"0.60087675",
"0.5940833",
"0.5845016",
"0.58072037",
"0.5771226",
"0.57053393",
"0.5677798",
"0.5656454",
"0.56402284",
"0.562723",
"0.5626182",
"0.5618819",
"0.5550061",
"0.5535513"... | 0.0 | -1 |
Read a &39;virtualization.VirtualMachine&39; resource. | def get_virtualization_virtual_machine_list_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: VirtualizationApi.get_virtualization_virtual_machine_list ...'
end
allowable_values = ["allpages", "none"]
if @api_client.config.client_side_validation && opts[:'inlinecount'] && !allowable_values.include?(opts[:'inlinecount'])
fail ArgumentError, "invalid value for \"inlinecount\", must be one of #{allowable_values}"
end
# resource path
local_var_path = '/api/v1/virtualization/VirtualMachines'
# query parameters
query_params = opts[:query_params] || {}
query_params[:'$filter'] = opts[:'filter'] if !opts[:'filter'].nil?
query_params[:'$orderby'] = opts[:'orderby'] if !opts[:'orderby'].nil?
query_params[:'$top'] = opts[:'top'] if !opts[:'top'].nil?
query_params[:'$skip'] = opts[:'skip'] if !opts[:'skip'].nil?
query_params[:'$select'] = opts[:'select'] if !opts[:'select'].nil?
query_params[:'$expand'] = opts[:'expand'] if !opts[:'expand'].nil?
query_params[:'$apply'] = opts[:'apply'] if !opts[:'apply'].nil?
query_params[:'$count'] = opts[:'count'] if !opts[:'count'].nil?
query_params[:'$inlinecount'] = opts[:'inlinecount'] if !opts[:'inlinecount'].nil?
query_params[:'at'] = opts[:'at'] if !opts[:'at'].nil?
query_params[:'tags'] = opts[:'tags'] if !opts[:'tags'].nil?
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/csv', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'])
# form parameters
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:debug_body]
# return_type
return_type = opts[:debug_return_type] || 'VirtualizationVirtualMachineResponse'
# auth_names
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'http_signature', 'oAuth2', 'oAuth2']
new_options = opts.merge(
:operation => :"VirtualizationApi.get_virtualization_virtual_machine_list",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => return_type
)
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: VirtualizationApi#get_virtualization_virtual_machine_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vm(name)\n logger.debug \"Retrieving VM '#{name}' from #{description}\"\n Derelict::VirtualMachine.new(self, name).validate!\n end",
"def get_vm_info()\n promise = @compute_client.virtual_machines.get(@rg_name, @instance_name)\n result = promise.value!\n OOLog.info(\"vm info :\"+r... | [
"0.62303865",
"0.5957033",
"0.5932169",
"0.5930859",
"0.59185237",
"0.58911175",
"0.57261497",
"0.5715955",
"0.57118076",
"0.5695356",
"0.56902283",
"0.5578734",
"0.5574988",
"0.5550222",
"0.55335754",
"0.552236",
"0.55049205",
"0.5476313",
"0.5433523",
"0.5433523",
"0.542113... | 0.0 | -1 |
Read a 'virtualization.VirtualNetwork' resource. | def get_virtualization_virtual_network_by_moid(moid, opts = {})
data, _status_code, _headers = get_virtualization_virtual_network_by_moid_with_http_info(moid, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get(resource_group_name)\n OOLog.fatal('VNET name is nil. It is required.') if @name.nil?\n OOLog.info(\"Getting Virtual Network '#{@name}' ...\")\n start_time = Time.now.to_i\n begin\n response = @network_client.virtual_networks.get(resource_group_name, @name)\n rescue MsRestAz... | [
"0.6910208",
"0.6898045",
"0.6773576",
"0.6270041",
"0.6012069",
"0.59387296",
"0.5902796",
"0.5793744",
"0.5785913",
"0.56867194",
"0.5509562",
"0.5452489",
"0.54196036",
"0.5319789",
"0.5297145",
"0.52870643",
"0.52528447",
"0.52473956",
"0.52421874",
"0.5224825",
"0.519020... | 0.48556268 | 46 |
Read a &39;virtualization.VirtualNetwork&39; resource. | def get_virtualization_virtual_network_by_moid_with_http_info(moid, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: VirtualizationApi.get_virtualization_virtual_network_by_moid ...'
end
# verify the required parameter 'moid' is set
if @api_client.config.client_side_validation && moid.nil?
fail ArgumentError, "Missing the required parameter 'moid' when calling VirtualizationApi.get_virtualization_virtual_network_by_moid"
end
# resource path
local_var_path = '/api/v1/virtualization/VirtualNetworks/{Moid}'.sub('{' + 'Moid' + '}', CGI.escape(moid.to_s))
# query parameters
query_params = opts[:query_params] || {}
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/csv', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'])
# form parameters
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:debug_body]
# return_type
return_type = opts[:debug_return_type] || 'VirtualizationVirtualNetwork'
# auth_names
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'http_signature', 'oAuth2', 'oAuth2']
new_options = opts.merge(
:operation => :"VirtualizationApi.get_virtualization_virtual_network_by_moid",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => return_type
)
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: VirtualizationApi#get_virtualization_virtual_network_by_moid\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get(resource_group_name)\n OOLog.fatal('VNET name is nil. It is required.') if @name.nil?\n OOLog.info(\"Getting Virtual Network '#{@name}' ...\")\n start_time = Time.now.to_i\n begin\n response = @network_client.virtual_networks.get(resource_group_name, @name)\n rescue MsRestAz... | [
"0.66911685",
"0.6667102",
"0.66093934",
"0.6369453",
"0.6125204",
"0.5976502",
"0.5792064",
"0.56939334",
"0.5600564",
"0.55096835",
"0.54016197",
"0.53099215",
"0.5309914",
"0.5292365",
"0.5286026",
"0.5284296",
"0.5204266",
"0.51946104",
"0.515845",
"0.5157394",
"0.5157394... | 0.46221924 | 97 |
Read a 'virtualization.VirtualNetwork' resource. | def get_virtualization_virtual_network_list(opts = {})
data, _status_code, _headers = get_virtualization_virtual_network_list_with_http_info(opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get(resource_group_name)\n OOLog.fatal('VNET name is nil. It is required.') if @name.nil?\n OOLog.info(\"Getting Virtual Network '#{@name}' ...\")\n start_time = Time.now.to_i\n begin\n response = @network_client.virtual_networks.get(resource_group_name, @name)\n rescue MsRestAz... | [
"0.6910208",
"0.6898045",
"0.6773576",
"0.6270041",
"0.6012069",
"0.59387296",
"0.5902796",
"0.5793744",
"0.5785913",
"0.56867194",
"0.5509562",
"0.5452489",
"0.54196036",
"0.5319789",
"0.5297145",
"0.52870643",
"0.52528447",
"0.52473956",
"0.52421874",
"0.5224825",
"0.519020... | 0.46932566 | 65 |
Read a &39;virtualization.VirtualNetwork&39; resource. | def get_virtualization_virtual_network_list_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: VirtualizationApi.get_virtualization_virtual_network_list ...'
end
allowable_values = ["allpages", "none"]
if @api_client.config.client_side_validation && opts[:'inlinecount'] && !allowable_values.include?(opts[:'inlinecount'])
fail ArgumentError, "invalid value for \"inlinecount\", must be one of #{allowable_values}"
end
# resource path
local_var_path = '/api/v1/virtualization/VirtualNetworks'
# query parameters
query_params = opts[:query_params] || {}
query_params[:'$filter'] = opts[:'filter'] if !opts[:'filter'].nil?
query_params[:'$orderby'] = opts[:'orderby'] if !opts[:'orderby'].nil?
query_params[:'$top'] = opts[:'top'] if !opts[:'top'].nil?
query_params[:'$skip'] = opts[:'skip'] if !opts[:'skip'].nil?
query_params[:'$select'] = opts[:'select'] if !opts[:'select'].nil?
query_params[:'$expand'] = opts[:'expand'] if !opts[:'expand'].nil?
query_params[:'$apply'] = opts[:'apply'] if !opts[:'apply'].nil?
query_params[:'$count'] = opts[:'count'] if !opts[:'count'].nil?
query_params[:'$inlinecount'] = opts[:'inlinecount'] if !opts[:'inlinecount'].nil?
query_params[:'at'] = opts[:'at'] if !opts[:'at'].nil?
query_params[:'tags'] = opts[:'tags'] if !opts[:'tags'].nil?
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/csv', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'])
# form parameters
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:debug_body]
# return_type
return_type = opts[:debug_return_type] || 'VirtualizationVirtualNetworkResponse'
# auth_names
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'http_signature', 'oAuth2', 'oAuth2']
new_options = opts.merge(
:operation => :"VirtualizationApi.get_virtualization_virtual_network_list",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => return_type
)
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: VirtualizationApi#get_virtualization_virtual_network_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get(resource_group_name)\n OOLog.fatal('VNET name is nil. It is required.') if @name.nil?\n OOLog.info(\"Getting Virtual Network '#{@name}' ...\")\n start_time = Time.now.to_i\n begin\n response = @network_client.virtual_networks.get(resource_group_name, @name)\n rescue MsRestAz... | [
"0.66911685",
"0.6667102",
"0.66093934",
"0.6369453",
"0.6125204",
"0.5976502",
"0.5792064",
"0.56939334",
"0.5600564",
"0.55096835",
"0.54016197",
"0.53099215",
"0.5309914",
"0.5292365",
"0.5286026",
"0.5284296",
"0.5204266",
"0.51946104",
"0.515845",
"0.5157394",
"0.5157394... | 0.4688519 | 79 |
Read a 'virtualization.VmwareCluster' resource. | def get_virtualization_vmware_cluster_by_moid(moid, opts = {})
data, _status_code, _headers = get_virtualization_vmware_cluster_by_moid_with_http_info(moid, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_cluster(name)\n cl_obj = Com::Vmware::Vcenter::Cluster.new(vapi_config)\n\n # @todo: Use Cluster::FilterSpec to only get the cluster which was asked\n # filter = Com::Vmware::Vcenter::Cluster::FilterSpec.new(clusters: Set.new(['...']))\n clusters = cl_obj.list.select { |cluster|... | [
"0.65467405",
"0.6285299",
"0.6259067",
"0.60926205",
"0.6027882",
"0.60110754",
"0.60059595",
"0.5962145",
"0.59348696",
"0.5903506",
"0.5781943",
"0.57569665",
"0.5748884",
"0.5678013",
"0.56467074",
"0.56331456",
"0.5554086",
"0.5529526",
"0.547074",
"0.5468326",
"0.546780... | 0.56196 | 16 |
Read a &39;virtualization.VmwareCluster&39; resource. | def get_virtualization_vmware_cluster_by_moid_with_http_info(moid, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: VirtualizationApi.get_virtualization_vmware_cluster_by_moid ...'
end
# verify the required parameter 'moid' is set
if @api_client.config.client_side_validation && moid.nil?
fail ArgumentError, "Missing the required parameter 'moid' when calling VirtualizationApi.get_virtualization_vmware_cluster_by_moid"
end
# resource path
local_var_path = '/api/v1/virtualization/VmwareClusters/{Moid}'.sub('{' + 'Moid' + '}', CGI.escape(moid.to_s))
# query parameters
query_params = opts[:query_params] || {}
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/csv', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'])
# form parameters
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:debug_body]
# return_type
return_type = opts[:debug_return_type] || 'VirtualizationVmwareCluster'
# auth_names
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'http_signature', 'oAuth2', 'oAuth2']
new_options = opts.merge(
:operation => :"VirtualizationApi.get_virtualization_vmware_cluster_by_moid",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => return_type
)
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: VirtualizationApi#get_virtualization_vmware_cluster_by_moid\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_cluster(name)\n cl_obj = Com::Vmware::Vcenter::Cluster.new(vapi_config)\n\n # @todo: Use Cluster::FilterSpec to only get the cluster which was asked\n # filter = Com::Vmware::Vcenter::Cluster::FilterSpec.new(clusters: Set.new(['...']))\n clusters = cl_obj.list.select { |cluster|... | [
"0.61500627",
"0.591937",
"0.5909525",
"0.5901913",
"0.58988464",
"0.57995427",
"0.57612604",
"0.57586426",
"0.57046217",
"0.5593106",
"0.5575483",
"0.5483352",
"0.5462634",
"0.5449733",
"0.54304796",
"0.54096013",
"0.5402912",
"0.5395635",
"0.5394296",
"0.53935266",
"0.53829... | 0.52294964 | 32 |
Read a 'virtualization.VmwareCluster' resource. | def get_virtualization_vmware_cluster_list(opts = {})
data, _status_code, _headers = get_virtualization_vmware_cluster_list_with_http_info(opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_cluster(name)\n cl_obj = Com::Vmware::Vcenter::Cluster.new(vapi_config)\n\n # @todo: Use Cluster::FilterSpec to only get the cluster which was asked\n # filter = Com::Vmware::Vcenter::Cluster::FilterSpec.new(clusters: Set.new(['...']))\n clusters = cl_obj.list.select { |cluster|... | [
"0.65467405",
"0.6285299",
"0.6259067",
"0.60926205",
"0.6027882",
"0.60110754",
"0.60059595",
"0.5962145",
"0.59348696",
"0.5903506",
"0.5781943",
"0.57569665",
"0.5748884",
"0.5678013",
"0.56467074",
"0.56331456",
"0.56196",
"0.5554086",
"0.5529526",
"0.547074",
"0.5468326"... | 0.5403634 | 29 |
Read a &39;virtualization.VmwareCluster&39; resource. | def get_virtualization_vmware_cluster_list_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: VirtualizationApi.get_virtualization_vmware_cluster_list ...'
end
allowable_values = ["allpages", "none"]
if @api_client.config.client_side_validation && opts[:'inlinecount'] && !allowable_values.include?(opts[:'inlinecount'])
fail ArgumentError, "invalid value for \"inlinecount\", must be one of #{allowable_values}"
end
# resource path
local_var_path = '/api/v1/virtualization/VmwareClusters'
# query parameters
query_params = opts[:query_params] || {}
query_params[:'$filter'] = opts[:'filter'] if !opts[:'filter'].nil?
query_params[:'$orderby'] = opts[:'orderby'] if !opts[:'orderby'].nil?
query_params[:'$top'] = opts[:'top'] if !opts[:'top'].nil?
query_params[:'$skip'] = opts[:'skip'] if !opts[:'skip'].nil?
query_params[:'$select'] = opts[:'select'] if !opts[:'select'].nil?
query_params[:'$expand'] = opts[:'expand'] if !opts[:'expand'].nil?
query_params[:'$apply'] = opts[:'apply'] if !opts[:'apply'].nil?
query_params[:'$count'] = opts[:'count'] if !opts[:'count'].nil?
query_params[:'$inlinecount'] = opts[:'inlinecount'] if !opts[:'inlinecount'].nil?
query_params[:'at'] = opts[:'at'] if !opts[:'at'].nil?
query_params[:'tags'] = opts[:'tags'] if !opts[:'tags'].nil?
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/csv', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'])
# form parameters
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:debug_body]
# return_type
return_type = opts[:debug_return_type] || 'VirtualizationVmwareClusterResponse'
# auth_names
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'http_signature', 'oAuth2', 'oAuth2']
new_options = opts.merge(
:operation => :"VirtualizationApi.get_virtualization_vmware_cluster_list",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => return_type
)
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: VirtualizationApi#get_virtualization_vmware_cluster_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_cluster(name)\n cl_obj = Com::Vmware::Vcenter::Cluster.new(vapi_config)\n\n # @todo: Use Cluster::FilterSpec to only get the cluster which was asked\n # filter = Com::Vmware::Vcenter::Cluster::FilterSpec.new(clusters: Set.new(['...']))\n clusters = cl_obj.list.select { |cluster|... | [
"0.61500627",
"0.591937",
"0.5909525",
"0.5901913",
"0.58988464",
"0.57995427",
"0.57612604",
"0.57586426",
"0.57046217",
"0.5593106",
"0.5575483",
"0.5483352",
"0.5462634",
"0.5449733",
"0.54304796",
"0.54096013",
"0.5402912",
"0.5394296",
"0.53935266",
"0.53829086",
"0.5382... | 0.5395635 | 17 |
Read a 'virtualization.VmwareDatacenter' resource. | def get_virtualization_vmware_datacenter_by_moid(moid, opts = {})
data, _status_code, _headers = get_virtualization_vmware_datacenter_by_moid_with_http_info(moid, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_vcenter_dc(host)\n host.info! true\n VIM.connect(\n :host => host['//VCENTER_HOST'], :insecure => true,\n :user => host['//VCENTER_USER'], :password => host['//VCENTER_PASSWORD']\n ).serviceInstance.find_datacenter\n end",
"def get(ref)\n if !@items[ref.to_sym]\n rbv... | [
"0.6669088",
"0.6329179",
"0.6137266",
"0.59834",
"0.5870241",
"0.58393615",
"0.5630221",
"0.5610335",
"0.55074453",
"0.54933053",
"0.5443382",
"0.5359376",
"0.5341725",
"0.5285457",
"0.52085465",
"0.51522225",
"0.5109477",
"0.50929195",
"0.50878507",
"0.5079106",
"0.50199336... | 0.5169238 | 15 |
Read a &39;virtualization.VmwareDatacenter&39; resource. | def get_virtualization_vmware_datacenter_by_moid_with_http_info(moid, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: VirtualizationApi.get_virtualization_vmware_datacenter_by_moid ...'
end
# verify the required parameter 'moid' is set
if @api_client.config.client_side_validation && moid.nil?
fail ArgumentError, "Missing the required parameter 'moid' when calling VirtualizationApi.get_virtualization_vmware_datacenter_by_moid"
end
# resource path
local_var_path = '/api/v1/virtualization/VmwareDatacenters/{Moid}'.sub('{' + 'Moid' + '}', CGI.escape(moid.to_s))
# query parameters
query_params = opts[:query_params] || {}
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/csv', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'])
# form parameters
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:debug_body]
# return_type
return_type = opts[:debug_return_type] || 'VirtualizationVmwareDatacenter'
# auth_names
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'http_signature', 'oAuth2', 'oAuth2']
new_options = opts.merge(
:operation => :"VirtualizationApi.get_virtualization_vmware_datacenter_by_moid",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => return_type
)
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: VirtualizationApi#get_virtualization_vmware_datacenter_by_moid\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_vcenter_dc(host)\n host.info! true\n VIM.connect(\n :host => host['//VCENTER_HOST'], :insecure => true,\n :user => host['//VCENTER_USER'], :password => host['//VCENTER_PASSWORD']\n ).serviceInstance.find_datacenter\n end",
"def get(ref)\n if !@items[ref.to_sym]\n rbv... | [
"0.665148",
"0.62644625",
"0.62003934",
"0.6157509",
"0.5772687",
"0.57519114",
"0.5738866",
"0.5667459",
"0.55821425",
"0.5428392",
"0.53972334",
"0.53565365",
"0.5285266",
"0.52495736",
"0.5245256",
"0.51857805",
"0.5142277",
"0.51054734",
"0.50944436",
"0.5068725",
"0.5041... | 0.45992786 | 53 |
Read a 'virtualization.VmwareDatacenter' resource. | def get_virtualization_vmware_datacenter_list(opts = {})
data, _status_code, _headers = get_virtualization_vmware_datacenter_list_with_http_info(opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_vcenter_dc(host)\n host.info! true\n VIM.connect(\n :host => host['//VCENTER_HOST'], :insecure => true,\n :user => host['//VCENTER_USER'], :password => host['//VCENTER_PASSWORD']\n ).serviceInstance.find_datacenter\n end",
"def get(ref)\n if !@items[ref.to_sym]\n rbv... | [
"0.6669088",
"0.6329179",
"0.6137266",
"0.59834",
"0.5870241",
"0.58393615",
"0.5630221",
"0.5610335",
"0.55074453",
"0.5443382",
"0.5359376",
"0.5341725",
"0.5285457",
"0.52085465",
"0.5169238",
"0.51522225",
"0.5109477",
"0.50929195",
"0.50878507",
"0.5079106",
"0.50199336"... | 0.54933053 | 9 |
Read a &39;virtualization.VmwareDatacenter&39; resource. | def get_virtualization_vmware_datacenter_list_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: VirtualizationApi.get_virtualization_vmware_datacenter_list ...'
end
allowable_values = ["allpages", "none"]
if @api_client.config.client_side_validation && opts[:'inlinecount'] && !allowable_values.include?(opts[:'inlinecount'])
fail ArgumentError, "invalid value for \"inlinecount\", must be one of #{allowable_values}"
end
# resource path
local_var_path = '/api/v1/virtualization/VmwareDatacenters'
# query parameters
query_params = opts[:query_params] || {}
query_params[:'$filter'] = opts[:'filter'] if !opts[:'filter'].nil?
query_params[:'$orderby'] = opts[:'orderby'] if !opts[:'orderby'].nil?
query_params[:'$top'] = opts[:'top'] if !opts[:'top'].nil?
query_params[:'$skip'] = opts[:'skip'] if !opts[:'skip'].nil?
query_params[:'$select'] = opts[:'select'] if !opts[:'select'].nil?
query_params[:'$expand'] = opts[:'expand'] if !opts[:'expand'].nil?
query_params[:'$apply'] = opts[:'apply'] if !opts[:'apply'].nil?
query_params[:'$count'] = opts[:'count'] if !opts[:'count'].nil?
query_params[:'$inlinecount'] = opts[:'inlinecount'] if !opts[:'inlinecount'].nil?
query_params[:'at'] = opts[:'at'] if !opts[:'at'].nil?
query_params[:'tags'] = opts[:'tags'] if !opts[:'tags'].nil?
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/csv', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'])
# form parameters
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:debug_body]
# return_type
return_type = opts[:debug_return_type] || 'VirtualizationVmwareDatacenterResponse'
# auth_names
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'http_signature', 'oAuth2', 'oAuth2']
new_options = opts.merge(
:operation => :"VirtualizationApi.get_virtualization_vmware_datacenter_list",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => return_type
)
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: VirtualizationApi#get_virtualization_vmware_datacenter_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_vcenter_dc(host)\n host.info! true\n VIM.connect(\n :host => host['//VCENTER_HOST'], :insecure => true,\n :user => host['//VCENTER_USER'], :password => host['//VCENTER_PASSWORD']\n ).serviceInstance.find_datacenter\n end",
"def get(ref)\n if !@items[ref.to_sym]\n rbv... | [
"0.665148",
"0.62644625",
"0.62003934",
"0.6157509",
"0.5772687",
"0.57519114",
"0.5738866",
"0.5667459",
"0.55821425",
"0.5428392",
"0.53972334",
"0.53565365",
"0.5285266",
"0.52495736",
"0.5245256",
"0.51857805",
"0.5142277",
"0.51054734",
"0.50944436",
"0.5068725",
"0.5041... | 0.5020592 | 25 |
Read a 'virtualization.VmwareDatastore' resource. | def get_virtualization_vmware_datastore_by_moid(moid, opts = {})
data, _status_code, _headers = get_virtualization_vmware_datastore_by_moid_with_http_info(moid, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def datastore(arg)\n ds = VCenterDriver::VIHelper.one_item(OpenNebula::Datastore, arg)\n\n {\n :ds_ref => ds['TEMPLATE/VCENTER_DS_REF'],\n :one_item => ds\n }\n end",
"def datastore\n result = splunk_exec(\"show\",[\"datastore-dir\"])\n result = result.to_s.spl... | [
"0.6315496",
"0.59578836",
"0.58408326",
"0.5522437",
"0.5451279",
"0.5380622",
"0.5255142",
"0.5247339",
"0.52397573",
"0.51421887",
"0.50726336",
"0.50622374",
"0.5050007",
"0.5023758",
"0.50128907",
"0.50054175",
"0.49267864",
"0.48920563",
"0.48687524",
"0.48581663",
"0.4... | 0.50701517 | 11 |
Read a &39;virtualization.VmwareDatastore&39; resource. | def get_virtualization_vmware_datastore_by_moid_with_http_info(moid, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: VirtualizationApi.get_virtualization_vmware_datastore_by_moid ...'
end
# verify the required parameter 'moid' is set
if @api_client.config.client_side_validation && moid.nil?
fail ArgumentError, "Missing the required parameter 'moid' when calling VirtualizationApi.get_virtualization_vmware_datastore_by_moid"
end
# resource path
local_var_path = '/api/v1/virtualization/VmwareDatastores/{Moid}'.sub('{' + 'Moid' + '}', CGI.escape(moid.to_s))
# query parameters
query_params = opts[:query_params] || {}
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/csv', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'])
# form parameters
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:debug_body]
# return_type
return_type = opts[:debug_return_type] || 'VirtualizationVmwareDatastore'
# auth_names
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'http_signature', 'oAuth2', 'oAuth2']
new_options = opts.merge(
:operation => :"VirtualizationApi.get_virtualization_vmware_datastore_by_moid",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => return_type
)
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: VirtualizationApi#get_virtualization_vmware_datastore_by_moid\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def datastore(arg)\n ds = VCenterDriver::VIHelper.one_item(OpenNebula::Datastore, arg)\n\n {\n :ds_ref => ds['TEMPLATE/VCENTER_DS_REF'],\n :one_item => ds\n }\n end",
"def datastore\n result = splunk_exec(\"show\",[\"datastore-dir\"])\n result = result.to_s.spl... | [
"0.62246794",
"0.5873678",
"0.558367",
"0.5562393",
"0.5493364",
"0.5457035",
"0.54110754",
"0.5275129",
"0.52471995",
"0.5234974",
"0.51883",
"0.5176054",
"0.51489973",
"0.51438564",
"0.5106972",
"0.50931317",
"0.5073491",
"0.5066473",
"0.5028802",
"0.49875963",
"0.49706918"... | 0.5021747 | 19 |
Read a 'virtualization.VmwareDatastoreCluster' resource. | def get_virtualization_vmware_datastore_cluster_by_moid(moid, opts = {})
data, _status_code, _headers = get_virtualization_vmware_datastore_cluster_by_moid_with_http_info(moid, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_cluster instance_id, cluster_id\n instances.get_cluster name: cluster_path(instance_id, cluster_id)\n end",
"def get_cluster(name)\n cl_obj = Com::Vmware::Vcenter::Cluster.new(vapi_config)\n\n # @todo: Use Cluster::FilterSpec to only get the cluster which was asked\n ... | [
"0.6427958",
"0.62992007",
"0.6198898",
"0.5983047",
"0.5970214",
"0.5918231",
"0.5895021",
"0.58360124",
"0.5785558",
"0.57508963",
"0.57446396",
"0.5734647",
"0.5693491",
"0.56734717",
"0.56541634",
"0.561982",
"0.56191236",
"0.5595089",
"0.55863285",
"0.55698985",
"0.55422... | 0.57051027 | 12 |
Read a &39;virtualization.VmwareDatastoreCluster&39; resource. | def get_virtualization_vmware_datastore_cluster_by_moid_with_http_info(moid, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: VirtualizationApi.get_virtualization_vmware_datastore_cluster_by_moid ...'
end
# verify the required parameter 'moid' is set
if @api_client.config.client_side_validation && moid.nil?
fail ArgumentError, "Missing the required parameter 'moid' when calling VirtualizationApi.get_virtualization_vmware_datastore_cluster_by_moid"
end
# resource path
local_var_path = '/api/v1/virtualization/VmwareDatastoreClusters/{Moid}'.sub('{' + 'Moid' + '}', CGI.escape(moid.to_s))
# query parameters
query_params = opts[:query_params] || {}
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/csv', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'])
# form parameters
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:debug_body]
# return_type
return_type = opts[:debug_return_type] || 'VirtualizationVmwareDatastoreCluster'
# auth_names
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'http_signature', 'oAuth2', 'oAuth2']
new_options = opts.merge(
:operation => :"VirtualizationApi.get_virtualization_vmware_datastore_cluster_by_moid",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => return_type
)
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: VirtualizationApi#get_virtualization_vmware_datastore_cluster_by_moid\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_cluster instance_id, cluster_id\n instances.get_cluster name: cluster_path(instance_id, cluster_id)\n end",
"def get_cluster instance_id, cluster_id\n execute do\n instances.get_cluster(\n cluster_path(instance_id, cluster_id)\n )\n end... | [
"0.63422596",
"0.6179643",
"0.61749",
"0.60375565",
"0.58926654",
"0.5889517",
"0.58209807",
"0.58182746",
"0.57648915",
"0.5758458",
"0.56827027",
"0.5681319",
"0.56666815",
"0.5653967",
"0.56258345",
"0.5609813",
"0.55914295",
"0.5580028",
"0.55630636",
"0.5527993",
"0.5521... | 0.53458387 | 32 |
Read a 'virtualization.VmwareDatastoreCluster' resource. | def get_virtualization_vmware_datastore_cluster_list(opts = {})
data, _status_code, _headers = get_virtualization_vmware_datastore_cluster_list_with_http_info(opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_cluster instance_id, cluster_id\n instances.get_cluster name: cluster_path(instance_id, cluster_id)\n end",
"def get_cluster(name)\n cl_obj = Com::Vmware::Vcenter::Cluster.new(vapi_config)\n\n # @todo: Use Cluster::FilterSpec to only get the cluster which was asked\n ... | [
"0.6427958",
"0.62992007",
"0.6198898",
"0.5983047",
"0.5970214",
"0.5918231",
"0.5895021",
"0.58360124",
"0.5785558",
"0.57446396",
"0.5734647",
"0.57051027",
"0.5693491",
"0.56734717",
"0.56541634",
"0.561982",
"0.56191236",
"0.5595089",
"0.55863285",
"0.55698985",
"0.55422... | 0.57508963 | 9 |
Read a &39;virtualization.VmwareDatastoreCluster&39; resource. | def get_virtualization_vmware_datastore_cluster_list_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: VirtualizationApi.get_virtualization_vmware_datastore_cluster_list ...'
end
allowable_values = ["allpages", "none"]
if @api_client.config.client_side_validation && opts[:'inlinecount'] && !allowable_values.include?(opts[:'inlinecount'])
fail ArgumentError, "invalid value for \"inlinecount\", must be one of #{allowable_values}"
end
# resource path
local_var_path = '/api/v1/virtualization/VmwareDatastoreClusters'
# query parameters
query_params = opts[:query_params] || {}
query_params[:'$filter'] = opts[:'filter'] if !opts[:'filter'].nil?
query_params[:'$orderby'] = opts[:'orderby'] if !opts[:'orderby'].nil?
query_params[:'$top'] = opts[:'top'] if !opts[:'top'].nil?
query_params[:'$skip'] = opts[:'skip'] if !opts[:'skip'].nil?
query_params[:'$select'] = opts[:'select'] if !opts[:'select'].nil?
query_params[:'$expand'] = opts[:'expand'] if !opts[:'expand'].nil?
query_params[:'$apply'] = opts[:'apply'] if !opts[:'apply'].nil?
query_params[:'$count'] = opts[:'count'] if !opts[:'count'].nil?
query_params[:'$inlinecount'] = opts[:'inlinecount'] if !opts[:'inlinecount'].nil?
query_params[:'at'] = opts[:'at'] if !opts[:'at'].nil?
query_params[:'tags'] = opts[:'tags'] if !opts[:'tags'].nil?
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/csv', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'])
# form parameters
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:debug_body]
# return_type
return_type = opts[:debug_return_type] || 'VirtualizationVmwareDatastoreClusterResponse'
# auth_names
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'http_signature', 'oAuth2', 'oAuth2']
new_options = opts.merge(
:operation => :"VirtualizationApi.get_virtualization_vmware_datastore_cluster_list",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => return_type
)
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: VirtualizationApi#get_virtualization_vmware_datastore_cluster_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_cluster instance_id, cluster_id\n instances.get_cluster name: cluster_path(instance_id, cluster_id)\n end",
"def get_cluster instance_id, cluster_id\n execute do\n instances.get_cluster(\n cluster_path(instance_id, cluster_id)\n )\n end... | [
"0.63422596",
"0.6179643",
"0.61749",
"0.60375565",
"0.58926654",
"0.5889517",
"0.58182746",
"0.57648915",
"0.5758458",
"0.56827027",
"0.5681319",
"0.56666815",
"0.5653967",
"0.56258345",
"0.5609813",
"0.55914295",
"0.5580028",
"0.55630636",
"0.5527993",
"0.5521959",
"0.55104... | 0.58209807 | 6 |
Read a 'virtualization.VmwareDatastore' resource. | def get_virtualization_vmware_datastore_list(opts = {})
data, _status_code, _headers = get_virtualization_vmware_datastore_list_with_http_info(opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def datastore(arg)\n ds = VCenterDriver::VIHelper.one_item(OpenNebula::Datastore, arg)\n\n {\n :ds_ref => ds['TEMPLATE/VCENTER_DS_REF'],\n :one_item => ds\n }\n end",
"def datastore\n result = splunk_exec(\"show\",[\"datastore-dir\"])\n result = result.to_s.spl... | [
"0.6315496",
"0.59578836",
"0.58408326",
"0.5522437",
"0.5451279",
"0.5380622",
"0.5255142",
"0.52397573",
"0.51421887",
"0.50726336",
"0.50701517",
"0.50622374",
"0.5050007",
"0.5023758",
"0.50128907",
"0.50054175",
"0.49267864",
"0.48920563",
"0.48687524",
"0.48581663",
"0.... | 0.5247339 | 7 |
Read a &39;virtualization.VmwareDatastore&39; resource. | def get_virtualization_vmware_datastore_list_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: VirtualizationApi.get_virtualization_vmware_datastore_list ...'
end
allowable_values = ["allpages", "none"]
if @api_client.config.client_side_validation && opts[:'inlinecount'] && !allowable_values.include?(opts[:'inlinecount'])
fail ArgumentError, "invalid value for \"inlinecount\", must be one of #{allowable_values}"
end
# resource path
local_var_path = '/api/v1/virtualization/VmwareDatastores'
# query parameters
query_params = opts[:query_params] || {}
query_params[:'$filter'] = opts[:'filter'] if !opts[:'filter'].nil?
query_params[:'$orderby'] = opts[:'orderby'] if !opts[:'orderby'].nil?
query_params[:'$top'] = opts[:'top'] if !opts[:'top'].nil?
query_params[:'$skip'] = opts[:'skip'] if !opts[:'skip'].nil?
query_params[:'$select'] = opts[:'select'] if !opts[:'select'].nil?
query_params[:'$expand'] = opts[:'expand'] if !opts[:'expand'].nil?
query_params[:'$apply'] = opts[:'apply'] if !opts[:'apply'].nil?
query_params[:'$count'] = opts[:'count'] if !opts[:'count'].nil?
query_params[:'$inlinecount'] = opts[:'inlinecount'] if !opts[:'inlinecount'].nil?
query_params[:'at'] = opts[:'at'] if !opts[:'at'].nil?
query_params[:'tags'] = opts[:'tags'] if !opts[:'tags'].nil?
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/csv', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'])
# form parameters
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:debug_body]
# return_type
return_type = opts[:debug_return_type] || 'VirtualizationVmwareDatastoreResponse'
# auth_names
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'http_signature', 'oAuth2', 'oAuth2']
new_options = opts.merge(
:operation => :"VirtualizationApi.get_virtualization_vmware_datastore_list",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => return_type
)
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: VirtualizationApi#get_virtualization_vmware_datastore_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def datastore(arg)\n ds = VCenterDriver::VIHelper.one_item(OpenNebula::Datastore, arg)\n\n {\n :ds_ref => ds['TEMPLATE/VCENTER_DS_REF'],\n :one_item => ds\n }\n end",
"def datastore\n result = splunk_exec(\"show\",[\"datastore-dir\"])\n result = result.to_s.spl... | [
"0.62246794",
"0.5873678",
"0.558367",
"0.5562393",
"0.5493364",
"0.5457035",
"0.54110754",
"0.5275129",
"0.52471995",
"0.5234974",
"0.5176054",
"0.51489973",
"0.51438564",
"0.5106972",
"0.50931317",
"0.5073491",
"0.5066473",
"0.5028802",
"0.5021747",
"0.49875963",
"0.4970691... | 0.51883 | 10 |
Read a 'virtualization.VmwareDistributedNetwork' resource. | def get_virtualization_vmware_distributed_network_by_moid(moid, opts = {})
data, _status_code, _headers = get_virtualization_vmware_distributed_network_by_moid_with_http_info(moid, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_network(network_id)\n get(\"cloud-instances/#{guid}/networks/#{network_id}\")\n end",
"def get(resource_group_name)\n OOLog.fatal('VNET name is nil. It is required.') if @name.nil?\n OOLog.info(\"Getting Virtual Network '#{@name}' ...\")\n start_time = Time.now.to_i\n ... | [
"0.5588246",
"0.55864006",
"0.55690867",
"0.5538213",
"0.54802775",
"0.54361063",
"0.53766745",
"0.5319991",
"0.5308635",
"0.5240889",
"0.52135366",
"0.5106223",
"0.5040882",
"0.5039233",
"0.49933395",
"0.49791718",
"0.49441314",
"0.4928697",
"0.49282676",
"0.49002853",
"0.48... | 0.52955145 | 9 |
Read a &39;virtualization.VmwareDistributedNetwork&39; resource. | def get_virtualization_vmware_distributed_network_by_moid_with_http_info(moid, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: VirtualizationApi.get_virtualization_vmware_distributed_network_by_moid ...'
end
# verify the required parameter 'moid' is set
if @api_client.config.client_side_validation && moid.nil?
fail ArgumentError, "Missing the required parameter 'moid' when calling VirtualizationApi.get_virtualization_vmware_distributed_network_by_moid"
end
# resource path
local_var_path = '/api/v1/virtualization/VmwareDistributedNetworks/{Moid}'.sub('{' + 'Moid' + '}', CGI.escape(moid.to_s))
# query parameters
query_params = opts[:query_params] || {}
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/csv', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'])
# form parameters
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:debug_body]
# return_type
return_type = opts[:debug_return_type] || 'VirtualizationVmwareDistributedNetwork'
# auth_names
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'http_signature', 'oAuth2', 'oAuth2']
new_options = opts.merge(
:operation => :"VirtualizationApi.get_virtualization_vmware_distributed_network_by_moid",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => return_type
)
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: VirtualizationApi#get_virtualization_vmware_distributed_network_by_moid\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_network(network_id)\n get(\"cloud-instances/#{guid}/networks/#{network_id}\")\n end",
"def get(resource_group_name)\n OOLog.fatal('VNET name is nil. It is required.') if @name.nil?\n OOLog.info(\"Getting Virtual Network '#{@name}' ...\")\n start_time = Time.now.to_i\n ... | [
"0.5848818",
"0.58135897",
"0.57346493",
"0.5734542",
"0.56538707",
"0.5644052",
"0.56192553",
"0.55146",
"0.5450626",
"0.5387975",
"0.53780955",
"0.53179187",
"0.53059083",
"0.52556556",
"0.52304316",
"0.52135855",
"0.51964146",
"0.51910186",
"0.51850486",
"0.5141466",
"0.51... | 0.5031379 | 24 |
Read a 'virtualization.VmwareDistributedNetwork' resource. | def get_virtualization_vmware_distributed_network_list(opts = {})
data, _status_code, _headers = get_virtualization_vmware_distributed_network_list_with_http_info(opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_network(network_id)\n get(\"cloud-instances/#{guid}/networks/#{network_id}\")\n end",
"def get(resource_group_name)\n OOLog.fatal('VNET name is nil. It is required.') if @name.nil?\n OOLog.info(\"Getting Virtual Network '#{@name}' ...\")\n start_time = Time.now.to_i\n ... | [
"0.5588246",
"0.55864006",
"0.55690867",
"0.5538213",
"0.54361063",
"0.53766745",
"0.5319991",
"0.5308635",
"0.52955145",
"0.5240889",
"0.52135366",
"0.5106223",
"0.5040882",
"0.5039233",
"0.49933395",
"0.49791718",
"0.49441314",
"0.4928697",
"0.49282676",
"0.49002853",
"0.48... | 0.54802775 | 4 |
Read a &39;virtualization.VmwareDistributedNetwork&39; resource. | def get_virtualization_vmware_distributed_network_list_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: VirtualizationApi.get_virtualization_vmware_distributed_network_list ...'
end
allowable_values = ["allpages", "none"]
if @api_client.config.client_side_validation && opts[:'inlinecount'] && !allowable_values.include?(opts[:'inlinecount'])
fail ArgumentError, "invalid value for \"inlinecount\", must be one of #{allowable_values}"
end
# resource path
local_var_path = '/api/v1/virtualization/VmwareDistributedNetworks'
# query parameters
query_params = opts[:query_params] || {}
query_params[:'$filter'] = opts[:'filter'] if !opts[:'filter'].nil?
query_params[:'$orderby'] = opts[:'orderby'] if !opts[:'orderby'].nil?
query_params[:'$top'] = opts[:'top'] if !opts[:'top'].nil?
query_params[:'$skip'] = opts[:'skip'] if !opts[:'skip'].nil?
query_params[:'$select'] = opts[:'select'] if !opts[:'select'].nil?
query_params[:'$expand'] = opts[:'expand'] if !opts[:'expand'].nil?
query_params[:'$apply'] = opts[:'apply'] if !opts[:'apply'].nil?
query_params[:'$count'] = opts[:'count'] if !opts[:'count'].nil?
query_params[:'$inlinecount'] = opts[:'inlinecount'] if !opts[:'inlinecount'].nil?
query_params[:'at'] = opts[:'at'] if !opts[:'at'].nil?
query_params[:'tags'] = opts[:'tags'] if !opts[:'tags'].nil?
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/csv', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'])
# form parameters
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:debug_body]
# return_type
return_type = opts[:debug_return_type] || 'VirtualizationVmwareDistributedNetworkResponse'
# auth_names
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'http_signature', 'oAuth2', 'oAuth2']
new_options = opts.merge(
:operation => :"VirtualizationApi.get_virtualization_vmware_distributed_network_list",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => return_type
)
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: VirtualizationApi#get_virtualization_vmware_distributed_network_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_network(network_id)\n get(\"cloud-instances/#{guid}/networks/#{network_id}\")\n end",
"def get(resource_group_name)\n OOLog.fatal('VNET name is nil. It is required.') if @name.nil?\n OOLog.info(\"Getting Virtual Network '#{@name}' ...\")\n start_time = Time.now.to_i\n ... | [
"0.5848818",
"0.58135897",
"0.57346493",
"0.5734542",
"0.56538707",
"0.5644052",
"0.56192553",
"0.55146",
"0.5450626",
"0.5387975",
"0.53780955",
"0.53179187",
"0.53059083",
"0.52556556",
"0.52304316",
"0.52135855",
"0.51964146",
"0.51850486",
"0.5141466",
"0.5136053",
"0.513... | 0.51910186 | 17 |
Read a 'virtualization.VmwareDistributedSwitch' resource. | def get_virtualization_vmware_distributed_switch_by_moid(moid, opts = {})
data, _status_code, _headers = get_virtualization_vmware_distributed_switch_by_moid_with_http_info(moid, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_dvswitch_uuid\n netfolder = @datacenter.networkFolder\n netfolder.childEntity.each do |switch|\n if switch.kind_of? RbVmomi::VIM::DistributedVirtualSwitch\n return switch.uuid\n end\n end\n nil\n end",
"def get_virtualization_vmware_distributed_switch_list(op... | [
"0.61049145",
"0.6031062",
"0.5782903",
"0.5263521",
"0.52462983",
"0.5207224",
"0.5057976",
"0.4958674",
"0.49329558",
"0.48566884",
"0.48125306",
"0.4711078",
"0.46830222",
"0.4640196",
"0.46389917",
"0.46281233",
"0.46066365",
"0.45720983",
"0.4559762",
"0.45250082",
"0.45... | 0.5679663 | 3 |
Read a &39;virtualization.VmwareDistributedSwitch&39; resource. | def get_virtualization_vmware_distributed_switch_by_moid_with_http_info(moid, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: VirtualizationApi.get_virtualization_vmware_distributed_switch_by_moid ...'
end
# verify the required parameter 'moid' is set
if @api_client.config.client_side_validation && moid.nil?
fail ArgumentError, "Missing the required parameter 'moid' when calling VirtualizationApi.get_virtualization_vmware_distributed_switch_by_moid"
end
# resource path
local_var_path = '/api/v1/virtualization/VmwareDistributedSwitches/{Moid}'.sub('{' + 'Moid' + '}', CGI.escape(moid.to_s))
# query parameters
query_params = opts[:query_params] || {}
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/csv', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'])
# form parameters
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:debug_body]
# return_type
return_type = opts[:debug_return_type] || 'VirtualizationVmwareDistributedSwitch'
# auth_names
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'http_signature', 'oAuth2', 'oAuth2']
new_options = opts.merge(
:operation => :"VirtualizationApi.get_virtualization_vmware_distributed_switch_by_moid",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => return_type
)
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: VirtualizationApi#get_virtualization_vmware_distributed_switch_by_moid\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_dvswitch_uuid\n netfolder = @datacenter.networkFolder\n netfolder.childEntity.each do |switch|\n if switch.kind_of? RbVmomi::VIM::DistributedVirtualSwitch\n return switch.uuid\n end\n end\n nil\n end",
"def get_virtualization_vmware_distributed_switch_list(op... | [
"0.5857277",
"0.5735132",
"0.5551761",
"0.54862756",
"0.54653215",
"0.54047054",
"0.53593725",
"0.50911564",
"0.50813025",
"0.5022605",
"0.4938809",
"0.48809",
"0.48347035",
"0.4831394",
"0.47888088",
"0.4769455",
"0.47364804",
"0.4729278",
"0.47052065",
"0.4696386",
"0.46784... | 0.5193922 | 7 |
Read a 'virtualization.VmwareDistributedSwitch' resource. | def get_virtualization_vmware_distributed_switch_list(opts = {})
data, _status_code, _headers = get_virtualization_vmware_distributed_switch_list_with_http_info(opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_dvswitch_uuid\n netfolder = @datacenter.networkFolder\n netfolder.childEntity.each do |switch|\n if switch.kind_of? RbVmomi::VIM::DistributedVirtualSwitch\n return switch.uuid\n end\n end\n nil\n end",
"def patch_virtualization_vmware_distributed_switch(moid,... | [
"0.61049145",
"0.5782903",
"0.5679663",
"0.5263521",
"0.52462983",
"0.5207224",
"0.5057976",
"0.4958674",
"0.49329558",
"0.48566884",
"0.48125306",
"0.4711078",
"0.46830222",
"0.4640196",
"0.46389917",
"0.46281233",
"0.46066365",
"0.45720983",
"0.4559762",
"0.45250082",
"0.45... | 0.6031062 | 1 |
Read a &39;virtualization.VmwareDistributedSwitch&39; resource. | def get_virtualization_vmware_distributed_switch_list_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: VirtualizationApi.get_virtualization_vmware_distributed_switch_list ...'
end
allowable_values = ["allpages", "none"]
if @api_client.config.client_side_validation && opts[:'inlinecount'] && !allowable_values.include?(opts[:'inlinecount'])
fail ArgumentError, "invalid value for \"inlinecount\", must be one of #{allowable_values}"
end
# resource path
local_var_path = '/api/v1/virtualization/VmwareDistributedSwitches'
# query parameters
query_params = opts[:query_params] || {}
query_params[:'$filter'] = opts[:'filter'] if !opts[:'filter'].nil?
query_params[:'$orderby'] = opts[:'orderby'] if !opts[:'orderby'].nil?
query_params[:'$top'] = opts[:'top'] if !opts[:'top'].nil?
query_params[:'$skip'] = opts[:'skip'] if !opts[:'skip'].nil?
query_params[:'$select'] = opts[:'select'] if !opts[:'select'].nil?
query_params[:'$expand'] = opts[:'expand'] if !opts[:'expand'].nil?
query_params[:'$apply'] = opts[:'apply'] if !opts[:'apply'].nil?
query_params[:'$count'] = opts[:'count'] if !opts[:'count'].nil?
query_params[:'$inlinecount'] = opts[:'inlinecount'] if !opts[:'inlinecount'].nil?
query_params[:'at'] = opts[:'at'] if !opts[:'at'].nil?
query_params[:'tags'] = opts[:'tags'] if !opts[:'tags'].nil?
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/csv', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'])
# form parameters
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:debug_body]
# return_type
return_type = opts[:debug_return_type] || 'VirtualizationVmwareDistributedSwitchResponse'
# auth_names
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'http_signature', 'oAuth2', 'oAuth2']
new_options = opts.merge(
:operation => :"VirtualizationApi.get_virtualization_vmware_distributed_switch_list",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => return_type
)
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: VirtualizationApi#get_virtualization_vmware_distributed_switch_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_dvswitch_uuid\n netfolder = @datacenter.networkFolder\n netfolder.childEntity.each do |switch|\n if switch.kind_of? RbVmomi::VIM::DistributedVirtualSwitch\n return switch.uuid\n end\n end\n nil\n end",
"def get_virtualization_vmware_distributed_switch_list(op... | [
"0.5857277",
"0.5735132",
"0.5551761",
"0.54862756",
"0.54653215",
"0.54047054",
"0.5193922",
"0.50911564",
"0.50813025",
"0.5022605",
"0.4938809",
"0.48809",
"0.48347035",
"0.4831394",
"0.47888088",
"0.4769455",
"0.47364804",
"0.4729278",
"0.47052065",
"0.4696386",
"0.467841... | 0.53593725 | 6 |
Read a 'virtualization.VmwareFolder' resource. | def get_virtualization_vmware_folder_by_moid(moid, opts = {})
data, _status_code, _headers = get_virtualization_vmware_folder_by_moid_with_http_info(moid, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def find_vm_folder(pool_name, connection)\n # Find a folder by its inventory path and return the object\n # Returns nil when the object found is not a folder\n pool_configuration = pool_config(pool_name)\n return nil if pool_configuration.nil?\n\n folder = pool_configur... | [
"0.6538891",
"0.6175009",
"0.6169232",
"0.6163175",
"0.61246914",
"0.60606104",
"0.605838",
"0.6015621",
"0.6015621",
"0.5992254",
"0.5936489",
"0.5772433",
"0.5741672",
"0.5715294",
"0.56662744",
"0.5648831",
"0.5647116",
"0.56382394",
"0.5636579",
"0.5636227",
"0.5625509",
... | 0.520028 | 54 |
Read a &39;virtualization.VmwareFolder&39; resource. | def get_virtualization_vmware_folder_by_moid_with_http_info(moid, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: VirtualizationApi.get_virtualization_vmware_folder_by_moid ...'
end
# verify the required parameter 'moid' is set
if @api_client.config.client_side_validation && moid.nil?
fail ArgumentError, "Missing the required parameter 'moid' when calling VirtualizationApi.get_virtualization_vmware_folder_by_moid"
end
# resource path
local_var_path = '/api/v1/virtualization/VmwareFolders/{Moid}'.sub('{' + 'Moid' + '}', CGI.escape(moid.to_s))
# query parameters
query_params = opts[:query_params] || {}
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/csv', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'])
# form parameters
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:debug_body]
# return_type
return_type = opts[:debug_return_type] || 'VirtualizationVmwareFolder'
# auth_names
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'http_signature', 'oAuth2', 'oAuth2']
new_options = opts.merge(
:operation => :"VirtualizationApi.get_virtualization_vmware_folder_by_moid",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => return_type
)
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: VirtualizationApi#get_virtualization_vmware_folder_by_moid\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def read_machine_folder\n end",
"def find_vm_folder(pool_name, connection)\n # Find a folder by its inventory path and return the object\n # Returns nil when the object found is not a folder\n pool_configuration = pool_config(pool_name)\n return nil if pool_configuratio... | [
"0.6350865",
"0.632787",
"0.6100324",
"0.6100324",
"0.6077346",
"0.6065573",
"0.60065556",
"0.5986966",
"0.58807564",
"0.5847557",
"0.5845243",
"0.58025897",
"0.5767885",
"0.571944",
"0.5648454",
"0.5641161",
"0.56376195",
"0.5613231",
"0.5570084",
"0.55458903",
"0.5522369",
... | 0.0 | -1 |
Read a 'virtualization.VmwareFolder' resource. | def get_virtualization_vmware_folder_list(opts = {})
data, _status_code, _headers = get_virtualization_vmware_folder_list_with_http_info(opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def find_vm_folder(pool_name, connection)\n # Find a folder by its inventory path and return the object\n # Returns nil when the object found is not a folder\n pool_configuration = pool_config(pool_name)\n return nil if pool_configuration.nil?\n\n folder = pool_configur... | [
"0.6538891",
"0.6175009",
"0.6169232",
"0.6163175",
"0.61246914",
"0.60606104",
"0.605838",
"0.6015621",
"0.6015621",
"0.5992254",
"0.5936489",
"0.5772433",
"0.5741672",
"0.5715294",
"0.56662744",
"0.5647116",
"0.56382394",
"0.5636579",
"0.5636227",
"0.5625509",
"0.5560418",
... | 0.5648831 | 15 |
Read a &39;virtualization.VmwareFolder&39; resource. | def get_virtualization_vmware_folder_list_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: VirtualizationApi.get_virtualization_vmware_folder_list ...'
end
allowable_values = ["allpages", "none"]
if @api_client.config.client_side_validation && opts[:'inlinecount'] && !allowable_values.include?(opts[:'inlinecount'])
fail ArgumentError, "invalid value for \"inlinecount\", must be one of #{allowable_values}"
end
# resource path
local_var_path = '/api/v1/virtualization/VmwareFolders'
# query parameters
query_params = opts[:query_params] || {}
query_params[:'$filter'] = opts[:'filter'] if !opts[:'filter'].nil?
query_params[:'$orderby'] = opts[:'orderby'] if !opts[:'orderby'].nil?
query_params[:'$top'] = opts[:'top'] if !opts[:'top'].nil?
query_params[:'$skip'] = opts[:'skip'] if !opts[:'skip'].nil?
query_params[:'$select'] = opts[:'select'] if !opts[:'select'].nil?
query_params[:'$expand'] = opts[:'expand'] if !opts[:'expand'].nil?
query_params[:'$apply'] = opts[:'apply'] if !opts[:'apply'].nil?
query_params[:'$count'] = opts[:'count'] if !opts[:'count'].nil?
query_params[:'$inlinecount'] = opts[:'inlinecount'] if !opts[:'inlinecount'].nil?
query_params[:'at'] = opts[:'at'] if !opts[:'at'].nil?
query_params[:'tags'] = opts[:'tags'] if !opts[:'tags'].nil?
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/csv', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'])
# form parameters
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:debug_body]
# return_type
return_type = opts[:debug_return_type] || 'VirtualizationVmwareFolderResponse'
# auth_names
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'http_signature', 'oAuth2', 'oAuth2']
new_options = opts.merge(
:operation => :"VirtualizationApi.get_virtualization_vmware_folder_list",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => return_type
)
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: VirtualizationApi#get_virtualization_vmware_folder_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def read_machine_folder\n end",
"def find_vm_folder(pool_name, connection)\n # Find a folder by its inventory path and return the object\n # Returns nil when the object found is not a folder\n pool_configuration = pool_config(pool_name)\n return nil if pool_configuratio... | [
"0.6350865",
"0.632787",
"0.6100324",
"0.6100324",
"0.6077346",
"0.6065573",
"0.60065556",
"0.5986966",
"0.58807564",
"0.5847557",
"0.5845243",
"0.58025897",
"0.5767885",
"0.571944",
"0.5648454",
"0.5641161",
"0.56376195",
"0.5613231",
"0.5570084",
"0.55458903",
"0.5522369",
... | 0.5320012 | 45 |
Read a 'virtualization.VmwareHost' resource. | def get_virtualization_vmware_host_by_moid(moid, opts = {})
data, _status_code, _headers = get_virtualization_vmware_host_by_moid_with_http_info(moid, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def host\n return @host if defined?(@host)\n\n # Attempt to figure out the host class. Note that the order\n # matters here, so please don't touch. Specifically: The symbol\n # check is done after the detect check because the symbol check\n # will return nil, and we don't want to trigger a... | [
"0.62864786",
"0.6206273",
"0.60875696",
"0.602894",
"0.602894",
"0.602894",
"0.5768339",
"0.5645659",
"0.56275964",
"0.56146574",
"0.5606635",
"0.557261",
"0.5528478",
"0.551375",
"0.55101895",
"0.550432",
"0.54740715",
"0.54426616",
"0.54234093",
"0.53953695",
"0.5384783",
... | 0.56554145 | 7 |
Read a &39;virtualization.VmwareHost&39; resource. | def get_virtualization_vmware_host_by_moid_with_http_info(moid, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: VirtualizationApi.get_virtualization_vmware_host_by_moid ...'
end
# verify the required parameter 'moid' is set
if @api_client.config.client_side_validation && moid.nil?
fail ArgumentError, "Missing the required parameter 'moid' when calling VirtualizationApi.get_virtualization_vmware_host_by_moid"
end
# resource path
local_var_path = '/api/v1/virtualization/VmwareHosts/{Moid}'.sub('{' + 'Moid' + '}', CGI.escape(moid.to_s))
# query parameters
query_params = opts[:query_params] || {}
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/csv', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'])
# form parameters
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:debug_body]
# return_type
return_type = opts[:debug_return_type] || 'VirtualizationVmwareHost'
# auth_names
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'http_signature', 'oAuth2', 'oAuth2']
new_options = opts.merge(
:operation => :"VirtualizationApi.get_virtualization_vmware_host_by_moid",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => return_type
)
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: VirtualizationApi#get_virtualization_vmware_host_by_moid\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_vm_host(_pool_name, _vm_name)\n raise(\"#{self.class.name} does not implement get_vm_host\")\n end",
"def get_from_vm(vm)\n get_from_url(vm.properties.storage_profile.os_disk.vhd.uri)\n end",
"def get_host(name)\n # create a host object to work with\n host_obj ... | [
"0.59658116",
"0.5860694",
"0.57967204",
"0.57223356",
"0.56891245",
"0.56891245",
"0.56891245",
"0.56163573",
"0.56040746",
"0.5587869",
"0.55846673",
"0.5544037",
"0.5533497",
"0.5460233",
"0.54380256",
"0.5423122",
"0.54225564",
"0.54107344",
"0.5397489",
"0.5396664",
"0.5... | 0.50176215 | 66 |
Read a 'virtualization.VmwareHost' resource. | def get_virtualization_vmware_host_list(opts = {})
data, _status_code, _headers = get_virtualization_vmware_host_list_with_http_info(opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def host\n return @host if defined?(@host)\n\n # Attempt to figure out the host class. Note that the order\n # matters here, so please don't touch. Specifically: The symbol\n # check is done after the detect check because the symbol check\n # will return nil, and we don't want to trigger a... | [
"0.62864786",
"0.6206273",
"0.60875696",
"0.602894",
"0.602894",
"0.602894",
"0.5768339",
"0.56554145",
"0.5645659",
"0.56275964",
"0.56146574",
"0.5606635",
"0.557261",
"0.5528478",
"0.551375",
"0.55101895",
"0.550432",
"0.54740715",
"0.54234093",
"0.53953695",
"0.5384783",
... | 0.54426616 | 18 |
Read a &39;virtualization.VmwareHost&39; resource. | def get_virtualization_vmware_host_list_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: VirtualizationApi.get_virtualization_vmware_host_list ...'
end
allowable_values = ["allpages", "none"]
if @api_client.config.client_side_validation && opts[:'inlinecount'] && !allowable_values.include?(opts[:'inlinecount'])
fail ArgumentError, "invalid value for \"inlinecount\", must be one of #{allowable_values}"
end
# resource path
local_var_path = '/api/v1/virtualization/VmwareHosts'
# query parameters
query_params = opts[:query_params] || {}
query_params[:'$filter'] = opts[:'filter'] if !opts[:'filter'].nil?
query_params[:'$orderby'] = opts[:'orderby'] if !opts[:'orderby'].nil?
query_params[:'$top'] = opts[:'top'] if !opts[:'top'].nil?
query_params[:'$skip'] = opts[:'skip'] if !opts[:'skip'].nil?
query_params[:'$select'] = opts[:'select'] if !opts[:'select'].nil?
query_params[:'$expand'] = opts[:'expand'] if !opts[:'expand'].nil?
query_params[:'$apply'] = opts[:'apply'] if !opts[:'apply'].nil?
query_params[:'$count'] = opts[:'count'] if !opts[:'count'].nil?
query_params[:'$inlinecount'] = opts[:'inlinecount'] if !opts[:'inlinecount'].nil?
query_params[:'at'] = opts[:'at'] if !opts[:'at'].nil?
query_params[:'tags'] = opts[:'tags'] if !opts[:'tags'].nil?
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/csv', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'])
# form parameters
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:debug_body]
# return_type
return_type = opts[:debug_return_type] || 'VirtualizationVmwareHostResponse'
# auth_names
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'http_signature', 'oAuth2', 'oAuth2']
new_options = opts.merge(
:operation => :"VirtualizationApi.get_virtualization_vmware_host_list",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => return_type
)
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: VirtualizationApi#get_virtualization_vmware_host_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_vm_host(_pool_name, _vm_name)\n raise(\"#{self.class.name} does not implement get_vm_host\")\n end",
"def get_from_vm(vm)\n get_from_url(vm.properties.storage_profile.os_disk.vhd.uri)\n end",
"def get_host(name)\n # create a host object to work with\n host_obj ... | [
"0.59658116",
"0.5860694",
"0.57967204",
"0.57223356",
"0.56891245",
"0.56891245",
"0.56891245",
"0.56163573",
"0.56040746",
"0.5587869",
"0.55846673",
"0.5544037",
"0.5533497",
"0.5460233",
"0.54380256",
"0.5423122",
"0.54225564",
"0.54107344",
"0.5397489",
"0.5396664",
"0.5... | 0.4871599 | 99 |
Read a 'virtualization.VmwareKernelNetwork' resource. | def get_virtualization_vmware_kernel_network_by_moid(moid, opts = {})
data, _status_code, _headers = get_virtualization_vmware_kernel_network_by_moid_with_http_info(moid, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_network(network_id)\n get(\"cloud-instances/#{guid}/networks/#{network_id}\")\n end",
"def get(network_id)\n virtual_network = ::OpenNebula::VirtualNetwork.new(::OpenNebula::VirtualNetwork.build_xml(network_id), @client)\n rc = virtual_network.info\n check_retval(rc, ... | [
"0.6173903",
"0.6025982",
"0.5897684",
"0.5818201",
"0.5807564",
"0.579037",
"0.57827914",
"0.5704533",
"0.5580988",
"0.54961103",
"0.5442685",
"0.5431384",
"0.54067516",
"0.53718096",
"0.5371316",
"0.53390545",
"0.53115374",
"0.52618194",
"0.5244662",
"0.5237733",
"0.5235397... | 0.5491793 | 10 |
Read a &39;virtualization.VmwareKernelNetwork&39; resource. | def get_virtualization_vmware_kernel_network_by_moid_with_http_info(moid, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: VirtualizationApi.get_virtualization_vmware_kernel_network_by_moid ...'
end
# verify the required parameter 'moid' is set
if @api_client.config.client_side_validation && moid.nil?
fail ArgumentError, "Missing the required parameter 'moid' when calling VirtualizationApi.get_virtualization_vmware_kernel_network_by_moid"
end
# resource path
local_var_path = '/api/v1/virtualization/VmwareKernelNetworks/{Moid}'.sub('{' + 'Moid' + '}', CGI.escape(moid.to_s))
# query parameters
query_params = opts[:query_params] || {}
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/csv', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'])
# form parameters
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:debug_body]
# return_type
return_type = opts[:debug_return_type] || 'VirtualizationVmwareKernelNetwork'
# auth_names
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'http_signature', 'oAuth2', 'oAuth2']
new_options = opts.merge(
:operation => :"VirtualizationApi.get_virtualization_vmware_kernel_network_by_moid",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => return_type
)
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: VirtualizationApi#get_virtualization_vmware_kernel_network_by_moid\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_network(network_id)\n get(\"cloud-instances/#{guid}/networks/#{network_id}\")\n end",
"def get_network(request, params)\n network = VirtualNetworkOCCI.new(\n VirtualNetwork.build_xml(params[:id]),\n @client)\n\n # --- Prepare XML... | [
"0.6276978",
"0.61503834",
"0.6126169",
"0.5989786",
"0.5961869",
"0.58323324",
"0.5817827",
"0.5744862",
"0.57335347",
"0.56913275",
"0.5675776",
"0.5642487",
"0.5638329",
"0.56119335",
"0.56087834",
"0.5502609",
"0.5498266",
"0.5495398",
"0.54417723",
"0.54140043",
"0.54032... | 0.53263587 | 25 |
Read a 'virtualization.VmwareKernelNetwork' resource. | def get_virtualization_vmware_kernel_network_list(opts = {})
data, _status_code, _headers = get_virtualization_vmware_kernel_network_list_with_http_info(opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_network(network_id)\n get(\"cloud-instances/#{guid}/networks/#{network_id}\")\n end",
"def get(network_id)\n virtual_network = ::OpenNebula::VirtualNetwork.new(::OpenNebula::VirtualNetwork.build_xml(network_id), @client)\n rc = virtual_network.info\n check_retval(rc, ... | [
"0.6173903",
"0.6025982",
"0.5897684",
"0.5818201",
"0.5807564",
"0.579037",
"0.57827914",
"0.5704533",
"0.5580988",
"0.54961103",
"0.5491793",
"0.5442685",
"0.5431384",
"0.54067516",
"0.53718096",
"0.5371316",
"0.53115374",
"0.52618194",
"0.5244662",
"0.5237733",
"0.5235397"... | 0.53390545 | 16 |
Read a &39;virtualization.VmwareKernelNetwork&39; resource. | def get_virtualization_vmware_kernel_network_list_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: VirtualizationApi.get_virtualization_vmware_kernel_network_list ...'
end
allowable_values = ["allpages", "none"]
if @api_client.config.client_side_validation && opts[:'inlinecount'] && !allowable_values.include?(opts[:'inlinecount'])
fail ArgumentError, "invalid value for \"inlinecount\", must be one of #{allowable_values}"
end
# resource path
local_var_path = '/api/v1/virtualization/VmwareKernelNetworks'
# query parameters
query_params = opts[:query_params] || {}
query_params[:'$filter'] = opts[:'filter'] if !opts[:'filter'].nil?
query_params[:'$orderby'] = opts[:'orderby'] if !opts[:'orderby'].nil?
query_params[:'$top'] = opts[:'top'] if !opts[:'top'].nil?
query_params[:'$skip'] = opts[:'skip'] if !opts[:'skip'].nil?
query_params[:'$select'] = opts[:'select'] if !opts[:'select'].nil?
query_params[:'$expand'] = opts[:'expand'] if !opts[:'expand'].nil?
query_params[:'$apply'] = opts[:'apply'] if !opts[:'apply'].nil?
query_params[:'$count'] = opts[:'count'] if !opts[:'count'].nil?
query_params[:'$inlinecount'] = opts[:'inlinecount'] if !opts[:'inlinecount'].nil?
query_params[:'at'] = opts[:'at'] if !opts[:'at'].nil?
query_params[:'tags'] = opts[:'tags'] if !opts[:'tags'].nil?
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/csv', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'])
# form parameters
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:debug_body]
# return_type
return_type = opts[:debug_return_type] || 'VirtualizationVmwareKernelNetworkResponse'
# auth_names
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'http_signature', 'oAuth2', 'oAuth2']
new_options = opts.merge(
:operation => :"VirtualizationApi.get_virtualization_vmware_kernel_network_list",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => return_type
)
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: VirtualizationApi#get_virtualization_vmware_kernel_network_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_network(network_id)\n get(\"cloud-instances/#{guid}/networks/#{network_id}\")\n end",
"def get_network(request, params)\n network = VirtualNetworkOCCI.new(\n VirtualNetwork.build_xml(params[:id]),\n @client)\n\n # --- Prepare XML... | [
"0.6276978",
"0.61503834",
"0.6126169",
"0.5989786",
"0.5961869",
"0.58323324",
"0.5817827",
"0.5744862",
"0.57335347",
"0.56913275",
"0.5675776",
"0.5642487",
"0.5638329",
"0.56119335",
"0.56087834",
"0.5502609",
"0.5498266",
"0.5495398",
"0.54417723",
"0.54140043",
"0.54032... | 0.5202122 | 33 |
Read a 'virtualization.VmwareNetwork' resource. | def get_virtualization_vmware_network_by_moid(moid, opts = {})
data, _status_code, _headers = get_virtualization_vmware_network_by_moid_with_http_info(moid, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_network(network_id)\n get(\"cloud-instances/#{guid}/networks/#{network_id}\")\n end",
"def get(network_id)\n virtual_network = ::OpenNebula::VirtualNetwork.new(::OpenNebula::VirtualNetwork.build_xml(network_id), @client)\n rc = virtual_network.info\n check_retval(rc, ... | [
"0.6530354",
"0.6488618",
"0.6442788",
"0.6254567",
"0.6252655",
"0.62444603",
"0.6178639",
"0.61093616",
"0.60262895",
"0.59957373",
"0.59699255",
"0.5898914",
"0.5890707",
"0.58817387",
"0.58247495",
"0.5808555",
"0.57492113",
"0.5738064",
"0.5670391",
"0.56359595",
"0.5619... | 0.5592934 | 23 |
Read a &39;virtualization.VmwareNetwork&39; resource. | def get_virtualization_vmware_network_by_moid_with_http_info(moid, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: VirtualizationApi.get_virtualization_vmware_network_by_moid ...'
end
# verify the required parameter 'moid' is set
if @api_client.config.client_side_validation && moid.nil?
fail ArgumentError, "Missing the required parameter 'moid' when calling VirtualizationApi.get_virtualization_vmware_network_by_moid"
end
# resource path
local_var_path = '/api/v1/virtualization/VmwareNetworks/{Moid}'.sub('{' + 'Moid' + '}', CGI.escape(moid.to_s))
# query parameters
query_params = opts[:query_params] || {}
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/csv', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'])
# form parameters
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:debug_body]
# return_type
return_type = opts[:debug_return_type] || 'VirtualizationVmwareNetwork'
# auth_names
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'http_signature', 'oAuth2', 'oAuth2']
new_options = opts.merge(
:operation => :"VirtualizationApi.get_virtualization_vmware_network_by_moid",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => return_type
)
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: VirtualizationApi#get_virtualization_vmware_network_by_moid\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get(network_id)\n virtual_network = ::OpenNebula::VirtualNetwork.new(::OpenNebula::VirtualNetwork.build_xml(network_id), @client)\n rc = virtual_network.info\n check_retval(rc, Backends::Errors::ResourceRetrievalError)\n\n parse_backend_obj(virtual_network)\n end",
"def get_n... | [
"0.64959866",
"0.6486479",
"0.6474565",
"0.62665445",
"0.62462574",
"0.6235787",
"0.6123812",
"0.6014564",
"0.5988165",
"0.5980044",
"0.59039646",
"0.58865446",
"0.5811953",
"0.57840556",
"0.57553923",
"0.57521236",
"0.57121325",
"0.5709232",
"0.5676404",
"0.5674788",
"0.5604... | 0.5283704 | 46 |
Read a 'virtualization.VmwareNetwork' resource. | def get_virtualization_vmware_network_list(opts = {})
data, _status_code, _headers = get_virtualization_vmware_network_list_with_http_info(opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_network(network_id)\n get(\"cloud-instances/#{guid}/networks/#{network_id}\")\n end",
"def get(network_id)\n virtual_network = ::OpenNebula::VirtualNetwork.new(::OpenNebula::VirtualNetwork.build_xml(network_id), @client)\n rc = virtual_network.info\n check_retval(rc, ... | [
"0.6530354",
"0.6488618",
"0.6442788",
"0.6254567",
"0.6252655",
"0.62444603",
"0.6178639",
"0.61093616",
"0.60262895",
"0.59957373",
"0.59699255",
"0.5898914",
"0.5890707",
"0.58817387",
"0.58247495",
"0.5808555",
"0.57492113",
"0.5738064",
"0.5670391",
"0.56359595",
"0.5619... | 0.50832313 | 56 |
Read a &39;virtualization.VmwareNetwork&39; resource. | def get_virtualization_vmware_network_list_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: VirtualizationApi.get_virtualization_vmware_network_list ...'
end
allowable_values = ["allpages", "none"]
if @api_client.config.client_side_validation && opts[:'inlinecount'] && !allowable_values.include?(opts[:'inlinecount'])
fail ArgumentError, "invalid value for \"inlinecount\", must be one of #{allowable_values}"
end
# resource path
local_var_path = '/api/v1/virtualization/VmwareNetworks'
# query parameters
query_params = opts[:query_params] || {}
query_params[:'$filter'] = opts[:'filter'] if !opts[:'filter'].nil?
query_params[:'$orderby'] = opts[:'orderby'] if !opts[:'orderby'].nil?
query_params[:'$top'] = opts[:'top'] if !opts[:'top'].nil?
query_params[:'$skip'] = opts[:'skip'] if !opts[:'skip'].nil?
query_params[:'$select'] = opts[:'select'] if !opts[:'select'].nil?
query_params[:'$expand'] = opts[:'expand'] if !opts[:'expand'].nil?
query_params[:'$apply'] = opts[:'apply'] if !opts[:'apply'].nil?
query_params[:'$count'] = opts[:'count'] if !opts[:'count'].nil?
query_params[:'$inlinecount'] = opts[:'inlinecount'] if !opts[:'inlinecount'].nil?
query_params[:'at'] = opts[:'at'] if !opts[:'at'].nil?
query_params[:'tags'] = opts[:'tags'] if !opts[:'tags'].nil?
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/csv', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'])
# form parameters
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:debug_body]
# return_type
return_type = opts[:debug_return_type] || 'VirtualizationVmwareNetworkResponse'
# auth_names
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'http_signature', 'oAuth2', 'oAuth2']
new_options = opts.merge(
:operation => :"VirtualizationApi.get_virtualization_vmware_network_list",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => return_type
)
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: VirtualizationApi#get_virtualization_vmware_network_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get(network_id)\n virtual_network = ::OpenNebula::VirtualNetwork.new(::OpenNebula::VirtualNetwork.build_xml(network_id), @client)\n rc = virtual_network.info\n check_retval(rc, Backends::Errors::ResourceRetrievalError)\n\n parse_backend_obj(virtual_network)\n end",
"def get_n... | [
"0.64959866",
"0.6486479",
"0.6474565",
"0.62665445",
"0.62462574",
"0.6235787",
"0.6123812",
"0.6014564",
"0.5988165",
"0.5980044",
"0.59039646",
"0.58865446",
"0.5811953",
"0.57840556",
"0.57553923",
"0.57521236",
"0.57121325",
"0.5709232",
"0.5676404",
"0.5674788",
"0.5604... | 0.5108947 | 65 |
Read a 'virtualization.VmwarePhysicalNetworkInterface' resource. | def get_virtualization_vmware_physical_network_interface_by_moid(moid, opts = {})
data, _status_code, _headers = get_virtualization_vmware_physical_network_interface_by_moid_with_http_info(moid, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_virtualization_vmware_physical_network_interface_list(opts = {})\n data, _status_code, _headers = get_virtualization_vmware_physical_network_interface_list_with_http_info(opts)\n data\n end",
"def nic\n a = execute_wmi_query(\"select * from Win32_NetworkAdapterConfiguration where In... | [
"0.5801661",
"0.5689579",
"0.56815434",
"0.56217915",
"0.54686755",
"0.54484785",
"0.5422081",
"0.54164964",
"0.54120874",
"0.5399945",
"0.5251081",
"0.52183133",
"0.52165073",
"0.51782453",
"0.5175617",
"0.5162291",
"0.5134854",
"0.51320356",
"0.5095632",
"0.50759596",
"0.50... | 0.5938703 | 0 |
Read a &39;virtualization.VmwarePhysicalNetworkInterface&39; resource. | def get_virtualization_vmware_physical_network_interface_by_moid_with_http_info(moid, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: VirtualizationApi.get_virtualization_vmware_physical_network_interface_by_moid ...'
end
# verify the required parameter 'moid' is set
if @api_client.config.client_side_validation && moid.nil?
fail ArgumentError, "Missing the required parameter 'moid' when calling VirtualizationApi.get_virtualization_vmware_physical_network_interface_by_moid"
end
# resource path
local_var_path = '/api/v1/virtualization/VmwarePhysicalNetworkInterfaces/{Moid}'.sub('{' + 'Moid' + '}', CGI.escape(moid.to_s))
# query parameters
query_params = opts[:query_params] || {}
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/csv', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'])
# form parameters
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:debug_body]
# return_type
return_type = opts[:debug_return_type] || 'VirtualizationVmwarePhysicalNetworkInterface'
# auth_names
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'http_signature', 'oAuth2', 'oAuth2']
new_options = opts.merge(
:operation => :"VirtualizationApi.get_virtualization_vmware_physical_network_interface_by_moid",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => return_type
)
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: VirtualizationApi#get_virtualization_vmware_physical_network_interface_by_moid\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def phys_adapter\n @phys_adapter ||= begin\n a = execute_wmi_query(\"select * from Win32_NetworkAdapter where #{conditions}\")\n raise Chef::Exceptions::UnsupportedAction, \"Failed to find interface with conditions: #{conditions}\" if a.nil?\n wmi_object_array(a).first\n ... | [
"0.5772757",
"0.5761035",
"0.575491",
"0.5724506",
"0.56031585",
"0.5593754",
"0.5573512",
"0.55587035",
"0.55029124",
"0.5486058",
"0.54624814",
"0.5433459",
"0.54116166",
"0.53874815",
"0.53439134",
"0.53400445",
"0.5312032",
"0.5279507",
"0.52530795",
"0.52290183",
"0.5222... | 0.5233472 | 19 |
Read a 'virtualization.VmwarePhysicalNetworkInterface' resource. | def get_virtualization_vmware_physical_network_interface_list(opts = {})
data, _status_code, _headers = get_virtualization_vmware_physical_network_interface_list_with_http_info(opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_virtualization_vmware_physical_network_interface_by_moid(moid, opts = {})\n data, _status_code, _headers = get_virtualization_vmware_physical_network_interface_by_moid_with_http_info(moid, opts)\n data\n end",
"def nic\n a = execute_wmi_query(\"select * from Win32_NetworkAdapterConf... | [
"0.5938703",
"0.5689579",
"0.56815434",
"0.56217915",
"0.54686755",
"0.54484785",
"0.5422081",
"0.54164964",
"0.54120874",
"0.5399945",
"0.5251081",
"0.52183133",
"0.52165073",
"0.51782453",
"0.5175617",
"0.5162291",
"0.5134854",
"0.51320356",
"0.5095632",
"0.50759596",
"0.50... | 0.5801661 | 1 |
Read a &39;virtualization.VmwarePhysicalNetworkInterface&39; resource. | def get_virtualization_vmware_physical_network_interface_list_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: VirtualizationApi.get_virtualization_vmware_physical_network_interface_list ...'
end
allowable_values = ["allpages", "none"]
if @api_client.config.client_side_validation && opts[:'inlinecount'] && !allowable_values.include?(opts[:'inlinecount'])
fail ArgumentError, "invalid value for \"inlinecount\", must be one of #{allowable_values}"
end
# resource path
local_var_path = '/api/v1/virtualization/VmwarePhysicalNetworkInterfaces'
# query parameters
query_params = opts[:query_params] || {}
query_params[:'$filter'] = opts[:'filter'] if !opts[:'filter'].nil?
query_params[:'$orderby'] = opts[:'orderby'] if !opts[:'orderby'].nil?
query_params[:'$top'] = opts[:'top'] if !opts[:'top'].nil?
query_params[:'$skip'] = opts[:'skip'] if !opts[:'skip'].nil?
query_params[:'$select'] = opts[:'select'] if !opts[:'select'].nil?
query_params[:'$expand'] = opts[:'expand'] if !opts[:'expand'].nil?
query_params[:'$apply'] = opts[:'apply'] if !opts[:'apply'].nil?
query_params[:'$count'] = opts[:'count'] if !opts[:'count'].nil?
query_params[:'$inlinecount'] = opts[:'inlinecount'] if !opts[:'inlinecount'].nil?
query_params[:'at'] = opts[:'at'] if !opts[:'at'].nil?
query_params[:'tags'] = opts[:'tags'] if !opts[:'tags'].nil?
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/csv', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'])
# form parameters
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:debug_body]
# return_type
return_type = opts[:debug_return_type] || 'VirtualizationVmwarePhysicalNetworkInterfaceResponse'
# auth_names
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'http_signature', 'oAuth2', 'oAuth2']
new_options = opts.merge(
:operation => :"VirtualizationApi.get_virtualization_vmware_physical_network_interface_list",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => return_type
)
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: VirtualizationApi#get_virtualization_vmware_physical_network_interface_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def phys_adapter\n @phys_adapter ||= begin\n a = execute_wmi_query(\"select * from Win32_NetworkAdapter where #{conditions}\")\n raise Chef::Exceptions::UnsupportedAction, \"Failed to find interface with conditions: #{conditions}\" if a.nil?\n wmi_object_array(a).first\n ... | [
"0.5772757",
"0.5761035",
"0.575491",
"0.5724506",
"0.56031585",
"0.5593754",
"0.5573512",
"0.55587035",
"0.55029124",
"0.5486058",
"0.54624814",
"0.54116166",
"0.53874815",
"0.53439134",
"0.53400445",
"0.5312032",
"0.5279507",
"0.52530795",
"0.5233472",
"0.52290183",
"0.5222... | 0.5433459 | 11 |
Read a 'virtualization.VmwareUplinkPort' resource. | def get_virtualization_vmware_uplink_port_by_moid(moid, opts = {})
data, _status_code, _headers = get_virtualization_vmware_uplink_port_by_moid_with_http_info(moid, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def patch_virtualization_vmware_uplink_port(moid, virtualization_vmware_uplink_port, opts = {})\n data, _status_code, _headers = patch_virtualization_vmware_uplink_port_with_http_info(moid, virtualization_vmware_uplink_port, opts)\n data\n end",
"def get_virtualization_vmware_uplink_port_list(opts =... | [
"0.66532093",
"0.6605047",
"0.64970595",
"0.5564856",
"0.5142079",
"0.4940889",
"0.48816913",
"0.48462042",
"0.4843922",
"0.4827856",
"0.47422078",
"0.47299263",
"0.47015616",
"0.47012284",
"0.46688285",
"0.46679363",
"0.4622531",
"0.46216437",
"0.46210617",
"0.4585249",
"0.4... | 0.61683893 | 3 |
Read a &39;virtualization.VmwareUplinkPort&39; resource. | def get_virtualization_vmware_uplink_port_by_moid_with_http_info(moid, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: VirtualizationApi.get_virtualization_vmware_uplink_port_by_moid ...'
end
# verify the required parameter 'moid' is set
if @api_client.config.client_side_validation && moid.nil?
fail ArgumentError, "Missing the required parameter 'moid' when calling VirtualizationApi.get_virtualization_vmware_uplink_port_by_moid"
end
# resource path
local_var_path = '/api/v1/virtualization/VmwareUplinkPorts/{Moid}'.sub('{' + 'Moid' + '}', CGI.escape(moid.to_s))
# query parameters
query_params = opts[:query_params] || {}
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/csv', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'])
# form parameters
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:debug_body]
# return_type
return_type = opts[:debug_return_type] || 'VirtualizationVmwareUplinkPort'
# auth_names
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'http_signature', 'oAuth2', 'oAuth2']
new_options = opts.merge(
:operation => :"VirtualizationApi.get_virtualization_vmware_uplink_port_by_moid",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => return_type
)
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: VirtualizationApi#get_virtualization_vmware_uplink_port_by_moid\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def patch_virtualization_vmware_uplink_port(moid, virtualization_vmware_uplink_port, opts = {})\n data, _status_code, _headers = patch_virtualization_vmware_uplink_port_with_http_info(moid, virtualization_vmware_uplink_port, opts)\n data\n end",
"def get_virtualization_vmware_uplink_port_list(opts =... | [
"0.6398802",
"0.63873535",
"0.6185317",
"0.61083",
"0.5690776",
"0.52057606",
"0.49832213",
"0.48970538",
"0.48686814",
"0.48477134",
"0.48376533",
"0.48310715",
"0.48182586",
"0.47960997",
"0.4777318",
"0.47771382",
"0.4775075",
"0.4772593",
"0.4753576",
"0.4753576",
"0.4691... | 0.4607436 | 24 |
Read a 'virtualization.VmwareUplinkPort' resource. | def get_virtualization_vmware_uplink_port_list(opts = {})
data, _status_code, _headers = get_virtualization_vmware_uplink_port_list_with_http_info(opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def patch_virtualization_vmware_uplink_port(moid, virtualization_vmware_uplink_port, opts = {})\n data, _status_code, _headers = patch_virtualization_vmware_uplink_port_with_http_info(moid, virtualization_vmware_uplink_port, opts)\n data\n end",
"def update_virtualization_vmware_uplink_port(moid, vi... | [
"0.66532093",
"0.64970595",
"0.61683893",
"0.5564856",
"0.5142079",
"0.4940889",
"0.48816913",
"0.48462042",
"0.4843922",
"0.4827856",
"0.47422078",
"0.47299263",
"0.47015616",
"0.47012284",
"0.46688285",
"0.46679363",
"0.4622531",
"0.46216437",
"0.46210617",
"0.4585249",
"0.... | 0.6605047 | 1 |
Read a &39;virtualization.VmwareUplinkPort&39; resource. | def get_virtualization_vmware_uplink_port_list_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: VirtualizationApi.get_virtualization_vmware_uplink_port_list ...'
end
allowable_values = ["allpages", "none"]
if @api_client.config.client_side_validation && opts[:'inlinecount'] && !allowable_values.include?(opts[:'inlinecount'])
fail ArgumentError, "invalid value for \"inlinecount\", must be one of #{allowable_values}"
end
# resource path
local_var_path = '/api/v1/virtualization/VmwareUplinkPorts'
# query parameters
query_params = opts[:query_params] || {}
query_params[:'$filter'] = opts[:'filter'] if !opts[:'filter'].nil?
query_params[:'$orderby'] = opts[:'orderby'] if !opts[:'orderby'].nil?
query_params[:'$top'] = opts[:'top'] if !opts[:'top'].nil?
query_params[:'$skip'] = opts[:'skip'] if !opts[:'skip'].nil?
query_params[:'$select'] = opts[:'select'] if !opts[:'select'].nil?
query_params[:'$expand'] = opts[:'expand'] if !opts[:'expand'].nil?
query_params[:'$apply'] = opts[:'apply'] if !opts[:'apply'].nil?
query_params[:'$count'] = opts[:'count'] if !opts[:'count'].nil?
query_params[:'$inlinecount'] = opts[:'inlinecount'] if !opts[:'inlinecount'].nil?
query_params[:'at'] = opts[:'at'] if !opts[:'at'].nil?
query_params[:'tags'] = opts[:'tags'] if !opts[:'tags'].nil?
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/csv', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'])
# form parameters
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:debug_body]
# return_type
return_type = opts[:debug_return_type] || 'VirtualizationVmwareUplinkPortResponse'
# auth_names
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'http_signature', 'oAuth2', 'oAuth2']
new_options = opts.merge(
:operation => :"VirtualizationApi.get_virtualization_vmware_uplink_port_list",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => return_type
)
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: VirtualizationApi#get_virtualization_vmware_uplink_port_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def patch_virtualization_vmware_uplink_port(moid, virtualization_vmware_uplink_port, opts = {})\n data, _status_code, _headers = patch_virtualization_vmware_uplink_port_with_http_info(moid, virtualization_vmware_uplink_port, opts)\n data\n end",
"def get_virtualization_vmware_uplink_port_list(opts =... | [
"0.6398802",
"0.63873535",
"0.6185317",
"0.61083",
"0.52057606",
"0.49832213",
"0.48970538",
"0.48686814",
"0.48477134",
"0.48376533",
"0.48310715",
"0.48182586",
"0.47960997",
"0.4777318",
"0.47771382",
"0.4775075",
"0.4772593",
"0.4753576",
"0.4753576",
"0.4691816",
"0.4672... | 0.5690776 | 4 |
Read a 'virtualization.VmwareVcenter' resource. | def get_virtualization_vmware_vcenter_by_moid(moid, opts = {})
data, _status_code, _headers = get_virtualization_vmware_vcenter_by_moid_with_http_info(moid, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_vcenter(vcenter_id=nil, auth=nil, cert=nil)\n check_vcenter(vcenter_id)\n rest_get(\"#{@base_url}/compute/vcenters/#{vcenter_id}\", auth.nil? ? @auth_token : auth, cert.nil? ? @verify_cert : cert)\n end",
"def get_vcenter_dc(host)\n host.info! true\n VIM.connect(\n :host => host['//VCEN... | [
"0.67420816",
"0.6533591",
"0.6138604",
"0.6028011",
"0.5992797",
"0.5927918",
"0.5748964",
"0.54950583",
"0.5480579",
"0.5440844",
"0.53706056",
"0.5342008",
"0.53172666",
"0.5300637",
"0.5298642",
"0.523097",
"0.52199066",
"0.5219697",
"0.52088434",
"0.51705587",
"0.5148922... | 0.5700599 | 7 |
Read a &39;virtualization.VmwareVcenter&39; resource. | def get_virtualization_vmware_vcenter_by_moid_with_http_info(moid, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: VirtualizationApi.get_virtualization_vmware_vcenter_by_moid ...'
end
# verify the required parameter 'moid' is set
if @api_client.config.client_side_validation && moid.nil?
fail ArgumentError, "Missing the required parameter 'moid' when calling VirtualizationApi.get_virtualization_vmware_vcenter_by_moid"
end
# resource path
local_var_path = '/api/v1/virtualization/VmwareVcenters/{Moid}'.sub('{' + 'Moid' + '}', CGI.escape(moid.to_s))
# query parameters
query_params = opts[:query_params] || {}
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/csv', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'])
# form parameters
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:debug_body]
# return_type
return_type = opts[:debug_return_type] || 'VirtualizationVmwareVcenter'
# auth_names
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'http_signature', 'oAuth2', 'oAuth2']
new_options = opts.merge(
:operation => :"VirtualizationApi.get_virtualization_vmware_vcenter_by_moid",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => return_type
)
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: VirtualizationApi#get_virtualization_vmware_vcenter_by_moid\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_vcenter_dc(host)\n host.info! true\n VIM.connect(\n :host => host['//VCENTER_HOST'], :insecure => true,\n :user => host['//VCENTER_USER'], :password => host['//VCENTER_PASSWORD']\n ).serviceInstance.find_datacenter\n end",
"def get_vcenter(vcenter_id=nil, auth=nil, cert=nil)\n chec... | [
"0.6570584",
"0.65387857",
"0.6123758",
"0.61126745",
"0.6109868",
"0.6096023",
"0.5742572",
"0.56568104",
"0.56548685",
"0.5620018",
"0.5591895",
"0.555032",
"0.55306345",
"0.5485854",
"0.5451413",
"0.53939843",
"0.5380349",
"0.5372409",
"0.5370727",
"0.53400725",
"0.5328194... | 0.512176 | 31 |
Read a 'virtualization.VmwareVcenter' resource. | def get_virtualization_vmware_vcenter_list(opts = {})
data, _status_code, _headers = get_virtualization_vmware_vcenter_list_with_http_info(opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_vcenter(vcenter_id=nil, auth=nil, cert=nil)\n check_vcenter(vcenter_id)\n rest_get(\"#{@base_url}/compute/vcenters/#{vcenter_id}\", auth.nil? ? @auth_token : auth, cert.nil? ? @verify_cert : cert)\n end",
"def get_vcenter_dc(host)\n host.info! true\n VIM.connect(\n :host => host['//VCEN... | [
"0.67420816",
"0.6533591",
"0.6138604",
"0.6028011",
"0.5992797",
"0.5927918",
"0.5748964",
"0.5700599",
"0.54950583",
"0.5480579",
"0.5440844",
"0.53706056",
"0.5342008",
"0.53172666",
"0.5298642",
"0.523097",
"0.52199066",
"0.5219697",
"0.52088434",
"0.51705587",
"0.5148922... | 0.5300637 | 14 |
Read a &39;virtualization.VmwareVcenter&39; resource. | def get_virtualization_vmware_vcenter_list_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: VirtualizationApi.get_virtualization_vmware_vcenter_list ...'
end
allowable_values = ["allpages", "none"]
if @api_client.config.client_side_validation && opts[:'inlinecount'] && !allowable_values.include?(opts[:'inlinecount'])
fail ArgumentError, "invalid value for \"inlinecount\", must be one of #{allowable_values}"
end
# resource path
local_var_path = '/api/v1/virtualization/VmwareVcenters'
# query parameters
query_params = opts[:query_params] || {}
query_params[:'$filter'] = opts[:'filter'] if !opts[:'filter'].nil?
query_params[:'$orderby'] = opts[:'orderby'] if !opts[:'orderby'].nil?
query_params[:'$top'] = opts[:'top'] if !opts[:'top'].nil?
query_params[:'$skip'] = opts[:'skip'] if !opts[:'skip'].nil?
query_params[:'$select'] = opts[:'select'] if !opts[:'select'].nil?
query_params[:'$expand'] = opts[:'expand'] if !opts[:'expand'].nil?
query_params[:'$apply'] = opts[:'apply'] if !opts[:'apply'].nil?
query_params[:'$count'] = opts[:'count'] if !opts[:'count'].nil?
query_params[:'$inlinecount'] = opts[:'inlinecount'] if !opts[:'inlinecount'].nil?
query_params[:'at'] = opts[:'at'] if !opts[:'at'].nil?
query_params[:'tags'] = opts[:'tags'] if !opts[:'tags'].nil?
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/csv', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'])
# form parameters
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:debug_body]
# return_type
return_type = opts[:debug_return_type] || 'VirtualizationVmwareVcenterResponse'
# auth_names
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'http_signature', 'oAuth2', 'oAuth2']
new_options = opts.merge(
:operation => :"VirtualizationApi.get_virtualization_vmware_vcenter_list",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => return_type
)
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: VirtualizationApi#get_virtualization_vmware_vcenter_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_vcenter_dc(host)\n host.info! true\n VIM.connect(\n :host => host['//VCENTER_HOST'], :insecure => true,\n :user => host['//VCENTER_USER'], :password => host['//VCENTER_PASSWORD']\n ).serviceInstance.find_datacenter\n end",
"def get_vcenter(vcenter_id=nil, auth=nil, cert=nil)\n chec... | [
"0.6570584",
"0.65387857",
"0.6123758",
"0.61126745",
"0.6109868",
"0.6096023",
"0.5742572",
"0.56568104",
"0.56548685",
"0.5620018",
"0.5591895",
"0.555032",
"0.55306345",
"0.5485854",
"0.5451413",
"0.53939843",
"0.5380349",
"0.5372409",
"0.5370727",
"0.53400725",
"0.5328194... | 0.5292185 | 25 |
Read a 'virtualization.VmwareVirtualDisk' resource. | def get_virtualization_vmware_virtual_disk_by_moid(moid, opts = {})
data, _status_code, _headers = get_virtualization_vmware_virtual_disk_by_moid_with_http_info(moid, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def disk\n @disk ||= begin\n dInfo = OpenStruct.new\n dInfo.lvObj = self\n dInfo.hardwareId = \"\"\n MiqDisk.new(Lvm2DiskIO, dInfo, 0)\n end\n end",
"def get_from_vm(vm)\n get_from_url(vm.properties.storage_profile.os_disk.vhd.uri)\n end",
"def get_os_disk(vm)\n ur... | [
"0.6719013",
"0.6699857",
"0.64571315",
"0.6176804",
"0.60148376",
"0.5992791",
"0.5985379",
"0.5975599",
"0.5958589",
"0.59242445",
"0.58651614",
"0.5817775",
"0.56744605",
"0.56196725",
"0.56122386",
"0.5603302",
"0.5571836",
"0.55646235",
"0.55557185",
"0.55152816",
"0.551... | 0.59702814 | 8 |
Read a &39;virtualization.VmwareVirtualDisk&39; resource. | def get_virtualization_vmware_virtual_disk_by_moid_with_http_info(moid, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: VirtualizationApi.get_virtualization_vmware_virtual_disk_by_moid ...'
end
# verify the required parameter 'moid' is set
if @api_client.config.client_side_validation && moid.nil?
fail ArgumentError, "Missing the required parameter 'moid' when calling VirtualizationApi.get_virtualization_vmware_virtual_disk_by_moid"
end
# resource path
local_var_path = '/api/v1/virtualization/VmwareVirtualDisks/{Moid}'.sub('{' + 'Moid' + '}', CGI.escape(moid.to_s))
# query parameters
query_params = opts[:query_params] || {}
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/csv', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'])
# form parameters
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:debug_body]
# return_type
return_type = opts[:debug_return_type] || 'VirtualizationVmwareVirtualDisk'
# auth_names
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'http_signature', 'oAuth2', 'oAuth2']
new_options = opts.merge(
:operation => :"VirtualizationApi.get_virtualization_vmware_virtual_disk_by_moid",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => return_type
)
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: VirtualizationApi#get_virtualization_vmware_virtual_disk_by_moid\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_from_vm(vm)\n get_from_url(vm.properties.storage_profile.os_disk.vhd.uri)\n end",
"def disk\n @disk ||= begin\n dInfo = OpenStruct.new\n dInfo.lvObj = self\n dInfo.hardwareId = \"\"\n MiqDisk.new(Lvm2DiskIO, dInfo, 0)\n end\n end",
"def get_os_disk(vm)\n ur... | [
"0.67636395",
"0.64909744",
"0.6429635",
"0.622556",
"0.6197763",
"0.6181252",
"0.5941708",
"0.58326775",
"0.5817217",
"0.5784067",
"0.57706946",
"0.576172",
"0.5705141",
"0.56696385",
"0.55896294",
"0.5574146",
"0.5484889",
"0.54714394",
"0.54625124",
"0.5454962",
"0.5432985... | 0.5287622 | 34 |
Read a 'virtualization.VmwareVirtualDisk' resource. | def get_virtualization_vmware_virtual_disk_list(opts = {})
data, _status_code, _headers = get_virtualization_vmware_virtual_disk_list_with_http_info(opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def disk\n @disk ||= begin\n dInfo = OpenStruct.new\n dInfo.lvObj = self\n dInfo.hardwareId = \"\"\n MiqDisk.new(Lvm2DiskIO, dInfo, 0)\n end\n end",
"def get_from_vm(vm)\n get_from_url(vm.properties.storage_profile.os_disk.vhd.uri)\n end",
"def get_os_disk(vm)\n ur... | [
"0.6719013",
"0.6699857",
"0.64571315",
"0.6176804",
"0.60148376",
"0.5992791",
"0.5985379",
"0.5975599",
"0.59702814",
"0.5958589",
"0.59242445",
"0.58651614",
"0.5817775",
"0.56744605",
"0.56122386",
"0.5603302",
"0.5571836",
"0.55646235",
"0.55557185",
"0.55152816",
"0.551... | 0.56196725 | 14 |
Read a &39;virtualization.VmwareVirtualDisk&39; resource. | def get_virtualization_vmware_virtual_disk_list_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: VirtualizationApi.get_virtualization_vmware_virtual_disk_list ...'
end
allowable_values = ["allpages", "none"]
if @api_client.config.client_side_validation && opts[:'inlinecount'] && !allowable_values.include?(opts[:'inlinecount'])
fail ArgumentError, "invalid value for \"inlinecount\", must be one of #{allowable_values}"
end
# resource path
local_var_path = '/api/v1/virtualization/VmwareVirtualDisks'
# query parameters
query_params = opts[:query_params] || {}
query_params[:'$filter'] = opts[:'filter'] if !opts[:'filter'].nil?
query_params[:'$orderby'] = opts[:'orderby'] if !opts[:'orderby'].nil?
query_params[:'$top'] = opts[:'top'] if !opts[:'top'].nil?
query_params[:'$skip'] = opts[:'skip'] if !opts[:'skip'].nil?
query_params[:'$select'] = opts[:'select'] if !opts[:'select'].nil?
query_params[:'$expand'] = opts[:'expand'] if !opts[:'expand'].nil?
query_params[:'$apply'] = opts[:'apply'] if !opts[:'apply'].nil?
query_params[:'$count'] = opts[:'count'] if !opts[:'count'].nil?
query_params[:'$inlinecount'] = opts[:'inlinecount'] if !opts[:'inlinecount'].nil?
query_params[:'at'] = opts[:'at'] if !opts[:'at'].nil?
query_params[:'tags'] = opts[:'tags'] if !opts[:'tags'].nil?
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/csv', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'])
# form parameters
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:debug_body]
# return_type
return_type = opts[:debug_return_type] || 'VirtualizationVmwareVirtualDiskResponse'
# auth_names
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'http_signature', 'oAuth2', 'oAuth2']
new_options = opts.merge(
:operation => :"VirtualizationApi.get_virtualization_vmware_virtual_disk_list",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => return_type
)
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: VirtualizationApi#get_virtualization_vmware_virtual_disk_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_from_vm(vm)\n get_from_url(vm.properties.storage_profile.os_disk.vhd.uri)\n end",
"def disk\n @disk ||= begin\n dInfo = OpenStruct.new\n dInfo.lvObj = self\n dInfo.hardwareId = \"\"\n MiqDisk.new(Lvm2DiskIO, dInfo, 0)\n end\n end",
"def get_os_disk(vm)\n ur... | [
"0.67636395",
"0.64909744",
"0.6429635",
"0.622556",
"0.6197763",
"0.6181252",
"0.5941708",
"0.58326775",
"0.5817217",
"0.5784067",
"0.576172",
"0.5705141",
"0.56696385",
"0.55896294",
"0.5574146",
"0.5484889",
"0.54714394",
"0.54625124",
"0.5454962",
"0.54329854",
"0.5405693... | 0.57706946 | 10 |
Read a 'virtualization.VmwareVirtualMachine' resource. | def get_virtualization_vmware_virtual_machine_by_moid(moid, opts = {})
data, _status_code, _headers = get_virtualization_vmware_virtual_machine_by_moid_with_http_info(moid, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vm(name)\n logger.debug \"Retrieving VM '#{name}' from #{description}\"\n Derelict::VirtualMachine.new(self, name).validate!\n end",
"def vm(name)\n @conn.vms.get(name)\n end",
"def get_vm(name)\n filter = Com::Vmware::Vcenter::VM::FilterSpec.new(names: Set.new([name]))\n vm_... | [
"0.6598721",
"0.6229064",
"0.61577386",
"0.61190975",
"0.6034243",
"0.59821117",
"0.59642136",
"0.5960446",
"0.5951482",
"0.5914127",
"0.5903152",
"0.5862487",
"0.58192915",
"0.5759933",
"0.57347673",
"0.5705597",
"0.56794035",
"0.5645226",
"0.5620689",
"0.5551109",
"0.552440... | 0.48369256 | 80 |
Read a &39;virtualization.VmwareVirtualMachine&39; resource. | def get_virtualization_vmware_virtual_machine_by_moid_with_http_info(moid, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: VirtualizationApi.get_virtualization_vmware_virtual_machine_by_moid ...'
end
# verify the required parameter 'moid' is set
if @api_client.config.client_side_validation && moid.nil?
fail ArgumentError, "Missing the required parameter 'moid' when calling VirtualizationApi.get_virtualization_vmware_virtual_machine_by_moid"
end
# resource path
local_var_path = '/api/v1/virtualization/VmwareVirtualMachines/{Moid}'.sub('{' + 'Moid' + '}', CGI.escape(moid.to_s))
# query parameters
query_params = opts[:query_params] || {}
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/csv', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'])
# form parameters
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:debug_body]
# return_type
return_type = opts[:debug_return_type] || 'VirtualizationVmwareVirtualMachine'
# auth_names
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'http_signature', 'oAuth2', 'oAuth2']
new_options = opts.merge(
:operation => :"VirtualizationApi.get_virtualization_vmware_virtual_machine_by_moid",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => return_type
)
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: VirtualizationApi#get_virtualization_vmware_virtual_machine_by_moid\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vm(name)\n logger.debug \"Retrieving VM '#{name}' from #{description}\"\n Derelict::VirtualMachine.new(self, name).validate!\n end",
"def get_vm_info()\n promise = @compute_client.virtual_machines.get(@rg_name, @instance_name)\n result = promise.value!\n OOLog.info(\"vm info :\"+r... | [
"0.6336508",
"0.6116885",
"0.61160547",
"0.61084557",
"0.6020165",
"0.5978413",
"0.5865561",
"0.5860863",
"0.58414483",
"0.57810014",
"0.57142323",
"0.57047105",
"0.5697006",
"0.56453764",
"0.5643015",
"0.56370765",
"0.5626335",
"0.55986255",
"0.55681217",
"0.5501379",
"0.548... | 0.0 | -1 |
Read a 'virtualization.VmwareVirtualMachine' resource. | def get_virtualization_vmware_virtual_machine_list(opts = {})
data, _status_code, _headers = get_virtualization_vmware_virtual_machine_list_with_http_info(opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vm(name)\n logger.debug \"Retrieving VM '#{name}' from #{description}\"\n Derelict::VirtualMachine.new(self, name).validate!\n end",
"def vm(name)\n @conn.vms.get(name)\n end",
"def get_vm(name)\n filter = Com::Vmware::Vcenter::VM::FilterSpec.new(names: Set.new([name]))\n vm_... | [
"0.6598721",
"0.6229064",
"0.61577386",
"0.61190975",
"0.6034243",
"0.59821117",
"0.59642136",
"0.5960446",
"0.5951482",
"0.5914127",
"0.5903152",
"0.5862487",
"0.58192915",
"0.5759933",
"0.57347673",
"0.5705597",
"0.56794035",
"0.5645226",
"0.5620689",
"0.5551109",
"0.552440... | 0.0 | -1 |
Read a &39;virtualization.VmwareVirtualMachine&39; resource. | def get_virtualization_vmware_virtual_machine_list_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: VirtualizationApi.get_virtualization_vmware_virtual_machine_list ...'
end
allowable_values = ["allpages", "none"]
if @api_client.config.client_side_validation && opts[:'inlinecount'] && !allowable_values.include?(opts[:'inlinecount'])
fail ArgumentError, "invalid value for \"inlinecount\", must be one of #{allowable_values}"
end
# resource path
local_var_path = '/api/v1/virtualization/VmwareVirtualMachines'
# query parameters
query_params = opts[:query_params] || {}
query_params[:'$filter'] = opts[:'filter'] if !opts[:'filter'].nil?
query_params[:'$orderby'] = opts[:'orderby'] if !opts[:'orderby'].nil?
query_params[:'$top'] = opts[:'top'] if !opts[:'top'].nil?
query_params[:'$skip'] = opts[:'skip'] if !opts[:'skip'].nil?
query_params[:'$select'] = opts[:'select'] if !opts[:'select'].nil?
query_params[:'$expand'] = opts[:'expand'] if !opts[:'expand'].nil?
query_params[:'$apply'] = opts[:'apply'] if !opts[:'apply'].nil?
query_params[:'$count'] = opts[:'count'] if !opts[:'count'].nil?
query_params[:'$inlinecount'] = opts[:'inlinecount'] if !opts[:'inlinecount'].nil?
query_params[:'at'] = opts[:'at'] if !opts[:'at'].nil?
query_params[:'tags'] = opts[:'tags'] if !opts[:'tags'].nil?
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/csv', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'])
# form parameters
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:debug_body]
# return_type
return_type = opts[:debug_return_type] || 'VirtualizationVmwareVirtualMachineResponse'
# auth_names
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'http_signature', 'oAuth2', 'oAuth2']
new_options = opts.merge(
:operation => :"VirtualizationApi.get_virtualization_vmware_virtual_machine_list",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => return_type
)
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: VirtualizationApi#get_virtualization_vmware_virtual_machine_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vm(name)\n logger.debug \"Retrieving VM '#{name}' from #{description}\"\n Derelict::VirtualMachine.new(self, name).validate!\n end",
"def get_vm_info()\n promise = @compute_client.virtual_machines.get(@rg_name, @instance_name)\n result = promise.value!\n OOLog.info(\"vm info :\"+r... | [
"0.6336508",
"0.6116885",
"0.61160547",
"0.61084557",
"0.6020165",
"0.5978413",
"0.5865561",
"0.5860863",
"0.58414483",
"0.57810014",
"0.57142323",
"0.57047105",
"0.5697006",
"0.56453764",
"0.5643015",
"0.56370765",
"0.5626335",
"0.55986255",
"0.55681217",
"0.5501379",
"0.548... | 0.0 | -1 |
Read a 'virtualization.VmwareVirtualMachineSnapshot' resource. | def get_virtualization_vmware_virtual_machine_snapshot_by_moid(moid, opts = {})
data, _status_code, _headers = get_virtualization_vmware_virtual_machine_snapshot_by_moid_with_http_info(moid, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def snapshots\n raise Fission::Error,\"VM #{@name} does not exist\" unless self.exists?\n\n command = \"#{vmrun_cmd} listSnapshots #{vmx_path.shellescape} 2>&1\"\n output = `#{command}`\n\n raise \"There was an error listing the snapshots of #{@name} :\\n #{output}\" unless $?.exitstatus==0\n\... | [
"0.564434",
"0.5579465",
"0.553887",
"0.54280216",
"0.5424141",
"0.5380024",
"0.53445137",
"0.53317875",
"0.53126746",
"0.52658457",
"0.5250837",
"0.523957",
"0.5228059",
"0.5226752",
"0.52012",
"0.51630545",
"0.5160013",
"0.51519656",
"0.5133889",
"0.506871",
"0.5056356",
... | 0.54290724 | 3 |
Read a &39;virtualization.VmwareVirtualMachineSnapshot&39; resource. | def get_virtualization_vmware_virtual_machine_snapshot_by_moid_with_http_info(moid, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: VirtualizationApi.get_virtualization_vmware_virtual_machine_snapshot_by_moid ...'
end
# verify the required parameter 'moid' is set
if @api_client.config.client_side_validation && moid.nil?
fail ArgumentError, "Missing the required parameter 'moid' when calling VirtualizationApi.get_virtualization_vmware_virtual_machine_snapshot_by_moid"
end
# resource path
local_var_path = '/api/v1/virtualization/VmwareVirtualMachineSnapshots/{Moid}'.sub('{' + 'Moid' + '}', CGI.escape(moid.to_s))
# query parameters
query_params = opts[:query_params] || {}
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/csv', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'])
# form parameters
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:debug_body]
# return_type
return_type = opts[:debug_return_type] || 'VirtualizationVmwareVirtualMachineSnapshot'
# auth_names
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'http_signature', 'oAuth2', 'oAuth2']
new_options = opts.merge(
:operation => :"VirtualizationApi.get_virtualization_vmware_virtual_machine_snapshot_by_moid",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => return_type
)
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: VirtualizationApi#get_virtualization_vmware_virtual_machine_snapshot_by_moid\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def snapshots\n unless @vm.exists?\n return Response.new :code => 1, :message => 'VM does not exist'\n end\n\n conf_file_response = @vm.conf_file\n return conf_file_response unless conf_file_response.successful?\n\n command = \"#{vmrun_cmd} listSnapshots \"\n... | [
"0.5715072",
"0.5651719",
"0.55402726",
"0.5509219",
"0.55010736",
"0.5466452",
"0.5427934",
"0.5414973",
"0.53894234",
"0.53774333",
"0.5338124",
"0.53278583",
"0.5281006",
"0.5267691",
"0.52645385",
"0.5263946",
"0.52543706",
"0.52379066",
"0.5194858",
"0.51944757",
"0.5166... | 0.5031365 | 27 |
Read a 'virtualization.VmwareVirtualMachineSnapshot' resource. | def get_virtualization_vmware_virtual_machine_snapshot_list(opts = {})
data, _status_code, _headers = get_virtualization_vmware_virtual_machine_snapshot_list_with_http_info(opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def snapshots\n raise Fission::Error,\"VM #{@name} does not exist\" unless self.exists?\n\n command = \"#{vmrun_cmd} listSnapshots #{vmx_path.shellescape} 2>&1\"\n output = `#{command}`\n\n raise \"There was an error listing the snapshots of #{@name} :\\n #{output}\" unless $?.exitstatus==0\n\... | [
"0.564434",
"0.5579465",
"0.54290724",
"0.54280216",
"0.5424141",
"0.5380024",
"0.53445137",
"0.53317875",
"0.53126746",
"0.52658457",
"0.5250837",
"0.523957",
"0.5228059",
"0.5226752",
"0.52012",
"0.51630545",
"0.5160013",
"0.51519656",
"0.5133889",
"0.506871",
"0.5056356",
... | 0.553887 | 2 |
Read a &39;virtualization.VmwareVirtualMachineSnapshot&39; resource. | def get_virtualization_vmware_virtual_machine_snapshot_list_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: VirtualizationApi.get_virtualization_vmware_virtual_machine_snapshot_list ...'
end
allowable_values = ["allpages", "none"]
if @api_client.config.client_side_validation && opts[:'inlinecount'] && !allowable_values.include?(opts[:'inlinecount'])
fail ArgumentError, "invalid value for \"inlinecount\", must be one of #{allowable_values}"
end
# resource path
local_var_path = '/api/v1/virtualization/VmwareVirtualMachineSnapshots'
# query parameters
query_params = opts[:query_params] || {}
query_params[:'$filter'] = opts[:'filter'] if !opts[:'filter'].nil?
query_params[:'$orderby'] = opts[:'orderby'] if !opts[:'orderby'].nil?
query_params[:'$top'] = opts[:'top'] if !opts[:'top'].nil?
query_params[:'$skip'] = opts[:'skip'] if !opts[:'skip'].nil?
query_params[:'$select'] = opts[:'select'] if !opts[:'select'].nil?
query_params[:'$expand'] = opts[:'expand'] if !opts[:'expand'].nil?
query_params[:'$apply'] = opts[:'apply'] if !opts[:'apply'].nil?
query_params[:'$count'] = opts[:'count'] if !opts[:'count'].nil?
query_params[:'$inlinecount'] = opts[:'inlinecount'] if !opts[:'inlinecount'].nil?
query_params[:'at'] = opts[:'at'] if !opts[:'at'].nil?
query_params[:'tags'] = opts[:'tags'] if !opts[:'tags'].nil?
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/csv', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'])
# form parameters
form_params = opts[:form_params] || {}
# http body (model)
post_body = opts[:debug_body]
# return_type
return_type = opts[:debug_return_type] || 'VirtualizationVmwareVirtualMachineSnapshotResponse'
# auth_names
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'http_signature', 'oAuth2', 'oAuth2']
new_options = opts.merge(
:operation => :"VirtualizationApi.get_virtualization_vmware_virtual_machine_snapshot_list",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => return_type
)
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: VirtualizationApi#get_virtualization_vmware_virtual_machine_snapshot_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def snapshots\n unless @vm.exists?\n return Response.new :code => 1, :message => 'VM does not exist'\n end\n\n conf_file_response = @vm.conf_file\n return conf_file_response unless conf_file_response.successful?\n\n command = \"#{vmrun_cmd} listSnapshots \"\n... | [
"0.5715072",
"0.5651719",
"0.55402726",
"0.5509219",
"0.55010736",
"0.5466452",
"0.5427934",
"0.5414973",
"0.53774333",
"0.5338124",
"0.53278583",
"0.5281006",
"0.5267691",
"0.52645385",
"0.5263946",
"0.52543706",
"0.52379066",
"0.5194858",
"0.51944757",
"0.51669914",
"0.5140... | 0.53894234 | 8 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.