@maxim_mazurok/gapi.client.connectors-v2 0.0.20231126 → 0.0.20231205
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 +190 -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: 20231205
|
|
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,15 @@ 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
|
+
}
|
|
43
60
|
interface Empty {}
|
|
44
61
|
interface Entity {
|
|
45
62
|
/** 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 +72,10 @@ declare namespace gapi.client {
|
|
|
55
72
|
/** The name of the entity type. */
|
|
56
73
|
name?: string;
|
|
57
74
|
}
|
|
75
|
+
interface ExchangeAuthCodeRequest {}
|
|
76
|
+
interface ExchangeAuthCodeResponse {
|
|
77
|
+
accessCredentials?: AccessCredentials;
|
|
78
|
+
}
|
|
58
79
|
interface ExecuteActionRequest {
|
|
59
80
|
/** Parameters for executing the action. The parameters can be key/value pairs or nested structs. */
|
|
60
81
|
parameters?: {[P in string]: any};
|
|
@@ -171,6 +192,10 @@ declare namespace gapi.client {
|
|
|
171
192
|
/** Name of reference entity type. */
|
|
172
193
|
type?: string;
|
|
173
194
|
}
|
|
195
|
+
interface RefreshAccessTokenRequest {}
|
|
196
|
+
interface RefreshAccessTokenResponse {
|
|
197
|
+
accessCredentials?: AccessCredentials;
|
|
198
|
+
}
|
|
174
199
|
interface ResultMetadata {
|
|
175
200
|
/** The data type of the metadata field */
|
|
176
201
|
dataType?: string;
|
|
@@ -667,6 +692,114 @@ declare namespace gapi.client {
|
|
|
667
692
|
entities: EntitiesResource;
|
|
668
693
|
}
|
|
669
694
|
interface ConnectionsResource {
|
|
695
|
+
/** Reports readiness status of the connector. Similar logic to GetStatus but modified for kubernetes health check to understand. */
|
|
696
|
+
checkReadiness(request?: {
|
|
697
|
+
/** V1 error format. */
|
|
698
|
+
'$.xgafv'?: string;
|
|
699
|
+
/** OAuth access token. */
|
|
700
|
+
access_token?: string;
|
|
701
|
+
/** Data format for response. */
|
|
702
|
+
alt?: string;
|
|
703
|
+
/** JSONP */
|
|
704
|
+
callback?: string;
|
|
705
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
706
|
+
fields?: string;
|
|
707
|
+
/** 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. */
|
|
708
|
+
key?: string;
|
|
709
|
+
name: string;
|
|
710
|
+
/** OAuth 2.0 token for the current user. */
|
|
711
|
+
oauth_token?: string;
|
|
712
|
+
/** Returns response with indentations and line breaks. */
|
|
713
|
+
prettyPrint?: boolean;
|
|
714
|
+
/** 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. */
|
|
715
|
+
quotaUser?: string;
|
|
716
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
717
|
+
upload_protocol?: string;
|
|
718
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
719
|
+
uploadType?: string;
|
|
720
|
+
}): Request<CheckReadinessResponse>;
|
|
721
|
+
/** 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. */
|
|
722
|
+
checkStatus(request?: {
|
|
723
|
+
/** V1 error format. */
|
|
724
|
+
'$.xgafv'?: string;
|
|
725
|
+
/** OAuth access token. */
|
|
726
|
+
access_token?: string;
|
|
727
|
+
/** Data format for response. */
|
|
728
|
+
alt?: string;
|
|
729
|
+
/** JSONP */
|
|
730
|
+
callback?: string;
|
|
731
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
732
|
+
fields?: string;
|
|
733
|
+
/** 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. */
|
|
734
|
+
key?: string;
|
|
735
|
+
name: string;
|
|
736
|
+
/** OAuth 2.0 token for the current user. */
|
|
737
|
+
oauth_token?: string;
|
|
738
|
+
/** Returns response with indentations and line breaks. */
|
|
739
|
+
prettyPrint?: boolean;
|
|
740
|
+
/** 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. */
|
|
741
|
+
quotaUser?: string;
|
|
742
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
743
|
+
upload_protocol?: string;
|
|
744
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
745
|
+
uploadType?: string;
|
|
746
|
+
}): Request<CheckStatusResponse>;
|
|
747
|
+
/** ExchangeAuthCode exchanges the OAuth authorization code (and other necessary data) for an access token (and associated credentials). */
|
|
748
|
+
exchangeAuthCode(request: {
|
|
749
|
+
/** V1 error format. */
|
|
750
|
+
'$.xgafv'?: string;
|
|
751
|
+
/** OAuth access token. */
|
|
752
|
+
access_token?: string;
|
|
753
|
+
/** Data format for response. */
|
|
754
|
+
alt?: string;
|
|
755
|
+
/** JSONP */
|
|
756
|
+
callback?: string;
|
|
757
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
758
|
+
fields?: string;
|
|
759
|
+
/** 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. */
|
|
760
|
+
key?: string;
|
|
761
|
+
name: string;
|
|
762
|
+
/** OAuth 2.0 token for the current user. */
|
|
763
|
+
oauth_token?: string;
|
|
764
|
+
/** Returns response with indentations and line breaks. */
|
|
765
|
+
prettyPrint?: boolean;
|
|
766
|
+
/** 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. */
|
|
767
|
+
quotaUser?: string;
|
|
768
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
769
|
+
upload_protocol?: string;
|
|
770
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
771
|
+
uploadType?: string;
|
|
772
|
+
/** Request body */
|
|
773
|
+
resource: ExchangeAuthCodeRequest;
|
|
774
|
+
}): Request<ExchangeAuthCodeResponse>;
|
|
775
|
+
exchangeAuthCode(
|
|
776
|
+
request: {
|
|
777
|
+
/** V1 error format. */
|
|
778
|
+
'$.xgafv'?: string;
|
|
779
|
+
/** OAuth access token. */
|
|
780
|
+
access_token?: string;
|
|
781
|
+
/** Data format for response. */
|
|
782
|
+
alt?: string;
|
|
783
|
+
/** JSONP */
|
|
784
|
+
callback?: string;
|
|
785
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
786
|
+
fields?: string;
|
|
787
|
+
/** 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. */
|
|
788
|
+
key?: string;
|
|
789
|
+
name: string;
|
|
790
|
+
/** OAuth 2.0 token for the current user. */
|
|
791
|
+
oauth_token?: string;
|
|
792
|
+
/** Returns response with indentations and line breaks. */
|
|
793
|
+
prettyPrint?: boolean;
|
|
794
|
+
/** 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. */
|
|
795
|
+
quotaUser?: string;
|
|
796
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
797
|
+
upload_protocol?: string;
|
|
798
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
799
|
+
uploadType?: string;
|
|
800
|
+
},
|
|
801
|
+
body: ExchangeAuthCodeRequest
|
|
802
|
+
): Request<ExchangeAuthCodeResponse>;
|
|
670
803
|
/** 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
804
|
executeSqlQuery(request: {
|
|
672
805
|
/** V1 error format. */
|
|
@@ -725,6 +858,62 @@ declare namespace gapi.client {
|
|
|
725
858
|
},
|
|
726
859
|
body: ExecuteSqlQueryRequest
|
|
727
860
|
): Request<ExecuteSqlQueryResponse>;
|
|
861
|
+
/** RefreshAccessToken exchanges the OAuth refresh token (and other necessary data) for a new access token (and new associated credentials). */
|
|
862
|
+
refreshAccessToken(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 body */
|
|
887
|
+
resource: RefreshAccessTokenRequest;
|
|
888
|
+
}): Request<RefreshAccessTokenResponse>;
|
|
889
|
+
refreshAccessToken(
|
|
890
|
+
request: {
|
|
891
|
+
/** V1 error format. */
|
|
892
|
+
'$.xgafv'?: string;
|
|
893
|
+
/** OAuth access token. */
|
|
894
|
+
access_token?: string;
|
|
895
|
+
/** Data format for response. */
|
|
896
|
+
alt?: string;
|
|
897
|
+
/** JSONP */
|
|
898
|
+
callback?: string;
|
|
899
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
900
|
+
fields?: string;
|
|
901
|
+
/** 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. */
|
|
902
|
+
key?: string;
|
|
903
|
+
name: string;
|
|
904
|
+
/** OAuth 2.0 token for the current user. */
|
|
905
|
+
oauth_token?: string;
|
|
906
|
+
/** Returns response with indentations and line breaks. */
|
|
907
|
+
prettyPrint?: boolean;
|
|
908
|
+
/** 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. */
|
|
909
|
+
quotaUser?: string;
|
|
910
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
911
|
+
upload_protocol?: string;
|
|
912
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
913
|
+
uploadType?: string;
|
|
914
|
+
},
|
|
915
|
+
body: RefreshAccessTokenRequest
|
|
916
|
+
): Request<RefreshAccessTokenResponse>;
|
|
728
917
|
actions: ActionsResource;
|
|
729
918
|
entityTypes: EntityTypesResource;
|
|
730
919
|
}
|