@google-cloud/apikeys 0.1.3 → 0.2.1
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/CHANGELOG.md +14 -0
- package/build/protos/protos.d.ts +1570 -77
- package/build/protos/protos.js +4110 -257
- package/build/protos/protos.json +304 -12
- package/build/src/index.d.ts +1 -1
- package/build/src/index.js +1 -1
- package/build/src/v2/api_keys_client.d.ts +20 -22
- package/build/src/v2/api_keys_client.js +19 -19
- package/build/src/v2/api_keys_client.js.map +1 -1
- package/build/src/v2/index.js +1 -1
- package/package.json +4 -4
package/build/protos/protos.json
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
"nested": {
|
|
5
5
|
"api": {
|
|
6
6
|
"options": {
|
|
7
|
-
"go_package": "google.golang.org/genproto/googleapis/api
|
|
7
|
+
"go_package": "google.golang.org/genproto/googleapis/api;api",
|
|
8
8
|
"java_multiple_files": true,
|
|
9
|
-
"java_outer_classname": "
|
|
9
|
+
"java_outer_classname": "LaunchStageProto",
|
|
10
10
|
"java_package": "com.google.api",
|
|
11
11
|
"objc_class_prefix": "GAPI",
|
|
12
12
|
"cc_enable_arenas": true
|
|
@@ -750,6 +750,248 @@
|
|
|
750
750
|
"type": "string",
|
|
751
751
|
"id": 1050,
|
|
752
752
|
"extend": "google.protobuf.ServiceOptions"
|
|
753
|
+
},
|
|
754
|
+
"CommonLanguageSettings": {
|
|
755
|
+
"fields": {
|
|
756
|
+
"referenceDocsUri": {
|
|
757
|
+
"type": "string",
|
|
758
|
+
"id": 1,
|
|
759
|
+
"options": {
|
|
760
|
+
"deprecated": true
|
|
761
|
+
}
|
|
762
|
+
},
|
|
763
|
+
"destinations": {
|
|
764
|
+
"rule": "repeated",
|
|
765
|
+
"type": "ClientLibraryDestination",
|
|
766
|
+
"id": 2
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
},
|
|
770
|
+
"ClientLibrarySettings": {
|
|
771
|
+
"fields": {
|
|
772
|
+
"version": {
|
|
773
|
+
"type": "string",
|
|
774
|
+
"id": 1
|
|
775
|
+
},
|
|
776
|
+
"launchStage": {
|
|
777
|
+
"type": "LaunchStage",
|
|
778
|
+
"id": 2
|
|
779
|
+
},
|
|
780
|
+
"restNumericEnums": {
|
|
781
|
+
"type": "bool",
|
|
782
|
+
"id": 3
|
|
783
|
+
},
|
|
784
|
+
"javaSettings": {
|
|
785
|
+
"type": "JavaSettings",
|
|
786
|
+
"id": 21
|
|
787
|
+
},
|
|
788
|
+
"cppSettings": {
|
|
789
|
+
"type": "CppSettings",
|
|
790
|
+
"id": 22
|
|
791
|
+
},
|
|
792
|
+
"phpSettings": {
|
|
793
|
+
"type": "PhpSettings",
|
|
794
|
+
"id": 23
|
|
795
|
+
},
|
|
796
|
+
"pythonSettings": {
|
|
797
|
+
"type": "PythonSettings",
|
|
798
|
+
"id": 24
|
|
799
|
+
},
|
|
800
|
+
"nodeSettings": {
|
|
801
|
+
"type": "NodeSettings",
|
|
802
|
+
"id": 25
|
|
803
|
+
},
|
|
804
|
+
"dotnetSettings": {
|
|
805
|
+
"type": "DotnetSettings",
|
|
806
|
+
"id": 26
|
|
807
|
+
},
|
|
808
|
+
"rubySettings": {
|
|
809
|
+
"type": "RubySettings",
|
|
810
|
+
"id": 27
|
|
811
|
+
},
|
|
812
|
+
"goSettings": {
|
|
813
|
+
"type": "GoSettings",
|
|
814
|
+
"id": 28
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
},
|
|
818
|
+
"Publishing": {
|
|
819
|
+
"fields": {
|
|
820
|
+
"methodSettings": {
|
|
821
|
+
"rule": "repeated",
|
|
822
|
+
"type": "MethodSettings",
|
|
823
|
+
"id": 2
|
|
824
|
+
},
|
|
825
|
+
"newIssueUri": {
|
|
826
|
+
"type": "string",
|
|
827
|
+
"id": 101
|
|
828
|
+
},
|
|
829
|
+
"documentationUri": {
|
|
830
|
+
"type": "string",
|
|
831
|
+
"id": 102
|
|
832
|
+
},
|
|
833
|
+
"apiShortName": {
|
|
834
|
+
"type": "string",
|
|
835
|
+
"id": 103
|
|
836
|
+
},
|
|
837
|
+
"githubLabel": {
|
|
838
|
+
"type": "string",
|
|
839
|
+
"id": 104
|
|
840
|
+
},
|
|
841
|
+
"codeownerGithubTeams": {
|
|
842
|
+
"rule": "repeated",
|
|
843
|
+
"type": "string",
|
|
844
|
+
"id": 105
|
|
845
|
+
},
|
|
846
|
+
"docTagPrefix": {
|
|
847
|
+
"type": "string",
|
|
848
|
+
"id": 106
|
|
849
|
+
},
|
|
850
|
+
"organization": {
|
|
851
|
+
"type": "ClientLibraryOrganization",
|
|
852
|
+
"id": 107
|
|
853
|
+
},
|
|
854
|
+
"librarySettings": {
|
|
855
|
+
"rule": "repeated",
|
|
856
|
+
"type": "ClientLibrarySettings",
|
|
857
|
+
"id": 109
|
|
858
|
+
}
|
|
859
|
+
}
|
|
860
|
+
},
|
|
861
|
+
"JavaSettings": {
|
|
862
|
+
"fields": {
|
|
863
|
+
"libraryPackage": {
|
|
864
|
+
"type": "string",
|
|
865
|
+
"id": 1
|
|
866
|
+
},
|
|
867
|
+
"serviceClassNames": {
|
|
868
|
+
"keyType": "string",
|
|
869
|
+
"type": "string",
|
|
870
|
+
"id": 2
|
|
871
|
+
},
|
|
872
|
+
"common": {
|
|
873
|
+
"type": "CommonLanguageSettings",
|
|
874
|
+
"id": 3
|
|
875
|
+
}
|
|
876
|
+
}
|
|
877
|
+
},
|
|
878
|
+
"CppSettings": {
|
|
879
|
+
"fields": {
|
|
880
|
+
"common": {
|
|
881
|
+
"type": "CommonLanguageSettings",
|
|
882
|
+
"id": 1
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
},
|
|
886
|
+
"PhpSettings": {
|
|
887
|
+
"fields": {
|
|
888
|
+
"common": {
|
|
889
|
+
"type": "CommonLanguageSettings",
|
|
890
|
+
"id": 1
|
|
891
|
+
}
|
|
892
|
+
}
|
|
893
|
+
},
|
|
894
|
+
"PythonSettings": {
|
|
895
|
+
"fields": {
|
|
896
|
+
"common": {
|
|
897
|
+
"type": "CommonLanguageSettings",
|
|
898
|
+
"id": 1
|
|
899
|
+
}
|
|
900
|
+
}
|
|
901
|
+
},
|
|
902
|
+
"NodeSettings": {
|
|
903
|
+
"fields": {
|
|
904
|
+
"common": {
|
|
905
|
+
"type": "CommonLanguageSettings",
|
|
906
|
+
"id": 1
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
},
|
|
910
|
+
"DotnetSettings": {
|
|
911
|
+
"fields": {
|
|
912
|
+
"common": {
|
|
913
|
+
"type": "CommonLanguageSettings",
|
|
914
|
+
"id": 1
|
|
915
|
+
}
|
|
916
|
+
}
|
|
917
|
+
},
|
|
918
|
+
"RubySettings": {
|
|
919
|
+
"fields": {
|
|
920
|
+
"common": {
|
|
921
|
+
"type": "CommonLanguageSettings",
|
|
922
|
+
"id": 1
|
|
923
|
+
}
|
|
924
|
+
}
|
|
925
|
+
},
|
|
926
|
+
"GoSettings": {
|
|
927
|
+
"fields": {
|
|
928
|
+
"common": {
|
|
929
|
+
"type": "CommonLanguageSettings",
|
|
930
|
+
"id": 1
|
|
931
|
+
}
|
|
932
|
+
}
|
|
933
|
+
},
|
|
934
|
+
"MethodSettings": {
|
|
935
|
+
"fields": {
|
|
936
|
+
"selector": {
|
|
937
|
+
"type": "string",
|
|
938
|
+
"id": 1
|
|
939
|
+
},
|
|
940
|
+
"longRunning": {
|
|
941
|
+
"type": "LongRunning",
|
|
942
|
+
"id": 2
|
|
943
|
+
}
|
|
944
|
+
},
|
|
945
|
+
"nested": {
|
|
946
|
+
"LongRunning": {
|
|
947
|
+
"fields": {
|
|
948
|
+
"initialPollDelay": {
|
|
949
|
+
"type": "google.protobuf.Duration",
|
|
950
|
+
"id": 1
|
|
951
|
+
},
|
|
952
|
+
"pollDelayMultiplier": {
|
|
953
|
+
"type": "float",
|
|
954
|
+
"id": 2
|
|
955
|
+
},
|
|
956
|
+
"maxPollDelay": {
|
|
957
|
+
"type": "google.protobuf.Duration",
|
|
958
|
+
"id": 3
|
|
959
|
+
},
|
|
960
|
+
"totalPollTimeout": {
|
|
961
|
+
"type": "google.protobuf.Duration",
|
|
962
|
+
"id": 4
|
|
963
|
+
}
|
|
964
|
+
}
|
|
965
|
+
}
|
|
966
|
+
}
|
|
967
|
+
},
|
|
968
|
+
"ClientLibraryOrganization": {
|
|
969
|
+
"values": {
|
|
970
|
+
"CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED": 0,
|
|
971
|
+
"CLOUD": 1,
|
|
972
|
+
"ADS": 2,
|
|
973
|
+
"PHOTOS": 3,
|
|
974
|
+
"STREET_VIEW": 4
|
|
975
|
+
}
|
|
976
|
+
},
|
|
977
|
+
"ClientLibraryDestination": {
|
|
978
|
+
"values": {
|
|
979
|
+
"CLIENT_LIBRARY_DESTINATION_UNSPECIFIED": 0,
|
|
980
|
+
"GITHUB": 10,
|
|
981
|
+
"PACKAGE_MANAGER": 20
|
|
982
|
+
}
|
|
983
|
+
},
|
|
984
|
+
"LaunchStage": {
|
|
985
|
+
"values": {
|
|
986
|
+
"LAUNCH_STAGE_UNSPECIFIED": 0,
|
|
987
|
+
"UNIMPLEMENTED": 6,
|
|
988
|
+
"PRELAUNCH": 7,
|
|
989
|
+
"EARLY_ACCESS": 1,
|
|
990
|
+
"ALPHA": 2,
|
|
991
|
+
"BETA": 3,
|
|
992
|
+
"GA": 4,
|
|
993
|
+
"DEPRECATED": 5
|
|
994
|
+
}
|
|
753
995
|
}
|
|
754
996
|
}
|
|
755
997
|
},
|
|
@@ -1305,6 +1547,13 @@
|
|
|
1305
1547
|
"type": "bool",
|
|
1306
1548
|
"id": 7
|
|
1307
1549
|
},
|
|
1550
|
+
"deprecatedLegacyJsonFieldConflicts": {
|
|
1551
|
+
"type": "bool",
|
|
1552
|
+
"id": 11,
|
|
1553
|
+
"options": {
|
|
1554
|
+
"deprecated": true
|
|
1555
|
+
}
|
|
1556
|
+
},
|
|
1308
1557
|
"uninterpretedOption": {
|
|
1309
1558
|
"rule": "repeated",
|
|
1310
1559
|
"type": "UninterpretedOption",
|
|
@@ -1388,6 +1637,21 @@
|
|
|
1388
1637
|
"default": false
|
|
1389
1638
|
}
|
|
1390
1639
|
},
|
|
1640
|
+
"debugRedact": {
|
|
1641
|
+
"type": "bool",
|
|
1642
|
+
"id": 16,
|
|
1643
|
+
"options": {
|
|
1644
|
+
"default": false
|
|
1645
|
+
}
|
|
1646
|
+
},
|
|
1647
|
+
"retention": {
|
|
1648
|
+
"type": "OptionRetention",
|
|
1649
|
+
"id": 17
|
|
1650
|
+
},
|
|
1651
|
+
"target": {
|
|
1652
|
+
"type": "OptionTargetType",
|
|
1653
|
+
"id": 18
|
|
1654
|
+
},
|
|
1391
1655
|
"uninterpretedOption": {
|
|
1392
1656
|
"rule": "repeated",
|
|
1393
1657
|
"type": "UninterpretedOption",
|
|
@@ -1420,6 +1684,27 @@
|
|
|
1420
1684
|
"JS_STRING": 1,
|
|
1421
1685
|
"JS_NUMBER": 2
|
|
1422
1686
|
}
|
|
1687
|
+
},
|
|
1688
|
+
"OptionRetention": {
|
|
1689
|
+
"values": {
|
|
1690
|
+
"RETENTION_UNKNOWN": 0,
|
|
1691
|
+
"RETENTION_RUNTIME": 1,
|
|
1692
|
+
"RETENTION_SOURCE": 2
|
|
1693
|
+
}
|
|
1694
|
+
},
|
|
1695
|
+
"OptionTargetType": {
|
|
1696
|
+
"values": {
|
|
1697
|
+
"TARGET_TYPE_UNKNOWN": 0,
|
|
1698
|
+
"TARGET_TYPE_FILE": 1,
|
|
1699
|
+
"TARGET_TYPE_EXTENSION_RANGE": 2,
|
|
1700
|
+
"TARGET_TYPE_MESSAGE": 3,
|
|
1701
|
+
"TARGET_TYPE_FIELD": 4,
|
|
1702
|
+
"TARGET_TYPE_ONEOF": 5,
|
|
1703
|
+
"TARGET_TYPE_ENUM": 6,
|
|
1704
|
+
"TARGET_TYPE_ENUM_ENTRY": 7,
|
|
1705
|
+
"TARGET_TYPE_SERVICE": 8,
|
|
1706
|
+
"TARGET_TYPE_METHOD": 9
|
|
1707
|
+
}
|
|
1423
1708
|
}
|
|
1424
1709
|
}
|
|
1425
1710
|
},
|
|
@@ -1451,6 +1736,13 @@
|
|
|
1451
1736
|
"default": false
|
|
1452
1737
|
}
|
|
1453
1738
|
},
|
|
1739
|
+
"deprecatedLegacyJsonFieldConflicts": {
|
|
1740
|
+
"type": "bool",
|
|
1741
|
+
"id": 6,
|
|
1742
|
+
"options": {
|
|
1743
|
+
"deprecated": true
|
|
1744
|
+
}
|
|
1745
|
+
},
|
|
1454
1746
|
"uninterpretedOption": {
|
|
1455
1747
|
"rule": "repeated",
|
|
1456
1748
|
"type": "UninterpretedOption",
|
|
@@ -1696,26 +1988,26 @@
|
|
|
1696
1988
|
}
|
|
1697
1989
|
}
|
|
1698
1990
|
},
|
|
1699
|
-
"
|
|
1991
|
+
"Duration": {
|
|
1700
1992
|
"fields": {
|
|
1701
|
-
"
|
|
1702
|
-
"type": "
|
|
1993
|
+
"seconds": {
|
|
1994
|
+
"type": "int64",
|
|
1703
1995
|
"id": 1
|
|
1704
1996
|
},
|
|
1705
|
-
"
|
|
1706
|
-
"type": "
|
|
1997
|
+
"nanos": {
|
|
1998
|
+
"type": "int32",
|
|
1707
1999
|
"id": 2
|
|
1708
2000
|
}
|
|
1709
2001
|
}
|
|
1710
2002
|
},
|
|
1711
|
-
"
|
|
2003
|
+
"Any": {
|
|
1712
2004
|
"fields": {
|
|
1713
|
-
"
|
|
1714
|
-
"type": "
|
|
2005
|
+
"type_url": {
|
|
2006
|
+
"type": "string",
|
|
1715
2007
|
"id": 1
|
|
1716
2008
|
},
|
|
1717
|
-
"
|
|
1718
|
-
"type": "
|
|
2009
|
+
"value": {
|
|
2010
|
+
"type": "bytes",
|
|
1719
2011
|
"id": 2
|
|
1720
2012
|
}
|
|
1721
2013
|
}
|
package/build/src/index.d.ts
CHANGED
package/build/src/index.js
CHANGED
|
@@ -122,7 +122,7 @@ export declare class ApiKeysClient {
|
|
|
122
122
|
* @param {object} [options]
|
|
123
123
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
124
124
|
* @returns {Promise} - The promise which resolves to an array.
|
|
125
|
-
* The first element of the array is an object representing
|
|
125
|
+
* The first element of the array is an object representing {@link google.api.apikeys.v2.Key | Key}.
|
|
126
126
|
* Please see the
|
|
127
127
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
128
128
|
* for more details and examples.
|
|
@@ -149,7 +149,7 @@ export declare class ApiKeysClient {
|
|
|
149
149
|
* @param {object} [options]
|
|
150
150
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
151
151
|
* @returns {Promise} - The promise which resolves to an array.
|
|
152
|
-
* The first element of the array is an object representing
|
|
152
|
+
* The first element of the array is an object representing {@link google.api.apikeys.v2.GetKeyStringResponse | GetKeyStringResponse}.
|
|
153
153
|
* Please see the
|
|
154
154
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
155
155
|
* for more details and examples.
|
|
@@ -177,7 +177,7 @@ export declare class ApiKeysClient {
|
|
|
177
177
|
* @param {object} [options]
|
|
178
178
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
179
179
|
* @returns {Promise} - The promise which resolves to an array.
|
|
180
|
-
* The first element of the array is an object representing
|
|
180
|
+
* The first element of the array is an object representing {@link google.api.apikeys.v2.LookupKeyResponse | LookupKeyResponse}.
|
|
181
181
|
* Please see the
|
|
182
182
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
183
183
|
* for more details and examples.
|
|
@@ -409,7 +409,7 @@ export declare class ApiKeysClient {
|
|
|
409
409
|
* @param {object} [options]
|
|
410
410
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
411
411
|
* @returns {Promise} - The promise which resolves to an array.
|
|
412
|
-
* The first element of the array is Array of
|
|
412
|
+
* The first element of the array is Array of {@link google.api.apikeys.v2.Key | Key}.
|
|
413
413
|
* The client library will perform auto-pagination by default: it will call the API as many
|
|
414
414
|
* times as needed and will merge results from all the pages into this array.
|
|
415
415
|
* Note that it can affect your quota.
|
|
@@ -442,7 +442,7 @@ export declare class ApiKeysClient {
|
|
|
442
442
|
* @param {object} [options]
|
|
443
443
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
444
444
|
* @returns {Stream}
|
|
445
|
-
* An object stream which emits an object representing
|
|
445
|
+
* An object stream which emits an object representing {@link google.api.apikeys.v2.Key | Key} on 'data' event.
|
|
446
446
|
* The client library will perform auto-pagination by default: it will call the API as many
|
|
447
447
|
* times as needed. Note that it can affect your quota.
|
|
448
448
|
* We recommend using `listKeysAsync()`
|
|
@@ -472,7 +472,7 @@ export declare class ApiKeysClient {
|
|
|
472
472
|
* @returns {Object}
|
|
473
473
|
* An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols).
|
|
474
474
|
* When you iterate the returned iterable, each element will be an object representing
|
|
475
|
-
*
|
|
475
|
+
* {@link google.api.apikeys.v2.Key | Key}. The API will be called under the hood as needed, once per the page,
|
|
476
476
|
* so you can stop the iteration when you don't need more results.
|
|
477
477
|
* Please see the
|
|
478
478
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
@@ -490,20 +490,18 @@ export declare class ApiKeysClient {
|
|
|
490
490
|
* @param {string} request.name - The name of the operation resource.
|
|
491
491
|
* @param {Object=} options
|
|
492
492
|
* Optional parameters. You can override the default settings for this call,
|
|
493
|
-
* e.g, timeout, retries, paginations, etc. See
|
|
494
|
-
* https://googleapis.github.io/gax-nodejs/global.html#CallOptions
|
|
495
|
-
* details.
|
|
493
|
+
* e.g, timeout, retries, paginations, etc. See {@link
|
|
494
|
+
* https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions}
|
|
495
|
+
* for the details.
|
|
496
496
|
* @param {function(?Error, ?Object)=} callback
|
|
497
497
|
* The function which will be called with the result of the API call.
|
|
498
498
|
*
|
|
499
499
|
* The second parameter to the callback is an object representing
|
|
500
|
-
*
|
|
501
|
-
* external:"google.longrunning.Operation"}.
|
|
500
|
+
* {@link google.longrunning.Operation | google.longrunning.Operation}.
|
|
502
501
|
* @return {Promise} - The promise which resolves to an array.
|
|
503
502
|
* The first element of the array is an object representing
|
|
504
|
-
*
|
|
505
|
-
*
|
|
506
|
-
* "cancel" which cancels the ongoing API call.
|
|
503
|
+
* {@link google.longrunning.Operation | google.longrunning.Operation}.
|
|
504
|
+
* The promise has a method named "cancel" which cancels the ongoing API call.
|
|
507
505
|
*
|
|
508
506
|
* @example
|
|
509
507
|
* ```
|
|
@@ -531,11 +529,11 @@ export declare class ApiKeysClient {
|
|
|
531
529
|
* resources in a page.
|
|
532
530
|
* @param {Object=} options
|
|
533
531
|
* Optional parameters. You can override the default settings for this call,
|
|
534
|
-
* e.g, timeout, retries, paginations, etc. See
|
|
535
|
-
* https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the
|
|
532
|
+
* e.g, timeout, retries, paginations, etc. See {@link
|
|
533
|
+
* https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions} for the
|
|
536
534
|
* details.
|
|
537
535
|
* @returns {Object}
|
|
538
|
-
* An iterable Object that conforms to @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols.
|
|
536
|
+
* An iterable Object that conforms to {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | iteration protocols}.
|
|
539
537
|
*
|
|
540
538
|
* @example
|
|
541
539
|
* ```
|
|
@@ -561,8 +559,8 @@ export declare class ApiKeysClient {
|
|
|
561
559
|
* @param {string} request.name - The name of the operation resource to be cancelled.
|
|
562
560
|
* @param {Object=} options
|
|
563
561
|
* Optional parameters. You can override the default settings for this call,
|
|
564
|
-
* e.g, timeout, retries, paginations, etc. See
|
|
565
|
-
* https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the
|
|
562
|
+
* e.g, timeout, retries, paginations, etc. See {@link
|
|
563
|
+
* https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions} for the
|
|
566
564
|
* details.
|
|
567
565
|
* @param {function(?Error)=} callback
|
|
568
566
|
* The function which will be called with the result of the API call.
|
|
@@ -587,9 +585,9 @@ export declare class ApiKeysClient {
|
|
|
587
585
|
* @param {string} request.name - The name of the operation resource to be deleted.
|
|
588
586
|
* @param {Object=} options
|
|
589
587
|
* Optional parameters. You can override the default settings for this call,
|
|
590
|
-
* e.g, timeout, retries, paginations, etc. See
|
|
591
|
-
* https://googleapis.github.io/gax-nodejs/global.html#CallOptions
|
|
592
|
-
* details.
|
|
588
|
+
* e.g, timeout, retries, paginations, etc. See {@link
|
|
589
|
+
* https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions}
|
|
590
|
+
* for the details.
|
|
593
591
|
* @param {function(?Error)=} callback
|
|
594
592
|
* The function which will be called with the result of the API call.
|
|
595
593
|
* @return {Promise} - The promise which resolves when API call finishes.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright
|
|
2
|
+
// Copyright 2023 Google LLC
|
|
3
3
|
//
|
|
4
4
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
// you may not use this file except in compliance with the License.
|
|
@@ -89,6 +89,8 @@ class ApiKeysClient {
|
|
|
89
89
|
const clientConfig = (_a = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _a !== void 0 ? _a : {};
|
|
90
90
|
const fallback = (_b = opts === null || opts === void 0 ? void 0 : opts.fallback) !== null && _b !== void 0 ? _b : (typeof window !== 'undefined' && typeof (window === null || window === void 0 ? void 0 : window.fetch) === 'function');
|
|
91
91
|
opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
|
|
92
|
+
// Request numeric enum values if REST transport is used.
|
|
93
|
+
opts.numericEnums = true;
|
|
92
94
|
// If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case.
|
|
93
95
|
if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) {
|
|
94
96
|
opts['scopes'] = staticMembers.scopes;
|
|
@@ -536,7 +538,7 @@ class ApiKeysClient {
|
|
|
536
538
|
* @param {object} [options]
|
|
537
539
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
538
540
|
* @returns {Stream}
|
|
539
|
-
* An object stream which emits an object representing
|
|
541
|
+
* An object stream which emits an object representing {@link google.api.apikeys.v2.Key | Key} on 'data' event.
|
|
540
542
|
* The client library will perform auto-pagination by default: it will call the API as many
|
|
541
543
|
* times as needed. Note that it can affect your quota.
|
|
542
544
|
* We recommend using `listKeysAsync()`
|
|
@@ -580,7 +582,7 @@ class ApiKeysClient {
|
|
|
580
582
|
* @returns {Object}
|
|
581
583
|
* An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols).
|
|
582
584
|
* When you iterate the returned iterable, each element will be an object representing
|
|
583
|
-
*
|
|
585
|
+
* {@link google.api.apikeys.v2.Key | Key}. The API will be called under the hood as needed, once per the page,
|
|
584
586
|
* so you can stop the iteration when you don't need more results.
|
|
585
587
|
* Please see the
|
|
586
588
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
@@ -612,20 +614,18 @@ class ApiKeysClient {
|
|
|
612
614
|
* @param {string} request.name - The name of the operation resource.
|
|
613
615
|
* @param {Object=} options
|
|
614
616
|
* Optional parameters. You can override the default settings for this call,
|
|
615
|
-
* e.g, timeout, retries, paginations, etc. See
|
|
616
|
-
* https://googleapis.github.io/gax-nodejs/global.html#CallOptions
|
|
617
|
-
* details.
|
|
617
|
+
* e.g, timeout, retries, paginations, etc. See {@link
|
|
618
|
+
* https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions}
|
|
619
|
+
* for the details.
|
|
618
620
|
* @param {function(?Error, ?Object)=} callback
|
|
619
621
|
* The function which will be called with the result of the API call.
|
|
620
622
|
*
|
|
621
623
|
* The second parameter to the callback is an object representing
|
|
622
|
-
*
|
|
623
|
-
* external:"google.longrunning.Operation"}.
|
|
624
|
+
* {@link google.longrunning.Operation | google.longrunning.Operation}.
|
|
624
625
|
* @return {Promise} - The promise which resolves to an array.
|
|
625
626
|
* The first element of the array is an object representing
|
|
626
|
-
*
|
|
627
|
-
*
|
|
628
|
-
* "cancel" which cancels the ongoing API call.
|
|
627
|
+
* {@link google.longrunning.Operation | google.longrunning.Operation}.
|
|
628
|
+
* The promise has a method named "cancel" which cancels the ongoing API call.
|
|
629
629
|
*
|
|
630
630
|
* @example
|
|
631
631
|
* ```
|
|
@@ -655,11 +655,11 @@ class ApiKeysClient {
|
|
|
655
655
|
* resources in a page.
|
|
656
656
|
* @param {Object=} options
|
|
657
657
|
* Optional parameters. You can override the default settings for this call,
|
|
658
|
-
* e.g, timeout, retries, paginations, etc. See
|
|
659
|
-
* https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the
|
|
658
|
+
* e.g, timeout, retries, paginations, etc. See {@link
|
|
659
|
+
* https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions} for the
|
|
660
660
|
* details.
|
|
661
661
|
* @returns {Object}
|
|
662
|
-
* An iterable Object that conforms to @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols.
|
|
662
|
+
* An iterable Object that conforms to {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | iteration protocols}.
|
|
663
663
|
*
|
|
664
664
|
* @example
|
|
665
665
|
* ```
|
|
@@ -687,8 +687,8 @@ class ApiKeysClient {
|
|
|
687
687
|
* @param {string} request.name - The name of the operation resource to be cancelled.
|
|
688
688
|
* @param {Object=} options
|
|
689
689
|
* Optional parameters. You can override the default settings for this call,
|
|
690
|
-
* e.g, timeout, retries, paginations, etc. See
|
|
691
|
-
* https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the
|
|
690
|
+
* e.g, timeout, retries, paginations, etc. See {@link
|
|
691
|
+
* https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions} for the
|
|
692
692
|
* details.
|
|
693
693
|
* @param {function(?Error)=} callback
|
|
694
694
|
* The function which will be called with the result of the API call.
|
|
@@ -715,9 +715,9 @@ class ApiKeysClient {
|
|
|
715
715
|
* @param {string} request.name - The name of the operation resource to be deleted.
|
|
716
716
|
* @param {Object=} options
|
|
717
717
|
* Optional parameters. You can override the default settings for this call,
|
|
718
|
-
* e.g, timeout, retries, paginations, etc. See
|
|
719
|
-
* https://googleapis.github.io/gax-nodejs/global.html#CallOptions
|
|
720
|
-
* details.
|
|
718
|
+
* e.g, timeout, retries, paginations, etc. See {@link
|
|
719
|
+
* https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions}
|
|
720
|
+
* for the details.
|
|
721
721
|
* @param {function(?Error)=} callback
|
|
722
722
|
* The function which will be called with the result of the API call.
|
|
723
723
|
* @return {Promise} - The promise which resolves when API call finishes.
|