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.
909 910 911 |
# File 'lib/google/apis/certificatemanager_v1/classes.rb', line 909 def initialize(**args) update!(**args) end |
Instance Attribute Details
#certificates ⇒ Fixnum
The count of certificates.
Corresponds to the JSON property certificates
888 889 890 |
# File 'lib/google/apis/certificatemanager_v1/classes.rb', line 888 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
901 902 903 |
# File 'lib/google/apis/certificatemanager_v1/classes.rb', line 901 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
907 908 909 |
# File 'lib/google/apis/certificatemanager_v1/classes.rb', line 907 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
914 915 916 917 918 |
# File 'lib/google/apis/certificatemanager_v1/classes.rb', line 914 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 |