Skip to content

Commit 412b162

Browse files
docs(samples): include metadata file, add exclusions for samples to handwritten libraries (#293)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 429395631 Source-Link: googleapis/googleapis@84594b3 Source-Link: googleapis/googleapis-gen@ed74f97 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZWQ3NGY5NzBmZDgyOTE0ODc0ZTZiMjdiMDQ3NjNjZmE2NmJhZmU5YiJ9
1 parent b76a2cb commit 412b162

16 files changed

Lines changed: 700 additions & 30 deletions

packages/google-cloud-billing-budgets/samples/generated/v1/budget_service.create_budget.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
1-
// Copyright 2021 Google LLC
1+
// Copyright 2022 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
55
// You may obtain a copy of the License at
66
//
7-
// http://www.apache.org/licenses/LICENSE-2.0
7+
// https://www.apache.org/licenses/LICENSE-2.0
88
//
99
// Unless required by applicable law or agreed to in writing, software
1010
// distributed under the License is distributed on an "AS IS" BASIS,
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
14+
//
15+
// ** This file is automatically generated by gapic-generator-typescript. **
16+
// ** https://github.com/googleapis/gapic-generator-typescript **
17+
// ** All changes to this file may be overwritten. **
18+
1419

1520

1621
'use strict';

packages/google-cloud-billing-budgets/samples/generated/v1/budget_service.delete_budget.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
1-
// Copyright 2021 Google LLC
1+
// Copyright 2022 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
55
// You may obtain a copy of the License at
66
//
7-
// http://www.apache.org/licenses/LICENSE-2.0
7+
// https://www.apache.org/licenses/LICENSE-2.0
88
//
99
// Unless required by applicable law or agreed to in writing, software
1010
// distributed under the License is distributed on an "AS IS" BASIS,
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
14+
//
15+
// ** This file is automatically generated by gapic-generator-typescript. **
16+
// ** https://github.com/googleapis/gapic-generator-typescript **
17+
// ** All changes to this file may be overwritten. **
18+
1419

1520

1621
'use strict';

packages/google-cloud-billing-budgets/samples/generated/v1/budget_service.get_budget.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
1-
// Copyright 2021 Google LLC
1+
// Copyright 2022 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
55
// You may obtain a copy of the License at
66
//
7-
// http://www.apache.org/licenses/LICENSE-2.0
7+
// https://www.apache.org/licenses/LICENSE-2.0
88
//
99
// Unless required by applicable law or agreed to in writing, software
1010
// distributed under the License is distributed on an "AS IS" BASIS,
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
14+
//
15+
// ** This file is automatically generated by gapic-generator-typescript. **
16+
// ** https://github.com/googleapis/gapic-generator-typescript **
17+
// ** All changes to this file may be overwritten. **
18+
1419

1520

1621
'use strict';

packages/google-cloud-billing-budgets/samples/generated/v1/budget_service.list_budgets.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
1-
// Copyright 2021 Google LLC
1+
// Copyright 2022 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
55
// You may obtain a copy of the License at
66
//
7-
// http://www.apache.org/licenses/LICENSE-2.0
7+
// https://www.apache.org/licenses/LICENSE-2.0
88
//
99
// Unless required by applicable law or agreed to in writing, software
1010
// distributed under the License is distributed on an "AS IS" BASIS,
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
14+
//
15+
// ** This file is automatically generated by gapic-generator-typescript. **
16+
// ** https://github.com/googleapis/gapic-generator-typescript **
17+
// ** All changes to this file may be overwritten. **
18+
1419

1520

1621
'use strict';

packages/google-cloud-billing-budgets/samples/generated/v1/budget_service.update_budget.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
1-
// Copyright 2021 Google LLC
1+
// Copyright 2022 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
55
// You may obtain a copy of the License at
66
//
7-
// http://www.apache.org/licenses/LICENSE-2.0
7+
// https://www.apache.org/licenses/LICENSE-2.0
88
//
99
// Unless required by applicable law or agreed to in writing, software
1010
// distributed under the License is distributed on an "AS IS" BASIS,
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
14+
//
15+
// ** This file is automatically generated by gapic-generator-typescript. **
16+
// ** https://github.com/googleapis/gapic-generator-typescript **
17+
// ** All changes to this file may be overwritten. **
18+
1419

1520

1621
'use strict';
Lines changed: 231 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,231 @@
1+
{
2+
"clientLibrary": {
3+
"name": "nodejs-budgets",
4+
"version": "0.1.0",
5+
"language": "TYPESCRIPT",
6+
"apis": [
7+
{
8+
"id": "google.cloud.billing.budgets.v1",
9+
"version": "v1"
10+
}
11+
]
12+
},
13+
"snippets": [
14+
{
15+
"regionTag": "billingbudgets_v1_generated_BudgetService_CreateBudget_async",
16+
"title": "BudgetService createBudget Sample",
17+
"origin": "API_DEFINITION",
18+
"description": " Creates a new budget. See [Quotas and limits](https://cloud.google.com/billing/quotas) for more information on the limits of the number of budgets you can create.",
19+
"canonical": true,
20+
"file": "budget_service.create_budget.js",
21+
"language": "JAVASCRIPT",
22+
"segments": [
23+
{
24+
"start": 25,
25+
"end": 56,
26+
"type": "FULL"
27+
}
28+
],
29+
"clientMethod": {
30+
"shortName": "CreateBudget",
31+
"fullName": "google.cloud.billing.budgets.v1.BudgetService.CreateBudget",
32+
"async": true,
33+
"parameters": [
34+
{
35+
"name": "parent",
36+
"type": "TYPE_STRING"
37+
},
38+
{
39+
"name": "budget",
40+
"type": ".google.cloud.billing.budgets.v1.Budget"
41+
}
42+
],
43+
"resultType": ".google.cloud.billing.budgets.v1.Budget",
44+
"client": {
45+
"shortName": "BudgetServiceClient",
46+
"fullName": "google.cloud.billing.budgets.v1.BudgetServiceClient"
47+
},
48+
"method": {
49+
"shortName": "CreateBudget",
50+
"fullName": "google.cloud.billing.budgets.v1.BudgetService.CreateBudget",
51+
"service": {
52+
"shortName": "BudgetService",
53+
"fullName": "google.cloud.billing.budgets.v1.BudgetService"
54+
}
55+
}
56+
}
57+
},
58+
{
59+
"regionTag": "billingbudgets_v1_generated_BudgetService_UpdateBudget_async",
60+
"title": "BudgetService updateBudget Sample",
61+
"origin": "API_DEFINITION",
62+
"description": " Updates a budget and returns the updated budget. WARNING: There are some fields exposed on the Google Cloud Console that aren't available on this API. Budget fields that are not exposed in this API will not be changed by this method.",
63+
"canonical": true,
64+
"file": "budget_service.update_budget.js",
65+
"language": "JAVASCRIPT",
66+
"segments": [
67+
{
68+
"start": 25,
69+
"end": 60,
70+
"type": "FULL"
71+
}
72+
],
73+
"clientMethod": {
74+
"shortName": "UpdateBudget",
75+
"fullName": "google.cloud.billing.budgets.v1.BudgetService.UpdateBudget",
76+
"async": true,
77+
"parameters": [
78+
{
79+
"name": "budget",
80+
"type": ".google.cloud.billing.budgets.v1.Budget"
81+
},
82+
{
83+
"name": "update_mask",
84+
"type": ".google.protobuf.FieldMask"
85+
}
86+
],
87+
"resultType": ".google.cloud.billing.budgets.v1.Budget",
88+
"client": {
89+
"shortName": "BudgetServiceClient",
90+
"fullName": "google.cloud.billing.budgets.v1.BudgetServiceClient"
91+
},
92+
"method": {
93+
"shortName": "UpdateBudget",
94+
"fullName": "google.cloud.billing.budgets.v1.BudgetService.UpdateBudget",
95+
"service": {
96+
"shortName": "BudgetService",
97+
"fullName": "google.cloud.billing.budgets.v1.BudgetService"
98+
}
99+
}
100+
}
101+
},
102+
{
103+
"regionTag": "billingbudgets_v1_generated_BudgetService_GetBudget_async",
104+
"title": "BudgetService getBudget Sample",
105+
"origin": "API_DEFINITION",
106+
"description": " Returns a budget. WARNING: There are some fields exposed on the Google Cloud Console that aren't available on this API. When reading from the API, you will not see these fields in the return value, though they may have been set in the Cloud Console.",
107+
"canonical": true,
108+
"file": "budget_service.get_budget.js",
109+
"language": "JAVASCRIPT",
110+
"segments": [
111+
{
112+
"start": 25,
113+
"end": 51,
114+
"type": "FULL"
115+
}
116+
],
117+
"clientMethod": {
118+
"shortName": "GetBudget",
119+
"fullName": "google.cloud.billing.budgets.v1.BudgetService.GetBudget",
120+
"async": true,
121+
"parameters": [
122+
{
123+
"name": "name",
124+
"type": "TYPE_STRING"
125+
}
126+
],
127+
"resultType": ".google.cloud.billing.budgets.v1.Budget",
128+
"client": {
129+
"shortName": "BudgetServiceClient",
130+
"fullName": "google.cloud.billing.budgets.v1.BudgetServiceClient"
131+
},
132+
"method": {
133+
"shortName": "GetBudget",
134+
"fullName": "google.cloud.billing.budgets.v1.BudgetService.GetBudget",
135+
"service": {
136+
"shortName": "BudgetService",
137+
"fullName": "google.cloud.billing.budgets.v1.BudgetService"
138+
}
139+
}
140+
}
141+
},
142+
{
143+
"regionTag": "billingbudgets_v1_generated_BudgetService_ListBudgets_async",
144+
"title": "BudgetService listBudgets Sample",
145+
"origin": "API_DEFINITION",
146+
"description": " Returns a list of budgets for a billing account. WARNING: There are some fields exposed on the Google Cloud Console that aren't available on this API. When reading from the API, you will not see these fields in the return value, though they may have been set in the Cloud Console.",
147+
"canonical": true,
148+
"file": "budget_service.list_budgets.js",
149+
"language": "JAVASCRIPT",
150+
"segments": [
151+
{
152+
"start": 25,
153+
"end": 64,
154+
"type": "FULL"
155+
}
156+
],
157+
"clientMethod": {
158+
"shortName": "ListBudgets",
159+
"fullName": "google.cloud.billing.budgets.v1.BudgetService.ListBudgets",
160+
"async": true,
161+
"parameters": [
162+
{
163+
"name": "parent",
164+
"type": "TYPE_STRING"
165+
},
166+
{
167+
"name": "page_size",
168+
"type": "TYPE_INT32"
169+
},
170+
{
171+
"name": "page_token",
172+
"type": "TYPE_STRING"
173+
}
174+
],
175+
"resultType": ".google.cloud.billing.budgets.v1.ListBudgetsResponse",
176+
"client": {
177+
"shortName": "BudgetServiceClient",
178+
"fullName": "google.cloud.billing.budgets.v1.BudgetServiceClient"
179+
},
180+
"method": {
181+
"shortName": "ListBudgets",
182+
"fullName": "google.cloud.billing.budgets.v1.BudgetService.ListBudgets",
183+
"service": {
184+
"shortName": "BudgetService",
185+
"fullName": "google.cloud.billing.budgets.v1.BudgetService"
186+
}
187+
}
188+
}
189+
},
190+
{
191+
"regionTag": "billingbudgets_v1_generated_BudgetService_DeleteBudget_async",
192+
"title": "BudgetService deleteBudget Sample",
193+
"origin": "API_DEFINITION",
194+
"description": " Deletes a budget. Returns successfully if already deleted.",
195+
"canonical": true,
196+
"file": "budget_service.delete_budget.js",
197+
"language": "JAVASCRIPT",
198+
"segments": [
199+
{
200+
"start": 25,
201+
"end": 51,
202+
"type": "FULL"
203+
}
204+
],
205+
"clientMethod": {
206+
"shortName": "DeleteBudget",
207+
"fullName": "google.cloud.billing.budgets.v1.BudgetService.DeleteBudget",
208+
"async": true,
209+
"parameters": [
210+
{
211+
"name": "name",
212+
"type": "TYPE_STRING"
213+
}
214+
],
215+
"resultType": ".google.protobuf.Empty",
216+
"client": {
217+
"shortName": "BudgetServiceClient",
218+
"fullName": "google.cloud.billing.budgets.v1.BudgetServiceClient"
219+
},
220+
"method": {
221+
"shortName": "DeleteBudget",
222+
"fullName": "google.cloud.billing.budgets.v1.BudgetService.DeleteBudget",
223+
"service": {
224+
"shortName": "BudgetService",
225+
"fullName": "google.cloud.billing.budgets.v1.BudgetService"
226+
}
227+
}
228+
}
229+
}
230+
]
231+
}

packages/google-cloud-billing-budgets/samples/generated/v1beta1/budget_service.create_budget.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
1-
// Copyright 2021 Google LLC
1+
// Copyright 2022 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
55
// You may obtain a copy of the License at
66
//
7-
// http://www.apache.org/licenses/LICENSE-2.0
7+
// https://www.apache.org/licenses/LICENSE-2.0
88
//
99
// Unless required by applicable law or agreed to in writing, software
1010
// distributed under the License is distributed on an "AS IS" BASIS,
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
14+
//
15+
// ** This file is automatically generated by gapic-generator-typescript. **
16+
// ** https://github.com/googleapis/gapic-generator-typescript **
17+
// ** All changes to this file may be overwritten. **
18+
1419

1520

1621
'use strict';

packages/google-cloud-billing-budgets/samples/generated/v1beta1/budget_service.delete_budget.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
1-
// Copyright 2021 Google LLC
1+
// Copyright 2022 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
55
// You may obtain a copy of the License at
66
//
7-
// http://www.apache.org/licenses/LICENSE-2.0
7+
// https://www.apache.org/licenses/LICENSE-2.0
88
//
99
// Unless required by applicable law or agreed to in writing, software
1010
// distributed under the License is distributed on an "AS IS" BASIS,
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
14+
//
15+
// ** This file is automatically generated by gapic-generator-typescript. **
16+
// ** https://github.com/googleapis/gapic-generator-typescript **
17+
// ** All changes to this file may be overwritten. **
18+
1419

1520

1621
'use strict';

0 commit comments

Comments
 (0)