Skip to content

Commit 778d237

Browse files
build(node): fix package name hint (#19)
PiperOrigin-RevId: 380817131
1 parent f0da983 commit 778d237

File tree

5 files changed

+38
-38
lines changed

5 files changed

+38
-38
lines changed

packages/google-cloud-clouddms/.jsdoc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ module.exports = {
4343
copyright: 'Copyright 2021 Google LLC',
4444
includeDate: false,
4545
sourceFiles: false,
46-
systemName: '@google-cloud/clouddms',
46+
systemName: '@google-cloud/dms',
4747
theme: 'lumen',
4848
default: {
4949
outputSourceFiles: false

packages/google-cloud-clouddms/src/v1/data_migration_service_client.ts

+34-34
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ export class DataMigrationServiceClient {
494494
// -- Service calls --
495495
// -------------------
496496
getMigrationJob(
497-
request: protos.google.cloud.clouddms.v1.IGetMigrationJobRequest,
497+
request?: protos.google.cloud.clouddms.v1.IGetMigrationJobRequest,
498498
options?: CallOptions
499499
): Promise<
500500
[
@@ -542,7 +542,7 @@ export class DataMigrationServiceClient {
542542
* const [response] = await client.getMigrationJob(request);
543543
*/
544544
getMigrationJob(
545-
request: protos.google.cloud.clouddms.v1.IGetMigrationJobRequest,
545+
request?: protos.google.cloud.clouddms.v1.IGetMigrationJobRequest,
546546
optionsOrCallback?:
547547
| CallOptions
548548
| Callback<
@@ -585,7 +585,7 @@ export class DataMigrationServiceClient {
585585
return this.innerApiCalls.getMigrationJob(request, options, callback);
586586
}
587587
generateSshScript(
588-
request: protos.google.cloud.clouddms.v1.IGenerateSshScriptRequest,
588+
request?: protos.google.cloud.clouddms.v1.IGenerateSshScriptRequest,
589589
options?: CallOptions
590590
): Promise<
591591
[
@@ -642,7 +642,7 @@ export class DataMigrationServiceClient {
642642
* const [response] = await client.generateSshScript(request);
643643
*/
644644
generateSshScript(
645-
request: protos.google.cloud.clouddms.v1.IGenerateSshScriptRequest,
645+
request?: protos.google.cloud.clouddms.v1.IGenerateSshScriptRequest,
646646
optionsOrCallback?:
647647
| CallOptions
648648
| Callback<
@@ -685,7 +685,7 @@ export class DataMigrationServiceClient {
685685
return this.innerApiCalls.generateSshScript(request, options, callback);
686686
}
687687
getConnectionProfile(
688-
request: protos.google.cloud.clouddms.v1.IGetConnectionProfileRequest,
688+
request?: protos.google.cloud.clouddms.v1.IGetConnectionProfileRequest,
689689
options?: CallOptions
690690
): Promise<
691691
[
@@ -733,7 +733,7 @@ export class DataMigrationServiceClient {
733733
* const [response] = await client.getConnectionProfile(request);
734734
*/
735735
getConnectionProfile(
736-
request: protos.google.cloud.clouddms.v1.IGetConnectionProfileRequest,
736+
request?: protos.google.cloud.clouddms.v1.IGetConnectionProfileRequest,
737737
optionsOrCallback?:
738738
| CallOptions
739739
| Callback<
@@ -777,7 +777,7 @@ export class DataMigrationServiceClient {
777777
}
778778

779779
createMigrationJob(
780-
request: protos.google.cloud.clouddms.v1.ICreateMigrationJobRequest,
780+
request?: protos.google.cloud.clouddms.v1.ICreateMigrationJobRequest,
781781
options?: CallOptions
782782
): Promise<
783783
[
@@ -847,7 +847,7 @@ export class DataMigrationServiceClient {
847847
* const [response] = await operation.promise();
848848
*/
849849
createMigrationJob(
850-
request: protos.google.cloud.clouddms.v1.ICreateMigrationJobRequest,
850+
request?: protos.google.cloud.clouddms.v1.ICreateMigrationJobRequest,
851851
optionsOrCallback?:
852852
| CallOptions
853853
| Callback<
@@ -932,7 +932,7 @@ export class DataMigrationServiceClient {
932932
>;
933933
}
934934
updateMigrationJob(
935-
request: protos.google.cloud.clouddms.v1.IUpdateMigrationJobRequest,
935+
request?: protos.google.cloud.clouddms.v1.IUpdateMigrationJobRequest,
936936
options?: CallOptions
937937
): Promise<
938938
[
@@ -999,7 +999,7 @@ export class DataMigrationServiceClient {
999999
* const [response] = await operation.promise();
10001000
*/
10011001
updateMigrationJob(
1002-
request: protos.google.cloud.clouddms.v1.IUpdateMigrationJobRequest,
1002+
request?: protos.google.cloud.clouddms.v1.IUpdateMigrationJobRequest,
10031003
optionsOrCallback?:
10041004
| CallOptions
10051005
| Callback<
@@ -1084,7 +1084,7 @@ export class DataMigrationServiceClient {
10841084
>;
10851085
}
10861086
deleteMigrationJob(
1087-
request: protos.google.cloud.clouddms.v1.IDeleteMigrationJobRequest,
1087+
request?: protos.google.cloud.clouddms.v1.IDeleteMigrationJobRequest,
10881088
options?: CallOptions
10891089
): Promise<
10901090
[
@@ -1152,7 +1152,7 @@ export class DataMigrationServiceClient {
11521152
* const [response] = await operation.promise();
11531153
*/
11541154
deleteMigrationJob(
1155-
request: protos.google.cloud.clouddms.v1.IDeleteMigrationJobRequest,
1155+
request?: protos.google.cloud.clouddms.v1.IDeleteMigrationJobRequest,
11561156
optionsOrCallback?:
11571157
| CallOptions
11581158
| Callback<
@@ -1237,7 +1237,7 @@ export class DataMigrationServiceClient {
12371237
>;
12381238
}
12391239
startMigrationJob(
1240-
request: protos.google.cloud.clouddms.v1.IStartMigrationJobRequest,
1240+
request?: protos.google.cloud.clouddms.v1.IStartMigrationJobRequest,
12411241
options?: CallOptions
12421242
): Promise<
12431243
[
@@ -1293,7 +1293,7 @@ export class DataMigrationServiceClient {
12931293
* const [response] = await operation.promise();
12941294
*/
12951295
startMigrationJob(
1296-
request: protos.google.cloud.clouddms.v1.IStartMigrationJobRequest,
1296+
request?: protos.google.cloud.clouddms.v1.IStartMigrationJobRequest,
12971297
optionsOrCallback?:
12981298
| CallOptions
12991299
| Callback<
@@ -1378,7 +1378,7 @@ export class DataMigrationServiceClient {
13781378
>;
13791379
}
13801380
stopMigrationJob(
1381-
request: protos.google.cloud.clouddms.v1.IStopMigrationJobRequest,
1381+
request?: protos.google.cloud.clouddms.v1.IStopMigrationJobRequest,
13821382
options?: CallOptions
13831383
): Promise<
13841384
[
@@ -1434,7 +1434,7 @@ export class DataMigrationServiceClient {
14341434
* const [response] = await operation.promise();
14351435
*/
14361436
stopMigrationJob(
1437-
request: protos.google.cloud.clouddms.v1.IStopMigrationJobRequest,
1437+
request?: protos.google.cloud.clouddms.v1.IStopMigrationJobRequest,
14381438
optionsOrCallback?:
14391439
| CallOptions
14401440
| Callback<
@@ -1519,7 +1519,7 @@ export class DataMigrationServiceClient {
15191519
>;
15201520
}
15211521
resumeMigrationJob(
1522-
request: protos.google.cloud.clouddms.v1.IResumeMigrationJobRequest,
1522+
request?: protos.google.cloud.clouddms.v1.IResumeMigrationJobRequest,
15231523
options?: CallOptions
15241524
): Promise<
15251525
[
@@ -1576,7 +1576,7 @@ export class DataMigrationServiceClient {
15761576
* const [response] = await operation.promise();
15771577
*/
15781578
resumeMigrationJob(
1579-
request: protos.google.cloud.clouddms.v1.IResumeMigrationJobRequest,
1579+
request?: protos.google.cloud.clouddms.v1.IResumeMigrationJobRequest,
15801580
optionsOrCallback?:
15811581
| CallOptions
15821582
| Callback<
@@ -1661,7 +1661,7 @@ export class DataMigrationServiceClient {
16611661
>;
16621662
}
16631663
promoteMigrationJob(
1664-
request: protos.google.cloud.clouddms.v1.IPromoteMigrationJobRequest,
1664+
request?: protos.google.cloud.clouddms.v1.IPromoteMigrationJobRequest,
16651665
options?: CallOptions
16661666
): Promise<
16671667
[
@@ -1718,7 +1718,7 @@ export class DataMigrationServiceClient {
17181718
* const [response] = await operation.promise();
17191719
*/
17201720
promoteMigrationJob(
1721-
request: protos.google.cloud.clouddms.v1.IPromoteMigrationJobRequest,
1721+
request?: protos.google.cloud.clouddms.v1.IPromoteMigrationJobRequest,
17221722
optionsOrCallback?:
17231723
| CallOptions
17241724
| Callback<
@@ -1803,7 +1803,7 @@ export class DataMigrationServiceClient {
18031803
>;
18041804
}
18051805
verifyMigrationJob(
1806-
request: protos.google.cloud.clouddms.v1.IVerifyMigrationJobRequest,
1806+
request?: protos.google.cloud.clouddms.v1.IVerifyMigrationJobRequest,
18071807
options?: CallOptions
18081808
): Promise<
18091809
[
@@ -1860,7 +1860,7 @@ export class DataMigrationServiceClient {
18601860
* const [response] = await operation.promise();
18611861
*/
18621862
verifyMigrationJob(
1863-
request: protos.google.cloud.clouddms.v1.IVerifyMigrationJobRequest,
1863+
request?: protos.google.cloud.clouddms.v1.IVerifyMigrationJobRequest,
18641864
optionsOrCallback?:
18651865
| CallOptions
18661866
| Callback<
@@ -1945,7 +1945,7 @@ export class DataMigrationServiceClient {
19451945
>;
19461946
}
19471947
restartMigrationJob(
1948-
request: protos.google.cloud.clouddms.v1.IRestartMigrationJobRequest,
1948+
request?: protos.google.cloud.clouddms.v1.IRestartMigrationJobRequest,
19491949
options?: CallOptions
19501950
): Promise<
19511951
[
@@ -2003,7 +2003,7 @@ export class DataMigrationServiceClient {
20032003
* const [response] = await operation.promise();
20042004
*/
20052005
restartMigrationJob(
2006-
request: protos.google.cloud.clouddms.v1.IRestartMigrationJobRequest,
2006+
request?: protos.google.cloud.clouddms.v1.IRestartMigrationJobRequest,
20072007
optionsOrCallback?:
20082008
| CallOptions
20092009
| Callback<
@@ -2088,7 +2088,7 @@ export class DataMigrationServiceClient {
20882088
>;
20892089
}
20902090
createConnectionProfile(
2091-
request: protos.google.cloud.clouddms.v1.ICreateConnectionProfileRequest,
2091+
request?: protos.google.cloud.clouddms.v1.ICreateConnectionProfileRequest,
20922092
options?: CallOptions
20932093
): Promise<
20942094
[
@@ -2156,7 +2156,7 @@ export class DataMigrationServiceClient {
21562156
* const [response] = await operation.promise();
21572157
*/
21582158
createConnectionProfile(
2159-
request: protos.google.cloud.clouddms.v1.ICreateConnectionProfileRequest,
2159+
request?: protos.google.cloud.clouddms.v1.ICreateConnectionProfileRequest,
21602160
optionsOrCallback?:
21612161
| CallOptions
21622162
| Callback<
@@ -2245,7 +2245,7 @@ export class DataMigrationServiceClient {
22452245
>;
22462246
}
22472247
updateConnectionProfile(
2248-
request: protos.google.cloud.clouddms.v1.IUpdateConnectionProfileRequest,
2248+
request?: protos.google.cloud.clouddms.v1.IUpdateConnectionProfileRequest,
22492249
options?: CallOptions
22502250
): Promise<
22512251
[
@@ -2312,7 +2312,7 @@ export class DataMigrationServiceClient {
23122312
* const [response] = await operation.promise();
23132313
*/
23142314
updateConnectionProfile(
2315-
request: protos.google.cloud.clouddms.v1.IUpdateConnectionProfileRequest,
2315+
request?: protos.google.cloud.clouddms.v1.IUpdateConnectionProfileRequest,
23162316
optionsOrCallback?:
23172317
| CallOptions
23182318
| Callback<
@@ -2401,7 +2401,7 @@ export class DataMigrationServiceClient {
24012401
>;
24022402
}
24032403
deleteConnectionProfile(
2404-
request: protos.google.cloud.clouddms.v1.IDeleteConnectionProfileRequest,
2404+
request?: protos.google.cloud.clouddms.v1.IDeleteConnectionProfileRequest,
24052405
options?: CallOptions
24062406
): Promise<
24072407
[
@@ -2470,7 +2470,7 @@ export class DataMigrationServiceClient {
24702470
* const [response] = await operation.promise();
24712471
*/
24722472
deleteConnectionProfile(
2473-
request: protos.google.cloud.clouddms.v1.IDeleteConnectionProfileRequest,
2473+
request?: protos.google.cloud.clouddms.v1.IDeleteConnectionProfileRequest,
24742474
optionsOrCallback?:
24752475
| CallOptions
24762476
| Callback<
@@ -2559,7 +2559,7 @@ export class DataMigrationServiceClient {
25592559
>;
25602560
}
25612561
listMigrationJobs(
2562-
request: protos.google.cloud.clouddms.v1.IListMigrationJobsRequest,
2562+
request?: protos.google.cloud.clouddms.v1.IListMigrationJobsRequest,
25632563
options?: CallOptions
25642564
): Promise<
25652565
[
@@ -2634,7 +2634,7 @@ export class DataMigrationServiceClient {
26342634
* for more details and examples.
26352635
*/
26362636
listMigrationJobs(
2637-
request: protos.google.cloud.clouddms.v1.IListMigrationJobsRequest,
2637+
request?: protos.google.cloud.clouddms.v1.IListMigrationJobsRequest,
26382638
optionsOrCallback?:
26392639
| CallOptions
26402640
| PaginationCallback<
@@ -2810,7 +2810,7 @@ export class DataMigrationServiceClient {
28102810
) as AsyncIterable<protos.google.cloud.clouddms.v1.IMigrationJob>;
28112811
}
28122812
listConnectionProfiles(
2813-
request: protos.google.cloud.clouddms.v1.IListConnectionProfilesRequest,
2813+
request?: protos.google.cloud.clouddms.v1.IListConnectionProfilesRequest,
28142814
options?: CallOptions
28152815
): Promise<
28162816
[
@@ -2884,7 +2884,7 @@ export class DataMigrationServiceClient {
28842884
* for more details and examples.
28852885
*/
28862886
listConnectionProfiles(
2887-
request: protos.google.cloud.clouddms.v1.IListConnectionProfilesRequest,
2887+
request?: protos.google.cloud.clouddms.v1.IListConnectionProfilesRequest,
28882888
optionsOrCallback?:
28892889
| CallOptions
28902890
| PaginationCallback<

packages/google-cloud-clouddms/src/v1/gapic_metadata.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
44
"language": "typescript",
55
"protoPackage": "google.cloud.clouddms.v1",
6-
"libraryPackage": "@google-cloud/clouddms",
6+
"libraryPackage": "@google-cloud/dms",
77
"services": {
88
"DataMigrationService": {
99
"clients": {

packages/google-cloud-clouddms/system-test/fixtures/sample/src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
// ** All changes to this file may be overwritten. **
1818

1919
/* eslint-disable node/no-missing-require, no-unused-vars */
20-
const clouddms = require('@google-cloud/clouddms');
20+
const clouddms = require('@google-cloud/dms');
2121

2222
function main() {
2323
const dataMigrationServiceClient = new clouddms.DataMigrationServiceClient();

packages/google-cloud-clouddms/system-test/fixtures/sample/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// ** https://github.com/googleapis/gapic-generator-typescript **
1717
// ** All changes to this file may be overwritten. **
1818

19-
import {DataMigrationServiceClient} from '@google-cloud/clouddms';
19+
import {DataMigrationServiceClient} from '@google-cloud/dms';
2020

2121
// check that the client class type name can be used
2222
function doStuffWithDataMigrationServiceClient(

0 commit comments

Comments
 (0)