Skip to content

Commit

Permalink
feat(analyticsadmin)!: update the API
Browse files Browse the repository at this point in the history
BREAKING CHANGE: This release has breaking changes.

#### analyticsadmin:v1alpha

The following keys were deleted:
- schemas.GoogleAnalyticsAdminV1alphaProperty.properties.deleted.description
- schemas.GoogleAnalyticsAdminV1alphaProperty.properties.deleted.readOnly
- schemas.GoogleAnalyticsAdminV1alphaProperty.properties.deleted.type

The following keys were added:
- schemas.GoogleAnalyticsAdminV1alphaProperty.properties.deleteTime.description
- schemas.GoogleAnalyticsAdminV1alphaProperty.properties.deleteTime.format
- schemas.GoogleAnalyticsAdminV1alphaProperty.properties.deleteTime.readOnly
- schemas.GoogleAnalyticsAdminV1alphaProperty.properties.deleteTime.type
- schemas.GoogleAnalyticsAdminV1alphaProperty.properties.expireTime.description
- schemas.GoogleAnalyticsAdminV1alphaProperty.properties.expireTime.format
- schemas.GoogleAnalyticsAdminV1alphaProperty.properties.expireTime.readOnly
- schemas.GoogleAnalyticsAdminV1alphaProperty.properties.expireTime.type

The following keys were changed:
- resources.properties.methods.delete.response.$ref
  • Loading branch information
yoshi-automation authored and sofisl committed Apr 6, 2021
1 parent 16523be commit 5fc76fa
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 24 deletions.
17 changes: 12 additions & 5 deletions discovery/analyticsadmin-v1alpha.json
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@
},
"path": "v1alpha/{+name}",
"response": {
"$ref": "GoogleProtobufEmpty"
"$ref": "GoogleAnalyticsAdminV1alphaProperty"
},
"scopes": [
"https://www.googleapis.com/auth/analytics.edit"
Expand Down Expand Up @@ -1890,7 +1890,7 @@
}
}
},
"revision": "20210322",
"revision": "20210403",
"rootUrl": "https://analyticsadmin.googleapis.com/",
"schemas": {
"GoogleAnalyticsAdminV1alphaAccount": {
Expand Down Expand Up @@ -2692,15 +2692,22 @@
"description": "The currency type used in reports involving monetary values. Format: https://en.wikipedia.org/wiki/ISO_4217 Examples: \"USD\", \"EUR\", \"JPY\"",
"type": "string"
},
"deleted": {
"description": "Output only. Indicates whether this Property is soft-deleted or not. Deleted properties are excluded from List results unless specifically requested.",
"deleteTime": {
"description": "Output only. If set, the time at which this property was trashed. If not set, then this property is not currently in the trash can.",
"format": "google-datetime",
"readOnly": true,
"type": "boolean"
"type": "string"
},
"displayName": {
"description": "Required. Human-readable display name for this property. The max allowed display name length is 100 UTF-16 code units.",
"type": "string"
},
"expireTime": {
"description": "Output only. If set, the time at which this trashed property will be permanently deleted. If not set, then this property is not currently in the trash can and is not slated to be deleted.",
"format": "google-datetime",
"readOnly": true,
"type": "string"
},
"industryCategory": {
"description": "Industry associated with this property Example: AUTOMOTIVE, FOOD_AND_DRINK",
"enum": [
Expand Down
64 changes: 45 additions & 19 deletions src/apis/analyticsadmin/v1alpha.ts
Original file line number Diff line number Diff line change
Expand Up @@ -730,13 +730,17 @@ export namespace analyticsadmin_v1alpha {
*/
currencyCode?: string | null;
/**
* Output only. Indicates whether this Property is soft-deleted or not. Deleted properties are excluded from List results unless specifically requested.
* Output only. If set, the time at which this property was trashed. If not set, then this property is not currently in the trash can.
*/
deleted?: boolean | null;
deleteTime?: string | null;
/**
* Required. Human-readable display name for this property. The max allowed display name length is 100 UTF-16 code units.
*/
displayName?: string | null;
/**
* Output only. If set, the time at which this trashed property will be permanently deleted. If not set, then this property is not currently in the trash can and is not slated to be deleted.
*/
expireTime?: string | null;
/**
* Industry associated with this property Example: AUTOMOTIVE, FOOD_AND_DRINK
*/
Expand Down Expand Up @@ -3791,8 +3795,9 @@ export namespace analyticsadmin_v1alpha {
* // {
* // "createTime": "my_createTime",
* // "currencyCode": "my_currencyCode",
* // "deleted": false,
* // "deleteTime": "my_deleteTime",
* // "displayName": "my_displayName",
* // "expireTime": "my_expireTime",
* // "industryCategory": "my_industryCategory",
* // "name": "my_name",
* // "parent": "my_parent",
Expand All @@ -3807,8 +3812,9 @@ export namespace analyticsadmin_v1alpha {
* // {
* // "createTime": "my_createTime",
* // "currencyCode": "my_currencyCode",
* // "deleted": false,
* // "deleteTime": "my_deleteTime",
* // "displayName": "my_displayName",
* // "expireTime": "my_expireTime",
* // "industryCategory": "my_industryCategory",
* // "name": "my_name",
* // "parent": "my_parent",
Expand Down Expand Up @@ -3951,7 +3957,18 @@ export namespace analyticsadmin_v1alpha {
* console.log(res.data);
*
* // Example response
* // {}
* // {
* // "createTime": "my_createTime",
* // "currencyCode": "my_currencyCode",
* // "deleteTime": "my_deleteTime",
* // "displayName": "my_displayName",
* // "expireTime": "my_expireTime",
* // "industryCategory": "my_industryCategory",
* // "name": "my_name",
* // "parent": "my_parent",
* // "timeZone": "my_timeZone",
* // "updateTime": "my_updateTime"
* // }
* }
*
* main().catch(e => {
Expand All @@ -3973,38 +3990,42 @@ export namespace analyticsadmin_v1alpha {
delete(
params?: Params$Resource$Properties$Delete,
options?: MethodOptions
): GaxiosPromise<Schema$GoogleProtobufEmpty>;
): GaxiosPromise<Schema$GoogleAnalyticsAdminV1alphaProperty>;
delete(
params: Params$Resource$Properties$Delete,
options: StreamMethodOptions | BodyResponseCallback<Readable>,
callback: BodyResponseCallback<Readable>
): void;
delete(
params: Params$Resource$Properties$Delete,
options: MethodOptions | BodyResponseCallback<Schema$GoogleProtobufEmpty>,
callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>
options:
| MethodOptions
| BodyResponseCallback<Schema$GoogleAnalyticsAdminV1alphaProperty>,
callback: BodyResponseCallback<Schema$GoogleAnalyticsAdminV1alphaProperty>
): void;
delete(
params: Params$Resource$Properties$Delete,
callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>
callback: BodyResponseCallback<Schema$GoogleAnalyticsAdminV1alphaProperty>
): void;
delete(
callback: BodyResponseCallback<Schema$GoogleAnalyticsAdminV1alphaProperty>
): void;
delete(callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
delete(
paramsOrCallback?:
| Params$Resource$Properties$Delete
| BodyResponseCallback<Schema$GoogleProtobufEmpty>
| BodyResponseCallback<Schema$GoogleAnalyticsAdminV1alphaProperty>
| BodyResponseCallback<Readable>,
optionsOrCallback?:
| MethodOptions
| StreamMethodOptions
| BodyResponseCallback<Schema$GoogleProtobufEmpty>
| BodyResponseCallback<Schema$GoogleAnalyticsAdminV1alphaProperty>
| BodyResponseCallback<Readable>,
callback?:
| BodyResponseCallback<Schema$GoogleProtobufEmpty>
| BodyResponseCallback<Schema$GoogleAnalyticsAdminV1alphaProperty>
| BodyResponseCallback<Readable>
):
| void
| GaxiosPromise<Schema$GoogleProtobufEmpty>
| GaxiosPromise<Schema$GoogleAnalyticsAdminV1alphaProperty>
| GaxiosPromise<Readable> {
let params = (paramsOrCallback ||
{}) as Params$Resource$Properties$Delete;
Expand Down Expand Up @@ -4037,12 +4058,14 @@ export namespace analyticsadmin_v1alpha {
context: this.context,
};
if (callback) {
createAPIRequest<Schema$GoogleProtobufEmpty>(
createAPIRequest<Schema$GoogleAnalyticsAdminV1alphaProperty>(
parameters,
callback as BodyResponseCallback<unknown>
);
} else {
return createAPIRequest<Schema$GoogleProtobufEmpty>(parameters);
return createAPIRequest<Schema$GoogleAnalyticsAdminV1alphaProperty>(
parameters
);
}
}

Expand Down Expand Up @@ -4085,8 +4108,9 @@ export namespace analyticsadmin_v1alpha {
* // {
* // "createTime": "my_createTime",
* // "currencyCode": "my_currencyCode",
* // "deleted": false,
* // "deleteTime": "my_deleteTime",
* // "displayName": "my_displayName",
* // "expireTime": "my_expireTime",
* // "industryCategory": "my_industryCategory",
* // "name": "my_name",
* // "parent": "my_parent",
Expand Down Expand Up @@ -4378,8 +4402,9 @@ export namespace analyticsadmin_v1alpha {
* // {
* // "createTime": "my_createTime",
* // "currencyCode": "my_currencyCode",
* // "deleted": false,
* // "deleteTime": "my_deleteTime",
* // "displayName": "my_displayName",
* // "expireTime": "my_expireTime",
* // "industryCategory": "my_industryCategory",
* // "name": "my_name",
* // "parent": "my_parent",
Expand All @@ -4394,8 +4419,9 @@ export namespace analyticsadmin_v1alpha {
* // {
* // "createTime": "my_createTime",
* // "currencyCode": "my_currencyCode",
* // "deleted": false,
* // "deleteTime": "my_deleteTime",
* // "displayName": "my_displayName",
* // "expireTime": "my_expireTime",
* // "industryCategory": "my_industryCategory",
* // "name": "my_name",
* // "parent": "my_parent",
Expand Down

0 comments on commit 5fc76fa

Please sign in to comment.