hexsha
string
size
int64
ext
string
lang
string
max_stars_repo_path
string
max_stars_repo_name
string
max_stars_repo_head_hexsha
string
max_stars_repo_licenses
list
max_stars_count
int64
max_stars_repo_stars_event_min_datetime
string
max_stars_repo_stars_event_max_datetime
string
max_issues_repo_path
string
max_issues_repo_name
string
max_issues_repo_head_hexsha
string
max_issues_repo_licenses
list
max_issues_count
int64
max_issues_repo_issues_event_min_datetime
string
max_issues_repo_issues_event_max_datetime
string
max_forks_repo_path
string
max_forks_repo_name
string
max_forks_repo_head_hexsha
string
max_forks_repo_licenses
list
max_forks_count
int64
max_forks_repo_forks_event_min_datetime
string
max_forks_repo_forks_event_max_datetime
string
content
string
avg_line_length
float64
max_line_length
int64
alphanum_fraction
float64
qsc_code_num_words_quality_signal
int64
qsc_code_num_chars_quality_signal
float64
qsc_code_mean_word_length_quality_signal
float64
qsc_code_frac_words_unique_quality_signal
float64
qsc_code_frac_chars_top_2grams_quality_signal
float64
qsc_code_frac_chars_top_3grams_quality_signal
float64
qsc_code_frac_chars_top_4grams_quality_signal
float64
qsc_code_frac_chars_dupe_5grams_quality_signal
float64
qsc_code_frac_chars_dupe_6grams_quality_signal
float64
qsc_code_frac_chars_dupe_7grams_quality_signal
float64
qsc_code_frac_chars_dupe_8grams_quality_signal
float64
qsc_code_frac_chars_dupe_9grams_quality_signal
float64
qsc_code_frac_chars_dupe_10grams_quality_signal
float64
qsc_code_frac_chars_replacement_symbols_quality_signal
float64
qsc_code_frac_chars_digital_quality_signal
float64
qsc_code_frac_chars_whitespace_quality_signal
float64
qsc_code_size_file_byte_quality_signal
float64
qsc_code_num_lines_quality_signal
float64
qsc_code_num_chars_line_max_quality_signal
float64
qsc_code_num_chars_line_mean_quality_signal
float64
qsc_code_frac_chars_alphabet_quality_signal
float64
qsc_code_frac_chars_comments_quality_signal
float64
qsc_code_cate_xml_start_quality_signal
float64
qsc_code_frac_lines_dupe_lines_quality_signal
float64
qsc_code_cate_autogen_quality_signal
float64
qsc_code_frac_lines_long_string_quality_signal
float64
qsc_code_frac_chars_string_length_quality_signal
float64
qsc_code_frac_chars_long_word_length_quality_signal
float64
qsc_code_frac_lines_string_concat_quality_signal
float64
qsc_code_cate_encoded_data_quality_signal
float64
qsc_code_frac_chars_hex_words_quality_signal
float64
qsc_code_frac_lines_prompt_comments_quality_signal
float64
qsc_code_frac_lines_assert_quality_signal
float64
qsc_codepython_cate_ast_quality_signal
float64
qsc_codepython_frac_lines_func_ratio_quality_signal
float64
qsc_codepython_cate_var_zero_quality_signal
bool
qsc_codepython_frac_lines_pass_quality_signal
float64
qsc_codepython_frac_lines_import_quality_signal
float64
qsc_codepython_frac_lines_simplefunc_quality_signal
float64
qsc_codepython_score_lines_no_logic_quality_signal
float64
qsc_codepython_frac_lines_print_quality_signal
float64
qsc_code_num_words
int64
qsc_code_num_chars
int64
qsc_code_mean_word_length
int64
qsc_code_frac_words_unique
null
qsc_code_frac_chars_top_2grams
int64
qsc_code_frac_chars_top_3grams
int64
qsc_code_frac_chars_top_4grams
int64
qsc_code_frac_chars_dupe_5grams
int64
qsc_code_frac_chars_dupe_6grams
int64
qsc_code_frac_chars_dupe_7grams
int64
qsc_code_frac_chars_dupe_8grams
int64
qsc_code_frac_chars_dupe_9grams
int64
qsc_code_frac_chars_dupe_10grams
int64
qsc_code_frac_chars_replacement_symbols
int64
qsc_code_frac_chars_digital
int64
qsc_code_frac_chars_whitespace
int64
qsc_code_size_file_byte
int64
qsc_code_num_lines
int64
qsc_code_num_chars_line_max
int64
qsc_code_num_chars_line_mean
int64
qsc_code_frac_chars_alphabet
int64
qsc_code_frac_chars_comments
int64
qsc_code_cate_xml_start
int64
qsc_code_frac_lines_dupe_lines
int64
qsc_code_cate_autogen
int64
qsc_code_frac_lines_long_string
int64
qsc_code_frac_chars_string_length
int64
qsc_code_frac_chars_long_word_length
int64
qsc_code_frac_lines_string_concat
null
qsc_code_cate_encoded_data
int64
qsc_code_frac_chars_hex_words
int64
qsc_code_frac_lines_prompt_comments
int64
qsc_code_frac_lines_assert
int64
qsc_codepython_cate_ast
int64
qsc_codepython_frac_lines_func_ratio
int64
qsc_codepython_cate_var_zero
int64
qsc_codepython_frac_lines_pass
int64
qsc_codepython_frac_lines_import
int64
qsc_codepython_frac_lines_simplefunc
int64
qsc_codepython_score_lines_no_logic
int64
qsc_codepython_frac_lines_print
int64
effective
string
hits
int64
0560eb796cde95bd6a8a9d9da179a30896d09450
119
py
Python
tests/urls.py
pennlabs/django-email-tools
5fce8037fcca0d635123b563fba278ad8a5df871
[ "MIT" ]
null
null
null
tests/urls.py
pennlabs/django-email-tools
5fce8037fcca0d635123b563fba278ad8a5df871
[ "MIT" ]
null
null
null
tests/urls.py
pennlabs/django-email-tools
5fce8037fcca0d635123b563fba278ad8a5df871
[ "MIT" ]
null
null
null
from django.urls import include, path urlpatterns = [path("", include("email_tools.urls", namespace="email_tools"))]
23.8
78
0.739496
15
119
5.733333
0.666667
0.232558
0
0
0
0
0
0
0
0
0
0
0.10084
119
4
79
29.75
0.803738
0
0
0
0
0
0.226891
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
057ccb83070260f86616a10292d9ffdc86f078a6
227
py
Python
backend/views.py
ledoux7/react-flask-docker
64d5533560ae5fd1bdd6b90f6c20a66b5dbdce74
[ "MIT" ]
1
2019-08-15T13:18:34.000Z
2019-08-15T13:18:34.000Z
backend/views.py
ledoux7/react-flask-docker
64d5533560ae5fd1bdd6b90f6c20a66b5dbdce74
[ "MIT" ]
null
null
null
backend/views.py
ledoux7/react-flask-docker
64d5533560ae5fd1bdd6b90f6c20a66b5dbdce74
[ "MIT" ]
null
null
null
from flask import render_template, Blueprint from extensions import db from models import * #view_blueprint = Blueprint('view', __name__) #@view_blueprint.route("/") #def index(): # return render_template("index.html")
17.461538
45
0.744493
28
227
5.75
0.571429
0.173913
0
0
0
0
0
0
0
0
0
0
0.136564
227
12
46
18.916667
0.821429
0.537445
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0.333333
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
0588ad6b114adb54b5b735d50fbad2d45c31cd90
71
py
Python
eduvpn/__main__.py
14mRh4X0r/python-eduvpn-client
e70e42283eb9caef1ec969cdff6a385350397aca
[ "Apache-2.0" ]
1
2021-05-25T07:51:30.000Z
2021-05-25T07:51:30.000Z
eduvpn/__main__.py
edvfb9/python-eduvpn-client
79f01aab392e9f93a517a70f371a0b110ce7e1c4
[ "Apache-2.0" ]
null
null
null
eduvpn/__main__.py
edvfb9/python-eduvpn-client
79f01aab392e9f93a517a70f371a0b110ce7e1c4
[ "Apache-2.0" ]
1
2021-05-25T07:50:14.000Z
2021-05-25T07:50:14.000Z
from eduvpn.cli import eduvpn if __name__ == '__main__': eduvpn()
14.2
29
0.690141
9
71
4.555556
0.777778
0
0
0
0
0
0
0
0
0
0
0
0.197183
71
4
30
17.75
0.719298
0
0
0
0
0
0.112676
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
55256ccf4abb2c724fc72dfad7ea7db3d20b756e
815
py
Python
app/__init__.py
ZehLuckmann/integracao
030f5f696367857b9a47dfec703f2a1b3021a26e
[ "MIT" ]
2
2019-03-02T22:18:18.000Z
2020-05-14T21:21:35.000Z
app/__init__.py
ZehLuckmann/integracao
030f5f696367857b9a47dfec703f2a1b3021a26e
[ "MIT" ]
null
null
null
app/__init__.py
ZehLuckmann/integracao
030f5f696367857b9a47dfec703f2a1b3021a26e
[ "MIT" ]
null
null
null
# Importa os padrões e operadores do FLask from flask import Flask # Import SQLAlchemy from flask_sqlalchemy import SQLAlchemy # Define the WSGI application object app = Flask(__name__) # Configurations app.config.from_object('config') # Define the database object which is imported # by modules and controllers db = SQLAlchemy(app) # Import a module / component using its blueprint handler variable (mod_auth) from app.controllers.defaults import * from app.controllers.member import * from app.controllers.event import * from app.controllers.financial import * from app.controllers.product import * from app.controllers.team import * from app.controllers.training import * from app.controllers.subscription import * # Build the database: # This will create the database file using SQLAlchemy db.create_all()
28.103448
77
0.801227
111
815
5.810811
0.468468
0.086822
0.223256
0.260465
0
0
0
0
0
0
0
0
0.134969
815
29
78
28.103448
0.914894
0.402454
0
0
0
0
0.012552
0
0
0
0
0
0
1
0
false
0
0.714286
0
0.714286
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
552584ff11780154f7d3b5dd981510b0e92303d9
400
py
Python
modules/models/owners.py
birkoff/cloud-instances
cbf80523b210bd3e932bd5c933146f446550f0f4
[ "MIT" ]
1
2019-11-18T23:31:13.000Z
2019-11-18T23:31:13.000Z
modules/models/owners.py
birkoff/cloud-instances
cbf80523b210bd3e932bd5c933146f446550f0f4
[ "MIT" ]
null
null
null
modules/models/owners.py
birkoff/cloud-instances
cbf80523b210bd3e932bd5c933146f446550f0f4
[ "MIT" ]
null
null
null
class Owners: def __init__(self, github, cloud_storage): self.github = github self.cloud_storage = cloud_storage def list_all(self): return self.cloud_storage.list_all_owners() def sync(self): all_users = self.github.fetch_users() self.cloud_storage.store_owners_lists(list(all_users.keys())) self.cloud_storage.store_ssh_keys(all_users)
30.769231
69
0.6925
54
400
4.740741
0.333333
0.28125
0.25
0.164063
0
0
0
0
0
0
0
0
0.2125
400
12
70
33.333333
0.812698
0
0
0
0
0
0
0
0
0
0
0
0
1
0.3
false
0
0
0.1
0.5
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
4
555fbc7117f0ea928eef28c3c73a884e7eb383ed
4,215
py
Python
scripts/forms.py
dparmenter123/verbe-italiani
352a313c7e649afa14a0c3d783f32c539c0eb12e
[ "CC0-1.0" ]
null
null
null
scripts/forms.py
dparmenter123/verbe-italiani
352a313c7e649afa14a0c3d783f32c539c0eb12e
[ "CC0-1.0" ]
2
2020-03-31T11:39:00.000Z
2021-08-23T20:40:11.000Z
scripts/forms.py
dparmenter123/verbe-italiani
352a313c7e649afa14a0c3d783f32c539c0eb12e
[ "CC0-1.0" ]
null
null
null
# Its job is to identify which forms are good prompts for the key form, so given a level and a form, # we can pick a good prompt. MATCHING_FORMS = { ("A1", "INDICATIVO_PASSATO_PROSSIMO"): ["'INDICATIVO_PRESENTE'"], ("A2", "INDICATIVO_PASSATO_PROSSIMO"): ["'INDICATIVO_PRESENTE'"], ("B1", "INDICATIVO_PASSATO_PROSSIMO"): ["'INDICATIVO_PRESENTE'"], ("B2", "INDICATIVO_PASSATO_PROSSIMO"): ["'INDICATIVO_PRESENTE'"], ("A1", "INDICATIVO_IMPERFETTO"): ["'INDICATIVO_PRESENTE'"] + ["'INDICATIVO_PASSATO_PROSSIMO'"], ("A2", "INDICATIVO_IMPERFETTO"): ["'INDICATIVO_PRESENTE'"] + ["'INDICATIVO_PASSATO_PROSSIMO'"], ("B1", "INDICATIVO_IMPERFETTO"): ["'INDICATIVO_PRESENTE'"] + ["'INDICATIVO_PASSATO_PROSSIMO'"], ("B2", "INDICATIVO_IMPERFETTO"): ["'INDICATIVO_PRESENTE'"] + ["'INDICATIVO_PASSATO_PROSSIMO'"], ("A1", "CONDIZIONALE_PRESENTE"): ["'INDICATIVO_PRESENTE'"], ("A2", "CONDIZIONALE_PRESENTE"): ["'INDICATIVO_PRESENTE'"], ("B1", "CONDIZIONALE_PRESENTE"): ["'INDICATIVO_PRESENTE'"], ("B2", "CONDIZIONALE_PRESENTE"): ["'INDICATIVO_PRESENTE'"], ("A1", "INDICATIVO_FUTURO_SEMPLICE"): ["'INDICATIVO_PRESENTE'"], ("A2", "INDICATIVO_FUTURO_SEMPLICE"): ["'INDICATIVO_PRESENTE'"], ("B1", "INDICATIVO_FUTURO_SEMPLICE"): ["'INDICATIVO_PRESENTE'"], ("B2", "INDICATIVO_FUTURO_SEMPLICE"): ["'INDICATIVO_PRESENTE'"], ("A1", "CONGIUNTIVO_PRESENTE"): ["'INDICATIVO_PRESENTE'"], ("A2", "CONGIUNTIVO_PRESENTE"): ["'INDICATIVO_PRESENTE'"], ("B1", "CONGIUNTIVO_PRESENTE"): ["'INDICATIVO_PRESENTE'"], ("B2", "CONGIUNTIVO_PRESENTE"): ["'INDICATIVO_PRESENTE'"], ("A1", "INDICATIVO_TRAPASSATO_PROSSIMO"): ["'INDICATIVO_PRESENTE'"] + ["'INDICATIVO_IMPERFETTO'"], ("A2", "INDICATIVO_TRAPASSATO_PROSSIMO"): ["'INDICATIVO_PRESENTE'"] + ["'INDICATIVO_IMPERFETTO'"], ("B1", "INDICATIVO_TRAPASSATO_PROSSIMO"): ["'INDICATIVO_PRESENTE'"] + ["'INDICATIVO_IMPERFETTO'"], ("B2", "INDICATIVO_TRAPASSATO_PROSSIMO"): ["'INDICATIVO_PRESENTE'"] + ["'INDICATIVO_IMPERFETTO'"], ("A1", "CONGIUNTIVO_IMPERFETTO"): ["'CONGIUNTIVO_PRESENTE'"], ("A2", "CONGIUNTIVO_IMPERFETTO"): ["'CONGIUNTIVO_PRESENTE'"], ("B1", "CONGIUNTIVO_IMPERFETTO"): ["'CONGIUNTIVO_PRESENTE'"], ("B2", "CONGIUNTIVO_IMPERFETTO"): ["'CONGIUNTIVO_PRESENTE'"], ("A1", "CONGIUNTIVO_PASSATO"): ["'CONGIUNTIVO_PRESENTE'"], ("A2", "CONGIUNTIVO_PASSATO"): ["'CONGIUNTIVO_PRESENTE'"], ("B1", "CONGIUNTIVO_PASSATO"): ["'CONGIUNTIVO_PRESENTE'"], ("B2", "CONGIUNTIVO_PASSATO"): ["'CONGIUNTIVO_PRESENTE'"], ("A1", "CONGIUNTIVO_TRAPASSATO"): ["'CONGIUNTIVO_PRESENTE'"], ("A2", "CONGIUNTIVO_TRAPASSATO"): ["'CONGIUNTIVO_PRESENTE'"], ("B1", "CONGIUNTIVO_TRAPASSATO"): ["'CONGIUNTIVO_PRESENTE'"], ("B2", "CONGIUNTIVO_TRAPASSATO"): ["'CONGIUNTIVO_PRESENTE'"], ("A1", "CONDIZIONALE_PASSATO"): ["'CONDIZIONALE_PRESENTE'"], ("A2", "CONDIZIONALE_PASSATO"): ["'CONDIZIONALE_PRESENTE'"], ("B1", "CONDIZIONALE_PASSATO"): ["'CONDIZIONALE_PRESENTE'"], ("B2", "CONDIZIONALE_PASSATO"): ["'CONDIZIONALE_PRESENTE'"], ("A1", "INDICATIVO_PASSATO_REMOTO"): ["'INDICATIVO_PRESENTE'"] + ["'INDICATIVO_PASSATO_REMOTO'"], ("A2", "INDICATIVO_PASSATO_REMOTO"): ["'INDICATIVO_PRESENTE'"] + ["'INDICATIVO_PASSATO_REMOTO'"], ("B1", "INDICATIVO_PASSATO_REMOTO"): ["'INDICATIVO_PRESENTE'"] + ["'INDICATIVO_PASSATO_REMOTO'"], ("B2", "INDICATIVO_PASSATO_REMOTO"): ["'INDICATIVO_PRESENTE'"] + ["'INDICATIVO_PASSATO_REMOTO'"], ("A1", "INDICATIVO_TRAPASSATO_REMOTO"): ["'INDICATIVO_PRESENTE'"] + ["'INDICATIVO_PASSATO_REMOTO'"], ("A2", "INDICATIVO_TRAPASSATO_REMOTO"): ["'INDICATIVO_PRESENTE'"] + ["'INDICATIVO_PASSATO_REMOTO'"], ("B1", "INDICATIVO_TRAPASSATO_REMOTO"): ["'INDICATIVO_PRESENTE'"] + ["'INDICATIVO_PASSATO_REMOTO'"], ("B2", "INDICATIVO_TRAPASSATO_REMOTO"): ["'INDICATIVO_PRESENTE'"] + ["'INDICATIVO_PASSATO_REMOTO'"], ("A1", "INDICATIVO_FUTURO_ANTERIORE"): ["'INDICATIVO_FUTURO_SEMPLICE'"], ("A2", "INDICATIVO_FUTURO_ANTERIORE"): ["'INDICATIVO_FUTURO_SEMPLICE'"], ("B1", "INDICATIVO_FUTURO_ANTERIORE"): ["'INDICATIVO_FUTURO_SEMPLICE'"], ("B2", "INDICATIVO_FUTURO_ANTERIORE"): ["'INDICATIVO_FUTURO_SEMPLICE'"], }
61.086957
104
0.681851
361
4,215
7.515235
0.110803
0.212311
0.165131
0.15481
0.607446
0.461482
0.392923
0.202728
0
0
0
0.013778
0.104626
4,215
69
105
61.086957
0.705087
0.029656
0
0
0
0
0.709393
0.626223
0
0
0
0
0
1
0
false
0.592593
0
0
0
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
null
0
0
0
0
0
0
0
1
0
0
0
0
0
4
5584868357ad4bee6265658dcdc551bbc8c24220
4,641
py
Python
maddpg/model.py
glab2019/MADDPG-Based-MCS
e48ee3a74c66d7fa8acaa4e3796874c4ca09519f
[ "MIT" ]
5
2020-12-31T02:35:58.000Z
2022-03-08T09:28:51.000Z
maddpg/model.py
glab2019/MADDPG-Based-MCS
e48ee3a74c66d7fa8acaa4e3796874c4ca09519f
[ "MIT" ]
null
null
null
maddpg/model.py
glab2019/MADDPG-Based-MCS
e48ee3a74c66d7fa8acaa4e3796874c4ca09519f
[ "MIT" ]
null
null
null
import numpy as np import torch import torch.nn as nn import torch.nn.functional as F def hidden_init(layer): fan_in = layer.weight.data.size()[0] lim = 1. / np.sqrt(fan_in) return -lim, lim class ActorNetwork(nn.Module): def __init__(self, observation_size, action_size, use_batch_norm, seed, fc1_units=128, fc2_units=64, fc3_units=32): """ :param observation_size: observation size :param action_size: action size :param use_batch_norm: True to use batch norm :param seed: random seed :param fc1_units: number of nodes in 1st hidden layer :param fc2_units: number of nodes in 2nd hidden layer :param fc3_units: number of nodes in 3rd hidden layer """ super(ActorNetwork, self).__init__() if seed is not None: torch.manual_seed(seed) if use_batch_norm: self.bn1 = nn.BatchNorm1d(observation_size) self.bn2 = nn.BatchNorm1d(fc1_units) self.bn3 = nn.BatchNorm1d(fc2_units) self.bn4 = nn.BatchNorm1d(fc3_units) # batch norm has bias included, disable linear layer bias use_bias = not use_batch_norm self.use_batch_norm = use_batch_norm self.fc1 = nn.Linear(observation_size, fc1_units, bias=use_bias) self.fc2 = nn.Linear(fc1_units, fc2_units, bias=use_bias) self.fc3 = nn.Linear(fc2_units, fc3_units, bias=use_bias) self.fc4 = nn.Linear(fc3_units, action_size, bias=use_bias) self.reset_parameters() def forward(self, observation): """ map a states to action values :param observation: shape == (batch, observation_size) :return: action values """ if self.use_batch_norm: x = F.relu(self.fc1(self.bn1(observation))) x = F.relu(self.fc2(self.bn2(x))) x = F.relu(self.fc3(self.bn3(x))) return torch.tanh(self.fc4(self.bn4(x))) else: x = F.relu(self.fc1(observation)) x = F.relu(self.fc2(x)) x = F.relu(self.fc3(x)) return torch.tanh(self.fc4(x)) def reset_parameters(self): self.fc1.weight.data.uniform_(*hidden_init(self.fc1)) self.fc2.weight.data.uniform_(*hidden_init(self.fc2)) self.fc3.weight.data.uniform_(*hidden_init(self.fc3)) self.fc4.weight.data.uniform_(-3e-3, 3e-3) class CriticNetwork(nn.Module): def __init__(self, observation_size, action_size, use_batch_norm, seed, fc1_units=128, fc2_units=64, fc3_units=32): """ :param observation_size: Dimension of each state :param action_size: Dimension of each state :param seed: random seed :param fc1_units: number of nodes in 1st hidden layer :param fc2_units: number of nodes in 2nd hidden layer :param fc3_units: number of nodes in 3rd hidden layer """ super(CriticNetwork, self).__init__() if seed is not None: torch.manual_seed(seed) if use_batch_norm: self.bn1 = nn.BatchNorm1d(observation_size + action_size) self.bn2 = nn.BatchNorm1d(fc1_units) self.bn3 = nn.BatchNorm1d(fc2_units) self.bn4 = nn.BatchNorm1d(fc3_units) # batch norm has bias included, disable linear layer bias use_bias = not use_batch_norm self.use_batch_norm = use_batch_norm self.fc1 = nn.Linear(observation_size + action_size, fc1_units, bias=use_bias) self.fc2 = nn.Linear(fc1_units, fc2_units) self.fc3 = nn.Linear(fc2_units, fc3_units) self.fc4 = nn.Linear(fc3_units, 1) self.reset_parameters() def forward(self, observation, action): """ map (observation, actions) pairs to Q-values :param observation: shape == (batch, observation_size) :param action: shape == (batch, action_size) :return: q-values values """ x = torch.cat([observation, action], dim=1) if self.use_batch_norm: x = F.relu(self.fc1(self.bn1(x))) x = F.relu(self.fc2(self.bn2(x))) x = F.relu(self.fc3(self.bn3(x))) else: x = F.relu(self.fc1(x)) x = F.relu(self.fc2(x)) x = F.relu(self.fc3(x)) x = self.fc4(x) return x def reset_parameters(self): self.fc1.weight.data.uniform_(*hidden_init(self.fc1)) self.fc2.weight.data.uniform_(*hidden_init(self.fc2)) self.fc3.weight.data.uniform_(*hidden_init(self.fc3)) self.fc4.weight.data.uniform_(-3e-3, 3e-3)
35.976744
86
0.618617
650
4,641
4.232308
0.138462
0.052345
0.061069
0.043621
0.822973
0.814976
0.755725
0.676845
0.654308
0.654308
0
0.036137
0.272571
4,641
128
87
36.257813
0.778732
0.210515
0
0.571429
0
0
0
0
0
0
0
0
0
1
0.090909
false
0
0.051948
0
0.220779
0
0
0
0
null
0
0
0
1
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
55a3a6a0ea31bc99ede78c91ac3e17a8ad9df952
59
py
Python
tests/__init__.py
Nikolay-Lysenko/servifier
6d51f0904edf650e178a95e2f5424c8ebafabb83
[ "MIT" ]
8
2019-05-09T12:45:37.000Z
2019-08-25T14:44:58.000Z
tests/__init__.py
Nikolay-Lysenko/servifier
6d51f0904edf650e178a95e2f5424c8ebafabb83
[ "MIT" ]
1
2019-11-02T20:59:51.000Z
2019-11-02T20:59:51.000Z
tests/__init__.py
Nikolay-Lysenko/servifier
6d51f0904edf650e178a95e2f5424c8ebafabb83
[ "MIT" ]
null
null
null
""" Test `servifier` package. Author: Nikolay Lysenko """
9.833333
25
0.677966
6
59
6.666667
1
0
0
0
0
0
0
0
0
0
0
0
0.152542
59
5
26
11.8
0.8
0.847458
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
55b9be7d37ec60aaa3d0cec21dd6d13f61d38566
92
py
Python
nnatest_api/runner/apps.py
marcelotrevisani/nnatest_api
e4858e2348bf041ad2bc0674a6316bf046305701
[ "MIT" ]
null
null
null
nnatest_api/runner/apps.py
marcelotrevisani/nnatest_api
e4858e2348bf041ad2bc0674a6316bf046305701
[ "MIT" ]
null
null
null
nnatest_api/runner/apps.py
marcelotrevisani/nnatest_api
e4858e2348bf041ad2bc0674a6316bf046305701
[ "MIT" ]
null
null
null
from django.apps import AppConfig class TestmanagerConfig(AppConfig): name = 'runner'
15.333333
35
0.76087
10
92
7
0.9
0
0
0
0
0
0
0
0
0
0
0
0.163043
92
5
36
18.4
0.909091
0
0
0
0
0
0.065217
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
e99879b709d83e4a790ab15e0c7e8d0ee2b5572c
131
py
Python
randsentlist/filename/filename.py
eryktrzeciakiewicz/random-sentence-list
848224e99e73f0ef55f229edfffeef388ef857ec
[ "MIT" ]
null
null
null
randsentlist/filename/filename.py
eryktrzeciakiewicz/random-sentence-list
848224e99e73f0ef55f229edfffeef388ef857ec
[ "MIT" ]
1
2021-06-01T23:54:30.000Z
2021-06-01T23:54:30.000Z
randsentlist/filename/filename.py
eryktrzeciakiewicz/random-sentence-list
848224e99e73f0ef55f229edfffeef388ef857ec
[ "MIT" ]
null
null
null
import datetime def unique_filename(): date = datetime.datetime.now().strftime("%d_%h_%Y_%H_%M_%S") return date + ".tex"
18.714286
64
0.664122
19
131
4.263158
0.789474
0
0
0
0
0
0
0
0
0
0
0
0.160305
131
6
65
21.833333
0.736364
0
0
0
0
0
0.160305
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.75
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4
e9a9f3273e8f9a7b77efe9dbe3c4a3f427f8a468
276
py
Python
src/cuia/renderer/__init__.py
schneiderfelipe/kay
a7bf69e3bbd1b845286667b20eb1fba88faf9ea4
[ "MIT" ]
14
2021-11-18T14:56:48.000Z
2022-03-26T08:02:13.000Z
src/cuia/renderer/__init__.py
getcuia/cuia
685d258b3cb366d40100e6a563661b307aef5ae3
[ "MIT" ]
8
2021-11-25T13:47:12.000Z
2022-03-25T12:01:09.000Z
src/cuia/renderer/__init__.py
schneiderfelipe/kay
a7bf69e3bbd1b845286667b20eb1fba88faf9ea4
[ "MIT" ]
null
null
null
"""Renderer facilities.""" from .curses import CursesRenderer from .log import LogRenderer from .renderer import Renderer from .text import TextRenderer __all__ = ["CursesRenderer", "LogRenderer", "Renderer", "TextRenderer"] # TODO: call this module "renderers" (plural)
21.230769
71
0.757246
29
276
7.068966
0.586207
0
0
0
0
0
0
0
0
0
0
0
0.130435
276
12
72
23
0.854167
0.235507
0
0
0
0
0.219512
0
0
0
0
0.083333
0
1
0
false
0
0.8
0
0.8
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
1
0
1
0
0
4
756d2c3589fad123fc8b5bec1de589306c9887d7
63
py
Python
exercicio 5.2.py
LuizCostha/Nilo-Menezes-exercises
2e2f2de83868c8c02e0149fb81bc9f531c1b064d
[ "MIT" ]
null
null
null
exercicio 5.2.py
LuizCostha/Nilo-Menezes-exercises
2e2f2de83868c8c02e0149fb81bc9f531c1b064d
[ "MIT" ]
null
null
null
exercicio 5.2.py
LuizCostha/Nilo-Menezes-exercises
2e2f2de83868c8c02e0149fb81bc9f531c1b064d
[ "MIT" ]
null
null
null
x = 50 while 50 <= x <= 100: print (x) x = x + 1
10.5
22
0.365079
11
63
2.090909
0.545455
0.173913
0
0
0
0
0
0
0
0
0
0.242424
0.47619
63
5
23
12.6
0.454545
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.25
1
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
7579dbf96647a6319d436986aaeb2ae6e33c47a9
3,011
py
Python
Python3/1240.py
rakhi2001/ecom7
73790d44605fbd51e8f7e804b9808e364fcfc680
[ "MIT" ]
854
2018-11-09T08:06:16.000Z
2022-03-31T06:05:53.000Z
Python3/1240.py
rakhi2001/ecom7
73790d44605fbd51e8f7e804b9808e364fcfc680
[ "MIT" ]
29
2019-06-02T05:02:25.000Z
2021-11-15T04:09:37.000Z
Python3/1240.py
rakhi2001/ecom7
73790d44605fbd51e8f7e804b9808e364fcfc680
[ "MIT" ]
347
2018-12-23T01:57:37.000Z
2022-03-12T14:51:21.000Z
__________________________________________________________________________________________________ sample 16 ms submission class Solution: def tilingRectangle(self, n: int, m: int) -> List[int]: if n < m: return self.tilingRectangle(m, n) if m == 0: return 0 if m == 1: return n elif n == 13 and m == 11: return 6 elif n == 7 and m == 6: return 5 elif n == 10 and m == 9: return 6 elif n == 11 and m == 10: return 6 elif n == 11 and m == 6: return 6 elif n == 12 and m == 11: return 7 elif n == 13 and m == 12: return 7 return 1 + self.tilingRectangle(m, n - m) __________________________________________________________________________________________________ sample 20 ms submission class Solution: def tilingRectangle(self, n: int, m: int) -> int: d = {(1, 1): 1, (2, 1): 2, (2, 2): 1, (3, 1): 3, (3, 2): 3, (3, 3): 1, (4, 1): 4, (4, 2): 2, (4, 3): 4, (4, 4): 1, (5, 1): 5, (5, 2): 4, (5, 3): 4, (5, 4): 5, (5, 5): 1, (6, 1): 6, (6, 2): 3, (6, 3): 2, (6, 4): 3, (6, 5): 5, (6, 6): 1, (7, 1): 7, (7, 2): 5, (7, 3): 5, (7, 4): 5, (7, 5): 5, (7, 6): 5, (7, 7): 1, (8, 1): 8, (8, 2): 4, (8, 3): 5, (8, 4): 2, (8, 5): 5, (8, 6): 4, (8, 7): 7, (8, 8): 1, (9, 1): 9, (9, 2): 6, (9, 3): 3, (9, 4): 6, (9, 5): 6, (9, 6): 3, (9, 7): 6, (9, 8): 7, (9, 9): 1, (10, 1): 10, (10, 2): 5, (10, 3): 6, (10, 4): 4, (10, 5): 2, (10, 6): 4, (10, 7): 6, (10, 8): 5, (10, 9): 6, (10, 10): 1, (11, 1): 11, (11, 2): 7, (11, 3): 6, (11, 4): 6, (11, 5): 6, (11, 6): 6, (11, 7): 6, (11, 8): 6, (11, 9): 7, (11, 10): 6, (11, 11): 1, (12, 1): 12, (12, 2): 6, (12, 3): 4, (12, 4): 3, (12, 5): 6, (12, 6): 2, (12, 7): 6, (12, 8): 3, (12, 9): 4, (12, 10): 5, (12, 11): 7, (12, 12): 1, (13, 1): 13, (13, 2): 8, (13, 3): 7, (13, 4): 7, (13, 5): 6, (13, 6): 6, (13, 7): 6, (13, 8): 6, (13, 9): 7, (13, 10): 7, (13, 11): 6, (13, 12): 7, (13, 13): 1} if m > n: n, m = m, n return d[(n,m)] __________________________________________________________________________________________________ sample 24 ms submission class Solution: def tilingRectangle(self, n: int, m: int) -> int: import functools @functools.lru_cache(maxsize=None) def helper(i, j): if (n == 11 and m == 13) or( n == 13 and m == 11): return 6 if i <= 0 or j <= 0: return float('inf') if i == j: return 1 if i == 1: return j if j == 1: return i ans1 = ans2 = float('inf') for k in range(1, j): ans1 = min(ans1, helper(i, k) + helper(i, j - k)) for k in range(1, i): ans2 = min(ans2, helper(k, j) + helper(i - k, j)) return min(ans1, ans2) return helper(n, m)
49.360656
1,073
0.44271
502
3,011
2.067729
0.105578
0.034682
0.042389
0.046243
0.267823
0.23025
0.23025
0.16474
0.16474
0.16474
0
0.202133
0.346064
3,011
61
1,074
49.360656
0.325038
0
0
0.269231
0
0
0.001992
0
0
0
0
0
0
0
null
null
0
0.019231
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
1
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
4
7595380256bc175b68743f0dcd8638484d11634d
137
py
Python
solutions/timeloop.py
dx-dt/Kattis
62856999ae2ac43dab81f87beeac5bf8979528f5
[ "Unlicense" ]
null
null
null
solutions/timeloop.py
dx-dt/Kattis
62856999ae2ac43dab81f87beeac5bf8979528f5
[ "Unlicense" ]
null
null
null
solutions/timeloop.py
dx-dt/Kattis
62856999ae2ac43dab81f87beeac5bf8979528f5
[ "Unlicense" ]
null
null
null
# https://open.kattis.com/problems/timeloop import sys for n in range(int(sys.stdin.read())): print "%s Abracadabra" % (n+1)
19.571429
44
0.642336
21
137
4.190476
0.904762
0
0
0
0
0
0
0
0
0
0
0.008929
0.182482
137
6
45
22.833333
0.776786
0.29927
0
0
0
0
0.159091
0
0
0
0
0
0
0
null
null
0
0.333333
null
null
0.333333
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
4
75c4a34e3e70e446c839190560c394f393c68f19
2,572
py
Python
h2o-hadoop-common/tests/python/pyunit_gcs_import.py
kernelrich/h2o-3
16bd6be6d0ac22b037cb55b4c647e63e2b112e1e
[ "Apache-2.0" ]
6,098
2015-05-22T02:46:12.000Z
2022-03-31T16:54:51.000Z
h2o-hadoop-common/tests/python/pyunit_gcs_import.py
kernelrich/h2o-3
16bd6be6d0ac22b037cb55b4c647e63e2b112e1e
[ "Apache-2.0" ]
2,517
2015-05-23T02:10:54.000Z
2022-03-30T17:03:39.000Z
h2o-hadoop-common/tests/python/pyunit_gcs_import.py
kernelrich/h2o-3
16bd6be6d0ac22b037cb55b4c647e63e2b112e1e
[ "Apache-2.0" ]
2,199
2015-05-22T04:09:55.000Z
2022-03-28T22:20:45.000Z
#! /usr/env/python import sys import os sys.path.insert(1, os.path.join("../../../h2o-py")) from tests import pyunit_utils import h2o def gcs_import(): # Just test the import works - no class clashes, no exception keys = h2o.import_file( "gs://gcp-public-data-nexrad-l2/2018/01/01/KABR/NWS_NEXRAD_NXL2DPBL_KABR_20180101050000_20180101055959.tar", parse=False) assert len(keys) == 1 assert keys == [ 'gs://gcp-public-data-nexrad-l2/2018/01/01/KABR/NWS_NEXRAD_NXL2DPBL_KABR_20180101050000_20180101055959.tar'] expected_keys = [ 'gs://gcp-public-data-nexrad-l2/1991/06/05/KTLX/NWS_NEXRAD_NXL2LG_KTLX_19910605160000_19910605235959.tar', 'gs://gcp-public-data-nexrad-l2/1991/06/06/KTLX/NWS_NEXRAD_NXL2LG_KTLX_19910606000000_19910606075959.tar', 'gs://gcp-public-data-nexrad-l2/1991/06/06/KTLX/NWS_NEXRAD_NXL2LG_KTLX_19910606080000_19910606155959.tar', 'gs://gcp-public-data-nexrad-l2/1991/06/06/KTLX/NWS_NEXRAD_NXL2LG_KTLX_19910606160000_19910606235959.tar', 'gs://gcp-public-data-nexrad-l2/1991/06/07/KTLX/NWS_NEXRAD_NXL2LG_KTLX_19910607160000_19910607235959.tar', 'gs://gcp-public-data-nexrad-l2/1991/06/08/KTLX/NWS_NEXRAD_NXL2LG_KTLX_19910608000000_19910608075959.tar', 'gs://gcp-public-data-nexrad-l2/1991/06/08/KTLX/NWS_NEXRAD_NXL2LG_KTLX_19910608080000_19910608155959.tar', 'gs://gcp-public-data-nexrad-l2/1991/06/09/KTLX/NWS_NEXRAD_NXL2LG_KTLX_19910609160000_19910609235959.tar', 'gs://gcp-public-data-nexrad-l2/1991/06/10/KTLX/NWS_NEXRAD_NXL2LG_KTLX_19910610000000_19910610075959.tar', 'gs://gcp-public-data-nexrad-l2/1991/06/10/KTLX/NWS_NEXRAD_NXL2LG_KTLX_19910610080000_19910610155959.tar', 'gs://gcp-public-data-nexrad-l2/1991/06/22/KTLX/NWS_NEXRAD_NXL2LG_KTLX_19910622160000_19910622235959.tar', 'gs://gcp-public-data-nexrad-l2/1991/06/23/KTLX/NWS_NEXRAD_NXL2LG_KTLX_19910623000000_19910623075959.tar'] # Import folder keys = h2o.import_file("gs://gcp-public-data-nexrad-l2/1991/06", parse=False) assert len(keys) == 12 assert keys == expected_keys # Import folder - slash at the end of path keys = h2o.import_file("gs://gcp-public-data-nexrad-l2/1991/06/", parse=False) assert len(keys) == 12 assert keys == expected_keys # Import folder - Invalid path keys = h2o.import_file("gs://gcp-public-data-nexrad-l2/1991/06/somethingNonExistent/", parse=False) assert len(keys) == 0 if __name__ == "__main__": pyunit_utils.standalone_test(gcs_import) else: gcs_import()
49.461538
116
0.738336
377
2,572
4.795756
0.254642
0.047013
0.103429
0.14104
0.652655
0.563606
0.563606
0.559181
0.543142
0.472345
0
0.250998
0.12325
2,572
51
117
50.431373
0.550776
0.062986
0
0.108108
0
0.378378
0.667775
0.658212
0
0
0
0
0.189189
1
0.027027
false
0
0.297297
0
0.324324
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
1
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
75d3927076e91e092ac2ccdcd466085efe6b2ec1
126
py
Python
setup.py
aerorahul/python_lib
b0391a84ee5cdc838530d8e6e41be6d14435c4dd
[ "Apache-2.0" ]
null
null
null
setup.py
aerorahul/python_lib
b0391a84ee5cdc838530d8e6e41be6d14435c4dd
[ "Apache-2.0" ]
null
null
null
setup.py
aerorahul/python_lib
b0391a84ee5cdc838530d8e6e41be6d14435c4dd
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 -*- # pip install --user -e . # pip uninstall pyarsenal from setuptools import setup, find_packages setup()
15.75
43
0.706349
17
126
5.176471
0.882353
0
0
0
0
0
0
0
0
0
0
0.009615
0.174603
126
7
44
18
0.836538
0.515873
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
75eeefa65ed095068b6d5b98dcf71ddd92bd40e7
1,822
py
Python
pytglib/api/functions/set_password.py
iTeam-co/pytglib
e5e75e0a85f89b77762209b32a61b0a883c0ae61
[ "MIT" ]
6
2019-10-30T08:57:27.000Z
2021-02-08T14:17:43.000Z
pytglib/api/functions/set_password.py
iTeam-co/python-telegram
e5e75e0a85f89b77762209b32a61b0a883c0ae61
[ "MIT" ]
1
2021-08-19T05:44:10.000Z
2021-08-19T07:14:56.000Z
pytglib/api/functions/set_password.py
iTeam-co/python-telegram
e5e75e0a85f89b77762209b32a61b0a883c0ae61
[ "MIT" ]
5
2019-12-04T05:30:39.000Z
2021-05-21T18:23:32.000Z
from ..utils import Object class SetPassword(Object): """ Changes the password for the user. If a new recovery email address is specified, then the change will not be applied until the new recovery email address is confirmed Attributes: ID (:obj:`str`): ``SetPassword`` Args: old_password (:obj:`str`): Previous password of the user new_password (:obj:`str`): New password of the user; may be empty to remove the password new_hint (:obj:`str`): New password hint; may be empty set_recovery_email_address (:obj:`bool`): Pass true if the recovery email address should be changed new_recovery_email_address (:obj:`str`): New recovery email address; may be empty Returns: PasswordState Raises: :class:`telegram.Error` """ ID = "setPassword" def __init__(self, old_password, new_password, new_hint, set_recovery_email_address, new_recovery_email_address, extra=None, **kwargs): self.extra = extra self.old_password = old_password # str self.new_password = new_password # str self.new_hint = new_hint # str self.set_recovery_email_address = set_recovery_email_address # bool self.new_recovery_email_address = new_recovery_email_address # str @staticmethod def read(q: dict, *args) -> "SetPassword": old_password = q.get('old_password') new_password = q.get('new_password') new_hint = q.get('new_hint') set_recovery_email_address = q.get('set_recovery_email_address') new_recovery_email_address = q.get('new_recovery_email_address') return SetPassword(old_password, new_password, new_hint, set_recovery_email_address, new_recovery_email_address)
37.183673
170
0.671789
236
1,822
4.902542
0.266949
0.202247
0.31115
0.19879
0.282627
0.232498
0.206569
0.169404
0.129646
0.129646
0
0
0.245335
1,822
48
171
37.958333
0.841455
0.415478
0
0
0
0
0.108718
0.053333
0
0
0
0
0
1
0.111111
false
0.5
0.055556
0
0.333333
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
4
75f9368b7ae616dd4eab0ae3b86f9bbe14a6ba09
4,251
py
Python
osc_bge/student/migrations/0001_initial.py
jisuhan3201/osc-bge
125c441d23d7f1fdb2d9b8f42f859082e757e25a
[ "MIT" ]
null
null
null
osc_bge/student/migrations/0001_initial.py
jisuhan3201/osc-bge
125c441d23d7f1fdb2d9b8f42f859082e757e25a
[ "MIT" ]
5
2020-06-05T19:49:47.000Z
2021-09-08T00:50:55.000Z
osc_bge/student/migrations/0001_initial.py
jisuhan3201/osc-bge
125c441d23d7f1fdb2d9b8f42f859082e757e25a
[ "MIT" ]
null
null
null
# Generated by Django 2.0.9 on 2018-11-28 16:18 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='ParentInfo', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(auto_now_add=True, null=True)), ('updated_at', models.DateTimeField(auto_now=True, null=True)), ('name', models.CharField(max_length=255, null=True)), ('phone', models.CharField(blank=True, max_length=255, null=True)), ('email', models.EmailField(blank=True, max_length=254, null=True)), ('wechat', models.CharField(blank=True, max_length=255, null=True)), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='Student', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(auto_now_add=True, null=True)), ('updated_at', models.DateTimeField(auto_now=True, null=True)), ('name', models.CharField(max_length=80, null=True)), ('gender', models.CharField(choices=[('male', 'Male'), ('female', 'Female')], max_length=80, null=True)), ('birthday', models.DateField(blank=True, null=True)), ('image', models.ImageField(blank=True, upload_to='images')), ('phone', models.CharField(blank=True, max_length=140, null=True)), ('email', models.EmailField(blank=True, max_length=254, null=True)), ('skype', models.CharField(blank=True, max_length=140, null=True)), ('wechat', models.CharField(blank=True, max_length=140, null=True)), ('status', models.CharField(blank=True, choices=[('unregistered', 'Unregistered'), ('registered', 'Registered')], default='unregistered', max_length=80, null=True)), ('nationality', models.CharField(blank=True, max_length=80, null=True)), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='StudentHistory', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(auto_now_add=True, null=True)), ('updated_at', models.DateTimeField(auto_now=True, null=True)), ('current_grade', models.CharField(blank=True, max_length=80, null=True)), ('current_school', models.CharField(blank=True, max_length=140, null=True)), ('apply_grade', models.CharField(blank=True, max_length=80, null=True)), ('eng_level', models.CharField(blank=True, max_length=140, null=True)), ('toefl', models.CharField(blank=True, max_length=80, null=True)), ('toefljr', models.CharField(blank=True, max_length=80, null=True)), ('gpa', models.CharField(blank=True, max_length=80, null=True)), ('sat', models.CharField(blank=True, max_length=80, null=True)), ('address', models.CharField(blank=True, max_length=255, null=True)), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='StudentReport', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(auto_now_add=True, null=True)), ('updated_at', models.DateTimeField(auto_now=True, null=True)), ('comment', models.TextField(blank=True, null=True)), ('reported_date', models.DateField(blank=True, null=True)), ], options={ 'abstract': False, }, ), ]
50.607143
181
0.566925
440
4,251
5.343182
0.206818
0.10889
0.086772
0.130157
0.775415
0.741812
0.71459
0.710336
0.691195
0.489154
0
0.022244
0.280875
4,251
83
182
51.216867
0.746811
0.010586
0
0.5
1
0
0.10157
0
0
0
0
0
0
1
0
false
0
0.013158
0
0.065789
0
0
0
0
null
0
0
0
0
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
2f04a3d4500aec924d1516e536fedc956e9599cf
158
py
Python
ProblemSolving/CatsandaMouse.py
KunyuHe/Hacker-Rank-Practice
b6ffae26fd5b11e7826b7c8aa4f197399ed3c93e
[ "Apache-2.0" ]
null
null
null
ProblemSolving/CatsandaMouse.py
KunyuHe/Hacker-Rank-Practice
b6ffae26fd5b11e7826b7c8aa4f197399ed3c93e
[ "Apache-2.0" ]
null
null
null
ProblemSolving/CatsandaMouse.py
KunyuHe/Hacker-Rank-Practice
b6ffae26fd5b11e7826b7c8aa4f197399ed3c93e
[ "Apache-2.0" ]
null
null
null
def catAndMouse(x, y, z): if abs(x - z) == abs(y - z): return "Mouse C" if abs(x - z) > abs(y - z): return "Cat B" return "Cat A"
22.571429
32
0.462025
28
158
2.607143
0.464286
0.082192
0.164384
0.191781
0.493151
0.493151
0.493151
0.493151
0
0
0
0
0.360759
158
6
33
26.333333
0.722772
0
0
0
0
0
0.107595
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.666667
0
1
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
4
f94e2888beba1b84684c31a9079e0f2f4a5d8491
215
py
Python
tests/pyccel/project_rel_imports/runtest.py
dina-fouad/pyccel
f4d919e673b400442b9c7b81212b6fbef749c7b7
[ "MIT" ]
206
2018-06-28T00:28:47.000Z
2022-03-29T05:17:03.000Z
tests/pyccel/project_rel_imports/runtest.py
dina-fouad/pyccel
f4d919e673b400442b9c7b81212b6fbef749c7b7
[ "MIT" ]
670
2018-07-23T11:02:24.000Z
2022-03-30T07:28:05.000Z
tests/pyccel/project_rel_imports/runtest.py
dina-fouad/pyccel
f4d919e673b400442b9c7b81212b6fbef749c7b7
[ "MIT" ]
19
2019-09-19T06:01:00.000Z
2022-03-29T05:17:06.000Z
# pylint: disable=missing-function-docstring, missing-module-docstring/ from project.folder2.mod3 import one_hundred_plus_sum_to_n_squared if __name__ == '__main__': print(one_hundred_plus_sum_to_n_squared(4))
35.833333
71
0.823256
32
215
4.90625
0.71875
0.127389
0.178344
0.216561
0.343949
0.343949
0.343949
0
0
0
0
0.015228
0.083721
215
5
72
43
0.781726
0.32093
0
0
0
0
0.055556
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
0.333333
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
f95a8f88fbcf8df742b04026da3993323a6143e7
224
py
Python
codes/callbypackage.py
SanghunOh/lecture_python
52d9c3ee631f226769525056f7e0a37bc38b0bd4
[ "Apache-2.0" ]
null
null
null
codes/callbypackage.py
SanghunOh/lecture_python
52d9c3ee631f226769525056f7e0a37bc38b0bd4
[ "Apache-2.0" ]
null
null
null
codes/callbypackage.py
SanghunOh/lecture_python
52d9c3ee631f226769525056f7e0a37bc38b0bd4
[ "Apache-2.0" ]
null
null
null
from calcuration import AddMinusCal addminuscal = AddMinusCal() addminuscal = AddMinusCal(3, 2) addminuscal.setdata(3,2) addminuscal.add() from calcuration import MultipleDivideCal multipledividecal = MultipleDivideCal()
20.363636
41
0.821429
22
224
8.363636
0.409091
0.478261
0.538043
0.478261
0
0
0
0
0
0
0
0.019901
0.102679
224
10
42
22.4
0.895522
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
f96f96169515c7e1ab8822d692e14fce7a5e162b
107
py
Python
icbd/type_analyzer/tests/boolexprs.py
kmod/icbd
9636564eb3993afa07c6220d589bbd1991923d74
[ "MIT" ]
7
2015-04-06T15:17:13.000Z
2020-10-21T04:57:00.000Z
icbd/type_analyzer/tests/boolexprs.py
kmod/icbd
9636564eb3993afa07c6220d589bbd1991923d74
[ "MIT" ]
null
null
null
icbd/type_analyzer/tests/boolexprs.py
kmod/icbd
9636564eb3993afa07c6220d589bbd1991923d74
[ "MIT" ]
4
2016-05-16T17:53:08.000Z
2020-11-28T17:18:50.000Z
l1 = [1] # 0 [<bool|int>] l2 = [''] # 0 [<bool|str>] l3 = l1 or l2 l3.append(True) l3 # 0 [<bool|int|str>]
17.833333
26
0.504673
21
107
2.571429
0.52381
0.277778
0.296296
0
0
0
0
0
0
0
0
0.129412
0.205607
107
5
27
21.4
0.505882
0.448598
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
f97f8d54476d9bd970739442a977d868c3e5c34e
70
py
Python
genesis/utils/pipeline/data_sources/uclales/__init__.py
leifdenby/genesis
3e4942eac74fb9c69d9b3feedfce5aa745e3bf9c
[ "BSD-3-Clause" ]
2
2019-12-18T15:39:06.000Z
2020-07-16T14:44:38.000Z
genesis/utils/pipeline/data_sources/uclales/__init__.py
leifdenby/genesis
3e4942eac74fb9c69d9b3feedfce5aa745e3bf9c
[ "BSD-3-Clause" ]
2
2019-12-26T11:23:11.000Z
2020-07-22T10:04:45.000Z
genesis/utils/pipeline/data_sources/uclales/__init__.py
leifdenby/genesis
3e4942eac74fb9c69d9b3feedfce5aa745e3bf9c
[ "BSD-3-Clause" ]
1
2019-12-18T16:48:39.000Z
2019-12-18T16:48:39.000Z
from . import tracking_2d # noqa from .base import Extract3D # noqa
23.333333
35
0.742857
10
70
5.1
0.7
0
0
0
0
0
0
0
0
0
0
0.035714
0.2
70
2
36
35
0.875
0.128571
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
f99f244cb26421b434caf36f892ed97aab0171e4
163
py
Python
piebase/tests.py
chaitu210/pietrack
6a4111280da4340c274a6becacd1eb914b8e9c17
[ "MIT" ]
null
null
null
piebase/tests.py
chaitu210/pietrack
6a4111280da4340c274a6becacd1eb914b8e9c17
[ "MIT" ]
7
2020-02-11T22:37:14.000Z
2021-12-13T19:40:44.000Z
piebase/tests.py
chaitu210/pietrack
6a4111280da4340c274a6becacd1eb914b8e9c17
[ "MIT" ]
null
null
null
from django.test import TestCase # Create your tests here. class addtestcase(TestCase): def test_simple_addition(self): self.assertEquals(5, 3 + 2)
18.111111
35
0.717791
22
163
5.227273
0.863636
0
0
0
0
0
0
0
0
0
0
0.022901
0.196319
163
8
36
20.375
0.854962
0.141104
0
0
0
0
0
0
0
0
0
0
0.25
1
0.25
false
0
0.25
0
0.75
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4
f9b829ce29310f1caf005fb25573dbf9459843c5
352
py
Python
foundationsReact/django/founddjango/inputter/models.py
tbone255/foundation
ca76fdd9b5345fead2d200f829eb67ba77bc865e
[ "MIT" ]
null
null
null
foundationsReact/django/founddjango/inputter/models.py
tbone255/foundation
ca76fdd9b5345fead2d200f829eb67ba77bc865e
[ "MIT" ]
null
null
null
foundationsReact/django/founddjango/inputter/models.py
tbone255/foundation
ca76fdd9b5345fead2d200f829eb67ba77bc865e
[ "MIT" ]
null
null
null
from django.db import models from drf import models as custom_models class Inputter(models.Model): title = models.CharField(max_length=50, blank=False, help_text='test', default='') password = custom_models.PasswordField(max_length=50, blank=True, help_text='secret dont ', default='password1') exists = models.BooleanField(default=True)
39.111111
116
0.764205
48
352
5.479167
0.625
0.091255
0.08365
0.121673
0
0
0
0
0
0
0
0.016181
0.122159
352
8
117
44
0.834951
0
0
0
0
0
0.071023
0
0
0
0
0
0
1
0
false
0.166667
0.333333
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
1
0
1
0
0
4
f9bd7966aef3c73a0c113537047d2fc318220830
1,182
py
Python
survos2/server/filtering/base.py
DiamondLightSource/SuRVoS2
42bacfb6a5cc267f38ca1337e51a443eae1a9d2b
[ "MIT" ]
4
2017-10-10T14:47:16.000Z
2022-01-14T05:57:50.000Z
survos2/server/filtering/base.py
DiamondLightSource/SuRVoS2
42bacfb6a5cc267f38ca1337e51a443eae1a9d2b
[ "MIT" ]
1
2022-01-11T21:11:12.000Z
2022-01-12T08:22:34.000Z
survos2/server/filtering/base.py
DiamondLightSource/SuRVoS2
42bacfb6a5cc267f38ca1337e51a443eae1a9d2b
[ "MIT" ]
2
2018-03-06T06:31:29.000Z
2019-03-04T03:33:18.000Z
import math import numbers import numpy as np from skimage.filters import gaussian from skimage import img_as_float from scipy import ndimage from skimage import exposure import torch from torch import nn from torch.nn import functional as F import kornia from loguru import logger def simple_invert(data): """Invert the input image Parameters ---------- data : np.ndarray (D,H,W) Input image Returns ------- np.ndarray (D,H,W) Inverted image """ return 1.0 - data def label(data): return ndimage.label(data) def rescale_denan(img): img = img - np.min(img) img = img / np.max(img) img = np.nan_to_num(img) return img def gamma_adjust(data, gamma=1.0): """Gamma adjust filter using skimage implementation Parameters ---------- data : np.ndarray (D,H,W) Input image gamma : float Gamma Returns ------- np.ndarray Gamma adjusted image """ return np.nan_to_num(exposure.adjust_gamma(data, gamma)) def threshold(img, thresh=0.5): return (img > thresh) * 1.0 def invert_threshold(img, thresh=0.5): return (img < thresh) * 1.0
17.382353
60
0.637056
168
1,182
4.416667
0.333333
0.040431
0.040431
0.044474
0.212938
0.196766
0.196766
0.196766
0.196766
0.09973
0
0.01359
0.252961
1,182
67
61
17.641791
0.826727
0.28088
0
0
0
0
0
0
0
0
0
0
0
1
0.222222
false
0
0.444444
0.111111
0.888889
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
1
1
0
0
4
f9cfff44144f20c794d6ae519ce5f0f96bbca88a
195
py
Python
app.py
clemsonMakerspace/maintenance-manager
b358d59990e19b94b489a4cf5f8fb1befe67ae5e
[ "Apache-2.0" ]
1
2021-01-03T18:40:52.000Z
2021-01-03T18:40:52.000Z
app.py
clemsonMakerspace/maintenance-manager
b358d59990e19b94b489a4cf5f8fb1befe67ae5e
[ "Apache-2.0" ]
null
null
null
app.py
clemsonMakerspace/maintenance-manager
b358d59990e19b94b489a4cf5f8fb1befe67ae5e
[ "Apache-2.0" ]
1
2021-06-06T13:07:07.000Z
2021-06-06T13:07:07.000Z
#!/usr/bin/env python3 from aws_cdk import core from maintenance_app.maintenance_app_stack import MaintenanceAppStack app = core.App() MaintenanceAppStack(app, "maintenance-app") app.synth()
17.727273
69
0.8
26
195
5.846154
0.538462
0.276316
0.223684
0
0
0
0
0
0
0
0
0.005714
0.102564
195
10
70
19.5
0.862857
0.107692
0
0
0
0
0.086705
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
f9e5bbf4cf3fae9921517046529c8d1aa4df4f55
6,514
py
Python
Old Plaindome stuff/Palindome.py
Aenimus/Pythonic-Simulators
d74233e82c66dc814244da14ec24cb477e337926
[ "MIT" ]
1
2020-02-07T13:21:51.000Z
2020-02-07T13:21:51.000Z
Old Plaindome stuff/Palindome.py
Aenimus/Pythonic-Simulators
d74233e82c66dc814244da14ec24cb477e337926
[ "MIT" ]
null
null
null
Old Plaindome stuff/Palindome.py
Aenimus/Pythonic-Simulators
d74233e82c66dc814244da14ec24cb477e337926
[ "MIT" ]
null
null
null
class RedNugget(Encounter): def __init__(self, name = ""): self.name = name def check(self, location, player_state): return not player_state.get_inventory_item("photograph of a red nugget") def run(self, location, player_state): player_state.incr_inventory_item("photograph of a red nugget") location.incr_turns_spent() location.incr_progress() location.reset_pity_timer() location.incr_quest_items() player_state.incr_total_turns_spent() self.add_nc_queue(location) class OstrichEgg(Encounter): def __init__(self, name = ""): self.name = name def check(self, location, player_state): return not player_state.get_inventory_item("photograph of an ostrich egg") def run(self, location, player_state): player_state.incr_inventory_item("photograph of an ostrich egg") location.incr_turns_spent() location.incr_progress() location.reset_pity_timer() location.incr_quest_items() player_state.incr_total_turns_spent() self.add_nc_queue(location) class God(Encounter): def __init__(self, name = ""): self.name = name def check(self, location, player_state): return not player_state.get_inventory_item("photograph of God") def run(self, location, player_state): player_state.incr_inventory_item("photograph of God") location.incr_turns_spent() location.incr_progress() location.reset_pity_timer() location.incr_quest_items() player_state.incr_total_turns_spent() self.add_nc_queue(location) class Combat(Encounter): def run(self, location, player_state): self.add_com_queue(location) location.incr_pity_timer() if self.should_banish: player_state.check_banisher(location, self) if self.should_copy: player_state.check_copier(location, self) if location.get_free_turn(): location.toggle_free_turn() return True location.incr_turns_spent() player_state.incr_total_turns_spent() class DrabBard(Encounter): def check_conditional_drops(self, location, player_state): photo = "photograph of a dog" quest_book = "I Love Me, Vol. I" if (location.get_dudes_fought() == 5) and (player_state.get_inventory_item(quest_book) < 1): player_state.incr_inventory_item(quest_book) location.incr_progress() def run(self, location, player_state): self.add_com_queue(location) location.incr_pity_timer() if self.should_banish: player_state.check_banisher(location, self) if self.should_copy: player_state.check_copier(location, self) if location.get_free_turn(): #This will need to be changed for free kills location.toggle_free_turn() return True location.incr_dudes_fought() self.check_conditional_drops(location, player_state) location.incr_turns_spent() player_state.incr_total_turns_spent() class Bobs(Encounter): def __init__(self, name = "", phylum = None, banisher = False, copy = False): super().__init__(name, phylum, banisher, copy) self.item_drops = { "ketchup hound": 35, "another item": 15 } def check_drops(self, location, player_state): for item in self.item_drops: if random.randrange(100) < (math.floor(self.item_drops.get(item)*player_state.item_mod())): player_state.incr_inventory_item(item) def check_conditional_drops(self, location, player_state): photo = "photograph of a dog" camera = "disposable instant camera" quest_book = "I Love Me, Vol. I" if (player_state.get_inventory_item(camera) or (location.get_dudes_fought() > 7)) and (not player_state.get_inventory_item(photo)): player_state.decr_inventory_item(camera) player_state.incr_inventory_item(photo) location.incr_progress() if (location.get_dudes_fought() == 5) and (not player_state.get_inventory_item(quest_book)): player_state.incr_inventory_item(quest_book) location.incr_progress() def run(self, location, player_state): self.add_com_queue(location) location.incr_pity_timer() if self.should_banish: player_state.check_banisher(location, self) if self.should_copy: player_state.check_copier(location, self) if location.get_free_turn(): #This will need to be changed for free kills location.toggle_free_turn() return True location.incr_dudes_fought() self.check_drops(location, player_state) self.check_conditional_drops(location, player_state) location.incr_turns_spent() player_state.incr_total_turns_spent() def __init__(self): Location.__init__( self, 15, #Native Non-Combat rate of location [ #Superlikelies go here Palindome.QuestSuperlikely("Quest Superlikely") ], [ #NCs go here Palindome.RedNugget("Red Nugget"), Palindome.OstrichEgg("Ostrich Egg"), Palindome.God("God") ], [ #"Combat Name", "Phylum", should_banish, should_sniff Palindome.Combat("Evil Olive", "Beast", True, False), Palindome.Combat("Stab Bat", "Beast", True, False), Palindome.Combat("Taco Cat", "Beast", True, False), Palindome.Combat("Tan Gnat", "Beast", True, False), Palindome.DrabBard("Drab Bard", "Dude", False, True), Palindome.Bobs("Racecar Bob", "Dude", False, True), Palindome.Bobs("Bob Racecar", "Dude", False, True) ], 2 #Number of banishers to commit to the location )
40.209877
143
0.592877
717
6,514
5.075314
0.178522
0.129981
0.078318
0.075845
0.777686
0.700742
0.700742
0.644133
0.623248
0.623248
0
0.00316
0.319773
6,514
161
144
40.459627
0.8181
0.038225
0
0.631579
0
0
0.064238
0
0
0
0
0
0
0
null
null
0
0
null
null
0
0
0
0
null
0
0
0
0
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
4
ddca19a959055b7a2a2df844bfdc96cb9eca62e3
46
py
Python
xero/__init__.py
kgallagher555/pyxero
4b860c1797f8f96856f19dbae3073ee090dfe519
[ "BSD-3-Clause" ]
null
null
null
xero/__init__.py
kgallagher555/pyxero
4b860c1797f8f96856f19dbae3073ee090dfe519
[ "BSD-3-Clause" ]
null
null
null
xero/__init__.py
kgallagher555/pyxero
4b860c1797f8f96856f19dbae3073ee090dfe519
[ "BSD-3-Clause" ]
null
null
null
from .api import Xero __version__ = "0.8.1"
9.2
21
0.673913
8
46
3.375
1
0
0
0
0
0
0
0
0
0
0
0.081081
0.195652
46
4
22
11.5
0.648649
0
0
0
0
0
0.111111
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
ddd539dc79685c0f0965fde64466db65d4634063
37
py
Python
spiral/utils/__init__.py
acdaniells/spiral
d78344007969d7c991216901b4a9d3ad7d768587
[ "BSD-3-Clause" ]
null
null
null
spiral/utils/__init__.py
acdaniells/spiral
d78344007969d7c991216901b4a9d3ad7d768587
[ "BSD-3-Clause" ]
1
2020-04-01T18:39:48.000Z
2020-04-01T18:39:48.000Z
spiral/utils/__init__.py
acdaniells/spiral
d78344007969d7c991216901b4a9d3ad7d768587
[ "BSD-3-Clause" ]
1
2020-04-01T18:36:44.000Z
2020-04-01T18:36:44.000Z
""" Spiral utilities subpackage. """
9.25
28
0.675676
3
37
8.333333
1
0
0
0
0
0
0
0
0
0
0
0
0.135135
37
3
29
12.333333
0.78125
0.756757
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
ddd5833fc2c36dee28f54846e5d1d21613dbe686
207
py
Python
src/myapp/application/ports/api/cast_article_vote/cast_article_vote_command.py
BasicWolf/hexagonal-architecture-django
3bfa4ea2f258ba038c6e3cf73bcdae0511b6fcb6
[ "MIT" ]
15
2021-05-31T12:56:53.000Z
2022-02-06T11:44:40.000Z
src/myapp/application/ports/api/cast_article_vote/cast_article_vote_command.py
BasicWolf/hexagonal-architecture-django
3bfa4ea2f258ba038c6e3cf73bcdae0511b6fcb6
[ "MIT" ]
6
2021-06-08T17:29:47.000Z
2022-03-30T09:41:06.000Z
src/myapp/application/ports/api/cast_article_vote/cast_article_vote_command.py
BasicWolf/hexagonal-architecture-django
3bfa4ea2f258ba038c6e3cf73bcdae0511b6fcb6
[ "MIT" ]
6
2021-06-07T08:26:24.000Z
2022-02-28T11:06:49.000Z
from dataclasses import dataclass from uuid import UUID from myapp.application.domain.model.vote import Vote @dataclass class CastArticleVoteCommand: user_id: UUID article_id: UUID vote: Vote
17.25
52
0.782609
27
207
5.925926
0.555556
0.075
0
0
0
0
0
0
0
0
0
0
0.173913
207
11
53
18.818182
0.935673
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.375
0
0.875
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
ddeb1de06edd2a282192320c8b24934fc89cec95
127
py
Python
python/158.A.py
arechesk/cf
8d2209398f0fc4a73c139f4101634a8ed8c62ff6
[ "BSD-3-Clause" ]
null
null
null
python/158.A.py
arechesk/cf
8d2209398f0fc4a73c139f4101634a8ed8c62ff6
[ "BSD-3-Clause" ]
null
null
null
python/158.A.py
arechesk/cf
8d2209398f0fc4a73c139f4101634a8ed8c62ff6
[ "BSD-3-Clause" ]
null
null
null
n,k=tuple(map(int,input().split())) ar=list(map(int,input().split())) print(len(list(filter(lambda x:x>=ar[k-1] and x>0,ar))))
31.75
56
0.645669
27
127
3.037037
0.62963
0.146341
0.268293
0.390244
0
0
0
0
0
0
0
0.016529
0.047244
127
3
57
42.333333
0.661157
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
1
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
fb0d0a19f5753e7b6a99c7d2d730467ad024be08
445,467
py
Python
sdk/python/pulumi_azure_native/machinelearningservices/v20210301preview/outputs.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/machinelearningservices/v20210301preview/outputs.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/machinelearningservices/v20210301preview/outputs.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities from . import outputs from ._enums import * __all__ = [ 'AKSResponse', 'AKSResponseProperties', 'AccountKeyDatastoreCredentialsResponse', 'AksNetworkingConfigurationResponse', 'AmlComputeNodeInformationResponse', 'AmlComputeResponse', 'AmlComputeResponseProperties', 'AmlTokenResponse', 'AssignedUserResponse', 'AutoPausePropertiesResponse', 'AutoScalePropertiesResponse', 'AutoScaleSettingsResponse', 'AzureBlobContentsResponse', 'AzureDataLakeGen1ContentsResponse', 'AzureDataLakeGen2ContentsResponse', 'AzureFileContentsResponse', 'AzurePostgreSqlContentsResponse', 'AzureSqlDatabaseContentsResponse', 'BanditPolicyResponse', 'BatchDeploymentResponse', 'BatchEndpointResponse', 'BatchOutputConfigurationResponse', 'BatchRetrySettingsResponse', 'CertificateDatastoreCredentialsResponse', 'CodeConfigurationResponse', 'CodeContainerResponse', 'CodeVersionResponse', 'CommandJobResponse', 'ComputeConfigurationResponse', 'ComputeInstanceApplicationResponse', 'ComputeInstanceConnectivityEndpointsResponse', 'ComputeInstanceCreatedByResponse', 'ComputeInstanceLastOperationResponse', 'ComputeInstanceResponse', 'ComputeInstanceResponseProperties', 'ComputeInstanceSshSettingsResponse', 'ComputeSchedulesResponse', 'ComputeStartStopScheduleResponse', 'ContainerResourceRequirementsResponse', 'CosmosDbSettingsResponse', 'CronResponse', 'DataContainerResponse', 'DataFactoryResponse', 'DataLakeAnalyticsResponse', 'DataLakeAnalyticsResponseProperties', 'DataPathAssetReferenceResponse', 'DataVersionResponse', 'DatabricksResponse', 'DatabricksResponseProperties', 'DatastorePropertiesResponse', 'DockerBuildResponse', 'DockerImagePlatformResponse', 'DockerImageResponse', 'EncryptionPropertyResponse', 'EnvironmentContainerResponse', 'EnvironmentSpecificationVersionResponse', 'ErrorAdditionalInfoResponse', 'ErrorDetailResponse', 'ErrorResponseResponse', 'FlavorDataResponse', 'GlusterFsContentsResponse', 'HDInsightResponse', 'HDInsightResponseProperties', 'IdAssetReferenceResponse', 'IdentityForCmkResponse', 'IdentityResponse', 'InferenceContainerPropertiesResponse', 'InputDataBindingResponse', 'JobEndpointResponse', 'JobOutputResponse', 'K8sOnlineDeploymentResponse', 'KeyVaultPropertiesResponse', 'LabelCategoryResponse', 'LabelClassResponse', 'LabelingDatasetConfigurationResponse', 'LabelingJobImagePropertiesResponse', 'LabelingJobInstructionsResponse', 'LabelingJobResponse', 'LabelingJobTextPropertiesResponse', 'LinkedInfoResponse', 'ListNotebookKeysResultResponse', 'MLAssistConfigurationResponse', 'ManagedIdentityResponse', 'ManagedOnlineDeploymentResponse', 'ManualScaleSettingsResponse', 'MedianStoppingPolicyResponse', 'ModelContainerResponse', 'ModelVersionResponse', 'MpiResponse', 'NodeStateCountsResponse', 'NoneDatastoreCredentialsResponse', 'NotebookPreparationErrorResponse', 'NotebookResourceInfoResponse', 'ObjectiveResponse', 'OnlineEndpointResponse', 'OnlineRequestSettingsResponse', 'OutputDataBindingResponse', 'OutputPathAssetReferenceResponse', 'PasswordResponse', 'PersonalComputeInstanceSettingsResponse', 'PrivateEndpointConnectionResponse', 'PrivateEndpointResponse', 'PrivateLinkServiceConnectionStateResponse', 'ProbeSettingsResponse', 'ProgressMetricsResponse', 'PyTorchResponse', 'RecurrenceResponse', 'RecurrenceScheduleResponse', 'RegistryListCredentialsResultResponse', 'ResourceIdResponse', 'ResourceIdentityResponse', 'RouteResponse', 'SasDatastoreCredentialsResponse', 'ScaleSettingsResponse', 'ScriptReferenceResponse', 'ScriptsToExecuteResponse', 'ServiceManagedResourcesSettingsResponse', 'ServicePrincipalDatastoreCredentialsResponse', 'SetupScriptsResponse', 'SharedPrivateLinkResourceResponse', 'SkuResponse', 'SqlAdminDatastoreCredentialsResponse', 'SslConfigurationResponse', 'StatusMessageResponse', 'SweepJobResponse', 'SynapseSparkPoolPropertiesResponseProperties', 'SynapseSparkResponse', 'SystemDataResponse', 'SystemServiceResponse', 'TensorFlowResponse', 'TrialComponentResponse', 'TruncationSelectionPolicyResponse', 'UserAccountCredentialsResponse', 'UserAssignedIdentityMetaResponse', 'UserAssignedIdentityResponse', 'VirtualMachineImageResponse', 'VirtualMachineResponse', 'VirtualMachineResponseProperties', 'VirtualMachineSshCredentialsResponse', ] @pulumi.output_type class AKSResponse(dict): """ A Machine Learning compute based on AKS. """ @staticmethod def __key_warning(key: str): suggest = None if key == "computeType": suggest = "compute_type" elif key == "createdOn": suggest = "created_on" elif key == "isAttachedCompute": suggest = "is_attached_compute" elif key == "modifiedOn": suggest = "modified_on" elif key == "provisioningErrors": suggest = "provisioning_errors" elif key == "provisioningState": suggest = "provisioning_state" elif key == "computeLocation": suggest = "compute_location" elif key == "disableLocalAuth": suggest = "disable_local_auth" elif key == "resourceId": suggest = "resource_id" if suggest: pulumi.log.warn(f"Key '{key}' not found in AKSResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: AKSResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: AKSResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, compute_type: str, created_on: str, is_attached_compute: bool, modified_on: str, provisioning_errors: Sequence['outputs.ErrorResponseResponse'], provisioning_state: str, compute_location: Optional[str] = None, description: Optional[str] = None, disable_local_auth: Optional[bool] = None, properties: Optional['outputs.AKSResponseProperties'] = None, resource_id: Optional[str] = None): """ A Machine Learning compute based on AKS. :param str compute_type: The type of compute Expected value is 'AKS'. :param str created_on: The time at which the compute was created. :param bool is_attached_compute: Indicating whether the compute was provisioned by user and brought from outside if true, or machine learning service provisioned it if false. :param str modified_on: The time at which the compute was last modified. :param Sequence['ErrorResponseResponse'] provisioning_errors: Errors during provisioning :param str provisioning_state: The provision state of the cluster. Valid values are Unknown, Updating, Provisioning, Succeeded, and Failed. :param str compute_location: Location for the underlying compute :param str description: The description of the Machine Learning compute. :param bool disable_local_auth: Opt-out of local authentication and ensure customers can use only MSI and AAD exclusively for authentication. :param 'AKSResponseProperties' properties: AKS properties :param str resource_id: ARM resource id of the underlying compute """ pulumi.set(__self__, "compute_type", 'AKS') pulumi.set(__self__, "created_on", created_on) pulumi.set(__self__, "is_attached_compute", is_attached_compute) pulumi.set(__self__, "modified_on", modified_on) pulumi.set(__self__, "provisioning_errors", provisioning_errors) pulumi.set(__self__, "provisioning_state", provisioning_state) if compute_location is not None: pulumi.set(__self__, "compute_location", compute_location) if description is not None: pulumi.set(__self__, "description", description) if disable_local_auth is not None: pulumi.set(__self__, "disable_local_auth", disable_local_auth) if properties is not None: pulumi.set(__self__, "properties", properties) if resource_id is not None: pulumi.set(__self__, "resource_id", resource_id) @property @pulumi.getter(name="computeType") def compute_type(self) -> str: """ The type of compute Expected value is 'AKS'. """ return pulumi.get(self, "compute_type") @property @pulumi.getter(name="createdOn") def created_on(self) -> str: """ The time at which the compute was created. """ return pulumi.get(self, "created_on") @property @pulumi.getter(name="isAttachedCompute") def is_attached_compute(self) -> bool: """ Indicating whether the compute was provisioned by user and brought from outside if true, or machine learning service provisioned it if false. """ return pulumi.get(self, "is_attached_compute") @property @pulumi.getter(name="modifiedOn") def modified_on(self) -> str: """ The time at which the compute was last modified. """ return pulumi.get(self, "modified_on") @property @pulumi.getter(name="provisioningErrors") def provisioning_errors(self) -> Sequence['outputs.ErrorResponseResponse']: """ Errors during provisioning """ return pulumi.get(self, "provisioning_errors") @property @pulumi.getter(name="provisioningState") def provisioning_state(self) -> str: """ The provision state of the cluster. Valid values are Unknown, Updating, Provisioning, Succeeded, and Failed. """ return pulumi.get(self, "provisioning_state") @property @pulumi.getter(name="computeLocation") def compute_location(self) -> Optional[str]: """ Location for the underlying compute """ return pulumi.get(self, "compute_location") @property @pulumi.getter def description(self) -> Optional[str]: """ The description of the Machine Learning compute. """ return pulumi.get(self, "description") @property @pulumi.getter(name="disableLocalAuth") def disable_local_auth(self) -> Optional[bool]: """ Opt-out of local authentication and ensure customers can use only MSI and AAD exclusively for authentication. """ return pulumi.get(self, "disable_local_auth") @property @pulumi.getter def properties(self) -> Optional['outputs.AKSResponseProperties']: """ AKS properties """ return pulumi.get(self, "properties") @property @pulumi.getter(name="resourceId") def resource_id(self) -> Optional[str]: """ ARM resource id of the underlying compute """ return pulumi.get(self, "resource_id") @pulumi.output_type class AKSResponseProperties(dict): """ AKS properties """ @staticmethod def __key_warning(key: str): suggest = None if key == "systemServices": suggest = "system_services" elif key == "agentCount": suggest = "agent_count" elif key == "agentVmSize": suggest = "agent_vm_size" elif key == "aksNetworkingConfiguration": suggest = "aks_networking_configuration" elif key == "clusterFqdn": suggest = "cluster_fqdn" elif key == "clusterPurpose": suggest = "cluster_purpose" elif key == "loadBalancerSubnet": suggest = "load_balancer_subnet" elif key == "loadBalancerType": suggest = "load_balancer_type" elif key == "sslConfiguration": suggest = "ssl_configuration" if suggest: pulumi.log.warn(f"Key '{key}' not found in AKSResponseProperties. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: AKSResponseProperties.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: AKSResponseProperties.__key_warning(key) return super().get(key, default) def __init__(__self__, *, system_services: Sequence['outputs.SystemServiceResponse'], agent_count: Optional[int] = None, agent_vm_size: Optional[str] = None, aks_networking_configuration: Optional['outputs.AksNetworkingConfigurationResponse'] = None, cluster_fqdn: Optional[str] = None, cluster_purpose: Optional[str] = None, load_balancer_subnet: Optional[str] = None, load_balancer_type: Optional[str] = None, ssl_configuration: Optional['outputs.SslConfigurationResponse'] = None): """ AKS properties :param Sequence['SystemServiceResponse'] system_services: System services :param int agent_count: Number of agents :param str agent_vm_size: Agent virtual machine size :param 'AksNetworkingConfigurationResponse' aks_networking_configuration: AKS networking configuration for vnet :param str cluster_fqdn: Cluster full qualified domain name :param str cluster_purpose: Intended usage of the cluster :param str load_balancer_subnet: Load Balancer Subnet :param str load_balancer_type: Load Balancer Type :param 'SslConfigurationResponse' ssl_configuration: SSL configuration """ pulumi.set(__self__, "system_services", system_services) if agent_count is not None: pulumi.set(__self__, "agent_count", agent_count) if agent_vm_size is not None: pulumi.set(__self__, "agent_vm_size", agent_vm_size) if aks_networking_configuration is not None: pulumi.set(__self__, "aks_networking_configuration", aks_networking_configuration) if cluster_fqdn is not None: pulumi.set(__self__, "cluster_fqdn", cluster_fqdn) if cluster_purpose is None: cluster_purpose = 'FastProd' if cluster_purpose is not None: pulumi.set(__self__, "cluster_purpose", cluster_purpose) if load_balancer_subnet is not None: pulumi.set(__self__, "load_balancer_subnet", load_balancer_subnet) if load_balancer_type is None: load_balancer_type = 'PublicIp' if load_balancer_type is not None: pulumi.set(__self__, "load_balancer_type", load_balancer_type) if ssl_configuration is not None: pulumi.set(__self__, "ssl_configuration", ssl_configuration) @property @pulumi.getter(name="systemServices") def system_services(self) -> Sequence['outputs.SystemServiceResponse']: """ System services """ return pulumi.get(self, "system_services") @property @pulumi.getter(name="agentCount") def agent_count(self) -> Optional[int]: """ Number of agents """ return pulumi.get(self, "agent_count") @property @pulumi.getter(name="agentVmSize") def agent_vm_size(self) -> Optional[str]: """ Agent virtual machine size """ return pulumi.get(self, "agent_vm_size") @property @pulumi.getter(name="aksNetworkingConfiguration") def aks_networking_configuration(self) -> Optional['outputs.AksNetworkingConfigurationResponse']: """ AKS networking configuration for vnet """ return pulumi.get(self, "aks_networking_configuration") @property @pulumi.getter(name="clusterFqdn") def cluster_fqdn(self) -> Optional[str]: """ Cluster full qualified domain name """ return pulumi.get(self, "cluster_fqdn") @property @pulumi.getter(name="clusterPurpose") def cluster_purpose(self) -> Optional[str]: """ Intended usage of the cluster """ return pulumi.get(self, "cluster_purpose") @property @pulumi.getter(name="loadBalancerSubnet") def load_balancer_subnet(self) -> Optional[str]: """ Load Balancer Subnet """ return pulumi.get(self, "load_balancer_subnet") @property @pulumi.getter(name="loadBalancerType") def load_balancer_type(self) -> Optional[str]: """ Load Balancer Type """ return pulumi.get(self, "load_balancer_type") @property @pulumi.getter(name="sslConfiguration") def ssl_configuration(self) -> Optional['outputs.SslConfigurationResponse']: """ SSL configuration """ return pulumi.get(self, "ssl_configuration") @pulumi.output_type class AccountKeyDatastoreCredentialsResponse(dict): """ Account key datastore credentials configuration. """ @staticmethod def __key_warning(key: str): suggest = None if key == "credentialsType": suggest = "credentials_type" if suggest: pulumi.log.warn(f"Key '{key}' not found in AccountKeyDatastoreCredentialsResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: AccountKeyDatastoreCredentialsResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: AccountKeyDatastoreCredentialsResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, credentials_type: str): """ Account key datastore credentials configuration. :param str credentials_type: Enum to determine the datastore credentials type. Expected value is 'AccountKey'. """ pulumi.set(__self__, "credentials_type", 'AccountKey') @property @pulumi.getter(name="credentialsType") def credentials_type(self) -> str: """ Enum to determine the datastore credentials type. Expected value is 'AccountKey'. """ return pulumi.get(self, "credentials_type") @pulumi.output_type class AksNetworkingConfigurationResponse(dict): """ Advance configuration for AKS networking """ @staticmethod def __key_warning(key: str): suggest = None if key == "dnsServiceIP": suggest = "dns_service_ip" elif key == "dockerBridgeCidr": suggest = "docker_bridge_cidr" elif key == "serviceCidr": suggest = "service_cidr" elif key == "subnetId": suggest = "subnet_id" if suggest: pulumi.log.warn(f"Key '{key}' not found in AksNetworkingConfigurationResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: AksNetworkingConfigurationResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: AksNetworkingConfigurationResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, dns_service_ip: Optional[str] = None, docker_bridge_cidr: Optional[str] = None, service_cidr: Optional[str] = None, subnet_id: Optional[str] = None): """ Advance configuration for AKS networking :param str dns_service_ip: An IP address assigned to the Kubernetes DNS service. It must be within the Kubernetes service address range specified in serviceCidr. :param str docker_bridge_cidr: A CIDR notation IP range assigned to the Docker bridge network. It must not overlap with any Subnet IP ranges or the Kubernetes service address range. :param str service_cidr: A CIDR notation IP range from which to assign service cluster IPs. It must not overlap with any Subnet IP ranges. :param str subnet_id: Virtual network subnet resource ID the compute nodes belong to """ if dns_service_ip is not None: pulumi.set(__self__, "dns_service_ip", dns_service_ip) if docker_bridge_cidr is not None: pulumi.set(__self__, "docker_bridge_cidr", docker_bridge_cidr) if service_cidr is not None: pulumi.set(__self__, "service_cidr", service_cidr) if subnet_id is not None: pulumi.set(__self__, "subnet_id", subnet_id) @property @pulumi.getter(name="dnsServiceIP") def dns_service_ip(self) -> Optional[str]: """ An IP address assigned to the Kubernetes DNS service. It must be within the Kubernetes service address range specified in serviceCidr. """ return pulumi.get(self, "dns_service_ip") @property @pulumi.getter(name="dockerBridgeCidr") def docker_bridge_cidr(self) -> Optional[str]: """ A CIDR notation IP range assigned to the Docker bridge network. It must not overlap with any Subnet IP ranges or the Kubernetes service address range. """ return pulumi.get(self, "docker_bridge_cidr") @property @pulumi.getter(name="serviceCidr") def service_cidr(self) -> Optional[str]: """ A CIDR notation IP range from which to assign service cluster IPs. It must not overlap with any Subnet IP ranges. """ return pulumi.get(self, "service_cidr") @property @pulumi.getter(name="subnetId") def subnet_id(self) -> Optional[str]: """ Virtual network subnet resource ID the compute nodes belong to """ return pulumi.get(self, "subnet_id") @pulumi.output_type class AmlComputeNodeInformationResponse(dict): """ Compute node information related to a AmlCompute. """ def __init__(__self__, *, node_id: str, node_state: str, port: float, private_ip_address: str, public_ip_address: str, run_id: str): """ Compute node information related to a AmlCompute. :param str node_id: ID of the compute node. :param str node_state: State of the compute node. Values are idle, running, preparing, unusable, leaving and preempted. :param float port: SSH port number of the node. :param str private_ip_address: Private IP address of the compute node. :param str public_ip_address: Public IP address of the compute node. :param str run_id: ID of the Experiment running on the node, if any else null. """ pulumi.set(__self__, "node_id", node_id) pulumi.set(__self__, "node_state", node_state) pulumi.set(__self__, "port", port) pulumi.set(__self__, "private_ip_address", private_ip_address) pulumi.set(__self__, "public_ip_address", public_ip_address) pulumi.set(__self__, "run_id", run_id) @property @pulumi.getter(name="nodeId") def node_id(self) -> str: """ ID of the compute node. """ return pulumi.get(self, "node_id") @property @pulumi.getter(name="nodeState") def node_state(self) -> str: """ State of the compute node. Values are idle, running, preparing, unusable, leaving and preempted. """ return pulumi.get(self, "node_state") @property @pulumi.getter def port(self) -> float: """ SSH port number of the node. """ return pulumi.get(self, "port") @property @pulumi.getter(name="privateIpAddress") def private_ip_address(self) -> str: """ Private IP address of the compute node. """ return pulumi.get(self, "private_ip_address") @property @pulumi.getter(name="publicIpAddress") def public_ip_address(self) -> str: """ Public IP address of the compute node. """ return pulumi.get(self, "public_ip_address") @property @pulumi.getter(name="runId") def run_id(self) -> str: """ ID of the Experiment running on the node, if any else null. """ return pulumi.get(self, "run_id") @pulumi.output_type class AmlComputeResponse(dict): """ An Azure Machine Learning compute. """ @staticmethod def __key_warning(key: str): suggest = None if key == "computeType": suggest = "compute_type" elif key == "createdOn": suggest = "created_on" elif key == "isAttachedCompute": suggest = "is_attached_compute" elif key == "modifiedOn": suggest = "modified_on" elif key == "provisioningErrors": suggest = "provisioning_errors" elif key == "provisioningState": suggest = "provisioning_state" elif key == "computeLocation": suggest = "compute_location" elif key == "disableLocalAuth": suggest = "disable_local_auth" elif key == "resourceId": suggest = "resource_id" if suggest: pulumi.log.warn(f"Key '{key}' not found in AmlComputeResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: AmlComputeResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: AmlComputeResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, compute_type: str, created_on: str, is_attached_compute: bool, modified_on: str, provisioning_errors: Sequence['outputs.ErrorResponseResponse'], provisioning_state: str, compute_location: Optional[str] = None, description: Optional[str] = None, disable_local_auth: Optional[bool] = None, properties: Optional['outputs.AmlComputeResponseProperties'] = None, resource_id: Optional[str] = None): """ An Azure Machine Learning compute. :param str compute_type: The type of compute Expected value is 'AmlCompute'. :param str created_on: The time at which the compute was created. :param bool is_attached_compute: Indicating whether the compute was provisioned by user and brought from outside if true, or machine learning service provisioned it if false. :param str modified_on: The time at which the compute was last modified. :param Sequence['ErrorResponseResponse'] provisioning_errors: Errors during provisioning :param str provisioning_state: The provision state of the cluster. Valid values are Unknown, Updating, Provisioning, Succeeded, and Failed. :param str compute_location: Location for the underlying compute :param str description: The description of the Machine Learning compute. :param bool disable_local_auth: Opt-out of local authentication and ensure customers can use only MSI and AAD exclusively for authentication. :param 'AmlComputeResponseProperties' properties: AML Compute properties :param str resource_id: ARM resource id of the underlying compute """ pulumi.set(__self__, "compute_type", 'AmlCompute') pulumi.set(__self__, "created_on", created_on) pulumi.set(__self__, "is_attached_compute", is_attached_compute) pulumi.set(__self__, "modified_on", modified_on) pulumi.set(__self__, "provisioning_errors", provisioning_errors) pulumi.set(__self__, "provisioning_state", provisioning_state) if compute_location is not None: pulumi.set(__self__, "compute_location", compute_location) if description is not None: pulumi.set(__self__, "description", description) if disable_local_auth is not None: pulumi.set(__self__, "disable_local_auth", disable_local_auth) if properties is not None: pulumi.set(__self__, "properties", properties) if resource_id is not None: pulumi.set(__self__, "resource_id", resource_id) @property @pulumi.getter(name="computeType") def compute_type(self) -> str: """ The type of compute Expected value is 'AmlCompute'. """ return pulumi.get(self, "compute_type") @property @pulumi.getter(name="createdOn") def created_on(self) -> str: """ The time at which the compute was created. """ return pulumi.get(self, "created_on") @property @pulumi.getter(name="isAttachedCompute") def is_attached_compute(self) -> bool: """ Indicating whether the compute was provisioned by user and brought from outside if true, or machine learning service provisioned it if false. """ return pulumi.get(self, "is_attached_compute") @property @pulumi.getter(name="modifiedOn") def modified_on(self) -> str: """ The time at which the compute was last modified. """ return pulumi.get(self, "modified_on") @property @pulumi.getter(name="provisioningErrors") def provisioning_errors(self) -> Sequence['outputs.ErrorResponseResponse']: """ Errors during provisioning """ return pulumi.get(self, "provisioning_errors") @property @pulumi.getter(name="provisioningState") def provisioning_state(self) -> str: """ The provision state of the cluster. Valid values are Unknown, Updating, Provisioning, Succeeded, and Failed. """ return pulumi.get(self, "provisioning_state") @property @pulumi.getter(name="computeLocation") def compute_location(self) -> Optional[str]: """ Location for the underlying compute """ return pulumi.get(self, "compute_location") @property @pulumi.getter def description(self) -> Optional[str]: """ The description of the Machine Learning compute. """ return pulumi.get(self, "description") @property @pulumi.getter(name="disableLocalAuth") def disable_local_auth(self) -> Optional[bool]: """ Opt-out of local authentication and ensure customers can use only MSI and AAD exclusively for authentication. """ return pulumi.get(self, "disable_local_auth") @property @pulumi.getter def properties(self) -> Optional['outputs.AmlComputeResponseProperties']: """ AML Compute properties """ return pulumi.get(self, "properties") @property @pulumi.getter(name="resourceId") def resource_id(self) -> Optional[str]: """ ARM resource id of the underlying compute """ return pulumi.get(self, "resource_id") @pulumi.output_type class AmlComputeResponseProperties(dict): """ AML Compute properties """ @staticmethod def __key_warning(key: str): suggest = None if key == "allocationState": suggest = "allocation_state" elif key == "allocationStateTransitionTime": suggest = "allocation_state_transition_time" elif key == "currentNodeCount": suggest = "current_node_count" elif key == "nodeStateCounts": suggest = "node_state_counts" elif key == "targetNodeCount": suggest = "target_node_count" elif key == "enableNodePublicIp": suggest = "enable_node_public_ip" elif key == "isolatedNetwork": suggest = "isolated_network" elif key == "osType": suggest = "os_type" elif key == "remoteLoginPortPublicAccess": suggest = "remote_login_port_public_access" elif key == "scaleSettings": suggest = "scale_settings" elif key == "userAccountCredentials": suggest = "user_account_credentials" elif key == "virtualMachineImage": suggest = "virtual_machine_image" elif key == "vmPriority": suggest = "vm_priority" elif key == "vmSize": suggest = "vm_size" if suggest: pulumi.log.warn(f"Key '{key}' not found in AmlComputeResponseProperties. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: AmlComputeResponseProperties.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: AmlComputeResponseProperties.__key_warning(key) return super().get(key, default) def __init__(__self__, *, allocation_state: str, allocation_state_transition_time: str, current_node_count: int, errors: Sequence['outputs.ErrorResponseResponse'], node_state_counts: 'outputs.NodeStateCountsResponse', target_node_count: int, enable_node_public_ip: Optional[bool] = None, isolated_network: Optional[bool] = None, os_type: Optional[str] = None, remote_login_port_public_access: Optional[str] = None, scale_settings: Optional['outputs.ScaleSettingsResponse'] = None, subnet: Optional['outputs.ResourceIdResponse'] = None, user_account_credentials: Optional['outputs.UserAccountCredentialsResponse'] = None, virtual_machine_image: Optional['outputs.VirtualMachineImageResponse'] = None, vm_priority: Optional[str] = None, vm_size: Optional[str] = None): """ AML Compute properties :param str allocation_state: Allocation state of the compute. Possible values are: steady - Indicates that the compute is not resizing. There are no changes to the number of compute nodes in the compute in progress. A compute enters this state when it is created and when no operations are being performed on the compute to change the number of compute nodes. resizing - Indicates that the compute is resizing; that is, compute nodes are being added to or removed from the compute. :param str allocation_state_transition_time: The time at which the compute entered its current allocation state. :param int current_node_count: The number of compute nodes currently assigned to the compute. :param Sequence['ErrorResponseResponse'] errors: Collection of errors encountered by various compute nodes during node setup. :param 'NodeStateCountsResponse' node_state_counts: Counts of various node states on the compute. :param int target_node_count: The target number of compute nodes for the compute. If the allocationState is resizing, this property denotes the target node count for the ongoing resize operation. If the allocationState is steady, this property denotes the target node count for the previous resize operation. :param bool enable_node_public_ip: Enable or disable node public IP address provisioning. Possible values are: Possible values are: true - Indicates that the compute nodes will have public IPs provisioned. false - Indicates that the compute nodes will have a private endpoint and no public IPs. :param bool isolated_network: Network is isolated or not :param str os_type: Compute OS Type :param str remote_login_port_public_access: State of the public SSH port. Possible values are: Disabled - Indicates that the public ssh port is closed on all nodes of the cluster. Enabled - Indicates that the public ssh port is open on all nodes of the cluster. NotSpecified - Indicates that the public ssh port is closed on all nodes of the cluster if VNet is defined, else is open all public nodes. It can be default only during cluster creation time, after creation it will be either enabled or disabled. :param 'ScaleSettingsResponse' scale_settings: Scale settings for AML Compute :param 'ResourceIdResponse' subnet: Virtual network subnet resource ID the compute nodes belong to. :param 'UserAccountCredentialsResponse' user_account_credentials: Credentials for an administrator user account that will be created on each compute node. :param 'VirtualMachineImageResponse' virtual_machine_image: Virtual Machine image for AML Compute - windows only :param str vm_priority: Virtual Machine priority :param str vm_size: Virtual Machine Size """ pulumi.set(__self__, "allocation_state", allocation_state) pulumi.set(__self__, "allocation_state_transition_time", allocation_state_transition_time) pulumi.set(__self__, "current_node_count", current_node_count) pulumi.set(__self__, "errors", errors) pulumi.set(__self__, "node_state_counts", node_state_counts) pulumi.set(__self__, "target_node_count", target_node_count) if enable_node_public_ip is None: enable_node_public_ip = True if enable_node_public_ip is not None: pulumi.set(__self__, "enable_node_public_ip", enable_node_public_ip) if isolated_network is not None: pulumi.set(__self__, "isolated_network", isolated_network) if os_type is None: os_type = 'Linux' if os_type is not None: pulumi.set(__self__, "os_type", os_type) if remote_login_port_public_access is None: remote_login_port_public_access = 'NotSpecified' if remote_login_port_public_access is not None: pulumi.set(__self__, "remote_login_port_public_access", remote_login_port_public_access) if scale_settings is not None: pulumi.set(__self__, "scale_settings", scale_settings) if subnet is not None: pulumi.set(__self__, "subnet", subnet) if user_account_credentials is not None: pulumi.set(__self__, "user_account_credentials", user_account_credentials) if virtual_machine_image is not None: pulumi.set(__self__, "virtual_machine_image", virtual_machine_image) if vm_priority is not None: pulumi.set(__self__, "vm_priority", vm_priority) if vm_size is not None: pulumi.set(__self__, "vm_size", vm_size) @property @pulumi.getter(name="allocationState") def allocation_state(self) -> str: """ Allocation state of the compute. Possible values are: steady - Indicates that the compute is not resizing. There are no changes to the number of compute nodes in the compute in progress. A compute enters this state when it is created and when no operations are being performed on the compute to change the number of compute nodes. resizing - Indicates that the compute is resizing; that is, compute nodes are being added to or removed from the compute. """ return pulumi.get(self, "allocation_state") @property @pulumi.getter(name="allocationStateTransitionTime") def allocation_state_transition_time(self) -> str: """ The time at which the compute entered its current allocation state. """ return pulumi.get(self, "allocation_state_transition_time") @property @pulumi.getter(name="currentNodeCount") def current_node_count(self) -> int: """ The number of compute nodes currently assigned to the compute. """ return pulumi.get(self, "current_node_count") @property @pulumi.getter def errors(self) -> Sequence['outputs.ErrorResponseResponse']: """ Collection of errors encountered by various compute nodes during node setup. """ return pulumi.get(self, "errors") @property @pulumi.getter(name="nodeStateCounts") def node_state_counts(self) -> 'outputs.NodeStateCountsResponse': """ Counts of various node states on the compute. """ return pulumi.get(self, "node_state_counts") @property @pulumi.getter(name="targetNodeCount") def target_node_count(self) -> int: """ The target number of compute nodes for the compute. If the allocationState is resizing, this property denotes the target node count for the ongoing resize operation. If the allocationState is steady, this property denotes the target node count for the previous resize operation. """ return pulumi.get(self, "target_node_count") @property @pulumi.getter(name="enableNodePublicIp") def enable_node_public_ip(self) -> Optional[bool]: """ Enable or disable node public IP address provisioning. Possible values are: Possible values are: true - Indicates that the compute nodes will have public IPs provisioned. false - Indicates that the compute nodes will have a private endpoint and no public IPs. """ return pulumi.get(self, "enable_node_public_ip") @property @pulumi.getter(name="isolatedNetwork") def isolated_network(self) -> Optional[bool]: """ Network is isolated or not """ return pulumi.get(self, "isolated_network") @property @pulumi.getter(name="osType") def os_type(self) -> Optional[str]: """ Compute OS Type """ return pulumi.get(self, "os_type") @property @pulumi.getter(name="remoteLoginPortPublicAccess") def remote_login_port_public_access(self) -> Optional[str]: """ State of the public SSH port. Possible values are: Disabled - Indicates that the public ssh port is closed on all nodes of the cluster. Enabled - Indicates that the public ssh port is open on all nodes of the cluster. NotSpecified - Indicates that the public ssh port is closed on all nodes of the cluster if VNet is defined, else is open all public nodes. It can be default only during cluster creation time, after creation it will be either enabled or disabled. """ return pulumi.get(self, "remote_login_port_public_access") @property @pulumi.getter(name="scaleSettings") def scale_settings(self) -> Optional['outputs.ScaleSettingsResponse']: """ Scale settings for AML Compute """ return pulumi.get(self, "scale_settings") @property @pulumi.getter def subnet(self) -> Optional['outputs.ResourceIdResponse']: """ Virtual network subnet resource ID the compute nodes belong to. """ return pulumi.get(self, "subnet") @property @pulumi.getter(name="userAccountCredentials") def user_account_credentials(self) -> Optional['outputs.UserAccountCredentialsResponse']: """ Credentials for an administrator user account that will be created on each compute node. """ return pulumi.get(self, "user_account_credentials") @property @pulumi.getter(name="virtualMachineImage") def virtual_machine_image(self) -> Optional['outputs.VirtualMachineImageResponse']: """ Virtual Machine image for AML Compute - windows only """ return pulumi.get(self, "virtual_machine_image") @property @pulumi.getter(name="vmPriority") def vm_priority(self) -> Optional[str]: """ Virtual Machine priority """ return pulumi.get(self, "vm_priority") @property @pulumi.getter(name="vmSize") def vm_size(self) -> Optional[str]: """ Virtual Machine Size """ return pulumi.get(self, "vm_size") @pulumi.output_type class AmlTokenResponse(dict): """ AML Token identity configuration. """ @staticmethod def __key_warning(key: str): suggest = None if key == "identityType": suggest = "identity_type" if suggest: pulumi.log.warn(f"Key '{key}' not found in AmlTokenResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: AmlTokenResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: AmlTokenResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, identity_type: str): """ AML Token identity configuration. :param str identity_type: Enum to determine identity framework. Expected value is 'AMLToken'. """ pulumi.set(__self__, "identity_type", 'AMLToken') @property @pulumi.getter(name="identityType") def identity_type(self) -> str: """ Enum to determine identity framework. Expected value is 'AMLToken'. """ return pulumi.get(self, "identity_type") @pulumi.output_type class AssignedUserResponse(dict): """ A user that can be assigned to a compute instance. """ @staticmethod def __key_warning(key: str): suggest = None if key == "objectId": suggest = "object_id" elif key == "tenantId": suggest = "tenant_id" if suggest: pulumi.log.warn(f"Key '{key}' not found in AssignedUserResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: AssignedUserResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: AssignedUserResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, object_id: str, tenant_id: str): """ A user that can be assigned to a compute instance. :param str object_id: User’s AAD Object Id. :param str tenant_id: User’s AAD Tenant Id. """ pulumi.set(__self__, "object_id", object_id) pulumi.set(__self__, "tenant_id", tenant_id) @property @pulumi.getter(name="objectId") def object_id(self) -> str: """ User’s AAD Object Id. """ return pulumi.get(self, "object_id") @property @pulumi.getter(name="tenantId") def tenant_id(self) -> str: """ User’s AAD Tenant Id. """ return pulumi.get(self, "tenant_id") @pulumi.output_type class AutoPausePropertiesResponse(dict): """ Auto pause properties """ @staticmethod def __key_warning(key: str): suggest = None if key == "delayInMinutes": suggest = "delay_in_minutes" if suggest: pulumi.log.warn(f"Key '{key}' not found in AutoPausePropertiesResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: AutoPausePropertiesResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: AutoPausePropertiesResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, delay_in_minutes: Optional[int] = None, enabled: Optional[bool] = None): """ Auto pause properties """ if delay_in_minutes is not None: pulumi.set(__self__, "delay_in_minutes", delay_in_minutes) if enabled is not None: pulumi.set(__self__, "enabled", enabled) @property @pulumi.getter(name="delayInMinutes") def delay_in_minutes(self) -> Optional[int]: return pulumi.get(self, "delay_in_minutes") @property @pulumi.getter def enabled(self) -> Optional[bool]: return pulumi.get(self, "enabled") @pulumi.output_type class AutoScalePropertiesResponse(dict): """ Auto scale properties """ @staticmethod def __key_warning(key: str): suggest = None if key == "maxNodeCount": suggest = "max_node_count" elif key == "minNodeCount": suggest = "min_node_count" if suggest: pulumi.log.warn(f"Key '{key}' not found in AutoScalePropertiesResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: AutoScalePropertiesResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: AutoScalePropertiesResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, enabled: Optional[bool] = None, max_node_count: Optional[int] = None, min_node_count: Optional[int] = None): """ Auto scale properties """ if enabled is not None: pulumi.set(__self__, "enabled", enabled) if max_node_count is not None: pulumi.set(__self__, "max_node_count", max_node_count) if min_node_count is not None: pulumi.set(__self__, "min_node_count", min_node_count) @property @pulumi.getter def enabled(self) -> Optional[bool]: return pulumi.get(self, "enabled") @property @pulumi.getter(name="maxNodeCount") def max_node_count(self) -> Optional[int]: return pulumi.get(self, "max_node_count") @property @pulumi.getter(name="minNodeCount") def min_node_count(self) -> Optional[int]: return pulumi.get(self, "min_node_count") @pulumi.output_type class AutoScaleSettingsResponse(dict): @staticmethod def __key_warning(key: str): suggest = None if key == "scaleType": suggest = "scale_type" elif key == "maxInstances": suggest = "max_instances" elif key == "minInstances": suggest = "min_instances" elif key == "pollingInterval": suggest = "polling_interval" elif key == "targetUtilizationPercentage": suggest = "target_utilization_percentage" if suggest: pulumi.log.warn(f"Key '{key}' not found in AutoScaleSettingsResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: AutoScaleSettingsResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: AutoScaleSettingsResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, scale_type: str, max_instances: Optional[int] = None, min_instances: Optional[int] = None, polling_interval: Optional[str] = None, target_utilization_percentage: Optional[int] = None): """ :param str scale_type: Expected value is 'Auto'. :param int max_instances: Maximum number of instances for this deployment. :param int min_instances: Minimum number of instances for this deployment. :param str polling_interval: The polling interval in ISO 8691 format. Only supports duration with precision as low as Seconds. :param int target_utilization_percentage: Target CPU usage for the autoscaler. """ pulumi.set(__self__, "scale_type", 'Auto') if max_instances is not None: pulumi.set(__self__, "max_instances", max_instances) if min_instances is not None: pulumi.set(__self__, "min_instances", min_instances) if polling_interval is not None: pulumi.set(__self__, "polling_interval", polling_interval) if target_utilization_percentage is not None: pulumi.set(__self__, "target_utilization_percentage", target_utilization_percentage) @property @pulumi.getter(name="scaleType") def scale_type(self) -> str: """ Expected value is 'Auto'. """ return pulumi.get(self, "scale_type") @property @pulumi.getter(name="maxInstances") def max_instances(self) -> Optional[int]: """ Maximum number of instances for this deployment. """ return pulumi.get(self, "max_instances") @property @pulumi.getter(name="minInstances") def min_instances(self) -> Optional[int]: """ Minimum number of instances for this deployment. """ return pulumi.get(self, "min_instances") @property @pulumi.getter(name="pollingInterval") def polling_interval(self) -> Optional[str]: """ The polling interval in ISO 8691 format. Only supports duration with precision as low as Seconds. """ return pulumi.get(self, "polling_interval") @property @pulumi.getter(name="targetUtilizationPercentage") def target_utilization_percentage(self) -> Optional[int]: """ Target CPU usage for the autoscaler. """ return pulumi.get(self, "target_utilization_percentage") @pulumi.output_type class AzureBlobContentsResponse(dict): """ Azure Blob datastore configuration. """ @staticmethod def __key_warning(key: str): suggest = None if key == "accountName": suggest = "account_name" elif key == "containerName": suggest = "container_name" elif key == "contentsType": suggest = "contents_type" if suggest: pulumi.log.warn(f"Key '{key}' not found in AzureBlobContentsResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: AzureBlobContentsResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: AzureBlobContentsResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, account_name: str, container_name: str, contents_type: str, credentials: Any, endpoint: str, protocol: str): """ Azure Blob datastore configuration. :param str account_name: Storage account name. :param str container_name: Storage account container name. :param str contents_type: Enum to determine the datastore contents type. Expected value is 'AzureBlob'. :param Union['AccountKeyDatastoreCredentialsResponse', 'CertificateDatastoreCredentialsResponse', 'NoneDatastoreCredentialsResponse', 'SasDatastoreCredentialsResponse', 'ServicePrincipalDatastoreCredentialsResponse', 'SqlAdminDatastoreCredentialsResponse'] credentials: Account credentials. :param str endpoint: Azure cloud endpoint for the storage account. :param str protocol: Protocol used to communicate with the storage account. """ pulumi.set(__self__, "account_name", account_name) pulumi.set(__self__, "container_name", container_name) pulumi.set(__self__, "contents_type", 'AzureBlob') pulumi.set(__self__, "credentials", credentials) pulumi.set(__self__, "endpoint", endpoint) pulumi.set(__self__, "protocol", protocol) @property @pulumi.getter(name="accountName") def account_name(self) -> str: """ Storage account name. """ return pulumi.get(self, "account_name") @property @pulumi.getter(name="containerName") def container_name(self) -> str: """ Storage account container name. """ return pulumi.get(self, "container_name") @property @pulumi.getter(name="contentsType") def contents_type(self) -> str: """ Enum to determine the datastore contents type. Expected value is 'AzureBlob'. """ return pulumi.get(self, "contents_type") @property @pulumi.getter def credentials(self) -> Any: """ Account credentials. """ return pulumi.get(self, "credentials") @property @pulumi.getter def endpoint(self) -> str: """ Azure cloud endpoint for the storage account. """ return pulumi.get(self, "endpoint") @property @pulumi.getter def protocol(self) -> str: """ Protocol used to communicate with the storage account. """ return pulumi.get(self, "protocol") @pulumi.output_type class AzureDataLakeGen1ContentsResponse(dict): """ Azure Data Lake Gen1 datastore configuration. """ @staticmethod def __key_warning(key: str): suggest = None if key == "contentsType": suggest = "contents_type" elif key == "storeName": suggest = "store_name" if suggest: pulumi.log.warn(f"Key '{key}' not found in AzureDataLakeGen1ContentsResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: AzureDataLakeGen1ContentsResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: AzureDataLakeGen1ContentsResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, contents_type: str, credentials: Any, store_name: str): """ Azure Data Lake Gen1 datastore configuration. :param str contents_type: Enum to determine the datastore contents type. Expected value is 'AzureDataLakeGen1'. :param Union['AccountKeyDatastoreCredentialsResponse', 'CertificateDatastoreCredentialsResponse', 'NoneDatastoreCredentialsResponse', 'SasDatastoreCredentialsResponse', 'ServicePrincipalDatastoreCredentialsResponse', 'SqlAdminDatastoreCredentialsResponse'] credentials: Account credentials. :param str store_name: Azure Data Lake store name. """ pulumi.set(__self__, "contents_type", 'AzureDataLakeGen1') pulumi.set(__self__, "credentials", credentials) pulumi.set(__self__, "store_name", store_name) @property @pulumi.getter(name="contentsType") def contents_type(self) -> str: """ Enum to determine the datastore contents type. Expected value is 'AzureDataLakeGen1'. """ return pulumi.get(self, "contents_type") @property @pulumi.getter def credentials(self) -> Any: """ Account credentials. """ return pulumi.get(self, "credentials") @property @pulumi.getter(name="storeName") def store_name(self) -> str: """ Azure Data Lake store name. """ return pulumi.get(self, "store_name") @pulumi.output_type class AzureDataLakeGen2ContentsResponse(dict): """ Azure Data Lake Gen2 datastore configuration. """ @staticmethod def __key_warning(key: str): suggest = None if key == "accountName": suggest = "account_name" elif key == "containerName": suggest = "container_name" elif key == "contentsType": suggest = "contents_type" if suggest: pulumi.log.warn(f"Key '{key}' not found in AzureDataLakeGen2ContentsResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: AzureDataLakeGen2ContentsResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: AzureDataLakeGen2ContentsResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, account_name: str, container_name: str, contents_type: str, credentials: Any, endpoint: str, protocol: str): """ Azure Data Lake Gen2 datastore configuration. :param str account_name: Storage account name. :param str container_name: Storage account container name. :param str contents_type: Enum to determine the datastore contents type. Expected value is 'AzureDataLakeGen2'. :param Union['AccountKeyDatastoreCredentialsResponse', 'CertificateDatastoreCredentialsResponse', 'NoneDatastoreCredentialsResponse', 'SasDatastoreCredentialsResponse', 'ServicePrincipalDatastoreCredentialsResponse', 'SqlAdminDatastoreCredentialsResponse'] credentials: Account credentials. :param str endpoint: Azure cloud endpoint for the storage account. :param str protocol: Protocol used to communicate with the storage account. """ pulumi.set(__self__, "account_name", account_name) pulumi.set(__self__, "container_name", container_name) pulumi.set(__self__, "contents_type", 'AzureDataLakeGen2') pulumi.set(__self__, "credentials", credentials) pulumi.set(__self__, "endpoint", endpoint) pulumi.set(__self__, "protocol", protocol) @property @pulumi.getter(name="accountName") def account_name(self) -> str: """ Storage account name. """ return pulumi.get(self, "account_name") @property @pulumi.getter(name="containerName") def container_name(self) -> str: """ Storage account container name. """ return pulumi.get(self, "container_name") @property @pulumi.getter(name="contentsType") def contents_type(self) -> str: """ Enum to determine the datastore contents type. Expected value is 'AzureDataLakeGen2'. """ return pulumi.get(self, "contents_type") @property @pulumi.getter def credentials(self) -> Any: """ Account credentials. """ return pulumi.get(self, "credentials") @property @pulumi.getter def endpoint(self) -> str: """ Azure cloud endpoint for the storage account. """ return pulumi.get(self, "endpoint") @property @pulumi.getter def protocol(self) -> str: """ Protocol used to communicate with the storage account. """ return pulumi.get(self, "protocol") @pulumi.output_type class AzureFileContentsResponse(dict): """ Azure File datastore configuration. """ @staticmethod def __key_warning(key: str): suggest = None if key == "accountName": suggest = "account_name" elif key == "containerName": suggest = "container_name" elif key == "contentsType": suggest = "contents_type" if suggest: pulumi.log.warn(f"Key '{key}' not found in AzureFileContentsResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: AzureFileContentsResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: AzureFileContentsResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, account_name: str, container_name: str, contents_type: str, credentials: Any, endpoint: str, protocol: str): """ Azure File datastore configuration. :param str account_name: Storage account name. :param str container_name: Storage account container name. :param str contents_type: Enum to determine the datastore contents type. Expected value is 'AzureFile'. :param Union['AccountKeyDatastoreCredentialsResponse', 'CertificateDatastoreCredentialsResponse', 'NoneDatastoreCredentialsResponse', 'SasDatastoreCredentialsResponse', 'ServicePrincipalDatastoreCredentialsResponse', 'SqlAdminDatastoreCredentialsResponse'] credentials: Account credentials. :param str endpoint: Azure cloud endpoint for the storage account. :param str protocol: Protocol used to communicate with the storage account. """ pulumi.set(__self__, "account_name", account_name) pulumi.set(__self__, "container_name", container_name) pulumi.set(__self__, "contents_type", 'AzureFile') pulumi.set(__self__, "credentials", credentials) pulumi.set(__self__, "endpoint", endpoint) pulumi.set(__self__, "protocol", protocol) @property @pulumi.getter(name="accountName") def account_name(self) -> str: """ Storage account name. """ return pulumi.get(self, "account_name") @property @pulumi.getter(name="containerName") def container_name(self) -> str: """ Storage account container name. """ return pulumi.get(self, "container_name") @property @pulumi.getter(name="contentsType") def contents_type(self) -> str: """ Enum to determine the datastore contents type. Expected value is 'AzureFile'. """ return pulumi.get(self, "contents_type") @property @pulumi.getter def credentials(self) -> Any: """ Account credentials. """ return pulumi.get(self, "credentials") @property @pulumi.getter def endpoint(self) -> str: """ Azure cloud endpoint for the storage account. """ return pulumi.get(self, "endpoint") @property @pulumi.getter def protocol(self) -> str: """ Protocol used to communicate with the storage account. """ return pulumi.get(self, "protocol") @pulumi.output_type class AzurePostgreSqlContentsResponse(dict): """ Azure Postgre SQL datastore configuration. """ @staticmethod def __key_warning(key: str): suggest = None if key == "contentsType": suggest = "contents_type" elif key == "databaseName": suggest = "database_name" elif key == "portNumber": suggest = "port_number" elif key == "serverName": suggest = "server_name" elif key == "enableSSL": suggest = "enable_ssl" if suggest: pulumi.log.warn(f"Key '{key}' not found in AzurePostgreSqlContentsResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: AzurePostgreSqlContentsResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: AzurePostgreSqlContentsResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, contents_type: str, credentials: Any, database_name: str, endpoint: str, port_number: int, server_name: str, enable_ssl: Optional[bool] = None): """ Azure Postgre SQL datastore configuration. :param str contents_type: Enum to determine the datastore contents type. Expected value is 'AzurePostgreSql'. :param Union['AccountKeyDatastoreCredentialsResponse', 'CertificateDatastoreCredentialsResponse', 'NoneDatastoreCredentialsResponse', 'SasDatastoreCredentialsResponse', 'ServicePrincipalDatastoreCredentialsResponse', 'SqlAdminDatastoreCredentialsResponse'] credentials: Account credentials. :param str database_name: Azure SQL database name. :param str endpoint: Azure cloud endpoint for the database. :param int port_number: Azure SQL server port. :param str server_name: Azure SQL server name. :param bool enable_ssl: Whether the Azure PostgreSQL server requires SSL. """ pulumi.set(__self__, "contents_type", 'AzurePostgreSql') pulumi.set(__self__, "credentials", credentials) pulumi.set(__self__, "database_name", database_name) pulumi.set(__self__, "endpoint", endpoint) pulumi.set(__self__, "port_number", port_number) pulumi.set(__self__, "server_name", server_name) if enable_ssl is not None: pulumi.set(__self__, "enable_ssl", enable_ssl) @property @pulumi.getter(name="contentsType") def contents_type(self) -> str: """ Enum to determine the datastore contents type. Expected value is 'AzurePostgreSql'. """ return pulumi.get(self, "contents_type") @property @pulumi.getter def credentials(self) -> Any: """ Account credentials. """ return pulumi.get(self, "credentials") @property @pulumi.getter(name="databaseName") def database_name(self) -> str: """ Azure SQL database name. """ return pulumi.get(self, "database_name") @property @pulumi.getter def endpoint(self) -> str: """ Azure cloud endpoint for the database. """ return pulumi.get(self, "endpoint") @property @pulumi.getter(name="portNumber") def port_number(self) -> int: """ Azure SQL server port. """ return pulumi.get(self, "port_number") @property @pulumi.getter(name="serverName") def server_name(self) -> str: """ Azure SQL server name. """ return pulumi.get(self, "server_name") @property @pulumi.getter(name="enableSSL") def enable_ssl(self) -> Optional[bool]: """ Whether the Azure PostgreSQL server requires SSL. """ return pulumi.get(self, "enable_ssl") @pulumi.output_type class AzureSqlDatabaseContentsResponse(dict): """ Azure SQL Database datastore configuration. """ @staticmethod def __key_warning(key: str): suggest = None if key == "contentsType": suggest = "contents_type" elif key == "databaseName": suggest = "database_name" elif key == "portNumber": suggest = "port_number" elif key == "serverName": suggest = "server_name" if suggest: pulumi.log.warn(f"Key '{key}' not found in AzureSqlDatabaseContentsResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: AzureSqlDatabaseContentsResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: AzureSqlDatabaseContentsResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, contents_type: str, credentials: Any, database_name: str, endpoint: str, port_number: int, server_name: str): """ Azure SQL Database datastore configuration. :param str contents_type: Enum to determine the datastore contents type. Expected value is 'AzureSqlDatabase'. :param Union['AccountKeyDatastoreCredentialsResponse', 'CertificateDatastoreCredentialsResponse', 'NoneDatastoreCredentialsResponse', 'SasDatastoreCredentialsResponse', 'ServicePrincipalDatastoreCredentialsResponse', 'SqlAdminDatastoreCredentialsResponse'] credentials: Account credentials. :param str database_name: Azure SQL database name. :param str endpoint: Azure cloud endpoint for the database. :param int port_number: Azure SQL server port. :param str server_name: Azure SQL server name. """ pulumi.set(__self__, "contents_type", 'AzureSqlDatabase') pulumi.set(__self__, "credentials", credentials) pulumi.set(__self__, "database_name", database_name) pulumi.set(__self__, "endpoint", endpoint) pulumi.set(__self__, "port_number", port_number) pulumi.set(__self__, "server_name", server_name) @property @pulumi.getter(name="contentsType") def contents_type(self) -> str: """ Enum to determine the datastore contents type. Expected value is 'AzureSqlDatabase'. """ return pulumi.get(self, "contents_type") @property @pulumi.getter def credentials(self) -> Any: """ Account credentials. """ return pulumi.get(self, "credentials") @property @pulumi.getter(name="databaseName") def database_name(self) -> str: """ Azure SQL database name. """ return pulumi.get(self, "database_name") @property @pulumi.getter def endpoint(self) -> str: """ Azure cloud endpoint for the database. """ return pulumi.get(self, "endpoint") @property @pulumi.getter(name="portNumber") def port_number(self) -> int: """ Azure SQL server port. """ return pulumi.get(self, "port_number") @property @pulumi.getter(name="serverName") def server_name(self) -> str: """ Azure SQL server name. """ return pulumi.get(self, "server_name") @pulumi.output_type class BanditPolicyResponse(dict): """ Defines an early termination policy based on slack criteria, and a frequency and delay interval for evaluation. """ @staticmethod def __key_warning(key: str): suggest = None if key == "policyType": suggest = "policy_type" elif key == "delayEvaluation": suggest = "delay_evaluation" elif key == "evaluationInterval": suggest = "evaluation_interval" elif key == "slackAmount": suggest = "slack_amount" elif key == "slackFactor": suggest = "slack_factor" if suggest: pulumi.log.warn(f"Key '{key}' not found in BanditPolicyResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: BanditPolicyResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: BanditPolicyResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, policy_type: str, delay_evaluation: Optional[int] = None, evaluation_interval: Optional[int] = None, slack_amount: Optional[float] = None, slack_factor: Optional[float] = None): """ Defines an early termination policy based on slack criteria, and a frequency and delay interval for evaluation. :param str policy_type: Expected value is 'Bandit'. :param int delay_evaluation: Number of intervals by which to delay the first evaluation. :param int evaluation_interval: Interval (number of runs) between policy evaluations. :param float slack_amount: Absolute distance allowed from the best performing run. :param float slack_factor: Ratio of the allowed distance from the best performing run. """ pulumi.set(__self__, "policy_type", 'Bandit') if delay_evaluation is not None: pulumi.set(__self__, "delay_evaluation", delay_evaluation) if evaluation_interval is not None: pulumi.set(__self__, "evaluation_interval", evaluation_interval) if slack_amount is not None: pulumi.set(__self__, "slack_amount", slack_amount) if slack_factor is not None: pulumi.set(__self__, "slack_factor", slack_factor) @property @pulumi.getter(name="policyType") def policy_type(self) -> str: """ Expected value is 'Bandit'. """ return pulumi.get(self, "policy_type") @property @pulumi.getter(name="delayEvaluation") def delay_evaluation(self) -> Optional[int]: """ Number of intervals by which to delay the first evaluation. """ return pulumi.get(self, "delay_evaluation") @property @pulumi.getter(name="evaluationInterval") def evaluation_interval(self) -> Optional[int]: """ Interval (number of runs) between policy evaluations. """ return pulumi.get(self, "evaluation_interval") @property @pulumi.getter(name="slackAmount") def slack_amount(self) -> Optional[float]: """ Absolute distance allowed from the best performing run. """ return pulumi.get(self, "slack_amount") @property @pulumi.getter(name="slackFactor") def slack_factor(self) -> Optional[float]: """ Ratio of the allowed distance from the best performing run. """ return pulumi.get(self, "slack_factor") @pulumi.output_type class BatchDeploymentResponse(dict): """ Batch inference settings per deployment. """ @staticmethod def __key_warning(key: str): suggest = None if key == "codeConfiguration": suggest = "code_configuration" elif key == "environmentId": suggest = "environment_id" elif key == "environmentVariables": suggest = "environment_variables" elif key == "errorThreshold": suggest = "error_threshold" elif key == "loggingLevel": suggest = "logging_level" elif key == "miniBatchSize": suggest = "mini_batch_size" elif key == "outputConfiguration": suggest = "output_configuration" elif key == "partitionKeys": suggest = "partition_keys" elif key == "retrySettings": suggest = "retry_settings" if suggest: pulumi.log.warn(f"Key '{key}' not found in BatchDeploymentResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: BatchDeploymentResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: BatchDeploymentResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, code_configuration: Optional['outputs.CodeConfigurationResponse'] = None, compute: Optional['outputs.ComputeConfigurationResponse'] = None, description: Optional[str] = None, environment_id: Optional[str] = None, environment_variables: Optional[Mapping[str, str]] = None, error_threshold: Optional[int] = None, logging_level: Optional[str] = None, mini_batch_size: Optional[float] = None, model: Optional[Any] = None, output_configuration: Optional['outputs.BatchOutputConfigurationResponse'] = None, partition_keys: Optional[Sequence[str]] = None, properties: Optional[Mapping[str, str]] = None, retry_settings: Optional['outputs.BatchRetrySettingsResponse'] = None): """ Batch inference settings per deployment. :param 'CodeConfigurationResponse' code_configuration: Code configuration for the endpoint deployment. :param 'ComputeConfigurationResponse' compute: Configuration for compute binding. :param str description: Description of the endpoint deployment. :param str environment_id: ARM resource ID of the environment specification for the endpoint deployment. :param Mapping[str, str] environment_variables: Environment variables configuration for the deployment. :param int error_threshold: Error threshold, if the error count for the entire input goes above this value, the batch inference will be aborted. Range is [-1, int.MaxValue]. For FileDataset, this value is the count of file failures. For TabularDataset, this value is the count of record failures. If set to -1 (the lower bound), all failures during batch inference will be ignored. :param str logging_level: Logging level for batch inference operation. :param float mini_batch_size: Size of the mini-batch passed to each batch invocation. For FileDataset, this is the number of files per mini-batch. For TabularDataset, this is the size of the records in bytes, per mini-batch. :param Union['DataPathAssetReferenceResponse', 'IdAssetReferenceResponse', 'OutputPathAssetReferenceResponse'] model: Reference to the model asset for the endpoint deployment. :param 'BatchOutputConfigurationResponse' output_configuration: Output configuration for the batch inference operation. :param Sequence[str] partition_keys: Partition keys list used for Named partitioning. :param Mapping[str, str] properties: Property dictionary. Properties can be added, but not removed or altered. :param 'BatchRetrySettingsResponse' retry_settings: Retry Settings for the batch inference operation. """ if code_configuration is not None: pulumi.set(__self__, "code_configuration", code_configuration) if compute is not None: pulumi.set(__self__, "compute", compute) if description is not None: pulumi.set(__self__, "description", description) if environment_id is not None: pulumi.set(__self__, "environment_id", environment_id) if environment_variables is not None: pulumi.set(__self__, "environment_variables", environment_variables) if error_threshold is not None: pulumi.set(__self__, "error_threshold", error_threshold) if logging_level is not None: pulumi.set(__self__, "logging_level", logging_level) if mini_batch_size is not None: pulumi.set(__self__, "mini_batch_size", mini_batch_size) if model is not None: pulumi.set(__self__, "model", model) if output_configuration is not None: pulumi.set(__self__, "output_configuration", output_configuration) if partition_keys is not None: pulumi.set(__self__, "partition_keys", partition_keys) if properties is not None: pulumi.set(__self__, "properties", properties) if retry_settings is not None: pulumi.set(__self__, "retry_settings", retry_settings) @property @pulumi.getter(name="codeConfiguration") def code_configuration(self) -> Optional['outputs.CodeConfigurationResponse']: """ Code configuration for the endpoint deployment. """ return pulumi.get(self, "code_configuration") @property @pulumi.getter def compute(self) -> Optional['outputs.ComputeConfigurationResponse']: """ Configuration for compute binding. """ return pulumi.get(self, "compute") @property @pulumi.getter def description(self) -> Optional[str]: """ Description of the endpoint deployment. """ return pulumi.get(self, "description") @property @pulumi.getter(name="environmentId") def environment_id(self) -> Optional[str]: """ ARM resource ID of the environment specification for the endpoint deployment. """ return pulumi.get(self, "environment_id") @property @pulumi.getter(name="environmentVariables") def environment_variables(self) -> Optional[Mapping[str, str]]: """ Environment variables configuration for the deployment. """ return pulumi.get(self, "environment_variables") @property @pulumi.getter(name="errorThreshold") def error_threshold(self) -> Optional[int]: """ Error threshold, if the error count for the entire input goes above this value, the batch inference will be aborted. Range is [-1, int.MaxValue]. For FileDataset, this value is the count of file failures. For TabularDataset, this value is the count of record failures. If set to -1 (the lower bound), all failures during batch inference will be ignored. """ return pulumi.get(self, "error_threshold") @property @pulumi.getter(name="loggingLevel") def logging_level(self) -> Optional[str]: """ Logging level for batch inference operation. """ return pulumi.get(self, "logging_level") @property @pulumi.getter(name="miniBatchSize") def mini_batch_size(self) -> Optional[float]: """ Size of the mini-batch passed to each batch invocation. For FileDataset, this is the number of files per mini-batch. For TabularDataset, this is the size of the records in bytes, per mini-batch. """ return pulumi.get(self, "mini_batch_size") @property @pulumi.getter def model(self) -> Optional[Any]: """ Reference to the model asset for the endpoint deployment. """ return pulumi.get(self, "model") @property @pulumi.getter(name="outputConfiguration") def output_configuration(self) -> Optional['outputs.BatchOutputConfigurationResponse']: """ Output configuration for the batch inference operation. """ return pulumi.get(self, "output_configuration") @property @pulumi.getter(name="partitionKeys") def partition_keys(self) -> Optional[Sequence[str]]: """ Partition keys list used for Named partitioning. """ return pulumi.get(self, "partition_keys") @property @pulumi.getter def properties(self) -> Optional[Mapping[str, str]]: """ Property dictionary. Properties can be added, but not removed or altered. """ return pulumi.get(self, "properties") @property @pulumi.getter(name="retrySettings") def retry_settings(self) -> Optional['outputs.BatchRetrySettingsResponse']: """ Retry Settings for the batch inference operation. """ return pulumi.get(self, "retry_settings") @pulumi.output_type class BatchEndpointResponse(dict): """ Batch endpoint configuration. """ @staticmethod def __key_warning(key: str): suggest = None if key == "scoringUri": suggest = "scoring_uri" elif key == "swaggerUri": suggest = "swagger_uri" elif key == "authMode": suggest = "auth_mode" if suggest: pulumi.log.warn(f"Key '{key}' not found in BatchEndpointResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: BatchEndpointResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: BatchEndpointResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, scoring_uri: str, swagger_uri: str, auth_mode: Optional[str] = None, description: Optional[str] = None, properties: Optional[Mapping[str, str]] = None, traffic: Optional[Mapping[str, int]] = None): """ Batch endpoint configuration. :param str scoring_uri: Endpoint URI. :param str swagger_uri: Endpoint Swagger URI. :param str auth_mode: Enum to determine endpoint authentication mode. :param str description: Description of the inference endpoint. :param Mapping[str, str] properties: Property dictionary. Properties can be added, but not removed or altered. :param Mapping[str, int] traffic: Traffic rules on how the traffic will be routed across deployments. """ pulumi.set(__self__, "scoring_uri", scoring_uri) pulumi.set(__self__, "swagger_uri", swagger_uri) if auth_mode is not None: pulumi.set(__self__, "auth_mode", auth_mode) if description is not None: pulumi.set(__self__, "description", description) if properties is not None: pulumi.set(__self__, "properties", properties) if traffic is not None: pulumi.set(__self__, "traffic", traffic) @property @pulumi.getter(name="scoringUri") def scoring_uri(self) -> str: """ Endpoint URI. """ return pulumi.get(self, "scoring_uri") @property @pulumi.getter(name="swaggerUri") def swagger_uri(self) -> str: """ Endpoint Swagger URI. """ return pulumi.get(self, "swagger_uri") @property @pulumi.getter(name="authMode") def auth_mode(self) -> Optional[str]: """ Enum to determine endpoint authentication mode. """ return pulumi.get(self, "auth_mode") @property @pulumi.getter def description(self) -> Optional[str]: """ Description of the inference endpoint. """ return pulumi.get(self, "description") @property @pulumi.getter def properties(self) -> Optional[Mapping[str, str]]: """ Property dictionary. Properties can be added, but not removed or altered. """ return pulumi.get(self, "properties") @property @pulumi.getter def traffic(self) -> Optional[Mapping[str, int]]: """ Traffic rules on how the traffic will be routed across deployments. """ return pulumi.get(self, "traffic") @pulumi.output_type class BatchOutputConfigurationResponse(dict): """ Batch inference output configuration. """ @staticmethod def __key_warning(key: str): suggest = None if key == "appendRowFileName": suggest = "append_row_file_name" elif key == "outputAction": suggest = "output_action" if suggest: pulumi.log.warn(f"Key '{key}' not found in BatchOutputConfigurationResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: BatchOutputConfigurationResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: BatchOutputConfigurationResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, append_row_file_name: Optional[str] = None, output_action: Optional[str] = None): """ Batch inference output configuration. :param str append_row_file_name: Customized output file name for append_row output action. :param str output_action: Indicates how the output will be organized. """ if append_row_file_name is not None: pulumi.set(__self__, "append_row_file_name", append_row_file_name) if output_action is not None: pulumi.set(__self__, "output_action", output_action) @property @pulumi.getter(name="appendRowFileName") def append_row_file_name(self) -> Optional[str]: """ Customized output file name for append_row output action. """ return pulumi.get(self, "append_row_file_name") @property @pulumi.getter(name="outputAction") def output_action(self) -> Optional[str]: """ Indicates how the output will be organized. """ return pulumi.get(self, "output_action") @pulumi.output_type class BatchRetrySettingsResponse(dict): """ Retry settings for a batch inference operation. """ @staticmethod def __key_warning(key: str): suggest = None if key == "maxRetries": suggest = "max_retries" if suggest: pulumi.log.warn(f"Key '{key}' not found in BatchRetrySettingsResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: BatchRetrySettingsResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: BatchRetrySettingsResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, max_retries: Optional[int] = None, timeout: Optional[str] = None): """ Retry settings for a batch inference operation. :param int max_retries: Maximum retry count for a mini-batch :param str timeout: Invocation timeout for a mini-batch, in ISO 8601 format. """ if max_retries is not None: pulumi.set(__self__, "max_retries", max_retries) if timeout is not None: pulumi.set(__self__, "timeout", timeout) @property @pulumi.getter(name="maxRetries") def max_retries(self) -> Optional[int]: """ Maximum retry count for a mini-batch """ return pulumi.get(self, "max_retries") @property @pulumi.getter def timeout(self) -> Optional[str]: """ Invocation timeout for a mini-batch, in ISO 8601 format. """ return pulumi.get(self, "timeout") @pulumi.output_type class CertificateDatastoreCredentialsResponse(dict): """ Certificate datastore credentials configuration. """ @staticmethod def __key_warning(key: str): suggest = None if key == "clientId": suggest = "client_id" elif key == "credentialsType": suggest = "credentials_type" elif key == "tenantId": suggest = "tenant_id" elif key == "authorityUrl": suggest = "authority_url" elif key == "resourceUri": suggest = "resource_uri" if suggest: pulumi.log.warn(f"Key '{key}' not found in CertificateDatastoreCredentialsResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: CertificateDatastoreCredentialsResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: CertificateDatastoreCredentialsResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, client_id: str, credentials_type: str, tenant_id: str, thumbprint: str, authority_url: Optional[str] = None, resource_uri: Optional[str] = None): """ Certificate datastore credentials configuration. :param str client_id: Service principal client ID. :param str credentials_type: Enum to determine the datastore credentials type. Expected value is 'Certificate'. :param str tenant_id: ID of the tenant to which the service principal belongs. :param str thumbprint: Thumbprint of the certificate used for authentication. :param str authority_url: Authority URL used for authentication. :param str resource_uri: Resource the service principal has access to. """ pulumi.set(__self__, "client_id", client_id) pulumi.set(__self__, "credentials_type", 'Certificate') pulumi.set(__self__, "tenant_id", tenant_id) pulumi.set(__self__, "thumbprint", thumbprint) if authority_url is not None: pulumi.set(__self__, "authority_url", authority_url) if resource_uri is not None: pulumi.set(__self__, "resource_uri", resource_uri) @property @pulumi.getter(name="clientId") def client_id(self) -> str: """ Service principal client ID. """ return pulumi.get(self, "client_id") @property @pulumi.getter(name="credentialsType") def credentials_type(self) -> str: """ Enum to determine the datastore credentials type. Expected value is 'Certificate'. """ return pulumi.get(self, "credentials_type") @property @pulumi.getter(name="tenantId") def tenant_id(self) -> str: """ ID of the tenant to which the service principal belongs. """ return pulumi.get(self, "tenant_id") @property @pulumi.getter def thumbprint(self) -> str: """ Thumbprint of the certificate used for authentication. """ return pulumi.get(self, "thumbprint") @property @pulumi.getter(name="authorityUrl") def authority_url(self) -> Optional[str]: """ Authority URL used for authentication. """ return pulumi.get(self, "authority_url") @property @pulumi.getter(name="resourceUri") def resource_uri(self) -> Optional[str]: """ Resource the service principal has access to. """ return pulumi.get(self, "resource_uri") @pulumi.output_type class CodeConfigurationResponse(dict): """ Configuration for a scoring code asset. """ @staticmethod def __key_warning(key: str): suggest = None if key == "scoringScript": suggest = "scoring_script" elif key == "codeId": suggest = "code_id" if suggest: pulumi.log.warn(f"Key '{key}' not found in CodeConfigurationResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: CodeConfigurationResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: CodeConfigurationResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, scoring_script: str, code_id: Optional[str] = None): """ Configuration for a scoring code asset. :param str scoring_script: The script to execute on startup. eg. "score.py" :param str code_id: ARM resource ID of the code asset. """ pulumi.set(__self__, "scoring_script", scoring_script) if code_id is not None: pulumi.set(__self__, "code_id", code_id) @property @pulumi.getter(name="scoringScript") def scoring_script(self) -> str: """ The script to execute on startup. eg. "score.py" """ return pulumi.get(self, "scoring_script") @property @pulumi.getter(name="codeId") def code_id(self) -> Optional[str]: """ ARM resource ID of the code asset. """ return pulumi.get(self, "code_id") @pulumi.output_type class CodeContainerResponse(dict): """ Container for code asset versions. """ def __init__(__self__, *, description: Optional[str] = None, properties: Optional[Mapping[str, str]] = None, tags: Optional[Mapping[str, str]] = None): """ Container for code asset versions. :param str description: The asset description text. :param Mapping[str, str] properties: The asset property dictionary. :param Mapping[str, str] tags: Tag dictionary. Tags can be added, removed, and updated. """ if description is not None: pulumi.set(__self__, "description", description) if properties is not None: pulumi.set(__self__, "properties", properties) if tags is not None: pulumi.set(__self__, "tags", tags) @property @pulumi.getter def description(self) -> Optional[str]: """ The asset description text. """ return pulumi.get(self, "description") @property @pulumi.getter def properties(self) -> Optional[Mapping[str, str]]: """ The asset property dictionary. """ return pulumi.get(self, "properties") @property @pulumi.getter def tags(self) -> Optional[Mapping[str, str]]: """ Tag dictionary. Tags can be added, removed, and updated. """ return pulumi.get(self, "tags") @pulumi.output_type class CodeVersionResponse(dict): """ Code asset version details. """ @staticmethod def __key_warning(key: str): suggest = None if key == "datastoreId": suggest = "datastore_id" elif key == "isAnonymous": suggest = "is_anonymous" if suggest: pulumi.log.warn(f"Key '{key}' not found in CodeVersionResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: CodeVersionResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: CodeVersionResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, path: str, datastore_id: Optional[str] = None, description: Optional[str] = None, is_anonymous: Optional[bool] = None, properties: Optional[Mapping[str, str]] = None, tags: Optional[Mapping[str, str]] = None): """ Code asset version details. :param str path: The path of the file/directory in the datastore. :param str datastore_id: ARM resource ID of the datastore where the asset is located. :param str description: The asset description text. :param bool is_anonymous: If the name version are system generated (anonymous registration). :param Mapping[str, str] properties: The asset property dictionary. :param Mapping[str, str] tags: Tag dictionary. Tags can be added, removed, and updated. """ pulumi.set(__self__, "path", path) if datastore_id is not None: pulumi.set(__self__, "datastore_id", datastore_id) if description is not None: pulumi.set(__self__, "description", description) if is_anonymous is not None: pulumi.set(__self__, "is_anonymous", is_anonymous) if properties is not None: pulumi.set(__self__, "properties", properties) if tags is not None: pulumi.set(__self__, "tags", tags) @property @pulumi.getter def path(self) -> str: """ The path of the file/directory in the datastore. """ return pulumi.get(self, "path") @property @pulumi.getter(name="datastoreId") def datastore_id(self) -> Optional[str]: """ ARM resource ID of the datastore where the asset is located. """ return pulumi.get(self, "datastore_id") @property @pulumi.getter def description(self) -> Optional[str]: """ The asset description text. """ return pulumi.get(self, "description") @property @pulumi.getter(name="isAnonymous") def is_anonymous(self) -> Optional[bool]: """ If the name version are system generated (anonymous registration). """ return pulumi.get(self, "is_anonymous") @property @pulumi.getter def properties(self) -> Optional[Mapping[str, str]]: """ The asset property dictionary. """ return pulumi.get(self, "properties") @property @pulumi.getter def tags(self) -> Optional[Mapping[str, str]]: """ Tag dictionary. Tags can be added, removed, and updated. """ return pulumi.get(self, "tags") @pulumi.output_type class CommandJobResponse(dict): """ Command job definition. """ @staticmethod def __key_warning(key: str): suggest = None if key == "interactionEndpoints": suggest = "interaction_endpoints" elif key == "jobType": suggest = "job_type" elif key == "provisioningState": suggest = "provisioning_state" elif key == "codeId": suggest = "code_id" elif key == "environmentId": suggest = "environment_id" elif key == "environmentVariables": suggest = "environment_variables" elif key == "experimentName": suggest = "experiment_name" elif key == "inputDataBindings": suggest = "input_data_bindings" elif key == "outputDataBindings": suggest = "output_data_bindings" if suggest: pulumi.log.warn(f"Key '{key}' not found in CommandJobResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: CommandJobResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: CommandJobResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, command: str, compute: 'outputs.ComputeConfigurationResponse', interaction_endpoints: Mapping[str, 'outputs.JobEndpointResponse'], job_type: str, output: 'outputs.JobOutputResponse', parameters: Any, provisioning_state: str, status: str, code_id: Optional[str] = None, description: Optional[str] = None, distribution: Optional[Any] = None, environment_id: Optional[str] = None, environment_variables: Optional[Mapping[str, str]] = None, experiment_name: Optional[str] = None, identity: Optional[Any] = None, input_data_bindings: Optional[Mapping[str, 'outputs.InputDataBindingResponse']] = None, output_data_bindings: Optional[Mapping[str, 'outputs.OutputDataBindingResponse']] = None, priority: Optional[int] = None, properties: Optional[Mapping[str, str]] = None, tags: Optional[Mapping[str, str]] = None, timeout: Optional[str] = None): """ Command job definition. :param str command: The command to execute on startup of the job. eg. "python train.py" :param 'ComputeConfigurationResponse' compute: Compute binding for the job. :param Mapping[str, 'JobEndpointResponse'] interaction_endpoints: List of JobEndpoints. For local jobs, a job endpoint will have an endpoint value of FileStreamObject. :param str job_type: Enum to determine the type of job. Expected value is 'Command'. :param 'JobOutputResponse' output: Location of the job output logs and artifacts. :param Any parameters: Input parameters. :param str provisioning_state: Specifies the job provisioning state. :param str status: Status of the job. :param str code_id: ARM resource ID of the code asset. :param str description: The asset description text. :param Union['MpiResponse', 'PyTorchResponse', 'TensorFlowResponse'] distribution: Distribution configuration of the job. If set, this should be one of Mpi, Tensorflow, PyTorch, or null. :param str environment_id: The ARM resource ID of the Environment specification for the job. :param Mapping[str, str] environment_variables: Environment variables included in the job. :param str experiment_name: The name of the experiment the job belongs to. If not set, the job is placed in the "Default" experiment. :param Union['AmlTokenResponse', 'ManagedIdentityResponse'] identity: Identity configuration. If set, this should be one of AmlToken, ManagedIdentity, or null. Defaults to AmlToken if null. :param Mapping[str, 'InputDataBindingResponse'] input_data_bindings: Mapping of input data bindings used in the job. :param Mapping[str, 'OutputDataBindingResponse'] output_data_bindings: Mapping of output data bindings used in the job. :param int priority: Job priority for scheduling policy. Only applies to AMLCompute. Private preview feature and only available to users on the allow list. :param Mapping[str, str] properties: The asset property dictionary. :param Mapping[str, str] tags: Tag dictionary. Tags can be added, removed, and updated. :param str timeout: The max run duration in ISO 8601 format, after which the job will be cancelled. Only supports duration with precision as low as Seconds. """ pulumi.set(__self__, "command", command) pulumi.set(__self__, "compute", compute) pulumi.set(__self__, "interaction_endpoints", interaction_endpoints) pulumi.set(__self__, "job_type", 'Command') pulumi.set(__self__, "output", output) pulumi.set(__self__, "parameters", parameters) pulumi.set(__self__, "provisioning_state", provisioning_state) pulumi.set(__self__, "status", status) if code_id is not None: pulumi.set(__self__, "code_id", code_id) if description is not None: pulumi.set(__self__, "description", description) if distribution is not None: pulumi.set(__self__, "distribution", distribution) if environment_id is not None: pulumi.set(__self__, "environment_id", environment_id) if environment_variables is not None: pulumi.set(__self__, "environment_variables", environment_variables) if experiment_name is not None: pulumi.set(__self__, "experiment_name", experiment_name) if identity is not None: pulumi.set(__self__, "identity", identity) if input_data_bindings is not None: pulumi.set(__self__, "input_data_bindings", input_data_bindings) if output_data_bindings is not None: pulumi.set(__self__, "output_data_bindings", output_data_bindings) if priority is not None: pulumi.set(__self__, "priority", priority) if properties is not None: pulumi.set(__self__, "properties", properties) if tags is not None: pulumi.set(__self__, "tags", tags) if timeout is not None: pulumi.set(__self__, "timeout", timeout) @property @pulumi.getter def command(self) -> str: """ The command to execute on startup of the job. eg. "python train.py" """ return pulumi.get(self, "command") @property @pulumi.getter def compute(self) -> 'outputs.ComputeConfigurationResponse': """ Compute binding for the job. """ return pulumi.get(self, "compute") @property @pulumi.getter(name="interactionEndpoints") def interaction_endpoints(self) -> Mapping[str, 'outputs.JobEndpointResponse']: """ List of JobEndpoints. For local jobs, a job endpoint will have an endpoint value of FileStreamObject. """ return pulumi.get(self, "interaction_endpoints") @property @pulumi.getter(name="jobType") def job_type(self) -> str: """ Enum to determine the type of job. Expected value is 'Command'. """ return pulumi.get(self, "job_type") @property @pulumi.getter def output(self) -> 'outputs.JobOutputResponse': """ Location of the job output logs and artifacts. """ return pulumi.get(self, "output") @property @pulumi.getter def parameters(self) -> Any: """ Input parameters. """ return pulumi.get(self, "parameters") @property @pulumi.getter(name="provisioningState") def provisioning_state(self) -> str: """ Specifies the job provisioning state. """ return pulumi.get(self, "provisioning_state") @property @pulumi.getter def status(self) -> str: """ Status of the job. """ return pulumi.get(self, "status") @property @pulumi.getter(name="codeId") def code_id(self) -> Optional[str]: """ ARM resource ID of the code asset. """ return pulumi.get(self, "code_id") @property @pulumi.getter def description(self) -> Optional[str]: """ The asset description text. """ return pulumi.get(self, "description") @property @pulumi.getter def distribution(self) -> Optional[Any]: """ Distribution configuration of the job. If set, this should be one of Mpi, Tensorflow, PyTorch, or null. """ return pulumi.get(self, "distribution") @property @pulumi.getter(name="environmentId") def environment_id(self) -> Optional[str]: """ The ARM resource ID of the Environment specification for the job. """ return pulumi.get(self, "environment_id") @property @pulumi.getter(name="environmentVariables") def environment_variables(self) -> Optional[Mapping[str, str]]: """ Environment variables included in the job. """ return pulumi.get(self, "environment_variables") @property @pulumi.getter(name="experimentName") def experiment_name(self) -> Optional[str]: """ The name of the experiment the job belongs to. If not set, the job is placed in the "Default" experiment. """ return pulumi.get(self, "experiment_name") @property @pulumi.getter def identity(self) -> Optional[Any]: """ Identity configuration. If set, this should be one of AmlToken, ManagedIdentity, or null. Defaults to AmlToken if null. """ return pulumi.get(self, "identity") @property @pulumi.getter(name="inputDataBindings") def input_data_bindings(self) -> Optional[Mapping[str, 'outputs.InputDataBindingResponse']]: """ Mapping of input data bindings used in the job. """ return pulumi.get(self, "input_data_bindings") @property @pulumi.getter(name="outputDataBindings") def output_data_bindings(self) -> Optional[Mapping[str, 'outputs.OutputDataBindingResponse']]: """ Mapping of output data bindings used in the job. """ return pulumi.get(self, "output_data_bindings") @property @pulumi.getter def priority(self) -> Optional[int]: """ Job priority for scheduling policy. Only applies to AMLCompute. Private preview feature and only available to users on the allow list. """ return pulumi.get(self, "priority") @property @pulumi.getter def properties(self) -> Optional[Mapping[str, str]]: """ The asset property dictionary. """ return pulumi.get(self, "properties") @property @pulumi.getter def tags(self) -> Optional[Mapping[str, str]]: """ Tag dictionary. Tags can be added, removed, and updated. """ return pulumi.get(self, "tags") @property @pulumi.getter def timeout(self) -> Optional[str]: """ The max run duration in ISO 8601 format, after which the job will be cancelled. Only supports duration with precision as low as Seconds. """ return pulumi.get(self, "timeout") @pulumi.output_type class ComputeConfigurationResponse(dict): """ Configuration for compute binding. """ @staticmethod def __key_warning(key: str): suggest = None if key == "instanceCount": suggest = "instance_count" elif key == "instanceType": suggest = "instance_type" elif key == "isLocal": suggest = "is_local" if suggest: pulumi.log.warn(f"Key '{key}' not found in ComputeConfigurationResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: ComputeConfigurationResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: ComputeConfigurationResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, instance_count: Optional[int] = None, instance_type: Optional[str] = None, is_local: Optional[bool] = None, location: Optional[str] = None, properties: Optional[Mapping[str, str]] = None, target: Optional[str] = None): """ Configuration for compute binding. :param int instance_count: Number of instances or nodes. :param str instance_type: SKU type to run on. :param bool is_local: Set to true for jobs running on local compute. :param str location: Location for virtual cluster run. :param Mapping[str, str] properties: Additional properties. :param str target: ARM resource ID of the compute resource. """ if instance_count is not None: pulumi.set(__self__, "instance_count", instance_count) if instance_type is not None: pulumi.set(__self__, "instance_type", instance_type) if is_local is not None: pulumi.set(__self__, "is_local", is_local) if location is not None: pulumi.set(__self__, "location", location) if properties is not None: pulumi.set(__self__, "properties", properties) if target is not None: pulumi.set(__self__, "target", target) @property @pulumi.getter(name="instanceCount") def instance_count(self) -> Optional[int]: """ Number of instances or nodes. """ return pulumi.get(self, "instance_count") @property @pulumi.getter(name="instanceType") def instance_type(self) -> Optional[str]: """ SKU type to run on. """ return pulumi.get(self, "instance_type") @property @pulumi.getter(name="isLocal") def is_local(self) -> Optional[bool]: """ Set to true for jobs running on local compute. """ return pulumi.get(self, "is_local") @property @pulumi.getter def location(self) -> Optional[str]: """ Location for virtual cluster run. """ return pulumi.get(self, "location") @property @pulumi.getter def properties(self) -> Optional[Mapping[str, str]]: """ Additional properties. """ return pulumi.get(self, "properties") @property @pulumi.getter def target(self) -> Optional[str]: """ ARM resource ID of the compute resource. """ return pulumi.get(self, "target") @pulumi.output_type class ComputeInstanceApplicationResponse(dict): """ Defines an Aml Instance application and its connectivity endpoint URI. """ @staticmethod def __key_warning(key: str): suggest = None if key == "displayName": suggest = "display_name" elif key == "endpointUri": suggest = "endpoint_uri" if suggest: pulumi.log.warn(f"Key '{key}' not found in ComputeInstanceApplicationResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: ComputeInstanceApplicationResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: ComputeInstanceApplicationResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, display_name: Optional[str] = None, endpoint_uri: Optional[str] = None): """ Defines an Aml Instance application and its connectivity endpoint URI. :param str display_name: Name of the ComputeInstance application. :param str endpoint_uri: Application' endpoint URI. """ if display_name is not None: pulumi.set(__self__, "display_name", display_name) if endpoint_uri is not None: pulumi.set(__self__, "endpoint_uri", endpoint_uri) @property @pulumi.getter(name="displayName") def display_name(self) -> Optional[str]: """ Name of the ComputeInstance application. """ return pulumi.get(self, "display_name") @property @pulumi.getter(name="endpointUri") def endpoint_uri(self) -> Optional[str]: """ Application' endpoint URI. """ return pulumi.get(self, "endpoint_uri") @pulumi.output_type class ComputeInstanceConnectivityEndpointsResponse(dict): """ Defines all connectivity endpoints and properties for an ComputeInstance. """ @staticmethod def __key_warning(key: str): suggest = None if key == "privateIpAddress": suggest = "private_ip_address" elif key == "publicIpAddress": suggest = "public_ip_address" if suggest: pulumi.log.warn(f"Key '{key}' not found in ComputeInstanceConnectivityEndpointsResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: ComputeInstanceConnectivityEndpointsResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: ComputeInstanceConnectivityEndpointsResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, private_ip_address: str, public_ip_address: str): """ Defines all connectivity endpoints and properties for an ComputeInstance. :param str private_ip_address: Private IP Address of this ComputeInstance (local to the VNET in which the compute instance is deployed). :param str public_ip_address: Public IP Address of this ComputeInstance. """ pulumi.set(__self__, "private_ip_address", private_ip_address) pulumi.set(__self__, "public_ip_address", public_ip_address) @property @pulumi.getter(name="privateIpAddress") def private_ip_address(self) -> str: """ Private IP Address of this ComputeInstance (local to the VNET in which the compute instance is deployed). """ return pulumi.get(self, "private_ip_address") @property @pulumi.getter(name="publicIpAddress") def public_ip_address(self) -> str: """ Public IP Address of this ComputeInstance. """ return pulumi.get(self, "public_ip_address") @pulumi.output_type class ComputeInstanceCreatedByResponse(dict): """ Describes information on user who created this ComputeInstance. """ @staticmethod def __key_warning(key: str): suggest = None if key == "userId": suggest = "user_id" elif key == "userName": suggest = "user_name" elif key == "userOrgId": suggest = "user_org_id" if suggest: pulumi.log.warn(f"Key '{key}' not found in ComputeInstanceCreatedByResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: ComputeInstanceCreatedByResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: ComputeInstanceCreatedByResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, user_id: str, user_name: str, user_org_id: str): """ Describes information on user who created this ComputeInstance. :param str user_id: Uniquely identifies the user within his/her organization. :param str user_name: Name of the user. :param str user_org_id: Uniquely identifies user' Azure Active Directory organization. """ pulumi.set(__self__, "user_id", user_id) pulumi.set(__self__, "user_name", user_name) pulumi.set(__self__, "user_org_id", user_org_id) @property @pulumi.getter(name="userId") def user_id(self) -> str: """ Uniquely identifies the user within his/her organization. """ return pulumi.get(self, "user_id") @property @pulumi.getter(name="userName") def user_name(self) -> str: """ Name of the user. """ return pulumi.get(self, "user_name") @property @pulumi.getter(name="userOrgId") def user_org_id(self) -> str: """ Uniquely identifies user' Azure Active Directory organization. """ return pulumi.get(self, "user_org_id") @pulumi.output_type class ComputeInstanceLastOperationResponse(dict): """ The last operation on ComputeInstance. """ @staticmethod def __key_warning(key: str): suggest = None if key == "operationName": suggest = "operation_name" elif key == "operationStatus": suggest = "operation_status" elif key == "operationTime": suggest = "operation_time" if suggest: pulumi.log.warn(f"Key '{key}' not found in ComputeInstanceLastOperationResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: ComputeInstanceLastOperationResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: ComputeInstanceLastOperationResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, operation_name: Optional[str] = None, operation_status: Optional[str] = None, operation_time: Optional[str] = None): """ The last operation on ComputeInstance. :param str operation_name: Name of the last operation. :param str operation_status: Operation status. :param str operation_time: Time of the last operation. """ if operation_name is not None: pulumi.set(__self__, "operation_name", operation_name) if operation_status is not None: pulumi.set(__self__, "operation_status", operation_status) if operation_time is not None: pulumi.set(__self__, "operation_time", operation_time) @property @pulumi.getter(name="operationName") def operation_name(self) -> Optional[str]: """ Name of the last operation. """ return pulumi.get(self, "operation_name") @property @pulumi.getter(name="operationStatus") def operation_status(self) -> Optional[str]: """ Operation status. """ return pulumi.get(self, "operation_status") @property @pulumi.getter(name="operationTime") def operation_time(self) -> Optional[str]: """ Time of the last operation. """ return pulumi.get(self, "operation_time") @pulumi.output_type class ComputeInstanceResponse(dict): """ An Azure Machine Learning compute instance. """ @staticmethod def __key_warning(key: str): suggest = None if key == "computeType": suggest = "compute_type" elif key == "createdOn": suggest = "created_on" elif key == "isAttachedCompute": suggest = "is_attached_compute" elif key == "modifiedOn": suggest = "modified_on" elif key == "provisioningErrors": suggest = "provisioning_errors" elif key == "provisioningState": suggest = "provisioning_state" elif key == "computeLocation": suggest = "compute_location" elif key == "disableLocalAuth": suggest = "disable_local_auth" elif key == "resourceId": suggest = "resource_id" if suggest: pulumi.log.warn(f"Key '{key}' not found in ComputeInstanceResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: ComputeInstanceResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: ComputeInstanceResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, compute_type: str, created_on: str, is_attached_compute: bool, modified_on: str, provisioning_errors: Sequence['outputs.ErrorResponseResponse'], provisioning_state: str, compute_location: Optional[str] = None, description: Optional[str] = None, disable_local_auth: Optional[bool] = None, properties: Optional['outputs.ComputeInstanceResponseProperties'] = None, resource_id: Optional[str] = None): """ An Azure Machine Learning compute instance. :param str compute_type: The type of compute Expected value is 'ComputeInstance'. :param str created_on: The time at which the compute was created. :param bool is_attached_compute: Indicating whether the compute was provisioned by user and brought from outside if true, or machine learning service provisioned it if false. :param str modified_on: The time at which the compute was last modified. :param Sequence['ErrorResponseResponse'] provisioning_errors: Errors during provisioning :param str provisioning_state: The provision state of the cluster. Valid values are Unknown, Updating, Provisioning, Succeeded, and Failed. :param str compute_location: Location for the underlying compute :param str description: The description of the Machine Learning compute. :param bool disable_local_auth: Opt-out of local authentication and ensure customers can use only MSI and AAD exclusively for authentication. :param 'ComputeInstanceResponseProperties' properties: Compute Instance properties :param str resource_id: ARM resource id of the underlying compute """ pulumi.set(__self__, "compute_type", 'ComputeInstance') pulumi.set(__self__, "created_on", created_on) pulumi.set(__self__, "is_attached_compute", is_attached_compute) pulumi.set(__self__, "modified_on", modified_on) pulumi.set(__self__, "provisioning_errors", provisioning_errors) pulumi.set(__self__, "provisioning_state", provisioning_state) if compute_location is not None: pulumi.set(__self__, "compute_location", compute_location) if description is not None: pulumi.set(__self__, "description", description) if disable_local_auth is not None: pulumi.set(__self__, "disable_local_auth", disable_local_auth) if properties is not None: pulumi.set(__self__, "properties", properties) if resource_id is not None: pulumi.set(__self__, "resource_id", resource_id) @property @pulumi.getter(name="computeType") def compute_type(self) -> str: """ The type of compute Expected value is 'ComputeInstance'. """ return pulumi.get(self, "compute_type") @property @pulumi.getter(name="createdOn") def created_on(self) -> str: """ The time at which the compute was created. """ return pulumi.get(self, "created_on") @property @pulumi.getter(name="isAttachedCompute") def is_attached_compute(self) -> bool: """ Indicating whether the compute was provisioned by user and brought from outside if true, or machine learning service provisioned it if false. """ return pulumi.get(self, "is_attached_compute") @property @pulumi.getter(name="modifiedOn") def modified_on(self) -> str: """ The time at which the compute was last modified. """ return pulumi.get(self, "modified_on") @property @pulumi.getter(name="provisioningErrors") def provisioning_errors(self) -> Sequence['outputs.ErrorResponseResponse']: """ Errors during provisioning """ return pulumi.get(self, "provisioning_errors") @property @pulumi.getter(name="provisioningState") def provisioning_state(self) -> str: """ The provision state of the cluster. Valid values are Unknown, Updating, Provisioning, Succeeded, and Failed. """ return pulumi.get(self, "provisioning_state") @property @pulumi.getter(name="computeLocation") def compute_location(self) -> Optional[str]: """ Location for the underlying compute """ return pulumi.get(self, "compute_location") @property @pulumi.getter def description(self) -> Optional[str]: """ The description of the Machine Learning compute. """ return pulumi.get(self, "description") @property @pulumi.getter(name="disableLocalAuth") def disable_local_auth(self) -> Optional[bool]: """ Opt-out of local authentication and ensure customers can use only MSI and AAD exclusively for authentication. """ return pulumi.get(self, "disable_local_auth") @property @pulumi.getter def properties(self) -> Optional['outputs.ComputeInstanceResponseProperties']: """ Compute Instance properties """ return pulumi.get(self, "properties") @property @pulumi.getter(name="resourceId") def resource_id(self) -> Optional[str]: """ ARM resource id of the underlying compute """ return pulumi.get(self, "resource_id") @pulumi.output_type class ComputeInstanceResponseProperties(dict): """ Compute Instance properties """ @staticmethod def __key_warning(key: str): suggest = None if key == "connectivityEndpoints": suggest = "connectivity_endpoints" elif key == "createdBy": suggest = "created_by" elif key == "lastOperation": suggest = "last_operation" elif key == "applicationSharingPolicy": suggest = "application_sharing_policy" elif key == "computeInstanceAuthorizationType": suggest = "compute_instance_authorization_type" elif key == "enableNodePublicIp": suggest = "enable_node_public_ip" elif key == "personalComputeInstanceSettings": suggest = "personal_compute_instance_settings" elif key == "setupScripts": suggest = "setup_scripts" elif key == "sshSettings": suggest = "ssh_settings" elif key == "vmSize": suggest = "vm_size" if suggest: pulumi.log.warn(f"Key '{key}' not found in ComputeInstanceResponseProperties. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: ComputeInstanceResponseProperties.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: ComputeInstanceResponseProperties.__key_warning(key) return super().get(key, default) def __init__(__self__, *, applications: Sequence['outputs.ComputeInstanceApplicationResponse'], connectivity_endpoints: 'outputs.ComputeInstanceConnectivityEndpointsResponse', created_by: 'outputs.ComputeInstanceCreatedByResponse', errors: Sequence['outputs.ErrorResponseResponse'], last_operation: 'outputs.ComputeInstanceLastOperationResponse', state: str, application_sharing_policy: Optional[str] = None, compute_instance_authorization_type: Optional[str] = None, enable_node_public_ip: Optional[bool] = None, personal_compute_instance_settings: Optional['outputs.PersonalComputeInstanceSettingsResponse'] = None, schedules: Optional['outputs.ComputeSchedulesResponse'] = None, setup_scripts: Optional['outputs.SetupScriptsResponse'] = None, ssh_settings: Optional['outputs.ComputeInstanceSshSettingsResponse'] = None, subnet: Optional['outputs.ResourceIdResponse'] = None, vm_size: Optional[str] = None): """ Compute Instance properties :param Sequence['ComputeInstanceApplicationResponse'] applications: Describes available applications and their endpoints on this ComputeInstance. :param 'ComputeInstanceConnectivityEndpointsResponse' connectivity_endpoints: Describes all connectivity endpoints available for this ComputeInstance. :param 'ComputeInstanceCreatedByResponse' created_by: Describes information on user who created this ComputeInstance. :param Sequence['ErrorResponseResponse'] errors: Collection of errors encountered on this ComputeInstance. :param 'ComputeInstanceLastOperationResponse' last_operation: The last operation on ComputeInstance. :param str state: The current state of this ComputeInstance. :param str application_sharing_policy: Policy for sharing applications on this compute instance among users of parent workspace. If Personal, only the creator can access applications on this compute instance. When Shared, any workspace user can access applications on this instance depending on his/her assigned role. :param str compute_instance_authorization_type: The Compute Instance Authorization type. Available values are personal (default). :param bool enable_node_public_ip: Enable or disable node public IP address provisioning. Possible values are: true - Indicates that the compute nodes will have public IPs provisioned. false - Indicates that the compute nodes will have a private endpoint and no public IPs. :param 'PersonalComputeInstanceSettingsResponse' personal_compute_instance_settings: Settings for a personal compute instance. :param 'ComputeSchedulesResponse' schedules: The list of schedules to be applied on the compute instance. :param 'SetupScriptsResponse' setup_scripts: Details of customized scripts to execute for setting up the cluster. :param 'ComputeInstanceSshSettingsResponse' ssh_settings: Specifies policy and settings for SSH access. :param 'ResourceIdResponse' subnet: Virtual network subnet resource ID the compute nodes belong to. :param str vm_size: Virtual Machine Size """ pulumi.set(__self__, "applications", applications) pulumi.set(__self__, "connectivity_endpoints", connectivity_endpoints) pulumi.set(__self__, "created_by", created_by) pulumi.set(__self__, "errors", errors) pulumi.set(__self__, "last_operation", last_operation) pulumi.set(__self__, "state", state) if application_sharing_policy is None: application_sharing_policy = 'Shared' if application_sharing_policy is not None: pulumi.set(__self__, "application_sharing_policy", application_sharing_policy) if compute_instance_authorization_type is None: compute_instance_authorization_type = 'personal' if compute_instance_authorization_type is not None: pulumi.set(__self__, "compute_instance_authorization_type", compute_instance_authorization_type) if enable_node_public_ip is None: enable_node_public_ip = True if enable_node_public_ip is not None: pulumi.set(__self__, "enable_node_public_ip", enable_node_public_ip) if personal_compute_instance_settings is not None: pulumi.set(__self__, "personal_compute_instance_settings", personal_compute_instance_settings) if schedules is not None: pulumi.set(__self__, "schedules", schedules) if setup_scripts is not None: pulumi.set(__self__, "setup_scripts", setup_scripts) if ssh_settings is not None: pulumi.set(__self__, "ssh_settings", ssh_settings) if subnet is not None: pulumi.set(__self__, "subnet", subnet) if vm_size is not None: pulumi.set(__self__, "vm_size", vm_size) @property @pulumi.getter def applications(self) -> Sequence['outputs.ComputeInstanceApplicationResponse']: """ Describes available applications and their endpoints on this ComputeInstance. """ return pulumi.get(self, "applications") @property @pulumi.getter(name="connectivityEndpoints") def connectivity_endpoints(self) -> 'outputs.ComputeInstanceConnectivityEndpointsResponse': """ Describes all connectivity endpoints available for this ComputeInstance. """ return pulumi.get(self, "connectivity_endpoints") @property @pulumi.getter(name="createdBy") def created_by(self) -> 'outputs.ComputeInstanceCreatedByResponse': """ Describes information on user who created this ComputeInstance. """ return pulumi.get(self, "created_by") @property @pulumi.getter def errors(self) -> Sequence['outputs.ErrorResponseResponse']: """ Collection of errors encountered on this ComputeInstance. """ return pulumi.get(self, "errors") @property @pulumi.getter(name="lastOperation") def last_operation(self) -> 'outputs.ComputeInstanceLastOperationResponse': """ The last operation on ComputeInstance. """ return pulumi.get(self, "last_operation") @property @pulumi.getter def state(self) -> str: """ The current state of this ComputeInstance. """ return pulumi.get(self, "state") @property @pulumi.getter(name="applicationSharingPolicy") def application_sharing_policy(self) -> Optional[str]: """ Policy for sharing applications on this compute instance among users of parent workspace. If Personal, only the creator can access applications on this compute instance. When Shared, any workspace user can access applications on this instance depending on his/her assigned role. """ return pulumi.get(self, "application_sharing_policy") @property @pulumi.getter(name="computeInstanceAuthorizationType") def compute_instance_authorization_type(self) -> Optional[str]: """ The Compute Instance Authorization type. Available values are personal (default). """ return pulumi.get(self, "compute_instance_authorization_type") @property @pulumi.getter(name="enableNodePublicIp") def enable_node_public_ip(self) -> Optional[bool]: """ Enable or disable node public IP address provisioning. Possible values are: true - Indicates that the compute nodes will have public IPs provisioned. false - Indicates that the compute nodes will have a private endpoint and no public IPs. """ return pulumi.get(self, "enable_node_public_ip") @property @pulumi.getter(name="personalComputeInstanceSettings") def personal_compute_instance_settings(self) -> Optional['outputs.PersonalComputeInstanceSettingsResponse']: """ Settings for a personal compute instance. """ return pulumi.get(self, "personal_compute_instance_settings") @property @pulumi.getter def schedules(self) -> Optional['outputs.ComputeSchedulesResponse']: """ The list of schedules to be applied on the compute instance. """ return pulumi.get(self, "schedules") @property @pulumi.getter(name="setupScripts") def setup_scripts(self) -> Optional['outputs.SetupScriptsResponse']: """ Details of customized scripts to execute for setting up the cluster. """ return pulumi.get(self, "setup_scripts") @property @pulumi.getter(name="sshSettings") def ssh_settings(self) -> Optional['outputs.ComputeInstanceSshSettingsResponse']: """ Specifies policy and settings for SSH access. """ return pulumi.get(self, "ssh_settings") @property @pulumi.getter def subnet(self) -> Optional['outputs.ResourceIdResponse']: """ Virtual network subnet resource ID the compute nodes belong to. """ return pulumi.get(self, "subnet") @property @pulumi.getter(name="vmSize") def vm_size(self) -> Optional[str]: """ Virtual Machine Size """ return pulumi.get(self, "vm_size") @pulumi.output_type class ComputeInstanceSshSettingsResponse(dict): """ Specifies policy and settings for SSH access. """ @staticmethod def __key_warning(key: str): suggest = None if key == "adminUserName": suggest = "admin_user_name" elif key == "sshPort": suggest = "ssh_port" elif key == "adminPublicKey": suggest = "admin_public_key" elif key == "sshPublicAccess": suggest = "ssh_public_access" if suggest: pulumi.log.warn(f"Key '{key}' not found in ComputeInstanceSshSettingsResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: ComputeInstanceSshSettingsResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: ComputeInstanceSshSettingsResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, admin_user_name: str, ssh_port: int, admin_public_key: Optional[str] = None, ssh_public_access: Optional[str] = None): """ Specifies policy and settings for SSH access. :param str admin_user_name: Describes the admin user name. :param int ssh_port: Describes the port for connecting through SSH. :param str admin_public_key: Specifies the SSH rsa public key file as a string. Use "ssh-keygen -t rsa -b 2048" to generate your SSH key pairs. :param str ssh_public_access: State of the public SSH port. Possible values are: Disabled - Indicates that the public ssh port is closed on this instance. Enabled - Indicates that the public ssh port is open and accessible according to the VNet/subnet policy if applicable. """ pulumi.set(__self__, "admin_user_name", admin_user_name) pulumi.set(__self__, "ssh_port", ssh_port) if admin_public_key is not None: pulumi.set(__self__, "admin_public_key", admin_public_key) if ssh_public_access is None: ssh_public_access = 'Disabled' if ssh_public_access is not None: pulumi.set(__self__, "ssh_public_access", ssh_public_access) @property @pulumi.getter(name="adminUserName") def admin_user_name(self) -> str: """ Describes the admin user name. """ return pulumi.get(self, "admin_user_name") @property @pulumi.getter(name="sshPort") def ssh_port(self) -> int: """ Describes the port for connecting through SSH. """ return pulumi.get(self, "ssh_port") @property @pulumi.getter(name="adminPublicKey") def admin_public_key(self) -> Optional[str]: """ Specifies the SSH rsa public key file as a string. Use "ssh-keygen -t rsa -b 2048" to generate your SSH key pairs. """ return pulumi.get(self, "admin_public_key") @property @pulumi.getter(name="sshPublicAccess") def ssh_public_access(self) -> Optional[str]: """ State of the public SSH port. Possible values are: Disabled - Indicates that the public ssh port is closed on this instance. Enabled - Indicates that the public ssh port is open and accessible according to the VNet/subnet policy if applicable. """ return pulumi.get(self, "ssh_public_access") @pulumi.output_type class ComputeSchedulesResponse(dict): """ The list of schedules to be applied on the computes """ @staticmethod def __key_warning(key: str): suggest = None if key == "computeStartStop": suggest = "compute_start_stop" if suggest: pulumi.log.warn(f"Key '{key}' not found in ComputeSchedulesResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: ComputeSchedulesResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: ComputeSchedulesResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, compute_start_stop: Optional[Sequence['outputs.ComputeStartStopScheduleResponse']] = None): """ The list of schedules to be applied on the computes :param Sequence['ComputeStartStopScheduleResponse'] compute_start_stop: The list of compute start stop schedules to be applied. """ if compute_start_stop is not None: pulumi.set(__self__, "compute_start_stop", compute_start_stop) @property @pulumi.getter(name="computeStartStop") def compute_start_stop(self) -> Optional[Sequence['outputs.ComputeStartStopScheduleResponse']]: """ The list of compute start stop schedules to be applied. """ return pulumi.get(self, "compute_start_stop") @pulumi.output_type class ComputeStartStopScheduleResponse(dict): """ Compute start stop schedule properties """ @staticmethod def __key_warning(key: str): suggest = None if key == "provisioningStatus": suggest = "provisioning_status" elif key == "triggerType": suggest = "trigger_type" if suggest: pulumi.log.warn(f"Key '{key}' not found in ComputeStartStopScheduleResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: ComputeStartStopScheduleResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: ComputeStartStopScheduleResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, id: str, provisioning_status: str, action: Optional[str] = None, cron: Optional['outputs.CronResponse'] = None, recurrence: Optional['outputs.RecurrenceResponse'] = None, status: Optional[str] = None, trigger_type: Optional[str] = None): """ Compute start stop schedule properties :param str id: Schedule id. :param str provisioning_status: The current deployment state of schedule. :param str action: The compute power action. :param 'CronResponse' cron: The workflow trigger cron for ComputeStartStop schedule type. :param 'RecurrenceResponse' recurrence: The workflow trigger recurrence for ComputeStartStop schedule type. :param str status: The schedule status. :param str trigger_type: The schedule trigger type. """ pulumi.set(__self__, "id", id) pulumi.set(__self__, "provisioning_status", provisioning_status) if action is not None: pulumi.set(__self__, "action", action) if cron is not None: pulumi.set(__self__, "cron", cron) if recurrence is not None: pulumi.set(__self__, "recurrence", recurrence) if status is not None: pulumi.set(__self__, "status", status) if trigger_type is not None: pulumi.set(__self__, "trigger_type", trigger_type) @property @pulumi.getter def id(self) -> str: """ Schedule id. """ return pulumi.get(self, "id") @property @pulumi.getter(name="provisioningStatus") def provisioning_status(self) -> str: """ The current deployment state of schedule. """ return pulumi.get(self, "provisioning_status") @property @pulumi.getter def action(self) -> Optional[str]: """ The compute power action. """ return pulumi.get(self, "action") @property @pulumi.getter def cron(self) -> Optional['outputs.CronResponse']: """ The workflow trigger cron for ComputeStartStop schedule type. """ return pulumi.get(self, "cron") @property @pulumi.getter def recurrence(self) -> Optional['outputs.RecurrenceResponse']: """ The workflow trigger recurrence for ComputeStartStop schedule type. """ return pulumi.get(self, "recurrence") @property @pulumi.getter def status(self) -> Optional[str]: """ The schedule status. """ return pulumi.get(self, "status") @property @pulumi.getter(name="triggerType") def trigger_type(self) -> Optional[str]: """ The schedule trigger type. """ return pulumi.get(self, "trigger_type") @pulumi.output_type class ContainerResourceRequirementsResponse(dict): """ The resource requirements for the container (cpu and memory). """ @staticmethod def __key_warning(key: str): suggest = None if key == "cpuLimit": suggest = "cpu_limit" elif key == "memoryInGB": suggest = "memory_in_gb" elif key == "memoryInGBLimit": suggest = "memory_in_gb_limit" if suggest: pulumi.log.warn(f"Key '{key}' not found in ContainerResourceRequirementsResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: ContainerResourceRequirementsResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: ContainerResourceRequirementsResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, cpu: Optional[float] = None, cpu_limit: Optional[float] = None, fpga: Optional[int] = None, gpu: Optional[int] = None, memory_in_gb: Optional[float] = None, memory_in_gb_limit: Optional[float] = None): """ The resource requirements for the container (cpu and memory). :param float cpu: The minimum amount of CPU cores to be used by the container. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ :param float cpu_limit: The maximum amount of CPU cores allowed to be used by the container. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ :param int fpga: The number of FPGA PCIE devices exposed to the container. Must be multiple of 2. :param int gpu: The number of GPU cores in the container. :param float memory_in_gb: The minimum amount of memory (in GB) to be used by the container. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ :param float memory_in_gb_limit: The maximum amount of memory (in GB) allowed to be used by the container. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ """ if cpu is not None: pulumi.set(__self__, "cpu", cpu) if cpu_limit is not None: pulumi.set(__self__, "cpu_limit", cpu_limit) if fpga is not None: pulumi.set(__self__, "fpga", fpga) if gpu is not None: pulumi.set(__self__, "gpu", gpu) if memory_in_gb is not None: pulumi.set(__self__, "memory_in_gb", memory_in_gb) if memory_in_gb_limit is not None: pulumi.set(__self__, "memory_in_gb_limit", memory_in_gb_limit) @property @pulumi.getter def cpu(self) -> Optional[float]: """ The minimum amount of CPU cores to be used by the container. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ """ return pulumi.get(self, "cpu") @property @pulumi.getter(name="cpuLimit") def cpu_limit(self) -> Optional[float]: """ The maximum amount of CPU cores allowed to be used by the container. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ """ return pulumi.get(self, "cpu_limit") @property @pulumi.getter def fpga(self) -> Optional[int]: """ The number of FPGA PCIE devices exposed to the container. Must be multiple of 2. """ return pulumi.get(self, "fpga") @property @pulumi.getter def gpu(self) -> Optional[int]: """ The number of GPU cores in the container. """ return pulumi.get(self, "gpu") @property @pulumi.getter(name="memoryInGB") def memory_in_gb(self) -> Optional[float]: """ The minimum amount of memory (in GB) to be used by the container. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ """ return pulumi.get(self, "memory_in_gb") @property @pulumi.getter(name="memoryInGBLimit") def memory_in_gb_limit(self) -> Optional[float]: """ The maximum amount of memory (in GB) allowed to be used by the container. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ """ return pulumi.get(self, "memory_in_gb_limit") @pulumi.output_type class CosmosDbSettingsResponse(dict): @staticmethod def __key_warning(key: str): suggest = None if key == "collectionsThroughput": suggest = "collections_throughput" if suggest: pulumi.log.warn(f"Key '{key}' not found in CosmosDbSettingsResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: CosmosDbSettingsResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: CosmosDbSettingsResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, collections_throughput: Optional[int] = None): """ :param int collections_throughput: The throughput of the collections in cosmosdb database """ if collections_throughput is not None: pulumi.set(__self__, "collections_throughput", collections_throughput) @property @pulumi.getter(name="collectionsThroughput") def collections_throughput(self) -> Optional[int]: """ The throughput of the collections in cosmosdb database """ return pulumi.get(self, "collections_throughput") @pulumi.output_type class CronResponse(dict): """ The workflow trigger cron for ComputeStartStop schedule type. """ @staticmethod def __key_warning(key: str): suggest = None if key == "startTime": suggest = "start_time" elif key == "timeZone": suggest = "time_zone" if suggest: pulumi.log.warn(f"Key '{key}' not found in CronResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: CronResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: CronResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, expression: Optional[str] = None, start_time: Optional[str] = None, time_zone: Optional[str] = None): """ The workflow trigger cron for ComputeStartStop schedule type. :param str expression: The cron expression. :param str start_time: The start time. :param str time_zone: The time zone. """ if expression is not None: pulumi.set(__self__, "expression", expression) if start_time is not None: pulumi.set(__self__, "start_time", start_time) if time_zone is not None: pulumi.set(__self__, "time_zone", time_zone) @property @pulumi.getter def expression(self) -> Optional[str]: """ The cron expression. """ return pulumi.get(self, "expression") @property @pulumi.getter(name="startTime") def start_time(self) -> Optional[str]: """ The start time. """ return pulumi.get(self, "start_time") @property @pulumi.getter(name="timeZone") def time_zone(self) -> Optional[str]: """ The time zone. """ return pulumi.get(self, "time_zone") @pulumi.output_type class DataContainerResponse(dict): """ Container for data asset versions. """ def __init__(__self__, *, description: Optional[str] = None, properties: Optional[Mapping[str, str]] = None, tags: Optional[Mapping[str, str]] = None): """ Container for data asset versions. :param str description: The asset description text. :param Mapping[str, str] properties: The asset property dictionary. :param Mapping[str, str] tags: Tag dictionary. Tags can be added, removed, and updated. """ if description is not None: pulumi.set(__self__, "description", description) if properties is not None: pulumi.set(__self__, "properties", properties) if tags is not None: pulumi.set(__self__, "tags", tags) @property @pulumi.getter def description(self) -> Optional[str]: """ The asset description text. """ return pulumi.get(self, "description") @property @pulumi.getter def properties(self) -> Optional[Mapping[str, str]]: """ The asset property dictionary. """ return pulumi.get(self, "properties") @property @pulumi.getter def tags(self) -> Optional[Mapping[str, str]]: """ Tag dictionary. Tags can be added, removed, and updated. """ return pulumi.get(self, "tags") @pulumi.output_type class DataFactoryResponse(dict): """ A DataFactory compute. """ @staticmethod def __key_warning(key: str): suggest = None if key == "computeType": suggest = "compute_type" elif key == "createdOn": suggest = "created_on" elif key == "isAttachedCompute": suggest = "is_attached_compute" elif key == "modifiedOn": suggest = "modified_on" elif key == "provisioningErrors": suggest = "provisioning_errors" elif key == "provisioningState": suggest = "provisioning_state" elif key == "computeLocation": suggest = "compute_location" elif key == "disableLocalAuth": suggest = "disable_local_auth" elif key == "resourceId": suggest = "resource_id" if suggest: pulumi.log.warn(f"Key '{key}' not found in DataFactoryResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: DataFactoryResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: DataFactoryResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, compute_type: str, created_on: str, is_attached_compute: bool, modified_on: str, provisioning_errors: Sequence['outputs.ErrorResponseResponse'], provisioning_state: str, compute_location: Optional[str] = None, description: Optional[str] = None, disable_local_auth: Optional[bool] = None, resource_id: Optional[str] = None): """ A DataFactory compute. :param str compute_type: The type of compute Expected value is 'DataFactory'. :param str created_on: The time at which the compute was created. :param bool is_attached_compute: Indicating whether the compute was provisioned by user and brought from outside if true, or machine learning service provisioned it if false. :param str modified_on: The time at which the compute was last modified. :param Sequence['ErrorResponseResponse'] provisioning_errors: Errors during provisioning :param str provisioning_state: The provision state of the cluster. Valid values are Unknown, Updating, Provisioning, Succeeded, and Failed. :param str compute_location: Location for the underlying compute :param str description: The description of the Machine Learning compute. :param bool disable_local_auth: Opt-out of local authentication and ensure customers can use only MSI and AAD exclusively for authentication. :param str resource_id: ARM resource id of the underlying compute """ pulumi.set(__self__, "compute_type", 'DataFactory') pulumi.set(__self__, "created_on", created_on) pulumi.set(__self__, "is_attached_compute", is_attached_compute) pulumi.set(__self__, "modified_on", modified_on) pulumi.set(__self__, "provisioning_errors", provisioning_errors) pulumi.set(__self__, "provisioning_state", provisioning_state) if compute_location is not None: pulumi.set(__self__, "compute_location", compute_location) if description is not None: pulumi.set(__self__, "description", description) if disable_local_auth is not None: pulumi.set(__self__, "disable_local_auth", disable_local_auth) if resource_id is not None: pulumi.set(__self__, "resource_id", resource_id) @property @pulumi.getter(name="computeType") def compute_type(self) -> str: """ The type of compute Expected value is 'DataFactory'. """ return pulumi.get(self, "compute_type") @property @pulumi.getter(name="createdOn") def created_on(self) -> str: """ The time at which the compute was created. """ return pulumi.get(self, "created_on") @property @pulumi.getter(name="isAttachedCompute") def is_attached_compute(self) -> bool: """ Indicating whether the compute was provisioned by user and brought from outside if true, or machine learning service provisioned it if false. """ return pulumi.get(self, "is_attached_compute") @property @pulumi.getter(name="modifiedOn") def modified_on(self) -> str: """ The time at which the compute was last modified. """ return pulumi.get(self, "modified_on") @property @pulumi.getter(name="provisioningErrors") def provisioning_errors(self) -> Sequence['outputs.ErrorResponseResponse']: """ Errors during provisioning """ return pulumi.get(self, "provisioning_errors") @property @pulumi.getter(name="provisioningState") def provisioning_state(self) -> str: """ The provision state of the cluster. Valid values are Unknown, Updating, Provisioning, Succeeded, and Failed. """ return pulumi.get(self, "provisioning_state") @property @pulumi.getter(name="computeLocation") def compute_location(self) -> Optional[str]: """ Location for the underlying compute """ return pulumi.get(self, "compute_location") @property @pulumi.getter def description(self) -> Optional[str]: """ The description of the Machine Learning compute. """ return pulumi.get(self, "description") @property @pulumi.getter(name="disableLocalAuth") def disable_local_auth(self) -> Optional[bool]: """ Opt-out of local authentication and ensure customers can use only MSI and AAD exclusively for authentication. """ return pulumi.get(self, "disable_local_auth") @property @pulumi.getter(name="resourceId") def resource_id(self) -> Optional[str]: """ ARM resource id of the underlying compute """ return pulumi.get(self, "resource_id") @pulumi.output_type class DataLakeAnalyticsResponse(dict): """ A DataLakeAnalytics compute. """ @staticmethod def __key_warning(key: str): suggest = None if key == "computeType": suggest = "compute_type" elif key == "createdOn": suggest = "created_on" elif key == "isAttachedCompute": suggest = "is_attached_compute" elif key == "modifiedOn": suggest = "modified_on" elif key == "provisioningErrors": suggest = "provisioning_errors" elif key == "provisioningState": suggest = "provisioning_state" elif key == "computeLocation": suggest = "compute_location" elif key == "disableLocalAuth": suggest = "disable_local_auth" elif key == "resourceId": suggest = "resource_id" if suggest: pulumi.log.warn(f"Key '{key}' not found in DataLakeAnalyticsResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: DataLakeAnalyticsResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: DataLakeAnalyticsResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, compute_type: str, created_on: str, is_attached_compute: bool, modified_on: str, provisioning_errors: Sequence['outputs.ErrorResponseResponse'], provisioning_state: str, compute_location: Optional[str] = None, description: Optional[str] = None, disable_local_auth: Optional[bool] = None, properties: Optional['outputs.DataLakeAnalyticsResponseProperties'] = None, resource_id: Optional[str] = None): """ A DataLakeAnalytics compute. :param str compute_type: The type of compute Expected value is 'DataLakeAnalytics'. :param str created_on: The time at which the compute was created. :param bool is_attached_compute: Indicating whether the compute was provisioned by user and brought from outside if true, or machine learning service provisioned it if false. :param str modified_on: The time at which the compute was last modified. :param Sequence['ErrorResponseResponse'] provisioning_errors: Errors during provisioning :param str provisioning_state: The provision state of the cluster. Valid values are Unknown, Updating, Provisioning, Succeeded, and Failed. :param str compute_location: Location for the underlying compute :param str description: The description of the Machine Learning compute. :param bool disable_local_auth: Opt-out of local authentication and ensure customers can use only MSI and AAD exclusively for authentication. :param str resource_id: ARM resource id of the underlying compute """ pulumi.set(__self__, "compute_type", 'DataLakeAnalytics') pulumi.set(__self__, "created_on", created_on) pulumi.set(__self__, "is_attached_compute", is_attached_compute) pulumi.set(__self__, "modified_on", modified_on) pulumi.set(__self__, "provisioning_errors", provisioning_errors) pulumi.set(__self__, "provisioning_state", provisioning_state) if compute_location is not None: pulumi.set(__self__, "compute_location", compute_location) if description is not None: pulumi.set(__self__, "description", description) if disable_local_auth is not None: pulumi.set(__self__, "disable_local_auth", disable_local_auth) if properties is not None: pulumi.set(__self__, "properties", properties) if resource_id is not None: pulumi.set(__self__, "resource_id", resource_id) @property @pulumi.getter(name="computeType") def compute_type(self) -> str: """ The type of compute Expected value is 'DataLakeAnalytics'. """ return pulumi.get(self, "compute_type") @property @pulumi.getter(name="createdOn") def created_on(self) -> str: """ The time at which the compute was created. """ return pulumi.get(self, "created_on") @property @pulumi.getter(name="isAttachedCompute") def is_attached_compute(self) -> bool: """ Indicating whether the compute was provisioned by user and brought from outside if true, or machine learning service provisioned it if false. """ return pulumi.get(self, "is_attached_compute") @property @pulumi.getter(name="modifiedOn") def modified_on(self) -> str: """ The time at which the compute was last modified. """ return pulumi.get(self, "modified_on") @property @pulumi.getter(name="provisioningErrors") def provisioning_errors(self) -> Sequence['outputs.ErrorResponseResponse']: """ Errors during provisioning """ return pulumi.get(self, "provisioning_errors") @property @pulumi.getter(name="provisioningState") def provisioning_state(self) -> str: """ The provision state of the cluster. Valid values are Unknown, Updating, Provisioning, Succeeded, and Failed. """ return pulumi.get(self, "provisioning_state") @property @pulumi.getter(name="computeLocation") def compute_location(self) -> Optional[str]: """ Location for the underlying compute """ return pulumi.get(self, "compute_location") @property @pulumi.getter def description(self) -> Optional[str]: """ The description of the Machine Learning compute. """ return pulumi.get(self, "description") @property @pulumi.getter(name="disableLocalAuth") def disable_local_auth(self) -> Optional[bool]: """ Opt-out of local authentication and ensure customers can use only MSI and AAD exclusively for authentication. """ return pulumi.get(self, "disable_local_auth") @property @pulumi.getter def properties(self) -> Optional['outputs.DataLakeAnalyticsResponseProperties']: return pulumi.get(self, "properties") @property @pulumi.getter(name="resourceId") def resource_id(self) -> Optional[str]: """ ARM resource id of the underlying compute """ return pulumi.get(self, "resource_id") @pulumi.output_type class DataLakeAnalyticsResponseProperties(dict): @staticmethod def __key_warning(key: str): suggest = None if key == "dataLakeStoreAccountName": suggest = "data_lake_store_account_name" if suggest: pulumi.log.warn(f"Key '{key}' not found in DataLakeAnalyticsResponseProperties. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: DataLakeAnalyticsResponseProperties.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: DataLakeAnalyticsResponseProperties.__key_warning(key) return super().get(key, default) def __init__(__self__, *, data_lake_store_account_name: Optional[str] = None): """ :param str data_lake_store_account_name: DataLake Store Account Name """ if data_lake_store_account_name is not None: pulumi.set(__self__, "data_lake_store_account_name", data_lake_store_account_name) @property @pulumi.getter(name="dataLakeStoreAccountName") def data_lake_store_account_name(self) -> Optional[str]: """ DataLake Store Account Name """ return pulumi.get(self, "data_lake_store_account_name") @pulumi.output_type class DataPathAssetReferenceResponse(dict): """ Reference to an asset via its path in a datastore. """ @staticmethod def __key_warning(key: str): suggest = None if key == "referenceType": suggest = "reference_type" elif key == "datastoreId": suggest = "datastore_id" if suggest: pulumi.log.warn(f"Key '{key}' not found in DataPathAssetReferenceResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: DataPathAssetReferenceResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: DataPathAssetReferenceResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, reference_type: str, datastore_id: Optional[str] = None, path: Optional[str] = None): """ Reference to an asset via its path in a datastore. :param str reference_type: Enum to determine which reference method to use for an asset. Expected value is 'DataPath'. :param str datastore_id: ARM resource ID of the datastore where the asset is located. :param str path: The path of the file/directory in the datastore. """ pulumi.set(__self__, "reference_type", 'DataPath') if datastore_id is not None: pulumi.set(__self__, "datastore_id", datastore_id) if path is not None: pulumi.set(__self__, "path", path) @property @pulumi.getter(name="referenceType") def reference_type(self) -> str: """ Enum to determine which reference method to use for an asset. Expected value is 'DataPath'. """ return pulumi.get(self, "reference_type") @property @pulumi.getter(name="datastoreId") def datastore_id(self) -> Optional[str]: """ ARM resource ID of the datastore where the asset is located. """ return pulumi.get(self, "datastore_id") @property @pulumi.getter def path(self) -> Optional[str]: """ The path of the file/directory in the datastore. """ return pulumi.get(self, "path") @pulumi.output_type class DataVersionResponse(dict): """ Data asset version details. """ @staticmethod def __key_warning(key: str): suggest = None if key == "datasetType": suggest = "dataset_type" elif key == "datastoreId": suggest = "datastore_id" elif key == "isAnonymous": suggest = "is_anonymous" if suggest: pulumi.log.warn(f"Key '{key}' not found in DataVersionResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: DataVersionResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: DataVersionResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, path: str, dataset_type: Optional[str] = None, datastore_id: Optional[str] = None, description: Optional[str] = None, is_anonymous: Optional[bool] = None, properties: Optional[Mapping[str, str]] = None, tags: Optional[Mapping[str, str]] = None): """ Data asset version details. :param str path: The path of the file/directory in the datastore. :param str dataset_type: The Format of dataset. :param str datastore_id: ARM resource ID of the datastore where the asset is located. :param str description: The asset description text. :param bool is_anonymous: If the name version are system generated (anonymous registration). :param Mapping[str, str] properties: The asset property dictionary. :param Mapping[str, str] tags: Tag dictionary. Tags can be added, removed, and updated. """ pulumi.set(__self__, "path", path) if dataset_type is not None: pulumi.set(__self__, "dataset_type", dataset_type) if datastore_id is not None: pulumi.set(__self__, "datastore_id", datastore_id) if description is not None: pulumi.set(__self__, "description", description) if is_anonymous is not None: pulumi.set(__self__, "is_anonymous", is_anonymous) if properties is not None: pulumi.set(__self__, "properties", properties) if tags is not None: pulumi.set(__self__, "tags", tags) @property @pulumi.getter def path(self) -> str: """ The path of the file/directory in the datastore. """ return pulumi.get(self, "path") @property @pulumi.getter(name="datasetType") def dataset_type(self) -> Optional[str]: """ The Format of dataset. """ return pulumi.get(self, "dataset_type") @property @pulumi.getter(name="datastoreId") def datastore_id(self) -> Optional[str]: """ ARM resource ID of the datastore where the asset is located. """ return pulumi.get(self, "datastore_id") @property @pulumi.getter def description(self) -> Optional[str]: """ The asset description text. """ return pulumi.get(self, "description") @property @pulumi.getter(name="isAnonymous") def is_anonymous(self) -> Optional[bool]: """ If the name version are system generated (anonymous registration). """ return pulumi.get(self, "is_anonymous") @property @pulumi.getter def properties(self) -> Optional[Mapping[str, str]]: """ The asset property dictionary. """ return pulumi.get(self, "properties") @property @pulumi.getter def tags(self) -> Optional[Mapping[str, str]]: """ Tag dictionary. Tags can be added, removed, and updated. """ return pulumi.get(self, "tags") @pulumi.output_type class DatabricksResponse(dict): """ A DataFactory compute. """ @staticmethod def __key_warning(key: str): suggest = None if key == "computeType": suggest = "compute_type" elif key == "createdOn": suggest = "created_on" elif key == "isAttachedCompute": suggest = "is_attached_compute" elif key == "modifiedOn": suggest = "modified_on" elif key == "provisioningErrors": suggest = "provisioning_errors" elif key == "provisioningState": suggest = "provisioning_state" elif key == "computeLocation": suggest = "compute_location" elif key == "disableLocalAuth": suggest = "disable_local_auth" elif key == "resourceId": suggest = "resource_id" if suggest: pulumi.log.warn(f"Key '{key}' not found in DatabricksResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: DatabricksResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: DatabricksResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, compute_type: str, created_on: str, is_attached_compute: bool, modified_on: str, provisioning_errors: Sequence['outputs.ErrorResponseResponse'], provisioning_state: str, compute_location: Optional[str] = None, description: Optional[str] = None, disable_local_auth: Optional[bool] = None, properties: Optional['outputs.DatabricksResponseProperties'] = None, resource_id: Optional[str] = None): """ A DataFactory compute. :param str compute_type: The type of compute Expected value is 'Databricks'. :param str created_on: The time at which the compute was created. :param bool is_attached_compute: Indicating whether the compute was provisioned by user and brought from outside if true, or machine learning service provisioned it if false. :param str modified_on: The time at which the compute was last modified. :param Sequence['ErrorResponseResponse'] provisioning_errors: Errors during provisioning :param str provisioning_state: The provision state of the cluster. Valid values are Unknown, Updating, Provisioning, Succeeded, and Failed. :param str compute_location: Location for the underlying compute :param str description: The description of the Machine Learning compute. :param bool disable_local_auth: Opt-out of local authentication and ensure customers can use only MSI and AAD exclusively for authentication. :param str resource_id: ARM resource id of the underlying compute """ pulumi.set(__self__, "compute_type", 'Databricks') pulumi.set(__self__, "created_on", created_on) pulumi.set(__self__, "is_attached_compute", is_attached_compute) pulumi.set(__self__, "modified_on", modified_on) pulumi.set(__self__, "provisioning_errors", provisioning_errors) pulumi.set(__self__, "provisioning_state", provisioning_state) if compute_location is not None: pulumi.set(__self__, "compute_location", compute_location) if description is not None: pulumi.set(__self__, "description", description) if disable_local_auth is not None: pulumi.set(__self__, "disable_local_auth", disable_local_auth) if properties is not None: pulumi.set(__self__, "properties", properties) if resource_id is not None: pulumi.set(__self__, "resource_id", resource_id) @property @pulumi.getter(name="computeType") def compute_type(self) -> str: """ The type of compute Expected value is 'Databricks'. """ return pulumi.get(self, "compute_type") @property @pulumi.getter(name="createdOn") def created_on(self) -> str: """ The time at which the compute was created. """ return pulumi.get(self, "created_on") @property @pulumi.getter(name="isAttachedCompute") def is_attached_compute(self) -> bool: """ Indicating whether the compute was provisioned by user and brought from outside if true, or machine learning service provisioned it if false. """ return pulumi.get(self, "is_attached_compute") @property @pulumi.getter(name="modifiedOn") def modified_on(self) -> str: """ The time at which the compute was last modified. """ return pulumi.get(self, "modified_on") @property @pulumi.getter(name="provisioningErrors") def provisioning_errors(self) -> Sequence['outputs.ErrorResponseResponse']: """ Errors during provisioning """ return pulumi.get(self, "provisioning_errors") @property @pulumi.getter(name="provisioningState") def provisioning_state(self) -> str: """ The provision state of the cluster. Valid values are Unknown, Updating, Provisioning, Succeeded, and Failed. """ return pulumi.get(self, "provisioning_state") @property @pulumi.getter(name="computeLocation") def compute_location(self) -> Optional[str]: """ Location for the underlying compute """ return pulumi.get(self, "compute_location") @property @pulumi.getter def description(self) -> Optional[str]: """ The description of the Machine Learning compute. """ return pulumi.get(self, "description") @property @pulumi.getter(name="disableLocalAuth") def disable_local_auth(self) -> Optional[bool]: """ Opt-out of local authentication and ensure customers can use only MSI and AAD exclusively for authentication. """ return pulumi.get(self, "disable_local_auth") @property @pulumi.getter def properties(self) -> Optional['outputs.DatabricksResponseProperties']: return pulumi.get(self, "properties") @property @pulumi.getter(name="resourceId") def resource_id(self) -> Optional[str]: """ ARM resource id of the underlying compute """ return pulumi.get(self, "resource_id") @pulumi.output_type class DatabricksResponseProperties(dict): @staticmethod def __key_warning(key: str): suggest = None if key == "databricksAccessToken": suggest = "databricks_access_token" elif key == "workspaceUrl": suggest = "workspace_url" if suggest: pulumi.log.warn(f"Key '{key}' not found in DatabricksResponseProperties. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: DatabricksResponseProperties.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: DatabricksResponseProperties.__key_warning(key) return super().get(key, default) def __init__(__self__, *, databricks_access_token: Optional[str] = None, workspace_url: Optional[str] = None): """ :param str databricks_access_token: Databricks access token :param str workspace_url: Workspace Url """ if databricks_access_token is not None: pulumi.set(__self__, "databricks_access_token", databricks_access_token) if workspace_url is not None: pulumi.set(__self__, "workspace_url", workspace_url) @property @pulumi.getter(name="databricksAccessToken") def databricks_access_token(self) -> Optional[str]: """ Databricks access token """ return pulumi.get(self, "databricks_access_token") @property @pulumi.getter(name="workspaceUrl") def workspace_url(self) -> Optional[str]: """ Workspace Url """ return pulumi.get(self, "workspace_url") @pulumi.output_type class DatastorePropertiesResponse(dict): """ Datastore definition. """ @staticmethod def __key_warning(key: str): suggest = None if key == "hasBeenValidated": suggest = "has_been_validated" elif key == "isDefault": suggest = "is_default" elif key == "linkedInfo": suggest = "linked_info" if suggest: pulumi.log.warn(f"Key '{key}' not found in DatastorePropertiesResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: DatastorePropertiesResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: DatastorePropertiesResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, contents: Any, has_been_validated: bool, description: Optional[str] = None, is_default: Optional[bool] = None, linked_info: Optional['outputs.LinkedInfoResponse'] = None, properties: Optional[Mapping[str, str]] = None, tags: Optional[Mapping[str, str]] = None): """ Datastore definition. :param Union['AzureBlobContentsResponse', 'AzureDataLakeGen1ContentsResponse', 'AzureDataLakeGen2ContentsResponse', 'AzureFileContentsResponse', 'AzurePostgreSqlContentsResponse', 'AzureSqlDatabaseContentsResponse', 'GlusterFsContentsResponse'] contents: Reference to the datastore storage contents. :param bool has_been_validated: Whether the service has validated access to the datastore with the provided credentials. :param str description: The asset description text. :param bool is_default: Whether this datastore is the default for the workspace. :param 'LinkedInfoResponse' linked_info: Information about the datastore origin, if linked. :param Mapping[str, str] properties: The asset property dictionary. :param Mapping[str, str] tags: Tag dictionary. Tags can be added, removed, and updated. """ pulumi.set(__self__, "contents", contents) pulumi.set(__self__, "has_been_validated", has_been_validated) if description is not None: pulumi.set(__self__, "description", description) if is_default is not None: pulumi.set(__self__, "is_default", is_default) if linked_info is not None: pulumi.set(__self__, "linked_info", linked_info) if properties is not None: pulumi.set(__self__, "properties", properties) if tags is not None: pulumi.set(__self__, "tags", tags) @property @pulumi.getter def contents(self) -> Any: """ Reference to the datastore storage contents. """ return pulumi.get(self, "contents") @property @pulumi.getter(name="hasBeenValidated") def has_been_validated(self) -> bool: """ Whether the service has validated access to the datastore with the provided credentials. """ return pulumi.get(self, "has_been_validated") @property @pulumi.getter def description(self) -> Optional[str]: """ The asset description text. """ return pulumi.get(self, "description") @property @pulumi.getter(name="isDefault") def is_default(self) -> Optional[bool]: """ Whether this datastore is the default for the workspace. """ return pulumi.get(self, "is_default") @property @pulumi.getter(name="linkedInfo") def linked_info(self) -> Optional['outputs.LinkedInfoResponse']: """ Information about the datastore origin, if linked. """ return pulumi.get(self, "linked_info") @property @pulumi.getter def properties(self) -> Optional[Mapping[str, str]]: """ The asset property dictionary. """ return pulumi.get(self, "properties") @property @pulumi.getter def tags(self) -> Optional[Mapping[str, str]]: """ Tag dictionary. Tags can be added, removed, and updated. """ return pulumi.get(self, "tags") @pulumi.output_type class DockerBuildResponse(dict): """ Class to represent configuration settings for Docker Build """ @staticmethod def __key_warning(key: str): suggest = None if key == "dockerSpecificationType": suggest = "docker_specification_type" if suggest: pulumi.log.warn(f"Key '{key}' not found in DockerBuildResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: DockerBuildResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: DockerBuildResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, docker_specification_type: str, dockerfile: str, context: Optional[str] = None, platform: Optional['outputs.DockerImagePlatformResponse'] = None): """ Class to represent configuration settings for Docker Build :param str docker_specification_type: Enum to determine docker specification type. Must be either Build or Image. Expected value is 'Build'. :param str dockerfile: Docker command line instructions to assemble an image. <seealso href="https://repo2docker.readthedocs.io/en/latest/config_files.html#dockerfile-advanced-environments" /> :param str context: Path to a snapshot of the Docker Context. This property is only valid if Dockerfile is specified. The path is relative to the asset path which must contain a single Blob URI value. <seealso href="https://docs.docker.com/engine/context/working-with-contexts/" /> :param 'DockerImagePlatformResponse' platform: The platform information of the docker image. """ pulumi.set(__self__, "docker_specification_type", 'Build') pulumi.set(__self__, "dockerfile", dockerfile) if context is not None: pulumi.set(__self__, "context", context) if platform is not None: pulumi.set(__self__, "platform", platform) @property @pulumi.getter(name="dockerSpecificationType") def docker_specification_type(self) -> str: """ Enum to determine docker specification type. Must be either Build or Image. Expected value is 'Build'. """ return pulumi.get(self, "docker_specification_type") @property @pulumi.getter def dockerfile(self) -> str: """ Docker command line instructions to assemble an image. <seealso href="https://repo2docker.readthedocs.io/en/latest/config_files.html#dockerfile-advanced-environments" /> """ return pulumi.get(self, "dockerfile") @property @pulumi.getter def context(self) -> Optional[str]: """ Path to a snapshot of the Docker Context. This property is only valid if Dockerfile is specified. The path is relative to the asset path which must contain a single Blob URI value. <seealso href="https://docs.docker.com/engine/context/working-with-contexts/" /> """ return pulumi.get(self, "context") @property @pulumi.getter def platform(self) -> Optional['outputs.DockerImagePlatformResponse']: """ The platform information of the docker image. """ return pulumi.get(self, "platform") @pulumi.output_type class DockerImagePlatformResponse(dict): @staticmethod def __key_warning(key: str): suggest = None if key == "operatingSystemType": suggest = "operating_system_type" if suggest: pulumi.log.warn(f"Key '{key}' not found in DockerImagePlatformResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: DockerImagePlatformResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: DockerImagePlatformResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, operating_system_type: Optional[str] = None): """ :param str operating_system_type: The OS type the Environment. """ if operating_system_type is not None: pulumi.set(__self__, "operating_system_type", operating_system_type) @property @pulumi.getter(name="operatingSystemType") def operating_system_type(self) -> Optional[str]: """ The OS type the Environment. """ return pulumi.get(self, "operating_system_type") @pulumi.output_type class DockerImageResponse(dict): """ Class to represent configuration settings for Docker Build """ @staticmethod def __key_warning(key: str): suggest = None if key == "dockerImageUri": suggest = "docker_image_uri" elif key == "dockerSpecificationType": suggest = "docker_specification_type" if suggest: pulumi.log.warn(f"Key '{key}' not found in DockerImageResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: DockerImageResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: DockerImageResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, docker_image_uri: str, docker_specification_type: str, platform: Optional['outputs.DockerImagePlatformResponse'] = None): """ Class to represent configuration settings for Docker Build :param str docker_image_uri: Image name of a custom base image. <seealso href="https://docs.microsoft.com/en-us/azure/machine-learning/how-to-deploy-custom-docker-image#use-a-custom-base-image" /> :param str docker_specification_type: Enum to determine docker specification type. Must be either Build or Image. Expected value is 'Image'. :param 'DockerImagePlatformResponse' platform: The platform information of the docker image. """ pulumi.set(__self__, "docker_image_uri", docker_image_uri) pulumi.set(__self__, "docker_specification_type", 'Image') if platform is not None: pulumi.set(__self__, "platform", platform) @property @pulumi.getter(name="dockerImageUri") def docker_image_uri(self) -> str: """ Image name of a custom base image. <seealso href="https://docs.microsoft.com/en-us/azure/machine-learning/how-to-deploy-custom-docker-image#use-a-custom-base-image" /> """ return pulumi.get(self, "docker_image_uri") @property @pulumi.getter(name="dockerSpecificationType") def docker_specification_type(self) -> str: """ Enum to determine docker specification type. Must be either Build or Image. Expected value is 'Image'. """ return pulumi.get(self, "docker_specification_type") @property @pulumi.getter def platform(self) -> Optional['outputs.DockerImagePlatformResponse']: """ The platform information of the docker image. """ return pulumi.get(self, "platform") @pulumi.output_type class EncryptionPropertyResponse(dict): @staticmethod def __key_warning(key: str): suggest = None if key == "keyVaultProperties": suggest = "key_vault_properties" if suggest: pulumi.log.warn(f"Key '{key}' not found in EncryptionPropertyResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: EncryptionPropertyResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: EncryptionPropertyResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, key_vault_properties: 'outputs.KeyVaultPropertiesResponse', status: str, identity: Optional['outputs.IdentityForCmkResponse'] = None): """ :param 'KeyVaultPropertiesResponse' key_vault_properties: Customer Key vault properties. :param str status: Indicates whether or not the encryption is enabled for the workspace. :param 'IdentityForCmkResponse' identity: The identity that will be used to access the key vault for encryption at rest. """ pulumi.set(__self__, "key_vault_properties", key_vault_properties) pulumi.set(__self__, "status", status) if identity is not None: pulumi.set(__self__, "identity", identity) @property @pulumi.getter(name="keyVaultProperties") def key_vault_properties(self) -> 'outputs.KeyVaultPropertiesResponse': """ Customer Key vault properties. """ return pulumi.get(self, "key_vault_properties") @property @pulumi.getter def status(self) -> str: """ Indicates whether or not the encryption is enabled for the workspace. """ return pulumi.get(self, "status") @property @pulumi.getter def identity(self) -> Optional['outputs.IdentityForCmkResponse']: """ The identity that will be used to access the key vault for encryption at rest. """ return pulumi.get(self, "identity") @pulumi.output_type class EnvironmentContainerResponse(dict): """ Container for environment specification versions. """ def __init__(__self__, *, description: Optional[str] = None, properties: Optional[Mapping[str, str]] = None, tags: Optional[Mapping[str, str]] = None): """ Container for environment specification versions. :param str description: The asset description text. :param Mapping[str, str] properties: The asset property dictionary. :param Mapping[str, str] tags: Tag dictionary. Tags can be added, removed, and updated. """ if description is not None: pulumi.set(__self__, "description", description) if properties is not None: pulumi.set(__self__, "properties", properties) if tags is not None: pulumi.set(__self__, "tags", tags) @property @pulumi.getter def description(self) -> Optional[str]: """ The asset description text. """ return pulumi.get(self, "description") @property @pulumi.getter def properties(self) -> Optional[Mapping[str, str]]: """ The asset property dictionary. """ return pulumi.get(self, "properties") @property @pulumi.getter def tags(self) -> Optional[Mapping[str, str]]: """ Tag dictionary. Tags can be added, removed, and updated. """ return pulumi.get(self, "tags") @pulumi.output_type class EnvironmentSpecificationVersionResponse(dict): """ Environment specification version details. <see href="https://repo2docker.readthedocs.io/en/latest/specification.html" /> """ @staticmethod def __key_warning(key: str): suggest = None if key == "environmentSpecificationType": suggest = "environment_specification_type" elif key == "condaFile": suggest = "conda_file" elif key == "inferenceContainerProperties": suggest = "inference_container_properties" elif key == "isAnonymous": suggest = "is_anonymous" if suggest: pulumi.log.warn(f"Key '{key}' not found in EnvironmentSpecificationVersionResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: EnvironmentSpecificationVersionResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: EnvironmentSpecificationVersionResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, environment_specification_type: str, conda_file: Optional[str] = None, description: Optional[str] = None, docker: Optional[Any] = None, inference_container_properties: Optional['outputs.InferenceContainerPropertiesResponse'] = None, is_anonymous: Optional[bool] = None, properties: Optional[Mapping[str, str]] = None, tags: Optional[Mapping[str, str]] = None): """ Environment specification version details. <see href="https://repo2docker.readthedocs.io/en/latest/specification.html" /> :param str environment_specification_type: Environment specification is either user managed or curated by the Azure ML service <see href="https://docs.microsoft.com/en-us/azure/machine-learning/resource-curated-environments" /> :param str conda_file: Standard configuration file used by Conda that lets you install any kind of package, including Python, R, and C/C++ packages. <see href="https://repo2docker.readthedocs.io/en/latest/config_files.html#environment-yml-install-a-conda-environment" /> :param str description: The asset description text. :param Union['DockerBuildResponse', 'DockerImageResponse'] docker: Configuration settings for Docker. :param 'InferenceContainerPropertiesResponse' inference_container_properties: Defines configuration specific to inference. :param bool is_anonymous: If the name version are system generated (anonymous registration). :param Mapping[str, str] properties: The asset property dictionary. :param Mapping[str, str] tags: Tag dictionary. Tags can be added, removed, and updated. """ pulumi.set(__self__, "environment_specification_type", environment_specification_type) if conda_file is not None: pulumi.set(__self__, "conda_file", conda_file) if description is not None: pulumi.set(__self__, "description", description) if docker is not None: pulumi.set(__self__, "docker", docker) if inference_container_properties is not None: pulumi.set(__self__, "inference_container_properties", inference_container_properties) if is_anonymous is not None: pulumi.set(__self__, "is_anonymous", is_anonymous) if properties is not None: pulumi.set(__self__, "properties", properties) if tags is not None: pulumi.set(__self__, "tags", tags) @property @pulumi.getter(name="environmentSpecificationType") def environment_specification_type(self) -> str: """ Environment specification is either user managed or curated by the Azure ML service <see href="https://docs.microsoft.com/en-us/azure/machine-learning/resource-curated-environments" /> """ return pulumi.get(self, "environment_specification_type") @property @pulumi.getter(name="condaFile") def conda_file(self) -> Optional[str]: """ Standard configuration file used by Conda that lets you install any kind of package, including Python, R, and C/C++ packages. <see href="https://repo2docker.readthedocs.io/en/latest/config_files.html#environment-yml-install-a-conda-environment" /> """ return pulumi.get(self, "conda_file") @property @pulumi.getter def description(self) -> Optional[str]: """ The asset description text. """ return pulumi.get(self, "description") @property @pulumi.getter def docker(self) -> Optional[Any]: """ Configuration settings for Docker. """ return pulumi.get(self, "docker") @property @pulumi.getter(name="inferenceContainerProperties") def inference_container_properties(self) -> Optional['outputs.InferenceContainerPropertiesResponse']: """ Defines configuration specific to inference. """ return pulumi.get(self, "inference_container_properties") @property @pulumi.getter(name="isAnonymous") def is_anonymous(self) -> Optional[bool]: """ If the name version are system generated (anonymous registration). """ return pulumi.get(self, "is_anonymous") @property @pulumi.getter def properties(self) -> Optional[Mapping[str, str]]: """ The asset property dictionary. """ return pulumi.get(self, "properties") @property @pulumi.getter def tags(self) -> Optional[Mapping[str, str]]: """ Tag dictionary. Tags can be added, removed, and updated. """ return pulumi.get(self, "tags") @pulumi.output_type class ErrorAdditionalInfoResponse(dict): """ The resource management error additional info. """ def __init__(__self__, *, info: Any, type: str): """ The resource management error additional info. :param Any info: The additional info. :param str type: The additional info type. """ pulumi.set(__self__, "info", info) pulumi.set(__self__, "type", type) @property @pulumi.getter def info(self) -> Any: """ The additional info. """ return pulumi.get(self, "info") @property @pulumi.getter def type(self) -> str: """ The additional info type. """ return pulumi.get(self, "type") @pulumi.output_type class ErrorDetailResponse(dict): """ The error detail. """ @staticmethod def __key_warning(key: str): suggest = None if key == "additionalInfo": suggest = "additional_info" if suggest: pulumi.log.warn(f"Key '{key}' not found in ErrorDetailResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: ErrorDetailResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: ErrorDetailResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, additional_info: Sequence['outputs.ErrorAdditionalInfoResponse'], code: str, details: Sequence['outputs.ErrorDetailResponse'], message: str, target: str): """ The error detail. :param Sequence['ErrorAdditionalInfoResponse'] additional_info: The error additional info. :param str code: The error code. :param Sequence['ErrorDetailResponse'] details: The error details. :param str message: The error message. :param str target: The error target. """ pulumi.set(__self__, "additional_info", additional_info) pulumi.set(__self__, "code", code) pulumi.set(__self__, "details", details) pulumi.set(__self__, "message", message) pulumi.set(__self__, "target", target) @property @pulumi.getter(name="additionalInfo") def additional_info(self) -> Sequence['outputs.ErrorAdditionalInfoResponse']: """ The error additional info. """ return pulumi.get(self, "additional_info") @property @pulumi.getter def code(self) -> str: """ The error code. """ return pulumi.get(self, "code") @property @pulumi.getter def details(self) -> Sequence['outputs.ErrorDetailResponse']: """ The error details. """ return pulumi.get(self, "details") @property @pulumi.getter def message(self) -> str: """ The error message. """ return pulumi.get(self, "message") @property @pulumi.getter def target(self) -> str: """ The error target. """ return pulumi.get(self, "target") @pulumi.output_type class ErrorResponseResponse(dict): """ Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). """ def __init__(__self__, *, error: Optional['outputs.ErrorDetailResponse'] = None): """ Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). :param 'ErrorDetailResponse' error: The error object. """ if error is not None: pulumi.set(__self__, "error", error) @property @pulumi.getter def error(self) -> Optional['outputs.ErrorDetailResponse']: """ The error object. """ return pulumi.get(self, "error") @pulumi.output_type class FlavorDataResponse(dict): def __init__(__self__, *, data: Optional[Mapping[str, str]] = None): """ :param Mapping[str, str] data: Model flavor-specific data. """ if data is not None: pulumi.set(__self__, "data", data) @property @pulumi.getter def data(self) -> Optional[Mapping[str, str]]: """ Model flavor-specific data. """ return pulumi.get(self, "data") @pulumi.output_type class GlusterFsContentsResponse(dict): """ GlusterFs datastore configuration. """ @staticmethod def __key_warning(key: str): suggest = None if key == "contentsType": suggest = "contents_type" elif key == "serverAddress": suggest = "server_address" elif key == "volumeName": suggest = "volume_name" if suggest: pulumi.log.warn(f"Key '{key}' not found in GlusterFsContentsResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: GlusterFsContentsResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: GlusterFsContentsResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, contents_type: str, server_address: str, volume_name: str): """ GlusterFs datastore configuration. :param str contents_type: Enum to determine the datastore contents type. Expected value is 'GlusterFs'. :param str server_address: GlusterFS server address (can be the IP address or server name). :param str volume_name: GlusterFS volume name. """ pulumi.set(__self__, "contents_type", 'GlusterFs') pulumi.set(__self__, "server_address", server_address) pulumi.set(__self__, "volume_name", volume_name) @property @pulumi.getter(name="contentsType") def contents_type(self) -> str: """ Enum to determine the datastore contents type. Expected value is 'GlusterFs'. """ return pulumi.get(self, "contents_type") @property @pulumi.getter(name="serverAddress") def server_address(self) -> str: """ GlusterFS server address (can be the IP address or server name). """ return pulumi.get(self, "server_address") @property @pulumi.getter(name="volumeName") def volume_name(self) -> str: """ GlusterFS volume name. """ return pulumi.get(self, "volume_name") @pulumi.output_type class HDInsightResponse(dict): """ A HDInsight compute. """ @staticmethod def __key_warning(key: str): suggest = None if key == "computeType": suggest = "compute_type" elif key == "createdOn": suggest = "created_on" elif key == "isAttachedCompute": suggest = "is_attached_compute" elif key == "modifiedOn": suggest = "modified_on" elif key == "provisioningErrors": suggest = "provisioning_errors" elif key == "provisioningState": suggest = "provisioning_state" elif key == "computeLocation": suggest = "compute_location" elif key == "disableLocalAuth": suggest = "disable_local_auth" elif key == "resourceId": suggest = "resource_id" if suggest: pulumi.log.warn(f"Key '{key}' not found in HDInsightResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: HDInsightResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: HDInsightResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, compute_type: str, created_on: str, is_attached_compute: bool, modified_on: str, provisioning_errors: Sequence['outputs.ErrorResponseResponse'], provisioning_state: str, compute_location: Optional[str] = None, description: Optional[str] = None, disable_local_auth: Optional[bool] = None, properties: Optional['outputs.HDInsightResponseProperties'] = None, resource_id: Optional[str] = None): """ A HDInsight compute. :param str compute_type: The type of compute Expected value is 'HDInsight'. :param str created_on: The time at which the compute was created. :param bool is_attached_compute: Indicating whether the compute was provisioned by user and brought from outside if true, or machine learning service provisioned it if false. :param str modified_on: The time at which the compute was last modified. :param Sequence['ErrorResponseResponse'] provisioning_errors: Errors during provisioning :param str provisioning_state: The provision state of the cluster. Valid values are Unknown, Updating, Provisioning, Succeeded, and Failed. :param str compute_location: Location for the underlying compute :param str description: The description of the Machine Learning compute. :param bool disable_local_auth: Opt-out of local authentication and ensure customers can use only MSI and AAD exclusively for authentication. :param str resource_id: ARM resource id of the underlying compute """ pulumi.set(__self__, "compute_type", 'HDInsight') pulumi.set(__self__, "created_on", created_on) pulumi.set(__self__, "is_attached_compute", is_attached_compute) pulumi.set(__self__, "modified_on", modified_on) pulumi.set(__self__, "provisioning_errors", provisioning_errors) pulumi.set(__self__, "provisioning_state", provisioning_state) if compute_location is not None: pulumi.set(__self__, "compute_location", compute_location) if description is not None: pulumi.set(__self__, "description", description) if disable_local_auth is not None: pulumi.set(__self__, "disable_local_auth", disable_local_auth) if properties is not None: pulumi.set(__self__, "properties", properties) if resource_id is not None: pulumi.set(__self__, "resource_id", resource_id) @property @pulumi.getter(name="computeType") def compute_type(self) -> str: """ The type of compute Expected value is 'HDInsight'. """ return pulumi.get(self, "compute_type") @property @pulumi.getter(name="createdOn") def created_on(self) -> str: """ The time at which the compute was created. """ return pulumi.get(self, "created_on") @property @pulumi.getter(name="isAttachedCompute") def is_attached_compute(self) -> bool: """ Indicating whether the compute was provisioned by user and brought from outside if true, or machine learning service provisioned it if false. """ return pulumi.get(self, "is_attached_compute") @property @pulumi.getter(name="modifiedOn") def modified_on(self) -> str: """ The time at which the compute was last modified. """ return pulumi.get(self, "modified_on") @property @pulumi.getter(name="provisioningErrors") def provisioning_errors(self) -> Sequence['outputs.ErrorResponseResponse']: """ Errors during provisioning """ return pulumi.get(self, "provisioning_errors") @property @pulumi.getter(name="provisioningState") def provisioning_state(self) -> str: """ The provision state of the cluster. Valid values are Unknown, Updating, Provisioning, Succeeded, and Failed. """ return pulumi.get(self, "provisioning_state") @property @pulumi.getter(name="computeLocation") def compute_location(self) -> Optional[str]: """ Location for the underlying compute """ return pulumi.get(self, "compute_location") @property @pulumi.getter def description(self) -> Optional[str]: """ The description of the Machine Learning compute. """ return pulumi.get(self, "description") @property @pulumi.getter(name="disableLocalAuth") def disable_local_auth(self) -> Optional[bool]: """ Opt-out of local authentication and ensure customers can use only MSI and AAD exclusively for authentication. """ return pulumi.get(self, "disable_local_auth") @property @pulumi.getter def properties(self) -> Optional['outputs.HDInsightResponseProperties']: return pulumi.get(self, "properties") @property @pulumi.getter(name="resourceId") def resource_id(self) -> Optional[str]: """ ARM resource id of the underlying compute """ return pulumi.get(self, "resource_id") @pulumi.output_type class HDInsightResponseProperties(dict): @staticmethod def __key_warning(key: str): suggest = None if key == "administratorAccount": suggest = "administrator_account" elif key == "sshPort": suggest = "ssh_port" if suggest: pulumi.log.warn(f"Key '{key}' not found in HDInsightResponseProperties. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: HDInsightResponseProperties.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: HDInsightResponseProperties.__key_warning(key) return super().get(key, default) def __init__(__self__, *, address: Optional[str] = None, administrator_account: Optional['outputs.VirtualMachineSshCredentialsResponse'] = None, ssh_port: Optional[int] = None): """ :param str address: Public IP address of the master node of the cluster. :param 'VirtualMachineSshCredentialsResponse' administrator_account: Admin credentials for master node of the cluster :param int ssh_port: Port open for ssh connections on the master node of the cluster. """ if address is not None: pulumi.set(__self__, "address", address) if administrator_account is not None: pulumi.set(__self__, "administrator_account", administrator_account) if ssh_port is not None: pulumi.set(__self__, "ssh_port", ssh_port) @property @pulumi.getter def address(self) -> Optional[str]: """ Public IP address of the master node of the cluster. """ return pulumi.get(self, "address") @property @pulumi.getter(name="administratorAccount") def administrator_account(self) -> Optional['outputs.VirtualMachineSshCredentialsResponse']: """ Admin credentials for master node of the cluster """ return pulumi.get(self, "administrator_account") @property @pulumi.getter(name="sshPort") def ssh_port(self) -> Optional[int]: """ Port open for ssh connections on the master node of the cluster. """ return pulumi.get(self, "ssh_port") @pulumi.output_type class IdAssetReferenceResponse(dict): """ Reference to an asset via its ARM resource ID. """ @staticmethod def __key_warning(key: str): suggest = None if key == "assetId": suggest = "asset_id" elif key == "referenceType": suggest = "reference_type" if suggest: pulumi.log.warn(f"Key '{key}' not found in IdAssetReferenceResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: IdAssetReferenceResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: IdAssetReferenceResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, asset_id: str, reference_type: str): """ Reference to an asset via its ARM resource ID. :param str asset_id: ARM resource ID of the asset. :param str reference_type: Enum to determine which reference method to use for an asset. Expected value is 'Id'. """ pulumi.set(__self__, "asset_id", asset_id) pulumi.set(__self__, "reference_type", 'Id') @property @pulumi.getter(name="assetId") def asset_id(self) -> str: """ ARM resource ID of the asset. """ return pulumi.get(self, "asset_id") @property @pulumi.getter(name="referenceType") def reference_type(self) -> str: """ Enum to determine which reference method to use for an asset. Expected value is 'Id'. """ return pulumi.get(self, "reference_type") @pulumi.output_type class IdentityForCmkResponse(dict): """ Identity that will be used to access key vault for encryption at rest """ @staticmethod def __key_warning(key: str): suggest = None if key == "userAssignedIdentity": suggest = "user_assigned_identity" if suggest: pulumi.log.warn(f"Key '{key}' not found in IdentityForCmkResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: IdentityForCmkResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: IdentityForCmkResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, user_assigned_identity: Optional[str] = None): """ Identity that will be used to access key vault for encryption at rest :param str user_assigned_identity: The ArmId of the user assigned identity that will be used to access the customer managed key vault """ if user_assigned_identity is not None: pulumi.set(__self__, "user_assigned_identity", user_assigned_identity) @property @pulumi.getter(name="userAssignedIdentity") def user_assigned_identity(self) -> Optional[str]: """ The ArmId of the user assigned identity that will be used to access the customer managed key vault """ return pulumi.get(self, "user_assigned_identity") @pulumi.output_type class IdentityResponse(dict): """ Identity for the resource. """ @staticmethod def __key_warning(key: str): suggest = None if key == "principalId": suggest = "principal_id" elif key == "tenantId": suggest = "tenant_id" elif key == "userAssignedIdentities": suggest = "user_assigned_identities" if suggest: pulumi.log.warn(f"Key '{key}' not found in IdentityResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: IdentityResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: IdentityResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, principal_id: str, tenant_id: str, type: Optional[str] = None, user_assigned_identities: Optional[Mapping[str, 'outputs.UserAssignedIdentityResponse']] = None): """ Identity for the resource. :param str principal_id: The principal ID of resource identity. :param str tenant_id: The tenant ID of resource. :param str type: The identity type. :param Mapping[str, 'UserAssignedIdentityResponse'] user_assigned_identities: The user assigned identities associated with the resource. """ pulumi.set(__self__, "principal_id", principal_id) pulumi.set(__self__, "tenant_id", tenant_id) if type is not None: pulumi.set(__self__, "type", type) if user_assigned_identities is not None: pulumi.set(__self__, "user_assigned_identities", user_assigned_identities) @property @pulumi.getter(name="principalId") def principal_id(self) -> str: """ The principal ID of resource identity. """ return pulumi.get(self, "principal_id") @property @pulumi.getter(name="tenantId") def tenant_id(self) -> str: """ The tenant ID of resource. """ return pulumi.get(self, "tenant_id") @property @pulumi.getter def type(self) -> Optional[str]: """ The identity type. """ return pulumi.get(self, "type") @property @pulumi.getter(name="userAssignedIdentities") def user_assigned_identities(self) -> Optional[Mapping[str, 'outputs.UserAssignedIdentityResponse']]: """ The user assigned identities associated with the resource. """ return pulumi.get(self, "user_assigned_identities") @pulumi.output_type class InferenceContainerPropertiesResponse(dict): @staticmethod def __key_warning(key: str): suggest = None if key == "livenessRoute": suggest = "liveness_route" elif key == "readinessRoute": suggest = "readiness_route" elif key == "scoringRoute": suggest = "scoring_route" if suggest: pulumi.log.warn(f"Key '{key}' not found in InferenceContainerPropertiesResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: InferenceContainerPropertiesResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: InferenceContainerPropertiesResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, liveness_route: Optional['outputs.RouteResponse'] = None, readiness_route: Optional['outputs.RouteResponse'] = None, scoring_route: Optional['outputs.RouteResponse'] = None): """ :param 'RouteResponse' liveness_route: The route to check the liveness of the inference server container. :param 'RouteResponse' readiness_route: The route to check the readiness of the inference server container. :param 'RouteResponse' scoring_route: The port to send the scoring requests to, within the inference server container. """ if liveness_route is not None: pulumi.set(__self__, "liveness_route", liveness_route) if readiness_route is not None: pulumi.set(__self__, "readiness_route", readiness_route) if scoring_route is not None: pulumi.set(__self__, "scoring_route", scoring_route) @property @pulumi.getter(name="livenessRoute") def liveness_route(self) -> Optional['outputs.RouteResponse']: """ The route to check the liveness of the inference server container. """ return pulumi.get(self, "liveness_route") @property @pulumi.getter(name="readinessRoute") def readiness_route(self) -> Optional['outputs.RouteResponse']: """ The route to check the readiness of the inference server container. """ return pulumi.get(self, "readiness_route") @property @pulumi.getter(name="scoringRoute") def scoring_route(self) -> Optional['outputs.RouteResponse']: """ The port to send the scoring requests to, within the inference server container. """ return pulumi.get(self, "scoring_route") @pulumi.output_type class InputDataBindingResponse(dict): @staticmethod def __key_warning(key: str): suggest = None if key == "dataId": suggest = "data_id" elif key == "pathOnCompute": suggest = "path_on_compute" if suggest: pulumi.log.warn(f"Key '{key}' not found in InputDataBindingResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: InputDataBindingResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: InputDataBindingResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, data_id: Optional[str] = None, mode: Optional[str] = None, path_on_compute: Optional[str] = None): """ :param str data_id: ARM resource ID of the registered dataVersion. :param str mode: Mechanism for accessing the data artifact. :param str path_on_compute: Location of data inside the container process. """ if data_id is not None: pulumi.set(__self__, "data_id", data_id) if mode is not None: pulumi.set(__self__, "mode", mode) if path_on_compute is not None: pulumi.set(__self__, "path_on_compute", path_on_compute) @property @pulumi.getter(name="dataId") def data_id(self) -> Optional[str]: """ ARM resource ID of the registered dataVersion. """ return pulumi.get(self, "data_id") @property @pulumi.getter def mode(self) -> Optional[str]: """ Mechanism for accessing the data artifact. """ return pulumi.get(self, "mode") @property @pulumi.getter(name="pathOnCompute") def path_on_compute(self) -> Optional[str]: """ Location of data inside the container process. """ return pulumi.get(self, "path_on_compute") @pulumi.output_type class JobEndpointResponse(dict): """ Job endpoint definition """ @staticmethod def __key_warning(key: str): suggest = None if key == "jobEndpointType": suggest = "job_endpoint_type" if suggest: pulumi.log.warn(f"Key '{key}' not found in JobEndpointResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: JobEndpointResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: JobEndpointResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, endpoint: Optional[str] = None, job_endpoint_type: Optional[str] = None, port: Optional[int] = None, properties: Optional[Mapping[str, str]] = None): """ Job endpoint definition :param str endpoint: Url for endpoint. :param str job_endpoint_type: Endpoint type. :param int port: Port for endpoint. :param Mapping[str, str] properties: Additional properties to set on the endpoint. """ if endpoint is not None: pulumi.set(__self__, "endpoint", endpoint) if job_endpoint_type is not None: pulumi.set(__self__, "job_endpoint_type", job_endpoint_type) if port is not None: pulumi.set(__self__, "port", port) if properties is not None: pulumi.set(__self__, "properties", properties) @property @pulumi.getter def endpoint(self) -> Optional[str]: """ Url for endpoint. """ return pulumi.get(self, "endpoint") @property @pulumi.getter(name="jobEndpointType") def job_endpoint_type(self) -> Optional[str]: """ Endpoint type. """ return pulumi.get(self, "job_endpoint_type") @property @pulumi.getter def port(self) -> Optional[int]: """ Port for endpoint. """ return pulumi.get(self, "port") @property @pulumi.getter def properties(self) -> Optional[Mapping[str, str]]: """ Additional properties to set on the endpoint. """ return pulumi.get(self, "properties") @pulumi.output_type class JobOutputResponse(dict): """ Job output definition container information on where to find job output/logs. """ @staticmethod def __key_warning(key: str): suggest = None if key == "datastoreId": suggest = "datastore_id" if suggest: pulumi.log.warn(f"Key '{key}' not found in JobOutputResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: JobOutputResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: JobOutputResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, datastore_id: str, path: str): """ Job output definition container information on where to find job output/logs. :param str datastore_id: ARM ID of the datastore where the job logs and artifacts are stored, or null for the default container ("azureml") in the workspace's storage account. :param str path: Path within the datastore to the job logs and artifacts. """ pulumi.set(__self__, "datastore_id", datastore_id) pulumi.set(__self__, "path", path) @property @pulumi.getter(name="datastoreId") def datastore_id(self) -> str: """ ARM ID of the datastore where the job logs and artifacts are stored, or null for the default container ("azureml") in the workspace's storage account. """ return pulumi.get(self, "datastore_id") @property @pulumi.getter def path(self) -> str: """ Path within the datastore to the job logs and artifacts. """ return pulumi.get(self, "path") @pulumi.output_type class K8sOnlineDeploymentResponse(dict): @staticmethod def __key_warning(key: str): suggest = None if key == "endpointComputeType": suggest = "endpoint_compute_type" elif key == "provisioningState": suggest = "provisioning_state" elif key == "appInsightsEnabled": suggest = "app_insights_enabled" elif key == "codeConfiguration": suggest = "code_configuration" elif key == "containerResourceRequirements": suggest = "container_resource_requirements" elif key == "environmentId": suggest = "environment_id" elif key == "environmentVariables": suggest = "environment_variables" elif key == "livenessProbe": suggest = "liveness_probe" elif key == "requestSettings": suggest = "request_settings" elif key == "scaleSettings": suggest = "scale_settings" if suggest: pulumi.log.warn(f"Key '{key}' not found in K8sOnlineDeploymentResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: K8sOnlineDeploymentResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: K8sOnlineDeploymentResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, endpoint_compute_type: str, provisioning_state: str, app_insights_enabled: Optional[bool] = None, code_configuration: Optional['outputs.CodeConfigurationResponse'] = None, container_resource_requirements: Optional['outputs.ContainerResourceRequirementsResponse'] = None, description: Optional[str] = None, environment_id: Optional[str] = None, environment_variables: Optional[Mapping[str, str]] = None, liveness_probe: Optional['outputs.ProbeSettingsResponse'] = None, model: Optional[Any] = None, properties: Optional[Mapping[str, str]] = None, request_settings: Optional['outputs.OnlineRequestSettingsResponse'] = None, scale_settings: Optional[Any] = None): """ :param str endpoint_compute_type: Enum to determine endpoint compute type. Expected value is 'K8S'. :param str provisioning_state: Provisioning state for the endpoint deployment. :param bool app_insights_enabled: If true, enables Application Insights logging. :param 'CodeConfigurationResponse' code_configuration: Code configuration for the endpoint deployment. :param 'ContainerResourceRequirementsResponse' container_resource_requirements: Resource requirements for each container instance within an online deployment. :param str description: Description of the endpoint deployment. :param str environment_id: ARM resource ID of the environment specification for the endpoint deployment. :param Mapping[str, str] environment_variables: Environment variables configuration for the deployment. :param 'ProbeSettingsResponse' liveness_probe: Deployment container liveness/readiness probe configuration. :param Union['DataPathAssetReferenceResponse', 'IdAssetReferenceResponse', 'OutputPathAssetReferenceResponse'] model: Reference to the model asset for the endpoint deployment. :param Mapping[str, str] properties: Property dictionary. Properties can be added, but not removed or altered. :param 'OnlineRequestSettingsResponse' request_settings: Online deployment scoring requests configuration. :param Union['AutoScaleSettingsResponse', 'ManualScaleSettingsResponse'] scale_settings: Online deployment scaling configuration. """ pulumi.set(__self__, "endpoint_compute_type", 'K8S') pulumi.set(__self__, "provisioning_state", provisioning_state) if app_insights_enabled is not None: pulumi.set(__self__, "app_insights_enabled", app_insights_enabled) if code_configuration is not None: pulumi.set(__self__, "code_configuration", code_configuration) if container_resource_requirements is not None: pulumi.set(__self__, "container_resource_requirements", container_resource_requirements) if description is not None: pulumi.set(__self__, "description", description) if environment_id is not None: pulumi.set(__self__, "environment_id", environment_id) if environment_variables is not None: pulumi.set(__self__, "environment_variables", environment_variables) if liveness_probe is not None: pulumi.set(__self__, "liveness_probe", liveness_probe) if model is not None: pulumi.set(__self__, "model", model) if properties is not None: pulumi.set(__self__, "properties", properties) if request_settings is not None: pulumi.set(__self__, "request_settings", request_settings) if scale_settings is not None: pulumi.set(__self__, "scale_settings", scale_settings) @property @pulumi.getter(name="endpointComputeType") def endpoint_compute_type(self) -> str: """ Enum to determine endpoint compute type. Expected value is 'K8S'. """ return pulumi.get(self, "endpoint_compute_type") @property @pulumi.getter(name="provisioningState") def provisioning_state(self) -> str: """ Provisioning state for the endpoint deployment. """ return pulumi.get(self, "provisioning_state") @property @pulumi.getter(name="appInsightsEnabled") def app_insights_enabled(self) -> Optional[bool]: """ If true, enables Application Insights logging. """ return pulumi.get(self, "app_insights_enabled") @property @pulumi.getter(name="codeConfiguration") def code_configuration(self) -> Optional['outputs.CodeConfigurationResponse']: """ Code configuration for the endpoint deployment. """ return pulumi.get(self, "code_configuration") @property @pulumi.getter(name="containerResourceRequirements") def container_resource_requirements(self) -> Optional['outputs.ContainerResourceRequirementsResponse']: """ Resource requirements for each container instance within an online deployment. """ return pulumi.get(self, "container_resource_requirements") @property @pulumi.getter def description(self) -> Optional[str]: """ Description of the endpoint deployment. """ return pulumi.get(self, "description") @property @pulumi.getter(name="environmentId") def environment_id(self) -> Optional[str]: """ ARM resource ID of the environment specification for the endpoint deployment. """ return pulumi.get(self, "environment_id") @property @pulumi.getter(name="environmentVariables") def environment_variables(self) -> Optional[Mapping[str, str]]: """ Environment variables configuration for the deployment. """ return pulumi.get(self, "environment_variables") @property @pulumi.getter(name="livenessProbe") def liveness_probe(self) -> Optional['outputs.ProbeSettingsResponse']: """ Deployment container liveness/readiness probe configuration. """ return pulumi.get(self, "liveness_probe") @property @pulumi.getter def model(self) -> Optional[Any]: """ Reference to the model asset for the endpoint deployment. """ return pulumi.get(self, "model") @property @pulumi.getter def properties(self) -> Optional[Mapping[str, str]]: """ Property dictionary. Properties can be added, but not removed or altered. """ return pulumi.get(self, "properties") @property @pulumi.getter(name="requestSettings") def request_settings(self) -> Optional['outputs.OnlineRequestSettingsResponse']: """ Online deployment scoring requests configuration. """ return pulumi.get(self, "request_settings") @property @pulumi.getter(name="scaleSettings") def scale_settings(self) -> Optional[Any]: """ Online deployment scaling configuration. """ return pulumi.get(self, "scale_settings") @pulumi.output_type class KeyVaultPropertiesResponse(dict): @staticmethod def __key_warning(key: str): suggest = None if key == "keyIdentifier": suggest = "key_identifier" elif key == "keyVaultArmId": suggest = "key_vault_arm_id" elif key == "identityClientId": suggest = "identity_client_id" if suggest: pulumi.log.warn(f"Key '{key}' not found in KeyVaultPropertiesResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: KeyVaultPropertiesResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: KeyVaultPropertiesResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, key_identifier: str, key_vault_arm_id: str, identity_client_id: Optional[str] = None): """ :param str key_identifier: Key vault uri to access the encryption key. :param str key_vault_arm_id: The ArmId of the keyVault where the customer owned encryption key is present. :param str identity_client_id: For future use - The client id of the identity which will be used to access key vault. """ pulumi.set(__self__, "key_identifier", key_identifier) pulumi.set(__self__, "key_vault_arm_id", key_vault_arm_id) if identity_client_id is not None: pulumi.set(__self__, "identity_client_id", identity_client_id) @property @pulumi.getter(name="keyIdentifier") def key_identifier(self) -> str: """ Key vault uri to access the encryption key. """ return pulumi.get(self, "key_identifier") @property @pulumi.getter(name="keyVaultArmId") def key_vault_arm_id(self) -> str: """ The ArmId of the keyVault where the customer owned encryption key is present. """ return pulumi.get(self, "key_vault_arm_id") @property @pulumi.getter(name="identityClientId") def identity_client_id(self) -> Optional[str]: """ For future use - The client id of the identity which will be used to access key vault. """ return pulumi.get(self, "identity_client_id") @pulumi.output_type class LabelCategoryResponse(dict): """ Label category definition """ @staticmethod def __key_warning(key: str): suggest = None if key == "allowMultiSelect": suggest = "allow_multi_select" elif key == "displayName": suggest = "display_name" if suggest: pulumi.log.warn(f"Key '{key}' not found in LabelCategoryResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: LabelCategoryResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: LabelCategoryResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, allow_multi_select: Optional[bool] = None, classes: Optional[Mapping[str, 'outputs.LabelClassResponse']] = None, display_name: Optional[str] = None): """ Label category definition :param bool allow_multi_select: Indicates whether it is allowed to select multiple classes in this category. :param Mapping[str, 'LabelClassResponse'] classes: Dictionary of label classes in this category. :param str display_name: Display name of the label category. """ if allow_multi_select is not None: pulumi.set(__self__, "allow_multi_select", allow_multi_select) if classes is not None: pulumi.set(__self__, "classes", classes) if display_name is not None: pulumi.set(__self__, "display_name", display_name) @property @pulumi.getter(name="allowMultiSelect") def allow_multi_select(self) -> Optional[bool]: """ Indicates whether it is allowed to select multiple classes in this category. """ return pulumi.get(self, "allow_multi_select") @property @pulumi.getter def classes(self) -> Optional[Mapping[str, 'outputs.LabelClassResponse']]: """ Dictionary of label classes in this category. """ return pulumi.get(self, "classes") @property @pulumi.getter(name="displayName") def display_name(self) -> Optional[str]: """ Display name of the label category. """ return pulumi.get(self, "display_name") @pulumi.output_type class LabelClassResponse(dict): """ Label class definition """ @staticmethod def __key_warning(key: str): suggest = None if key == "displayName": suggest = "display_name" if suggest: pulumi.log.warn(f"Key '{key}' not found in LabelClassResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: LabelClassResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: LabelClassResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, display_name: Optional[str] = None, subclasses: Optional[Mapping[str, 'outputs.LabelClassResponse']] = None): """ Label class definition :param str display_name: Display name of the label class. :param Mapping[str, 'LabelClassResponse'] subclasses: Dictionary of subclasses of the label class. """ if display_name is not None: pulumi.set(__self__, "display_name", display_name) if subclasses is not None: pulumi.set(__self__, "subclasses", subclasses) @property @pulumi.getter(name="displayName") def display_name(self) -> Optional[str]: """ Display name of the label class. """ return pulumi.get(self, "display_name") @property @pulumi.getter def subclasses(self) -> Optional[Mapping[str, 'outputs.LabelClassResponse']]: """ Dictionary of subclasses of the label class. """ return pulumi.get(self, "subclasses") @pulumi.output_type class LabelingDatasetConfigurationResponse(dict): """ Labeling dataset configuration definition """ @staticmethod def __key_warning(key: str): suggest = None if key == "assetName": suggest = "asset_name" elif key == "datasetVersion": suggest = "dataset_version" elif key == "incrementalDatasetRefreshEnabled": suggest = "incremental_dataset_refresh_enabled" if suggest: pulumi.log.warn(f"Key '{key}' not found in LabelingDatasetConfigurationResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: LabelingDatasetConfigurationResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: LabelingDatasetConfigurationResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, asset_name: Optional[str] = None, dataset_version: Optional[str] = None, incremental_dataset_refresh_enabled: Optional[bool] = None): """ Labeling dataset configuration definition :param str asset_name: Name of the data asset to perform labeling. :param str dataset_version: AML dataset version. :param bool incremental_dataset_refresh_enabled: Indicates whether to enable incremental dataset refresh. """ if asset_name is not None: pulumi.set(__self__, "asset_name", asset_name) if dataset_version is not None: pulumi.set(__self__, "dataset_version", dataset_version) if incremental_dataset_refresh_enabled is not None: pulumi.set(__self__, "incremental_dataset_refresh_enabled", incremental_dataset_refresh_enabled) @property @pulumi.getter(name="assetName") def asset_name(self) -> Optional[str]: """ Name of the data asset to perform labeling. """ return pulumi.get(self, "asset_name") @property @pulumi.getter(name="datasetVersion") def dataset_version(self) -> Optional[str]: """ AML dataset version. """ return pulumi.get(self, "dataset_version") @property @pulumi.getter(name="incrementalDatasetRefreshEnabled") def incremental_dataset_refresh_enabled(self) -> Optional[bool]: """ Indicates whether to enable incremental dataset refresh. """ return pulumi.get(self, "incremental_dataset_refresh_enabled") @pulumi.output_type class LabelingJobImagePropertiesResponse(dict): """ Properties of a labeling job for image data """ @staticmethod def __key_warning(key: str): suggest = None if key == "mediaType": suggest = "media_type" elif key == "annotationType": suggest = "annotation_type" if suggest: pulumi.log.warn(f"Key '{key}' not found in LabelingJobImagePropertiesResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: LabelingJobImagePropertiesResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: LabelingJobImagePropertiesResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, media_type: str, annotation_type: Optional[str] = None): """ Properties of a labeling job for image data :param str media_type: Media type of data asset. Expected value is 'Image'. :param str annotation_type: Annotation type of image labeling job. """ pulumi.set(__self__, "media_type", 'Image') if annotation_type is not None: pulumi.set(__self__, "annotation_type", annotation_type) @property @pulumi.getter(name="mediaType") def media_type(self) -> str: """ Media type of data asset. Expected value is 'Image'. """ return pulumi.get(self, "media_type") @property @pulumi.getter(name="annotationType") def annotation_type(self) -> Optional[str]: """ Annotation type of image labeling job. """ return pulumi.get(self, "annotation_type") @pulumi.output_type class LabelingJobInstructionsResponse(dict): """ Instructions for labeling job """ def __init__(__self__, *, uri: Optional[str] = None): """ Instructions for labeling job :param str uri: The link to a page with detailed labeling instructions for labelers. """ if uri is not None: pulumi.set(__self__, "uri", uri) @property @pulumi.getter def uri(self) -> Optional[str]: """ The link to a page with detailed labeling instructions for labelers. """ return pulumi.get(self, "uri") @pulumi.output_type class LabelingJobResponse(dict): """ Labeling job definition """ @staticmethod def __key_warning(key: str): suggest = None if key == "createdTimeUtc": suggest = "created_time_utc" elif key == "interactionEndpoints": suggest = "interaction_endpoints" elif key == "jobType": suggest = "job_type" elif key == "progressMetrics": suggest = "progress_metrics" elif key == "projectId": suggest = "project_id" elif key == "provisioningState": suggest = "provisioning_state" elif key == "statusMessages": suggest = "status_messages" elif key == "datasetConfiguration": suggest = "dataset_configuration" elif key == "jobInstructions": suggest = "job_instructions" elif key == "labelCategories": suggest = "label_categories" elif key == "labelingJobMediaProperties": suggest = "labeling_job_media_properties" elif key == "mlAssistConfiguration": suggest = "ml_assist_configuration" if suggest: pulumi.log.warn(f"Key '{key}' not found in LabelingJobResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: LabelingJobResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: LabelingJobResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, created_time_utc: str, interaction_endpoints: Mapping[str, 'outputs.JobEndpointResponse'], job_type: str, progress_metrics: 'outputs.ProgressMetricsResponse', project_id: str, provisioning_state: str, status: str, status_messages: Sequence['outputs.StatusMessageResponse'], dataset_configuration: Optional['outputs.LabelingDatasetConfigurationResponse'] = None, description: Optional[str] = None, job_instructions: Optional['outputs.LabelingJobInstructionsResponse'] = None, label_categories: Optional[Mapping[str, 'outputs.LabelCategoryResponse']] = None, labeling_job_media_properties: Optional[Any] = None, ml_assist_configuration: Optional['outputs.MLAssistConfigurationResponse'] = None, properties: Optional[Mapping[str, str]] = None, tags: Optional[Mapping[str, str]] = None): """ Labeling job definition :param str created_time_utc: Created time of the job in UTC timezone. :param Mapping[str, 'JobEndpointResponse'] interaction_endpoints: List of JobEndpoints. For local jobs, a job endpoint will have an endpoint value of FileStreamObject. :param str job_type: Specifies the type of job. This field should always be set to "Labeling". :param 'ProgressMetricsResponse' progress_metrics: Progress metrics of the job. :param str project_id: Internal id of the job(Previously called project). :param str provisioning_state: Specifies the labeling job provisioning state. :param str status: Status of the job. :param Sequence['StatusMessageResponse'] status_messages: Status messages of the job. :param 'LabelingDatasetConfigurationResponse' dataset_configuration: Configuration of dataset used in the job. :param str description: The asset description text. :param 'LabelingJobInstructionsResponse' job_instructions: Labeling instructions of the job. :param Mapping[str, 'LabelCategoryResponse'] label_categories: Label categories of the job. :param Union['LabelingJobImagePropertiesResponse', 'LabelingJobTextPropertiesResponse'] labeling_job_media_properties: Media type specific properties in the job. :param 'MLAssistConfigurationResponse' ml_assist_configuration: Configuration of MLAssist feature in the job. :param Mapping[str, str] properties: The asset property dictionary. :param Mapping[str, str] tags: Tag dictionary. Tags can be added, removed, and updated. """ pulumi.set(__self__, "created_time_utc", created_time_utc) pulumi.set(__self__, "interaction_endpoints", interaction_endpoints) pulumi.set(__self__, "job_type", job_type) pulumi.set(__self__, "progress_metrics", progress_metrics) pulumi.set(__self__, "project_id", project_id) pulumi.set(__self__, "provisioning_state", provisioning_state) pulumi.set(__self__, "status", status) pulumi.set(__self__, "status_messages", status_messages) if dataset_configuration is not None: pulumi.set(__self__, "dataset_configuration", dataset_configuration) if description is not None: pulumi.set(__self__, "description", description) if job_instructions is not None: pulumi.set(__self__, "job_instructions", job_instructions) if label_categories is not None: pulumi.set(__self__, "label_categories", label_categories) if labeling_job_media_properties is not None: pulumi.set(__self__, "labeling_job_media_properties", labeling_job_media_properties) if ml_assist_configuration is not None: pulumi.set(__self__, "ml_assist_configuration", ml_assist_configuration) if properties is not None: pulumi.set(__self__, "properties", properties) if tags is not None: pulumi.set(__self__, "tags", tags) @property @pulumi.getter(name="createdTimeUtc") def created_time_utc(self) -> str: """ Created time of the job in UTC timezone. """ return pulumi.get(self, "created_time_utc") @property @pulumi.getter(name="interactionEndpoints") def interaction_endpoints(self) -> Mapping[str, 'outputs.JobEndpointResponse']: """ List of JobEndpoints. For local jobs, a job endpoint will have an endpoint value of FileStreamObject. """ return pulumi.get(self, "interaction_endpoints") @property @pulumi.getter(name="jobType") def job_type(self) -> str: """ Specifies the type of job. This field should always be set to "Labeling". """ return pulumi.get(self, "job_type") @property @pulumi.getter(name="progressMetrics") def progress_metrics(self) -> 'outputs.ProgressMetricsResponse': """ Progress metrics of the job. """ return pulumi.get(self, "progress_metrics") @property @pulumi.getter(name="projectId") def project_id(self) -> str: """ Internal id of the job(Previously called project). """ return pulumi.get(self, "project_id") @property @pulumi.getter(name="provisioningState") def provisioning_state(self) -> str: """ Specifies the labeling job provisioning state. """ return pulumi.get(self, "provisioning_state") @property @pulumi.getter def status(self) -> str: """ Status of the job. """ return pulumi.get(self, "status") @property @pulumi.getter(name="statusMessages") def status_messages(self) -> Sequence['outputs.StatusMessageResponse']: """ Status messages of the job. """ return pulumi.get(self, "status_messages") @property @pulumi.getter(name="datasetConfiguration") def dataset_configuration(self) -> Optional['outputs.LabelingDatasetConfigurationResponse']: """ Configuration of dataset used in the job. """ return pulumi.get(self, "dataset_configuration") @property @pulumi.getter def description(self) -> Optional[str]: """ The asset description text. """ return pulumi.get(self, "description") @property @pulumi.getter(name="jobInstructions") def job_instructions(self) -> Optional['outputs.LabelingJobInstructionsResponse']: """ Labeling instructions of the job. """ return pulumi.get(self, "job_instructions") @property @pulumi.getter(name="labelCategories") def label_categories(self) -> Optional[Mapping[str, 'outputs.LabelCategoryResponse']]: """ Label categories of the job. """ return pulumi.get(self, "label_categories") @property @pulumi.getter(name="labelingJobMediaProperties") def labeling_job_media_properties(self) -> Optional[Any]: """ Media type specific properties in the job. """ return pulumi.get(self, "labeling_job_media_properties") @property @pulumi.getter(name="mlAssistConfiguration") def ml_assist_configuration(self) -> Optional['outputs.MLAssistConfigurationResponse']: """ Configuration of MLAssist feature in the job. """ return pulumi.get(self, "ml_assist_configuration") @property @pulumi.getter def properties(self) -> Optional[Mapping[str, str]]: """ The asset property dictionary. """ return pulumi.get(self, "properties") @property @pulumi.getter def tags(self) -> Optional[Mapping[str, str]]: """ Tag dictionary. Tags can be added, removed, and updated. """ return pulumi.get(self, "tags") @pulumi.output_type class LabelingJobTextPropertiesResponse(dict): """ Properties of a labeling job for text data """ @staticmethod def __key_warning(key: str): suggest = None if key == "mediaType": suggest = "media_type" elif key == "annotationType": suggest = "annotation_type" if suggest: pulumi.log.warn(f"Key '{key}' not found in LabelingJobTextPropertiesResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: LabelingJobTextPropertiesResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: LabelingJobTextPropertiesResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, media_type: str, annotation_type: Optional[str] = None): """ Properties of a labeling job for text data :param str media_type: Media type of data asset. Expected value is 'Text'. :param str annotation_type: Annotation type of text labeling job. """ pulumi.set(__self__, "media_type", 'Text') if annotation_type is not None: pulumi.set(__self__, "annotation_type", annotation_type) @property @pulumi.getter(name="mediaType") def media_type(self) -> str: """ Media type of data asset. Expected value is 'Text'. """ return pulumi.get(self, "media_type") @property @pulumi.getter(name="annotationType") def annotation_type(self) -> Optional[str]: """ Annotation type of text labeling job. """ return pulumi.get(self, "annotation_type") @pulumi.output_type class LinkedInfoResponse(dict): """ Information about a datastore origin, if linked. """ @staticmethod def __key_warning(key: str): suggest = None if key == "linkedId": suggest = "linked_id" elif key == "linkedResourceName": suggest = "linked_resource_name" if suggest: pulumi.log.warn(f"Key '{key}' not found in LinkedInfoResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: LinkedInfoResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: LinkedInfoResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, linked_id: Optional[str] = None, linked_resource_name: Optional[str] = None, origin: Optional[str] = None): """ Information about a datastore origin, if linked. :param str linked_id: Linked service ID. :param str linked_resource_name: Linked service resource name. :param str origin: Type of the linked service. """ if linked_id is not None: pulumi.set(__self__, "linked_id", linked_id) if linked_resource_name is not None: pulumi.set(__self__, "linked_resource_name", linked_resource_name) if origin is not None: pulumi.set(__self__, "origin", origin) @property @pulumi.getter(name="linkedId") def linked_id(self) -> Optional[str]: """ Linked service ID. """ return pulumi.get(self, "linked_id") @property @pulumi.getter(name="linkedResourceName") def linked_resource_name(self) -> Optional[str]: """ Linked service resource name. """ return pulumi.get(self, "linked_resource_name") @property @pulumi.getter def origin(self) -> Optional[str]: """ Type of the linked service. """ return pulumi.get(self, "origin") @pulumi.output_type class ListNotebookKeysResultResponse(dict): def __init__(__self__, *, primary_access_key: str, secondary_access_key: str): pulumi.set(__self__, "primary_access_key", primary_access_key) pulumi.set(__self__, "secondary_access_key", secondary_access_key) @property @pulumi.getter(name="primaryAccessKey") def primary_access_key(self) -> str: return pulumi.get(self, "primary_access_key") @property @pulumi.getter(name="secondaryAccessKey") def secondary_access_key(self) -> str: return pulumi.get(self, "secondary_access_key") @pulumi.output_type class MLAssistConfigurationResponse(dict): """ Labeling MLAssist configuration definition """ @staticmethod def __key_warning(key: str): suggest = None if key == "inferencingComputeBinding": suggest = "inferencing_compute_binding" elif key == "mlAssistEnabled": suggest = "ml_assist_enabled" elif key == "trainingComputeBinding": suggest = "training_compute_binding" if suggest: pulumi.log.warn(f"Key '{key}' not found in MLAssistConfigurationResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: MLAssistConfigurationResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: MLAssistConfigurationResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, inferencing_compute_binding: Optional['outputs.ComputeConfigurationResponse'] = None, ml_assist_enabled: Optional[bool] = None, training_compute_binding: Optional['outputs.ComputeConfigurationResponse'] = None): """ Labeling MLAssist configuration definition :param 'ComputeConfigurationResponse' inferencing_compute_binding: AML compute binding used in inferencing. :param bool ml_assist_enabled: Indicates whether MLAssist feature is enabled. :param 'ComputeConfigurationResponse' training_compute_binding: AML compute binding used in training. """ if inferencing_compute_binding is not None: pulumi.set(__self__, "inferencing_compute_binding", inferencing_compute_binding) if ml_assist_enabled is not None: pulumi.set(__self__, "ml_assist_enabled", ml_assist_enabled) if training_compute_binding is not None: pulumi.set(__self__, "training_compute_binding", training_compute_binding) @property @pulumi.getter(name="inferencingComputeBinding") def inferencing_compute_binding(self) -> Optional['outputs.ComputeConfigurationResponse']: """ AML compute binding used in inferencing. """ return pulumi.get(self, "inferencing_compute_binding") @property @pulumi.getter(name="mlAssistEnabled") def ml_assist_enabled(self) -> Optional[bool]: """ Indicates whether MLAssist feature is enabled. """ return pulumi.get(self, "ml_assist_enabled") @property @pulumi.getter(name="trainingComputeBinding") def training_compute_binding(self) -> Optional['outputs.ComputeConfigurationResponse']: """ AML compute binding used in training. """ return pulumi.get(self, "training_compute_binding") @pulumi.output_type class ManagedIdentityResponse(dict): """ Managed identity configuration. """ @staticmethod def __key_warning(key: str): suggest = None if key == "identityType": suggest = "identity_type" elif key == "clientId": suggest = "client_id" elif key == "objectId": suggest = "object_id" elif key == "resourceId": suggest = "resource_id" if suggest: pulumi.log.warn(f"Key '{key}' not found in ManagedIdentityResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: ManagedIdentityResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: ManagedIdentityResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, identity_type: str, client_id: Optional[str] = None, object_id: Optional[str] = None, resource_id: Optional[str] = None): """ Managed identity configuration. :param str identity_type: Enum to determine identity framework. Expected value is 'Managed'. :param str client_id: Specifies a user-assigned identity by client ID. For system-assigned, do not set this field. :param str object_id: Specifies a user-assigned identity by object ID. For system-assigned, do not set this field. :param str resource_id: Specifies a user-assigned identity by ARM resource ID. For system-assigned, do not set this field. """ pulumi.set(__self__, "identity_type", 'Managed') if client_id is not None: pulumi.set(__self__, "client_id", client_id) if object_id is not None: pulumi.set(__self__, "object_id", object_id) if resource_id is not None: pulumi.set(__self__, "resource_id", resource_id) @property @pulumi.getter(name="identityType") def identity_type(self) -> str: """ Enum to determine identity framework. Expected value is 'Managed'. """ return pulumi.get(self, "identity_type") @property @pulumi.getter(name="clientId") def client_id(self) -> Optional[str]: """ Specifies a user-assigned identity by client ID. For system-assigned, do not set this field. """ return pulumi.get(self, "client_id") @property @pulumi.getter(name="objectId") def object_id(self) -> Optional[str]: """ Specifies a user-assigned identity by object ID. For system-assigned, do not set this field. """ return pulumi.get(self, "object_id") @property @pulumi.getter(name="resourceId") def resource_id(self) -> Optional[str]: """ Specifies a user-assigned identity by ARM resource ID. For system-assigned, do not set this field. """ return pulumi.get(self, "resource_id") @pulumi.output_type class ManagedOnlineDeploymentResponse(dict): @staticmethod def __key_warning(key: str): suggest = None if key == "endpointComputeType": suggest = "endpoint_compute_type" elif key == "provisioningState": suggest = "provisioning_state" elif key == "appInsightsEnabled": suggest = "app_insights_enabled" elif key == "codeConfiguration": suggest = "code_configuration" elif key == "environmentId": suggest = "environment_id" elif key == "environmentVariables": suggest = "environment_variables" elif key == "instanceType": suggest = "instance_type" elif key == "livenessProbe": suggest = "liveness_probe" elif key == "readinessProbe": suggest = "readiness_probe" elif key == "requestSettings": suggest = "request_settings" elif key == "scaleSettings": suggest = "scale_settings" if suggest: pulumi.log.warn(f"Key '{key}' not found in ManagedOnlineDeploymentResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: ManagedOnlineDeploymentResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: ManagedOnlineDeploymentResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, endpoint_compute_type: str, provisioning_state: str, app_insights_enabled: Optional[bool] = None, code_configuration: Optional['outputs.CodeConfigurationResponse'] = None, description: Optional[str] = None, environment_id: Optional[str] = None, environment_variables: Optional[Mapping[str, str]] = None, instance_type: Optional[str] = None, liveness_probe: Optional['outputs.ProbeSettingsResponse'] = None, model: Optional[Any] = None, properties: Optional[Mapping[str, str]] = None, readiness_probe: Optional['outputs.ProbeSettingsResponse'] = None, request_settings: Optional['outputs.OnlineRequestSettingsResponse'] = None, scale_settings: Optional[Any] = None): """ :param str endpoint_compute_type: Enum to determine endpoint compute type. Expected value is 'Managed'. :param str provisioning_state: Provisioning state for the endpoint deployment. :param bool app_insights_enabled: If true, enables Application Insights logging. :param 'CodeConfigurationResponse' code_configuration: Code configuration for the endpoint deployment. :param str description: Description of the endpoint deployment. :param str environment_id: ARM resource ID of the environment specification for the endpoint deployment. :param Mapping[str, str] environment_variables: Environment variables configuration for the deployment. :param str instance_type: Compute instance type. :param 'ProbeSettingsResponse' liveness_probe: Deployment container liveness/readiness probe configuration. :param Union['DataPathAssetReferenceResponse', 'IdAssetReferenceResponse', 'OutputPathAssetReferenceResponse'] model: Reference to the model asset for the endpoint deployment. :param Mapping[str, str] properties: Property dictionary. Properties can be added, but not removed or altered. :param 'ProbeSettingsResponse' readiness_probe: Deployment container liveness/readiness probe configuration. :param 'OnlineRequestSettingsResponse' request_settings: Online deployment scoring requests configuration. :param Union['AutoScaleSettingsResponse', 'ManualScaleSettingsResponse'] scale_settings: Online deployment scaling configuration. """ pulumi.set(__self__, "endpoint_compute_type", 'Managed') pulumi.set(__self__, "provisioning_state", provisioning_state) if app_insights_enabled is not None: pulumi.set(__self__, "app_insights_enabled", app_insights_enabled) if code_configuration is not None: pulumi.set(__self__, "code_configuration", code_configuration) if description is not None: pulumi.set(__self__, "description", description) if environment_id is not None: pulumi.set(__self__, "environment_id", environment_id) if environment_variables is not None: pulumi.set(__self__, "environment_variables", environment_variables) if instance_type is not None: pulumi.set(__self__, "instance_type", instance_type) if liveness_probe is not None: pulumi.set(__self__, "liveness_probe", liveness_probe) if model is not None: pulumi.set(__self__, "model", model) if properties is not None: pulumi.set(__self__, "properties", properties) if readiness_probe is not None: pulumi.set(__self__, "readiness_probe", readiness_probe) if request_settings is not None: pulumi.set(__self__, "request_settings", request_settings) if scale_settings is not None: pulumi.set(__self__, "scale_settings", scale_settings) @property @pulumi.getter(name="endpointComputeType") def endpoint_compute_type(self) -> str: """ Enum to determine endpoint compute type. Expected value is 'Managed'. """ return pulumi.get(self, "endpoint_compute_type") @property @pulumi.getter(name="provisioningState") def provisioning_state(self) -> str: """ Provisioning state for the endpoint deployment. """ return pulumi.get(self, "provisioning_state") @property @pulumi.getter(name="appInsightsEnabled") def app_insights_enabled(self) -> Optional[bool]: """ If true, enables Application Insights logging. """ return pulumi.get(self, "app_insights_enabled") @property @pulumi.getter(name="codeConfiguration") def code_configuration(self) -> Optional['outputs.CodeConfigurationResponse']: """ Code configuration for the endpoint deployment. """ return pulumi.get(self, "code_configuration") @property @pulumi.getter def description(self) -> Optional[str]: """ Description of the endpoint deployment. """ return pulumi.get(self, "description") @property @pulumi.getter(name="environmentId") def environment_id(self) -> Optional[str]: """ ARM resource ID of the environment specification for the endpoint deployment. """ return pulumi.get(self, "environment_id") @property @pulumi.getter(name="environmentVariables") def environment_variables(self) -> Optional[Mapping[str, str]]: """ Environment variables configuration for the deployment. """ return pulumi.get(self, "environment_variables") @property @pulumi.getter(name="instanceType") def instance_type(self) -> Optional[str]: """ Compute instance type. """ return pulumi.get(self, "instance_type") @property @pulumi.getter(name="livenessProbe") def liveness_probe(self) -> Optional['outputs.ProbeSettingsResponse']: """ Deployment container liveness/readiness probe configuration. """ return pulumi.get(self, "liveness_probe") @property @pulumi.getter def model(self) -> Optional[Any]: """ Reference to the model asset for the endpoint deployment. """ return pulumi.get(self, "model") @property @pulumi.getter def properties(self) -> Optional[Mapping[str, str]]: """ Property dictionary. Properties can be added, but not removed or altered. """ return pulumi.get(self, "properties") @property @pulumi.getter(name="readinessProbe") def readiness_probe(self) -> Optional['outputs.ProbeSettingsResponse']: """ Deployment container liveness/readiness probe configuration. """ return pulumi.get(self, "readiness_probe") @property @pulumi.getter(name="requestSettings") def request_settings(self) -> Optional['outputs.OnlineRequestSettingsResponse']: """ Online deployment scoring requests configuration. """ return pulumi.get(self, "request_settings") @property @pulumi.getter(name="scaleSettings") def scale_settings(self) -> Optional[Any]: """ Online deployment scaling configuration. """ return pulumi.get(self, "scale_settings") @pulumi.output_type class ManualScaleSettingsResponse(dict): @staticmethod def __key_warning(key: str): suggest = None if key == "scaleType": suggest = "scale_type" elif key == "instanceCount": suggest = "instance_count" elif key == "maxInstances": suggest = "max_instances" elif key == "minInstances": suggest = "min_instances" if suggest: pulumi.log.warn(f"Key '{key}' not found in ManualScaleSettingsResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: ManualScaleSettingsResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: ManualScaleSettingsResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, scale_type: str, instance_count: Optional[int] = None, max_instances: Optional[int] = None, min_instances: Optional[int] = None): """ :param str scale_type: Expected value is 'Manual'. :param int instance_count: Fixed number of instances for this deployment. :param int max_instances: Maximum number of instances for this deployment. :param int min_instances: Minimum number of instances for this deployment. """ pulumi.set(__self__, "scale_type", 'Manual') if instance_count is not None: pulumi.set(__self__, "instance_count", instance_count) if max_instances is not None: pulumi.set(__self__, "max_instances", max_instances) if min_instances is not None: pulumi.set(__self__, "min_instances", min_instances) @property @pulumi.getter(name="scaleType") def scale_type(self) -> str: """ Expected value is 'Manual'. """ return pulumi.get(self, "scale_type") @property @pulumi.getter(name="instanceCount") def instance_count(self) -> Optional[int]: """ Fixed number of instances for this deployment. """ return pulumi.get(self, "instance_count") @property @pulumi.getter(name="maxInstances") def max_instances(self) -> Optional[int]: """ Maximum number of instances for this deployment. """ return pulumi.get(self, "max_instances") @property @pulumi.getter(name="minInstances") def min_instances(self) -> Optional[int]: """ Minimum number of instances for this deployment. """ return pulumi.get(self, "min_instances") @pulumi.output_type class MedianStoppingPolicyResponse(dict): """ Defines an early termination policy based on running averages of the primary metric of all runs. """ @staticmethod def __key_warning(key: str): suggest = None if key == "policyType": suggest = "policy_type" elif key == "delayEvaluation": suggest = "delay_evaluation" elif key == "evaluationInterval": suggest = "evaluation_interval" if suggest: pulumi.log.warn(f"Key '{key}' not found in MedianStoppingPolicyResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: MedianStoppingPolicyResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: MedianStoppingPolicyResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, policy_type: str, delay_evaluation: Optional[int] = None, evaluation_interval: Optional[int] = None): """ Defines an early termination policy based on running averages of the primary metric of all runs. :param str policy_type: Expected value is 'MedianStopping'. :param int delay_evaluation: Number of intervals by which to delay the first evaluation. :param int evaluation_interval: Interval (number of runs) between policy evaluations. """ pulumi.set(__self__, "policy_type", 'MedianStopping') if delay_evaluation is not None: pulumi.set(__self__, "delay_evaluation", delay_evaluation) if evaluation_interval is not None: pulumi.set(__self__, "evaluation_interval", evaluation_interval) @property @pulumi.getter(name="policyType") def policy_type(self) -> str: """ Expected value is 'MedianStopping'. """ return pulumi.get(self, "policy_type") @property @pulumi.getter(name="delayEvaluation") def delay_evaluation(self) -> Optional[int]: """ Number of intervals by which to delay the first evaluation. """ return pulumi.get(self, "delay_evaluation") @property @pulumi.getter(name="evaluationInterval") def evaluation_interval(self) -> Optional[int]: """ Interval (number of runs) between policy evaluations. """ return pulumi.get(self, "evaluation_interval") @pulumi.output_type class ModelContainerResponse(dict): def __init__(__self__, *, description: Optional[str] = None, properties: Optional[Mapping[str, str]] = None, tags: Optional[Mapping[str, str]] = None): """ :param str description: The asset description text. :param Mapping[str, str] properties: The asset property dictionary. :param Mapping[str, str] tags: Tag dictionary. Tags can be added, removed, and updated. """ if description is not None: pulumi.set(__self__, "description", description) if properties is not None: pulumi.set(__self__, "properties", properties) if tags is not None: pulumi.set(__self__, "tags", tags) @property @pulumi.getter def description(self) -> Optional[str]: """ The asset description text. """ return pulumi.get(self, "description") @property @pulumi.getter def properties(self) -> Optional[Mapping[str, str]]: """ The asset property dictionary. """ return pulumi.get(self, "properties") @property @pulumi.getter def tags(self) -> Optional[Mapping[str, str]]: """ Tag dictionary. Tags can be added, removed, and updated. """ return pulumi.get(self, "tags") @pulumi.output_type class ModelVersionResponse(dict): """ Model asset version details. """ @staticmethod def __key_warning(key: str): suggest = None if key == "datastoreId": suggest = "datastore_id" elif key == "isAnonymous": suggest = "is_anonymous" if suggest: pulumi.log.warn(f"Key '{key}' not found in ModelVersionResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: ModelVersionResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: ModelVersionResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, path: str, datastore_id: Optional[str] = None, description: Optional[str] = None, flavors: Optional[Mapping[str, 'outputs.FlavorDataResponse']] = None, is_anonymous: Optional[bool] = None, properties: Optional[Mapping[str, str]] = None, tags: Optional[Mapping[str, str]] = None): """ Model asset version details. :param str path: The path of the file/directory in the datastore. :param str datastore_id: ARM resource ID of the datastore where the asset is located. :param str description: The asset description text. :param Mapping[str, 'FlavorDataResponse'] flavors: Mapping of model flavors to their properties. :param bool is_anonymous: If the name version are system generated (anonymous registration). :param Mapping[str, str] properties: The asset property dictionary. :param Mapping[str, str] tags: Tag dictionary. Tags can be added, removed, and updated. """ pulumi.set(__self__, "path", path) if datastore_id is not None: pulumi.set(__self__, "datastore_id", datastore_id) if description is not None: pulumi.set(__self__, "description", description) if flavors is not None: pulumi.set(__self__, "flavors", flavors) if is_anonymous is not None: pulumi.set(__self__, "is_anonymous", is_anonymous) if properties is not None: pulumi.set(__self__, "properties", properties) if tags is not None: pulumi.set(__self__, "tags", tags) @property @pulumi.getter def path(self) -> str: """ The path of the file/directory in the datastore. """ return pulumi.get(self, "path") @property @pulumi.getter(name="datastoreId") def datastore_id(self) -> Optional[str]: """ ARM resource ID of the datastore where the asset is located. """ return pulumi.get(self, "datastore_id") @property @pulumi.getter def description(self) -> Optional[str]: """ The asset description text. """ return pulumi.get(self, "description") @property @pulumi.getter def flavors(self) -> Optional[Mapping[str, 'outputs.FlavorDataResponse']]: """ Mapping of model flavors to their properties. """ return pulumi.get(self, "flavors") @property @pulumi.getter(name="isAnonymous") def is_anonymous(self) -> Optional[bool]: """ If the name version are system generated (anonymous registration). """ return pulumi.get(self, "is_anonymous") @property @pulumi.getter def properties(self) -> Optional[Mapping[str, str]]: """ The asset property dictionary. """ return pulumi.get(self, "properties") @property @pulumi.getter def tags(self) -> Optional[Mapping[str, str]]: """ Tag dictionary. Tags can be added, removed, and updated. """ return pulumi.get(self, "tags") @pulumi.output_type class MpiResponse(dict): """ MPI distribution configuration. """ @staticmethod def __key_warning(key: str): suggest = None if key == "distributionType": suggest = "distribution_type" elif key == "processCountPerInstance": suggest = "process_count_per_instance" if suggest: pulumi.log.warn(f"Key '{key}' not found in MpiResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: MpiResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: MpiResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, distribution_type: str, process_count_per_instance: Optional[int] = None): """ MPI distribution configuration. :param str distribution_type: Enum to determine the job distribution type. Expected value is 'Mpi'. :param int process_count_per_instance: Number of processes per MPI node. """ pulumi.set(__self__, "distribution_type", 'Mpi') if process_count_per_instance is not None: pulumi.set(__self__, "process_count_per_instance", process_count_per_instance) @property @pulumi.getter(name="distributionType") def distribution_type(self) -> str: """ Enum to determine the job distribution type. Expected value is 'Mpi'. """ return pulumi.get(self, "distribution_type") @property @pulumi.getter(name="processCountPerInstance") def process_count_per_instance(self) -> Optional[int]: """ Number of processes per MPI node. """ return pulumi.get(self, "process_count_per_instance") @pulumi.output_type class NodeStateCountsResponse(dict): """ Counts of various compute node states on the amlCompute. """ @staticmethod def __key_warning(key: str): suggest = None if key == "idleNodeCount": suggest = "idle_node_count" elif key == "leavingNodeCount": suggest = "leaving_node_count" elif key == "preemptedNodeCount": suggest = "preempted_node_count" elif key == "preparingNodeCount": suggest = "preparing_node_count" elif key == "runningNodeCount": suggest = "running_node_count" elif key == "unusableNodeCount": suggest = "unusable_node_count" if suggest: pulumi.log.warn(f"Key '{key}' not found in NodeStateCountsResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: NodeStateCountsResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: NodeStateCountsResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, idle_node_count: int, leaving_node_count: int, preempted_node_count: int, preparing_node_count: int, running_node_count: int, unusable_node_count: int): """ Counts of various compute node states on the amlCompute. :param int idle_node_count: Number of compute nodes in idle state. :param int leaving_node_count: Number of compute nodes which are leaving the amlCompute. :param int preempted_node_count: Number of compute nodes which are in preempted state. :param int preparing_node_count: Number of compute nodes which are being prepared. :param int running_node_count: Number of compute nodes which are running jobs. :param int unusable_node_count: Number of compute nodes which are in unusable state. """ pulumi.set(__self__, "idle_node_count", idle_node_count) pulumi.set(__self__, "leaving_node_count", leaving_node_count) pulumi.set(__self__, "preempted_node_count", preempted_node_count) pulumi.set(__self__, "preparing_node_count", preparing_node_count) pulumi.set(__self__, "running_node_count", running_node_count) pulumi.set(__self__, "unusable_node_count", unusable_node_count) @property @pulumi.getter(name="idleNodeCount") def idle_node_count(self) -> int: """ Number of compute nodes in idle state. """ return pulumi.get(self, "idle_node_count") @property @pulumi.getter(name="leavingNodeCount") def leaving_node_count(self) -> int: """ Number of compute nodes which are leaving the amlCompute. """ return pulumi.get(self, "leaving_node_count") @property @pulumi.getter(name="preemptedNodeCount") def preempted_node_count(self) -> int: """ Number of compute nodes which are in preempted state. """ return pulumi.get(self, "preempted_node_count") @property @pulumi.getter(name="preparingNodeCount") def preparing_node_count(self) -> int: """ Number of compute nodes which are being prepared. """ return pulumi.get(self, "preparing_node_count") @property @pulumi.getter(name="runningNodeCount") def running_node_count(self) -> int: """ Number of compute nodes which are running jobs. """ return pulumi.get(self, "running_node_count") @property @pulumi.getter(name="unusableNodeCount") def unusable_node_count(self) -> int: """ Number of compute nodes which are in unusable state. """ return pulumi.get(self, "unusable_node_count") @pulumi.output_type class NoneDatastoreCredentialsResponse(dict): """ Empty/none datastore credentials. """ @staticmethod def __key_warning(key: str): suggest = None if key == "credentialsType": suggest = "credentials_type" if suggest: pulumi.log.warn(f"Key '{key}' not found in NoneDatastoreCredentialsResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: NoneDatastoreCredentialsResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: NoneDatastoreCredentialsResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, credentials_type: str): """ Empty/none datastore credentials. :param str credentials_type: Enum to determine the datastore credentials type. Expected value is 'None'. """ pulumi.set(__self__, "credentials_type", 'None') @property @pulumi.getter(name="credentialsType") def credentials_type(self) -> str: """ Enum to determine the datastore credentials type. Expected value is 'None'. """ return pulumi.get(self, "credentials_type") @pulumi.output_type class NotebookPreparationErrorResponse(dict): @staticmethod def __key_warning(key: str): suggest = None if key == "errorMessage": suggest = "error_message" elif key == "statusCode": suggest = "status_code" if suggest: pulumi.log.warn(f"Key '{key}' not found in NotebookPreparationErrorResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: NotebookPreparationErrorResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: NotebookPreparationErrorResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, error_message: Optional[str] = None, status_code: Optional[int] = None): if error_message is not None: pulumi.set(__self__, "error_message", error_message) if status_code is not None: pulumi.set(__self__, "status_code", status_code) @property @pulumi.getter(name="errorMessage") def error_message(self) -> Optional[str]: return pulumi.get(self, "error_message") @property @pulumi.getter(name="statusCode") def status_code(self) -> Optional[int]: return pulumi.get(self, "status_code") @pulumi.output_type class NotebookResourceInfoResponse(dict): @staticmethod def __key_warning(key: str): suggest = None if key == "notebookPreparationError": suggest = "notebook_preparation_error" elif key == "resourceId": suggest = "resource_id" if suggest: pulumi.log.warn(f"Key '{key}' not found in NotebookResourceInfoResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: NotebookResourceInfoResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: NotebookResourceInfoResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, fqdn: Optional[str] = None, notebook_preparation_error: Optional['outputs.NotebookPreparationErrorResponse'] = None, resource_id: Optional[str] = None): """ :param 'NotebookPreparationErrorResponse' notebook_preparation_error: The error that occurs when preparing notebook. :param str resource_id: the data plane resourceId that used to initialize notebook component """ if fqdn is not None: pulumi.set(__self__, "fqdn", fqdn) if notebook_preparation_error is not None: pulumi.set(__self__, "notebook_preparation_error", notebook_preparation_error) if resource_id is not None: pulumi.set(__self__, "resource_id", resource_id) @property @pulumi.getter def fqdn(self) -> Optional[str]: return pulumi.get(self, "fqdn") @property @pulumi.getter(name="notebookPreparationError") def notebook_preparation_error(self) -> Optional['outputs.NotebookPreparationErrorResponse']: """ The error that occurs when preparing notebook. """ return pulumi.get(self, "notebook_preparation_error") @property @pulumi.getter(name="resourceId") def resource_id(self) -> Optional[str]: """ the data plane resourceId that used to initialize notebook component """ return pulumi.get(self, "resource_id") @pulumi.output_type class ObjectiveResponse(dict): """ Optimization objective. """ @staticmethod def __key_warning(key: str): suggest = None if key == "primaryMetric": suggest = "primary_metric" if suggest: pulumi.log.warn(f"Key '{key}' not found in ObjectiveResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: ObjectiveResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: ObjectiveResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, goal: str, primary_metric: str): """ Optimization objective. :param str goal: Defines supported metric goals for hyperparameter tuning :param str primary_metric: Name of the metric to optimize. """ pulumi.set(__self__, "goal", goal) pulumi.set(__self__, "primary_metric", primary_metric) @property @pulumi.getter def goal(self) -> str: """ Defines supported metric goals for hyperparameter tuning """ return pulumi.get(self, "goal") @property @pulumi.getter(name="primaryMetric") def primary_metric(self) -> str: """ Name of the metric to optimize. """ return pulumi.get(self, "primary_metric") @pulumi.output_type class OnlineEndpointResponse(dict): """ Online endpoint configuration """ @staticmethod def __key_warning(key: str): suggest = None if key == "authMode": suggest = "auth_mode" elif key == "provisioningState": suggest = "provisioning_state" elif key == "scoringUri": suggest = "scoring_uri" elif key == "swaggerUri": suggest = "swagger_uri" if suggest: pulumi.log.warn(f"Key '{key}' not found in OnlineEndpointResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: OnlineEndpointResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: OnlineEndpointResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, auth_mode: str, provisioning_state: str, scoring_uri: str, swagger_uri: str, description: Optional[str] = None, properties: Optional[Mapping[str, str]] = None, target: Optional[str] = None, traffic: Optional[Mapping[str, int]] = None): """ Online endpoint configuration :param str auth_mode: Inference endpoint authentication mode type :param str provisioning_state: State of endpoint provisioning. :param str scoring_uri: Endpoint URI. :param str swagger_uri: Endpoint Swagger URI. :param str description: Description of the inference endpoint. :param Mapping[str, str] properties: Property dictionary. Properties can be added, but not removed or altered. :param str target: ARM resource ID of the compute if it exists. optional :param Mapping[str, int] traffic: Traffic rules on how the traffic will be routed across deployments. """ pulumi.set(__self__, "auth_mode", auth_mode) pulumi.set(__self__, "provisioning_state", provisioning_state) pulumi.set(__self__, "scoring_uri", scoring_uri) pulumi.set(__self__, "swagger_uri", swagger_uri) if description is not None: pulumi.set(__self__, "description", description) if properties is not None: pulumi.set(__self__, "properties", properties) if target is not None: pulumi.set(__self__, "target", target) if traffic is not None: pulumi.set(__self__, "traffic", traffic) @property @pulumi.getter(name="authMode") def auth_mode(self) -> str: """ Inference endpoint authentication mode type """ return pulumi.get(self, "auth_mode") @property @pulumi.getter(name="provisioningState") def provisioning_state(self) -> str: """ State of endpoint provisioning. """ return pulumi.get(self, "provisioning_state") @property @pulumi.getter(name="scoringUri") def scoring_uri(self) -> str: """ Endpoint URI. """ return pulumi.get(self, "scoring_uri") @property @pulumi.getter(name="swaggerUri") def swagger_uri(self) -> str: """ Endpoint Swagger URI. """ return pulumi.get(self, "swagger_uri") @property @pulumi.getter def description(self) -> Optional[str]: """ Description of the inference endpoint. """ return pulumi.get(self, "description") @property @pulumi.getter def properties(self) -> Optional[Mapping[str, str]]: """ Property dictionary. Properties can be added, but not removed or altered. """ return pulumi.get(self, "properties") @property @pulumi.getter def target(self) -> Optional[str]: """ ARM resource ID of the compute if it exists. optional """ return pulumi.get(self, "target") @property @pulumi.getter def traffic(self) -> Optional[Mapping[str, int]]: """ Traffic rules on how the traffic will be routed across deployments. """ return pulumi.get(self, "traffic") @pulumi.output_type class OnlineRequestSettingsResponse(dict): """ Online deployment scoring requests configuration. """ @staticmethod def __key_warning(key: str): suggest = None if key == "maxConcurrentRequestsPerInstance": suggest = "max_concurrent_requests_per_instance" elif key == "maxQueueWait": suggest = "max_queue_wait" elif key == "requestTimeout": suggest = "request_timeout" if suggest: pulumi.log.warn(f"Key '{key}' not found in OnlineRequestSettingsResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: OnlineRequestSettingsResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: OnlineRequestSettingsResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, max_concurrent_requests_per_instance: Optional[int] = None, max_queue_wait: Optional[str] = None, request_timeout: Optional[str] = None): """ Online deployment scoring requests configuration. :param int max_concurrent_requests_per_instance: The number of requests allowed to queue at once for this deployment. :param str max_queue_wait: The maximum queue wait time in ISO 8601 format. Supports millisecond precision. :param str request_timeout: The request timeout in ISO 8601 format. Supports millisecond precision. """ if max_concurrent_requests_per_instance is not None: pulumi.set(__self__, "max_concurrent_requests_per_instance", max_concurrent_requests_per_instance) if max_queue_wait is not None: pulumi.set(__self__, "max_queue_wait", max_queue_wait) if request_timeout is not None: pulumi.set(__self__, "request_timeout", request_timeout) @property @pulumi.getter(name="maxConcurrentRequestsPerInstance") def max_concurrent_requests_per_instance(self) -> Optional[int]: """ The number of requests allowed to queue at once for this deployment. """ return pulumi.get(self, "max_concurrent_requests_per_instance") @property @pulumi.getter(name="maxQueueWait") def max_queue_wait(self) -> Optional[str]: """ The maximum queue wait time in ISO 8601 format. Supports millisecond precision. """ return pulumi.get(self, "max_queue_wait") @property @pulumi.getter(name="requestTimeout") def request_timeout(self) -> Optional[str]: """ The request timeout in ISO 8601 format. Supports millisecond precision. """ return pulumi.get(self, "request_timeout") @pulumi.output_type class OutputDataBindingResponse(dict): @staticmethod def __key_warning(key: str): suggest = None if key == "datastoreId": suggest = "datastore_id" elif key == "pathOnCompute": suggest = "path_on_compute" elif key == "pathOnDatastore": suggest = "path_on_datastore" if suggest: pulumi.log.warn(f"Key '{key}' not found in OutputDataBindingResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: OutputDataBindingResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: OutputDataBindingResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, datastore_id: Optional[str] = None, mode: Optional[str] = None, path_on_compute: Optional[str] = None, path_on_datastore: Optional[str] = None): """ :param str datastore_id: ARM resource ID of the datastore where the data output will be stored. :param str mode: Mechanism for data movement to datastore. :param str path_on_compute: Location of data inside the container process. :param str path_on_datastore: Path within the datastore to the data. """ if datastore_id is not None: pulumi.set(__self__, "datastore_id", datastore_id) if mode is not None: pulumi.set(__self__, "mode", mode) if path_on_compute is not None: pulumi.set(__self__, "path_on_compute", path_on_compute) if path_on_datastore is not None: pulumi.set(__self__, "path_on_datastore", path_on_datastore) @property @pulumi.getter(name="datastoreId") def datastore_id(self) -> Optional[str]: """ ARM resource ID of the datastore where the data output will be stored. """ return pulumi.get(self, "datastore_id") @property @pulumi.getter def mode(self) -> Optional[str]: """ Mechanism for data movement to datastore. """ return pulumi.get(self, "mode") @property @pulumi.getter(name="pathOnCompute") def path_on_compute(self) -> Optional[str]: """ Location of data inside the container process. """ return pulumi.get(self, "path_on_compute") @property @pulumi.getter(name="pathOnDatastore") def path_on_datastore(self) -> Optional[str]: """ Path within the datastore to the data. """ return pulumi.get(self, "path_on_datastore") @pulumi.output_type class OutputPathAssetReferenceResponse(dict): """ Reference to an asset via its path in a job output. """ @staticmethod def __key_warning(key: str): suggest = None if key == "referenceType": suggest = "reference_type" elif key == "jobId": suggest = "job_id" if suggest: pulumi.log.warn(f"Key '{key}' not found in OutputPathAssetReferenceResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: OutputPathAssetReferenceResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: OutputPathAssetReferenceResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, reference_type: str, job_id: Optional[str] = None, path: Optional[str] = None): """ Reference to an asset via its path in a job output. :param str reference_type: Enum to determine which reference method to use for an asset. Expected value is 'OutputPath'. :param str job_id: ARM resource ID of the job. :param str path: The path of the file/directory in the job output. """ pulumi.set(__self__, "reference_type", 'OutputPath') if job_id is not None: pulumi.set(__self__, "job_id", job_id) if path is not None: pulumi.set(__self__, "path", path) @property @pulumi.getter(name="referenceType") def reference_type(self) -> str: """ Enum to determine which reference method to use for an asset. Expected value is 'OutputPath'. """ return pulumi.get(self, "reference_type") @property @pulumi.getter(name="jobId") def job_id(self) -> Optional[str]: """ ARM resource ID of the job. """ return pulumi.get(self, "job_id") @property @pulumi.getter def path(self) -> Optional[str]: """ The path of the file/directory in the job output. """ return pulumi.get(self, "path") @pulumi.output_type class PasswordResponse(dict): def __init__(__self__, *, name: str, value: str): pulumi.set(__self__, "name", name) pulumi.set(__self__, "value", value) @property @pulumi.getter def name(self) -> str: return pulumi.get(self, "name") @property @pulumi.getter def value(self) -> str: return pulumi.get(self, "value") @pulumi.output_type class PersonalComputeInstanceSettingsResponse(dict): """ Settings for a personal compute instance. """ @staticmethod def __key_warning(key: str): suggest = None if key == "assignedUser": suggest = "assigned_user" if suggest: pulumi.log.warn(f"Key '{key}' not found in PersonalComputeInstanceSettingsResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: PersonalComputeInstanceSettingsResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: PersonalComputeInstanceSettingsResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, assigned_user: Optional['outputs.AssignedUserResponse'] = None): """ Settings for a personal compute instance. :param 'AssignedUserResponse' assigned_user: A user explicitly assigned to a personal compute instance. """ if assigned_user is not None: pulumi.set(__self__, "assigned_user", assigned_user) @property @pulumi.getter(name="assignedUser") def assigned_user(self) -> Optional['outputs.AssignedUserResponse']: """ A user explicitly assigned to a personal compute instance. """ return pulumi.get(self, "assigned_user") @pulumi.output_type class PrivateEndpointConnectionResponse(dict): """ The Private Endpoint Connection resource. """ @staticmethod def __key_warning(key: str): suggest = None if key == "privateLinkServiceConnectionState": suggest = "private_link_service_connection_state" elif key == "provisioningState": suggest = "provisioning_state" elif key == "systemData": suggest = "system_data" elif key == "privateEndpoint": suggest = "private_endpoint" if suggest: pulumi.log.warn(f"Key '{key}' not found in PrivateEndpointConnectionResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: PrivateEndpointConnectionResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: PrivateEndpointConnectionResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, id: str, name: str, private_link_service_connection_state: 'outputs.PrivateLinkServiceConnectionStateResponse', provisioning_state: str, system_data: 'outputs.SystemDataResponse', type: str, identity: Optional['outputs.IdentityResponse'] = None, location: Optional[str] = None, private_endpoint: Optional['outputs.PrivateEndpointResponse'] = None, sku: Optional['outputs.SkuResponse'] = None, tags: Optional[Mapping[str, str]] = None): """ The Private Endpoint Connection resource. :param str id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :param str name: The name of the resource :param 'PrivateLinkServiceConnectionStateResponse' private_link_service_connection_state: A collection of information about the state of the connection between service consumer and provider. :param str provisioning_state: The provisioning state of the private endpoint connection resource. :param 'SystemDataResponse' system_data: Metadata pertaining to creation and last modification of the resource. :param str type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :param 'IdentityResponse' identity: The identity of the resource. :param str location: Specifies the location of the resource. :param 'PrivateEndpointResponse' private_endpoint: The resource of private end point. :param 'SkuResponse' sku: The sku of the workspace. :param Mapping[str, str] tags: Contains resource tags defined as key/value pairs. """ pulumi.set(__self__, "id", id) pulumi.set(__self__, "name", name) pulumi.set(__self__, "private_link_service_connection_state", private_link_service_connection_state) pulumi.set(__self__, "provisioning_state", provisioning_state) pulumi.set(__self__, "system_data", system_data) pulumi.set(__self__, "type", type) if identity is not None: pulumi.set(__self__, "identity", identity) if location is not None: pulumi.set(__self__, "location", location) if private_endpoint is not None: pulumi.set(__self__, "private_endpoint", private_endpoint) if sku is not None: pulumi.set(__self__, "sku", sku) if tags is not None: pulumi.set(__self__, "tags", tags) @property @pulumi.getter def id(self) -> str: """ Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} """ return pulumi.get(self, "id") @property @pulumi.getter def name(self) -> str: """ The name of the resource """ return pulumi.get(self, "name") @property @pulumi.getter(name="privateLinkServiceConnectionState") def private_link_service_connection_state(self) -> 'outputs.PrivateLinkServiceConnectionStateResponse': """ A collection of information about the state of the connection between service consumer and provider. """ return pulumi.get(self, "private_link_service_connection_state") @property @pulumi.getter(name="provisioningState") def provisioning_state(self) -> str: """ The provisioning state of the private endpoint connection resource. """ return pulumi.get(self, "provisioning_state") @property @pulumi.getter(name="systemData") def system_data(self) -> 'outputs.SystemDataResponse': """ Metadata pertaining to creation and last modification of the resource. """ return pulumi.get(self, "system_data") @property @pulumi.getter def type(self) -> str: """ The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" """ return pulumi.get(self, "type") @property @pulumi.getter def identity(self) -> Optional['outputs.IdentityResponse']: """ The identity of the resource. """ return pulumi.get(self, "identity") @property @pulumi.getter def location(self) -> Optional[str]: """ Specifies the location of the resource. """ return pulumi.get(self, "location") @property @pulumi.getter(name="privateEndpoint") def private_endpoint(self) -> Optional['outputs.PrivateEndpointResponse']: """ The resource of private end point. """ return pulumi.get(self, "private_endpoint") @property @pulumi.getter def sku(self) -> Optional['outputs.SkuResponse']: """ The sku of the workspace. """ return pulumi.get(self, "sku") @property @pulumi.getter def tags(self) -> Optional[Mapping[str, str]]: """ Contains resource tags defined as key/value pairs. """ return pulumi.get(self, "tags") @pulumi.output_type class PrivateEndpointResponse(dict): """ The Private Endpoint resource. """ @staticmethod def __key_warning(key: str): suggest = None if key == "subnetArmId": suggest = "subnet_arm_id" if suggest: pulumi.log.warn(f"Key '{key}' not found in PrivateEndpointResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: PrivateEndpointResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: PrivateEndpointResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, id: str, subnet_arm_id: str): """ The Private Endpoint resource. :param str id: The ARM identifier for Private Endpoint :param str subnet_arm_id: The ARM identifier for Subnet resource that private endpoint links to """ pulumi.set(__self__, "id", id) pulumi.set(__self__, "subnet_arm_id", subnet_arm_id) @property @pulumi.getter def id(self) -> str: """ The ARM identifier for Private Endpoint """ return pulumi.get(self, "id") @property @pulumi.getter(name="subnetArmId") def subnet_arm_id(self) -> str: """ The ARM identifier for Subnet resource that private endpoint links to """ return pulumi.get(self, "subnet_arm_id") @pulumi.output_type class PrivateLinkServiceConnectionStateResponse(dict): """ A collection of information about the state of the connection between service consumer and provider. """ @staticmethod def __key_warning(key: str): suggest = None if key == "actionsRequired": suggest = "actions_required" if suggest: pulumi.log.warn(f"Key '{key}' not found in PrivateLinkServiceConnectionStateResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: PrivateLinkServiceConnectionStateResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: PrivateLinkServiceConnectionStateResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, actions_required: Optional[str] = None, description: Optional[str] = None, status: Optional[str] = None): """ A collection of information about the state of the connection between service consumer and provider. :param str actions_required: A message indicating if changes on the service provider require any updates on the consumer. :param str description: The reason for approval/rejection of the connection. :param str status: Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. """ if actions_required is not None: pulumi.set(__self__, "actions_required", actions_required) if description is not None: pulumi.set(__self__, "description", description) if status is not None: pulumi.set(__self__, "status", status) @property @pulumi.getter(name="actionsRequired") def actions_required(self) -> Optional[str]: """ A message indicating if changes on the service provider require any updates on the consumer. """ return pulumi.get(self, "actions_required") @property @pulumi.getter def description(self) -> Optional[str]: """ The reason for approval/rejection of the connection. """ return pulumi.get(self, "description") @property @pulumi.getter def status(self) -> Optional[str]: """ Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. """ return pulumi.get(self, "status") @pulumi.output_type class ProbeSettingsResponse(dict): """ Deployment container liveness/readiness probe configuration. """ @staticmethod def __key_warning(key: str): suggest = None if key == "failureThreshold": suggest = "failure_threshold" elif key == "initialDelay": suggest = "initial_delay" elif key == "successThreshold": suggest = "success_threshold" if suggest: pulumi.log.warn(f"Key '{key}' not found in ProbeSettingsResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: ProbeSettingsResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: ProbeSettingsResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, failure_threshold: Optional[int] = None, initial_delay: Optional[str] = None, period: Optional[str] = None, success_threshold: Optional[int] = None, timeout: Optional[str] = None): """ Deployment container liveness/readiness probe configuration. :param int failure_threshold: The number of failures to allow before returning an unhealthy status. :param str initial_delay: The delay before the first probe in ISO 8601 format. :param str period: The length of time between probes in ISO 8601 format. :param int success_threshold: The number of successful probes before returning a healthy status. :param str timeout: The probe timeout in ISO 8601 format. """ if failure_threshold is not None: pulumi.set(__self__, "failure_threshold", failure_threshold) if initial_delay is not None: pulumi.set(__self__, "initial_delay", initial_delay) if period is not None: pulumi.set(__self__, "period", period) if success_threshold is not None: pulumi.set(__self__, "success_threshold", success_threshold) if timeout is not None: pulumi.set(__self__, "timeout", timeout) @property @pulumi.getter(name="failureThreshold") def failure_threshold(self) -> Optional[int]: """ The number of failures to allow before returning an unhealthy status. """ return pulumi.get(self, "failure_threshold") @property @pulumi.getter(name="initialDelay") def initial_delay(self) -> Optional[str]: """ The delay before the first probe in ISO 8601 format. """ return pulumi.get(self, "initial_delay") @property @pulumi.getter def period(self) -> Optional[str]: """ The length of time between probes in ISO 8601 format. """ return pulumi.get(self, "period") @property @pulumi.getter(name="successThreshold") def success_threshold(self) -> Optional[int]: """ The number of successful probes before returning a healthy status. """ return pulumi.get(self, "success_threshold") @property @pulumi.getter def timeout(self) -> Optional[str]: """ The probe timeout in ISO 8601 format. """ return pulumi.get(self, "timeout") @pulumi.output_type class ProgressMetricsResponse(dict): """ Progress metrics definition """ @staticmethod def __key_warning(key: str): suggest = None if key == "completedDatapointCount": suggest = "completed_datapoint_count" elif key == "incrementalDatasetLastRefreshTime": suggest = "incremental_dataset_last_refresh_time" elif key == "skippedDatapointCount": suggest = "skipped_datapoint_count" elif key == "totalDatapointCount": suggest = "total_datapoint_count" if suggest: pulumi.log.warn(f"Key '{key}' not found in ProgressMetricsResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: ProgressMetricsResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: ProgressMetricsResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, completed_datapoint_count: float, incremental_dataset_last_refresh_time: str, skipped_datapoint_count: float, total_datapoint_count: float): """ Progress metrics definition :param float completed_datapoint_count: The completed datapoint count. :param str incremental_dataset_last_refresh_time: The time of last successful incremental dataset refresh in UTC. :param float skipped_datapoint_count: The skipped datapoint count. :param float total_datapoint_count: The total datapoint count. """ pulumi.set(__self__, "completed_datapoint_count", completed_datapoint_count) pulumi.set(__self__, "incremental_dataset_last_refresh_time", incremental_dataset_last_refresh_time) pulumi.set(__self__, "skipped_datapoint_count", skipped_datapoint_count) pulumi.set(__self__, "total_datapoint_count", total_datapoint_count) @property @pulumi.getter(name="completedDatapointCount") def completed_datapoint_count(self) -> float: """ The completed datapoint count. """ return pulumi.get(self, "completed_datapoint_count") @property @pulumi.getter(name="incrementalDatasetLastRefreshTime") def incremental_dataset_last_refresh_time(self) -> str: """ The time of last successful incremental dataset refresh in UTC. """ return pulumi.get(self, "incremental_dataset_last_refresh_time") @property @pulumi.getter(name="skippedDatapointCount") def skipped_datapoint_count(self) -> float: """ The skipped datapoint count. """ return pulumi.get(self, "skipped_datapoint_count") @property @pulumi.getter(name="totalDatapointCount") def total_datapoint_count(self) -> float: """ The total datapoint count. """ return pulumi.get(self, "total_datapoint_count") @pulumi.output_type class PyTorchResponse(dict): """ PyTorch distribution configuration. """ @staticmethod def __key_warning(key: str): suggest = None if key == "distributionType": suggest = "distribution_type" elif key == "processCount": suggest = "process_count" if suggest: pulumi.log.warn(f"Key '{key}' not found in PyTorchResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: PyTorchResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: PyTorchResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, distribution_type: str, process_count: Optional[int] = None): """ PyTorch distribution configuration. :param str distribution_type: Enum to determine the job distribution type. Expected value is 'PyTorch'. :param int process_count: Total process count for the distributed job. """ pulumi.set(__self__, "distribution_type", 'PyTorch') if process_count is not None: pulumi.set(__self__, "process_count", process_count) @property @pulumi.getter(name="distributionType") def distribution_type(self) -> str: """ Enum to determine the job distribution type. Expected value is 'PyTorch'. """ return pulumi.get(self, "distribution_type") @property @pulumi.getter(name="processCount") def process_count(self) -> Optional[int]: """ Total process count for the distributed job. """ return pulumi.get(self, "process_count") @pulumi.output_type class RecurrenceResponse(dict): """ The workflow trigger recurrence for ComputeStartStop schedule type. """ @staticmethod def __key_warning(key: str): suggest = None if key == "startTime": suggest = "start_time" elif key == "timeZone": suggest = "time_zone" if suggest: pulumi.log.warn(f"Key '{key}' not found in RecurrenceResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: RecurrenceResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: RecurrenceResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, frequency: Optional[str] = None, interval: Optional[int] = None, schedule: Optional['outputs.RecurrenceScheduleResponse'] = None, start_time: Optional[str] = None, time_zone: Optional[str] = None): """ The workflow trigger recurrence for ComputeStartStop schedule type. :param str frequency: The recurrence frequency. :param int interval: The interval. :param 'RecurrenceScheduleResponse' schedule: The recurrence schedule :param str start_time: The start time. :param str time_zone: The time zone. """ if frequency is not None: pulumi.set(__self__, "frequency", frequency) if interval is not None: pulumi.set(__self__, "interval", interval) if schedule is not None: pulumi.set(__self__, "schedule", schedule) if start_time is not None: pulumi.set(__self__, "start_time", start_time) if time_zone is not None: pulumi.set(__self__, "time_zone", time_zone) @property @pulumi.getter def frequency(self) -> Optional[str]: """ The recurrence frequency. """ return pulumi.get(self, "frequency") @property @pulumi.getter def interval(self) -> Optional[int]: """ The interval. """ return pulumi.get(self, "interval") @property @pulumi.getter def schedule(self) -> Optional['outputs.RecurrenceScheduleResponse']: """ The recurrence schedule """ return pulumi.get(self, "schedule") @property @pulumi.getter(name="startTime") def start_time(self) -> Optional[str]: """ The start time. """ return pulumi.get(self, "start_time") @property @pulumi.getter(name="timeZone") def time_zone(self) -> Optional[str]: """ The time zone. """ return pulumi.get(self, "time_zone") @pulumi.output_type class RecurrenceScheduleResponse(dict): """ The recurrence schedule """ @staticmethod def __key_warning(key: str): suggest = None if key == "weekDays": suggest = "week_days" if suggest: pulumi.log.warn(f"Key '{key}' not found in RecurrenceScheduleResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: RecurrenceScheduleResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: RecurrenceScheduleResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, hours: Optional[Sequence[int]] = None, minutes: Optional[Sequence[int]] = None, week_days: Optional[Sequence[str]] = None): """ The recurrence schedule :param Sequence[int] hours: The hours. :param Sequence[int] minutes: The minutes. :param Sequence[str] week_days: The days of the week. """ if hours is not None: pulumi.set(__self__, "hours", hours) if minutes is not None: pulumi.set(__self__, "minutes", minutes) if week_days is not None: pulumi.set(__self__, "week_days", week_days) @property @pulumi.getter def hours(self) -> Optional[Sequence[int]]: """ The hours. """ return pulumi.get(self, "hours") @property @pulumi.getter def minutes(self) -> Optional[Sequence[int]]: """ The minutes. """ return pulumi.get(self, "minutes") @property @pulumi.getter(name="weekDays") def week_days(self) -> Optional[Sequence[str]]: """ The days of the week. """ return pulumi.get(self, "week_days") @pulumi.output_type class RegistryListCredentialsResultResponse(dict): def __init__(__self__, *, location: str, username: str, passwords: Optional[Sequence['outputs.PasswordResponse']] = None): pulumi.set(__self__, "location", location) pulumi.set(__self__, "username", username) if passwords is not None: pulumi.set(__self__, "passwords", passwords) @property @pulumi.getter def location(self) -> str: return pulumi.get(self, "location") @property @pulumi.getter def username(self) -> str: return pulumi.get(self, "username") @property @pulumi.getter def passwords(self) -> Optional[Sequence['outputs.PasswordResponse']]: return pulumi.get(self, "passwords") @pulumi.output_type class ResourceIdResponse(dict): """ Represents a resource ID. For example, for a subnet, it is the resource URL for the subnet. """ def __init__(__self__, *, id: str): """ Represents a resource ID. For example, for a subnet, it is the resource URL for the subnet. :param str id: The ID of the resource """ pulumi.set(__self__, "id", id) @property @pulumi.getter def id(self) -> str: """ The ID of the resource """ return pulumi.get(self, "id") @pulumi.output_type class ResourceIdentityResponse(dict): """ Service identity associated with a resource. """ @staticmethod def __key_warning(key: str): suggest = None if key == "principalId": suggest = "principal_id" elif key == "tenantId": suggest = "tenant_id" elif key == "userAssignedIdentities": suggest = "user_assigned_identities" if suggest: pulumi.log.warn(f"Key '{key}' not found in ResourceIdentityResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: ResourceIdentityResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: ResourceIdentityResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, principal_id: str, tenant_id: str, type: Optional[str] = None, user_assigned_identities: Optional[Mapping[str, 'outputs.UserAssignedIdentityMetaResponse']] = None): """ Service identity associated with a resource. :param str principal_id: Client ID that is used when authenticating. :param str tenant_id: AAD Tenant where this identity lives. :param str type: Defines values for a ResourceIdentity's type. :param Mapping[str, 'UserAssignedIdentityMetaResponse'] user_assigned_identities: Dictionary of the user assigned identities, key is ARM resource ID of the UAI. """ pulumi.set(__self__, "principal_id", principal_id) pulumi.set(__self__, "tenant_id", tenant_id) if type is not None: pulumi.set(__self__, "type", type) if user_assigned_identities is not None: pulumi.set(__self__, "user_assigned_identities", user_assigned_identities) @property @pulumi.getter(name="principalId") def principal_id(self) -> str: """ Client ID that is used when authenticating. """ return pulumi.get(self, "principal_id") @property @pulumi.getter(name="tenantId") def tenant_id(self) -> str: """ AAD Tenant where this identity lives. """ return pulumi.get(self, "tenant_id") @property @pulumi.getter def type(self) -> Optional[str]: """ Defines values for a ResourceIdentity's type. """ return pulumi.get(self, "type") @property @pulumi.getter(name="userAssignedIdentities") def user_assigned_identities(self) -> Optional[Mapping[str, 'outputs.UserAssignedIdentityMetaResponse']]: """ Dictionary of the user assigned identities, key is ARM resource ID of the UAI. """ return pulumi.get(self, "user_assigned_identities") @pulumi.output_type class RouteResponse(dict): def __init__(__self__, *, path: str, port: int): """ :param str path: The path for the route. :param int port: The port for the route. """ pulumi.set(__self__, "path", path) pulumi.set(__self__, "port", port) @property @pulumi.getter def path(self) -> str: """ The path for the route. """ return pulumi.get(self, "path") @property @pulumi.getter def port(self) -> int: """ The port for the route. """ return pulumi.get(self, "port") @pulumi.output_type class SasDatastoreCredentialsResponse(dict): """ SAS datastore credentials configuration. """ @staticmethod def __key_warning(key: str): suggest = None if key == "credentialsType": suggest = "credentials_type" if suggest: pulumi.log.warn(f"Key '{key}' not found in SasDatastoreCredentialsResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: SasDatastoreCredentialsResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: SasDatastoreCredentialsResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, credentials_type: str): """ SAS datastore credentials configuration. :param str credentials_type: Enum to determine the datastore credentials type. Expected value is 'Sas'. """ pulumi.set(__self__, "credentials_type", 'Sas') @property @pulumi.getter(name="credentialsType") def credentials_type(self) -> str: """ Enum to determine the datastore credentials type. Expected value is 'Sas'. """ return pulumi.get(self, "credentials_type") @pulumi.output_type class ScaleSettingsResponse(dict): """ scale settings for AML Compute """ @staticmethod def __key_warning(key: str): suggest = None if key == "maxNodeCount": suggest = "max_node_count" elif key == "minNodeCount": suggest = "min_node_count" elif key == "nodeIdleTimeBeforeScaleDown": suggest = "node_idle_time_before_scale_down" if suggest: pulumi.log.warn(f"Key '{key}' not found in ScaleSettingsResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: ScaleSettingsResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: ScaleSettingsResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, max_node_count: int, min_node_count: Optional[int] = None, node_idle_time_before_scale_down: Optional[str] = None): """ scale settings for AML Compute :param int max_node_count: Max number of nodes to use :param int min_node_count: Min number of nodes to use :param str node_idle_time_before_scale_down: Node Idle Time before scaling down amlCompute. This string needs to be in the RFC Format. """ pulumi.set(__self__, "max_node_count", max_node_count) if min_node_count is None: min_node_count = 0 if min_node_count is not None: pulumi.set(__self__, "min_node_count", min_node_count) if node_idle_time_before_scale_down is not None: pulumi.set(__self__, "node_idle_time_before_scale_down", node_idle_time_before_scale_down) @property @pulumi.getter(name="maxNodeCount") def max_node_count(self) -> int: """ Max number of nodes to use """ return pulumi.get(self, "max_node_count") @property @pulumi.getter(name="minNodeCount") def min_node_count(self) -> Optional[int]: """ Min number of nodes to use """ return pulumi.get(self, "min_node_count") @property @pulumi.getter(name="nodeIdleTimeBeforeScaleDown") def node_idle_time_before_scale_down(self) -> Optional[str]: """ Node Idle Time before scaling down amlCompute. This string needs to be in the RFC Format. """ return pulumi.get(self, "node_idle_time_before_scale_down") @pulumi.output_type class ScriptReferenceResponse(dict): """ Script reference """ @staticmethod def __key_warning(key: str): suggest = None if key == "scriptArguments": suggest = "script_arguments" elif key == "scriptData": suggest = "script_data" elif key == "scriptSource": suggest = "script_source" if suggest: pulumi.log.warn(f"Key '{key}' not found in ScriptReferenceResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: ScriptReferenceResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: ScriptReferenceResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, script_arguments: Optional[str] = None, script_data: Optional[str] = None, script_source: Optional[str] = None, timeout: Optional[str] = None): """ Script reference :param str script_arguments: Optional command line arguments passed to the script to run. :param str script_data: The location of scripts in the mounted volume. :param str script_source: The storage source of the script: inline, workspace. :param str timeout: Optional time period passed to timeout command. """ if script_arguments is not None: pulumi.set(__self__, "script_arguments", script_arguments) if script_data is not None: pulumi.set(__self__, "script_data", script_data) if script_source is not None: pulumi.set(__self__, "script_source", script_source) if timeout is not None: pulumi.set(__self__, "timeout", timeout) @property @pulumi.getter(name="scriptArguments") def script_arguments(self) -> Optional[str]: """ Optional command line arguments passed to the script to run. """ return pulumi.get(self, "script_arguments") @property @pulumi.getter(name="scriptData") def script_data(self) -> Optional[str]: """ The location of scripts in the mounted volume. """ return pulumi.get(self, "script_data") @property @pulumi.getter(name="scriptSource") def script_source(self) -> Optional[str]: """ The storage source of the script: inline, workspace. """ return pulumi.get(self, "script_source") @property @pulumi.getter def timeout(self) -> Optional[str]: """ Optional time period passed to timeout command. """ return pulumi.get(self, "timeout") @pulumi.output_type class ScriptsToExecuteResponse(dict): """ Customized setup scripts """ @staticmethod def __key_warning(key: str): suggest = None if key == "creationScript": suggest = "creation_script" elif key == "startupScript": suggest = "startup_script" if suggest: pulumi.log.warn(f"Key '{key}' not found in ScriptsToExecuteResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: ScriptsToExecuteResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: ScriptsToExecuteResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, creation_script: Optional['outputs.ScriptReferenceResponse'] = None, startup_script: Optional['outputs.ScriptReferenceResponse'] = None): """ Customized setup scripts :param 'ScriptReferenceResponse' creation_script: Script that's run only once during provision of the compute. :param 'ScriptReferenceResponse' startup_script: Script that's run every time the machine starts. """ if creation_script is not None: pulumi.set(__self__, "creation_script", creation_script) if startup_script is not None: pulumi.set(__self__, "startup_script", startup_script) @property @pulumi.getter(name="creationScript") def creation_script(self) -> Optional['outputs.ScriptReferenceResponse']: """ Script that's run only once during provision of the compute. """ return pulumi.get(self, "creation_script") @property @pulumi.getter(name="startupScript") def startup_script(self) -> Optional['outputs.ScriptReferenceResponse']: """ Script that's run every time the machine starts. """ return pulumi.get(self, "startup_script") @pulumi.output_type class ServiceManagedResourcesSettingsResponse(dict): @staticmethod def __key_warning(key: str): suggest = None if key == "cosmosDb": suggest = "cosmos_db" if suggest: pulumi.log.warn(f"Key '{key}' not found in ServiceManagedResourcesSettingsResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: ServiceManagedResourcesSettingsResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: ServiceManagedResourcesSettingsResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, cosmos_db: Optional['outputs.CosmosDbSettingsResponse'] = None): """ :param 'CosmosDbSettingsResponse' cosmos_db: The settings for the service managed cosmosdb account. """ if cosmos_db is not None: pulumi.set(__self__, "cosmos_db", cosmos_db) @property @pulumi.getter(name="cosmosDb") def cosmos_db(self) -> Optional['outputs.CosmosDbSettingsResponse']: """ The settings for the service managed cosmosdb account. """ return pulumi.get(self, "cosmos_db") @pulumi.output_type class ServicePrincipalDatastoreCredentialsResponse(dict): """ Service Principal datastore credentials configuration. """ @staticmethod def __key_warning(key: str): suggest = None if key == "clientId": suggest = "client_id" elif key == "credentialsType": suggest = "credentials_type" elif key == "tenantId": suggest = "tenant_id" elif key == "authorityUrl": suggest = "authority_url" elif key == "resourceUri": suggest = "resource_uri" if suggest: pulumi.log.warn(f"Key '{key}' not found in ServicePrincipalDatastoreCredentialsResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: ServicePrincipalDatastoreCredentialsResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: ServicePrincipalDatastoreCredentialsResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, client_id: str, credentials_type: str, tenant_id: str, authority_url: Optional[str] = None, resource_uri: Optional[str] = None): """ Service Principal datastore credentials configuration. :param str client_id: Service principal client ID. :param str credentials_type: Enum to determine the datastore credentials type. Expected value is 'ServicePrincipal'. :param str tenant_id: ID of the tenant to which the service principal belongs. :param str authority_url: Authority URL used for authentication. :param str resource_uri: Resource the service principal has access to. """ pulumi.set(__self__, "client_id", client_id) pulumi.set(__self__, "credentials_type", 'ServicePrincipal') pulumi.set(__self__, "tenant_id", tenant_id) if authority_url is not None: pulumi.set(__self__, "authority_url", authority_url) if resource_uri is not None: pulumi.set(__self__, "resource_uri", resource_uri) @property @pulumi.getter(name="clientId") def client_id(self) -> str: """ Service principal client ID. """ return pulumi.get(self, "client_id") @property @pulumi.getter(name="credentialsType") def credentials_type(self) -> str: """ Enum to determine the datastore credentials type. Expected value is 'ServicePrincipal'. """ return pulumi.get(self, "credentials_type") @property @pulumi.getter(name="tenantId") def tenant_id(self) -> str: """ ID of the tenant to which the service principal belongs. """ return pulumi.get(self, "tenant_id") @property @pulumi.getter(name="authorityUrl") def authority_url(self) -> Optional[str]: """ Authority URL used for authentication. """ return pulumi.get(self, "authority_url") @property @pulumi.getter(name="resourceUri") def resource_uri(self) -> Optional[str]: """ Resource the service principal has access to. """ return pulumi.get(self, "resource_uri") @pulumi.output_type class SetupScriptsResponse(dict): """ Details of customized scripts to execute for setting up the cluster. """ def __init__(__self__, *, scripts: Optional['outputs.ScriptsToExecuteResponse'] = None): """ Details of customized scripts to execute for setting up the cluster. :param 'ScriptsToExecuteResponse' scripts: Customized setup scripts """ if scripts is not None: pulumi.set(__self__, "scripts", scripts) @property @pulumi.getter def scripts(self) -> Optional['outputs.ScriptsToExecuteResponse']: """ Customized setup scripts """ return pulumi.get(self, "scripts") @pulumi.output_type class SharedPrivateLinkResourceResponse(dict): @staticmethod def __key_warning(key: str): suggest = None if key == "groupId": suggest = "group_id" elif key == "privateLinkResourceId": suggest = "private_link_resource_id" elif key == "requestMessage": suggest = "request_message" if suggest: pulumi.log.warn(f"Key '{key}' not found in SharedPrivateLinkResourceResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: SharedPrivateLinkResourceResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: SharedPrivateLinkResourceResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, group_id: Optional[str] = None, name: Optional[str] = None, private_link_resource_id: Optional[str] = None, request_message: Optional[str] = None, status: Optional[str] = None): """ :param str group_id: The private link resource group id. :param str name: Unique name of the private link. :param str private_link_resource_id: The resource id that private link links to. :param str request_message: Request message. :param str status: Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. """ if group_id is not None: pulumi.set(__self__, "group_id", group_id) if name is not None: pulumi.set(__self__, "name", name) if private_link_resource_id is not None: pulumi.set(__self__, "private_link_resource_id", private_link_resource_id) if request_message is not None: pulumi.set(__self__, "request_message", request_message) if status is not None: pulumi.set(__self__, "status", status) @property @pulumi.getter(name="groupId") def group_id(self) -> Optional[str]: """ The private link resource group id. """ return pulumi.get(self, "group_id") @property @pulumi.getter def name(self) -> Optional[str]: """ Unique name of the private link. """ return pulumi.get(self, "name") @property @pulumi.getter(name="privateLinkResourceId") def private_link_resource_id(self) -> Optional[str]: """ The resource id that private link links to. """ return pulumi.get(self, "private_link_resource_id") @property @pulumi.getter(name="requestMessage") def request_message(self) -> Optional[str]: """ Request message. """ return pulumi.get(self, "request_message") @property @pulumi.getter def status(self) -> Optional[str]: """ Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. """ return pulumi.get(self, "status") @pulumi.output_type class SkuResponse(dict): """ Sku of the resource """ def __init__(__self__, *, name: Optional[str] = None, tier: Optional[str] = None): """ Sku of the resource :param str name: Name of the sku :param str tier: Tier of the sku like Basic or Enterprise """ if name is not None: pulumi.set(__self__, "name", name) if tier is not None: pulumi.set(__self__, "tier", tier) @property @pulumi.getter def name(self) -> Optional[str]: """ Name of the sku """ return pulumi.get(self, "name") @property @pulumi.getter def tier(self) -> Optional[str]: """ Tier of the sku like Basic or Enterprise """ return pulumi.get(self, "tier") @pulumi.output_type class SqlAdminDatastoreCredentialsResponse(dict): """ SQL Admin datastore credentials configuration. """ @staticmethod def __key_warning(key: str): suggest = None if key == "credentialsType": suggest = "credentials_type" elif key == "userId": suggest = "user_id" if suggest: pulumi.log.warn(f"Key '{key}' not found in SqlAdminDatastoreCredentialsResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: SqlAdminDatastoreCredentialsResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: SqlAdminDatastoreCredentialsResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, credentials_type: str, user_id: str): """ SQL Admin datastore credentials configuration. :param str credentials_type: Enum to determine the datastore credentials type. Expected value is 'SqlAdmin'. :param str user_id: SQL database user name. """ pulumi.set(__self__, "credentials_type", 'SqlAdmin') pulumi.set(__self__, "user_id", user_id) @property @pulumi.getter(name="credentialsType") def credentials_type(self) -> str: """ Enum to determine the datastore credentials type. Expected value is 'SqlAdmin'. """ return pulumi.get(self, "credentials_type") @property @pulumi.getter(name="userId") def user_id(self) -> str: """ SQL database user name. """ return pulumi.get(self, "user_id") @pulumi.output_type class SslConfigurationResponse(dict): """ The ssl configuration for scoring """ @staticmethod def __key_warning(key: str): suggest = None if key == "leafDomainLabel": suggest = "leaf_domain_label" elif key == "overwriteExistingDomain": suggest = "overwrite_existing_domain" if suggest: pulumi.log.warn(f"Key '{key}' not found in SslConfigurationResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: SslConfigurationResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: SslConfigurationResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, cert: Optional[str] = None, cname: Optional[str] = None, key: Optional[str] = None, leaf_domain_label: Optional[str] = None, overwrite_existing_domain: Optional[bool] = None, status: Optional[str] = None): """ The ssl configuration for scoring :param str cert: Cert data :param str cname: CNAME of the cert :param str key: Key data :param str leaf_domain_label: Leaf domain label of public endpoint :param bool overwrite_existing_domain: Indicates whether to overwrite existing domain label. :param str status: Enable or disable ssl for scoring """ if cert is not None: pulumi.set(__self__, "cert", cert) if cname is not None: pulumi.set(__self__, "cname", cname) if key is not None: pulumi.set(__self__, "key", key) if leaf_domain_label is not None: pulumi.set(__self__, "leaf_domain_label", leaf_domain_label) if overwrite_existing_domain is not None: pulumi.set(__self__, "overwrite_existing_domain", overwrite_existing_domain) if status is not None: pulumi.set(__self__, "status", status) @property @pulumi.getter def cert(self) -> Optional[str]: """ Cert data """ return pulumi.get(self, "cert") @property @pulumi.getter def cname(self) -> Optional[str]: """ CNAME of the cert """ return pulumi.get(self, "cname") @property @pulumi.getter def key(self) -> Optional[str]: """ Key data """ return pulumi.get(self, "key") @property @pulumi.getter(name="leafDomainLabel") def leaf_domain_label(self) -> Optional[str]: """ Leaf domain label of public endpoint """ return pulumi.get(self, "leaf_domain_label") @property @pulumi.getter(name="overwriteExistingDomain") def overwrite_existing_domain(self) -> Optional[bool]: """ Indicates whether to overwrite existing domain label. """ return pulumi.get(self, "overwrite_existing_domain") @property @pulumi.getter def status(self) -> Optional[str]: """ Enable or disable ssl for scoring """ return pulumi.get(self, "status") @pulumi.output_type class StatusMessageResponse(dict): """ Active message associated with project """ @staticmethod def __key_warning(key: str): suggest = None if key == "createdTimeUtc": suggest = "created_time_utc" if suggest: pulumi.log.warn(f"Key '{key}' not found in StatusMessageResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: StatusMessageResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: StatusMessageResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, code: str, created_time_utc: str, level: str, message: str): """ Active message associated with project :param str code: Service-defined message code. :param str created_time_utc: Time in UTC at which the message was created. :param str level: Severity level of message. :param str message: A human-readable representation of the message code. """ pulumi.set(__self__, "code", code) pulumi.set(__self__, "created_time_utc", created_time_utc) pulumi.set(__self__, "level", level) pulumi.set(__self__, "message", message) @property @pulumi.getter def code(self) -> str: """ Service-defined message code. """ return pulumi.get(self, "code") @property @pulumi.getter(name="createdTimeUtc") def created_time_utc(self) -> str: """ Time in UTC at which the message was created. """ return pulumi.get(self, "created_time_utc") @property @pulumi.getter def level(self) -> str: """ Severity level of message. """ return pulumi.get(self, "level") @property @pulumi.getter def message(self) -> str: """ A human-readable representation of the message code. """ return pulumi.get(self, "message") @pulumi.output_type class SweepJobResponse(dict): """ Sweep job definition. """ @staticmethod def __key_warning(key: str): suggest = None if key == "interactionEndpoints": suggest = "interaction_endpoints" elif key == "jobType": suggest = "job_type" elif key == "provisioningState": suggest = "provisioning_state" elif key == "searchSpace": suggest = "search_space" elif key == "earlyTermination": suggest = "early_termination" elif key == "experimentName": suggest = "experiment_name" elif key == "maxConcurrentTrials": suggest = "max_concurrent_trials" elif key == "maxTotalTrials": suggest = "max_total_trials" if suggest: pulumi.log.warn(f"Key '{key}' not found in SweepJobResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: SweepJobResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: SweepJobResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, algorithm: str, compute: 'outputs.ComputeConfigurationResponse', interaction_endpoints: Mapping[str, 'outputs.JobEndpointResponse'], job_type: str, objective: 'outputs.ObjectiveResponse', output: 'outputs.JobOutputResponse', provisioning_state: str, search_space: Mapping[str, Any], status: str, description: Optional[str] = None, early_termination: Optional[Any] = None, experiment_name: Optional[str] = None, identity: Optional[Any] = None, max_concurrent_trials: Optional[int] = None, max_total_trials: Optional[int] = None, priority: Optional[int] = None, properties: Optional[Mapping[str, str]] = None, tags: Optional[Mapping[str, str]] = None, timeout: Optional[str] = None, trial: Optional['outputs.TrialComponentResponse'] = None): """ Sweep job definition. :param str algorithm: Type of the hyperparameter sampling algorithms :param 'ComputeConfigurationResponse' compute: Compute binding for the job. :param Mapping[str, 'JobEndpointResponse'] interaction_endpoints: List of JobEndpoints. For local jobs, a job endpoint will have an endpoint value of FileStreamObject. :param str job_type: Enum to determine the type of job. Expected value is 'Sweep'. :param 'ObjectiveResponse' objective: Optimization objective. :param 'JobOutputResponse' output: Location of the job output logs and artifacts. :param str provisioning_state: Specifies the job provisioning state. :param Mapping[str, Any] search_space: A dictionary containing each parameter and its distribution. The dictionary key is the name of the parameter :param str status: The status of a job. :param str description: The asset description text. :param Union['BanditPolicyResponse', 'MedianStoppingPolicyResponse', 'TruncationSelectionPolicyResponse'] early_termination: Early termination policies enable canceling poor-performing runs before they complete. :param str experiment_name: The name of the experiment the job belongs to. If not set, the job is placed in the "Default" experiment. :param Union['AmlTokenResponse', 'ManagedIdentityResponse'] identity: Identity configuration. If set, this should be one of AmlToken, ManagedIdentity or null. Defaults to AmlToken if null. :param int max_concurrent_trials: An upper bound on the number of trials performed in parallel. :param int max_total_trials: An upper bound on the number of trials to perform. :param int priority: Job priority for scheduling policy. Only applies to AMLCompute. Private preview feature and only available to users on the allow list. :param Mapping[str, str] properties: The asset property dictionary. :param Mapping[str, str] tags: Tag dictionary. Tags can be added, removed, and updated. :param str timeout: The total timeout in ISO 8601 format. Only supports duration with precision as low as Minutes. :param 'TrialComponentResponse' trial: Trial component definition. """ pulumi.set(__self__, "algorithm", algorithm) pulumi.set(__self__, "compute", compute) pulumi.set(__self__, "interaction_endpoints", interaction_endpoints) pulumi.set(__self__, "job_type", 'Sweep') pulumi.set(__self__, "objective", objective) pulumi.set(__self__, "output", output) pulumi.set(__self__, "provisioning_state", provisioning_state) pulumi.set(__self__, "search_space", search_space) pulumi.set(__self__, "status", status) if description is not None: pulumi.set(__self__, "description", description) if early_termination is not None: pulumi.set(__self__, "early_termination", early_termination) if experiment_name is not None: pulumi.set(__self__, "experiment_name", experiment_name) if identity is not None: pulumi.set(__self__, "identity", identity) if max_concurrent_trials is not None: pulumi.set(__self__, "max_concurrent_trials", max_concurrent_trials) if max_total_trials is not None: pulumi.set(__self__, "max_total_trials", max_total_trials) if priority is not None: pulumi.set(__self__, "priority", priority) if properties is not None: pulumi.set(__self__, "properties", properties) if tags is not None: pulumi.set(__self__, "tags", tags) if timeout is not None: pulumi.set(__self__, "timeout", timeout) if trial is not None: pulumi.set(__self__, "trial", trial) @property @pulumi.getter def algorithm(self) -> str: """ Type of the hyperparameter sampling algorithms """ return pulumi.get(self, "algorithm") @property @pulumi.getter def compute(self) -> 'outputs.ComputeConfigurationResponse': """ Compute binding for the job. """ return pulumi.get(self, "compute") @property @pulumi.getter(name="interactionEndpoints") def interaction_endpoints(self) -> Mapping[str, 'outputs.JobEndpointResponse']: """ List of JobEndpoints. For local jobs, a job endpoint will have an endpoint value of FileStreamObject. """ return pulumi.get(self, "interaction_endpoints") @property @pulumi.getter(name="jobType") def job_type(self) -> str: """ Enum to determine the type of job. Expected value is 'Sweep'. """ return pulumi.get(self, "job_type") @property @pulumi.getter def objective(self) -> 'outputs.ObjectiveResponse': """ Optimization objective. """ return pulumi.get(self, "objective") @property @pulumi.getter def output(self) -> 'outputs.JobOutputResponse': """ Location of the job output logs and artifacts. """ return pulumi.get(self, "output") @property @pulumi.getter(name="provisioningState") def provisioning_state(self) -> str: """ Specifies the job provisioning state. """ return pulumi.get(self, "provisioning_state") @property @pulumi.getter(name="searchSpace") def search_space(self) -> Mapping[str, Any]: """ A dictionary containing each parameter and its distribution. The dictionary key is the name of the parameter """ return pulumi.get(self, "search_space") @property @pulumi.getter def status(self) -> str: """ The status of a job. """ return pulumi.get(self, "status") @property @pulumi.getter def description(self) -> Optional[str]: """ The asset description text. """ return pulumi.get(self, "description") @property @pulumi.getter(name="earlyTermination") def early_termination(self) -> Optional[Any]: """ Early termination policies enable canceling poor-performing runs before they complete. """ return pulumi.get(self, "early_termination") @property @pulumi.getter(name="experimentName") def experiment_name(self) -> Optional[str]: """ The name of the experiment the job belongs to. If not set, the job is placed in the "Default" experiment. """ return pulumi.get(self, "experiment_name") @property @pulumi.getter def identity(self) -> Optional[Any]: """ Identity configuration. If set, this should be one of AmlToken, ManagedIdentity or null. Defaults to AmlToken if null. """ return pulumi.get(self, "identity") @property @pulumi.getter(name="maxConcurrentTrials") def max_concurrent_trials(self) -> Optional[int]: """ An upper bound on the number of trials performed in parallel. """ return pulumi.get(self, "max_concurrent_trials") @property @pulumi.getter(name="maxTotalTrials") def max_total_trials(self) -> Optional[int]: """ An upper bound on the number of trials to perform. """ return pulumi.get(self, "max_total_trials") @property @pulumi.getter def priority(self) -> Optional[int]: """ Job priority for scheduling policy. Only applies to AMLCompute. Private preview feature and only available to users on the allow list. """ return pulumi.get(self, "priority") @property @pulumi.getter def properties(self) -> Optional[Mapping[str, str]]: """ The asset property dictionary. """ return pulumi.get(self, "properties") @property @pulumi.getter def tags(self) -> Optional[Mapping[str, str]]: """ Tag dictionary. Tags can be added, removed, and updated. """ return pulumi.get(self, "tags") @property @pulumi.getter def timeout(self) -> Optional[str]: """ The total timeout in ISO 8601 format. Only supports duration with precision as low as Minutes. """ return pulumi.get(self, "timeout") @property @pulumi.getter def trial(self) -> Optional['outputs.TrialComponentResponse']: """ Trial component definition. """ return pulumi.get(self, "trial") @pulumi.output_type class SynapseSparkPoolPropertiesResponseProperties(dict): """ AKS properties """ @staticmethod def __key_warning(key: str): suggest = None if key == "autoPauseProperties": suggest = "auto_pause_properties" elif key == "autoScaleProperties": suggest = "auto_scale_properties" elif key == "nodeCount": suggest = "node_count" elif key == "nodeSize": suggest = "node_size" elif key == "nodeSizeFamily": suggest = "node_size_family" elif key == "poolName": suggest = "pool_name" elif key == "resourceGroup": suggest = "resource_group" elif key == "sparkVersion": suggest = "spark_version" elif key == "subscriptionId": suggest = "subscription_id" elif key == "workspaceName": suggest = "workspace_name" if suggest: pulumi.log.warn(f"Key '{key}' not found in SynapseSparkPoolPropertiesResponseProperties. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: SynapseSparkPoolPropertiesResponseProperties.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: SynapseSparkPoolPropertiesResponseProperties.__key_warning(key) return super().get(key, default) def __init__(__self__, *, auto_pause_properties: Optional['outputs.AutoPausePropertiesResponse'] = None, auto_scale_properties: Optional['outputs.AutoScalePropertiesResponse'] = None, node_count: Optional[int] = None, node_size: Optional[str] = None, node_size_family: Optional[str] = None, pool_name: Optional[str] = None, resource_group: Optional[str] = None, spark_version: Optional[str] = None, subscription_id: Optional[str] = None, workspace_name: Optional[str] = None): """ AKS properties :param 'AutoPausePropertiesResponse' auto_pause_properties: Auto pause properties. :param 'AutoScalePropertiesResponse' auto_scale_properties: Auto scale properties. :param int node_count: The number of compute nodes currently assigned to the compute. :param str node_size: Node size. :param str node_size_family: Node size family. :param str pool_name: Pool name. :param str resource_group: Name of the resource group in which workspace is located. :param str spark_version: Spark version. :param str subscription_id: Azure subscription identifier. :param str workspace_name: Name of Azure Machine Learning workspace. """ if auto_pause_properties is not None: pulumi.set(__self__, "auto_pause_properties", auto_pause_properties) if auto_scale_properties is not None: pulumi.set(__self__, "auto_scale_properties", auto_scale_properties) if node_count is not None: pulumi.set(__self__, "node_count", node_count) if node_size is not None: pulumi.set(__self__, "node_size", node_size) if node_size_family is not None: pulumi.set(__self__, "node_size_family", node_size_family) if pool_name is not None: pulumi.set(__self__, "pool_name", pool_name) if resource_group is not None: pulumi.set(__self__, "resource_group", resource_group) if spark_version is not None: pulumi.set(__self__, "spark_version", spark_version) if subscription_id is not None: pulumi.set(__self__, "subscription_id", subscription_id) if workspace_name is not None: pulumi.set(__self__, "workspace_name", workspace_name) @property @pulumi.getter(name="autoPauseProperties") def auto_pause_properties(self) -> Optional['outputs.AutoPausePropertiesResponse']: """ Auto pause properties. """ return pulumi.get(self, "auto_pause_properties") @property @pulumi.getter(name="autoScaleProperties") def auto_scale_properties(self) -> Optional['outputs.AutoScalePropertiesResponse']: """ Auto scale properties. """ return pulumi.get(self, "auto_scale_properties") @property @pulumi.getter(name="nodeCount") def node_count(self) -> Optional[int]: """ The number of compute nodes currently assigned to the compute. """ return pulumi.get(self, "node_count") @property @pulumi.getter(name="nodeSize") def node_size(self) -> Optional[str]: """ Node size. """ return pulumi.get(self, "node_size") @property @pulumi.getter(name="nodeSizeFamily") def node_size_family(self) -> Optional[str]: """ Node size family. """ return pulumi.get(self, "node_size_family") @property @pulumi.getter(name="poolName") def pool_name(self) -> Optional[str]: """ Pool name. """ return pulumi.get(self, "pool_name") @property @pulumi.getter(name="resourceGroup") def resource_group(self) -> Optional[str]: """ Name of the resource group in which workspace is located. """ return pulumi.get(self, "resource_group") @property @pulumi.getter(name="sparkVersion") def spark_version(self) -> Optional[str]: """ Spark version. """ return pulumi.get(self, "spark_version") @property @pulumi.getter(name="subscriptionId") def subscription_id(self) -> Optional[str]: """ Azure subscription identifier. """ return pulumi.get(self, "subscription_id") @property @pulumi.getter(name="workspaceName") def workspace_name(self) -> Optional[str]: """ Name of Azure Machine Learning workspace. """ return pulumi.get(self, "workspace_name") @pulumi.output_type class SynapseSparkResponse(dict): """ A SynapseSpark compute. """ @staticmethod def __key_warning(key: str): suggest = None if key == "computeType": suggest = "compute_type" elif key == "createdOn": suggest = "created_on" elif key == "isAttachedCompute": suggest = "is_attached_compute" elif key == "modifiedOn": suggest = "modified_on" elif key == "provisioningErrors": suggest = "provisioning_errors" elif key == "provisioningState": suggest = "provisioning_state" elif key == "computeLocation": suggest = "compute_location" elif key == "disableLocalAuth": suggest = "disable_local_auth" elif key == "resourceId": suggest = "resource_id" if suggest: pulumi.log.warn(f"Key '{key}' not found in SynapseSparkResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: SynapseSparkResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: SynapseSparkResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, compute_type: str, created_on: str, is_attached_compute: bool, modified_on: str, provisioning_errors: Sequence['outputs.ErrorResponseResponse'], provisioning_state: str, compute_location: Optional[str] = None, description: Optional[str] = None, disable_local_auth: Optional[bool] = None, properties: Optional['outputs.SynapseSparkPoolPropertiesResponseProperties'] = None, resource_id: Optional[str] = None): """ A SynapseSpark compute. :param str compute_type: The type of compute Expected value is 'SynapseSpark'. :param str created_on: The time at which the compute was created. :param bool is_attached_compute: Indicating whether the compute was provisioned by user and brought from outside if true, or machine learning service provisioned it if false. :param str modified_on: The time at which the compute was last modified. :param Sequence['ErrorResponseResponse'] provisioning_errors: Errors during provisioning :param str provisioning_state: The provision state of the cluster. Valid values are Unknown, Updating, Provisioning, Succeeded, and Failed. :param str compute_location: Location for the underlying compute :param str description: The description of the Machine Learning compute. :param bool disable_local_auth: Opt-out of local authentication and ensure customers can use only MSI and AAD exclusively for authentication. :param 'SynapseSparkPoolPropertiesResponseProperties' properties: AKS properties :param str resource_id: ARM resource id of the underlying compute """ pulumi.set(__self__, "compute_type", 'SynapseSpark') pulumi.set(__self__, "created_on", created_on) pulumi.set(__self__, "is_attached_compute", is_attached_compute) pulumi.set(__self__, "modified_on", modified_on) pulumi.set(__self__, "provisioning_errors", provisioning_errors) pulumi.set(__self__, "provisioning_state", provisioning_state) if compute_location is not None: pulumi.set(__self__, "compute_location", compute_location) if description is not None: pulumi.set(__self__, "description", description) if disable_local_auth is not None: pulumi.set(__self__, "disable_local_auth", disable_local_auth) if properties is not None: pulumi.set(__self__, "properties", properties) if resource_id is not None: pulumi.set(__self__, "resource_id", resource_id) @property @pulumi.getter(name="computeType") def compute_type(self) -> str: """ The type of compute Expected value is 'SynapseSpark'. """ return pulumi.get(self, "compute_type") @property @pulumi.getter(name="createdOn") def created_on(self) -> str: """ The time at which the compute was created. """ return pulumi.get(self, "created_on") @property @pulumi.getter(name="isAttachedCompute") def is_attached_compute(self) -> bool: """ Indicating whether the compute was provisioned by user and brought from outside if true, or machine learning service provisioned it if false. """ return pulumi.get(self, "is_attached_compute") @property @pulumi.getter(name="modifiedOn") def modified_on(self) -> str: """ The time at which the compute was last modified. """ return pulumi.get(self, "modified_on") @property @pulumi.getter(name="provisioningErrors") def provisioning_errors(self) -> Sequence['outputs.ErrorResponseResponse']: """ Errors during provisioning """ return pulumi.get(self, "provisioning_errors") @property @pulumi.getter(name="provisioningState") def provisioning_state(self) -> str: """ The provision state of the cluster. Valid values are Unknown, Updating, Provisioning, Succeeded, and Failed. """ return pulumi.get(self, "provisioning_state") @property @pulumi.getter(name="computeLocation") def compute_location(self) -> Optional[str]: """ Location for the underlying compute """ return pulumi.get(self, "compute_location") @property @pulumi.getter def description(self) -> Optional[str]: """ The description of the Machine Learning compute. """ return pulumi.get(self, "description") @property @pulumi.getter(name="disableLocalAuth") def disable_local_auth(self) -> Optional[bool]: """ Opt-out of local authentication and ensure customers can use only MSI and AAD exclusively for authentication. """ return pulumi.get(self, "disable_local_auth") @property @pulumi.getter def properties(self) -> Optional['outputs.SynapseSparkPoolPropertiesResponseProperties']: """ AKS properties """ return pulumi.get(self, "properties") @property @pulumi.getter(name="resourceId") def resource_id(self) -> Optional[str]: """ ARM resource id of the underlying compute """ return pulumi.get(self, "resource_id") @pulumi.output_type class SystemDataResponse(dict): """ Metadata pertaining to creation and last modification of the resource. """ @staticmethod def __key_warning(key: str): suggest = None if key == "createdAt": suggest = "created_at" elif key == "createdBy": suggest = "created_by" elif key == "createdByType": suggest = "created_by_type" elif key == "lastModifiedAt": suggest = "last_modified_at" elif key == "lastModifiedBy": suggest = "last_modified_by" elif key == "lastModifiedByType": suggest = "last_modified_by_type" if suggest: pulumi.log.warn(f"Key '{key}' not found in SystemDataResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: SystemDataResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: SystemDataResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, created_at: Optional[str] = None, created_by: Optional[str] = None, created_by_type: Optional[str] = None, last_modified_at: Optional[str] = None, last_modified_by: Optional[str] = None, last_modified_by_type: Optional[str] = None): """ Metadata pertaining to creation and last modification of the resource. :param str created_at: The timestamp of resource creation (UTC). :param str created_by: The identity that created the resource. :param str created_by_type: The type of identity that created the resource. :param str last_modified_at: The timestamp of resource last modification (UTC) :param str last_modified_by: The identity that last modified the resource. :param str last_modified_by_type: The type of identity that last modified the resource. """ if created_at is not None: pulumi.set(__self__, "created_at", created_at) if created_by is not None: pulumi.set(__self__, "created_by", created_by) if created_by_type is not None: pulumi.set(__self__, "created_by_type", created_by_type) if last_modified_at is not None: pulumi.set(__self__, "last_modified_at", last_modified_at) if last_modified_by is not None: pulumi.set(__self__, "last_modified_by", last_modified_by) if last_modified_by_type is not None: pulumi.set(__self__, "last_modified_by_type", last_modified_by_type) @property @pulumi.getter(name="createdAt") def created_at(self) -> Optional[str]: """ The timestamp of resource creation (UTC). """ return pulumi.get(self, "created_at") @property @pulumi.getter(name="createdBy") def created_by(self) -> Optional[str]: """ The identity that created the resource. """ return pulumi.get(self, "created_by") @property @pulumi.getter(name="createdByType") def created_by_type(self) -> Optional[str]: """ The type of identity that created the resource. """ return pulumi.get(self, "created_by_type") @property @pulumi.getter(name="lastModifiedAt") def last_modified_at(self) -> Optional[str]: """ The timestamp of resource last modification (UTC) """ return pulumi.get(self, "last_modified_at") @property @pulumi.getter(name="lastModifiedBy") def last_modified_by(self) -> Optional[str]: """ The identity that last modified the resource. """ return pulumi.get(self, "last_modified_by") @property @pulumi.getter(name="lastModifiedByType") def last_modified_by_type(self) -> Optional[str]: """ The type of identity that last modified the resource. """ return pulumi.get(self, "last_modified_by_type") @pulumi.output_type class SystemServiceResponse(dict): """ A system service running on a compute. """ @staticmethod def __key_warning(key: str): suggest = None if key == "publicIpAddress": suggest = "public_ip_address" elif key == "systemServiceType": suggest = "system_service_type" if suggest: pulumi.log.warn(f"Key '{key}' not found in SystemServiceResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: SystemServiceResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: SystemServiceResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, public_ip_address: str, system_service_type: str, version: str): """ A system service running on a compute. :param str public_ip_address: Public IP address :param str system_service_type: The type of this system service. :param str version: The version for this type. """ pulumi.set(__self__, "public_ip_address", public_ip_address) pulumi.set(__self__, "system_service_type", system_service_type) pulumi.set(__self__, "version", version) @property @pulumi.getter(name="publicIpAddress") def public_ip_address(self) -> str: """ Public IP address """ return pulumi.get(self, "public_ip_address") @property @pulumi.getter(name="systemServiceType") def system_service_type(self) -> str: """ The type of this system service. """ return pulumi.get(self, "system_service_type") @property @pulumi.getter def version(self) -> str: """ The version for this type. """ return pulumi.get(self, "version") @pulumi.output_type class TensorFlowResponse(dict): """ TensorFlow distribution configuration. """ @staticmethod def __key_warning(key: str): suggest = None if key == "distributionType": suggest = "distribution_type" elif key == "parameterServerCount": suggest = "parameter_server_count" elif key == "workerCount": suggest = "worker_count" if suggest: pulumi.log.warn(f"Key '{key}' not found in TensorFlowResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: TensorFlowResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: TensorFlowResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, distribution_type: str, parameter_server_count: Optional[int] = None, worker_count: Optional[int] = None): """ TensorFlow distribution configuration. :param str distribution_type: Enum to determine the job distribution type. Expected value is 'TensorFlow'. :param int parameter_server_count: Number of parameter server tasks. :param int worker_count: Number of workers. Overwrites the node count in compute binding. """ pulumi.set(__self__, "distribution_type", 'TensorFlow') if parameter_server_count is not None: pulumi.set(__self__, "parameter_server_count", parameter_server_count) if worker_count is not None: pulumi.set(__self__, "worker_count", worker_count) @property @pulumi.getter(name="distributionType") def distribution_type(self) -> str: """ Enum to determine the job distribution type. Expected value is 'TensorFlow'. """ return pulumi.get(self, "distribution_type") @property @pulumi.getter(name="parameterServerCount") def parameter_server_count(self) -> Optional[int]: """ Number of parameter server tasks. """ return pulumi.get(self, "parameter_server_count") @property @pulumi.getter(name="workerCount") def worker_count(self) -> Optional[int]: """ Number of workers. Overwrites the node count in compute binding. """ return pulumi.get(self, "worker_count") @pulumi.output_type class TrialComponentResponse(dict): """ Trial component definition. """ @staticmethod def __key_warning(key: str): suggest = None if key == "codeId": suggest = "code_id" elif key == "environmentId": suggest = "environment_id" elif key == "environmentVariables": suggest = "environment_variables" elif key == "inputDataBindings": suggest = "input_data_bindings" elif key == "outputDataBindings": suggest = "output_data_bindings" if suggest: pulumi.log.warn(f"Key '{key}' not found in TrialComponentResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: TrialComponentResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: TrialComponentResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, command: str, code_id: Optional[str] = None, distribution: Optional[Any] = None, environment_id: Optional[str] = None, environment_variables: Optional[Mapping[str, str]] = None, input_data_bindings: Optional[Mapping[str, 'outputs.InputDataBindingResponse']] = None, output_data_bindings: Optional[Mapping[str, 'outputs.OutputDataBindingResponse']] = None, timeout: Optional[str] = None): """ Trial component definition. :param str command: The command to execute on startup of the job. eg. "python train.py" :param str code_id: ARM resource ID of the code asset. :param Union['MpiResponse', 'PyTorchResponse', 'TensorFlowResponse'] distribution: Distribution configuration of the job. If set, this should be one of Mpi, Tensorflow, PyTorch, or null. :param str environment_id: The ARM resource ID of the Environment specification for the job. :param Mapping[str, str] environment_variables: Environment variables included in the job. :param Mapping[str, 'InputDataBindingResponse'] input_data_bindings: Mapping of input data bindings used in the job. :param Mapping[str, 'OutputDataBindingResponse'] output_data_bindings: Mapping of output data bindings used in the job. :param str timeout: The max run duration in ISO 8601 format, after which the trial component will be cancelled. Only supports duration with precision as low as Seconds. """ pulumi.set(__self__, "command", command) if code_id is not None: pulumi.set(__self__, "code_id", code_id) if distribution is not None: pulumi.set(__self__, "distribution", distribution) if environment_id is not None: pulumi.set(__self__, "environment_id", environment_id) if environment_variables is not None: pulumi.set(__self__, "environment_variables", environment_variables) if input_data_bindings is not None: pulumi.set(__self__, "input_data_bindings", input_data_bindings) if output_data_bindings is not None: pulumi.set(__self__, "output_data_bindings", output_data_bindings) if timeout is not None: pulumi.set(__self__, "timeout", timeout) @property @pulumi.getter def command(self) -> str: """ The command to execute on startup of the job. eg. "python train.py" """ return pulumi.get(self, "command") @property @pulumi.getter(name="codeId") def code_id(self) -> Optional[str]: """ ARM resource ID of the code asset. """ return pulumi.get(self, "code_id") @property @pulumi.getter def distribution(self) -> Optional[Any]: """ Distribution configuration of the job. If set, this should be one of Mpi, Tensorflow, PyTorch, or null. """ return pulumi.get(self, "distribution") @property @pulumi.getter(name="environmentId") def environment_id(self) -> Optional[str]: """ The ARM resource ID of the Environment specification for the job. """ return pulumi.get(self, "environment_id") @property @pulumi.getter(name="environmentVariables") def environment_variables(self) -> Optional[Mapping[str, str]]: """ Environment variables included in the job. """ return pulumi.get(self, "environment_variables") @property @pulumi.getter(name="inputDataBindings") def input_data_bindings(self) -> Optional[Mapping[str, 'outputs.InputDataBindingResponse']]: """ Mapping of input data bindings used in the job. """ return pulumi.get(self, "input_data_bindings") @property @pulumi.getter(name="outputDataBindings") def output_data_bindings(self) -> Optional[Mapping[str, 'outputs.OutputDataBindingResponse']]: """ Mapping of output data bindings used in the job. """ return pulumi.get(self, "output_data_bindings") @property @pulumi.getter def timeout(self) -> Optional[str]: """ The max run duration in ISO 8601 format, after which the trial component will be cancelled. Only supports duration with precision as low as Seconds. """ return pulumi.get(self, "timeout") @pulumi.output_type class TruncationSelectionPolicyResponse(dict): """ Defines an early termination policy that cancels a given percentage of runs at each evaluation interval. """ @staticmethod def __key_warning(key: str): suggest = None if key == "policyType": suggest = "policy_type" elif key == "delayEvaluation": suggest = "delay_evaluation" elif key == "evaluationInterval": suggest = "evaluation_interval" elif key == "truncationPercentage": suggest = "truncation_percentage" if suggest: pulumi.log.warn(f"Key '{key}' not found in TruncationSelectionPolicyResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: TruncationSelectionPolicyResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: TruncationSelectionPolicyResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, policy_type: str, delay_evaluation: Optional[int] = None, evaluation_interval: Optional[int] = None, truncation_percentage: Optional[int] = None): """ Defines an early termination policy that cancels a given percentage of runs at each evaluation interval. :param str policy_type: Expected value is 'TruncationSelection'. :param int delay_evaluation: Number of intervals by which to delay the first evaluation. :param int evaluation_interval: Interval (number of runs) between policy evaluations. :param int truncation_percentage: The percentage of runs to cancel at each evaluation interval. """ pulumi.set(__self__, "policy_type", 'TruncationSelection') if delay_evaluation is not None: pulumi.set(__self__, "delay_evaluation", delay_evaluation) if evaluation_interval is not None: pulumi.set(__self__, "evaluation_interval", evaluation_interval) if truncation_percentage is not None: pulumi.set(__self__, "truncation_percentage", truncation_percentage) @property @pulumi.getter(name="policyType") def policy_type(self) -> str: """ Expected value is 'TruncationSelection'. """ return pulumi.get(self, "policy_type") @property @pulumi.getter(name="delayEvaluation") def delay_evaluation(self) -> Optional[int]: """ Number of intervals by which to delay the first evaluation. """ return pulumi.get(self, "delay_evaluation") @property @pulumi.getter(name="evaluationInterval") def evaluation_interval(self) -> Optional[int]: """ Interval (number of runs) between policy evaluations. """ return pulumi.get(self, "evaluation_interval") @property @pulumi.getter(name="truncationPercentage") def truncation_percentage(self) -> Optional[int]: """ The percentage of runs to cancel at each evaluation interval. """ return pulumi.get(self, "truncation_percentage") @pulumi.output_type class UserAccountCredentialsResponse(dict): """ Settings for user account that gets created on each on the nodes of a compute. """ @staticmethod def __key_warning(key: str): suggest = None if key == "adminUserName": suggest = "admin_user_name" elif key == "adminUserPassword": suggest = "admin_user_password" elif key == "adminUserSshPublicKey": suggest = "admin_user_ssh_public_key" if suggest: pulumi.log.warn(f"Key '{key}' not found in UserAccountCredentialsResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: UserAccountCredentialsResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: UserAccountCredentialsResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, admin_user_name: str, admin_user_password: Optional[str] = None, admin_user_ssh_public_key: Optional[str] = None): """ Settings for user account that gets created on each on the nodes of a compute. :param str admin_user_name: Name of the administrator user account which can be used to SSH to nodes. :param str admin_user_password: Password of the administrator user account. :param str admin_user_ssh_public_key: SSH public key of the administrator user account. """ pulumi.set(__self__, "admin_user_name", admin_user_name) if admin_user_password is not None: pulumi.set(__self__, "admin_user_password", admin_user_password) if admin_user_ssh_public_key is not None: pulumi.set(__self__, "admin_user_ssh_public_key", admin_user_ssh_public_key) @property @pulumi.getter(name="adminUserName") def admin_user_name(self) -> str: """ Name of the administrator user account which can be used to SSH to nodes. """ return pulumi.get(self, "admin_user_name") @property @pulumi.getter(name="adminUserPassword") def admin_user_password(self) -> Optional[str]: """ Password of the administrator user account. """ return pulumi.get(self, "admin_user_password") @property @pulumi.getter(name="adminUserSshPublicKey") def admin_user_ssh_public_key(self) -> Optional[str]: """ SSH public key of the administrator user account. """ return pulumi.get(self, "admin_user_ssh_public_key") @pulumi.output_type class UserAssignedIdentityMetaResponse(dict): """ User assigned identities associated with a resource. """ @staticmethod def __key_warning(key: str): suggest = None if key == "clientId": suggest = "client_id" elif key == "principalId": suggest = "principal_id" if suggest: pulumi.log.warn(f"Key '{key}' not found in UserAssignedIdentityMetaResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: UserAssignedIdentityMetaResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: UserAssignedIdentityMetaResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, client_id: Optional[str] = None, principal_id: Optional[str] = None): """ User assigned identities associated with a resource. :param str client_id: Aka application ID, a unique identifier generated by Azure AD that is tied to an application and service principal during its initial provisioning. :param str principal_id: The object ID of the service principal object for your managed identity that is used to grant role-based access to an Azure resource. """ if client_id is not None: pulumi.set(__self__, "client_id", client_id) if principal_id is not None: pulumi.set(__self__, "principal_id", principal_id) @property @pulumi.getter(name="clientId") def client_id(self) -> Optional[str]: """ Aka application ID, a unique identifier generated by Azure AD that is tied to an application and service principal during its initial provisioning. """ return pulumi.get(self, "client_id") @property @pulumi.getter(name="principalId") def principal_id(self) -> Optional[str]: """ The object ID of the service principal object for your managed identity that is used to grant role-based access to an Azure resource. """ return pulumi.get(self, "principal_id") @pulumi.output_type class UserAssignedIdentityResponse(dict): """ User Assigned Identity """ @staticmethod def __key_warning(key: str): suggest = None if key == "clientId": suggest = "client_id" elif key == "principalId": suggest = "principal_id" elif key == "tenantId": suggest = "tenant_id" if suggest: pulumi.log.warn(f"Key '{key}' not found in UserAssignedIdentityResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: UserAssignedIdentityResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: UserAssignedIdentityResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, client_id: str, principal_id: str, tenant_id: str): """ User Assigned Identity :param str client_id: The clientId(aka appId) of the user assigned identity. :param str principal_id: The principal ID of the user assigned identity. :param str tenant_id: The tenant ID of the user assigned identity. """ pulumi.set(__self__, "client_id", client_id) pulumi.set(__self__, "principal_id", principal_id) pulumi.set(__self__, "tenant_id", tenant_id) @property @pulumi.getter(name="clientId") def client_id(self) -> str: """ The clientId(aka appId) of the user assigned identity. """ return pulumi.get(self, "client_id") @property @pulumi.getter(name="principalId") def principal_id(self) -> str: """ The principal ID of the user assigned identity. """ return pulumi.get(self, "principal_id") @property @pulumi.getter(name="tenantId") def tenant_id(self) -> str: """ The tenant ID of the user assigned identity. """ return pulumi.get(self, "tenant_id") @pulumi.output_type class VirtualMachineImageResponse(dict): """ Virtual Machine image for Windows AML Compute """ def __init__(__self__, *, id: str): """ Virtual Machine image for Windows AML Compute :param str id: Virtual Machine image path """ pulumi.set(__self__, "id", id) @property @pulumi.getter def id(self) -> str: """ Virtual Machine image path """ return pulumi.get(self, "id") @pulumi.output_type class VirtualMachineResponse(dict): """ A Machine Learning compute based on Azure Virtual Machines. """ @staticmethod def __key_warning(key: str): suggest = None if key == "computeType": suggest = "compute_type" elif key == "createdOn": suggest = "created_on" elif key == "isAttachedCompute": suggest = "is_attached_compute" elif key == "modifiedOn": suggest = "modified_on" elif key == "provisioningErrors": suggest = "provisioning_errors" elif key == "provisioningState": suggest = "provisioning_state" elif key == "computeLocation": suggest = "compute_location" elif key == "disableLocalAuth": suggest = "disable_local_auth" elif key == "resourceId": suggest = "resource_id" if suggest: pulumi.log.warn(f"Key '{key}' not found in VirtualMachineResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: VirtualMachineResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: VirtualMachineResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, compute_type: str, created_on: str, is_attached_compute: bool, modified_on: str, provisioning_errors: Sequence['outputs.ErrorResponseResponse'], provisioning_state: str, compute_location: Optional[str] = None, description: Optional[str] = None, disable_local_auth: Optional[bool] = None, properties: Optional['outputs.VirtualMachineResponseProperties'] = None, resource_id: Optional[str] = None): """ A Machine Learning compute based on Azure Virtual Machines. :param str compute_type: The type of compute Expected value is 'VirtualMachine'. :param str created_on: The time at which the compute was created. :param bool is_attached_compute: Indicating whether the compute was provisioned by user and brought from outside if true, or machine learning service provisioned it if false. :param str modified_on: The time at which the compute was last modified. :param Sequence['ErrorResponseResponse'] provisioning_errors: Errors during provisioning :param str provisioning_state: The provision state of the cluster. Valid values are Unknown, Updating, Provisioning, Succeeded, and Failed. :param str compute_location: Location for the underlying compute :param str description: The description of the Machine Learning compute. :param bool disable_local_auth: Opt-out of local authentication and ensure customers can use only MSI and AAD exclusively for authentication. :param str resource_id: ARM resource id of the underlying compute """ pulumi.set(__self__, "compute_type", 'VirtualMachine') pulumi.set(__self__, "created_on", created_on) pulumi.set(__self__, "is_attached_compute", is_attached_compute) pulumi.set(__self__, "modified_on", modified_on) pulumi.set(__self__, "provisioning_errors", provisioning_errors) pulumi.set(__self__, "provisioning_state", provisioning_state) if compute_location is not None: pulumi.set(__self__, "compute_location", compute_location) if description is not None: pulumi.set(__self__, "description", description) if disable_local_auth is not None: pulumi.set(__self__, "disable_local_auth", disable_local_auth) if properties is not None: pulumi.set(__self__, "properties", properties) if resource_id is not None: pulumi.set(__self__, "resource_id", resource_id) @property @pulumi.getter(name="computeType") def compute_type(self) -> str: """ The type of compute Expected value is 'VirtualMachine'. """ return pulumi.get(self, "compute_type") @property @pulumi.getter(name="createdOn") def created_on(self) -> str: """ The time at which the compute was created. """ return pulumi.get(self, "created_on") @property @pulumi.getter(name="isAttachedCompute") def is_attached_compute(self) -> bool: """ Indicating whether the compute was provisioned by user and brought from outside if true, or machine learning service provisioned it if false. """ return pulumi.get(self, "is_attached_compute") @property @pulumi.getter(name="modifiedOn") def modified_on(self) -> str: """ The time at which the compute was last modified. """ return pulumi.get(self, "modified_on") @property @pulumi.getter(name="provisioningErrors") def provisioning_errors(self) -> Sequence['outputs.ErrorResponseResponse']: """ Errors during provisioning """ return pulumi.get(self, "provisioning_errors") @property @pulumi.getter(name="provisioningState") def provisioning_state(self) -> str: """ The provision state of the cluster. Valid values are Unknown, Updating, Provisioning, Succeeded, and Failed. """ return pulumi.get(self, "provisioning_state") @property @pulumi.getter(name="computeLocation") def compute_location(self) -> Optional[str]: """ Location for the underlying compute """ return pulumi.get(self, "compute_location") @property @pulumi.getter def description(self) -> Optional[str]: """ The description of the Machine Learning compute. """ return pulumi.get(self, "description") @property @pulumi.getter(name="disableLocalAuth") def disable_local_auth(self) -> Optional[bool]: """ Opt-out of local authentication and ensure customers can use only MSI and AAD exclusively for authentication. """ return pulumi.get(self, "disable_local_auth") @property @pulumi.getter def properties(self) -> Optional['outputs.VirtualMachineResponseProperties']: return pulumi.get(self, "properties") @property @pulumi.getter(name="resourceId") def resource_id(self) -> Optional[str]: """ ARM resource id of the underlying compute """ return pulumi.get(self, "resource_id") @pulumi.output_type class VirtualMachineResponseProperties(dict): @staticmethod def __key_warning(key: str): suggest = None if key == "administratorAccount": suggest = "administrator_account" elif key == "isNotebookInstanceCompute": suggest = "is_notebook_instance_compute" elif key == "sshPort": suggest = "ssh_port" elif key == "virtualMachineSize": suggest = "virtual_machine_size" if suggest: pulumi.log.warn(f"Key '{key}' not found in VirtualMachineResponseProperties. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: VirtualMachineResponseProperties.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: VirtualMachineResponseProperties.__key_warning(key) return super().get(key, default) def __init__(__self__, *, address: Optional[str] = None, administrator_account: Optional['outputs.VirtualMachineSshCredentialsResponse'] = None, is_notebook_instance_compute: Optional[bool] = None, ssh_port: Optional[int] = None, virtual_machine_size: Optional[str] = None): """ :param str address: Public IP address of the virtual machine. :param 'VirtualMachineSshCredentialsResponse' administrator_account: Admin credentials for virtual machine :param bool is_notebook_instance_compute: Indicates whether this compute will be used for running notebooks. :param int ssh_port: Port open for ssh connections. :param str virtual_machine_size: Virtual Machine size """ if address is not None: pulumi.set(__self__, "address", address) if administrator_account is not None: pulumi.set(__self__, "administrator_account", administrator_account) if is_notebook_instance_compute is not None: pulumi.set(__self__, "is_notebook_instance_compute", is_notebook_instance_compute) if ssh_port is not None: pulumi.set(__self__, "ssh_port", ssh_port) if virtual_machine_size is not None: pulumi.set(__self__, "virtual_machine_size", virtual_machine_size) @property @pulumi.getter def address(self) -> Optional[str]: """ Public IP address of the virtual machine. """ return pulumi.get(self, "address") @property @pulumi.getter(name="administratorAccount") def administrator_account(self) -> Optional['outputs.VirtualMachineSshCredentialsResponse']: """ Admin credentials for virtual machine """ return pulumi.get(self, "administrator_account") @property @pulumi.getter(name="isNotebookInstanceCompute") def is_notebook_instance_compute(self) -> Optional[bool]: """ Indicates whether this compute will be used for running notebooks. """ return pulumi.get(self, "is_notebook_instance_compute") @property @pulumi.getter(name="sshPort") def ssh_port(self) -> Optional[int]: """ Port open for ssh connections. """ return pulumi.get(self, "ssh_port") @property @pulumi.getter(name="virtualMachineSize") def virtual_machine_size(self) -> Optional[str]: """ Virtual Machine size """ return pulumi.get(self, "virtual_machine_size") @pulumi.output_type class VirtualMachineSshCredentialsResponse(dict): """ Admin credentials for virtual machine """ @staticmethod def __key_warning(key: str): suggest = None if key == "privateKeyData": suggest = "private_key_data" elif key == "publicKeyData": suggest = "public_key_data" if suggest: pulumi.log.warn(f"Key '{key}' not found in VirtualMachineSshCredentialsResponse. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: VirtualMachineSshCredentialsResponse.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: VirtualMachineSshCredentialsResponse.__key_warning(key) return super().get(key, default) def __init__(__self__, *, password: Optional[str] = None, private_key_data: Optional[str] = None, public_key_data: Optional[str] = None, username: Optional[str] = None): """ Admin credentials for virtual machine :param str password: Password of admin account :param str private_key_data: Private key data :param str public_key_data: Public key data :param str username: Username of admin account """ if password is not None: pulumi.set(__self__, "password", password) if private_key_data is not None: pulumi.set(__self__, "private_key_data", private_key_data) if public_key_data is not None: pulumi.set(__self__, "public_key_data", public_key_data) if username is not None: pulumi.set(__self__, "username", username) @property @pulumi.getter def password(self) -> Optional[str]: """ Password of admin account """ return pulumi.get(self, "password") @property @pulumi.getter(name="privateKeyData") def private_key_data(self) -> Optional[str]: """ Private key data """ return pulumi.get(self, "private_key_data") @property @pulumi.getter(name="publicKeyData") def public_key_data(self) -> Optional[str]: """ Public key data """ return pulumi.get(self, "public_key_data") @property @pulumi.getter def username(self) -> Optional[str]: """ Username of admin account """ return pulumi.get(self, "username")
37.128438
515
0.634754
47,470
445,467
5.733853
0.026627
0.020034
0.031379
0.045862
0.79607
0.746967
0.710867
0.653751
0.628691
0.608973
0
0.000405
0.268698
445,467
11,997
516
37.131533
0.835108
0.238112
0
0.685543
1
0.017058
0.194232
0.061034
0
0
0
0
0
1
0.162472
false
0.002796
0.000979
0.002657
0.308865
0.000559
0
0
0
null
0
0
0
0
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
fb36b5880772cbeed5b641ee334b69ca12863d79
60
py
Python
0x15-api/0-gather_data_from_an_API.py
darkares23/holbertonschool-higher_level_programming
931b1b701d8a1d990b7cd931486496c0b5502e21
[ "MIT" ]
null
null
null
0x15-api/0-gather_data_from_an_API.py
darkares23/holbertonschool-higher_level_programming
931b1b701d8a1d990b7cd931486496c0b5502e21
[ "MIT" ]
null
null
null
0x15-api/0-gather_data_from_an_API.py
darkares23/holbertonschool-higher_level_programming
931b1b701d8a1d990b7cd931486496c0b5502e21
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import requests from sys import argv
7.5
20
0.733333
9
60
4.888889
0.888889
0
0
0
0
0
0
0
0
0
0
0.020408
0.183333
60
7
21
8.571429
0.877551
0.283333
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
34cffce6b48b1e71847ac72ebf4ffa5ad0337282
818
py
Python
tests/test_config.py
bpmbank/mrq
12b0be3795164732da94d12240d9ed74f8b33601
[ "MIT" ]
null
null
null
tests/test_config.py
bpmbank/mrq
12b0be3795164732da94d12240d9ed74f8b33601
[ "MIT" ]
null
null
null
tests/test_config.py
bpmbank/mrq
12b0be3795164732da94d12240d9ed74f8b33601
[ "MIT" ]
null
null
null
import json def test_config(worker): """ Test different config passing options. """ worker.start() cfg = json.loads(worker.send_task("tests.tasks.general.GetConfig", {}, block=True)) assert "mongodb_jobs" in cfg assert cfg.get("additional_unexpected_config") is None worker.stop() worker.start(flags="--config tests/fixtures/config2.py") cfg = json.loads(worker.send_task("tests.tasks.general.GetConfig", {}, block=True)) assert cfg["name"] == "testworker" assert cfg.get("additional_unexpected_config") == "1" worker.stop() worker.start(flags="--config tests/fixtures/config2.py --name xxx") cfg = json.loads(worker.send_task("tests.tasks.general.GetConfig", {}, block=True)) assert cfg["name"] == "xxx" assert cfg.get("additional_unexpected_config") == "1" worker.stop()
25.5625
85
0.702934
108
818
5.222222
0.351852
0.079787
0.06383
0.095745
0.796099
0.796099
0.728723
0.728723
0.728723
0.572695
0
0.00561
0.128362
818
31
86
26.387097
0.785414
0.046455
0
0.470588
0
0
0.369171
0.286269
0
0
0
0
0.352941
1
0.058824
false
0
0.058824
0
0.117647
0
0
0
0
null
0
0
0
0
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
34d65d77eed064d921c2635d06997dfebcb62e87
379
py
Python
airline-app/views.py
rohitray042/JavaScript
384a9b81a05f943a60b11cddbbb9ccf7a2b0e0f6
[ "MIT" ]
null
null
null
airline-app/views.py
rohitray042/JavaScript
384a9b81a05f943a60b11cddbbb9ccf7a2b0e0f6
[ "MIT" ]
null
null
null
airline-app/views.py
rohitray042/JavaScript
384a9b81a05f943a60b11cddbbb9ccf7a2b0e0f6
[ "MIT" ]
null
null
null
from django.http import HttpResponse from django.shortcuts import render # Create your views here. def index(request): return render(request, "hello/index.html") def pratyaydeep(request): return HttpResponse("Hello, Pratyaydeep") def greet(request, name): return render(request, "hello/greet.html", { "name": name.capitalize() })
19.947368
49
0.672823
43
379
5.930233
0.488372
0.078431
0.14902
0.188235
0
0
0
0
0
0
0
0
0.216359
379
18
50
21.055556
0.858586
0.060686
0
0
0
0
0.160714
0
0
0
0
0
0
1
0.3
false
0
0.2
0.3
0.8
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
5518e2de32997886a149e15f5cb01d6043495765
116
py
Python
rejected_article_tracker/src/SearchProvider.py
sagepublishing/rejected_article_tracker_pkg
6b7616b14816406f012980695404bc5bdd7ab93a
[ "MIT" ]
10
2020-12-15T17:28:06.000Z
2022-03-11T21:50:47.000Z
rejected_article_tracker/src/SearchProvider.py
ad48/rejected_article_tracker_pkg
90a5042b730b01b371c0be67e1e915daa322251a
[ "MIT" ]
11
2021-06-15T00:42:35.000Z
2021-08-02T16:15:58.000Z
rejected_article_tracker/src/SearchProvider.py
ad48/rejected_article_tracker_pkg
90a5042b730b01b371c0be67e1e915daa322251a
[ "MIT" ]
2
2020-09-14T14:12:38.000Z
2021-08-02T19:04:14.000Z
class SearchProvider: def search(self) -> list: """ Searches a remote data source """ return []
23.2
45
0.577586
12
116
5.583333
1
0
0
0
0
0
0
0
0
0
0
0
0.301724
116
4
46
29
0.82716
0.25
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4
9b52efd8dc10863350c9ac7c14ec5a9169bc7e9a
513
py
Python
college/serializers.py
ingJSNA/django-demo
3a50f5361511085494688ab5e047affaee266d69
[ "MIT" ]
null
null
null
college/serializers.py
ingJSNA/django-demo
3a50f5361511085494688ab5e047affaee266d69
[ "MIT" ]
null
null
null
college/serializers.py
ingJSNA/django-demo
3a50f5361511085494688ab5e047affaee266d69
[ "MIT" ]
null
null
null
from rest_framework import serializers from .models import Student, Score, Professor class StudentPostSerializer(serializers.ModelSerializer): class Meta: model = Student fields = ('id', 'name') class ProfessorPostSerializer(serializers.ModelSerializer): class Meta: model = Professor fields = ('id', 'name') class ScorePostSerializer(serializers.ModelSerializer): class Meta: model = Score fields = ('id', 'name', 'professor', 'student', 'value')
25.65
64
0.678363
47
513
7.382979
0.425532
0.224784
0.268012
0.302594
0.345821
0
0
0
0
0
0
0
0.216374
513
20
64
25.65
0.863184
0
0
0.357143
0
0
0.075875
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.571429
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
4
9b621b4110ce6571f9224151f016277b801bc2a0
415
py
Python
operators.py
PabloFlow3103/astr-119-hw-2
a613bbca1c977e9de3651ddb1babebbadc8e8c67
[ "MIT" ]
null
null
null
operators.py
PabloFlow3103/astr-119-hw-2
a613bbca1c977e9de3651ddb1babebbadc8e8c67
[ "MIT" ]
1
2020-10-15T09:13:59.000Z
2020-10-16T23:17:18.000Z
operators.py
PabloFlow3103/astr-119-hw-2
a613bbca1c977e9de3651ddb1babebbadc8e8c67
[ "MIT" ]
null
null
null
x=9 y=3 #Im only gonna comment here but i'll separate all the operater by new lines #Same progression as the slides print(x+y) print(x-y) print(x*y) print(x/y) print(x%y) print(x**y) x=9.919555555 print(x//y) x=9 x+=3 print(x) x=9 x-=3 print(x) x*=3 print(x) x/=3 print(x) x ** 3 print(x) x=9 x=3 print(x==y) print(x!=y) print(x>y) print(x<y) print(x>=y) print(x<=y)
10.121951
76
0.578313
94
415
2.553191
0.265957
0.45
0.379167
0.5
0.5875
0.55
0.55
0.541667
0.541667
0.541667
0
0.066456
0.238554
415
41
77
10.121951
0.693038
0.250602
0
0.3
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.6
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
4
9b69e1bab544c0b203d401c1fb7bc5bdbe433e3f
2,973
py
Python
atest/testdata/keywords/type_conversion/KeywordDecoratorWithAliases.py
phil-davis/robotframework
4d4ce686cbe01e293bb86ea6ff34330e8c45fc43
[ "ECL-2.0", "Apache-2.0" ]
9
2020-04-22T08:30:52.000Z
2020-12-07T08:25:09.000Z
atest/testdata/keywords/type_conversion/KeywordDecoratorWithAliases.py
phil-davis/robotframework
4d4ce686cbe01e293bb86ea6ff34330e8c45fc43
[ "ECL-2.0", "Apache-2.0" ]
63
2020-03-04T17:31:39.000Z
2022-03-01T09:12:16.000Z
atest/testdata/keywords/type_conversion/KeywordDecoratorWithAliases.py
phil-davis/robotframework
4d4ce686cbe01e293bb86ea6ff34330e8c45fc43
[ "ECL-2.0", "Apache-2.0" ]
1
2020-11-23T03:44:31.000Z
2020-11-23T03:44:31.000Z
# Imports needed for evaluating expected result. from datetime import datetime, date, timedelta from decimal import Decimal from robot.api.deco import keyword from robot.utils import unicode @keyword(types=['Integer']) # type always is given as str def integer(argument, expected=None): _validate_type(argument, expected) @keyword(types=[u'INT']) # type given as unicode on Python 2 def int_(argument, expected=None): _validate_type(argument, expected) @keyword(types={'argument': 'lOnG'}) # type always given as str def long_(argument, expected=None): _validate_type(argument, expected) @keyword(types={u'argument': u'Float'}) # type given as unicode on Python 2 def float_(argument, expected=None): _validate_type(argument, expected) @keyword(types=['Double']) def double(argument, expected=None): _validate_type(argument, expected) @keyword(types=['DECIMAL']) def decimal(argument, expected=None): _validate_type(argument, expected) @keyword(types=['Boolean']) def boolean(argument, expected=None): _validate_type(argument, expected) @keyword(types=['Bool']) def bool_(argument, expected=None): _validate_type(argument, expected) @keyword(types=['String']) def string(argument, expected=None): _validate_type(argument, expected) @keyword(types=['BYTES']) def bytes_(argument, expected=None): _validate_type(argument, expected) @keyword(types=['ByteArray']) def bytearray_(argument, expected=None): _validate_type(argument, expected) @keyword(types=['DateTime']) def datetime_(argument, expected=None): _validate_type(argument, expected) @keyword(types=['Date']) def date_(argument, expected=None): _validate_type(argument, expected) @keyword(types=['TimeDelta']) def timedelta_(argument, expected=None): _validate_type(argument, expected) @keyword(types=['List']) def list_(argument, expected=None): _validate_type(argument, expected) @keyword(types=['TUPLE']) def tuple_(argument, expected=None): _validate_type(argument, expected) @keyword(types=['Dictionary']) def dictionary(argument, expected=None): _validate_type(argument, expected) @keyword(types=['Dict']) def dict_(argument, expected=None): _validate_type(argument, expected) @keyword(types=['Map']) def map_(argument, expected=None): _validate_type(argument, expected) @keyword(types=['Set']) def set_(argument, expected=None): _validate_type(argument, expected) @keyword(types=['FrozenSet']) def frozenset_(argument, expected=None): _validate_type(argument, expected) def _validate_type(argument, expected): if isinstance(expected, (str, unicode)): expected = eval(expected) if argument != expected or type(argument) != type(expected): raise AssertionError('%r (%s) != %r (%s)' % (argument, type(argument).__name__, expected, type(expected).__name__))
24.570248
78
0.707703
344
2,973
5.921512
0.171512
0.345606
0.216004
0.302406
0.643103
0.643103
0.643103
0.619539
0.590083
0.059892
0
0.000798
0.15708
2,973
120
79
24.775
0.812051
0.056172
0
0.283784
0
0
0.055714
0
0
0
0
0
0.013514
1
0.297297
false
0
0.054054
0
0.351351
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
4
9b74ffba8c76141aa6844ca9a3909535ac5db8fe
213
py
Python
config/utils/__init__.py
MerajRamezani/CP228W
bb7068fa267c4f12f91bce9988514d6ce28f626c
[ "BSD-3-Clause" ]
2
2020-10-30T18:44:42.000Z
2021-06-01T21:37:29.000Z
config/utils/__init__.py
MerajRamezani/CP228W
bb7068fa267c4f12f91bce9988514d6ce28f626c
[ "BSD-3-Clause" ]
20
2020-07-21T17:05:04.000Z
2021-11-08T19:43:19.000Z
config/utils/__init__.py
MerajRamezani/CP228W
bb7068fa267c4f12f91bce9988514d6ce28f626c
[ "BSD-3-Clause" ]
3
2020-05-20T19:26:48.000Z
2021-05-27T20:20:02.000Z
import sys sys.path.append("config") from utils.arg_utils import parse_command_args from utils.config_utils import get_batches, process_configuration from utils.data_split_utils import get_split_aware_site_info
26.625
65
0.868545
34
213
5.088235
0.588235
0.156069
0.16185
0
0
0
0
0
0
0
0
0
0.084507
213
7
66
30.428571
0.887179
0
0
0
0
0
0.028169
0
0
0
0
0
0
1
0
true
0
0.8
0
0.8
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
9bb75cec2ae2c8bc2fb17c8ee16685b964a8386e
261
py
Python
tests/test_exit_codes.py
caltechlibrary/documentarist
055ad42f623c7affb584a6004e1bdba73d6312ac
[ "BSD-3-Clause" ]
10
2020-04-27T19:12:14.000Z
2022-02-11T07:06:17.000Z
tests/test_exit_codes.py
caltechlibrary/documentarist
055ad42f623c7affb584a6004e1bdba73d6312ac
[ "BSD-3-Clause" ]
null
null
null
tests/test_exit_codes.py
caltechlibrary/documentarist
055ad42f623c7affb584a6004e1bdba73d6312ac
[ "BSD-3-Clause" ]
2
2020-04-27T19:12:21.000Z
2021-03-15T10:47:16.000Z
import sys sys.path.append('../common') from common.exit_codes import * def test_exit_code(): assert ExitCode.bad_arg.value[0] == 2 assert ExitCode.exception.value[0] == 5 assert ExitCode.success.value[1] == 'success -- program completed normally'
29
79
0.716475
37
261
4.945946
0.675676
0.229508
0
0
0
0
0
0
0
0
0
0.022422
0.145594
261
8
80
32.625
0.798206
0
0
0
0
0
0.176245
0
0
0
0
0
0.428571
1
0.142857
true
0
0.285714
0
0.428571
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
1
0
0
0
0
0
0
4
fd08e35f0b1fbe689556df6e095abdbf9f35c68b
33
py
Python
envi/archs/z80/__init__.py
rnui2k/vivisect
b7b00f2d03defef28b4b8c912e3a8016e956c5f7
[ "ECL-2.0", "Apache-2.0" ]
716
2015-01-01T14:41:11.000Z
2022-03-28T06:51:50.000Z
envi/archs/z80/__init__.py
rnui2k/vivisect
b7b00f2d03defef28b4b8c912e3a8016e956c5f7
[ "ECL-2.0", "Apache-2.0" ]
266
2015-01-01T15:07:27.000Z
2022-03-30T15:19:26.000Z
envi/archs/z80/__init__.py
rnui2k/vivisect
b7b00f2d03defef28b4b8c912e3a8016e956c5f7
[ "ECL-2.0", "Apache-2.0" ]
159
2015-01-01T16:19:44.000Z
2022-03-21T21:55:34.000Z
''' Z80 architecture base... '''
8.25
24
0.575758
3
33
6.333333
1
0
0
0
0
0
0
0
0
0
0
0.071429
0.151515
33
3
25
11
0.607143
0.727273
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
fd0f7164917130fe94bafb4fb9c0cbe016f06afc
171
py
Python
lang/py/pylib/01/textwrap/textwrap_dedent.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
lang/py/pylib/01/textwrap/textwrap_dedent.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
lang/py/pylib/01/textwrap/textwrap_dedent.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding:UTF-8 -*- # 去除缩进 import textwrap from example import sample print sample print print'Dedent:\n' print textwrap.dedent(sample).strip()
14.25
37
0.725146
25
171
4.96
0.68
0.177419
0
0
0
0
0
0
0
0
0
0.006711
0.128655
171
11
38
15.545455
0.825503
0.269006
0
0
0
0
0.07377
0
0
0
0
0
0
0
null
null
0
0.333333
null
null
0.666667
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
1
0
4
fd143aa9d738bed08f0bb9dab9c307dee1b3a45b
681
py
Python
sources/t03/t03ejer09.py
workready/pythonbasic
59bd82caf99244f5e711124e1f6f4dec8de22141
[ "MIT" ]
null
null
null
sources/t03/t03ejer09.py
workready/pythonbasic
59bd82caf99244f5e711124e1f6f4dec8de22141
[ "MIT" ]
null
null
null
sources/t03/t03ejer09.py
workready/pythonbasic
59bd82caf99244f5e711124e1f6f4dec8de22141
[ "MIT" ]
null
null
null
# Estos son los módulos que necesitas import datetime import calendar import locale def get_today_as_string(): """ Funcion que me dice el día de la semana que es hoy, en formato string. Pequeña guia de implementación: 1. Obtén el día de la semana que es hoy, en formato entero (1, 2, 3, etc). Usa datetime. 2. Obtén en una lista, los días de la semana en español en formato string. Usa calendar y locale. 3. Usa el resultado de 1 para indexar el array de 2 @returns: "Lunes", "Martes"... """ locale.setlocale(locale.LC_ALL, 'es_ES.UTF-8') pass # Tu codigo aqui print("Hoy es {}".format(get_today_as_string()))
32.428571
105
0.665198
110
681
4.045455
0.545455
0.026966
0.067416
0.07191
0.14382
0.14382
0.14382
0.14382
0.14382
0.14382
0
0.017613
0.249633
681
21
106
32.428571
0.853229
0.625551
0
0
0
0
0.102564
0
0
0
0
0
0
1
0.142857
true
0.142857
0.428571
0
0.571429
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
1
0
1
0
0
4
fd20c51707fac7b01e2ed541374328f3f9339c87
239
py
Python
pyleecan/Methods/Slot/VentilationTrap/__init__.py
IrakozeFD/pyleecan
5a93bd98755d880176c1ce8ac90f36ca1b907055
[ "Apache-2.0" ]
95
2019-01-23T04:19:45.000Z
2022-03-17T18:22:10.000Z
pyleecan/Methods/Slot/VentilationTrap/__init__.py
IrakozeFD/pyleecan
5a93bd98755d880176c1ce8ac90f36ca1b907055
[ "Apache-2.0" ]
366
2019-02-20T07:15:08.000Z
2022-03-31T13:37:23.000Z
pyleecan/Methods/Slot/VentilationTrap/__init__.py
IrakozeFD/pyleecan
5a93bd98755d880176c1ce8ac90f36ca1b907055
[ "Apache-2.0" ]
74
2019-01-24T01:47:31.000Z
2022-02-25T05:44:42.000Z
class VentilationTrapInstanceError(Exception): """Raised when a Ventilation Trap parameter is not int or float""" pass class TrapezeBuildGeometryError(Exception): """raised when the parameter have not good type""" pass
21.727273
70
0.736402
27
239
6.518519
0.740741
0.170455
0.215909
0
0
0
0
0
0
0
0
0
0.188285
239
10
71
23.9
0.907216
0.439331
0
0.5
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
4
fd37fd52d76f090b6c9153bb4e985026af55145a
89
py
Python
crashes/apps.py
grigoryk/sentry-analyzer
8a48706297ea4bc8033c8c9d3223b3e59cd1cb6d
[ "Apache-2.0" ]
2
2021-07-23T19:51:39.000Z
2021-08-07T01:50:19.000Z
crashes/apps.py
grigoryk/sentry-analyzer
8a48706297ea4bc8033c8c9d3223b3e59cd1cb6d
[ "Apache-2.0" ]
6
2021-03-30T13:02:30.000Z
2021-07-19T17:01:53.000Z
crashes/apps.py
grigoryk/sentry-analyzer
8a48706297ea4bc8033c8c9d3223b3e59cd1cb6d
[ "Apache-2.0" ]
null
null
null
from django.apps import AppConfig class CrashesConfig(AppConfig): name = 'crashes'
14.833333
33
0.752809
10
89
6.7
0.9
0
0
0
0
0
0
0
0
0
0
0
0.168539
89
5
34
17.8
0.905405
0
0
0
0
0
0.078652
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
fd3a1ef28e3e32536d5a6d8b3f0e4bfeeb72d2d4
125
py
Python
main.py
DandelionLau/NetworkCollections
29e5cd2091f7085b3241209ed9447f2baadbce41
[ "Apache-2.0" ]
8
2019-12-20T07:18:06.000Z
2021-04-30T15:04:41.000Z
main.py
DandelionLau/NetworkCollections
29e5cd2091f7085b3241209ed9447f2baadbce41
[ "Apache-2.0" ]
null
null
null
main.py
DandelionLau/NetworkCollections
29e5cd2091f7085b3241209ed9447f2baadbce41
[ "Apache-2.0" ]
null
null
null
import operator as op import numpy as np import random import time k = sum(1 for i in range(4) for n in range(5)) print(k)
13.888889
46
0.72
27
125
3.333333
0.703704
0.155556
0
0
0
0
0
0
0
0
0
0.030303
0.208
125
8
47
15.625
0.878788
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0.166667
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
b5d3c07be143c9cd95c8f721a0ff16499506c5c8
99
py
Python
test/test.py
ngbla/memoire_bigdata_face
dd9cf3d198f3921cd7fc183902732fd877473edf
[ "MIT" ]
null
null
null
test/test.py
ngbla/memoire_bigdata_face
dd9cf3d198f3921cd7fc183902732fd877473edf
[ "MIT" ]
null
null
null
test/test.py
ngbla/memoire_bigdata_face
dd9cf3d198f3921cd7fc183902732fd877473edf
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Éditeur de Spyder Ceci est un script temporaire. """ print('bonjour')
12.375
30
0.626263
13
99
4.769231
1
0
0
0
0
0
0
0
0
0
0
0.012195
0.171717
99
8
31
12.375
0.743902
0.727273
0
0
0
0
0.35
0
0
0
0
0
0
1
0
true
0
0
0
0
1
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
4
b5da938235e6816cfd761ec8546d351be3bd180e
30
py
Python
lib/python3.4/tokenize.py
caiocsalvador/whats_the_craic
c49ef62f1acd7379f6fd90c2b93aa1fa00c8661d
[ "MIT" ]
7
2017-04-26T12:28:22.000Z
2021-02-09T18:59:50.000Z
django-ng/lib/python3.4/tokenize.py
Arsalen/BusinessStrategies
209e57340359af3ea063c064982198848dc36c5f
[ "MIT" ]
13
2015-12-04T03:38:37.000Z
2015-12-12T00:15:46.000Z
django-ng/lib/python3.4/tokenize.py
Arsalen/BusinessStrategies
209e57340359af3ea063c064982198848dc36c5f
[ "MIT" ]
8
2017-06-01T08:42:16.000Z
2020-07-23T12:30:19.000Z
/usr/lib/python3.4/tokenize.py
30
30
0.8
6
30
4
1
0
0
0
0
0
0
0
0
0
0
0.066667
0
30
1
30
30
0.733333
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
4
b5ed645ece4a9fe79a0246785769007559962466
99
py
Python
Modules/Maths/__init__.py
nesbittryan/3250GraphCalcProject
861e3e8e599e0ee00391c99cb82bacf268d9556b
[ "MIT" ]
null
null
null
Modules/Maths/__init__.py
nesbittryan/3250GraphCalcProject
861e3e8e599e0ee00391c99cb82bacf268d9556b
[ "MIT" ]
null
null
null
Modules/Maths/__init__.py
nesbittryan/3250GraphCalcProject
861e3e8e599e0ee00391c99cb82bacf268d9556b
[ "MIT" ]
null
null
null
__all__ = ['Calculation', 'TreeProcessing'] from Calculation import * from TreeProcessing import *
24.75
43
0.777778
9
99
8.111111
0.555556
0
0
0
0
0
0
0
0
0
0
0
0.121212
99
3
44
33
0.83908
0
0
0
0
0
0.252525
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
bd12233b7839feab7aeabc4ffe2ad54abb8644c6
220
py
Python
app/members/models.py
FC-Oasis/Hackerthon-Django
d92c83d42424b0f25ca2d1e7fe70c4e6de2486c5
[ "MIT" ]
null
null
null
app/members/models.py
FC-Oasis/Hackerthon-Django
d92c83d42424b0f25ca2d1e7fe70c4e6de2486c5
[ "MIT" ]
3
2018-07-20T02:05:50.000Z
2018-07-20T09:28:59.000Z
app/members/models.py
FC-Oasis/Hackerthon-Django
d92c83d42424b0f25ca2d1e7fe70c4e6de2486c5
[ "MIT" ]
1
2018-08-10T08:16:52.000Z
2018-08-10T08:16:52.000Z
from django.contrib.auth.models import AbstractUser from django.db import models class User(AbstractUser): img_profile = models.ImageField(upload_to='user', blank=True) introduce = models.TextField(blank=True)
27.5
65
0.781818
29
220
5.862069
0.655172
0.117647
0
0
0
0
0
0
0
0
0
0
0.122727
220
7
66
31.428571
0.880829
0
0
0
0
0
0.018182
0
0
0
0
0
0
1
0
false
0
0.4
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
bd4ce10fe033dc1a1c6d431f1b334a300493cc47
107
py
Python
tracker_app/apps.py
djjohnsongeek/rbthours-tracker
243089ce30536accd4403cd7d3809fb71868c35d
[ "MIT" ]
null
null
null
tracker_app/apps.py
djjohnsongeek/rbthours-tracker
243089ce30536accd4403cd7d3809fb71868c35d
[ "MIT" ]
3
2020-06-05T23:37:37.000Z
2021-06-10T18:58:49.000Z
tracker_app/apps.py
djjohnsongeek/rbthours-tracker
243089ce30536accd4403cd7d3809fb71868c35d
[ "MIT" ]
null
null
null
from django.apps import AppConfig class RbtHoursTrackerConfig(AppConfig): name = 'rbt_hours_tracker'
17.833333
39
0.794393
12
107
6.916667
0.916667
0
0
0
0
0
0
0
0
0
0
0
0.140187
107
5
40
21.4
0.902174
0
0
0
0
0
0.158879
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
1fadd1e6d244ec3bf1263185c35f37526ff2b510
73
py
Python
runD.py
russell-ligon/donorFlask
546ee1c9a8a002adf4195a687755f66eaae1b668
[ "MIT" ]
1
2020-06-07T14:49:32.000Z
2020-06-07T14:49:32.000Z
runD.py
russell-ligon/donorFlask
546ee1c9a8a002adf4195a687755f66eaae1b668
[ "MIT" ]
null
null
null
runD.py
russell-ligon/donorFlask
546ee1c9a8a002adf4195a687755f66eaae1b668
[ "MIT" ]
null
null
null
#!/usr/bin/env python from donorschoose import app app.run(debug = True)
18.25
28
0.753425
12
73
4.583333
0.916667
0
0
0
0
0
0
0
0
0
0
0
0.123288
73
3
29
24.333333
0.859375
0.273973
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
1fae7f562e65a43b61bbef6c0e4db8eff6556455
488
py
Python
.github/workflows/run_yarn.py
Mause/media
8f2d8c0e4dc620eb3f7d2b9095c4b564ff4a82a6
[ "MIT" ]
2
2021-07-01T08:36:59.000Z
2021-09-06T12:28:35.000Z
.github/workflows/run_yarn.py
Mause/media
8f2d8c0e4dc620eb3f7d2b9095c4b564ff4a82a6
[ "MIT" ]
78
2020-10-06T15:56:42.000Z
2021-11-03T23:23:18.000Z
.github/workflows/run_yarn.py
Mause/media
8f2d8c0e4dc620eb3f7d2b9095c4b564ff4a82a6
[ "MIT" ]
1
2020-11-02T00:52:20.000Z
2020-11-02T00:52:20.000Z
from subprocess import check_call with open('.git/HEAD') as fh: branch_name = fh.read().strip() print(branch_name) branch_name = branch_name.replace('ref: refs/heads/dependabot/npm_and_yarn/app/', '') print(branch_name) if '/' in branch_name: branch_name = "@" + branch_name branch_name = branch_name.rsplit('-', 1)[0] print(branch_name) print(check_call(['git', 'checkout', 'origin/master', '--', 'app/yarn.lock'])) print(check_call(['yarn', 'up', branch_name], cwd='app'))
27.111111
85
0.694672
72
488
4.472222
0.5
0.372671
0.298137
0.372671
0.248447
0.248447
0.15528
0.15528
0
0
0
0.004608
0.110656
488
17
86
28.705882
0.737327
0
0
0.25
0
0
0.213115
0.079918
0
0
0
0
0
1
0
false
0
0.083333
0
0.083333
0.416667
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
4
1fc525ac1623730edec5b71f118f96d133fe7833
741
py
Python
applications/views/admin/__init__.py
muzhial/plr_vehicle_system
5867ee757f9cb2283ba6aa5a76c5c87a2435be8e
[ "MIT" ]
null
null
null
applications/views/admin/__init__.py
muzhial/plr_vehicle_system
5867ee757f9cb2283ba6aa5a76c5c87a2435be8e
[ "MIT" ]
null
null
null
applications/views/admin/__init__.py
muzhial/plr_vehicle_system
5867ee757f9cb2283ba6aa5a76c5c87a2435be8e
[ "MIT" ]
null
null
null
from applications.views.admin.index import admin_index from applications.views.admin.user import admin_user from applications.views.admin.file import admin_file from applications.views.admin.admin_log import admin_log from applications.views.admin.power import admin_power from applications.views.admin.role import admin_role from applications.views.admin.measure_data import admin_measure_data def init_adminViews(app): """ init blueprint """ app.register_blueprint(admin_index) app.register_blueprint(admin_user) app.register_blueprint(admin_file) app.register_blueprint(admin_log) app.register_blueprint(admin_power) app.register_blueprint(admin_role) app.register_blueprint(admin_measure_data)
33.681818
68
0.817814
101
741
5.742574
0.188119
0.193103
0.253448
0.313793
0
0
0
0
0
0
0
0
0.11336
741
21
69
35.285714
0.882801
0.018893
0
0
0
0
0
0
0
0
0
0
0
1
0.066667
false
0
0.466667
0
0.533333
0.466667
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
1
0
4
1fd23f0b7edcb78daa3a49a73570c01b46b91c3c
5,722
py
Python
boto3_type_annotations_with_docs/boto3_type_annotations/marketplace_entitlement/paginator.py
cowboygneox/boto3_type_annotations
450dce1de4e066b939de7eac2ec560ed1a7ddaa2
[ "MIT" ]
119
2018-12-01T18:20:57.000Z
2022-02-02T10:31:29.000Z
boto3_type_annotations_with_docs/boto3_type_annotations/marketplace_entitlement/paginator.py
cowboygneox/boto3_type_annotations
450dce1de4e066b939de7eac2ec560ed1a7ddaa2
[ "MIT" ]
15
2018-11-16T00:16:44.000Z
2021-11-13T03:44:18.000Z
boto3_type_annotations_with_docs/boto3_type_annotations/marketplace_entitlement/paginator.py
cowboygneox/boto3_type_annotations
450dce1de4e066b939de7eac2ec560ed1a7ddaa2
[ "MIT" ]
11
2019-05-06T05:26:51.000Z
2021-09-28T15:27:59.000Z
from typing import Dict from botocore.paginate import Paginator class GetEntitlements(Paginator): def paginate(self, ProductCode: str, Filter: Dict = None, PaginationConfig: Dict = None) -> Dict: """ Creates an iterator that will paginate through responses from :py:meth:`MarketplaceEntitlementService.Client.get_entitlements`. See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/entitlement.marketplace-2017-01-11/GetEntitlements>`_ **Request Syntax** :: response_iterator = paginator.paginate( ProductCode='string', Filter={ 'string': [ 'string', ] }, PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } ) **Response Syntax** :: { 'Entitlements': [ { 'ProductCode': 'string', 'Dimension': 'string', 'CustomerIdentifier': 'string', 'Value': { 'IntegerValue': 123, 'DoubleValue': 123.0, 'BooleanValue': True|False, 'StringValue': 'string' }, 'ExpirationDate': datetime(2015, 1, 1) }, ], } **Response Structure** - *(dict) --* The GetEntitlementsRequest contains results from the GetEntitlements operation. - **Entitlements** *(list) --* The set of entitlements found through the GetEntitlements operation. If the result contains an empty set of entitlements, NextToken might still be present and should be used. - *(dict) --* An entitlement represents capacity in a product owned by the customer. For example, a customer might own some number of users or seats in an SaaS application or some amount of data capacity in a multi-tenant database. - **ProductCode** *(string) --* The product code for which the given entitlement applies. Product codes are provided by AWS Marketplace when the product listing is created. - **Dimension** *(string) --* The dimension for which the given entitlement applies. Dimensions represent categories of capacity in a product and are specified when the product is listed in AWS Marketplace. - **CustomerIdentifier** *(string) --* The customer identifier is a handle to each unique customer in an application. Customer identifiers are obtained through the ResolveCustomer operation in AWS Marketplace Metering Service. - **Value** *(dict) --* The EntitlementValue represents the amount of capacity that the customer is entitled to for the product. - **IntegerValue** *(integer) --* The IntegerValue field will be populated with an integer value when the entitlement is an integer type. Otherwise, the field will not be set. - **DoubleValue** *(float) --* The DoubleValue field will be populated with a double value when the entitlement is a double type. Otherwise, the field will not be set. - **BooleanValue** *(boolean) --* The BooleanValue field will be populated with a boolean value when the entitlement is a boolean type. Otherwise, the field will not be set. - **StringValue** *(string) --* The StringValue field will be populated with a string value when the entitlement is a string type. Otherwise, the field will not be set. - **ExpirationDate** *(datetime) --* The expiration date represents the minimum date through which this entitlement is expected to remain valid. For contractual products listed on AWS Marketplace, the expiration date is the date at which the customer will renew or cancel their contract. Customers who are opting to renew their contract will still have entitlements with an expiration date. :type ProductCode: string :param ProductCode: **[REQUIRED]** Product code is used to uniquely identify a product in AWS Marketplace. The product code will be provided by AWS Marketplace when the product listing is created. :type Filter: dict :param Filter: Filter is used to return entitlements for a specific customer or for a specific dimension. Filters are described as keys mapped to a lists of values. Filtered requests are *unioned* for each value in the value list, and then *intersected* for each filter key. - *(string) --* - *(list) --* - *(string) --* :type PaginationConfig: dict :param PaginationConfig: A dictionary that provides parameters to control pagination. - **MaxItems** *(integer) --* The total number of items to return. If the total number of items available is more than the value specified in max-items then a ``NextToken`` will be provided in the output that you can use to resume pagination. - **PageSize** *(integer) --* The size of each page. - **StartingToken** *(string) --* A token to specify where to start paginating. This is the ``NextToken`` from a previous response. :rtype: dict :returns: """ pass
61.526882
371
0.5928
607
5,722
5.583196
0.352554
0.021245
0.012983
0.023606
0.16288
0.136028
0.070817
0.070817
0.031868
0.031868
0
0.007085
0.333974
5,722
92
372
62.195652
0.882183
0.842013
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0.2
0.4
0
0.8
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
1
0
1
0
0
4
1fd4ad79c8474054a26aec65d1aae37601ff2cea
189
py
Python
mayan/apps/file_caching/admin.py
CMU-313/fall-2021-hw2-451-unavailable-for-legal-reasons
0e4e919fd2e1ded6711354a0330135283e87f8c7
[ "Apache-2.0" ]
2
2021-09-12T19:41:19.000Z
2021-09-12T19:41:20.000Z
mayan/apps/file_caching/admin.py
CMU-313/fall-2021-hw2-451-unavailable-for-legal-reasons
0e4e919fd2e1ded6711354a0330135283e87f8c7
[ "Apache-2.0" ]
37
2021-09-13T01:00:12.000Z
2021-10-02T03:54:30.000Z
mayan/apps/file_caching/admin.py
CMU-313/fall-2021-hw2-451-unavailable-for-legal-reasons
0e4e919fd2e1ded6711354a0330135283e87f8c7
[ "Apache-2.0" ]
1
2021-09-22T13:17:30.000Z
2021-09-22T13:17:30.000Z
from django.contrib import admin from .models import Cache @admin.register(Cache) class CacheAdmin(admin.ModelAdmin): list_display = ('defined_storage_name', 'maximum_size')
21
60
0.746032
23
189
5.956522
0.782609
0
0
0
0
0
0
0
0
0
0
0
0.15873
189
8
61
23.625
0.861635
0
0
0
0
0
0.176796
0
0
0
0
0
0
1
0
false
0
0.4
0
0.8
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
1f032c5e8668c699cd4ec66adfc7afd42d44ed64
887
py
Python
ros/build/sensing/drivers/can/packages/kvaser/cmake/kvaser-genmsg-context.py
Innovation-Cell/radar
de1bcd91e5a831e2858539241edfea3ce79f3afd
[ "MIT" ]
null
null
null
ros/build/sensing/drivers/can/packages/kvaser/cmake/kvaser-genmsg-context.py
Innovation-Cell/radar
de1bcd91e5a831e2858539241edfea3ce79f3afd
[ "MIT" ]
null
null
null
ros/build/sensing/drivers/can/packages/kvaser/cmake/kvaser-genmsg-context.py
Innovation-Cell/radar
de1bcd91e5a831e2858539241edfea3ce79f3afd
[ "MIT" ]
null
null
null
# generated from genmsg/cmake/pkg-genmsg.context.in messages_str = "/home/mayur/ros jade files/catkin_ws/src/Udacity-SDC-Radar-Driver-Micro-Challenge/ros/src/sensing/drivers/can/packages/kvaser/msg/CANESR.msg" services_str = "" pkg_name = "kvaser" dependencies_str = "std_msgs;visualization_msgs" langs = "gencpp;geneus;genlisp;gennodejs;genpy" dep_include_paths_str = "kvaser;/home/mayur/ros jade files/catkin_ws/src/Udacity-SDC-Radar-Driver-Micro-Challenge/ros/src/sensing/drivers/can/packages/kvaser/msg;std_msgs;/opt/ros/kinetic/share/std_msgs/cmake/../msg;visualization_msgs;/opt/ros/kinetic/share/visualization_msgs/cmake/../msg;geometry_msgs;/opt/ros/kinetic/share/geometry_msgs/cmake/../msg" PYTHON_EXECUTABLE = "/usr/bin/python" package_has_static_sources = '' == 'TRUE' genmsg_check_deps_script = "/opt/ros/kinetic/share/genmsg/cmake/../../../lib/genmsg/genmsg_check_deps.py"
73.916667
354
0.798196
134
887
5.089552
0.470149
0.035191
0.076246
0.105572
0.410557
0.313783
0.313783
0.313783
0.313783
0.313783
0
0
0.042841
887
11
355
80.636364
0.803298
0.055242
0
0
1
0.222222
0.757177
0.694976
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
1f08c799153f395de703561c11ab4f794bf40c85
87,400
py
Python
python/types_pb2.py
cryptomood/api
59ab1726560d1b81f861423568b6f70713096a91
[ "Apache-2.0" ]
8
2019-08-14T12:02:57.000Z
2021-04-11T19:53:07.000Z
python/types_pb2.py
cryptomood/api
59ab1726560d1b81f861423568b6f70713096a91
[ "Apache-2.0" ]
7
2020-06-15T09:35:51.000Z
2021-11-14T03:07:19.000Z
python/types_pb2.py
cryptomood/api
59ab1726560d1b81f861423568b6f70713096a91
[ "Apache-2.0" ]
6
2019-07-02T13:08:56.000Z
2021-11-25T01:06:15.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: types.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 DESCRIPTOR = _descriptor.FileDescriptor( name='types.proto', package='', syntax='proto3', serialized_options=None, serialized_pb=_b('\n\x0btypes.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1bgoogle/protobuf/empty.proto\"\xbf\x02\n\tBaseModel\x12\n\n\x02id\x18\x01 \x01(\t\x12\r\n\x05title\x18\x02 \x01(\t\x12\x0f\n\x07\x63ontent\x18\x03 \x01(\t\x12\x0f\n\x07\x63rawler\x18\x04 \x01(\t\x12,\n\x08pub_date\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12+\n\x07\x63reated\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0e\n\x06source\x18\x07 \x01(\t\x12\x0f\n\x07\x65xcerpt\x18\x08 \x01(\t\x12\x0e\n\x06videos\x18\t \x03(\t\x12\x0e\n\x06images\x18\n \x03(\t\x12\r\n\x05links\x18\x0b \x03(\t\x12\x0e\n\x06\x61uthor\x18\x0c \x01(\t\x12\x0c\n\x04lang\x18\r \x01(\t\x12\x0e\n\x06weight\x18\x0e \x01(\x01\x12\x0c\n\x04spam\x18\x0f \x01(\x01\x12\x0e\n\x06\x64omain\x18\x10 \x01(\t\"U\n\x0eSentimentModel\x12\x11\n\tsentiment\x18\x01 \x01(\x01\x12\x15\n\rmarket_impact\x18\x02 \x01(\x01\x12\x19\n\x11sentiment_replies\x18\x03 \x01(\x01\"U\n\x16\x43ryptopanicEntrySource\x12\r\n\x05title\x18\x01 \x01(\t\x12\x0e\n\x06region\x18\x02 \x01(\t\x12\x0e\n\x06\x64omain\x18\x03 \x01(\t\x12\x0c\n\x04path\x18\x04 \x01(\t\"\x9a\x01\n\x15\x43ryptopanicEntryVotes\x12\x10\n\x08negative\x18\x01 \x01(\x05\x12\x10\n\x08positive\x18\x02 \x01(\x05\x12\x11\n\timportant\x18\x03 \x01(\x05\x12\r\n\x05liked\x18\x04 \x01(\x05\x12\x10\n\x08\x64isliked\x18\x05 \x01(\x05\x12\x0b\n\x03lol\x18\x06 \x01(\x05\x12\r\n\x05toxic\x18\x07 \x01(\x05\x12\r\n\x05saved\x18\x08 \x01(\x05\"@\n\x18\x43ryptopanicEntryMetadata\x12\x0f\n\x07message\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\"\x90\x02\n\x13\x43ryptopanicRawEntry\x12\x0c\n\x04kind\x18\x01 \x01(\t\x12\x0e\n\x06\x64omain\x18\x02 \x01(\t\x12\'\n\x06source\x18\x03 \x01(\x0b\x32\x17.CryptopanicEntrySource\x12\r\n\x05title\x18\x04 \x01(\t\x12\x14\n\x0cpublished_at\x18\x05 \x01(\t\x12\x0c\n\x04slug\x18\x06 \x01(\t\x12\n\n\x02id\x18\x07 \x01(\x05\x12\x0b\n\x03url\x18\x08 \x01(\t\x12\x12\n\ncreated_at\x18\t \x01(\t\x12%\n\x05votes\x18\n \x01(\x0b\x32\x16.CryptopanicEntryVotes\x12+\n\x08metadata\x18\x0b \x01(\x0b\x32\x19.CryptopanicEntryMetadata\"G\n\x0f\x43ryptopanicFeed\x12\r\n\x05\x63ount\x18\x01 \x01(\x05\x12%\n\x07results\x18\x02 \x03(\x0b\x32\x14.CryptopanicRawEntry\"a\n\x0f\x43ryptopanicPost\x12\x33\n\x15\x63ryptopanic_raw_entry\x18\x01 \x01(\x0b\x32\x14.CryptopanicRawEntry\x12\x19\n\x07\x61rticle\x18\x02 \x01(\x0b\x32\x08.Article\"^\n\x15NamedEntityOccurrence\x12\x1b\n\x05label\x18\x01 \x01(\x0e\x32\x0c.NamedEntity\x12\r\n\x05start\x18\x02 \x01(\r\x12\x0b\n\x03\x65nd\x18\x03 \x01(\r\x12\x0c\n\x04text\x18\x04 \x01(\t\"\xe5\x03\n\x12NamedEntitiesModel\x12\x0f\n\x07symbols\x18\x01 \x03(\t\x12&\n\x06\x61ssets\x18\x02 \x03(\x0b\x32\x16.NamedEntityOccurrence\x12\'\n\x07persons\x18\x03 \x03(\x0b\x32\x16.NamedEntityOccurrence\x12)\n\tcompanies\x18\x04 \x03(\x0b\x32\x16.NamedEntityOccurrence\x12-\n\rorganizations\x18\x05 \x03(\x0b\x32\x16.NamedEntityOccurrence\x12)\n\tlocations\x18\x06 \x03(\x0b\x32\x16.NamedEntityOccurrence\x12)\n\texchanges\x18\x07 \x03(\x0b\x32\x16.NamedEntityOccurrence\x12$\n\x04misc\x18\x08 \x03(\x0b\x32\x16.NamedEntityOccurrence\x12\x0c\n\x04tags\x18\t \x03(\t\x12>\n\x0e\x61sset_mentions\x18\n \x03(\x0b\x32&.NamedEntitiesModel.AssetMentionsEntry\x12\x13\n\x0bsource_text\x18\x0b \x01(\t\x1a\x34\n\x12\x41ssetMentionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x05:\x02\x38\x01\"\x9d\x01\n\x07\x41rticle\x12\x18\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\n.BaseModel\x12\"\n\tsentiment\x18\x02 \x01(\x0b\x32\x0f.SentimentModel\x12+\n\x0enamed_entities\x18\x03 \x01(\x0b\x32\x13.NamedEntitiesModel\x12\'\n\ntitle_data\x18\x04 \x01(\x0b\x32\x13.NamedEntitiesModel\"\x97\x01\n\x0bUserMessage\x12\x18\n\x04\x62\x61se\x18\x01 \x01(\x0b\x32\n.BaseModel\x12\"\n\tsentiment\x18\x02 \x01(\x0b\x32\x0f.SentimentModel\x12+\n\x0enamed_entities\x18\x03 \x01(\x0b\x32\x13.NamedEntitiesModel\x12\x0c\n\x04user\x18\x04 \x01(\t\x12\x0f\n\x07message\x18\x05 \x01(\t\"\xf4\x02\n\x0fSentimentCandle\x12\n\n\x02id\x18\x01 \x01(\t\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x12\n\nresolution\x18\x03 \x01(\t\x12\r\n\x05\x61sset\x18\x04 \x01(\t\x12\x14\n\x0cnegative_sum\x18\x05 \x01(\x01\x12\x16\n\x0enegative_count\x18\x06 \x01(\x05\x12\x14\n\x0cpositive_sum\x18\x07 \x01(\x01\x12\x16\n\x0epositive_count\x18\x08 \x01(\x05\x12\x15\n\rsentiment_avg\x18\t \x01(\x01\x12\x1e\n\x16open_sentiment_average\x18\n \x01(\x01\x12\x1e\n\x16high_sentiment_average\x18\x0b \x01(\x01\x12\x1d\n\x15low_sentiment_average\x18\x0c \x01(\x01\x12\x1f\n\x17\x63lose_sentiment_average\x18\r \x01(\x01\x12\x0f\n\x07updated\x18\x0e \x01(\x08\"2\n\x0c\x41ssetsFilter\x12\x0e\n\x06\x61ssets\x18\x04 \x03(\t\x12\x12\n\nall_assets\x18\x05 \x01(\x08\"S\n\x17\x41ggregationCandleFilter\x12\x12\n\nresolution\x18\x01 \x01(\t\x12$\n\rassets_filter\x18\x02 \x01(\x0b\x32\r.AssetsFilter\"\x8f\x01\n\x18SentimentHistoricRequest\x12(\n\x04\x66rom\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12&\n\x02to\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x12\n\nresolution\x18\x03 \x01(\t\x12\r\n\x05\x61sset\x18\x04 \x01(\t\"\x82\x01\n\x0fHistoricRequest\x12(\n\x04\x66rom\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12&\n\x02to\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x1d\n\x06\x66ilter\x18\x04 \x01(\x0b\x32\r.AssetsFilter\"3\n\x05\x41sset\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0e\n\x06symbol\x18\x02 \x01(\t\x12\x0c\n\x04\x63ode\x18\x03 \x01(\t\"$\n\nAssetItems\x12\x16\n\x06\x61ssets\x18\x01 \x03(\x0b\x32\x06.Asset\"\xe1\x01\n\x0bTransaction\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04hash\x18\x02 \x01(\t\x12\x14\n\x0c\x66rom_address\x18\x03 \x01(\t\x12\x12\n\nto_address\x18\x04 \x01(\t\x12\x12\n\nfrom_owner\x18\x05 \x01(\t\x12\x10\n\x08to_owner\x18\x06 \x01(\t\x12(\n\x04time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0f\n\x07\x63omment\x18\x08 \x01(\t\x12\r\n\x05\x61sset\x18\t \x01(\t\x12\x0c\n\x04size\x18\n \x01(\x01\x12\x10\n\x08USD_size\x18\x0b \x01(\x01\"O\n\x05\x41ggId\x12\x0c\n\x04year\x18\x01 \x01(\x05\x12\r\n\x05month\x18\x02 \x01(\x05\x12\x0b\n\x03\x64\x61y\x18\x03 \x01(\x05\x12\x0c\n\x04hour\x18\x04 \x01(\x05\x12\x0e\n\x06minute\x18\x05 \x01(\x05\"\x85\x01\n\x11\x41ggregationCandle\x12\x12\n\x02id\x18\x01 \x01(\x0b\x32\x06.AggId\x12\r\n\x05\x61sset\x18\x02 \x01(\t\x12\x12\n\nresolution\x18\x03 \x01(\t\x12\n\n\x02pv\x18\x04 \x01(\x03\x12\n\n\x02nv\x18\x05 \x01(\x03\x12\n\n\x02ps\x18\x06 \x01(\x01\x12\n\n\x02ns\x18\x07 \x01(\x01\x12\t\n\x01\x61\x18\x08 \x01(\x01\"\xa0\x02\n\x0bPublicModel\x12\n\n\x02id\x18\x01 \x01(\t\x12\r\n\x05title\x18\x02 \x01(\t\x12\x0f\n\x07\x63ontent\x18\x03 \x01(\t\x12,\n\x08pub_date\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12+\n\x07\x63reated\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0e\n\x06source\x18\x07 \x01(\t\x12\x0f\n\x07\x65xcerpt\x18\x08 \x01(\t\x12\x0e\n\x06videos\x18\t \x03(\t\x12\x0e\n\x06images\x18\n \x03(\t\x12\r\n\x05links\x18\x0b \x03(\t\x12\x0e\n\x06\x64omain\x18\x10 \x01(\t\x12*\n\nextensions\x18\x64 \x01(\x0b\x32\x16.PublicModelExtensions\"\'\n\x15PublicModelExtensions\x12\x0e\n\x06\x61ssets\x18\x01 \x03(\t*\x9a\x01\n\x0bNamedEntity\x12\x10\n\x0c\x41SSET_ENTITY\x10\x00\x12\x11\n\rPERSON_ENTITY\x10\x01\x12\x13\n\x0fLOCATION_ENTITY\x10\x02\x12\x12\n\x0e\x43OMPANY_ENTITY\x10\x03\x12\x13\n\x0f\x45XCHANGE_ENTITY\x10\x04\x12\x0f\n\x0bMISC_ENTITY\x10\x05\x12\x17\n\x13ORGANIZATION_ENTITY\x10\x06\x32y\n\rMessagesProxy\x12\x37\n\x14SubscribeBaseArticle\x12\r.AssetsFilter\x1a\x0c.PublicModel\"\x00\x30\x01\x12/\n\x10SubscribeArticle\x12\r.AssetsFilter\x1a\x08.Article\"\x00\x30\x01\x32:\n\x07\x44\x61taset\x12/\n\x06\x41ssets\x12\x16.google.protobuf.Empty\x1a\x0b.AssetItems\"\x00\x32~\n\x0cHistoricData\x12:\n\x14HistoricBaseArticles\x12\x10.HistoricRequest\x1a\x0c.PublicModel\"\x00\x30\x01\x12\x32\n\x10HistoricArticles\x12\x10.HistoricRequest\x1a\x08.Article\"\x00\x30\x01\x32\xc0\x02\n\nSentiments\x12L\n\x17HistoricSocialSentiment\x12\x19.SentimentHistoricRequest\x1a\x12.AggregationCandle\"\x00\x30\x01\x12J\n\x15HistoricNewsSentiment\x12\x19.SentimentHistoricRequest\x1a\x12.AggregationCandle\"\x00\x30\x01\x12L\n\x18SubscribeSocialSentiment\x12\x18.AggregationCandleFilter\x1a\x12.AggregationCandle\"\x00\x30\x01\x12J\n\x16SubscribeNewsSentiment\x12\x18.AggregationCandleFilter\x1a\x12.AggregationCandle\"\x00\x30\x01\x62\x06proto3') , dependencies=[google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,]) _NAMEDENTITY = _descriptor.EnumDescriptor( name='NamedEntity', full_name='NamedEntity', filename=None, file=DESCRIPTOR, values=[ _descriptor.EnumValueDescriptor( name='ASSET_ENTITY', index=0, number=0, serialized_options=None, type=None), _descriptor.EnumValueDescriptor( name='PERSON_ENTITY', index=1, number=1, serialized_options=None, type=None), _descriptor.EnumValueDescriptor( name='LOCATION_ENTITY', index=2, number=2, serialized_options=None, type=None), _descriptor.EnumValueDescriptor( name='COMPANY_ENTITY', index=3, number=3, serialized_options=None, type=None), _descriptor.EnumValueDescriptor( name='EXCHANGE_ENTITY', index=4, number=4, serialized_options=None, type=None), _descriptor.EnumValueDescriptor( name='MISC_ENTITY', index=5, number=5, serialized_options=None, type=None), _descriptor.EnumValueDescriptor( name='ORGANIZATION_ENTITY', index=6, number=6, serialized_options=None, type=None), ], containing_type=None, serialized_options=None, serialized_start=3801, serialized_end=3955, ) _sym_db.RegisterEnumDescriptor(_NAMEDENTITY) NamedEntity = enum_type_wrapper.EnumTypeWrapper(_NAMEDENTITY) ASSET_ENTITY = 0 PERSON_ENTITY = 1 LOCATION_ENTITY = 2 COMPANY_ENTITY = 3 EXCHANGE_ENTITY = 4 MISC_ENTITY = 5 ORGANIZATION_ENTITY = 6 _BASEMODEL = _descriptor.Descriptor( name='BaseModel', full_name='BaseModel', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='id', full_name='BaseModel.id', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='title', full_name='BaseModel.title', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='content', full_name='BaseModel.content', index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='crawler', full_name='BaseModel.crawler', index=3, number=4, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='pub_date', full_name='BaseModel.pub_date', index=4, number=5, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='created', full_name='BaseModel.created', index=5, number=6, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='source', full_name='BaseModel.source', index=6, number=7, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='excerpt', full_name='BaseModel.excerpt', index=7, number=8, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='videos', full_name='BaseModel.videos', index=8, number=9, type=9, cpp_type=9, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='images', full_name='BaseModel.images', index=9, number=10, type=9, cpp_type=9, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='links', full_name='BaseModel.links', index=10, number=11, type=9, cpp_type=9, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='author', full_name='BaseModel.author', index=11, number=12, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='lang', full_name='BaseModel.lang', index=12, number=13, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='weight', full_name='BaseModel.weight', index=13, number=14, type=1, cpp_type=5, label=1, has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='spam', full_name='BaseModel.spam', index=14, number=15, type=1, cpp_type=5, label=1, has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='domain', full_name='BaseModel.domain', index=15, number=16, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=78, serialized_end=397, ) _SENTIMENTMODEL = _descriptor.Descriptor( name='SentimentModel', full_name='SentimentModel', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='sentiment', full_name='SentimentModel.sentiment', index=0, number=1, type=1, cpp_type=5, label=1, has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='market_impact', full_name='SentimentModel.market_impact', index=1, number=2, type=1, cpp_type=5, label=1, has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='sentiment_replies', full_name='SentimentModel.sentiment_replies', index=2, number=3, type=1, cpp_type=5, label=1, has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=399, serialized_end=484, ) _CRYPTOPANICENTRYSOURCE = _descriptor.Descriptor( name='CryptopanicEntrySource', full_name='CryptopanicEntrySource', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='title', full_name='CryptopanicEntrySource.title', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='region', full_name='CryptopanicEntrySource.region', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='domain', full_name='CryptopanicEntrySource.domain', index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='path', full_name='CryptopanicEntrySource.path', index=3, number=4, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=486, serialized_end=571, ) _CRYPTOPANICENTRYVOTES = _descriptor.Descriptor( name='CryptopanicEntryVotes', full_name='CryptopanicEntryVotes', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='negative', full_name='CryptopanicEntryVotes.negative', index=0, number=1, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='positive', full_name='CryptopanicEntryVotes.positive', index=1, number=2, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='important', full_name='CryptopanicEntryVotes.important', index=2, number=3, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='liked', full_name='CryptopanicEntryVotes.liked', index=3, number=4, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='disliked', full_name='CryptopanicEntryVotes.disliked', index=4, number=5, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='lol', full_name='CryptopanicEntryVotes.lol', index=5, number=6, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='toxic', full_name='CryptopanicEntryVotes.toxic', index=6, number=7, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='saved', full_name='CryptopanicEntryVotes.saved', index=7, number=8, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=574, serialized_end=728, ) _CRYPTOPANICENTRYMETADATA = _descriptor.Descriptor( name='CryptopanicEntryMetadata', full_name='CryptopanicEntryMetadata', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='message', full_name='CryptopanicEntryMetadata.message', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='description', full_name='CryptopanicEntryMetadata.description', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=730, serialized_end=794, ) _CRYPTOPANICRAWENTRY = _descriptor.Descriptor( name='CryptopanicRawEntry', full_name='CryptopanicRawEntry', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='kind', full_name='CryptopanicRawEntry.kind', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='domain', full_name='CryptopanicRawEntry.domain', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='source', full_name='CryptopanicRawEntry.source', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='title', full_name='CryptopanicRawEntry.title', index=3, number=4, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='published_at', full_name='CryptopanicRawEntry.published_at', index=4, number=5, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='slug', full_name='CryptopanicRawEntry.slug', index=5, number=6, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='id', full_name='CryptopanicRawEntry.id', index=6, number=7, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='url', full_name='CryptopanicRawEntry.url', index=7, number=8, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='created_at', full_name='CryptopanicRawEntry.created_at', index=8, number=9, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='votes', full_name='CryptopanicRawEntry.votes', index=9, number=10, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='metadata', full_name='CryptopanicRawEntry.metadata', index=10, number=11, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=797, serialized_end=1069, ) _CRYPTOPANICFEED = _descriptor.Descriptor( name='CryptopanicFeed', full_name='CryptopanicFeed', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='count', full_name='CryptopanicFeed.count', index=0, number=1, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='results', full_name='CryptopanicFeed.results', index=1, number=2, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=1071, serialized_end=1142, ) _CRYPTOPANICPOST = _descriptor.Descriptor( name='CryptopanicPost', full_name='CryptopanicPost', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='cryptopanic_raw_entry', full_name='CryptopanicPost.cryptopanic_raw_entry', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='article', full_name='CryptopanicPost.article', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=1144, serialized_end=1241, ) _NAMEDENTITYOCCURRENCE = _descriptor.Descriptor( name='NamedEntityOccurrence', full_name='NamedEntityOccurrence', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='label', full_name='NamedEntityOccurrence.label', index=0, number=1, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='start', full_name='NamedEntityOccurrence.start', index=1, number=2, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='end', full_name='NamedEntityOccurrence.end', index=2, number=3, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='text', full_name='NamedEntityOccurrence.text', index=3, number=4, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=1243, serialized_end=1337, ) _NAMEDENTITIESMODEL_ASSETMENTIONSENTRY = _descriptor.Descriptor( name='AssetMentionsEntry', full_name='NamedEntitiesModel.AssetMentionsEntry', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='key', full_name='NamedEntitiesModel.AssetMentionsEntry.key', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='value', full_name='NamedEntitiesModel.AssetMentionsEntry.value', index=1, number=2, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=_b('8\001'), is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=1773, serialized_end=1825, ) _NAMEDENTITIESMODEL = _descriptor.Descriptor( name='NamedEntitiesModel', full_name='NamedEntitiesModel', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='symbols', full_name='NamedEntitiesModel.symbols', index=0, number=1, type=9, cpp_type=9, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='assets', full_name='NamedEntitiesModel.assets', index=1, number=2, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='persons', full_name='NamedEntitiesModel.persons', index=2, number=3, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='companies', full_name='NamedEntitiesModel.companies', index=3, number=4, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='organizations', full_name='NamedEntitiesModel.organizations', index=4, number=5, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='locations', full_name='NamedEntitiesModel.locations', index=5, number=6, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='exchanges', full_name='NamedEntitiesModel.exchanges', index=6, number=7, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='misc', full_name='NamedEntitiesModel.misc', index=7, number=8, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='tags', full_name='NamedEntitiesModel.tags', index=8, number=9, type=9, cpp_type=9, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='asset_mentions', full_name='NamedEntitiesModel.asset_mentions', index=9, number=10, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='source_text', full_name='NamedEntitiesModel.source_text', index=10, number=11, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[_NAMEDENTITIESMODEL_ASSETMENTIONSENTRY, ], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=1340, serialized_end=1825, ) _ARTICLE = _descriptor.Descriptor( name='Article', full_name='Article', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='base', full_name='Article.base', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='sentiment', full_name='Article.sentiment', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='named_entities', full_name='Article.named_entities', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='title_data', full_name='Article.title_data', index=3, number=4, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=1828, serialized_end=1985, ) _USERMESSAGE = _descriptor.Descriptor( name='UserMessage', full_name='UserMessage', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='base', full_name='UserMessage.base', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='sentiment', full_name='UserMessage.sentiment', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='named_entities', full_name='UserMessage.named_entities', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='user', full_name='UserMessage.user', index=3, number=4, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='message', full_name='UserMessage.message', index=4, number=5, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=1988, serialized_end=2139, ) _SENTIMENTCANDLE = _descriptor.Descriptor( name='SentimentCandle', full_name='SentimentCandle', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='id', full_name='SentimentCandle.id', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='start_time', full_name='SentimentCandle.start_time', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='resolution', full_name='SentimentCandle.resolution', index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='asset', full_name='SentimentCandle.asset', index=3, number=4, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='negative_sum', full_name='SentimentCandle.negative_sum', index=4, number=5, type=1, cpp_type=5, label=1, has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='negative_count', full_name='SentimentCandle.negative_count', index=5, number=6, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='positive_sum', full_name='SentimentCandle.positive_sum', index=6, number=7, type=1, cpp_type=5, label=1, has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='positive_count', full_name='SentimentCandle.positive_count', index=7, number=8, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='sentiment_avg', full_name='SentimentCandle.sentiment_avg', index=8, number=9, type=1, cpp_type=5, label=1, has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='open_sentiment_average', full_name='SentimentCandle.open_sentiment_average', index=9, number=10, type=1, cpp_type=5, label=1, has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='high_sentiment_average', full_name='SentimentCandle.high_sentiment_average', index=10, number=11, type=1, cpp_type=5, label=1, has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='low_sentiment_average', full_name='SentimentCandle.low_sentiment_average', index=11, number=12, type=1, cpp_type=5, label=1, has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='close_sentiment_average', full_name='SentimentCandle.close_sentiment_average', index=12, number=13, type=1, cpp_type=5, label=1, has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='updated', full_name='SentimentCandle.updated', index=13, number=14, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=2142, serialized_end=2514, ) _ASSETSFILTER = _descriptor.Descriptor( name='AssetsFilter', full_name='AssetsFilter', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='assets', full_name='AssetsFilter.assets', index=0, number=4, type=9, cpp_type=9, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='all_assets', full_name='AssetsFilter.all_assets', index=1, number=5, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=2516, serialized_end=2566, ) _AGGREGATIONCANDLEFILTER = _descriptor.Descriptor( name='AggregationCandleFilter', full_name='AggregationCandleFilter', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='resolution', full_name='AggregationCandleFilter.resolution', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='assets_filter', full_name='AggregationCandleFilter.assets_filter', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=2568, serialized_end=2651, ) _SENTIMENTHISTORICREQUEST = _descriptor.Descriptor( name='SentimentHistoricRequest', full_name='SentimentHistoricRequest', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='from', full_name='SentimentHistoricRequest.from', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='to', full_name='SentimentHistoricRequest.to', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='resolution', full_name='SentimentHistoricRequest.resolution', index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='asset', full_name='SentimentHistoricRequest.asset', index=3, number=4, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=2654, serialized_end=2797, ) _HISTORICREQUEST = _descriptor.Descriptor( name='HistoricRequest', full_name='HistoricRequest', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='from', full_name='HistoricRequest.from', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='to', full_name='HistoricRequest.to', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='filter', full_name='HistoricRequest.filter', index=2, number=4, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=2800, serialized_end=2930, ) _ASSET = _descriptor.Descriptor( name='Asset', full_name='Asset', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='name', full_name='Asset.name', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='symbol', full_name='Asset.symbol', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='code', full_name='Asset.code', index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=2932, serialized_end=2983, ) _ASSETITEMS = _descriptor.Descriptor( name='AssetItems', full_name='AssetItems', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='assets', full_name='AssetItems.assets', index=0, number=1, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=2985, serialized_end=3021, ) _TRANSACTION = _descriptor.Descriptor( name='Transaction', full_name='Transaction', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='id', full_name='Transaction.id', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='hash', full_name='Transaction.hash', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='from_address', full_name='Transaction.from_address', index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='to_address', full_name='Transaction.to_address', index=3, number=4, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='from_owner', full_name='Transaction.from_owner', index=4, number=5, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='to_owner', full_name='Transaction.to_owner', index=5, number=6, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='time', full_name='Transaction.time', index=6, number=7, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='comment', full_name='Transaction.comment', index=7, number=8, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='asset', full_name='Transaction.asset', index=8, number=9, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='size', full_name='Transaction.size', index=9, number=10, type=1, cpp_type=5, label=1, has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='USD_size', full_name='Transaction.USD_size', index=10, number=11, type=1, cpp_type=5, label=1, has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=3024, serialized_end=3249, ) _AGGID = _descriptor.Descriptor( name='AggId', full_name='AggId', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='year', full_name='AggId.year', index=0, number=1, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='month', full_name='AggId.month', index=1, number=2, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='day', full_name='AggId.day', index=2, number=3, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='hour', full_name='AggId.hour', index=3, number=4, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='minute', full_name='AggId.minute', index=4, number=5, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=3251, serialized_end=3330, ) _AGGREGATIONCANDLE = _descriptor.Descriptor( name='AggregationCandle', full_name='AggregationCandle', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='id', full_name='AggregationCandle.id', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='asset', full_name='AggregationCandle.asset', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='resolution', full_name='AggregationCandle.resolution', index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='pv', full_name='AggregationCandle.pv', index=3, number=4, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='nv', full_name='AggregationCandle.nv', index=4, number=5, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='ps', full_name='AggregationCandle.ps', index=5, number=6, type=1, cpp_type=5, label=1, has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='ns', full_name='AggregationCandle.ns', index=6, number=7, type=1, cpp_type=5, label=1, has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='a', full_name='AggregationCandle.a', index=7, number=8, type=1, cpp_type=5, label=1, has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=3333, serialized_end=3466, ) _PUBLICMODEL = _descriptor.Descriptor( name='PublicModel', full_name='PublicModel', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='id', full_name='PublicModel.id', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='title', full_name='PublicModel.title', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='content', full_name='PublicModel.content', index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='pub_date', full_name='PublicModel.pub_date', index=3, number=5, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='created', full_name='PublicModel.created', index=4, number=6, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='source', full_name='PublicModel.source', index=5, number=7, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='excerpt', full_name='PublicModel.excerpt', index=6, number=8, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='videos', full_name='PublicModel.videos', index=7, number=9, type=9, cpp_type=9, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='images', full_name='PublicModel.images', index=8, number=10, type=9, cpp_type=9, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='links', full_name='PublicModel.links', index=9, number=11, type=9, cpp_type=9, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='domain', full_name='PublicModel.domain', index=10, number=16, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='extensions', full_name='PublicModel.extensions', index=11, number=100, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=3469, serialized_end=3757, ) _PUBLICMODELEXTENSIONS = _descriptor.Descriptor( name='PublicModelExtensions', full_name='PublicModelExtensions', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='assets', full_name='PublicModelExtensions.assets', index=0, number=1, type=9, cpp_type=9, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=3759, serialized_end=3798, ) _BASEMODEL.fields_by_name['pub_date'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP _BASEMODEL.fields_by_name['created'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP _CRYPTOPANICRAWENTRY.fields_by_name['source'].message_type = _CRYPTOPANICENTRYSOURCE _CRYPTOPANICRAWENTRY.fields_by_name['votes'].message_type = _CRYPTOPANICENTRYVOTES _CRYPTOPANICRAWENTRY.fields_by_name['metadata'].message_type = _CRYPTOPANICENTRYMETADATA _CRYPTOPANICFEED.fields_by_name['results'].message_type = _CRYPTOPANICRAWENTRY _CRYPTOPANICPOST.fields_by_name['cryptopanic_raw_entry'].message_type = _CRYPTOPANICRAWENTRY _CRYPTOPANICPOST.fields_by_name['article'].message_type = _ARTICLE _NAMEDENTITYOCCURRENCE.fields_by_name['label'].enum_type = _NAMEDENTITY _NAMEDENTITIESMODEL_ASSETMENTIONSENTRY.containing_type = _NAMEDENTITIESMODEL _NAMEDENTITIESMODEL.fields_by_name['assets'].message_type = _NAMEDENTITYOCCURRENCE _NAMEDENTITIESMODEL.fields_by_name['persons'].message_type = _NAMEDENTITYOCCURRENCE _NAMEDENTITIESMODEL.fields_by_name['companies'].message_type = _NAMEDENTITYOCCURRENCE _NAMEDENTITIESMODEL.fields_by_name['organizations'].message_type = _NAMEDENTITYOCCURRENCE _NAMEDENTITIESMODEL.fields_by_name['locations'].message_type = _NAMEDENTITYOCCURRENCE _NAMEDENTITIESMODEL.fields_by_name['exchanges'].message_type = _NAMEDENTITYOCCURRENCE _NAMEDENTITIESMODEL.fields_by_name['misc'].message_type = _NAMEDENTITYOCCURRENCE _NAMEDENTITIESMODEL.fields_by_name['asset_mentions'].message_type = _NAMEDENTITIESMODEL_ASSETMENTIONSENTRY _ARTICLE.fields_by_name['base'].message_type = _BASEMODEL _ARTICLE.fields_by_name['sentiment'].message_type = _SENTIMENTMODEL _ARTICLE.fields_by_name['named_entities'].message_type = _NAMEDENTITIESMODEL _ARTICLE.fields_by_name['title_data'].message_type = _NAMEDENTITIESMODEL _USERMESSAGE.fields_by_name['base'].message_type = _BASEMODEL _USERMESSAGE.fields_by_name['sentiment'].message_type = _SENTIMENTMODEL _USERMESSAGE.fields_by_name['named_entities'].message_type = _NAMEDENTITIESMODEL _SENTIMENTCANDLE.fields_by_name['start_time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP _AGGREGATIONCANDLEFILTER.fields_by_name['assets_filter'].message_type = _ASSETSFILTER _SENTIMENTHISTORICREQUEST.fields_by_name['from'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP _SENTIMENTHISTORICREQUEST.fields_by_name['to'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP _HISTORICREQUEST.fields_by_name['from'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP _HISTORICREQUEST.fields_by_name['to'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP _HISTORICREQUEST.fields_by_name['filter'].message_type = _ASSETSFILTER _ASSETITEMS.fields_by_name['assets'].message_type = _ASSET _TRANSACTION.fields_by_name['time'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP _AGGREGATIONCANDLE.fields_by_name['id'].message_type = _AGGID _PUBLICMODEL.fields_by_name['pub_date'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP _PUBLICMODEL.fields_by_name['created'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP _PUBLICMODEL.fields_by_name['extensions'].message_type = _PUBLICMODELEXTENSIONS DESCRIPTOR.message_types_by_name['BaseModel'] = _BASEMODEL DESCRIPTOR.message_types_by_name['SentimentModel'] = _SENTIMENTMODEL DESCRIPTOR.message_types_by_name['CryptopanicEntrySource'] = _CRYPTOPANICENTRYSOURCE DESCRIPTOR.message_types_by_name['CryptopanicEntryVotes'] = _CRYPTOPANICENTRYVOTES DESCRIPTOR.message_types_by_name['CryptopanicEntryMetadata'] = _CRYPTOPANICENTRYMETADATA DESCRIPTOR.message_types_by_name['CryptopanicRawEntry'] = _CRYPTOPANICRAWENTRY DESCRIPTOR.message_types_by_name['CryptopanicFeed'] = _CRYPTOPANICFEED DESCRIPTOR.message_types_by_name['CryptopanicPost'] = _CRYPTOPANICPOST DESCRIPTOR.message_types_by_name['NamedEntityOccurrence'] = _NAMEDENTITYOCCURRENCE DESCRIPTOR.message_types_by_name['NamedEntitiesModel'] = _NAMEDENTITIESMODEL DESCRIPTOR.message_types_by_name['Article'] = _ARTICLE DESCRIPTOR.message_types_by_name['UserMessage'] = _USERMESSAGE DESCRIPTOR.message_types_by_name['SentimentCandle'] = _SENTIMENTCANDLE DESCRIPTOR.message_types_by_name['AssetsFilter'] = _ASSETSFILTER DESCRIPTOR.message_types_by_name['AggregationCandleFilter'] = _AGGREGATIONCANDLEFILTER DESCRIPTOR.message_types_by_name['SentimentHistoricRequest'] = _SENTIMENTHISTORICREQUEST DESCRIPTOR.message_types_by_name['HistoricRequest'] = _HISTORICREQUEST DESCRIPTOR.message_types_by_name['Asset'] = _ASSET DESCRIPTOR.message_types_by_name['AssetItems'] = _ASSETITEMS DESCRIPTOR.message_types_by_name['Transaction'] = _TRANSACTION DESCRIPTOR.message_types_by_name['AggId'] = _AGGID DESCRIPTOR.message_types_by_name['AggregationCandle'] = _AGGREGATIONCANDLE DESCRIPTOR.message_types_by_name['PublicModel'] = _PUBLICMODEL DESCRIPTOR.message_types_by_name['PublicModelExtensions'] = _PUBLICMODELEXTENSIONS DESCRIPTOR.enum_types_by_name['NamedEntity'] = _NAMEDENTITY _sym_db.RegisterFileDescriptor(DESCRIPTOR) BaseModel = _reflection.GeneratedProtocolMessageType('BaseModel', (_message.Message,), { 'DESCRIPTOR' : _BASEMODEL, '__module__' : 'types_pb2' # @@protoc_insertion_point(class_scope:BaseModel) }) _sym_db.RegisterMessage(BaseModel) SentimentModel = _reflection.GeneratedProtocolMessageType('SentimentModel', (_message.Message,), { 'DESCRIPTOR' : _SENTIMENTMODEL, '__module__' : 'types_pb2' # @@protoc_insertion_point(class_scope:SentimentModel) }) _sym_db.RegisterMessage(SentimentModel) CryptopanicEntrySource = _reflection.GeneratedProtocolMessageType('CryptopanicEntrySource', (_message.Message,), { 'DESCRIPTOR' : _CRYPTOPANICENTRYSOURCE, '__module__' : 'types_pb2' # @@protoc_insertion_point(class_scope:CryptopanicEntrySource) }) _sym_db.RegisterMessage(CryptopanicEntrySource) CryptopanicEntryVotes = _reflection.GeneratedProtocolMessageType('CryptopanicEntryVotes', (_message.Message,), { 'DESCRIPTOR' : _CRYPTOPANICENTRYVOTES, '__module__' : 'types_pb2' # @@protoc_insertion_point(class_scope:CryptopanicEntryVotes) }) _sym_db.RegisterMessage(CryptopanicEntryVotes) CryptopanicEntryMetadata = _reflection.GeneratedProtocolMessageType('CryptopanicEntryMetadata', (_message.Message,), { 'DESCRIPTOR' : _CRYPTOPANICENTRYMETADATA, '__module__' : 'types_pb2' # @@protoc_insertion_point(class_scope:CryptopanicEntryMetadata) }) _sym_db.RegisterMessage(CryptopanicEntryMetadata) CryptopanicRawEntry = _reflection.GeneratedProtocolMessageType('CryptopanicRawEntry', (_message.Message,), { 'DESCRIPTOR' : _CRYPTOPANICRAWENTRY, '__module__' : 'types_pb2' # @@protoc_insertion_point(class_scope:CryptopanicRawEntry) }) _sym_db.RegisterMessage(CryptopanicRawEntry) CryptopanicFeed = _reflection.GeneratedProtocolMessageType('CryptopanicFeed', (_message.Message,), { 'DESCRIPTOR' : _CRYPTOPANICFEED, '__module__' : 'types_pb2' # @@protoc_insertion_point(class_scope:CryptopanicFeed) }) _sym_db.RegisterMessage(CryptopanicFeed) CryptopanicPost = _reflection.GeneratedProtocolMessageType('CryptopanicPost', (_message.Message,), { 'DESCRIPTOR' : _CRYPTOPANICPOST, '__module__' : 'types_pb2' # @@protoc_insertion_point(class_scope:CryptopanicPost) }) _sym_db.RegisterMessage(CryptopanicPost) NamedEntityOccurrence = _reflection.GeneratedProtocolMessageType('NamedEntityOccurrence', (_message.Message,), { 'DESCRIPTOR' : _NAMEDENTITYOCCURRENCE, '__module__' : 'types_pb2' # @@protoc_insertion_point(class_scope:NamedEntityOccurrence) }) _sym_db.RegisterMessage(NamedEntityOccurrence) NamedEntitiesModel = _reflection.GeneratedProtocolMessageType('NamedEntitiesModel', (_message.Message,), { 'AssetMentionsEntry' : _reflection.GeneratedProtocolMessageType('AssetMentionsEntry', (_message.Message,), { 'DESCRIPTOR' : _NAMEDENTITIESMODEL_ASSETMENTIONSENTRY, '__module__' : 'types_pb2' # @@protoc_insertion_point(class_scope:NamedEntitiesModel.AssetMentionsEntry) }) , 'DESCRIPTOR' : _NAMEDENTITIESMODEL, '__module__' : 'types_pb2' # @@protoc_insertion_point(class_scope:NamedEntitiesModel) }) _sym_db.RegisterMessage(NamedEntitiesModel) _sym_db.RegisterMessage(NamedEntitiesModel.AssetMentionsEntry) Article = _reflection.GeneratedProtocolMessageType('Article', (_message.Message,), { 'DESCRIPTOR' : _ARTICLE, '__module__' : 'types_pb2' # @@protoc_insertion_point(class_scope:Article) }) _sym_db.RegisterMessage(Article) UserMessage = _reflection.GeneratedProtocolMessageType('UserMessage', (_message.Message,), { 'DESCRIPTOR' : _USERMESSAGE, '__module__' : 'types_pb2' # @@protoc_insertion_point(class_scope:UserMessage) }) _sym_db.RegisterMessage(UserMessage) SentimentCandle = _reflection.GeneratedProtocolMessageType('SentimentCandle', (_message.Message,), { 'DESCRIPTOR' : _SENTIMENTCANDLE, '__module__' : 'types_pb2' # @@protoc_insertion_point(class_scope:SentimentCandle) }) _sym_db.RegisterMessage(SentimentCandle) AssetsFilter = _reflection.GeneratedProtocolMessageType('AssetsFilter', (_message.Message,), { 'DESCRIPTOR' : _ASSETSFILTER, '__module__' : 'types_pb2' # @@protoc_insertion_point(class_scope:AssetsFilter) }) _sym_db.RegisterMessage(AssetsFilter) AggregationCandleFilter = _reflection.GeneratedProtocolMessageType('AggregationCandleFilter', (_message.Message,), { 'DESCRIPTOR' : _AGGREGATIONCANDLEFILTER, '__module__' : 'types_pb2' # @@protoc_insertion_point(class_scope:AggregationCandleFilter) }) _sym_db.RegisterMessage(AggregationCandleFilter) SentimentHistoricRequest = _reflection.GeneratedProtocolMessageType('SentimentHistoricRequest', (_message.Message,), { 'DESCRIPTOR' : _SENTIMENTHISTORICREQUEST, '__module__' : 'types_pb2' # @@protoc_insertion_point(class_scope:SentimentHistoricRequest) }) _sym_db.RegisterMessage(SentimentHistoricRequest) HistoricRequest = _reflection.GeneratedProtocolMessageType('HistoricRequest', (_message.Message,), { 'DESCRIPTOR' : _HISTORICREQUEST, '__module__' : 'types_pb2' # @@protoc_insertion_point(class_scope:HistoricRequest) }) _sym_db.RegisterMessage(HistoricRequest) Asset = _reflection.GeneratedProtocolMessageType('Asset', (_message.Message,), { 'DESCRIPTOR' : _ASSET, '__module__' : 'types_pb2' # @@protoc_insertion_point(class_scope:Asset) }) _sym_db.RegisterMessage(Asset) AssetItems = _reflection.GeneratedProtocolMessageType('AssetItems', (_message.Message,), { 'DESCRIPTOR' : _ASSETITEMS, '__module__' : 'types_pb2' # @@protoc_insertion_point(class_scope:AssetItems) }) _sym_db.RegisterMessage(AssetItems) Transaction = _reflection.GeneratedProtocolMessageType('Transaction', (_message.Message,), { 'DESCRIPTOR' : _TRANSACTION, '__module__' : 'types_pb2' # @@protoc_insertion_point(class_scope:Transaction) }) _sym_db.RegisterMessage(Transaction) AggId = _reflection.GeneratedProtocolMessageType('AggId', (_message.Message,), { 'DESCRIPTOR' : _AGGID, '__module__' : 'types_pb2' # @@protoc_insertion_point(class_scope:AggId) }) _sym_db.RegisterMessage(AggId) AggregationCandle = _reflection.GeneratedProtocolMessageType('AggregationCandle', (_message.Message,), { 'DESCRIPTOR' : _AGGREGATIONCANDLE, '__module__' : 'types_pb2' # @@protoc_insertion_point(class_scope:AggregationCandle) }) _sym_db.RegisterMessage(AggregationCandle) PublicModel = _reflection.GeneratedProtocolMessageType('PublicModel', (_message.Message,), { 'DESCRIPTOR' : _PUBLICMODEL, '__module__' : 'types_pb2' # @@protoc_insertion_point(class_scope:PublicModel) }) _sym_db.RegisterMessage(PublicModel) PublicModelExtensions = _reflection.GeneratedProtocolMessageType('PublicModelExtensions', (_message.Message,), { 'DESCRIPTOR' : _PUBLICMODELEXTENSIONS, '__module__' : 'types_pb2' # @@protoc_insertion_point(class_scope:PublicModelExtensions) }) _sym_db.RegisterMessage(PublicModelExtensions) _NAMEDENTITIESMODEL_ASSETMENTIONSENTRY._options = None _MESSAGESPROXY = _descriptor.ServiceDescriptor( name='MessagesProxy', full_name='MessagesProxy', file=DESCRIPTOR, index=0, serialized_options=None, serialized_start=3957, serialized_end=4078, methods=[ _descriptor.MethodDescriptor( name='SubscribeBaseArticle', full_name='MessagesProxy.SubscribeBaseArticle', index=0, containing_service=None, input_type=_ASSETSFILTER, output_type=_PUBLICMODEL, serialized_options=None, ), _descriptor.MethodDescriptor( name='SubscribeArticle', full_name='MessagesProxy.SubscribeArticle', index=1, containing_service=None, input_type=_ASSETSFILTER, output_type=_ARTICLE, serialized_options=None, ), ]) _sym_db.RegisterServiceDescriptor(_MESSAGESPROXY) DESCRIPTOR.services_by_name['MessagesProxy'] = _MESSAGESPROXY _DATASET = _descriptor.ServiceDescriptor( name='Dataset', full_name='Dataset', file=DESCRIPTOR, index=1, serialized_options=None, serialized_start=4080, serialized_end=4138, methods=[ _descriptor.MethodDescriptor( name='Assets', full_name='Dataset.Assets', index=0, containing_service=None, input_type=google_dot_protobuf_dot_empty__pb2._EMPTY, output_type=_ASSETITEMS, serialized_options=None, ), ]) _sym_db.RegisterServiceDescriptor(_DATASET) DESCRIPTOR.services_by_name['Dataset'] = _DATASET _HISTORICDATA = _descriptor.ServiceDescriptor( name='HistoricData', full_name='HistoricData', file=DESCRIPTOR, index=2, serialized_options=None, serialized_start=4140, serialized_end=4266, methods=[ _descriptor.MethodDescriptor( name='HistoricBaseArticles', full_name='HistoricData.HistoricBaseArticles', index=0, containing_service=None, input_type=_HISTORICREQUEST, output_type=_PUBLICMODEL, serialized_options=None, ), _descriptor.MethodDescriptor( name='HistoricArticles', full_name='HistoricData.HistoricArticles', index=1, containing_service=None, input_type=_HISTORICREQUEST, output_type=_ARTICLE, serialized_options=None, ), ]) _sym_db.RegisterServiceDescriptor(_HISTORICDATA) DESCRIPTOR.services_by_name['HistoricData'] = _HISTORICDATA _SENTIMENTS = _descriptor.ServiceDescriptor( name='Sentiments', full_name='Sentiments', file=DESCRIPTOR, index=3, serialized_options=None, serialized_start=4269, serialized_end=4589, methods=[ _descriptor.MethodDescriptor( name='HistoricSocialSentiment', full_name='Sentiments.HistoricSocialSentiment', index=0, containing_service=None, input_type=_SENTIMENTHISTORICREQUEST, output_type=_AGGREGATIONCANDLE, serialized_options=None, ), _descriptor.MethodDescriptor( name='HistoricNewsSentiment', full_name='Sentiments.HistoricNewsSentiment', index=1, containing_service=None, input_type=_SENTIMENTHISTORICREQUEST, output_type=_AGGREGATIONCANDLE, serialized_options=None, ), _descriptor.MethodDescriptor( name='SubscribeSocialSentiment', full_name='Sentiments.SubscribeSocialSentiment', index=2, containing_service=None, input_type=_AGGREGATIONCANDLEFILTER, output_type=_AGGREGATIONCANDLE, serialized_options=None, ), _descriptor.MethodDescriptor( name='SubscribeNewsSentiment', full_name='Sentiments.SubscribeNewsSentiment', index=3, containing_service=None, input_type=_AGGREGATIONCANDLEFILTER, output_type=_AGGREGATIONCANDLE, serialized_options=None, ), ]) _sym_db.RegisterServiceDescriptor(_SENTIMENTS) DESCRIPTOR.services_by_name['Sentiments'] = _SENTIMENTS # @@protoc_insertion_point(module_scope)
42.717498
8,394
0.741293
10,925
87,400
5.653272
0.048055
0.058677
0.063243
0.050225
0.708251
0.671351
0.663029
0.642482
0.613452
0.60045
0
0.044109
0.131018
87,400
2,045
8,395
42.738386
0.769095
0.017712
0
0.71205
1
0.00626
0.163655
0.109181
0
0
0
0
0
1
0
false
0
0.005216
0
0.005216
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
1
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
1f535d0217a4bac3d0dfd721f940b66d8f8aa966
1,218
py
Python
wallet/denomination/migrations/0002_entry.py
tateishi/django-wallet
9d9e450ca3cd43fa33ce4bd997e129fed99ea66b
[ "MIT" ]
null
null
null
wallet/denomination/migrations/0002_entry.py
tateishi/django-wallet
9d9e450ca3cd43fa33ce4bd997e129fed99ea66b
[ "MIT" ]
null
null
null
wallet/denomination/migrations/0002_entry.py
tateishi/django-wallet
9d9e450ca3cd43fa33ce4bd997e129fed99ea66b
[ "MIT" ]
null
null
null
# Generated by Django 3.2.4 on 2021-06-23 03:05 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('denomination', '0001_initial'), ] operations = [ migrations.CreateModel( name='Entry', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('date', models.DateField()), ('y10k', models.IntegerField(default=0)), ('y5k', models.IntegerField(default=0)), ('y2k', models.IntegerField(default=0)), ('y1k', models.IntegerField(default=0)), ('y500', models.IntegerField(default=0)), ('y100', models.IntegerField(default=0)), ('y50', models.IntegerField(default=0)), ('y10', models.IntegerField(default=0)), ('y5', models.IntegerField(default=0)), ('y1', models.IntegerField(default=0)), ('wallet', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='denomination.wallet')), ], ), ]
36.909091
117
0.558292
117
1,218
5.769231
0.504274
0.266667
0.37037
0.385185
0
0
0
0
0
0
0
0.053057
0.288177
1,218
32
118
38.0625
0.72549
0.036946
0
0
1
0
0.079419
0
0
0
0
0
0
1
0
false
0
0.076923
0
0.192308
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
2f097469b72b7db2c0bf9aa6b65a20eabcf2e980
284
py
Python
Solutions/listOfMultiplies.py
lusifer65/Python-Thunder
4653c55b0a6cdee36ae2d0c128932cf352324e23
[ "MIT" ]
81
2020-09-25T15:02:11.000Z
2020-10-12T14:20:31.000Z
Solutions/listOfMultiplies.py
lusifer65/Python-Thunder
4653c55b0a6cdee36ae2d0c128932cf352324e23
[ "MIT" ]
196
2020-09-25T13:52:13.000Z
2020-10-12T20:20:00.000Z
Solutions/listOfMultiplies.py
lusifer65/Python-Thunder
4653c55b0a6cdee36ae2d0c128932cf352324e23
[ "MIT" ]
209
2020-09-25T16:15:46.000Z
2020-10-12T20:08:08.000Z
def list_of_multiples (num, length): return [i*num for i in range(1,length+1)] #Problem statement: Create a function that takes two numbers as arguments (num, length) and returns a list of multiples of num up to length. #Problem Link: https://edabit.com/challenge/BuwHwPvt92yw574zB
47.333333
140
0.774648
47
284
4.638298
0.702128
0.055046
0.137615
0
0
0
0
0
0
0
0
0.028571
0.137324
284
5
141
56.8
0.861224
0.700704
0
0
0
0
0
0
0
0
0
0
0
1
0.5
false
0
0
0.5
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
2f362ccb26ac3ab4d775625124e3e65f1e0b8c3e
17,320
py
Python
src/tests/unit/platform/test_grants.py
fslds/carbon-black-cloud-sdk-python
248a3c63d6b36d6fcdbcb3f51fb7751f062ed372
[ "MIT" ]
24
2020-10-16T22:07:38.000Z
2022-03-24T14:58:03.000Z
src/tests/unit/platform/test_grants.py
fslds/carbon-black-cloud-sdk-python
248a3c63d6b36d6fcdbcb3f51fb7751f062ed372
[ "MIT" ]
63
2020-10-26T18:26:15.000Z
2022-03-31T17:31:02.000Z
src/tests/unit/platform/test_grants.py
fslds/carbon-black-cloud-sdk-python
248a3c63d6b36d6fcdbcb3f51fb7751f062ed372
[ "MIT" ]
10
2020-11-09T11:54:23.000Z
2022-03-24T20:44:00.000Z
"""Tests for the Grant and Profile objects of the CBC SDK""" import pytest import logging import copy from cbc_sdk.platform import Grant from cbc_sdk.rest_api import CBCloudAPI from cbc_sdk.errors import ApiError, NonQueryableModel from tests.unit.fixtures.CBCSDKMock import CBCSDKMock from tests.unit.fixtures.platform.mock_grants import (GET_GRANT_RESP, PUT_GRANT_RESP, POST_GRANT_RESP, POST_PROFILE_IN_GRANT_RESP, POST_PROFILE_IN_GRANT_RESP_2, PUT_PROFILE_RESP, DELETE_PROFILE_RESP, DELETE_GRANT_RESP, QUERY_GRANT_RESP, PERMITTED_ROLES_RESP) logging.basicConfig(format='%(asctime)s %(levelname)s:%(message)s', level=logging.DEBUG, filename='log.txt') @pytest.fixture(scope="function") def cb(): """Create CBCloudAPI singleton""" return CBCloudAPI(url="https://example.com", org_key="test", token="abcd/1234", ssl_verify=False) @pytest.fixture(scope="function") def cbcsdk_mock(monkeypatch, cb): """Mocks CBC SDK for unit tests""" return CBCSDKMock(monkeypatch, cb) # ==================================== UNIT TESTS BELOW ==================================== def test_get_and_set_grant(cbcsdk_mock): """Tests elementary loading and saving of a grant.""" cbcsdk_mock.mock_request('GET', '/access/v2/orgs/test/grants/psc:user:12345678:ABCDEFGH', GET_GRANT_RESP) cbcsdk_mock.mock_request('PUT', '/access/v2/orgs/test/grants/psc:user:12345678:ABCDEFGH', PUT_GRANT_RESP) api = cbcsdk_mock.api grant = api.select(Grant, 'psc:user:12345678:ABCDEFGH') assert grant.principal == 'psc:user:12345678:ABCDEFGH' assert grant.roles == ["psc:role::SECOPS_ROLE_MANAGER", "psc:role:test:APP_SERVICE_ROLE"] assert len(grant.profiles_) == 1 assert grant.org_ref == 'psc:org:test' profile = grant.profiles_[0] assert profile.profile_uuid == 'c57ba255-1736-4bfa-a59d-c54bb97a41d6' assert profile.orgs['allow'] == ["psc:org:test2"] assert profile.allowed_orgs == ["psc:org:test2"] assert profile.roles == ["psc:role::SECOPS_ROLE_MANAGER"] assert profile.matches_template({'roles': ["psc:role::SECOPS_ROLE_MANAGER"], 'orgs': {'allow': ["psc:org:test2"]}}) assert not profile.matches_template({'roles': ["psc:role::NONEXISTENT_ROLE"], 'orgs': {'allow': ["psc:org:test2"]}}) assert not profile.matches_template({'roles': ["psc:role::SECOPS_ROLE_MANAGER"], 'orgs': {'allow': ["psc:org:notexist"]}}) with pytest.raises(ApiError): profile.refresh() # these can't be refreshed grant.roles.append('psc:role:test:DUMMY_ROLE') profile.orgs['allow'].append('psc:org:test3') grant.touch() # force object to be "dirty" grant.save() assert grant.roles == ["psc:role::SECOPS_ROLE_MANAGER", "psc:role:test:APP_SERVICE_ROLE", 'psc:role:test:DUMMY_ROLE'] assert profile.orgs['allow'] == ["psc:org:test2", "psc:org:test3"] def test_create_new_grant(cbcsdk_mock): """Test creation of a grant and the profile within the grant.""" def respond_to_profile_grant(url, body, **kwargs): ret = copy.deepcopy(POST_PROFILE_IN_GRANT_RESP) ret['profile_uuid'] = body['profile_uuid'] return ret cbcsdk_mock.mock_request('POST', '/access/v2/orgs/test/grants', POST_GRANT_RESP) cbcsdk_mock.mock_request('POST', '/access/v2/orgs/test/grants/psc:user:ABC12345:DEF67890/profiles', respond_to_profile_grant) api = cbcsdk_mock.api grant_builder = Grant.create(api, org_key='ABC12345', userid='DEF67890') grant_builder.set_org('psc:org:test').set_roles(["psc:role::SECOPS_ROLE_MANAGER"]).set_principal_name('Doug Jones') profile = grant_builder.create_profile().add_org("test2").add_role("psc:role::SECOPS_ROLE_MANAGER").build() grant = grant_builder.build() assert grant.roles == ["psc:role::SECOPS_ROLE_MANAGER"] assert profile.orgs['allow'] == ["psc:org:test2"] def test_create_new_grant_alt1(cbcsdk_mock): """Test creation of a grant and the profile within the grant, using alternate strategies for the ProfileBuilder.""" def respond_to_profile_grant(url, body, **kwargs): ret = copy.deepcopy(POST_PROFILE_IN_GRANT_RESP) ret['profile_uuid'] = body['profile_uuid'] return ret cbcsdk_mock.mock_request('POST', '/access/v2/orgs/test/grants', POST_GRANT_RESP) cbcsdk_mock.mock_request('POST', '/access/v2/orgs/test/grants/psc:user:ABC12345:DEF67890/profiles', respond_to_profile_grant) api = cbcsdk_mock.api grant_builder = Grant.create(api, org_key='ABC12345', userid='DEF67890') grant_builder.set_org('test').add_role("psc:role::SECOPS_ROLE_MANAGER").set_principal_name('Doug Jones') profile_builder = grant_builder.create_profile().set_orgs(["test2"]).set_roles(["psc:role::SECOPS_ROLE_MANAGER"]) profile = profile_builder.set_disabled(False).build() grant = grant_builder.build() assert grant.roles == ["psc:role::SECOPS_ROLE_MANAGER"] assert profile.orgs['allow'] == ["psc:org:test2"] def test_create_new_grant_alt2(cbcsdk_mock): """Test creation of a grant and the profile inside it with more options.""" def respond_to_profile_grant(url, body, **kwargs): ret = copy.deepcopy(POST_PROFILE_IN_GRANT_RESP_2) ret['profile_uuid'] = body['profile_uuid'] return ret cbcsdk_mock.mock_request('POST', '/access/v2/orgs/test/grants', POST_GRANT_RESP) cbcsdk_mock.mock_request('POST', '/access/v2/orgs/test/grants/psc:user:ABC12345:DEF67890/profiles', respond_to_profile_grant) api = cbcsdk_mock.api grant_builder = Grant.create(api, org_key='ABC12345', userid='DEF67890') grant_builder.set_org('test').add_role("psc:role::SECOPS_ROLE_MANAGER").set_principal_name('Doug Jones') profile_builder = grant_builder.create_profile().set_orgs(["test2"]).set_roles(["psc:role::SECOPS_ROLE_MANAGER"]) profile = profile_builder.set_disabled(True).set_expiration('20211031T12:34:56').build() grant = grant_builder.build() assert grant.roles == ["psc:role::SECOPS_ROLE_MANAGER"] assert profile.orgs['allow'] == ["psc:org:test2"] assert profile.conditions['expiration'] == '20211031T12:34:56' assert profile.conditions['disabled'] def test_create_new_grant_alt3(cbcsdk_mock): """Test creation of a grant and the profile inside it with more options in a different way.""" def respond_to_profile_grant(url, body, **kwargs): ret = copy.deepcopy(POST_PROFILE_IN_GRANT_RESP_2) ret['profile_uuid'] = body['profile_uuid'] return ret cbcsdk_mock.mock_request('POST', '/access/v2/orgs/test/grants', POST_GRANT_RESP) cbcsdk_mock.mock_request('POST', '/access/v2/orgs/test/grants/psc:user:ABC12345:DEF67890/profiles', respond_to_profile_grant) api = cbcsdk_mock.api grant_builder = Grant.create(api, org_key='ABC12345', userid='DEF67890') grant_builder.set_org('test').add_role("psc:role::SECOPS_ROLE_MANAGER").set_principal_name('Doug Jones') profile_builder = grant_builder.create_profile().set_orgs(["test2"]).set_roles(["psc:role::SECOPS_ROLE_MANAGER"]) profile = profile_builder.set_conditions({'expiration': '20211031T12:34:56', 'disabled': True}).build() grant = grant_builder.build() assert grant.roles == ["psc:role::SECOPS_ROLE_MANAGER"] assert profile.orgs['allow'] == ["psc:org:test2"] assert profile.conditions['expiration'] == '20211031T12:34:56' assert profile.conditions['disabled'] def test_create_new_grant_without_keywords(cbcsdk_mock): """Tests that Grant.create fails if you don't supply the keyword arguments.""" api = cbcsdk_mock.api with pytest.raises(ApiError): Grant.create(api, org_key='ABC12345') with pytest.raises(ApiError): Grant.create(api, userid='DEF67890') with pytest.raises(ApiError): Grant.create(api) def test_create_grant_from_template(cbcsdk_mock): """Test creation of a new grant from a template.""" def respond_to_profile_grant(url, body, **kwargs): ret = copy.deepcopy(POST_PROFILE_IN_GRANT_RESP) ret['profile_uuid'] = body['profile_uuid'] return ret cbcsdk_mock.mock_request('POST', '/access/v2/orgs/test/grants', POST_GRANT_RESP) cbcsdk_mock.mock_request('POST', '/access/v2/orgs/test/grants/psc:user:ABC12345:DEF67890/profiles', respond_to_profile_grant) api = cbcsdk_mock.api grant_template = { "principal": 'psc:user:ABC12345:DEF67890', "roles": [ "psc:role::SECOPS_ROLE_MANAGER" ], "profiles": [ { "orgs": { "allow": [ "psc:org:test2" ] }, "roles": [ "psc:role::SECOPS_ROLE_MANAGER" ], "conditions": { "expiration": 0, "disabled": False } } ], "org_ref": 'psc:org:test', "principal_name": 'Doug Jones' } grant = Grant.create(api, grant_template) assert grant.roles == ["psc:role::SECOPS_ROLE_MANAGER"] profile = grant.profiles_[0] assert profile.orgs['allow'] == ["psc:org:test2"] def test_create_grant_from_template_without_principal(cbcsdk_mock): """Test that creating a grant from a template fails if the template does not specify the principal.""" api = cbcsdk_mock.api grant_template = { "roles": [ "psc:role::SECOPS_ROLE_MANAGER" ], "profiles": [ { "orgs": { "allow": [ "psc:org:test2" ] }, "roles": [ "psc:role::SECOPS_ROLE_MANAGER" ], "conditions": { "expiration": 0, "disabled": False } } ], "org_ref": 'psc:org:test', "principal_name": 'Doug Jones' } with pytest.raises(ApiError): Grant.create(api, grant_template) def test_create_new_grant_with_profile_template(cbcsdk_mock): """Tests creating a new grant via builder, with a profile created via a template.""" cbcsdk_mock.mock_request('POST', '/access/v2/orgs/test/grants', POST_GRANT_RESP) api = cbcsdk_mock.api grant_builder = Grant.create(api, org_key='ABC12345', userid='DEF67890') grant_builder.set_org('psc:org:test').set_roles(["psc:role::SECOPS_ROLE_MANAGER"]).set_principal_name('Doug Jones') profile_template = { "profile_uuid": "to-be-deleted", # this member should be explicitly stripped by create_profile() "orgs": { "allow": [ "psc:org:test2" ] }, "roles": [ "psc:role::SECOPS_ROLE_MANAGER" ], "conditions": { "expiration": 0, "disabled": False } } profile = grant_builder.create_profile(profile_template) grant = grant_builder.build() assert grant.roles == ["psc:role::SECOPS_ROLE_MANAGER"] assert profile.orgs['allow'] == ["psc:org:test2"] def test_create_profile_on_existing_grant(cbcsdk_mock): """Test the creation of a new profile within a grant via a builder.""" def respond_to_profile_grant(url, body, **kwargs): ret = copy.deepcopy(POST_PROFILE_IN_GRANT_RESP) return ret cbcsdk_mock.mock_request('GET', '/access/v2/orgs/test/grants/psc:user:12345678:ABCDEFGH', GET_GRANT_RESP) cbcsdk_mock.mock_request('POST', '/access/v2/orgs/test/grants/psc:user:12345678:ABCDEFGH/profiles', respond_to_profile_grant) api = cbcsdk_mock.api grant = api.select(Grant, 'psc:user:12345678:ABCDEFGH') profile = grant.create_profile().add_org("test2").add_role("psc:role::SECOPS_ROLE_MANAGER").build() assert profile.orgs['allow'] == ["psc:org:test2"] def test_create_profile_from_template(cbcsdk_mock): """Test the creation of a new profile within a grant via a template.""" def respond_to_profile_grant(url, body, **kwargs): ret = copy.deepcopy(POST_PROFILE_IN_GRANT_RESP) return ret cbcsdk_mock.mock_request('GET', '/access/v2/orgs/test/grants/psc:user:12345678:ABCDEFGH', GET_GRANT_RESP) cbcsdk_mock.mock_request('POST', '/access/v2/orgs/test/grants/psc:user:12345678:ABCDEFGH/profiles', respond_to_profile_grant) api = cbcsdk_mock.api grant = Grant(api, 'psc:user:12345678:ABCDEFGH') template = { "profile_uuid": "to-be-deleted", # this member should be explicitly stripped by create_profile() "orgs": { "allow": [ "psc:org:test2" ], }, "roles": [ "psc:role::SECOPS_ROLE_MANAGER" ], "conditions": { "expiration": 0, "disabled": False } } profile = grant.create_profile(template) assert profile.orgs['allow'] == ["psc:org:test2"] def test_modify_profile_within_grant(cbcsdk_mock): """Test the modification of a profile within a grant.""" cbcsdk_mock.mock_request('GET', '/access/v2/orgs/test/grants/psc:user:12345678:ABCDEFGH', GET_GRANT_RESP) cbcsdk_mock.mock_request('PUT', '/access/v2/orgs/test/grants/psc:user:12345678:ABCDEFGH/profiles/c57ba255-1736-4bfa-a59d-c54bb97a41d6', # noqa: E501 PUT_PROFILE_RESP) api = cbcsdk_mock.api grant = api.select(Grant, 'psc:user:12345678:ABCDEFGH') profile = grant.profiles_[0] profile.orgs['allow'].append('psc:org:test22') profile.touch() profile.save() assert profile.orgs['allow'] == ["psc:org:test2", 'psc:org:test22'] def test_delete_profile_within_grant(cbcsdk_mock): """Test the deletion of a profile within a grant.""" cbcsdk_mock.mock_request('GET', '/access/v2/orgs/test/grants/psc:user:12345678:ABCDEFGH', GET_GRANT_RESP) cbcsdk_mock.mock_request('DELETE', '/access/v2/orgs/test/grants/psc:user:12345678:ABCDEFGH/profiles/c57ba255-1736-4bfa-a59d-c54bb97a41d6', # noqa: E501 DELETE_PROFILE_RESP) api = cbcsdk_mock.api grant = Grant(api, 'psc:user:12345678:ABCDEFGH') profile = grant.profiles_[0] profile.delete() assert profile.conditions['disabled'] is True def test_delete_grant(cbcsdk_mock): """Test the deletion of a grant.""" cbcsdk_mock.mock_request('GET', '/access/v2/orgs/test/grants/psc:user:12345678:ABCDEFGH', GET_GRANT_RESP) cbcsdk_mock.mock_request('DELETE', '/access/v2/orgs/test/grants/psc:user:12345678:ABCDEFGH', DELETE_GRANT_RESP) api = cbcsdk_mock.api grant = api.select(Grant, 'psc:user:12345678:ABCDEFGH') grant.delete() assert grant.revoked is True def test_query_grants(cbcsdk_mock): """Test bulk querying for grants.""" cbcsdk_mock.mock_request('POST', '/access/v2/grants/_fetch', QUERY_GRANT_RESP) api = cbcsdk_mock.api query = api.select(Grant).add_principal('psc:user:12345678:ABCDEFGH', 'psc:org:test') query.add_principal('psc:user:87654321:HGFEDCBA', 'psc:org:test') assert query._count() == 2 results = list(query) assert results[0].principal == 'psc:user:12345678:ABCDEFGH' assert results[0].principal_name == 'J. Random Nerd' assert results[1].principal == 'psc:user:87654321:HGFEDCBA' assert results[1].principal_name == 'Sally Shears' def test_query_grants_async(cbcsdk_mock): """Test bulk querying for grants with an async query.""" cbcsdk_mock.mock_request('POST', '/access/v2/grants/_fetch', QUERY_GRANT_RESP) api = cbcsdk_mock.api query = api.select(Grant).add_principal('psc:user:12345678:ABCDEFGH', 'psc:org:test') future = query.add_principal('psc:user:87654321:HGFEDCBA', 'psc:org:test').execute_async() results = future.result() assert results[0].principal == 'psc:user:12345678:ABCDEFGH' assert results[0].principal_name == 'J. Random Nerd' assert results[1].principal == 'psc:user:87654321:HGFEDCBA' assert results[1].principal_name == 'Sally Shears' def test_query_grants_fail(cb): """Test to ensure the grant query fails if we don't supply a principal.""" query = cb.select(Grant) with pytest.raises(ApiError): list(query) def test_unsupported_query_profiles(cb): """Make sure trying to do a direct query on Profile fails.""" with pytest.raises(NonQueryableModel): cb.select(Grant.Profile) def test_get_permitted_roles(cbcsdk_mock): """Test the get_permitted_roles function.""" cbcsdk_mock.mock_request('GET', '/access/v3/orgs/test/principals/1234/roles/permitted?type=USER', PERMITTED_ROLES_RESP) api = cbcsdk_mock.api roles = Grant.get_permitted_role_urns(api) assert set(roles) == {"psc:role::ALPHA", "psc:role::BRAVO", "psc:role::CHARLIE"}
44.754522
156
0.653926
2,188
17,320
4.953382
0.10649
0.056283
0.032386
0.042351
0.79821
0.765363
0.738974
0.706127
0.69367
0.674479
0
0.039553
0.208834
17,320
386
157
44.870466
0.751368
0.091051
0
0.620579
0
0.006431
0.273327
0.175285
0
0
0
0
0.141479
1
0.090032
false
0
0.025723
0
0.144695
0
0
0
0
null
0
0
0
0
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
2f43562eb10a20f24d8a60f79184a87615b44417
325
py
Python
baseline/test.py
billy-inn/NLP-Baseline
6217d2314cba1599043ed7af26770137e609c9f5
[ "MIT" ]
null
null
null
baseline/test.py
billy-inn/NLP-Baseline
6217d2314cba1599043ed7af26770137e609c9f5
[ "MIT" ]
null
null
null
baseline/test.py
billy-inn/NLP-Baseline
6217d2314cba1599043ed7af26770137e609c9f5
[ "MIT" ]
null
null
null
from utils.test_io_utils import test_io_utils from utils.test_data_utils import test_data_utils from models.test_esim import test_esim from utils.logging_utils import _set_basic_logging def main(): # test_io_utils() # test_data_utils() test_esim() if __name__ == "__main__": _set_basic_logging() main()
23.214286
50
0.769231
50
325
4.4
0.3
0.163636
0.15
0.163636
0
0
0
0
0
0
0
0
0.156923
325
13
51
25
0.80292
0.101538
0
0
0
0
0.027682
0
0
0
0
0
0
1
0.111111
true
0
0.444444
0
0.555556
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
2f517f807447fdb0ba5f5b7b7e717e9251b23e84
27
py
Python
data/studio21_generated/introductory/3854/starter_code.py
vijaykumawat256/Prompt-Summarization
614f5911e2acd2933440d909de2b4f86653dc214
[ "Apache-2.0" ]
null
null
null
data/studio21_generated/introductory/3854/starter_code.py
vijaykumawat256/Prompt-Summarization
614f5911e2acd2933440d909de2b4f86653dc214
[ "Apache-2.0" ]
null
null
null
data/studio21_generated/introductory/3854/starter_code.py
vijaykumawat256/Prompt-Summarization
614f5911e2acd2933440d909de2b4f86653dc214
[ "Apache-2.0" ]
null
null
null
def check_dates(records):
13.5
25
0.777778
4
27
5
1
0
0
0
0
0
0
0
0
0
0
0
0.111111
27
2
26
13.5
0.833333
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
4
2f5b39feffcf9c59d6fe68929fc7e1b788f6617b
63
py
Python
agtool/utils/__init__.py
swyo/agtool
136d09b20785196ff90e97cfb3c7717df47e7ff5
[ "MIT" ]
null
null
null
agtool/utils/__init__.py
swyo/agtool
136d09b20785196ff90e97cfb3c7717df47e7ff5
[ "MIT" ]
2
2021-12-18T09:26:01.000Z
2021-12-21T13:56:24.000Z
agtool/utils/__init__.py
swyo/agtool
136d09b20785196ff90e97cfb3c7717df47e7ff5
[ "MIT" ]
null
null
null
from .path_utils import module_path __all__ = ['module_path']
15.75
35
0.777778
9
63
4.666667
0.666667
0.47619
0
0
0
0
0
0
0
0
0
0
0.126984
63
3
36
21
0.763636
0
0
0
0
0
0.174603
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
2f634971842d81db86edf0efc4450b92bac958ca
143
py
Python
WangzheSpider/WangzheSpider/debug.py
wangzihan424/TencentWangzhe
5494d4d930711ecd7668bee76efa9f3210fc762e
[ "MIT" ]
1
2018-03-28T13:14:26.000Z
2018-03-28T13:14:26.000Z
WangzheSpider/WangzheSpider/debug.py
wangzihan424/TencentWangzhe
5494d4d930711ecd7668bee76efa9f3210fc762e
[ "MIT" ]
null
null
null
WangzheSpider/WangzheSpider/debug.py
wangzihan424/TencentWangzhe
5494d4d930711ecd7668bee76efa9f3210fc762e
[ "MIT" ]
null
null
null
#coding:utf-8 import sys from scrapy import cmdline reload(sys) sys.setdefaultencoding("utf-8") cmdline.execute(['scrapy','crawl','wangzhe'])
17.875
45
0.755245
20
143
5.4
0.65
0.074074
0
0
0
0
0
0
0
0
0
0.015152
0.076923
143
7
46
20.428571
0.80303
0.083916
0
0
0
0
0.176923
0
0
0
0
0
0
1
0
true
0
0.4
0
0.4
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
2f837d8b8ba16d3165791947a842b25d351677ca
358
py
Python
film_details_searcher/film_details_searcher/scrappers/movie_service.py
tomaszkyc/film_details_searcher
e8e12bc739990324f6ab4110fdd363e6ef207f1a
[ "MIT" ]
null
null
null
film_details_searcher/film_details_searcher/scrappers/movie_service.py
tomaszkyc/film_details_searcher
e8e12bc739990324f6ab4110fdd363e6ef207f1a
[ "MIT" ]
null
null
null
film_details_searcher/film_details_searcher/scrappers/movie_service.py
tomaszkyc/film_details_searcher
e8e12bc739990324f6ab4110fdd363e6ef207f1a
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod class MovieService(ABC): def get_movie(self, link_to_movie: str): if not isinstance(link_to_movie, str): raise TypeError('Link only accepted as str') return self._fetch_movie_from_link(link_to_movie) @abstractmethod def _fetch_movie_from_link(self, link_to_movie): pass
25.571429
57
0.706704
50
358
4.72
0.48
0.101695
0.186441
0.127119
0
0
0
0
0
0
0
0
0.223464
358
13
58
27.538462
0.848921
0
0
0
0
0
0.069832
0
0
0
0
0
0
1
0.222222
false
0.111111
0.111111
0
0.555556
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
4
85d711d2e457e5b3a140a51c76d60ce0ee088b9a
43
py
Python
examples/cache-machine/memcache_byid.py
theatlantic/django-cache-machine
8c716b6097f67a2f544e94795637950d4cafd997
[ "BSD-3-Clause" ]
1
2019-03-16T05:19:33.000Z
2019-03-16T05:19:33.000Z
examples/cache_machine/memcache_byid.py
bradjasper/django-cache-machine
1988b6fb775e921114ded4486a931d0574a0cd12
[ "BSD-3-Clause" ]
null
null
null
examples/cache_machine/memcache_byid.py
bradjasper/django-cache-machine
1988b6fb775e921114ded4486a931d0574a0cd12
[ "BSD-3-Clause" ]
1
2019-03-16T05:19:25.000Z
2019-03-16T05:19:25.000Z
from settings import * FETCH_BY_ID = True
10.75
22
0.767442
7
43
4.428571
1
0
0
0
0
0
0
0
0
0
0
0
0.186047
43
3
23
14.333333
0.885714
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
85d7fcd740620e93fe4e42892a12d7a77b44b055
196
py
Python
watchmelog/template_helpers.py
jvlar/watchmelog
c60e437d98f43da413dd95be0365fd0884568459
[ "WTFPL" ]
2
2018-07-07T05:12:44.000Z
2018-07-07T16:54:19.000Z
watchmelog/template_helpers.py
jvlar/watchmelog
c60e437d98f43da413dd95be0365fd0884568459
[ "WTFPL" ]
2
2018-07-07T04:39:52.000Z
2018-07-07T04:42:37.000Z
watchmelog/template_helpers.py
jvlar/watchmelog
c60e437d98f43da413dd95be0365fd0884568459
[ "WTFPL" ]
null
null
null
from watchmelog.config import app_config def get_curr_season() -> int: return int(app_config.current_season) def form_status_class(form) -> str: if form.errors: return "error"
17.818182
41
0.714286
28
196
4.75
0.678571
0.135338
0
0
0
0
0
0
0
0
0
0
0.193878
196
10
42
19.6
0.841772
0
0
0
0
0
0.02551
0
0
0
0
0
0
1
0.333333
false
0
0.166667
0.166667
0.833333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
85e9c7e16c1aea627e8e3efaf7ab1cd6dd44d885
68
py
Python
src/__init__.py
masterWeber/showtimes
90cf8009ff82887bf117f7d1aedab8c5f3893a1c
[ "MIT" ]
15
2021-09-02T04:35:16.000Z
2022-02-23T13:35:50.000Z
src/__init__.py
masterWeber/showtimes
90cf8009ff82887bf117f7d1aedab8c5f3893a1c
[ "MIT" ]
3
2021-09-02T14:38:49.000Z
2021-12-03T18:56:19.000Z
src/__init__.py
masterWeber/showtimes
90cf8009ff82887bf117f7d1aedab8c5f3893a1c
[ "MIT" ]
3
2022-03-02T16:26:20.000Z
2022-03-25T23:09:51.000Z
import os ROOT_PATH = os.path.dirname(os.path.realpath(__file__))
13.6
55
0.764706
11
68
4.272727
0.636364
0.255319
0
0
0
0
0
0
0
0
0
0
0.102941
68
4
56
17
0.770492
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
85fbf96c7f8e36558b5818b38141c299df737b83
64
py
Python
instance/config.py
loisemuthoni/news_highlight
f0919f6fcd44ec0c6d02b3f1a1321dc0a2264280
[ "Unlicense" ]
null
null
null
instance/config.py
loisemuthoni/news_highlight
f0919f6fcd44ec0c6d02b3f1a1321dc0a2264280
[ "Unlicense" ]
1
2021-06-02T00:52:22.000Z
2021-06-02T00:52:22.000Z
instance/config.py
loisemuthoni/news_highlight
f0919f6fcd44ec0c6d02b3f1a1321dc0a2264280
[ "Unlicense" ]
1
2020-07-07T21:38:19.000Z
2020-07-07T21:38:19.000Z
NEWS_API_KEY='4775dbcae3f5456aaf9c252121f498f6' SECRET_KEY='lll'
32
47
0.890625
7
64
7.714286
0.857143
0
0
0
0
0
0
0
0
0
0
0.31746
0.015625
64
2
48
32
0.539683
0
0
0
0
0
0.538462
0.492308
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
c82a47e72d6874b62a23d6e009c4375e5b84c92f
75
py
Python
python/python_backup/PRAC_PYTHON/fast.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/python_backup/PRAC_PYTHON/fast.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/python_backup/PRAC_PYTHON/fast.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
l=input("enter a no") h=input("enter another no") a=(l*h) print "area",a
18.75
28
0.626667
16
75
2.9375
0.5625
0.425532
0
0
0
0
0
0
0
0
0
0
0.146667
75
4
29
18.75
0.734375
0
0
0
0
0
0.410959
0
0
0
0
0
0
0
null
null
0
0
null
null
0.25
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
4
c83f9681fa0f63f5df3f3675eea14b3563d8c950
2,716
py
Python
pyargcbr/cbrs/cbr.py
jaumejordan/pyargcbr
70892360a500e83215449d98ef06746adb1ab51a
[ "MIT" ]
1
2021-06-24T17:15:16.000Z
2021-06-24T17:15:16.000Z
pyargcbr/cbrs/cbr.py
jaumejordan/pyargcbr
70892360a500e83215449d98ef06746adb1ab51a
[ "MIT" ]
null
null
null
pyargcbr/cbrs/cbr.py
jaumejordan/pyargcbr
70892360a500e83215449d98ef06746adb1ab51a
[ "MIT" ]
null
null
null
from pickle import dump from typing import Dict, List, Union, ValuesView, Sequence from ..knowledge_resources.case import Case def save_object(obj, file_name: str): """Saves an object in the file corresponding to the path; it's incremental. Args: obj (Object): The object that will be stored. file_name (str): The path to the file where the object will be stored. """ with open(file_name, 'wb') as fh: dump(obj, fh) class CBR: """Parent class for all the CBRs of the project""" case_base: Dict[Union[int, str], List[Case]] initial_file_path: str storing_file_path: str def __init__(self, initial_file_path: str, storing_file_path: str): """THE CBRs store cases that represent past experiences and their final outcome Args: initial_file_path (str): Path of the file where the initial cases base is stored storing_file_path (str): Path of the file where the cases base will be stored """ self.initial_file_path = initial_file_path self.storing_file_path = storing_file_path def load_case_base(self): """Loads the case-base stored in the initial file path.""" pass def add_case(self, new_case: Case) -> bool: """Adds a new case to case-base. Otherwise, if the same case exists in the case-base, adds the relevant data to the existing case. :param new_case: Thw case to be introduced :return: True if introduced, otherwise False Args: new_case (Case): The new case that will be added """ pass def do_cache(self): """Stores the current domain-cases case-base to the storing file path. """ with open(self.storing_file_path, "wb") as f: pass # TODO This is supposed to reset the file pending check self.do_cache_inc() def do_cache_inc(self): """Stores the current domain-cases case-base to the storing file path without removing the previous objects. """ for a_case in self.get_all_cases(): save_object(a_case, self.storing_file_path) def get_all_cases(self) -> ValuesView[Sequence[Case]]: """Returns all the cases from the cases base Returns: ValuesView[Sequence[Case]]: The list of cases """ return self.case_base.values() def get_all_cases_list(self) -> Sequence[Case]: """Returns all the cases of the case-base Returns: Sequence[Case]: The list of cases """ cases: List[Case] = [] for list_cases in self.get_all_cases(): cases += list_cases return cases
33.121951
92
0.635862
387
2,716
4.307494
0.276486
0.071986
0.080984
0.026995
0.239952
0.219556
0.15237
0.15237
0.109178
0.070786
0
0
0.283873
2,716
81
93
33.530864
0.857069
0.460236
0
0.096774
0
0
0.003234
0
0
0
0
0.012346
0
1
0.258065
false
0.096774
0.096774
0
0.548387
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
1
0
1
0
0
1
0
0
4
c08971a9296d1bf1186792dc2a1d5de828de51de
94
py
Python
server/ext/debugger/elt/message_server/__init__.py
ARCCN/elt
3bf4e6cc0c7abbe442d6513ed294e956143c3bea
[ "BSD-3-Clause" ]
1
2016-07-14T14:45:56.000Z
2016-07-14T14:45:56.000Z
server/ext/debugger/elt/message_server/__init__.py
ARCCN/elt
3bf4e6cc0c7abbe442d6513ed294e956143c3bea
[ "BSD-3-Clause" ]
null
null
null
server/ext/debugger/elt/message_server/__init__.py
ARCCN/elt
3bf4e6cc0c7abbe442d6513ed294e956143c3bea
[ "BSD-3-Clause" ]
null
null
null
from .message_server import PythonMessageServer from .messages import Message, ClosingMessage
31.333333
47
0.87234
10
94
8.1
0.7
0
0
0
0
0
0
0
0
0
0
0
0.095745
94
2
48
47
0.952941
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
c0a084d1731a493581f444701bd1c2ad7f0b6dc3
373
py
Python
arekit/contrib/networks/attention/configurations/mlp_interactive.py
nicolay-r/AREk
19c39ec0dc9a17464cade03b9c4da0c6d1d21191
[ "MIT" ]
18
2019-12-14T18:43:11.000Z
2022-03-21T05:55:36.000Z
arekit/contrib/networks/attention/configurations/mlp_interactive.py
nicolay-r/AREk
19c39ec0dc9a17464cade03b9c4da0c6d1d21191
[ "MIT" ]
284
2020-08-08T20:52:44.000Z
2022-03-31T05:26:20.000Z
arekit/contrib/networks/attention/configurations/mlp_interactive.py
nicolay-r/AREk
19c39ec0dc9a17464cade03b9c4da0c6d1d21191
[ "MIT" ]
1
2021-08-07T13:17:43.000Z
2021-08-07T13:17:43.000Z
from arekit.contrib.networks.attention.configurations.mlp import MLPAttentionConfig class InteractiveMLPAttentionConfig(MLPAttentionConfig): def __init__(self, keys_count): assert(isinstance(keys_count, int)) assert(keys_count >= 0) self.__keys_count = keys_count @property def KeysPerContext(self): return self.__keys_count
26.642857
83
0.737265
39
373
6.692308
0.589744
0.206897
0.149425
0
0
0
0
0
0
0
0
0.0033
0.187668
373
13
84
28.692308
0.858086
0
0
0
0
0
0
0
0
0
0
0
0.222222
1
0.222222
false
0
0.111111
0.111111
0.555556
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
c0ae9b4beb086be2eeaa8c2609cc0b3bfe1cdd77
32
py
Python
__init__.py
devpro-droid/youtube_search
a2ebe3c014a6e2e9a03e1c67a86bc9973bd00ee8
[ "MIT" ]
null
null
null
__init__.py
devpro-droid/youtube_search
a2ebe3c014a6e2e9a03e1c67a86bc9973bd00ee8
[ "MIT" ]
null
null
null
__init__.py
devpro-droid/youtube_search
a2ebe3c014a6e2e9a03e1c67a86bc9973bd00ee8
[ "MIT" ]
null
null
null
# Version __version__ = "1.1.1"
10.666667
21
0.65625
5
32
3.4
0.4
0.235294
0
0
0
0
0
0
0
0
0
0.111111
0.15625
32
2
22
16
0.518519
0.21875
0
0
0
0
0.217391
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
c0b7516ec0c89f507a6aa021805e3bd48fe5a0ab
52
py
Python
tests/__init__.py
catherinedevlin/fuzzy-sequence-matcher
19411f804b946540a5abe93d422b639a3ddb3a43
[ "MIT" ]
3
2020-05-13T19:03:09.000Z
2020-10-23T16:38:36.000Z
tests/__init__.py
catherinedevlin/fuzzy-sequence-matcher
19411f804b946540a5abe93d422b639a3ddb3a43
[ "MIT" ]
null
null
null
tests/__init__.py
catherinedevlin/fuzzy-sequence-matcher
19411f804b946540a5abe93d422b639a3ddb3a43
[ "MIT" ]
null
null
null
"""Unit test package for fuzzy_sequence_matcher."""
26
51
0.769231
7
52
5.428571
1
0
0
0
0
0
0
0
0
0
0
0
0.096154
52
1
52
52
0.808511
0.865385
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
c0d57611f7cdae7cca56e5c08d7e8576abe033f0
54
py
Python
terraform_to_ansible/backends/local/__init__.py
mrlesmithjr/terraform-to-ansible
84c9596dafc9de1bb4ce98aa056f25a0f30c63e3
[ "MIT" ]
16
2020-03-22T22:32:05.000Z
2022-02-09T22:50:48.000Z
terraform_to_ansible/backends/local/__init__.py
mrlesmithjr/terraform-to-ansible
84c9596dafc9de1bb4ce98aa056f25a0f30c63e3
[ "MIT" ]
10
2020-04-04T20:31:23.000Z
2021-11-30T03:40:40.000Z
terraform_to_ansible/backends/local/__init__.py
mrlesmithjr/terraform-to-ansible
84c9596dafc9de1bb4ce98aa056f25a0f30c63e3
[ "MIT" ]
2
2021-07-16T01:46:35.000Z
2021-12-10T09:57:37.000Z
"""terraform_to_ansible/backends/local/__init__.py"""
27
53
0.796296
7
54
5.285714
1
0
0
0
0
0
0
0
0
0
0
0
0.018519
54
1
54
54
0.698113
0.87037
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
2398df1ef50d7c1323c32c9d84e6e53b1ebdef82
108
py
Python
web/control_interface/apps.py
vectorcrumb/HexaLR
99cf35f256cd993dd90e9772acf6252c2f4c9d55
[ "MIT" ]
null
null
null
web/control_interface/apps.py
vectorcrumb/HexaLR
99cf35f256cd993dd90e9772acf6252c2f4c9d55
[ "MIT" ]
null
null
null
web/control_interface/apps.py
vectorcrumb/HexaLR
99cf35f256cd993dd90e9772acf6252c2f4c9d55
[ "MIT" ]
1
2018-08-14T04:15:02.000Z
2018-08-14T04:15:02.000Z
from django.apps import AppConfig class ControlInterfaceConfig(AppConfig): name = 'control_interface'
18
40
0.796296
11
108
7.727273
0.909091
0
0
0
0
0
0
0
0
0
0
0
0.138889
108
5
41
21.6
0.913978
0
0
0
0
0
0.157407
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
23de7ec1a42fc059916c2ea0f713dc095610c71c
46
py
Python
project/__init__.py
James19stack/awards
5666243d76635a78c6e98f52dcd3e73e3e296ebc
[ "MIT" ]
null
null
null
project/__init__.py
James19stack/awards
5666243d76635a78c6e98f52dcd3e73e3e296ebc
[ "MIT" ]
7
2021-03-30T13:57:54.000Z
2022-03-12T00:41:45.000Z
project/__init__.py
James19stack/awards
5666243d76635a78c6e98f52dcd3e73e3e296ebc
[ "MIT" ]
null
null
null
default_app_config = 'my_app.apps.MyAppConfig'
46
46
0.847826
7
46
5.142857
0.857143
0
0
0
0
0
0
0
0
0
0
0
0.043478
46
1
46
46
0.818182
0
0
0
0
0
0.489362
0.489362
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
9b150cab68d4697e286136da301547b4287880c4
227
py
Python
Week_3 (Communications Systems)- 3b Robotic Operating System (ROS)/electronics/Scripts/Question 4/clock_sub.py
offjangir/Kratos-QSTP-Course
6c883f17867362305212171851b40db7b9f238f1
[ "MIT" ]
2
2021-09-10T06:24:33.000Z
2021-09-10T06:25:02.000Z
Week_3 (Communications Systems)- 3b Robotic Operating System (ROS)/electronics/Scripts/Question 4/clock_sub.py
offjangir/Kratos_QSTP-Work
6c883f17867362305212171851b40db7b9f238f1
[ "MIT" ]
null
null
null
Week_3 (Communications Systems)- 3b Robotic Operating System (ROS)/electronics/Scripts/Question 4/clock_sub.py
offjangir/Kratos_QSTP-Work
6c883f17867362305212171851b40db7b9f238f1
[ "MIT" ]
null
null
null
#!/usr/bin/env python import rospy from std_msgs.msg import String from std_msgs.msg import Int32 def callback(msg): print msg.data rospy.init_node('ClockPrint') sub = rospy.Subscriber('clock1', String, callback) rospy.spin()
22.7
50
0.77533
36
227
4.805556
0.638889
0.080925
0.127168
0.16185
0.231214
0
0
0
0
0
0
0.014778
0.105727
227
9
51
25.222222
0.837438
0.088106
0
0
0
0
0.07767
0
0
0
0
0
0
0
null
null
0
0.375
null
null
0.125
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
4
f1cfba2141d3b518658c0842b9999a05d8c394d0
62
py
Python
hwtLib/examples/statements/__init__.py
optical-o/hwtLib
edad621f5ad4cdbea20a5751ff4468979afe2f77
[ "MIT" ]
24
2017-02-23T10:00:50.000Z
2022-01-28T12:20:21.000Z
hwtLib/examples/statements/__init__.py
optical-o/hwtLib
edad621f5ad4cdbea20a5751ff4468979afe2f77
[ "MIT" ]
32
2017-04-28T10:29:34.000Z
2021-04-27T09:16:43.000Z
hwtLib/examples/statements/__init__.py
optical-o/hwtLib
edad621f5ad4cdbea20a5751ff4468979afe2f77
[ "MIT" ]
8
2019-09-19T03:34:36.000Z
2022-01-21T06:56:58.000Z
""" Module dedicated for example usages of hwt statements. """
20.666667
54
0.741935
8
62
5.75
1
0
0
0
0
0
0
0
0
0
0
0
0.145161
62
3
55
20.666667
0.867925
0.870968
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
f1dbac289bb44fa03d6b9aa9565e78df37f4fde1
130
py
Python
suricataparser/__init__.py
GlennHD/py-suricataparser
6b19175b05cc2f6af67271c6f74bae5e3dd827e3
[ "Apache-2.0" ]
null
null
null
suricataparser/__init__.py
GlennHD/py-suricataparser
6b19175b05cc2f6af67271c6f74bae5e3dd827e3
[ "Apache-2.0" ]
null
null
null
suricataparser/__init__.py
GlennHD/py-suricataparser
6b19175b05cc2f6af67271c6f74bae5e3dd827e3
[ "Apache-2.0" ]
null
null
null
from suricataparser.parse import parse_rule, parse_file, parse_rules from suricataparser.rule import Rule __version__ = "0.0.8"
21.666667
68
0.815385
19
130
5.210526
0.526316
0.363636
0
0
0
0
0
0
0
0
0
0.026087
0.115385
130
5
69
26
0.834783
0
0
0
0
0
0.038462
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
9e88a73322ebb0a29d6e624a68d5465eea4596f4
1,465
py
Python
src/sprites/sprites.py
phf-souza/fgv-jogo-de-nave
f6a55054a85e7d228b5405fca188ee44116cdff4
[ "MIT" ]
4
2021-06-05T21:09:31.000Z
2021-06-23T21:42:33.000Z
src/sprites/sprites.py
phf-souza/fgv-jogo-de-nave
f6a55054a85e7d228b5405fca188ee44116cdff4
[ "MIT" ]
10
2021-06-06T00:09:31.000Z
2021-06-22T23:43:20.000Z
src/sprites/sprites.py
phf-souza/fgv-jogo-de-nave
f6a55054a85e7d228b5405fca188ee44116cdff4
[ "MIT" ]
4
2021-06-06T14:52:25.000Z
2021-06-13T19:24:38.000Z
import pygame #Icon icon = pygame.image.load('src/sprites/game_scene/coronavirus.png') # Background background = pygame.image.load('src/sprites/background/background.jpg') # Menu instructions = pygame.image.load('src/sprites/menu/Instructions.png') # Ship green_ship_1 = pygame.image.load('src/sprites/ship/green_ship_1.png') green_ship_2 = pygame.image.load('src/sprites/ship/green_ship_2.png') green_ship_3 = pygame.image.load('src/sprites/ship/green_ship_3.png') red_ship_1 = pygame.image.load('src/sprites/ship/red_ship_1.png') red_ship_2 = pygame.image.load('src/sprites/ship/red_ship_2.png') red_ship_3 = pygame.image.load('src/sprites/ship/red_ship_3.png') blue_ship_1 = pygame.image.load('src/sprites/ship/blue_ship_1.png') blue_ship_2 = pygame.image.load('src/sprites/ship/blue_ship_2.png') blue_ship_3 = pygame.image.load('src/sprites/ship/blue_ship_3.png') # Shots shot_1 = pygame.image.load('src/sprites/game_scene/shot_1.png') shot_2 = pygame.image.load('src/sprites/game_scene/shot_2.png') shot_3 = pygame.image.load('src/sprites/game_scene/shot_3.png') # Enemy enemy_1 = pygame.image.load('src/sprites/enemy/enemy_1.png') enemy_2 = pygame.image.load('src/sprites/enemy/enemy_2.png') enemy_3 = pygame.image.load('src/sprites/enemy/enemy_3.png') enemy_4 = pygame.image.load('src/sprites/enemy/enemy_4.png') # S2 S2 = pygame.image.load('src/sprites/S2/S2.png') # Game Over game_over = pygame.image.load('src/sprites/game_scene/game_over.png')
36.625
71
0.774744
257
1,465
4.194553
0.108949
0.214286
0.292208
0.350649
0.72449
0.654917
0.649351
0.456401
0
0
0
0.026201
0.062116
1,465
39
72
37.564103
0.75837
0.034812
0
0
0
0
0.475107
0.475107
0
0
0
0
0
1
0
false
0
0.045455
0
0.045455
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
7b35d0e1d8c57045963c478ef0212e8ba59e6986
119
py
Python
FEMur/mesh.py
MrJarv1s/FEMur
0ff83c1f34d963edb2305110078f8e0592937c83
[ "MIT" ]
1
2020-08-28T01:14:26.000Z
2020-08-28T01:14:26.000Z
FEMur/mesh.py
Greg-Hamel/FEMur
0ff83c1f34d963edb2305110078f8e0592937c83
[ "MIT" ]
16
2017-06-25T16:12:05.000Z
2017-08-07T23:30:44.000Z
FEMur/mesh.py
MrJarv1s/FEMur
0ff83c1f34d963edb2305110078f8e0592937c83
[ "MIT" ]
null
null
null
class Mesh(object): 'Common class for all Mesh of the Finite Element Method.' def __init__(self): pass
23.8
61
0.663866
17
119
4.411765
0.882353
0
0
0
0
0
0
0
0
0
0
0
0.260504
119
4
62
29.75
0.852273
0.462185
0
0
0
0
0.462185
0
0
0
0
0
0
1
0.25
false
0.25
0
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
4
c86f73c47e082b1dd1023e47aee8f6320f69941b
430
py
Python
few_shots_clf/utils/__init__.py
delmalih/few-shots-classification
8b06ff673882fd0d8b99cd705e5e5fab0ec93fb3
[ "MIT" ]
null
null
null
few_shots_clf/utils/__init__.py
delmalih/few-shots-classification
8b06ff673882fd0d8b99cd705e5e5fab0ec93fb3
[ "MIT" ]
null
null
null
few_shots_clf/utils/__init__.py
delmalih/few-shots-classification
8b06ff673882fd0d8b99cd705e5e5fab0ec93fb3
[ "MIT" ]
null
null
null
from .read_image import read_image from .get_iterator import get_iterator from .compute_keypoints import compute_keypoints from .compute_descriptors import compute_descriptors from .compute_images2labels import compute_images2labels from .get_labels_from_catalog import get_labels_from_catalog from .get_all_images_from_folder import get_all_images_from_folder from .compute_catalog_fingerprint import compute_catalog_fingerprint
47.777778
68
0.906977
60
430
6.033333
0.266667
0.121547
0.071823
0.110497
0.121547
0
0
0
0
0
0
0.005025
0.074419
430
8
69
53.75
0.904523
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
c88d40036cc56114c829075670a1c1a213bad3c4
64
py
Python
models/tests/__init__.py
bayesimpact/representative-population-generator
078ef492dc282f68ce81c1f33fab029f4382ea98
[ "Apache-2.0" ]
null
null
null
models/tests/__init__.py
bayesimpact/representative-population-generator
078ef492dc282f68ce81c1f33fab029f4382ea98
[ "Apache-2.0" ]
null
null
null
models/tests/__init__.py
bayesimpact/representative-population-generator
078ef492dc282f68ce81c1f33fab029f4382ea98
[ "Apache-2.0" ]
null
null
null
"""This is the test module for the network adequacy project."""
32
63
0.734375
10
64
4.7
0.9
0
0
0
0
0
0
0
0
0
0
0
0.15625
64
1
64
64
0.87037
0.890625
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
c8c4fc4fcb68f6b077d600175a783f28bd1d89a0
228
py
Python
pages/cache.py
timbortnik/django-page-cms
4640dca210d89f22ba87cbf4376cb34147e591fa
[ "BSD-3-Clause" ]
113
2015-01-08T08:21:11.000Z
2022-03-11T21:44:10.000Z
pages/cache.py
timbortnik/django-page-cms
4640dca210d89f22ba87cbf4376cb34147e591fa
[ "BSD-3-Clause" ]
63
2015-03-06T06:38:38.000Z
2022-02-15T17:07:48.000Z
pages/cache.py
timbortnik/django-page-cms
4640dca210d89f22ba87cbf4376cb34147e591fa
[ "BSD-3-Clause" ]
53
2015-01-07T15:25:48.000Z
2022-02-15T16:21:54.000Z
# -*- coding: utf-8 -*- from django.core.cache import caches from django.core.cache.backends.base import InvalidCacheBackendError try: cache = caches['pages'] except InvalidCacheBackendError: cache = caches['default']
22.8
68
0.741228
26
228
6.5
0.615385
0.118343
0.16568
0.224852
0
0
0
0
0
0
0
0.005102
0.140351
228
9
69
25.333333
0.857143
0.092105
0
0
0
0
0.058537
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
1
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
c8f8da3a87a66ed205ed0ea3a5d279f739932851
74
py
Python
djtools/contactrequests/__init__.py
semicolom/django-tools-contact-requests
b972db3793e7424b44990e2568b1cc99cce7538b
[ "MIT" ]
null
null
null
djtools/contactrequests/__init__.py
semicolom/django-tools-contact-requests
b972db3793e7424b44990e2568b1cc99cce7538b
[ "MIT" ]
null
null
null
djtools/contactrequests/__init__.py
semicolom/django-tools-contact-requests
b972db3793e7424b44990e2568b1cc99cce7538b
[ "MIT" ]
null
null
null
default_app_config = 'djtools.contactrequests.apps.ContactRequestsConfig'
37
73
0.878378
7
74
9
1
0
0
0
0
0
0
0
0
0
0
0
0.040541
74
1
74
74
0.887324
0
0
0
0
0
0.675676
0.675676
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
c8f911b63cc4a4fbb4d97669d95253cd2d89433e
502
py
Python
src/charma/movies/related_persons/actors/component.py
mononobi/charma-server
ed90f5ec0b5ff3996232d5fe49a4f77f96d82ced
[ "BSD-3-Clause" ]
1
2020-01-16T23:36:10.000Z
2020-01-16T23:36:10.000Z
src/charma/movies/related_persons/actors/component.py
mononobi/imovie-server
ed90f5ec0b5ff3996232d5fe49a4f77f96d82ced
[ "BSD-3-Clause" ]
24
2020-06-08T18:27:04.000Z
2021-06-06T12:01:39.000Z
src/charma/movies/related_persons/actors/component.py
mononobi/charma-server
ed90f5ec0b5ff3996232d5fe49a4f77f96d82ced
[ "BSD-3-Clause" ]
1
2020-12-20T05:29:04.000Z
2020-12-20T05:29:04.000Z
# -*- coding: utf-8 -*- """ movies related actors component module. """ from pyrin.application.decorators import component from pyrin.application.structs import Component from charma.movies.related_persons.actors import RelatedActorsPackage from charma.movies.related_persons.actors.manager import RelatedActorsManager @component(RelatedActorsPackage.COMPONENT_NAME) class RelatedActorsComponent(Component, RelatedActorsManager): """ movies related actors component class. """ pass
26.421053
77
0.796813
51
502
7.784314
0.45098
0.130982
0.095718
0.141058
0.18136
0.18136
0
0
0
0
0
0.002262
0.119522
502
18
78
27.888889
0.895928
0.201195
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.142857
0.571429
0
0.714286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
1
0
1
0
0
4
c8fe1fe39df0da0502a23b8e3fbe5fd165ce1082
1,946
py
Python
backend/tests/test_limits.py
msg4real/tuber
9704466bf30ad7e93975b084eef154bc6e30cf6f
[ "MIT" ]
6
2019-12-06T07:32:22.000Z
2021-12-05T19:14:03.000Z
backend/tests/test_limits.py
msg4real/tuber
9704466bf30ad7e93975b084eef154bc6e30cf6f
[ "MIT" ]
99
2019-10-03T05:21:16.000Z
2022-01-21T02:35:25.000Z
backend/tests/test_limits.py
msg4real/tuber
9704466bf30ad7e93975b084eef154bc6e30cf6f
[ "MIT" ]
6
2019-09-30T22:01:55.000Z
2021-11-03T20:53:00.000Z
def test_limits(client): """Make sure that requesting resources with limits return a slice of the result.""" for i in range(100): badge = client.post("/api/event/1/badge", json={ "legal_name": "Test User {}".format(i) }).json assert(badge['legal_name'] == "Test User {}".format(i)) badges = client.get("/api/event/1/badge", query_string={"limit": 10}).json assert(len(badges) == 10) def test_offset(client): """Make sure that requesting resources with offsets return the correct range of data.""" for i in range(100): badge = client.post("/api/event/1/badge", json={ "legal_name": "Test User {}".format(i) }).json assert(badge['legal_name'] == "Test User {}".format(i)) badges = client.get("/api/event/1/badge", query_string={"offset": 10, "limit": 5, "full": True}).json assert(len(badges) == 5) assert(badges[0]["legal_name"] == "Test User 10") # Test with the default limit of 10 badges = client.get("/api/event/1/badge", query_string={"offset": 20, "full": True}).json assert(len(badges) == 10) assert(badges[0]["legal_name"] == "Test User 20") def test_page(client): """Make sure that requesting resources with pagination return the correct data.""" for i in range(100): badge = client.post("/api/event/1/badge", json={ "legal_name": "Test User {}".format(i) }).json assert(badge['legal_name'] == "Test User {}".format(i)) badges = client.get("/api/event/1/badge", query_string={"page": 3, "limit": 15, "full": True}).json assert(len(badges) == 15) assert(badges[0]["legal_name"] == "Test User 45") # Test with the default limit of 10 badges = client.get("/api/event/1/badge", query_string={"page": 5, "full": True}).json assert(len(badges) == 10) assert(badges[0]["legal_name"] == "Test User 50")
47.463415
106
0.598664
271
1,946
4.232472
0.202952
0.078466
0.113339
0.148213
0.863121
0.844813
0.821273
0.636443
0.636443
0.636443
0
0.034914
0.219938
1,946
41
107
47.463415
0.720685
0.157246
0
0.5625
0
0
0.261995
0
0
0
0
0
0.375
1
0.09375
false
0
0
0
0.09375
0
0
0
0
null
0
0
0
1
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
cd9d354cdb9a5df3494d04239745a6f00e3e699f
131
py
Python
asrecognition/__init__.py
kokimishev/asrecognition
9b82d89d32b44b63c01754fd818939e8c839b7e9
[ "MIT" ]
47
2021-07-30T16:33:23.000Z
2022-02-21T03:16:00.000Z
asrecognition/__init__.py
kokimishev/asrecognition
9b82d89d32b44b63c01754fd818939e8c839b7e9
[ "MIT" ]
28
2021-08-19T07:50:34.000Z
2022-03-21T12:37:29.000Z
asrecognition/__init__.py
kokimishev/asrecognition
9b82d89d32b44b63c01754fd818939e8c839b7e9
[ "MIT" ]
6
2021-10-04T11:23:44.000Z
2022-02-06T15:07:38.000Z
import datasets import logging from asrecognition.engine import ASREngine datasets.logging.get_verbosity = lambda: logging.NOTSET
21.833333
55
0.854962
16
131
6.9375
0.6875
0
0
0
0
0
0
0
0
0
0
0
0.099237
131
5
56
26.2
0.940678
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.75
0
0.75
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
cda0cf9dc9052c6d9e5dd5ec02e7ac8aa51a1990
426
py
Python
controller.py
clean-code-craft-tcq-1/function-ext-python-AkshayUHegde
ac4ffc6d0ea080a374bcc68d30e6b6cd50be462c
[ "MIT" ]
null
null
null
controller.py
clean-code-craft-tcq-1/function-ext-python-AkshayUHegde
ac4ffc6d0ea080a374bcc68d30e6b6cd50be462c
[ "MIT" ]
1
2021-03-16T17:53:51.000Z
2021-03-16T17:53:51.000Z
controller.py
clean-code-craft-tcq-1/function-ext-python-AkshayUHegde
ac4ffc6d0ea080a374bcc68d30e6b6cd50be462c
[ "MIT" ]
null
null
null
import localization def deploy_corrective_measures(param_operating_ranges): corrective_measures_completed = [] for param in param_operating_ranges: corrective_measures_completed.append(localization.TRANSLATION_TABLE[localization.CURR_LOCALIZATION][ "controller_log"]["dummy"] % (param_operating_ranges[param], param)) return corrective_measures_completed
42.6
117
0.725352
40
426
7.3
0.5
0.246575
0.205479
0.205479
0.321918
0.321918
0
0
0
0
0
0
0.20892
426
9
118
47.333333
0.866469
0
0
0
0
0
0.044601
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0
0.428571
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
cda3bf0c1fd73815576e44bca13db0f41374f8d8
196
py
Python
Solutions/7kyu/7kyu_the_deaf_rats_of_hamelin.py
citrok25/Codewars-1
dc641c5079e2e8b5955eb027fd15427e5bdb2e26
[ "MIT" ]
46
2017-08-24T09:27:57.000Z
2022-02-25T02:24:33.000Z
Solutions/7kyu/7kyu_the_deaf_rats_of_hamelin.py
abbhishek971/Codewars
9e761811db724da1e8aae44594df42b4ee879a16
[ "MIT" ]
null
null
null
Solutions/7kyu/7kyu_the_deaf_rats_of_hamelin.py
abbhishek971/Codewars
9e761811db724da1e8aae44594df42b4ee879a16
[ "MIT" ]
35
2017-08-01T22:09:48.000Z
2022-02-18T17:21:37.000Z
import re def count_deaf_rats(town): t = town.split('P') return find(t[0]).count('O~') + find(t[1]).count('~O') def find(s): return [''.join(j) for j in re.findall('(~O)|(O~)', s)]
19.6
59
0.55102
36
196
2.944444
0.583333
0.09434
0
0
0
0
0
0
0
0
0
0.012422
0.178571
196
9
60
21.777778
0.645963
0
0
0
0
0
0.071429
0
0
0
0
0
0
1
0.333333
false
0
0.166667
0.166667
0.833333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
cdaf22efa276f7b2604ea9445022d32fd829106f
87
py
Python
ABC_A/ABC057_A.py
ryosuke0825/atcoder_python
185cdbe7db44ecca1aaf357858d16d31ce515ddb
[ "MIT" ]
null
null
null
ABC_A/ABC057_A.py
ryosuke0825/atcoder_python
185cdbe7db44ecca1aaf357858d16d31ce515ddb
[ "MIT" ]
null
null
null
ABC_A/ABC057_A.py
ryosuke0825/atcoder_python
185cdbe7db44ecca1aaf357858d16d31ce515ddb
[ "MIT" ]
null
null
null
a, b = map(int, input().split()) if a+b < 24: print(a+b) else: print((a+b)-24)
14.5
32
0.505747
18
87
2.444444
0.555556
0.181818
0.181818
0
0
0
0
0
0
0
0
0.059701
0.229885
87
5
33
17.4
0.597015
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0
0
0
0.4
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
cdf0fe341f85ea3fba72f684ebf1d5f550eff3f3
8,762
py
Python
src/pyg_timeseries/_ewmxo.py
gityoav/pyg-timeseries
27859b912d6e9e9a74c172711907d5456ec3076b
[ "Apache-2.0" ]
null
null
null
src/pyg_timeseries/_ewmxo.py
gityoav/pyg-timeseries
27859b912d6e9e9a74c172711907d5456ec3076b
[ "Apache-2.0" ]
null
null
null
src/pyg_timeseries/_ewmxo.py
gityoav/pyg-timeseries
27859b912d6e9e9a74c172711907d5456ec3076b
[ "Apache-2.0" ]
null
null
null
from pyg_base import Dict, is_num, sub_, div_ from pyg_timeseries._ewm import ewma_, ewmstd_, ewmrms_ from pyg_timeseries._rolling import v2na, diff_ from pyg_timeseries._expanding import cumsum_ def _frac(days): return 1/(1+days) if days>1 else days def ou_factor(fast, slow): """ OU factor for momentum predictions. Calculatates the variance of an OU process defined as ewma(dB, fast) - ewma(dB, slow) if dB is a standard Brownian Motion Suppose >>> f = 1/(1+fast); F = 1-f; F2 = F^2 >>> s = 1/(1+slow); S = 1-s; S2 = S^2 If returns are IID and WLOG ts(0) = 0 we have that (once we flip returns) >>> ts(-n) = ts(0) + rtn(0) + rtn(-1) + ... rtn(-(n-1)) >>> fast_ewma(0) = f * ts(0) + f * F ts(-1) + f * F^n ts(-n) >>> = f * (ts0) >>> + f * F (ts(0) + rtn(0)) >>> + f * F^2 (ts(0) + rtn(0) + rtn(-1)) >>> + f * F^3 (ts(0) + rtn(0) + rtn(-1) + rtn(-2)) >>> ... >>> fast_ewma(0) = ts(0) + F * rtn(0) + F^2 * rtn(-1) + F^3 * rtn(-2) + ... >>> slow_ewma(0) = ts(0) + S * rtn(0) + S^2 * rtn(-1) + S^3 * rtn(-2) + ... >>> crossover(0) = (F-S) rtn(0) + (F^2-S^2) * rtn(-1)... The process has zero mean and variance: >>> E(crossover^2) = \sum_{i>=1} (F^i - S^i)^2 >>> = \sum_{i>=1} (F^2i + S^2i - 2 F^i * S^i) >>> = F^2 / (1 - F^2) + S^2 / (1-S^2) - 2 F*S / (1-F*S) Parameters ---------- fast : int/frac number of days. can also be 1/(1+days) if presented as a fraction slow : int/frc number of days. can also be 1/(1+days) if presented as a fraction Returns ------- float The variance of an OU process defined as ewma(dB, fast) - ewma(dB, slow) if dB is a standard Brownian Motion """ f = _frac(fast); F = 1-f; F2 = F**2 s = _frac(slow); S = 1-s; S2 = S**2 return (F2/(1-F2) + S2/(1-S2) - 2*F*S/(1-F*S)) ** 0.5 def ewmxo_(rtn, fast, slow, vol = None, time = None, instate = None): """ This is the normalized crossover function >>> res = (ewma(rtn, fast) - ewma(rtn, slow)) / (ewmstd(rtn, vol) * ou_factor(fast, slow)) The OU factor normalizes the result so that rms(res) is approximately 1 Parameters ---------- rtn: timeseries The returns of a financial process fast : int/frac number of days. can also be 1/(1+days) if presented as a fraction slow : int/frc number of days. can also be 1/(1+days) if presented as a fraction vol: int/frc number of days. used for calculating the volatility horizon :Example: --------- >>> import numpy as np; import pandas as pd; from pyg import * >>> rtn = pd.Series(np.random.normal(0,1,10000),drange(-9999,0)) >>> fast = 64; slow = 192; vol = 32; instate = None """ state = Dict(fast = {}, slow = {}, vol = {}, cumsum = {}) if instate is None else instate ts = cumsum_(rtn, instate = state.get('cumsum')) fast_ewma_ = ewma_(ts.data, fast, time = time, instate = state.get('fast')) slow_ewma_ = ewma_(ts.data, slow, time = time, instate = state.get('slow')) vol_ = ewmstd_(rtn, vol, time = time, instate = state.get('vol')) if is_num(vol) else vol signal = sub_(fast_ewma_.data, slow_ewma_.data) normalized = div_(signal, v2na(vol_.data) * ou_factor(fast, slow)) return Dict(data = normalized, state = Dict(fast = fast_ewma_.state, slow = slow_ewma_.state, vol = vol_.state)) ewmxo_.output = ['data', 'state'] def ewmacd_(ts, fast, slow, vol = None, time = None, instate = None, rms = True): """ This is the normalized crossover function >>> res = (ewma(rtn, fast) - ewma(rtn, slow)) / (ewmstd(rtn, vol) * ou_factor(fast, slow)) The OU factor normalizes the result so that rms(res) is approximately 1 Parameters ---------- rtn: timeseries The returns of a financial process fast : int/frac number of days. can also be 1/(1+days) if presented as a fraction slow : int/frc number of days. can also be 1/(1+days) if presented as a fraction vol: int/frc number of days. used for calculating the volatility horizon :Example: --------- >>> import numpy as np; import pandas as pd; from pyg import * >>> rtn = pd.Series(np.random.normal(0,1,10000),drange(-9999,0)) >>> fast = 64; slow = 192; vol = 32; instate = None """ state = Dict(fast = {}, slow = {}, vol = {}, diff = {}) if instate is None else instate fast_ewma_ = ewma_(ts, fast, time = time, instate = state.get('fast')) slow_ewma_ = ewma_(ts, slow, time = time, instate = state.get('slow')) rtn_ = diff_(ts, 1, time = time, instate = state.get('diff')) vol_ = (ewmrms_ if rms else ewmstd_)(rtn_.data, vol, time = time, instate = state.get('vol')) if is_num(vol) else vol signal = fast_ewma_.data - slow_ewma_.data normalized = div_(signal, v2na(vol_.data) * ou_factor(fast, slow)) return Dict(data = normalized, state = Dict(fast = fast_ewma_.state, slow = slow_ewma_.state, vol = vol_.state, diff = rtn_.state)) ewmacd_.output = ['data', 'state'] def ewmvol_(a, n, time = None, instate = None, rms = True): """ Just like ewmstd / ewmrms but calculated of prices rather than returns. It handles time better by delegating the time calculating for the diff as well :Example: --------- >>> import numpy as np; import pandas as pd; from pyg import * >>> rtn = pd.Series(np.random.normal(0,1,10000),drange(-9999,0)) """ state = Dict(vol = {}, diff = {}) if instate is None else instate rtn_ = diff_(a, 1, time = time, instate = state.get('diff')) vol_ = (ewmrms_ if rms else ewmstd_)(rtn_.data, n, time = time, instate = state.get('vol')) return Dict(data = vol_.data, state = Dict(vol = vol_.state, diff = rtn_.state)) ewmvol_.output = ['data', 'state'] def ewmvol(a, n, time = None, state = None, rms = True): """ calculate ewmstd/ewmrms based of a price :Example: --------- >>> import numpy as np; import pandas as pd; from pyg import * >>> rtn = pd.Series(np.random.normal(0,1,10000),drange(-9999,0)) >>> a = cumsum(rtn) >>> rtn = diff(a) >>> assert abs(ewmrms(rtn, 10)-ewmvol(a, 10)).max() < 1e-10 """ return ewmvol_(a = a, n = n, time = time, instate = state, rms = rms).data def ewmxo(rtn, fast, slow, vol = None, time = None, state = None): """ This is the normalized crossover function >>> res = (ewma(rtn, fast) - ewma(rtn, slow)) / (ewmstd(rtn, vol) * ou_factor(fast, slow)) The OU factor normalizes the result so that rms(res) is approximately 1 Parameters ---------- rtn: timeseries The returns of a financial process fast : int/frac number of days. can also be 1/(1+days) if presented as a fraction slow : int/frc number of days. can also be 1/(1+days) if presented as a fraction vol: int/frc number of days. used for calculating the volatility horizon :Example: --------- >>> import numpy as np; import pandas as pd; from pyg import * >>> rtn = pd.Series(np.random.normal(0,1,10000),drange(-9999,0)) >>> fast = 64; slow = 192; vol = 32; instate = None """ return ewmxo_(rtn, fast, slow, vol, time = time, instate = state).data def ewmacd(ts, fast, slow, vol = None, time = None, state = None): """ This is the normalized crossover function with price inpits >>> res = (ewma(rtn, fast) - ewma(rtn, slow)) / (ewmstd(rtn, vol) * ou_factor(fast, slow)) The OU factor normalizes the result so that rms(res) is approximately 1 Parameters ---------- ts: timeseries The price of a financial process fast : int/frac number of days. can also be 1/(1+days) if presented as a fraction slow : int/frc number of days. can also be 1/(1+days) if presented as a fraction vol: int/frc number of days. used for calculating the volatility horizon :Example: --------- >>> import numpy as np; import pandas as pd; from pyg import * >>> ts = pd.Series(np.random.normal(0,1,10000),drange(-9999,0)).cumsum() >>> fast = 64; slow = 192; vol = 32; instate = None """ return ewmacd_(ts, fast, slow, vol, time = time, instate = state).data
35.617886
125
0.562771
1,284
8,762
3.766355
0.117601
0.028122
0.034739
0.049628
0.786807
0.776055
0.748139
0.724979
0.688792
0.647643
0
0.0352
0.286693
8,762
245
126
35.763265
0.73856
0.566423
0
0.166667
0
0
0.020932
0
0
0
0
0
0
1
0.166667
false
0
0.083333
0.020833
0.416667
0
0
0
0
null
0
0
0
0
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
cdf11648af02e34090e5314b0300c5e0eb735f1e
14,279
py
Python
tools/funccommonstub.py
esoma/pyglm-typing
f47636b86d07d4f91692235e8dfe0af1bd22e883
[ "MIT" ]
null
null
null
tools/funccommonstub.py
esoma/pyglm-typing
f47636b86d07d4f91692235e8dfe0af1bd22e883
[ "MIT" ]
null
null
null
tools/funccommonstub.py
esoma/pyglm-typing
f47636b86d07d4f91692235e8dfe0af1bd22e883
[ "MIT" ]
null
null
null
__all__ = ['generate_func_common_stub'] import textwrap from vecstub import vector_tuple def generate_func_common_stub(): names = [ 'abs', 'ceil', 'clamp', 'floatBitsToInt', 'floatBitsToUint', 'floor', 'fma', 'fmax', 'fmin', 'fract', 'frexp', 'intBitsToFloat', 'isinf', 'isnan', 'ldexp', 'max', 'min', 'mix', 'modf', 'round', 'roundEven', 'sign', 'smoothstep', 'step', 'trunc', 'uintBitsToFloat' ] return names, textwrap.dedent(f""" @overload def abs(x: glm_typing.Number, /) -> float: ...{''.join(f''' @overload def abs(x: {vector_tuple(i)}, /) -> vec{i}: ...''' for i in range(1, 5))} @overload def abs(x: _VT, /) -> _VT: ... @overload def ceil(x: glm_typing.Number, /) -> float: ...{''.join(f''' @overload def ceil(x: {vector_tuple(i)}, /) -> vec{i}: ...''' for i in range(1, 5))} @overload def ceil(x: _VT, /) -> _VT: ... @overload def clamp(x: glm_typing.Number, min: glm_typing.Number, max: glm_typing.Number, /) -> glm_typing.Number: ...{''.join(f''' @overload def clamp(x: glm_typing.F32Vector{i}, min: glm_typing.Number, max: glm_typing.Number, /) -> vec{i}: ... @overload def clamp(x: glm_typing.F32Vector{i}, min: glm_typing.F32Vector{i}, max: glm_typing.F32Vector{i}, /) -> vec{i}: ...''' for i in range(1, 5))} @overload def clamp(x: _NF32VT, min: glm_typing.Number, max: glm_typing.Number, /) -> _NF32VT: ... @overload def clamp(x: _NF32VT, min: _NF32VT, max: _NF32VT, /) -> _NF32VT: ... @overload def floatBitsToInt(x: float, /) -> int: ... @overload def floatBitsToInt(x: glm_typing.F32Vector2, /) -> ivec2: ... @overload def floatBitsToInt(x: glm_typing.F32Vector3, /) -> ivec3: ... @overload def floatBitsToInt(x: glm_typing.F32Vector4, /) -> ivec4: ... @overload def floatBitsToInt(x: glm_typing.F32Vector1, /) -> ivec1: ... @overload def floatBitsToUint(x: float, /) -> int: ... @overload def floatBitsToUint(x: glm_typing.F32Vector2, /) -> uvec2: ... @overload def floatBitsToUint(x: glm_typing.F32Vector3, /) -> uvec3: ... @overload def floatBitsToUint(x: glm_typing.F32Vector4, /) -> uvec4: ... @overload def floatBitsToUint(x: glm_typing.F32Vector1, /) -> uvec1: ... @overload def floor(x: glm_typing.Number, /) -> float: ...{''.join(f''' @overload def floor(x: {vector_tuple(i)}, /) -> vec{i}: ...''' for i in range(1, 5))} @overload def floor(x: _VT, /) -> _VT: ... def fma(a: glm_typing.Number, b: glm_typing.Number, c: glm_typing.Number, /) -> float: ... @overload def fmax(x: glm_typing.Number, y: glm_typing.Number, /) -> float: ... @overload def fmax(a: glm_typing.Number, b: glm_typing.Number, c: glm_typing.Number, /) -> float: ... @overload def fmax(a: glm_typing.Number, b: glm_typing.Number, c: glm_typing.Number, d: glm_typing.Number, /) -> float: ...{''.join(f''' @overload def fmax(x: glm_typing.F32Vector{i}, y: glm_typing.Number, /) -> vec{i}: ... @overload def fmax(x: glm_typing.F32Vector{i}, y: glm_typing.F32Vector{i}, /) -> vec{i}: ... @overload def fmax(a: glm_typing.F32Vector{i}, b: glm_typing.F32Vector{i}, c: glm_typing.F32Vector{i}, /) -> vec{i}: ... @overload def fmax(a: glm_typing.F32Vector{i}, b: glm_typing.F32Vector{i}, c: glm_typing.F32Vector{i}, d: glm_typing.F32Vector{i}, /) -> vec{i}: ...''' for i in range(1, 5))} @overload def fmax(x: _NF32VT, y: glm_typing.Number, /) -> _NF32VT: ... @overload def fmax(x: _NF32VT, y: _NF32VT, /) -> _NF32VT: ... @overload def fmax(a: _NF32VT, b: _NF32VT, c: _NF32VT, /) -> _NF32VT: ... @overload def fmax(a: _NF32VT, b: _NF32VT, c: _NF32VT, d: _NF32VT, /) -> _NF32VT: ... @overload def fmin(x: glm_typing.Number, y: glm_typing.Number, /) -> float: ... @overload def fmin(a: glm_typing.Number, b: glm_typing.Number, c: glm_typing.Number, /) -> float: ... @overload def fmin(a: glm_typing.Number, b: glm_typing.Number, c: glm_typing.Number, d: glm_typing.Number, /) -> float: ...{''.join(f''' @overload def fmin(x: glm_typing.F32Vector{i}, y: glm_typing.Number, /) -> vec{i}: ... @overload def fmin(x: glm_typing.F32Vector{i}, y: glm_typing.F32Vector{i}, /) -> vec{i}: ... @overload def fmin(a: glm_typing.F32Vector{i}, b: glm_typing.F32Vector{i}, c: glm_typing.F32Vector{i}, /) -> vec{i}: ... @overload def fmin(a: glm_typing.F32Vector{i}, b: glm_typing.F32Vector{i}, c: glm_typing.F32Vector{i}, d: glm_typing.F32Vector{i}, /) -> vec{i}: ...''' for i in range(1, 5))} @overload def fmin(x: _NF32VT, y: glm_typing.Number, /) -> _NF32VT: ... @overload def fmin(x: _NF32VT, y: _NF32VT, /) -> _NF32VT: ... @overload def fmin(a: _NF32VT, b: _NF32VT, c: _NF32VT, /) -> _NF32VT: ... @overload def fmin(a: _NF32VT, b: _NF32VT, c: _NF32VT, d: _NF32VT, /) -> _NF32VT: ... @overload def fract(x: glm_typing.Number, /) -> float: ...{''.join(f''' @overload def fract(x: {vector_tuple(i)}, /) -> vec{i}: ...''' for i in range(1, 5))} @overload def fract(x: _VT, /) -> _VT: ... @overload def frexp(x: glm_typing.Number, /) -> Tuple[float, int]: ... @overload def frexp(x: dvec1, exp: ivec1, /) -> dvec1: ... @overload def frexp(x: dvec2, exp: ivec2, /) -> dvec2: ... @overload def frexp(x: dvec3, exp: ivec3, /) -> dvec3: ... @overload def frexp(x: dvec4, exp: ivec4, /) -> dvec4: ... @overload def frexp(x: glm_typing.F32Vector1, exp: ivec1, /) -> vec1: ... @overload def frexp(x: glm_typing.F32Vector2, exp: ivec2, /) -> vec2: ... @overload def frexp(x: glm_typing.F32Vector3, exp: ivec3, /) -> vec3: ... @overload def frexp(x: glm_typing.F32Vector4, exp: ivec4, /) -> vec4: ... @overload def intBitsToFloat(x: int, /) -> float: ... @overload def intBitsToFloat(x: glm_typing.I32Vector2, /) -> vec2: ... @overload def intBitsToFloat(x: glm_typing.I32Vector3, /) -> vec3: ... @overload def intBitsToFloat(x: glm_typing.I32Vector4, /) -> vec4: ... @overload def intBitsToFloat(x: glm_typing.I32Vector1, /) -> vec1: ... @overload def isinf(x: glm_typing.Number, /) -> bool: ... @overload def isinf(x: glm_typing.FDAnyVector1, /) -> bvec1: ... @overload def isinf(x: glm_typing.FDAnyVector2, /) -> bvec2: ... @overload def isinf(x: glm_typing.FDAnyVector3, /) -> bvec3: ... @overload def isinf(x: glm_typing.FDAnyQuaternionVector4, /) -> bvec4: ... @overload def isnan(x: glm_typing.Number, /) -> bool: ... @overload def isnan(x: glm_typing.FDAnyVector1, /) -> bvec1: ... @overload def isnan(x: glm_typing.FDAnyVector2, /) -> bvec2: ... @overload def isnan(x: glm_typing.FDAnyVector3, /) -> bvec3: ... @overload def isnan(x: glm_typing.FDAnyQuaternionVector4, /) -> bvec4: ... @overload def ldexp(x: glm_typing.Number, exp: glm_typing.Number, /) -> float: ... @overload def ldexp(x: dmvec2, exp: ivec2, /) -> dmvec2: ... @overload def ldexp(x: dmvec3, exp: ivec3, /) -> dmvec3: ... @overload def ldexp(x: dmvec4, exp: ivec4, /) -> dmvec4: ... @overload def ldexp(x: dvec1, exp: ivec1, /) -> dvec1: ... @overload def ldexp(x: dvec2, exp: ivec2, /) -> dvec2: ... @overload def ldexp(x: dvec3, exp: ivec3, /) -> dvec3: ... @overload def ldexp(x: dvec4, exp: ivec4, /) -> dvec4: ... @overload def ldexp(x: mvec2, exp: ivec2, /) -> mvec2: ... @overload def ldexp(x: mvec3, exp: ivec3, /) -> mvec3: ... @overload def ldexp(x: mvec4, exp: ivec4, /) -> mvec4: ... @overload def ldexp(x: Union[vec1, {vector_tuple(1)}], exp: ivec1, /) -> vec1: ... @overload def ldexp(x: Union[vec2, {vector_tuple(2)}], exp: ivec2, /) -> vec2: ... @overload def ldexp(x: Union[vec3, {vector_tuple(3)}], exp: ivec3, /) -> vec3: ... @overload def ldexp(x: Union[vec4, {vector_tuple(4)}], exp: ivec4, /) -> vec4: ... @overload def max(x: glm_typing.Number, y: glm_typing.Number, /) -> float: ... @overload def max(a: glm_typing.Number, b: glm_typing.Number, c: glm_typing.Number, /) -> float: ... @overload def max(a: glm_typing.Number, b: glm_typing.Number, c: glm_typing.Number, d: glm_typing.Number, /) -> float: ...{''.join(f''' @overload def max(x: glm_typing.F32Vector{i}, y: glm_typing.Number, /) -> vec{i}: ... @overload def max(x: glm_typing.F32Vector{i}, y: glm_typing.F32Vector{i}, /) -> vec{i}: ... @overload def max(a: glm_typing.F32Vector{i}, b: glm_typing.F32Vector{i}, c: glm_typing.F32Vector{i}, /) -> vec{i}: ... @overload def max(a: glm_typing.F32Vector{i}, b: glm_typing.F32Vector{i}, c: glm_typing.F32Vector{i}, d: glm_typing.F32Vector{i}, /) -> vec{i}: ...''' for i in range(1, 5))} @overload def max(x: _NF32VT, y: glm_typing.Number, /) -> _NF32VT: ... @overload def max(x: _NF32VT, y: _NF32VT, /) -> _NF32VT: ... @overload def max(a: _NF32VT, b: _NF32VT, c: _NF32VT, /) -> _NF32VT: ... @overload def max(a: _NF32VT, b: _NF32VT, c: _NF32VT, d: _NF32VT, /) -> _NF32VT: ... @overload def max(_: Iterable[_T], /) -> _T: ... @overload def min(x: glm_typing.Number, y: glm_typing.Number, /) -> float: ... @overload def min(a: glm_typing.Number, b: glm_typing.Number, c: glm_typing.Number, /) -> float: ... @overload def min(a: glm_typing.Number, b: glm_typing.Number, c: glm_typing.Number, d: glm_typing.Number, /) -> float: ...{''.join(f''' @overload def min(x: glm_typing.F32Vector{i}, y: glm_typing.Number, /) -> vec{i}: ... @overload def min(x: glm_typing.F32Vector{i}, y: glm_typing.F32Vector{i}, /) -> vec{i}: ... @overload def min(a: glm_typing.F32Vector{i}, b: glm_typing.F32Vector{i}, c: glm_typing.F32Vector{i}, /) -> vec{i}: ... @overload def min(a: glm_typing.F32Vector{i}, b: glm_typing.F32Vector{i}, c: glm_typing.F32Vector{i}, d: glm_typing.F32Vector{i}, /) -> vec{i}: ...''' for i in range(1, 5))} @overload def min(x: _NF32VT, y: glm_typing.Number, /) -> _NF32VT: ... @overload def min(x: _NF32VT, y: _NF32VT, /) -> _NF32VT: ... @overload def min(a: _NF32VT, b: _NF32VT, c: _NF32VT, /) -> _NF32VT: ... @overload def min(a: _NF32VT, b: _NF32VT, c: _NF32VT, d: _NF32VT, /) -> _NF32VT: ... @overload def min(_: Iterable[_T], /) -> _T: ... @overload def mix(x: glm_typing.Number, y: glm_typing.Number, a: glm_typing.Number, /) -> float: ...{''.join(f''' @overload def mix(x: glm_typing.F32Vector{i}, y: glm_typing.F32Vector{i}, a: Union[glm_typing.FDAnyVector{i}, glm_typing.BAnyVector{i}, glm_typing.Number], /) -> vec{i}: ... @overload def mix(x: _NF32V{i}T, y: _NF32V{i}T, a: Union[glm_typing.FDAnyVector{i}, glm_typing.BAnyVector{i}, glm_typing.Number], /) -> _NF32V{i}T: ...''' for i in range(1, 5))}{''.join(f''' @overload def mix(x: glm_typing.F32Matrix{r}x{c}, y: glm_typing.F32Matrix{r}x{c}, a: Union[glm_typing.FAnyMatrix{r}x{c}, glm_typing.Number], /) -> mat{r}x{c}: ... @overload def mix(x: _NF32M{r}X{c}T, y: _NF32M{r}X{c}T, a: Union[glm_typing.FAnyMatrix{r}x{c}, glm_typing.Number], /) -> _NF32M{r}X{c}T: ...''' for r in range(2, 5) for c in range(2, 5))} @overload def mix(x: _QT, y: _QT, a: glm_typing.Number, /) -> _QT: ... @overload def modf(x: glm_typing.Number, /) -> Tuple[float, float]: ...{''.join(f''' @overload def modf(x: {vector_tuple(i)}, /) -> vec{i}: ...''' for i in range(1, 5))} @overload def modf(x: _FDVT, i: _FDVT, /) -> _FDVT: ... @overload def round(x: glm_typing.Number, /) -> float: ...{''.join(f''' @overload def round(x: {vector_tuple(i)}, /) -> vec{i}: ...''' for i in range(1, 5))} @overload def round(x: _FDVT, i: _FDVT, /) -> _FDVT: ... @overload def roundEven(x: glm_typing.Number, /) -> float: ...{''.join(f''' @overload def roundEven(x: {vector_tuple(i)}, /) -> vec{i}: ...''' for i in range(1, 5))} @overload def roundEven(x: _FDVT, i: _FDVT, /) -> _FDVT: ... @overload def sign(x: glm_typing.Number, /) -> float: ...{''.join(f''' @overload def sign(x: {vector_tuple(i)}, /) -> vec{i}: ...''' for i in range(1, 5))} @overload def sign(x: _FDVT, i: _FDVT, /) -> _FDVT: ... @overload def smoothstep(edge0: glm_typing.Number, edge1: glm_typing.Number, x: glm_typing.Number, /) -> float: ...{''.join(f''' @overload def smoothstep(edge0: glm_typing.Number, edge1: glm_typing.Number, x: glm_typing.F32Vector{i}, /) -> vec{i}: ... @overload def smoothstep(edge0: glm_typing.F32Vector{i}, edge1: glm_typing.F32Vector{i}, x: glm_typing.F32Vector{i}, /) -> vec{i}: ...''' for i in range(1, 5))} @overload def smoothstep(edge0: glm_typing.Number, edge1: glm_typing.Number, x: _NF32VT, /) -> _FDVT: ... @overload def smoothstep(edge0: _NF32VT, edge1: _NF32VT, x: _NF32VT, /) -> _NF32VT: ... @overload def step(edge: glm_typing.Number, x: glm_typing.Number, /) -> float: ...{''.join(f''' @overload def step(edge: glm_typing.Number, x: glm_typing.F32Vector{i}, /) -> vec{i}: ... @overload def step(edge: glm_typing.F32Vector{i}, x: glm_typing.F32Vector{i}, /) -> vec{i}: ...''' for i in range(1, 5))} @overload def step(edge: glm_typing.Number, x: _NF32VT, /) -> _NF32VT: ... @overload def step(edge: _NF32VT, x: _NF32VT, /) -> _NF32VT: ... @overload def trunc(x: glm_typing.Number, /) -> float: ...{''.join(f''' @overload def trunc(x: {vector_tuple(i)}, /) -> vec{i}: ...''' for i in range(1, 5))} @overload def trunc(x: _FDVT, /) -> _FDVT: ... @overload def uintBitsToFloat(x: int, /) -> float: ... @overload def uintBitsToFloat(x: glm_typing.U32Vector2, /) -> vec2: ... @overload def uintBitsToFloat(x: glm_typing.U32Vector3, /) -> vec3: ... @overload def uintBitsToFloat(x: glm_typing.U32Vector4, /) -> vec4: ... @overload def uintBitsToFloat(x: glm_typing.U32Vector1, /) -> vec1: ... """)
41.997059
184
0.590307
1,908
14,279
4.254717
0.067086
0.196231
0.162602
0.124045
0.834688
0.784922
0.652008
0.55223
0.525129
0.468958
0
0.041484
0.203165
14,279
339
185
42.120944
0.671999
0
0
0.478964
1
0.194175
0.979059
0.153313
0
0
0
0
0
1
0.003236
false
0
0.006472
0
0.012945
0
0
0
0
null
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
a80a11e0c9fe855c8ef3e4690c3b6ffb7720721e
2,220
py
Python
python_files/CourseLesson.py
KJHJason/App-Development-Project
6fb027055ba0d1b469721aae46aa61f7bbd15f74
[ "MIT" ]
3
2022-02-13T11:07:01.000Z
2022-02-22T15:27:37.000Z
python_files/CourseLesson.py
nekoney/App-Development-Project
1563f14bf9f85eb21eaea874a13c6397234d6b95
[ "MIT" ]
null
null
null
python_files/CourseLesson.py
nekoney/App-Development-Project
1563f14bf9f85eb21eaea874a13c6397234d6b95
[ "MIT" ]
1
2022-03-01T07:52:24.000Z
2022-03-01T07:52:24.000Z
from uuid import uuid4 """Made by Wei Ren""" """Edited by Clarence and Jason""" class Lesson(): def __init__(self, title, description, thumbnail): self.__title = title self.__description = description self.__thumbnail = thumbnail self.__lessonID = str(uuid4().hex) def set_title(self, title): self.__title = title def get_title(self): return self.__title def set_description(self, description): self.__description = description def get_description(self): return self.__description def set_thumbnail(self, thumbnail): self.__thumbnail = thumbnail def get_thumbnail(self): return self.__thumbnail def set_lessonID(self, lessonID): self.__lessonID = lessonID def get_lessonID(self): return self.__lessonID # Video Data class VideoLesson(Lesson): def __init__(self, title, description, thumbnail, videoPath): super().__init__(title, description, thumbnail) self.__videoPath = videoPath def set_videoPath(self, videoPath): self.__videoPath = videoPath def get_videoPath(self): return self.__videoPath # Zoom Link --> To be changed # Different timings for different students for different courses class ZoomLesson(Lesson): def __init__(self, title, description, thumbnail, zoomURL, zoomPassword, timings, weeklyDay): super().__init__(title, description, thumbnail) self.__timings = str(timings) # a string, e.g. 13:30 self.__zoomURL = zoomURL self.__zoomPassword = zoomPassword self.__weeklyDay = weeklyDay # a string, e.g. "Monday" def set_timing(self, timings): self.__timings = timings def get_timings(self): return self.__timings def set_weekly_day(self, weeklyDay): self.__weeklyDay = weeklyDay def get_weekly_day(self): return self.__weeklyDay def set_zoom_link(self, zoomURL): self.__zoomURL = zoomURL def get_zoom_link(self): return self.__zoomURL def set_zoom_password(self, zoomPassword): self.__zoomPassword = zoomPassword def get_zoom_password(self): return self.__zoomPassword
30.833333
97
0.677027
251
2,220
5.59761
0.223108
0.038434
0.08968
0.036299
0.143772
0.143772
0.08968
0
0
0
0
0.003544
0.237387
2,220
72
98
30.833333
0.826344
0.065766
0
0.296296
0
0
0
0
0
0
0
0
0
1
0.388889
false
0.111111
0.018519
0.166667
0.62963
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
1
1
0
0
4
a81434fc59ca9c36626ca8f6f39b5233659c45a2
738
py
Python
test_rotate_array.py
jaebradley/leetcode.py
64634cc7d0e975ddd163f35acb18cc92960b8eb5
[ "MIT" ]
null
null
null
test_rotate_array.py
jaebradley/leetcode.py
64634cc7d0e975ddd163f35acb18cc92960b8eb5
[ "MIT" ]
2
2019-11-13T19:55:49.000Z
2019-11-13T19:55:57.000Z
test_rotate_array.py
jaebradley/leetcode.py
64634cc7d0e975ddd163f35acb18cc92960b8eb5
[ "MIT" ]
null
null
null
from unittest import TestCase from rotate_array import Solution class TestNoOrbit(TestCase): def test_single_step(self): values = [1, 2, 3, 4, 5] Solution().rotate(values, 1) self.assertEqual([5, 1, 2, 3, 4], values) def test_two_steps(self): values = [1, 2, 3, 4, 5] Solution().rotate(values, 2) self.assertEqual([4, 5, 1, 2, 3], values) class TestSingleOrbit(TestCase): def test_single_step(self): values = [1, 2, 3, 4, 5] Solution().rotate(values, 6) self.assertEqual([5, 1, 2, 3, 4], values) def test_two_steps(self): values = [1, 2, 3, 4, 5] Solution().rotate(values, 7) self.assertEqual([4, 5, 1, 2, 3], values)
25.448276
49
0.579946
107
738
3.915888
0.242991
0.038186
0.057279
0.057279
0.77327
0.77327
0.77327
0.77327
0.649165
0.649165
0
0.081784
0.271003
738
28
50
26.357143
0.697026
0
0
0.6
0
0
0
0
0
0
0
0
0.2
1
0.2
false
0
0.1
0
0.4
0
0
0
0
null
0
0
0
0
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4