Skip to content

Commit fe0bcad

Browse files
feat(cloudtasks): update the api
#### cloudtasks:v2beta2 The following keys were added: - resources.projects.resources.locations.methods.getCmekConfig (Total Keys: 11) - resources.projects.resources.locations.methods.updateCmekConfig (Total Keys: 17) - schemas.CmekConfig (Total Keys: 5)
1 parent c9d14b9 commit fe0bcad

9 files changed

+243
-108
lines changed

docs/dyn/cloudtasks_v2.projects.locations.queues.html

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

docs/dyn/cloudtasks_v2.projects.locations.queues.tasks.html

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

docs/dyn/cloudtasks_v2beta2.projects.locations.html

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,18 @@ <h2>Instance Methods</h2>
8585
<p class="toc_element">
8686
<code><a href="#get">get(name, x__xgafv=None)</a></code></p>
8787
<p class="firstline">Gets information about a location.</p>
88+
<p class="toc_element">
89+
<code><a href="#getCmekConfig">getCmekConfig(name, x__xgafv=None)</a></code></p>
90+
<p class="firstline">Gets the CMEK config. Gets the Customer Managed Encryption Key configured with the Cloud Tasks lcoation. By default there is no kms_key configured.</p>
8891
<p class="toc_element">
8992
<code><a href="#list">list(name, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
9093
<p class="firstline">Lists information about the supported locations for this service.</p>
9194
<p class="toc_element">
9295
<code><a href="#list_next">list_next()</a></code></p>
9396
<p class="firstline">Retrieves the next page of results.</p>
97+
<p class="toc_element">
98+
<code><a href="#updateCmekConfig">updateCmekConfig(projectsId, locationsId, body=None, updateMask=None, x__xgafv=None)</a></code></p>
99+
<p class="firstline">Creates or Updates a CMEK config. Updates the Customer Managed Encryption Key assotiated with the Cloud Tasks location (Creates if the key does not already exist). All new tasks created in the location will be encrypted at-rest with the KMS-key provided in the config.</p>
94100
<h3>Method Details</h3>
95101
<div class="method">
96102
<code class="details" id="close">close()</code>
@@ -124,6 +130,26 @@ <h3>Method Details</h3>
124130
}</pre>
125131
</div>
126132

133+
<div class="method">
134+
<code class="details" id="getCmekConfig">getCmekConfig(name, x__xgafv=None)</code>
135+
<pre>Gets the CMEK config. Gets the Customer Managed Encryption Key configured with the Cloud Tasks lcoation. By default there is no kms_key configured.
136+
137+
Args:
138+
name: string, Required. The config. For example: projects/PROJECT_ID/locations/LOCATION_ID/CmekConfig` (required)
139+
x__xgafv: string, V1 error format.
140+
Allowed values
141+
1 - v1 error format
142+
2 - v2 error format
143+
144+
Returns:
145+
An object of the form:
146+
147+
{ # CMEK, or Customer Managed Encryption Keys, enables GCP products to put control over encryption and key management in their customer’s hands.
148+
&quot;kmsKey&quot;: &quot;A String&quot;, # Resource name of the Cloud KMS key, of the form `projects/PROJECT_ID/locations/LOCATION_ID/keyRings/KEY_RING_ID/cryptoKeys/KEY_ID`, that will be used to encrypt the Queues &amp; Tasks in the region. Setting this as blank will turn off CMEK encryption.
149+
&quot;name&quot;: &quot;A String&quot;, # Output only. The config resource name which includes the project and location and must end in &#x27;cmekConfig&#x27;, in the format projects/PROJECT_ID/locations/LOCATION_ID/cmekConfig`
150+
}</pre>
151+
</div>
152+
127153
<div class="method">
128154
<code class="details" id="list">list(name, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
129155
<pre>Lists information about the supported locations for this service.
@@ -173,4 +199,34 @@ <h3>Method Details</h3>
173199
</pre>
174200
</div>
175201

202+
<div class="method">
203+
<code class="details" id="updateCmekConfig">updateCmekConfig(projectsId, locationsId, body=None, updateMask=None, x__xgafv=None)</code>
204+
<pre>Creates or Updates a CMEK config. Updates the Customer Managed Encryption Key assotiated with the Cloud Tasks location (Creates if the key does not already exist). All new tasks created in the location will be encrypted at-rest with the KMS-key provided in the config.
205+
206+
Args:
207+
projectsId: string, A parameter (required)
208+
locationsId: string, A parameter (required)
209+
body: object, The request body.
210+
The object takes the form of:
211+
212+
{ # CMEK, or Customer Managed Encryption Keys, enables GCP products to put control over encryption and key management in their customer’s hands.
213+
&quot;kmsKey&quot;: &quot;A String&quot;, # Resource name of the Cloud KMS key, of the form `projects/PROJECT_ID/locations/LOCATION_ID/keyRings/KEY_RING_ID/cryptoKeys/KEY_ID`, that will be used to encrypt the Queues &amp; Tasks in the region. Setting this as blank will turn off CMEK encryption.
214+
&quot;name&quot;: &quot;A String&quot;, # Output only. The config resource name which includes the project and location and must end in &#x27;cmekConfig&#x27;, in the format projects/PROJECT_ID/locations/LOCATION_ID/cmekConfig`
215+
}
216+
217+
updateMask: string, List of fields to be updated in this request.
218+
x__xgafv: string, V1 error format.
219+
Allowed values
220+
1 - v1 error format
221+
2 - v2 error format
222+
223+
Returns:
224+
An object of the form:
225+
226+
{ # CMEK, or Customer Managed Encryption Keys, enables GCP products to put control over encryption and key management in their customer’s hands.
227+
&quot;kmsKey&quot;: &quot;A String&quot;, # Resource name of the Cloud KMS key, of the form `projects/PROJECT_ID/locations/LOCATION_ID/keyRings/KEY_RING_ID/cryptoKeys/KEY_ID`, that will be used to encrypt the Queues &amp; Tasks in the region. Setting this as blank will turn off CMEK encryption.
228+
&quot;name&quot;: &quot;A String&quot;, # Output only. The config resource name which includes the project and location and must end in &#x27;cmekConfig&#x27;, in the format projects/PROJECT_ID/locations/LOCATION_ID/cmekConfig`
229+
}</pre>
230+
</div>
231+
176232
</body></html>

docs/dyn/cloudtasks_v2beta2.projects.locations.queues.html

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

0 commit comments

Comments
 (0)