@maxim_mazurok/gapi.client.cloudcommerceprocurement-v1 0.0.20240609 → 0.0.20250831
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 +13 -13
- package/package.json +1 -1
- package/readme.md +4 -2
package/index.d.ts
CHANGED
|
@@ -9,14 +9,14 @@
|
|
|
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://cloudcommerceprocurement.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20250831
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
16
16
|
declare namespace gapi.client {
|
|
17
17
|
/** Load Cloud Commerce Partner Procurement API v1 */
|
|
18
18
|
function load(
|
|
19
|
-
urlOrObject: 'https://cloudcommerceprocurement.googleapis.com/$discovery/rest?version=v1'
|
|
19
|
+
urlOrObject: 'https://cloudcommerceprocurement.googleapis.com/$discovery/rest?version=v1',
|
|
20
20
|
): Promise<void>;
|
|
21
21
|
/** @deprecated Please load APIs with discovery documents. */
|
|
22
22
|
function load(name: 'cloudcommerceprocurement', version: 'v1'): Promise<void>;
|
|
@@ -24,7 +24,7 @@ declare namespace gapi.client {
|
|
|
24
24
|
function load(
|
|
25
25
|
name: 'cloudcommerceprocurement',
|
|
26
26
|
version: 'v1',
|
|
27
|
-
callback: () => any
|
|
27
|
+
callback: () => any,
|
|
28
28
|
): void;
|
|
29
29
|
|
|
30
30
|
namespace cloudcommerceprocurement {
|
|
@@ -221,7 +221,7 @@ declare namespace gapi.client {
|
|
|
221
221
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
222
222
|
uploadType?: string;
|
|
223
223
|
},
|
|
224
|
-
body: ApproveAccountRequest
|
|
224
|
+
body: ApproveAccountRequest,
|
|
225
225
|
): Request<{}>;
|
|
226
226
|
/** Gets a requested Account resource. */
|
|
227
227
|
get(request?: {
|
|
@@ -337,7 +337,7 @@ declare namespace gapi.client {
|
|
|
337
337
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
338
338
|
uploadType?: string;
|
|
339
339
|
},
|
|
340
|
-
body: RejectAccountRequest
|
|
340
|
+
body: RejectAccountRequest,
|
|
341
341
|
): Request<{}>;
|
|
342
342
|
/** Resets an Account and cancels all associated Entitlements. Partner can only reset accounts they own rather than customer accounts. */
|
|
343
343
|
reset(request: {
|
|
@@ -395,7 +395,7 @@ declare namespace gapi.client {
|
|
|
395
395
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
396
396
|
uploadType?: string;
|
|
397
397
|
},
|
|
398
|
-
body: ResetAccountRequest
|
|
398
|
+
body: ResetAccountRequest,
|
|
399
399
|
): Request<{}>;
|
|
400
400
|
}
|
|
401
401
|
interface EntitlementsResource {
|
|
@@ -455,7 +455,7 @@ declare namespace gapi.client {
|
|
|
455
455
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
456
456
|
uploadType?: string;
|
|
457
457
|
},
|
|
458
|
-
body: ApproveEntitlementRequest
|
|
458
|
+
body: ApproveEntitlementRequest,
|
|
459
459
|
): Request<{}>;
|
|
460
460
|
/** Approves an entitlement plan change that is in the EntitlementState.ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL state. This method is invoked by the provider to approve the plan change on the entitlement resource. */
|
|
461
461
|
approvePlanChange(request: {
|
|
@@ -513,7 +513,7 @@ declare namespace gapi.client {
|
|
|
513
513
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
514
514
|
uploadType?: string;
|
|
515
515
|
},
|
|
516
|
-
body: ApproveEntitlementPlanChangeRequest
|
|
516
|
+
body: ApproveEntitlementPlanChangeRequest,
|
|
517
517
|
): Request<{}>;
|
|
518
518
|
/** Gets a requested Entitlement resource. */
|
|
519
519
|
get(request?: {
|
|
@@ -554,7 +554,7 @@ declare namespace gapi.client {
|
|
|
554
554
|
callback?: string;
|
|
555
555
|
/** Selector specifying which fields to include in a partial response. */
|
|
556
556
|
fields?: string;
|
|
557
|
-
/** The filter that can be used to limit the list request. The filter is a query string that can match a selected set of attributes with string values. For example `account=E-1234-5678-ABCD-EFGH`, `state=pending_cancellation`, and `plan!=foo-plan`. Supported query attributes are * `account` * `customer_billing_account` with value in the format of: `billingAccounts/{id}` * `product_external_name` * `quote_external_name` * `offer` * `new_pending_offer` * `plan` * `newPendingPlan` or `new_pending_plan` * `state` * `consumers.project` * `change_history.new_offer` Note that the consumers and change_history.new_offer match works on repeated structures, so equality (`consumers.project=projects/123456789`) is not supported. Set membership can be expressed with the `:` operator. For example, `consumers.project:projects/123456789` finds entitlements with at least one consumer with project field equal to `projects/123456789`. `change_history.new_offer` retrieves all entitlements that were once associated or are currently active with the offer. Also note that the state name match is case-insensitive and query can omit the prefix "ENTITLEMENT_". For example, `state=active` is equivalent to `state=ENTITLEMENT_ACTIVE`. If the query contains some special characters other than letters, underscore, or digits, the phrase must be quoted with double quotes. For example, `product="providerId:productId"`, where the product name needs to be quoted because it contains special character colon. Queries can be combined with `AND`, `OR`, and `NOT` to form more complex queries. They can also be grouped to force a desired evaluation order. For example, `state=active AND (account=E-1234 OR account=5678) AND NOT (product=foo-product)`. Connective `AND` can be omitted between two predicates. For example `account=E-1234 state=active` is equivalent to `account=E-1234 AND state=active`. */
|
|
557
|
+
/** The filter that can be used to limit the list request. The filter is a query string that can match a selected set of attributes with string values. For example `account=E-1234-5678-ABCD-EFGH`, `state=pending_cancellation`, and `plan!=foo-plan`. Supported query attributes are * `account` * `customer_billing_account` with value in the format of: `billingAccounts/{id}` * `product_external_name` * `quote_external_name` * `offer` * `new_pending_offer` * `plan` * `newPendingPlan` or `new_pending_plan` * `state` * `services` * `consumers.project` * `change_history.new_offer` Note that the consumers and change_history.new_offer match works on repeated structures, so equality (`consumers.project=projects/123456789`) is not supported. Set membership can be expressed with the `:` operator. For example, `consumers.project:projects/123456789` finds entitlements with at least one consumer with project field equal to `projects/123456789`. `change_history.new_offer` retrieves all entitlements that were once associated or are currently active with the offer. Also note that the state name match is case-insensitive and query can omit the prefix "ENTITLEMENT_". For example, `state=active` is equivalent to `state=ENTITLEMENT_ACTIVE`. If the query contains some special characters other than letters, underscore, or digits, the phrase must be quoted with double quotes. For example, `product="providerId:productId"`, where the product name needs to be quoted because it contains special character colon. Queries can be combined with `AND`, `OR`, and `NOT` to form more complex queries. They can also be grouped to force a desired evaluation order. For example, `state=active AND (account=E-1234 OR account=5678) AND NOT (product=foo-product)`. Connective `AND` can be omitted between two predicates. For example `account=E-1234 state=active` is equivalent to `account=E-1234 AND state=active`. */
|
|
558
558
|
filter?: string;
|
|
559
559
|
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
560
560
|
key?: string;
|
|
@@ -635,7 +635,7 @@ declare namespace gapi.client {
|
|
|
635
635
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
636
636
|
uploadType?: string;
|
|
637
637
|
},
|
|
638
|
-
body: Entitlement
|
|
638
|
+
body: Entitlement,
|
|
639
639
|
): Request<Entitlement>;
|
|
640
640
|
/** Rejects an entitlement that is in the EntitlementState.ENTITLEMENT_ACTIVATION_REQUESTED state. This method is invoked by the provider to reject the creation of the entitlement resource. */
|
|
641
641
|
reject(request: {
|
|
@@ -693,7 +693,7 @@ declare namespace gapi.client {
|
|
|
693
693
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
694
694
|
uploadType?: string;
|
|
695
695
|
},
|
|
696
|
-
body: RejectEntitlementRequest
|
|
696
|
+
body: RejectEntitlementRequest,
|
|
697
697
|
): Request<{}>;
|
|
698
698
|
/** Rejects an entitlement plan change that is in the EntitlementState.ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL state. This method is invoked by the provider to reject the plan change on the entitlement resource. */
|
|
699
699
|
rejectPlanChange(request: {
|
|
@@ -751,7 +751,7 @@ declare namespace gapi.client {
|
|
|
751
751
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
752
752
|
uploadType?: string;
|
|
753
753
|
},
|
|
754
|
-
body: RejectEntitlementPlanChangeRequest
|
|
754
|
+
body: RejectEntitlementPlanChangeRequest,
|
|
755
755
|
): Request<{}>;
|
|
756
756
|
/** Requests suspension of an active Entitlement. This is not yet supported. */
|
|
757
757
|
suspend(request: {
|
|
@@ -809,7 +809,7 @@ declare namespace gapi.client {
|
|
|
809
809
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
810
810
|
uploadType?: string;
|
|
811
811
|
},
|
|
812
|
-
body: SuspendEntitlementRequest
|
|
812
|
+
body: SuspendEntitlementRequest,
|
|
813
813
|
): Request<{}>;
|
|
814
814
|
}
|
|
815
815
|
interface ProvidersResource {
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -30,7 +30,7 @@ gapi.client.load(
|
|
|
30
30
|
() => {
|
|
31
31
|
// now we can use:
|
|
32
32
|
// gapi.client.cloudcommerceprocurement
|
|
33
|
-
}
|
|
33
|
+
},
|
|
34
34
|
);
|
|
35
35
|
```
|
|
36
36
|
|
|
@@ -62,7 +62,7 @@ gapi.auth.authorize(
|
|
|
62
62
|
} else {
|
|
63
63
|
/* handle authorization error */
|
|
64
64
|
}
|
|
65
|
-
}
|
|
65
|
+
},
|
|
66
66
|
);
|
|
67
67
|
```
|
|
68
68
|
|
|
@@ -71,3 +71,5 @@ After that you can use Cloud Commerce Partner Procurement API resources: <!-- TO
|
|
|
71
71
|
```typescript
|
|
72
72
|
|
|
73
73
|
```
|
|
74
|
+
|
|
75
|
+
For provenance information see [Provenance section on NPM](https://www.npmjs.com/package/@maxim_mazurok/gapi.client.cloudcommerceprocurement-v1#Provenance:~:text=none-,Provenance,-Built%20and%20signed)
|