@maxim_mazurok/gapi.client.apigee-v1 0.0.20251105

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.
Files changed (3) hide show
  1. package/index.d.ts +17769 -0
  2. package/package.json +20 -0
  3. package/readme.md +153 -0
package/package.json ADDED
@@ -0,0 +1,20 @@
1
+ {
2
+ "name": "@maxim_mazurok/gapi.client.apigee-v1",
3
+ "version": "0.0.20251105",
4
+ "description": "TypeScript typings for Apigee API v1",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/Maxim-Mazurok/google-api-typings-generator.git"
8
+ },
9
+ "license": "MIT",
10
+ "author": {
11
+ "name": "Maxim Mazurok",
12
+ "email": "maxim@mazurok.com",
13
+ "url": "https://maxim.mazurok.com"
14
+ },
15
+ "types": "index.d.ts",
16
+ "dependencies": {
17
+ "@types/gapi.client": "*",
18
+ "@types/gapi.client.discovery-v1": "*"
19
+ }
20
+ }
package/readme.md ADDED
@@ -0,0 +1,153 @@
1
+ # TypeScript typings for Apigee API v1
2
+
3
+ Use the Apigee API to programmatically develop and manage APIs with a set of RESTful operations. Develop and secure API proxies, deploy and undeploy API proxy revisions, monitor APIs, configure environments, manage users, and more. Note: This product is available as a free trial for a time period of 60 days.
4
+ For detailed description please check [documentation](https://cloud.google.com/apigee-api-management/).
5
+
6
+ ## Installing
7
+
8
+ Install typings for Apigee API:
9
+
10
+ ```
11
+ npm install @types/gapi.client.apigee-v1 --save-dev
12
+ ```
13
+
14
+ ## Usage
15
+
16
+ You need to initialize Google API client in your code:
17
+
18
+ ```typescript
19
+ gapi.load('client', () => {
20
+ // now we can use gapi.client
21
+ // ...
22
+ });
23
+ ```
24
+
25
+ Then load api client wrapper:
26
+
27
+ ```typescript
28
+ gapi.client.load(
29
+ 'https://apigee.googleapis.com/$discovery/rest?version=v1',
30
+ () => {
31
+ // now we can use:
32
+ // gapi.client.apigee
33
+ },
34
+ );
35
+ ```
36
+
37
+ ```typescript
38
+ // Deprecated, use discovery document URL, see https://github.com/google/google-api-javascript-client/blob/master/docs/reference.md#----gapiclientloadname----version----callback--
39
+ gapi.client.load('apigee', 'v1', () => {
40
+ // now we can use:
41
+ // gapi.client.apigee
42
+ });
43
+ ```
44
+
45
+ Don't forget to authenticate your client before sending any request to resources:
46
+
47
+ ```typescript
48
+ // declare client_id registered in Google Developers Console
49
+ var client_id = '',
50
+ scope = [
51
+ // See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
52
+ 'https://www.googleapis.com/auth/cloud-platform',
53
+ ],
54
+ immediate = true;
55
+ // ...
56
+
57
+ gapi.auth.authorize(
58
+ {client_id: client_id, scope: scope, immediate: immediate},
59
+ authResult => {
60
+ if (authResult && !authResult.error) {
61
+ /* handle successful authorization */
62
+ } else {
63
+ /* handle authorization error */
64
+ }
65
+ },
66
+ );
67
+ ```
68
+
69
+ After that you can use Apigee API resources: <!-- TODO: make this work for multiple namespaces -->
70
+
71
+ ```typescript
72
+ /*
73
+ Creates an Apigee organization. See [Create an Apigee organization](https://cloud.google.com/apigee/docs/api-platform/get-started/create-org).
74
+ */
75
+ await gapi.client.apigee.organizations.create({});
76
+
77
+ /*
78
+ Delete an Apigee organization. For organizations with BillingType EVALUATION, an immediate deletion is performed. For paid organizations (Subscription or Pay-as-you-go), a soft-deletion is performed. The organization can be restored within the soft-deletion period, which is specified using the `retention` field in the request or by filing a support ticket with Apigee. During the data retention period specified in the request, the Apigee organization cannot be recreated in the same Google Cloud project. **IMPORTANT: The default data retention setting for this operation is 7 days. To permanently delete the organization in 24 hours, set the retention parameter to `MINIMUM`.**
79
+ */
80
+ await gapi.client.apigee.organizations.delete({name: 'name'});
81
+
82
+ /*
83
+ Gets the profile for an Apigee organization. See [Understanding organizations](https://cloud.google.com/apigee/docs/api-platform/fundamentals/organization-structure).
84
+ */
85
+ await gapi.client.apigee.organizations.get({name: 'name'});
86
+
87
+ /*
88
+ Lists the service accounts allowed to access Apigee control plane directly for limited functionality. **Note**: Available to Apigee hybrid only.
89
+ */
90
+ await gapi.client.apigee.organizations.getControlPlaneAccess({name: 'name'});
91
+
92
+ /*
93
+ Gets the deployed ingress configuration for an organization.
94
+ */
95
+ await gapi.client.apigee.organizations.getDeployedIngressConfig({name: 'name'});
96
+
97
+ /*
98
+ Gets the project ID and region for an Apigee organization.
99
+ */
100
+ await gapi.client.apigee.organizations.getProjectMapping({name: 'name'});
101
+
102
+ /*
103
+ Get runtime config for an organization.
104
+ */
105
+ await gapi.client.apigee.organizations.getRuntimeConfig({name: 'name'});
106
+
107
+ /*
108
+ GetSecuritySettings gets the security settings for API Security.
109
+ */
110
+ await gapi.client.apigee.organizations.getSecuritySettings({name: 'name'});
111
+
112
+ /*
113
+ Lists the service accounts with the permissions required to allow the Synchronizer to download environment data from the control plane. An ETag is returned in the response to `getSyncAuthorization`. Pass that ETag when calling [setSyncAuthorization](setSyncAuthorization) to ensure that you are updating the correct version. If you don't pass the ETag in the call to `setSyncAuthorization`, then the existing authorization is overwritten indiscriminately. For more information, see [Configure the Synchronizer](https://cloud.google.com/apigee/docs/hybrid/latest/synchronizer-access). **Note**: Available to Apigee hybrid only.
114
+ */
115
+ await gapi.client.apigee.organizations.getSyncAuthorization({name: 'name'});
116
+
117
+ /*
118
+ Lists the Apigee organizations and associated Google Cloud projects that you have permission to access. See [Understanding organizations](https://cloud.google.com/apigee/docs/api-platform/fundamentals/organization-structure).
119
+ */
120
+ await gapi.client.apigee.organizations.list({parent: 'parent'});
121
+
122
+ /*
123
+ Configures the add-ons for the Apigee organization. The existing add-on configuration will be fully replaced.
124
+ */
125
+ await gapi.client.apigee.organizations.setAddons({org: 'org'});
126
+
127
+ /*
128
+ Sets the permissions required to allow the Synchronizer to download environment data from the control plane. You must call this API to enable proper functioning of hybrid. Pass the ETag when calling `setSyncAuthorization` to ensure that you are updating the correct version. To get an ETag, call [getSyncAuthorization](getSyncAuthorization). If you don't pass the ETag in the call to `setSyncAuthorization`, then the existing authorization is overwritten indiscriminately. For more information, see [Configure the Synchronizer](https://cloud.google.com/apigee/docs/hybrid/latest/synchronizer-access). **Note**: Available to Apigee hybrid only.
129
+ */
130
+ await gapi.client.apigee.organizations.setSyncAuthorization({name: 'name'});
131
+
132
+ /*
133
+ Updates the properties for an Apigee organization. No other fields in the organization profile will be updated.
134
+ */
135
+ await gapi.client.apigee.organizations.update({name: 'name'});
136
+
137
+ /*
138
+ Updates the permissions required to allow Apigee runtime-plane components access to the control plane. Currently, the permissions required are to: 1. Allow runtime components to publish analytics data to the control plane. **Note**: Available to Apigee hybrid only.
139
+ */
140
+ await gapi.client.apigee.organizations.updateControlPlaneAccess({name: 'name'});
141
+
142
+ /*
143
+ UpdateSecuritySettings updates the current security settings for API Security.
144
+ */
145
+ await gapi.client.apigee.organizations.updateSecuritySettings({name: 'name'});
146
+
147
+ /*
148
+ Provisions a new Apigee organization with a functioning runtime. This is the standard way to create trial organizations for a free Apigee trial.
149
+ */
150
+ await gapi.client.apigee.projects.provisionOrganization({project: 'project'});
151
+ ```
152
+
153
+ For provenance information see [Provenance section on NPM](https://www.npmjs.com/package/@maxim_mazurok/gapi.client.apigee-v1#Provenance:~:text=none-,Provenance,-Built%20and%20signed)