| 1 |
<html><body> |
| 2 |
<style> |
| 3 |
|
| 4 |
body, h1, h2, h3, div, span, p, pre, a { |
| 5 |
margin: 0; |
| 6 |
padding: 0; |
| 7 |
border: 0; |
| 8 |
font-weight: inherit; |
| 9 |
font-style: inherit; |
| 10 |
font-size: 100%; |
| 11 |
font-family: inherit; |
| 12 |
vertical-align: baseline; |
| 13 |
} |
| 14 |
|
| 15 |
body { |
| 16 |
font-size: 13px; |
| 17 |
padding: 1em; |
| 18 |
} |
| 19 |
|
| 20 |
h1 { |
| 21 |
font-size: 26px; |
| 22 |
margin-bottom: 1em; |
| 23 |
} |
| 24 |
|
| 25 |
h2 { |
| 26 |
font-size: 24px; |
| 27 |
margin-bottom: 1em; |
| 28 |
} |
| 29 |
|
| 30 |
h3 { |
| 31 |
font-size: 20px; |
| 32 |
margin-bottom: 1em; |
| 33 |
margin-top: 1em; |
| 34 |
} |
| 35 |
|
| 36 |
pre, code { |
| 37 |
line-height: 1.5; |
| 38 |
font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; |
| 39 |
} |
| 40 |
|
| 41 |
pre { |
| 42 |
margin-top: 0.5em; |
| 43 |
} |
| 44 |
|
| 45 |
h1, h2, h3, p { |
| 46 |
font-family: Arial, sans serif; |
| 47 |
} |
| 48 |
|
| 49 |
h1, h2, h3 { |
| 50 |
border-bottom: solid #CCC 1px; |
| 51 |
} |
| 52 |
|
| 53 |
.toc_element { |
| 54 |
margin-top: 0.5em; |
| 55 |
} |
| 56 |
|
| 57 |
.firstline { |
| 58 |
margin-left: 2 em; |
| 59 |
} |
| 60 |
|
| 61 |
.method { |
| 62 |
margin-top: 1em; |
| 63 |
border: solid 1px #CCC; |
| 64 |
padding: 1em; |
| 65 |
background: #EEE; |
| 66 |
} |
| 67 |
|
| 68 |
.details { |
| 69 |
font-weight: bold; |
| 70 |
font-size: 14px; |
| 71 |
} |
| 72 |
|
| 73 |
</style> |
| 74 |
|
| 75 |
<h1><a href="discoveryengine_v1.html">Discovery Engine API</a> . <a href="discoveryengine_v1.projects.html">projects</a> . <a href="discoveryengine_v1.projects.locations.html">locations</a> . <a href="discoveryengine_v1.projects.locations.cmekConfigs.html">cmekConfigs</a></h1> |
| 76 |
<h2>Instance Methods</h2> |
| 77 |
<p class="toc_element"> |
| 78 |
<code><a href="#close">close()</a></code></p> |
| 79 |
<p class="firstline">Close httplib2 connections.</p> |
| 80 |
<p class="toc_element"> |
| 81 |
<code><a href="#delete">delete(name, x__xgafv=None)</a></code></p> |
| 82 |
<p class="firstline">De-provisions a CmekConfig.</p> |
| 83 |
<p class="toc_element"> |
| 84 |
<code><a href="#get">get(name, x__xgafv=None)</a></code></p> |
| 85 |
<p class="firstline">Gets the CmekConfig.</p> |
| 86 |
<p class="toc_element"> |
| 87 |
<code><a href="#list">list(parent, x__xgafv=None)</a></code></p> |
| 88 |
<p class="firstline">Lists all the CmekConfigs with the project.</p> |
| 89 |
<p class="toc_element"> |
| 90 |
<code><a href="#patch">patch(name, body=None, setDefault=None, x__xgafv=None)</a></code></p> |
| 91 |
<p class="firstline">Provisions a CMEK key for use in a location of a customer's project. This method will also conduct location validation on the provided cmekConfig to make sure the key is valid and can be used in the selected location.</p> |
| 92 |
<h3>Method Details</h3> |
| 93 |
<div class="method"> |
| 94 |
<code class="details" id="close">close()</code> |
| 95 |
<pre>Close httplib2 connections.</pre> |
| 96 |
</div> |
| 97 |
|
| 98 |
<div class="method"> |
| 99 |
<code class="details" id="delete">delete(name, x__xgafv=None)</code> |
| 100 |
<pre>De-provisions a CmekConfig. |
| 101 |
|
| 102 |
Args: |
| 103 |
name: string, Required. The resource name of the CmekConfig to delete, such as `projects/{project}/locations/{location}/cmekConfigs/{cmek_config}`. (required) |
| 104 |
x__xgafv: string, V1 error format. |
| 105 |
Allowed values |
| 106 |
1 - v1 error format |
| 107 |
2 - v2 error format |
| 108 |
|
| 109 |
Returns: |
| 110 |
An object of the form: |
| 111 |
|
| 112 |
{ # This resource represents a long-running operation that is the result of a network API call. |
| 113 |
"done": True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. |
| 114 |
"error": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation. |
| 115 |
"code": 42, # The status code, which should be an enum value of google.rpc.Code. |
| 116 |
"details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. |
| 117 |
{ |
| 118 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 119 |
}, |
| 120 |
], |
| 121 |
"message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. |
| 122 |
}, |
| 123 |
"metadata": { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. |
| 124 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 125 |
}, |
| 126 |
"name": "A String", # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. |
| 127 |
"response": { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. |
| 128 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 129 |
}, |
| 130 |
}</pre> |
| 131 |
</div> |
| 132 |
|
| 133 |
<div class="method"> |
| 134 |
<code class="details" id="get">get(name, x__xgafv=None)</code> |
| 135 |
<pre>Gets the CmekConfig. |
| 136 |
|
| 137 |
Args: |
| 138 |
name: string, Required. Resource name of CmekConfig, such as `projects/*/locations/*/cmekConfig` or `projects/*/locations/*/cmekConfigs/*`. If the caller does not have permission to access the CmekConfig, regardless of whether or not it exists, a PERMISSION_DENIED error is returned. (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 |
{ # Configurations used to enable CMEK data encryption with Cloud KMS keys. |
| 148 |
"isDefault": True or False, # Output only. The default CmekConfig for the Customer. |
| 149 |
"kmsKey": "A String", # Required. KMS key resource name which will be used to encrypt resources `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{keyId}`. |
| 150 |
"kmsKeyVersion": "A String", # Output only. KMS key version resource name which will be used to encrypt resources `/cryptoKeyVersions/{keyVersion}`. |
| 151 |
"lastRotationTimestampMicros": "A String", # Output only. The timestamp of the last key rotation. |
| 152 |
"name": "A String", # Required. The name of the CmekConfig of the form `projects/{project}/locations/{location}/cmekConfig` or `projects/{project}/locations/{location}/cmekConfigs/{cmek_config}`. |
| 153 |
"notebooklmState": "A String", # Output only. Whether the NotebookLM Corpus is ready to be used. |
| 154 |
"singleRegionKeys": [ # Optional. Single-regional CMEKs that are required for some VAIS features. |
| 155 |
{ # Metadata for single-regional CMEKs. |
| 156 |
"kmsKey": "A String", # Required. Single-regional kms key resource name which will be used to encrypt resources `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{keyId}`. |
| 157 |
}, |
| 158 |
], |
| 159 |
"state": "A String", # Output only. The states of the CmekConfig. |
| 160 |
}</pre> |
| 161 |
</div> |
| 162 |
|
| 163 |
<div class="method"> |
| 164 |
<code class="details" id="list">list(parent, x__xgafv=None)</code> |
| 165 |
<pre>Lists all the CmekConfigs with the project. |
| 166 |
|
| 167 |
Args: |
| 168 |
parent: string, Required. The parent location resource name, such as `projects/{project}/locations/{location}`. If the caller does not have permission to list CmekConfigs under this location, regardless of whether or not a CmekConfig exists, a PERMISSION_DENIED error is returned. (required) |
| 169 |
x__xgafv: string, V1 error format. |
| 170 |
Allowed values |
| 171 |
1 - v1 error format |
| 172 |
2 - v2 error format |
| 173 |
|
| 174 |
Returns: |
| 175 |
An object of the form: |
| 176 |
|
| 177 |
{ # Response message for CmekConfigService.ListCmekConfigs method. |
| 178 |
"cmekConfigs": [ # All the customer's CmekConfigs. |
| 179 |
{ # Configurations used to enable CMEK data encryption with Cloud KMS keys. |
| 180 |
"isDefault": True or False, # Output only. The default CmekConfig for the Customer. |
| 181 |
"kmsKey": "A String", # Required. KMS key resource name which will be used to encrypt resources `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{keyId}`. |
| 182 |
"kmsKeyVersion": "A String", # Output only. KMS key version resource name which will be used to encrypt resources `/cryptoKeyVersions/{keyVersion}`. |
| 183 |
"lastRotationTimestampMicros": "A String", # Output only. The timestamp of the last key rotation. |
| 184 |
"name": "A String", # Required. The name of the CmekConfig of the form `projects/{project}/locations/{location}/cmekConfig` or `projects/{project}/locations/{location}/cmekConfigs/{cmek_config}`. |
| 185 |
"notebooklmState": "A String", # Output only. Whether the NotebookLM Corpus is ready to be used. |
| 186 |
"singleRegionKeys": [ # Optional. Single-regional CMEKs that are required for some VAIS features. |
| 187 |
{ # Metadata for single-regional CMEKs. |
| 188 |
"kmsKey": "A String", # Required. Single-regional kms key resource name which will be used to encrypt resources `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{keyId}`. |
| 189 |
}, |
| 190 |
], |
| 191 |
"state": "A String", # Output only. The states of the CmekConfig. |
| 192 |
}, |
| 193 |
], |
| 194 |
}</pre> |
| 195 |
</div> |
| 196 |
|
| 197 |
<div class="method"> |
| 198 |
<code class="details" id="patch">patch(name, body=None, setDefault=None, x__xgafv=None)</code> |
| 199 |
<pre>Provisions a CMEK key for use in a location of a customer's project. This method will also conduct location validation on the provided cmekConfig to make sure the key is valid and can be used in the selected location. |
| 200 |
|
| 201 |
Args: |
| 202 |
name: string, Required. The name of the CmekConfig of the form `projects/{project}/locations/{location}/cmekConfig` or `projects/{project}/locations/{location}/cmekConfigs/{cmek_config}`. (required) |
| 203 |
body: object, The request body. |
| 204 |
The object takes the form of: |
| 205 |
|
| 206 |
{ # Configurations used to enable CMEK data encryption with Cloud KMS keys. |
| 207 |
"isDefault": True or False, # Output only. The default CmekConfig for the Customer. |
| 208 |
"kmsKey": "A String", # Required. KMS key resource name which will be used to encrypt resources `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{keyId}`. |
| 209 |
"kmsKeyVersion": "A String", # Output only. KMS key version resource name which will be used to encrypt resources `/cryptoKeyVersions/{keyVersion}`. |
| 210 |
"lastRotationTimestampMicros": "A String", # Output only. The timestamp of the last key rotation. |
| 211 |
"name": "A String", # Required. The name of the CmekConfig of the form `projects/{project}/locations/{location}/cmekConfig` or `projects/{project}/locations/{location}/cmekConfigs/{cmek_config}`. |
| 212 |
"notebooklmState": "A String", # Output only. Whether the NotebookLM Corpus is ready to be used. |
| 213 |
"singleRegionKeys": [ # Optional. Single-regional CMEKs that are required for some VAIS features. |
| 214 |
{ # Metadata for single-regional CMEKs. |
| 215 |
"kmsKey": "A String", # Required. Single-regional kms key resource name which will be used to encrypt resources `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{keyId}`. |
| 216 |
}, |
| 217 |
], |
| 218 |
"state": "A String", # Output only. The states of the CmekConfig. |
| 219 |
} |
| 220 |
|
| 221 |
setDefault: boolean, Set the following CmekConfig as the default to be used for child resources if one is not specified. |
| 222 |
x__xgafv: string, V1 error format. |
| 223 |
Allowed values |
| 224 |
1 - v1 error format |
| 225 |
2 - v2 error format |
| 226 |
|
| 227 |
Returns: |
| 228 |
An object of the form: |
| 229 |
|
| 230 |
{ # This resource represents a long-running operation that is the result of a network API call. |
| 231 |
"done": True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. |
| 232 |
"error": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation. |
| 233 |
"code": 42, # The status code, which should be an enum value of google.rpc.Code. |
| 234 |
"details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. |
| 235 |
{ |
| 236 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 237 |
}, |
| 238 |
], |
| 239 |
"message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. |
| 240 |
}, |
| 241 |
"metadata": { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. |
| 242 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 243 |
}, |
| 244 |
"name": "A String", # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. |
| 245 |
"response": { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. |
| 246 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 247 |
}, |
| 248 |
}</pre> |
| 249 |
</div> |
| 250 |
|
| 251 |
</body></html> |