Autogenerated update (2020-02-04)

Update:
- cloudshell_v1
- cloudshell_v1alpha1
- cloudtrace_v1
- cloudtrace_v2
- securitycenter_v1
- securitycenter_v1beta1
- securitycenter_v1p1alpha1
- securitycenter_v1p1beta1
This commit is contained in:
Google APIs 2020-02-04 00:37:31 +00:00
parent 244b71bb77
commit f277039691
19 changed files with 5076 additions and 8 deletions

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/shell/docs/
module CloudshellV1
VERSION = 'V1'
REVISION = '20191102'
REVISION = '20200203'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/shell/docs/
module CloudshellV1alpha1
VERSION = 'V1alpha1'
REVISION = '20191102'
REVISION = '20200203'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -29,7 +29,7 @@ module Google
# @see https://cloud.google.com/trace
module CloudtraceV1
VERSION = 'V1'
REVISION = '20190917'
REVISION = '20200128'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -56,6 +56,8 @@ module Google
# in the existing trace and its spans are overwritten by the provided values,
# and any new fields provided are merged with the existing trace data. If the
# ID does not match, a new trace is created.
# In this case, writing traces is not consider an active developer
# method since traces are machine generated.
# @param [String] project_id
# Required. ID of the Cloud project where the trace data is stored.
# @param [Google::Apis::CloudtraceV1::Traces] traces_object
@ -89,6 +91,8 @@ module Google
end
# Gets a single trace by its ID.
# In this case, getting for traces is considered an active developer method,
# even though it is technically a read-only method.
# @param [String] project_id
# Required. ID of the Cloud project where the trace data is stored.
# @param [String] trace_id
@ -122,6 +126,8 @@ module Google
end
# Returns of a list of traces that match the specified filter conditions.
# In this case, listing for traces is considered an active developer method,
# even though it is technically a read-only method.
# @param [String] project_id
# Required. ID of the Cloud project where the trace data is stored.
# @param [String] end_time

View File

@ -29,7 +29,7 @@ module Google
# @see https://cloud.google.com/trace
module CloudtraceV2
VERSION = 'V2'
REVISION = '20191202'
REVISION = '20200128'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -53,6 +53,8 @@ module Google
# Sends new spans to new or existing traces. You cannot update
# existing spans.
# In this case, writing traces is not consider an active developer
# method since traces are machine generated.
# @param [String] name
# Required. The name of the project where the spans belong. The format is
# `projects/[PROJECT_ID]`.
@ -87,6 +89,8 @@ module Google
end
# Creates a new span.
# In this case, writing traces is not consider an active developer
# method since traces are machine generated.
# @param [String] name
# The resource name of the span in the following format:
# projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/SPAN_ID is a unique

View File

@ -26,7 +26,7 @@ module Google
# @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview
module SecuritycenterV1
VERSION = 'V1'
REVISION = '20200117'
REVISION = '20200131'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -593,6 +593,399 @@ module Google
end
end
# Cloud Security Command Center's (Cloud SCC) representation of a Google Cloud
# Platform (GCP) resource.
# The Asset is a Cloud SCC resource that captures information about a single
# GCP resource. All modifications to an Asset are only within the context of
# Cloud SCC and don't affect the referenced GCP resource.
class GoogleCloudSecuritycenterV1p1beta1Asset
include Google::Apis::Core::Hashable
# The time at which the asset was created in Cloud SCC.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# IAM Policy information associated with the GCP resource described by the
# Cloud SCC asset. This information is managed and defined by the GCP
# resource and cannot be modified by the user.
# Corresponds to the JSON property `iamPolicy`
# @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1IamPolicy]
attr_accessor :iam_policy
# The relative resource name of this asset. See:
# https://cloud.google.com/apis/design/resource_names#relative_resource_name
# Example:
# "organizations/`organization_id`/assets/`asset_id`".
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Resource managed properties. These properties are managed and defined by
# the GCP resource and cannot be modified by the user.
# Corresponds to the JSON property `resourceProperties`
# @return [Hash<String,Object>]
attr_accessor :resource_properties
# Cloud SCC managed properties. These properties are managed by Cloud SCC and
# cannot be modified by the user.
# Corresponds to the JSON property `securityCenterProperties`
# @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties]
attr_accessor :security_center_properties
# User specified security marks that are attached to the parent Cloud Security
# Command Center (Cloud SCC) resource. Security marks are scoped within a Cloud
# SCC organization -- they can be modified and viewed by all users who have
# proper permissions on the organization.
# Corresponds to the JSON property `securityMarks`
# @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks]
attr_accessor :security_marks
# The time at which the asset was last updated, added, or deleted in Cloud
# SCC.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@create_time = args[:create_time] if args.key?(:create_time)
@iam_policy = args[:iam_policy] if args.key?(:iam_policy)
@name = args[:name] if args.key?(:name)
@resource_properties = args[:resource_properties] if args.key?(:resource_properties)
@security_center_properties = args[:security_center_properties] if args.key?(:security_center_properties)
@security_marks = args[:security_marks] if args.key?(:security_marks)
@update_time = args[:update_time] if args.key?(:update_time)
end
end
# Cloud Security Command Center (Cloud SCC) finding.
# A finding is a record of assessment data (security, risk, health or privacy)
# ingested into Cloud SCC for presentation, notification, analysis,
# policy testing, and enforcement. For example, an XSS vulnerability in an
# App Engine application is a finding.
class GoogleCloudSecuritycenterV1p1beta1Finding
include Google::Apis::Core::Hashable
# The additional taxonomy group within findings from a given source.
# This field is immutable after creation time.
# Example: "XSS_FLASH_INJECTION"
# Corresponds to the JSON property `category`
# @return [String]
attr_accessor :category
# The time at which the finding was created in Cloud SCC.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# The time at which the event took place. For example, if the finding
# represents an open firewall it would capture the time the detector believes
# the firewall became open. The accuracy is determined by the detector.
# Corresponds to the JSON property `eventTime`
# @return [String]
attr_accessor :event_time
# The URI that, if available, points to a web page outside of Cloud SCC
# where additional information about the finding can be found. This field is
# guaranteed to be either empty or a well formed URL.
# Corresponds to the JSON property `externalUri`
# @return [String]
attr_accessor :external_uri
# The relative resource name of this finding. See:
# https://cloud.google.com/apis/design/resource_names#relative_resource_name
# Example:
# "organizations/`organization_id`/sources/`source_id`/findings/`finding_id`"
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The relative resource name of the source the finding belongs to. See:
# https://cloud.google.com/apis/design/resource_names#relative_resource_name
# This field is immutable after creation time.
# For example:
# "organizations/`organization_id`/sources/`source_id`"
# Corresponds to the JSON property `parent`
# @return [String]
attr_accessor :parent
# For findings on Google Cloud Platform (GCP) resources, the full resource
# name of the GCP resource this finding is for. See:
# https://cloud.google.com/apis/design/resource_names#full_resource_name
# When the finding is for a non-GCP resource, the resourceName can be a
# customer or partner defined string.
# This field is immutable after creation time.
# Corresponds to the JSON property `resourceName`
# @return [String]
attr_accessor :resource_name
# User specified security marks that are attached to the parent Cloud Security
# Command Center (Cloud SCC) resource. Security marks are scoped within a Cloud
# SCC organization -- they can be modified and viewed by all users who have
# proper permissions on the organization.
# Corresponds to the JSON property `securityMarks`
# @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks]
attr_accessor :security_marks
# Source specific properties. These properties are managed by the source
# that writes the finding. The key names in the source_properties map must be
# between 1 and 255 characters, and must start with a letter and contain
# alphanumeric characters or underscores only.
# Corresponds to the JSON property `sourceProperties`
# @return [Hash<String,Object>]
attr_accessor :source_properties
# The state of the finding.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@category = args[:category] if args.key?(:category)
@create_time = args[:create_time] if args.key?(:create_time)
@event_time = args[:event_time] if args.key?(:event_time)
@external_uri = args[:external_uri] if args.key?(:external_uri)
@name = args[:name] if args.key?(:name)
@parent = args[:parent] if args.key?(:parent)
@resource_name = args[:resource_name] if args.key?(:resource_name)
@security_marks = args[:security_marks] if args.key?(:security_marks)
@source_properties = args[:source_properties] if args.key?(:source_properties)
@state = args[:state] if args.key?(:state)
end
end
# IAM Policy information associated with the GCP resource described by the
# Cloud SCC asset. This information is managed and defined by the GCP
# resource and cannot be modified by the user.
class GoogleCloudSecuritycenterV1p1beta1IamPolicy
include Google::Apis::Core::Hashable
# The JSON representation of the Policy associated with the asset.
# See https://cloud.google.com/iam/reference/rest/v1p1beta1/Policy for
# format details.
# Corresponds to the JSON property `policyBlob`
# @return [String]
attr_accessor :policy_blob
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@policy_blob = args[:policy_blob] if args.key?(:policy_blob)
end
end
# Cloud SCC's Notification
class GoogleCloudSecuritycenterV1p1beta1NotificationMessage
include Google::Apis::Core::Hashable
# Cloud Security Command Center (Cloud SCC) finding.
# A finding is a record of assessment data (security, risk, health or privacy)
# ingested into Cloud SCC for presentation, notification, analysis,
# policy testing, and enforcement. For example, an XSS vulnerability in an
# App Engine application is a finding.
# Corresponds to the JSON property `finding`
# @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1Finding]
attr_accessor :finding
# Name of the notification config that generated current notification.
# Corresponds to the JSON property `notificationConfigName`
# @return [String]
attr_accessor :notification_config_name
# Wrapper over asset object that also captures the state change for the asset
# e.g. if it was a newly created asset vs updated or deleted asset.
# Corresponds to the JSON property `temporalAsset`
# @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1TemporalAsset]
attr_accessor :temporal_asset
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@finding = args[:finding] if args.key?(:finding)
@notification_config_name = args[:notification_config_name] if args.key?(:notification_config_name)
@temporal_asset = args[:temporal_asset] if args.key?(:temporal_asset)
end
end
# Response of asset discovery run
class GoogleCloudSecuritycenterV1p1beta1RunAssetDiscoveryResponse
include Google::Apis::Core::Hashable
# The duration between asset discovery run start and end
# Corresponds to the JSON property `duration`
# @return [String]
attr_accessor :duration
# The state of an asset discovery run.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@duration = args[:duration] if args.key?(:duration)
@state = args[:state] if args.key?(:state)
end
end
# Cloud SCC managed properties. These properties are managed by Cloud SCC and
# cannot be modified by the user.
class GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties
include Google::Apis::Core::Hashable
# The user defined display name for this resource.
# Corresponds to the JSON property `resourceDisplayName`
# @return [String]
attr_accessor :resource_display_name
# The full resource name of the GCP resource this asset
# represents. This field is immutable after create time. See:
# https://cloud.google.com/apis/design/resource_names#full_resource_name
# Corresponds to the JSON property `resourceName`
# @return [String]
attr_accessor :resource_name
# Owners of the Google Cloud resource.
# Corresponds to the JSON property `resourceOwners`
# @return [Array<String>]
attr_accessor :resource_owners
# The full resource name of the immediate parent of the resource. See:
# https://cloud.google.com/apis/design/resource_names#full_resource_name
# Corresponds to the JSON property `resourceParent`
# @return [String]
attr_accessor :resource_parent
# The user defined display name for the parent of this resource.
# Corresponds to the JSON property `resourceParentDisplayName`
# @return [String]
attr_accessor :resource_parent_display_name
# The full resource name of the project the resource belongs to. See:
# https://cloud.google.com/apis/design/resource_names#full_resource_name
# Corresponds to the JSON property `resourceProject`
# @return [String]
attr_accessor :resource_project
# The user defined display name for the project of this resource.
# Corresponds to the JSON property `resourceProjectDisplayName`
# @return [String]
attr_accessor :resource_project_display_name
# The type of the GCP resource. Examples include: APPLICATION,
# PROJECT, and ORGANIZATION. This is a case insensitive field defined by
# Cloud SCC and/or the producer of the resource and is immutable
# after create time.
# Corresponds to the JSON property `resourceType`
# @return [String]
attr_accessor :resource_type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@resource_display_name = args[:resource_display_name] if args.key?(:resource_display_name)
@resource_name = args[:resource_name] if args.key?(:resource_name)
@resource_owners = args[:resource_owners] if args.key?(:resource_owners)
@resource_parent = args[:resource_parent] if args.key?(:resource_parent)
@resource_parent_display_name = args[:resource_parent_display_name] if args.key?(:resource_parent_display_name)
@resource_project = args[:resource_project] if args.key?(:resource_project)
@resource_project_display_name = args[:resource_project_display_name] if args.key?(:resource_project_display_name)
@resource_type = args[:resource_type] if args.key?(:resource_type)
end
end
# User specified security marks that are attached to the parent Cloud Security
# Command Center (Cloud SCC) resource. Security marks are scoped within a Cloud
# SCC organization -- they can be modified and viewed by all users who have
# proper permissions on the organization.
class GoogleCloudSecuritycenterV1p1beta1SecurityMarks
include Google::Apis::Core::Hashable
# Mutable user specified security marks belonging to the parent resource.
# Constraints are as follows:
# * Keys and values are treated as case insensitive
# * Keys must be between 1 - 256 characters (inclusive)
# * Keys must be letters, numbers, underscores, or dashes
# * Values have leading and trailing whitespace trimmed, remaining
# characters must be between 1 - 4096 characters (inclusive)
# Corresponds to the JSON property `marks`
# @return [Hash<String,String>]
attr_accessor :marks
# 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".
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@marks = args[:marks] if args.key?(:marks)
@name = args[:name] if args.key?(:name)
end
end
# Wrapper over asset object that also captures the state change for the asset
# e.g. if it was a newly created asset vs updated or deleted asset.
class GoogleCloudSecuritycenterV1p1beta1TemporalAsset
include Google::Apis::Core::Hashable
# Cloud Security Command Center's (Cloud SCC) representation of a Google Cloud
# Platform (GCP) resource.
# The Asset is a Cloud SCC resource that captures information about a single
# GCP resource. All modifications to an Asset are only within the context of
# Cloud SCC and don't affect the referenced GCP resource.
# Corresponds to the JSON property `asset`
# @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1Asset]
attr_accessor :asset
# Represents if the asset was created/updated/deleted.
# Corresponds to the JSON property `changeType`
# @return [String]
attr_accessor :change_type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@asset = args[:asset] if args.key?(:asset)
@change_type = args[:change_type] if args.key?(:change_type)
end
end
# Request message for grouping by assets.
class GroupAssetsRequest
include Google::Apis::Core::Hashable

View File

@ -94,6 +94,54 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1p1beta1Asset
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1p1beta1Finding
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1p1beta1IamPolicy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1p1beta1NotificationMessage
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1p1beta1RunAssetDiscoveryResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1p1beta1SecurityMarks
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1p1beta1TemporalAsset
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GroupAssetsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -359,6 +407,96 @@ module Google
end
end
class GoogleCloudSecuritycenterV1p1beta1Asset
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :create_time, as: 'createTime'
property :iam_policy, as: 'iamPolicy', class: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1IamPolicy, decorator: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1IamPolicy::Representation
property :name, as: 'name'
hash :resource_properties, as: 'resourceProperties'
property :security_center_properties, as: 'securityCenterProperties', class: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties, decorator: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties::Representation
property :security_marks, as: 'securityMarks', class: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks, decorator: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks::Representation
property :update_time, as: 'updateTime'
end
end
class GoogleCloudSecuritycenterV1p1beta1Finding
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :category, as: 'category'
property :create_time, as: 'createTime'
property :event_time, as: 'eventTime'
property :external_uri, as: 'externalUri'
property :name, as: 'name'
property :parent, as: 'parent'
property :resource_name, as: 'resourceName'
property :security_marks, as: 'securityMarks', class: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks, decorator: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks::Representation
hash :source_properties, as: 'sourceProperties'
property :state, as: 'state'
end
end
class GoogleCloudSecuritycenterV1p1beta1IamPolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :policy_blob, as: 'policyBlob'
end
end
class GoogleCloudSecuritycenterV1p1beta1NotificationMessage
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :finding, as: 'finding', class: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1Finding, decorator: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1Finding::Representation
property :notification_config_name, as: 'notificationConfigName'
property :temporal_asset, as: 'temporalAsset', class: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1TemporalAsset, decorator: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1TemporalAsset::Representation
end
end
class GoogleCloudSecuritycenterV1p1beta1RunAssetDiscoveryResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :duration, as: 'duration'
property :state, as: 'state'
end
end
class GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :resource_display_name, as: 'resourceDisplayName'
property :resource_name, as: 'resourceName'
collection :resource_owners, as: 'resourceOwners'
property :resource_parent, as: 'resourceParent'
property :resource_parent_display_name, as: 'resourceParentDisplayName'
property :resource_project, as: 'resourceProject'
property :resource_project_display_name, as: 'resourceProjectDisplayName'
property :resource_type, as: 'resourceType'
end
end
class GoogleCloudSecuritycenterV1p1beta1SecurityMarks
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :marks, as: 'marks'
property :name, as: 'name'
end
end
class GoogleCloudSecuritycenterV1p1beta1TemporalAsset
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :asset, as: 'asset', class: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1Asset, decorator: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1p1beta1Asset::Representation
property :change_type, as: 'changeType'
end
end
class GroupAssetsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -26,7 +26,7 @@ module Google
# @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview
module SecuritycenterV1beta1
VERSION = 'V1beta1'
REVISION = '20200117'
REVISION = '20200131'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -598,6 +598,399 @@ module Google
end
end
# Cloud Security Command Center's (Cloud SCC) representation of a Google Cloud
# Platform (GCP) resource.
# The Asset is a Cloud SCC resource that captures information about a single
# GCP resource. All modifications to an Asset are only within the context of
# Cloud SCC and don't affect the referenced GCP resource.
class GoogleCloudSecuritycenterV1p1beta1Asset
include Google::Apis::Core::Hashable
# The time at which the asset was created in Cloud SCC.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# IAM Policy information associated with the GCP resource described by the
# Cloud SCC asset. This information is managed and defined by the GCP
# resource and cannot be modified by the user.
# Corresponds to the JSON property `iamPolicy`
# @return [Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1p1beta1IamPolicy]
attr_accessor :iam_policy
# The relative resource name of this asset. See:
# https://cloud.google.com/apis/design/resource_names#relative_resource_name
# Example:
# "organizations/`organization_id`/assets/`asset_id`".
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Resource managed properties. These properties are managed and defined by
# the GCP resource and cannot be modified by the user.
# Corresponds to the JSON property `resourceProperties`
# @return [Hash<String,Object>]
attr_accessor :resource_properties
# Cloud SCC managed properties. These properties are managed by Cloud SCC and
# cannot be modified by the user.
# Corresponds to the JSON property `securityCenterProperties`
# @return [Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties]
attr_accessor :security_center_properties
# User specified security marks that are attached to the parent Cloud Security
# Command Center (Cloud SCC) resource. Security marks are scoped within a Cloud
# SCC organization -- they can be modified and viewed by all users who have
# proper permissions on the organization.
# Corresponds to the JSON property `securityMarks`
# @return [Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks]
attr_accessor :security_marks
# The time at which the asset was last updated, added, or deleted in Cloud
# SCC.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@create_time = args[:create_time] if args.key?(:create_time)
@iam_policy = args[:iam_policy] if args.key?(:iam_policy)
@name = args[:name] if args.key?(:name)
@resource_properties = args[:resource_properties] if args.key?(:resource_properties)
@security_center_properties = args[:security_center_properties] if args.key?(:security_center_properties)
@security_marks = args[:security_marks] if args.key?(:security_marks)
@update_time = args[:update_time] if args.key?(:update_time)
end
end
# Cloud Security Command Center (Cloud SCC) finding.
# A finding is a record of assessment data (security, risk, health or privacy)
# ingested into Cloud SCC for presentation, notification, analysis,
# policy testing, and enforcement. For example, an XSS vulnerability in an
# App Engine application is a finding.
class GoogleCloudSecuritycenterV1p1beta1Finding
include Google::Apis::Core::Hashable
# The additional taxonomy group within findings from a given source.
# This field is immutable after creation time.
# Example: "XSS_FLASH_INJECTION"
# Corresponds to the JSON property `category`
# @return [String]
attr_accessor :category
# The time at which the finding was created in Cloud SCC.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# The time at which the event took place. For example, if the finding
# represents an open firewall it would capture the time the detector believes
# the firewall became open. The accuracy is determined by the detector.
# Corresponds to the JSON property `eventTime`
# @return [String]
attr_accessor :event_time
# The URI that, if available, points to a web page outside of Cloud SCC
# where additional information about the finding can be found. This field is
# guaranteed to be either empty or a well formed URL.
# Corresponds to the JSON property `externalUri`
# @return [String]
attr_accessor :external_uri
# The relative resource name of this finding. See:
# https://cloud.google.com/apis/design/resource_names#relative_resource_name
# Example:
# "organizations/`organization_id`/sources/`source_id`/findings/`finding_id`"
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The relative resource name of the source the finding belongs to. See:
# https://cloud.google.com/apis/design/resource_names#relative_resource_name
# This field is immutable after creation time.
# For example:
# "organizations/`organization_id`/sources/`source_id`"
# Corresponds to the JSON property `parent`
# @return [String]
attr_accessor :parent
# For findings on Google Cloud Platform (GCP) resources, the full resource
# name of the GCP resource this finding is for. See:
# https://cloud.google.com/apis/design/resource_names#full_resource_name
# When the finding is for a non-GCP resource, the resourceName can be a
# customer or partner defined string.
# This field is immutable after creation time.
# Corresponds to the JSON property `resourceName`
# @return [String]
attr_accessor :resource_name
# User specified security marks that are attached to the parent Cloud Security
# Command Center (Cloud SCC) resource. Security marks are scoped within a Cloud
# SCC organization -- they can be modified and viewed by all users who have
# proper permissions on the organization.
# Corresponds to the JSON property `securityMarks`
# @return [Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks]
attr_accessor :security_marks
# Source specific properties. These properties are managed by the source
# that writes the finding. The key names in the source_properties map must be
# between 1 and 255 characters, and must start with a letter and contain
# alphanumeric characters or underscores only.
# Corresponds to the JSON property `sourceProperties`
# @return [Hash<String,Object>]
attr_accessor :source_properties
# The state of the finding.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@category = args[:category] if args.key?(:category)
@create_time = args[:create_time] if args.key?(:create_time)
@event_time = args[:event_time] if args.key?(:event_time)
@external_uri = args[:external_uri] if args.key?(:external_uri)
@name = args[:name] if args.key?(:name)
@parent = args[:parent] if args.key?(:parent)
@resource_name = args[:resource_name] if args.key?(:resource_name)
@security_marks = args[:security_marks] if args.key?(:security_marks)
@source_properties = args[:source_properties] if args.key?(:source_properties)
@state = args[:state] if args.key?(:state)
end
end
# IAM Policy information associated with the GCP resource described by the
# Cloud SCC asset. This information is managed and defined by the GCP
# resource and cannot be modified by the user.
class GoogleCloudSecuritycenterV1p1beta1IamPolicy
include Google::Apis::Core::Hashable
# The JSON representation of the Policy associated with the asset.
# See https://cloud.google.com/iam/reference/rest/v1p1beta1/Policy for
# format details.
# Corresponds to the JSON property `policyBlob`
# @return [String]
attr_accessor :policy_blob
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@policy_blob = args[:policy_blob] if args.key?(:policy_blob)
end
end
# Cloud SCC's Notification
class GoogleCloudSecuritycenterV1p1beta1NotificationMessage
include Google::Apis::Core::Hashable
# Cloud Security Command Center (Cloud SCC) finding.
# A finding is a record of assessment data (security, risk, health or privacy)
# ingested into Cloud SCC for presentation, notification, analysis,
# policy testing, and enforcement. For example, an XSS vulnerability in an
# App Engine application is a finding.
# Corresponds to the JSON property `finding`
# @return [Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1p1beta1Finding]
attr_accessor :finding
# Name of the notification config that generated current notification.
# Corresponds to the JSON property `notificationConfigName`
# @return [String]
attr_accessor :notification_config_name
# Wrapper over asset object that also captures the state change for the asset
# e.g. if it was a newly created asset vs updated or deleted asset.
# Corresponds to the JSON property `temporalAsset`
# @return [Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1p1beta1TemporalAsset]
attr_accessor :temporal_asset
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@finding = args[:finding] if args.key?(:finding)
@notification_config_name = args[:notification_config_name] if args.key?(:notification_config_name)
@temporal_asset = args[:temporal_asset] if args.key?(:temporal_asset)
end
end
# Response of asset discovery run
class GoogleCloudSecuritycenterV1p1beta1RunAssetDiscoveryResponse
include Google::Apis::Core::Hashable
# The duration between asset discovery run start and end
# Corresponds to the JSON property `duration`
# @return [String]
attr_accessor :duration
# The state of an asset discovery run.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@duration = args[:duration] if args.key?(:duration)
@state = args[:state] if args.key?(:state)
end
end
# Cloud SCC managed properties. These properties are managed by Cloud SCC and
# cannot be modified by the user.
class GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties
include Google::Apis::Core::Hashable
# The user defined display name for this resource.
# Corresponds to the JSON property `resourceDisplayName`
# @return [String]
attr_accessor :resource_display_name
# The full resource name of the GCP resource this asset
# represents. This field is immutable after create time. See:
# https://cloud.google.com/apis/design/resource_names#full_resource_name
# Corresponds to the JSON property `resourceName`
# @return [String]
attr_accessor :resource_name
# Owners of the Google Cloud resource.
# Corresponds to the JSON property `resourceOwners`
# @return [Array<String>]
attr_accessor :resource_owners
# The full resource name of the immediate parent of the resource. See:
# https://cloud.google.com/apis/design/resource_names#full_resource_name
# Corresponds to the JSON property `resourceParent`
# @return [String]
attr_accessor :resource_parent
# The user defined display name for the parent of this resource.
# Corresponds to the JSON property `resourceParentDisplayName`
# @return [String]
attr_accessor :resource_parent_display_name
# The full resource name of the project the resource belongs to. See:
# https://cloud.google.com/apis/design/resource_names#full_resource_name
# Corresponds to the JSON property `resourceProject`
# @return [String]
attr_accessor :resource_project
# The user defined display name for the project of this resource.
# Corresponds to the JSON property `resourceProjectDisplayName`
# @return [String]
attr_accessor :resource_project_display_name
# The type of the GCP resource. Examples include: APPLICATION,
# PROJECT, and ORGANIZATION. This is a case insensitive field defined by
# Cloud SCC and/or the producer of the resource and is immutable
# after create time.
# Corresponds to the JSON property `resourceType`
# @return [String]
attr_accessor :resource_type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@resource_display_name = args[:resource_display_name] if args.key?(:resource_display_name)
@resource_name = args[:resource_name] if args.key?(:resource_name)
@resource_owners = args[:resource_owners] if args.key?(:resource_owners)
@resource_parent = args[:resource_parent] if args.key?(:resource_parent)
@resource_parent_display_name = args[:resource_parent_display_name] if args.key?(:resource_parent_display_name)
@resource_project = args[:resource_project] if args.key?(:resource_project)
@resource_project_display_name = args[:resource_project_display_name] if args.key?(:resource_project_display_name)
@resource_type = args[:resource_type] if args.key?(:resource_type)
end
end
# User specified security marks that are attached to the parent Cloud Security
# Command Center (Cloud SCC) resource. Security marks are scoped within a Cloud
# SCC organization -- they can be modified and viewed by all users who have
# proper permissions on the organization.
class GoogleCloudSecuritycenterV1p1beta1SecurityMarks
include Google::Apis::Core::Hashable
# Mutable user specified security marks belonging to the parent resource.
# Constraints are as follows:
# * Keys and values are treated as case insensitive
# * Keys must be between 1 - 256 characters (inclusive)
# * Keys must be letters, numbers, underscores, or dashes
# * Values have leading and trailing whitespace trimmed, remaining
# characters must be between 1 - 4096 characters (inclusive)
# Corresponds to the JSON property `marks`
# @return [Hash<String,String>]
attr_accessor :marks
# 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".
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@marks = args[:marks] if args.key?(:marks)
@name = args[:name] if args.key?(:name)
end
end
# Wrapper over asset object that also captures the state change for the asset
# e.g. if it was a newly created asset vs updated or deleted asset.
class GoogleCloudSecuritycenterV1p1beta1TemporalAsset
include Google::Apis::Core::Hashable
# Cloud Security Command Center's (Cloud SCC) representation of a Google Cloud
# Platform (GCP) resource.
# The Asset is a Cloud SCC resource that captures information about a single
# GCP resource. All modifications to an Asset are only within the context of
# Cloud SCC and don't affect the referenced GCP resource.
# Corresponds to the JSON property `asset`
# @return [Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1p1beta1Asset]
attr_accessor :asset
# Represents if the asset was created/updated/deleted.
# Corresponds to the JSON property `changeType`
# @return [String]
attr_accessor :change_type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@asset = args[:asset] if args.key?(:asset)
@change_type = args[:change_type] if args.key?(:change_type)
end
end
# Request message for grouping by assets.
class GroupAssetsRequest
include Google::Apis::Core::Hashable

View File

@ -100,6 +100,54 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1p1beta1Asset
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1p1beta1Finding
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1p1beta1IamPolicy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1p1beta1NotificationMessage
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1p1beta1RunAssetDiscoveryResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1p1beta1SecurityMarks
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1p1beta1TemporalAsset
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GroupAssetsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -351,6 +399,96 @@ module Google
end
end
class GoogleCloudSecuritycenterV1p1beta1Asset
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :create_time, as: 'createTime'
property :iam_policy, as: 'iamPolicy', class: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1p1beta1IamPolicy, decorator: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1p1beta1IamPolicy::Representation
property :name, as: 'name'
hash :resource_properties, as: 'resourceProperties'
property :security_center_properties, as: 'securityCenterProperties', class: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties, decorator: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties::Representation
property :security_marks, as: 'securityMarks', class: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks, decorator: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks::Representation
property :update_time, as: 'updateTime'
end
end
class GoogleCloudSecuritycenterV1p1beta1Finding
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :category, as: 'category'
property :create_time, as: 'createTime'
property :event_time, as: 'eventTime'
property :external_uri, as: 'externalUri'
property :name, as: 'name'
property :parent, as: 'parent'
property :resource_name, as: 'resourceName'
property :security_marks, as: 'securityMarks', class: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks, decorator: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks::Representation
hash :source_properties, as: 'sourceProperties'
property :state, as: 'state'
end
end
class GoogleCloudSecuritycenterV1p1beta1IamPolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :policy_blob, as: 'policyBlob'
end
end
class GoogleCloudSecuritycenterV1p1beta1NotificationMessage
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :finding, as: 'finding', class: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1p1beta1Finding, decorator: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1p1beta1Finding::Representation
property :notification_config_name, as: 'notificationConfigName'
property :temporal_asset, as: 'temporalAsset', class: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1p1beta1TemporalAsset, decorator: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1p1beta1TemporalAsset::Representation
end
end
class GoogleCloudSecuritycenterV1p1beta1RunAssetDiscoveryResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :duration, as: 'duration'
property :state, as: 'state'
end
end
class GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :resource_display_name, as: 'resourceDisplayName'
property :resource_name, as: 'resourceName'
collection :resource_owners, as: 'resourceOwners'
property :resource_parent, as: 'resourceParent'
property :resource_parent_display_name, as: 'resourceParentDisplayName'
property :resource_project, as: 'resourceProject'
property :resource_project_display_name, as: 'resourceProjectDisplayName'
property :resource_type, as: 'resourceType'
end
end
class GoogleCloudSecuritycenterV1p1beta1SecurityMarks
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :marks, as: 'marks'
property :name, as: 'name'
end
end
class GoogleCloudSecuritycenterV1p1beta1TemporalAsset
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :asset, as: 'asset', class: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1p1beta1Asset, decorator: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1p1beta1Asset::Representation
property :change_type, as: 'changeType'
end
end
class GroupAssetsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -26,7 +26,7 @@ module Google
# @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview
module SecuritycenterV1p1alpha1
VERSION = 'V1p1alpha1'
REVISION = '20190603'
REVISION = '20200131'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -91,6 +91,399 @@ module Google
end
end
# Cloud Security Command Center's (Cloud SCC) representation of a Google Cloud
# Platform (GCP) resource.
# The Asset is a Cloud SCC resource that captures information about a single
# GCP resource. All modifications to an Asset are only within the context of
# Cloud SCC and don't affect the referenced GCP resource.
class GoogleCloudSecuritycenterV1p1beta1Asset
include Google::Apis::Core::Hashable
# The time at which the asset was created in Cloud SCC.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# IAM Policy information associated with the GCP resource described by the
# Cloud SCC asset. This information is managed and defined by the GCP
# resource and cannot be modified by the user.
# Corresponds to the JSON property `iamPolicy`
# @return [Google::Apis::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1p1beta1IamPolicy]
attr_accessor :iam_policy
# The relative resource name of this asset. See:
# https://cloud.google.com/apis/design/resource_names#relative_resource_name
# Example:
# "organizations/`organization_id`/assets/`asset_id`".
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Resource managed properties. These properties are managed and defined by
# the GCP resource and cannot be modified by the user.
# Corresponds to the JSON property `resourceProperties`
# @return [Hash<String,Object>]
attr_accessor :resource_properties
# Cloud SCC managed properties. These properties are managed by Cloud SCC and
# cannot be modified by the user.
# Corresponds to the JSON property `securityCenterProperties`
# @return [Google::Apis::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties]
attr_accessor :security_center_properties
# User specified security marks that are attached to the parent Cloud Security
# Command Center (Cloud SCC) resource. Security marks are scoped within a Cloud
# SCC organization -- they can be modified and viewed by all users who have
# proper permissions on the organization.
# Corresponds to the JSON property `securityMarks`
# @return [Google::Apis::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks]
attr_accessor :security_marks
# The time at which the asset was last updated, added, or deleted in Cloud
# SCC.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@create_time = args[:create_time] if args.key?(:create_time)
@iam_policy = args[:iam_policy] if args.key?(:iam_policy)
@name = args[:name] if args.key?(:name)
@resource_properties = args[:resource_properties] if args.key?(:resource_properties)
@security_center_properties = args[:security_center_properties] if args.key?(:security_center_properties)
@security_marks = args[:security_marks] if args.key?(:security_marks)
@update_time = args[:update_time] if args.key?(:update_time)
end
end
# Cloud Security Command Center (Cloud SCC) finding.
# A finding is a record of assessment data (security, risk, health or privacy)
# ingested into Cloud SCC for presentation, notification, analysis,
# policy testing, and enforcement. For example, an XSS vulnerability in an
# App Engine application is a finding.
class GoogleCloudSecuritycenterV1p1beta1Finding
include Google::Apis::Core::Hashable
# The additional taxonomy group within findings from a given source.
# This field is immutable after creation time.
# Example: "XSS_FLASH_INJECTION"
# Corresponds to the JSON property `category`
# @return [String]
attr_accessor :category
# The time at which the finding was created in Cloud SCC.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# The time at which the event took place. For example, if the finding
# represents an open firewall it would capture the time the detector believes
# the firewall became open. The accuracy is determined by the detector.
# Corresponds to the JSON property `eventTime`
# @return [String]
attr_accessor :event_time
# The URI that, if available, points to a web page outside of Cloud SCC
# where additional information about the finding can be found. This field is
# guaranteed to be either empty or a well formed URL.
# Corresponds to the JSON property `externalUri`
# @return [String]
attr_accessor :external_uri
# The relative resource name of this finding. See:
# https://cloud.google.com/apis/design/resource_names#relative_resource_name
# Example:
# "organizations/`organization_id`/sources/`source_id`/findings/`finding_id`"
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The relative resource name of the source the finding belongs to. See:
# https://cloud.google.com/apis/design/resource_names#relative_resource_name
# This field is immutable after creation time.
# For example:
# "organizations/`organization_id`/sources/`source_id`"
# Corresponds to the JSON property `parent`
# @return [String]
attr_accessor :parent
# For findings on Google Cloud Platform (GCP) resources, the full resource
# name of the GCP resource this finding is for. See:
# https://cloud.google.com/apis/design/resource_names#full_resource_name
# When the finding is for a non-GCP resource, the resourceName can be a
# customer or partner defined string.
# This field is immutable after creation time.
# Corresponds to the JSON property `resourceName`
# @return [String]
attr_accessor :resource_name
# User specified security marks that are attached to the parent Cloud Security
# Command Center (Cloud SCC) resource. Security marks are scoped within a Cloud
# SCC organization -- they can be modified and viewed by all users who have
# proper permissions on the organization.
# Corresponds to the JSON property `securityMarks`
# @return [Google::Apis::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks]
attr_accessor :security_marks
# Source specific properties. These properties are managed by the source
# that writes the finding. The key names in the source_properties map must be
# between 1 and 255 characters, and must start with a letter and contain
# alphanumeric characters or underscores only.
# Corresponds to the JSON property `sourceProperties`
# @return [Hash<String,Object>]
attr_accessor :source_properties
# The state of the finding.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@category = args[:category] if args.key?(:category)
@create_time = args[:create_time] if args.key?(:create_time)
@event_time = args[:event_time] if args.key?(:event_time)
@external_uri = args[:external_uri] if args.key?(:external_uri)
@name = args[:name] if args.key?(:name)
@parent = args[:parent] if args.key?(:parent)
@resource_name = args[:resource_name] if args.key?(:resource_name)
@security_marks = args[:security_marks] if args.key?(:security_marks)
@source_properties = args[:source_properties] if args.key?(:source_properties)
@state = args[:state] if args.key?(:state)
end
end
# IAM Policy information associated with the GCP resource described by the
# Cloud SCC asset. This information is managed and defined by the GCP
# resource and cannot be modified by the user.
class GoogleCloudSecuritycenterV1p1beta1IamPolicy
include Google::Apis::Core::Hashable
# The JSON representation of the Policy associated with the asset.
# See https://cloud.google.com/iam/reference/rest/v1p1beta1/Policy for
# format details.
# Corresponds to the JSON property `policyBlob`
# @return [String]
attr_accessor :policy_blob
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@policy_blob = args[:policy_blob] if args.key?(:policy_blob)
end
end
# Cloud SCC's Notification
class GoogleCloudSecuritycenterV1p1beta1NotificationMessage
include Google::Apis::Core::Hashable
# Cloud Security Command Center (Cloud SCC) finding.
# A finding is a record of assessment data (security, risk, health or privacy)
# ingested into Cloud SCC for presentation, notification, analysis,
# policy testing, and enforcement. For example, an XSS vulnerability in an
# App Engine application is a finding.
# Corresponds to the JSON property `finding`
# @return [Google::Apis::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1p1beta1Finding]
attr_accessor :finding
# Name of the notification config that generated current notification.
# Corresponds to the JSON property `notificationConfigName`
# @return [String]
attr_accessor :notification_config_name
# Wrapper over asset object that also captures the state change for the asset
# e.g. if it was a newly created asset vs updated or deleted asset.
# Corresponds to the JSON property `temporalAsset`
# @return [Google::Apis::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1p1beta1TemporalAsset]
attr_accessor :temporal_asset
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@finding = args[:finding] if args.key?(:finding)
@notification_config_name = args[:notification_config_name] if args.key?(:notification_config_name)
@temporal_asset = args[:temporal_asset] if args.key?(:temporal_asset)
end
end
# Response of asset discovery run
class GoogleCloudSecuritycenterV1p1beta1RunAssetDiscoveryResponse
include Google::Apis::Core::Hashable
# The duration between asset discovery run start and end
# Corresponds to the JSON property `duration`
# @return [String]
attr_accessor :duration
# The state of an asset discovery run.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@duration = args[:duration] if args.key?(:duration)
@state = args[:state] if args.key?(:state)
end
end
# Cloud SCC managed properties. These properties are managed by Cloud SCC and
# cannot be modified by the user.
class GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties
include Google::Apis::Core::Hashable
# The user defined display name for this resource.
# Corresponds to the JSON property `resourceDisplayName`
# @return [String]
attr_accessor :resource_display_name
# The full resource name of the GCP resource this asset
# represents. This field is immutable after create time. See:
# https://cloud.google.com/apis/design/resource_names#full_resource_name
# Corresponds to the JSON property `resourceName`
# @return [String]
attr_accessor :resource_name
# Owners of the Google Cloud resource.
# Corresponds to the JSON property `resourceOwners`
# @return [Array<String>]
attr_accessor :resource_owners
# The full resource name of the immediate parent of the resource. See:
# https://cloud.google.com/apis/design/resource_names#full_resource_name
# Corresponds to the JSON property `resourceParent`
# @return [String]
attr_accessor :resource_parent
# The user defined display name for the parent of this resource.
# Corresponds to the JSON property `resourceParentDisplayName`
# @return [String]
attr_accessor :resource_parent_display_name
# The full resource name of the project the resource belongs to. See:
# https://cloud.google.com/apis/design/resource_names#full_resource_name
# Corresponds to the JSON property `resourceProject`
# @return [String]
attr_accessor :resource_project
# The user defined display name for the project of this resource.
# Corresponds to the JSON property `resourceProjectDisplayName`
# @return [String]
attr_accessor :resource_project_display_name
# The type of the GCP resource. Examples include: APPLICATION,
# PROJECT, and ORGANIZATION. This is a case insensitive field defined by
# Cloud SCC and/or the producer of the resource and is immutable
# after create time.
# Corresponds to the JSON property `resourceType`
# @return [String]
attr_accessor :resource_type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@resource_display_name = args[:resource_display_name] if args.key?(:resource_display_name)
@resource_name = args[:resource_name] if args.key?(:resource_name)
@resource_owners = args[:resource_owners] if args.key?(:resource_owners)
@resource_parent = args[:resource_parent] if args.key?(:resource_parent)
@resource_parent_display_name = args[:resource_parent_display_name] if args.key?(:resource_parent_display_name)
@resource_project = args[:resource_project] if args.key?(:resource_project)
@resource_project_display_name = args[:resource_project_display_name] if args.key?(:resource_project_display_name)
@resource_type = args[:resource_type] if args.key?(:resource_type)
end
end
# User specified security marks that are attached to the parent Cloud Security
# Command Center (Cloud SCC) resource. Security marks are scoped within a Cloud
# SCC organization -- they can be modified and viewed by all users who have
# proper permissions on the organization.
class GoogleCloudSecuritycenterV1p1beta1SecurityMarks
include Google::Apis::Core::Hashable
# Mutable user specified security marks belonging to the parent resource.
# Constraints are as follows:
# * Keys and values are treated as case insensitive
# * Keys must be between 1 - 256 characters (inclusive)
# * Keys must be letters, numbers, underscores, or dashes
# * Values have leading and trailing whitespace trimmed, remaining
# characters must be between 1 - 4096 characters (inclusive)
# Corresponds to the JSON property `marks`
# @return [Hash<String,String>]
attr_accessor :marks
# 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".
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@marks = args[:marks] if args.key?(:marks)
@name = args[:name] if args.key?(:name)
end
end
# Wrapper over asset object that also captures the state change for the asset
# e.g. if it was a newly created asset vs updated or deleted asset.
class GoogleCloudSecuritycenterV1p1beta1TemporalAsset
include Google::Apis::Core::Hashable
# Cloud Security Command Center's (Cloud SCC) representation of a Google Cloud
# Platform (GCP) resource.
# The Asset is a Cloud SCC resource that captures information about a single
# GCP resource. All modifications to an Asset are only within the context of
# Cloud SCC and don't affect the referenced GCP resource.
# Corresponds to the JSON property `asset`
# @return [Google::Apis::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1p1beta1Asset]
attr_accessor :asset
# Represents if the asset was created/updated/deleted.
# Corresponds to the JSON property `changeType`
# @return [String]
attr_accessor :change_type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@asset = args[:asset] if args.key?(:asset)
@change_type = args[:change_type] if args.key?(:change_type)
end
end
# The response message for Operations.ListOperations.
class ListOperationsResponse
include Google::Apis::Core::Hashable

View File

@ -40,6 +40,54 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1p1beta1Asset
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1p1beta1Finding
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1p1beta1IamPolicy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1p1beta1NotificationMessage
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1p1beta1RunAssetDiscoveryResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1p1beta1SecurityMarks
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1p1beta1TemporalAsset
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListOperationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -80,6 +128,96 @@ module Google
end
end
class GoogleCloudSecuritycenterV1p1beta1Asset
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :create_time, as: 'createTime'
property :iam_policy, as: 'iamPolicy', class: Google::Apis::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1p1beta1IamPolicy, decorator: Google::Apis::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1p1beta1IamPolicy::Representation
property :name, as: 'name'
hash :resource_properties, as: 'resourceProperties'
property :security_center_properties, as: 'securityCenterProperties', class: Google::Apis::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties, decorator: Google::Apis::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties::Representation
property :security_marks, as: 'securityMarks', class: Google::Apis::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks, decorator: Google::Apis::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks::Representation
property :update_time, as: 'updateTime'
end
end
class GoogleCloudSecuritycenterV1p1beta1Finding
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :category, as: 'category'
property :create_time, as: 'createTime'
property :event_time, as: 'eventTime'
property :external_uri, as: 'externalUri'
property :name, as: 'name'
property :parent, as: 'parent'
property :resource_name, as: 'resourceName'
property :security_marks, as: 'securityMarks', class: Google::Apis::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks, decorator: Google::Apis::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks::Representation
hash :source_properties, as: 'sourceProperties'
property :state, as: 'state'
end
end
class GoogleCloudSecuritycenterV1p1beta1IamPolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :policy_blob, as: 'policyBlob'
end
end
class GoogleCloudSecuritycenterV1p1beta1NotificationMessage
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :finding, as: 'finding', class: Google::Apis::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1p1beta1Finding, decorator: Google::Apis::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1p1beta1Finding::Representation
property :notification_config_name, as: 'notificationConfigName'
property :temporal_asset, as: 'temporalAsset', class: Google::Apis::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1p1beta1TemporalAsset, decorator: Google::Apis::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1p1beta1TemporalAsset::Representation
end
end
class GoogleCloudSecuritycenterV1p1beta1RunAssetDiscoveryResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :duration, as: 'duration'
property :state, as: 'state'
end
end
class GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :resource_display_name, as: 'resourceDisplayName'
property :resource_name, as: 'resourceName'
collection :resource_owners, as: 'resourceOwners'
property :resource_parent, as: 'resourceParent'
property :resource_parent_display_name, as: 'resourceParentDisplayName'
property :resource_project, as: 'resourceProject'
property :resource_project_display_name, as: 'resourceProjectDisplayName'
property :resource_type, as: 'resourceType'
end
end
class GoogleCloudSecuritycenterV1p1beta1SecurityMarks
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :marks, as: 'marks'
property :name, as: 'name'
end
end
class GoogleCloudSecuritycenterV1p1beta1TemporalAsset
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :asset, as: 'asset', class: Google::Apis::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1p1beta1Asset, decorator: Google::Apis::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1p1beta1Asset::Representation
property :change_type, as: 'changeType'
end
end
class ListOperationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -26,7 +26,7 @@ module Google
# @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview
module SecuritycenterV1p1beta1
VERSION = 'V1p1beta1'
REVISION = '20200102'
REVISION = '20200131'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

File diff suppressed because it is too large Load Diff

View File

@ -22,12 +22,54 @@ module Google
module Apis
module SecuritycenterV1p1beta1
class AssetDiscoveryConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AuditConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AuditLogConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Binding
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Empty
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Expr
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GetIamPolicyRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GetPolicyOptions
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -40,30 +82,270 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1p1beta1Asset
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1p1beta1Finding
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1p1beta1IamPolicy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1p1beta1NotificationMessage
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1p1beta1RunAssetDiscoveryResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1p1beta1SecurityMarks
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudSecuritycenterV1p1beta1TemporalAsset
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GroupAssetsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GroupAssetsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GroupFindingsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GroupFindingsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GroupResult
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListAssetsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListAssetsResult
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListFindingsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListFindingsResult
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListNotificationConfigsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListOperationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListSourcesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class NotificationConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Operation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrganizationSettings
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Policy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Resource
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RunAssetDiscoveryRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SetFindingStateRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SetIamPolicyRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Source
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Status
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class StreamingConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TestIamPermissionsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TestIamPermissionsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AssetDiscoveryConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :inclusion_mode, as: 'inclusionMode'
collection :project_ids, as: 'projectIds'
end
end
class AuditConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::SecuritycenterV1p1beta1::AuditLogConfig, decorator: Google::Apis::SecuritycenterV1p1beta1::AuditLogConfig::Representation
property :service, as: 'service'
end
end
class AuditLogConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :exempted_members, as: 'exemptedMembers'
property :log_type, as: 'logType'
end
end
class Binding
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :condition, as: 'condition', class: Google::Apis::SecuritycenterV1p1beta1::Expr, decorator: Google::Apis::SecuritycenterV1p1beta1::Expr::Representation
collection :members, as: 'members'
property :role, as: 'role'
end
end
class Empty
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class Expr
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :expression, as: 'expression'
property :location, as: 'location'
property :title, as: 'title'
end
end
class GetIamPolicyRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :options, as: 'options', class: Google::Apis::SecuritycenterV1p1beta1::GetPolicyOptions, decorator: Google::Apis::SecuritycenterV1p1beta1::GetPolicyOptions::Representation
end
end
class GetPolicyOptions
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :requested_policy_version, as: 'requestedPolicyVersion'
end
end
class GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -80,6 +362,201 @@ module Google
end
end
class GoogleCloudSecuritycenterV1p1beta1Asset
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :create_time, as: 'createTime'
property :iam_policy, as: 'iamPolicy', class: Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1IamPolicy, decorator: Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1IamPolicy::Representation
property :name, as: 'name'
hash :resource_properties, as: 'resourceProperties'
property :security_center_properties, as: 'securityCenterProperties', class: Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties, decorator: Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties::Representation
property :security_marks, as: 'securityMarks', class: Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks, decorator: Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks::Representation
property :update_time, as: 'updateTime'
end
end
class GoogleCloudSecuritycenterV1p1beta1Finding
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :category, as: 'category'
property :create_time, as: 'createTime'
property :event_time, as: 'eventTime'
property :external_uri, as: 'externalUri'
property :name, as: 'name'
property :parent, as: 'parent'
property :resource_name, as: 'resourceName'
property :security_marks, as: 'securityMarks', class: Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks, decorator: Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks::Representation
hash :source_properties, as: 'sourceProperties'
property :state, as: 'state'
end
end
class GoogleCloudSecuritycenterV1p1beta1IamPolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :policy_blob, as: 'policyBlob'
end
end
class GoogleCloudSecuritycenterV1p1beta1NotificationMessage
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :finding, as: 'finding', class: Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1Finding, decorator: Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1Finding::Representation
property :notification_config_name, as: 'notificationConfigName'
property :temporal_asset, as: 'temporalAsset', class: Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1TemporalAsset, decorator: Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1TemporalAsset::Representation
end
end
class GoogleCloudSecuritycenterV1p1beta1RunAssetDiscoveryResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :duration, as: 'duration'
property :state, as: 'state'
end
end
class GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :resource_display_name, as: 'resourceDisplayName'
property :resource_name, as: 'resourceName'
collection :resource_owners, as: 'resourceOwners'
property :resource_parent, as: 'resourceParent'
property :resource_parent_display_name, as: 'resourceParentDisplayName'
property :resource_project, as: 'resourceProject'
property :resource_project_display_name, as: 'resourceProjectDisplayName'
property :resource_type, as: 'resourceType'
end
end
class GoogleCloudSecuritycenterV1p1beta1SecurityMarks
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :marks, as: 'marks'
property :name, as: 'name'
end
end
class GoogleCloudSecuritycenterV1p1beta1TemporalAsset
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :asset, as: 'asset', class: Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1Asset, decorator: Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1Asset::Representation
property :change_type, as: 'changeType'
end
end
class GroupAssetsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :compare_duration, as: 'compareDuration'
property :filter, as: 'filter'
property :group_by, as: 'groupBy'
property :page_size, as: 'pageSize'
property :page_token, as: 'pageToken'
property :read_time, as: 'readTime'
end
end
class GroupAssetsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :group_by_results, as: 'groupByResults', class: Google::Apis::SecuritycenterV1p1beta1::GroupResult, decorator: Google::Apis::SecuritycenterV1p1beta1::GroupResult::Representation
property :next_page_token, as: 'nextPageToken'
property :read_time, as: 'readTime'
property :total_size, as: 'totalSize'
end
end
class GroupFindingsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :compare_duration, as: 'compareDuration'
property :filter, as: 'filter'
property :group_by, as: 'groupBy'
property :page_size, as: 'pageSize'
property :page_token, as: 'pageToken'
property :read_time, as: 'readTime'
end
end
class GroupFindingsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :group_by_results, as: 'groupByResults', class: Google::Apis::SecuritycenterV1p1beta1::GroupResult, decorator: Google::Apis::SecuritycenterV1p1beta1::GroupResult::Representation
property :next_page_token, as: 'nextPageToken'
property :read_time, as: 'readTime'
property :total_size, as: 'totalSize'
end
end
class GroupResult
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :count, :numeric_string => true, as: 'count'
hash :properties, as: 'properties'
end
end
class ListAssetsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :list_assets_results, as: 'listAssetsResults', class: Google::Apis::SecuritycenterV1p1beta1::ListAssetsResult, decorator: Google::Apis::SecuritycenterV1p1beta1::ListAssetsResult::Representation
property :next_page_token, as: 'nextPageToken'
property :read_time, as: 'readTime'
property :total_size, as: 'totalSize'
end
end
class ListAssetsResult
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :asset, as: 'asset', class: Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1Asset, decorator: Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1Asset::Representation
property :state_change, as: 'stateChange'
end
end
class ListFindingsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :list_findings_results, as: 'listFindingsResults', class: Google::Apis::SecuritycenterV1p1beta1::ListFindingsResult, decorator: Google::Apis::SecuritycenterV1p1beta1::ListFindingsResult::Representation
property :next_page_token, as: 'nextPageToken'
property :read_time, as: 'readTime'
property :total_size, as: 'totalSize'
end
end
class ListFindingsResult
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :finding, as: 'finding', class: Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1Finding, decorator: Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1Finding::Representation
property :resource, as: 'resource', class: Google::Apis::SecuritycenterV1p1beta1::Resource, decorator: Google::Apis::SecuritycenterV1p1beta1::Resource::Representation
property :state_change, as: 'stateChange'
end
end
class ListNotificationConfigsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :notification_configs, as: 'notificationConfigs', class: Google::Apis::SecuritycenterV1p1beta1::NotificationConfig, decorator: Google::Apis::SecuritycenterV1p1beta1::NotificationConfig::Representation
end
end
class ListOperationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -89,6 +566,28 @@ module Google
end
end
class ListSourcesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :sources, as: 'sources', class: Google::Apis::SecuritycenterV1p1beta1::Source, decorator: Google::Apis::SecuritycenterV1p1beta1::Source::Representation
end
end
class NotificationConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :event_type, as: 'eventType'
property :name, as: 'name'
property :pubsub_topic, as: 'pubsubTopic'
property :service_account, as: 'serviceAccount'
property :streaming_config, as: 'streamingConfig', class: Google::Apis::SecuritycenterV1p1beta1::StreamingConfig, decorator: Google::Apis::SecuritycenterV1p1beta1::StreamingConfig::Representation
end
end
class Operation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -101,6 +600,71 @@ module Google
end
end
class OrganizationSettings
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :asset_discovery_config, as: 'assetDiscoveryConfig', class: Google::Apis::SecuritycenterV1p1beta1::AssetDiscoveryConfig, decorator: Google::Apis::SecuritycenterV1p1beta1::AssetDiscoveryConfig::Representation
property :enable_asset_discovery, as: 'enableAssetDiscovery'
property :name, as: 'name'
end
end
class Policy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :audit_configs, as: 'auditConfigs', class: Google::Apis::SecuritycenterV1p1beta1::AuditConfig, decorator: Google::Apis::SecuritycenterV1p1beta1::AuditConfig::Representation
collection :bindings, as: 'bindings', class: Google::Apis::SecuritycenterV1p1beta1::Binding, decorator: Google::Apis::SecuritycenterV1p1beta1::Binding::Representation
property :etag, :base64 => true, as: 'etag'
property :version, as: 'version'
end
end
class Resource
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :parent_display_name, as: 'parentDisplayName'
property :parent_name, as: 'parentName'
property :project_display_name, as: 'projectDisplayName'
property :project_name, as: 'projectName'
end
end
class RunAssetDiscoveryRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class SetFindingStateRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :start_time, as: 'startTime'
property :state, as: 'state'
end
end
class SetIamPolicyRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :policy, as: 'policy', class: Google::Apis::SecuritycenterV1p1beta1::Policy, decorator: Google::Apis::SecuritycenterV1p1beta1::Policy::Representation
property :update_mask, as: 'updateMask'
end
end
class Source
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :display_name, as: 'displayName'
property :name, as: 'name'
end
end
class Status
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -109,6 +673,27 @@ module Google
property :message, as: 'message'
end
end
class StreamingConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :filter, as: 'filter'
end
end
class TestIamPermissionsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :permissions, as: 'permissions'
end
end
class TestIamPermissionsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :permissions, as: 'permissions'
end
end
end
end
end

File diff suppressed because it is too large Load Diff