Class: Google::Apis::CertificatemanagerV1::ResourcesCount

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/certificatemanager_v1/classes.rb,
lib/google/apis/certificatemanager_v1/representations.rb,
lib/google/apis/certificatemanager_v1/representations.rb

Overview

ResourcesCount represents the resource that stores aggregated project's info in the given location, e.g.: total number of certificates assigned to the project.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ResourcesCount

Returns a new instance of ResourcesCount.



907
908
909
# File 'lib/google/apis/certificatemanager_v1/classes.rb', line 907

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#certificatesFixnum

The count of certificates. Corresponds to the JSON property certificates

Returns:

  • (Fixnum)


886
887
888
# File 'lib/google/apis/certificatemanager_v1/classes.rb', line 886

def certificates
  @certificates
end

#compute_timeString

Required. Input only. The time of the computation. The field is input only, used in Create and Update calls. For Update call, new values of selected resources are set if their compute_time is younger than the persisted ones, e. g.: If you support 3 types of resources: A, B and C, and you have: 'A' resource count computed at timestamp = 3 'B' resource count computed at timestamp = 10 'C' resource count computed at timestamp = 5 And you're going to update all of them with compute_time = 8, only 'A' and 'C' will be updated, as 'B' already has fresher data. For Get call a ResourcesCount instance contains the freshest values for every type. Corresponds to the JSON property computeTime

Returns:

  • (String)


899
900
901
# File 'lib/google/apis/certificatemanager_v1/classes.rb', line 899

def compute_time
  @compute_time
end

#nameString

The singleton resource of the resources count. Must be in the format projects/ */locations/*/resourcesCounts/single. Corresponds to the JSON property name

Returns:

  • (String)


905
906
907
# File 'lib/google/apis/certificatemanager_v1/classes.rb', line 905

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



912
913
914
915
916
# File 'lib/google/apis/certificatemanager_v1/classes.rb', line 912

def update!(**args)
  @certificates = args[:certificates] if args.key?(:certificates)
  @compute_time = args[:compute_time] if args.key?(:compute_time)
  @name = args[:name] if args.key?(:name)
end