Class: Google::Cloud::SecurityCenter::V1::ListAssetsResponse

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/securitycenter/v1/securitycenter_service.rb

Overview

Response message for listing assets.

Defined Under Namespace

Classes: ListAssetsResult

Instance Attribute Summary collapse

Instance Attribute Details

#list_assets_results::Array<::Google::Cloud::SecurityCenter::V1::ListAssetsResponse::ListAssetsResult>

Returns Assets matching the list request.

Returns:



1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
# File 'proto_docs/google/cloud/securitycenter/v1/securitycenter_service.rb', line 1255

class ListAssetsResponse
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Result containing the Asset and its State.
  # @!attribute [rw] asset
  #   @return [::Google::Cloud::SecurityCenter::V1::Asset]
  #     Asset matching the search request.
  # @!attribute [rw] state_change
  #   @return [::Google::Cloud::SecurityCenter::V1::ListAssetsResponse::ListAssetsResult::StateChange]
  #     State change of the asset between the points in time.
  class ListAssetsResult
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # The change in state of the asset.
    #
    # When querying across two points in time this describes
    # the change between the two points: ADDED, REMOVED, or ACTIVE.
    # If there was no compare_duration supplied in the request the state change
    # will be: UNUSED
    module StateChange
      # State change is unused, this is the canonical default for this enum.
      UNUSED = 0

      # Asset was added between the points in time.
      ADDED = 1

      # Asset was removed between the points in time.
      REMOVED = 2

      # Asset was present at both point(s) in time.
      ACTIVE = 3
    end
  end
end

#next_page_token::String

Returns Token to retrieve the next page of results, or empty if there are no more results.

Returns:

  • (::String)

    Token to retrieve the next page of results, or empty if there are no more results.



1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
# File 'proto_docs/google/cloud/securitycenter/v1/securitycenter_service.rb', line 1255

class ListAssetsResponse
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Result containing the Asset and its State.
  # @!attribute [rw] asset
  #   @return [::Google::Cloud::SecurityCenter::V1::Asset]
  #     Asset matching the search request.
  # @!attribute [rw] state_change
  #   @return [::Google::Cloud::SecurityCenter::V1::ListAssetsResponse::ListAssetsResult::StateChange]
  #     State change of the asset between the points in time.
  class ListAssetsResult
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # The change in state of the asset.
    #
    # When querying across two points in time this describes
    # the change between the two points: ADDED, REMOVED, or ACTIVE.
    # If there was no compare_duration supplied in the request the state change
    # will be: UNUSED
    module StateChange
      # State change is unused, this is the canonical default for this enum.
      UNUSED = 0

      # Asset was added between the points in time.
      ADDED = 1

      # Asset was removed between the points in time.
      REMOVED = 2

      # Asset was present at both point(s) in time.
      ACTIVE = 3
    end
  end
end

#read_time::Google::Protobuf::Timestamp

Returns Time used for executing the list request.

Returns:



1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
# File 'proto_docs/google/cloud/securitycenter/v1/securitycenter_service.rb', line 1255

class ListAssetsResponse
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Result containing the Asset and its State.
  # @!attribute [rw] asset
  #   @return [::Google::Cloud::SecurityCenter::V1::Asset]
  #     Asset matching the search request.
  # @!attribute [rw] state_change
  #   @return [::Google::Cloud::SecurityCenter::V1::ListAssetsResponse::ListAssetsResult::StateChange]
  #     State change of the asset between the points in time.
  class ListAssetsResult
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # The change in state of the asset.
    #
    # When querying across two points in time this describes
    # the change between the two points: ADDED, REMOVED, or ACTIVE.
    # If there was no compare_duration supplied in the request the state change
    # will be: UNUSED
    module StateChange
      # State change is unused, this is the canonical default for this enum.
      UNUSED = 0

      # Asset was added between the points in time.
      ADDED = 1

      # Asset was removed between the points in time.
      REMOVED = 2

      # Asset was present at both point(s) in time.
      ACTIVE = 3
    end
  end
end

#total_size::Integer

Returns The total number of assets matching the query.

Returns:

  • (::Integer)

    The total number of assets matching the query.



1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
# File 'proto_docs/google/cloud/securitycenter/v1/securitycenter_service.rb', line 1255

class ListAssetsResponse
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Result containing the Asset and its State.
  # @!attribute [rw] asset
  #   @return [::Google::Cloud::SecurityCenter::V1::Asset]
  #     Asset matching the search request.
  # @!attribute [rw] state_change
  #   @return [::Google::Cloud::SecurityCenter::V1::ListAssetsResponse::ListAssetsResult::StateChange]
  #     State change of the asset between the points in time.
  class ListAssetsResult
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # The change in state of the asset.
    #
    # When querying across two points in time this describes
    # the change between the two points: ADDED, REMOVED, or ACTIVE.
    # If there was no compare_duration supplied in the request the state change
    # will be: UNUSED
    module StateChange
      # State change is unused, this is the canonical default for this enum.
      UNUSED = 0

      # Asset was added between the points in time.
      ADDED = 1

      # Asset was removed between the points in time.
      REMOVED = 2

      # Asset was present at both point(s) in time.
      ACTIVE = 3
    end
  end
end