@maxim_mazurok/gapi.client.connectors-v2 0.0.20231126 → 0.0.20231213
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 +356 -1
- package/package.json +1 -1
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://connectors.googleapis.com/$discovery/rest?version=v2
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20231213
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -24,6 +24,14 @@ declare namespace gapi.client {
|
|
|
24
24
|
function load(name: 'connectors', version: 'v2', callback: () => any): void;
|
|
25
25
|
|
|
26
26
|
namespace connectors {
|
|
27
|
+
interface AccessCredentials {
|
|
28
|
+
/** OAuth access token. */
|
|
29
|
+
accessToken?: string;
|
|
30
|
+
/** Duration till the access token expires. */
|
|
31
|
+
expiresIn?: string;
|
|
32
|
+
/** OAuth refresh token. */
|
|
33
|
+
refreshToken?: string;
|
|
34
|
+
}
|
|
27
35
|
interface Action {
|
|
28
36
|
/** Brief Description of action */
|
|
29
37
|
description?: string;
|
|
@@ -40,6 +48,37 @@ declare namespace gapi.client {
|
|
|
40
48
|
/** List containing the metadata of result fields. */
|
|
41
49
|
resultMetadata?: ResultMetadata[];
|
|
42
50
|
}
|
|
51
|
+
interface CheckReadinessResponse {
|
|
52
|
+
status?: string;
|
|
53
|
+
}
|
|
54
|
+
interface CheckStatusResponse {
|
|
55
|
+
/** When the connector is not in ACTIVE state, the description must be populated to specify the reason why it's not in ACTIVE state. */
|
|
56
|
+
description?: string;
|
|
57
|
+
/** State of the connector. */
|
|
58
|
+
state?: string;
|
|
59
|
+
}
|
|
60
|
+
interface DailyCycle {
|
|
61
|
+
/** Output only. Duration of the time window, set by service producer. */
|
|
62
|
+
duration?: string;
|
|
63
|
+
/** Time within the day to start the operations. */
|
|
64
|
+
startTime?: TimeOfDay;
|
|
65
|
+
}
|
|
66
|
+
interface Date {
|
|
67
|
+
/** Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant. */
|
|
68
|
+
day?: number;
|
|
69
|
+
/** Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day. */
|
|
70
|
+
month?: number;
|
|
71
|
+
/** Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year. */
|
|
72
|
+
year?: number;
|
|
73
|
+
}
|
|
74
|
+
interface DenyMaintenancePeriod {
|
|
75
|
+
/** Deny period end date. This can be: * A full date, with non-zero year, month and day values. * A month and day value, with a zero year. Allows recurring deny periods each year. Date matching this period will have to be before the end. */
|
|
76
|
+
endDate?: Date;
|
|
77
|
+
/** Deny period start date. This can be: * A full date, with non-zero year, month and day values. * A month and day value, with a zero year. Allows recurring deny periods each year. Date matching this period will have to be the same or after the start. */
|
|
78
|
+
startDate?: Date;
|
|
79
|
+
/** Time in UTC when the Blackout period starts on start_date and ends on end_date. This can be: * Full time. * All zeros for 00:00:00 UTC */
|
|
80
|
+
time?: TimeOfDay;
|
|
81
|
+
}
|
|
43
82
|
interface Empty {}
|
|
44
83
|
interface Entity {
|
|
45
84
|
/** Fields of the entity. The key is name of the field and the value contains the applicable `google.protobuf.Value` entry for this field. */
|
|
@@ -55,6 +94,10 @@ declare namespace gapi.client {
|
|
|
55
94
|
/** The name of the entity type. */
|
|
56
95
|
name?: string;
|
|
57
96
|
}
|
|
97
|
+
interface ExchangeAuthCodeRequest {}
|
|
98
|
+
interface ExchangeAuthCodeResponse {
|
|
99
|
+
accessCredentials?: AccessCredentials;
|
|
100
|
+
}
|
|
58
101
|
interface ExecuteActionRequest {
|
|
59
102
|
/** Parameters for executing the action. The parameters can be key/value pairs or nested structs. */
|
|
60
103
|
parameters?: {[P in string]: any};
|
|
@@ -107,6 +150,42 @@ declare namespace gapi.client {
|
|
|
107
150
|
/** Specifies whether a null value is allowed. */
|
|
108
151
|
nullable?: boolean;
|
|
109
152
|
}
|
|
153
|
+
interface Instance {
|
|
154
|
+
/** consumer_defined_name is the name of the instance set by the service consumers. Generally this is different from the `name` field which reperesents the system-assigned id of the instance which the service consumers do not recognize. This is a required field for tenants onboarding to Maintenance Window notifications (go/slm-rollout-maintenance-policies#prerequisites). */
|
|
155
|
+
consumerDefinedName?: string;
|
|
156
|
+
/** Output only. Timestamp when the resource was created. */
|
|
157
|
+
createTime?: string;
|
|
158
|
+
/** Optional. The instance_type of this instance of format: projects/{project_number}/locations/{location_id}/instanceTypes/{instance_type_id}. Instance Type represents a high-level tier or SKU of the service that this instance belong to. When enabled(eg: Maintenance Rollout), Rollout uses 'instance_type' along with 'software_versions' to determine whether instance needs an update or not. */
|
|
159
|
+
instanceType?: string;
|
|
160
|
+
/** Optional. Resource labels to represent user provided metadata. Each label is a key-value pair, where both the key and the value are arbitrary strings provided by the user. */
|
|
161
|
+
labels?: {[P in string]: string};
|
|
162
|
+
/** Optional. The MaintenancePolicies that have been attached to the instance. The key must be of the type name of the oneof policy name defined in MaintenancePolicy, and the referenced policy must define the same policy type. For details, please refer to go/mr-user-guide. Should not be set if maintenance_settings.maintenance_policies is set. */
|
|
163
|
+
maintenancePolicyNames?: {[P in string]: string};
|
|
164
|
+
/** The MaintenanceSchedule contains the scheduling information of published maintenance schedule with same key as software_versions. */
|
|
165
|
+
maintenanceSchedules?: {[P in string]: MaintenanceSchedule};
|
|
166
|
+
/** Optional. The MaintenanceSettings associated with instance. */
|
|
167
|
+
maintenanceSettings?: MaintenanceSettings;
|
|
168
|
+
/** Unique name of the resource. It uses the form: `projects/{project_number}/locations/{location_id}/instances/{instance_id}` Note: This name is passed, stored and logged across the rollout system. So use of consumer project_id or any other consumer PII in the name is strongly discouraged for wipeout (go/wipeout) compliance. See go/elysium/project_ids#storage-guidance for more details. */
|
|
169
|
+
name?: string;
|
|
170
|
+
/** Optional. notification_parameter are information that service producers may like to include that is not relevant to Rollout. This parameter will only be passed to Gamma and Cloud Logging for notification/logging purpose. */
|
|
171
|
+
notificationParameters?: {[P in string]: NotificationParameter};
|
|
172
|
+
/** Output only. Custom string attributes used primarily to expose producer-specific information in monitoring dashboards. See go/get-instance-metadata. */
|
|
173
|
+
producerMetadata?: {[P in string]: string};
|
|
174
|
+
/** Output only. The list of data plane resources provisioned for this instance, e.g. compute VMs. See go/get-instance-metadata. */
|
|
175
|
+
provisionedResources?: ProvisionedResource[];
|
|
176
|
+
/** Link to the SLM instance template. Only populated when updating SLM instances via SSA's Actuation service adaptor. Service producers with custom control plane (e.g. Cloud SQL) doesn't need to populate this field. Instead they should use software_versions. */
|
|
177
|
+
slmInstanceTemplate?: string;
|
|
178
|
+
/** Output only. SLO metadata for instance classification in the Standardized dataplane SLO platform. See go/cloud-ssa-standard-slo for feature description. */
|
|
179
|
+
sloMetadata?: SloMetadata;
|
|
180
|
+
/** Software versions that are used to deploy this instance. This can be mutated by rollout services. */
|
|
181
|
+
softwareVersions?: {[P in string]: string};
|
|
182
|
+
/** Output only. Current lifecycle state of the resource (e.g. if it's being created or ready to use). */
|
|
183
|
+
state?: string;
|
|
184
|
+
/** Output only. ID of the associated GCP tenant project. See go/get-instance-metadata. */
|
|
185
|
+
tenantProjectId?: string;
|
|
186
|
+
/** Output only. Timestamp when the resource was last modified. */
|
|
187
|
+
updateTime?: string;
|
|
188
|
+
}
|
|
110
189
|
interface JsonSchema {
|
|
111
190
|
/** Additional details apart from standard json schema fields, this gives flexibility to store metadata about the schema */
|
|
112
191
|
additionalDetails?: {[P in string]: any};
|
|
@@ -151,6 +230,70 @@ declare namespace gapi.client {
|
|
|
151
230
|
/** List of entity type names which contain unsupported Datatypes. Check datatype.proto for more information. */
|
|
152
231
|
unsupportedTypeNames?: string[];
|
|
153
232
|
}
|
|
233
|
+
interface MaintenancePolicy {
|
|
234
|
+
/** Output only. The time when the resource was created. */
|
|
235
|
+
createTime?: string;
|
|
236
|
+
/** Optional. Description of what this policy is for. Create/Update methods return INVALID_ARGUMENT if the length is greater than 512. */
|
|
237
|
+
description?: string;
|
|
238
|
+
/** Optional. Resource labels to represent user provided metadata. Each label is a key-value pair, where both the key and the value are arbitrary strings provided by the user. */
|
|
239
|
+
labels?: {[P in string]: string};
|
|
240
|
+
/** Required. MaintenancePolicy name using the form: `projects/{project_id}/locations/{location_id}/maintenancePolicies/{maintenance_policy_id}` where {project_id} refers to a GCP consumer project ID, {location_id} refers to a GCP region/zone, {maintenance_policy_id} must be 1-63 characters long and match the regular expression `[a-z0-9]([-a-z0-9]*[a-z0-9])?`. */
|
|
241
|
+
name?: string;
|
|
242
|
+
/** Optional. The state of the policy. */
|
|
243
|
+
state?: string;
|
|
244
|
+
/** Maintenance policy applicable to instance update. */
|
|
245
|
+
updatePolicy?: UpdatePolicy;
|
|
246
|
+
/** Output only. The time when the resource was updated. */
|
|
247
|
+
updateTime?: string;
|
|
248
|
+
}
|
|
249
|
+
interface MaintenanceSchedule {
|
|
250
|
+
/** This field is deprecated, and will be always set to true since reschedule can happen multiple times now. This field should not be removed until all service producers remove this for their customers. */
|
|
251
|
+
canReschedule?: boolean;
|
|
252
|
+
/** The scheduled end time for the maintenance. */
|
|
253
|
+
endTime?: string;
|
|
254
|
+
/** The rollout management policy this maintenance schedule is associated with. When doing reschedule update request, the reschedule should be against this given policy. */
|
|
255
|
+
rolloutManagementPolicy?: string;
|
|
256
|
+
/** schedule_deadline_time is the time deadline any schedule start time cannot go beyond, including reschedule. It's normally the initial schedule start time plus maintenance window length (1 day or 1 week). Maintenance cannot be scheduled to start beyond this deadline. */
|
|
257
|
+
scheduleDeadlineTime?: string;
|
|
258
|
+
/** The scheduled start time for the maintenance. */
|
|
259
|
+
startTime?: string;
|
|
260
|
+
}
|
|
261
|
+
interface MaintenanceSettings {
|
|
262
|
+
/** Optional. Exclude instance from maintenance. When true, rollout service will not attempt maintenance on the instance. Rollout service will include the instance in reported rollout progress as not attempted. */
|
|
263
|
+
exclude?: boolean;
|
|
264
|
+
/** Optional. If the update call is triggered from rollback, set the value as true. */
|
|
265
|
+
isRollback?: boolean;
|
|
266
|
+
/** Optional. The MaintenancePolicies that have been attached to the instance. The key must be of the type name of the oneof policy name defined in MaintenancePolicy, and the embedded policy must define the same policy type. For details, please refer to go/mr-user-guide. Should not be set if maintenance_policy_names is set. If only the name is needed, then only populate MaintenancePolicy.name. */
|
|
267
|
+
maintenancePolicies?: {[P in string]: MaintenancePolicy};
|
|
268
|
+
}
|
|
269
|
+
interface MaintenanceWindow {
|
|
270
|
+
/** Daily cycle. */
|
|
271
|
+
dailyCycle?: DailyCycle;
|
|
272
|
+
/** Weekly cycle. */
|
|
273
|
+
weeklyCycle?: WeeklyCycle;
|
|
274
|
+
}
|
|
275
|
+
interface NodeSloMetadata {
|
|
276
|
+
/** The location of the node, if different from instance location. */
|
|
277
|
+
location?: string;
|
|
278
|
+
/** The id of the node. This should be equal to SaasInstanceNode.node_id. */
|
|
279
|
+
nodeId?: string;
|
|
280
|
+
/** If present, this will override eligibility for the node coming from instance or exclusions for specified SLIs. */
|
|
281
|
+
perSliEligibility?: PerSliSloEligibility;
|
|
282
|
+
}
|
|
283
|
+
interface NotificationParameter {
|
|
284
|
+
/** Optional. Array of string values. e.g. instance's replica information. */
|
|
285
|
+
values?: string[];
|
|
286
|
+
}
|
|
287
|
+
interface PerSliSloEligibility {
|
|
288
|
+
/** An entry in the eligibilities map specifies an eligibility for a particular SLI for the given instance. The SLI key in the name must be a valid SLI name specified in the Eligibility Exporter binary flags otherwise an error will be emitted by Eligibility Exporter and the oncaller will be alerted. If an SLI has been defined in the binary flags but the eligibilities map does not contain it, the corresponding SLI time series will not be emitted by the Eligibility Exporter. This ensures a smooth rollout and compatibility between the data produced by different versions of the Eligibility Exporters. If eligibilities map contains a key for an SLI which has not been declared in the binary flags, there will be an error message emitted in the Eligibility Exporter log and the metric for the SLI in question will not be emitted. */
|
|
289
|
+
eligibilities?: {[P in string]: SloEligibility};
|
|
290
|
+
}
|
|
291
|
+
interface ProvisionedResource {
|
|
292
|
+
/** Type of the resource. This can be either a GCP resource or a custom one (e.g. another cloud provider's VM). For GCP compute resources use singular form of the names listed in GCP compute API documentation (https://cloud.google.com/compute/docs/reference/rest/v1/), prefixed with 'compute-', for example: 'compute-instance', 'compute-disk', 'compute-autoscaler'. */
|
|
293
|
+
resourceType?: string;
|
|
294
|
+
/** URL identifying the resource, e.g. "https://www.googleapis.com/compute/v1/projects/...)". */
|
|
295
|
+
resourceUrl?: string;
|
|
296
|
+
}
|
|
154
297
|
interface Query {
|
|
155
298
|
/** Sets the limit for the maximum number of rows returned after the query execution. */
|
|
156
299
|
maxRows?: string;
|
|
@@ -171,6 +314,10 @@ declare namespace gapi.client {
|
|
|
171
314
|
/** Name of reference entity type. */
|
|
172
315
|
type?: string;
|
|
173
316
|
}
|
|
317
|
+
interface RefreshAccessTokenRequest {}
|
|
318
|
+
interface RefreshAccessTokenResponse {
|
|
319
|
+
accessCredentials?: AccessCredentials;
|
|
320
|
+
}
|
|
174
321
|
interface ResultMetadata {
|
|
175
322
|
/** The data type of the metadata field */
|
|
176
323
|
dataType?: string;
|
|
@@ -181,10 +328,54 @@ declare namespace gapi.client {
|
|
|
181
328
|
/** Name of the metadata field. */
|
|
182
329
|
name?: string;
|
|
183
330
|
}
|
|
331
|
+
interface Schedule {
|
|
332
|
+
/** Allows to define schedule that runs specified day of the week. */
|
|
333
|
+
day?: string;
|
|
334
|
+
/** Output only. Duration of the time window, set by service producer. */
|
|
335
|
+
duration?: string;
|
|
336
|
+
/** Time within the window to start the operations. */
|
|
337
|
+
startTime?: TimeOfDay;
|
|
338
|
+
}
|
|
339
|
+
interface SloEligibility {
|
|
340
|
+
/** Whether an instance is eligible or ineligible. */
|
|
341
|
+
eligible?: boolean;
|
|
342
|
+
/** User-defined reason for the current value of instance eligibility. Usually, this can be directly mapped to the internal state. An empty reason is allowed. */
|
|
343
|
+
reason?: string;
|
|
344
|
+
}
|
|
345
|
+
interface SloMetadata {
|
|
346
|
+
/** Optional. List of nodes. Some producers need to use per-node metadata to calculate SLO. This field allows such producers to publish per-node SLO meta data, which will be consumed by SSA Eligibility Exporter and published in the form of per node metric to Monarch. */
|
|
347
|
+
nodes?: NodeSloMetadata[];
|
|
348
|
+
/** Optional. Multiple per-instance SLI eligibilities which apply for individual SLIs. */
|
|
349
|
+
perSliEligibility?: PerSliSloEligibility;
|
|
350
|
+
/** Name of the SLO tier the Instance belongs to. This name will be expected to match the tiers specified in the service SLO configuration. Field is mandatory and must not be empty. */
|
|
351
|
+
tier?: string;
|
|
352
|
+
}
|
|
353
|
+
interface TimeOfDay {
|
|
354
|
+
/** Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time. */
|
|
355
|
+
hours?: number;
|
|
356
|
+
/** Minutes of hour of day. Must be from 0 to 59. */
|
|
357
|
+
minutes?: number;
|
|
358
|
+
/** Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. */
|
|
359
|
+
nanos?: number;
|
|
360
|
+
/** Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds. */
|
|
361
|
+
seconds?: number;
|
|
362
|
+
}
|
|
184
363
|
interface UpdateEntitiesWithConditionsResponse {
|
|
185
364
|
/** Response returned by the external system. */
|
|
186
365
|
response?: {[P in string]: any};
|
|
187
366
|
}
|
|
367
|
+
interface UpdatePolicy {
|
|
368
|
+
/** Optional. Relative scheduling channel applied to resource. */
|
|
369
|
+
channel?: string;
|
|
370
|
+
/** Deny Maintenance Period that is applied to resource to indicate when maintenance is forbidden. The protocol supports zero-to-many such periods, but the current SLM Rollout implementation only supports zero-to-one. */
|
|
371
|
+
denyMaintenancePeriods?: DenyMaintenancePeriod[];
|
|
372
|
+
/** Optional. Maintenance window that is applied to resources covered by this policy. */
|
|
373
|
+
window?: MaintenanceWindow;
|
|
374
|
+
}
|
|
375
|
+
interface WeeklyCycle {
|
|
376
|
+
/** User can specify multiple windows in a week. Minimum of 1 window. */
|
|
377
|
+
schedule?: Schedule[];
|
|
378
|
+
}
|
|
188
379
|
interface ActionsResource {
|
|
189
380
|
/** Executes an action with the name specified in the request. The input parameters for executing the action are passed through the body of the ExecuteAction request. */
|
|
190
381
|
execute(request: {
|
|
@@ -667,6 +858,114 @@ declare namespace gapi.client {
|
|
|
667
858
|
entities: EntitiesResource;
|
|
668
859
|
}
|
|
669
860
|
interface ConnectionsResource {
|
|
861
|
+
/** Reports readiness status of the connector. Similar logic to GetStatus but modified for kubernetes health check to understand. */
|
|
862
|
+
checkReadiness(request?: {
|
|
863
|
+
/** V1 error format. */
|
|
864
|
+
'$.xgafv'?: string;
|
|
865
|
+
/** OAuth access token. */
|
|
866
|
+
access_token?: string;
|
|
867
|
+
/** Data format for response. */
|
|
868
|
+
alt?: string;
|
|
869
|
+
/** JSONP */
|
|
870
|
+
callback?: string;
|
|
871
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
872
|
+
fields?: string;
|
|
873
|
+
/** 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. */
|
|
874
|
+
key?: string;
|
|
875
|
+
name: string;
|
|
876
|
+
/** OAuth 2.0 token for the current user. */
|
|
877
|
+
oauth_token?: string;
|
|
878
|
+
/** Returns response with indentations and line breaks. */
|
|
879
|
+
prettyPrint?: boolean;
|
|
880
|
+
/** 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. */
|
|
881
|
+
quotaUser?: string;
|
|
882
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
883
|
+
upload_protocol?: string;
|
|
884
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
885
|
+
uploadType?: string;
|
|
886
|
+
}): Request<CheckReadinessResponse>;
|
|
887
|
+
/** Reports the status of the connection. Note that when the connection is in a state that is not ACTIVE, the implementation of this RPC method must return a Status with the corresponding State instead of returning a gRPC status code that is not "OK", which indicates that ConnectionStatus itself, not the connection, failed. */
|
|
888
|
+
checkStatus(request?: {
|
|
889
|
+
/** V1 error format. */
|
|
890
|
+
'$.xgafv'?: string;
|
|
891
|
+
/** OAuth access token. */
|
|
892
|
+
access_token?: string;
|
|
893
|
+
/** Data format for response. */
|
|
894
|
+
alt?: string;
|
|
895
|
+
/** JSONP */
|
|
896
|
+
callback?: string;
|
|
897
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
898
|
+
fields?: string;
|
|
899
|
+
/** 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. */
|
|
900
|
+
key?: string;
|
|
901
|
+
name: string;
|
|
902
|
+
/** OAuth 2.0 token for the current user. */
|
|
903
|
+
oauth_token?: string;
|
|
904
|
+
/** Returns response with indentations and line breaks. */
|
|
905
|
+
prettyPrint?: boolean;
|
|
906
|
+
/** 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. */
|
|
907
|
+
quotaUser?: string;
|
|
908
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
909
|
+
upload_protocol?: string;
|
|
910
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
911
|
+
uploadType?: string;
|
|
912
|
+
}): Request<CheckStatusResponse>;
|
|
913
|
+
/** ExchangeAuthCode exchanges the OAuth authorization code (and other necessary data) for an access token (and associated credentials). */
|
|
914
|
+
exchangeAuthCode(request: {
|
|
915
|
+
/** V1 error format. */
|
|
916
|
+
'$.xgafv'?: string;
|
|
917
|
+
/** OAuth access token. */
|
|
918
|
+
access_token?: string;
|
|
919
|
+
/** Data format for response. */
|
|
920
|
+
alt?: string;
|
|
921
|
+
/** JSONP */
|
|
922
|
+
callback?: string;
|
|
923
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
924
|
+
fields?: string;
|
|
925
|
+
/** 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. */
|
|
926
|
+
key?: string;
|
|
927
|
+
name: string;
|
|
928
|
+
/** OAuth 2.0 token for the current user. */
|
|
929
|
+
oauth_token?: string;
|
|
930
|
+
/** Returns response with indentations and line breaks. */
|
|
931
|
+
prettyPrint?: boolean;
|
|
932
|
+
/** 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. */
|
|
933
|
+
quotaUser?: string;
|
|
934
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
935
|
+
upload_protocol?: string;
|
|
936
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
937
|
+
uploadType?: string;
|
|
938
|
+
/** Request body */
|
|
939
|
+
resource: ExchangeAuthCodeRequest;
|
|
940
|
+
}): Request<ExchangeAuthCodeResponse>;
|
|
941
|
+
exchangeAuthCode(
|
|
942
|
+
request: {
|
|
943
|
+
/** V1 error format. */
|
|
944
|
+
'$.xgafv'?: string;
|
|
945
|
+
/** OAuth access token. */
|
|
946
|
+
access_token?: string;
|
|
947
|
+
/** Data format for response. */
|
|
948
|
+
alt?: string;
|
|
949
|
+
/** JSONP */
|
|
950
|
+
callback?: string;
|
|
951
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
952
|
+
fields?: string;
|
|
953
|
+
/** 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. */
|
|
954
|
+
key?: string;
|
|
955
|
+
name: string;
|
|
956
|
+
/** OAuth 2.0 token for the current user. */
|
|
957
|
+
oauth_token?: string;
|
|
958
|
+
/** Returns response with indentations and line breaks. */
|
|
959
|
+
prettyPrint?: boolean;
|
|
960
|
+
/** 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. */
|
|
961
|
+
quotaUser?: string;
|
|
962
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
963
|
+
upload_protocol?: string;
|
|
964
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
965
|
+
uploadType?: string;
|
|
966
|
+
},
|
|
967
|
+
body: ExchangeAuthCodeRequest
|
|
968
|
+
): Request<ExchangeAuthCodeResponse>;
|
|
670
969
|
/** Executes a SQL statement specified in the body of the request. An example of this SQL statement in the case of Salesforce connector would be 'select * from Account a, Order o where a.Id = o.AccountId'. */
|
|
671
970
|
executeSqlQuery(request: {
|
|
672
971
|
/** V1 error format. */
|
|
@@ -725,6 +1024,62 @@ declare namespace gapi.client {
|
|
|
725
1024
|
},
|
|
726
1025
|
body: ExecuteSqlQueryRequest
|
|
727
1026
|
): Request<ExecuteSqlQueryResponse>;
|
|
1027
|
+
/** RefreshAccessToken exchanges the OAuth refresh token (and other necessary data) for a new access token (and new associated credentials). */
|
|
1028
|
+
refreshAccessToken(request: {
|
|
1029
|
+
/** V1 error format. */
|
|
1030
|
+
'$.xgafv'?: string;
|
|
1031
|
+
/** OAuth access token. */
|
|
1032
|
+
access_token?: string;
|
|
1033
|
+
/** Data format for response. */
|
|
1034
|
+
alt?: string;
|
|
1035
|
+
/** JSONP */
|
|
1036
|
+
callback?: string;
|
|
1037
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1038
|
+
fields?: string;
|
|
1039
|
+
/** 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. */
|
|
1040
|
+
key?: string;
|
|
1041
|
+
name: string;
|
|
1042
|
+
/** OAuth 2.0 token for the current user. */
|
|
1043
|
+
oauth_token?: string;
|
|
1044
|
+
/** Returns response with indentations and line breaks. */
|
|
1045
|
+
prettyPrint?: boolean;
|
|
1046
|
+
/** 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. */
|
|
1047
|
+
quotaUser?: string;
|
|
1048
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1049
|
+
upload_protocol?: string;
|
|
1050
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1051
|
+
uploadType?: string;
|
|
1052
|
+
/** Request body */
|
|
1053
|
+
resource: RefreshAccessTokenRequest;
|
|
1054
|
+
}): Request<RefreshAccessTokenResponse>;
|
|
1055
|
+
refreshAccessToken(
|
|
1056
|
+
request: {
|
|
1057
|
+
/** V1 error format. */
|
|
1058
|
+
'$.xgafv'?: string;
|
|
1059
|
+
/** OAuth access token. */
|
|
1060
|
+
access_token?: string;
|
|
1061
|
+
/** Data format for response. */
|
|
1062
|
+
alt?: string;
|
|
1063
|
+
/** JSONP */
|
|
1064
|
+
callback?: string;
|
|
1065
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1066
|
+
fields?: string;
|
|
1067
|
+
/** 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. */
|
|
1068
|
+
key?: string;
|
|
1069
|
+
name: string;
|
|
1070
|
+
/** OAuth 2.0 token for the current user. */
|
|
1071
|
+
oauth_token?: string;
|
|
1072
|
+
/** Returns response with indentations and line breaks. */
|
|
1073
|
+
prettyPrint?: boolean;
|
|
1074
|
+
/** 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. */
|
|
1075
|
+
quotaUser?: string;
|
|
1076
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1077
|
+
upload_protocol?: string;
|
|
1078
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1079
|
+
uploadType?: string;
|
|
1080
|
+
},
|
|
1081
|
+
body: RefreshAccessTokenRequest
|
|
1082
|
+
): Request<RefreshAccessTokenResponse>;
|
|
728
1083
|
actions: ActionsResource;
|
|
729
1084
|
entityTypes: EntityTypesResource;
|
|
730
1085
|
}
|