@@ -20,11 +20,7 @@ const snippets = {
2020 const projectId = await instanceAdminClient . getProjectId ( ) ;
2121
2222 const appProfile = {
23- name : instanceAdminClient . appProfilePath (
24- projectId ,
25- instanceId ,
26- appProfileId ,
27- ) ,
23+ name : `projects/${ projectId } /instances/${ instanceId } /appProfiles/${ appProfileId } ` ,
2824 multiClusterRoutingUseAny : { } ,
2925 } ;
3026
@@ -53,11 +49,7 @@ const snippets = {
5349 const projectId = await instanceAdminClient . getProjectId ( ) ;
5450
5551 const request = {
56- name : instanceAdminClient . appProfilePath (
57- projectId ,
58- instanceId ,
59- appProfileId ,
60- ) ,
52+ name : `projects/${ projectId } /instances/${ instanceId } /appProfiles/${ appProfileId } ` ,
6153 } ;
6254
6355 instanceAdminClient
@@ -78,11 +70,7 @@ const snippets = {
7870 const projectId = await instanceAdminClient . getProjectId ( ) ;
7971
8072 const request = {
81- name : instanceAdminClient . appProfilePath (
82- projectId ,
83- instanceId ,
84- appProfileId ,
85- ) ,
73+ name : `projects/${ projectId } /instances/${ instanceId } /appProfiles/${ appProfileId } ` ,
8674 } ;
8775
8876 try {
@@ -106,11 +94,7 @@ const snippets = {
10694 const projectId = await instanceAdminClient . getProjectId ( ) ;
10795
10896 const request = {
109- name : instanceAdminClient . appProfilePath (
110- projectId ,
111- instanceId ,
112- appProfileId ,
113- ) ,
97+ name : `projects/${ projectId } /instances/${ instanceId } /appProfiles/${ appProfileId } ` ,
11498 } ;
11599
116100 instanceAdminClient
@@ -132,11 +116,7 @@ const snippets = {
132116 const projectId = await instanceAdminClient . getProjectId ( ) ;
133117
134118 const request = {
135- name : instanceAdminClient . appProfilePath (
136- projectId ,
137- instanceId ,
138- appProfileId ,
139- ) ,
119+ name : `projects/${ projectId } /instances/${ instanceId } /appProfiles/${ appProfileId } ` ,
140120 } ;
141121
142122 instanceAdminClient
@@ -158,11 +138,7 @@ const snippets = {
158138 const projectId = await instanceAdminClient . getProjectId ( ) ;
159139
160140 const appProfile = {
161- name : instanceAdminClient . appProfilePath (
162- projectId ,
163- instanceId ,
164- appProfileId ,
165- ) ,
141+ name : `projects/${ projectId } /instances/${ instanceId } /appProfiles/${ appProfileId } ` ,
166142 description : 'My Updated App Profile' ,
167143 multiClusterRoutingUseAny : { } ,
168144 } ;
0 commit comments