Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

Commit eacbd16

Browse files
committed
Replace appProfileId path
1 parent d501eaf commit eacbd16

2 files changed

Lines changed: 7 additions & 35 deletions

File tree

samples/api-reference-doc-snippets/app-profile.js

Lines changed: 6 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -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
};

samples/api-reference-doc-snippets/instance.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,7 @@ const snippets = {
8282
const projectId = await instanceAdminClient.getProjectId();
8383

8484
const appProfile = {
85-
name: instanceAdminClient.appProfilePath(
86-
projectId,
87-
instanceId,
88-
appProfileId
89-
),
85+
name: `projects/${projectId}/instances/${instanceId}/appProfiles/${appProfileId}`,
9086
multiClusterRoutingUseAny: {},
9187
};
9288

0 commit comments

Comments
 (0)