Skip to content

Commit ba1891d

Browse files
committed
Refactor code structure and remove redundant code blocks for improved readability and maintainability
1 parent 4cf639e commit ba1891d

62 files changed

Lines changed: 51235 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Sphinx build info version 1
2+
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3+
config: 57e774f05f576a704fcd294921c56ea4
4+
tags: 645f666f9bcd5a90fca523b33c5a78b7

static/api-docs/latest/Python-API/_modules/cloudshell/api/cloudshell_api.html

Lines changed: 5596 additions & 0 deletions
Large diffs are not rendered by default.

static/api-docs/latest/Python-API/_modules/cloudshell/api/common_cloudshell_api.html

Lines changed: 635 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
<!DOCTYPE html>
2+
<html class="writer-html5" lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>Overview: module code &mdash; CloudShell Python API 2024.1.0.187973 documentation</title>
7+
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=fa44fd50" />
8+
<link rel="stylesheet" type="text/css" href="../_static/css/theme.css?v=19f00094" />
9+
10+
11+
<link rel="shortcut icon" href="../_static/favicon.ico"/>
12+
<!--[if lt IE 9]>
13+
<script src="../_static/js/html5shiv.min.js"></script>
14+
<![endif]-->
15+
16+
<script src="../_static/jquery.js?v=5d32c60e"></script>
17+
<script src="../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
18+
<script data-url_root="../" id="documentation_options" src="../_static/documentation_options.js?v=7adfad2a"></script>
19+
<script src="../_static/doctools.js?v=888ff710"></script>
20+
<script src="../_static/sphinx_highlight.js?v=4825356b"></script>
21+
<script src="../_static/js/theme.js"></script>
22+
<link rel="index" title="Index" href="../genindex.html" />
23+
<link rel="search" title="Search" href="../search.html" />
24+
</head>
25+
26+
<body class="wy-body-for-nav">
27+
<div class="wy-grid-for-nav">
28+
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
29+
<div class="wy-side-scroll">
30+
<div class="wy-side-nav-search" >
31+
32+
33+
34+
<a href="../index.html" class="icon icon-home">
35+
CloudShell Python API
36+
<img src="../_static/just_logo.png" class="logo" alt="Logo"/>
37+
</a>
38+
<div class="version">
39+
2024.1
40+
</div>
41+
<div role="search">
42+
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
43+
<input type="text" name="q" placeholder="Search docs" aria-label="Search docs" />
44+
<input type="hidden" name="check_keywords" value="yes" />
45+
<input type="hidden" name="area" value="default" />
46+
</form>
47+
</div>
48+
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
49+
<ul>
50+
<li class="toctree-l1"><a class="reference internal" href="../cloudshell.api.html">cloudshell.api package</a></li>
51+
</ul>
52+
53+
</div>
54+
</div>
55+
</nav>
56+
57+
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" >
58+
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
59+
<a href="../index.html">CloudShell Python API</a>
60+
</nav>
61+
62+
<div class="wy-nav-content">
63+
<div class="rst-content">
64+
<div role="navigation" aria-label="Page navigation">
65+
<ul class="wy-breadcrumbs">
66+
<li><a href="../index.html" class="icon icon-home" aria-label="Home"></a></li>
67+
<li class="breadcrumb-item active">Overview: module code</li>
68+
<li class="wy-breadcrumbs-aside">
69+
</li>
70+
</ul>
71+
<hr/>
72+
</div>
73+
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
74+
<div itemprop="articleBody">
75+
76+
<h1>All modules for which code is available</h1>
77+
<ul><li><a href="cloudshell/api/cloudshell_api.html">cloudshell.api.cloudshell_api</a></li>
78+
<li><a href="cloudshell/api/common_cloudshell_api.html">cloudshell.api.common_cloudshell_api</a></li>
79+
</ul>
80+
81+
</div>
82+
</div>
83+
<footer>
84+
85+
<hr/>
86+
87+
<div role="contentinfo">
88+
<p>&#169; Copyright 2016, Quali.</p>
89+
</div>
90+
91+
Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a
92+
<a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a>
93+
provided by <a href="https://readthedocs.org">Read the Docs</a>.
94+
95+
96+
</footer>
97+
</div>
98+
</div>
99+
</section>
100+
</div>
101+
<script>
102+
jQuery(function () {
103+
SphinxRtdTheme.Navigation.enable(true);
104+
});
105+
</script>
106+
107+
</body>
108+
</html>
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
cloudshell.api package
2+
======================
3+
4+
Submodules
5+
----------
6+
7+
cloudshell.api.cloudshell_api module
8+
------------------------------------
9+
10+
.. automodule:: cloudshell.api.cloudshell_api
11+
:members:
12+
:undoc-members:
13+
:show-inheritance:
14+
15+
cloudshell.api.common_cloudshell_api module
16+
-------------------------------------------
17+
18+
.. automodule:: cloudshell.api.common_cloudshell_api
19+
:members:
20+
:undoc-members:
21+
:show-inheritance:
22+
23+
24+
Module contents
25+
---------------
26+
27+
.. automodule:: cloudshell.api
28+
:members:
29+
:undoc-members:
30+
:show-inheritance:
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
cloudshell.helpers package
2+
==========================
3+
4+
Subpackages
5+
-----------
6+
7+
.. toctree::
8+
9+
cloudshell.helpers.from_template
10+
cloudshell.helpers.scripts
11+
12+
Module contents
13+
---------------
14+
15+
.. automodule:: cloudshell.helpers
16+
:members:
17+
:undoc-members:
18+
:show-inheritance:
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
cloudshell package
2+
==================
3+
4+
Subpackages
5+
-----------
6+
7+
.. toctree::
8+
9+
cloudshell.api
10+
cloudshell.helpers
11+
12+
Module contents
13+
---------------
14+
15+
.. automodule:: cloudshell
16+
:members:
17+
:undoc-members:
18+
:show-inheritance:
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
.. CloudShell Python API documentation master file, created by
2+
sphinx-quickstart on Tue Mar 15 00:33:11 2016.
3+
You can adapt this file completely to your liking, but it should at least
4+
contain the root `toctree` directive.
5+
6+
Welcome to CloudShell Python API Reference Guide!
7+
=================================================
8+
9+
Contents:
10+
11+
.. toctree::
12+
:maxdepth: 10
13+
14+
cloudshell.api
15+
16+
17+
Indices and tables
18+
==================
19+
20+
* :ref:`genindex`
21+
* :ref:`modindex`
22+
* :ref:`search`
Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
/* Compatability shim for jQuery and underscores.js.
2+
*
3+
* Copyright Sphinx contributors
4+
* Released under the two clause BSD licence
5+
*/
6+
7+
/**
8+
* small helper function to urldecode strings
9+
*
10+
* See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/decodeURIComponent#Decoding_query_parameters_from_a_URL
11+
*/
12+
jQuery.urldecode = function(x) {
13+
if (!x) {
14+
return x
15+
}
16+
return decodeURIComponent(x.replace(/\+/g, ' '));
17+
};
18+
19+
/**
20+
* small helper function to urlencode strings
21+
*/
22+
jQuery.urlencode = encodeURIComponent;
23+
24+
/**
25+
* This function returns the parsed url parameters of the
26+
* current request. Multiple values per key are supported,
27+
* it will always return arrays of strings for the value parts.
28+
*/
29+
jQuery.getQueryParameters = function(s) {
30+
if (typeof s === 'undefined')
31+
s = document.location.search;
32+
var parts = s.substr(s.indexOf('?') + 1).split('&');
33+
var result = {};
34+
for (var i = 0; i < parts.length; i++) {
35+
var tmp = parts[i].split('=', 2);
36+
var key = jQuery.urldecode(tmp[0]);
37+
var value = jQuery.urldecode(tmp[1]);
38+
if (key in result)
39+
result[key].push(value);
40+
else
41+
result[key] = [value];
42+
}
43+
return result;
44+
};
45+
46+
/**
47+
* highlight a given string on a jquery object by wrapping it in
48+
* span elements with the given class name.
49+
*/
50+
jQuery.fn.highlightText = function(text, className) {
51+
function highlight(node, addItems) {
52+
if (node.nodeType === 3) {
53+
var val = node.nodeValue;
54+
var pos = val.toLowerCase().indexOf(text);
55+
if (pos >= 0 &&
56+
!jQuery(node.parentNode).hasClass(className) &&
57+
!jQuery(node.parentNode).hasClass("nohighlight")) {
58+
var span;
59+
var isInSVG = jQuery(node).closest("body, svg, foreignObject").is("svg");
60+
if (isInSVG) {
61+
span = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
62+
} else {
63+
span = document.createElement("span");
64+
span.className = className;
65+
}
66+
span.appendChild(document.createTextNode(val.substr(pos, text.length)));
67+
node.parentNode.insertBefore(span, node.parentNode.insertBefore(
68+
document.createTextNode(val.substr(pos + text.length)),
69+
node.nextSibling));
70+
node.nodeValue = val.substr(0, pos);
71+
if (isInSVG) {
72+
var rect = document.createElementNS("http://www.w3.org/2000/svg", "rect");
73+
var bbox = node.parentElement.getBBox();
74+
rect.x.baseVal.value = bbox.x;
75+
rect.y.baseVal.value = bbox.y;
76+
rect.width.baseVal.value = bbox.width;
77+
rect.height.baseVal.value = bbox.height;
78+
rect.setAttribute('class', className);
79+
addItems.push({
80+
"parent": node.parentNode,
81+
"target": rect});
82+
}
83+
}
84+
}
85+
else if (!jQuery(node).is("button, select, textarea")) {
86+
jQuery.each(node.childNodes, function() {
87+
highlight(this, addItems);
88+
});
89+
}
90+
}
91+
var addItems = [];
92+
var result = this.each(function() {
93+
highlight(this, addItems);
94+
});
95+
for (var i = 0; i < addItems.length; ++i) {
96+
jQuery(addItems[i].parent).before(addItems[i].target);
97+
}
98+
return result;
99+
};
100+
101+
/*
102+
* backward compatibility for jQuery.browser
103+
* This will be supported until firefox bug is fixed.
104+
*/
105+
if (!jQuery.browser) {
106+
jQuery.uaMatch = function(ua) {
107+
ua = ua.toLowerCase();
108+
109+
var match = /(chrome)[ \/]([\w.]+)/.exec(ua) ||
110+
/(webkit)[ \/]([\w.]+)/.exec(ua) ||
111+
/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ua) ||
112+
/(msie) ([\w.]+)/.exec(ua) ||
113+
ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua) ||
114+
[];
115+
116+
return {
117+
browser: match[ 1 ] || "",
118+
version: match[ 2 ] || "0"
119+
};
120+
};
121+
jQuery.browser = {};
122+
jQuery.browser[jQuery.uaMatch(navigator.userAgent).browser] = true;
123+
}

0 commit comments

Comments
 (0)