Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
fix: GoogleAdsError missing using generator version after 1.3.0 (#492)
Browse files Browse the repository at this point in the history
[PR](googleapis/gapic-generator-typescript#878) within
updated gapic-generator-typescript version 1.4.0

Committer: @summer-ji-eng
PiperOrigin-RevId: 375759421

Source-Link: googleapis/googleapis@95fa72f

Source-Link: https://github.com/googleapis/googleapis-gen/commit/f40a34377ad488a7c2bc3992b3c8d5faf5a15c46
  • Loading branch information
gcf-owl-bot[bot] authored May 25, 2021
1 parent 44bcdb5 commit f8f8ed6
Show file tree
Hide file tree
Showing 15 changed files with 3,182 additions and 189 deletions.
201 changes: 171 additions & 30 deletions protos/google/cloud/asset/v1/asset_service.proto

Large diffs are not rendered by default.

163 changes: 150 additions & 13 deletions protos/google/cloud/asset/v1/assets.proto
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2020 Google LLC
// Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -89,7 +89,8 @@ message TimeWindow {
// [resource
// hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
// a resource outside the Google Cloud resource hierarchy (such as Google
// Kubernetes Engine clusters and objects), or a policy (e.g. Cloud IAM policy).
// Kubernetes Engine clusters and objects), or a policy (e.g. Cloud IAM policy),
// or a relationship (e.g. an INSTANCE_TO_INSTANCEGROUP relationship).
// See [Supported asset
// types](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
// for more information.
Expand Down Expand Up @@ -242,14 +243,40 @@ message ResourceSearchResult {
string asset_type = 2;

// The project that this resource belongs to, in the form of
// projects/{PROJECT_NUMBER}.
// projects/{PROJECT_NUMBER}. This field is available when the resource
// belongs to a project.
//
// To search against the `project`:
// To search against `project`:
//
// * use a field query. Example: `project:12345`
// * use a free text query. Example: `12345`
// * specify the `scope` field as this project in your search request.
string project = 3;

// The display name of this resource.
// The folder(s) that this resource belongs to, in the form of
// folders/{FOLDER_NUMBER}. This field is available when the resource
// belongs to one or more folders.
//
// To search against `folders`:
//
// * use a field query. Example: `folders:(123 OR 456)`
// * use a free text query. Example: `123`
// * specify the `scope` field as this folder in your search request.
repeated string folders = 17;

// The organization that this resource belongs to, in the form of
// organizations/{ORGANIZATION_NUMBER}. This field is available when the
// resource belongs to an organization.
//
// To search against `organization`:
//
// * use a field query. Example: `organization:123`
// * use a free text query. Example: `123`
// * specify the `scope` field as this organization in your search request.
string organization = 18;

// The display name of this resource. This field is available only when the
// resource's proto contains it.
//
// To search against the `display_name`:
//
Expand All @@ -258,16 +285,18 @@ message ResourceSearchResult {
string display_name = 4;

// One or more paragraphs of text description of this resource. Maximum length
// could be up to 1M bytes.
// could be up to 1M bytes. This field is available only when the resource's
// proto contains it.
//
// To search against the `description`:
//
// * use a field query. Example: `description:"*important instance*"`
// * use a free text query. Example: `"*important instance*"`
// * use a field query. Example: `description:"important instance"`
// * use a free text query. Example: `"important instance"`
string description = 5;

// Location can be `global`, regional like `us-east1`, or zonal like
// `us-west1-b`.
// `us-west1-b`. This field is available only when the resource's proto
// contains it.
//
// To search against the `location`:
//
Expand All @@ -277,7 +306,8 @@ message ResourceSearchResult {

// Labels associated with this resource. See [Labelling and grouping GCP
// resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
// for more information.
// for more information. This field is available only when the resource's
// proto contains it.
//
// To search against the `labels`:
//
Expand All @@ -291,22 +321,83 @@ message ResourceSearchResult {
// Network tags associated with this resource. Like labels, network tags are a
// type of annotations used to group GCP resources. See [Labelling GCP
// resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
// for more information.
// for more information. This field is available only when the resource's
// proto contains it.
//
// To search against the `network_tags`:
//
// * use a field query. Example: `networkTags:internal`
// * use a free text query. Example: `internal`
repeated string network_tags = 8;

// The Cloud KMS
// [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys?hl=en)
// name or
// [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions?hl=en)
// name. This field is available only when the resource's proto contains it.
//
// To search against the `kms_key`:
//
// * use a field query. Example: `kmsKey:key`
// * use a free text query. Example: `key`
string kms_key = 10;

// The create timestamp of this resource, at which the resource was created.
// The granularity is in seconds. Timestamp.nanos will always be 0. This field
// is available only when the resource's proto contains it.
//
// To search against `create_time`:
//
// * use a field query.
// - value in seconds since unix epoch. Example: `createTime > 1609459200`
// - value in date string. Example: `createTime > 2021-01-01`
// - value in date-time string (must be quoted). Example: `createTime >
// "2021-01-01T00:00:00"`
google.protobuf.Timestamp create_time = 11;

// The last update timestamp of this resource, at which the resource was last
// modified or deleted. The granularity is in seconds. Timestamp.nanos will
// always be 0. This field is available only when the resource's proto
// contains it.
//
// To search against `update_time`:
//
// * use a field query.
// - value in seconds since unix epoch. Example: `updateTime < 1609459200`
// - value in date string. Example: `updateTime < 2021-01-01`
// - value in date-time string (must be quoted). Example: `updateTime <
// "2021-01-01T00:00:00"`
google.protobuf.Timestamp update_time = 12;

// The state of this resource. Different resources types have different state
// definitions that are mapped from various fields of different resource
// types. This field is available only when the resource's proto contains it.
//
// Example:
// If the resource is an instance provided by Compute Engine,
// its state will include PROVISIONING, STAGING, RUNNING, STOPPING,
// SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. See `status` definition
// in [API
// Reference](https://cloud.google.com/compute/docs/reference/rest/v1/instances).
// If the resource is a project provided by Cloud Resource Manager, its state
// will include LIFECYCLE_STATE_UNSPECIFIED, ACTIVE, DELETE_REQUESTED and
// DELETE_IN_PROGRESS. See `lifecycleState` definition in [API
// Reference](https://cloud.google.com/resource-manager/reference/rest/v1/projects).
//
// To search against the `state`:
//
// * use a field query. Example: `state:RUNNING`
// * use a free text query. Example: `RUNNING`
string state = 13;

// The additional searchable attributes of this resource. The attributes may
// vary from one resource type to another. Examples: `projectId` for Project,
// `dnsName` for DNS ManagedZone. This field contains a subset of the resource
// metadata fields that are returned by the List or Get APIs provided by the
// corresponding GCP service (e.g., Compute Engine). see [API references and
// supported searchable
// attributes](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types)
// for more information.
// to see which fields are included.
//
// You can search values of these fields through free text search. However,
// you should not consume the field programically as the field names and
Expand All @@ -319,6 +410,25 @@ message ResourceSearchResult {
// `additional_attributes = { dnsName: "foobar" }`, you can issue a query
// `foobar`.
google.protobuf.Struct additional_attributes = 9;

// The full resource name of this resource's parent, if it has one.
// To search against the `parent_full_resource_name`:
//
// * use a field query. Example:
// `parentFullResourceName:"project-name"`
// * use a free text query. Example:
// `project-name`
string parent_full_resource_name = 19;

// The type of this resource's immediate parent, if there is one.
//
// To search against the `parent_asset_type`:
//
// * use a field query. Example:
// `parentAssetType:"cloudresourcemanager.googleapis.com/Project"`
// * use a free text query. Example:
// `cloudresourcemanager.googleapis.com/Project`
string parent_asset_type = 103;
}

// A result of IAM Policy search, containing information of an IAM policy.
Expand Down Expand Up @@ -357,7 +467,7 @@ message IamPolicySearchResult {
// projects/{PROJECT_NUMBER}. If an IAM policy is set on a resource (like VM
// instance, Cloud Storage bucket), the project field will indicate the
// project that contains the resource. If an IAM policy is set on a folder or
// orgnization, the project field will be empty.
// orgnization, this field will be empty.
//
// To search against the `project`:
//
Expand Down Expand Up @@ -400,6 +510,29 @@ message IamPolicyAnalysisState {
string cause = 2;
}

// The Condition evaluation.
message ConditionEvaluation {
// Value of this expression.
enum EvaluationValue {
// Reserved for future use.
EVALUATION_VALUE_UNSPECIFIED = 0;

// The evaluation result is `true`.
TRUE = 1;

// The evaluation result is `false`.
FALSE = 2;

// The evaluation result is `conditional` when the condition expression
// contains variables that are either missing input values or have not been
// supported by Analyzer yet.
CONDITIONAL = 3;
}

// The evaluation result.
EvaluationValue evaluation_value = 1;
}

// IAM Policy analysis result, consisting of one IAM policy binding and derived
// access control lists.
message IamPolicyAnalysisResult {
Expand Down Expand Up @@ -489,6 +622,10 @@ message IamPolicyAnalysisResult {
// contains the full resource name of a child resource. This field is
// present only if the output_resource_edges option is enabled in request.
repeated Edge resource_edges = 3;

// Condition evaluation for this AccessControlList, if there is a condition
// defined in the above IAM policy binding.
ConditionEvaluation condition_evaluation = 4;
}

// The identities and group edges.
Expand Down
Loading

0 comments on commit f8f8ed6

Please sign in to comment.