@maxim_mazurok/gapi.client.privateca-v1 0.2.20260304 → 0.2.20260608
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +9 -5
- package/package.json +1 -1
- package/readme.md +12 -0
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://privateca.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20260608
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -133,6 +133,8 @@ declare namespace gapi.client {
|
|
|
133
133
|
pemCertificateChain?: string[];
|
|
134
134
|
/** Immutable. A pem-encoded X.509 certificate signing request (CSR). */
|
|
135
135
|
pemCsr?: string;
|
|
136
|
+
/** Optional. The requested not_before_time of this Certificate. This field may only be set if the CaPool.IssuancePolicy.allow_requester_specified_not_before_time field is set to true for the issuing CaPool. If this field is specified, the certificate will be issued with this 'not_before_time'. If this is not specified, the 'not_before_time' will be set to the issuance time or issuance time minus backdate_duration depending on the CaPool configuration. */
|
|
137
|
+
requestedNotBeforeTime?: string;
|
|
136
138
|
/** Output only. Details regarding the revocation of this Certificate. This Certificate is considered revoked if and only if this field is present. */
|
|
137
139
|
revocationDetails?: RevocationDetails;
|
|
138
140
|
/** Immutable. Specifies how the Certificate's identity fields are to be decided. If this is omitted, the `DEFAULT` subject mode will be used. */
|
|
@@ -363,6 +365,8 @@ declare namespace gapi.client {
|
|
|
363
365
|
allowedIssuanceModes?: IssuanceModes;
|
|
364
366
|
/** Optional. If any AllowedKeyType is specified, then the certificate request's public key must match one of the key types listed here. Otherwise, any key may be used. */
|
|
365
367
|
allowedKeyTypes?: AllowedKeyType[];
|
|
368
|
+
/** Optional. If set to true, allows requesters to specify the requested_not_before_time field when creating a Certificate. Certificates requested with this option enabled will have a 'not_before_time' equal to the value specified in the request. The 'not_after_time' will be adjusted to preserve the requested lifetime. The maximum time that a certificate can be backdated with these options is 48 hours in the past. This option cannot be set if backdate_duration is set. */
|
|
369
|
+
allowRequesterSpecifiedNotBeforeTime?: boolean;
|
|
366
370
|
/** Optional. If set, all certificates issued from this CaPool will be backdated by this duration. The 'not_before_time' will be the issuance time minus this backdate_duration, and the 'not_after_time' will be adjusted to preserve the requested lifetime. The maximum duration that a certificate can be backdated with these options is 48 hours in the past. This option cannot be set if allow_requester_specified_not_before_time is set. */
|
|
367
371
|
backdateDuration?: string;
|
|
368
372
|
/** Optional. A set of X.509 values that will be applied to all certificates issued through this CaPool. If a certificate request includes conflicting values for the same properties, they will be overwritten by the values defined here. If a certificate request uses a CertificateTemplate that defines conflicting predefined_values for the same properties, the certificate issuance request will fail. */
|
|
@@ -630,7 +634,7 @@ declare namespace gapi.client {
|
|
|
630
634
|
/** The status code, which should be an enum value of google.rpc.Code. */
|
|
631
635
|
code?: number;
|
|
632
636
|
/** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
|
|
633
|
-
details?:
|
|
637
|
+
details?: {[P in string]: any}[];
|
|
634
638
|
/** 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. */
|
|
635
639
|
message?: string;
|
|
636
640
|
}
|
|
@@ -1572,7 +1576,7 @@ declare namespace gapi.client {
|
|
|
1572
1576
|
pageSize?: number;
|
|
1573
1577
|
/** Optional. Pagination token, returned earlier via ListCertificatesResponse.next_page_token. */
|
|
1574
1578
|
pageToken?: string;
|
|
1575
|
-
/** Required. The resource name of the parent associated with the Certificates, in the format `projects/*/locations/*/caPools/*`. The parent resource name can be in one of two forms: 1. **Specific CA Pool:** To list certificates within a single CA Pool: `projects/*/locations/*/caPools/*` 2. **All CA Pools in a Location:** To list certificates across *all* CA Pools in a given project and location, use the wildcard character (`-`) in place of the CA Pool ID. Example: `projects/*/locations/*/caPools/-`
|
|
1579
|
+
/** Required. The resource name of the parent associated with the Certificates, in the format `projects/*/locations/*/caPools/*`. The parent resource name can be in one of two forms: 1. **Specific CA Pool:** To list certificates within a single CA Pool: `projects/*/locations/*/caPools/*` 2. **All CA Pools in a Location:** To list certificates across *all* CA Pools in a given project and location, use the wildcard character (`-`) in place of the CA Pool ID. Example: `projects/*/locations/*/caPools/-` */
|
|
1576
1580
|
parent: string;
|
|
1577
1581
|
/** Returns response with indentations and line breaks. */
|
|
1578
1582
|
prettyPrint?: boolean;
|
|
@@ -2575,7 +2579,7 @@ declare namespace gapi.client {
|
|
|
2575
2579
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2576
2580
|
uploadType?: string;
|
|
2577
2581
|
}): Request<Location>;
|
|
2578
|
-
/** Lists information about the supported locations for this service. This method
|
|
2582
|
+
/** Lists information about the supported locations for this service. This method lists locations based on the resource scope provided in the ListLocationsRequest.name field: * **Global locations**: If `name` is empty, the method lists the public locations available to all projects. * **Project-specific locations**: If `name` follows the format `projects/{project}`, the method lists locations visible to that specific project. This includes public, private, or other project-specific locations enabled for the project. For gRPC and client library implementations, the resource name is passed as the `name` field. For direct service calls, the resource name is incorporated into the request path based on the specific service implementation and version. */
|
|
2579
2583
|
list(request?: {
|
|
2580
2584
|
/** V1 error format. */
|
|
2581
2585
|
'$.xgafv'?: '1' | '2';
|
|
@@ -2585,7 +2589,7 @@ declare namespace gapi.client {
|
|
|
2585
2589
|
alt?: 'json' | 'media' | 'proto';
|
|
2586
2590
|
/** JSONP */
|
|
2587
2591
|
callback?: string;
|
|
2588
|
-
/** Optional. Do not use this field
|
|
2592
|
+
/** Optional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage. */
|
|
2589
2593
|
extraLocationTypes?: string | string[];
|
|
2590
2594
|
/** Selector specifying which fields to include in a partial response. */
|
|
2591
2595
|
fields?: string;
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -11,6 +11,18 @@ Install typings for Certificate Authority API:
|
|
|
11
11
|
npm install @types/gapi.client.privateca-v1 --save-dev
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
+
## TypeScript 6.0+
|
|
15
|
+
|
|
16
|
+
TypeScript 6.0 changed `types` to default to `[]`. You must now explicitly list type packages in `tsconfig.json`:
|
|
17
|
+
|
|
18
|
+
```json
|
|
19
|
+
{
|
|
20
|
+
"compilerOptions": {
|
|
21
|
+
"types": ["gapi", "gapi.auth2", "gapi.client", "gapi.client.privateca-v1"]
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
```
|
|
25
|
+
|
|
14
26
|
## Usage
|
|
15
27
|
|
|
16
28
|
You need to initialize Google API client in your code:
|