body_hash
stringlengths
64
64
body
stringlengths
23
109k
docstring
stringlengths
1
57k
path
stringlengths
4
198
name
stringlengths
1
115
repository_name
stringlengths
7
111
repository_stars
float64
0
191k
lang
stringclasses
1 value
body_without_docstring
stringlengths
14
108k
unified
stringlengths
45
133k
c8c0950d2af6a640cd8d29a3cb71dabd55aa46240cb8d62442b1c8c41c946352
def accumulate_grad_ms(session, model, verbose=True): 'run the given model over its data' start_time = time.time() iters = 0 state = session.run(model.initial_state) fetches = {'ms_update': model.dynamic_eval.accu_global_ms(), 'final_state': model.final_state} for step in range(model.input.epoch...
run the given model over its data
tensorflow_impl/model_estimator.py
accumulate_grad_ms
zivaharoni/gradual-learning-rnn
10
python
def accumulate_grad_ms(session, model, verbose=True): start_time = time.time() iters = 0 state = session.run(model.initial_state) fetches = {'ms_update': model.dynamic_eval.accu_global_ms(), 'final_state': model.final_state} for step in range(model.input.epoch_size): feed_dict = dict() ...
def accumulate_grad_ms(session, model, verbose=True): start_time = time.time() iters = 0 state = session.run(model.initial_state) fetches = {'ms_update': model.dynamic_eval.accu_global_ms(), 'final_state': model.final_state} for step in range(model.input.epoch_size): feed_dict = dict() ...
e852123941a61693b6ee6c96aeff22b8c466602e27f9571422abc9bcadb4e7ae
def __init__(self, config, is_training, inputs): 'the constructor builds the tensorflow_impl graph' self._input = inputs vocab_size = config.vocab_size self._gpu_devices = [i for i in range(len(get_gpu_devices(args.gpu_devices)))][0] self._cpu_device = args.cpu_device self._config = config s...
the constructor builds the tensorflow_impl graph
tensorflow_impl/model_estimator.py
__init__
zivaharoni/gradual-learning-rnn
10
python
def __init__(self, config, is_training, inputs): self._input = inputs vocab_size = config.vocab_size self._gpu_devices = [i for i in range(len(get_gpu_devices(args.gpu_devices)))][0] self._cpu_device = args.cpu_device self._config = config self._debug_ops = list() self._stat_ops = list(...
def __init__(self, config, is_training, inputs): self._input = inputs vocab_size = config.vocab_size self._gpu_devices = [i for i in range(len(get_gpu_devices(args.gpu_devices)))][0] self._cpu_device = args.cpu_device self._config = config self._debug_ops = list() self._stat_ops = list(...
590a62be1b14ab6da4fc7f2c70d70c8f85904930069a245e9943e27c6d6bbefd
def complete_model(self, embedding_out, embedding_map, is_training): ' Build rest of model for a single gpu\n\n Args:\n embedding_out: the embedding representation to be processed\n\n Returns:\n loss: a list for the loss calculated for each layer.\n grads: a list for t...
Build rest of model for a single gpu Args: embedding_out: the embedding representation to be processed Returns: loss: a list for the loss calculated for each layer. grads: a list for the grads calculated for each loss.
tensorflow_impl/model_estimator.py
complete_model
zivaharoni/gradual-learning-rnn
10
python
def complete_model(self, embedding_out, embedding_map, is_training): ' Build rest of model for a single gpu\n\n Args:\n embedding_out: the embedding representation to be processed\n\n Returns:\n loss: a list for the loss calculated for each layer.\n grads: a list for t...
def complete_model(self, embedding_out, embedding_map, is_training): ' Build rest of model for a single gpu\n\n Args:\n embedding_out: the embedding representation to be processed\n\n Returns:\n loss: a list for the loss calculated for each layer.\n grads: a list for t...
b750d15f2c53a098ff0bec51ab0a5d9945e5f482f022e7513615a4396b9c8306
def compute_prior_loss(z, alpha=1.0): '\n\n Computes prior loss according to Creswell 2016\n\n :param z: latent vector\n :param alpha: weight of prior loss\n :return: log probability of the gaussian latent variables\n ' pdf = torch.distributions.Normal(0, 1) logProb = pdf.log_prob(z.view(1, (...
Computes prior loss according to Creswell 2016 :param z: latent vector :param alpha: weight of prior loss :return: log probability of the gaussian latent variables
seisgan/fwi/layers.py
compute_prior_loss
LukasMosser/stochastic_seismic_waveform_inversion
20
python
def compute_prior_loss(z, alpha=1.0): '\n\n Computes prior loss according to Creswell 2016\n\n :param z: latent vector\n :param alpha: weight of prior loss\n :return: log probability of the gaussian latent variables\n ' pdf = torch.distributions.Normal(0, 1) logProb = pdf.log_prob(z.view(1, (...
def compute_prior_loss(z, alpha=1.0): '\n\n Computes prior loss according to Creswell 2016\n\n :param z: latent vector\n :param alpha: weight of prior loss\n :return: log probability of the gaussian latent variables\n ' pdf = torch.distributions.Normal(0, 1) logProb = pdf.log_prob(z.view(1, (...
be2bde26d2fe787d2cfcdb9e0f24b9139a12a24e9c7ce003abea2d765f84d1d0
def align_vector_to_another(a=np.array([0, 0, 1]), b=np.array([1, 0, 0])): '\n Aligns vector a to vector b with axis angle rotation\n ' if np.array_equal(a, b): return (None, None) axis_ = np.cross(a, b) axis_ = (axis_ / np.linalg.norm(axis_)) angle = np.arccos(np.dot(a, b)) return...
Aligns vector a to vector b with axis angle rotation
utils/pcd_utils.py
align_vector_to_another
maorp/NeuralGraph
117
python
def align_vector_to_another(a=np.array([0, 0, 1]), b=np.array([1, 0, 0])): '\n \n ' if np.array_equal(a, b): return (None, None) axis_ = np.cross(a, b) axis_ = (axis_ / np.linalg.norm(axis_)) angle = np.arccos(np.dot(a, b)) return (axis_, angle)
def align_vector_to_another(a=np.array([0, 0, 1]), b=np.array([1, 0, 0])): '\n \n ' if np.array_equal(a, b): return (None, None) axis_ = np.cross(a, b) axis_ = (axis_ / np.linalg.norm(axis_)) angle = np.arccos(np.dot(a, b)) return (axis_, angle)<|docstring|>Aligns vector a to vecto...
bbb5ba3f1bf0a93b8914bd55f165c60289c0d64e9de52632f17b3523d0ab505d
def normalize(a, axis=(- 1), order=2): 'Normalizes a numpy array of points' l2 = np.atleast_1d(np.linalg.norm(a, order, axis)) l2[(l2 == 0)] = 1 return ((a / np.expand_dims(l2, axis)), l2)
Normalizes a numpy array of points
utils/pcd_utils.py
normalize
maorp/NeuralGraph
117
python
def normalize(a, axis=(- 1), order=2): l2 = np.atleast_1d(np.linalg.norm(a, order, axis)) l2[(l2 == 0)] = 1 return ((a / np.expand_dims(l2, axis)), l2)
def normalize(a, axis=(- 1), order=2): l2 = np.atleast_1d(np.linalg.norm(a, order, axis)) l2[(l2 == 0)] = 1 return ((a / np.expand_dims(l2, axis)), l2)<|docstring|>Normalizes a numpy array of points<|endoftext|>
e8712aa87d8624e18411b81f3fbe5c0066a30fc4a1fd62fddba37477406ae990
def get_or_sync(self, method_name, *args): '\n Try to get data from the cache, or call the api and store the result.\n :param string method_name: Name of the API method to sync the data\n :param tuple args: *args for the API method\n :return dict: JSON returned by the API or from the db\...
Try to get data from the cache, or call the api and store the result. :param string method_name: Name of the API method to sync the data :param tuple args: *args for the API method :return dict: JSON returned by the API or from the db
middleware/mii_cache_wrapper.py
get_or_sync
MiiRaGe/miilibrary
0
python
def get_or_sync(self, method_name, *args): '\n Try to get data from the cache, or call the api and store the result.\n :param string method_name: Name of the API method to sync the data\n :param tuple args: *args for the API method\n :return dict: JSON returned by the API or from the db\...
def get_or_sync(self, method_name, *args): '\n Try to get data from the cache, or call the api and store the result.\n :param string method_name: Name of the API method to sync the data\n :param tuple args: *args for the API method\n :return dict: JSON returned by the API or from the db\...
9f55ab7ac22e36ca0656741398af03402836eb0d5fc1b43feca2cbeff8227d1a
def get_movie_name(self, name, year=None): '\n Return the result of movie query by name/year to The Movie DB\n :param string name: name of the movie\n :param integer year: year of the movie\n :return dict: JSON returned by the API with information about the movie\n ' self.key ...
Return the result of movie query by name/year to The Movie DB :param string name: name of the movie :param integer year: year of the movie :return dict: JSON returned by the API with information about the movie
middleware/mii_cache_wrapper.py
get_movie_name
MiiRaGe/miilibrary
0
python
def get_movie_name(self, name, year=None): '\n Return the result of movie query by name/year to The Movie DB\n :param string name: name of the movie\n :param integer year: year of the movie\n :return dict: JSON returned by the API with information about the movie\n ' self.key ...
def get_movie_name(self, name, year=None): '\n Return the result of movie query by name/year to The Movie DB\n :param string name: name of the movie\n :param integer year: year of the movie\n :return dict: JSON returned by the API with information about the movie\n ' self.key ...
e792a1e224eba109f4e6b42c0337298ca8bf8a44ab00c22e2f1e1d008ddfee7c
def get_movie_imdb_id(self, tmdb_id): '\n Return the result of movie query by name/year to The Movie DB\n :param string tmdb_id: The Movie Database ID (gotten from name/year query)\n :return dict: JSON returned by the API with the IMDB ID of the movie\n ' self.key = {'id': tmdb_id} ...
Return the result of movie query by name/year to The Movie DB :param string tmdb_id: The Movie Database ID (gotten from name/year query) :return dict: JSON returned by the API with the IMDB ID of the movie
middleware/mii_cache_wrapper.py
get_movie_imdb_id
MiiRaGe/miilibrary
0
python
def get_movie_imdb_id(self, tmdb_id): '\n Return the result of movie query by name/year to The Movie DB\n :param string tmdb_id: The Movie Database ID (gotten from name/year query)\n :return dict: JSON returned by the API with the IMDB ID of the movie\n ' self.key = {'id': tmdb_id} ...
def get_movie_imdb_id(self, tmdb_id): '\n Return the result of movie query by name/year to The Movie DB\n :param string tmdb_id: The Movie Database ID (gotten from name/year query)\n :return dict: JSON returned by the API with the IMDB ID of the movie\n ' self.key = {'id': tmdb_id} ...
58755d3fbe71a4b6fd0e78ff82b08364f6399faca877eb073018ad1107627c0c
def get_imdb_information(self, imdb_id): '\n Get all the imdb information from opensubtitle api\n :param string imdb_id: IMDB ID to get the information on\n :return dict: All the information about a movie from IMDB\n ' self.key = {'id': imdb_id} return self.get_or_sync('get_imdb_...
Get all the imdb information from opensubtitle api :param string imdb_id: IMDB ID to get the information on :return dict: All the information about a movie from IMDB
middleware/mii_cache_wrapper.py
get_imdb_information
MiiRaGe/miilibrary
0
python
def get_imdb_information(self, imdb_id): '\n Get all the imdb information from opensubtitle api\n :param string imdb_id: IMDB ID to get the information on\n :return dict: All the information about a movie from IMDB\n ' self.key = {'id': imdb_id} return self.get_or_sync('get_imdb_...
def get_imdb_information(self, imdb_id): '\n Get all the imdb information from opensubtitle api\n :param string imdb_id: IMDB ID to get the information on\n :return dict: All the information about a movie from IMDB\n ' self.key = {'id': imdb_id} return self.get_or_sync('get_imdb_...
75c940d98789cfc2f2ef33b2e8dda4258099a1195fd83ac809483d9e99005195
def get_movie_name(self, movie_hash, number=''): "\n Return the movie name (and other information) from a hash\n :param string movie_hash: String representing the special hash used by open subtitle\n :param number: Type of API method to call (can be either '' or '2' differences are unknown)\n ...
Return the movie name (and other information) from a hash :param string movie_hash: String representing the special hash used by open subtitle :param number: Type of API method to call (can be either '' or '2' differences are unknown) :return dict: Return the movie information as JSON
middleware/mii_cache_wrapper.py
get_movie_name
MiiRaGe/miilibrary
0
python
def get_movie_name(self, movie_hash, number=): "\n Return the movie name (and other information) from a hash\n :param string movie_hash: String representing the special hash used by open subtitle\n :param number: Type of API method to call (can be either or '2' differences are unknown)\n ...
def get_movie_name(self, movie_hash, number=): "\n Return the movie name (and other information) from a hash\n :param string movie_hash: String representing the special hash used by open subtitle\n :param number: Type of API method to call (can be either or '2' differences are unknown)\n ...
69a0451eddda23f59034a429480fd4963ec2d16e3ac70003ca660964d18414b0
def get_subtitles(self, movie_hash, file_size): '\n Get the list of subtitles associated to a file hash\n :param string movie_hash: String representing the special hash used by open subtitle\n :param str file_size: Size of the movie\n :return dict: Return the JSON containing information ...
Get the list of subtitles associated to a file hash :param string movie_hash: String representing the special hash used by open subtitle :param str file_size: Size of the movie :return dict: Return the JSON containing information about different available subtitles
middleware/mii_cache_wrapper.py
get_subtitles
MiiRaGe/miilibrary
0
python
def get_subtitles(self, movie_hash, file_size): '\n Get the list of subtitles associated to a file hash\n :param string movie_hash: String representing the special hash used by open subtitle\n :param str file_size: Size of the movie\n :return dict: Return the JSON containing information ...
def get_subtitles(self, movie_hash, file_size): '\n Get the list of subtitles associated to a file hash\n :param string movie_hash: String representing the special hash used by open subtitle\n :param str file_size: Size of the movie\n :return dict: Return the JSON containing information ...
2458934458a85b75b1112b5417dc61e2d0831dbd3b126aebb66892bb3ecde31e
def poly_fit(traj, traj_len, threshold): '\n Input:\n - traj: Numpy array of shape (2, traj_len)\n - traj_len: Len of trajectory\n - threshold: Minimum error to be considered for non linear traj\n Output:\n - int: 1 -> Non Linear 0-> Linear\n ' t = np.linspace(0, (traj_len - 1), traj_len) ...
Input: - traj: Numpy array of shape (2, traj_len) - traj_len: Len of trajectory - threshold: Minimum error to be considered for non linear traj Output: - int: 1 -> Non Linear 0-> Linear
utils.py
poly_fit
sidharthsinha/social-nce-stgcnn
11
python
def poly_fit(traj, traj_len, threshold): '\n Input:\n - traj: Numpy array of shape (2, traj_len)\n - traj_len: Len of trajectory\n - threshold: Minimum error to be considered for non linear traj\n Output:\n - int: 1 -> Non Linear 0-> Linear\n ' t = np.linspace(0, (traj_len - 1), traj_len) ...
def poly_fit(traj, traj_len, threshold): '\n Input:\n - traj: Numpy array of shape (2, traj_len)\n - traj_len: Len of trajectory\n - threshold: Minimum error to be considered for non linear traj\n Output:\n - int: 1 -> Non Linear 0-> Linear\n ' t = np.linspace(0, (traj_len - 1), traj_len) ...
6e15ad26d081a3c519541cdbbe2bd751bb7cf9bc3d9d25d89f85769e3596e464
def interpolate_traj(traj, num_interp=4): '\n Add linearly interpolated points of a trajectory\n ' sz = traj.shape dense = np.zeros((sz[0], (((sz[1] - 1) * (num_interp + 1)) + 1), 2)) dense[(:, :1, :)] = traj[(:, :1)] for i in range((num_interp + 1)): ratio = ((i + 1) / (num_interp + 1...
Add linearly interpolated points of a trajectory
utils.py
interpolate_traj
sidharthsinha/social-nce-stgcnn
11
python
def interpolate_traj(traj, num_interp=4): '\n \n ' sz = traj.shape dense = np.zeros((sz[0], (((sz[1] - 1) * (num_interp + 1)) + 1), 2)) dense[(:, :1, :)] = traj[(:, :1)] for i in range((num_interp + 1)): ratio = ((i + 1) / (num_interp + 1)) dense[(:, (i + 1)::(num_interp + 1), ...
def interpolate_traj(traj, num_interp=4): '\n \n ' sz = traj.shape dense = np.zeros((sz[0], (((sz[1] - 1) * (num_interp + 1)) + 1), 2)) dense[(:, :1, :)] = traj[(:, :1)] for i in range((num_interp + 1)): ratio = ((i + 1) / (num_interp + 1)) dense[(:, (i + 1)::(num_interp + 1), ...
5ab936af6e6aeaf7805b135f6b162b12f8ef6120b9a68ed15349abadebfd0991
def compute_col(predicted_traj, predicted_trajs_all, thres=0.2): '\n Input:\n predicted_trajs: predicted trajectory of the primary agents, [12, 2]\n predicted_trajs_all: predicted trajectory of all agents in the scene, [num_person, 12, 2]\n ' ph = predicted_traj.shape[0] num_interp = 4 ...
Input: predicted_trajs: predicted trajectory of the primary agents, [12, 2] predicted_trajs_all: predicted trajectory of all agents in the scene, [num_person, 12, 2]
utils.py
compute_col
sidharthsinha/social-nce-stgcnn
11
python
def compute_col(predicted_traj, predicted_trajs_all, thres=0.2): '\n Input:\n predicted_trajs: predicted trajectory of the primary agents, [12, 2]\n predicted_trajs_all: predicted trajectory of all agents in the scene, [num_person, 12, 2]\n ' ph = predicted_traj.shape[0] num_interp = 4 ...
def compute_col(predicted_traj, predicted_trajs_all, thres=0.2): '\n Input:\n predicted_trajs: predicted trajectory of the primary agents, [12, 2]\n predicted_trajs_all: predicted trajectory of all agents in the scene, [num_person, 12, 2]\n ' ph = predicted_traj.shape[0] num_interp = 4 ...
a654625a8a4f5871cc7ba5c737b280ab634632df3b5847fb46dcd147a4cfc339
def __init__(self, data_dir, obs_len=8, pred_len=8, skip=1, threshold=0.002, min_ped=1, delim='\t', norm_lap_matr=True): '\n Args:\n - data_dir: Directory containing dataset files in the format\n <frame_id> <ped_id> <x> <y>\n - obs_len: Number of time-steps in input trajectories\n ...
Args: - data_dir: Directory containing dataset files in the format <frame_id> <ped_id> <x> <y> - obs_len: Number of time-steps in input trajectories - pred_len: Number of time-steps in output trajectories - skip: Number of frames to skip while making the dataset - threshold: Minimum error to be considered for non linea...
utils.py
__init__
sidharthsinha/social-nce-stgcnn
11
python
def __init__(self, data_dir, obs_len=8, pred_len=8, skip=1, threshold=0.002, min_ped=1, delim='\t', norm_lap_matr=True): '\n Args:\n - data_dir: Directory containing dataset files in the format\n <frame_id> <ped_id> <x> <y>\n - obs_len: Number of time-steps in input trajectories\n ...
def __init__(self, data_dir, obs_len=8, pred_len=8, skip=1, threshold=0.002, min_ped=1, delim='\t', norm_lap_matr=True): '\n Args:\n - data_dir: Directory containing dataset files in the format\n <frame_id> <ped_id> <x> <y>\n - obs_len: Number of time-steps in input trajectories\n ...
225bd748e84680841def5c78be593fe6eff0edb9964ee39af0ee4c899cca326b
def get_resolved(doc, clusters): ' Return a list of utterrances text where the coref are resolved to the most representative mention' resolved = list((tok.text_with_ws for tok in doc)) sent_subjs = [t for t in doc if (t.dep_ == 'nsubj')] for cluster in clusters: for coref in cluster: ...
Return a list of utterrances text where the coref are resolved to the most representative mention
nlp_helpers/features.py
get_resolved
4398TempleSpring2020/cscapstoneproject-infinitetrivia
1
python
def get_resolved(doc, clusters): ' ' resolved = list((tok.text_with_ws for tok in doc)) sent_subjs = [t for t in doc if (t.dep_ == 'nsubj')] for cluster in clusters: for coref in cluster: if ((coref != cluster.main) and any([(tok in sent_subjs) for tok in coref])): re...
def get_resolved(doc, clusters): ' ' resolved = list((tok.text_with_ws for tok in doc)) sent_subjs = [t for t in doc if (t.dep_ == 'nsubj')] for cluster in clusters: for coref in cluster: if ((coref != cluster.main) and any([(tok in sent_subjs) for tok in coref])): re...
ffa475e3fc7cf281984087ebb90d9e53239ae6a4202fb30267efe3eb2a357e83
def _ping(self) -> bool: 'Test if the device is listening.' assert (self.socket is not None) resp = None try: self.socket.sendall(b'PINGPING') resp = self.socket.recv(8) except Exception: pass return (resp == b'PONGPONG')
Test if the device is listening.
hwilib/devices/trezorlib/transport/udp.py
_ping
cjackie/HWI
285
python
def _ping(self) -> bool: assert (self.socket is not None) resp = None try: self.socket.sendall(b'PINGPING') resp = self.socket.recv(8) except Exception: pass return (resp == b'PONGPONG')
def _ping(self) -> bool: assert (self.socket is not None) resp = None try: self.socket.sendall(b'PINGPING') resp = self.socket.recv(8) except Exception: pass return (resp == b'PONGPONG')<|docstring|>Test if the device is listening.<|endoftext|>
038c28f817768be8530ea2b8db3b781237cae61eff82ae1b5ba960cce0c06f30
def initialize_schema(self): 'Create every necessary objects (like tables or indices) in the\n backend.\n\n This is excuted with the ``cliquet migrate`` command.\n ' raise NotImplementedError
Create every necessary objects (like tables or indices) in the backend. This is excuted with the ``cliquet migrate`` command.
cliquet/permission/__init__.py
initialize_schema
ravitejavalluri/cliquet
89
python
def initialize_schema(self): 'Create every necessary objects (like tables or indices) in the\n backend.\n\n This is excuted with the ``cliquet migrate`` command.\n ' raise NotImplementedError
def initialize_schema(self): 'Create every necessary objects (like tables or indices) in the\n backend.\n\n This is excuted with the ``cliquet migrate`` command.\n ' raise NotImplementedError<|docstring|>Create every necessary objects (like tables or indices) in the backend. This is excute...
5028373aee8cccfe01c78eafd84566fd7e574c31650d7656dc33ff79bb428b08
def flush(self): 'Delete all data stored in the permission backend.' raise NotImplementedError
Delete all data stored in the permission backend.
cliquet/permission/__init__.py
flush
ravitejavalluri/cliquet
89
python
def flush(self): raise NotImplementedError
def flush(self): raise NotImplementedError<|docstring|>Delete all data stored in the permission backend.<|endoftext|>
d6d8afc691dcbb6b39be2130df09610ec44b5fd832a2dd57b524cac5095ebd13
def add_user_principal(self, user_id, principal): 'Add an additional principal to a user.\n\n :param str user_id: The user_id to add the principal to.\n :param str principal: The principal to add.\n ' raise NotImplementedError
Add an additional principal to a user. :param str user_id: The user_id to add the principal to. :param str principal: The principal to add.
cliquet/permission/__init__.py
add_user_principal
ravitejavalluri/cliquet
89
python
def add_user_principal(self, user_id, principal): 'Add an additional principal to a user.\n\n :param str user_id: The user_id to add the principal to.\n :param str principal: The principal to add.\n ' raise NotImplementedError
def add_user_principal(self, user_id, principal): 'Add an additional principal to a user.\n\n :param str user_id: The user_id to add the principal to.\n :param str principal: The principal to add.\n ' raise NotImplementedError<|docstring|>Add an additional principal to a user. :param str u...
5352825f04c0e48cbd7186de92077305f99e70c039e56ed00cc2cba44538523d
def remove_user_principal(self, user_id, principal): 'Remove an additional principal from a user.\n\n :param str user_id: The user_id to remove the principal to.\n :param str principal: The principal to remove.\n ' raise NotImplementedError
Remove an additional principal from a user. :param str user_id: The user_id to remove the principal to. :param str principal: The principal to remove.
cliquet/permission/__init__.py
remove_user_principal
ravitejavalluri/cliquet
89
python
def remove_user_principal(self, user_id, principal): 'Remove an additional principal from a user.\n\n :param str user_id: The user_id to remove the principal to.\n :param str principal: The principal to remove.\n ' raise NotImplementedError
def remove_user_principal(self, user_id, principal): 'Remove an additional principal from a user.\n\n :param str user_id: The user_id to remove the principal to.\n :param str principal: The principal to remove.\n ' raise NotImplementedError<|docstring|>Remove an additional principal from a ...
131b5088f863baf4f32b4825a57b65677ff5175f4c49698b0a769cc42c3b605a
def remove_principal(self, principal): 'Remove a principal from every user.\n\n :param str principal: The principal to remove.\n ' raise NotImplementedError
Remove a principal from every user. :param str principal: The principal to remove.
cliquet/permission/__init__.py
remove_principal
ravitejavalluri/cliquet
89
python
def remove_principal(self, principal): 'Remove a principal from every user.\n\n :param str principal: The principal to remove.\n ' raise NotImplementedError
def remove_principal(self, principal): 'Remove a principal from every user.\n\n :param str principal: The principal to remove.\n ' raise NotImplementedError<|docstring|>Remove a principal from every user. :param str principal: The principal to remove.<|endoftext|>
76fc7403b9175a2080a78007853379833790ecc72154cfec00bfb6e9d8b882be
def user_principals(self, user_id): 'Return the set of additionnal principals given to a user.\n\n :param str user_id: The user_id to get the list of groups for.\n :returns: The list of group principals the user is in.\n :rtype: set\n\n ' raise NotImplementedError
Return the set of additionnal principals given to a user. :param str user_id: The user_id to get the list of groups for. :returns: The list of group principals the user is in. :rtype: set
cliquet/permission/__init__.py
user_principals
ravitejavalluri/cliquet
89
python
def user_principals(self, user_id): 'Return the set of additionnal principals given to a user.\n\n :param str user_id: The user_id to get the list of groups for.\n :returns: The list of group principals the user is in.\n :rtype: set\n\n ' raise NotImplementedError
def user_principals(self, user_id): 'Return the set of additionnal principals given to a user.\n\n :param str user_id: The user_id to get the list of groups for.\n :returns: The list of group principals the user is in.\n :rtype: set\n\n ' raise NotImplementedError<|docstring|>Return ...
60a318d5ea95eef382acdf8a1c8c23f49e23445487023b630aba0aca2988c122
def add_principal_to_ace(self, object_id, permission, principal): 'Add a principal to an Access Control Entry.\n\n :param str object_id: The object to add the permission principal to.\n :param str permission: The permission to add the principal to.\n :param str principal: The principal to add t...
Add a principal to an Access Control Entry. :param str object_id: The object to add the permission principal to. :param str permission: The permission to add the principal to. :param str principal: The principal to add to the ACE.
cliquet/permission/__init__.py
add_principal_to_ace
ravitejavalluri/cliquet
89
python
def add_principal_to_ace(self, object_id, permission, principal): 'Add a principal to an Access Control Entry.\n\n :param str object_id: The object to add the permission principal to.\n :param str permission: The permission to add the principal to.\n :param str principal: The principal to add t...
def add_principal_to_ace(self, object_id, permission, principal): 'Add a principal to an Access Control Entry.\n\n :param str object_id: The object to add the permission principal to.\n :param str permission: The permission to add the principal to.\n :param str principal: The principal to add t...
7430d67e2bd5ee061bb3a5f4e929552e469fa536140ad3d6ca88c4d84aa2e02a
def remove_principal_from_ace(self, object_id, permission, principal): 'Remove a principal to an Access Control Entry.\n\n :param str object_id: The object to remove the permission principal to.\n :param str permission: The permission that should be removed.\n :param str principal: The principa...
Remove a principal to an Access Control Entry. :param str object_id: The object to remove the permission principal to. :param str permission: The permission that should be removed. :param str principal: The principal to remove to the ACE.
cliquet/permission/__init__.py
remove_principal_from_ace
ravitejavalluri/cliquet
89
python
def remove_principal_from_ace(self, object_id, permission, principal): 'Remove a principal to an Access Control Entry.\n\n :param str object_id: The object to remove the permission principal to.\n :param str permission: The permission that should be removed.\n :param str principal: The principa...
def remove_principal_from_ace(self, object_id, permission, principal): 'Remove a principal to an Access Control Entry.\n\n :param str object_id: The object to remove the permission principal to.\n :param str permission: The permission that should be removed.\n :param str principal: The principa...
00d1e077731ae0b634afe9fadda85b2746c1617e3d53144cc165693a9f6ae83e
def object_permission_principals(self, object_id, permission): 'Return the set of principals of a bound permission\n (unbound permission + object id).\n\n :param str object_id: The object_id the permission is set to.\n :param str permission: The permission to query.\n :returns: The list ...
Return the set of principals of a bound permission (unbound permission + object id). :param str object_id: The object_id the permission is set to. :param str permission: The permission to query. :returns: The list of user principals :rtype: set
cliquet/permission/__init__.py
object_permission_principals
ravitejavalluri/cliquet
89
python
def object_permission_principals(self, object_id, permission): 'Return the set of principals of a bound permission\n (unbound permission + object id).\n\n :param str object_id: The object_id the permission is set to.\n :param str permission: The permission to query.\n :returns: The list ...
def object_permission_principals(self, object_id, permission): 'Return the set of principals of a bound permission\n (unbound permission + object id).\n\n :param str object_id: The object_id the permission is set to.\n :param str permission: The permission to query.\n :returns: The list ...
5433b63cc02d3cb236b637b0e0b725fca7b4bdbe2a067dfff5a8833f3ea34b5e
def principals_accessible_objects(self, principals, permission, object_id_match=None, get_bound_permissions=None): "Return the list of objects id where the specified `principals`\n have the specified `permission`.\n\n :param list principal: List of user principals\n :param str permission: The p...
Return the list of objects id where the specified `principals` have the specified `permission`. :param list principal: List of user principals :param str permission: The permission to query. :param str object_id_match: Filter object ids based on a pattern (e.g. ``'*articles*'``). :param function get_bound_permissi...
cliquet/permission/__init__.py
principals_accessible_objects
ravitejavalluri/cliquet
89
python
def principals_accessible_objects(self, principals, permission, object_id_match=None, get_bound_permissions=None): "Return the list of objects id where the specified `principals`\n have the specified `permission`.\n\n :param list principal: List of user principals\n :param str permission: The p...
def principals_accessible_objects(self, principals, permission, object_id_match=None, get_bound_permissions=None): "Return the list of objects id where the specified `principals`\n have the specified `permission`.\n\n :param list principal: List of user principals\n :param str permission: The p...
982cdd5bae47b3f2197f9a128179763d9b21bc7966d025372b35d287fbe7224f
def object_permission_authorized_principals(self, object_id, permission, get_bound_permissions=None): 'Return the full set of authorized principals for a given\n permission + object (bound permission).\n\n :param str object_id: The object_id the permission is set to.\n :param str permission: Th...
Return the full set of authorized principals for a given permission + object (bound permission). :param str object_id: The object_id the permission is set to. :param str permission: The permission to query. :param function get_bound_permissions: The methods to call in order to generate the list of permission to ...
cliquet/permission/__init__.py
object_permission_authorized_principals
ravitejavalluri/cliquet
89
python
def object_permission_authorized_principals(self, object_id, permission, get_bound_permissions=None): 'Return the full set of authorized principals for a given\n permission + object (bound permission).\n\n :param str object_id: The object_id the permission is set to.\n :param str permission: Th...
def object_permission_authorized_principals(self, object_id, permission, get_bound_permissions=None): 'Return the full set of authorized principals for a given\n permission + object (bound permission).\n\n :param str object_id: The object_id the permission is set to.\n :param str permission: Th...
6125c881e699601e9f4d387ed95d7cc847b24e73f974055e9f89412969c78e2a
def check_permission(self, object_id, permission, principals, get_bound_permissions=None): 'Test if a principal set have got a permission on an object.\n\n :param str object_id:\n The identifier of the object concerned by the permission.\n :param str permission: The permission to test.\n ...
Test if a principal set have got a permission on an object. :param str object_id: The identifier of the object concerned by the permission. :param str permission: The permission to test. :param set principals: A set of user principals to test the permission against. :param function get_bound_permissions: T...
cliquet/permission/__init__.py
check_permission
ravitejavalluri/cliquet
89
python
def check_permission(self, object_id, permission, principals, get_bound_permissions=None): 'Test if a principal set have got a permission on an object.\n\n :param str object_id:\n The identifier of the object concerned by the permission.\n :param str permission: The permission to test.\n ...
def check_permission(self, object_id, permission, principals, get_bound_permissions=None): 'Test if a principal set have got a permission on an object.\n\n :param str object_id:\n The identifier of the object concerned by the permission.\n :param str permission: The permission to test.\n ...
8bd3224c58fc6cf541f0b18652e459d84bb0ea8e250e88f32f94129360ca1198
def object_permissions(self, object_id, permissions=None): 'Return the set of principals for each object permission.\n\n :param str object_id: The object_id the permission is set to.\n :param list permissions: List of permissions to retrieve.\n If not define will try to...
Return the set of principals for each object permission. :param str object_id: The object_id the permission is set to. :param list permissions: List of permissions to retrieve. If not define will try to find them all. :returns: The dictionnary with the list of user principals for eac...
cliquet/permission/__init__.py
object_permissions
ravitejavalluri/cliquet
89
python
def object_permissions(self, object_id, permissions=None): 'Return the set of principals for each object permission.\n\n :param str object_id: The object_id the permission is set to.\n :param list permissions: List of permissions to retrieve.\n If not define will try to...
def object_permissions(self, object_id, permissions=None): 'Return the set of principals for each object permission.\n\n :param str object_id: The object_id the permission is set to.\n :param list permissions: List of permissions to retrieve.\n If not define will try to...
a0a78a1670739f125950b1d02c36cf93e26246396d972eaa6723f2b8d26f8871
def replace_object_permissions(self, object_id, permissions): 'Replace given object permissions.\n\n :param str object_id: The object to replace permissions to.\n :param str permissions: The permissions dict to replace.\n ' raise NotImplementedError
Replace given object permissions. :param str object_id: The object to replace permissions to. :param str permissions: The permissions dict to replace.
cliquet/permission/__init__.py
replace_object_permissions
ravitejavalluri/cliquet
89
python
def replace_object_permissions(self, object_id, permissions): 'Replace given object permissions.\n\n :param str object_id: The object to replace permissions to.\n :param str permissions: The permissions dict to replace.\n ' raise NotImplementedError
def replace_object_permissions(self, object_id, permissions): 'Replace given object permissions.\n\n :param str object_id: The object to replace permissions to.\n :param str permissions: The permissions dict to replace.\n ' raise NotImplementedError<|docstring|>Replace given object permissi...
078bf956a12085a739f6c815623d6277924efc4607dd6c23e766fe254a750274
def delete_object_permissions(self, *object_id_list): 'Delete all listed object permissions.\n\n :param str object_id: Remove given objects permissions.\n ' raise NotImplementedError
Delete all listed object permissions. :param str object_id: Remove given objects permissions.
cliquet/permission/__init__.py
delete_object_permissions
ravitejavalluri/cliquet
89
python
def delete_object_permissions(self, *object_id_list): 'Delete all listed object permissions.\n\n :param str object_id: Remove given objects permissions.\n ' raise NotImplementedError
def delete_object_permissions(self, *object_id_list): 'Delete all listed object permissions.\n\n :param str object_id: Remove given objects permissions.\n ' raise NotImplementedError<|docstring|>Delete all listed object permissions. :param str object_id: Remove given objects permissions.<|endofte...
b786eed27901e5d55ea12d86cf2464e7b1adb8059dfe9c11666bdb6934290870
def ping(request): 'Test the permission backend is operationnal.\n\n :param request: current request object\n :type request: :class:`~pyramid:pyramid.request.Request`\n :returns: ``True`` is everything is ok, ``False`` otherwise.\n :rtype: bool\n ' try: if asbool(reque...
Test the permission backend is operationnal. :param request: current request object :type request: :class:`~pyramid:pyramid.request.Request` :returns: ``True`` is everything is ok, ``False`` otherwise. :rtype: bool
cliquet/permission/__init__.py
ping
ravitejavalluri/cliquet
89
python
def ping(request): 'Test the permission backend is operationnal.\n\n :param request: current request object\n :type request: :class:`~pyramid:pyramid.request.Request`\n :returns: ``True`` is everything is ok, ``False`` otherwise.\n :rtype: bool\n ' try: if asbool(reque...
def ping(request): 'Test the permission backend is operationnal.\n\n :param request: current request object\n :type request: :class:`~pyramid:pyramid.request.Request`\n :returns: ``True`` is everything is ok, ``False`` otherwise.\n :rtype: bool\n ' try: if asbool(reque...
91429b4c2524e055346559c93a400d8827cc0752bb548a99d889a996158e811b
def load_mock_data(apps, schema_editor): '\n Fixtures will be removed on django 1.9.\n Using data migrations instead as suggested\n in the documentation.\n ' fixture_file = os.path.join(fixture_dir, fixture_filename) with open(fixture_file, 'rb') as fixture: objects = serializers.deseria...
Fixtures will be removed on django 1.9. Using data migrations instead as suggested in the documentation.
demo/example/foo/migrations/0002_auto_20151110_1101.py
load_mock_data
swappsco/django-plans
13
python
def load_mock_data(apps, schema_editor): '\n Fixtures will be removed on django 1.9.\n Using data migrations instead as suggested\n in the documentation.\n ' fixture_file = os.path.join(fixture_dir, fixture_filename) with open(fixture_file, 'rb') as fixture: objects = serializers.deseria...
def load_mock_data(apps, schema_editor): '\n Fixtures will be removed on django 1.9.\n Using data migrations instead as suggested\n in the documentation.\n ' fixture_file = os.path.join(fixture_dir, fixture_filename) with open(fixture_file, 'rb') as fixture: objects = serializers.deseria...
27f10be5ff60f830e977f0cac81f84c2a78c63b069c1613aac3aa5d148122958
async def red_delete_data_for_user(self, **kwargs): ' Nothing to delete ' return
Nothing to delete
pnw/pnw.py
red_delete_data_for_user
ltzmax/kennnyshiwa-cogs
21
python
async def red_delete_data_for_user(self, **kwargs): ' ' return
async def red_delete_data_for_user(self, **kwargs): ' ' return<|docstring|>Nothing to delete<|endoftext|>
fe31776cec119942f9673641748a4522890bb48e42c77e153251f2654ae19808
async def initialize(self) -> None: '\n Move the API keys from cog stored config to core bot config if they exist.\n ' pnw_key = (await self.config.pnw_key()) if hasattr(self.bot, 'get_shared_api_tokens'): if ((pnw_key is not None) and ('pnw' not in (await self.bot.get_shared_api_token...
Move the API keys from cog stored config to core bot config if they exist.
pnw/pnw.py
initialize
ltzmax/kennnyshiwa-cogs
21
python
async def initialize(self) -> None: '\n \n ' pnw_key = (await self.config.pnw_key()) if hasattr(self.bot, 'get_shared_api_tokens'): if ((pnw_key is not None) and ('pnw' not in (await self.bot.get_shared_api_tokens()))): (await self.bot.set.shared_api_tokens('pnw', value={'a...
async def initialize(self) -> None: '\n \n ' pnw_key = (await self.config.pnw_key()) if hasattr(self.bot, 'get_shared_api_tokens'): if ((pnw_key is not None) and ('pnw' not in (await self.bot.get_shared_api_tokens()))): (await self.bot.set.shared_api_tokens('pnw', value={'a...
78416584a6b15958fb2403835923e8d0e9fa38403755f9e57240eed431d787f0
def escape_query(self, query) -> str: 'Escape mentions from queries' return query.replace('`', "'")
Escape mentions from queries
pnw/pnw.py
escape_query
ltzmax/kennnyshiwa-cogs
21
python
def escape_query(self, query) -> str: return query.replace('`', "'")
def escape_query(self, query) -> str: return query.replace('`', "'")<|docstring|>Escape mentions from queries<|endoftext|>
932038d0e5af3a2b74a204a66ed7bf90b7a9c8c30c7f0ff475fe2fc8f3c41854
@checks.is_owner() @commands.bot_has_permissions(embed_links=True) @commands.command() async def pnwkey(self, ctx): '\n Explain how to set PNW API key.\n Note: You have to have a PNW account to get a api key\n ' message = "So first, to get a PNW api key you need to have an account o...
Explain how to set PNW API key. Note: You have to have a PNW account to get a api key
pnw/pnw.py
pnwkey
ltzmax/kennnyshiwa-cogs
21
python
@checks.is_owner() @commands.bot_has_permissions(embed_links=True) @commands.command() async def pnwkey(self, ctx): '\n Explain how to set PNW API key.\n Note: You have to have a PNW account to get a api key\n ' message = "So first, to get a PNW api key you need to have an account o...
@checks.is_owner() @commands.bot_has_permissions(embed_links=True) @commands.command() async def pnwkey(self, ctx): '\n Explain how to set PNW API key.\n Note: You have to have a PNW account to get a api key\n ' message = "So first, to get a PNW api key you need to have an account o...
5693d93e64cc6587a86cf3a385c4a70f6151d236e1fb7e358dfde35163b056af
@staticmethod async def do_lookup(ctx, nid) -> list: '\n Run Nation lookup.\n ' if hasattr(ctx.bot, 'get_shared_api_tokens'): api = (await ctx.bot.get_shared_api_tokens('pnw')) pnw_key = api.get('api_key') else: api = (await ctx.bot.db.api_tokens.get_raw('pnw')) ...
Run Nation lookup.
pnw/pnw.py
do_lookup
ltzmax/kennnyshiwa-cogs
21
python
@staticmethod async def do_lookup(ctx, nid) -> list: '\n \n ' if hasattr(ctx.bot, 'get_shared_api_tokens'): api = (await ctx.bot.get_shared_api_tokens('pnw')) pnw_key = api.get('api_key') else: api = (await ctx.bot.db.api_tokens.get_raw('pnw')) pnw_key = api['ap...
@staticmethod async def do_lookup(ctx, nid) -> list: '\n \n ' if hasattr(ctx.bot, 'get_shared_api_tokens'): api = (await ctx.bot.get_shared_api_tokens('pnw')) pnw_key = api.get('api_key') else: api = (await ctx.bot.db.api_tokens.get_raw('pnw')) pnw_key = api['ap...
9988ed546853ad41c44da26f9ee1f17cfe3ecbc8d8e8c2c5e9d266eee749585c
@staticmethod async def nations_lookup(ctx): '\n Lookup all nations.\n ' if hasattr(ctx.bot, 'get_shared_api_tokens'): api = (await ctx.bot.get_shared_api_tokens('pnw')) pnw_key = api.get('api_key') else: api = (await ctx.bot.db.api_tokens.get_raw('pnw')) pnw_ke...
Lookup all nations.
pnw/pnw.py
nations_lookup
ltzmax/kennnyshiwa-cogs
21
python
@staticmethod async def nations_lookup(ctx): '\n \n ' if hasattr(ctx.bot, 'get_shared_api_tokens'): api = (await ctx.bot.get_shared_api_tokens('pnw')) pnw_key = api.get('api_key') else: api = (await ctx.bot.db.api_tokens.get_raw('pnw')) pnw_key = api['api_key'] ...
@staticmethod async def nations_lookup(ctx): '\n \n ' if hasattr(ctx.bot, 'get_shared_api_tokens'): api = (await ctx.bot.get_shared_api_tokens('pnw')) pnw_key = api.get('api_key') else: api = (await ctx.bot.db.api_tokens.get_raw('pnw')) pnw_key = api['api_key'] ...
86801e19af5cd5cf9a9d3918b44e39915e8c8439b34a1161cbe9a8f346ccc0a5
@staticmethod async def alliances_lookup(ctx): '\n Run Alliance Lookup.\n ' if hasattr(ctx.bot, 'get_shared_api_tokens'): api = (await ctx.bot.get_shared_api_tokens('pnw')) pnw_key = api.get('api_key') else: api = (await ctx.bot.db.api_tokens.get_raw('pnw')) pnw...
Run Alliance Lookup.
pnw/pnw.py
alliances_lookup
ltzmax/kennnyshiwa-cogs
21
python
@staticmethod async def alliances_lookup(ctx): '\n \n ' if hasattr(ctx.bot, 'get_shared_api_tokens'): api = (await ctx.bot.get_shared_api_tokens('pnw')) pnw_key = api.get('api_key') else: api = (await ctx.bot.db.api_tokens.get_raw('pnw')) pnw_key = api['api_key'...
@staticmethod async def alliances_lookup(ctx): '\n \n ' if hasattr(ctx.bot, 'get_shared_api_tokens'): api = (await ctx.bot.get_shared_api_tokens('pnw')) pnw_key = api.get('api_key') else: api = (await ctx.bot.db.api_tokens.get_raw('pnw')) pnw_key = api['api_key'...
f0c6c94424f52d550198e81969c3279d2484a0ca7da2ed18a541dc3fa6ba900b
@staticmethod async def alliance_lookup(ctx, alid: str) -> list: '\n Run Alliance Lookup.\n ' if hasattr(ctx.bot, 'get_shared_api_tokens'): api = (await ctx.bot.get_shared_api_tokens('pnw')) pnw_key = api.get('api_key') else: api = (await ctx.bot.db.api_tokens.get_raw('...
Run Alliance Lookup.
pnw/pnw.py
alliance_lookup
ltzmax/kennnyshiwa-cogs
21
python
@staticmethod async def alliance_lookup(ctx, alid: str) -> list: '\n \n ' if hasattr(ctx.bot, 'get_shared_api_tokens'): api = (await ctx.bot.get_shared_api_tokens('pnw')) pnw_key = api.get('api_key') else: api = (await ctx.bot.db.api_tokens.get_raw('pnw')) pnw_k...
@staticmethod async def alliance_lookup(ctx, alid: str) -> list: '\n \n ' if hasattr(ctx.bot, 'get_shared_api_tokens'): api = (await ctx.bot.get_shared_api_tokens('pnw')) pnw_key = api.get('api_key') else: api = (await ctx.bot.db.api_tokens.get_raw('pnw')) pnw_k...
1bf0064bbc653473ef546f0661644f5c4494178f915cd32ada95d673ba17665b
@staticmethod async def city_api(ctx, alid: str) -> list: '\n Run City Lookup.\n ' if hasattr(ctx.bot, 'get_shared_api_tokens'): api = (await ctx.bot.get_shared_api_tokens('pnw')) pnw_key = api.get('api_key') else: api = (await ctx.bot.db.api_tokens.get_raw('pnw')) ...
Run City Lookup.
pnw/pnw.py
city_api
ltzmax/kennnyshiwa-cogs
21
python
@staticmethod async def city_api(ctx, alid: str) -> list: '\n \n ' if hasattr(ctx.bot, 'get_shared_api_tokens'): api = (await ctx.bot.get_shared_api_tokens('pnw')) pnw_key = api.get('api_key') else: api = (await ctx.bot.db.api_tokens.get_raw('pnw')) pnw_key = ap...
@staticmethod async def city_api(ctx, alid: str) -> list: '\n \n ' if hasattr(ctx.bot, 'get_shared_api_tokens'): api = (await ctx.bot.get_shared_api_tokens('pnw')) pnw_key = api.get('api_key') else: api = (await ctx.bot.db.api_tokens.get_raw('pnw')) pnw_key = ap...
a53d87e1584cb3c4400d1adf3b49251f5422f6ab0941ad737f1896b7f6c410e6
@staticmethod async def tradeprice_lookup(ctx, query): '\n Lookup resources trading info.\n ' if hasattr(ctx.bot, 'get_shared_api_tokens'): api = (await ctx.bot.get_shared_api_tokens('pnw')) pnw_key = api.get('api_key') else: api = (await ctx.bot.db.api_tokens.get_raw('...
Lookup resources trading info.
pnw/pnw.py
tradeprice_lookup
ltzmax/kennnyshiwa-cogs
21
python
@staticmethod async def tradeprice_lookup(ctx, query): '\n \n ' if hasattr(ctx.bot, 'get_shared_api_tokens'): api = (await ctx.bot.get_shared_api_tokens('pnw')) pnw_key = api.get('api_key') else: api = (await ctx.bot.db.api_tokens.get_raw('pnw')) pnw_key = api['...
@staticmethod async def tradeprice_lookup(ctx, query): '\n \n ' if hasattr(ctx.bot, 'get_shared_api_tokens'): api = (await ctx.bot.get_shared_api_tokens('pnw')) pnw_key = api.get('api_key') else: api = (await ctx.bot.db.api_tokens.get_raw('pnw')) pnw_key = api['...
c371a2c7e66a4e11be48077a3e16677f898591ff6dd03712cb2f9f332b4522ea
@staticmethod async def bank_lookup(ctx, alid: str) -> list: '\n Run Bank Lookup.\n ' if hasattr(ctx.bot, 'get_shared_api_tokens'): api = (await ctx.bot.get_shared_api_tokens('pnw')) pnw_key = api.get('api_key') else: api = (await ctx.bot.db.api_tokens.get_raw('pnw')) ...
Run Bank Lookup.
pnw/pnw.py
bank_lookup
ltzmax/kennnyshiwa-cogs
21
python
@staticmethod async def bank_lookup(ctx, alid: str) -> list: '\n \n ' if hasattr(ctx.bot, 'get_shared_api_tokens'): api = (await ctx.bot.get_shared_api_tokens('pnw')) pnw_key = api.get('api_key') else: api = (await ctx.bot.db.api_tokens.get_raw('pnw')) pnw_key =...
@staticmethod async def bank_lookup(ctx, alid: str) -> list: '\n \n ' if hasattr(ctx.bot, 'get_shared_api_tokens'): api = (await ctx.bot.get_shared_api_tokens('pnw')) pnw_key = api.get('api_key') else: api = (await ctx.bot.db.api_tokens.get_raw('pnw')) pnw_key =...
3102d716150d72f7c37afe5462b090a0b1f66c7317ead41942e616169a6c16c5
@commands.bot_has_permissions(embed_links=True) @commands.command() async def nation(self, ctx, *, name): '\n Look up a nation.\n ' (await ctx.send('This may take a while.....')) async with ctx.typing(): name = self.escape_query(''.join(name)) key = False nations_data =...
Look up a nation.
pnw/pnw.py
nation
ltzmax/kennnyshiwa-cogs
21
python
@commands.bot_has_permissions(embed_links=True) @commands.command() async def nation(self, ctx, *, name): '\n \n ' (await ctx.send('This may take a while.....')) async with ctx.typing(): name = self.escape_query(.join(name)) key = False nations_data = (await self.nation...
@commands.bot_has_permissions(embed_links=True) @commands.command() async def nation(self, ctx, *, name): '\n \n ' (await ctx.send('This may take a while.....')) async with ctx.typing(): name = self.escape_query(.join(name)) key = False nations_data = (await self.nation...
913f65f6aa1a663de93d145adf91e362f85533cd7a1e50907e18949639d2c7ca
@commands.bot_has_permissions(embed_links=True) @commands.command() async def alliance(self, ctx, *, name): '\n Lookup an Alliance with an ID.\n ' async with ctx.typing(): name = self.escape_query(''.join(name)) key = False alliances_data = (await self.alliances_lookup(ctx)...
Lookup an Alliance with an ID.
pnw/pnw.py
alliance
ltzmax/kennnyshiwa-cogs
21
python
@commands.bot_has_permissions(embed_links=True) @commands.command() async def alliance(self, ctx, *, name): '\n \n ' async with ctx.typing(): name = self.escape_query(.join(name)) key = False alliances_data = (await self.alliances_lookup(ctx)) success = alliances_da...
@commands.bot_has_permissions(embed_links=True) @commands.command() async def alliance(self, ctx, *, name): '\n \n ' async with ctx.typing(): name = self.escape_query(.join(name)) key = False alliances_data = (await self.alliances_lookup(ctx)) success = alliances_da...
fd661e28dd768eb9554583501505739145044ab34f43dff7dcc5a1a3b8eb627e
@commands.bot_has_permissions(embed_links=True) @commands.command() async def cityinfo(self, ctx, *, id): '\n Provides information about the alliance linked to the ID you have given.\n ' data = (await self.city_api(ctx, id)) try: success = data['success'] if (success == False):...
Provides information about the alliance linked to the ID you have given.
pnw/pnw.py
cityinfo
ltzmax/kennnyshiwa-cogs
21
python
@commands.bot_has_permissions(embed_links=True) @commands.command() async def cityinfo(self, ctx, *, id): '\n \n ' data = (await self.city_api(ctx, id)) try: success = data['success'] if (success == False): if data['general_message']: (await ctx.send...
@commands.bot_has_permissions(embed_links=True) @commands.command() async def cityinfo(self, ctx, *, id): '\n \n ' data = (await self.city_api(ctx, id)) try: success = data['success'] if (success == False): if data['general_message']: (await ctx.send...
163e01b1907ededc5b21ff51b2e318210093268e78baeecc58ec0025ee40bdf8
@commands.bot_has_permissions(embed_links=True) @commands.command() async def tradeprice(self, ctx, *, query): '\n Lookup current avg trading price for a resource including last high and low values.\n\n By default this looks up the price of steel, any incorrect searches will also return steel....
Lookup current avg trading price for a resource including last high and low values. By default this looks up the price of steel, any incorrect searches will also return steel.
pnw/pnw.py
tradeprice
ltzmax/kennnyshiwa-cogs
21
python
@commands.bot_has_permissions(embed_links=True) @commands.command() async def tradeprice(self, ctx, *, query): '\n Lookup current avg trading price for a resource including last high and low values.\n\n By default this looks up the price of steel, any incorrect searches will also return steel....
@commands.bot_has_permissions(embed_links=True) @commands.command() async def tradeprice(self, ctx, *, query): '\n Lookup current avg trading price for a resource including last high and low values.\n\n By default this looks up the price of steel, any incorrect searches will also return steel....
c48cf2e568e66342761a76672b8996aae4d3d2d0e857b0fdc145f8aaea957dda
@commands.bot_has_permissions(embed_links=True) @commands.command() async def bankinfo(self, ctx, *, name): '\n Lookup bank info for your alliance.\n \n Only available if you have the ability to view the bank data in game,\n and the api key must be set to your api key to work...
Lookup bank info for your alliance. Only available if you have the ability to view the bank data in game, and the api key must be set to your api key to work.
pnw/pnw.py
bankinfo
ltzmax/kennnyshiwa-cogs
21
python
@commands.bot_has_permissions(embed_links=True) @commands.command() async def bankinfo(self, ctx, *, name): '\n Lookup bank info for your alliance.\n \n Only available if you have the ability to view the bank data in game,\n and the api key must be set to your api key to work...
@commands.bot_has_permissions(embed_links=True) @commands.command() async def bankinfo(self, ctx, *, name): '\n Lookup bank info for your alliance.\n \n Only available if you have the ability to view the bank data in game,\n and the api key must be set to your api key to work...
966c492eb6d4cb828671b098400daa554dd477f3e77a9013907fd592cd3f4451
@commands.bot_has_permissions(embed_links=True) @commands.command() async def top50(self, ctx): '\n Show Top 50 Alliances\n ' top50 = (await self.alliances_lookup(ctx)) success = top50['success'] try: if (success == False): (await ctx.send(f'Your api seems to be invalid...
Show Top 50 Alliances
pnw/pnw.py
top50
ltzmax/kennnyshiwa-cogs
21
python
@commands.bot_has_permissions(embed_links=True) @commands.command() async def top50(self, ctx): '\n \n ' top50 = (await self.alliances_lookup(ctx)) success = top50['success'] try: if (success == False): (await ctx.send(f'Your api seems to be invalid, make sure its corre...
@commands.bot_has_permissions(embed_links=True) @commands.command() async def top50(self, ctx): '\n \n ' top50 = (await self.alliances_lookup(ctx)) success = top50['success'] try: if (success == False): (await ctx.send(f'Your api seems to be invalid, make sure its corre...
fb6f2e539e9aa7991b0087a7f4aed07ceea0a12468fc922ae4d0a182b519e8ed
@commands.bot_has_permissions(embed_links=True) @commands.command() async def infra(self, ctx, input: float, tobuy: float, urban=None, cce=None): '\n Provides the cost of infra accurate to +/- $100,000. Provide urban and/or cce as a command variable to trigger urbanization and cce infra discounts.\n '...
Provides the cost of infra accurate to +/- $100,000. Provide urban and/or cce as a command variable to trigger urbanization and cce infra discounts.
pnw/pnw.py
infra
ltzmax/kennnyshiwa-cogs
21
python
@commands.bot_has_permissions(embed_links=True) @commands.command() async def infra(self, ctx, input: float, tobuy: float, urban=None, cce=None): '\n \n ' if (input < 10000): if (tobuy < 10000): if (tobuy > 100): count = 0 factor = 0 ...
@commands.bot_has_permissions(embed_links=True) @commands.command() async def infra(self, ctx, input: float, tobuy: float, urban=None, cce=None): '\n \n ' if (input < 10000): if (tobuy < 10000): if (tobuy > 100): count = 0 factor = 0 ...
88da1159700b2896b08d1e2c82117cd8529f210493b618a171403295f49afe63
@commands.bot_has_permissions(embed_links=True) @commands.command() async def land(self, ctx, input: float, tobuy: float): '\n Provides the cost of land accurate to +/- $100,000.\n ' if (input < 10000): if (tobuy < 10000): if (tobuy > 500): count = 0 ...
Provides the cost of land accurate to +/- $100,000.
pnw/pnw.py
land
ltzmax/kennnyshiwa-cogs
21
python
@commands.bot_has_permissions(embed_links=True) @commands.command() async def land(self, ctx, input: float, tobuy: float): '\n \n ' if (input < 10000): if (tobuy < 10000): if (tobuy > 500): count = 0 factor = 0 cost = 0 ...
@commands.bot_has_permissions(embed_links=True) @commands.command() async def land(self, ctx, input: float, tobuy: float): '\n \n ' if (input < 10000): if (tobuy < 10000): if (tobuy > 500): count = 0 factor = 0 cost = 0 ...
14520f6eabd623e3a9b012e687e5b01a60e9d89b6bd46be29db7aad54acedf49
@commands.bot_has_permissions(embed_links=True) @commands.command() async def citycost(self, ctx, city: int): '\n Provides the cost of the next city accurate to +/- $100,000.\n ' if (city < 100): cost = (((50000 * ((city - 1) ** 3)) + (150000 * city)) + 75000) embed = discord.Embed...
Provides the cost of the next city accurate to +/- $100,000.
pnw/pnw.py
citycost
ltzmax/kennnyshiwa-cogs
21
python
@commands.bot_has_permissions(embed_links=True) @commands.command() async def citycost(self, ctx, city: int): '\n \n ' if (city < 100): cost = (((50000 * ((city - 1) ** 3)) + (150000 * city)) + 75000) embed = discord.Embed(title='City Cost Calculator', description='To accomidate fo...
@commands.bot_has_permissions(embed_links=True) @commands.command() async def citycost(self, ctx, city: int): '\n \n ' if (city < 100): cost = (((50000 * ((city - 1) ** 3)) + (150000 * city)) + 75000) embed = discord.Embed(title='City Cost Calculator', description='To accomidate fo...
eef1a885f7b71fbea42204304e8f6b4e9663c640aee94d762eb369d43e5b1c83
@commands.bot_has_permissions(embed_links=True) @commands.command() async def military(self, ctx, *, name): '\n Military Lookup\n ' (await ctx.send('This may take a while.....')) async with ctx.typing(): name = self.escape_query(''.join(name)) key = False nations_data =...
Military Lookup
pnw/pnw.py
military
ltzmax/kennnyshiwa-cogs
21
python
@commands.bot_has_permissions(embed_links=True) @commands.command() async def military(self, ctx, *, name): '\n \n ' (await ctx.send('This may take a while.....')) async with ctx.typing(): name = self.escape_query(.join(name)) key = False nations_data = (await self.nati...
@commands.bot_has_permissions(embed_links=True) @commands.command() async def military(self, ctx, *, name): '\n \n ' (await ctx.send('This may take a while.....')) async with ctx.typing(): name = self.escape_query(.join(name)) key = False nations_data = (await self.nati...
dee3aac588b5a9c4244ddb4c6e2cbf682040205c833f6833edf8c2069888f35c
@commands.bot_has_permissions(embed_links=True) @commands.command() async def pnwcredits(self, ctx): '\n Credits for the PNW cog\n ' embed = discord.Embed(title='Credits go to Reqiuem bot/Kyle Tyo for various aspects of this PNW cog', description='Reqiuem can be found here, https://gitlab.com/Anak...
Credits for the PNW cog
pnw/pnw.py
pnwcredits
ltzmax/kennnyshiwa-cogs
21
python
@commands.bot_has_permissions(embed_links=True) @commands.command() async def pnwcredits(self, ctx): '\n \n ' embed = discord.Embed(title='Credits go to Reqiuem bot/Kyle Tyo for various aspects of this PNW cog', description='Reqiuem can be found here, https://gitlab.com/AnakiKaiver297/Requiem-Proj...
@commands.bot_has_permissions(embed_links=True) @commands.command() async def pnwcredits(self, ctx): '\n \n ' embed = discord.Embed(title='Credits go to Reqiuem bot/Kyle Tyo for various aspects of this PNW cog', description='Reqiuem can be found here, https://gitlab.com/AnakiKaiver297/Requiem-Proj...
880a1f92f3d5b31b8ec46363bf22e7a0cc5c1e204b35ac25e71f046aa9dd7f4d
def __init__(self, id=None, parent_id=None, object_type=None, object_name=None, object_alias_name=None, select=None): 'DatabaseInfo - a model defined in huaweicloud sdk' self._id = None self._parent_id = None self._object_type = None self._object_name = None self._object_alias_name = None se...
DatabaseInfo - a model defined in huaweicloud sdk
huaweicloud-sdk-drs/huaweicloudsdkdrs/v3/model/database_info.py
__init__
NQLoong/huaweicloud-sdk-python-v3
1
python
def __init__(self, id=None, parent_id=None, object_type=None, object_name=None, object_alias_name=None, select=None): self._id = None self._parent_id = None self._object_type = None self._object_name = None self._object_alias_name = None self._select = None self.discriminator = None ...
def __init__(self, id=None, parent_id=None, object_type=None, object_name=None, object_alias_name=None, select=None): self._id = None self._parent_id = None self._object_type = None self._object_name = None self._object_alias_name = None self._select = None self.discriminator = None ...
e6e4abacb507b78ed72f2202bd492f0f118888896e6426ac5fbdcb68ea4b306d
@property def id(self): 'Gets the id of this DatabaseInfo.\n\n object_type为database时,为库名;object_type为table或者view时,字段值参考示例。\n\n :return: The id of this DatabaseInfo.\n :rtype: str\n ' return self._id
Gets the id of this DatabaseInfo. object_type为database时,为库名;object_type为table或者view时,字段值参考示例。 :return: The id of this DatabaseInfo. :rtype: str
huaweicloud-sdk-drs/huaweicloudsdkdrs/v3/model/database_info.py
id
NQLoong/huaweicloud-sdk-python-v3
1
python
@property def id(self): 'Gets the id of this DatabaseInfo.\n\n object_type为database时,为库名;object_type为table或者view时,字段值参考示例。\n\n :return: The id of this DatabaseInfo.\n :rtype: str\n ' return self._id
@property def id(self): 'Gets the id of this DatabaseInfo.\n\n object_type为database时,为库名;object_type为table或者view时,字段值参考示例。\n\n :return: The id of this DatabaseInfo.\n :rtype: str\n ' return self._id<|docstring|>Gets the id of this DatabaseInfo. object_type为database时,为库名;object_type为...
c8da316152db30074db703a43a857fd1344d9925337e6a21dd8c5849a7204750
@id.setter def id(self, id): 'Sets the id of this DatabaseInfo.\n\n object_type为database时,为库名;object_type为table或者view时,字段值参考示例。\n\n :param id: The id of this DatabaseInfo.\n :type: str\n ' self._id = id
Sets the id of this DatabaseInfo. object_type为database时,为库名;object_type为table或者view时,字段值参考示例。 :param id: The id of this DatabaseInfo. :type: str
huaweicloud-sdk-drs/huaweicloudsdkdrs/v3/model/database_info.py
id
NQLoong/huaweicloud-sdk-python-v3
1
python
@id.setter def id(self, id): 'Sets the id of this DatabaseInfo.\n\n object_type为database时,为库名;object_type为table或者view时,字段值参考示例。\n\n :param id: The id of this DatabaseInfo.\n :type: str\n ' self._id = id
@id.setter def id(self, id): 'Sets the id of this DatabaseInfo.\n\n object_type为database时,为库名;object_type为table或者view时,字段值参考示例。\n\n :param id: The id of this DatabaseInfo.\n :type: str\n ' self._id = id<|docstring|>Sets the id of this DatabaseInfo. object_type为database时,为库名;object_t...
e8b1e4e719b8201d27a50eabbee04de2c42bb68956192b6317dee08772fcd57e
@property def parent_id(self): 'Gets the parent_id of this DatabaseInfo.\n\n object_type为table或view时需要填写,为库名\n\n :return: The parent_id of this DatabaseInfo.\n :rtype: str\n ' return self._parent_id
Gets the parent_id of this DatabaseInfo. object_type为table或view时需要填写,为库名 :return: The parent_id of this DatabaseInfo. :rtype: str
huaweicloud-sdk-drs/huaweicloudsdkdrs/v3/model/database_info.py
parent_id
NQLoong/huaweicloud-sdk-python-v3
1
python
@property def parent_id(self): 'Gets the parent_id of this DatabaseInfo.\n\n object_type为table或view时需要填写,为库名\n\n :return: The parent_id of this DatabaseInfo.\n :rtype: str\n ' return self._parent_id
@property def parent_id(self): 'Gets the parent_id of this DatabaseInfo.\n\n object_type为table或view时需要填写,为库名\n\n :return: The parent_id of this DatabaseInfo.\n :rtype: str\n ' return self._parent_id<|docstring|>Gets the parent_id of this DatabaseInfo. object_type为table或view时需要填写,为库名...
9988210e50a44e56e2f723fab5ddf0d5b1881984719f0b2b0f4aa6c4411836da
@parent_id.setter def parent_id(self, parent_id): 'Sets the parent_id of this DatabaseInfo.\n\n object_type为table或view时需要填写,为库名\n\n :param parent_id: The parent_id of this DatabaseInfo.\n :type: str\n ' self._parent_id = parent_id
Sets the parent_id of this DatabaseInfo. object_type为table或view时需要填写,为库名 :param parent_id: The parent_id of this DatabaseInfo. :type: str
huaweicloud-sdk-drs/huaweicloudsdkdrs/v3/model/database_info.py
parent_id
NQLoong/huaweicloud-sdk-python-v3
1
python
@parent_id.setter def parent_id(self, parent_id): 'Sets the parent_id of this DatabaseInfo.\n\n object_type为table或view时需要填写,为库名\n\n :param parent_id: The parent_id of this DatabaseInfo.\n :type: str\n ' self._parent_id = parent_id
@parent_id.setter def parent_id(self, parent_id): 'Sets the parent_id of this DatabaseInfo.\n\n object_type为table或view时需要填写,为库名\n\n :param parent_id: The parent_id of this DatabaseInfo.\n :type: str\n ' self._parent_id = parent_id<|docstring|>Sets the parent_id of this DatabaseInfo. ...
0aa204f398cee1f168af84615d68bf9ea996ccead6a99f7deb5babdcf51affe0
@property def object_type(self): 'Gets the object_type of this DatabaseInfo.\n\n 类型\n\n :return: The object_type of this DatabaseInfo.\n :rtype: str\n ' return self._object_type
Gets the object_type of this DatabaseInfo. 类型 :return: The object_type of this DatabaseInfo. :rtype: str
huaweicloud-sdk-drs/huaweicloudsdkdrs/v3/model/database_info.py
object_type
NQLoong/huaweicloud-sdk-python-v3
1
python
@property def object_type(self): 'Gets the object_type of this DatabaseInfo.\n\n 类型\n\n :return: The object_type of this DatabaseInfo.\n :rtype: str\n ' return self._object_type
@property def object_type(self): 'Gets the object_type of this DatabaseInfo.\n\n 类型\n\n :return: The object_type of this DatabaseInfo.\n :rtype: str\n ' return self._object_type<|docstring|>Gets the object_type of this DatabaseInfo. 类型 :return: The object_type of this DatabaseInfo....
5b6e89bf25465a9ca5ebc6efbbe963a44f658eed2a45666f54c1ea7974af4863
@object_type.setter def object_type(self, object_type): 'Sets the object_type of this DatabaseInfo.\n\n 类型\n\n :param object_type: The object_type of this DatabaseInfo.\n :type: str\n ' self._object_type = object_type
Sets the object_type of this DatabaseInfo. 类型 :param object_type: The object_type of this DatabaseInfo. :type: str
huaweicloud-sdk-drs/huaweicloudsdkdrs/v3/model/database_info.py
object_type
NQLoong/huaweicloud-sdk-python-v3
1
python
@object_type.setter def object_type(self, object_type): 'Sets the object_type of this DatabaseInfo.\n\n 类型\n\n :param object_type: The object_type of this DatabaseInfo.\n :type: str\n ' self._object_type = object_type
@object_type.setter def object_type(self, object_type): 'Sets the object_type of this DatabaseInfo.\n\n 类型\n\n :param object_type: The object_type of this DatabaseInfo.\n :type: str\n ' self._object_type = object_type<|docstring|>Sets the object_type of this DatabaseInfo. 类型 :param...
36d0e932d021b39eb93402dae09e85eae18408d57bc8f06d8d649de48811338c
@property def object_name(self): 'Gets the object_name of this DatabaseInfo.\n\n 数据库对象名称,库名、表名、视图名\n\n :return: The object_name of this DatabaseInfo.\n :rtype: str\n ' return self._object_name
Gets the object_name of this DatabaseInfo. 数据库对象名称,库名、表名、视图名 :return: The object_name of this DatabaseInfo. :rtype: str
huaweicloud-sdk-drs/huaweicloudsdkdrs/v3/model/database_info.py
object_name
NQLoong/huaweicloud-sdk-python-v3
1
python
@property def object_name(self): 'Gets the object_name of this DatabaseInfo.\n\n 数据库对象名称,库名、表名、视图名\n\n :return: The object_name of this DatabaseInfo.\n :rtype: str\n ' return self._object_name
@property def object_name(self): 'Gets the object_name of this DatabaseInfo.\n\n 数据库对象名称,库名、表名、视图名\n\n :return: The object_name of this DatabaseInfo.\n :rtype: str\n ' return self._object_name<|docstring|>Gets the object_name of this DatabaseInfo. 数据库对象名称,库名、表名、视图名 :return: The obj...
281b870a5838a16ea227ad3d77314628a922197e74f24de04717accf7534f39f
@object_name.setter def object_name(self, object_name): 'Sets the object_name of this DatabaseInfo.\n\n 数据库对象名称,库名、表名、视图名\n\n :param object_name: The object_name of this DatabaseInfo.\n :type: str\n ' self._object_name = object_name
Sets the object_name of this DatabaseInfo. 数据库对象名称,库名、表名、视图名 :param object_name: The object_name of this DatabaseInfo. :type: str
huaweicloud-sdk-drs/huaweicloudsdkdrs/v3/model/database_info.py
object_name
NQLoong/huaweicloud-sdk-python-v3
1
python
@object_name.setter def object_name(self, object_name): 'Sets the object_name of this DatabaseInfo.\n\n 数据库对象名称,库名、表名、视图名\n\n :param object_name: The object_name of this DatabaseInfo.\n :type: str\n ' self._object_name = object_name
@object_name.setter def object_name(self, object_name): 'Sets the object_name of this DatabaseInfo.\n\n 数据库对象名称,库名、表名、视图名\n\n :param object_name: The object_name of this DatabaseInfo.\n :type: str\n ' self._object_name = object_name<|docstring|>Sets the object_name of this DatabaseIn...
c63cbe6ca78bcd86a234c3e8bc52f76ca467bf593c42081bace5c06740944d6e
@property def object_alias_name(self): 'Gets the object_alias_name of this DatabaseInfo.\n\n 别名,映射的新名称。\n\n :return: The object_alias_name of this DatabaseInfo.\n :rtype: str\n ' return self._object_alias_name
Gets the object_alias_name of this DatabaseInfo. 别名,映射的新名称。 :return: The object_alias_name of this DatabaseInfo. :rtype: str
huaweicloud-sdk-drs/huaweicloudsdkdrs/v3/model/database_info.py
object_alias_name
NQLoong/huaweicloud-sdk-python-v3
1
python
@property def object_alias_name(self): 'Gets the object_alias_name of this DatabaseInfo.\n\n 别名,映射的新名称。\n\n :return: The object_alias_name of this DatabaseInfo.\n :rtype: str\n ' return self._object_alias_name
@property def object_alias_name(self): 'Gets the object_alias_name of this DatabaseInfo.\n\n 别名,映射的新名称。\n\n :return: The object_alias_name of this DatabaseInfo.\n :rtype: str\n ' return self._object_alias_name<|docstring|>Gets the object_alias_name of this DatabaseInfo. 别名,映射的新名称。 ...
da4ce008d732f50b549a56aadeda0706ed9ae17efacd408bc1128335487c024d
@object_alias_name.setter def object_alias_name(self, object_alias_name): 'Sets the object_alias_name of this DatabaseInfo.\n\n 别名,映射的新名称。\n\n :param object_alias_name: The object_alias_name of this DatabaseInfo.\n :type: str\n ' self._object_alias_name = object_alias_name
Sets the object_alias_name of this DatabaseInfo. 别名,映射的新名称。 :param object_alias_name: The object_alias_name of this DatabaseInfo. :type: str
huaweicloud-sdk-drs/huaweicloudsdkdrs/v3/model/database_info.py
object_alias_name
NQLoong/huaweicloud-sdk-python-v3
1
python
@object_alias_name.setter def object_alias_name(self, object_alias_name): 'Sets the object_alias_name of this DatabaseInfo.\n\n 别名,映射的新名称。\n\n :param object_alias_name: The object_alias_name of this DatabaseInfo.\n :type: str\n ' self._object_alias_name = object_alias_name
@object_alias_name.setter def object_alias_name(self, object_alias_name): 'Sets the object_alias_name of this DatabaseInfo.\n\n 别名,映射的新名称。\n\n :param object_alias_name: The object_alias_name of this DatabaseInfo.\n :type: str\n ' self._object_alias_name = object_alias_name<|docstring...
5f8e1564292edd3e3112444db7aa17b1e65b2ff192ed262cd809c2392346a46b
@property def select(self): 'Gets the select of this DatabaseInfo.\n\n 是否选中,值为true会进行迁移,false该数据库对象不会迁移,partial为迁移库下面的部分表,不填默认为false\n\n :return: The select of this DatabaseInfo.\n :rtype: str\n ' return self._select
Gets the select of this DatabaseInfo. 是否选中,值为true会进行迁移,false该数据库对象不会迁移,partial为迁移库下面的部分表,不填默认为false :return: The select of this DatabaseInfo. :rtype: str
huaweicloud-sdk-drs/huaweicloudsdkdrs/v3/model/database_info.py
select
NQLoong/huaweicloud-sdk-python-v3
1
python
@property def select(self): 'Gets the select of this DatabaseInfo.\n\n 是否选中,值为true会进行迁移,false该数据库对象不会迁移,partial为迁移库下面的部分表,不填默认为false\n\n :return: The select of this DatabaseInfo.\n :rtype: str\n ' return self._select
@property def select(self): 'Gets the select of this DatabaseInfo.\n\n 是否选中,值为true会进行迁移,false该数据库对象不会迁移,partial为迁移库下面的部分表,不填默认为false\n\n :return: The select of this DatabaseInfo.\n :rtype: str\n ' return self._select<|docstring|>Gets the select of this DatabaseInfo. 是否选中,值为true会进行迁移...
97b510df20f2dbdd192599d253b5237f809b1faf8b457922c4b9a61fc7535849
@select.setter def select(self, select): 'Sets the select of this DatabaseInfo.\n\n 是否选中,值为true会进行迁移,false该数据库对象不会迁移,partial为迁移库下面的部分表,不填默认为false\n\n :param select: The select of this DatabaseInfo.\n :type: str\n ' self._select = select
Sets the select of this DatabaseInfo. 是否选中,值为true会进行迁移,false该数据库对象不会迁移,partial为迁移库下面的部分表,不填默认为false :param select: The select of this DatabaseInfo. :type: str
huaweicloud-sdk-drs/huaweicloudsdkdrs/v3/model/database_info.py
select
NQLoong/huaweicloud-sdk-python-v3
1
python
@select.setter def select(self, select): 'Sets the select of this DatabaseInfo.\n\n 是否选中,值为true会进行迁移,false该数据库对象不会迁移,partial为迁移库下面的部分表,不填默认为false\n\n :param select: The select of this DatabaseInfo.\n :type: str\n ' self._select = select
@select.setter def select(self, select): 'Sets the select of this DatabaseInfo.\n\n 是否选中,值为true会进行迁移,false该数据库对象不会迁移,partial为迁移库下面的部分表,不填默认为false\n\n :param select: The select of this DatabaseInfo.\n :type: str\n ' self._select = select<|docstring|>Sets the select of this DatabaseInf...
23795442a46e2cd10dec98fded44ed9172a29971e98983a30ad89baa6c9c0a03
def to_dict(self): 'Returns the model properties as a dict' result = {} for (attr, _) in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map((lambda x: (x.to_dict() if hasattr(x, 'to_dict') else x)), value)) e...
Returns the model properties as a dict
huaweicloud-sdk-drs/huaweicloudsdkdrs/v3/model/database_info.py
to_dict
NQLoong/huaweicloud-sdk-python-v3
1
python
def to_dict(self): result = {} for (attr, _) in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map((lambda x: (x.to_dict() if hasattr(x, 'to_dict') else x)), value)) elif hasattr(value, 'to_dict'): ...
def to_dict(self): result = {} for (attr, _) in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map((lambda x: (x.to_dict() if hasattr(x, 'to_dict') else x)), value)) elif hasattr(value, 'to_dict'): ...
cbb19eaa2fc8a113d9e32f924ef280a7e97563f8915f94f65dab438997af2e99
def to_str(self): 'Returns the string representation of the model' return pprint.pformat(self.to_dict())
Returns the string representation of the model
huaweicloud-sdk-drs/huaweicloudsdkdrs/v3/model/database_info.py
to_str
NQLoong/huaweicloud-sdk-python-v3
1
python
def to_str(self): return pprint.pformat(self.to_dict())
def to_str(self): return pprint.pformat(self.to_dict())<|docstring|>Returns the string representation of the model<|endoftext|>
772243a2c2b3261a9b954d07aaf295e3c1242a579a495e2d6a5679c677861703
def __repr__(self): 'For `print` and `pprint`' return self.to_str()
For `print` and `pprint`
huaweicloud-sdk-drs/huaweicloudsdkdrs/v3/model/database_info.py
__repr__
NQLoong/huaweicloud-sdk-python-v3
1
python
def __repr__(self): return self.to_str()
def __repr__(self): return self.to_str()<|docstring|>For `print` and `pprint`<|endoftext|>
625e44cfb1abbb5465c009e459009ccdcb1d9442cf22dd9a9fa35c53c5710fe0
def __eq__(self, other): 'Returns true if both objects are equal' if (not isinstance(other, DatabaseInfo)): return False return (self.__dict__ == other.__dict__)
Returns true if both objects are equal
huaweicloud-sdk-drs/huaweicloudsdkdrs/v3/model/database_info.py
__eq__
NQLoong/huaweicloud-sdk-python-v3
1
python
def __eq__(self, other): if (not isinstance(other, DatabaseInfo)): return False return (self.__dict__ == other.__dict__)
def __eq__(self, other): if (not isinstance(other, DatabaseInfo)): return False return (self.__dict__ == other.__dict__)<|docstring|>Returns true if both objects are equal<|endoftext|>
43dc6740163eb9fc1161d09cb2208a64c7ad0cc8d9c8637ac3264522d3ec7e42
def __ne__(self, other): 'Returns true if both objects are not equal' return (not (self == other))
Returns true if both objects are not equal
huaweicloud-sdk-drs/huaweicloudsdkdrs/v3/model/database_info.py
__ne__
NQLoong/huaweicloud-sdk-python-v3
1
python
def __ne__(self, other): return (not (self == other))
def __ne__(self, other): return (not (self == other))<|docstring|>Returns true if both objects are not equal<|endoftext|>
66d33b19eb490f8a4d971b4e5ecb9a3dfc8aa1c796e9ca9475c82a615e650109
def _maybe_cache(arg, format, cache, tz, convert_listlike): '\n Create a cache of unique dates from an array of dates\n\n Parameters\n ----------\n arg : integer, float, string, datetime, list, tuple, 1-d array, Series\n format : string\n Strftime format to parse time\n cache : boolean\n ...
Create a cache of unique dates from an array of dates Parameters ---------- arg : integer, float, string, datetime, list, tuple, 1-d array, Series format : string Strftime format to parse time cache : boolean True attempts to create a cache of converted values tz : string Timezone of the dates convert_list...
venv/Lib/site-packages/pandas/core/tools/datetimes.py
_maybe_cache
shehzadulislam/Quiz2Shehzad
69
python
def _maybe_cache(arg, format, cache, tz, convert_listlike): '\n Create a cache of unique dates from an array of dates\n\n Parameters\n ----------\n arg : integer, float, string, datetime, list, tuple, 1-d array, Series\n format : string\n Strftime format to parse time\n cache : boolean\n ...
def _maybe_cache(arg, format, cache, tz, convert_listlike): '\n Create a cache of unique dates from an array of dates\n\n Parameters\n ----------\n arg : integer, float, string, datetime, list, tuple, 1-d array, Series\n format : string\n Strftime format to parse time\n cache : boolean\n ...
756cca70d974e14d4aa44c3c18a9614af4234a9eea288800c3df667aaed533cb
def _convert_and_box_cache(arg, cache_array, box, errors, name=None): "\n Convert array of dates with a cache and box the result\n\n Parameters\n ----------\n arg : integer, float, string, datetime, list, tuple, 1-d array, Series\n cache_array : Series\n Cache of converted, unique dates\n b...
Convert array of dates with a cache and box the result Parameters ---------- arg : integer, float, string, datetime, list, tuple, 1-d array, Series cache_array : Series Cache of converted, unique dates box : boolean True boxes result as an Index-like, False returns an ndarray errors : string 'ignore' plus ...
venv/Lib/site-packages/pandas/core/tools/datetimes.py
_convert_and_box_cache
shehzadulislam/Quiz2Shehzad
69
python
def _convert_and_box_cache(arg, cache_array, box, errors, name=None): "\n Convert array of dates with a cache and box the result\n\n Parameters\n ----------\n arg : integer, float, string, datetime, list, tuple, 1-d array, Series\n cache_array : Series\n Cache of converted, unique dates\n b...
def _convert_and_box_cache(arg, cache_array, box, errors, name=None): "\n Convert array of dates with a cache and box the result\n\n Parameters\n ----------\n arg : integer, float, string, datetime, list, tuple, 1-d array, Series\n cache_array : Series\n Cache of converted, unique dates\n b...
81db84e863d3af90219e7d9bb54c329e45574e90f481344e7617016ff7be8b5a
def to_datetime(arg, errors='raise', dayfirst=False, yearfirst=False, utc=None, box=True, format=None, exact=True, unit=None, infer_datetime_format=False, origin='unix', cache=False): '\n Convert argument to datetime.\n\n Parameters\n ----------\n arg : integer, float, string, datetime, list, tuple, 1-d...
Convert argument to datetime. Parameters ---------- arg : integer, float, string, datetime, list, tuple, 1-d array, Series .. versionadded:: 0.18.1 or DataFrame/dict-like errors : {'ignore', 'raise', 'coerce'}, default 'raise' - If 'raise', then invalid parsing will raise an exception - If 'coer...
venv/Lib/site-packages/pandas/core/tools/datetimes.py
to_datetime
shehzadulislam/Quiz2Shehzad
69
python
def to_datetime(arg, errors='raise', dayfirst=False, yearfirst=False, utc=None, box=True, format=None, exact=True, unit=None, infer_datetime_format=False, origin='unix', cache=False): '\n Convert argument to datetime.\n\n Parameters\n ----------\n arg : integer, float, string, datetime, list, tuple, 1-d...
def to_datetime(arg, errors='raise', dayfirst=False, yearfirst=False, utc=None, box=True, format=None, exact=True, unit=None, infer_datetime_format=False, origin='unix', cache=False): '\n Convert argument to datetime.\n\n Parameters\n ----------\n arg : integer, float, string, datetime, list, tuple, 1-d...
a87b01d2924d306e57f18c868d17e47f20a8c380c1c92f716edb754e71aef9e1
def _assemble_from_unit_mappings(arg, errors): "\n assemble the unit specified fields from the arg (DataFrame)\n Return a Series for actual parsing\n\n Parameters\n ----------\n arg : DataFrame\n errors : {'ignore', 'raise', 'coerce'}, default 'raise'\n\n - If 'raise', then invalid parsing ...
assemble the unit specified fields from the arg (DataFrame) Return a Series for actual parsing Parameters ---------- arg : DataFrame errors : {'ignore', 'raise', 'coerce'}, default 'raise' - If 'raise', then invalid parsing will raise an exception - If 'coerce', then invalid parsing will be set as NaT - I...
venv/Lib/site-packages/pandas/core/tools/datetimes.py
_assemble_from_unit_mappings
shehzadulislam/Quiz2Shehzad
69
python
def _assemble_from_unit_mappings(arg, errors): "\n assemble the unit specified fields from the arg (DataFrame)\n Return a Series for actual parsing\n\n Parameters\n ----------\n arg : DataFrame\n errors : {'ignore', 'raise', 'coerce'}, default 'raise'\n\n - If 'raise', then invalid parsing ...
def _assemble_from_unit_mappings(arg, errors): "\n assemble the unit specified fields from the arg (DataFrame)\n Return a Series for actual parsing\n\n Parameters\n ----------\n arg : DataFrame\n errors : {'ignore', 'raise', 'coerce'}, default 'raise'\n\n - If 'raise', then invalid parsing ...
7ddd57b7a5f4d9ed7cbec9628fe489830f4e4fa0f2d9cbc21a45fe12497ddf06
def _attempt_YYYYMMDD(arg, errors): " try to parse the YYYYMMDD/%Y%m%d format, try to deal with NaT-like,\n arg is a passed in as an object dtype, but could really be ints/strings\n with nan-like/or floats (e.g. with nan)\n\n Parameters\n ----------\n arg : passed value\n errors : 'raise',...
try to parse the YYYYMMDD/%Y%m%d format, try to deal with NaT-like, arg is a passed in as an object dtype, but could really be ints/strings with nan-like/or floats (e.g. with nan) Parameters ---------- arg : passed value errors : 'raise','ignore','coerce'
venv/Lib/site-packages/pandas/core/tools/datetimes.py
_attempt_YYYYMMDD
shehzadulislam/Quiz2Shehzad
69
python
def _attempt_YYYYMMDD(arg, errors): " try to parse the YYYYMMDD/%Y%m%d format, try to deal with NaT-like,\n arg is a passed in as an object dtype, but could really be ints/strings\n with nan-like/or floats (e.g. with nan)\n\n Parameters\n ----------\n arg : passed value\n errors : 'raise',...
def _attempt_YYYYMMDD(arg, errors): " try to parse the YYYYMMDD/%Y%m%d format, try to deal with NaT-like,\n arg is a passed in as an object dtype, but could really be ints/strings\n with nan-like/or floats (e.g. with nan)\n\n Parameters\n ----------\n arg : passed value\n errors : 'raise',...
f9d43f740f2fb04391fba9ef1c3806bb7acb6c5048287e46d4d4915cdba563c8
def to_time(arg, format=None, infer_time_format=False, errors='raise'): '\n Parse time strings to time objects using fixed strptime formats ("%H:%M",\n "%H%M", "%I:%M%p", "%I%M%p", "%H:%M:%S", "%H%M%S", "%I:%M:%S%p",\n "%I%M%S%p")\n\n Use infer_time_format if all the strings are in the same format to sp...
Parse time strings to time objects using fixed strptime formats ("%H:%M", "%H%M", "%I:%M%p", "%I%M%p", "%H:%M:%S", "%H%M%S", "%I:%M:%S%p", "%I%M%S%p") Use infer_time_format if all the strings are in the same format to speed up conversion. Parameters ---------- arg : string in time format, datetime.time, list, tuple, ...
venv/Lib/site-packages/pandas/core/tools/datetimes.py
to_time
shehzadulislam/Quiz2Shehzad
69
python
def to_time(arg, format=None, infer_time_format=False, errors='raise'): '\n Parse time strings to time objects using fixed strptime formats ("%H:%M",\n "%H%M", "%I:%M%p", "%I%M%p", "%H:%M:%S", "%H%M%S", "%I:%M:%S%p",\n "%I%M%S%p")\n\n Use infer_time_format if all the strings are in the same format to sp...
def to_time(arg, format=None, infer_time_format=False, errors='raise'): '\n Parse time strings to time objects using fixed strptime formats ("%H:%M",\n "%H%M", "%I:%M%p", "%I%M%p", "%H:%M:%S", "%H%M%S", "%I:%M:%S%p",\n "%I%M%S%p")\n\n Use infer_time_format if all the strings are in the same format to sp...
5e16ee6a94e23bf6de16aaf900811f784bdf17f352b39244f10c0c2099877383
def format(dt): 'Returns date in YYYYMMDD format.' return dt.strftime('%Y%m%d')
Returns date in YYYYMMDD format.
venv/Lib/site-packages/pandas/core/tools/datetimes.py
format
shehzadulislam/Quiz2Shehzad
69
python
def format(dt): return dt.strftime('%Y%m%d')
def format(dt): return dt.strftime('%Y%m%d')<|docstring|>Returns date in YYYYMMDD format.<|endoftext|>
2f8aad1afa5b709a4d7cfe7a452ee998d28e8bdf90115873a613bc1ba5804658
def ole2datetime(oledt): 'function for converting excel date to normal date format' val = float(oledt) if (val < 61): msg = 'Value is outside of acceptable range: {value}'.format(value=val) raise ValueError(msg) return (OLE_TIME_ZERO + timedelta(days=val))
function for converting excel date to normal date format
venv/Lib/site-packages/pandas/core/tools/datetimes.py
ole2datetime
shehzadulislam/Quiz2Shehzad
69
python
def ole2datetime(oledt): val = float(oledt) if (val < 61): msg = 'Value is outside of acceptable range: {value}'.format(value=val) raise ValueError(msg) return (OLE_TIME_ZERO + timedelta(days=val))
def ole2datetime(oledt): val = float(oledt) if (val < 61): msg = 'Value is outside of acceptable range: {value}'.format(value=val) raise ValueError(msg) return (OLE_TIME_ZERO + timedelta(days=val))<|docstring|>function for converting excel date to normal date format<|endoftext|>
9cb697f8e3b446d7baf47f05320cb551885c138ff3b618379470687ef026383f
def cancel(self): "Stop the timer if it hasn't finished yet" self.finished_event.set()
Stop the timer if it hasn't finished yet
src/timer/process_timer.py
cancel
tahesse/gifCutterBot
4
python
def cancel(self): self.finished_event.set()
def cancel(self): self.finished_event.set()<|docstring|>Stop the timer if it hasn't finished yet<|endoftext|>
2ba218a317aaa36f45c0ba65fe2dc50ebb0f9bb4a141664c9570cddd9972995f
def __init__(__self__, *, cache_behavior: str, cache_type: str, odata_type: str, cache_duration: Optional[str]=None): '\n Defines the parameters for the cache expiration action.\n :param str cache_behavior: Caching behavior for the requests\n :param str cache_type: The level at which the conten...
Defines the parameters for the cache expiration action. :param str cache_behavior: Caching behavior for the requests :param str cache_type: The level at which the content needs to be cached. :param str cache_duration: The duration for which the content needs to be cached. Allowed format is [d.]hh:mm:ss
sdk/python/pulumi_azure_native/cdn/v20191231/outputs.py
__init__
pulumi-bot/pulumi-azure-native
31
python
def __init__(__self__, *, cache_behavior: str, cache_type: str, odata_type: str, cache_duration: Optional[str]=None): '\n Defines the parameters for the cache expiration action.\n :param str cache_behavior: Caching behavior for the requests\n :param str cache_type: The level at which the conten...
def __init__(__self__, *, cache_behavior: str, cache_type: str, odata_type: str, cache_duration: Optional[str]=None): '\n Defines the parameters for the cache expiration action.\n :param str cache_behavior: Caching behavior for the requests\n :param str cache_type: The level at which the conten...
e55ae6bbafbd8296aba14768a4c43ff596dae628c13cce2b51ba2f753ade980d
@property @pulumi.getter(name='cacheBehavior') def cache_behavior(self) -> str: '\n Caching behavior for the requests\n ' return pulumi.get(self, 'cache_behavior')
Caching behavior for the requests
sdk/python/pulumi_azure_native/cdn/v20191231/outputs.py
cache_behavior
pulumi-bot/pulumi-azure-native
31
python
@property @pulumi.getter(name='cacheBehavior') def cache_behavior(self) -> str: '\n \n ' return pulumi.get(self, 'cache_behavior')
@property @pulumi.getter(name='cacheBehavior') def cache_behavior(self) -> str: '\n \n ' return pulumi.get(self, 'cache_behavior')<|docstring|>Caching behavior for the requests<|endoftext|>
a23cd1b78f753c39680085e3fc5640ffc58f3717cf970880991610a485068b61
@property @pulumi.getter(name='cacheType') def cache_type(self) -> str: '\n The level at which the content needs to be cached.\n ' return pulumi.get(self, 'cache_type')
The level at which the content needs to be cached.
sdk/python/pulumi_azure_native/cdn/v20191231/outputs.py
cache_type
pulumi-bot/pulumi-azure-native
31
python
@property @pulumi.getter(name='cacheType') def cache_type(self) -> str: '\n \n ' return pulumi.get(self, 'cache_type')
@property @pulumi.getter(name='cacheType') def cache_type(self) -> str: '\n \n ' return pulumi.get(self, 'cache_type')<|docstring|>The level at which the content needs to be cached.<|endoftext|>
7f5b804bee3e3f34fd901b6a38e437b9822c7dcd526b430ed8b9ac96e441a4ef
@property @pulumi.getter(name='cacheDuration') def cache_duration(self) -> Optional[str]: '\n The duration for which the content needs to be cached. Allowed format is [d.]hh:mm:ss\n ' return pulumi.get(self, 'cache_duration')
The duration for which the content needs to be cached. Allowed format is [d.]hh:mm:ss
sdk/python/pulumi_azure_native/cdn/v20191231/outputs.py
cache_duration
pulumi-bot/pulumi-azure-native
31
python
@property @pulumi.getter(name='cacheDuration') def cache_duration(self) -> Optional[str]: '\n \n ' return pulumi.get(self, 'cache_duration')
@property @pulumi.getter(name='cacheDuration') def cache_duration(self) -> Optional[str]: '\n \n ' return pulumi.get(self, 'cache_duration')<|docstring|>The duration for which the content needs to be cached. Allowed format is [d.]hh:mm:ss<|endoftext|>
2ee5787becebd7ff5fd7bf03e37ffc109058df4db4d57dd7c0a09a404b3319cb
def __init__(__self__, *, odata_type: str, query_string_behavior: str, query_parameters: Optional[str]=None): '\n Defines the parameters for the cache-key query string action.\n :param str query_string_behavior: Caching behavior for the requests\n :param str query_parameters: query parameters t...
Defines the parameters for the cache-key query string action. :param str query_string_behavior: Caching behavior for the requests :param str query_parameters: query parameters to include or exclude (comma separated).
sdk/python/pulumi_azure_native/cdn/v20191231/outputs.py
__init__
pulumi-bot/pulumi-azure-native
31
python
def __init__(__self__, *, odata_type: str, query_string_behavior: str, query_parameters: Optional[str]=None): '\n Defines the parameters for the cache-key query string action.\n :param str query_string_behavior: Caching behavior for the requests\n :param str query_parameters: query parameters t...
def __init__(__self__, *, odata_type: str, query_string_behavior: str, query_parameters: Optional[str]=None): '\n Defines the parameters for the cache-key query string action.\n :param str query_string_behavior: Caching behavior for the requests\n :param str query_parameters: query parameters t...
7344299735333cfe582d1b2892a68d85fb4e2728f6fde5023fb6b4e924df6b24
@property @pulumi.getter(name='queryStringBehavior') def query_string_behavior(self) -> str: '\n Caching behavior for the requests\n ' return pulumi.get(self, 'query_string_behavior')
Caching behavior for the requests
sdk/python/pulumi_azure_native/cdn/v20191231/outputs.py
query_string_behavior
pulumi-bot/pulumi-azure-native
31
python
@property @pulumi.getter(name='queryStringBehavior') def query_string_behavior(self) -> str: '\n \n ' return pulumi.get(self, 'query_string_behavior')
@property @pulumi.getter(name='queryStringBehavior') def query_string_behavior(self) -> str: '\n \n ' return pulumi.get(self, 'query_string_behavior')<|docstring|>Caching behavior for the requests<|endoftext|>
5d7cccab5182f832713cee43e8ea9d740d1a9c6931114cffd65fd81fd418d9a4
@property @pulumi.getter(name='queryParameters') def query_parameters(self) -> Optional[str]: '\n query parameters to include or exclude (comma separated).\n ' return pulumi.get(self, 'query_parameters')
query parameters to include or exclude (comma separated).
sdk/python/pulumi_azure_native/cdn/v20191231/outputs.py
query_parameters
pulumi-bot/pulumi-azure-native
31
python
@property @pulumi.getter(name='queryParameters') def query_parameters(self) -> Optional[str]: '\n \n ' return pulumi.get(self, 'query_parameters')
@property @pulumi.getter(name='queryParameters') def query_parameters(self) -> Optional[str]: '\n \n ' return pulumi.get(self, 'query_parameters')<|docstring|>query parameters to include or exclude (comma separated).<|endoftext|>
b4ab376bbbdd196b5a78ce33097d6cc0c375992a61eef6c4c718c4b53a01924a
def __init__(__self__, *, odata_type: str, operator: str, match_values: Optional[Sequence[str]]=None, negate_condition: Optional[bool]=None, selector: Optional[str]=None, transforms: Optional[Sequence[str]]=None): '\n Defines the parameters for Cookies match conditions\n :param str operator: Describes...
Defines the parameters for Cookies match conditions :param str operator: Describes operator to be matched :param Sequence[str] match_values: The match value for the condition of the delivery rule :param bool negate_condition: Describes if this is negate condition or not :param str selector: Name of Cookies to be matche...
sdk/python/pulumi_azure_native/cdn/v20191231/outputs.py
__init__
pulumi-bot/pulumi-azure-native
31
python
def __init__(__self__, *, odata_type: str, operator: str, match_values: Optional[Sequence[str]]=None, negate_condition: Optional[bool]=None, selector: Optional[str]=None, transforms: Optional[Sequence[str]]=None): '\n Defines the parameters for Cookies match conditions\n :param str operator: Describes...
def __init__(__self__, *, odata_type: str, operator: str, match_values: Optional[Sequence[str]]=None, negate_condition: Optional[bool]=None, selector: Optional[str]=None, transforms: Optional[Sequence[str]]=None): '\n Defines the parameters for Cookies match conditions\n :param str operator: Describes...
03b4694364f389b4c4a22b6baf22b56dde383de57c1cf997536aa34e452bd570
@property @pulumi.getter def operator(self) -> str: '\n Describes operator to be matched\n ' return pulumi.get(self, 'operator')
Describes operator to be matched
sdk/python/pulumi_azure_native/cdn/v20191231/outputs.py
operator
pulumi-bot/pulumi-azure-native
31
python
@property @pulumi.getter def operator(self) -> str: '\n \n ' return pulumi.get(self, 'operator')
@property @pulumi.getter def operator(self) -> str: '\n \n ' return pulumi.get(self, 'operator')<|docstring|>Describes operator to be matched<|endoftext|>
4a89b4d87551a581a0fba673cb73749627a97982f3b1609a08f38cca7e88078c
@property @pulumi.getter(name='matchValues') def match_values(self) -> Optional[Sequence[str]]: '\n The match value for the condition of the delivery rule\n ' return pulumi.get(self, 'match_values')
The match value for the condition of the delivery rule
sdk/python/pulumi_azure_native/cdn/v20191231/outputs.py
match_values
pulumi-bot/pulumi-azure-native
31
python
@property @pulumi.getter(name='matchValues') def match_values(self) -> Optional[Sequence[str]]: '\n \n ' return pulumi.get(self, 'match_values')
@property @pulumi.getter(name='matchValues') def match_values(self) -> Optional[Sequence[str]]: '\n \n ' return pulumi.get(self, 'match_values')<|docstring|>The match value for the condition of the delivery rule<|endoftext|>
721cadbb8fd9b3ca322eb4a51a0590628318061974e642eb27d1fc8770c15e24
@property @pulumi.getter(name='negateCondition') def negate_condition(self) -> Optional[bool]: '\n Describes if this is negate condition or not\n ' return pulumi.get(self, 'negate_condition')
Describes if this is negate condition or not
sdk/python/pulumi_azure_native/cdn/v20191231/outputs.py
negate_condition
pulumi-bot/pulumi-azure-native
31
python
@property @pulumi.getter(name='negateCondition') def negate_condition(self) -> Optional[bool]: '\n \n ' return pulumi.get(self, 'negate_condition')
@property @pulumi.getter(name='negateCondition') def negate_condition(self) -> Optional[bool]: '\n \n ' return pulumi.get(self, 'negate_condition')<|docstring|>Describes if this is negate condition or not<|endoftext|>
4abc62886febf68e15c7659b09e3525b5ace5d5213794b1e9823914648437896
@property @pulumi.getter def selector(self) -> Optional[str]: '\n Name of Cookies to be matched\n ' return pulumi.get(self, 'selector')
Name of Cookies to be matched
sdk/python/pulumi_azure_native/cdn/v20191231/outputs.py
selector
pulumi-bot/pulumi-azure-native
31
python
@property @pulumi.getter def selector(self) -> Optional[str]: '\n \n ' return pulumi.get(self, 'selector')
@property @pulumi.getter def selector(self) -> Optional[str]: '\n \n ' return pulumi.get(self, 'selector')<|docstring|>Name of Cookies to be matched<|endoftext|>
60802afed0a11a40b1580427551db5c17905ecbff5094d60eea135f145a9ab82
@property @pulumi.getter def transforms(self) -> Optional[Sequence[str]]: '\n List of transforms\n ' return pulumi.get(self, 'transforms')
List of transforms
sdk/python/pulumi_azure_native/cdn/v20191231/outputs.py
transforms
pulumi-bot/pulumi-azure-native
31
python
@property @pulumi.getter def transforms(self) -> Optional[Sequence[str]]: '\n \n ' return pulumi.get(self, 'transforms')
@property @pulumi.getter def transforms(self) -> Optional[Sequence[str]]: '\n \n ' return pulumi.get(self, 'transforms')<|docstring|>List of transforms<|endoftext|>
619e328d689d401a7e4746ebc7c4efd3b526185bde26a7156bdbfd65e63e42db
def __init__(__self__, *, name: str, origins: Sequence['outputs.ResourceReferenceResponse'], health_probe_settings: Optional['outputs.HealthProbeParametersResponse']=None, response_based_origin_error_detection_settings: Optional['outputs.ResponseBasedOriginErrorDetectionParametersResponse']=None, traffic_restoration_ti...
The origin group for CDN content which is added when creating a CDN endpoint. Traffic is sent to the origins within the origin group based on origin health. :param str name: Origin group name which must be unique within the endpoint. :param Sequence['ResourceReferenceResponseArgs'] origins: The source of the content be...
sdk/python/pulumi_azure_native/cdn/v20191231/outputs.py
__init__
pulumi-bot/pulumi-azure-native
31
python
def __init__(__self__, *, name: str, origins: Sequence['outputs.ResourceReferenceResponse'], health_probe_settings: Optional['outputs.HealthProbeParametersResponse']=None, response_based_origin_error_detection_settings: Optional['outputs.ResponseBasedOriginErrorDetectionParametersResponse']=None, traffic_restoration_ti...
def __init__(__self__, *, name: str, origins: Sequence['outputs.ResourceReferenceResponse'], health_probe_settings: Optional['outputs.HealthProbeParametersResponse']=None, response_based_origin_error_detection_settings: Optional['outputs.ResponseBasedOriginErrorDetectionParametersResponse']=None, traffic_restoration_ti...
e365d8332150c07babd4b784e776465348c40075fd6772f4d324d99ecf5dab41
@property @pulumi.getter def name(self) -> str: '\n Origin group name which must be unique within the endpoint.\n ' return pulumi.get(self, 'name')
Origin group name which must be unique within the endpoint.
sdk/python/pulumi_azure_native/cdn/v20191231/outputs.py
name
pulumi-bot/pulumi-azure-native
31
python
@property @pulumi.getter def name(self) -> str: '\n \n ' return pulumi.get(self, 'name')
@property @pulumi.getter def name(self) -> str: '\n \n ' return pulumi.get(self, 'name')<|docstring|>Origin group name which must be unique within the endpoint.<|endoftext|>
f0f9f5cfbcacceea77198016be97a7a7319507b911064ddf3f962a178435b556
@property @pulumi.getter def origins(self) -> Sequence['outputs.ResourceReferenceResponse']: '\n The source of the content being delivered via CDN within given origin group.\n ' return pulumi.get(self, 'origins')
The source of the content being delivered via CDN within given origin group.
sdk/python/pulumi_azure_native/cdn/v20191231/outputs.py
origins
pulumi-bot/pulumi-azure-native
31
python
@property @pulumi.getter def origins(self) -> Sequence['outputs.ResourceReferenceResponse']: '\n \n ' return pulumi.get(self, 'origins')
@property @pulumi.getter def origins(self) -> Sequence['outputs.ResourceReferenceResponse']: '\n \n ' return pulumi.get(self, 'origins')<|docstring|>The source of the content being delivered via CDN within given origin group.<|endoftext|>