Skip to content

Commit

Permalink
feat(policyanalyzer): update the API
Browse files Browse the repository at this point in the history
#### policyanalyzer:v1beta1

The following keys were added:
- resources.folders.resources.locations.resources.activityTypes.resources.activities.methods.query.description
- resources.folders.resources.locations.resources.activityTypes.resources.activities.methods.query.flatPath
- resources.folders.resources.locations.resources.activityTypes.resources.activities.methods.query.httpMethod
- resources.folders.resources.locations.resources.activityTypes.resources.activities.methods.query.id
- resources.folders.resources.locations.resources.activityTypes.resources.activities.methods.query.parameterOrder
- resources.folders.resources.locations.resources.activityTypes.resources.activities.methods.query.parameters.filter.description
- resources.folders.resources.locations.resources.activityTypes.resources.activities.methods.query.parameters.filter.location
- resources.folders.resources.locations.resources.activityTypes.resources.activities.methods.query.parameters.filter.type
- resources.folders.resources.locations.resources.activityTypes.resources.activities.methods.query.parameters.pageSize.description
- resources.folders.resources.locations.resources.activityTypes.resources.activities.methods.query.parameters.pageSize.format
- resources.folders.resources.locations.resources.activityTypes.resources.activities.methods.query.parameters.pageSize.location
- resources.folders.resources.locations.resources.activityTypes.resources.activities.methods.query.parameters.pageSize.type
- resources.folders.resources.locations.resources.activityTypes.resources.activities.methods.query.parameters.pageToken.description
- resources.folders.resources.locations.resources.activityTypes.resources.activities.methods.query.parameters.pageToken.location
- resources.folders.resources.locations.resources.activityTypes.resources.activities.methods.query.parameters.pageToken.type
- resources.folders.resources.locations.resources.activityTypes.resources.activities.methods.query.parameters.parent.description
- resources.folders.resources.locations.resources.activityTypes.resources.activities.methods.query.parameters.parent.location
- resources.folders.resources.locations.resources.activityTypes.resources.activities.methods.query.parameters.parent.pattern
- resources.folders.resources.locations.resources.activityTypes.resources.activities.methods.query.parameters.parent.required
- resources.folders.resources.locations.resources.activityTypes.resources.activities.methods.query.parameters.parent.type
- resources.folders.resources.locations.resources.activityTypes.resources.activities.methods.query.path
- resources.folders.resources.locations.resources.activityTypes.resources.activities.methods.query.response.$ref
- resources.folders.resources.locations.resources.activityTypes.resources.activities.methods.query.scopes
- resources.organizations.resources.locations.resources.activityTypes.resources.activities.methods.query.description
- resources.organizations.resources.locations.resources.activityTypes.resources.activities.methods.query.flatPath
- resources.organizations.resources.locations.resources.activityTypes.resources.activities.methods.query.httpMethod
- resources.organizations.resources.locations.resources.activityTypes.resources.activities.methods.query.id
- resources.organizations.resources.locations.resources.activityTypes.resources.activities.methods.query.parameterOrder
- resources.organizations.resources.locations.resources.activityTypes.resources.activities.methods.query.parameters.filter.description
- resources.organizations.resources.locations.resources.activityTypes.resources.activities.methods.query.parameters.filter.location
- resources.organizations.resources.locations.resources.activityTypes.resources.activities.methods.query.parameters.filter.type
- resources.organizations.resources.locations.resources.activityTypes.resources.activities.methods.query.parameters.pageSize.description
- resources.organizations.resources.locations.resources.activityTypes.resources.activities.methods.query.parameters.pageSize.format
- resources.organizations.resources.locations.resources.activityTypes.resources.activities.methods.query.parameters.pageSize.location
- resources.organizations.resources.locations.resources.activityTypes.resources.activities.methods.query.parameters.pageSize.type
- resources.organizations.resources.locations.resources.activityTypes.resources.activities.methods.query.parameters.pageToken.description
- resources.organizations.resources.locations.resources.activityTypes.resources.activities.methods.query.parameters.pageToken.location
- resources.organizations.resources.locations.resources.activityTypes.resources.activities.methods.query.parameters.pageToken.type
- resources.organizations.resources.locations.resources.activityTypes.resources.activities.methods.query.parameters.parent.description
- resources.organizations.resources.locations.resources.activityTypes.resources.activities.methods.query.parameters.parent.location
- resources.organizations.resources.locations.resources.activityTypes.resources.activities.methods.query.parameters.parent.pattern
- resources.organizations.resources.locations.resources.activityTypes.resources.activities.methods.query.parameters.parent.required
- resources.organizations.resources.locations.resources.activityTypes.resources.activities.methods.query.parameters.parent.type
- resources.organizations.resources.locations.resources.activityTypes.resources.activities.methods.query.path
- resources.organizations.resources.locations.resources.activityTypes.resources.activities.methods.query.response.$ref
- resources.organizations.resources.locations.resources.activityTypes.resources.activities.methods.query.scopes
- schemas.GoogleCloudPolicyanalyzerV1beta1Activity.description

#### policyanalyzer:v1

The following keys were added:
- resources.folders.resources.locations.resources.activityTypes.resources.activities.methods.query.description
- resources.folders.resources.locations.resources.activityTypes.resources.activities.methods.query.flatPath
- resources.folders.resources.locations.resources.activityTypes.resources.activities.methods.query.httpMethod
- resources.folders.resources.locations.resources.activityTypes.resources.activities.methods.query.id
- resources.folders.resources.locations.resources.activityTypes.resources.activities.methods.query.parameterOrder
- resources.folders.resources.locations.resources.activityTypes.resources.activities.methods.query.parameters.filter.description
- resources.folders.resources.locations.resources.activityTypes.resources.activities.methods.query.parameters.filter.location
- resources.folders.resources.locations.resources.activityTypes.resources.activities.methods.query.parameters.filter.type
- resources.folders.resources.locations.resources.activityTypes.resources.activities.methods.query.parameters.pageSize.description
- resources.folders.resources.locations.resources.activityTypes.resources.activities.methods.query.parameters.pageSize.format
- resources.folders.resources.locations.resources.activityTypes.resources.activities.methods.query.parameters.pageSize.location
- resources.folders.resources.locations.resources.activityTypes.resources.activities.methods.query.parameters.pageSize.type
- resources.folders.resources.locations.resources.activityTypes.resources.activities.methods.query.parameters.pageToken.description
- resources.folders.resources.locations.resources.activityTypes.resources.activities.methods.query.parameters.pageToken.location
- resources.folders.resources.locations.resources.activityTypes.resources.activities.methods.query.parameters.pageToken.type
- resources.folders.resources.locations.resources.activityTypes.resources.activities.methods.query.parameters.parent.description
- resources.folders.resources.locations.resources.activityTypes.resources.activities.methods.query.parameters.parent.location
- resources.folders.resources.locations.resources.activityTypes.resources.activities.methods.query.parameters.parent.pattern
- resources.folders.resources.locations.resources.activityTypes.resources.activities.methods.query.parameters.parent.required
- resources.folders.resources.locations.resources.activityTypes.resources.activities.methods.query.parameters.parent.type
- resources.folders.resources.locations.resources.activityTypes.resources.activities.methods.query.path
- resources.folders.resources.locations.resources.activityTypes.resources.activities.methods.query.response.$ref
- resources.folders.resources.locations.resources.activityTypes.resources.activities.methods.query.scopes
- resources.organizations.resources.locations.resources.activityTypes.resources.activities.methods.query.description
- resources.organizations.resources.locations.resources.activityTypes.resources.activities.methods.query.flatPath
- resources.organizations.resources.locations.resources.activityTypes.resources.activities.methods.query.httpMethod
- resources.organizations.resources.locations.resources.activityTypes.resources.activities.methods.query.id
- resources.organizations.resources.locations.resources.activityTypes.resources.activities.methods.query.parameterOrder
- resources.organizations.resources.locations.resources.activityTypes.resources.activities.methods.query.parameters.filter.description
- resources.organizations.resources.locations.resources.activityTypes.resources.activities.methods.query.parameters.filter.location
- resources.organizations.resources.locations.resources.activityTypes.resources.activities.methods.query.parameters.filter.type
- resources.organizations.resources.locations.resources.activityTypes.resources.activities.methods.query.parameters.pageSize.description
- resources.organizations.resources.locations.resources.activityTypes.resources.activities.methods.query.parameters.pageSize.format
- resources.organizations.resources.locations.resources.activityTypes.resources.activities.methods.query.parameters.pageSize.location
- resources.organizations.resources.locations.resources.activityTypes.resources.activities.methods.query.parameters.pageSize.type
- resources.organizations.resources.locations.resources.activityTypes.resources.activities.methods.query.parameters.pageToken.description
- resources.organizations.resources.locations.resources.activityTypes.resources.activities.methods.query.parameters.pageToken.location
- resources.organizations.resources.locations.resources.activityTypes.resources.activities.methods.query.parameters.pageToken.type
- resources.organizations.resources.locations.resources.activityTypes.resources.activities.methods.query.parameters.parent.description
- resources.organizations.resources.locations.resources.activityTypes.resources.activities.methods.query.parameters.parent.location
- resources.organizations.resources.locations.resources.activityTypes.resources.activities.methods.query.parameters.parent.pattern
- resources.organizations.resources.locations.resources.activityTypes.resources.activities.methods.query.parameters.parent.required
- resources.organizations.resources.locations.resources.activityTypes.resources.activities.methods.query.parameters.parent.type
- resources.organizations.resources.locations.resources.activityTypes.resources.activities.methods.query.path
- resources.organizations.resources.locations.resources.activityTypes.resources.activities.methods.query.response.$ref
- resources.organizations.resources.locations.resources.activityTypes.resources.activities.methods.query.scopes
- schemas.GoogleCloudPolicyanalyzerV1Activity.description
  • Loading branch information
yoshi-automation authored and sofisl committed Jun 6, 2024
1 parent 30e4778 commit 96053d3
Show file tree
Hide file tree
Showing 4 changed files with 876 additions and 2 deletions.
117 changes: 116 additions & 1 deletion discovery/policyanalyzer-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,120 @@
},
"protocol": "rest",
"resources": {
"folders": {
"resources": {
"locations": {
"resources": {
"activityTypes": {
"resources": {
"activities": {
"methods": {
"query": {
"description": "Queries policy activities on Google Cloud resources.",
"flatPath": "v1/folders/{foldersId}/locations/{locationsId}/activityTypes/{activityTypesId}/activities:query",
"httpMethod": "GET",
"id": "policyanalyzer.folders.locations.activityTypes.activities.query",
"parameterOrder": [
"parent"
],
"parameters": {
"filter": {
"description": "Optional. Filter expression to restrict the activities returned. For serviceAccountLastAuthentication activities, supported filters are: - `activities.full_resource_name {=} [STRING]` - `activities.fullResourceName {=} [STRING]` where `[STRING]` is the full resource name of the service account. For serviceAccountKeyLastAuthentication activities, supported filters are: - `activities.full_resource_name {=} [STRING]` - `activities.fullResourceName {=} [STRING]` where `[STRING]` is the full resource name of the service account key.",
"location": "query",
"type": "string"
},
"pageSize": {
"description": "Optional. The maximum number of results to return from this request. Max limit is 1000. Non-positive values are ignored. The presence of `nextPageToken` in the response indicates that more results might be available.",
"format": "int32",
"location": "query",
"type": "integer"
},
"pageToken": {
"description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. `pageToken` must be the value of `nextPageToken` from the previous response. The values of other method parameters should be identical to those in the previous call.",
"location": "query",
"type": "string"
},
"parent": {
"description": "Required. The container resource on which to execute the request. Acceptable formats: `projects/[PROJECT_ID|PROJECT_NUMBER]/locations/[LOCATION]/activityTypes/[ACTIVITY_TYPE]` LOCATION here refers to Google Cloud Locations: https://cloud.google.com/about/locations/",
"location": "path",
"pattern": "^folders/[^/]+/locations/[^/]+/activityTypes/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1/{+parent}/activities:query",
"response": {
"$ref": "GoogleCloudPolicyanalyzerV1QueryActivityResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
}
}
}
}
}
}
}
}
},
"organizations": {
"resources": {
"locations": {
"resources": {
"activityTypes": {
"resources": {
"activities": {
"methods": {
"query": {
"description": "Queries policy activities on Google Cloud resources.",
"flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/activityTypes/{activityTypesId}/activities:query",
"httpMethod": "GET",
"id": "policyanalyzer.organizations.locations.activityTypes.activities.query",
"parameterOrder": [
"parent"
],
"parameters": {
"filter": {
"description": "Optional. Filter expression to restrict the activities returned. For serviceAccountLastAuthentication activities, supported filters are: - `activities.full_resource_name {=} [STRING]` - `activities.fullResourceName {=} [STRING]` where `[STRING]` is the full resource name of the service account. For serviceAccountKeyLastAuthentication activities, supported filters are: - `activities.full_resource_name {=} [STRING]` - `activities.fullResourceName {=} [STRING]` where `[STRING]` is the full resource name of the service account key.",
"location": "query",
"type": "string"
},
"pageSize": {
"description": "Optional. The maximum number of results to return from this request. Max limit is 1000. Non-positive values are ignored. The presence of `nextPageToken` in the response indicates that more results might be available.",
"format": "int32",
"location": "query",
"type": "integer"
},
"pageToken": {
"description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. `pageToken` must be the value of `nextPageToken` from the previous response. The values of other method parameters should be identical to those in the previous call.",
"location": "query",
"type": "string"
},
"parent": {
"description": "Required. The container resource on which to execute the request. Acceptable formats: `projects/[PROJECT_ID|PROJECT_NUMBER]/locations/[LOCATION]/activityTypes/[ACTIVITY_TYPE]` LOCATION here refers to Google Cloud Locations: https://cloud.google.com/about/locations/",
"location": "path",
"pattern": "^organizations/[^/]+/locations/[^/]+/activityTypes/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1/{+parent}/activities:query",
"response": {
"$ref": "GoogleCloudPolicyanalyzerV1QueryActivityResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
}
}
}
}
}
}
}
}
},
"projects": {
"resources": {
"locations": {
Expand Down Expand Up @@ -163,10 +277,11 @@
}
}
},
"revision": "20210918",
"revision": "20240602",
"rootUrl": "https://policyanalyzer.googleapis.com/",
"schemas": {
"GoogleCloudPolicyanalyzerV1Activity": {
"description": "Represents Activity on a GCP resource over specific observation period.",
"id": "GoogleCloudPolicyanalyzerV1Activity",
"properties": {
"activity": {
Expand Down
117 changes: 116 additions & 1 deletion discovery/policyanalyzer-v1beta1.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,120 @@
},
"protocol": "rest",
"resources": {
"folders": {
"resources": {
"locations": {
"resources": {
"activityTypes": {
"resources": {
"activities": {
"methods": {
"query": {
"description": "Queries policy activities on GCP resources.",
"flatPath": "v1beta1/folders/{foldersId}/locations/{locationsId}/activityTypes/{activityTypesId}/activities:query",
"httpMethod": "GET",
"id": "policyanalyzer.folders.locations.activityTypes.activities.query",
"parameterOrder": [
"parent"
],
"parameters": {
"filter": {
"description": "Optional. Optional filter expression to restrict the activities returned. Supported filters are: - service_account_last_authn.full_resource_name {=} - service_account_key_last_authn.full_resource_name {=} ",
"location": "query",
"type": "string"
},
"pageSize": {
"description": "Optional. The maximum number of results to return from this request. Max limit is 1000. Non-positive values are ignored. The presence of `nextPageToken` in the response indicates that more results might be available.",
"format": "int32",
"location": "query",
"type": "integer"
},
"pageToken": {
"description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. `pageToken` must be the value of `nextPageToken` from the previous response. The values of other method parameters should be identical to those in the previous call.",
"location": "query",
"type": "string"
},
"parent": {
"description": "Required. The container resource on which to execute the request. Acceptable formats: `projects/[PROJECT_ID|PROJECT_NUMBER]/locations/[LOCATION]/activityTypes/[ACTIVITY_TYPE]` LOCATION here refers to GCP Locations: https://cloud.google.com/about/locations/",
"location": "path",
"pattern": "^folders/[^/]+/locations/[^/]+/activityTypes/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1beta1/{+parent}/activities:query",
"response": {
"$ref": "GoogleCloudPolicyanalyzerV1beta1QueryActivityResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
}
}
}
}
}
}
}
}
},
"organizations": {
"resources": {
"locations": {
"resources": {
"activityTypes": {
"resources": {
"activities": {
"methods": {
"query": {
"description": "Queries policy activities on GCP resources.",
"flatPath": "v1beta1/organizations/{organizationsId}/locations/{locationsId}/activityTypes/{activityTypesId}/activities:query",
"httpMethod": "GET",
"id": "policyanalyzer.organizations.locations.activityTypes.activities.query",
"parameterOrder": [
"parent"
],
"parameters": {
"filter": {
"description": "Optional. Optional filter expression to restrict the activities returned. Supported filters are: - service_account_last_authn.full_resource_name {=} - service_account_key_last_authn.full_resource_name {=} ",
"location": "query",
"type": "string"
},
"pageSize": {
"description": "Optional. The maximum number of results to return from this request. Max limit is 1000. Non-positive values are ignored. The presence of `nextPageToken` in the response indicates that more results might be available.",
"format": "int32",
"location": "query",
"type": "integer"
},
"pageToken": {
"description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. `pageToken` must be the value of `nextPageToken` from the previous response. The values of other method parameters should be identical to those in the previous call.",
"location": "query",
"type": "string"
},
"parent": {
"description": "Required. The container resource on which to execute the request. Acceptable formats: `projects/[PROJECT_ID|PROJECT_NUMBER]/locations/[LOCATION]/activityTypes/[ACTIVITY_TYPE]` LOCATION here refers to GCP Locations: https://cloud.google.com/about/locations/",
"location": "path",
"pattern": "^organizations/[^/]+/locations/[^/]+/activityTypes/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1beta1/{+parent}/activities:query",
"response": {
"$ref": "GoogleCloudPolicyanalyzerV1beta1QueryActivityResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
}
}
}
}
}
}
}
}
},
"projects": {
"resources": {
"locations": {
Expand Down Expand Up @@ -163,10 +277,11 @@
}
}
},
"revision": "20210822",
"revision": "20240602",
"rootUrl": "https://policyanalyzer.googleapis.com/",
"schemas": {
"GoogleCloudPolicyanalyzerV1beta1Activity": {
"description": "Represents Activity on a GCP resource over specific observation period.",
"id": "GoogleCloudPolicyanalyzerV1beta1Activity",
"properties": {
"activity": {
Expand Down
Loading

0 comments on commit 96053d3

Please sign in to comment.