Skip to content

Commit 59edcc6

Browse files
feat: Add new deployments endpoints (#364)
1 parent 88464c1 commit 59edcc6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+11135
-12646
lines changed

Pipfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ gradient-utils = ">=0.1.1"
2525
sphinx = "*"
2626
recommonmark = "*"
2727
sphinx-click = "*"
28+
gql = {extras = ["requests"], version = "==3.0.0a6"}
2829

2930
[dev-packages]
3031
twine = "*"

docs/.buildinfo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Sphinx build info version 1
22
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3-
config: 5349479d681a2ec8a6923e1d2529be6f
3+
config: 87717157c8acf52e3b5c1ab787807b30
44
tags: 645f666f9bcd5a90fca523b33c5a78b7

docs/_sources/gradient.api_sdk.repositories.rst.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,14 @@ gradient.api\_sdk.repositories.experiments module
6060
:undoc-members:
6161
:show-inheritance:
6262

63+
gradient.api\_sdk.repositories.gradient\_deployments module
64+
-----------------------------------------------------------
65+
66+
.. automodule:: gradient.api_sdk.repositories.gradient_deployments
67+
:members:
68+
:undoc-members:
69+
:show-inheritance:
70+
6371
gradient.api\_sdk.repositories.hyperparameter module
6472
----------------------------------------------------
6573

docs/_sources/gradient.api_sdk.rst.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,14 @@ gradient.api\_sdk.constants module
3939
:undoc-members:
4040
:show-inheritance:
4141

42+
gradient.api\_sdk.graphql module
43+
--------------------------------
44+
45+
.. automodule:: gradient.api_sdk.graphql
46+
:members:
47+
:undoc-members:
48+
:show-inheritance:
49+
4250
gradient.api\_sdk.logger module
4351
-------------------------------
4452

docs/_sources/gradient.commands.rst.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,14 @@ gradient.commands.experiments module
4444
:undoc-members:
4545
:show-inheritance:
4646

47+
gradient.commands.helpers module
48+
--------------------------------
49+
50+
.. automodule:: gradient.commands.helpers
51+
:members:
52+
:undoc-members:
53+
:show-inheritance:
54+
4755
gradient.commands.hyperparameters module
4856
----------------------------------------
4957

docs/_static/basic.css

Lines changed: 78 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ ul.search li a {
130130
font-weight: bold;
131131
}
132132

133-
ul.search li div.context {
133+
ul.search li p.context {
134134
color: #888;
135135
margin: 2px 0 0 30px;
136136
text-align: left;
@@ -277,25 +277,25 @@ p.rubric {
277277
font-weight: bold;
278278
}
279279

280-
img.align-left, .figure.align-left, object.align-left {
280+
img.align-left, figure.align-left, .figure.align-left, object.align-left {
281281
clear: left;
282282
float: left;
283283
margin-right: 1em;
284284
}
285285

286-
img.align-right, .figure.align-right, object.align-right {
286+
img.align-right, figure.align-right, .figure.align-right, object.align-right {
287287
clear: right;
288288
float: right;
289289
margin-left: 1em;
290290
}
291291

292-
img.align-center, .figure.align-center, object.align-center {
292+
img.align-center, figure.align-center, .figure.align-center, object.align-center {
293293
display: block;
294294
margin-left: auto;
295295
margin-right: auto;
296296
}
297297

298-
img.align-default, .figure.align-default {
298+
img.align-default, figure.align-default, .figure.align-default {
299299
display: block;
300300
margin-left: auto;
301301
margin-right: auto;
@@ -319,7 +319,8 @@ img.align-default, .figure.align-default {
319319

320320
/* -- sidebars -------------------------------------------------------------- */
321321

322-
div.sidebar {
322+
div.sidebar,
323+
aside.sidebar {
323324
margin: 0 0 0.5em 1em;
324325
border: 1px solid #ddb;
325326
padding: 7px;
@@ -377,12 +378,14 @@ div.body p.centered {
377378
/* -- content of sidebars/topics/admonitions -------------------------------- */
378379

379380
div.sidebar > :last-child,
381+
aside.sidebar > :last-child,
380382
div.topic > :last-child,
381383
div.admonition > :last-child {
382384
margin-bottom: 0;
383385
}
384386

385387
div.sidebar::after,
388+
aside.sidebar::after,
386389
div.topic::after,
387390
div.admonition::after,
388391
blockquote::after {
@@ -455,20 +458,22 @@ td > :last-child {
455458

456459
/* -- figures --------------------------------------------------------------- */
457460

458-
div.figure {
461+
div.figure, figure {
459462
margin: 0.5em;
460463
padding: 0.5em;
461464
}
462465

463-
div.figure p.caption {
466+
div.figure p.caption, figcaption {
464467
padding: 0.3em;
465468
}
466469

467-
div.figure p.caption span.caption-number {
470+
div.figure p.caption span.caption-number,
471+
figcaption span.caption-number {
468472
font-style: italic;
469473
}
470474

471-
div.figure p.caption span.caption-text {
475+
div.figure p.caption span.caption-text,
476+
figcaption span.caption-text {
472477
}
473478

474479
/* -- field list styles ----------------------------------------------------- */
@@ -503,6 +508,63 @@ table.hlist td {
503508
vertical-align: top;
504509
}
505510

511+
/* -- object description styles --------------------------------------------- */
512+
513+
.sig {
514+
font-family: 'Consolas', 'Menlo', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace;
515+
}
516+
517+
.sig-name, code.descname {
518+
background-color: transparent;
519+
font-weight: bold;
520+
}
521+
522+
.sig-name {
523+
font-size: 1.1em;
524+
}
525+
526+
code.descname {
527+
font-size: 1.2em;
528+
}
529+
530+
.sig-prename, code.descclassname {
531+
background-color: transparent;
532+
}
533+
534+
.optional {
535+
font-size: 1.3em;
536+
}
537+
538+
.sig-paren {
539+
font-size: larger;
540+
}
541+
542+
.sig-param.n {
543+
font-style: italic;
544+
}
545+
546+
/* C++ specific styling */
547+
548+
.sig-inline.c-texpr,
549+
.sig-inline.cpp-texpr {
550+
font-family: unset;
551+
}
552+
553+
.sig.c .k, .sig.c .kt,
554+
.sig.cpp .k, .sig.cpp .kt {
555+
color: #0033B3;
556+
}
557+
558+
.sig.c .m,
559+
.sig.cpp .m {
560+
color: #1750EB;
561+
}
562+
563+
.sig.c .s, .sig.c .sc,
564+
.sig.cpp .s, .sig.cpp .sc {
565+
color: #067D17;
566+
}
567+
506568

507569
/* -- other body styles ----------------------------------------------------- */
508570

@@ -629,14 +691,6 @@ dl.glossary dt {
629691
font-size: 1.1em;
630692
}
631693

632-
.optional {
633-
font-size: 1.3em;
634-
}
635-
636-
.sig-paren {
637-
font-size: larger;
638-
}
639-
640694
.versionmodified {
641695
font-style: italic;
642696
}
@@ -765,8 +819,12 @@ div.code-block-caption code {
765819

766820
table.highlighttable td.linenos,
767821
span.linenos,
768-
div.doctest > div.highlight span.gp { /* gp: Generic.Prompt */
769-
user-select: none;
822+
div.highlight span.gp { /* gp: Generic.Prompt */
823+
user-select: none;
824+
-webkit-user-select: text; /* Safari fallback only */
825+
-webkit-user-select: none; /* Chrome/Safari */
826+
-moz-user-select: none; /* Firefox */
827+
-ms-user-select: none; /* IE10+ */
770828
}
771829

772830
div.code-block-caption span.caption-number {
@@ -781,16 +839,6 @@ div.literal-block-wrapper {
781839
margin: 1em 0;
782840
}
783841

784-
code.descname {
785-
background-color: transparent;
786-
font-weight: bold;
787-
font-size: 1.2em;
788-
}
789-
790-
code.descclassname {
791-
background-color: transparent;
792-
}
793-
794842
code.xref, a code {
795843
background-color: transparent;
796844
font-weight: bold;

docs/_static/doctools.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,12 +301,14 @@ var Documentation = {
301301
window.location.href = prevHref;
302302
return false;
303303
}
304+
break;
304305
case 39: // right
305306
var nextHref = $('link[rel="next"]').prop('href');
306307
if (nextHref) {
307308
window.location.href = nextHref;
308309
return false;
309310
}
311+
break;
310312
}
311313
}
312314
});

docs/_static/searchtools.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,10 @@ var Search = {
282282
complete: function(jqxhr, textstatus) {
283283
var data = jqxhr.responseText;
284284
if (data !== '' && data !== undefined) {
285-
listItem.append(Search.makeSearchSummary(data, searchterms, hlterms));
285+
var summary = Search.makeSearchSummary(data, searchterms, hlterms);
286+
if (summary) {
287+
listItem.append(summary);
288+
}
286289
}
287290
Search.output.append(listItem);
288291
setTimeout(function() {
@@ -498,6 +501,9 @@ var Search = {
498501
*/
499502
makeSearchSummary : function(htmlText, keywords, hlwords) {
500503
var text = Search.htmlToText(htmlText);
504+
if (text == "") {
505+
return null;
506+
}
501507
var textLower = text.toLowerCase();
502508
var start = 0;
503509
$.each(keywords, function() {
@@ -509,7 +515,7 @@ var Search = {
509515
var excerpt = ((start > 0) ? '...' : '') +
510516
$.trim(text.substr(start, 240)) +
511517
((start + 240 - text.length) ? '...' : '');
512-
var rv = $('<div class="context"></div>').text(excerpt);
518+
var rv = $('<p class="context"></p>').text(excerpt);
513519
$.each(hlwords, function() {
514520
rv = rv.highlightText(this, 'highlighted');
515521
});

0 commit comments

Comments
 (0)