Class: Google::Apis::CertificatemanagerV1::ResourcesCount
- Inherits:
-
Object
- Object
- Google::Apis::CertificatemanagerV1::ResourcesCount
- 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
-
#certificates ⇒ Fixnum
The count of certificates.
-
#compute_time ⇒ String
Required.
-
#name ⇒ String
The singleton resource of the resources count.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ResourcesCount
constructor
A new instance of ResourcesCount.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#certificates ⇒ Fixnum
The count of certificates.
Corresponds to the JSON property certificates
886 887 888 |
# File 'lib/google/apis/certificatemanager_v1/classes.rb', line 886 def certificates @certificates end |
#compute_time ⇒ String
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
899 900 901 |
# File 'lib/google/apis/certificatemanager_v1/classes.rb', line 899 def compute_time @compute_time end |
#name ⇒ String
The singleton resource of the resources count. Must be in the format projects/
*/locations/*/resourcesCounts/single.
Corresponds to the JSON property name
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 |