Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
chore: Update discovery artifacts (#1368)
## Discovery Artifact Change Summary:
feat(cloudasset): update the api 432e174
feat(healthcare): update the api 6dd2d21
  • Loading branch information
yoshi-code-bot committed May 21, 2021
1 parent b1346b1 commit e63d3a4
Show file tree
Hide file tree
Showing 88 changed files with 690 additions and 683 deletions.
2 changes: 1 addition & 1 deletion docs/dyn/cloudasset_v1.assets.html
Expand Up @@ -94,7 +94,7 @@ <h3>Method Details</h3>
<pre>Lists assets with time and resource types and returns paged results in response.

Args:
parent: string, Required. Name of the organization or project the assets belong to. Format: &quot;organizations/[organization-number]&quot; (such as &quot;organizations/123&quot;), &quot;projects/[project-number]&quot; (such as &quot;projects/my-project-id&quot;), or &quot;projects/[project-id]&quot; (such as &quot;projects/12345&quot;). (required)
parent: string, Required. Name of the organization or project the assets belong to. Format: &quot;organizations/[organization-number]&quot; (such as &quot;organizations/123&quot;), &quot;projects/[project-id]&quot; (such as &quot;projects/my-project-id&quot;), or &quot;projects/[project-number]&quot; (such as &quot;projects/12345&quot;). (required)
assetTypes: string, A list of asset types to take a snapshot for. For example: &quot;compute.googleapis.com/Disk&quot;. Regular expression is also supported. For example: * &quot;compute.googleapis.com.*&quot; snapshots resources whose asset type starts with &quot;compute.googleapis.com&quot;. * &quot;.*Instance&quot; snapshots resources whose asset type ends with &quot;Instance&quot;. * &quot;.*Instance.*&quot; snapshots resources whose asset type contains &quot;Instance&quot;. See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported regular expression syntax. If the regular expression does not match any supported asset type, an INVALID_ARGUMENT error will be returned. If specified, only matching assets will be returned, otherwise, it will snapshot all asset types. See [Introduction to Cloud Asset Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all supported asset types. (repeated)
contentType: string, Asset content type. If not specified, no content but the asset name will be returned.
Allowed values
Expand Down
55 changes: 54 additions & 1 deletion docs/dyn/cloudasset_v1.v1.html
Expand Up @@ -80,6 +80,9 @@ <h2>Instance Methods</h2>
<p class="toc_element">
<code><a href="#analyzeIamPolicyLongrunning">analyzeIamPolicyLongrunning(scope, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Analyzes IAM policies asynchronously to answer which identities have what accesses on which resources, and writes the analysis results to a Google Cloud Storage or a BigQuery destination. For Cloud Storage destination, the output format is the JSON format that represents a AnalyzeIamPolicyResponse. This method implements the google.longrunning.Operation, which allows you to track the operation status. We recommend intervals of at least 2 seconds with exponential backoff retry to poll the operation result. The metadata contains the request to help callers to map responses to requests.</p>
<p class="toc_element">
<code><a href="#analyzeMove">analyzeMove(resource, destinationParent=None, view=None, x__xgafv=None)</a></code></p>
<p class="firstline">Analyze moving a resource to a specified destination without kicking off the actual move. The analysis is best effort depending on the user's permissions of viewing different hierarchical policies and configurations. The policies and configuration are subject to change before the actual resource migration takes place.</p>
<p class="toc_element">
<code><a href="#batchGetAssetsHistory">batchGetAssetsHistory(parent, assetNames=None, contentType=None, readTimeWindow_endTime=None, readTimeWindow_startTime=None, x__xgafv=None)</a></code></p>
<p class="firstline">Batch gets the update history of assets that overlap a time window. For IAM_POLICY content, this API outputs history when the asset and its attached IAM POLICY both exist. This can create gaps in the output history. Otherwise, this API outputs history with asset in both non-delete or deleted status. If a specified asset does not exist, this API returns an INVALID_ARGUMENT error.</p>
Expand Down Expand Up @@ -423,6 +426,56 @@ <h3>Method Details</h3>
}</pre>
</div>

<div class="method">
<code class="details" id="analyzeMove">analyzeMove(resource, destinationParent=None, view=None, x__xgafv=None)</code>
<pre>Analyze moving a resource to a specified destination without kicking off the actual move. The analysis is best effort depending on the user&#x27;s permissions of viewing different hierarchical policies and configurations. The policies and configuration are subject to change before the actual resource migration takes place.

Args:
resource: string, Required. Name of the resource to perform the analysis against. Only GCP Project are supported as of today. Hence, this can only be Project ID (such as &quot;projects/my-project-id&quot;) or a Project Number (such as &quot;projects/12345&quot;). (required)
destinationParent: string, Required. Name of the GCP Folder or Organization to reparent the target resource. The analysis will be performed against hypothetically moving the resource to this specified desitination parent. This can only be a Folder number (such as &quot;folders/123&quot;) or an Organization number (such as &quot;organizations/123&quot;).
view: string, Analysis view indicating what information should be included in the analysis response. If unspecified, the default view is FULL.
Allowed values
ANALYSIS_VIEW_UNSPECIFIED - The default/unset value. The API will default to the FULL view.
FULL - Full analysis including all level of impacts of the specified resource move.
BASIC - Basic analysis only including blockers which will prevent the specified resource move at runtime.
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format

Returns:
An object of the form:

{ # The response message for resource move analysis.
&quot;moveAnalysis&quot;: [ # The list of analyses returned from performing the intended resource move analysis. The analysis is grouped by different Cloud services.
{ # A message to group the analysis information.
&quot;analysis&quot;: { # An analysis result including blockers and warnings. # Analysis result of moving the target resource.
&quot;blockers&quot;: [ # Blocking information that would prevent the target resource from moving to the specified destination at runtime.
{ # A message to group impacts of moving the target resource.
&quot;detail&quot;: &quot;A String&quot;, # User friendly impact detail in a free form message.
},
],
&quot;warnings&quot;: [ # Warning information indicating that moving the target resource to the specified destination might be unsafe. This can include important policy information and configuration changes, but will not block moves at runtime.
{ # A message to group impacts of moving the target resource.
&quot;detail&quot;: &quot;A String&quot;, # User friendly impact detail in a free form message.
},
],
},
&quot;displayName&quot;: &quot;A String&quot;, # The user friendly display name of the analysis. E.g. IAM, Organization Policy etc.
&quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # Description of error encountered when performing the analysis.
&quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
&quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
{
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
},
],
&quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
},
},
],
}</pre>
</div>

<div class="method">
<code class="details" id="batchGetAssetsHistory">batchGetAssetsHistory(parent, assetNames=None, contentType=None, readTimeWindow_endTime=None, readTimeWindow_startTime=None, x__xgafv=None)</code>
<pre>Batch gets the update history of assets that overlap a time window. For IAM_POLICY content, this API outputs history when the asset and its attached IAM POLICY both exist. This can create gaps in the output history. Otherwise, this API outputs history with asset in both non-delete or deleted status. If a specified asset does not exist, this API returns an INVALID_ARGUMENT error.
Expand Down Expand Up @@ -1471,7 +1524,7 @@ <h3>Method Details</h3>
Args:
scope: string, Required. A scope can be a project, a folder, or an organization. The search is limited to the resources within the `scope`. The caller must be granted the [`cloudasset.assets.searchAllResources`](https://cloud.google.com/asset-inventory/docs/access-control#required_permissions) permission on the desired scope. The allowed values are: * projects/{PROJECT_ID} (e.g., &quot;projects/foo-bar&quot;) * projects/{PROJECT_NUMBER} (e.g., &quot;projects/12345678&quot;) * folders/{FOLDER_NUMBER} (e.g., &quot;folders/1234567&quot;) * organizations/{ORGANIZATION_NUMBER} (e.g., &quot;organizations/123456&quot;) (required)
assetTypes: string, Optional. A list of asset types that this request searches for. If empty, it will search all the [searchable asset types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types). Regular expressions are also supported. For example: * &quot;compute.googleapis.com.*&quot; snapshots resources whose asset type starts with &quot;compute.googleapis.com&quot;. * &quot;.*Instance&quot; snapshots resources whose asset type ends with &quot;Instance&quot;. * &quot;.*Instance.*&quot; snapshots resources whose asset type contains &quot;Instance&quot;. See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported regular expression syntax. If the regular expression does not match any supported asset type, an INVALID_ARGUMENT error will be returned. (repeated)
orderBy: string, Optional. A comma separated list of fields specifying the sorting order of the results. The default order is ascending. Add &quot; DESC&quot; after the field name to indicate descending order. Redundant space characters are ignored. Example: &quot;location DESC, name&quot;. Only string fields in the response are sortable, including `name`, `displayName`, `description`, `location`. All the other fields such as repeated fields (e.g., `networkTags`), map fields (e.g., `labels`) and struct fields (e.g., `additionalAttributes`) are not supported.
orderBy: string, Optional. A comma-separated list of fields specifying the sorting order of the results. The default order is ascending. Add &quot; DESC&quot; after the field name to indicate descending order. Redundant space characters are ignored. Example: &quot;location DESC, name&quot;. Only singular primitive fields in the response are sortable: * name * assetType * project * displayName * description * location * kmsKey * createTime * updateTime * state * parentFullResourceName * parentAssetType All the other fields such as repeated fields (e.g., `networkTags`), map fields (e.g., `labels`) and struct fields (e.g., `additionalAttributes`) are not supported.
pageSize: integer, Optional. The page size for search result pagination. Page size is capped at 500 even if a larger value is given. If set to zero, server will pick an appropriate default. Returned results may be fewer than requested. When this happens, there could be more results as long as `next_page_token` is returned.
pageToken: string, Optional. If present, then retrieve the next batch of results from the preceding call to this method. `page_token` must be the value of `next_page_token` from the previous response. The values of all other method parameters, must be identical to those in the previous call.
query: string, Optional. The query statement. See [how to construct a query](https://cloud.google.com/asset-inventory/docs/searching-resources#how_to_construct_a_query) for more information. If not specified or empty, it will search all the resources within the specified `scope`. Examples: * `name:Important` to find Cloud resources whose name contains &quot;Important&quot; as a word. * `name=Important` to find the Cloud resource whose name is exactly &quot;Important&quot;. * `displayName:Impor*` to find Cloud resources whose display name contains &quot;Impor&quot; as a prefix of any word in the field. * `location:us-west*` to find Cloud resources whose location contains both &quot;us&quot; and &quot;west&quot; as prefixes. * `labels:prod` to find Cloud resources whose labels contain &quot;prod&quot; as a key or value. * `labels.env:prod` to find Cloud resources that have a label &quot;env&quot; and its value is &quot;prod&quot;. * `labels.env:*` to find Cloud resources that have a label &quot;env&quot;. * `kmsKey:key` to find Cloud resources encrypted with a customer-managed encryption key whose name contains the word &quot;key&quot;. * `state:ACTIVE` to find Cloud resources whose state contains &quot;ACTIVE&quot; as a word. * `NOT state:ACTIVE` to find {{gcp_name}} resources whose state doesn&#x27;t contain &quot;ACTIVE&quot; as a word. * `createTime&lt;1609459200` to find Cloud resources that were created before &quot;2021-01-01 00:00:00 UTC&quot;. 1609459200 is the epoch timestamp of &quot;2021-01-01 00:00:00 UTC&quot; in seconds. * `updateTime&gt;1609459200` to find Cloud resources that were updated after &quot;2021-01-01 00:00:00 UTC&quot;. 1609459200 is the epoch timestamp of &quot;2021-01-01 00:00:00 UTC&quot; in seconds. * `Important` to find Cloud resources that contain &quot;Important&quot; as a word in any of the searchable fields. * `Impor*` to find Cloud resources that contain &quot;Impor&quot; as a prefix of any word in any of the searchable fields. * `Important location:(us-west1 OR global)` to find Cloud resources that contain &quot;Important&quot; as a word in any of the searchable fields and are also located in the &quot;us-west1&quot; region or the &quot;global&quot; location.
Expand Down
2 changes: 1 addition & 1 deletion docs/dyn/cloudasset_v1p5beta1.assets.html
Expand Up @@ -94,7 +94,7 @@ <h3>Method Details</h3>
<pre>Lists assets with time and resource types and returns paged results in response.

Args:
parent: string, Required. Name of the organization or project the assets belong to. Format: &quot;organizations/[organization-number]&quot; (such as &quot;organizations/123&quot;), &quot;projects/[project-number]&quot; (such as &quot;projects/my-project-id&quot;), or &quot;projects/[project-id]&quot; (such as &quot;projects/12345&quot;). (required)
parent: string, Required. Name of the organization or project the assets belong to. Format: &quot;organizations/[organization-number]&quot; (such as &quot;organizations/123&quot;), &quot;projects/[project-id]&quot; (such as &quot;projects/my-project-id&quot;), or &quot;projects/[project-number]&quot; (such as &quot;projects/12345&quot;). (required)
assetTypes: string, A list of asset types to take a snapshot for. For example: &quot;compute.googleapis.com/Disk&quot;. Regular expression is also supported. For example: * &quot;compute.googleapis.com.*&quot; snapshots resources whose asset type starts with &quot;compute.googleapis.com&quot;. * &quot;.*Instance&quot; snapshots resources whose asset type ends with &quot;Instance&quot;. * &quot;.*Instance.*&quot; snapshots resources whose asset type contains &quot;Instance&quot;. See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported regular expression syntax. If the regular expression does not match any supported asset type, an INVALID_ARGUMENT error will be returned. If specified, only matching assets will be returned, otherwise, it will snapshot all asset types. See [Introduction to Cloud Asset Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all supported asset types. (repeated)
contentType: string, Asset content type. If not specified, no content but the asset name will be returned.
Allowed values
Expand Down

0 comments on commit e63d3a4

Please sign in to comment.