@maxim_mazurok/gapi.client.cloudsupport-v2 0.2.20260721 → 0.2.20260803
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 +7 -4
- package/package.json +1 -1
- package/readme.md +0 -43
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://cloudsupport.googleapis.com/$discovery/rest?version=v2
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20260803
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -1089,7 +1089,7 @@ declare namespace gapi.client {
|
|
|
1089
1089
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1090
1090
|
uploadType?: string;
|
|
1091
1091
|
}): Request<SupportEventSubscription>;
|
|
1092
|
-
/** Expunges a support event subscription. */
|
|
1092
|
+
/** Expunges a support event subscription. EXAMPLES: cURL: ```shell support_event_subscription="organizations/123456789/supportEventSubscriptions/abcdef123456" curl \ --request POST \ --header "Authorization: Bearer $(gcloud auth print-access-token)" \ "https://cloudsupport.googleapis.com/v2/$support_event_subscription:expunge" ``` Python: ```python import googleapiclient.discovery api_version = "v2" supportApiService = googleapiclient.discovery.build( serviceName="cloudsupport", version=api_version, discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}", ) request = supportApiService.supportEventSubscriptions().expunge( name="organizations/123456789/supportEventSubscriptions/abcdef123456" ) print(request.execute()) ``` */
|
|
1093
1093
|
expunge(request: {
|
|
1094
1094
|
/** V1 error format. */
|
|
1095
1095
|
'$.xgafv'?: '1' | '2';
|
|
@@ -1271,7 +1271,7 @@ declare namespace gapi.client {
|
|
|
1271
1271
|
},
|
|
1272
1272
|
body: SupportEventSubscription,
|
|
1273
1273
|
): Request<SupportEventSubscription>;
|
|
1274
|
-
/** Undeletes a support event subscription. EXAMPLES: cURL: ```shell support_event_subscription="organizations/123456789/supportEventSubscriptions/abcdef123456" curl \ --request POST \ --header "Authorization: Bearer $(gcloud auth print-access-token)" \ "https://cloudsupport.googleapis.com/v2/$support_event_subscription:undelete" ``` Python: ```python import googleapiclient.discovery api_version = "v2" supportApiService = googleapiclient.discovery.build( serviceName="cloudsupport", version=api_version, discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}", ) request = supportApiService.supportEventSubscriptions().undelete( name="organizations/123456789/supportEventSubscriptions/abcdef123456" ) print(request.execute()) ```
|
|
1274
|
+
/** Undeletes a support event subscription. EXAMPLES: cURL: ```shell support_event_subscription="organizations/123456789/supportEventSubscriptions/abcdef123456" curl \ --request POST \ --header "Authorization: Bearer $(gcloud auth print-access-token)" \ "https://cloudsupport.googleapis.com/v2/$support_event_subscription:undelete" ``` Python: ```python import googleapiclient.discovery api_version = "v2" supportApiService = googleapiclient.discovery.build( serviceName="cloudsupport", version=api_version, discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}", ) request = supportApiService.supportEventSubscriptions().undelete( name="organizations/123456789/supportEventSubscriptions/abcdef123456" ) print(request.execute()) ``` */
|
|
1275
1275
|
undelete(request: {
|
|
1276
1276
|
/** V1 error format. */
|
|
1277
1277
|
'$.xgafv'?: '1' | '2';
|
|
@@ -1330,6 +1330,9 @@ declare namespace gapi.client {
|
|
|
1330
1330
|
body: UndeleteSupportEventSubscriptionRequest,
|
|
1331
1331
|
): Request<SupportEventSubscription>;
|
|
1332
1332
|
}
|
|
1333
|
+
interface OrganizationsResource {
|
|
1334
|
+
supportEventSubscriptions: SupportEventSubscriptionsResource;
|
|
1335
|
+
}
|
|
1333
1336
|
|
|
1334
1337
|
const caseClassifications: CaseClassificationsResource;
|
|
1335
1338
|
|
|
@@ -1337,6 +1340,6 @@ declare namespace gapi.client {
|
|
|
1337
1340
|
|
|
1338
1341
|
const media: MediaResource;
|
|
1339
1342
|
|
|
1340
|
-
const
|
|
1343
|
+
const organizations: OrganizationsResource;
|
|
1341
1344
|
}
|
|
1342
1345
|
}
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -135,49 +135,6 @@ await gapi.client.cloudsupport.media.download({name: 'name'});
|
|
|
135
135
|
Create a file attachment on a case or Cloud resource. The attachment must have the following fields set: `filename`. EXAMPLES: cURL: ```shell echo "This text is in a file I'm uploading using CSAPI." \ > "./example_file.txt" case="projects/some-project/cases/43594844" curl \ --header "Authorization: Bearer $(gcloud auth print-access-token)" \ --data-binary @"./example_file.txt" \ "https://cloudsupport.googleapis.com/upload/v2/$case/attachments?attachment.filename=uploaded_via_curl.txt" ``` Python: ```python import googleapiclient.discovery api_version = "v2" supportApiService = googleapiclient.discovery.build( serviceName="cloudsupport", version=api_version, discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}", ) file_path = "./example_file.txt" with open(file_path, "w") as file: file.write( "This text is inside a file I'm going to upload using the Cloud Support API.", ) request = supportApiService.media().upload( parent="projects/some-project/cases/43595344", media_body=file_path ) request.uri = request.uri.split("?")[0] + "?attachment.filename=uploaded_via_python.txt" print(request.execute()) ```
|
|
136
136
|
*/
|
|
137
137
|
await gapi.client.cloudsupport.media.upload({parent: 'parent'});
|
|
138
|
-
|
|
139
|
-
/*
|
|
140
|
-
Creates a support event subscription for an organization. EXAMPLES: cURL: ```shell parent="organizations/123456789" curl \ --request POST \ --header "Authorization: Bearer $(gcloud auth print-access-token)" \ --header 'Content-Type: application/json' \ --data '{ "pub_sub_topic": "projects/my-project/topics/my-topic" }' \ "https://cloudsupport.googleapis.com/v2/$parent/supportEventSubscriptions" ``` Python: ```python import googleapiclient.discovery api_version = "v2" supportApiService = googleapiclient.discovery.build( serviceName="cloudsupport", version=api_version, discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}", ) request = supportApiService.supportEventSubscriptions().create( parent="organizations/123456789", body={ "pub_sub_topic": "projects/my-project/topics/my-topic" }, ) print(request.execute()) ```
|
|
141
|
-
*/
|
|
142
|
-
await gapi.client.cloudsupport.supportEventSubscriptions.create({
|
|
143
|
-
parent: 'parent',
|
|
144
|
-
});
|
|
145
|
-
|
|
146
|
-
/*
|
|
147
|
-
Soft deletes a support event subscription. EXAMPLES: cURL: ```shell support_event_subscription="organizations/123456789/supportEventSubscriptions/abcdef123456" curl \ --request DELETE \ --header "Authorization: Bearer $(gcloud auth print-access-token)" \ "https://cloudsupport.googleapis.com/v2/$support_event_subscription" ``` Python: ```python import googleapiclient.discovery api_version = "v2" supportApiService = googleapiclient.discovery.build( serviceName="cloudsupport", version=api_version, discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}", ) request = supportApiService).supportEventSubscriptions().delete( name="organizations/123456789/supportEventSubscriptions/abcdef123456" ) print(request.execute()) ```
|
|
148
|
-
*/
|
|
149
|
-
await gapi.client.cloudsupport.supportEventSubscriptions.delete({name: 'name'});
|
|
150
|
-
|
|
151
|
-
/*
|
|
152
|
-
Expunges a support event subscription.
|
|
153
|
-
*/
|
|
154
|
-
await gapi.client.cloudsupport.supportEventSubscriptions.expunge({
|
|
155
|
-
name: 'name',
|
|
156
|
-
});
|
|
157
|
-
|
|
158
|
-
/*
|
|
159
|
-
Gets a support event subscription. EXAMPLES: cURL: ```shell support_event_subscription="organizations/123456789/supportEventSubscriptions/abcdef123456" curl \ --header "Authorization: Bearer $(gcloud auth print-access-token)" \ "https://cloudsupport.googleapis.com/v2/$support_event_subscription" ``` Python: ```python import googleapiclient.discovery api_version = "v2" supportApiService = googleapiclient.discovery.build( serviceName="cloudsupport", version=api_version, discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}", ) request = supportApiService.supportEventSubscriptions().get( name="organizations/123456789/supportEventSubscriptions/abcdef123456" ) print(request.execute()) ```
|
|
160
|
-
*/
|
|
161
|
-
await gapi.client.cloudsupport.supportEventSubscriptions.get({name: 'name'});
|
|
162
|
-
|
|
163
|
-
/*
|
|
164
|
-
Lists support event subscriptions. EXAMPLES: cURL: ```shell parent="organizations/123456789" curl \ --header "Authorization: Bearer $(gcloud auth print-access-token)" \ "https://cloudsupport.googleapis.com/v2/$parent/supportEventSubscriptions" ``` Python: ```python import googleapiclient.discovery api_version = "v2" supportApiService = googleapiclient.discovery.build( serviceName="cloudsupport", version=api_version, discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}", ) request = supportApiService.supportEventSubscriptions().list( parent="organizations/123456789" ) print(request.execute()) ```
|
|
165
|
-
*/
|
|
166
|
-
await gapi.client.cloudsupport.supportEventSubscriptions.list({
|
|
167
|
-
parent: 'parent',
|
|
168
|
-
});
|
|
169
|
-
|
|
170
|
-
/*
|
|
171
|
-
Updates a support event subscription. EXAMPLES: cURL: ```shell support_event_subscription="organizations/123456789/supportEventSubscriptions/abcdef123456" curl \ --request PATCH \ --header "Authorization: Bearer $(gcloud auth print-access-token)" \ --header "Content-Type: application/json" \ --data '{ "pub_sub_topic": "projects/my-project/topics/new-topic" }' \ "https://cloudsupport.googleapis.com/v2/$support_event_subscription?updateMask=pub_sub_topic" ``` Python: ```python import googleapiclient.discovery api_version = "v2" supportApiService = googleapiclient.discovery.build( serviceName="cloudsupport", version=api_version, discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}", ) request = supportApiService.supportEventSubscriptions().patch( name="organizations/123456789/supportEventSubscriptions/abcdef123456", body={ "pub_sub_topic": "projects/my-project/topics/new-topic" }, ) print(request.execute()) ```
|
|
172
|
-
*/
|
|
173
|
-
await gapi.client.cloudsupport.supportEventSubscriptions.patch({name: 'name'});
|
|
174
|
-
|
|
175
|
-
/*
|
|
176
|
-
Undeletes a support event subscription. EXAMPLES: cURL: ```shell support_event_subscription="organizations/123456789/supportEventSubscriptions/abcdef123456" curl \ --request POST \ --header "Authorization: Bearer $(gcloud auth print-access-token)" \ "https://cloudsupport.googleapis.com/v2/$support_event_subscription:undelete" ``` Python: ```python import googleapiclient.discovery api_version = "v2" supportApiService = googleapiclient.discovery.build( serviceName="cloudsupport", version=api_version, discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}", ) request = supportApiService.supportEventSubscriptions().undelete( name="organizations/123456789/supportEventSubscriptions/abcdef123456" ) print(request.execute()) ``` Undeletes a support event subscription.
|
|
177
|
-
*/
|
|
178
|
-
await gapi.client.cloudsupport.supportEventSubscriptions.undelete({
|
|
179
|
-
name: 'name',
|
|
180
|
-
});
|
|
181
138
|
````
|
|
182
139
|
|
|
183
140
|
For provenance information see [Provenance section on NPM](https://www.npmjs.com/package/@maxim_mazurok/gapi.client.cloudsupport-v2#Provenance:~:text=none-,Provenance,-Built%20and%20signed)
|