@maxim_mazurok/gapi.client.cloudsupport-v2 0.2.20260628 → 0.2.20260707
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 +67 -7
- package/package.json +1 -1
- package/readme.md +13 -6
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: 20260707
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -212,6 +212,7 @@ declare namespace gapi.client {
|
|
|
212
212
|
/** # gdata.* are outside protos with mising documentation */
|
|
213
213
|
ignoreRange?: boolean;
|
|
214
214
|
}
|
|
215
|
+
interface Empty {}
|
|
215
216
|
interface EscalateCaseRequest {
|
|
216
217
|
/** The escalation information to be sent with the escalation request. */
|
|
217
218
|
escalation?: Escalation;
|
|
@@ -226,6 +227,7 @@ declare namespace gapi.client {
|
|
|
226
227
|
| 'TECHNICAL_EXPERTISE'
|
|
227
228
|
| 'BUSINESS_IMPACT';
|
|
228
229
|
}
|
|
230
|
+
interface ExpungeSupportEventSubscriptionRequest {}
|
|
229
231
|
interface ListAttachmentsResponse {
|
|
230
232
|
/** The list of attachments associated with a case. */
|
|
231
233
|
attachments?: Attachment[];
|
|
@@ -1002,7 +1004,7 @@ declare namespace gapi.client {
|
|
|
1002
1004
|
): Request<Attachment>;
|
|
1003
1005
|
}
|
|
1004
1006
|
interface SupportEventSubscriptionsResource {
|
|
1005
|
-
/** Creates a support event subscription for an organization. */
|
|
1007
|
+
/** 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()) ``` */
|
|
1006
1008
|
create(request: {
|
|
1007
1009
|
/** V1 error format. */
|
|
1008
1010
|
'$.xgafv'?: '1' | '2';
|
|
@@ -1060,7 +1062,7 @@ declare namespace gapi.client {
|
|
|
1060
1062
|
},
|
|
1061
1063
|
body: SupportEventSubscription,
|
|
1062
1064
|
): Request<SupportEventSubscription>;
|
|
1063
|
-
/** Soft deletes a support event subscription. */
|
|
1065
|
+
/** 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()) ``` */
|
|
1064
1066
|
delete(request?: {
|
|
1065
1067
|
/** V1 error format. */
|
|
1066
1068
|
'$.xgafv'?: '1' | '2';
|
|
@@ -1087,7 +1089,65 @@ declare namespace gapi.client {
|
|
|
1087
1089
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1088
1090
|
uploadType?: string;
|
|
1089
1091
|
}): Request<SupportEventSubscription>;
|
|
1090
|
-
/**
|
|
1092
|
+
/** Expunges a support event subscription. */
|
|
1093
|
+
expunge(request: {
|
|
1094
|
+
/** V1 error format. */
|
|
1095
|
+
'$.xgafv'?: '1' | '2';
|
|
1096
|
+
/** OAuth access token. */
|
|
1097
|
+
access_token?: string;
|
|
1098
|
+
/** Data format for response. */
|
|
1099
|
+
alt?: 'json' | 'media' | 'proto';
|
|
1100
|
+
/** JSONP */
|
|
1101
|
+
callback?: string;
|
|
1102
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1103
|
+
fields?: string;
|
|
1104
|
+
/** 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. */
|
|
1105
|
+
key?: string;
|
|
1106
|
+
/** Required. The name of the support event subscription to expunge. Format: organizations/{organization_id}/supportEventSubscriptions/{subscription_id} */
|
|
1107
|
+
name: string;
|
|
1108
|
+
/** OAuth 2.0 token for the current user. */
|
|
1109
|
+
oauth_token?: string;
|
|
1110
|
+
/** Returns response with indentations and line breaks. */
|
|
1111
|
+
prettyPrint?: boolean;
|
|
1112
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1113
|
+
quotaUser?: string;
|
|
1114
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1115
|
+
upload_protocol?: string;
|
|
1116
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1117
|
+
uploadType?: string;
|
|
1118
|
+
/** Request body */
|
|
1119
|
+
resource: ExpungeSupportEventSubscriptionRequest;
|
|
1120
|
+
}): Request<{}>;
|
|
1121
|
+
expunge(
|
|
1122
|
+
request: {
|
|
1123
|
+
/** V1 error format. */
|
|
1124
|
+
'$.xgafv'?: '1' | '2';
|
|
1125
|
+
/** OAuth access token. */
|
|
1126
|
+
access_token?: string;
|
|
1127
|
+
/** Data format for response. */
|
|
1128
|
+
alt?: 'json' | 'media' | 'proto';
|
|
1129
|
+
/** JSONP */
|
|
1130
|
+
callback?: string;
|
|
1131
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1132
|
+
fields?: string;
|
|
1133
|
+
/** 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. */
|
|
1134
|
+
key?: string;
|
|
1135
|
+
/** Required. The name of the support event subscription to expunge. Format: organizations/{organization_id}/supportEventSubscriptions/{subscription_id} */
|
|
1136
|
+
name: string;
|
|
1137
|
+
/** OAuth 2.0 token for the current user. */
|
|
1138
|
+
oauth_token?: string;
|
|
1139
|
+
/** Returns response with indentations and line breaks. */
|
|
1140
|
+
prettyPrint?: boolean;
|
|
1141
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1142
|
+
quotaUser?: string;
|
|
1143
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1144
|
+
upload_protocol?: string;
|
|
1145
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1146
|
+
uploadType?: string;
|
|
1147
|
+
},
|
|
1148
|
+
body: ExpungeSupportEventSubscriptionRequest,
|
|
1149
|
+
): Request<{}>;
|
|
1150
|
+
/** 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()) ``` */
|
|
1091
1151
|
get(request?: {
|
|
1092
1152
|
/** V1 error format. */
|
|
1093
1153
|
'$.xgafv'?: '1' | '2';
|
|
@@ -1114,7 +1174,7 @@ declare namespace gapi.client {
|
|
|
1114
1174
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1115
1175
|
uploadType?: string;
|
|
1116
1176
|
}): Request<SupportEventSubscription>;
|
|
1117
|
-
/** Lists support event subscriptions. */
|
|
1177
|
+
/** 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()) ``` */
|
|
1118
1178
|
list(request?: {
|
|
1119
1179
|
/** V1 error format. */
|
|
1120
1180
|
'$.xgafv'?: '1' | '2';
|
|
@@ -1149,7 +1209,7 @@ declare namespace gapi.client {
|
|
|
1149
1209
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1150
1210
|
uploadType?: string;
|
|
1151
1211
|
}): Request<ListSupportEventSubscriptionsResponse>;
|
|
1152
|
-
/** Updates a support event subscription. */
|
|
1212
|
+
/** 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()) ``` */
|
|
1153
1213
|
patch(request: {
|
|
1154
1214
|
/** V1 error format. */
|
|
1155
1215
|
'$.xgafv'?: '1' | '2';
|
|
@@ -1211,7 +1271,7 @@ declare namespace gapi.client {
|
|
|
1211
1271
|
},
|
|
1212
1272
|
body: SupportEventSubscription,
|
|
1213
1273
|
): Request<SupportEventSubscription>;
|
|
1214
|
-
/** Undeletes a support event subscription. */
|
|
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()) ``` Undeletes a support event subscription. */
|
|
1215
1275
|
undelete(request: {
|
|
1216
1276
|
/** V1 error format. */
|
|
1217
1277
|
'$.xgafv'?: '1' | '2';
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -137,36 +137,43 @@ Create a file attachment on a case or Cloud resource. The attachment must have t
|
|
|
137
137
|
await gapi.client.cloudsupport.media.upload({parent: 'parent'});
|
|
138
138
|
|
|
139
139
|
/*
|
|
140
|
-
Creates a support event subscription for an organization.
|
|
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
141
|
*/
|
|
142
142
|
await gapi.client.cloudsupport.supportEventSubscriptions.create({
|
|
143
143
|
parent: 'parent',
|
|
144
144
|
});
|
|
145
145
|
|
|
146
146
|
/*
|
|
147
|
-
Soft deletes a support event subscription.
|
|
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
148
|
*/
|
|
149
149
|
await gapi.client.cloudsupport.supportEventSubscriptions.delete({name: 'name'});
|
|
150
150
|
|
|
151
151
|
/*
|
|
152
|
-
|
|
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()) ```
|
|
153
160
|
*/
|
|
154
161
|
await gapi.client.cloudsupport.supportEventSubscriptions.get({name: 'name'});
|
|
155
162
|
|
|
156
163
|
/*
|
|
157
|
-
Lists support event subscriptions.
|
|
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()) ```
|
|
158
165
|
*/
|
|
159
166
|
await gapi.client.cloudsupport.supportEventSubscriptions.list({
|
|
160
167
|
parent: 'parent',
|
|
161
168
|
});
|
|
162
169
|
|
|
163
170
|
/*
|
|
164
|
-
Updates a support event subscription.
|
|
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()) ```
|
|
165
172
|
*/
|
|
166
173
|
await gapi.client.cloudsupport.supportEventSubscriptions.patch({name: 'name'});
|
|
167
174
|
|
|
168
175
|
/*
|
|
169
|
-
Undeletes a support event subscription.
|
|
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.
|
|
170
177
|
*/
|
|
171
178
|
await gapi.client.cloudsupport.supportEventSubscriptions.undelete({
|
|
172
179
|
name: 'name',
|