diff --git a/packages/google-cloud-servicedirectory/samples/generated/v1/registration_service.get_iam_policy.js b/packages/google-cloud-servicedirectory/samples/generated/v1/registration_service.get_iam_policy.js index 833c1be36d0..47b653c9934 100644 --- a/packages/google-cloud-servicedirectory/samples/generated/v1/registration_service.get_iam_policy.js +++ b/packages/google-cloud-servicedirectory/samples/generated/v1/registration_service.get_iam_policy.js @@ -32,7 +32,7 @@ function main(resource) { // const resource = 'abc123' /** * OPTIONAL: A `GetPolicyOptions` object for specifying options to - * `GetIamPolicy`. This field is only used by Cloud IAM. + * `GetIamPolicy`. */ // const options = {} diff --git a/packages/google-cloud-servicedirectory/samples/generated/v1/registration_service.set_iam_policy.js b/packages/google-cloud-servicedirectory/samples/generated/v1/registration_service.set_iam_policy.js index fee6085bbf7..34178a0e7e5 100644 --- a/packages/google-cloud-servicedirectory/samples/generated/v1/registration_service.set_iam_policy.js +++ b/packages/google-cloud-servicedirectory/samples/generated/v1/registration_service.set_iam_policy.js @@ -37,6 +37,13 @@ function main(resource, policy) { * might reject them. */ // const policy = {} + /** + * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only + * the fields in the mask will be modified. If no mask is provided, the + * following default mask is used: + * `paths: "bindings, etag"` + */ + // const updateMask = {} // Imports the Servicedirectory library const {RegistrationServiceClient} = require('@google-cloud/service-directory').v1; diff --git a/packages/google-cloud-servicedirectory/samples/generated/v1/snippet_metadata.google.cloud.servicedirectory.v1.json b/packages/google-cloud-servicedirectory/samples/generated/v1/snippet_metadata.google.cloud.servicedirectory.v1.json index 283a976657d..2b26ad3f8c1 100644 --- a/packages/google-cloud-servicedirectory/samples/generated/v1/snippet_metadata.google.cloud.servicedirectory.v1.json +++ b/packages/google-cloud-servicedirectory/samples/generated/v1/snippet_metadata.google.cloud.servicedirectory.v1.json @@ -798,7 +798,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 66, "type": "FULL" } ], @@ -814,6 +814,10 @@ { "name": "policy", "type": ".google.iam.v1.Policy" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" } ], "resultType": ".google.iam.v1.Policy", diff --git a/packages/google-cloud-servicedirectory/samples/generated/v1beta1/registration_service.get_iam_policy.js b/packages/google-cloud-servicedirectory/samples/generated/v1beta1/registration_service.get_iam_policy.js index 80110bea0e8..62eb51668a0 100644 --- a/packages/google-cloud-servicedirectory/samples/generated/v1beta1/registration_service.get_iam_policy.js +++ b/packages/google-cloud-servicedirectory/samples/generated/v1beta1/registration_service.get_iam_policy.js @@ -32,7 +32,7 @@ function main(resource) { // const resource = 'abc123' /** * OPTIONAL: A `GetPolicyOptions` object for specifying options to - * `GetIamPolicy`. This field is only used by Cloud IAM. + * `GetIamPolicy`. */ // const options = {} diff --git a/packages/google-cloud-servicedirectory/samples/generated/v1beta1/registration_service.set_iam_policy.js b/packages/google-cloud-servicedirectory/samples/generated/v1beta1/registration_service.set_iam_policy.js index 0ec7ac1a39f..4ba4b995b02 100644 --- a/packages/google-cloud-servicedirectory/samples/generated/v1beta1/registration_service.set_iam_policy.js +++ b/packages/google-cloud-servicedirectory/samples/generated/v1beta1/registration_service.set_iam_policy.js @@ -37,6 +37,13 @@ function main(resource, policy) { * might reject them. */ // const policy = {} + /** + * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only + * the fields in the mask will be modified. If no mask is provided, the + * following default mask is used: + * `paths: "bindings, etag"` + */ + // const updateMask = {} // Imports the Servicedirectory library const {RegistrationServiceClient} = require('@google-cloud/service-directory').v1beta1; diff --git a/packages/google-cloud-servicedirectory/samples/generated/v1beta1/snippet_metadata.google.cloud.servicedirectory.v1beta1.json b/packages/google-cloud-servicedirectory/samples/generated/v1beta1/snippet_metadata.google.cloud.servicedirectory.v1beta1.json index ddfed299738..594993ddcec 100644 --- a/packages/google-cloud-servicedirectory/samples/generated/v1beta1/snippet_metadata.google.cloud.servicedirectory.v1beta1.json +++ b/packages/google-cloud-servicedirectory/samples/generated/v1beta1/snippet_metadata.google.cloud.servicedirectory.v1beta1.json @@ -798,7 +798,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 66, "type": "FULL" } ], @@ -814,6 +814,10 @@ { "name": "policy", "type": ".google.iam.v1.Policy" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" } ], "resultType": ".google.iam.v1.Policy", diff --git a/packages/google-cloud-servicedirectory/src/v1/registration_service_client.ts b/packages/google-cloud-servicedirectory/src/v1/registration_service_client.ts index 401f598b456..d406110bb44 100644 --- a/packages/google-cloud-servicedirectory/src/v1/registration_service_client.ts +++ b/packages/google-cloud-servicedirectory/src/v1/registration_service_client.ts @@ -1541,7 +1541,7 @@ export class RegistrationServiceClient { * See the operation documentation for the appropriate value for this field. * @param {google.iam.v1.GetPolicyOptions} request.options * OPTIONAL: A `GetPolicyOptions` object for specifying options to - * `GetIamPolicy`. This field is only used by Cloud IAM. + * `GetIamPolicy`. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1631,6 +1631,12 @@ export class RegistrationServiceClient { * the policy is limited to a few 10s of KB. An empty policy is a * valid policy but certain Cloud Platform services (such as Projects) * might reject them. + * @param {google.protobuf.FieldMask} request.updateMask + * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only + * the fields in the mask will be modified. If no mask is provided, the + * following default mask is used: + * + * `paths: "bindings, etag"` * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. diff --git a/packages/google-cloud-servicedirectory/src/v1beta1/registration_service_client.ts b/packages/google-cloud-servicedirectory/src/v1beta1/registration_service_client.ts index ae05ce787d8..767a92f6afe 100644 --- a/packages/google-cloud-servicedirectory/src/v1beta1/registration_service_client.ts +++ b/packages/google-cloud-servicedirectory/src/v1beta1/registration_service_client.ts @@ -1577,7 +1577,7 @@ export class RegistrationServiceClient { * See the operation documentation for the appropriate value for this field. * @param {google.iam.v1.GetPolicyOptions} request.options * OPTIONAL: A `GetPolicyOptions` object for specifying options to - * `GetIamPolicy`. This field is only used by Cloud IAM. + * `GetIamPolicy`. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1667,6 +1667,12 @@ export class RegistrationServiceClient { * the policy is limited to a few 10s of KB. An empty policy is a * valid policy but certain Cloud Platform services (such as Projects) * might reject them. + * @param {google.protobuf.FieldMask} request.updateMask + * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only + * the fields in the mask will be modified. If no mask is provided, the + * following default mask is used: + * + * `paths: "bindings, etag"` * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array.