From c952200eb7500970cc2e219ccb49c300ab7abc0d Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 19 Jan 2024 10:32:16 -0500 Subject: [PATCH] docs: [securitycentermanagement] update documentation for UpdateSecurityHealthAnalyticsCustomModule update_mask field (#10222) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs: update documentation for UpdateSecurityHealthAnalyticsCustomModule update_mask field --- docs: Add description --- chore: update go_package and Go importpath PiperOrigin-RevId: 597960211 Source-Link: https://github.com/googleapis/googleapis/commit/5a5e3d62e215153ad2b077d075766400ea691c57 Source-Link: https://github.com/googleapis/googleapis-gen/commit/d02cc580379bd23f398d77ec04ff6beb18341ed2 Copy-Tag: eyJwIjoiamF2YS1zZWN1cml0eWNlbnRlcm1hbmFnZW1lbnQvLk93bEJvdC55YW1sIiwiaCI6ImQwMmNjNTgwMzc5YmQyM2YzOThkNzdlYzA0ZmY2YmViMTgzNDFlZDIifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-securitycentermanagement/README.md | 2 +- .../v1/SecurityCenterManagementClient.java | 8 +- ...ityHealthAnalyticsCustomModuleRequest.java | 108 ++++++++---------- ...AnalyticsCustomModuleRequestOrBuilder.java | 27 ++--- .../v1/security_center_management.proto | 9 +- 5 files changed, 68 insertions(+), 86 deletions(-) diff --git a/java-securitycentermanagement/README.md b/java-securitycentermanagement/README.md index 4e47ff76629d..bff1f796c005 100644 --- a/java-securitycentermanagement/README.md +++ b/java-securitycentermanagement/README.md @@ -201,7 +201,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/java-securitycentermanagement/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-securitycentermanagement.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycentermanagement/0.0.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycentermanagement/0.1.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-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementClient.java b/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementClient.java index a05bd19c8897..ddf2a3094059 100644 --- a/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementClient.java +++ b/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementClient.java @@ -1995,11 +1995,9 @@ public final SecurityHealthAnalyticsCustomModule createSecurityHealthAnalyticsCu * } * * @param securityHealthAnalyticsCustomModule Required. The resource being updated - * @param updateMask Required. Field mask is used to specify the fields to be overwritten in the - * SecurityHealthAnalyticsCustomModule resource by the update. The fields specified in the - * update_mask are relative to the resource, not the full request. A field will be overwritten - * if it is in the mask. If the user does not provide a mask then all fields will be - * overwritten. + * @param updateMask Required. The list of fields to be updated. The only fields that can be + * updated are `enablement_state` and `custom_config`. If empty or set to the wildcard value + * `*`, both `enablement_state` and `custom_config` are updated. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final SecurityHealthAnalyticsCustomModule updateSecurityHealthAnalyticsCustomModule( diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateSecurityHealthAnalyticsCustomModuleRequest.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateSecurityHealthAnalyticsCustomModuleRequest.java index aeb18a5861e1..ffaecbae6c27 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateSecurityHealthAnalyticsCustomModuleRequest.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateSecurityHealthAnalyticsCustomModuleRequest.java @@ -71,11 +71,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. Field mask is used to specify the fields to be overwritten in the
-   * SecurityHealthAnalyticsCustomModule resource by the update.
-   * The fields specified in the update_mask are relative to the resource, not
-   * the full request. A field will be overwritten if it is in the mask. If the
-   * user does not provide a mask then all fields will be overwritten.
+   * Required. The list of fields to be updated. The only fields that can be
+   * updated are `enablement_state` and `custom_config`. If empty or set to the
+   * wildcard value `*`, both `enablement_state` and `custom_config` are
+   * updated.
    * 
* * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -91,11 +90,10 @@ public boolean hasUpdateMask() { * * *
-   * Required. Field mask is used to specify the fields to be overwritten in the
-   * SecurityHealthAnalyticsCustomModule resource by the update.
-   * The fields specified in the update_mask are relative to the resource, not
-   * the full request. A field will be overwritten if it is in the mask. If the
-   * user does not provide a mask then all fields will be overwritten.
+   * Required. The list of fields to be updated. The only fields that can be
+   * updated are `enablement_state` and `custom_config`. If empty or set to the
+   * wildcard value `*`, both `enablement_state` and `custom_config` are
+   * updated.
    * 
* * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -111,11 +109,10 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
-   * Required. Field mask is used to specify the fields to be overwritten in the
-   * SecurityHealthAnalyticsCustomModule resource by the update.
-   * The fields specified in the update_mask are relative to the resource, not
-   * the full request. A field will be overwritten if it is in the mask. If the
-   * user does not provide a mask then all fields will be overwritten.
+   * Required. The list of fields to be updated. The only fields that can be
+   * updated are `enablement_state` and `custom_config`. If empty or set to the
+   * wildcard value `*`, both `enablement_state` and `custom_config` are
+   * updated.
    * 
* * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -686,11 +683,10 @@ public Builder mergeFrom( * * *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * SecurityHealthAnalyticsCustomModule resource by the update.
-     * The fields specified in the update_mask are relative to the resource, not
-     * the full request. A field will be overwritten if it is in the mask. If the
-     * user does not provide a mask then all fields will be overwritten.
+     * Required. The list of fields to be updated. The only fields that can be
+     * updated are `enablement_state` and `custom_config`. If empty or set to the
+     * wildcard value `*`, both `enablement_state` and `custom_config` are
+     * updated.
      * 
* * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -705,11 +701,10 @@ public boolean hasUpdateMask() { * * *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * SecurityHealthAnalyticsCustomModule resource by the update.
-     * The fields specified in the update_mask are relative to the resource, not
-     * the full request. A field will be overwritten if it is in the mask. If the
-     * user does not provide a mask then all fields will be overwritten.
+     * Required. The list of fields to be updated. The only fields that can be
+     * updated are `enablement_state` and `custom_config`. If empty or set to the
+     * wildcard value `*`, both `enablement_state` and `custom_config` are
+     * updated.
      * 
* * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -730,11 +725,10 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * SecurityHealthAnalyticsCustomModule resource by the update.
-     * The fields specified in the update_mask are relative to the resource, not
-     * the full request. A field will be overwritten if it is in the mask. If the
-     * user does not provide a mask then all fields will be overwritten.
+     * Required. The list of fields to be updated. The only fields that can be
+     * updated are `enablement_state` and `custom_config`. If empty or set to the
+     * wildcard value `*`, both `enablement_state` and `custom_config` are
+     * updated.
      * 
* * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -757,11 +751,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * * *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * SecurityHealthAnalyticsCustomModule resource by the update.
-     * The fields specified in the update_mask are relative to the resource, not
-     * the full request. A field will be overwritten if it is in the mask. If the
-     * user does not provide a mask then all fields will be overwritten.
+     * Required. The list of fields to be updated. The only fields that can be
+     * updated are `enablement_state` and `custom_config`. If empty or set to the
+     * wildcard value `*`, both `enablement_state` and `custom_config` are
+     * updated.
      * 
* * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -781,11 +774,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * * *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * SecurityHealthAnalyticsCustomModule resource by the update.
-     * The fields specified in the update_mask are relative to the resource, not
-     * the full request. A field will be overwritten if it is in the mask. If the
-     * user does not provide a mask then all fields will be overwritten.
+     * Required. The list of fields to be updated. The only fields that can be
+     * updated are `enablement_state` and `custom_config`. If empty or set to the
+     * wildcard value `*`, both `enablement_state` and `custom_config` are
+     * updated.
      * 
* * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -811,11 +803,10 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * * *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * SecurityHealthAnalyticsCustomModule resource by the update.
-     * The fields specified in the update_mask are relative to the resource, not
-     * the full request. A field will be overwritten if it is in the mask. If the
-     * user does not provide a mask then all fields will be overwritten.
+     * Required. The list of fields to be updated. The only fields that can be
+     * updated are `enablement_state` and `custom_config`. If empty or set to the
+     * wildcard value `*`, both `enablement_state` and `custom_config` are
+     * updated.
      * 
* * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -835,11 +826,10 @@ public Builder clearUpdateMask() { * * *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * SecurityHealthAnalyticsCustomModule resource by the update.
-     * The fields specified in the update_mask are relative to the resource, not
-     * the full request. A field will be overwritten if it is in the mask. If the
-     * user does not provide a mask then all fields will be overwritten.
+     * Required. The list of fields to be updated. The only fields that can be
+     * updated are `enablement_state` and `custom_config`. If empty or set to the
+     * wildcard value `*`, both `enablement_state` and `custom_config` are
+     * updated.
      * 
* * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -854,11 +844,10 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * * *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * SecurityHealthAnalyticsCustomModule resource by the update.
-     * The fields specified in the update_mask are relative to the resource, not
-     * the full request. A field will be overwritten if it is in the mask. If the
-     * user does not provide a mask then all fields will be overwritten.
+     * Required. The list of fields to be updated. The only fields that can be
+     * updated are `enablement_state` and `custom_config`. If empty or set to the
+     * wildcard value `*`, both `enablement_state` and `custom_config` are
+     * updated.
      * 
* * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -877,11 +866,10 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * SecurityHealthAnalyticsCustomModule resource by the update.
-     * The fields specified in the update_mask are relative to the resource, not
-     * the full request. A field will be overwritten if it is in the mask. If the
-     * user does not provide a mask then all fields will be overwritten.
+     * Required. The list of fields to be updated. The only fields that can be
+     * updated are `enablement_state` and `custom_config`. If empty or set to the
+     * wildcard value `*`, both `enablement_state` and `custom_config` are
+     * updated.
      * 
* * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java index 50a2b0dbe6b7..87129a81089f 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateSecurityHealthAnalyticsCustomModuleRequestOrBuilder.java @@ -27,11 +27,10 @@ public interface UpdateSecurityHealthAnalyticsCustomModuleRequestOrBuilder * * *
-   * Required. Field mask is used to specify the fields to be overwritten in the
-   * SecurityHealthAnalyticsCustomModule resource by the update.
-   * The fields specified in the update_mask are relative to the resource, not
-   * the full request. A field will be overwritten if it is in the mask. If the
-   * user does not provide a mask then all fields will be overwritten.
+   * Required. The list of fields to be updated. The only fields that can be
+   * updated are `enablement_state` and `custom_config`. If empty or set to the
+   * wildcard value `*`, both `enablement_state` and `custom_config` are
+   * updated.
    * 
* * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -44,11 +43,10 @@ public interface UpdateSecurityHealthAnalyticsCustomModuleRequestOrBuilder * * *
-   * Required. Field mask is used to specify the fields to be overwritten in the
-   * SecurityHealthAnalyticsCustomModule resource by the update.
-   * The fields specified in the update_mask are relative to the resource, not
-   * the full request. A field will be overwritten if it is in the mask. If the
-   * user does not provide a mask then all fields will be overwritten.
+   * Required. The list of fields to be updated. The only fields that can be
+   * updated are `enablement_state` and `custom_config`. If empty or set to the
+   * wildcard value `*`, both `enablement_state` and `custom_config` are
+   * updated.
    * 
* * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -61,11 +59,10 @@ public interface UpdateSecurityHealthAnalyticsCustomModuleRequestOrBuilder * * *
-   * Required. Field mask is used to specify the fields to be overwritten in the
-   * SecurityHealthAnalyticsCustomModule resource by the update.
-   * The fields specified in the update_mask are relative to the resource, not
-   * the full request. A field will be overwritten if it is in the mask. If the
-   * user does not provide a mask then all fields will be overwritten.
+   * Required. The list of fields to be updated. The only fields that can be
+   * updated are `enablement_state` and `custom_config`. If empty or set to the
+   * wildcard value `*`, both `enablement_state` and `custom_config` are
+   * updated.
    * 
* * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/proto/google/cloud/securitycentermanagement/v1/security_center_management.proto b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/proto/google/cloud/securitycentermanagement/v1/security_center_management.proto index 2472ea8f17ed..2f401c2b7874 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/proto/google/cloud/securitycentermanagement/v1/security_center_management.proto +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/proto/google/cloud/securitycentermanagement/v1/security_center_management.proto @@ -765,11 +765,10 @@ message CreateSecurityHealthAnalyticsCustomModuleRequest { // Message for updating a SecurityHealthAnalyticsCustomModule message UpdateSecurityHealthAnalyticsCustomModuleRequest { - // Required. Field mask is used to specify the fields to be overwritten in the - // SecurityHealthAnalyticsCustomModule resource by the update. - // The fields specified in the update_mask are relative to the resource, not - // the full request. A field will be overwritten if it is in the mask. If the - // user does not provide a mask then all fields will be overwritten. + // Required. The list of fields to be updated. The only fields that can be + // updated are `enablement_state` and `custom_config`. If empty or set to the + // wildcard value `*`, both `enablement_state` and `custom_config` are + // updated. google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = REQUIRED];