partition
stringclasses
3 values
func_name
stringlengths
1
134
docstring
stringlengths
1
46.9k
path
stringlengths
4
223
original_string
stringlengths
75
104k
code
stringlengths
75
104k
docstring_tokens
listlengths
1
1.97k
repo
stringlengths
7
55
language
stringclasses
1 value
url
stringlengths
87
315
code_tokens
listlengths
19
28.4k
sha
stringlengths
40
40
train
CkMinions.auth_check
Returns a bool which defines if the requested function is authorized. Used to evaluate the standard structure under external master authentication interfaces, like eauth, peer, peer_run, etc.
salt/utils/minions.py
def auth_check(self, auth_list, funs, args, tgt, tgt_type='glob', groups=None, publish_validate=False, minions=None, whitelist=None): ''' ...
def auth_check(self, auth_list, funs, args, tgt, tgt_type='glob', groups=None, publish_validate=False, minions=None, whitelist=None): ''' ...
[ "Returns", "a", "bool", "which", "defines", "if", "the", "requested", "function", "is", "authorized", ".", "Used", "to", "evaluate", "the", "standard", "structure", "under", "external", "master", "authentication", "interfaces", "like", "eauth", "peer", "peer_run",...
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/utils/minions.py#L908-L979
[ "def", "auth_check", "(", "self", ",", "auth_list", ",", "funs", ",", "args", ",", "tgt", ",", "tgt_type", "=", "'glob'", ",", "groups", "=", "None", ",", "publish_validate", "=", "False", ",", "minions", "=", "None", ",", "whitelist", "=", "None", ")"...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
CkMinions.fill_auth_list_from_groups
Returns a list of authorisation matchers that a user is eligible for. This list is a combination of the provided personal matchers plus the matchers of any group the user is in.
salt/utils/minions.py
def fill_auth_list_from_groups(self, auth_provider, user_groups, auth_list): ''' Returns a list of authorisation matchers that a user is eligible for. This list is a combination of the provided personal matchers plus the matchers of any group the user is in. ''' group_nam...
def fill_auth_list_from_groups(self, auth_provider, user_groups, auth_list): ''' Returns a list of authorisation matchers that a user is eligible for. This list is a combination of the provided personal matchers plus the matchers of any group the user is in. ''' group_nam...
[ "Returns", "a", "list", "of", "authorisation", "matchers", "that", "a", "user", "is", "eligible", "for", ".", "This", "list", "is", "a", "combination", "of", "the", "provided", "personal", "matchers", "plus", "the", "matchers", "of", "any", "group", "the", ...
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/utils/minions.py#L981-L993
[ "def", "fill_auth_list_from_groups", "(", "self", ",", "auth_provider", ",", "user_groups", ",", "auth_list", ")", ":", "group_names", "=", "[", "item", "for", "item", "in", "auth_provider", "if", "item", ".", "endswith", "(", "'%'", ")", "]", "if", "group_n...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
CkMinions.fill_auth_list
Returns a list of authorisation matchers that a user is eligible for. This list is a combination of the provided personal matchers plus the matchers of any group the user is in.
salt/utils/minions.py
def fill_auth_list(self, auth_provider, name, groups, auth_list=None, permissive=None): ''' Returns a list of authorisation matchers that a user is eligible for. This list is a combination of the provided personal matchers plus the matchers of any group the user is in. ''' ...
def fill_auth_list(self, auth_provider, name, groups, auth_list=None, permissive=None): ''' Returns a list of authorisation matchers that a user is eligible for. This list is a combination of the provided personal matchers plus the matchers of any group the user is in. ''' ...
[ "Returns", "a", "list", "of", "authorisation", "matchers", "that", "a", "user", "is", "eligible", "for", ".", "This", "list", "is", "a", "combination", "of", "the", "provided", "personal", "matchers", "plus", "the", "matchers", "of", "any", "group", "the", ...
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/utils/minions.py#L995-L1018
[ "def", "fill_auth_list", "(", "self", ",", "auth_provider", ",", "name", ",", "groups", ",", "auth_list", "=", "None", ",", "permissive", "=", "None", ")", ":", "if", "auth_list", "is", "None", ":", "auth_list", "=", "[", "]", "if", "permissive", "is", ...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
CkMinions.wheel_check
Check special API permissions
salt/utils/minions.py
def wheel_check(self, auth_list, fun, args): ''' Check special API permissions ''' return self.spec_check(auth_list, fun, args, 'wheel')
def wheel_check(self, auth_list, fun, args): ''' Check special API permissions ''' return self.spec_check(auth_list, fun, args, 'wheel')
[ "Check", "special", "API", "permissions" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/utils/minions.py#L1020-L1024
[ "def", "wheel_check", "(", "self", ",", "auth_list", ",", "fun", ",", "args", ")", ":", "return", "self", ".", "spec_check", "(", "auth_list", ",", "fun", ",", "args", ",", "'wheel'", ")" ]
e8541fd6e744ab0df786c0f76102e41631f45d46
train
CkMinions.runner_check
Check special API permissions
salt/utils/minions.py
def runner_check(self, auth_list, fun, args): ''' Check special API permissions ''' return self.spec_check(auth_list, fun, args, 'runner')
def runner_check(self, auth_list, fun, args): ''' Check special API permissions ''' return self.spec_check(auth_list, fun, args, 'runner')
[ "Check", "special", "API", "permissions" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/utils/minions.py#L1026-L1030
[ "def", "runner_check", "(", "self", ",", "auth_list", ",", "fun", ",", "args", ")", ":", "return", "self", ".", "spec_check", "(", "auth_list", ",", "fun", ",", "args", ",", "'runner'", ")" ]
e8541fd6e744ab0df786c0f76102e41631f45d46
train
CkMinions.spec_check
Check special API permissions
salt/utils/minions.py
def spec_check(self, auth_list, fun, args, form): ''' Check special API permissions ''' if not auth_list: return False if form != 'cloud': comps = fun.split('.') if len(comps) != 2: # Hint at a syntax error when command is passe...
def spec_check(self, auth_list, fun, args, form): ''' Check special API permissions ''' if not auth_list: return False if form != 'cloud': comps = fun.split('.') if len(comps) != 2: # Hint at a syntax error when command is passe...
[ "Check", "special", "API", "permissions" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/utils/minions.py#L1032-L1066
[ "def", "spec_check", "(", "self", ",", "auth_list", ",", "fun", ",", "args", ",", "form", ")", ":", "if", "not", "auth_list", ":", "return", "False", "if", "form", "!=", "'cloud'", ":", "comps", "=", "fun", ".", "split", "(", "'.'", ")", "if", "len...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
CkMinions.__fun_check
Check the given function name (fun) and its arguments (args) against the list of conditions.
salt/utils/minions.py
def __fun_check(self, valid, fun, args=None, kwargs=None): ''' Check the given function name (fun) and its arguments (args) against the list of conditions. ''' if not isinstance(valid, list): valid = [valid] for cond in valid: # Function name match ...
def __fun_check(self, valid, fun, args=None, kwargs=None): ''' Check the given function name (fun) and its arguments (args) against the list of conditions. ''' if not isinstance(valid, list): valid = [valid] for cond in valid: # Function name match ...
[ "Check", "the", "given", "function", "name", "(", "fun", ")", "and", "its", "arguments", "(", "args", ")", "against", "the", "list", "of", "conditions", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/utils/minions.py#L1068-L1088
[ "def", "__fun_check", "(", "self", ",", "valid", ",", "fun", ",", "args", "=", "None", ",", "kwargs", "=", "None", ")", ":", "if", "not", "isinstance", "(", "valid", ",", "list", ")", ":", "valid", "=", "[", "valid", "]", "for", "cond", "in", "va...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
CkMinions.__args_check
valid is a dicts: {'args': [...], 'kwargs': {...}} or a list of such dicts.
salt/utils/minions.py
def __args_check(self, valid, args=None, kwargs=None): ''' valid is a dicts: {'args': [...], 'kwargs': {...}} or a list of such dicts. ''' if not isinstance(valid, list): valid = [valid] for cond in valid: if not isinstance(cond, dict): # I...
def __args_check(self, valid, args=None, kwargs=None): ''' valid is a dicts: {'args': [...], 'kwargs': {...}} or a list of such dicts. ''' if not isinstance(valid, list): valid = [valid] for cond in valid: if not isinstance(cond, dict): # I...
[ "valid", "is", "a", "dicts", ":", "{", "args", ":", "[", "...", "]", "kwargs", ":", "{", "...", "}}", "or", "a", "list", "of", "such", "dicts", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/utils/minions.py#L1090-L1127
[ "def", "__args_check", "(", "self", ",", "valid", ",", "args", "=", "None", ",", "kwargs", "=", "None", ")", ":", "if", "not", "isinstance", "(", "valid", ",", "list", ")", ":", "valid", "=", "[", "valid", "]", "for", "cond", "in", "valid", ":", ...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
list_nodes_full
Return a list of the VMs that are on the provider
salt/cloud/clouds/clc.py
def list_nodes_full(call=None, for_output=True): ''' Return a list of the VMs that are on the provider ''' if call == 'action': raise SaltCloudSystemExit( 'The list_nodes_full function must be called with -f or --function.' ) creds = get_creds() clc.v1.SetCredentials(...
def list_nodes_full(call=None, for_output=True): ''' Return a list of the VMs that are on the provider ''' if call == 'action': raise SaltCloudSystemExit( 'The list_nodes_full function must be called with -f or --function.' ) creds = get_creds() clc.v1.SetCredentials(...
[ "Return", "a", "list", "of", "the", "VMs", "that", "are", "on", "the", "provider" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/cloud/clouds/clc.py#L150-L163
[ "def", "list_nodes_full", "(", "call", "=", "None", ",", "for_output", "=", "True", ")", ":", "if", "call", "==", "'action'", ":", "raise", "SaltCloudSystemExit", "(", "'The list_nodes_full function must be called with -f or --function.'", ")", "creds", "=", "get_cred...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
get_monthly_estimate
Return a list of the VMs that are on the provider
salt/cloud/clouds/clc.py
def get_monthly_estimate(call=None, for_output=True): ''' Return a list of the VMs that are on the provider ''' creds = get_creds() clc.v1.SetCredentials(creds["token"], creds["token_pass"]) if call == 'action': raise SaltCloudSystemExit( 'The list_nodes_full function must be...
def get_monthly_estimate(call=None, for_output=True): ''' Return a list of the VMs that are on the provider ''' creds = get_creds() clc.v1.SetCredentials(creds["token"], creds["token_pass"]) if call == 'action': raise SaltCloudSystemExit( 'The list_nodes_full function must be...
[ "Return", "a", "list", "of", "the", "VMs", "that", "are", "on", "the", "provider" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/cloud/clouds/clc.py#L173-L190
[ "def", "get_monthly_estimate", "(", "call", "=", "None", ",", "for_output", "=", "True", ")", ":", "creds", "=", "get_creds", "(", ")", "clc", ".", "v1", ".", "SetCredentials", "(", "creds", "[", "\"token\"", "]", ",", "creds", "[", "\"token_pass\"", "]"...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
get_server_alerts
Return a list of alerts from CLC as reported by their infra
salt/cloud/clouds/clc.py
def get_server_alerts(call=None, for_output=True, **kwargs): ''' Return a list of alerts from CLC as reported by their infra ''' for key, value in kwargs.items(): servername = "" if key == "servername": servername = value creds = get_creds() clc.v2.SetCredentials(cred...
def get_server_alerts(call=None, for_output=True, **kwargs): ''' Return a list of alerts from CLC as reported by their infra ''' for key, value in kwargs.items(): servername = "" if key == "servername": servername = value creds = get_creds() clc.v2.SetCredentials(cred...
[ "Return", "a", "list", "of", "alerts", "from", "CLC", "as", "reported", "by", "their", "infra" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/cloud/clouds/clc.py#L213-L224
[ "def", "get_server_alerts", "(", "call", "=", "None", ",", "for_output", "=", "True", ",", "*", "*", "kwargs", ")", ":", "for", "key", ",", "value", "in", "kwargs", ".", "items", "(", ")", ":", "servername", "=", "\"\"", "if", "key", "==", "\"servern...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
get_group_estimate
Return a list of the VMs that are on the provider usage: "salt-cloud -f get_group_estimate clc group=Dev location=VA1"
salt/cloud/clouds/clc.py
def get_group_estimate(call=None, for_output=True, **kwargs): ''' Return a list of the VMs that are on the provider usage: "salt-cloud -f get_group_estimate clc group=Dev location=VA1" ''' for key, value in kwargs.items(): group = "" location = "" if key == "group": ...
def get_group_estimate(call=None, for_output=True, **kwargs): ''' Return a list of the VMs that are on the provider usage: "salt-cloud -f get_group_estimate clc group=Dev location=VA1" ''' for key, value in kwargs.items(): group = "" location = "" if key == "group": ...
[ "Return", "a", "list", "of", "the", "VMs", "that", "are", "on", "the", "provider", "usage", ":", "salt", "-", "cloud", "-", "f", "get_group_estimate", "clc", "group", "=", "Dev", "location", "=", "VA1" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/cloud/clouds/clc.py#L227-L253
[ "def", "get_group_estimate", "(", "call", "=", "None", ",", "for_output", "=", "True", ",", "*", "*", "kwargs", ")", ":", "for", "key", ",", "value", "in", "kwargs", ".", "items", "(", ")", ":", "group", "=", "\"\"", "location", "=", "\"\"", "if", ...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
avail_images
returns a list of images available to you
salt/cloud/clouds/clc.py
def avail_images(call=None): ''' returns a list of images available to you ''' all_servers = list_nodes_full() templates = {} for server in all_servers: if server["IsTemplate"]: templates.update({"Template Name": server["Name"]}) return templates
def avail_images(call=None): ''' returns a list of images available to you ''' all_servers = list_nodes_full() templates = {} for server in all_servers: if server["IsTemplate"]: templates.update({"Template Name": server["Name"]}) return templates
[ "returns", "a", "list", "of", "images", "available", "to", "you" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/cloud/clouds/clc.py#L256-L265
[ "def", "avail_images", "(", "call", "=", "None", ")", ":", "all_servers", "=", "list_nodes_full", "(", ")", "templates", "=", "{", "}", "for", "server", "in", "all_servers", ":", "if", "server", "[", "\"IsTemplate\"", "]", ":", "templates", ".", "update", ...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
avail_locations
returns a list of locations available to you
salt/cloud/clouds/clc.py
def avail_locations(call=None): ''' returns a list of locations available to you ''' creds = get_creds() clc.v1.SetCredentials(creds["token"], creds["token_pass"]) locations = clc.v1.Account.GetLocations() return locations
def avail_locations(call=None): ''' returns a list of locations available to you ''' creds = get_creds() clc.v1.SetCredentials(creds["token"], creds["token_pass"]) locations = clc.v1.Account.GetLocations() return locations
[ "returns", "a", "list", "of", "locations", "available", "to", "you" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/cloud/clouds/clc.py#L268-L275
[ "def", "avail_locations", "(", "call", "=", "None", ")", ":", "creds", "=", "get_creds", "(", ")", "clc", ".", "v1", ".", "SetCredentials", "(", "creds", "[", "\"token\"", "]", ",", "creds", "[", "\"token_pass\"", "]", ")", "locations", "=", "clc", "."...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
get_build_status
get the build status from CLC to make sure we dont return to early
salt/cloud/clouds/clc.py
def get_build_status(req_id, nodename): ''' get the build status from CLC to make sure we dont return to early ''' counter = 0 req_id = six.text_type(req_id) while counter < 10: queue = clc.v1.Blueprint.GetStatus(request_id=(req_id)) if queue["PercentComplete"] == 100: ...
def get_build_status(req_id, nodename): ''' get the build status from CLC to make sure we dont return to early ''' counter = 0 req_id = six.text_type(req_id) while counter < 10: queue = clc.v1.Blueprint.GetStatus(request_id=(req_id)) if queue["PercentComplete"] == 100: ...
[ "get", "the", "build", "status", "from", "CLC", "to", "make", "sure", "we", "dont", "return", "to", "early" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/cloud/clouds/clc.py#L285-L304
[ "def", "get_build_status", "(", "req_id", ",", "nodename", ")", ":", "counter", "=", "0", "req_id", "=", "six", ".", "text_type", "(", "req_id", ")", "while", "counter", "<", "10", ":", "queue", "=", "clc", ".", "v1", ".", "Blueprint", ".", "GetStatus"...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
create
get the system build going
salt/cloud/clouds/clc.py
def create(vm_): ''' get the system build going ''' creds = get_creds() clc.v1.SetCredentials(creds["token"], creds["token_pass"]) cloud_profile = config.is_provider_configured( __opts__, __active_provider_name__ or __virtualname__, ('token',) ) group = config.get...
def create(vm_): ''' get the system build going ''' creds = get_creds() clc.v1.SetCredentials(creds["token"], creds["token_pass"]) cloud_profile = config.is_provider_configured( __opts__, __active_provider_name__ or __virtualname__, ('token',) ) group = config.get...
[ "get", "the", "system", "build", "going" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/cloud/clouds/clc.py#L307-L366
[ "def", "create", "(", "vm_", ")", ":", "creds", "=", "get_creds", "(", ")", "clc", ".", "v1", ".", "SetCredentials", "(", "creds", "[", "\"token\"", "]", ",", "creds", "[", "\"token_pass\"", "]", ")", "cloud_profile", "=", "config", ".", "is_provider_con...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
present
Ensure that the named service is present. name The LVS service name protocol The service protocol service_address The LVS service address scheduler Algorithm for allocating TCP connections and UDP datagrams to real servers. .. code-block:: yaml lvstest: ...
salt/states/lvs_service.py
def present(name, protocol=None, service_address=None, scheduler='wlc', ): ''' Ensure that the named service is present. name The LVS service name protocol The service protocol service_address The LVS service address sche...
def present(name, protocol=None, service_address=None, scheduler='wlc', ): ''' Ensure that the named service is present. name The LVS service name protocol The service protocol service_address The LVS service address sche...
[ "Ensure", "that", "the", "named", "service", "is", "present", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/states/lvs_service.py#L18-L94
[ "def", "present", "(", "name", ",", "protocol", "=", "None", ",", "service_address", "=", "None", ",", "scheduler", "=", "'wlc'", ",", ")", ":", "ret", "=", "{", "'name'", ":", "name", ",", "'changes'", ":", "{", "}", ",", "'result'", ":", "True", ...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
absent
Ensure the LVS service is absent. name The name of the LVS service protocol The service protocol service_address The LVS service address
salt/states/lvs_service.py
def absent(name, protocol=None, service_address=None): ''' Ensure the LVS service is absent. name The name of the LVS service protocol The service protocol service_address The LVS service address ''' ret = {'name': name, 'changes': {}, 'result...
def absent(name, protocol=None, service_address=None): ''' Ensure the LVS service is absent. name The name of the LVS service protocol The service protocol service_address The LVS service address ''' ret = {'name': name, 'changes': {}, 'result...
[ "Ensure", "the", "LVS", "service", "is", "absent", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/states/lvs_service.py#L97-L136
[ "def", "absent", "(", "name", ",", "protocol", "=", "None", ",", "service_address", "=", "None", ")", ":", "ret", "=", "{", "'name'", ":", "name", ",", "'changes'", ":", "{", "}", ",", "'result'", ":", "True", ",", "'comment'", ":", "''", "}", "#ch...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
match
Returns true if the passed glob matches the id
salt/matchers/glob_match.py
def match(tgt, opts=None): ''' Returns true if the passed glob matches the id ''' if not opts: opts = __opts__ if not isinstance(tgt, six.string_types): return False return fnmatch.fnmatch(opts['id'], tgt)
def match(tgt, opts=None): ''' Returns true if the passed glob matches the id ''' if not opts: opts = __opts__ if not isinstance(tgt, six.string_types): return False return fnmatch.fnmatch(opts['id'], tgt)
[ "Returns", "true", "if", "the", "passed", "glob", "matches", "the", "id" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/matchers/glob_match.py#L11-L20
[ "def", "match", "(", "tgt", ",", "opts", "=", "None", ")", ":", "if", "not", "opts", ":", "opts", "=", "__opts__", "if", "not", "isinstance", "(", "tgt", ",", "six", ".", "string_types", ")", ":", "return", "False", "return", "fnmatch", ".", "fnmatch...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
show
Return a list of sysctl parameters for this minion CLI Example: .. code-block:: bash salt '*' sysctl.show
salt/modules/openbsd_sysctl.py
def show(config_file=False): ''' Return a list of sysctl parameters for this minion CLI Example: .. code-block:: bash salt '*' sysctl.show ''' cmd = 'sysctl' ret = {} out = __salt__['cmd.run_stdout'](cmd, output_loglevel='trace') for line in out.splitlines(): if no...
def show(config_file=False): ''' Return a list of sysctl parameters for this minion CLI Example: .. code-block:: bash salt '*' sysctl.show ''' cmd = 'sysctl' ret = {} out = __salt__['cmd.run_stdout'](cmd, output_loglevel='trace') for line in out.splitlines(): if no...
[ "Return", "a", "list", "of", "sysctl", "parameters", "for", "this", "minion" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/openbsd_sysctl.py#L30-L48
[ "def", "show", "(", "config_file", "=", "False", ")", ":", "cmd", "=", "'sysctl'", "ret", "=", "{", "}", "out", "=", "__salt__", "[", "'cmd.run_stdout'", "]", "(", "cmd", ",", "output_loglevel", "=", "'trace'", ")", "for", "line", "in", "out", ".", "...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
assign
Assign a single sysctl parameter for this minion CLI Example: .. code-block:: bash salt '*' sysctl.assign net.inet.ip.forwarding 1
salt/modules/openbsd_sysctl.py
def assign(name, value): ''' Assign a single sysctl parameter for this minion CLI Example: .. code-block:: bash salt '*' sysctl.assign net.inet.ip.forwarding 1 ''' ret = {} cmd = 'sysctl {0}="{1}"'.format(name, value) data = __salt__['cmd.run_all'](cmd) # Certain values c...
def assign(name, value): ''' Assign a single sysctl parameter for this minion CLI Example: .. code-block:: bash salt '*' sysctl.assign net.inet.ip.forwarding 1 ''' ret = {} cmd = 'sysctl {0}="{1}"'.format(name, value) data = __salt__['cmd.run_all'](cmd) # Certain values c...
[ "Assign", "a", "single", "sysctl", "parameter", "for", "this", "minion" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/openbsd_sysctl.py#L66-L89
[ "def", "assign", "(", "name", ",", "value", ")", ":", "ret", "=", "{", "}", "cmd", "=", "'sysctl {0}=\"{1}\"'", ".", "format", "(", "name", ",", "value", ")", "data", "=", "__salt__", "[", "'cmd.run_all'", "]", "(", "cmd", ")", "# Certain values cannot b...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
_get_asam_configuration
Return the configuration read from the master configuration file or directory
salt/runners/asam.py
def _get_asam_configuration(driver_url=''): ''' Return the configuration read from the master configuration file or directory ''' asam_config = __opts__['asam'] if 'asam' in __opts__ else None if asam_config: try: for asam_server, service_config in six.iteritems(asam_config)...
def _get_asam_configuration(driver_url=''): ''' Return the configuration read from the master configuration file or directory ''' asam_config = __opts__['asam'] if 'asam' in __opts__ else None if asam_config: try: for asam_server, service_config in six.iteritems(asam_config)...
[ "Return", "the", "configuration", "read", "from", "the", "master", "configuration", "file", "or", "directory" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/runners/asam.py#L77-L121
[ "def", "_get_asam_configuration", "(", "driver_url", "=", "''", ")", ":", "asam_config", "=", "__opts__", "[", "'asam'", "]", "if", "'asam'", "in", "__opts__", "else", "None", "if", "asam_config", ":", "try", ":", "for", "asam_server", ",", "service_config", ...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
remove_platform
To remove specified ASAM platform from the Novell Fan-Out Driver CLI Example: .. code-block:: bash salt-run asam.remove_platform my-test-vm prov1.domain.com
salt/runners/asam.py
def remove_platform(name, server_url): ''' To remove specified ASAM platform from the Novell Fan-Out Driver CLI Example: .. code-block:: bash salt-run asam.remove_platform my-test-vm prov1.domain.com ''' config = _get_asam_configuration(server_url) if not config: return Fa...
def remove_platform(name, server_url): ''' To remove specified ASAM platform from the Novell Fan-Out Driver CLI Example: .. code-block:: bash salt-run asam.remove_platform my-test-vm prov1.domain.com ''' config = _get_asam_configuration(server_url) if not config: return Fa...
[ "To", "remove", "specified", "ASAM", "platform", "from", "the", "Novell", "Fan", "-", "Out", "Driver" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/runners/asam.py#L178-L233
[ "def", "remove_platform", "(", "name", ",", "server_url", ")", ":", "config", "=", "_get_asam_configuration", "(", "server_url", ")", "if", "not", "config", ":", "return", "False", "url", "=", "config", "[", "'platform_config_url'", "]", "data", "=", "{", "'...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
list_platforms
To list all ASAM platforms present on the Novell Fan-Out Driver CLI Example: .. code-block:: bash salt-run asam.list_platforms prov1.domain.com
salt/runners/asam.py
def list_platforms(server_url): ''' To list all ASAM platforms present on the Novell Fan-Out Driver CLI Example: .. code-block:: bash salt-run asam.list_platforms prov1.domain.com ''' config = _get_asam_configuration(server_url) if not config: return False url = confi...
def list_platforms(server_url): ''' To list all ASAM platforms present on the Novell Fan-Out Driver CLI Example: .. code-block:: bash salt-run asam.list_platforms prov1.domain.com ''' config = _get_asam_configuration(server_url) if not config: return False url = confi...
[ "To", "list", "all", "ASAM", "platforms", "present", "on", "the", "Novell", "Fan", "-", "Out", "Driver" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/runners/asam.py#L236-L274
[ "def", "list_platforms", "(", "server_url", ")", ":", "config", "=", "_get_asam_configuration", "(", "server_url", ")", "if", "not", "config", ":", "return", "False", "url", "=", "config", "[", "'platform_config_url'", "]", "data", "=", "{", "'manual'", ":", ...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
list_platform_sets
To list all ASAM platform sets present on the Novell Fan-Out Driver CLI Example: .. code-block:: bash salt-run asam.list_platform_sets prov1.domain.com
salt/runners/asam.py
def list_platform_sets(server_url): ''' To list all ASAM platform sets present on the Novell Fan-Out Driver CLI Example: .. code-block:: bash salt-run asam.list_platform_sets prov1.domain.com ''' config = _get_asam_configuration(server_url) if not config: return False ...
def list_platform_sets(server_url): ''' To list all ASAM platform sets present on the Novell Fan-Out Driver CLI Example: .. code-block:: bash salt-run asam.list_platform_sets prov1.domain.com ''' config = _get_asam_configuration(server_url) if not config: return False ...
[ "To", "list", "all", "ASAM", "platform", "sets", "present", "on", "the", "Novell", "Fan", "-", "Out", "Driver" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/runners/asam.py#L277-L315
[ "def", "list_platform_sets", "(", "server_url", ")", ":", "config", "=", "_get_asam_configuration", "(", "server_url", ")", "if", "not", "config", ":", "return", "False", "url", "=", "config", "[", "'platformset_config_url'", "]", "data", "=", "{", "'manual'", ...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
add_platform
To add an ASAM platform using the specified ASAM platform set on the Novell Fan-Out Driver CLI Example: .. code-block:: bash salt-run asam.add_platform my-test-vm test-platform-set prov1.domain.com
salt/runners/asam.py
def add_platform(name, platform_set, server_url): ''' To add an ASAM platform using the specified ASAM platform set on the Novell Fan-Out Driver CLI Example: .. code-block:: bash salt-run asam.add_platform my-test-vm test-platform-set prov1.domain.com ''' config = _get_asam_config...
def add_platform(name, platform_set, server_url): ''' To add an ASAM platform using the specified ASAM platform set on the Novell Fan-Out Driver CLI Example: .. code-block:: bash salt-run asam.add_platform my-test-vm test-platform-set prov1.domain.com ''' config = _get_asam_config...
[ "To", "add", "an", "ASAM", "platform", "using", "the", "specified", "ASAM", "platform", "set", "on", "the", "Novell", "Fan", "-", "Out", "Driver" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/runners/asam.py#L318-L368
[ "def", "add_platform", "(", "name", ",", "platform_set", ",", "server_url", ")", ":", "config", "=", "_get_asam_configuration", "(", "server_url", ")", "if", "not", "config", ":", "return", "False", "platforms", "=", "list_platforms", "(", "server_url", ")", "...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
_split_module_dicts
Create a copy of __salt__ dictionary with module.function and module[function] Takes advantage of Jinja's syntactic sugar lookup: .. code-block:: {{ salt.cmd.run('uptime') }}
salt/renderers/jinja.py
def _split_module_dicts(): ''' Create a copy of __salt__ dictionary with module.function and module[function] Takes advantage of Jinja's syntactic sugar lookup: .. code-block:: {{ salt.cmd.run('uptime') }} ''' if not isinstance(__salt__, dict): return __salt__ mod_dict = d...
def _split_module_dicts(): ''' Create a copy of __salt__ dictionary with module.function and module[function] Takes advantage of Jinja's syntactic sugar lookup: .. code-block:: {{ salt.cmd.run('uptime') }} ''' if not isinstance(__salt__, dict): return __salt__ mod_dict = d...
[ "Create", "a", "copy", "of", "__salt__", "dictionary", "with", "module", ".", "function", "and", "module", "[", "function", "]" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/renderers/jinja.py#L23-L42
[ "def", "_split_module_dicts", "(", ")", ":", "if", "not", "isinstance", "(", "__salt__", ",", "dict", ")", ":", "return", "__salt__", "mod_dict", "=", "dict", "(", "__salt__", ")", "for", "module_func_name", ",", "mod_fun", "in", "six", ".", "iteritems", "...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
render
Render the template_file, passing the functions and grains into the Jinja rendering system. :rtype: string
salt/renderers/jinja.py
def render(template_file, saltenv='base', sls='', argline='', context=None, tmplpath=None, **kws): ''' Render the template_file, passing the functions and grains into the Jinja rendering system. :rtype: string ''' from_str = argline == '-s' if not from_str and argl...
def render(template_file, saltenv='base', sls='', argline='', context=None, tmplpath=None, **kws): ''' Render the template_file, passing the functions and grains into the Jinja rendering system. :rtype: string ''' from_str = argline == '-s' if not from_str and argl...
[ "Render", "the", "template_file", "passing", "the", "functions", "and", "grains", "into", "the", "Jinja", "rendering", "system", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/renderers/jinja.py#L45-L77
[ "def", "render", "(", "template_file", ",", "saltenv", "=", "'base'", ",", "sls", "=", "''", ",", "argline", "=", "''", ",", "context", "=", "None", ",", "tmplpath", "=", "None", ",", "*", "*", "kws", ")", ":", "from_str", "=", "argline", "==", "'-...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
init
Initialize the directories for the files
salt/spm/pkgfiles/local.py
def init(**kwargs): ''' Initialize the directories for the files ''' formula_path = __opts__['formula_path'] pillar_path = __opts__['pillar_path'] reactor_path = __opts__['reactor_path'] for dir_ in (formula_path, pillar_path, reactor_path): if not os.path.exists(dir_): o...
def init(**kwargs): ''' Initialize the directories for the files ''' formula_path = __opts__['formula_path'] pillar_path = __opts__['pillar_path'] reactor_path = __opts__['reactor_path'] for dir_ in (formula_path, pillar_path, reactor_path): if not os.path.exists(dir_): o...
[ "Initialize", "the", "directories", "for", "the", "files" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/spm/pkgfiles/local.py#L34-L48
[ "def", "init", "(", "*", "*", "kwargs", ")", ":", "formula_path", "=", "__opts__", "[", "'formula_path'", "]", "pillar_path", "=", "__opts__", "[", "'pillar_path'", "]", "reactor_path", "=", "__opts__", "[", "'reactor_path'", "]", "for", "dir_", "in", "(", ...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
check_existing
Check the filesystem for existing files
salt/spm/pkgfiles/local.py
def check_existing(package, pkg_files, formula_def, conn=None): ''' Check the filesystem for existing files ''' if conn is None: conn = init() node_type = six.text_type(__opts__.get('spm_node_type')) existing_files = [] for member in pkg_files: if member.isdir(): ...
def check_existing(package, pkg_files, formula_def, conn=None): ''' Check the filesystem for existing files ''' if conn is None: conn = init() node_type = six.text_type(__opts__.get('spm_node_type')) existing_files = [] for member in pkg_files: if member.isdir(): ...
[ "Check", "the", "filesystem", "for", "existing", "files" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/spm/pkgfiles/local.py#L51-L100
[ "def", "check_existing", "(", "package", ",", "pkg_files", ",", "formula_def", ",", "conn", "=", "None", ")", ":", "if", "conn", "is", "None", ":", "conn", "=", "init", "(", ")", "node_type", "=", "six", ".", "text_type", "(", "__opts__", ".", "get", ...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
install_file
Install a single file to the file system
salt/spm/pkgfiles/local.py
def install_file(package, formula_tar, member, formula_def, conn=None): ''' Install a single file to the file system ''' if member.name == package: return False if conn is None: conn = init() node_type = six.text_type(__opts__.get('spm_node_type')) out_path = conn['formula...
def install_file(package, formula_tar, member, formula_def, conn=None): ''' Install a single file to the file system ''' if member.name == package: return False if conn is None: conn = init() node_type = six.text_type(__opts__.get('spm_node_type')) out_path = conn['formula...
[ "Install", "a", "single", "file", "to", "the", "file", "system" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/spm/pkgfiles/local.py#L103-L169
[ "def", "install_file", "(", "package", ",", "formula_tar", ",", "member", ",", "formula_def", ",", "conn", "=", "None", ")", ":", "if", "member", ".", "name", "==", "package", ":", "return", "False", "if", "conn", "is", "None", ":", "conn", "=", "init"...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
remove_file
Remove a single file from the file system
salt/spm/pkgfiles/local.py
def remove_file(path, conn=None): ''' Remove a single file from the file system ''' if conn is None: conn = init() log.debug('Removing package file %s', path) os.remove(path)
def remove_file(path, conn=None): ''' Remove a single file from the file system ''' if conn is None: conn = init() log.debug('Removing package file %s', path) os.remove(path)
[ "Remove", "a", "single", "file", "from", "the", "file", "system" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/spm/pkgfiles/local.py#L172-L180
[ "def", "remove_file", "(", "path", ",", "conn", "=", "None", ")", ":", "if", "conn", "is", "None", ":", "conn", "=", "init", "(", ")", "log", ".", "debug", "(", "'Removing package file %s'", ",", "path", ")", "os", ".", "remove", "(", "path", ")" ]
e8541fd6e744ab0df786c0f76102e41631f45d46
train
hash_file
Get the hexdigest hash value of a file
salt/spm/pkgfiles/local.py
def hash_file(path, hashobj, conn=None): ''' Get the hexdigest hash value of a file ''' if os.path.isdir(path): return '' with salt.utils.files.fopen(path, 'r') as f: hashobj.update(salt.utils.stringutils.to_bytes(f.read())) return hashobj.hexdigest()
def hash_file(path, hashobj, conn=None): ''' Get the hexdigest hash value of a file ''' if os.path.isdir(path): return '' with salt.utils.files.fopen(path, 'r') as f: hashobj.update(salt.utils.stringutils.to_bytes(f.read())) return hashobj.hexdigest()
[ "Get", "the", "hexdigest", "hash", "value", "of", "a", "file" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/spm/pkgfiles/local.py#L183-L192
[ "def", "hash_file", "(", "path", ",", "hashobj", ",", "conn", "=", "None", ")", ":", "if", "os", ".", "path", ".", "isdir", "(", "path", ")", ":", "return", "''", "with", "salt", ".", "utils", ".", "files", ".", "fopen", "(", "path", ",", "'r'", ...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
set_
Ensure the specified policy is set name the name of a single policy to configure setting the configuration setting for the single named policy if this argument is used the computer_policy/user_policy arguments will be ignored policy_class the policy class of the single nam...
salt/states/win_lgpo.py
def set_(name, setting=None, policy_class=None, computer_policy=None, user_policy=None, cumulative_rights_assignments=True, adml_language='en-US'): ''' Ensure the specified policy is set name the name of a single policy to configure setting...
def set_(name, setting=None, policy_class=None, computer_policy=None, user_policy=None, cumulative_rights_assignments=True, adml_language='en-US'): ''' Ensure the specified policy is set name the name of a single policy to configure setting...
[ "Ensure", "the", "specified", "policy", "is", "set" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/states/win_lgpo.py#L130-L361
[ "def", "set_", "(", "name", ",", "setting", "=", "None", ",", "policy_class", "=", "None", ",", "computer_policy", "=", "None", ",", "user_policy", "=", "None", ",", "cumulative_rights_assignments", "=", "True", ",", "adml_language", "=", "'en-US'", ")", ":"...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
xor
XOR definition for multiple variables
salt/utils/value.py
def xor(*variables): ''' XOR definition for multiple variables ''' sum_ = False for value in variables: sum_ = sum_ ^ bool(value) return sum_
def xor(*variables): ''' XOR definition for multiple variables ''' sum_ = False for value in variables: sum_ = sum_ ^ bool(value) return sum_
[ "XOR", "definition", "for", "multiple", "variables" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/utils/value.py#L12-L19
[ "def", "xor", "(", "*", "variables", ")", ":", "sum_", "=", "False", "for", "value", "in", "variables", ":", "sum_", "=", "sum_", "^", "bool", "(", "value", ")", "return", "sum_" ]
e8541fd6e744ab0df786c0f76102e41631f45d46
train
usage
Return usage information for volumes mounted on this minion CLI Example: .. code-block:: bash salt '*' disk.usage
salt/modules/win_disk.py
def usage(): ''' Return usage information for volumes mounted on this minion CLI Example: .. code-block:: bash salt '*' disk.usage ''' drives = [] ret = {} drive_bitmask = ctypes.windll.kernel32.GetLogicalDrives() for letter in UPPERCASE: if drive_bitmask & 1: ...
def usage(): ''' Return usage information for volumes mounted on this minion CLI Example: .. code-block:: bash salt '*' disk.usage ''' drives = [] ret = {} drive_bitmask = ctypes.windll.kernel32.GetLogicalDrives() for letter in UPPERCASE: if drive_bitmask & 1: ...
[ "Return", "usage", "information", "for", "volumes", "mounted", "on", "this", "minion" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/win_disk.py#L43-L84
[ "def", "usage", "(", ")", ":", "drives", "=", "[", "]", "ret", "=", "{", "}", "drive_bitmask", "=", "ctypes", ".", "windll", ".", "kernel32", ".", "GetLogicalDrives", "(", ")", "for", "letter", "in", "UPPERCASE", ":", "if", "drive_bitmask", "&", "1", ...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
_convert_datetime_str
modify any key-value pair where value is a datetime object to a string.
salt/modules/boto_apigateway.py
def _convert_datetime_str(response): ''' modify any key-value pair where value is a datetime object to a string. ''' if response: return dict([(k, '{0}'.format(v)) if isinstance(v, datetime.date) else (k, v) for k, v in six.iteritems(response)]) return None
def _convert_datetime_str(response): ''' modify any key-value pair where value is a datetime object to a string. ''' if response: return dict([(k, '{0}'.format(v)) if isinstance(v, datetime.date) else (k, v) for k, v in six.iteritems(response)]) return None
[ "modify", "any", "key", "-", "value", "pair", "where", "value", "is", "a", "datetime", "object", "to", "a", "string", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_apigateway.py#L133-L139
[ "def", "_convert_datetime_str", "(", "response", ")", ":", "if", "response", ":", "return", "dict", "(", "[", "(", "k", ",", "'{0}'", ".", "format", "(", "v", ")", ")", "if", "isinstance", "(", "v", ",", "datetime", ".", "date", ")", "else", "(", "...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
_multi_call
Retrieve full list of values for the contentkey from a boto3 ApiGateway client function that may be paged via 'position'
salt/modules/boto_apigateway.py
def _multi_call(function, contentkey, *args, **kwargs): ''' Retrieve full list of values for the contentkey from a boto3 ApiGateway client function that may be paged via 'position' ''' ret = function(*args, **kwargs) position = ret.get('position') while position: more = function(*ar...
def _multi_call(function, contentkey, *args, **kwargs): ''' Retrieve full list of values for the contentkey from a boto3 ApiGateway client function that may be paged via 'position' ''' ret = function(*args, **kwargs) position = ret.get('position') while position: more = function(*ar...
[ "Retrieve", "full", "list", "of", "values", "for", "the", "contentkey", "from", "a", "boto3", "ApiGateway", "client", "function", "that", "may", "be", "paged", "via", "position" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_apigateway.py#L156-L168
[ "def", "_multi_call", "(", "function", ",", "contentkey", ",", "*", "args", ",", "*", "*", "kwargs", ")", ":", "ret", "=", "function", "(", "*", "args", ",", "*", "*", "kwargs", ")", "position", "=", "ret", ".", "get", "(", "'position'", ")", "whil...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
_find_apis_by_name
get and return list of matching rest api information by the given name and desc. If rest api name evaluates to False, return all apis w/o filtering the name.
salt/modules/boto_apigateway.py
def _find_apis_by_name(name, description=None, region=None, key=None, keyid=None, profile=None): ''' get and return list of matching rest api information by the given name and desc. If rest api name evaluates to False, return all apis w/o filtering the name. ''' try: c...
def _find_apis_by_name(name, description=None, region=None, key=None, keyid=None, profile=None): ''' get and return list of matching rest api information by the given name and desc. If rest api name evaluates to False, return all apis w/o filtering the name. ''' try: c...
[ "get", "and", "return", "list", "of", "matching", "rest", "api", "information", "by", "the", "given", "name", "and", "desc", ".", "If", "rest", "api", "name", "evaluates", "to", "False", "return", "all", "apis", "w", "/", "o", "filtering", "the", "name",...
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_apigateway.py#L171-L186
[ "def", "_find_apis_by_name", "(", "name", ",", "description", "=", "None", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "try", ":", "conn", "=", "_get_conn", "(", "region", "="...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
describe_apis
Returns all rest apis in the defined region. If optional parameter name is included, returns all rest apis matching the name in the defined region. CLI Example: .. code-block:: bash salt myminion boto_apigateway.describe_apis salt myminion boto_apigateway.describe_apis name='api name' ...
salt/modules/boto_apigateway.py
def describe_apis(name=None, description=None, region=None, key=None, keyid=None, profile=None): ''' Returns all rest apis in the defined region. If optional parameter name is included, returns all rest apis matching the name in the defined region. CLI Example: .. code-block:: bash salt ...
def describe_apis(name=None, description=None, region=None, key=None, keyid=None, profile=None): ''' Returns all rest apis in the defined region. If optional parameter name is included, returns all rest apis matching the name in the defined region. CLI Example: .. code-block:: bash salt ...
[ "Returns", "all", "rest", "apis", "in", "the", "defined", "region", ".", "If", "optional", "parameter", "name", "is", "included", "returns", "all", "rest", "apis", "matching", "the", "name", "in", "the", "defined", "region", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_apigateway.py#L189-L211
[ "def", "describe_apis", "(", "name", "=", "None", ",", "description", "=", "None", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "if", "name", ":", "return", "_find_apis_by_name",...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
api_exists
Check to see if the given Rest API Name and optionally description exists. CLI Example: .. code-block:: bash salt myminion boto_apigateway.exists myapi_name
salt/modules/boto_apigateway.py
def api_exists(name, description=None, region=None, key=None, keyid=None, profile=None): ''' Check to see if the given Rest API Name and optionally description exists. CLI Example: .. code-block:: bash salt myminion boto_apigateway.exists myapi_name ''' apis = _find_apis_by_name(name...
def api_exists(name, description=None, region=None, key=None, keyid=None, profile=None): ''' Check to see if the given Rest API Name and optionally description exists. CLI Example: .. code-block:: bash salt myminion boto_apigateway.exists myapi_name ''' apis = _find_apis_by_name(name...
[ "Check", "to", "see", "if", "the", "given", "Rest", "API", "Name", "and", "optionally", "description", "exists", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_apigateway.py#L214-L227
[ "def", "api_exists", "(", "name", ",", "description", "=", "None", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "apis", "=", "_find_apis_by_name", "(", "name", ",", "description"...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
create_api
Create a new REST API Service with the given name Returns {created: True} if the rest api was created and returns {created: False} if the rest api was not created. CLI Example: .. code-block:: bash salt myminion boto_apigateway.create_api myapi_name api_description
salt/modules/boto_apigateway.py
def create_api(name, description, cloneFrom=None, region=None, key=None, keyid=None, profile=None): ''' Create a new REST API Service with the given name Returns {created: True} if the rest api was created and returns {created: False} if the rest api was not created. CLI Example: ...
def create_api(name, description, cloneFrom=None, region=None, key=None, keyid=None, profile=None): ''' Create a new REST API Service with the given name Returns {created: True} if the rest api was created and returns {created: False} if the rest api was not created. CLI Example: ...
[ "Create", "a", "new", "REST", "API", "Service", "with", "the", "given", "name" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_apigateway.py#L230-L254
[ "def", "create_api", "(", "name", ",", "description", ",", "cloneFrom", "=", "None", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "try", ":", "conn", "=", "_get_conn", "(", "...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
delete_api
Delete all REST API Service with the given name and an optional API description Returns {deleted: True, count: deleted_count} if apis were deleted, and returns {deleted: False} if error or not found. CLI Example: .. code-block:: bash salt myminion boto_apigateway.delete_api myapi_name ...
salt/modules/boto_apigateway.py
def delete_api(name, description=None, region=None, key=None, keyid=None, profile=None): ''' Delete all REST API Service with the given name and an optional API description Returns {deleted: True, count: deleted_count} if apis were deleted, and returns {deleted: False} if error or not found. CLI E...
def delete_api(name, description=None, region=None, key=None, keyid=None, profile=None): ''' Delete all REST API Service with the given name and an optional API description Returns {deleted: True, count: deleted_count} if apis were deleted, and returns {deleted: False} if error or not found. CLI E...
[ "Delete", "all", "REST", "API", "Service", "with", "the", "given", "name", "and", "an", "optional", "API", "description" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_apigateway.py#L257-L285
[ "def", "delete_api", "(", "name", ",", "description", "=", "None", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "try", ":", "conn_params", "=", "dict", "(", "region", "=", "r...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
describe_api_resources
Given rest api id, return all resources for this api. CLI Example: .. code-block:: bash salt myminion boto_apigateway.describe_api_resources myapi_id
salt/modules/boto_apigateway.py
def describe_api_resources(restApiId, region=None, key=None, keyid=None, profile=None): ''' Given rest api id, return all resources for this api. CLI Example: .. code-block:: bash salt myminion boto_apigateway.describe_api_resources myapi_id ''' try: conn = _get_conn(region=r...
def describe_api_resources(restApiId, region=None, key=None, keyid=None, profile=None): ''' Given rest api id, return all resources for this api. CLI Example: .. code-block:: bash salt myminion boto_apigateway.describe_api_resources myapi_id ''' try: conn = _get_conn(region=r...
[ "Given", "rest", "api", "id", "return", "all", "resources", "for", "this", "api", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_apigateway.py#L288-L306
[ "def", "describe_api_resources", "(", "restApiId", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "try", ":", "conn", "=", "_get_conn", "(", "region", "=", "region", ",", "key", ...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
describe_api_resource
Given rest api id, and an absolute resource path, returns the resource id for the given path. CLI Example: .. code-block:: bash salt myminion boto_apigateway.describe_api_resource myapi_id resource_path
salt/modules/boto_apigateway.py
def describe_api_resource(restApiId, path, region=None, key=None, keyid=None, profile=None): ''' Given rest api id, and an absolute resource path, returns the resource id for the given path. CLI Example: .. code-block:: bash salt myminion boto_apigateway.describe...
def describe_api_resource(restApiId, path, region=None, key=None, keyid=None, profile=None): ''' Given rest api id, and an absolute resource path, returns the resource id for the given path. CLI Example: .. code-block:: bash salt myminion boto_apigateway.describe...
[ "Given", "rest", "api", "id", "and", "an", "absolute", "resource", "path", "returns", "the", "resource", "id", "for", "the", "given", "path", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_apigateway.py#L309-L329
[ "def", "describe_api_resource", "(", "restApiId", ",", "path", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "r", "=", "describe_api_resources", "(", "restApiId", ",", "region", "="...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
create_api_resources
Given rest api id, and an absolute resource path, create all the resources and return all resources in the resourcepath, returns False on failure. CLI Example: .. code-block:: bash salt myminion boto_apigateway.create_api_resources myapi_id resource_path
salt/modules/boto_apigateway.py
def create_api_resources(restApiId, path, region=None, key=None, keyid=None, profile=None): ''' Given rest api id, and an absolute resource path, create all the resources and return all resources in the resourcepath, returns False on failure. CLI Example: .. code-block:: b...
def create_api_resources(restApiId, path, region=None, key=None, keyid=None, profile=None): ''' Given rest api id, and an absolute resource path, create all the resources and return all resources in the resourcepath, returns False on failure. CLI Example: .. code-block:: b...
[ "Given", "rest", "api", "id", "and", "an", "absolute", "resource", "path", "create", "all", "the", "resources", "and", "return", "all", "resources", "in", "the", "resourcepath", "returns", "False", "on", "failure", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_apigateway.py#L332-L367
[ "def", "create_api_resources", "(", "restApiId", ",", "path", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "path_parts", "=", "path", ".", "split", "(", "'/'", ")", "created", ...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
delete_api_resources
Given restApiId and an absolute resource path, delete the resources starting from the absolute resource path. If resourcepath is the root resource '/', the function will return False. Returns False on failure. CLI Example: .. code-block:: bash salt myminion boto_apigateway.delete_api_resource...
salt/modules/boto_apigateway.py
def delete_api_resources(restApiId, path, region=None, key=None, keyid=None, profile=None): ''' Given restApiId and an absolute resource path, delete the resources starting from the absolute resource path. If resourcepath is the root resource '/', the function will return False....
def delete_api_resources(restApiId, path, region=None, key=None, keyid=None, profile=None): ''' Given restApiId and an absolute resource path, delete the resources starting from the absolute resource path. If resourcepath is the root resource '/', the function will return False....
[ "Given", "restApiId", "and", "an", "absolute", "resource", "path", "delete", "the", "resources", "starting", "from", "the", "absolute", "resource", "path", ".", "If", "resourcepath", "is", "the", "root", "resource", "/", "the", "function", "will", "return", "F...
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_apigateway.py#L370-L396
[ "def", "delete_api_resources", "(", "restApiId", ",", "path", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "if", "path", "==", "'/'", ":", "return", "{", "'deleted'", ":", "Fal...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
describe_api_key
Gets info about the given api key CLI Example: .. code-block:: bash salt myminion boto_apigateway.describe_api_key apigw_api_key
salt/modules/boto_apigateway.py
def describe_api_key(apiKey, region=None, key=None, keyid=None, profile=None): ''' Gets info about the given api key CLI Example: .. code-block:: bash salt myminion boto_apigateway.describe_api_key apigw_api_key ''' try: conn = _get_conn(region=region, key=key, keyid=keyid, p...
def describe_api_key(apiKey, region=None, key=None, keyid=None, profile=None): ''' Gets info about the given api key CLI Example: .. code-block:: bash salt myminion boto_apigateway.describe_api_key apigw_api_key ''' try: conn = _get_conn(region=region, key=key, keyid=keyid, p...
[ "Gets", "info", "about", "the", "given", "api", "key" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_apigateway.py#L427-L443
[ "def", "describe_api_key", "(", "apiKey", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "try", ":", "conn", "=", "_get_conn", "(", "region", "=", "region", ",", "key", "=", "k...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
describe_api_keys
Gets information about the defined API Keys. Return list of apiKeys. CLI Example: .. code-block:: bash salt myminion boto_apigateway.describe_api_keys
salt/modules/boto_apigateway.py
def describe_api_keys(region=None, key=None, keyid=None, profile=None): ''' Gets information about the defined API Keys. Return list of apiKeys. CLI Example: .. code-block:: bash salt myminion boto_apigateway.describe_api_keys ''' try: conn = _get_conn(region=region, key=key...
def describe_api_keys(region=None, key=None, keyid=None, profile=None): ''' Gets information about the defined API Keys. Return list of apiKeys. CLI Example: .. code-block:: bash salt myminion boto_apigateway.describe_api_keys ''' try: conn = _get_conn(region=region, key=key...
[ "Gets", "information", "about", "the", "defined", "API", "Keys", ".", "Return", "list", "of", "apiKeys", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_apigateway.py#L446-L463
[ "def", "describe_api_keys", "(", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "try", ":", "conn", "=", "_get_conn", "(", "region", "=", "region", ",", "key", "=", "key", ",", "key...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
create_api_key
Create an API key given name and description. An optional enabled argument can be provided. If provided, the valid values are True|False. This argument defaults to True. An optional stageKeys argument can be provided in the form of list of dictionary with 'restApiId' and 'stageName' as keys. CL...
salt/modules/boto_apigateway.py
def create_api_key(name, description, enabled=True, stageKeys=None, region=None, key=None, keyid=None, profile=None): ''' Create an API key given name and description. An optional enabled argument can be provided. If provided, the valid values are True|False. This argument defaults...
def create_api_key(name, description, enabled=True, stageKeys=None, region=None, key=None, keyid=None, profile=None): ''' Create an API key given name and description. An optional enabled argument can be provided. If provided, the valid values are True|False. This argument defaults...
[ "Create", "an", "API", "key", "given", "name", "and", "description", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_apigateway.py#L466-L501
[ "def", "create_api_key", "(", "name", ",", "description", ",", "enabled", "=", "True", ",", "stageKeys", "=", "None", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "try", ":", ...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
delete_api_key
Deletes a given apiKey CLI Example: .. code-block:: bash salt myminion boto_apigateway.delete_api_key apikeystring
salt/modules/boto_apigateway.py
def delete_api_key(apiKey, region=None, key=None, keyid=None, profile=None): ''' Deletes a given apiKey CLI Example: .. code-block:: bash salt myminion boto_apigateway.delete_api_key apikeystring ''' try: conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile) ...
def delete_api_key(apiKey, region=None, key=None, keyid=None, profile=None): ''' Deletes a given apiKey CLI Example: .. code-block:: bash salt myminion boto_apigateway.delete_api_key apikeystring ''' try: conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile) ...
[ "Deletes", "a", "given", "apiKey" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_apigateway.py#L504-L520
[ "def", "delete_api_key", "(", "apiKey", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "try", ":", "conn", "=", "_get_conn", "(", "region", "=", "region", ",", "key", "=", "key...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
_api_key_patch_replace
the replace patch operation on an ApiKey resource
salt/modules/boto_apigateway.py
def _api_key_patch_replace(conn, apiKey, path, value): ''' the replace patch operation on an ApiKey resource ''' response = conn.update_api_key(apiKey=apiKey, patchOperations=[{'op': 'replace', 'path': path, 'value': value}]) return response
def _api_key_patch_replace(conn, apiKey, path, value): ''' the replace patch operation on an ApiKey resource ''' response = conn.update_api_key(apiKey=apiKey, patchOperations=[{'op': 'replace', 'path': path, 'value': value}]) return response
[ "the", "replace", "patch", "operation", "on", "an", "ApiKey", "resource" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_apigateway.py#L523-L529
[ "def", "_api_key_patch_replace", "(", "conn", ",", "apiKey", ",", "path", ",", "value", ")", ":", "response", "=", "conn", ".", "update_api_key", "(", "apiKey", "=", "apiKey", ",", "patchOperations", "=", "[", "{", "'op'", ":", "'replace'", ",", "'path'", ...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
_api_key_patch_add
the add patch operation for a list of (path, value) tuples on an ApiKey resource list path
salt/modules/boto_apigateway.py
def _api_key_patch_add(conn, apiKey, pvlist): ''' the add patch operation for a list of (path, value) tuples on an ApiKey resource list path ''' response = conn.update_api_key(apiKey=apiKey, patchOperations=_api_key_patchops('add', pvlist)) return response
def _api_key_patch_add(conn, apiKey, pvlist): ''' the add patch operation for a list of (path, value) tuples on an ApiKey resource list path ''' response = conn.update_api_key(apiKey=apiKey, patchOperations=_api_key_patchops('add', pvlist)) return response
[ "the", "add", "patch", "operation", "for", "a", "list", "of", "(", "path", "value", ")", "tuples", "on", "an", "ApiKey", "resource", "list", "path" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_apigateway.py#L539-L545
[ "def", "_api_key_patch_add", "(", "conn", ",", "apiKey", ",", "pvlist", ")", ":", "response", "=", "conn", ".", "update_api_key", "(", "apiKey", "=", "apiKey", ",", "patchOperations", "=", "_api_key_patchops", "(", "'add'", ",", "pvlist", ")", ")", "return",...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
_api_key_patch_remove
the remove patch operation for a list of (path, value) tuples on an ApiKey resource list path
salt/modules/boto_apigateway.py
def _api_key_patch_remove(conn, apiKey, pvlist): ''' the remove patch operation for a list of (path, value) tuples on an ApiKey resource list path ''' response = conn.update_api_key(apiKey=apiKey, patchOperations=_api_key_patchops('remove', pvlist)) return response
def _api_key_patch_remove(conn, apiKey, pvlist): ''' the remove patch operation for a list of (path, value) tuples on an ApiKey resource list path ''' response = conn.update_api_key(apiKey=apiKey, patchOperations=_api_key_patchops('remove', pvlist)) return response
[ "the", "remove", "patch", "operation", "for", "a", "list", "of", "(", "path", "value", ")", "tuples", "on", "an", "ApiKey", "resource", "list", "path" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_apigateway.py#L548-L554
[ "def", "_api_key_patch_remove", "(", "conn", ",", "apiKey", ",", "pvlist", ")", ":", "response", "=", "conn", ".", "update_api_key", "(", "apiKey", "=", "apiKey", ",", "patchOperations", "=", "_api_key_patchops", "(", "'remove'", ",", "pvlist", ")", ")", "re...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
update_api_key_description
update the given apiKey with the given description. CLI Example: .. code-block:: bash salt myminion boto_apigateway.update_api_key_description api_key description
salt/modules/boto_apigateway.py
def update_api_key_description(apiKey, description, region=None, key=None, keyid=None, profile=None): ''' update the given apiKey with the given description. CLI Example: .. code-block:: bash salt myminion boto_apigateway.update_api_key_description api_key description ''' try: ...
def update_api_key_description(apiKey, description, region=None, key=None, keyid=None, profile=None): ''' update the given apiKey with the given description. CLI Example: .. code-block:: bash salt myminion boto_apigateway.update_api_key_description api_key description ''' try: ...
[ "update", "the", "given", "apiKey", "with", "the", "given", "description", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_apigateway.py#L557-L573
[ "def", "update_api_key_description", "(", "apiKey", ",", "description", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "try", ":", "conn", "=", "_get_conn", "(", "region", "=", "re...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
enable_api_key
enable the given apiKey. CLI Example: .. code-block:: bash salt myminion boto_apigateway.enable_api_key api_key
salt/modules/boto_apigateway.py
def enable_api_key(apiKey, region=None, key=None, keyid=None, profile=None): ''' enable the given apiKey. CLI Example: .. code-block:: bash salt myminion boto_apigateway.enable_api_key api_key ''' try: conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile) ...
def enable_api_key(apiKey, region=None, key=None, keyid=None, profile=None): ''' enable the given apiKey. CLI Example: .. code-block:: bash salt myminion boto_apigateway.enable_api_key api_key ''' try: conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile) ...
[ "enable", "the", "given", "apiKey", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_apigateway.py#L576-L592
[ "def", "enable_api_key", "(", "apiKey", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "try", ":", "conn", "=", "_get_conn", "(", "region", "=", "region", ",", "key", "=", "key...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
associate_api_key_stagekeys
associate the given stagekeyslist to the given apiKey. CLI Example: .. code-block:: bash salt myminion boto_apigateway.associate_stagekeys_api_key \\ api_key '["restapi id/stage name", ...]'
salt/modules/boto_apigateway.py
def associate_api_key_stagekeys(apiKey, stagekeyslist, region=None, key=None, keyid=None, profile=None): ''' associate the given stagekeyslist to the given apiKey. CLI Example: .. code-block:: bash salt myminion boto_apigateway.associate_stagekeys_api_key \\ api_key '["restapi...
def associate_api_key_stagekeys(apiKey, stagekeyslist, region=None, key=None, keyid=None, profile=None): ''' associate the given stagekeyslist to the given apiKey. CLI Example: .. code-block:: bash salt myminion boto_apigateway.associate_stagekeys_api_key \\ api_key '["restapi...
[ "associate", "the", "given", "stagekeyslist", "to", "the", "given", "apiKey", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_apigateway.py#L614-L632
[ "def", "associate_api_key_stagekeys", "(", "apiKey", ",", "stagekeyslist", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "try", ":", "conn", "=", "_get_conn", "(", "region", "=", ...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
disassociate_api_key_stagekeys
disassociate the given stagekeyslist to the given apiKey. CLI Example: .. code-block:: bash salt myminion boto_apigateway.disassociate_stagekeys_api_key \\ api_key '["restapi id/stage name", ...]'
salt/modules/boto_apigateway.py
def disassociate_api_key_stagekeys(apiKey, stagekeyslist, region=None, key=None, keyid=None, profile=None): ''' disassociate the given stagekeyslist to the given apiKey. CLI Example: .. code-block:: bash salt myminion boto_apigateway.disassociate_stagekeys_api_key \\ api_key '...
def disassociate_api_key_stagekeys(apiKey, stagekeyslist, region=None, key=None, keyid=None, profile=None): ''' disassociate the given stagekeyslist to the given apiKey. CLI Example: .. code-block:: bash salt myminion boto_apigateway.disassociate_stagekeys_api_key \\ api_key '...
[ "disassociate", "the", "given", "stagekeyslist", "to", "the", "given", "apiKey", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_apigateway.py#L635-L653
[ "def", "disassociate_api_key_stagekeys", "(", "apiKey", ",", "stagekeyslist", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "try", ":", "conn", "=", "_get_conn", "(", "region", "=",...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
describe_api_deployments
Gets information about the defined API Deployments. Return list of api deployments. CLI Example: .. code-block:: bash salt myminion boto_apigateway.describe_api_deployments restApiId
salt/modules/boto_apigateway.py
def describe_api_deployments(restApiId, region=None, key=None, keyid=None, profile=None): ''' Gets information about the defined API Deployments. Return list of api deployments. CLI Example: .. code-block:: bash salt myminion boto_apigateway.describe_api_deployments restApiId ''' tr...
def describe_api_deployments(restApiId, region=None, key=None, keyid=None, profile=None): ''' Gets information about the defined API Deployments. Return list of api deployments. CLI Example: .. code-block:: bash salt myminion boto_apigateway.describe_api_deployments restApiId ''' tr...
[ "Gets", "information", "about", "the", "defined", "API", "Deployments", ".", "Return", "list", "of", "api", "deployments", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_apigateway.py#L656-L681
[ "def", "describe_api_deployments", "(", "restApiId", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "try", ":", "conn", "=", "_get_conn", "(", "region", "=", "region", ",", "key", ...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
describe_api_deployment
Get API deployment for a given restApiId and deploymentId. CLI Example: .. code-block:: bash salt myminion boto_apigateway.describe_api_deployent restApiId deploymentId
salt/modules/boto_apigateway.py
def describe_api_deployment(restApiId, deploymentId, region=None, key=None, keyid=None, profile=None): ''' Get API deployment for a given restApiId and deploymentId. CLI Example: .. code-block:: bash salt myminion boto_apigateway.describe_api_deployent restApiId deploymentId ''' try:...
def describe_api_deployment(restApiId, deploymentId, region=None, key=None, keyid=None, profile=None): ''' Get API deployment for a given restApiId and deploymentId. CLI Example: .. code-block:: bash salt myminion boto_apigateway.describe_api_deployent restApiId deploymentId ''' try:...
[ "Get", "API", "deployment", "for", "a", "given", "restApiId", "and", "deploymentId", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_apigateway.py#L684-L700
[ "def", "describe_api_deployment", "(", "restApiId", ",", "deploymentId", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "try", ":", "conn", "=", "_get_conn", "(", "region", "=", "r...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
activate_api_deployment
Activates previously deployed deployment for a given stage CLI Example: .. code-block:: bash salt myminion boto_apigateway.activate_api_deployent restApiId stagename deploymentId
salt/modules/boto_apigateway.py
def activate_api_deployment(restApiId, stageName, deploymentId, region=None, key=None, keyid=None, profile=None): ''' Activates previously deployed deployment for a given stage CLI Example: .. code-block:: bash salt myminion boto_apigateway.activate_api_deployent r...
def activate_api_deployment(restApiId, stageName, deploymentId, region=None, key=None, keyid=None, profile=None): ''' Activates previously deployed deployment for a given stage CLI Example: .. code-block:: bash salt myminion boto_apigateway.activate_api_deployent r...
[ "Activates", "previously", "deployed", "deployment", "for", "a", "given", "stage" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_apigateway.py#L703-L723
[ "def", "activate_api_deployment", "(", "restApiId", ",", "stageName", ",", "deploymentId", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "try", ":", "conn", "=", "_get_conn", "(", ...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
create_api_deployment
Creates a new API deployment. CLI Example: .. code-block:: bash salt myminion boto_apigateway.create_api_deployent restApiId stagename stageDescription='' \\ description='' cacheClusterEnabled=True|False cacheClusterSize=0.5 variables='{"name": "value"}'
salt/modules/boto_apigateway.py
def create_api_deployment(restApiId, stageName, stageDescription='', description='', cacheClusterEnabled=False, cacheClusterSize='0.5', variables=None, region=None, key=None, keyid=None, profile=None): ''' Creates a new API deployment. CLI Example: ....
def create_api_deployment(restApiId, stageName, stageDescription='', description='', cacheClusterEnabled=False, cacheClusterSize='0.5', variables=None, region=None, key=None, keyid=None, profile=None): ''' Creates a new API deployment. CLI Example: ....
[ "Creates", "a", "new", "API", "deployment", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_apigateway.py#L726-L750
[ "def", "create_api_deployment", "(", "restApiId", ",", "stageName", ",", "stageDescription", "=", "''", ",", "description", "=", "''", ",", "cacheClusterEnabled", "=", "False", ",", "cacheClusterSize", "=", "'0.5'", ",", "variables", "=", "None", ",", "region", ...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
delete_api_deployment
Deletes API deployment for a given restApiId and deploymentID CLI Example: .. code-block:: bash salt myminion boto_apigateway.delete_api_deployent restApiId deploymentId
salt/modules/boto_apigateway.py
def delete_api_deployment(restApiId, deploymentId, region=None, key=None, keyid=None, profile=None): ''' Deletes API deployment for a given restApiId and deploymentID CLI Example: .. code-block:: bash salt myminion boto_apigateway.delete_api_deployent restApiId deploymentId ''' try: ...
def delete_api_deployment(restApiId, deploymentId, region=None, key=None, keyid=None, profile=None): ''' Deletes API deployment for a given restApiId and deploymentID CLI Example: .. code-block:: bash salt myminion boto_apigateway.delete_api_deployent restApiId deploymentId ''' try: ...
[ "Deletes", "API", "deployment", "for", "a", "given", "restApiId", "and", "deploymentID" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_apigateway.py#L753-L769
[ "def", "delete_api_deployment", "(", "restApiId", ",", "deploymentId", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "try", ":", "conn", "=", "_get_conn", "(", "region", "=", "reg...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
overwrite_api_stage_variables
Overwrite the stage variables for the given restApiId and stage name with the given variables, variables must be in the form of a dictionary. Overwrite will always remove all the existing stage variables associated with the given restApiId and stage name, follow by the adding of all the variables specified...
salt/modules/boto_apigateway.py
def overwrite_api_stage_variables(restApiId, stageName, variables, region=None, key=None, keyid=None, profile=None): ''' Overwrite the stage variables for the given restApiId and stage name with the given variables, variables must be in the form of a dictionary. Overwrite will always remove all the existin...
def overwrite_api_stage_variables(restApiId, stageName, variables, region=None, key=None, keyid=None, profile=None): ''' Overwrite the stage variables for the given restApiId and stage name with the given variables, variables must be in the form of a dictionary. Overwrite will always remove all the existin...
[ "Overwrite", "the", "stage", "variables", "for", "the", "given", "restApiId", "and", "stage", "name", "with", "the", "given", "variables", "variables", "must", "be", "in", "the", "form", "of", "a", "dictionary", ".", "Overwrite", "will", "always", "remove", ...
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_apigateway.py#L772-L815
[ "def", "overwrite_api_stage_variables", "(", "restApiId", ",", "stageName", ",", "variables", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "try", ":", "res", "=", "describe_api_stage...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
describe_api_stage
Get API stage for a given apiID and stage name CLI Example: .. code-block:: bash salt myminion boto_apigateway.describe_api_stage restApiId stageName
salt/modules/boto_apigateway.py
def describe_api_stage(restApiId, stageName, region=None, key=None, keyid=None, profile=None): ''' Get API stage for a given apiID and stage name CLI Example: .. code-block:: bash salt myminion boto_apigateway.describe_api_stage restApiId stageName ''' try: conn = _get_conn(r...
def describe_api_stage(restApiId, stageName, region=None, key=None, keyid=None, profile=None): ''' Get API stage for a given apiID and stage name CLI Example: .. code-block:: bash salt myminion boto_apigateway.describe_api_stage restApiId stageName ''' try: conn = _get_conn(r...
[ "Get", "API", "stage", "for", "a", "given", "apiID", "and", "stage", "name" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_apigateway.py#L818-L834
[ "def", "describe_api_stage", "(", "restApiId", ",", "stageName", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "try", ":", "conn", "=", "_get_conn", "(", "region", "=", "region", ...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
describe_api_stages
Get all API stages for a given apiID and deploymentID CLI Example: .. code-block:: bash salt myminion boto_apigateway.describe_api_stages restApiId deploymentId
salt/modules/boto_apigateway.py
def describe_api_stages(restApiId, deploymentId, region=None, key=None, keyid=None, profile=None): ''' Get all API stages for a given apiID and deploymentID CLI Example: .. code-block:: bash salt myminion boto_apigateway.describe_api_stages restApiId deploymentId ''' try: con...
def describe_api_stages(restApiId, deploymentId, region=None, key=None, keyid=None, profile=None): ''' Get all API stages for a given apiID and deploymentID CLI Example: .. code-block:: bash salt myminion boto_apigateway.describe_api_stages restApiId deploymentId ''' try: con...
[ "Get", "all", "API", "stages", "for", "a", "given", "apiID", "and", "deploymentID" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_apigateway.py#L837-L853
[ "def", "describe_api_stages", "(", "restApiId", ",", "deploymentId", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "try", ":", "conn", "=", "_get_conn", "(", "region", "=", "regio...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
create_api_stage
Creates a new API stage for a given restApiId and deploymentId. CLI Example: .. code-block:: bash salt myminion boto_apigateway.create_api_stage restApiId stagename deploymentId \\ description='' cacheClusterEnabled=True|False cacheClusterSize='0.5' variables='{"name": "value"}'
salt/modules/boto_apigateway.py
def create_api_stage(restApiId, stageName, deploymentId, description='', cacheClusterEnabled=False, cacheClusterSize='0.5', variables=None, region=None, key=None, keyid=None, profile=None): ''' Creates a new API stage for a given restApiId and deploymentId. CLI Exa...
def create_api_stage(restApiId, stageName, deploymentId, description='', cacheClusterEnabled=False, cacheClusterSize='0.5', variables=None, region=None, key=None, keyid=None, profile=None): ''' Creates a new API stage for a given restApiId and deploymentId. CLI Exa...
[ "Creates", "a", "new", "API", "stage", "for", "a", "given", "restApiId", "and", "deploymentId", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_apigateway.py#L856-L879
[ "def", "create_api_stage", "(", "restApiId", ",", "stageName", ",", "deploymentId", ",", "description", "=", "''", ",", "cacheClusterEnabled", "=", "False", ",", "cacheClusterSize", "=", "'0.5'", ",", "variables", "=", "None", ",", "region", "=", "None", ",", ...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
delete_api_stage
Deletes stage identified by stageName from API identified by restApiId CLI Example: .. code-block:: bash salt myminion boto_apigateway.delete_api_stage restApiId stageName
salt/modules/boto_apigateway.py
def delete_api_stage(restApiId, stageName, region=None, key=None, keyid=None, profile=None): ''' Deletes stage identified by stageName from API identified by restApiId CLI Example: .. code-block:: bash salt myminion boto_apigateway.delete_api_stage restApiId stageName ''' try: ...
def delete_api_stage(restApiId, stageName, region=None, key=None, keyid=None, profile=None): ''' Deletes stage identified by stageName from API identified by restApiId CLI Example: .. code-block:: bash salt myminion boto_apigateway.delete_api_stage restApiId stageName ''' try: ...
[ "Deletes", "stage", "identified", "by", "stageName", "from", "API", "identified", "by", "restApiId" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_apigateway.py#L882-L898
[ "def", "delete_api_stage", "(", "restApiId", ",", "stageName", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "try", ":", "conn", "=", "_get_conn", "(", "region", "=", "region", ...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
flush_api_stage_cache
Flushes cache for the stage identified by stageName from API identified by restApiId CLI Example: .. code-block:: bash salt myminion boto_apigateway.flush_api_stage_cache restApiId stageName
salt/modules/boto_apigateway.py
def flush_api_stage_cache(restApiId, stageName, region=None, key=None, keyid=None, profile=None): ''' Flushes cache for the stage identified by stageName from API identified by restApiId CLI Example: .. code-block:: bash salt myminion boto_apigateway.flush_api_stage_cache restApiId stageName ...
def flush_api_stage_cache(restApiId, stageName, region=None, key=None, keyid=None, profile=None): ''' Flushes cache for the stage identified by stageName from API identified by restApiId CLI Example: .. code-block:: bash salt myminion boto_apigateway.flush_api_stage_cache restApiId stageName ...
[ "Flushes", "cache", "for", "the", "stage", "identified", "by", "stageName", "from", "API", "identified", "by", "restApiId" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_apigateway.py#L901-L917
[ "def", "flush_api_stage_cache", "(", "restApiId", ",", "stageName", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "try", ":", "conn", "=", "_get_conn", "(", "region", "=", "region...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
create_api_method
Creates API method for a resource in the given API CLI Example: .. code-block:: bash salt myminion boto_apigateway.create_api_method restApiId resourcePath, httpMethod, authorizationType, \\ apiKeyRequired=False, requestParameters='{"name", "value"}', requestModels='{"content-type", "valu...
salt/modules/boto_apigateway.py
def create_api_method(restApiId, resourcePath, httpMethod, authorizationType, apiKeyRequired=False, requestParameters=None, requestModels=None, region=None, key=None, keyid=None, profile=None): ''' Creates API method for a resource in the given API CLI Example: ...
def create_api_method(restApiId, resourcePath, httpMethod, authorizationType, apiKeyRequired=False, requestParameters=None, requestModels=None, region=None, key=None, keyid=None, profile=None): ''' Creates API method for a resource in the given API CLI Example: ...
[ "Creates", "API", "method", "for", "a", "resource", "in", "the", "given", "API" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_apigateway.py#L920-L949
[ "def", "create_api_method", "(", "restApiId", ",", "resourcePath", ",", "httpMethod", ",", "authorizationType", ",", "apiKeyRequired", "=", "False", ",", "requestParameters", "=", "None", ",", "requestModels", "=", "None", ",", "region", "=", "None", ",", "key",...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
describe_api_method
Get API method for a resource in the given API CLI Example: .. code-block:: bash salt myminion boto_apigateway.describe_api_method restApiId resourcePath httpMethod
salt/modules/boto_apigateway.py
def describe_api_method(restApiId, resourcePath, httpMethod, region=None, key=None, keyid=None, profile=None): ''' Get API method for a resource in the given API CLI Example: .. code-block:: bash salt myminion boto_apigateway.describe_api_method restApiId resourcePath httpMethod ''' ...
def describe_api_method(restApiId, resourcePath, httpMethod, region=None, key=None, keyid=None, profile=None): ''' Get API method for a resource in the given API CLI Example: .. code-block:: bash salt myminion boto_apigateway.describe_api_method restApiId resourcePath httpMethod ''' ...
[ "Get", "API", "method", "for", "a", "resource", "in", "the", "given", "API" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_apigateway.py#L952-L972
[ "def", "describe_api_method", "(", "restApiId", ",", "resourcePath", ",", "httpMethod", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "try", ":", "resource", "=", "describe_api_resour...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
delete_api_method
Delete API method for a resource in the given API CLI Example: .. code-block:: bash salt myminion boto_apigateway.delete_api_method restApiId resourcePath httpMethod
salt/modules/boto_apigateway.py
def delete_api_method(restApiId, resourcePath, httpMethod, region=None, key=None, keyid=None, profile=None): ''' Delete API method for a resource in the given API CLI Example: .. code-block:: bash salt myminion boto_apigateway.delete_api_method restApiId resourcePath httpMethod ''' t...
def delete_api_method(restApiId, resourcePath, httpMethod, region=None, key=None, keyid=None, profile=None): ''' Delete API method for a resource in the given API CLI Example: .. code-block:: bash salt myminion boto_apigateway.delete_api_method restApiId resourcePath httpMethod ''' t...
[ "Delete", "API", "method", "for", "a", "resource", "in", "the", "given", "API" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_apigateway.py#L975-L995
[ "def", "delete_api_method", "(", "restApiId", ",", "resourcePath", ",", "httpMethod", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "try", ":", "resource", "=", "describe_api_resource...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
create_api_method_response
Create API method response for a method on a given resource in the given API CLI Example: .. code-block:: bash salt myminion boto_apigateway.create_api_method_response restApiId resourcePath httpMethod \\ statusCode responseParameters='{"name", "True|False"}' responseModels='{"content-...
salt/modules/boto_apigateway.py
def create_api_method_response(restApiId, resourcePath, httpMethod, statusCode, responseParameters=None, responseModels=None, region=None, key=None, keyid=None, profile=None): ''' Create API method response for a method on a given resource in the given API CLI Example: ....
def create_api_method_response(restApiId, resourcePath, httpMethod, statusCode, responseParameters=None, responseModels=None, region=None, key=None, keyid=None, profile=None): ''' Create API method response for a method on a given resource in the given API CLI Example: ....
[ "Create", "API", "method", "response", "for", "a", "method", "on", "a", "given", "resource", "in", "the", "given", "API" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_apigateway.py#L998-L1025
[ "def", "create_api_method_response", "(", "restApiId", ",", "resourcePath", ",", "httpMethod", ",", "statusCode", ",", "responseParameters", "=", "None", ",", "responseModels", "=", "None", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "="...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
delete_api_method_response
Delete API method response for a resource in the given API CLI Example: .. code-block:: bash salt myminion boto_apigateway.delete_api_method_response restApiId resourcePath httpMethod statusCode
salt/modules/boto_apigateway.py
def delete_api_method_response(restApiId, resourcePath, httpMethod, statusCode, region=None, key=None, keyid=None, profile=None): ''' Delete API method response for a resource in the given API CLI Example: .. code-block:: bash salt myminion boto_apigateway.delet...
def delete_api_method_response(restApiId, resourcePath, httpMethod, statusCode, region=None, key=None, keyid=None, profile=None): ''' Delete API method response for a resource in the given API CLI Example: .. code-block:: bash salt myminion boto_apigateway.delet...
[ "Delete", "API", "method", "response", "for", "a", "resource", "in", "the", "given", "API" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_apigateway.py#L1028-L1050
[ "def", "delete_api_method_response", "(", "restApiId", ",", "resourcePath", ",", "httpMethod", ",", "statusCode", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "try", ":", "resource",...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
describe_api_method_response
Get API method response for a resource in the given API CLI Example: .. code-block:: bash salt myminion boto_apigateway.describe_api_method_response restApiId resourcePath httpMethod statusCode
salt/modules/boto_apigateway.py
def describe_api_method_response(restApiId, resourcePath, httpMethod, statusCode, region=None, key=None, keyid=None, profile=None): ''' Get API method response for a resource in the given API CLI Example: .. code-block:: bash salt myminion boto_apigateway.desc...
def describe_api_method_response(restApiId, resourcePath, httpMethod, statusCode, region=None, key=None, keyid=None, profile=None): ''' Get API method response for a resource in the given API CLI Example: .. code-block:: bash salt myminion boto_apigateway.desc...
[ "Get", "API", "method", "response", "for", "a", "resource", "in", "the", "given", "API" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_apigateway.py#L1053-L1075
[ "def", "describe_api_method_response", "(", "restApiId", ",", "resourcePath", ",", "httpMethod", ",", "statusCode", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "try", ":", "resource...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
describe_api_models
Get all models for a given API CLI Example: .. code-block:: bash salt myminion boto_apigateway.describe_api_models restApiId
salt/modules/boto_apigateway.py
def describe_api_models(restApiId, region=None, key=None, keyid=None, profile=None): ''' Get all models for a given API CLI Example: .. code-block:: bash salt myminion boto_apigateway.describe_api_models restApiId ''' try: conn = _get_conn(region=region, key=key, keyid=keyid,...
def describe_api_models(restApiId, region=None, key=None, keyid=None, profile=None): ''' Get all models for a given API CLI Example: .. code-block:: bash salt myminion boto_apigateway.describe_api_models restApiId ''' try: conn = _get_conn(region=region, key=key, keyid=keyid,...
[ "Get", "all", "models", "for", "a", "given", "API" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_apigateway.py#L1078-L1094
[ "def", "describe_api_models", "(", "restApiId", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "try", ":", "conn", "=", "_get_conn", "(", "region", "=", "region", ",", "key", "="...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
describe_api_model
Get a model by name for a given API CLI Example: .. code-block:: bash salt myminion boto_apigateway.describe_api_model restApiId modelName [True]
salt/modules/boto_apigateway.py
def describe_api_model(restApiId, modelName, flatten=True, region=None, key=None, keyid=None, profile=None): ''' Get a model by name for a given API CLI Example: .. code-block:: bash salt myminion boto_apigateway.describe_api_model restApiId modelName [True] ''' try: conn = _...
def describe_api_model(restApiId, modelName, flatten=True, region=None, key=None, keyid=None, profile=None): ''' Get a model by name for a given API CLI Example: .. code-block:: bash salt myminion boto_apigateway.describe_api_model restApiId modelName [True] ''' try: conn = _...
[ "Get", "a", "model", "by", "name", "for", "a", "given", "API" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_apigateway.py#L1097-L1113
[ "def", "describe_api_model", "(", "restApiId", ",", "modelName", ",", "flatten", "=", "True", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "try", ":", "conn", "=", "_get_conn", ...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
api_model_exists
Check to see if the given modelName exists in the given restApiId CLI Example: .. code-block:: bash salt myminion boto_apigateway.api_model_exists restApiId modelName
salt/modules/boto_apigateway.py
def api_model_exists(restApiId, modelName, region=None, key=None, keyid=None, profile=None): ''' Check to see if the given modelName exists in the given restApiId CLI Example: .. code-block:: bash salt myminion boto_apigateway.api_model_exists restApiId modelName ''' r = describe_api_...
def api_model_exists(restApiId, modelName, region=None, key=None, keyid=None, profile=None): ''' Check to see if the given modelName exists in the given restApiId CLI Example: .. code-block:: bash salt myminion boto_apigateway.api_model_exists restApiId modelName ''' r = describe_api_...
[ "Check", "to", "see", "if", "the", "given", "modelName", "exists", "in", "the", "given", "restApiId" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_apigateway.py#L1116-L1128
[ "def", "api_model_exists", "(", "restApiId", ",", "modelName", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "r", "=", "describe_api_model", "(", "restApiId", ",", "modelName", ",",...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
_api_model_patch_replace
the replace patch operation on a Model resource
salt/modules/boto_apigateway.py
def _api_model_patch_replace(conn, restApiId, modelName, path, value): ''' the replace patch operation on a Model resource ''' response = conn.update_model(restApiId=restApiId, modelName=modelName, patchOperations=[{'op': 'replace', 'path': path, 'value': value}]) re...
def _api_model_patch_replace(conn, restApiId, modelName, path, value): ''' the replace patch operation on a Model resource ''' response = conn.update_model(restApiId=restApiId, modelName=modelName, patchOperations=[{'op': 'replace', 'path': path, 'value': value}]) re...
[ "the", "replace", "patch", "operation", "on", "a", "Model", "resource" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_apigateway.py#L1131-L1137
[ "def", "_api_model_patch_replace", "(", "conn", ",", "restApiId", ",", "modelName", ",", "path", ",", "value", ")", ":", "response", "=", "conn", ".", "update_model", "(", "restApiId", "=", "restApiId", ",", "modelName", "=", "modelName", ",", "patchOperations...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
update_api_model_schema
update the schema (in python dictionary format) for the given model in the given restApiId CLI Example: .. code-block:: bash salt myminion boto_apigateway.update_api_model_schema restApiId modelName schema
salt/modules/boto_apigateway.py
def update_api_model_schema(restApiId, modelName, schema, region=None, key=None, keyid=None, profile=None): ''' update the schema (in python dictionary format) for the given model in the given restApiId CLI Example: .. code-block:: bash salt myminion boto_apigateway.update_api_model_schema re...
def update_api_model_schema(restApiId, modelName, schema, region=None, key=None, keyid=None, profile=None): ''' update the schema (in python dictionary format) for the given model in the given restApiId CLI Example: .. code-block:: bash salt myminion boto_apigateway.update_api_model_schema re...
[ "update", "the", "schema", "(", "in", "python", "dictionary", "format", ")", "for", "the", "given", "model", "in", "the", "given", "restApiId" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_apigateway.py#L1140-L1157
[ "def", "update_api_model_schema", "(", "restApiId", ",", "modelName", ",", "schema", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "try", ":", "schema_json", "=", "salt", ".", "ut...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
delete_api_model
Delete a model identified by name in a given API CLI Example: .. code-block:: bash salt myminion boto_apigateway.delete_api_model restApiId modelName
salt/modules/boto_apigateway.py
def delete_api_model(restApiId, modelName, region=None, key=None, keyid=None, profile=None): ''' Delete a model identified by name in a given API CLI Example: .. code-block:: bash salt myminion boto_apigateway.delete_api_model restApiId modelName ''' try: conn = _get_conn(reg...
def delete_api_model(restApiId, modelName, region=None, key=None, keyid=None, profile=None): ''' Delete a model identified by name in a given API CLI Example: .. code-block:: bash salt myminion boto_apigateway.delete_api_model restApiId modelName ''' try: conn = _get_conn(reg...
[ "Delete", "a", "model", "identified", "by", "name", "in", "a", "given", "API" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_apigateway.py#L1160-L1176
[ "def", "delete_api_model", "(", "restApiId", ",", "modelName", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "try", ":", "conn", "=", "_get_conn", "(", "region", "=", "region", ...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
create_api_model
Create a new model in a given API with a given schema, currently only contentType supported is 'application/json' CLI Example: .. code-block:: bash salt myminion boto_apigateway.create_api_model restApiId modelName modelDescription '<schema>' 'content-type'
salt/modules/boto_apigateway.py
def create_api_model(restApiId, modelName, modelDescription, schema, contentType='application/json', region=None, key=None, keyid=None, profile=None): ''' Create a new model in a given API with a given schema, currently only contentType supported is 'application/json' CLI Example: ...
def create_api_model(restApiId, modelName, modelDescription, schema, contentType='application/json', region=None, key=None, keyid=None, profile=None): ''' Create a new model in a given API with a given schema, currently only contentType supported is 'application/json' CLI Example: ...
[ "Create", "a", "new", "model", "in", "a", "given", "API", "with", "a", "given", "schema", "currently", "only", "contentType", "supported", "is", "application", "/", "json" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_apigateway.py#L1179-L1199
[ "def", "create_api_model", "(", "restApiId", ",", "modelName", ",", "modelDescription", ",", "schema", ",", "contentType", "=", "'application/json'", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None",...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
describe_api_integration
Get an integration for a given method in a given API CLI Example: .. code-block:: bash salt myminion boto_apigateway.describe_api_integration restApiId resourcePath httpMethod
salt/modules/boto_apigateway.py
def describe_api_integration(restApiId, resourcePath, httpMethod, region=None, key=None, keyid=None, profile=None): ''' Get an integration for a given method in a given API CLI Example: .. code-block:: bash salt myminion boto_apigateway.describe_api_integration restApiId resourcePath httpMeth...
def describe_api_integration(restApiId, resourcePath, httpMethod, region=None, key=None, keyid=None, profile=None): ''' Get an integration for a given method in a given API CLI Example: .. code-block:: bash salt myminion boto_apigateway.describe_api_integration restApiId resourcePath httpMeth...
[ "Get", "an", "integration", "for", "a", "given", "method", "in", "a", "given", "API" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_apigateway.py#L1202-L1222
[ "def", "describe_api_integration", "(", "restApiId", ",", "resourcePath", ",", "httpMethod", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "try", ":", "resource", "=", "describe_api_r...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
describe_api_integration_response
Get an integration response for a given method in a given API CLI Example: .. code-block:: bash salt myminion boto_apigateway.describe_api_integration_response restApiId resourcePath httpMethod statusCode
salt/modules/boto_apigateway.py
def describe_api_integration_response(restApiId, resourcePath, httpMethod, statusCode, region=None, key=None, keyid=None, profile=None): ''' Get an integration response for a given method in a given API CLI Example: .. code-block:: bash salt myminion boto...
def describe_api_integration_response(restApiId, resourcePath, httpMethod, statusCode, region=None, key=None, keyid=None, profile=None): ''' Get an integration response for a given method in a given API CLI Example: .. code-block:: bash salt myminion boto...
[ "Get", "an", "integration", "response", "for", "a", "given", "method", "in", "a", "given", "API" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_apigateway.py#L1225-L1247
[ "def", "describe_api_integration_response", "(", "restApiId", ",", "resourcePath", ",", "httpMethod", ",", "statusCode", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "try", ":", "res...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
delete_api_integration_response
Deletes an integration response for a given method in a given API CLI Example: .. code-block:: bash salt myminion boto_apigateway.delete_api_integration_response restApiId resourcePath httpMethod statusCode
salt/modules/boto_apigateway.py
def delete_api_integration_response(restApiId, resourcePath, httpMethod, statusCode, region=None, key=None, keyid=None, profile=None): ''' Deletes an integration response for a given method in a given API CLI Example: .. code-block:: bash salt myminion boto...
def delete_api_integration_response(restApiId, resourcePath, httpMethod, statusCode, region=None, key=None, keyid=None, profile=None): ''' Deletes an integration response for a given method in a given API CLI Example: .. code-block:: bash salt myminion boto...
[ "Deletes", "an", "integration", "response", "for", "a", "given", "method", "in", "a", "given", "API" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_apigateway.py#L1273-L1295
[ "def", "delete_api_integration_response", "(", "restApiId", ",", "resourcePath", ",", "httpMethod", ",", "statusCode", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "try", ":", "resou...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
create_api_integration
Creates an integration for a given method in a given API. If integrationType is MOCK, uri and credential parameters will be ignored. uri is in the form of (substitute APIGATEWAY_REGION and LAMBDA_FUNC_ARN) "arn:aws:apigateway:APIGATEWAY_REGION:lambda:path/2015-03-31/functions/LAMBDA_FUNC_ARN/invocations" ...
salt/modules/boto_apigateway.py
def create_api_integration(restApiId, resourcePath, httpMethod, integrationType, integrationHttpMethod, uri, credentials, requestParameters=None, requestTemplates=None, region=None, key=None, keyid=None, profile=None): ''' Creates an integration for a given ...
def create_api_integration(restApiId, resourcePath, httpMethod, integrationType, integrationHttpMethod, uri, credentials, requestParameters=None, requestTemplates=None, region=None, key=None, keyid=None, profile=None): ''' Creates an integration for a given ...
[ "Creates", "an", "integration", "for", "a", "given", "method", "in", "a", "given", "API", ".", "If", "integrationType", "is", "MOCK", "uri", "and", "credential", "parameters", "will", "be", "ignored", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_apigateway.py#L1312-L1352
[ "def", "create_api_integration", "(", "restApiId", ",", "resourcePath", ",", "httpMethod", ",", "integrationType", ",", "integrationHttpMethod", ",", "uri", ",", "credentials", ",", "requestParameters", "=", "None", ",", "requestTemplates", "=", "None", ",", "region...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
create_api_integration_response
Creates an integration response for a given method in a given API CLI Example: .. code-block:: bash salt myminion boto_apigateway.create_api_integration_response restApiId resourcePath httpMethod \\ statusCode selectionPattern ['{}' ['{}']]
salt/modules/boto_apigateway.py
def create_api_integration_response(restApiId, resourcePath, httpMethod, statusCode, selectionPattern, responseParameters=None, responseTemplates=None, region=None, key=None, keyid=None, profile=None): ''' Creates an integration response fo...
def create_api_integration_response(restApiId, resourcePath, httpMethod, statusCode, selectionPattern, responseParameters=None, responseTemplates=None, region=None, key=None, keyid=None, profile=None): ''' Creates an integration response fo...
[ "Creates", "an", "integration", "response", "for", "a", "given", "method", "in", "a", "given", "API" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_apigateway.py#L1355-L1385
[ "def", "create_api_integration_response", "(", "restApiId", ",", "resourcePath", ",", "httpMethod", ",", "statusCode", ",", "selectionPattern", ",", "responseParameters", "=", "None", ",", "responseTemplates", "=", "None", ",", "region", "=", "None", ",", "key", "...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
_filter_plans
Helper to return list of usage plan items matching the given attribute value.
salt/modules/boto_apigateway.py
def _filter_plans(attr, name, plans): ''' Helper to return list of usage plan items matching the given attribute value. ''' return [plan for plan in plans if plan[attr] == name]
def _filter_plans(attr, name, plans): ''' Helper to return list of usage plan items matching the given attribute value. ''' return [plan for plan in plans if plan[attr] == name]
[ "Helper", "to", "return", "list", "of", "usage", "plan", "items", "matching", "the", "given", "attribute", "value", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_apigateway.py#L1388-L1392
[ "def", "_filter_plans", "(", "attr", ",", "name", ",", "plans", ")", ":", "return", "[", "plan", "for", "plan", "in", "plans", "if", "plan", "[", "attr", "]", "==", "name", "]" ]
e8541fd6e744ab0df786c0f76102e41631f45d46
train
describe_usage_plans
Returns a list of existing usage plans, optionally filtered to match a given plan name .. versionadded:: 2017.7.0 CLI Example: .. code-block:: bash salt myminion boto_apigateway.describe_usage_plans salt myminion boto_apigateway.describe_usage_plans name='usage plan name' salt my...
salt/modules/boto_apigateway.py
def describe_usage_plans(name=None, plan_id=None, region=None, key=None, keyid=None, profile=None): ''' Returns a list of existing usage plans, optionally filtered to match a given plan name .. versionadded:: 2017.7.0 CLI Example: .. code-block:: bash salt myminion boto_apigateway.descri...
def describe_usage_plans(name=None, plan_id=None, region=None, key=None, keyid=None, profile=None): ''' Returns a list of existing usage plans, optionally filtered to match a given plan name .. versionadded:: 2017.7.0 CLI Example: .. code-block:: bash salt myminion boto_apigateway.descri...
[ "Returns", "a", "list", "of", "existing", "usage", "plans", "optionally", "filtered", "to", "match", "a", "given", "plan", "name" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_apigateway.py#L1395-L1421
[ "def", "describe_usage_plans", "(", "name", "=", "None", ",", "plan_id", "=", "None", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "try", ":", "conn", "=", "_get_conn", "(", ...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
_validate_quota
Helper to verify that quota parameters are valid
salt/modules/boto_apigateway.py
def _validate_quota(quota): ''' Helper to verify that quota parameters are valid ''' if quota is not None: if not isinstance(quota, dict): raise TypeError('quota must be a dictionary, provided value: {0}'.format(quota)) periods = ['DAY', 'WEEK', 'MONTH'] if 'period' n...
def _validate_quota(quota): ''' Helper to verify that quota parameters are valid ''' if quota is not None: if not isinstance(quota, dict): raise TypeError('quota must be a dictionary, provided value: {0}'.format(quota)) periods = ['DAY', 'WEEK', 'MONTH'] if 'period' n...
[ "Helper", "to", "verify", "that", "quota", "parameters", "are", "valid" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_apigateway.py#L1433-L1444
[ "def", "_validate_quota", "(", "quota", ")", ":", "if", "quota", "is", "not", "None", ":", "if", "not", "isinstance", "(", "quota", ",", "dict", ")", ":", "raise", "TypeError", "(", "'quota must be a dictionary, provided value: {0}'", ".", "format", "(", "quot...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
create_usage_plan
Creates a new usage plan with throttling and quotas optionally applied .. versionadded:: 2017.7.0 name Name of the usage plan throttle A dictionary consisting of the following keys: rateLimit requests per second at steady rate, float burstLimit ma...
salt/modules/boto_apigateway.py
def create_usage_plan(name, description=None, throttle=None, quota=None, region=None, key=None, keyid=None, profile=None): ''' Creates a new usage plan with throttling and quotas optionally applied .. versionadded:: 2017.7.0 name Name of the usage plan throttle A dictionary consis...
def create_usage_plan(name, description=None, throttle=None, quota=None, region=None, key=None, keyid=None, profile=None): ''' Creates a new usage plan with throttling and quotas optionally applied .. versionadded:: 2017.7.0 name Name of the usage plan throttle A dictionary consis...
[ "Creates", "a", "new", "usage", "plan", "with", "throttling", "and", "quotas", "optionally", "applied" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_apigateway.py#L1447-L1502
[ "def", "create_usage_plan", "(", "name", ",", "description", "=", "None", ",", "throttle", "=", "None", ",", "quota", "=", "None", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", ...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
update_usage_plan
Updates an existing usage plan with throttling and quotas .. versionadded:: 2017.7.0 plan_id Id of the created usage plan throttle A dictionary consisting of the following keys: rateLimit requests per second at steady rate, float burstLimit maximu...
salt/modules/boto_apigateway.py
def update_usage_plan(plan_id, throttle=None, quota=None, region=None, key=None, keyid=None, profile=None): ''' Updates an existing usage plan with throttling and quotas .. versionadded:: 2017.7.0 plan_id Id of the created usage plan throttle A dictionary consisting of the followi...
def update_usage_plan(plan_id, throttle=None, quota=None, region=None, key=None, keyid=None, profile=None): ''' Updates an existing usage plan with throttling and quotas .. versionadded:: 2017.7.0 plan_id Id of the created usage plan throttle A dictionary consisting of the followi...
[ "Updates", "an", "existing", "usage", "plan", "with", "throttling", "and", "quotas" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_apigateway.py#L1505-L1576
[ "def", "update_usage_plan", "(", "plan_id", ",", "throttle", "=", "None", ",", "quota", "=", "None", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "try", ":", "_validate_throttle"...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
delete_usage_plan
Deletes usage plan identified by plan_id .. versionadded:: 2017.7.0 CLI Example: .. code-block:: bash salt myminion boto_apigateway.delete_usage_plan plan_id='usage plan id'
salt/modules/boto_apigateway.py
def delete_usage_plan(plan_id, region=None, key=None, keyid=None, profile=None): ''' Deletes usage plan identified by plan_id .. versionadded:: 2017.7.0 CLI Example: .. code-block:: bash salt myminion boto_apigateway.delete_usage_plan plan_id='usage plan id' ''' try: exi...
def delete_usage_plan(plan_id, region=None, key=None, keyid=None, profile=None): ''' Deletes usage plan identified by plan_id .. versionadded:: 2017.7.0 CLI Example: .. code-block:: bash salt myminion boto_apigateway.delete_usage_plan plan_id='usage plan id' ''' try: exi...
[ "Deletes", "usage", "plan", "identified", "by", "plan_id" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_apigateway.py#L1579-L1603
[ "def", "delete_usage_plan", "(", "plan_id", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "try", ":", "existing", "=", "describe_usage_plans", "(", "plan_id", "=", "plan_id", ",", ...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
_update_usage_plan_apis
Helper function that updates the usage plan identified by plan_id by adding or removing it to each of the stages, specified by apis parameter. apis a list of dictionaries, where each dictionary contains the following: apiId a string, which is the id of the created API in AWS ApiGateway...
salt/modules/boto_apigateway.py
def _update_usage_plan_apis(plan_id, apis, op, region=None, key=None, keyid=None, profile=None): ''' Helper function that updates the usage plan identified by plan_id by adding or removing it to each of the stages, specified by apis parameter. apis a list of dictionaries, where each dictionary cont...
def _update_usage_plan_apis(plan_id, apis, op, region=None, key=None, keyid=None, profile=None): ''' Helper function that updates the usage plan identified by plan_id by adding or removing it to each of the stages, specified by apis parameter. apis a list of dictionaries, where each dictionary cont...
[ "Helper", "function", "that", "updates", "the", "usage", "plan", "identified", "by", "plan_id", "by", "adding", "or", "removing", "it", "to", "each", "of", "the", "stages", "specified", "by", "apis", "parameter", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_apigateway.py#L1606-L1639
[ "def", "_update_usage_plan_apis", "(", "plan_id", ",", "apis", ",", "op", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "try", ":", "patchOperations", "=", "[", "]", "for", "api...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
attach_usage_plan_to_apis
Attaches given usage plan to each of the apis provided in a list of apiId and stage values .. versionadded:: 2017.7.0 apis a list of dictionaries, where each dictionary contains the following: apiId a string, which is the id of the created API in AWS ApiGateway stage ...
salt/modules/boto_apigateway.py
def attach_usage_plan_to_apis(plan_id, apis, region=None, key=None, keyid=None, profile=None): ''' Attaches given usage plan to each of the apis provided in a list of apiId and stage values .. versionadded:: 2017.7.0 apis a list of dictionaries, where each dictionary contains the following: ...
def attach_usage_plan_to_apis(plan_id, apis, region=None, key=None, keyid=None, profile=None): ''' Attaches given usage plan to each of the apis provided in a list of apiId and stage values .. versionadded:: 2017.7.0 apis a list of dictionaries, where each dictionary contains the following: ...
[ "Attaches", "given", "usage", "plan", "to", "each", "of", "the", "apis", "provided", "in", "a", "list", "of", "apiId", "and", "stage", "values" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_apigateway.py#L1642-L1664
[ "def", "attach_usage_plan_to_apis", "(", "plan_id", ",", "apis", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "return", "_update_usage_plan_apis", "(", "plan_id", ",", "apis", ",", ...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
detach_usage_plan_from_apis
Detaches given usage plan from each of the apis provided in a list of apiId and stage value .. versionadded:: 2017.7.0 apis a list of dictionaries, where each dictionary contains the following: apiId a string, which is the id of the created API in AWS ApiGateway stage ...
salt/modules/boto_apigateway.py
def detach_usage_plan_from_apis(plan_id, apis, region=None, key=None, keyid=None, profile=None): ''' Detaches given usage plan from each of the apis provided in a list of apiId and stage value .. versionadded:: 2017.7.0 apis a list of dictionaries, where each dictionary contains the following:...
def detach_usage_plan_from_apis(plan_id, apis, region=None, key=None, keyid=None, profile=None): ''' Detaches given usage plan from each of the apis provided in a list of apiId and stage value .. versionadded:: 2017.7.0 apis a list of dictionaries, where each dictionary contains the following:...
[ "Detaches", "given", "usage", "plan", "from", "each", "of", "the", "apis", "provided", "in", "a", "list", "of", "apiId", "and", "stage", "value" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_apigateway.py#L1667-L1689
[ "def", "detach_usage_plan_from_apis", "(", "plan_id", ",", "apis", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "return", "_update_usage_plan_apis", "(", "plan_id", ",", "apis", ",",...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
_clean_vdev_config
Return a simple vdev tree from zpool.status' config section
salt/modules/zpool.py
def _clean_vdev_config(config): ''' Return a simple vdev tree from zpool.status' config section ''' cln_config = OrderedDict() for label, sub_config in config.items(): if label not in ['state', 'read', 'write', 'cksum']: sub_config = _clean_vdev_config(sub_config) if...
def _clean_vdev_config(config): ''' Return a simple vdev tree from zpool.status' config section ''' cln_config = OrderedDict() for label, sub_config in config.items(): if label not in ['state', 'read', 'write', 'cksum']: sub_config = _clean_vdev_config(sub_config) if...
[ "Return", "a", "simple", "vdev", "tree", "from", "zpool", ".", "status", "config", "section" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/zpool.py#L48-L72
[ "def", "_clean_vdev_config", "(", "config", ")", ":", "cln_config", "=", "OrderedDict", "(", ")", "for", "label", ",", "sub_config", "in", "config", ".", "items", "(", ")", ":", "if", "label", "not", "in", "[", "'state'", ",", "'read'", ",", "'write'", ...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
status
Return the status of the named zpool zpool : string optional name of storage pool .. versionadded:: 2016.3.0 CLI Example: .. code-block:: bash salt '*' zpool.status myzpool
salt/modules/zpool.py
def status(zpool=None): ''' Return the status of the named zpool zpool : string optional name of storage pool .. versionadded:: 2016.3.0 CLI Example: .. code-block:: bash salt '*' zpool.status myzpool ''' ret = OrderedDict() ## collect status output res = _...
def status(zpool=None): ''' Return the status of the named zpool zpool : string optional name of storage pool .. versionadded:: 2016.3.0 CLI Example: .. code-block:: bash salt '*' zpool.status myzpool ''' ret = OrderedDict() ## collect status output res = _...
[ "Return", "the", "status", "of", "the", "named", "zpool" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/zpool.py#L100-L233
[ "def", "status", "(", "zpool", "=", "None", ")", ":", "ret", "=", "OrderedDict", "(", ")", "## collect status output", "res", "=", "__salt__", "[", "'cmd.run_all'", "]", "(", "__utils__", "[", "'zfs.zpool_command'", "]", "(", "'status'", ",", "target", "=", ...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
iostat
Display I/O statistics for the given pools zpool : string optional name of storage pool sample_time : int seconds to capture data before output default a sample of 5 seconds is used parsable : boolean display data in pythonc values (True, False, Bytes,...) .. versionad...
salt/modules/zpool.py
def iostat(zpool=None, sample_time=5, parsable=True): ''' Display I/O statistics for the given pools zpool : string optional name of storage pool sample_time : int seconds to capture data before output default a sample of 5 seconds is used parsable : boolean display...
def iostat(zpool=None, sample_time=5, parsable=True): ''' Display I/O statistics for the given pools zpool : string optional name of storage pool sample_time : int seconds to capture data before output default a sample of 5 seconds is used parsable : boolean display...
[ "Display", "I", "/", "O", "statistics", "for", "the", "given", "pools" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/zpool.py#L236-L345
[ "def", "iostat", "(", "zpool", "=", "None", ",", "sample_time", "=", "5", ",", "parsable", "=", "True", ")", ":", "ret", "=", "OrderedDict", "(", ")", "## get iostat output", "res", "=", "__salt__", "[", "'cmd.run_all'", "]", "(", "__utils__", "[", "'zfs...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
list_
.. versionadded:: 2015.5.0 Return information about (all) storage pools zpool : string optional name of storage pool properties : string comma-separated list of properties to list parsable : boolean display numbers in parsable (exact) values .. versionadded:: 2018.3....
salt/modules/zpool.py
def list_(properties='size,alloc,free,cap,frag,health', zpool=None, parsable=True): ''' .. versionadded:: 2015.5.0 Return information about (all) storage pools zpool : string optional name of storage pool properties : string comma-separated list of properties to list parsable...
def list_(properties='size,alloc,free,cap,frag,health', zpool=None, parsable=True): ''' .. versionadded:: 2015.5.0 Return information about (all) storage pools zpool : string optional name of storage pool properties : string comma-separated list of properties to list parsable...
[ "..", "versionadded", "::", "2015", ".", "5", ".", "0" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/zpool.py#L348-L442
[ "def", "list_", "(", "properties", "=", "'size,alloc,free,cap,frag,health'", ",", "zpool", "=", "None", ",", "parsable", "=", "True", ")", ":", "ret", "=", "OrderedDict", "(", ")", "## update properties", "# NOTE: properties should be a list", "if", "not", "isinstan...
e8541fd6e744ab0df786c0f76102e41631f45d46