generated/google/apis/securitycenter_v1p1alpha1/classes.rb in google-api-client-0.40.1 vs generated/google/apis/securitycenter_v1p1alpha1/classes.rb in google-api-client-0.40.2
- old
+ new
@@ -160,21 +160,71 @@
# Name of the notification config that generated current notification.
# Corresponds to the JSON property `notificationConfigName`
# @return [String]
attr_accessor :notification_config_name
+ # Information related to the Google Cloud resource.
+ # Corresponds to the JSON property `resource`
+ # @return [Google::Apis::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1Resource]
+ attr_accessor :resource
+
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)
+ @resource = args[:resource] if args.key?(:resource)
end
end
+ # Information related to the Google Cloud resource.
+ class GoogleCloudSecuritycenterV1Resource
+ include Google::Apis::Core::Hashable
+
+ # The full resource name of the resource. See:
+ # https://cloud.google.com/apis/design/resource_names#full_resource_name
+ # Corresponds to the JSON property `name`
+ # @return [String]
+ attr_accessor :name
+
+ # The full resource name of resource's parent.
+ # Corresponds to the JSON property `parent`
+ # @return [String]
+ attr_accessor :parent
+
+ # The human readable name of resource's parent.
+ # Corresponds to the JSON property `parentDisplayName`
+ # @return [String]
+ attr_accessor :parent_display_name
+
+ # The full resource name of project that the resource belongs to.
+ # Corresponds to the JSON property `project`
+ # @return [String]
+ attr_accessor :project
+
+ # The human readable name of project that the resource belongs to.
+ # Corresponds to the JSON property `projectDisplayName`
+ # @return [String]
+ attr_accessor :project_display_name
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @name = args[:name] if args.key?(:name)
+ @parent = args[:parent] if args.key?(:parent)
+ @parent_display_name = args[:parent_display_name] if args.key?(:parent_display_name)
+ @project = args[:project] if args.key?(:project)
+ @project_display_name = args[:project_display_name] if args.key?(:project_display_name)
+ end
+ end
+
# Response of asset discovery run
class GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse
include Google::Apis::Core::Hashable
# The duration between asset discovery run start and end
@@ -436,10 +486,15 @@
# Name of the notification config that generated current notification.
# Corresponds to the JSON property `notificationConfigName`
# @return [String]
attr_accessor :notification_config_name
+ # Information related to the Google Cloud resource.
+ # Corresponds to the JSON property `resource`
+ # @return [Google::Apis::SecuritycenterV1p1alpha1::GoogleCloudSecuritycenterV1p1beta1Resource]
+ attr_accessor :resource
+
# 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
@@ -450,10 +505,55 @@
# 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)
+ @resource = args[:resource] if args.key?(:resource)
@temporal_asset = args[:temporal_asset] if args.key?(:temporal_asset)
+ end
+ end
+
+ # Information related to the Google Cloud resource.
+ class GoogleCloudSecuritycenterV1p1beta1Resource
+ include Google::Apis::Core::Hashable
+
+ # The full resource name of the resource. See:
+ # https://cloud.google.com/apis/design/resource_names#full_resource_name
+ # Corresponds to the JSON property `name`
+ # @return [String]
+ attr_accessor :name
+
+ # The full resource name of resource's parent.
+ # Corresponds to the JSON property `parent`
+ # @return [String]
+ attr_accessor :parent
+
+ # The human readable name of resource's parent.
+ # Corresponds to the JSON property `parentDisplayName`
+ # @return [String]
+ attr_accessor :parent_display_name
+
+ # The full resource name of project that the resource belongs to.
+ # Corresponds to the JSON property `project`
+ # @return [String]
+ attr_accessor :project
+
+ # The human readable name of project that the resource belongs to.
+ # Corresponds to the JSON property `projectDisplayName`
+ # @return [String]
+ attr_accessor :project_display_name
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @name = args[:name] if args.key?(:name)
+ @parent = args[:parent] if args.key?(:parent)
+ @parent_display_name = args[:parent_display_name] if args.key?(:parent_display_name)
+ @project = args[:project] if args.key?(:project)
+ @project_display_name = args[:project_display_name] if args.key?(:project_display_name)
end
end
# Response of asset discovery run
class GoogleCloudSecuritycenterV1p1beta1RunAssetDiscoveryResponse