Skip to content

Commit d53cfab

Browse files
feat(compute): update the api
#### compute:alpha The following keys were added: - resources.advice.methods.capacity (Total Keys: 20) - resources.regionBackendBuckets.methods.delete (Total Keys: 23) - resources.regionBackendBuckets.methods.get (Total Keys: 41) - resources.regionBackendBuckets.methods.insert (Total Keys: 18) - resources.regionBackendBuckets.methods.list (Total Keys: 56) - resources.regionBackendBuckets.methods.patch (Total Keys: 22) - resources.regionBackendBuckets.methods.setIamPolicy (Total Keys: 20) - resources.regionBackendBuckets.methods.testIamPermissions (Total Keys: 20) - schemas.CapacityAdviceRequest (Total Keys: 27) - schemas.CapacityAdviceResponse (Total Keys: 22) #### compute:beta The following keys were added: - schemas.FirewallPolicyRuleMatcher.properties.destNetworkType.type (Total Keys: 1) - schemas.FirewallPolicyRuleMatcher.properties.srcNetworkType.type (Total Keys: 1) - schemas.InstanceGroupManager.properties.targetSizePolicy.$ref (Total Keys: 1) - schemas.InstanceGroupManagerStatus.properties.bulkInstanceOperation.$ref (Total Keys: 1) - schemas.InstanceGroupManagerStatusBulkInstanceOperation (Total Keys: 20) - schemas.InstanceGroupManagerTargetSizePolicy (Total Keys: 3) - schemas.NetworkInterface.properties.igmpQuery.type (Total Keys: 1) #### compute:v1 The following keys were added: - schemas.Firewall.properties.params.$ref (Total Keys: 1) - schemas.FirewallParams (Total Keys: 4) - schemas.Route.properties.params.$ref (Total Keys: 1) - schemas.RouteParams (Total Keys: 4)
1 parent 5665787 commit d53cfab

31 files changed

+2990
-193
lines changed

docs/dyn/compute_alpha.advice.html

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ <h2>Instance Methods</h2>
7777
<p class="toc_element">
7878
<code><a href="#calendarMode">calendarMode(project, region, body=None, x__xgafv=None)</a></code></p>
7979
<p class="firstline">Advise how, where and when to create the requested amount of instances with specified accelerators, within the specified time and location limits. The method recommends creating future reservations for the requested resources.</p>
80+
<p class="toc_element">
81+
<code><a href="#capacity">capacity(project, region, size, body=None, x__xgafv=None)</a></code></p>
82+
<p class="firstline">Advice on making real-time decisions (such as choosing zone or machine types) during deployment to maximize your chances of obtaining capacity.</p>
8083
<p class="toc_element">
8184
<code><a href="#close">close()</a></code></p>
8285
<p class="firstline">Close httplib2 connections.</p>
@@ -162,6 +165,70 @@ <h3>Method Details</h3>
162165
}</pre>
163166
</div>
164167

168+
<div class="method">
169+
<code class="details" id="capacity">capacity(project, region, size, body=None, x__xgafv=None)</code>
170+
<pre>Advice on making real-time decisions (such as choosing zone or machine types) during deployment to maximize your chances of obtaining capacity.
171+
172+
Args:
173+
project: string, Project ID for this request. (required)
174+
region: string, Name of the region for this request. (required)
175+
size: integer, Size of requested capacity. (required)
176+
body: object, The request body.
177+
The object takes the form of:
178+
179+
{ # A request to provide Assistant Scores. These scores determine VM obtainability and preemption likelihood.
180+
&quot;distributionPolicy&quot;: { # Policy specifying the distribution of instances across zones within the requested region.
181+
&quot;targetShape&quot;: &quot;A String&quot;, # The distribution shape to which the group converges.
182+
&quot;zones&quot;: [ # Zones where Capacity Advisor looks for capacity.
183+
{
184+
&quot;zone&quot;: &quot;A String&quot;, # The URL of the zone.
185+
},
186+
],
187+
},
188+
&quot;instanceFlexibilityPolicy&quot;: { # Specification of alternative, flexible instance subsets. # Policy for instance selectors.
189+
&quot;instanceSelections&quot;: { # Named instance selections configure properties. The key is an arbitrary, unique RFC1035 string that identifies the instance selection.
190+
&quot;a_key&quot;: { # Machine specification.
191+
&quot;machineTypes&quot;: [ # Full machine-type names, e.g. &quot;n1-standard-16&quot;.
192+
&quot;A String&quot;,
193+
],
194+
},
195+
},
196+
},
197+
&quot;instanceProperties&quot;: { # Instance provisining properties. # Instance properties for this request.
198+
&quot;scheduling&quot;: { # Defines the instance scheduling options. # Specifies the scheduling options.
199+
&quot;provisioningModel&quot;: &quot;A String&quot;, # Specifies the provisioning model of the instance.
200+
},
201+
},
202+
}
203+
204+
x__xgafv: string, V1 error format.
205+
Allowed values
206+
1 - v1 error format
207+
2 - v2 error format
208+
209+
Returns:
210+
An object of the form:
211+
212+
{ # A response contains multiple scoring recommendations.
213+
&quot;recommendations&quot;: [ # Initially the API will provide one recommendation which balances the individual scores according to Google&#x27;s preference.
214+
{
215+
&quot;scores&quot;: { # The Scores message groups information about a shard of capacity.
216+
&quot;obtainability&quot;: 3.14, # The obtainability score indicates the likelihood of successfully obtaining (provisioning) the requested number of VMs. The score range is 0.0 through 1.0. Higher is better.
217+
&quot;spotPreemption&quot;: 3.14, # The preemption score indicates the likelihood that your Spot VMs is preempted. For more information about the preemption process, see Preemption of Spot VMs. The score range is 0.0 through 1.0. Higher is better.
218+
},
219+
&quot;shards&quot;: [
220+
{ # Shards represent blocks of uniform capacity in recommendations. Each shard is for a single zone, single instance selection, and a single machine shape. Each shard defines a size expressed as the number of VMs.
221+
&quot;instanceCount&quot;: 42,
222+
&quot;machineType&quot;: &quot;A String&quot;, # The machine type corresponds to the instance selection in the request.
223+
&quot;provisioningModel&quot;: &quot;A String&quot;, # Provisioning model of the recommended capacity.
224+
&quot;zone&quot;: &quot;A String&quot;, # The zone name for this shard.
225+
},
226+
],
227+
},
228+
],
229+
}</pre>
230+
</div>
231+
165232
<div class="method">
166233
<code class="details" id="close">close()</code>
167234
<pre>Close httplib2 connections.</pre>

docs/dyn/compute_alpha.backendServices.html

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

docs/dyn/compute_alpha.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,11 @@ <h2>Instance Methods</h2>
374374
</p>
375375
<p class="firstline">Returns the regionAutoscalers Resource.</p>
376376

377+
<p class="toc_element">
378+
<code><a href="compute_alpha.regionBackendBuckets.html">regionBackendBuckets()</a></code>
379+
</p>
380+
<p class="firstline">Returns the regionBackendBuckets Resource.</p>
381+
377382
<p class="toc_element">
378383
<code><a href="compute_alpha.regionBackendServices.html">regionBackendServices()</a></code>
379384
</p>

0 commit comments

Comments
 (0)