Skip to content

Commit 89f1d32

Browse files
yoshi-automationsofisl
authored andcommitted
feat(apphub)!: update the API
BREAKING CHANGE: This release has breaking changes. #### apphub:v1alpha The following keys were deleted: - resources.projects.resources.locations.methods.getPerimeter.description - resources.projects.resources.locations.methods.getPerimeter.flatPath - resources.projects.resources.locations.methods.getPerimeter.httpMethod - resources.projects.resources.locations.methods.getPerimeter.id - resources.projects.resources.locations.methods.getPerimeter.parameterOrder - resources.projects.resources.locations.methods.getPerimeter.parameters.name.description - resources.projects.resources.locations.methods.getPerimeter.parameters.name.location - resources.projects.resources.locations.methods.getPerimeter.parameters.name.pattern - resources.projects.resources.locations.methods.getPerimeter.parameters.name.required - resources.projects.resources.locations.methods.getPerimeter.parameters.name.type - resources.projects.resources.locations.methods.getPerimeter.path - resources.projects.resources.locations.methods.getPerimeter.response.$ref - resources.projects.resources.locations.methods.getPerimeter.scopes - schemas.Perimeter.description - schemas.Perimeter.id - schemas.Perimeter.properties.createTime.description - schemas.Perimeter.properties.createTime.format - schemas.Perimeter.properties.createTime.readOnly - schemas.Perimeter.properties.createTime.type - schemas.Perimeter.properties.name.description - schemas.Perimeter.properties.name.type - schemas.Perimeter.properties.perimeterNode.description - schemas.Perimeter.properties.perimeterNode.type - schemas.Perimeter.properties.state.description - schemas.Perimeter.properties.state.enum - schemas.Perimeter.properties.state.enumDescriptions - schemas.Perimeter.properties.state.readOnly - schemas.Perimeter.properties.state.type - schemas.Perimeter.properties.updateTime.description - schemas.Perimeter.properties.updateTime.format - schemas.Perimeter.properties.updateTime.readOnly - schemas.Perimeter.properties.updateTime.type - schemas.Perimeter.type
1 parent fe3b295 commit 89f1d32

File tree

2 files changed

+1
-238
lines changed

2 files changed

+1
-238
lines changed

discovery/apphub-v1alpha.json

Lines changed: 1 addition & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -162,31 +162,6 @@
162162
"https://www.googleapis.com/auth/cloud-platform"
163163
]
164164
},
165-
"getPerimeter": {
166-
"description": "Gets a perimeter",
167-
"flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/perimeter",
168-
"httpMethod": "GET",
169-
"id": "apphub.projects.locations.getPerimeter",
170-
"parameterOrder": [
171-
"name"
172-
],
173-
"parameters": {
174-
"name": {
175-
"description": "Required. Fully qualified name of the Perimeter Expected format: `projects/{project}/locations/{location}/perimeter`.",
176-
"location": "path",
177-
"pattern": "^projects/[^/]+/locations/[^/]+/perimeter$",
178-
"required": true,
179-
"type": "string"
180-
}
181-
},
182-
"path": "v1alpha/{+name}",
183-
"response": {
184-
"$ref": "Perimeter"
185-
},
186-
"scopes": [
187-
"https://www.googleapis.com/auth/cloud-platform"
188-
]
189-
},
190165
"list": {
191166
"description": "Lists information about the supported locations for this service.",
192167
"flatPath": "v1alpha/projects/{projectsId}/locations",
@@ -1469,7 +1444,7 @@
14691444
}
14701445
}
14711446
},
1472-
"revision": "20250416",
1447+
"revision": "20250630",
14731448
"rootUrl": "https://apphub.googleapis.com/",
14741449
"schemas": {
14751450
"Application": {
@@ -2205,48 +2180,6 @@
22052180
},
22062181
"type": "object"
22072182
},
2208-
"Perimeter": {
2209-
"description": "Perimeter is a boundary that describes application management on a `perimeter_node` (currently limited to an app-enabled folder).",
2210-
"id": "Perimeter",
2211-
"properties": {
2212-
"createTime": {
2213-
"description": "Output only. Create time.",
2214-
"format": "google-datetime",
2215-
"readOnly": true,
2216-
"type": "string"
2217-
},
2218-
"name": {
2219-
"description": "Identifier. Name of the Perimeter resource.",
2220-
"type": "string"
2221-
},
2222-
"perimeterNode": {
2223-
"description": "Immutable. Cloud Resource Manager node that determines the perimeter. Only `folders/{folder_number}` is currently supported.",
2224-
"type": "string"
2225-
},
2226-
"state": {
2227-
"description": "Output only. Perimeter state.",
2228-
"enum": [
2229-
"STATE_UNSPECIFIED",
2230-
"UPDATING",
2231-
"ACTIVE"
2232-
],
2233-
"enumDescriptions": [
2234-
"Unspecified state.",
2235-
"The Perimeter is being created or updated.",
2236-
"The Perimeter is ready."
2237-
],
2238-
"readOnly": true,
2239-
"type": "string"
2240-
},
2241-
"updateTime": {
2242-
"description": "Output only. Update time.",
2243-
"format": "google-datetime",
2244-
"readOnly": true,
2245-
"type": "string"
2246-
}
2247-
},
2248-
"type": "object"
2249-
},
22502183
"Policy": {
22512184
"description": "An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** ``` { \"bindings\": [ { \"role\": \"roles/resourcemanager.organizationAdmin\", \"members\": [ \"user:[email protected]\", \"group:[email protected]\", \"domain:google.com\", \"serviceAccount:[email protected]\" ] }, { \"role\": \"roles/resourcemanager.organizationViewer\", \"members\": [ \"user:[email protected]\" ], \"condition\": { \"title\": \"expirable access\", \"description\": \"Does not grant access after Sep 2020\", \"expression\": \"request.time < timestamp('2020-10-01T00:00:00.000Z')\", } } ], \"etag\": \"BwWWja0YfJA=\", \"version\": 3 } ``` **YAML example:** ``` bindings: - members: - user:[email protected] - group:[email protected] - domain:google.com - serviceAccount:[email protected] role: roles/resourcemanager.organizationAdmin - members: - user:[email protected] role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).",
22522185
"id": "Policy",

src/apis/apphub/v1alpha.ts

Lines changed: 0 additions & 170 deletions
Original file line numberDiff line numberDiff line change
@@ -632,31 +632,6 @@ export namespace apphub_v1alpha {
632632
*/
633633
verb?: string | null;
634634
}
635-
/**
636-
* Perimeter is a boundary that describes application management on a `perimeter_node` (currently limited to an app-enabled folder).
637-
*/
638-
export interface Schema$Perimeter {
639-
/**
640-
* Output only. Create time.
641-
*/
642-
createTime?: string | null;
643-
/**
644-
* Identifier. Name of the Perimeter resource.
645-
*/
646-
name?: string | null;
647-
/**
648-
* Immutable. Cloud Resource Manager node that determines the perimeter. Only `folders/{folder_number\}` is currently supported.
649-
*/
650-
perimeterNode?: string | null;
651-
/**
652-
* Output only. Perimeter state.
653-
*/
654-
state?: string | null;
655-
/**
656-
* Output only. Update time.
657-
*/
658-
updateTime?: string | null;
659-
}
660635
/**
661636
* An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** ``` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:[email protected]", "domain:google.com", "serviceAccount:[email protected]" ] \}, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:[email protected]" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", \} \} ], "etag": "BwWWja0YfJA=", "version": 3 \} ``` **YAML example:** ``` bindings: - members: - user:[email protected] - group:[email protected] - domain:google.com - serviceAccount:[email protected] role: roles/resourcemanager.organizationAdmin - members: - user:[email protected] role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).
662637
*/
@@ -1236,144 +1211,6 @@ export namespace apphub_v1alpha {
12361211
}
12371212
}
12381213

1239-
/**
1240-
* Gets a perimeter
1241-
* @example
1242-
* ```js
1243-
* // Before running the sample:
1244-
* // - Enable the API at:
1245-
* // https://console.developers.google.com/apis/api/apphub.googleapis.com
1246-
* // - Login into gcloud by running:
1247-
* // ```sh
1248-
* // $ gcloud auth application-default login
1249-
* // ```
1250-
* // - Install the npm module by running:
1251-
* // ```sh
1252-
* // $ npm install googleapis
1253-
* // ```
1254-
*
1255-
* const {google} = require('googleapis');
1256-
* const apphub = google.apphub('v1alpha');
1257-
*
1258-
* async function main() {
1259-
* const auth = new google.auth.GoogleAuth({
1260-
* // Scopes can be specified either as an array or as a single, space-delimited string.
1261-
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
1262-
* });
1263-
*
1264-
* // Acquire an auth client, and bind it to all future calls
1265-
* const authClient = await auth.getClient();
1266-
* google.options({auth: authClient});
1267-
*
1268-
* // Do the magic
1269-
* const res = await apphub.projects.locations.getPerimeter({
1270-
* // Required. Fully qualified name of the Perimeter Expected format: `projects/{project\}/locations/{location\}/perimeter`.
1271-
* name: 'projects/my-project/locations/my-location/perimeter',
1272-
* });
1273-
* console.log(res.data);
1274-
*
1275-
* // Example response
1276-
* // {
1277-
* // "createTime": "my_createTime",
1278-
* // "name": "my_name",
1279-
* // "perimeterNode": "my_perimeterNode",
1280-
* // "state": "my_state",
1281-
* // "updateTime": "my_updateTime"
1282-
* // }
1283-
* }
1284-
*
1285-
* main().catch(e => {
1286-
* console.error(e);
1287-
* throw e;
1288-
* });
1289-
*
1290-
* ```
1291-
*
1292-
* @param params - Parameters for request
1293-
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
1294-
* @param callback - Optional callback that handles the response.
1295-
* @returns A promise if used with async/await, or void if used with a callback.
1296-
*/
1297-
getPerimeter(
1298-
params: Params$Resource$Projects$Locations$Getperimeter,
1299-
options: StreamMethodOptions
1300-
): Promise<GaxiosResponseWithHTTP2<Readable>>;
1301-
getPerimeter(
1302-
params?: Params$Resource$Projects$Locations$Getperimeter,
1303-
options?: MethodOptions
1304-
): Promise<GaxiosResponseWithHTTP2<Schema$Perimeter>>;
1305-
getPerimeter(
1306-
params: Params$Resource$Projects$Locations$Getperimeter,
1307-
options: StreamMethodOptions | BodyResponseCallback<Readable>,
1308-
callback: BodyResponseCallback<Readable>
1309-
): void;
1310-
getPerimeter(
1311-
params: Params$Resource$Projects$Locations$Getperimeter,
1312-
options: MethodOptions | BodyResponseCallback<Schema$Perimeter>,
1313-
callback: BodyResponseCallback<Schema$Perimeter>
1314-
): void;
1315-
getPerimeter(
1316-
params: Params$Resource$Projects$Locations$Getperimeter,
1317-
callback: BodyResponseCallback<Schema$Perimeter>
1318-
): void;
1319-
getPerimeter(callback: BodyResponseCallback<Schema$Perimeter>): void;
1320-
getPerimeter(
1321-
paramsOrCallback?:
1322-
| Params$Resource$Projects$Locations$Getperimeter
1323-
| BodyResponseCallback<Schema$Perimeter>
1324-
| BodyResponseCallback<Readable>,
1325-
optionsOrCallback?:
1326-
| MethodOptions
1327-
| StreamMethodOptions
1328-
| BodyResponseCallback<Schema$Perimeter>
1329-
| BodyResponseCallback<Readable>,
1330-
callback?:
1331-
| BodyResponseCallback<Schema$Perimeter>
1332-
| BodyResponseCallback<Readable>
1333-
):
1334-
| void
1335-
| Promise<GaxiosResponseWithHTTP2<Schema$Perimeter>>
1336-
| Promise<GaxiosResponseWithHTTP2<Readable>> {
1337-
let params = (paramsOrCallback ||
1338-
{}) as Params$Resource$Projects$Locations$Getperimeter;
1339-
let options = (optionsOrCallback || {}) as MethodOptions;
1340-
1341-
if (typeof paramsOrCallback === 'function') {
1342-
callback = paramsOrCallback;
1343-
params = {} as Params$Resource$Projects$Locations$Getperimeter;
1344-
options = {};
1345-
}
1346-
1347-
if (typeof optionsOrCallback === 'function') {
1348-
callback = optionsOrCallback;
1349-
options = {};
1350-
}
1351-
1352-
const rootUrl = options.rootUrl || 'https://apphub.googleapis.com/';
1353-
const parameters = {
1354-
options: Object.assign(
1355-
{
1356-
url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'),
1357-
method: 'GET',
1358-
apiVersion: '',
1359-
},
1360-
options
1361-
),
1362-
params,
1363-
requiredParams: ['name'],
1364-
pathParams: ['name'],
1365-
context: this.context,
1366-
};
1367-
if (callback) {
1368-
createAPIRequest<Schema$Perimeter>(
1369-
parameters,
1370-
callback as BodyResponseCallback<unknown>
1371-
);
1372-
} else {
1373-
return createAPIRequest<Schema$Perimeter>(parameters);
1374-
}
1375-
}
1376-
13771214
/**
13781215
* Lists information about the supported locations for this service.
13791216
* @example
@@ -1689,13 +1526,6 @@ export namespace apphub_v1alpha {
16891526
*/
16901527
name?: string;
16911528
}
1692-
export interface Params$Resource$Projects$Locations$Getperimeter
1693-
extends StandardParameters {
1694-
/**
1695-
* Required. Fully qualified name of the Perimeter Expected format: `projects/{project\}/locations/{location\}/perimeter`.
1696-
*/
1697-
name?: string;
1698-
}
16991529
export interface Params$Resource$Projects$Locations$List
17001530
extends StandardParameters {
17011531
/**

0 commit comments

Comments
 (0)