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 |
|---|---|---|---|---|---|---|
Checks that the current user is an administrator | def check_admin_user
unless current_user && current_user.privilege_admin?
flash[:danger] = "You do not have permission to perform this operation"
redirect_to root_path
end
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def check_administrator_user\n result = current_user.is_administrator?\n\n if (!result)\n # If it doesn't meet the minimum privilege level, redirect.\n flash[:error] = t(\"ui.error.forbidden\")\n redirect_to root_path()\n end\n\n return result\n end",
"def administrator?\n logged... | [
"0.8528903",
"0.83883363",
"0.8261155",
"0.82475257",
"0.82432026",
"0.82351434",
"0.8218885",
"0.8196175",
"0.81843233",
"0.81486684",
"0.81486684",
"0.814763",
"0.8145769",
"0.813756",
"0.81354696",
"0.8101762",
"0.8100278",
"0.8094833",
"0.8067785",
"0.8062818",
"0.8051644... | 0.8198266 | 7 |
Confirms correct user, otherwise redirect to homepage BUT ADMIN/MANAGER PRIVS OVERRIDES | def check_current_user
@user = User.find(params[:id])
redirect_to(root_url) unless current_user?(@user) || is_manager_or_admin?
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def correct_user\n\t\t\tif !current_user?(@user) && !current_user.orgadmin?\n\t\t\t\tredirect_to(users_path)\n\t\t\tend\n\t\tend",
"def correct_user\n redirect_to(root_url) unless current_user?(@user)\n end",
"def correct_user\n\t\t\tauthenticate_user!\n\t\t\tunless @user == current_user || current_use... | [
"0.8018123",
"0.79533947",
"0.7928723",
"0.79150903",
"0.7840582",
"0.7826537",
"0.7824305",
"0.7818022",
"0.7815616",
"0.78017205",
"0.7793366",
"0.7792042",
"0.77864915",
"0.77617395",
"0.7753067",
"0.77495277",
"0.77394307",
"0.77191496",
"0.76921993",
"0.76919633",
"0.766... | 0.0 | -1 |
To protect against SQL Injection | def sort_and_order_sql
{:sort => ATTACH_MAPPING[@sort], :order => @order}
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def scout_sanitize_sql(sql)\n return nil if sql.length > 1000 # safeguard - don't sanitize large SQL statements\n sql = sql.dup\n sql.gsub!(/\\\\\"/, '') # removing escaping double quotes\n sql.gsub!(/\\\\'/, '') # removing escaping single quotes\n sql.gsub!(/'(?:[^']|'')*'/, '?') # removi... | [
"0.6874637",
"0.6669699",
"0.6598275",
"0.6585108",
"0.65275615",
"0.6496568",
"0.64930874",
"0.6430478",
"0.64117384",
"0.6409286",
"0.6392219",
"0.6385164",
"0.6281744",
"0.6255162",
"0.62523353",
"0.624898",
"0.62048364",
"0.6104095",
"0.60886616",
"0.60774076",
"0.6067653... | 0.0 | -1 |
Apply filter pattern/block and return self. (bang method of filter) | def filter! pattern=nil, &block
@filter||=[]
if pattern.is_a? Array
pattern.each{|el| @filter << conv_proc(el)}
else
@filter << conv_proc(pattern || block)
end
self
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def filter(*args, &block)\n @filter = block ? Filter.new(*args, &block) : args.first\n self\n end",
"def filter(&block)\n filters = self.filters << yield\n metaclass.send(:define_method, :_filters) do\n filters\n end\n end",
"def select(&block)\... | [
"0.7394979",
"0.69342583",
"0.6675611",
"0.66531867",
"0.65640897",
"0.6474464",
"0.6418458",
"0.63975006",
"0.63762087",
"0.62622124",
"0.61514795",
"0.6149321",
"0.6144681",
"0.6138147",
"0.6082144",
"0.6082144",
"0.6082144",
"0.60619307",
"0.5978645",
"0.59470105",
"0.5940... | 0.6833026 | 2 |
HTTP methods without a body | def delete(path, headers = {})
request(:delete, path, nil, merge_default_headers(headers))
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def non_get_methods\n [:post, :put, :delete]\n end",
"def http_method(request)\n raise NotImplementedError\n end",
"def http_method(request)\n raise NotImplementedError\n end",
"def http_methods(_path)\n []\n end",
"def halt_method(x = ['GET'])\n if !x.include?(request.request_... | [
"0.69605345",
"0.6808686",
"0.6808686",
"0.668468",
"0.6461201",
"0.64454746",
"0.64307964",
"0.63863313",
"0.6377966",
"0.6340829",
"0.6338353",
"0.62782085",
"0.6275755",
"0.6232177",
"0.6197935",
"0.6181277",
"0.6169058",
"0.6161177",
"0.615288",
"0.6106474",
"0.609597",
... | 0.0 | -1 |
HTTP methods with a body | def post(path, body = '', headers = {})
headers = { 'Content-Type' => 'application/json' }.merge(headers)
request(:post, path, body, merge_default_headers(headers))
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def api_request(path, method, body)\n uri = call_uri(path)\n req = Net::HTTP.const_get(method)\n .new(uri,\n \"Content-Type\": 'application/json; charset=utf-8',\n \"Cache-Control\": 'no-cache')\n req.body = body\n Net::HTTP.... | [
"0.69020146",
"0.66900474",
"0.66865647",
"0.6668566",
"0.6650875",
"0.66422284",
"0.6624229",
"0.6552733",
"0.64437354",
"0.62858623",
"0.6219396",
"0.62177944",
"0.6202457",
"0.6200788",
"0.6164059",
"0.6157543",
"0.61511755",
"0.61421156",
"0.6101621",
"0.60947573",
"0.609... | 0.0 | -1 |
Sends the specified HTTP request to the REST API through the appropriate method (oauth, basic). | def request(http_method, path, body = '', headers = {})
puts "#{http_method}: #{path} - [#{body}]" if @http_debug
@request_client.request(http_method, path, body, headers)
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def send_auth_request \n request = AuthorizeRequest.new(:get, action_to_call) do |req|\n req.request_params = params\n end\n request.send_request(Config.url)\n end",
"def send_request(method, path, options={}) #:nodoc:\n raise ArgumentError, 'only get, post, put and delete methods... | [
"0.7190646",
"0.692548",
"0.6876429",
"0.68723893",
"0.6857338",
"0.68504715",
"0.6792753",
"0.67741406",
"0.6770807",
"0.6722453",
"0.67046255",
"0.66622484",
"0.66568553",
"0.6641727",
"0.6628196",
"0.6601206",
"0.657999",
"0.65732676",
"0.6571635",
"0.65703595",
"0.6544643... | 0.67540675 | 9 |
Stops sensitive client information from being displayed in logs | def inspect
"#<JIRA::Client:#{object_id}>"
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def logoff()\n #This is a stub, used for indexing\n end",
"def logoff\n end",
"def disable_log_to_screen\n @log_to_screen = false\n end",
"def disable_logging\n @communicator_logger = nil\n end",
"def disable_logging\n @communicator_logger = nil\n end",
"def disable... | [
"0.675104",
"0.65900266",
"0.6474218",
"0.6068868",
"0.6068868",
"0.6064154",
"0.6032363",
"0.60230315",
"0.59606",
"0.5906992",
"0.58996385",
"0.58231634",
"0.57153183",
"0.5691369",
"0.5676965",
"0.5673762",
"0.56631887",
"0.5660808",
"0.5660496",
"0.5622072",
"0.5615646",
... | 0.0 | -1 |
the first set of background steps don't call this method (cucumber 1.3.19) instead before_feature is called. | def before_feature_element(scenario)
unless @background
@scenario = scenario
begin
save_str_start_time if @db_avail
rescue => e
puts "Error saving start time: #{e.message}"
@db_avail = false
end
end
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def before_scenario(*steps, &block)\n before_scenario_steps.append(*steps) unless steps.empty?\n before_scenario_steps.append(block) if block_given?\n end",
"def before_scenario_hook(cuke_scenario)\n # Update the scenario informaton\n if respond_to? :scenario\n scenario.runnin... | [
"0.6834577",
"0.6771935",
"0.6752892",
"0.66820896",
"0.66529614",
"0.6450566",
"0.6378382",
"0.62963194",
"0.6268686",
"0.6236611",
"0.6144316",
"0.61386055",
"0.6127944",
"0.60896444",
"0.6078578",
"0.6071805",
"0.6032748",
"0.6024897",
"0.6020945",
"0.60053355",
"0.5982388... | 0.7011184 | 0 |
finish saving the test run | def after_feature_element(scenario)
scenario.failed? ? passed = 0 : passed = 1
sql = "UPDATE scenario_test_runs SET elapsed_time = #{Time.now - @scenario_time_start}, passed = #{passed},
updated_at = now() WHERE id = #{@str_id}"
begin
Database.query(sql) if @db_avail
rescue => e
puts "There was an error saving the elapsed time: #{e.message}"
@db_avail = false
end
#update failure rate if configured
if OpenStruct.new(YAML.load_file(METRICS_CONFIG_FILE)).failure_rate
check_past_failures(@scenario.title)
end
if scenario.failed?
begin
save_links(scenario) if @db_avail
rescue => e
puts "There was an error saving the links to the failed scenario: #{e.message}"
@db_avail = false
end
end
#reset step counter when scenario is finished
@step_counter = 0
# clear the background flag - it seems to only happen once
@background = false
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def finish\n\t\t\twrite_log_to_file(@logfile)\n\t\t\twrite_xmlfile(@xmlfile)\n\t\t\tif @errcount > 0 or @warncount > 0 then\n\t\t\t\twrite_log_to_stdout\n\t\t\tend\n\t\t\tputs \"Test run finished (#{@errcount} errors, #{@warncount} warnings).\"\n\t\tend",
"def finish\n @finish = true\n end",
"def finis... | [
"0.72698903",
"0.6929024",
"0.69233847",
"0.686216",
"0.6861697",
"0.6844523",
"0.6844523",
"0.6844523",
"0.6844523",
"0.6844523",
"0.6844523",
"0.6844523",
"0.6844523",
"0.6803299",
"0.67999095",
"0.6682073",
"0.66527116",
"0.66374457",
"0.66036206",
"0.6592915",
"0.65518653... | 0.0 | -1 |
get the step name; keep track of the counter through the scenario | def get_step_name(scenario)
@step_counter ||= 0
step = scenario.steps.to_a[@step_counter]
@step_counter += 1
if step == nil
step
else
step.name
end
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def opinion_wizard_step_number(step)\n step.to_s.split(\"_\").last.to_i\n end",
"def step_name\n Bebox::Provision.step_name(self.step)\n end",
"def wizard_value(step_name)\n step_name\n end",
"def step_name(keyword, step_match, status, source_indent, background, file_colon_line)\n... | [
"0.73153013",
"0.7258913",
"0.72575223",
"0.72468245",
"0.7070125",
"0.7014817",
"0.69399196",
"0.6872327",
"0.68112576",
"0.6753655",
"0.6711938",
"0.6503663",
"0.64775515",
"0.6413225",
"0.63975924",
"0.6389023",
"0.63337094",
"0.6294106",
"0.6294106",
"0.62442744",
"0.6228... | 0.8661052 | 0 |
save the links for failed scenarios; feature file, scenario, and failed step | def save_links(scenario)
failed_step = ""
((scenario.instance_eval {@steps}).instance_eval {@steps}).each do |step|
if step.status == :failed
failed_step = step.name
end
end
sql = "INSERT INTO scenario_failed_links (scenario_test_run_id, failed_step,
feature, scenario, scenario_file, created_at, updated_at)
VALUES(#{@str_id}, \'#{failed_step.gsub('\'', '')}\', \'#{scenario.feature.title.gsub('\'', '')}\',
\'#{scenario.title.gsub('\'', '')}\', \'#{scenario.feature.file.gsub('\'', '')}\', now(), now())"
Database.query(sql)
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def failure_feature_with_two_scenarios\n feature = failure_feature_title + failure_scenario + success_scenario\n steps = failure_step + success_step + \"\\nend\"\n write_feature failure_filename, feature,\n failure_step_filename, steps\n end",
"def tagged_failure_feature_with_t... | [
"0.6485511",
"0.6258371",
"0.61989355",
"0.5954257",
"0.5945305",
"0.59172416",
"0.59172416",
"0.5873075",
"0.586557",
"0.5839619",
"0.5733396",
"0.5671839",
"0.5646657",
"0.5639717",
"0.5627238",
"0.5598135",
"0.55929023",
"0.5568969",
"0.5557611",
"0.55513674",
"0.55426604"... | 0.7796466 | 0 |
Create a new user. The users/create url or its alias facebook/reply is a callback url used by Facebook after a user has encountered a login with fb dialog. If a valid access_token has been provided a new user is created or an old one is fetched & it's fields updated. The flow is then redirected to onboarding or the user's feed based on their status. | def create
using = params[:using] ? params[:using].to_sym : :facebook
target = params[:target]
follow_user_id = params[:follow_user_id]
case using
when :facebook
create_from_fb
when :twitter
create_from_tw
end
rescue => ex
handle_exception(ex)
ensure
respond_to do |format|
format.html do
if @user && !@error
self.current_user = @user
set_cookie
Following.add(follow_user_id,self.current_user.id,FollowingSource::Auto,false) if follow_user_id
if session[:invited_by_user_id]
Following.add(session[:invited_by_user_id],self.current_user.id,FollowingSource::Auto,false)
Following.add(self.current_user.id,session[:invited_by_user_id],FollowingSource::Auto,false)
end
end
url = ""
if @error
url = root_path(:src => HomeShowSource::UserCreateError)
elsif !@user.email.present? || !@user.gender.present?
url = welcome_path(WelcomeFilter::Info)
elsif @user.is_fresh
url = welcome_path(WelcomeFilter::Connect)
elsif target
url = target
else
url = root_path(:src => FeedShowSource::Login)
end
redirect_to url
end
format.json
end
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def create\n auth = request.env[\"omniauth.auth\"]\n user = User.find_by_provider_and_uid(auth[\"provider\"], auth[\"uid\"]) || User.create_with_omniauth(auth)\n User.update(user.id, :fb_nickname => auth[\"info\"][\"nickname\"])\n session[:user_id] = user.id\n redirect_to root_url\n end",
"def cr... | [
"0.725742",
"0.7235107",
"0.71598625",
"0.70725894",
"0.70385754",
"0.7035976",
"0.7026663",
"0.70266515",
"0.7007976",
"0.6937148",
"0.6931779",
"0.6911961",
"0.68999785",
"0.68921614",
"0.68710834",
"0.6868245",
"0.68507636",
"0.683712",
"0.68263155",
"0.68145674",
"0.68113... | 0.0 | -1 |
List of users with the following aspects. params[:aspect]: likers requires params[:purchase_id]. All users who've liked the given purchase. followers requires params[:user_id]. All users who follow the given user. ifollowers requires params[:user_id]. All users which the given user follows. search requires params[:query]. params[:skip_followers] can be used to customize results. | def index
@aspect = params[:aspect].to_sym
@users = []
@key = ""
@cache_options = {}
case @aspect
when :likers
purchase = Purchase.with_likes.find params[:purchase_id]
@users = purchase.likes.map(&:user)
@key = ["v1",purchase,@users.map(&:updated_at).max.to_i, "likers"]
when :followers
user = params[:handle] ?
User.find_by_handle(params[:handle]) :
User.find(params[:user_id])
@users = user.followers
@key = ["v1",user,@users.map(&:updated_at).max.to_i, "followers"]
when :ifollowers
user = params[:handle] ?
User.find_by_handle(params[:handle]) :
User.find(params[:user_id])
@users = user.ifollowers
@key = ["v1",user,@users.map(&:updated_at).max.to_i, "ifollowers"]
when :search
query = params[:q]
@key = ["v1",self.current_user,Base64.encode64(query).gsub("\n","")[0..99]]
@cache_options = {:expires_in => 1.minute}
@users = User.search do
fulltext query do
unless params[:skip_followers]
boost(10) do
with(:followers,self.current_user.id)
end
boost(5) do
with(:followers,self.current_user.ifollower_ids)
end unless self.current_user.inverse_followings_count.zero?
end
end
without(:followers,self.current_user.id) if params[:skip_followers]
paginate :per_page => 5
end.results unless fragment_exist?(@key)
Search.add(
{:query => query,:source => SearchSource::User},
self.current_user.id)
when :connections
@user = User.find_by_handle params[:handle]
@origin = "connections"
@view = "connections"
populate_theme @user if @user
when :suggestions
@view = "suggestions"
@user = self.current_user
ifollower_ids = self.current_user.ifollower_ids
per_page = params[:per_page] ? params[:per_page].to_i : 3
followings = Following.find_all_by_follower_id(
ifollower_ids,
:conditions => ["user_id not in (?) AND U.has_purchases_mined = 1 AND U.purchases_count > 2 AND is_active = true", ifollower_ids + [self.current_user.id]],
:joins => 'INNER JOIN users ON users.id = followings.follower_id INNER JOIN users as U ON U.id = followings.user_id',
:group => :user_id,
:include => :user,
:select => 'followings.*,
GROUP_CONCAT(CONCAT_WS(\' \', users.first_name, users.last_name)) AS FOLLOWED_BY',
:order => 'RAND()',
:limit => per_page * 0.667)
@users = followings.each do |f|
f.user['message'] = follow_message(f['FOLLOWED_BY'],params[:mobile])
end.map(&:user)
@users += User.find_all_by_is_special(
true,
:conditions => ["id not in (?)", followings.map(&:user_id) + ifollower_ids + [self.current_user.id]],
:order => 'RAND()',
:limit => per_page - @users.size).each{|u| u['message'] = u.byline}
end
rescue => ex
handle_exception(ex)
ensure
raise_not_found if @aspect == :connections && !@user
respond_to do |format|
format.html do
track_visit
render @view
end
format.json
end
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def followers\n optional! :offset, type: Integer, default: 0\n optional! :limit, type: Integer, default: 20, values: 1..150\n\n @users = @user.follow_by_users.fields_for_list.order(\"actions.id asc\").offset(params[:offset]).limit(params[:limit])\n end",
"def following\n optional... | [
"0.6246515",
"0.6214876",
"0.5886007",
"0.58647335",
"0.58361936",
"0.5829583",
"0.58097476",
"0.57884276",
"0.5736631",
"0.5692812",
"0.56608826",
"0.5645254",
"0.56354725",
"0.56200707",
"0.5608251",
"0.5585108",
"0.5580182",
"0.55777234",
"0.5537452",
"0.5527691",
"0.55134... | 0.6048959 | 2 |
Display a user's profile. | def show
if is_request_json?
@user = User.find_by_id Cryptography.deobfuscate(params[:id])
else
track_visit
if @user = User.find_by_handle(params[:handle])
@following = Following.fetch @user.id,self.current_user.id
@origin = 'user'
populate_theme @user
end
end
rescue => ex
handle_exception(ex)
ensure
raise_not_found unless @user
respond_to do |format|
format.html
format.json
end
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def show\n if current_user.is_normal?\n @user = User.find( params[:id] )\n render :profile\n else\n redirect_to user_profile_path\n end\n end",
"def profile\n @user = @current_user\n\n render :show\n\n end",
"def show\n @profile = @user.profile... | [
"0.802497",
"0.7831559",
"0.7818937",
"0.78168875",
"0.7805233",
"0.77387804",
"0.7678858",
"0.7605099",
"0.7580199",
"0.754568",
"0.74561125",
"0.7451385",
"0.73993254",
"0.73612076",
"0.73361295",
"0.73311335",
"0.7291752",
"0.7237067",
"0.72247124",
"0.7211638",
"0.7198940... | 0.0 | -1 |
Update a user. To ensure security only the currently logged in user is updated and all updateable attributes are listed in the User model. | def update
@user = self.current_user
@user.update_attributes(params)
rescue => ex
@user.reload
handle_exception(ex)
ensure
respond_to do |format|
format.json
end
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def update\n if @user.update_attributes(user_params)\n redirect_to users_url, :notice => 'User was successfully updated.'\n else\n render :action => \"edit\"\n end\n end",
"def update\n\t\t@user.admin = nil unless admin?\n\n\t\trespond_to do |format|\n\t\t\tif @user.update(user_pa... | [
"0.7994204",
"0.7994056",
"0.798109",
"0.79508257",
"0.79414725",
"0.79291713",
"0.7910759",
"0.78895444",
"0.78831226",
"0.7871602",
"0.7863203",
"0.7807531",
"0.7806734",
"0.7795416",
"0.7774746",
"0.77555263",
"0.77506787",
"0.77396494",
"0.77356505",
"0.7707583",
"0.77075... | 0.0 | -1 |
Use the OAuth token sent by Facebook to create a new user or fetch and update an existing user. | def create_from_fb
fb_user = FbGraph::User.fetch(
"me?fields=first_name,last_name,"\
"gender,email,birthday",
:access_token => params[:access_token])
@user = User.add_from_fb(fb_user,@source)
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def create\n auth = request.env[\"omniauth.auth\"] \n user = User.find_by_fb_id(auth[\"uid\"]) || User.create_with_omniauth(auth) \n #for those update from feeds\n if user.access_token.empty?\n user.access_token = auth[\"credentials\"][\"token\"]\n user.save\n end\n redirect_to FB_AP... | [
"0.76549095",
"0.7618757",
"0.73600197",
"0.7329845",
"0.731695",
"0.71423006",
"0.7090678",
"0.69982696",
"0.6975757",
"0.6959719",
"0.6940034",
"0.6926005",
"0.6919293",
"0.690989",
"0.68918395",
"0.6889092",
"0.6850344",
"0.6786764",
"0.6781375",
"0.6777635",
"0.67315936",... | 0.7119993 | 6 |
Use the Oauth tokens from Twitter to create a new user or fetch and update an existing user. | def create_from_tw
client = Twitter::Client.new(
:consumer_key => CONFIG[:tw_consumer_key],
:consumer_secret => CONFIG[:tw_consumer_secret],
:oauth_token => params[:tw_access_token],
:oauth_token_secret => params[:tw_access_token_secret])
@user = User.add_from_tw(
client.user,
params[:tw_access_token],
params[:tw_access_token_secret],
@source)
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def new \n\n begin\n if params[:oauth_token] != session['oauth_request_token_token']\n flash[:error] = 'Could not authorize your Twitter account'\n if current_user.nil?\n return redirect_to signup_path\n else\n return redirect_to edit_user_path(current_user)\n ... | [
"0.7480056",
"0.7359431",
"0.72488695",
"0.7164571",
"0.70715624",
"0.7044218",
"0.7042585",
"0.69854414",
"0.69020027",
"0.69014853",
"0.6835678",
"0.6813636",
"0.67742777",
"0.6752849",
"0.673797",
"0.67353505",
"0.672908",
"0.67020667",
"0.6683768",
"0.66755515",
"0.663679... | 0.7273068 | 2 |
Generate a message for the user that we recommend to follow | def follow_message(users,mobile)
users = users.split(',')
message = "Followed by "
if mobile
message << users.first
else
if users.length <= 2
message << users[0..1].join(" and ")
elsif users.length == 3
message << users[0..1].join(", ") + " and 1 other"
else
message << users[0..1].join(", ") + " and #{users.length - 2} others"
end
end
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def generate_message(prev_user, next_user)\n text = \"<@#{next_user}> you can now use the laundry machine <@#{prev_user}> is done using it.\"\n return text\n end",
"def followedMsg(user, currentUser)\n @users = user\n @currentUser = currentUser\n mail to: @users.email, subject: \"Someone followed... | [
"0.696596",
"0.6782748",
"0.6343039",
"0.6333268",
"0.62477916",
"0.61958045",
"0.61567545",
"0.61552656",
"0.6143815",
"0.61159146",
"0.61101943",
"0.6082194",
"0.6077252",
"0.607462",
"0.6044975",
"0.60298043",
"0.60297406",
"0.6024609",
"0.59977984",
"0.5996405",
"0.596597... | 0.6707149 | 2 |
Get consolidated effective IPAddress translated from this group across site Returns consolidated effective ip address members of the specified NSGroup. Applicable in case of federated environment. The response contains sitewise list of consolidated effective IP address members. In the response, for the localsite, the list will contain static and dynamicaly translated IPs. For the remote sites, the list will contain only the dynamically translated IPs. The static IPs will not be seen in the response of this API. Hence, user can refer to the localsite Ip response in the API results or the group definition to see the static IP membership of the Group. This API is applicable only for Global Groups containing (directly or via nesting) either VirtualMachine, VIF, Segment, SegmentPort or IPSet member type. Use the cursor value in the response to fetch the next page. If there is no cursor value for a response, it implies the last page in the results for the query. | def get_consolidated_effective_ip_members(domain_id, group_id, opts = {})
data, _status_code, _headers = get_consolidated_effective_ip_members_with_http_info(domain_id, group_id, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_effective_ip_address_members(ns_group_id, opts = {})\n data, _status_code, _headers = get_effective_ip_address_members_with_http_info(ns_group_id, opts)\n data\n end",
"def get_effective_ip_address_members(ns_group_id, opts = {})\n data, _status_code, _headers = get_effective_ip_address... | [
"0.63225937",
"0.6292649",
"0.6083756",
"0.5984525",
"0.593849",
"0.59370303",
"0.58533883",
"0.5533996",
"0.51797616",
"0.4991725",
"0.4989319",
"0.49725518",
"0.49632376",
"0.4947994",
"0.49089906",
"0.49053824",
"0.47825307",
"0.47564337",
"0.47256368",
"0.47164723",
"0.46... | 0.6496358 | 0 |
Get consolidated effective IPAddress translated from this group across site Returns consolidated effective ip address members of the specified NSGroup. Applicable in case of federated environment. The response contains sitewise list of consolidated effective IP address members. In the response, for the localsite, the list will contain static and dynamicaly translated IPs. For the remote sites, the list will contain only the dynamically translated IPs. The static IPs will not be seen in the response of this API. Hence, user can refer to the localsite Ip response in the API results or the group definition to see the static IP membership of the Group. This API is applicable only for Global Groups containing (directly or via nesting) either VirtualMachine, VIF, Segment, SegmentPort or IPSet member type. Use the cursor value in the response to fetch the next page. If there is no cursor value for a response, it implies the last page in the results for the query. | def get_consolidated_effective_ip_members_with_http_info(domain_id, group_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: PolicyInventoryGroupsGroupMembersApi.get_consolidated_effective_ip_members ...'
end
# verify the required parameter 'domain_id' is set
if @api_client.config.client_side_validation && domain_id.nil?
fail ArgumentError, "Missing the required parameter 'domain_id' when calling PolicyInventoryGroupsGroupMembersApi.get_consolidated_effective_ip_members"
end
# verify the required parameter 'group_id' is set
if @api_client.config.client_side_validation && group_id.nil?
fail ArgumentError, "Missing the required parameter 'group_id' when calling PolicyInventoryGroupsGroupMembersApi.get_consolidated_effective_ip_members"
end
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 1000
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling PolicyInventoryGroupsGroupMembersApi.get_consolidated_effective_ip_members, must be smaller than or equal to 1000.'
end
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 0
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling PolicyInventoryGroupsGroupMembersApi.get_consolidated_effective_ip_members, must be greater than or equal to 0.'
end
# resource path
local_var_path = '/infra/domains/{domain-id}/groups/{group-id}/members/consolidated-effective-ip-addresses'.sub('{' + 'domain-id' + '}', domain_id.to_s).sub('{' + 'group-id' + '}', group_id.to_s)
# query parameters
query_params = {}
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
query_params[:'enforcement_point_path'] = opts[:'enforcement_point_path'] if !opts[:'enforcement_point_path'].nil?
query_params[:'included_fields'] = opts[:'included_fields'] if !opts[:'included_fields'].nil?
query_params[:'ip_filter'] = opts[:'ip_filter'] if !opts[:'ip_filter'].nil?
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
query_params[:'site_id'] = opts[:'site_id'] if !opts[:'site_id'].nil?
query_params[:'sort_ascending'] = opts[:'sort_ascending'] if !opts[:'sort_ascending'].nil?
query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'ConsolidatedEffectiveIPAddressMemberListResult')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: PolicyInventoryGroupsGroupMembersApi#get_consolidated_effective_ip_members\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_consolidated_effective_ip_members(domain_id, group_id, opts = {})\n data, _status_code, _headers = get_consolidated_effective_ip_members_with_http_info(domain_id, group_id, opts)\n data\n end",
"def get_effective_ip_address_members(ns_group_id, opts = {})\n data, _status_code, _headers ... | [
"0.64959204",
"0.63226503",
"0.62926483",
"0.6083193",
"0.5938855",
"0.59377044",
"0.5853468",
"0.55349493",
"0.51812994",
"0.4992395",
"0.49921304",
"0.4975293",
"0.49644017",
"0.49508864",
"0.49119264",
"0.49085808",
"0.4780364",
"0.47574556",
"0.47267374",
"0.47185466",
"0... | 0.5984643 | 4 |
Get consolidated effective IPAddress translated from this group across site Returns consolidated effective ip address members of the specified NSGroup. Applicable in case of federated environment. The response contains sitewise list of consolidated effective IP address members. In the response, for the localsite, the list will contain static and dynamicaly translated IPs. For the remote sites, the list will contain only the dynamically translated IPs. The static IPs will not be seen in the response of this API. Hence, user can refer to the localsite Ip response in the API results or the group definition to see the static IP membership of the Group. This API is applicable only for Global Groups containing (directly or via nesting) either VirtualMachine, VIF, Segment, SegmentPort or IPSet member type. Use the cursor value in the response to fetch the next page. If there is no cursor value for a response, it implies the last page in the results for the query. | def get_consolidated_effective_ip_members_0(domain_id, group_id, opts = {})
data, _status_code, _headers = get_consolidated_effective_ip_members_0_with_http_info(domain_id, group_id, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_consolidated_effective_ip_members(domain_id, group_id, opts = {})\n data, _status_code, _headers = get_consolidated_effective_ip_members_with_http_info(domain_id, group_id, opts)\n data\n end",
"def get_effective_ip_address_members(ns_group_id, opts = {})\n data, _status_code, _headers ... | [
"0.6495611",
"0.632124",
"0.6291274",
"0.59843385",
"0.593783",
"0.59363574",
"0.5853022",
"0.55341256",
"0.5180302",
"0.4993356",
"0.4990527",
"0.4973735",
"0.49624333",
"0.49495798",
"0.49103993",
"0.49071014",
"0.47798875",
"0.47553554",
"0.47272718",
"0.4717479",
"0.46992... | 0.6082643 | 3 |
Get consolidated effective IPAddress translated from this group across site Returns consolidated effective ip address members of the specified NSGroup. Applicable in case of federated environment. The response contains sitewise list of consolidated effective IP address members. In the response, for the localsite, the list will contain static and dynamicaly translated IPs. For the remote sites, the list will contain only the dynamically translated IPs. The static IPs will not be seen in the response of this API. Hence, user can refer to the localsite Ip response in the API results or the group definition to see the static IP membership of the Group. This API is applicable only for Global Groups containing (directly or via nesting) either VirtualMachine, VIF, Segment, SegmentPort or IPSet member type. Use the cursor value in the response to fetch the next page. If there is no cursor value for a response, it implies the last page in the results for the query. | def get_consolidated_effective_ip_members_0_with_http_info(domain_id, group_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: PolicyInventoryGroupsGroupMembersApi.get_consolidated_effective_ip_members_0 ...'
end
# verify the required parameter 'domain_id' is set
if @api_client.config.client_side_validation && domain_id.nil?
fail ArgumentError, "Missing the required parameter 'domain_id' when calling PolicyInventoryGroupsGroupMembersApi.get_consolidated_effective_ip_members_0"
end
# verify the required parameter 'group_id' is set
if @api_client.config.client_side_validation && group_id.nil?
fail ArgumentError, "Missing the required parameter 'group_id' when calling PolicyInventoryGroupsGroupMembersApi.get_consolidated_effective_ip_members_0"
end
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 1000
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling PolicyInventoryGroupsGroupMembersApi.get_consolidated_effective_ip_members_0, must be smaller than or equal to 1000.'
end
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 0
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling PolicyInventoryGroupsGroupMembersApi.get_consolidated_effective_ip_members_0, must be greater than or equal to 0.'
end
# resource path
local_var_path = '/global-infra/domains/{domain-id}/groups/{group-id}/members/consolidated-effective-ip-addresses'.sub('{' + 'domain-id' + '}', domain_id.to_s).sub('{' + 'group-id' + '}', group_id.to_s)
# query parameters
query_params = {}
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
query_params[:'enforcement_point_path'] = opts[:'enforcement_point_path'] if !opts[:'enforcement_point_path'].nil?
query_params[:'included_fields'] = opts[:'included_fields'] if !opts[:'included_fields'].nil?
query_params[:'ip_filter'] = opts[:'ip_filter'] if !opts[:'ip_filter'].nil?
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
query_params[:'site_id'] = opts[:'site_id'] if !opts[:'site_id'].nil?
query_params[:'sort_ascending'] = opts[:'sort_ascending'] if !opts[:'sort_ascending'].nil?
query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'ConsolidatedEffectiveIPAddressMemberListResult')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: PolicyInventoryGroupsGroupMembersApi#get_consolidated_effective_ip_members_0\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_consolidated_effective_ip_members(domain_id, group_id, opts = {})\n data, _status_code, _headers = get_consolidated_effective_ip_members_with_http_info(domain_id, group_id, opts)\n data\n end",
"def get_effective_ip_address_members(ns_group_id, opts = {})\n data, _status_code, _headers ... | [
"0.64959204",
"0.63226503",
"0.62926483",
"0.6083193",
"0.5984643",
"0.5938855",
"0.59377044",
"0.55349493",
"0.51812994",
"0.4992395",
"0.49921304",
"0.4975293",
"0.49644017",
"0.49508864",
"0.49119264",
"0.49085808",
"0.4780364",
"0.47574556",
"0.47267374",
"0.47185466",
"0... | 0.5853468 | 7 |
Get IP addresses that belong to this Group Get IP addresses that belong to this Group. This API is applicable for Groups containing either VirtualMachine, VIF, Segment ,Segment Port or IP Address member type.For Groups containing other member types,an empty list is returned | def get_group_ip_members(domain_id, group_id, opts = {})
data, _status_code, _headers = get_group_ip_members_with_http_info(domain_id, group_id, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_ips_by_group(name)\n hostids = get_hostids_by_group(name)\n hostips = []\n if hostids == nil \n return nil\n else\n hostids.each do |hostid|\n hostips.push(@zbx.query( method: \"hostinterface.get\", params: {\"output\" => \"extend\", \"hostids\" => [hostid] } )[0]... | [
"0.6507878",
"0.63745",
"0.63347065",
"0.62875",
"0.62559456",
"0.6250691",
"0.61805177",
"0.60684687",
"0.5975025",
"0.5931469",
"0.59214526",
"0.5848714",
"0.5831322",
"0.5759916",
"0.5755242",
"0.5707426",
"0.57036376",
"0.5677036",
"0.5644352",
"0.5635509",
"0.5574843",
... | 0.5972043 | 9 |
Get IP addresses that belong to this Group Get IP addresses that belong to this Group. This API is applicable for Groups containing either VirtualMachine, VIF, Segment ,Segment Port or IP Address member type.For Groups containing other member types,an empty list is returned | def get_group_ip_members_with_http_info(domain_id, group_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: PolicyInventoryGroupsGroupMembersApi.get_group_ip_members ...'
end
# verify the required parameter 'domain_id' is set
if @api_client.config.client_side_validation && domain_id.nil?
fail ArgumentError, "Missing the required parameter 'domain_id' when calling PolicyInventoryGroupsGroupMembersApi.get_group_ip_members"
end
# verify the required parameter 'group_id' is set
if @api_client.config.client_side_validation && group_id.nil?
fail ArgumentError, "Missing the required parameter 'group_id' when calling PolicyInventoryGroupsGroupMembersApi.get_group_ip_members"
end
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 1000
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling PolicyInventoryGroupsGroupMembersApi.get_group_ip_members, must be smaller than or equal to 1000.'
end
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 0
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling PolicyInventoryGroupsGroupMembersApi.get_group_ip_members, must be greater than or equal to 0.'
end
# resource path
local_var_path = '/global-infra/domains/{domain-id}/groups/{group-id}/members/ip-addresses'.sub('{' + 'domain-id' + '}', domain_id.to_s).sub('{' + 'group-id' + '}', group_id.to_s)
# query parameters
query_params = {}
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
query_params[:'enforcement_point_path'] = opts[:'enforcement_point_path'] if !opts[:'enforcement_point_path'].nil?
query_params[:'include_mark_for_delete_objects'] = opts[:'include_mark_for_delete_objects'] if !opts[:'include_mark_for_delete_objects'].nil?
query_params[:'included_fields'] = opts[:'included_fields'] if !opts[:'included_fields'].nil?
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
query_params[:'sort_ascending'] = opts[:'sort_ascending'] if !opts[:'sort_ascending'].nil?
query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'PolicyGroupIPMembersListResult')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: PolicyInventoryGroupsGroupMembersApi#get_group_ip_members\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_ips_by_group(name)\n hostids = get_hostids_by_group(name)\n hostips = []\n if hostids == nil \n return nil\n else\n hostids.each do |hostid|\n hostips.push(@zbx.query( method: \"hostinterface.get\", params: {\"output\" => \"extend\", \"hostids\" => [hostid] } )[0]... | [
"0.65096945",
"0.63731515",
"0.6333182",
"0.6287094",
"0.62555933",
"0.6249942",
"0.6179568",
"0.6069954",
"0.5974038",
"0.5973208",
"0.59320647",
"0.59219503",
"0.58477217",
"0.58303803",
"0.5759105",
"0.5753787",
"0.5707023",
"0.5703658",
"0.56758064",
"0.564378",
"0.563672... | 0.5511604 | 27 |
Get IP addresses that belong to this Group Get IP addresses that belong to this Group. This API is applicable for Groups containing either VirtualMachine, VIF, Segment ,Segment Port or IP Address member type.For Groups containing other member types,an empty list is returned | def get_group_ip_members_0(domain_id, group_id, opts = {})
data, _status_code, _headers = get_group_ip_members_0_with_http_info(domain_id, group_id, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_ips_by_group(name)\n hostids = get_hostids_by_group(name)\n hostips = []\n if hostids == nil \n return nil\n else\n hostids.each do |hostid|\n hostips.push(@zbx.query( method: \"hostinterface.get\", params: {\"output\" => \"extend\", \"hostids\" => [hostid] } )[0]... | [
"0.6508115",
"0.6375182",
"0.63364244",
"0.6287443",
"0.6255819",
"0.62522906",
"0.6182185",
"0.59762955",
"0.5970206",
"0.59331244",
"0.5921811",
"0.5849513",
"0.58320165",
"0.57612693",
"0.57566905",
"0.57087404",
"0.57042915",
"0.56784874",
"0.56463224",
"0.56371874",
"0.5... | 0.60669845 | 7 |
Get IP addresses that belong to this Group Get IP addresses that belong to this Group. This API is applicable for Groups containing either VirtualMachine, VIF, Segment ,Segment Port or IP Address member type.For Groups containing other member types,an empty list is returned | def get_group_ip_members_0_with_http_info(domain_id, group_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: PolicyInventoryGroupsGroupMembersApi.get_group_ip_members_0 ...'
end
# verify the required parameter 'domain_id' is set
if @api_client.config.client_side_validation && domain_id.nil?
fail ArgumentError, "Missing the required parameter 'domain_id' when calling PolicyInventoryGroupsGroupMembersApi.get_group_ip_members_0"
end
# verify the required parameter 'group_id' is set
if @api_client.config.client_side_validation && group_id.nil?
fail ArgumentError, "Missing the required parameter 'group_id' when calling PolicyInventoryGroupsGroupMembersApi.get_group_ip_members_0"
end
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 1000
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling PolicyInventoryGroupsGroupMembersApi.get_group_ip_members_0, must be smaller than or equal to 1000.'
end
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 0
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling PolicyInventoryGroupsGroupMembersApi.get_group_ip_members_0, must be greater than or equal to 0.'
end
# resource path
local_var_path = '/infra/domains/{domain-id}/groups/{group-id}/members/ip-addresses'.sub('{' + 'domain-id' + '}', domain_id.to_s).sub('{' + 'group-id' + '}', group_id.to_s)
# query parameters
query_params = {}
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
query_params[:'enforcement_point_path'] = opts[:'enforcement_point_path'] if !opts[:'enforcement_point_path'].nil?
query_params[:'include_mark_for_delete_objects'] = opts[:'include_mark_for_delete_objects'] if !opts[:'include_mark_for_delete_objects'].nil?
query_params[:'included_fields'] = opts[:'included_fields'] if !opts[:'included_fields'].nil?
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
query_params[:'sort_ascending'] = opts[:'sort_ascending'] if !opts[:'sort_ascending'].nil?
query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'PolicyGroupIPMembersListResult')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: PolicyInventoryGroupsGroupMembersApi#get_group_ip_members_0\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_ips_by_group(name)\n hostids = get_hostids_by_group(name)\n hostips = []\n if hostids == nil \n return nil\n else\n hostids.each do |hostid|\n hostips.push(@zbx.query( method: \"hostinterface.get\", params: {\"output\" => \"extend\", \"hostids\" => [hostid] } )[0]... | [
"0.65096945",
"0.63731515",
"0.6333182",
"0.6287094",
"0.62555933",
"0.6249942",
"0.6179568",
"0.6069954",
"0.5974038",
"0.5973208",
"0.59320647",
"0.59219503",
"0.58477217",
"0.58303803",
"0.5759105",
"0.5753787",
"0.5707023",
"0.5703658",
"0.56758064",
"0.564378",
"0.563672... | 0.5415208 | 33 |
Get logical ports that belong to this Group Get logical ports that belong to this Group This API is applicable for Groups containing either VirtualMachine, VIF, Segment or Segment Port member type.For Groups containing other member types,an empty list is returned. | def get_group_lp_members(domain_id, group_id, opts = {})
data, _status_code, _headers = get_group_lp_members_with_http_info(domain_id, group_id, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ports\n enum_for(:each_port).to_a\n end",
"def allports\n result = @ports.allports\n result[1]\n end",
"def ports\n # prevent original array from being changed\n @ports.dup\n end",
"def ports\n unless @ports\n @ports = []\n @host.xpath(... | [
"0.6118091",
"0.5973739",
"0.57271785",
"0.57072395",
"0.5673137",
"0.56544083",
"0.5643134",
"0.5640735",
"0.5574799",
"0.55429393",
"0.5455759",
"0.5415503",
"0.5405082",
"0.5401731",
"0.5342935",
"0.52958137",
"0.5257106",
"0.5248516",
"0.5240599",
"0.5208874",
"0.50502616... | 0.0 | -1 |
Get logical ports that belong to this Group Get logical ports that belong to this Group This API is applicable for Groups containing either VirtualMachine, VIF, Segment or Segment Port member type.For Groups containing other member types,an empty list is returned. | def get_group_lp_members_with_http_info(domain_id, group_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: PolicyInventoryGroupsGroupMembersApi.get_group_lp_members ...'
end
# verify the required parameter 'domain_id' is set
if @api_client.config.client_side_validation && domain_id.nil?
fail ArgumentError, "Missing the required parameter 'domain_id' when calling PolicyInventoryGroupsGroupMembersApi.get_group_lp_members"
end
# verify the required parameter 'group_id' is set
if @api_client.config.client_side_validation && group_id.nil?
fail ArgumentError, "Missing the required parameter 'group_id' when calling PolicyInventoryGroupsGroupMembersApi.get_group_lp_members"
end
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 1000
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling PolicyInventoryGroupsGroupMembersApi.get_group_lp_members, must be smaller than or equal to 1000.'
end
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 0
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling PolicyInventoryGroupsGroupMembersApi.get_group_lp_members, must be greater than or equal to 0.'
end
# resource path
local_var_path = '/infra/domains/{domain-id}/groups/{group-id}/members/logical-ports'.sub('{' + 'domain-id' + '}', domain_id.to_s).sub('{' + 'group-id' + '}', group_id.to_s)
# query parameters
query_params = {}
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
query_params[:'enforcement_point_path'] = opts[:'enforcement_point_path'] if !opts[:'enforcement_point_path'].nil?
query_params[:'include_mark_for_delete_objects'] = opts[:'include_mark_for_delete_objects'] if !opts[:'include_mark_for_delete_objects'].nil?
query_params[:'included_fields'] = opts[:'included_fields'] if !opts[:'included_fields'].nil?
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
query_params[:'sort_ascending'] = opts[:'sort_ascending'] if !opts[:'sort_ascending'].nil?
query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'PolicyGroupMembersListResult')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: PolicyInventoryGroupsGroupMembersApi#get_group_lp_members\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ports\n enum_for(:each_port).to_a\n end",
"def allports\n result = @ports.allports\n result[1]\n end",
"def ports\n # prevent original array from being changed\n @ports.dup\n end",
"def ports\n unless @ports\n @ports = []\n @host.xpath(... | [
"0.61179525",
"0.59742635",
"0.57277834",
"0.57077426",
"0.5673069",
"0.5654682",
"0.56466407",
"0.5641515",
"0.55752575",
"0.55445325",
"0.54561657",
"0.5413343",
"0.54051054",
"0.5399483",
"0.5344669",
"0.52969724",
"0.5257513",
"0.5248421",
"0.52401376",
"0.5208459",
"0.50... | 0.0 | -1 |
Get logical ports that belong to this Group Get logical ports that belong to this Group This API is applicable for Groups containing either VirtualMachine, VIF, Segment or Segment Port member type.For Groups containing other member types,an empty list is returned. | def get_group_lp_members_0(domain_id, group_id, opts = {})
data, _status_code, _headers = get_group_lp_members_0_with_http_info(domain_id, group_id, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ports\n enum_for(:each_port).to_a\n end",
"def allports\n result = @ports.allports\n result[1]\n end",
"def ports\n # prevent original array from being changed\n @ports.dup\n end",
"def ports\n unless @ports\n @ports = []\n @host.xpath(... | [
"0.6119207",
"0.597603",
"0.5728986",
"0.5709363",
"0.5674019",
"0.56556624",
"0.5644253",
"0.56422395",
"0.55758315",
"0.55451787",
"0.54572266",
"0.54149663",
"0.54060745",
"0.5401118",
"0.534657",
"0.5297559",
"0.52581435",
"0.52487546",
"0.5241231",
"0.5208253",
"0.504993... | 0.0 | -1 |
Get logical ports that belong to this Group Get logical ports that belong to this Group This API is applicable for Groups containing either VirtualMachine, VIF, Segment or Segment Port member type.For Groups containing other member types,an empty list is returned. | def get_group_lp_members_0_with_http_info(domain_id, group_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: PolicyInventoryGroupsGroupMembersApi.get_group_lp_members_0 ...'
end
# verify the required parameter 'domain_id' is set
if @api_client.config.client_side_validation && domain_id.nil?
fail ArgumentError, "Missing the required parameter 'domain_id' when calling PolicyInventoryGroupsGroupMembersApi.get_group_lp_members_0"
end
# verify the required parameter 'group_id' is set
if @api_client.config.client_side_validation && group_id.nil?
fail ArgumentError, "Missing the required parameter 'group_id' when calling PolicyInventoryGroupsGroupMembersApi.get_group_lp_members_0"
end
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 1000
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling PolicyInventoryGroupsGroupMembersApi.get_group_lp_members_0, must be smaller than or equal to 1000.'
end
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 0
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling PolicyInventoryGroupsGroupMembersApi.get_group_lp_members_0, must be greater than or equal to 0.'
end
# resource path
local_var_path = '/global-infra/domains/{domain-id}/groups/{group-id}/members/logical-ports'.sub('{' + 'domain-id' + '}', domain_id.to_s).sub('{' + 'group-id' + '}', group_id.to_s)
# query parameters
query_params = {}
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
query_params[:'enforcement_point_path'] = opts[:'enforcement_point_path'] if !opts[:'enforcement_point_path'].nil?
query_params[:'include_mark_for_delete_objects'] = opts[:'include_mark_for_delete_objects'] if !opts[:'include_mark_for_delete_objects'].nil?
query_params[:'included_fields'] = opts[:'included_fields'] if !opts[:'included_fields'].nil?
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
query_params[:'sort_ascending'] = opts[:'sort_ascending'] if !opts[:'sort_ascending'].nil?
query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'PolicyGroupMembersListResult')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: PolicyInventoryGroupsGroupMembersApi#get_group_lp_members_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ports\n enum_for(:each_port).to_a\n end",
"def allports\n result = @ports.allports\n result[1]\n end",
"def ports\n # prevent original array from being changed\n @ports.dup\n end",
"def ports\n unless @ports\n @ports = []\n @host.xpath(... | [
"0.61179525",
"0.59742635",
"0.57277834",
"0.57077426",
"0.5673069",
"0.5654682",
"0.56466407",
"0.5641515",
"0.55752575",
"0.55445325",
"0.54561657",
"0.5413343",
"0.54051054",
"0.5399483",
"0.5344669",
"0.52969724",
"0.5257513",
"0.5248421",
"0.52401376",
"0.5208459",
"0.50... | 0.0 | -1 |
Get logical switches that belong to this Group Get logical switches that belong to this Group. This API is applicable for Groups containing Segment member type. For Groups containing other member types, an empty list is returned. | def get_group_ls_members(domain_id, group_id, opts = {})
data, _status_code, _headers = get_group_ls_members_with_http_info(domain_id, group_id, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def allswitches\n result = @switches.allswitches\n result[1]\n end",
"def get_splits\n @logical_splits\n end",
"def switches #:nodoc:\n @switches ||= {}\n end",
"def switches\n Commandorobo::Utils::consume_switch(@raw.join(' '))\n end",
"def get_virtualization... | [
"0.58895147",
"0.54058135",
"0.51779443",
"0.50868106",
"0.48990127",
"0.48575586",
"0.48510143",
"0.48350254",
"0.4799621",
"0.47884262",
"0.47643346",
"0.4755083",
"0.46253836",
"0.45981625",
"0.45710894",
"0.4567291",
"0.45403132",
"0.45281667",
"0.45120665",
"0.44889432",
... | 0.0 | -1 |
Get logical switches that belong to this Group Get logical switches that belong to this Group. This API is applicable for Groups containing Segment member type. For Groups containing other member types, an empty list is returned. | def get_group_ls_members_with_http_info(domain_id, group_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: PolicyInventoryGroupsGroupMembersApi.get_group_ls_members ...'
end
# verify the required parameter 'domain_id' is set
if @api_client.config.client_side_validation && domain_id.nil?
fail ArgumentError, "Missing the required parameter 'domain_id' when calling PolicyInventoryGroupsGroupMembersApi.get_group_ls_members"
end
# verify the required parameter 'group_id' is set
if @api_client.config.client_side_validation && group_id.nil?
fail ArgumentError, "Missing the required parameter 'group_id' when calling PolicyInventoryGroupsGroupMembersApi.get_group_ls_members"
end
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 1000
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling PolicyInventoryGroupsGroupMembersApi.get_group_ls_members, must be smaller than or equal to 1000.'
end
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 0
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling PolicyInventoryGroupsGroupMembersApi.get_group_ls_members, must be greater than or equal to 0.'
end
# resource path
local_var_path = '/infra/domains/{domain-id}/groups/{group-id}/members/logical-switches'.sub('{' + 'domain-id' + '}', domain_id.to_s).sub('{' + 'group-id' + '}', group_id.to_s)
# query parameters
query_params = {}
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
query_params[:'enforcement_point_path'] = opts[:'enforcement_point_path'] if !opts[:'enforcement_point_path'].nil?
query_params[:'include_mark_for_delete_objects'] = opts[:'include_mark_for_delete_objects'] if !opts[:'include_mark_for_delete_objects'].nil?
query_params[:'included_fields'] = opts[:'included_fields'] if !opts[:'included_fields'].nil?
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
query_params[:'sort_ascending'] = opts[:'sort_ascending'] if !opts[:'sort_ascending'].nil?
query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'PolicyGroupMembersListResult')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: PolicyInventoryGroupsGroupMembersApi#get_group_ls_members\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def allswitches\n result = @switches.allswitches\n result[1]\n end",
"def get_splits\n @logical_splits\n end",
"def switches #:nodoc:\n @switches ||= {}\n end",
"def switches\n Commandorobo::Utils::consume_switch(@raw.join(' '))\n end",
"def get_virtualization... | [
"0.58892095",
"0.5407332",
"0.517638",
"0.5085968",
"0.4898268",
"0.48558447",
"0.4849471",
"0.4834773",
"0.47984657",
"0.478804",
"0.47633314",
"0.47546643",
"0.46241134",
"0.45966637",
"0.45718575",
"0.45699835",
"0.45398948",
"0.4527599",
"0.45143643",
"0.44893524",
"0.448... | 0.0 | -1 |
Get logical switches that belong to this Group Get logical switches that belong to this Group. This API is applicable for Groups containing Segment member type. For Groups containing other member types, an empty list is returned. | def get_group_ls_members_0(domain_id, group_id, opts = {})
data, _status_code, _headers = get_group_ls_members_0_with_http_info(domain_id, group_id, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def allswitches\n result = @switches.allswitches\n result[1]\n end",
"def get_splits\n @logical_splits\n end",
"def switches #:nodoc:\n @switches ||= {}\n end",
"def switches\n Commandorobo::Utils::consume_switch(@raw.join(' '))\n end",
"def get_virtualization... | [
"0.5888638",
"0.54062074",
"0.5177189",
"0.5086524",
"0.48991928",
"0.48564288",
"0.48485342",
"0.48329967",
"0.47999775",
"0.47863656",
"0.4763606",
"0.47554615",
"0.4624865",
"0.4595636",
"0.4569964",
"0.45695433",
"0.45400974",
"0.45269522",
"0.45129836",
"0.44873425",
"0.... | 0.0 | -1 |
Get logical switches that belong to this Group Get logical switches that belong to this Group. This API is applicable for Groups containing Segment member type. For Groups containing other member types, an empty list is returned. | def get_group_ls_members_0_with_http_info(domain_id, group_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: PolicyInventoryGroupsGroupMembersApi.get_group_ls_members_0 ...'
end
# verify the required parameter 'domain_id' is set
if @api_client.config.client_side_validation && domain_id.nil?
fail ArgumentError, "Missing the required parameter 'domain_id' when calling PolicyInventoryGroupsGroupMembersApi.get_group_ls_members_0"
end
# verify the required parameter 'group_id' is set
if @api_client.config.client_side_validation && group_id.nil?
fail ArgumentError, "Missing the required parameter 'group_id' when calling PolicyInventoryGroupsGroupMembersApi.get_group_ls_members_0"
end
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 1000
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling PolicyInventoryGroupsGroupMembersApi.get_group_ls_members_0, must be smaller than or equal to 1000.'
end
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 0
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling PolicyInventoryGroupsGroupMembersApi.get_group_ls_members_0, must be greater than or equal to 0.'
end
# resource path
local_var_path = '/global-infra/domains/{domain-id}/groups/{group-id}/members/logical-switches'.sub('{' + 'domain-id' + '}', domain_id.to_s).sub('{' + 'group-id' + '}', group_id.to_s)
# query parameters
query_params = {}
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
query_params[:'enforcement_point_path'] = opts[:'enforcement_point_path'] if !opts[:'enforcement_point_path'].nil?
query_params[:'include_mark_for_delete_objects'] = opts[:'include_mark_for_delete_objects'] if !opts[:'include_mark_for_delete_objects'].nil?
query_params[:'included_fields'] = opts[:'included_fields'] if !opts[:'included_fields'].nil?
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
query_params[:'sort_ascending'] = opts[:'sort_ascending'] if !opts[:'sort_ascending'].nil?
query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'PolicyGroupMembersListResult')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: PolicyInventoryGroupsGroupMembersApi#get_group_ls_members_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def allswitches\n result = @switches.allswitches\n result[1]\n end",
"def get_splits\n @logical_splits\n end",
"def switches #:nodoc:\n @switches ||= {}\n end",
"def switches\n Commandorobo::Utils::consume_switch(@raw.join(' '))\n end",
"def get_virtualization... | [
"0.58892095",
"0.5407332",
"0.517638",
"0.5085968",
"0.4898268",
"0.48558447",
"0.4849471",
"0.4834773",
"0.47984657",
"0.478804",
"0.47633314",
"0.47546643",
"0.46241134",
"0.45966637",
"0.45718575",
"0.45699835",
"0.45398948",
"0.4527599",
"0.45143643",
"0.44893524",
"0.448... | 0.0 | -1 |
Get segments that belong to this Group Get segments that belong to this Group | def get_group_segment_members(domain_id, group_id, opts = {})
data, _status_code, _headers = get_group_segment_members_with_http_info(domain_id, group_id, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def segments\n Management::Segment.all(self)\n end",
"def segments\n response = get 'segments'\n response.map{|item| Hashie::Mash.new(item)}\n end",
"def get_segments\n return make_request(\"#{self.endpoint}/list/segments\")\n end",
"def all\n segments_attrs = @con... | [
"0.7799724",
"0.74956286",
"0.7465858",
"0.7174603",
"0.67562115",
"0.66475654",
"0.66183674",
"0.6567088",
"0.6544849",
"0.6276461",
"0.625901",
"0.6239265",
"0.62201905",
"0.60185194",
"0.6013955",
"0.59557664",
"0.58137137",
"0.5791493",
"0.5749699",
"0.56476724",
"0.56453... | 0.0 | -1 |
Get segments that belong to this Group Get segments that belong to this Group | def get_group_segment_members_with_http_info(domain_id, group_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: PolicyInventoryGroupsGroupMembersApi.get_group_segment_members ...'
end
# verify the required parameter 'domain_id' is set
if @api_client.config.client_side_validation && domain_id.nil?
fail ArgumentError, "Missing the required parameter 'domain_id' when calling PolicyInventoryGroupsGroupMembersApi.get_group_segment_members"
end
# verify the required parameter 'group_id' is set
if @api_client.config.client_side_validation && group_id.nil?
fail ArgumentError, "Missing the required parameter 'group_id' when calling PolicyInventoryGroupsGroupMembersApi.get_group_segment_members"
end
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 1000
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling PolicyInventoryGroupsGroupMembersApi.get_group_segment_members, must be smaller than or equal to 1000.'
end
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 0
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling PolicyInventoryGroupsGroupMembersApi.get_group_segment_members, must be greater than or equal to 0.'
end
# resource path
local_var_path = '/global-infra/domains/{domain-id}/groups/{group-id}/members/segments'.sub('{' + 'domain-id' + '}', domain_id.to_s).sub('{' + 'group-id' + '}', group_id.to_s)
# query parameters
query_params = {}
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
query_params[:'enforcement_point_path'] = opts[:'enforcement_point_path'] if !opts[:'enforcement_point_path'].nil?
query_params[:'include_mark_for_delete_objects'] = opts[:'include_mark_for_delete_objects'] if !opts[:'include_mark_for_delete_objects'].nil?
query_params[:'included_fields'] = opts[:'included_fields'] if !opts[:'included_fields'].nil?
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
query_params[:'sort_ascending'] = opts[:'sort_ascending'] if !opts[:'sort_ascending'].nil?
query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'PolicyGroupMembersListResult')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: PolicyInventoryGroupsGroupMembersApi#get_group_segment_members\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def segments\n Management::Segment.all(self)\n end",
"def segments\n response = get 'segments'\n response.map{|item| Hashie::Mash.new(item)}\n end",
"def get_segments\n return make_request(\"#{self.endpoint}/list/segments\")\n end",
"def all\n segments_attrs = @con... | [
"0.7800807",
"0.7496723",
"0.7466133",
"0.7175623",
"0.6756891",
"0.6648699",
"0.66196066",
"0.6569041",
"0.65461725",
"0.6276834",
"0.625999",
"0.62409824",
"0.6220423",
"0.60191876",
"0.6014346",
"0.5958339",
"0.58139783",
"0.5792565",
"0.5751058",
"0.5647365",
"0.56454813"... | 0.0 | -1 |
Get segments that belong to this Group Get segments that belong to this Group | def get_group_segment_members_0(domain_id, group_id, opts = {})
data, _status_code, _headers = get_group_segment_members_0_with_http_info(domain_id, group_id, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def segments\n Management::Segment.all(self)\n end",
"def segments\n response = get 'segments'\n response.map{|item| Hashie::Mash.new(item)}\n end",
"def get_segments\n return make_request(\"#{self.endpoint}/list/segments\")\n end",
"def all\n segments_attrs = @con... | [
"0.77997816",
"0.7495682",
"0.74655443",
"0.7174414",
"0.6756118",
"0.66482204",
"0.66182244",
"0.65672064",
"0.65446776",
"0.62760556",
"0.6258532",
"0.6239392",
"0.62198967",
"0.6018122",
"0.601339",
"0.5955948",
"0.58123016",
"0.5790947",
"0.5748719",
"0.5646507",
"0.56450... | 0.0 | -1 |
Get segments that belong to this Group Get segments that belong to this Group | def get_group_segment_members_0_with_http_info(domain_id, group_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: PolicyInventoryGroupsGroupMembersApi.get_group_segment_members_0 ...'
end
# verify the required parameter 'domain_id' is set
if @api_client.config.client_side_validation && domain_id.nil?
fail ArgumentError, "Missing the required parameter 'domain_id' when calling PolicyInventoryGroupsGroupMembersApi.get_group_segment_members_0"
end
# verify the required parameter 'group_id' is set
if @api_client.config.client_side_validation && group_id.nil?
fail ArgumentError, "Missing the required parameter 'group_id' when calling PolicyInventoryGroupsGroupMembersApi.get_group_segment_members_0"
end
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 1000
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling PolicyInventoryGroupsGroupMembersApi.get_group_segment_members_0, must be smaller than or equal to 1000.'
end
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 0
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling PolicyInventoryGroupsGroupMembersApi.get_group_segment_members_0, must be greater than or equal to 0.'
end
# resource path
local_var_path = '/infra/domains/{domain-id}/groups/{group-id}/members/segments'.sub('{' + 'domain-id' + '}', domain_id.to_s).sub('{' + 'group-id' + '}', group_id.to_s)
# query parameters
query_params = {}
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
query_params[:'enforcement_point_path'] = opts[:'enforcement_point_path'] if !opts[:'enforcement_point_path'].nil?
query_params[:'include_mark_for_delete_objects'] = opts[:'include_mark_for_delete_objects'] if !opts[:'include_mark_for_delete_objects'].nil?
query_params[:'included_fields'] = opts[:'included_fields'] if !opts[:'included_fields'].nil?
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
query_params[:'sort_ascending'] = opts[:'sort_ascending'] if !opts[:'sort_ascending'].nil?
query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'PolicyGroupMembersListResult')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: PolicyInventoryGroupsGroupMembersApi#get_group_segment_members_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def segments\n Management::Segment.all(self)\n end",
"def segments\n response = get 'segments'\n response.map{|item| Hashie::Mash.new(item)}\n end",
"def get_segments\n return make_request(\"#{self.endpoint}/list/segments\")\n end",
"def all\n segments_attrs = @con... | [
"0.7800807",
"0.7496723",
"0.7466133",
"0.7175623",
"0.6756891",
"0.6648699",
"0.66196066",
"0.6569041",
"0.65461725",
"0.6276834",
"0.625999",
"0.62409824",
"0.6220423",
"0.60191876",
"0.6014346",
"0.5958339",
"0.58139783",
"0.5792565",
"0.5751058",
"0.5647365",
"0.56454813"... | 0.0 | -1 |
Get segment ports that belong to this Group Get segment ports that belong to this Group | def get_group_segment_port_members(domain_id, group_id, opts = {})
data, _status_code, _headers = get_group_segment_port_members_with_http_info(domain_id, group_id, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ports\n enum_for(:each_port).to_a\n end",
"def ports\n [@free_ports, @allocated_ports].flatten\n end",
"def ports\n return get_request(address(\"ports\"), @token)\n end",
"def san_network_ports\n if san_nics.length == sans.length \n san_nics.map {|x| x.port_name ... | [
"0.6641687",
"0.64390373",
"0.640725",
"0.6282142",
"0.6269016",
"0.6265909",
"0.61805075",
"0.6106274",
"0.60848665",
"0.5914834",
"0.5914148",
"0.5860508",
"0.58592546",
"0.58213186",
"0.56299096",
"0.5593485",
"0.5541871",
"0.5526591",
"0.55210257",
"0.5507885",
"0.5496615... | 0.5402206 | 27 |
Get segment ports that belong to this Group Get segment ports that belong to this Group | def get_group_segment_port_members_with_http_info(domain_id, group_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: PolicyInventoryGroupsGroupMembersApi.get_group_segment_port_members ...'
end
# verify the required parameter 'domain_id' is set
if @api_client.config.client_side_validation && domain_id.nil?
fail ArgumentError, "Missing the required parameter 'domain_id' when calling PolicyInventoryGroupsGroupMembersApi.get_group_segment_port_members"
end
# verify the required parameter 'group_id' is set
if @api_client.config.client_side_validation && group_id.nil?
fail ArgumentError, "Missing the required parameter 'group_id' when calling PolicyInventoryGroupsGroupMembersApi.get_group_segment_port_members"
end
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 1000
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling PolicyInventoryGroupsGroupMembersApi.get_group_segment_port_members, must be smaller than or equal to 1000.'
end
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 0
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling PolicyInventoryGroupsGroupMembersApi.get_group_segment_port_members, must be greater than or equal to 0.'
end
# resource path
local_var_path = '/infra/domains/{domain-id}/groups/{group-id}/members/segment-ports'.sub('{' + 'domain-id' + '}', domain_id.to_s).sub('{' + 'group-id' + '}', group_id.to_s)
# query parameters
query_params = {}
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
query_params[:'enforcement_point_path'] = opts[:'enforcement_point_path'] if !opts[:'enforcement_point_path'].nil?
query_params[:'include_mark_for_delete_objects'] = opts[:'include_mark_for_delete_objects'] if !opts[:'include_mark_for_delete_objects'].nil?
query_params[:'included_fields'] = opts[:'included_fields'] if !opts[:'included_fields'].nil?
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
query_params[:'sort_ascending'] = opts[:'sort_ascending'] if !opts[:'sort_ascending'].nil?
query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'PolicyGroupMembersListResult')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: PolicyInventoryGroupsGroupMembersApi#get_group_segment_port_members\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ports\n enum_for(:each_port).to_a\n end",
"def ports\n [@free_ports, @allocated_ports].flatten\n end",
"def ports\n return get_request(address(\"ports\"), @token)\n end",
"def san_network_ports\n if san_nics.length == sans.length \n san_nics.map {|x| x.port_name ... | [
"0.6641001",
"0.6438166",
"0.64072496",
"0.62819344",
"0.62682027",
"0.6265876",
"0.61806804",
"0.61055803",
"0.60849065",
"0.5915473",
"0.5913246",
"0.5859582",
"0.5859168",
"0.5821068",
"0.56288594",
"0.5592782",
"0.55433744",
"0.5526546",
"0.5521022",
"0.5509126",
"0.54961... | 0.48660815 | 74 |
Get segment ports that belong to this Group Get segment ports that belong to this Group | def get_group_segment_port_members_0(domain_id, group_id, opts = {})
data, _status_code, _headers = get_group_segment_port_members_0_with_http_info(domain_id, group_id, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ports\n enum_for(:each_port).to_a\n end",
"def ports\n [@free_ports, @allocated_ports].flatten\n end",
"def ports\n return get_request(address(\"ports\"), @token)\n end",
"def san_network_ports\n if san_nics.length == sans.length \n san_nics.map {|x| x.port_name ... | [
"0.6640039",
"0.6437205",
"0.64048266",
"0.62806106",
"0.62669057",
"0.6263918",
"0.6178847",
"0.6104369",
"0.60828835",
"0.5914128",
"0.59117424",
"0.5858316",
"0.58580947",
"0.58195555",
"0.5627849",
"0.55939776",
"0.5540878",
"0.5525042",
"0.5519008",
"0.5506535",
"0.54951... | 0.5435765 | 26 |
Get segment ports that belong to this Group Get segment ports that belong to this Group | def get_group_segment_port_members_0_with_http_info(domain_id, group_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: PolicyInventoryGroupsGroupMembersApi.get_group_segment_port_members_0 ...'
end
# verify the required parameter 'domain_id' is set
if @api_client.config.client_side_validation && domain_id.nil?
fail ArgumentError, "Missing the required parameter 'domain_id' when calling PolicyInventoryGroupsGroupMembersApi.get_group_segment_port_members_0"
end
# verify the required parameter 'group_id' is set
if @api_client.config.client_side_validation && group_id.nil?
fail ArgumentError, "Missing the required parameter 'group_id' when calling PolicyInventoryGroupsGroupMembersApi.get_group_segment_port_members_0"
end
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 1000
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling PolicyInventoryGroupsGroupMembersApi.get_group_segment_port_members_0, must be smaller than or equal to 1000.'
end
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 0
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling PolicyInventoryGroupsGroupMembersApi.get_group_segment_port_members_0, must be greater than or equal to 0.'
end
# resource path
local_var_path = '/global-infra/domains/{domain-id}/groups/{group-id}/members/segment-ports'.sub('{' + 'domain-id' + '}', domain_id.to_s).sub('{' + 'group-id' + '}', group_id.to_s)
# query parameters
query_params = {}
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
query_params[:'enforcement_point_path'] = opts[:'enforcement_point_path'] if !opts[:'enforcement_point_path'].nil?
query_params[:'include_mark_for_delete_objects'] = opts[:'include_mark_for_delete_objects'] if !opts[:'include_mark_for_delete_objects'].nil?
query_params[:'included_fields'] = opts[:'included_fields'] if !opts[:'included_fields'].nil?
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
query_params[:'sort_ascending'] = opts[:'sort_ascending'] if !opts[:'sort_ascending'].nil?
query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'PolicyGroupMembersListResult')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: PolicyInventoryGroupsGroupMembersApi#get_group_segment_port_members_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ports\n enum_for(:each_port).to_a\n end",
"def ports\n [@free_ports, @allocated_ports].flatten\n end",
"def ports\n return get_request(address(\"ports\"), @token)\n end",
"def san_network_ports\n if san_nics.length == sans.length \n san_nics.map {|x| x.port_name ... | [
"0.6641001",
"0.6438166",
"0.64072496",
"0.62819344",
"0.62682027",
"0.6265876",
"0.61806804",
"0.61055803",
"0.60849065",
"0.5915473",
"0.5913246",
"0.5859582",
"0.5859168",
"0.5821068",
"0.56288594",
"0.5592782",
"0.55433744",
"0.5526546",
"0.5521022",
"0.5509126",
"0.54961... | 0.0 | -1 |
Get tags used to define conditions inside a Group Get tags used to define conditions inside a Group. Also includes tags inside nested groups. | def get_group_tags(domain_id, group_id, opts = {})
data, _status_code, _headers = get_group_tags_with_http_info(domain_id, group_id, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tags\n @group.tags\n end",
"def tag_groups\n build_tag_groups_array RubyRedtail::Query.run(\"settings/taggroups\", @api_hash, \"GET\")\n end",
"def categorized_groups\n tag.published_groups\n end",
"def group_tag\n return @group_tag\n end",
... | [
"0.69079655",
"0.6187143",
"0.61139",
"0.60547614",
"0.5936631",
"0.5890953",
"0.58099234",
"0.576645",
"0.57491875",
"0.5676536",
"0.56737024",
"0.56660455",
"0.56406397",
"0.56227654",
"0.5530461",
"0.5505386",
"0.5505386",
"0.5505386",
"0.54835",
"0.5481702",
"0.5481702",
... | 0.0 | -1 |
Get tags used to define conditions inside a Group Get tags used to define conditions inside a Group. Also includes tags inside nested groups. | def get_group_tags_with_http_info(domain_id, group_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: PolicyInventoryGroupsGroupMembersApi.get_group_tags ...'
end
# verify the required parameter 'domain_id' is set
if @api_client.config.client_side_validation && domain_id.nil?
fail ArgumentError, "Missing the required parameter 'domain_id' when calling PolicyInventoryGroupsGroupMembersApi.get_group_tags"
end
# verify the required parameter 'group_id' is set
if @api_client.config.client_side_validation && group_id.nil?
fail ArgumentError, "Missing the required parameter 'group_id' when calling PolicyInventoryGroupsGroupMembersApi.get_group_tags"
end
# resource path
local_var_path = '/infra/domains/{domain-id}/groups/{group-id}/tags'.sub('{' + 'domain-id' + '}', domain_id.to_s).sub('{' + 'group-id' + '}', group_id.to_s)
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'GroupTagsList')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: PolicyInventoryGroupsGroupMembersApi#get_group_tags\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tags\n @group.tags\n end",
"def tag_groups\n build_tag_groups_array RubyRedtail::Query.run(\"settings/taggroups\", @api_hash, \"GET\")\n end",
"def categorized_groups\n tag.published_groups\n end",
"def group_tag\n return @group_tag\n end",
... | [
"0.69091415",
"0.6187823",
"0.6115165",
"0.60552675",
"0.5938473",
"0.5892963",
"0.58108145",
"0.5768032",
"0.5750126",
"0.5676996",
"0.5675399",
"0.56666005",
"0.56413954",
"0.56246006",
"0.55322176",
"0.5506657",
"0.5506657",
"0.5506657",
"0.5485974",
"0.5482292",
"0.548229... | 0.0 | -1 |
Get tags used to define conditions inside a Group Get tags used to define conditions inside a Group. Also includes tags inside nested groups. | def get_group_tags_0(domain_id, group_id, opts = {})
data, _status_code, _headers = get_group_tags_0_with_http_info(domain_id, group_id, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tags\n @group.tags\n end",
"def tag_groups\n build_tag_groups_array RubyRedtail::Query.run(\"settings/taggroups\", @api_hash, \"GET\")\n end",
"def categorized_groups\n tag.published_groups\n end",
"def group_tag\n return @group_tag\n end",
... | [
"0.690812",
"0.6187378",
"0.6114355",
"0.60535806",
"0.5938921",
"0.5892341",
"0.58110964",
"0.57684404",
"0.5748804",
"0.56764984",
"0.567573",
"0.5665402",
"0.5640068",
"0.5624304",
"0.5532893",
"0.55071837",
"0.55071837",
"0.55071837",
"0.5484426",
"0.5481001",
"0.5481001"... | 0.0 | -1 |
Get tags used to define conditions inside a Group Get tags used to define conditions inside a Group. Also includes tags inside nested groups. | def get_group_tags_0_with_http_info(domain_id, group_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: PolicyInventoryGroupsGroupMembersApi.get_group_tags_0 ...'
end
# verify the required parameter 'domain_id' is set
if @api_client.config.client_side_validation && domain_id.nil?
fail ArgumentError, "Missing the required parameter 'domain_id' when calling PolicyInventoryGroupsGroupMembersApi.get_group_tags_0"
end
# verify the required parameter 'group_id' is set
if @api_client.config.client_side_validation && group_id.nil?
fail ArgumentError, "Missing the required parameter 'group_id' when calling PolicyInventoryGroupsGroupMembersApi.get_group_tags_0"
end
# resource path
local_var_path = '/global-infra/domains/{domain-id}/groups/{group-id}/tags'.sub('{' + 'domain-id' + '}', domain_id.to_s).sub('{' + 'group-id' + '}', group_id.to_s)
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'GroupTagsList')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: PolicyInventoryGroupsGroupMembersApi#get_group_tags_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tags\n @group.tags\n end",
"def tag_groups\n build_tag_groups_array RubyRedtail::Query.run(\"settings/taggroups\", @api_hash, \"GET\")\n end",
"def categorized_groups\n tag.published_groups\n end",
"def group_tag\n return @group_tag\n end",
... | [
"0.69091415",
"0.6187823",
"0.6115165",
"0.60552675",
"0.5938473",
"0.5892963",
"0.58108145",
"0.5768032",
"0.5750126",
"0.5676996",
"0.5675399",
"0.56666005",
"0.56413954",
"0.56246006",
"0.55322176",
"0.5506657",
"0.5506657",
"0.5506657",
"0.5485974",
"0.5482292",
"0.548229... | 0.0 | -1 |
Get Virtual Network Interface instances that belong to this Group Get Virtual Network Interface instances that belong to this Group. This API is applicable for Groups containing VirtualNetworkInterface and VirtualMachine member types. For Groups containing other member types,an empty list is returned.target_id in response is external_id of VirtualNetworkInterface or VirtualMachine. | def get_group_vif_members(domain_id, group_id, opts = {})
data, _status_code, _headers = get_group_vif_members_with_http_info(domain_id, group_id, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def list_public_virtual_machine_images\n request_path = '/services/images'\n request = ManagementHttpRequest.new(:get, request_path, nil)\n response = request.call\n Serialization.virtual_machine_images_from_xml(response)\n end",
"def instance_ids\n @instance_ids ||= group... | [
"0.5464067",
"0.54546535",
"0.5363154",
"0.5302473",
"0.52772605",
"0.52707046",
"0.5251895",
"0.5238077",
"0.5213402",
"0.519926",
"0.5167447",
"0.51302683",
"0.5130139",
"0.5129434",
"0.51290596",
"0.5049611",
"0.49902597",
"0.49790582",
"0.4973564",
"0.4965907",
"0.4905628... | 0.49787703 | 18 |
Get Virtual Network Interface instances that belong to this Group Get Virtual Network Interface instances that belong to this Group. This API is applicable for Groups containing VirtualNetworkInterface and VirtualMachine member types. For Groups containing other member types,an empty list is returned.target_id in response is external_id of VirtualNetworkInterface or VirtualMachine. | def get_group_vif_members_with_http_info(domain_id, group_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: PolicyInventoryGroupsGroupMembersApi.get_group_vif_members ...'
end
# verify the required parameter 'domain_id' is set
if @api_client.config.client_side_validation && domain_id.nil?
fail ArgumentError, "Missing the required parameter 'domain_id' when calling PolicyInventoryGroupsGroupMembersApi.get_group_vif_members"
end
# verify the required parameter 'group_id' is set
if @api_client.config.client_side_validation && group_id.nil?
fail ArgumentError, "Missing the required parameter 'group_id' when calling PolicyInventoryGroupsGroupMembersApi.get_group_vif_members"
end
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 1000
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling PolicyInventoryGroupsGroupMembersApi.get_group_vif_members, must be smaller than or equal to 1000.'
end
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 0
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling PolicyInventoryGroupsGroupMembersApi.get_group_vif_members, must be greater than or equal to 0.'
end
# resource path
local_var_path = '/infra/domains/{domain-id}/groups/{group-id}/members/vifs'.sub('{' + 'domain-id' + '}', domain_id.to_s).sub('{' + 'group-id' + '}', group_id.to_s)
# query parameters
query_params = {}
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
query_params[:'enforcement_point_path'] = opts[:'enforcement_point_path'] if !opts[:'enforcement_point_path'].nil?
query_params[:'include_mark_for_delete_objects'] = opts[:'include_mark_for_delete_objects'] if !opts[:'include_mark_for_delete_objects'].nil?
query_params[:'included_fields'] = opts[:'included_fields'] if !opts[:'included_fields'].nil?
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
query_params[:'sort_ascending'] = opts[:'sort_ascending'] if !opts[:'sort_ascending'].nil?
query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'VirtualNetworkInterfaceListResult')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: PolicyInventoryGroupsGroupMembersApi#get_group_vif_members\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def list_public_virtual_machine_images\n request_path = '/services/images'\n request = ManagementHttpRequest.new(:get, request_path, nil)\n response = request.call\n Serialization.virtual_machine_images_from_xml(response)\n end",
"def instance_ids\n @instance_ids ||= group... | [
"0.5465214",
"0.54548836",
"0.53625405",
"0.53010756",
"0.5278728",
"0.5271089",
"0.52526623",
"0.5241505",
"0.5214555",
"0.5198928",
"0.5169747",
"0.5132255",
"0.5131432",
"0.5129434",
"0.5129381",
"0.50491214",
"0.49928913",
"0.49806264",
"0.49793768",
"0.49705324",
"0.4964... | 0.4859875 | 28 |
Get Virtual Network Interface instances that belong to this Group Get Virtual Network Interface instances that belong to this Group. This API is applicable for Groups containing VirtualNetworkInterface and VirtualMachine member types. For Groups containing other member types,an empty list is returned.target_id in response is external_id of VirtualNetworkInterface or VirtualMachine. | def get_group_vif_members_0(domain_id, group_id, opts = {})
data, _status_code, _headers = get_group_vif_members_0_with_http_info(domain_id, group_id, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def list_public_virtual_machine_images\n request_path = '/services/images'\n request = ManagementHttpRequest.new(:get, request_path, nil)\n response = request.call\n Serialization.virtual_machine_images_from_xml(response)\n end",
"def instance_ids\n @instance_ids ||= group... | [
"0.54636055",
"0.54527533",
"0.536171",
"0.53007394",
"0.5276772",
"0.5269913",
"0.5251783",
"0.52395153",
"0.52139395",
"0.51998544",
"0.51667935",
"0.51300657",
"0.51298916",
"0.51288474",
"0.50502086",
"0.4991274",
"0.4979298",
"0.49787855",
"0.4971131",
"0.49667305",
"0.4... | 0.51301366 | 11 |
Get Virtual Network Interface instances that belong to this Group Get Virtual Network Interface instances that belong to this Group. This API is applicable for Groups containing VirtualNetworkInterface and VirtualMachine member types. For Groups containing other member types,an empty list is returned.target_id in response is external_id of VirtualNetworkInterface or VirtualMachine. | def get_group_vif_members_0_with_http_info(domain_id, group_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: PolicyInventoryGroupsGroupMembersApi.get_group_vif_members_0 ...'
end
# verify the required parameter 'domain_id' is set
if @api_client.config.client_side_validation && domain_id.nil?
fail ArgumentError, "Missing the required parameter 'domain_id' when calling PolicyInventoryGroupsGroupMembersApi.get_group_vif_members_0"
end
# verify the required parameter 'group_id' is set
if @api_client.config.client_side_validation && group_id.nil?
fail ArgumentError, "Missing the required parameter 'group_id' when calling PolicyInventoryGroupsGroupMembersApi.get_group_vif_members_0"
end
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 1000
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling PolicyInventoryGroupsGroupMembersApi.get_group_vif_members_0, must be smaller than or equal to 1000.'
end
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 0
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling PolicyInventoryGroupsGroupMembersApi.get_group_vif_members_0, must be greater than or equal to 0.'
end
# resource path
local_var_path = '/global-infra/domains/{domain-id}/groups/{group-id}/members/vifs'.sub('{' + 'domain-id' + '}', domain_id.to_s).sub('{' + 'group-id' + '}', group_id.to_s)
# query parameters
query_params = {}
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
query_params[:'enforcement_point_path'] = opts[:'enforcement_point_path'] if !opts[:'enforcement_point_path'].nil?
query_params[:'include_mark_for_delete_objects'] = opts[:'include_mark_for_delete_objects'] if !opts[:'include_mark_for_delete_objects'].nil?
query_params[:'included_fields'] = opts[:'included_fields'] if !opts[:'included_fields'].nil?
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
query_params[:'sort_ascending'] = opts[:'sort_ascending'] if !opts[:'sort_ascending'].nil?
query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'VirtualNetworkInterfaceListResult')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: PolicyInventoryGroupsGroupMembersApi#get_group_vif_members_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def list_public_virtual_machine_images\n request_path = '/services/images'\n request = ManagementHttpRequest.new(:get, request_path, nil)\n response = request.call\n Serialization.virtual_machine_images_from_xml(response)\n end",
"def instance_ids\n @instance_ids ||= group... | [
"0.5465214",
"0.54548836",
"0.53625405",
"0.53010756",
"0.5278728",
"0.5271089",
"0.52526623",
"0.5241505",
"0.5214555",
"0.5198928",
"0.5169747",
"0.5132255",
"0.5131432",
"0.5129434",
"0.5129381",
"0.50491214",
"0.49928913",
"0.49806264",
"0.49793768",
"0.49705324",
"0.4964... | 0.48873553 | 22 |
Get Virtual machines that belong to this Group Get Virtual machines that belong to this Group. This API is applicable for Groups containing VirtualMachine,member type. For Groups containing other member types,an empty list is returned. | def get_group_vm_members(domain_id, group_id, opts = {})
data, _status_code, _headers = get_group_vm_members_with_http_info(domain_id, group_id, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_virtualization_virtual_machine_list(opts = {})\n data, _status_code, _headers = get_virtualization_virtual_machine_list_with_http_info(opts)\n data\n end",
"def virtual_machines(id)\n response = request(:get, \"/users/#{id}/virtual_machines.json\")\n response.collect { |vm| vm['vir... | [
"0.6506216",
"0.64039016",
"0.64039016",
"0.63696116",
"0.63599205",
"0.619231",
"0.6156983",
"0.6080266",
"0.6027449",
"0.5882762",
"0.5882762",
"0.5873612",
"0.58272624",
"0.5739706",
"0.56637996",
"0.5656657",
"0.5609857",
"0.55730623",
"0.5562466",
"0.5385814",
"0.5370484... | 0.57596684 | 13 |
Get Virtual machines that belong to this Group Get Virtual machines that belong to this Group. This API is applicable for Groups containing VirtualMachine,member type. For Groups containing other member types,an empty list is returned. | def get_group_vm_members_with_http_info(domain_id, group_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: PolicyInventoryGroupsGroupMembersApi.get_group_vm_members ...'
end
# verify the required parameter 'domain_id' is set
if @api_client.config.client_side_validation && domain_id.nil?
fail ArgumentError, "Missing the required parameter 'domain_id' when calling PolicyInventoryGroupsGroupMembersApi.get_group_vm_members"
end
# verify the required parameter 'group_id' is set
if @api_client.config.client_side_validation && group_id.nil?
fail ArgumentError, "Missing the required parameter 'group_id' when calling PolicyInventoryGroupsGroupMembersApi.get_group_vm_members"
end
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 1000
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling PolicyInventoryGroupsGroupMembersApi.get_group_vm_members, must be smaller than or equal to 1000.'
end
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 0
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling PolicyInventoryGroupsGroupMembersApi.get_group_vm_members, must be greater than or equal to 0.'
end
# resource path
local_var_path = '/global-infra/domains/{domain-id}/groups/{group-id}/members/virtual-machines'.sub('{' + 'domain-id' + '}', domain_id.to_s).sub('{' + 'group-id' + '}', group_id.to_s)
# query parameters
query_params = {}
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
query_params[:'enforcement_point_path'] = opts[:'enforcement_point_path'] if !opts[:'enforcement_point_path'].nil?
query_params[:'include_mark_for_delete_objects'] = opts[:'include_mark_for_delete_objects'] if !opts[:'include_mark_for_delete_objects'].nil?
query_params[:'included_fields'] = opts[:'included_fields'] if !opts[:'included_fields'].nil?
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
query_params[:'sort_ascending'] = opts[:'sort_ascending'] if !opts[:'sort_ascending'].nil?
query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'RealizedVirtualMachineListResult')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: PolicyInventoryGroupsGroupMembersApi#get_group_vm_members\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_virtualization_virtual_machine_list(opts = {})\n data, _status_code, _headers = get_virtualization_virtual_machine_list_with_http_info(opts)\n data\n end",
"def virtual_machines(id)\n response = request(:get, \"/users/#{id}/virtual_machines.json\")\n response.collect { |vm| vm['vir... | [
"0.6503224",
"0.6400307",
"0.6400307",
"0.63649106",
"0.6357499",
"0.619093",
"0.6155615",
"0.6077677",
"0.6025565",
"0.58787495",
"0.58787495",
"0.5871386",
"0.58236057",
"0.5760343",
"0.573497",
"0.5660302",
"0.5654133",
"0.560566",
"0.55715126",
"0.5562938",
"0.5381553",
... | 0.49930805 | 39 |
Get Virtual machines that belong to this Group Get Virtual machines that belong to this Group. This API is applicable for Groups containing VirtualMachine,member type. For Groups containing other member types,an empty list is returned. | def get_group_vm_members_0(domain_id, group_id, opts = {})
data, _status_code, _headers = get_group_vm_members_0_with_http_info(domain_id, group_id, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_virtualization_virtual_machine_list(opts = {})\n data, _status_code, _headers = get_virtualization_virtual_machine_list_with_http_info(opts)\n data\n end",
"def virtual_machines(id)\n response = request(:get, \"/users/#{id}/virtual_machines.json\")\n response.collect { |vm| vm['vir... | [
"0.6503949",
"0.6401498",
"0.6401498",
"0.63663465",
"0.6358105",
"0.61903995",
"0.61550546",
"0.60775936",
"0.6026132",
"0.58809966",
"0.58809966",
"0.5871733",
"0.58248335",
"0.5758897",
"0.5736776",
"0.5661082",
"0.56557167",
"0.5608066",
"0.5570924",
"0.5383835",
"0.53682... | 0.5561904 | 19 |
Get Virtual machines that belong to this Group Get Virtual machines that belong to this Group. This API is applicable for Groups containing VirtualMachine,member type. For Groups containing other member types,an empty list is returned. | def get_group_vm_members_0_with_http_info(domain_id, group_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: PolicyInventoryGroupsGroupMembersApi.get_group_vm_members_0 ...'
end
# verify the required parameter 'domain_id' is set
if @api_client.config.client_side_validation && domain_id.nil?
fail ArgumentError, "Missing the required parameter 'domain_id' when calling PolicyInventoryGroupsGroupMembersApi.get_group_vm_members_0"
end
# verify the required parameter 'group_id' is set
if @api_client.config.client_side_validation && group_id.nil?
fail ArgumentError, "Missing the required parameter 'group_id' when calling PolicyInventoryGroupsGroupMembersApi.get_group_vm_members_0"
end
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 1000
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling PolicyInventoryGroupsGroupMembersApi.get_group_vm_members_0, must be smaller than or equal to 1000.'
end
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 0
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling PolicyInventoryGroupsGroupMembersApi.get_group_vm_members_0, must be greater than or equal to 0.'
end
# resource path
local_var_path = '/infra/domains/{domain-id}/groups/{group-id}/members/virtual-machines'.sub('{' + 'domain-id' + '}', domain_id.to_s).sub('{' + 'group-id' + '}', group_id.to_s)
# query parameters
query_params = {}
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
query_params[:'enforcement_point_path'] = opts[:'enforcement_point_path'] if !opts[:'enforcement_point_path'].nil?
query_params[:'include_mark_for_delete_objects'] = opts[:'include_mark_for_delete_objects'] if !opts[:'include_mark_for_delete_objects'].nil?
query_params[:'included_fields'] = opts[:'included_fields'] if !opts[:'included_fields'].nil?
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
query_params[:'sort_ascending'] = opts[:'sort_ascending'] if !opts[:'sort_ascending'].nil?
query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'RealizedVirtualMachineListResult')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: PolicyInventoryGroupsGroupMembersApi#get_group_vm_members_0\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_virtualization_virtual_machine_list(opts = {})\n data, _status_code, _headers = get_virtualization_virtual_machine_list_with_http_info(opts)\n data\n end",
"def virtual_machines(id)\n response = request(:get, \"/users/#{id}/virtual_machines.json\")\n response.collect { |vm| vm['vir... | [
"0.6503224",
"0.6400307",
"0.6400307",
"0.63649106",
"0.6357499",
"0.619093",
"0.6155615",
"0.6077677",
"0.6025565",
"0.58787495",
"0.58787495",
"0.5871386",
"0.58236057",
"0.5760343",
"0.573497",
"0.5660302",
"0.5654133",
"0.560566",
"0.55715126",
"0.5562938",
"0.5381553",
... | 0.4864523 | 46 |
Get effective VMs for the Group Get the effective VM membership for the Group. This API also gives some VM details such as VM name, IDs and the current state of the VMs. | def get_group_vm_statistics(domain_id, group_id, opts = {})
data, _status_code, _headers = get_group_vm_statistics_with_http_info(domain_id, group_id, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_effective_virtual_machine_members(ns_group_id, opts = {})\n data, _status_code, _headers = get_effective_virtual_machine_members_with_http_info(ns_group_id, opts)\n return data\n end",
"def get_effective_virtual_machine_members(ns_group_id, opts = {})\n data, _status_code, _headers = ge... | [
"0.7465355",
"0.73979443",
"0.6669029",
"0.66461784",
"0.6634463",
"0.6444301",
"0.6382683",
"0.6358582",
"0.6205104",
"0.60579145",
"0.60419273",
"0.6041568",
"0.6038863",
"0.60233414",
"0.6011124",
"0.5861797",
"0.5795316",
"0.5667454",
"0.5619854",
"0.5573051",
"0.5564943"... | 0.46962097 | 46 |
Get effective VMs for the Group Get the effective VM membership for the Group. This API also gives some VM details such as VM name, IDs and the current state of the VMs. | def get_group_vm_statistics_with_http_info(domain_id, group_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: PolicyInventoryGroupsGroupMembersApi.get_group_vm_statistics ...'
end
# verify the required parameter 'domain_id' is set
if @api_client.config.client_side_validation && domain_id.nil?
fail ArgumentError, "Missing the required parameter 'domain_id' when calling PolicyInventoryGroupsGroupMembersApi.get_group_vm_statistics"
end
# verify the required parameter 'group_id' is set
if @api_client.config.client_side_validation && group_id.nil?
fail ArgumentError, "Missing the required parameter 'group_id' when calling PolicyInventoryGroupsGroupMembersApi.get_group_vm_statistics"
end
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 1000
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling PolicyInventoryGroupsGroupMembersApi.get_group_vm_statistics, must be smaller than or equal to 1000.'
end
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 0
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling PolicyInventoryGroupsGroupMembersApi.get_group_vm_statistics, must be greater than or equal to 0.'
end
# resource path
local_var_path = '/infra/domains/{domain-id}/groups/{group-id}/statistics/virtual-machines'.sub('{' + 'domain-id' + '}', domain_id.to_s).sub('{' + 'group-id' + '}', group_id.to_s)
# query parameters
query_params = {}
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
query_params[:'enforcement_point_path'] = opts[:'enforcement_point_path'] if !opts[:'enforcement_point_path'].nil?
query_params[:'include_mark_for_delete_objects'] = opts[:'include_mark_for_delete_objects'] if !opts[:'include_mark_for_delete_objects'].nil?
query_params[:'included_fields'] = opts[:'included_fields'] if !opts[:'included_fields'].nil?
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
query_params[:'sort_ascending'] = opts[:'sort_ascending'] if !opts[:'sort_ascending'].nil?
query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'RealizedVirtualMachineListResult')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: PolicyInventoryGroupsGroupMembersApi#get_group_vm_statistics\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_effective_virtual_machine_members(ns_group_id, opts = {})\n data, _status_code, _headers = get_effective_virtual_machine_members_with_http_info(ns_group_id, opts)\n return data\n end",
"def get_effective_virtual_machine_members(ns_group_id, opts = {})\n data, _status_code, _headers = ge... | [
"0.7463512",
"0.73960656",
"0.6668131",
"0.66455036",
"0.66335386",
"0.644281",
"0.6379527",
"0.63577545",
"0.6202046",
"0.6055708",
"0.60416913",
"0.60397243",
"0.6036579",
"0.60214204",
"0.6008481",
"0.5861482",
"0.57943267",
"0.56644183",
"0.5618684",
"0.55708694",
"0.5562... | 0.48516178 | 38 |
Get effective VMs for the Group Get the effective VM membership for the Group. This API also gives some VM details such as VM name, IDs and the current state of the VMs. | def get_group_vm_statistics_0(domain_id, group_id, opts = {})
data, _status_code, _headers = get_group_vm_statistics_0_with_http_info(domain_id, group_id, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_effective_virtual_machine_members(ns_group_id, opts = {})\n data, _status_code, _headers = get_effective_virtual_machine_members_with_http_info(ns_group_id, opts)\n return data\n end",
"def get_effective_virtual_machine_members(ns_group_id, opts = {})\n data, _status_code, _headers = ge... | [
"0.74650747",
"0.7397618",
"0.66688204",
"0.66458833",
"0.6634202",
"0.6443938",
"0.6381257",
"0.6357824",
"0.6203684",
"0.6057169",
"0.60430616",
"0.6041924",
"0.603802",
"0.6023596",
"0.6009378",
"0.58629495",
"0.57948864",
"0.5666298",
"0.5619831",
"0.5573126",
"0.5563583"... | 0.44471762 | 65 |
Get effective VMs for the Group Get the effective VM membership for the Group. This API also gives some VM details such as VM name, IDs and the current state of the VMs. | def get_group_vm_statistics_0_with_http_info(domain_id, group_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: PolicyInventoryGroupsGroupMembersApi.get_group_vm_statistics_0 ...'
end
# verify the required parameter 'domain_id' is set
if @api_client.config.client_side_validation && domain_id.nil?
fail ArgumentError, "Missing the required parameter 'domain_id' when calling PolicyInventoryGroupsGroupMembersApi.get_group_vm_statistics_0"
end
# verify the required parameter 'group_id' is set
if @api_client.config.client_side_validation && group_id.nil?
fail ArgumentError, "Missing the required parameter 'group_id' when calling PolicyInventoryGroupsGroupMembersApi.get_group_vm_statistics_0"
end
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 1000
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling PolicyInventoryGroupsGroupMembersApi.get_group_vm_statistics_0, must be smaller than or equal to 1000.'
end
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 0
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling PolicyInventoryGroupsGroupMembersApi.get_group_vm_statistics_0, must be greater than or equal to 0.'
end
# resource path
local_var_path = '/global-infra/domains/{domain-id}/groups/{group-id}/statistics/virtual-machines'.sub('{' + 'domain-id' + '}', domain_id.to_s).sub('{' + 'group-id' + '}', group_id.to_s)
# query parameters
query_params = {}
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
query_params[:'enforcement_point_path'] = opts[:'enforcement_point_path'] if !opts[:'enforcement_point_path'].nil?
query_params[:'include_mark_for_delete_objects'] = opts[:'include_mark_for_delete_objects'] if !opts[:'include_mark_for_delete_objects'].nil?
query_params[:'included_fields'] = opts[:'included_fields'] if !opts[:'included_fields'].nil?
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
query_params[:'sort_ascending'] = opts[:'sort_ascending'] if !opts[:'sort_ascending'].nil?
query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'RealizedVirtualMachineListResult')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: PolicyInventoryGroupsGroupMembersApi#get_group_vm_statistics_0\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_effective_virtual_machine_members(ns_group_id, opts = {})\n data, _status_code, _headers = get_effective_virtual_machine_members_with_http_info(ns_group_id, opts)\n return data\n end",
"def get_effective_virtual_machine_members(ns_group_id, opts = {})\n data, _status_code, _headers = ge... | [
"0.7463512",
"0.73960656",
"0.6668131",
"0.66455036",
"0.66335386",
"0.644281",
"0.6379527",
"0.63577545",
"0.6202046",
"0.6055708",
"0.60416913",
"0.60397243",
"0.6036579",
"0.60214204",
"0.6008481",
"0.5861482",
"0.57943267",
"0.56644183",
"0.5618684",
"0.55708694",
"0.5562... | 0.46007046 | 52 |
Get groups for which the given IP address is a member Get policy groups for which the given IP address is a member. | def get_groups_for_ip_address(ip_address, opts = {})
data, _status_code, _headers = get_groups_for_ip_address_with_http_info(ip_address, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def groups\n return [] if memberOf.nil?\n @groups ||= Group.find(:all, distinguishedname: @entry.memberOf).delete_if(&:nil?)\n end",
"def get_groups_for_ip_address_with_http_info(ip_address, opts = {})\n if @api_client.config.debugging\n @api_client.config.logger.debug 'Calling API: Poli... | [
"0.61183137",
"0.59688365",
"0.59197587",
"0.57186544",
"0.56963134",
"0.5528184",
"0.54747784",
"0.5407259",
"0.53785974",
"0.537365",
"0.5349975",
"0.5305955",
"0.5280403",
"0.5274243",
"0.5230028",
"0.52043474",
"0.52022606",
"0.51977646",
"0.51962155",
"0.51796436",
"0.51... | 0.5633929 | 5 |
Get groups for which the given IP address is a member Get policy groups for which the given IP address is a member. | def get_groups_for_ip_address_with_http_info(ip_address, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: PolicyInventoryGroupsGroupMembersApi.get_groups_for_ip_address ...'
end
# verify the required parameter 'ip_address' is set
if @api_client.config.client_side_validation && ip_address.nil?
fail ArgumentError, "Missing the required parameter 'ip_address' when calling PolicyInventoryGroupsGroupMembersApi.get_groups_for_ip_address"
end
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 1000
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling PolicyInventoryGroupsGroupMembersApi.get_groups_for_ip_address, must be smaller than or equal to 1000.'
end
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 0
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling PolicyInventoryGroupsGroupMembersApi.get_groups_for_ip_address, must be greater than or equal to 0.'
end
# resource path
local_var_path = '/global-infra/ip-address-group-associations'
# query parameters
query_params = {}
query_params[:'ip_address'] = ip_address
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
query_params[:'enforcement_point_path'] = opts[:'enforcement_point_path'] if !opts[:'enforcement_point_path'].nil?
query_params[:'include_mark_for_delete_objects'] = opts[:'include_mark_for_delete_objects'] if !opts[:'include_mark_for_delete_objects'].nil?
query_params[:'included_fields'] = opts[:'included_fields'] if !opts[:'included_fields'].nil?
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
query_params[:'sort_ascending'] = opts[:'sort_ascending'] if !opts[:'sort_ascending'].nil?
query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'PolicyResourceReferenceForEPListResult')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: PolicyInventoryGroupsGroupMembersApi#get_groups_for_ip_address\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def groups\n return [] if memberOf.nil?\n @groups ||= Group.find(:all, distinguishedname: @entry.memberOf).delete_if(&:nil?)\n end",
"def member_of\n @member_of ||= Rails.cache.fetch(\"#{uid}/memberof\") do\n memberof = []\n all = LdapGroup.all_cached\n\n all.each do |g|\n i... | [
"0.61121917",
"0.59160644",
"0.57204974",
"0.5691833",
"0.5631742",
"0.55221266",
"0.5472072",
"0.5404303",
"0.5372341",
"0.536839",
"0.5343804",
"0.5303925",
"0.5281266",
"0.52770144",
"0.5225616",
"0.5198181",
"0.5197697",
"0.5196697",
"0.51921505",
"0.5179207",
"0.5175367"... | 0.5970906 | 1 |
Get groups for which the given IP address is a member Get policy groups for which the given IP address is a member. | def get_groups_for_ip_address_0(ip_address, opts = {})
data, _status_code, _headers = get_groups_for_ip_address_0_with_http_info(ip_address, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def groups\n return [] if memberOf.nil?\n @groups ||= Group.find(:all, distinguishedname: @entry.memberOf).delete_if(&:nil?)\n end",
"def get_groups_for_ip_address_with_http_info(ip_address, opts = {})\n if @api_client.config.debugging\n @api_client.config.logger.debug 'Calling API: Poli... | [
"0.6111141",
"0.5967744",
"0.591748",
"0.5717554",
"0.5691635",
"0.56299436",
"0.55220675",
"0.54691815",
"0.5402183",
"0.53719926",
"0.5366601",
"0.5343516",
"0.52784276",
"0.5274297",
"0.5226148",
"0.5198905",
"0.51954633",
"0.5195126",
"0.51907235",
"0.51786476",
"0.517517... | 0.5302131 | 12 |
Get groups for which the given IP address is a member Get policy groups for which the given IP address is a member. | def get_groups_for_ip_address_0_with_http_info(ip_address, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: PolicyInventoryGroupsGroupMembersApi.get_groups_for_ip_address_0 ...'
end
# verify the required parameter 'ip_address' is set
if @api_client.config.client_side_validation && ip_address.nil?
fail ArgumentError, "Missing the required parameter 'ip_address' when calling PolicyInventoryGroupsGroupMembersApi.get_groups_for_ip_address_0"
end
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 1000
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling PolicyInventoryGroupsGroupMembersApi.get_groups_for_ip_address_0, must be smaller than or equal to 1000.'
end
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 0
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling PolicyInventoryGroupsGroupMembersApi.get_groups_for_ip_address_0, must be greater than or equal to 0.'
end
# resource path
local_var_path = '/infra/ip-address-group-associations'
# query parameters
query_params = {}
query_params[:'ip_address'] = ip_address
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
query_params[:'enforcement_point_path'] = opts[:'enforcement_point_path'] if !opts[:'enforcement_point_path'].nil?
query_params[:'include_mark_for_delete_objects'] = opts[:'include_mark_for_delete_objects'] if !opts[:'include_mark_for_delete_objects'].nil?
query_params[:'included_fields'] = opts[:'included_fields'] if !opts[:'included_fields'].nil?
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
query_params[:'sort_ascending'] = opts[:'sort_ascending'] if !opts[:'sort_ascending'].nil?
query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'PolicyResourceReferenceForEPListResult')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: PolicyInventoryGroupsGroupMembersApi#get_groups_for_ip_address_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def groups\n return [] if memberOf.nil?\n @groups ||= Group.find(:all, distinguishedname: @entry.memberOf).delete_if(&:nil?)\n end",
"def get_groups_for_ip_address_with_http_info(ip_address, opts = {})\n if @api_client.config.debugging\n @api_client.config.logger.debug 'Calling API: Poli... | [
"0.61121917",
"0.5970906",
"0.59160644",
"0.5691833",
"0.5631742",
"0.55221266",
"0.5472072",
"0.5404303",
"0.5372341",
"0.536839",
"0.5343804",
"0.5303925",
"0.5281266",
"0.52770144",
"0.5225616",
"0.5198181",
"0.5197697",
"0.5196697",
"0.51921505",
"0.5179207",
"0.5175367",... | 0.57204974 | 3 |
Get groups for which the given object is a member Get policy groups for which the given object is a member. In Federation environment, if the given object is a global entity (eg: global segment) and if the entity is not stretched to the site specified in the enforcement_point_path parameter,then the following is returned: 1)If the entity is a member of any global group and that group is stretched to the enforcement_point_path site,then the API returns an empty list. 2)If the entity is not a member of any global group,this API returns an 'invalid path' error message. 3)If both the entity and its corresponding groups are stretched to the enforcement_point_path site , then the API returns the groups list. | def get_groups_for_object(intent_path, opts = {})
data, _status_code, _headers = get_groups_for_object_with_http_info(intent_path, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def groups\n return [] if memberOf.nil?\n @groups ||= Group.find(:all, distinguishedname: @entry.memberOf).delete_if(&:nil?)\n end",
"def groups_where_member\n self.groups-self.groups_where_admin_and_wrapper\n end",
"def member_of\n @member_of ||= Rails.cache.fetch(\"#{uid}/memberof\") do\n... | [
"0.6153044",
"0.54821664",
"0.54815286",
"0.5456252",
"0.5365928",
"0.53303164",
"0.5320281",
"0.5288791",
"0.5263908",
"0.5174886",
"0.5166058",
"0.5166058",
"0.51619506",
"0.5160535",
"0.51153797",
"0.50985193",
"0.5076709",
"0.5058084",
"0.5031712",
"0.50253946",
"0.502321... | 0.47362444 | 59 |
Get groups for which the given object is a member Get policy groups for which the given object is a member. In Federation environment, if the given object is a global entity (eg: global segment) and if the entity is not stretched to the site specified in the enforcement_point_path parameter,then the following is returned: 1)If the entity is a member of any global group and that group is stretched to the enforcement_point_path site,then the API returns an empty list. 2)If the entity is not a member of any global group,this API returns an &39;invalid path&39; error message. 3)If both the entity and its corresponding groups are stretched to the enforcement_point_path site , then the API returns the groups list. | def get_groups_for_object_with_http_info(intent_path, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: PolicyInventoryGroupsGroupMembersApi.get_groups_for_object ...'
end
# verify the required parameter 'intent_path' is set
if @api_client.config.client_side_validation && intent_path.nil?
fail ArgumentError, "Missing the required parameter 'intent_path' when calling PolicyInventoryGroupsGroupMembersApi.get_groups_for_object"
end
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 1000
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling PolicyInventoryGroupsGroupMembersApi.get_groups_for_object, must be smaller than or equal to 1000.'
end
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 0
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling PolicyInventoryGroupsGroupMembersApi.get_groups_for_object, must be greater than or equal to 0.'
end
# resource path
local_var_path = '/infra/group-associations'
# query parameters
query_params = {}
query_params[:'intent_path'] = intent_path
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
query_params[:'enforcement_point_path'] = opts[:'enforcement_point_path'] if !opts[:'enforcement_point_path'].nil?
query_params[:'include_mark_for_delete_objects'] = opts[:'include_mark_for_delete_objects'] if !opts[:'include_mark_for_delete_objects'].nil?
query_params[:'included_fields'] = opts[:'included_fields'] if !opts[:'included_fields'].nil?
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
query_params[:'sort_ascending'] = opts[:'sort_ascending'] if !opts[:'sort_ascending'].nil?
query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'PolicyResourceReferenceForEPListResult')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: PolicyInventoryGroupsGroupMembersApi#get_groups_for_object\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def groups\n return [] if memberOf.nil?\n @groups ||= Group.find(:all, distinguishedname: @entry.memberOf).delete_if(&:nil?)\n end",
"def member_of\n @member_of ||= Rails.cache.fetch(\"#{uid}/memberof\") do\n memberof = []\n all = LdapGroup.all_cached\n\n all.each do |g|\n i... | [
"0.6175123",
"0.5534503",
"0.5502605",
"0.53900963",
"0.5342823",
"0.5340787",
"0.52703446",
"0.5225406",
"0.5213164",
"0.5168664",
"0.516737",
"0.516737",
"0.51671946",
"0.51493996",
"0.51252085",
"0.5064341",
"0.5051421",
"0.5050218",
"0.5048196",
"0.5046156",
"0.50135875",... | 0.5424274 | 3 |
Get groups for which the given object is a member Get policy groups for which the given object is a member. In Federation environment, if the given object is a global entity (eg: global segment) and if the entity is not stretched to the site specified in the enforcement_point_path parameter,then the following is returned: 1)If the entity is a member of any global group and that group is stretched to the enforcement_point_path site,then the API returns an empty list. 2)If the entity is not a member of any global group,this API returns an 'invalid path' error message. 3)If both the entity and its corresponding groups are stretched to the enforcement_point_path site , then the API returns the groups list. | def get_groups_for_object_0(intent_path, opts = {})
data, _status_code, _headers = get_groups_for_object_0_with_http_info(intent_path, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def groups\n return [] if memberOf.nil?\n @groups ||= Group.find(:all, distinguishedname: @entry.memberOf).delete_if(&:nil?)\n end",
"def groups_where_member\n self.groups-self.groups_where_admin_and_wrapper\n end",
"def member_of\n @member_of ||= Rails.cache.fetch(\"#{uid}/memberof\") do\n... | [
"0.61528003",
"0.5482379",
"0.54818326",
"0.54566777",
"0.5366415",
"0.53302306",
"0.53209734",
"0.5289395",
"0.52641183",
"0.5174974",
"0.5166447",
"0.5166447",
"0.51635474",
"0.5160694",
"0.51156634",
"0.509943",
"0.5077604",
"0.50592583",
"0.5031643",
"0.5025461",
"0.50240... | 0.45867568 | 93 |
Get groups for which the given object is a member Get policy groups for which the given object is a member. In Federation environment, if the given object is a global entity (eg: global segment) and if the entity is not stretched to the site specified in the enforcement_point_path parameter,then the following is returned: 1)If the entity is a member of any global group and that group is stretched to the enforcement_point_path site,then the API returns an empty list. 2)If the entity is not a member of any global group,this API returns an &39;invalid path&39; error message. 3)If both the entity and its corresponding groups are stretched to the enforcement_point_path site , then the API returns the groups list. | def get_groups_for_object_0_with_http_info(intent_path, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: PolicyInventoryGroupsGroupMembersApi.get_groups_for_object_0 ...'
end
# verify the required parameter 'intent_path' is set
if @api_client.config.client_side_validation && intent_path.nil?
fail ArgumentError, "Missing the required parameter 'intent_path' when calling PolicyInventoryGroupsGroupMembersApi.get_groups_for_object_0"
end
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 1000
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling PolicyInventoryGroupsGroupMembersApi.get_groups_for_object_0, must be smaller than or equal to 1000.'
end
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 0
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling PolicyInventoryGroupsGroupMembersApi.get_groups_for_object_0, must be greater than or equal to 0.'
end
# resource path
local_var_path = '/global-infra/group-associations'
# query parameters
query_params = {}
query_params[:'intent_path'] = intent_path
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
query_params[:'enforcement_point_path'] = opts[:'enforcement_point_path'] if !opts[:'enforcement_point_path'].nil?
query_params[:'include_mark_for_delete_objects'] = opts[:'include_mark_for_delete_objects'] if !opts[:'include_mark_for_delete_objects'].nil?
query_params[:'included_fields'] = opts[:'included_fields'] if !opts[:'included_fields'].nil?
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
query_params[:'sort_ascending'] = opts[:'sort_ascending'] if !opts[:'sort_ascending'].nil?
query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'PolicyResourceReferenceForEPListResult')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: PolicyInventoryGroupsGroupMembersApi#get_groups_for_object_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def groups\n return [] if memberOf.nil?\n @groups ||= Group.find(:all, distinguishedname: @entry.memberOf).delete_if(&:nil?)\n end",
"def member_of\n @member_of ||= Rails.cache.fetch(\"#{uid}/memberof\") do\n memberof = []\n all = LdapGroup.all_cached\n\n all.each do |g|\n i... | [
"0.6175123",
"0.5534503",
"0.5502605",
"0.5424274",
"0.53900963",
"0.5342823",
"0.5340787",
"0.52703446",
"0.5213164",
"0.5168664",
"0.516737",
"0.516737",
"0.51671946",
"0.51493996",
"0.51252085",
"0.5064341",
"0.5051421",
"0.5050218",
"0.5048196",
"0.5046156",
"0.50135875",... | 0.5225406 | 8 |
Get groups for which the given VIF is a member Get policy groups for which the given VIF is a member. | def get_groups_for_vif(vif_external_id, opts = {})
data, _status_code, _headers = get_groups_for_vif_with_http_info(vif_external_id, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def groups\n return [] if memberOf.nil?\n @groups ||= Group.find(:all, distinguishedname: @entry.memberOf).delete_if(&:nil?)\n end",
"def groups_where_member\n self.groups-self.groups_where_admin_and_wrapper\n end",
"def member_of\n @member_of ||= Rails.cache.fetch(\"#{uid}/memberof\") do\n... | [
"0.6522908",
"0.6512324",
"0.6233503",
"0.62227225",
"0.618915",
"0.6118393",
"0.6091853",
"0.59681326",
"0.58311653",
"0.58267564",
"0.5823724",
"0.57951945",
"0.57567096",
"0.5690984",
"0.56777155",
"0.5648856",
"0.5588464",
"0.5533552",
"0.55178756",
"0.5458223",
"0.545454... | 0.0 | -1 |
Get groups for which the given VIF is a member Get policy groups for which the given VIF is a member. | def get_groups_for_vif_with_http_info(vif_external_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: PolicyInventoryGroupsGroupMembersApi.get_groups_for_vif ...'
end
# verify the required parameter 'vif_external_id' is set
if @api_client.config.client_side_validation && vif_external_id.nil?
fail ArgumentError, "Missing the required parameter 'vif_external_id' when calling PolicyInventoryGroupsGroupMembersApi.get_groups_for_vif"
end
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 1000
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling PolicyInventoryGroupsGroupMembersApi.get_groups_for_vif, must be smaller than or equal to 1000.'
end
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 0
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling PolicyInventoryGroupsGroupMembersApi.get_groups_for_vif, must be greater than or equal to 0.'
end
# resource path
local_var_path = '/infra/virtual-network-interface-group-associations'
# query parameters
query_params = {}
query_params[:'vif_external_id'] = vif_external_id
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
query_params[:'enforcement_point_path'] = opts[:'enforcement_point_path'] if !opts[:'enforcement_point_path'].nil?
query_params[:'include_mark_for_delete_objects'] = opts[:'include_mark_for_delete_objects'] if !opts[:'include_mark_for_delete_objects'].nil?
query_params[:'included_fields'] = opts[:'included_fields'] if !opts[:'included_fields'].nil?
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
query_params[:'sort_ascending'] = opts[:'sort_ascending'] if !opts[:'sort_ascending'].nil?
query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'PolicyResourceReferenceForEPListResult')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: PolicyInventoryGroupsGroupMembersApi#get_groups_for_vif\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def groups\n return [] if memberOf.nil?\n @groups ||= Group.find(:all, distinguishedname: @entry.memberOf).delete_if(&:nil?)\n end",
"def groups_where_member\n self.groups-self.groups_where_admin_and_wrapper\n end",
"def member_of\n @member_of ||= Rails.cache.fetch(\"#{uid}/memberof\") do\n... | [
"0.6525113",
"0.65138274",
"0.6233539",
"0.622545",
"0.61916745",
"0.61232454",
"0.6094708",
"0.59715044",
"0.5831891",
"0.5827365",
"0.582632",
"0.5794215",
"0.5758818",
"0.56888306",
"0.5678914",
"0.565077",
"0.55893266",
"0.55342036",
"0.5517795",
"0.54578924",
"0.5454503"... | 0.54028195 | 27 |
Get groups for which the given VIF is a member Get policy groups for which the given VIF is a member. | def get_groups_for_vif_0(vif_external_id, opts = {})
data, _status_code, _headers = get_groups_for_vif_0_with_http_info(vif_external_id, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def groups\n return [] if memberOf.nil?\n @groups ||= Group.find(:all, distinguishedname: @entry.memberOf).delete_if(&:nil?)\n end",
"def groups_where_member\n self.groups-self.groups_where_admin_and_wrapper\n end",
"def member_of\n @member_of ||= Rails.cache.fetch(\"#{uid}/memberof\") do\n... | [
"0.65258765",
"0.65138185",
"0.62336755",
"0.6224914",
"0.61925465",
"0.61235505",
"0.6095672",
"0.5971045",
"0.5831793",
"0.5827338",
"0.58268225",
"0.5794291",
"0.5759675",
"0.568815",
"0.56788844",
"0.5651579",
"0.55890685",
"0.55342674",
"0.5518126",
"0.5458176",
"0.54551... | 0.0 | -1 |
Get groups for which the given VIF is a member Get policy groups for which the given VIF is a member. | def get_groups_for_vif_0_with_http_info(vif_external_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: PolicyInventoryGroupsGroupMembersApi.get_groups_for_vif_0 ...'
end
# verify the required parameter 'vif_external_id' is set
if @api_client.config.client_side_validation && vif_external_id.nil?
fail ArgumentError, "Missing the required parameter 'vif_external_id' when calling PolicyInventoryGroupsGroupMembersApi.get_groups_for_vif_0"
end
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 1000
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling PolicyInventoryGroupsGroupMembersApi.get_groups_for_vif_0, must be smaller than or equal to 1000.'
end
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 0
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling PolicyInventoryGroupsGroupMembersApi.get_groups_for_vif_0, must be greater than or equal to 0.'
end
# resource path
local_var_path = '/global-infra/virtual-network-interface-group-associations'
# query parameters
query_params = {}
query_params[:'vif_external_id'] = vif_external_id
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
query_params[:'enforcement_point_path'] = opts[:'enforcement_point_path'] if !opts[:'enforcement_point_path'].nil?
query_params[:'include_mark_for_delete_objects'] = opts[:'include_mark_for_delete_objects'] if !opts[:'include_mark_for_delete_objects'].nil?
query_params[:'included_fields'] = opts[:'included_fields'] if !opts[:'included_fields'].nil?
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
query_params[:'sort_ascending'] = opts[:'sort_ascending'] if !opts[:'sort_ascending'].nil?
query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'PolicyResourceReferenceForEPListResult')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: PolicyInventoryGroupsGroupMembersApi#get_groups_for_vif_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def groups\n return [] if memberOf.nil?\n @groups ||= Group.find(:all, distinguishedname: @entry.memberOf).delete_if(&:nil?)\n end",
"def groups_where_member\n self.groups-self.groups_where_admin_and_wrapper\n end",
"def member_of\n @member_of ||= Rails.cache.fetch(\"#{uid}/memberof\") do\n... | [
"0.6525113",
"0.65138274",
"0.6233539",
"0.622545",
"0.61916745",
"0.61232454",
"0.6094708",
"0.59715044",
"0.5831891",
"0.5827365",
"0.582632",
"0.5794215",
"0.5758818",
"0.56888306",
"0.5678914",
"0.565077",
"0.55893266",
"0.55342036",
"0.5517795",
"0.54578924",
"0.5454503"... | 0.5211046 | 53 |
Get groups for which the given VM is a member Get policy groups for which the given VM is a member. | def get_groups_for_vm(vm_external_id, opts = {})
data, _status_code, _headers = get_groups_for_vm_with_http_info(vm_external_id, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def groups\n return [] if memberOf.nil?\n @groups ||= Group.find(:all, distinguishedname: @entry.memberOf).delete_if(&:nil?)\n end",
"def groups_where_member\n self.groups-self.groups_where_admin_and_wrapper\n end",
"def get_member_groups()\n return MicrosoftGraph::Contacts:... | [
"0.6486522",
"0.63389796",
"0.6069939",
"0.60447073",
"0.60226613",
"0.59117424",
"0.5827183",
"0.5731954",
"0.5726114",
"0.56881803",
"0.56762785",
"0.56740105",
"0.5658769",
"0.56523895",
"0.56490695",
"0.5624504",
"0.56043667",
"0.55463874",
"0.5545022",
"0.5444249",
"0.54... | 0.52254486 | 45 |
Get groups for which the given VM is a member Get policy groups for which the given VM is a member. | def get_groups_for_vm_with_http_info(vm_external_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: PolicyInventoryGroupsGroupMembersApi.get_groups_for_vm ...'
end
# verify the required parameter 'vm_external_id' is set
if @api_client.config.client_side_validation && vm_external_id.nil?
fail ArgumentError, "Missing the required parameter 'vm_external_id' when calling PolicyInventoryGroupsGroupMembersApi.get_groups_for_vm"
end
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 1000
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling PolicyInventoryGroupsGroupMembersApi.get_groups_for_vm, must be smaller than or equal to 1000.'
end
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 0
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling PolicyInventoryGroupsGroupMembersApi.get_groups_for_vm, must be greater than or equal to 0.'
end
# resource path
local_var_path = '/global-infra/virtual-machine-group-associations'
# query parameters
query_params = {}
query_params[:'vm_external_id'] = vm_external_id
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
query_params[:'enforcement_point_path'] = opts[:'enforcement_point_path'] if !opts[:'enforcement_point_path'].nil?
query_params[:'include_mark_for_delete_objects'] = opts[:'include_mark_for_delete_objects'] if !opts[:'include_mark_for_delete_objects'].nil?
query_params[:'included_fields'] = opts[:'included_fields'] if !opts[:'included_fields'].nil?
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
query_params[:'sort_ascending'] = opts[:'sort_ascending'] if !opts[:'sort_ascending'].nil?
query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'PolicyResourceReferenceForEPListResult')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: PolicyInventoryGroupsGroupMembersApi#get_groups_for_vm\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def groups\n return [] if memberOf.nil?\n @groups ||= Group.find(:all, distinguishedname: @entry.memberOf).delete_if(&:nil?)\n end",
"def groups_where_member\n self.groups-self.groups_where_admin_and_wrapper\n end",
"def get_member_groups()\n return MicrosoftGraph::Contacts:... | [
"0.6483692",
"0.63375694",
"0.6068239",
"0.6043368",
"0.6020309",
"0.59103066",
"0.5825956",
"0.572928",
"0.57232106",
"0.5685506",
"0.5673844",
"0.5672242",
"0.5656923",
"0.5652054",
"0.5648483",
"0.56219774",
"0.554371",
"0.55430347",
"0.54427016",
"0.5421819",
"0.5409915",... | 0.5604618 | 16 |
Get groups for which the given VM is a member Get policy groups for which the given VM is a member. | def get_groups_for_vm_0(vm_external_id, opts = {})
data, _status_code, _headers = get_groups_for_vm_0_with_http_info(vm_external_id, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def groups\n return [] if memberOf.nil?\n @groups ||= Group.find(:all, distinguishedname: @entry.memberOf).delete_if(&:nil?)\n end",
"def groups_where_member\n self.groups-self.groups_where_admin_and_wrapper\n end",
"def get_member_groups()\n return MicrosoftGraph::Contacts:... | [
"0.6488115",
"0.6337834",
"0.6069534",
"0.60454476",
"0.602387",
"0.5911858",
"0.5827973",
"0.5733545",
"0.57276684",
"0.5688165",
"0.5675705",
"0.5675572",
"0.5659143",
"0.56517583",
"0.56485003",
"0.562319",
"0.56044775",
"0.55474406",
"0.5544969",
"0.5445494",
"0.5425273",... | 0.0 | -1 |
Get groups for which the given VM is a member Get policy groups for which the given VM is a member. | def get_groups_for_vm_0_with_http_info(vm_external_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: PolicyInventoryGroupsGroupMembersApi.get_groups_for_vm_0 ...'
end
# verify the required parameter 'vm_external_id' is set
if @api_client.config.client_side_validation && vm_external_id.nil?
fail ArgumentError, "Missing the required parameter 'vm_external_id' when calling PolicyInventoryGroupsGroupMembersApi.get_groups_for_vm_0"
end
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 1000
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling PolicyInventoryGroupsGroupMembersApi.get_groups_for_vm_0, must be smaller than or equal to 1000.'
end
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 0
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling PolicyInventoryGroupsGroupMembersApi.get_groups_for_vm_0, must be greater than or equal to 0.'
end
# resource path
local_var_path = '/infra/virtual-machine-group-associations'
# query parameters
query_params = {}
query_params[:'vm_external_id'] = vm_external_id
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
query_params[:'enforcement_point_path'] = opts[:'enforcement_point_path'] if !opts[:'enforcement_point_path'].nil?
query_params[:'include_mark_for_delete_objects'] = opts[:'include_mark_for_delete_objects'] if !opts[:'include_mark_for_delete_objects'].nil?
query_params[:'included_fields'] = opts[:'included_fields'] if !opts[:'included_fields'].nil?
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
query_params[:'sort_ascending'] = opts[:'sort_ascending'] if !opts[:'sort_ascending'].nil?
query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'PolicyResourceReferenceForEPListResult')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: PolicyInventoryGroupsGroupMembersApi#get_groups_for_vm_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def groups\n return [] if memberOf.nil?\n @groups ||= Group.find(:all, distinguishedname: @entry.memberOf).delete_if(&:nil?)\n end",
"def groups_where_member\n self.groups-self.groups_where_admin_and_wrapper\n end",
"def get_member_groups()\n return MicrosoftGraph::Contacts:... | [
"0.6483692",
"0.63375694",
"0.6068239",
"0.6043368",
"0.6020309",
"0.59103066",
"0.5825956",
"0.572928",
"0.57232106",
"0.5685506",
"0.5673844",
"0.5672242",
"0.5656923",
"0.5652054",
"0.5648483",
"0.56219774",
"0.5604618",
"0.554371",
"0.55430347",
"0.54427016",
"0.5421819",... | 0.5259631 | 40 |
Get member types for a given Group It retrieves member types for a given group. In case of nested groups, it calculates member types of child groups as well. Considers member type for members added via static members and dynamic membership criteria. | def get_member_types_for_group(domain_id, group_id, opts = {})
data, _status_code, _headers = get_member_types_for_group_with_http_info(domain_id, group_id, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def membership_types_for_named_group(named_group)\n group_memberships_as_member.\n where(group_name: named_group).\n select(:membership_type).\n distinct.\n pluck(:membership_type).\n sort_by(&:to_s)\n end",
"def get_member_types_for_group_0(domain_id, gro... | [
"0.7168187",
"0.7018419",
"0.6818583",
"0.6801706",
"0.6543046",
"0.652002",
"0.6357599",
"0.6233889",
"0.61944777",
"0.558459",
"0.5400749",
"0.5302922",
"0.5273226",
"0.49789226",
"0.49648178",
"0.49399167",
"0.4826101",
"0.48207095",
"0.47891337",
"0.47854605",
"0.47787657... | 0.7414126 | 0 |
Get member types for a given Group It retrieves member types for a given group. In case of nested groups, it calculates member types of child groups as well. Considers member type for members added via static members and dynamic membership criteria. | def get_member_types_for_group_with_http_info(domain_id, group_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: PolicyInventoryGroupsGroupMembersApi.get_member_types_for_group ...'
end
# verify the required parameter 'domain_id' is set
if @api_client.config.client_side_validation && domain_id.nil?
fail ArgumentError, "Missing the required parameter 'domain_id' when calling PolicyInventoryGroupsGroupMembersApi.get_member_types_for_group"
end
# verify the required parameter 'group_id' is set
if @api_client.config.client_side_validation && group_id.nil?
fail ArgumentError, "Missing the required parameter 'group_id' when calling PolicyInventoryGroupsGroupMembersApi.get_member_types_for_group"
end
# resource path
local_var_path = '/infra/domains/{domain-id}/groups/{group-id}/member-types'.sub('{' + 'domain-id' + '}', domain_id.to_s).sub('{' + 'group-id' + '}', group_id.to_s)
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'GroupMemberTypeListResult')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: PolicyInventoryGroupsGroupMembersApi#get_member_types_for_group\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_member_types_for_group(domain_id, group_id, opts = {})\n data, _status_code, _headers = get_member_types_for_group_with_http_info(domain_id, group_id, opts)\n data\n end",
"def membership_types_for_named_group(named_group)\n group_memberships_as_member.\n where(group_name: na... | [
"0.7413859",
"0.71679586",
"0.7018514",
"0.6818545",
"0.68017286",
"0.65194744",
"0.6357463",
"0.6233605",
"0.61948365",
"0.55835545",
"0.53998053",
"0.5300949",
"0.5272619",
"0.4977149",
"0.4963594",
"0.4936626",
"0.48258644",
"0.4818271",
"0.4786669",
"0.47841713",
"0.47787... | 0.6542492 | 5 |
Get member types for a given Group It retrieves member types for a given group. In case of nested groups, it calculates member types of child groups as well. Considers member type for members added via static members and dynamic membership criteria. | def get_member_types_for_group_0(domain_id, group_id, opts = {})
data, _status_code, _headers = get_member_types_for_group_0_with_http_info(domain_id, group_id, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_member_types_for_group(domain_id, group_id, opts = {})\n data, _status_code, _headers = get_member_types_for_group_with_http_info(domain_id, group_id, opts)\n data\n end",
"def membership_types_for_named_group(named_group)\n group_memberships_as_member.\n where(group_name: na... | [
"0.74136823",
"0.7168758",
"0.6817481",
"0.68007743",
"0.6543356",
"0.65198916",
"0.63574404",
"0.62342817",
"0.6194497",
"0.558579",
"0.5402291",
"0.53045434",
"0.52741605",
"0.49798405",
"0.49663964",
"0.49418142",
"0.48265567",
"0.48222527",
"0.47898856",
"0.47866136",
"0.... | 0.70182174 | 2 |
Get member types for a given Group It retrieves member types for a given group. In case of nested groups, it calculates member types of child groups as well. Considers member type for members added via static members and dynamic membership criteria. | def get_member_types_for_group_0_with_http_info(domain_id, group_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: PolicyInventoryGroupsGroupMembersApi.get_member_types_for_group_0 ...'
end
# verify the required parameter 'domain_id' is set
if @api_client.config.client_side_validation && domain_id.nil?
fail ArgumentError, "Missing the required parameter 'domain_id' when calling PolicyInventoryGroupsGroupMembersApi.get_member_types_for_group_0"
end
# verify the required parameter 'group_id' is set
if @api_client.config.client_side_validation && group_id.nil?
fail ArgumentError, "Missing the required parameter 'group_id' when calling PolicyInventoryGroupsGroupMembersApi.get_member_types_for_group_0"
end
# resource path
local_var_path = '/global-infra/domains/{domain-id}/groups/{group-id}/member-types'.sub('{' + 'domain-id' + '}', domain_id.to_s).sub('{' + 'group-id' + '}', group_id.to_s)
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'GroupMemberTypeListResult')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: PolicyInventoryGroupsGroupMembersApi#get_member_types_for_group_0\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_member_types_for_group(domain_id, group_id, opts = {})\n data, _status_code, _headers = get_member_types_for_group_with_http_info(domain_id, group_id, opts)\n data\n end",
"def membership_types_for_named_group(named_group)\n group_memberships_as_member.\n where(group_name: na... | [
"0.7413859",
"0.71679586",
"0.7018514",
"0.6818545",
"0.68017286",
"0.6542492",
"0.65194744",
"0.6357463",
"0.61948365",
"0.55835545",
"0.53998053",
"0.5300949",
"0.5272619",
"0.4977149",
"0.4963594",
"0.4936626",
"0.48258644",
"0.4818271",
"0.4786669",
"0.47841713",
"0.47787... | 0.6233605 | 8 |
Get IP addresses that belong to this Tier0 Group Get IP addresses that belong to this Tier0 Group. This API is applicable for Groups containing either VirtualMachine, VIF, Segment ,Segment Port or IP Address member type.For Groups containing other member types,an empty list is returned | def get_provider_group_ip_members(tier_0_id, group_id, opts = {})
data, _status_code, _headers = get_provider_group_ip_members_with_http_info(tier_0_id, group_id, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_ips_by_group(name)\n hostids = get_hostids_by_group(name)\n hostips = []\n if hostids == nil \n return nil\n else\n hostids.each do |hostid|\n hostips.push(@zbx.query( method: \"hostinterface.get\", params: {\"output\" => \"extend\", \"hostids\" => [hostid] } )[0]... | [
"0.6430254",
"0.63066304",
"0.62230146",
"0.6177767",
"0.6115215",
"0.5984867",
"0.5766615",
"0.57433164",
"0.5690717",
"0.5683546",
"0.5677543",
"0.56708664",
"0.5651008",
"0.564871",
"0.56099135",
"0.5556904",
"0.5541219",
"0.54781955",
"0.5450416",
"0.5380816",
"0.53766567... | 0.58257276 | 6 |
Get IP addresses that belong to this Tier0 Group Get IP addresses that belong to this Tier0 Group. This API is applicable for Groups containing either VirtualMachine, VIF, Segment ,Segment Port or IP Address member type.For Groups containing other member types,an empty list is returned | def get_provider_group_ip_members_with_http_info(tier_0_id, group_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: PolicyInventoryGroupsGroupMembersApi.get_provider_group_ip_members ...'
end
# verify the required parameter 'tier_0_id' is set
if @api_client.config.client_side_validation && tier_0_id.nil?
fail ArgumentError, "Missing the required parameter 'tier_0_id' when calling PolicyInventoryGroupsGroupMembersApi.get_provider_group_ip_members"
end
# verify the required parameter 'group_id' is set
if @api_client.config.client_side_validation && group_id.nil?
fail ArgumentError, "Missing the required parameter 'group_id' when calling PolicyInventoryGroupsGroupMembersApi.get_provider_group_ip_members"
end
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 1000
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling PolicyInventoryGroupsGroupMembersApi.get_provider_group_ip_members, must be smaller than or equal to 1000.'
end
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 0
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling PolicyInventoryGroupsGroupMembersApi.get_provider_group_ip_members, must be greater than or equal to 0.'
end
# resource path
local_var_path = '/global-infra/tier-0s/{tier-0-id}/groups/{group-id}/members/ip-addresses'.sub('{' + 'tier-0-id' + '}', tier_0_id.to_s).sub('{' + 'group-id' + '}', group_id.to_s)
# query parameters
query_params = {}
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
query_params[:'enforcement_point_path'] = opts[:'enforcement_point_path'] if !opts[:'enforcement_point_path'].nil?
query_params[:'include_mark_for_delete_objects'] = opts[:'include_mark_for_delete_objects'] if !opts[:'include_mark_for_delete_objects'].nil?
query_params[:'included_fields'] = opts[:'included_fields'] if !opts[:'included_fields'].nil?
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
query_params[:'sort_ascending'] = opts[:'sort_ascending'] if !opts[:'sort_ascending'].nil?
query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'PolicyGroupIPMembersListResult')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: PolicyInventoryGroupsGroupMembersApi#get_provider_group_ip_members\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_ips_by_group(name)\n hostids = get_hostids_by_group(name)\n hostips = []\n if hostids == nil \n return nil\n else\n hostids.each do |hostid|\n hostips.push(@zbx.query( method: \"hostinterface.get\", params: {\"output\" => \"extend\", \"hostids\" => [hostid] } )[0]... | [
"0.6431597",
"0.63075453",
"0.6224506",
"0.61777",
"0.61175174",
"0.5986462",
"0.58252734",
"0.5765731",
"0.5745435",
"0.569183",
"0.5684782",
"0.5678567",
"0.56734675",
"0.5651549",
"0.56493044",
"0.56122774",
"0.5559197",
"0.55418545",
"0.54786956",
"0.545208",
"0.53837603"... | 0.5323502 | 27 |
Get IP addresses that belong to this Tier0 Group Get IP addresses that belong to this Tier0 Group. This API is applicable for Groups containing either VirtualMachine, VIF, Segment ,Segment Port or IP Address member type.For Groups containing other member types,an empty list is returned | def get_provider_group_ip_members_0(tier_0_id, group_id, opts = {})
data, _status_code, _headers = get_provider_group_ip_members_0_with_http_info(tier_0_id, group_id, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_ips_by_group(name)\n hostids = get_hostids_by_group(name)\n hostips = []\n if hostids == nil \n return nil\n else\n hostids.each do |hostid|\n hostips.push(@zbx.query( method: \"hostinterface.get\", params: {\"output\" => \"extend\", \"hostids\" => [hostid] } )[0]... | [
"0.64296865",
"0.6307409",
"0.62243843",
"0.6178777",
"0.61172646",
"0.598601",
"0.582417",
"0.57442343",
"0.5691477",
"0.56846434",
"0.5678963",
"0.5673142",
"0.5651161",
"0.5648831",
"0.56108546",
"0.55592406",
"0.55424416",
"0.5478998",
"0.545101",
"0.5383972",
"0.5377815"... | 0.5765149 | 7 |
Get IP addresses that belong to this Tier0 Group Get IP addresses that belong to this Tier0 Group. This API is applicable for Groups containing either VirtualMachine, VIF, Segment ,Segment Port or IP Address member type.For Groups containing other member types,an empty list is returned | def get_provider_group_ip_members_0_with_http_info(tier_0_id, group_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: PolicyInventoryGroupsGroupMembersApi.get_provider_group_ip_members_0 ...'
end
# verify the required parameter 'tier_0_id' is set
if @api_client.config.client_side_validation && tier_0_id.nil?
fail ArgumentError, "Missing the required parameter 'tier_0_id' when calling PolicyInventoryGroupsGroupMembersApi.get_provider_group_ip_members_0"
end
# verify the required parameter 'group_id' is set
if @api_client.config.client_side_validation && group_id.nil?
fail ArgumentError, "Missing the required parameter 'group_id' when calling PolicyInventoryGroupsGroupMembersApi.get_provider_group_ip_members_0"
end
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 1000
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling PolicyInventoryGroupsGroupMembersApi.get_provider_group_ip_members_0, must be smaller than or equal to 1000.'
end
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 0
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling PolicyInventoryGroupsGroupMembersApi.get_provider_group_ip_members_0, must be greater than or equal to 0.'
end
# resource path
local_var_path = '/infra/tier-0s/{tier-0-id}/groups/{group-id}/members/ip-addresses'.sub('{' + 'tier-0-id' + '}', tier_0_id.to_s).sub('{' + 'group-id' + '}', group_id.to_s)
# query parameters
query_params = {}
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
query_params[:'enforcement_point_path'] = opts[:'enforcement_point_path'] if !opts[:'enforcement_point_path'].nil?
query_params[:'include_mark_for_delete_objects'] = opts[:'include_mark_for_delete_objects'] if !opts[:'include_mark_for_delete_objects'].nil?
query_params[:'included_fields'] = opts[:'included_fields'] if !opts[:'included_fields'].nil?
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
query_params[:'sort_ascending'] = opts[:'sort_ascending'] if !opts[:'sort_ascending'].nil?
query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'PolicyGroupIPMembersListResult')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: PolicyInventoryGroupsGroupMembersApi#get_provider_group_ip_members_0\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_ips_by_group(name)\n hostids = get_hostids_by_group(name)\n hostips = []\n if hostids == nil \n return nil\n else\n hostids.each do |hostid|\n hostips.push(@zbx.query( method: \"hostinterface.get\", params: {\"output\" => \"extend\", \"hostids\" => [hostid] } )[0]... | [
"0.6431597",
"0.63075453",
"0.6224506",
"0.61777",
"0.61175174",
"0.5986462",
"0.58252734",
"0.5765731",
"0.5745435",
"0.569183",
"0.5684782",
"0.5678567",
"0.56734675",
"0.5651549",
"0.56493044",
"0.56122774",
"0.5559197",
"0.55418545",
"0.54786956",
"0.545208",
"0.53837603"... | 0.52178496 | 35 |
Get Virtual machines that belong to this Tier0 Group Get Virtual machines that belong to this Tier0 Group. This API is applicable for Groups containing VirtualMachine member type. For Groups containing other member types,an empty list is returned. | def get_provider_group_vm_members(tier_0_id, group_id, opts = {})
data, _status_code, _headers = get_provider_group_vm_members_with_http_info(tier_0_id, group_id, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def virtual_machines\n kubevirt_client.get_virtual_machines(namespace: @namespace)\n end",
"def virtual_machines(id)\n response = request(:get, \"/users/#{id}/virtual_machines.json\")\n response.collect { |vm| vm['virtual_machine']}\n end",
"def virtual_machines(id)\n response = request(:... | [
"0.63728",
"0.612319",
"0.612319",
"0.6101281",
"0.5996908",
"0.5976157",
"0.5976157",
"0.59501845",
"0.591452",
"0.57973653",
"0.57608616",
"0.57201225",
"0.5704931",
"0.56519914",
"0.5615208",
"0.5606567",
"0.55793697",
"0.5556064",
"0.5434101",
"0.54298323",
"0.54192877",
... | 0.56089765 | 15 |
Get Virtual machines that belong to this Tier0 Group Get Virtual machines that belong to this Tier0 Group. This API is applicable for Groups containing VirtualMachine member type. For Groups containing other member types,an empty list is returned. | def get_provider_group_vm_members_with_http_info(tier_0_id, group_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: PolicyInventoryGroupsGroupMembersApi.get_provider_group_vm_members ...'
end
# verify the required parameter 'tier_0_id' is set
if @api_client.config.client_side_validation && tier_0_id.nil?
fail ArgumentError, "Missing the required parameter 'tier_0_id' when calling PolicyInventoryGroupsGroupMembersApi.get_provider_group_vm_members"
end
# verify the required parameter 'group_id' is set
if @api_client.config.client_side_validation && group_id.nil?
fail ArgumentError, "Missing the required parameter 'group_id' when calling PolicyInventoryGroupsGroupMembersApi.get_provider_group_vm_members"
end
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 1000
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling PolicyInventoryGroupsGroupMembersApi.get_provider_group_vm_members, must be smaller than or equal to 1000.'
end
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 0
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling PolicyInventoryGroupsGroupMembersApi.get_provider_group_vm_members, must be greater than or equal to 0.'
end
# resource path
local_var_path = '/global-infra/tier-0s/{tier-0-id}/groups/{group-id}/members/virtual-machines'.sub('{' + 'tier-0-id' + '}', tier_0_id.to_s).sub('{' + 'group-id' + '}', group_id.to_s)
# query parameters
query_params = {}
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
query_params[:'enforcement_point_path'] = opts[:'enforcement_point_path'] if !opts[:'enforcement_point_path'].nil?
query_params[:'include_mark_for_delete_objects'] = opts[:'include_mark_for_delete_objects'] if !opts[:'include_mark_for_delete_objects'].nil?
query_params[:'included_fields'] = opts[:'included_fields'] if !opts[:'included_fields'].nil?
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
query_params[:'sort_ascending'] = opts[:'sort_ascending'] if !opts[:'sort_ascending'].nil?
query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'RealizedVirtualMachineListResult')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: PolicyInventoryGroupsGroupMembersApi#get_provider_group_vm_members\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def virtual_machines\n kubevirt_client.get_virtual_machines(namespace: @namespace)\n end",
"def virtual_machines(id)\n response = request(:get, \"/users/#{id}/virtual_machines.json\")\n response.collect { |vm| vm['virtual_machine']}\n end",
"def virtual_machines(id)\n response = request(:... | [
"0.63732964",
"0.6124246",
"0.6124246",
"0.61010695",
"0.59963393",
"0.5977348",
"0.5977348",
"0.5951482",
"0.59149563",
"0.579851",
"0.5760827",
"0.57206255",
"0.5705965",
"0.5650131",
"0.56153053",
"0.5607279",
"0.56047744",
"0.5579602",
"0.5554241",
"0.543551",
"0.54306036... | 0.48079777 | 49 |
Get Virtual machines that belong to this Tier0 Group Get Virtual machines that belong to this Tier0 Group. This API is applicable for Groups containing VirtualMachine member type. For Groups containing other member types,an empty list is returned. | def get_provider_group_vm_members_0(tier_0_id, group_id, opts = {})
data, _status_code, _headers = get_provider_group_vm_members_0_with_http_info(tier_0_id, group_id, opts)
data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def virtual_machines\n kubevirt_client.get_virtual_machines(namespace: @namespace)\n end",
"def virtual_machines(id)\n response = request(:get, \"/users/#{id}/virtual_machines.json\")\n response.collect { |vm| vm['virtual_machine']}\n end",
"def virtual_machines(id)\n response = request(:... | [
"0.6372148",
"0.61226845",
"0.61226845",
"0.6100632",
"0.59973115",
"0.5976285",
"0.5976285",
"0.5951656",
"0.59142834",
"0.57975453",
"0.57616085",
"0.5719371",
"0.57049674",
"0.5650532",
"0.5614757",
"0.560831",
"0.56051725",
"0.5579178",
"0.5434281",
"0.5430941",
"0.541895... | 0.5556554 | 18 |
Get Virtual machines that belong to this Tier0 Group Get Virtual machines that belong to this Tier0 Group. This API is applicable for Groups containing VirtualMachine member type. For Groups containing other member types,an empty list is returned. | def get_provider_group_vm_members_0_with_http_info(tier_0_id, group_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: PolicyInventoryGroupsGroupMembersApi.get_provider_group_vm_members_0 ...'
end
# verify the required parameter 'tier_0_id' is set
if @api_client.config.client_side_validation && tier_0_id.nil?
fail ArgumentError, "Missing the required parameter 'tier_0_id' when calling PolicyInventoryGroupsGroupMembersApi.get_provider_group_vm_members_0"
end
# verify the required parameter 'group_id' is set
if @api_client.config.client_side_validation && group_id.nil?
fail ArgumentError, "Missing the required parameter 'group_id' when calling PolicyInventoryGroupsGroupMembersApi.get_provider_group_vm_members_0"
end
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 1000
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling PolicyInventoryGroupsGroupMembersApi.get_provider_group_vm_members_0, must be smaller than or equal to 1000.'
end
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 0
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling PolicyInventoryGroupsGroupMembersApi.get_provider_group_vm_members_0, must be greater than or equal to 0.'
end
# resource path
local_var_path = '/infra/tier-0s/{tier-0-id}/groups/{group-id}/members/virtual-machines'.sub('{' + 'tier-0-id' + '}', tier_0_id.to_s).sub('{' + 'group-id' + '}', group_id.to_s)
# query parameters
query_params = {}
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
query_params[:'enforcement_point_path'] = opts[:'enforcement_point_path'] if !opts[:'enforcement_point_path'].nil?
query_params[:'include_mark_for_delete_objects'] = opts[:'include_mark_for_delete_objects'] if !opts[:'include_mark_for_delete_objects'].nil?
query_params[:'included_fields'] = opts[:'included_fields'] if !opts[:'included_fields'].nil?
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
query_params[:'sort_ascending'] = opts[:'sort_ascending'] if !opts[:'sort_ascending'].nil?
query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['BasicAuth']
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'RealizedVirtualMachineListResult')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: PolicyInventoryGroupsGroupMembersApi#get_provider_group_vm_members_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def virtual_machines\n kubevirt_client.get_virtual_machines(namespace: @namespace)\n end",
"def virtual_machines(id)\n response = request(:get, \"/users/#{id}/virtual_machines.json\")\n response.collect { |vm| vm['virtual_machine']}\n end",
"def virtual_machines(id)\n response = request(:... | [
"0.63732964",
"0.6124246",
"0.6124246",
"0.61010695",
"0.59963393",
"0.5977348",
"0.5977348",
"0.5951482",
"0.59149563",
"0.579851",
"0.5760827",
"0.57206255",
"0.5705965",
"0.5650131",
"0.56153053",
"0.5607279",
"0.56047744",
"0.5579602",
"0.5554241",
"0.543551",
"0.54306036... | 0.46765816 | 57 |
Validates if a player with the same user name already exists. This object assumes that player's names are unique. | def validate
errors.add(:username, "already exists.") if Player.get_player(username) != nil
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def validate_player\n msg = \"teams must not share the same player\"\n errors[:base] << msg if share_player?\n end",
"def validate(player, new_player)\n if player\n return player_search = User.find_by(name: player.name) \n else \n return player_search = User.create(name: new_player)\n end \nend",... | [
"0.6680743",
"0.6637122",
"0.6629645",
"0.6570471",
"0.64904255",
"0.6453744",
"0.6442481",
"0.64185584",
"0.6375766",
"0.6360363",
"0.6313683",
"0.6294733",
"0.62874675",
"0.6284991",
"0.62725353",
"0.62596965",
"0.62355757",
"0.6210098",
"0.6204504",
"0.6204504",
"0.6167460... | 0.81650084 | 0 |
For example it will give you the deal object for which we are searching the reviews. | def find_commentable
params.each do |name, value|
if name =~ /(.+)_id$/
@commentable = $1.classify.constantize.find_by_id(value)
#While posting the comment on a deal slug id will be there, so lets try for that too before rendering the error
if @commentable.nil?
@commentable = $1.classify.constantize.friendly.find(value)
end
if @commentable.nil?
render json: {errors: ["Could not find the deal with this id"]}, status: 422
end
end
end
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def reviews\n @reviews\n end",
"def find_reviews(brewery)\n brewery.reviews\n end",
"def review\n fetch('restaurant.review')\n end",
"def reviews\n self.reviews\n end",
"def find_review\n Review.find(params[\"id\"])\n end",
"def review\n @review\n end",
"def openstru... | [
"0.68153983",
"0.67576337",
"0.6627202",
"0.6615804",
"0.65769535",
"0.65065926",
"0.6495489",
"0.64179397",
"0.63994724",
"0.6380003",
"0.63326675",
"0.6303995",
"0.62069476",
"0.6196533",
"0.61936873",
"0.6179942",
"0.6165907",
"0.61091495",
"0.6052315",
"0.6047061",
"0.603... | 0.0 | -1 |
GET /ci_experiments/1 GET /ci_experiments/1.json | def show
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fetch_experiment(id)\n url = @base + \"experiments/#{id}.json?token=#{@token}\"\n puts url\n response = JSON.parse(RestClient.get(url))\nend",
"def fetch_experiments(page)\n puts page\n url = @base + \"/api/v1/experiments.json?token=#{@token}&page=#{page}\"\n response = JSON.parse(RestClient.get(url))\... | [
"0.7799512",
"0.70814633",
"0.70038784",
"0.6740238",
"0.6735934",
"0.6735934",
"0.6593575",
"0.6347034",
"0.63245267",
"0.63098794",
"0.6257682",
"0.62548333",
"0.6222514",
"0.61853707",
"0.61636525",
"0.6160357",
"0.6088657",
"0.60303867",
"0.60296786",
"0.60296786",
"0.598... | 0.0 | -1 |
POST /ci_experiments POST /ci_experiments.json | def create
@ci_experiment = CiExperiment.new(ci_experiment_params)
respond_to do |format|
if @ci_experiment.save
format.html { redirect_to @ci_experiment, notice: 'Ci experiment was successfully created.' }
format.json { render action: 'show', status: :created, location: @ci_experiment }
else
format.html { render action: 'new' }
format.json { render json: @ci_experiment.errors, status: :unprocessable_entity }
end
end
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ci_experiment_params\n params.require(:ci_experiment).permit(:game, :alpha, :delta, :step_size, :aggregate_level, :wait_length, :max_step, :data)\n end",
"def create\n @experiment = Experiment.new(params[:experiment])\n\n respond_to do |format|\n if @experiment.save\n format.html { ... | [
"0.64998794",
"0.64957654",
"0.64888877",
"0.64888877",
"0.6473746",
"0.6210744",
"0.6184818",
"0.61622274",
"0.60819346",
"0.6079215",
"0.60170597",
"0.6014503",
"0.59857285",
"0.592343",
"0.5860012",
"0.58463407",
"0.58384037",
"0.58375084",
"0.5835367",
"0.5812776",
"0.580... | 0.6864547 | 0 |
PATCH/PUT /ci_experiments/1 PATCH/PUT /ci_experiments/1.json | def update
respond_to do |format|
if @ci_experiment.update(ci_experiment_params)
format.html { redirect_to @ci_experiment, notice: 'Ci experiment was successfully updated.' }
format.json { head :no_content }
else
format.html { render action: 'edit' }
format.json { render json: @ci_experiment.errors, status: :unprocessable_entity }
end
end
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def update\n @experiment = Experiment.find(params[:id])\n\n respond_to do |format|\n if @experiment.update_attributes(params[:experiment])\n format.html { redirect_to @experiment, notice: 'experiment was successfully updated.' }\n format.json { head :no_content }\n else\n forma... | [
"0.6924324",
"0.6917179",
"0.6917179",
"0.6778112",
"0.6690329",
"0.65911114",
"0.65911114",
"0.65471745",
"0.62774944",
"0.61549205",
"0.614415",
"0.6129482",
"0.6129302",
"0.61164147",
"0.6091998",
"0.60763776",
"0.6042858",
"0.6020326",
"0.6012458",
"0.59948844",
"0.598257... | 0.682197 | 3 |
DELETE /ci_experiments/1 DELETE /ci_experiments/1.json | def destroy
@ci_experiment.destroy
respond_to do |format|
format.html { redirect_to ci_experiments_url }
format.json { head :no_content }
end
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def destroy\n set_experiments\n @experiment.destroy\n respond_to do |format|\n format.html { redirect_to experiments_url }\n format.json { head :no_content }\n end\n end",
"def destroy\n @experiment = Experiment.find(params[:id])\n @experiment.destroy\n\n respond_to do |format|\n ... | [
"0.7613068",
"0.7542661",
"0.7542661",
"0.7542661",
"0.72049654",
"0.72049654",
"0.7165697",
"0.7165697",
"0.71567136",
"0.7062069",
"0.7014643",
"0.7005076",
"0.68239677",
"0.66933477",
"0.6684463",
"0.6640747",
"0.66122776",
"0.6582762",
"0.6577878",
"0.6539551",
"0.6537072... | 0.7704698 | 0 |
Use callbacks to share common setup or constraints between actions. | def set_ci_experiment
@ci_experiment = CiExperiment.find(params[:id])
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def set_required_actions\n # TODO: check what fields change to asign required fields\n end",
"def action_hook; end",
"def run_actions; end",
"def define_action_hook; end",
"def actions; end",
"def define_action_helpers\n if super && action == :save\n @instance_helper_module.class_... | [
"0.6163163",
"0.6045976",
"0.5946146",
"0.591683",
"0.5890051",
"0.58349305",
"0.5776858",
"0.5703237",
"0.5703237",
"0.5652805",
"0.5621621",
"0.54210985",
"0.5411113",
"0.5411113",
"0.5411113",
"0.5391541",
"0.53794575",
"0.5357573",
"0.53402257",
"0.53394014",
"0.53321576"... | 0.0 | -1 |
Never trust parameters from the scary internet, only allow the white list through. | def ci_experiment_params
params.require(:ci_experiment).permit(:game, :alpha, :delta, :step_size, :aggregate_level, :wait_length, :max_step, :data)
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def strong_params\n params.require(:user).permit(param_whitelist)\n end",
"def strong_params\n params.require(:listing_member).permit(param_whitelist)\n end",
"def allow_params_authentication!; end",
"def allowed_params\n ALLOWED_PARAMS\n end",
"def default_param_whitelist\n [\"mode\"]\n... | [
"0.69795185",
"0.6782116",
"0.6745877",
"0.6742722",
"0.67368543",
"0.65932566",
"0.65048057",
"0.6497429",
"0.6481512",
"0.6478456",
"0.6455591",
"0.64391",
"0.6379068",
"0.6376498",
"0.636542",
"0.632084",
"0.630046",
"0.62998945",
"0.62943697",
"0.6293775",
"0.629097",
"... | 0.0 | -1 |
set variable to a default value | def set_nil_default( var_name, var_value )
if self.has_attribute?( var_name ) && ( read_attribute( var_name ).nil? )
write_attribute( var_name, var_value )
end
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def default=(value); end",
"def default!\n @value = default\n end",
"def set_default\n end",
"def default=(_); end",
"def set_default(inVariable,default)\n\t if nil == inVariable\n\t\t default\n\t else\t\n\t\t\t if inVariable.empty?\n\t\t\t\t default\n\t\t\t else \n\t\t\t inVariable\n\t\t\t ... | [
"0.8276679",
"0.80109656",
"0.7916815",
"0.77969366",
"0.7768047",
"0.7632557",
"0.76167876",
"0.7601731",
"0.7579467",
"0.7565097",
"0.7553276",
"0.75473595",
"0.74351734",
"0.7428685",
"0.7380015",
"0.7364767",
"0.7307785",
"0.7288146",
"0.72682077",
"0.72682077",
"0.726059... | 0.74542564 | 12 |
this is a helper which formats the record id in a standadized way: | def some_text_and_id( some_text, some_id )
t = some_text.to_s
i = some_id.nil? ? '' : "[#{ some_id }]"
t + (( t.empty? || i.empty? ) ? '' : ' ' ) + i
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def format_id\n id.delete('-')\n end",
"def format_identifier\n self.identifier.to_s\n end",
"def html_id(record)\n \"#{record.class.name.underscore}_#{record[:id].to_i}\"\n end",
"def id\n record.id.to_s\n end",
"def full_id\n self.id.blank? ? '0000000000' : self... | [
"0.8060698",
"0.7982627",
"0.76406425",
"0.7610146",
"0.7500701",
"0.74602413",
"0.74521816",
"0.74494576",
"0.73763317",
"0.73709184",
"0.7292547",
"0.72821265",
"0.7220225",
"0.71194154",
"0.7088301",
"0.7080698",
"0.70629406",
"0.6995339",
"0.69896",
"0.69413304",
"0.69132... | 0.0 | -1 |
this formats an internal .id | def to_id
"[#{ self.id }]" unless id.nil?
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def format_identifier\n self.identifier.to_s\n end",
"def format_id\n id.delete('-')\n end",
"def fix_id(id, format, extra)\n id << \".\" + format if !format.blank?\n id << \".\" + extra if !extra.blank?\n return id\n end",
"def to_s\n \"_:%s\" % @id.to_s\n end",
... | [
"0.8057159",
"0.77879876",
"0.7596667",
"0.7568266",
"0.7544168",
"0.7524321",
"0.74646795",
"0.7388733",
"0.7373055",
"0.732397",
"0.7278463",
"0.7278463",
"0.72759765",
"0.7266857",
"0.72027814",
"0.71505326",
"0.7142359",
"0.71373016",
"0.7129287",
"0.7122242",
"0.7110993"... | 0.7350908 | 9 |
combine code and label for list boxes | def code_and_label
'' << try( :code ) << ' - ' << try( :label )
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def code_and_label\n code + ' - ' + label\n end",
"def code_and_label\n code << ' - ' << label\n end",
"def select_list_option_label\n select_list.span(:class => \"select-list-option-label\")\n end",
"def set_label(l); end",
"def label\n raise 'answer the list label'\n end",
"def labe... | [
"0.6891177",
"0.6787868",
"0.6746252",
"0.6686933",
"0.63560504",
"0.62460566",
"0.6241936",
"0.6199766",
"0.6165411",
"0.6090831",
"0.60376203",
"0.6030391",
"0.60190386",
"0.598577",
"0.597605",
"0.5920134",
"0.5904702",
"0.5901951",
"0.588988",
"0.5887079",
"0.5882312",
... | 0.6111975 | 9 |
create attribute setter which trims the given parameter before storing it to the attribute | def set_trimmed ( *attributes )
attributes.each do |a|
define_method "#{ a.to_s }=" do |t|
tt = t.blank? ? nil : t.strip.squeeze(' ')
write_attribute( a, tt )
end
end
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def attribute=(_arg0); end",
"def attribute=(_arg0); end",
"def create_setter_for(attribute, options)\n setter_method = \"#{attribute}=\"\n\n define_method setter_method do |value|\n if options[:allow_blank] || value != \"\"\n write_attribute(attribute, value)\n end\n end\... | [
"0.69726896",
"0.69726896",
"0.6889031",
"0.6823115",
"0.6707132",
"0.6698104",
"0.6530338",
"0.6521415",
"0.6342222",
"0.6325142",
"0.6298507",
"0.6298507",
"0.62828845",
"0.6243103",
"0.6218176",
"0.62062174",
"0.6205562",
"0.62023014",
"0.61910224",
"0.6170959",
"0.6163345... | 0.65845454 | 6 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.