Skip to content

Commit

Permalink
6.3.2 controller release (PaloAltoNetworks#12)
Browse files Browse the repository at this point in the history
* 6.3.2b1: Initial Controller draft.

* fixed tsg_id issue with login_secret and removing tenant_id from ws_api

* regenerated docs
  • Loading branch information
dipeshah authored Feb 28, 2024
1 parent 4df9c91 commit f642a83
Show file tree
Hide file tree
Showing 19 changed files with 1,310 additions and 173 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ MIT
#### Version
| Version | Build | Changes |
|-----------| ----- |-----------------------------------------------|
| **6.3.2** | **b1** | Support for February 2023 Controller release. |
| **6.3.1** | **b1** | Support for November 2023 Controller release. |
| **6.2.3** | **b1** | Support for August 2023 Controller release. |
| **6.2.2** | **b1** | Support for June 2023 Controller release. |
Expand Down
103 changes: 95 additions & 8 deletions docs/delete_api.m.html

Large diffs are not rendered by default.

251 changes: 227 additions & 24 deletions docs/get_api.m.html

Large diffs are not rendered by default.

44 changes: 39 additions & 5 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<title>prisma_sase documentation</title>
<meta name="description" content="Python3 SDK for the Prisma SASE AppFabric

**Version:** v6.3.1b1
**Version:** v6.3.2b1

**Author:** Palo Alto Networks

Expand Down Expand Up @@ -2676,7 +2676,7 @@ <h2>Index</h2>
<header id="section-intro">
<h1 class="title"><span class="name">prisma_sase</span> module</h1>
<p>Python3 SDK for the Prisma SASE AppFabric</p>
<p><strong>Version:</strong> v6.3.1b1</p>
<p><strong>Version:</strong> v6.3.2b1</p>
<p><strong>Author:</strong> Palo Alto Networks</p>
<p><strong>Copyright:</strong> © 2023 Palo Alto Networks. All rights reserved</p>
<p><strong>License:</strong> MIT</p>
Expand Down Expand Up @@ -2725,7 +2725,7 @@ <h4>For more info</h4>
<div class="codehilite"><pre><span></span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd">Python3 SDK for the Prisma SASE AppFabric</span>

<span class="sd">**Version:** v6.3.1b1</span>
<span class="sd">**Version:** v6.3.2b1</span>

<span class="sd">**Author:** Palo Alto Networks</span>

Expand Down Expand Up @@ -2885,7 +2885,7 @@ <h4>For more info</h4>
<span class="sd">&quot;&quot;&quot;websocket logger is handled slightly differently, so we will have a seperate handle.&quot;&quot;&quot;</span>

<span class="c1"># Version of SDK</span>
<span class="n">version</span> <span class="o">=</span> <span class="s2">&quot;6.3.1b1&quot;</span>
<span class="n">version</span> <span class="o">=</span> <span class="s2">&quot;6.3.2b1&quot;</span>
<span class="sd">&quot;&quot;&quot;SDK Version string&quot;&quot;&quot;</span>
<span class="n">__version__</span> <span class="o">=</span> <span class="n">version</span>

Expand Down Expand Up @@ -3205,6 +3205,12 @@ <h4>For more info</h4>
<span class="s2">&quot;eu&quot;</span><span class="p">:</span> <span class="s2">&quot;europe&quot;</span><span class="p">}</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot; static mapping of telemetry region to x_panw_region &quot;&quot;&quot;</span>

<span class="n">client_secret</span> <span class="o">=</span> <span class="kc">None</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot; needed for login_secret func &quot;&quot;&quot;</span>

<span class="n">tsg_id</span> <span class="o">=</span> <span class="kc">None</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot; needed for login_secret func &quot;&quot;&quot;</span>

<span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">controller</span><span class="o">=</span><span class="n">controller</span><span class="p">,</span> <span class="n">ssl_verify</span><span class="o">=</span><span class="n">verify</span><span class="p">,</span> <span class="n">update_check</span><span class="o">=</span><span class="kc">True</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Create the API constructor object</span>
Expand Down Expand Up @@ -5060,6 +5066,12 @@ <h3 class="section-title" id="header-classes">Classes</h3>
<span class="s2">&quot;eu&quot;</span><span class="p">:</span> <span class="s2">&quot;europe&quot;</span><span class="p">}</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot; static mapping of telemetry region to x_panw_region &quot;&quot;&quot;</span>

<span class="n">client_secret</span> <span class="o">=</span> <span class="kc">None</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot; needed for login_secret func &quot;&quot;&quot;</span>

<span class="n">tsg_id</span> <span class="o">=</span> <span class="kc">None</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot; needed for login_secret func &quot;&quot;&quot;</span>

<span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">controller</span><span class="o">=</span><span class="n">controller</span><span class="p">,</span> <span class="n">ssl_verify</span><span class="o">=</span><span class="n">verify</span><span class="p">,</span> <span class="n">update_check</span><span class="o">=</span><span class="kc">True</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Create the API constructor object</span>
Expand Down Expand Up @@ -6506,6 +6518,17 @@ <h3>Class variables</h3>
<div class="source_cont">
</div>

</div>
<div class="item" id="prisma_sase.API.client_secret">
<p class="name">var <span class="ident">client_secret</span></p>




<div class="desc"><p>needed for login_secret func</p></div>
<div class="source_cont">
</div>

</div>
<div class="item" id="prisma_sase.API.controller">
<p class="name">var <span class="ident">controller</span></p>
Expand Down Expand Up @@ -6715,6 +6738,17 @@ <h3>Class variables</h3>
<div class="source_cont">
</div>

</div>
<div class="item" id="prisma_sase.API.tsg_id">
<p class="name">var <span class="ident">tsg_id</span></p>




<div class="desc"><p>needed for login_secret func</p></div>
<div class="source_cont">
</div>

</div>
<div class="item" id="prisma_sase.API.update_check">
<p class="name">var <span class="ident">update_check</span></p>
Expand Down Expand Up @@ -7081,7 +7115,7 @@ <h3>Static methods</h3>

<div class="item" id="prisma_sase.API.modify_rest_retry">
<div class="name def">
<p>def <span class="ident">modify_rest_retry</span>(</p><p>self, total=8, connect=None, read=None, redirect=None, status=None, other=0, allowed_methods=frozenset({&#39;GET&#39;, &#39;TRACE&#39;, &#39;OPTIONS&#39;, &#39;DELETE&#39;, &#39;PUT&#39;, &#39;HEAD&#39;}), status_forcelist=None, backoff_factor=0.705883, raise_on_redirect=True, raise_on_status=True, respect_retry_after_header=True, update_adapter=True)</p>
<p>def <span class="ident">modify_rest_retry</span>(</p><p>self, total=8, connect=None, read=None, redirect=None, status=None, other=0, allowed_methods=frozenset({&#39;GET&#39;, &#39;OPTIONS&#39;, &#39;DELETE&#39;, &#39;TRACE&#39;, &#39;PUT&#39;, &#39;HEAD&#39;}), status_forcelist=None, backoff_factor=0.705883, raise_on_redirect=True, raise_on_status=True, respect_retry_after_header=True, update_adapter=True)</p>
</div>


Expand Down
21 changes: 12 additions & 9 deletions docs/interactive.m.html
Original file line number Diff line number Diff line change
Expand Up @@ -2979,16 +2979,17 @@ <h1 class="title"><span class="name">prisma_sase.interactive</span> module</h1>
<span class="c1"># if tsg_id not given on function, or if first login fails, prompt.</span>
<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">_parent_class</span><span class="o">.</span><span class="n">tsg_id</span><span class="p">:</span>
<span class="n">tsg_id</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_parent_class</span><span class="o">.</span><span class="n">tsg_id</span>
<span class="k">else</span><span class="p">:</span>
<span class="n">tsg_id</span> <span class="o">=</span> <span class="n">compat_input</span><span class="p">(</span><span class="n">tsg_id_prompt</span><span class="p">)</span>

<span class="k">if</span> <span class="n">grant_type</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
<span class="c1"># if grant_type not given.</span>
<span class="n">grant_type</span> <span class="o">=</span> <span class="s1">&#39;client_credentials&#39;</span>

<span class="k">if</span> <span class="n">scope</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
<span class="c1"># if grant_type not given.</span>
<span class="n">scope</span> <span class="o">=</span> <span class="s1">&#39;tsg_id:</span><span class="si">{0}</span><span class="s1"> email profile&#39;</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="n">tsg_id</span><span class="p">)</span>
<span class="k">if</span> <span class="n">tsg_id</span> <span class="ow">is</span> <span class="kc">None</span> <span class="ow">or</span> <span class="n">tsg_id</span> <span class="o">==</span> <span class="s1">&#39;&#39;</span><span class="p">:</span>
<span class="n">scope</span> <span class="o">=</span> <span class="s1">&#39;email profile&#39;</span>
<span class="k">else</span><span class="p">:</span>
<span class="n">scope</span> <span class="o">=</span> <span class="s1">&#39;tsg_id:</span><span class="si">{0}</span><span class="s1"> email profile&#39;</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="n">tsg_id</span><span class="p">)</span>

<span class="bp">self</span><span class="o">.</span><span class="n">_parent_class</span><span class="o">.</span><span class="n">client_id</span> <span class="o">=</span> <span class="n">client_id</span>
<span class="bp">self</span><span class="o">.</span><span class="n">_parent_class</span><span class="o">.</span><span class="n">client_secret</span> <span class="o">=</span> <span class="n">client_secret</span>
Expand Down Expand Up @@ -4150,16 +4151,17 @@ <h3 class="section-title" id="header-classes">Classes</h3>
<span class="c1"># if tsg_id not given on function, or if first login fails, prompt.</span>
<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">_parent_class</span><span class="o">.</span><span class="n">tsg_id</span><span class="p">:</span>
<span class="n">tsg_id</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_parent_class</span><span class="o">.</span><span class="n">tsg_id</span>
<span class="k">else</span><span class="p">:</span>
<span class="n">tsg_id</span> <span class="o">=</span> <span class="n">compat_input</span><span class="p">(</span><span class="n">tsg_id_prompt</span><span class="p">)</span>

<span class="k">if</span> <span class="n">grant_type</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
<span class="c1"># if grant_type not given.</span>
<span class="n">grant_type</span> <span class="o">=</span> <span class="s1">&#39;client_credentials&#39;</span>

<span class="k">if</span> <span class="n">scope</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
<span class="c1"># if grant_type not given.</span>
<span class="n">scope</span> <span class="o">=</span> <span class="s1">&#39;tsg_id:</span><span class="si">{0}</span><span class="s1"> email profile&#39;</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="n">tsg_id</span><span class="p">)</span>
<span class="k">if</span> <span class="n">tsg_id</span> <span class="ow">is</span> <span class="kc">None</span> <span class="ow">or</span> <span class="n">tsg_id</span> <span class="o">==</span> <span class="s1">&#39;&#39;</span><span class="p">:</span>
<span class="n">scope</span> <span class="o">=</span> <span class="s1">&#39;email profile&#39;</span>
<span class="k">else</span><span class="p">:</span>
<span class="n">scope</span> <span class="o">=</span> <span class="s1">&#39;tsg_id:</span><span class="si">{0}</span><span class="s1"> email profile&#39;</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="n">tsg_id</span><span class="p">)</span>

<span class="bp">self</span><span class="o">.</span><span class="n">_parent_class</span><span class="o">.</span><span class="n">client_id</span> <span class="o">=</span> <span class="n">client_id</span>
<span class="bp">self</span><span class="o">.</span><span class="n">_parent_class</span><span class="o">.</span><span class="n">client_secret</span> <span class="o">=</span> <span class="n">client_secret</span>
Expand Down Expand Up @@ -5747,14 +5749,15 @@ <h3>Static methods</h3>
<span class="c1"># if tsg_id not given on function, or if first login fails, prompt.</span>
<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">_parent_class</span><span class="o">.</span><span class="n">tsg_id</span><span class="p">:</span>
<span class="n">tsg_id</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_parent_class</span><span class="o">.</span><span class="n">tsg_id</span>
<span class="k">else</span><span class="p">:</span>
<span class="n">tsg_id</span> <span class="o">=</span> <span class="n">compat_input</span><span class="p">(</span><span class="n">tsg_id_prompt</span><span class="p">)</span>
<span class="k">if</span> <span class="n">grant_type</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
<span class="c1"># if grant_type not given.</span>
<span class="n">grant_type</span> <span class="o">=</span> <span class="s1">&#39;client_credentials&#39;</span>
<span class="k">if</span> <span class="n">scope</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
<span class="c1"># if grant_type not given.</span>
<span class="n">scope</span> <span class="o">=</span> <span class="s1">&#39;tsg_id:</span><span class="si">{0}</span><span class="s1"> email profile&#39;</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="n">tsg_id</span><span class="p">)</span>
<span class="k">if</span> <span class="n">tsg_id</span> <span class="ow">is</span> <span class="kc">None</span> <span class="ow">or</span> <span class="n">tsg_id</span> <span class="o">==</span> <span class="s1">&#39;&#39;</span><span class="p">:</span>
<span class="n">scope</span> <span class="o">=</span> <span class="s1">&#39;email profile&#39;</span>
<span class="k">else</span><span class="p">:</span>
<span class="n">scope</span> <span class="o">=</span> <span class="s1">&#39;tsg_id:</span><span class="si">{0}</span><span class="s1"> email profile&#39;</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="n">tsg_id</span><span class="p">)</span>
<span class="bp">self</span><span class="o">.</span><span class="n">_parent_class</span><span class="o">.</span><span class="n">client_id</span> <span class="o">=</span> <span class="n">client_id</span>
<span class="bp">self</span><span class="o">.</span><span class="n">_parent_class</span><span class="o">.</span><span class="n">client_secret</span> <span class="o">=</span> <span class="n">client_secret</span>
<span class="bp">self</span><span class="o">.</span><span class="n">_parent_class</span><span class="o">.</span><span class="n">tsg_id</span> <span class="o">=</span> <span class="n">tsg_id</span>
Expand Down
Loading

0 comments on commit f642a83

Please sign in to comment.