diff --git a/java-resourcemanager/README.md b/java-resourcemanager/README.md index cce6485289ec..4b11e57b9faf 100644 --- a/java-resourcemanager/README.md +++ b/java-resourcemanager/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.12.0 + 26.14.0 pom import @@ -336,7 +336,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-resourcemanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-resourcemanager/1.17.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-resourcemanager/1.18.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/ProjectsClient.java b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/ProjectsClient.java index 293d797bf825..8bac7e702990 100644 --- a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/ProjectsClient.java +++ b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/ProjectsClient.java @@ -542,23 +542,24 @@ public final UnaryCallable listProjec * @param query Optional. A query string for searching for projects that the caller has * `resourcemanager.projects.get` permission to. If multiple fields are included in the query, * then it will return results that match any of the fields. Some eligible fields are: - *

``` | Field | Description | - * |-------------------------|----------------------------------------------| | displayName, - * name | Filters by displayName. | | parent | Project's parent (for example: folders/123, - * organizations/*). Prefer parent field over parent.type and parent.id.| | parent.type | - * Parent's type: `folder` or `organization`. | | parent.id | Parent's id number (for example: - * 123) | | id, projectId | Filters by projectId. | | state, lifecycleState | Filters by - * state. | | labels | Filters by label name or value. | | labels.\\<key\\> (where - * *key* is the name of a label) | Filters by label name.| ``` + *

- **`displayName`, `name`**: Filters by displayName. - + * **`parent`**: Project's parent (for example: `folders/123`, + * `organizations/*`). Prefer `parent` field over `parent.type` and `parent.id`. - + * **`parent.type`**: Parent's type: `folder` or `organization`. - + * **`parent.id`**: Parent's id number (for example: `123`). - **`id`, + * `projectId`**: Filters by projectId. - **`state`, + * `lifecycleState`**: Filters by state. - **`labels`**: Filters by + * label name or value. - **`labels.<key>` (where `<key>` is the name of a + * label)**: Filters by label name. *

Search expressions are case insensitive. *

Some examples queries: - *

``` | Query | Description | - * |------------------|-----------------------------------------------------| | name:how* - * | The project's name starts with "how". | | name:Howl | The project's name is `Howl` or - * `howl`. | | name:HOWL | Equivalent to above. | | NAME:howl | Equivalent to above. | | - * labels.color:* | The project has the label `color`. | | labels.color:red | The - * project's label `color` has the value `red`. | | labels.color:red labels.size:big | The - * project's label `color` has the value `red` or its label `size` has the value `big`. | ``` + *

- **`name:how*`**: The project's name starts with "how". - + * **`name:Howl`**: The project's name is `Howl` or `howl`. - + * **`name:HOWL`**: Equivalent to above. - **`NAME:howl`**: + * Equivalent to above. - **`labels.color:*`**: The project has the label + * `color`. - **`labels.color:red`**: The project's label `color` has the + * value `red`. - **`labels.color:red labels.size:big`**: The project's label + * `color` has the value `red` or its label `size` has the value `big`. *

If no query is specified, the call will return projects for which the user has the * `resourcemanager.projects.get` permission. * @throws com.google.api.gax.rpc.ApiException if the remote call fails diff --git a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/TagKeysClient.java b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/TagKeysClient.java index 95bf894d5803..cd678d5b7af7 100644 --- a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/TagKeysClient.java +++ b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/TagKeysClient.java @@ -224,8 +224,8 @@ public final OperationsClient getHttpJsonOperationsClient() { * } * } * - * @param parent Required. The resource name of the new TagKey's parent. Must be of the form - * `folders/{folder_id}` or `organizations/{org_id}`. + * @param parent Required. The resource name of the TagKey's parent. Must be of the form + * `organizations/{org_id}` or `projects/{project_id}` or `projects/{project_number}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListTagKeysPagedResponse listTagKeys(ResourceName parent) { @@ -256,8 +256,8 @@ public final ListTagKeysPagedResponse listTagKeys(ResourceName parent) { * } * } * - * @param parent Required. The resource name of the new TagKey's parent. Must be of the form - * `folders/{folder_id}` or `organizations/{org_id}`. + * @param parent Required. The resource name of the TagKey's parent. Must be of the form + * `organizations/{org_id}` or `projects/{project_id}` or `projects/{project_number}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListTagKeysPagedResponse listTagKeys(String parent) { diff --git a/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/EffectiveTag.java b/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/EffectiveTag.java index 064aba20fd8c..e980538e964a 100644 --- a/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/EffectiveTag.java +++ b/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/EffectiveTag.java @@ -134,9 +134,10 @@ public com.google.protobuf.ByteString getTagValueBytes() { * * *

-   * Namespaced name of the TagValue. Now only supported in the format
-   * `{organization_id}/{tag_key_short_name}/{tag_value_short_name}`.
-   * Other formats will be supported when we add non-org parented tags.
+   * The namespaced name of the TagValue. Can be in the form
+   * `{organization_id}/{tag_key_short_name}/{tag_value_short_name}` or
+   * `{project_id}/{tag_key_short_name}/{tag_value_short_name}` or
+   * `{project_number}/{tag_key_short_name}/{tag_value_short_name}`.
    * 
* * string namespaced_tag_value = 2; @@ -159,9 +160,10 @@ public java.lang.String getNamespacedTagValue() { * * *
-   * Namespaced name of the TagValue. Now only supported in the format
-   * `{organization_id}/{tag_key_short_name}/{tag_value_short_name}`.
-   * Other formats will be supported when we add non-org parented tags.
+   * The namespaced name of the TagValue. Can be in the form
+   * `{organization_id}/{tag_key_short_name}/{tag_value_short_name}` or
+   * `{project_id}/{tag_key_short_name}/{tag_value_short_name}` or
+   * `{project_number}/{tag_key_short_name}/{tag_value_short_name}`.
    * 
* * string namespaced_tag_value = 2; @@ -242,9 +244,10 @@ public com.google.protobuf.ByteString getTagKeyBytes() { * * *
-   * The namespaced_name of the TagKey. Now only supported in the format of
-   * `{organization_id}/{tag_key_short_name}`. Other formats will be
-   * supported when we add non-org parented tags.
+   * The namespaced name of the TagKey. Can be in the form
+   * `{organization_id}/{tag_key_short_name}` or
+   * `{project_id}/{tag_key_short_name}` or
+   * `{project_number}/{tag_key_short_name}`.
    * 
* * string namespaced_tag_key = 4; @@ -267,9 +270,10 @@ public java.lang.String getNamespacedTagKey() { * * *
-   * The namespaced_name of the TagKey. Now only supported in the format of
-   * `{organization_id}/{tag_key_short_name}`. Other formats will be
-   * supported when we add non-org parented tags.
+   * The namespaced name of the TagKey. Can be in the form
+   * `{organization_id}/{tag_key_short_name}` or
+   * `{project_id}/{tag_key_short_name}` or
+   * `{project_number}/{tag_key_short_name}`.
    * 
* * string namespaced_tag_key = 4; @@ -298,7 +302,8 @@ public com.google.protobuf.ByteString getNamespacedTagKeyBytes() { * *
    * The parent name of the tag key.
-   * Must be in the format `organizations/{organization_id}`.
+   * Must be in the format `organizations/{organization_id}` or
+   * `projects/{project_number}`
    * 
* * string tag_key_parent_name = 6; @@ -322,7 +327,8 @@ public java.lang.String getTagKeyParentName() { * *
    * The parent name of the tag key.
-   * Must be in the format `organizations/{organization_id}`.
+   * Must be in the format `organizations/{organization_id}` or
+   * `projects/{project_number}`
    * 
* * string tag_key_parent_name = 6; @@ -938,9 +944,10 @@ public Builder setTagValueBytes(com.google.protobuf.ByteString value) { * * *
-     * Namespaced name of the TagValue. Now only supported in the format
-     * `{organization_id}/{tag_key_short_name}/{tag_value_short_name}`.
-     * Other formats will be supported when we add non-org parented tags.
+     * The namespaced name of the TagValue. Can be in the form
+     * `{organization_id}/{tag_key_short_name}/{tag_value_short_name}` or
+     * `{project_id}/{tag_key_short_name}/{tag_value_short_name}` or
+     * `{project_number}/{tag_key_short_name}/{tag_value_short_name}`.
      * 
* * string namespaced_tag_value = 2; @@ -962,9 +969,10 @@ public java.lang.String getNamespacedTagValue() { * * *
-     * Namespaced name of the TagValue. Now only supported in the format
-     * `{organization_id}/{tag_key_short_name}/{tag_value_short_name}`.
-     * Other formats will be supported when we add non-org parented tags.
+     * The namespaced name of the TagValue. Can be in the form
+     * `{organization_id}/{tag_key_short_name}/{tag_value_short_name}` or
+     * `{project_id}/{tag_key_short_name}/{tag_value_short_name}` or
+     * `{project_number}/{tag_key_short_name}/{tag_value_short_name}`.
      * 
* * string namespaced_tag_value = 2; @@ -986,9 +994,10 @@ public com.google.protobuf.ByteString getNamespacedTagValueBytes() { * * *
-     * Namespaced name of the TagValue. Now only supported in the format
-     * `{organization_id}/{tag_key_short_name}/{tag_value_short_name}`.
-     * Other formats will be supported when we add non-org parented tags.
+     * The namespaced name of the TagValue. Can be in the form
+     * `{organization_id}/{tag_key_short_name}/{tag_value_short_name}` or
+     * `{project_id}/{tag_key_short_name}/{tag_value_short_name}` or
+     * `{project_number}/{tag_key_short_name}/{tag_value_short_name}`.
      * 
* * string namespaced_tag_value = 2; @@ -1009,9 +1018,10 @@ public Builder setNamespacedTagValue(java.lang.String value) { * * *
-     * Namespaced name of the TagValue. Now only supported in the format
-     * `{organization_id}/{tag_key_short_name}/{tag_value_short_name}`.
-     * Other formats will be supported when we add non-org parented tags.
+     * The namespaced name of the TagValue. Can be in the form
+     * `{organization_id}/{tag_key_short_name}/{tag_value_short_name}` or
+     * `{project_id}/{tag_key_short_name}/{tag_value_short_name}` or
+     * `{project_number}/{tag_key_short_name}/{tag_value_short_name}`.
      * 
* * string namespaced_tag_value = 2; @@ -1028,9 +1038,10 @@ public Builder clearNamespacedTagValue() { * * *
-     * Namespaced name of the TagValue. Now only supported in the format
-     * `{organization_id}/{tag_key_short_name}/{tag_value_short_name}`.
-     * Other formats will be supported when we add non-org parented tags.
+     * The namespaced name of the TagValue. Can be in the form
+     * `{organization_id}/{tag_key_short_name}/{tag_value_short_name}` or
+     * `{project_id}/{tag_key_short_name}/{tag_value_short_name}` or
+     * `{project_number}/{tag_key_short_name}/{tag_value_short_name}`.
      * 
* * string namespaced_tag_value = 2; @@ -1165,9 +1176,10 @@ public Builder setTagKeyBytes(com.google.protobuf.ByteString value) { * * *
-     * The namespaced_name of the TagKey. Now only supported in the format of
-     * `{organization_id}/{tag_key_short_name}`. Other formats will be
-     * supported when we add non-org parented tags.
+     * The namespaced name of the TagKey. Can be in the form
+     * `{organization_id}/{tag_key_short_name}` or
+     * `{project_id}/{tag_key_short_name}` or
+     * `{project_number}/{tag_key_short_name}`.
      * 
* * string namespaced_tag_key = 4; @@ -1189,9 +1201,10 @@ public java.lang.String getNamespacedTagKey() { * * *
-     * The namespaced_name of the TagKey. Now only supported in the format of
-     * `{organization_id}/{tag_key_short_name}`. Other formats will be
-     * supported when we add non-org parented tags.
+     * The namespaced name of the TagKey. Can be in the form
+     * `{organization_id}/{tag_key_short_name}` or
+     * `{project_id}/{tag_key_short_name}` or
+     * `{project_number}/{tag_key_short_name}`.
      * 
* * string namespaced_tag_key = 4; @@ -1213,9 +1226,10 @@ public com.google.protobuf.ByteString getNamespacedTagKeyBytes() { * * *
-     * The namespaced_name of the TagKey. Now only supported in the format of
-     * `{organization_id}/{tag_key_short_name}`. Other formats will be
-     * supported when we add non-org parented tags.
+     * The namespaced name of the TagKey. Can be in the form
+     * `{organization_id}/{tag_key_short_name}` or
+     * `{project_id}/{tag_key_short_name}` or
+     * `{project_number}/{tag_key_short_name}`.
      * 
* * string namespaced_tag_key = 4; @@ -1236,9 +1250,10 @@ public Builder setNamespacedTagKey(java.lang.String value) { * * *
-     * The namespaced_name of the TagKey. Now only supported in the format of
-     * `{organization_id}/{tag_key_short_name}`. Other formats will be
-     * supported when we add non-org parented tags.
+     * The namespaced name of the TagKey. Can be in the form
+     * `{organization_id}/{tag_key_short_name}` or
+     * `{project_id}/{tag_key_short_name}` or
+     * `{project_number}/{tag_key_short_name}`.
      * 
* * string namespaced_tag_key = 4; @@ -1255,9 +1270,10 @@ public Builder clearNamespacedTagKey() { * * *
-     * The namespaced_name of the TagKey. Now only supported in the format of
-     * `{organization_id}/{tag_key_short_name}`. Other formats will be
-     * supported when we add non-org parented tags.
+     * The namespaced name of the TagKey. Can be in the form
+     * `{organization_id}/{tag_key_short_name}` or
+     * `{project_id}/{tag_key_short_name}` or
+     * `{project_number}/{tag_key_short_name}`.
      * 
* * string namespaced_tag_key = 4; @@ -1282,7 +1298,8 @@ public Builder setNamespacedTagKeyBytes(com.google.protobuf.ByteString value) { * *
      * The parent name of the tag key.
-     * Must be in the format `organizations/{organization_id}`.
+     * Must be in the format `organizations/{organization_id}` or
+     * `projects/{project_number}`
      * 
* * string tag_key_parent_name = 6; @@ -1305,7 +1322,8 @@ public java.lang.String getTagKeyParentName() { * *
      * The parent name of the tag key.
-     * Must be in the format `organizations/{organization_id}`.
+     * Must be in the format `organizations/{organization_id}` or
+     * `projects/{project_number}`
      * 
* * string tag_key_parent_name = 6; @@ -1328,7 +1346,8 @@ public com.google.protobuf.ByteString getTagKeyParentNameBytes() { * *
      * The parent name of the tag key.
-     * Must be in the format `organizations/{organization_id}`.
+     * Must be in the format `organizations/{organization_id}` or
+     * `projects/{project_number}`
      * 
* * string tag_key_parent_name = 6; @@ -1350,7 +1369,8 @@ public Builder setTagKeyParentName(java.lang.String value) { * *
      * The parent name of the tag key.
-     * Must be in the format `organizations/{organization_id}`.
+     * Must be in the format `organizations/{organization_id}` or
+     * `projects/{project_number}`
      * 
* * string tag_key_parent_name = 6; @@ -1368,7 +1388,8 @@ public Builder clearTagKeyParentName() { * *
      * The parent name of the tag key.
-     * Must be in the format `organizations/{organization_id}`.
+     * Must be in the format `organizations/{organization_id}` or
+     * `projects/{project_number}`
      * 
* * string tag_key_parent_name = 6; diff --git a/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/EffectiveTagOrBuilder.java b/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/EffectiveTagOrBuilder.java index 52b2ad5503dc..eae71ec53cac 100644 --- a/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/EffectiveTagOrBuilder.java +++ b/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/EffectiveTagOrBuilder.java @@ -52,9 +52,10 @@ public interface EffectiveTagOrBuilder * * *
-   * Namespaced name of the TagValue. Now only supported in the format
-   * `{organization_id}/{tag_key_short_name}/{tag_value_short_name}`.
-   * Other formats will be supported when we add non-org parented tags.
+   * The namespaced name of the TagValue. Can be in the form
+   * `{organization_id}/{tag_key_short_name}/{tag_value_short_name}` or
+   * `{project_id}/{tag_key_short_name}/{tag_value_short_name}` or
+   * `{project_number}/{tag_key_short_name}/{tag_value_short_name}`.
    * 
* * string namespaced_tag_value = 2; @@ -66,9 +67,10 @@ public interface EffectiveTagOrBuilder * * *
-   * Namespaced name of the TagValue. Now only supported in the format
-   * `{organization_id}/{tag_key_short_name}/{tag_value_short_name}`.
-   * Other formats will be supported when we add non-org parented tags.
+   * The namespaced name of the TagValue. Can be in the form
+   * `{organization_id}/{tag_key_short_name}/{tag_value_short_name}` or
+   * `{project_id}/{tag_key_short_name}/{tag_value_short_name}` or
+   * `{project_number}/{tag_key_short_name}/{tag_value_short_name}`.
    * 
* * string namespaced_tag_value = 2; @@ -108,9 +110,10 @@ public interface EffectiveTagOrBuilder * * *
-   * The namespaced_name of the TagKey. Now only supported in the format of
-   * `{organization_id}/{tag_key_short_name}`. Other formats will be
-   * supported when we add non-org parented tags.
+   * The namespaced name of the TagKey. Can be in the form
+   * `{organization_id}/{tag_key_short_name}` or
+   * `{project_id}/{tag_key_short_name}` or
+   * `{project_number}/{tag_key_short_name}`.
    * 
* * string namespaced_tag_key = 4; @@ -122,9 +125,10 @@ public interface EffectiveTagOrBuilder * * *
-   * The namespaced_name of the TagKey. Now only supported in the format of
-   * `{organization_id}/{tag_key_short_name}`. Other formats will be
-   * supported when we add non-org parented tags.
+   * The namespaced name of the TagKey. Can be in the form
+   * `{organization_id}/{tag_key_short_name}` or
+   * `{project_id}/{tag_key_short_name}` or
+   * `{project_number}/{tag_key_short_name}`.
    * 
* * string namespaced_tag_key = 4; @@ -138,7 +142,8 @@ public interface EffectiveTagOrBuilder * *
    * The parent name of the tag key.
-   * Must be in the format `organizations/{organization_id}`.
+   * Must be in the format `organizations/{organization_id}` or
+   * `projects/{project_number}`
    * 
* * string tag_key_parent_name = 6; @@ -151,7 +156,8 @@ public interface EffectiveTagOrBuilder * *
    * The parent name of the tag key.
-   * Must be in the format `organizations/{organization_id}`.
+   * Must be in the format `organizations/{organization_id}` or
+   * `projects/{project_number}`
    * 
* * string tag_key_parent_name = 6; diff --git a/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/ListTagKeysRequest.java b/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/ListTagKeysRequest.java index f1b939d0a21b..ed5be9a8432d 100644 --- a/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/ListTagKeysRequest.java +++ b/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/ListTagKeysRequest.java @@ -76,8 +76,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The resource name of the new TagKey's parent.
-   * Must be of the form `folders/{folder_id}` or `organizations/{org_id}`.
+   * Required. The resource name of the TagKey's parent.
+   * Must be of the form `organizations/{org_id}` or `projects/{project_id}` or
+   * `projects/{project_number}`
    * 
* * @@ -102,8 +103,9 @@ public java.lang.String getParent() { * * *
-   * Required. The resource name of the new TagKey's parent.
-   * Must be of the form `folders/{folder_id}` or `organizations/{org_id}`.
+   * Required. The resource name of the TagKey's parent.
+   * Must be of the form `organizations/{org_id}` or `projects/{project_id}` or
+   * `projects/{project_number}`
    * 
* * @@ -592,8 +594,9 @@ public Builder mergeFrom( * * *
-     * Required. The resource name of the new TagKey's parent.
-     * Must be of the form `folders/{folder_id}` or `organizations/{org_id}`.
+     * Required. The resource name of the TagKey's parent.
+     * Must be of the form `organizations/{org_id}` or `projects/{project_id}` or
+     * `projects/{project_number}`
      * 
* * @@ -617,8 +620,9 @@ public java.lang.String getParent() { * * *
-     * Required. The resource name of the new TagKey's parent.
-     * Must be of the form `folders/{folder_id}` or `organizations/{org_id}`.
+     * Required. The resource name of the TagKey's parent.
+     * Must be of the form `organizations/{org_id}` or `projects/{project_id}` or
+     * `projects/{project_number}`
      * 
* * @@ -642,8 +646,9 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Required. The resource name of the new TagKey's parent.
-     * Must be of the form `folders/{folder_id}` or `organizations/{org_id}`.
+     * Required. The resource name of the TagKey's parent.
+     * Must be of the form `organizations/{org_id}` or `projects/{project_id}` or
+     * `projects/{project_number}`
      * 
* * @@ -666,8 +671,9 @@ public Builder setParent(java.lang.String value) { * * *
-     * Required. The resource name of the new TagKey's parent.
-     * Must be of the form `folders/{folder_id}` or `organizations/{org_id}`.
+     * Required. The resource name of the TagKey's parent.
+     * Must be of the form `organizations/{org_id}` or `projects/{project_id}` or
+     * `projects/{project_number}`
      * 
* * @@ -686,8 +692,9 @@ public Builder clearParent() { * * *
-     * Required. The resource name of the new TagKey's parent.
-     * Must be of the form `folders/{folder_id}` or `organizations/{org_id}`.
+     * Required. The resource name of the TagKey's parent.
+     * Must be of the form `organizations/{org_id}` or `projects/{project_id}` or
+     * `projects/{project_number}`
      * 
* * diff --git a/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/ListTagKeysRequestOrBuilder.java b/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/ListTagKeysRequestOrBuilder.java index d19ecb3b2d3d..5a0d75486927 100644 --- a/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/ListTagKeysRequestOrBuilder.java +++ b/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/ListTagKeysRequestOrBuilder.java @@ -27,8 +27,9 @@ public interface ListTagKeysRequestOrBuilder * * *
-   * Required. The resource name of the new TagKey's parent.
-   * Must be of the form `folders/{folder_id}` or `organizations/{org_id}`.
+   * Required. The resource name of the TagKey's parent.
+   * Must be of the form `organizations/{org_id}` or `projects/{project_id}` or
+   * `projects/{project_number}`
    * 
* * @@ -42,8 +43,9 @@ public interface ListTagKeysRequestOrBuilder * * *
-   * Required. The resource name of the new TagKey's parent.
-   * Must be of the form `folders/{folder_id}` or `organizations/{org_id}`.
+   * Required. The resource name of the TagKey's parent.
+   * Must be of the form `organizations/{org_id}` or `projects/{project_id}` or
+   * `projects/{project_number}`
    * 
* * diff --git a/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/Purpose.java b/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/Purpose.java index e6a01d416603..07c880989932 100644 --- a/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/Purpose.java +++ b/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/Purpose.java @@ -45,14 +45,16 @@ public enum Purpose implements com.google.protobuf.ProtocolMessageEnum { * *
    * Purpose for Compute Engine firewalls.
-   * A corresponding purpose_data should be set for the network the tag is
-   * intended for. The key should be 'network' and the value should be in
+   * A corresponding `purpose_data` should be set for the network the tag is
+   * intended for. The key should be `network` and the value should be in
    * either of these two formats:
-   * -https://www.googleapis.com/compute/{compute_version}/projects/{project_id}/global/networks/{network_id}
-   * -{project_id}/{network_name}
+   * -
+   * `https://www.googleapis.com/compute/{compute_version}/projects/{project_id}/global/networks/{network_id}`
+   * - `{project_id}/{network_name}`
    * Examples:
-   * -https://www.googleapis.com/compute/staging_v1/projects/fail-closed-load-testing/global/networks/6992953698831725600
-   * -fail-closed-load-testing/load-testing-network
+   * -
+   * `https://www.googleapis.com/compute/staging_v1/projects/fail-closed-load-testing/global/networks/6992953698831725600`
+   * - `fail-closed-load-testing/load-testing-network`
    * 
* * GCE_FIREWALL = 1; @@ -76,14 +78,16 @@ public enum Purpose implements com.google.protobuf.ProtocolMessageEnum { * *
    * Purpose for Compute Engine firewalls.
-   * A corresponding purpose_data should be set for the network the tag is
-   * intended for. The key should be 'network' and the value should be in
+   * A corresponding `purpose_data` should be set for the network the tag is
+   * intended for. The key should be `network` and the value should be in
    * either of these two formats:
-   * -https://www.googleapis.com/compute/{compute_version}/projects/{project_id}/global/networks/{network_id}
-   * -{project_id}/{network_name}
+   * -
+   * `https://www.googleapis.com/compute/{compute_version}/projects/{project_id}/global/networks/{network_id}`
+   * - `{project_id}/{network_name}`
    * Examples:
-   * -https://www.googleapis.com/compute/staging_v1/projects/fail-closed-load-testing/global/networks/6992953698831725600
-   * -fail-closed-load-testing/load-testing-network
+   * -
+   * `https://www.googleapis.com/compute/staging_v1/projects/fail-closed-load-testing/global/networks/6992953698831725600`
+   * - `fail-closed-load-testing/load-testing-network`
    * 
* * GCE_FIREWALL = 1; diff --git a/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/SearchProjectsRequest.java b/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/SearchProjectsRequest.java index c4e160982042..9d2d07fdfbf4 100644 --- a/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/SearchProjectsRequest.java +++ b/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/SearchProjectsRequest.java @@ -82,34 +82,27 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * `resourcemanager.projects.get` permission to. If multiple fields are * included in the query, then it will return results that match any of the * fields. Some eligible fields are: - * ``` - * | Field | Description | - * |-------------------------|----------------------------------------------| - * | displayName, name | Filters by displayName. | - * | parent | Project's parent (for example: folders/123, - * organizations/*). Prefer parent field over parent.type and parent.id.| | - * parent.type | Parent's type: `folder` or `organization`. | | - * parent.id | Parent's id number (for example: 123) | | - * id, projectId | Filters by projectId. | | - * state, lifecycleState | Filters by state. | | - * labels | Filters by label name or value. | | - * labels.\<key\> (where *key* is the name of a label) | Filters by label - * name.| - * ``` + * - **`displayName`, `name`**: Filters by displayName. + * - **`parent`**: Project's parent (for example: `folders/123`, + * `organizations/*`). Prefer `parent` field over `parent.type` and + * `parent.id`. + * - **`parent.type`**: Parent's type: `folder` or `organization`. + * - **`parent.id`**: Parent's id number (for example: `123`). + * - **`id`, `projectId`**: Filters by projectId. + * - **`state`, `lifecycleState`**: Filters by state. + * - **`labels`**: Filters by label name or value. + * - **`labels.<key>` (where `<key>` is the name of a label)**: Filters by label + * name. * Search expressions are case insensitive. * Some examples queries: - * ``` - * | Query | Description | - * |------------------|-----------------------------------------------------| - * | name:how* | The project's name starts with "how". | - * | name:Howl | The project's name is `Howl` or `howl`. | - * | name:HOWL | Equivalent to above. | - * | NAME:howl | Equivalent to above. | - * | labels.color:* | The project has the label `color`. | - * | labels.color:red | The project's label `color` has the value `red`. | - * | labels.color:red labels.size:big | The project's label `color` has the - * value `red` or its label `size` has the value `big`. | - * ``` + * - **`name:how*`**: The project's name starts with "how". + * - **`name:Howl`**: The project's name is `Howl` or `howl`. + * - **`name:HOWL`**: Equivalent to above. + * - **`NAME:howl`**: Equivalent to above. + * - **`labels.color:*`**: The project has the label `color`. + * - **`labels.color:red`**: The project's label `color` has the value `red`. + * - **`labels.color:red labels.size:big`**: The project's label `color` has + * the value `red` or its label `size` has the value `big`. * If no query is specified, the call will return projects for which the user * has the `resourcemanager.projects.get` permission. * @@ -138,34 +131,27 @@ public java.lang.String getQuery() { * `resourcemanager.projects.get` permission to. If multiple fields are * included in the query, then it will return results that match any of the * fields. Some eligible fields are: - * ``` - * | Field | Description | - * |-------------------------|----------------------------------------------| - * | displayName, name | Filters by displayName. | - * | parent | Project's parent (for example: folders/123, - * organizations/*). Prefer parent field over parent.type and parent.id.| | - * parent.type | Parent's type: `folder` or `organization`. | | - * parent.id | Parent's id number (for example: 123) | | - * id, projectId | Filters by projectId. | | - * state, lifecycleState | Filters by state. | | - * labels | Filters by label name or value. | | - * labels.\<key\> (where *key* is the name of a label) | Filters by label - * name.| - * ``` + * - **`displayName`, `name`**: Filters by displayName. + * - **`parent`**: Project's parent (for example: `folders/123`, + * `organizations/*`). Prefer `parent` field over `parent.type` and + * `parent.id`. + * - **`parent.type`**: Parent's type: `folder` or `organization`. + * - **`parent.id`**: Parent's id number (for example: `123`). + * - **`id`, `projectId`**: Filters by projectId. + * - **`state`, `lifecycleState`**: Filters by state. + * - **`labels`**: Filters by label name or value. + * - **`labels.<key>` (where `<key>` is the name of a label)**: Filters by label + * name. * Search expressions are case insensitive. * Some examples queries: - * ``` - * | Query | Description | - * |------------------|-----------------------------------------------------| - * | name:how* | The project's name starts with "how". | - * | name:Howl | The project's name is `Howl` or `howl`. | - * | name:HOWL | Equivalent to above. | - * | NAME:howl | Equivalent to above. | - * | labels.color:* | The project has the label `color`. | - * | labels.color:red | The project's label `color` has the value `red`. | - * | labels.color:red labels.size:big | The project's label `color` has the - * value `red` or its label `size` has the value `big`. | - * ``` + * - **`name:how*`**: The project's name starts with "how". + * - **`name:Howl`**: The project's name is `Howl` or `howl`. + * - **`name:HOWL`**: Equivalent to above. + * - **`NAME:howl`**: Equivalent to above. + * - **`labels.color:*`**: The project has the label `color`. + * - **`labels.color:red`**: The project's label `color` has the value `red`. + * - **`labels.color:red labels.size:big`**: The project's label `color` has + * the value `red` or its label `size` has the value `big`. * If no query is specified, the call will return projects for which the user * has the `resourcemanager.projects.get` permission. * @@ -662,34 +648,27 @@ public Builder mergeFrom( * `resourcemanager.projects.get` permission to. If multiple fields are * included in the query, then it will return results that match any of the * fields. Some eligible fields are: - * ``` - * | Field | Description | - * |-------------------------|----------------------------------------------| - * | displayName, name | Filters by displayName. | - * | parent | Project's parent (for example: folders/123, - * organizations/*). Prefer parent field over parent.type and parent.id.| | - * parent.type | Parent's type: `folder` or `organization`. | | - * parent.id | Parent's id number (for example: 123) | | - * id, projectId | Filters by projectId. | | - * state, lifecycleState | Filters by state. | | - * labels | Filters by label name or value. | | - * labels.\<key\> (where *key* is the name of a label) | Filters by label - * name.| - * ``` + * - **`displayName`, `name`**: Filters by displayName. + * - **`parent`**: Project's parent (for example: `folders/123`, + * `organizations/*`). Prefer `parent` field over `parent.type` and + * `parent.id`. + * - **`parent.type`**: Parent's type: `folder` or `organization`. + * - **`parent.id`**: Parent's id number (for example: `123`). + * - **`id`, `projectId`**: Filters by projectId. + * - **`state`, `lifecycleState`**: Filters by state. + * - **`labels`**: Filters by label name or value. + * - **`labels.<key>` (where `<key>` is the name of a label)**: Filters by label + * name. * Search expressions are case insensitive. * Some examples queries: - * ``` - * | Query | Description | - * |------------------|-----------------------------------------------------| - * | name:how* | The project's name starts with "how". | - * | name:Howl | The project's name is `Howl` or `howl`. | - * | name:HOWL | Equivalent to above. | - * | NAME:howl | Equivalent to above. | - * | labels.color:* | The project has the label `color`. | - * | labels.color:red | The project's label `color` has the value `red`. | - * | labels.color:red labels.size:big | The project's label `color` has the - * value `red` or its label `size` has the value `big`. | - * ``` + * - **`name:how*`**: The project's name starts with "how". + * - **`name:Howl`**: The project's name is `Howl` or `howl`. + * - **`name:HOWL`**: Equivalent to above. + * - **`NAME:howl`**: Equivalent to above. + * - **`labels.color:*`**: The project has the label `color`. + * - **`labels.color:red`**: The project's label `color` has the value `red`. + * - **`labels.color:red labels.size:big`**: The project's label `color` has + * the value `red` or its label `size` has the value `big`. * If no query is specified, the call will return projects for which the user * has the `resourcemanager.projects.get` permission. * @@ -717,34 +696,27 @@ public java.lang.String getQuery() { * `resourcemanager.projects.get` permission to. If multiple fields are * included in the query, then it will return results that match any of the * fields. Some eligible fields are: - * ``` - * | Field | Description | - * |-------------------------|----------------------------------------------| - * | displayName, name | Filters by displayName. | - * | parent | Project's parent (for example: folders/123, - * organizations/*). Prefer parent field over parent.type and parent.id.| | - * parent.type | Parent's type: `folder` or `organization`. | | - * parent.id | Parent's id number (for example: 123) | | - * id, projectId | Filters by projectId. | | - * state, lifecycleState | Filters by state. | | - * labels | Filters by label name or value. | | - * labels.\<key\> (where *key* is the name of a label) | Filters by label - * name.| - * ``` + * - **`displayName`, `name`**: Filters by displayName. + * - **`parent`**: Project's parent (for example: `folders/123`, + * `organizations/*`). Prefer `parent` field over `parent.type` and + * `parent.id`. + * - **`parent.type`**: Parent's type: `folder` or `organization`. + * - **`parent.id`**: Parent's id number (for example: `123`). + * - **`id`, `projectId`**: Filters by projectId. + * - **`state`, `lifecycleState`**: Filters by state. + * - **`labels`**: Filters by label name or value. + * - **`labels.<key>` (where `<key>` is the name of a label)**: Filters by label + * name. * Search expressions are case insensitive. * Some examples queries: - * ``` - * | Query | Description | - * |------------------|-----------------------------------------------------| - * | name:how* | The project's name starts with "how". | - * | name:Howl | The project's name is `Howl` or `howl`. | - * | name:HOWL | Equivalent to above. | - * | NAME:howl | Equivalent to above. | - * | labels.color:* | The project has the label `color`. | - * | labels.color:red | The project's label `color` has the value `red`. | - * | labels.color:red labels.size:big | The project's label `color` has the - * value `red` or its label `size` has the value `big`. | - * ``` + * - **`name:how*`**: The project's name starts with "how". + * - **`name:Howl`**: The project's name is `Howl` or `howl`. + * - **`name:HOWL`**: Equivalent to above. + * - **`NAME:howl`**: Equivalent to above. + * - **`labels.color:*`**: The project has the label `color`. + * - **`labels.color:red`**: The project's label `color` has the value `red`. + * - **`labels.color:red labels.size:big`**: The project's label `color` has + * the value `red` or its label `size` has the value `big`. * If no query is specified, the call will return projects for which the user * has the `resourcemanager.projects.get` permission. * @@ -772,34 +744,27 @@ public com.google.protobuf.ByteString getQueryBytes() { * `resourcemanager.projects.get` permission to. If multiple fields are * included in the query, then it will return results that match any of the * fields. Some eligible fields are: - * ``` - * | Field | Description | - * |-------------------------|----------------------------------------------| - * | displayName, name | Filters by displayName. | - * | parent | Project's parent (for example: folders/123, - * organizations/*). Prefer parent field over parent.type and parent.id.| | - * parent.type | Parent's type: `folder` or `organization`. | | - * parent.id | Parent's id number (for example: 123) | | - * id, projectId | Filters by projectId. | | - * state, lifecycleState | Filters by state. | | - * labels | Filters by label name or value. | | - * labels.\<key\> (where *key* is the name of a label) | Filters by label - * name.| - * ``` + * - **`displayName`, `name`**: Filters by displayName. + * - **`parent`**: Project's parent (for example: `folders/123`, + * `organizations/*`). Prefer `parent` field over `parent.type` and + * `parent.id`. + * - **`parent.type`**: Parent's type: `folder` or `organization`. + * - **`parent.id`**: Parent's id number (for example: `123`). + * - **`id`, `projectId`**: Filters by projectId. + * - **`state`, `lifecycleState`**: Filters by state. + * - **`labels`**: Filters by label name or value. + * - **`labels.<key>` (where `<key>` is the name of a label)**: Filters by label + * name. * Search expressions are case insensitive. * Some examples queries: - * ``` - * | Query | Description | - * |------------------|-----------------------------------------------------| - * | name:how* | The project's name starts with "how". | - * | name:Howl | The project's name is `Howl` or `howl`. | - * | name:HOWL | Equivalent to above. | - * | NAME:howl | Equivalent to above. | - * | labels.color:* | The project has the label `color`. | - * | labels.color:red | The project's label `color` has the value `red`. | - * | labels.color:red labels.size:big | The project's label `color` has the - * value `red` or its label `size` has the value `big`. | - * ``` + * - **`name:how*`**: The project's name starts with "how". + * - **`name:Howl`**: The project's name is `Howl` or `howl`. + * - **`name:HOWL`**: Equivalent to above. + * - **`NAME:howl`**: Equivalent to above. + * - **`labels.color:*`**: The project has the label `color`. + * - **`labels.color:red`**: The project's label `color` has the value `red`. + * - **`labels.color:red labels.size:big`**: The project's label `color` has + * the value `red` or its label `size` has the value `big`. * If no query is specified, the call will return projects for which the user * has the `resourcemanager.projects.get` permission. * @@ -826,34 +791,27 @@ public Builder setQuery(java.lang.String value) { * `resourcemanager.projects.get` permission to. If multiple fields are * included in the query, then it will return results that match any of the * fields. Some eligible fields are: - * ``` - * | Field | Description | - * |-------------------------|----------------------------------------------| - * | displayName, name | Filters by displayName. | - * | parent | Project's parent (for example: folders/123, - * organizations/*). Prefer parent field over parent.type and parent.id.| | - * parent.type | Parent's type: `folder` or `organization`. | | - * parent.id | Parent's id number (for example: 123) | | - * id, projectId | Filters by projectId. | | - * state, lifecycleState | Filters by state. | | - * labels | Filters by label name or value. | | - * labels.\<key\> (where *key* is the name of a label) | Filters by label - * name.| - * ``` + * - **`displayName`, `name`**: Filters by displayName. + * - **`parent`**: Project's parent (for example: `folders/123`, + * `organizations/*`). Prefer `parent` field over `parent.type` and + * `parent.id`. + * - **`parent.type`**: Parent's type: `folder` or `organization`. + * - **`parent.id`**: Parent's id number (for example: `123`). + * - **`id`, `projectId`**: Filters by projectId. + * - **`state`, `lifecycleState`**: Filters by state. + * - **`labels`**: Filters by label name or value. + * - **`labels.<key>` (where `<key>` is the name of a label)**: Filters by label + * name. * Search expressions are case insensitive. * Some examples queries: - * ``` - * | Query | Description | - * |------------------|-----------------------------------------------------| - * | name:how* | The project's name starts with "how". | - * | name:Howl | The project's name is `Howl` or `howl`. | - * | name:HOWL | Equivalent to above. | - * | NAME:howl | Equivalent to above. | - * | labels.color:* | The project has the label `color`. | - * | labels.color:red | The project's label `color` has the value `red`. | - * | labels.color:red labels.size:big | The project's label `color` has the - * value `red` or its label `size` has the value `big`. | - * ``` + * - **`name:how*`**: The project's name starts with "how". + * - **`name:Howl`**: The project's name is `Howl` or `howl`. + * - **`name:HOWL`**: Equivalent to above. + * - **`NAME:howl`**: Equivalent to above. + * - **`labels.color:*`**: The project has the label `color`. + * - **`labels.color:red`**: The project's label `color` has the value `red`. + * - **`labels.color:red labels.size:big`**: The project's label `color` has + * the value `red` or its label `size` has the value `big`. * If no query is specified, the call will return projects for which the user * has the `resourcemanager.projects.get` permission. * @@ -876,34 +834,27 @@ public Builder clearQuery() { * `resourcemanager.projects.get` permission to. If multiple fields are * included in the query, then it will return results that match any of the * fields. Some eligible fields are: - * ``` - * | Field | Description | - * |-------------------------|----------------------------------------------| - * | displayName, name | Filters by displayName. | - * | parent | Project's parent (for example: folders/123, - * organizations/*). Prefer parent field over parent.type and parent.id.| | - * parent.type | Parent's type: `folder` or `organization`. | | - * parent.id | Parent's id number (for example: 123) | | - * id, projectId | Filters by projectId. | | - * state, lifecycleState | Filters by state. | | - * labels | Filters by label name or value. | | - * labels.\<key\> (where *key* is the name of a label) | Filters by label - * name.| - * ``` + * - **`displayName`, `name`**: Filters by displayName. + * - **`parent`**: Project's parent (for example: `folders/123`, + * `organizations/*`). Prefer `parent` field over `parent.type` and + * `parent.id`. + * - **`parent.type`**: Parent's type: `folder` or `organization`. + * - **`parent.id`**: Parent's id number (for example: `123`). + * - **`id`, `projectId`**: Filters by projectId. + * - **`state`, `lifecycleState`**: Filters by state. + * - **`labels`**: Filters by label name or value. + * - **`labels.<key>` (where `<key>` is the name of a label)**: Filters by label + * name. * Search expressions are case insensitive. * Some examples queries: - * ``` - * | Query | Description | - * |------------------|-----------------------------------------------------| - * | name:how* | The project's name starts with "how". | - * | name:Howl | The project's name is `Howl` or `howl`. | - * | name:HOWL | Equivalent to above. | - * | NAME:howl | Equivalent to above. | - * | labels.color:* | The project has the label `color`. | - * | labels.color:red | The project's label `color` has the value `red`. | - * | labels.color:red labels.size:big | The project's label `color` has the - * value `red` or its label `size` has the value `big`. | - * ``` + * - **`name:how*`**: The project's name starts with "how". + * - **`name:Howl`**: The project's name is `Howl` or `howl`. + * - **`name:HOWL`**: Equivalent to above. + * - **`NAME:howl`**: Equivalent to above. + * - **`labels.color:*`**: The project has the label `color`. + * - **`labels.color:red`**: The project's label `color` has the value `red`. + * - **`labels.color:red labels.size:big`**: The project's label `color` has + * the value `red` or its label `size` has the value `big`. * If no query is specified, the call will return projects for which the user * has the `resourcemanager.projects.get` permission. * diff --git a/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/SearchProjectsRequestOrBuilder.java b/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/SearchProjectsRequestOrBuilder.java index ba3df65ac023..f046649c7f8c 100644 --- a/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/SearchProjectsRequestOrBuilder.java +++ b/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/SearchProjectsRequestOrBuilder.java @@ -31,34 +31,27 @@ public interface SearchProjectsRequestOrBuilder * `resourcemanager.projects.get` permission to. If multiple fields are * included in the query, then it will return results that match any of the * fields. Some eligible fields are: - * ``` - * | Field | Description | - * |-------------------------|----------------------------------------------| - * | displayName, name | Filters by displayName. | - * | parent | Project's parent (for example: folders/123, - * organizations/*). Prefer parent field over parent.type and parent.id.| | - * parent.type | Parent's type: `folder` or `organization`. | | - * parent.id | Parent's id number (for example: 123) | | - * id, projectId | Filters by projectId. | | - * state, lifecycleState | Filters by state. | | - * labels | Filters by label name or value. | | - * labels.\<key\> (where *key* is the name of a label) | Filters by label - * name.| - * ``` + * - **`displayName`, `name`**: Filters by displayName. + * - **`parent`**: Project's parent (for example: `folders/123`, + * `organizations/*`). Prefer `parent` field over `parent.type` and + * `parent.id`. + * - **`parent.type`**: Parent's type: `folder` or `organization`. + * - **`parent.id`**: Parent's id number (for example: `123`). + * - **`id`, `projectId`**: Filters by projectId. + * - **`state`, `lifecycleState`**: Filters by state. + * - **`labels`**: Filters by label name or value. + * - **`labels.<key>` (where `<key>` is the name of a label)**: Filters by label + * name. * Search expressions are case insensitive. * Some examples queries: - * ``` - * | Query | Description | - * |------------------|-----------------------------------------------------| - * | name:how* | The project's name starts with "how". | - * | name:Howl | The project's name is `Howl` or `howl`. | - * | name:HOWL | Equivalent to above. | - * | NAME:howl | Equivalent to above. | - * | labels.color:* | The project has the label `color`. | - * | labels.color:red | The project's label `color` has the value `red`. | - * | labels.color:red labels.size:big | The project's label `color` has the - * value `red` or its label `size` has the value `big`. | - * ``` + * - **`name:how*`**: The project's name starts with "how". + * - **`name:Howl`**: The project's name is `Howl` or `howl`. + * - **`name:HOWL`**: Equivalent to above. + * - **`NAME:howl`**: Equivalent to above. + * - **`labels.color:*`**: The project has the label `color`. + * - **`labels.color:red`**: The project's label `color` has the value `red`. + * - **`labels.color:red labels.size:big`**: The project's label `color` has + * the value `red` or its label `size` has the value `big`. * If no query is specified, the call will return projects for which the user * has the `resourcemanager.projects.get` permission. * @@ -76,34 +69,27 @@ public interface SearchProjectsRequestOrBuilder * `resourcemanager.projects.get` permission to. If multiple fields are * included in the query, then it will return results that match any of the * fields. Some eligible fields are: - * ``` - * | Field | Description | - * |-------------------------|----------------------------------------------| - * | displayName, name | Filters by displayName. | - * | parent | Project's parent (for example: folders/123, - * organizations/*). Prefer parent field over parent.type and parent.id.| | - * parent.type | Parent's type: `folder` or `organization`. | | - * parent.id | Parent's id number (for example: 123) | | - * id, projectId | Filters by projectId. | | - * state, lifecycleState | Filters by state. | | - * labels | Filters by label name or value. | | - * labels.\<key\> (where *key* is the name of a label) | Filters by label - * name.| - * ``` + * - **`displayName`, `name`**: Filters by displayName. + * - **`parent`**: Project's parent (for example: `folders/123`, + * `organizations/*`). Prefer `parent` field over `parent.type` and + * `parent.id`. + * - **`parent.type`**: Parent's type: `folder` or `organization`. + * - **`parent.id`**: Parent's id number (for example: `123`). + * - **`id`, `projectId`**: Filters by projectId. + * - **`state`, `lifecycleState`**: Filters by state. + * - **`labels`**: Filters by label name or value. + * - **`labels.<key>` (where `<key>` is the name of a label)**: Filters by label + * name. * Search expressions are case insensitive. * Some examples queries: - * ``` - * | Query | Description | - * |------------------|-----------------------------------------------------| - * | name:how* | The project's name starts with "how". | - * | name:Howl | The project's name is `Howl` or `howl`. | - * | name:HOWL | Equivalent to above. | - * | NAME:howl | Equivalent to above. | - * | labels.color:* | The project has the label `color`. | - * | labels.color:red | The project's label `color` has the value `red`. | - * | labels.color:red labels.size:big | The project's label `color` has the - * value `red` or its label `size` has the value `big`. | - * ``` + * - **`name:how*`**: The project's name starts with "how". + * - **`name:Howl`**: The project's name is `Howl` or `howl`. + * - **`name:HOWL`**: Equivalent to above. + * - **`NAME:howl`**: Equivalent to above. + * - **`labels.color:*`**: The project has the label `color`. + * - **`labels.color:red`**: The project's label `color` has the value `red`. + * - **`labels.color:red labels.size:big`**: The project's label `color` has + * the value `red` or its label `size` has the value `big`. * If no query is specified, the call will return projects for which the user * has the `resourcemanager.projects.get` permission. * diff --git a/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/TagKey.java b/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/TagKey.java index 485ebada3500..f9cc36af88e7 100644 --- a/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/TagKey.java +++ b/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/TagKey.java @@ -147,8 +147,11 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * Immutable. The resource name of the new TagKey's parent.
-   * Must be of the form `organizations/{org_id}`.
+   * Immutable. The resource name of the TagKey's parent. A TagKey can be
+   * parented by an Organization or a Project. For a TagKey parented by an
+   * Organization, its parent must be in the form `organizations/{org_id}`. For
+   * a TagKey parented by a Project, its parent can be in the form
+   * `projects/{project_id}` or `projects/{project_number}`.
    * 
* * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; @@ -171,8 +174,11 @@ public java.lang.String getParent() { * * *
-   * Immutable. The resource name of the new TagKey's parent.
-   * Must be of the form `organizations/{org_id}`.
+   * Immutable. The resource name of the TagKey's parent. A TagKey can be
+   * parented by an Organization or a Project. For a TagKey parented by an
+   * Organization, its parent must be in the form `organizations/{org_id}`. For
+   * a TagKey parented by a Project, its parent can be in the form
+   * `projects/{project_id}` or `projects/{project_number}`.
    * 
* * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; @@ -1404,8 +1410,11 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Immutable. The resource name of the new TagKey's parent.
-     * Must be of the form `organizations/{org_id}`.
+     * Immutable. The resource name of the TagKey's parent. A TagKey can be
+     * parented by an Organization or a Project. For a TagKey parented by an
+     * Organization, its parent must be in the form `organizations/{org_id}`. For
+     * a TagKey parented by a Project, its parent can be in the form
+     * `projects/{project_id}` or `projects/{project_number}`.
      * 
* * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; @@ -1427,8 +1436,11 @@ public java.lang.String getParent() { * * *
-     * Immutable. The resource name of the new TagKey's parent.
-     * Must be of the form `organizations/{org_id}`.
+     * Immutable. The resource name of the TagKey's parent. A TagKey can be
+     * parented by an Organization or a Project. For a TagKey parented by an
+     * Organization, its parent must be in the form `organizations/{org_id}`. For
+     * a TagKey parented by a Project, its parent can be in the form
+     * `projects/{project_id}` or `projects/{project_number}`.
      * 
* * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; @@ -1450,8 +1462,11 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Immutable. The resource name of the new TagKey's parent.
-     * Must be of the form `organizations/{org_id}`.
+     * Immutable. The resource name of the TagKey's parent. A TagKey can be
+     * parented by an Organization or a Project. For a TagKey parented by an
+     * Organization, its parent must be in the form `organizations/{org_id}`. For
+     * a TagKey parented by a Project, its parent can be in the form
+     * `projects/{project_id}` or `projects/{project_number}`.
      * 
* * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; @@ -1472,8 +1487,11 @@ public Builder setParent(java.lang.String value) { * * *
-     * Immutable. The resource name of the new TagKey's parent.
-     * Must be of the form `organizations/{org_id}`.
+     * Immutable. The resource name of the TagKey's parent. A TagKey can be
+     * parented by an Organization or a Project. For a TagKey parented by an
+     * Organization, its parent must be in the form `organizations/{org_id}`. For
+     * a TagKey parented by a Project, its parent can be in the form
+     * `projects/{project_id}` or `projects/{project_number}`.
      * 
* * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; @@ -1490,8 +1508,11 @@ public Builder clearParent() { * * *
-     * Immutable. The resource name of the new TagKey's parent.
-     * Must be of the form `organizations/{org_id}`.
+     * Immutable. The resource name of the TagKey's parent. A TagKey can be
+     * parented by an Organization or a Project. For a TagKey parented by an
+     * Organization, its parent must be in the form `organizations/{org_id}`. For
+     * a TagKey parented by a Project, its parent can be in the form
+     * `projects/{project_id}` or `projects/{project_number}`.
      * 
* * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; diff --git a/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/TagKeyOrBuilder.java b/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/TagKeyOrBuilder.java index 6aacbe2eec1c..576e4ec9ec6e 100644 --- a/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/TagKeyOrBuilder.java +++ b/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/TagKeyOrBuilder.java @@ -56,8 +56,11 @@ public interface TagKeyOrBuilder * * *
-   * Immutable. The resource name of the new TagKey's parent.
-   * Must be of the form `organizations/{org_id}`.
+   * Immutable. The resource name of the TagKey's parent. A TagKey can be
+   * parented by an Organization or a Project. For a TagKey parented by an
+   * Organization, its parent must be in the form `organizations/{org_id}`. For
+   * a TagKey parented by a Project, its parent can be in the form
+   * `projects/{project_id}` or `projects/{project_number}`.
    * 
* * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; @@ -69,8 +72,11 @@ public interface TagKeyOrBuilder * * *
-   * Immutable. The resource name of the new TagKey's parent.
-   * Must be of the form `organizations/{org_id}`.
+   * Immutable. The resource name of the TagKey's parent. A TagKey can be
+   * parented by an Organization or a Project. For a TagKey parented by an
+   * Organization, its parent must be in the form `organizations/{org_id}`. For
+   * a TagKey parented by a Project, its parent can be in the form
+   * `projects/{project_id}` or `projects/{project_number}`.
    * 
* * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; diff --git a/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/TagValue.java b/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/TagValue.java index 2d4fe533aceb..38e666685afd 100644 --- a/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/TagValue.java +++ b/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/TagValue.java @@ -248,10 +248,10 @@ public com.google.protobuf.ByteString getShortNameBytes() { * * *
-   * Output only. Namespaced name of the TagValue. Now only supported in the
-   * format
-   * `{organization_id}/{tag_key_short_name}/{short_name}`. Other
-   * formats will be supported when we add non-org parented tags.
+   * Output only. The namespaced name of the TagValue. Can be in the form
+   * `{organization_id}/{tag_key_short_name}/{tag_value_short_name}` or
+   * `{project_id}/{tag_key_short_name}/{tag_value_short_name}` or
+   * `{project_number}/{tag_key_short_name}/{tag_value_short_name}`.
    * 
* * string namespaced_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -274,10 +274,10 @@ public java.lang.String getNamespacedName() { * * *
-   * Output only. Namespaced name of the TagValue. Now only supported in the
-   * format
-   * `{organization_id}/{tag_key_short_name}/{short_name}`. Other
-   * formats will be supported when we add non-org parented tags.
+   * Output only. The namespaced name of the TagValue. Can be in the form
+   * `{organization_id}/{tag_key_short_name}/{tag_value_short_name}` or
+   * `{project_id}/{tag_key_short_name}/{tag_value_short_name}` or
+   * `{project_number}/{tag_key_short_name}/{tag_value_short_name}`.
    * 
* * string namespaced_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1387,10 +1387,10 @@ public Builder setShortNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Output only. Namespaced name of the TagValue. Now only supported in the
-     * format
-     * `{organization_id}/{tag_key_short_name}/{short_name}`. Other
-     * formats will be supported when we add non-org parented tags.
+     * Output only. The namespaced name of the TagValue. Can be in the form
+     * `{organization_id}/{tag_key_short_name}/{tag_value_short_name}` or
+     * `{project_id}/{tag_key_short_name}/{tag_value_short_name}` or
+     * `{project_number}/{tag_key_short_name}/{tag_value_short_name}`.
      * 
* * string namespaced_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1412,10 +1412,10 @@ public java.lang.String getNamespacedName() { * * *
-     * Output only. Namespaced name of the TagValue. Now only supported in the
-     * format
-     * `{organization_id}/{tag_key_short_name}/{short_name}`. Other
-     * formats will be supported when we add non-org parented tags.
+     * Output only. The namespaced name of the TagValue. Can be in the form
+     * `{organization_id}/{tag_key_short_name}/{tag_value_short_name}` or
+     * `{project_id}/{tag_key_short_name}/{tag_value_short_name}` or
+     * `{project_number}/{tag_key_short_name}/{tag_value_short_name}`.
      * 
* * string namespaced_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1437,10 +1437,10 @@ public com.google.protobuf.ByteString getNamespacedNameBytes() { * * *
-     * Output only. Namespaced name of the TagValue. Now only supported in the
-     * format
-     * `{organization_id}/{tag_key_short_name}/{short_name}`. Other
-     * formats will be supported when we add non-org parented tags.
+     * Output only. The namespaced name of the TagValue. Can be in the form
+     * `{organization_id}/{tag_key_short_name}/{tag_value_short_name}` or
+     * `{project_id}/{tag_key_short_name}/{tag_value_short_name}` or
+     * `{project_number}/{tag_key_short_name}/{tag_value_short_name}`.
      * 
* * string namespaced_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1461,10 +1461,10 @@ public Builder setNamespacedName(java.lang.String value) { * * *
-     * Output only. Namespaced name of the TagValue. Now only supported in the
-     * format
-     * `{organization_id}/{tag_key_short_name}/{short_name}`. Other
-     * formats will be supported when we add non-org parented tags.
+     * Output only. The namespaced name of the TagValue. Can be in the form
+     * `{organization_id}/{tag_key_short_name}/{tag_value_short_name}` or
+     * `{project_id}/{tag_key_short_name}/{tag_value_short_name}` or
+     * `{project_number}/{tag_key_short_name}/{tag_value_short_name}`.
      * 
* * string namespaced_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1481,10 +1481,10 @@ public Builder clearNamespacedName() { * * *
-     * Output only. Namespaced name of the TagValue. Now only supported in the
-     * format
-     * `{organization_id}/{tag_key_short_name}/{short_name}`. Other
-     * formats will be supported when we add non-org parented tags.
+     * Output only. The namespaced name of the TagValue. Can be in the form
+     * `{organization_id}/{tag_key_short_name}/{tag_value_short_name}` or
+     * `{project_id}/{tag_key_short_name}/{tag_value_short_name}` or
+     * `{project_number}/{tag_key_short_name}/{tag_value_short_name}`.
      * 
* * string namespaced_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/TagValueOrBuilder.java b/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/TagValueOrBuilder.java index 77892ae2cbf5..bdb3fc9c1d80 100644 --- a/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/TagValueOrBuilder.java +++ b/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/java/com/google/cloud/resourcemanager/v3/TagValueOrBuilder.java @@ -116,10 +116,10 @@ public interface TagValueOrBuilder * * *
-   * Output only. Namespaced name of the TagValue. Now only supported in the
-   * format
-   * `{organization_id}/{tag_key_short_name}/{short_name}`. Other
-   * formats will be supported when we add non-org parented tags.
+   * Output only. The namespaced name of the TagValue. Can be in the form
+   * `{organization_id}/{tag_key_short_name}/{tag_value_short_name}` or
+   * `{project_id}/{tag_key_short_name}/{tag_value_short_name}` or
+   * `{project_number}/{tag_key_short_name}/{tag_value_short_name}`.
    * 
* * string namespaced_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -131,10 +131,10 @@ public interface TagValueOrBuilder * * *
-   * Output only. Namespaced name of the TagValue. Now only supported in the
-   * format
-   * `{organization_id}/{tag_key_short_name}/{short_name}`. Other
-   * formats will be supported when we add non-org parented tags.
+   * Output only. The namespaced name of the TagValue. Can be in the form
+   * `{organization_id}/{tag_key_short_name}/{tag_value_short_name}` or
+   * `{project_id}/{tag_key_short_name}/{tag_value_short_name}` or
+   * `{project_number}/{tag_key_short_name}/{tag_value_short_name}`.
    * 
* * string namespaced_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/proto/google/cloud/resourcemanager/v3/projects.proto b/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/proto/google/cloud/resourcemanager/v3/projects.proto index 840d538c261a..5128147109ab 100644 --- a/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/proto/google/cloud/resourcemanager/v3/projects.proto +++ b/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/proto/google/cloud/resourcemanager/v3/projects.proto @@ -460,37 +460,31 @@ message SearchProjectsRequest { // included in the query, then it will return results that match any of the // fields. Some eligible fields are: // - // ``` - // | Field | Description | - // |-------------------------|----------------------------------------------| - // | displayName, name | Filters by displayName. | - // | parent | Project's parent (for example: folders/123, - // organizations/*). Prefer parent field over parent.type and parent.id.| | - // parent.type | Parent's type: `folder` or `organization`. | | - // parent.id | Parent's id number (for example: 123) | | - // id, projectId | Filters by projectId. | | - // state, lifecycleState | Filters by state. | | - // labels | Filters by label name or value. | | - // labels.\ (where *key* is the name of a label) | Filters by label - // name.| - // ``` + // - **`displayName`, `name`**: Filters by displayName. + // - **`parent`**: Project's parent (for example: `folders/123`, + // `organizations/*`). Prefer `parent` field over `parent.type` and + // `parent.id`. + // - **`parent.type`**: Parent's type: `folder` or `organization`. + // - **`parent.id`**: Parent's id number (for example: `123`). + // - **`id`, `projectId`**: Filters by projectId. + // - **`state`, `lifecycleState`**: Filters by state. + // - **`labels`**: Filters by label name or value. + // - **`labels.` (where `` is the name of a label)**: Filters by label + // name. // // Search expressions are case insensitive. // // Some examples queries: // - // ``` - // | Query | Description | - // |------------------|-----------------------------------------------------| - // | name:how* | The project's name starts with "how". | - // | name:Howl | The project's name is `Howl` or `howl`. | - // | name:HOWL | Equivalent to above. | - // | NAME:howl | Equivalent to above. | - // | labels.color:* | The project has the label `color`. | - // | labels.color:red | The project's label `color` has the value `red`. | - // | labels.color:red labels.size:big | The project's label `color` has the - // value `red` or its label `size` has the value `big`. | - // ``` + // + // - **`name:how*`**: The project's name starts with "how". + // - **`name:Howl`**: The project's name is `Howl` or `howl`. + // - **`name:HOWL`**: Equivalent to above. + // - **`NAME:howl`**: Equivalent to above. + // - **`labels.color:*`**: The project has the label `color`. + // - **`labels.color:red`**: The project's label `color` has the value `red`. + // - **`labels.color:red labels.size:big`**: The project's label `color` has + // the value `red` or its label `size` has the value `big`. // // If no query is specified, the call will return projects for which the user // has the `resourcemanager.projects.get` permission. diff --git a/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/proto/google/cloud/resourcemanager/v3/tag_bindings.proto b/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/proto/google/cloud/resourcemanager/v3/tag_bindings.proto index 462757071583..6e94b8884595 100644 --- a/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/proto/google/cloud/resourcemanager/v3/tag_bindings.proto +++ b/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/proto/google/cloud/resourcemanager/v3/tag_bindings.proto @@ -237,9 +237,10 @@ message EffectiveTag { type: "cloudresourcemanager.googleapis.com/TagValue" }]; - // Namespaced name of the TagValue. Now only supported in the format - // `{organization_id}/{tag_key_short_name}/{tag_value_short_name}`. - // Other formats will be supported when we add non-org parented tags. + // The namespaced name of the TagValue. Can be in the form + // `{organization_id}/{tag_key_short_name}/{tag_value_short_name}` or + // `{project_id}/{tag_key_short_name}/{tag_value_short_name}` or + // `{project_number}/{tag_key_short_name}/{tag_value_short_name}`. string namespaced_tag_value = 2; // The name of the TagKey, in the format `tagKeys/{id}`, such as @@ -248,13 +249,15 @@ message EffectiveTag { type: "cloudresourcemanager.googleapis.com/TagKey" }]; - // The namespaced_name of the TagKey. Now only supported in the format of - // `{organization_id}/{tag_key_short_name}`. Other formats will be - // supported when we add non-org parented tags. + // The namespaced name of the TagKey. Can be in the form + // `{organization_id}/{tag_key_short_name}` or + // `{project_id}/{tag_key_short_name}` or + // `{project_number}/{tag_key_short_name}`. string namespaced_tag_key = 4; // The parent name of the tag key. - // Must be in the format `organizations/{organization_id}`. + // Must be in the format `organizations/{organization_id}` or + // `projects/{project_number}` string tag_key_parent_name = 6; // Indicates the inheritance status of a tag value diff --git a/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/proto/google/cloud/resourcemanager/v3/tag_keys.proto b/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/proto/google/cloud/resourcemanager/v3/tag_keys.proto index 46c575477769..72881b22659a 100644 --- a/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/proto/google/cloud/resourcemanager/v3/tag_keys.proto +++ b/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/proto/google/cloud/resourcemanager/v3/tag_keys.proto @@ -167,8 +167,11 @@ message TagKey { // the TagKey. string name = 1 [(google.api.field_behavior) = IMMUTABLE]; - // Immutable. The resource name of the new TagKey's parent. - // Must be of the form `organizations/{org_id}`. + // Immutable. The resource name of the TagKey's parent. A TagKey can be + // parented by an Organization or a Project. For a TagKey parented by an + // Organization, its parent must be in the form `organizations/{org_id}`. For + // a TagKey parented by a Project, its parent can be in the form + // `projects/{project_id}` or `projects/{project_number}`. string parent = 2 [(google.api.field_behavior) = IMMUTABLE]; // Required. Immutable. The user friendly name for a TagKey. The short name @@ -226,8 +229,9 @@ message TagKey { // The request message for listing all TagKeys under a parent resource. message ListTagKeysRequest { - // Required. The resource name of the new TagKey's parent. - // Must be of the form `folders/{folder_id}` or `organizations/{org_id}`. + // Required. The resource name of the TagKey's parent. + // Must be of the form `organizations/{org_id}` or `projects/{project_id}` or + // `projects/{project_number}` string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { child_type: "*" } @@ -338,7 +342,6 @@ message DeleteTagKeyRequest { // Runtime operation information for deleting a TagKey. message DeleteTagKeyMetadata {} -// // A purpose for each policy engine requiring such an integration. A single // policy engine may have multiple purposes defined, however a TagKey may only // specify a single purpose. @@ -347,14 +350,18 @@ enum Purpose { PURPOSE_UNSPECIFIED = 0; // Purpose for Compute Engine firewalls. - // A corresponding purpose_data should be set for the network the tag is - // intended for. The key should be 'network' and the value should be in + // A corresponding `purpose_data` should be set for the network the tag is + // intended for. The key should be `network` and the value should be in // either of these two formats: - // -https://www.googleapis.com/compute/{compute_version}/projects/{project_id}/global/networks/{network_id} - // -{project_id}/{network_name} + // + // - + // `https://www.googleapis.com/compute/{compute_version}/projects/{project_id}/global/networks/{network_id}` + // - `{project_id}/{network_name}` // // Examples: - // -https://www.googleapis.com/compute/staging_v1/projects/fail-closed-load-testing/global/networks/6992953698831725600 - // -fail-closed-load-testing/load-testing-network + // + // - + // `https://www.googleapis.com/compute/staging_v1/projects/fail-closed-load-testing/global/networks/6992953698831725600` + // - `fail-closed-load-testing/load-testing-network` GCE_FIREWALL = 1; } diff --git a/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/proto/google/cloud/resourcemanager/v3/tag_values.proto b/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/proto/google/cloud/resourcemanager/v3/tag_values.proto index f54d63556b98..9a5bd7f1ffbf 100644 --- a/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/proto/google/cloud/resourcemanager/v3/tag_values.proto +++ b/java-resourcemanager/proto-google-cloud-resourcemanager-v3/src/main/proto/google/cloud/resourcemanager/v3/tag_values.proto @@ -184,10 +184,10 @@ message TagValue { (google.api.field_behavior) = IMMUTABLE ]; - // Output only. Namespaced name of the TagValue. Now only supported in the - // format - // `{organization_id}/{tag_key_short_name}/{short_name}`. Other - // formats will be supported when we add non-org parented tags. + // Output only. The namespaced name of the TagValue. Can be in the form + // `{organization_id}/{tag_key_short_name}/{tag_value_short_name}` or + // `{project_id}/{tag_key_short_name}/{tag_value_short_name}` or + // `{project_number}/{tag_key_short_name}/{tag_value_short_name}`. string namespaced_name = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; // Optional. User-assigned description of the TagValue.