Skip to content

Commit

Permalink
fix(securitycenter): update the API
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation authored and sofisl committed May 21, 2021
1 parent 924ef57 commit 0d40c39
Show file tree
Hide file tree
Showing 3 changed files with 233 additions and 230 deletions.
41 changes: 18 additions & 23 deletions src/apis/securitycenter/v1.ts
Expand Up @@ -2393,8 +2393,7 @@ export namespace securitycenter_v1 {
* const res = await securitycenter.folders.sources.findings.updateSecurityMarks(
* {
* // The relative resource name of the SecurityMarks. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Examples: "organizations/{organization_id\}/assets/{asset_id\}/securityMarks" "organizations/{organization_id\}/sources/{source_id\}/findings/{finding_id\}/securityMarks".
* name:
* 'folders/my-folder/sources/my-source/findings/my-finding/securityMarks',
* name: 'folders/my-folder/sources/my-source/findings/my-finding/securityMarks',
* // The time at which the updated SecurityMarks take effect. If not set uses current server time. Updates will be applied to the SecurityMarks that are active immediately preceding this time.
* startTime: 'placeholder-value',
* // The FieldMask to use when updating the security marks resource. The field mask must not contain duplicate fields. If empty or set to "marks", all marks will be replaced. Individual marks can be updated using "marks.".
Expand Down Expand Up @@ -2478,7 +2477,8 @@ export namespace securitycenter_v1 {

if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Folders$Sources$Findings$Updatesecuritymarks;
params =
{} as Params$Resource$Folders$Sources$Findings$Updatesecuritymarks;
options = {};
}

Expand Down Expand Up @@ -3790,8 +3790,7 @@ export namespace securitycenter_v1 {
* // Do the magic
* const res = await securitycenter.organizations.notificationConfigs.delete({
* // Required. Name of the notification config to delete. Its format is "organizations/[organization_id]/notificationConfigs/[config_id]".
* name:
* 'organizations/my-organization/notificationConfigs/my-notificationConfig',
* name: 'organizations/my-organization/notificationConfigs/my-notificationConfig',
* });
* console.log(res.data);
*
Expand Down Expand Up @@ -3916,8 +3915,7 @@ export namespace securitycenter_v1 {
* // Do the magic
* const res = await securitycenter.organizations.notificationConfigs.get({
* // Required. Name of the notification config to get. Its format is "organizations/[organization_id]/notificationConfigs/[config_id]".
* name:
* 'organizations/my-organization/notificationConfigs/my-notificationConfig',
* name: 'organizations/my-organization/notificationConfigs/my-notificationConfig',
* });
* console.log(res.data);
*
Expand Down Expand Up @@ -4195,8 +4193,7 @@ export namespace securitycenter_v1 {
* // Do the magic
* const res = await securitycenter.organizations.notificationConfigs.patch({
* // The relative resource name of this notification config. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: "organizations/{organization_id\}/notificationConfigs/notify_public_bucket".
* name:
* 'organizations/my-organization/notificationConfigs/my-notificationConfig',
* name: 'organizations/my-organization/notificationConfigs/my-notificationConfig',
* // The FieldMask to use when updating the notification config. If empty all mutable fields will be updated.
* updateMask: 'placeholder-value',
*
Expand Down Expand Up @@ -6832,11 +6829,10 @@ export namespace securitycenter_v1 {
* google.options({auth: authClient});
*
* // Do the magic
* const res = await securitycenter.organizations.sources.findings.updateSecurityMarks(
* {
* const res =
* await securitycenter.organizations.sources.findings.updateSecurityMarks({
* // The relative resource name of the SecurityMarks. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Examples: "organizations/{organization_id\}/assets/{asset_id\}/securityMarks" "organizations/{organization_id\}/sources/{source_id\}/findings/{finding_id\}/securityMarks".
* name:
* 'organizations/my-organization/sources/my-source/findings/my-finding/securityMarks',
* name: 'organizations/my-organization/sources/my-source/findings/my-finding/securityMarks',
* // The time at which the updated SecurityMarks take effect. If not set uses current server time. Updates will be applied to the SecurityMarks that are active immediately preceding this time.
* startTime: 'placeholder-value',
* // The FieldMask to use when updating the security marks resource. The field mask must not contain duplicate fields. If empty or set to "marks", all marks will be replaced. Individual marks can be updated using "marks.".
Expand All @@ -6851,8 +6847,7 @@ export namespace securitycenter_v1 {
* // "name": "my_name"
* // }
* },
* }
* );
* });
* console.log(res.data);
*
* // Example response
Expand Down Expand Up @@ -6920,7 +6915,8 @@ export namespace securitycenter_v1 {

if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Organizations$Sources$Findings$Updatesecuritymarks;
params =
{} as Params$Resource$Organizations$Sources$Findings$Updatesecuritymarks;
options = {};
}

Expand Down Expand Up @@ -8404,11 +8400,10 @@ export namespace securitycenter_v1 {
* google.options({auth: authClient});
*
* // Do the magic
* const res = await securitycenter.projects.sources.findings.updateSecurityMarks(
* {
* const res =
* await securitycenter.projects.sources.findings.updateSecurityMarks({
* // The relative resource name of the SecurityMarks. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Examples: "organizations/{organization_id\}/assets/{asset_id\}/securityMarks" "organizations/{organization_id\}/sources/{source_id\}/findings/{finding_id\}/securityMarks".
* name:
* 'projects/my-project/sources/my-source/findings/my-finding/securityMarks',
* name: 'projects/my-project/sources/my-source/findings/my-finding/securityMarks',
* // The time at which the updated SecurityMarks take effect. If not set uses current server time. Updates will be applied to the SecurityMarks that are active immediately preceding this time.
* startTime: 'placeholder-value',
* // The FieldMask to use when updating the security marks resource. The field mask must not contain duplicate fields. If empty or set to "marks", all marks will be replaced. Individual marks can be updated using "marks.".
Expand All @@ -8423,8 +8418,7 @@ export namespace securitycenter_v1 {
* // "name": "my_name"
* // }
* },
* }
* );
* });
* console.log(res.data);
*
* // Example response
Expand Down Expand Up @@ -8492,7 +8486,8 @@ export namespace securitycenter_v1 {

if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Projects$Sources$Findings$Updatesecuritymarks;
params =
{} as Params$Resource$Projects$Sources$Findings$Updatesecuritymarks;
options = {};
}

Expand Down
13 changes: 6 additions & 7 deletions src/apis/securitycenter/v1beta1.ts
Expand Up @@ -4436,11 +4436,10 @@ export namespace securitycenter_v1beta1 {
* google.options({auth: authClient});
*
* // Do the magic
* const res = await securitycenter.organizations.sources.findings.updateSecurityMarks(
* {
* const res =
* await securitycenter.organizations.sources.findings.updateSecurityMarks({
* // The relative resource name of the SecurityMarks. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Examples: "organizations/{organization_id\}/assets/{asset_id\}/securityMarks" "organizations/{organization_id\}/sources/{source_id\}/findings/{finding_id\}/securityMarks".
* name:
* 'organizations/my-organization/sources/my-source/findings/my-finding/securityMarks',
* name: 'organizations/my-organization/sources/my-source/findings/my-finding/securityMarks',
* // The time at which the updated SecurityMarks take effect.
* startTime: 'placeholder-value',
* // The FieldMask to use when updating the security marks resource.
Expand All @@ -4454,8 +4453,7 @@ export namespace securitycenter_v1beta1 {
* // "name": "my_name"
* // }
* },
* }
* );
* });
* console.log(res.data);
*
* // Example response
Expand Down Expand Up @@ -4527,7 +4525,8 @@ export namespace securitycenter_v1beta1 {

if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Organizations$Sources$Findings$Updatesecuritymarks;
params =
{} as Params$Resource$Organizations$Sources$Findings$Updatesecuritymarks;
options = {};
}

Expand Down

0 comments on commit 0d40c39

Please sign in to comment.