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
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.
905 906 907 |
# File 'lib/google/apis/certificatemanager_v1/classes.rb', line 905 def initialize(**args) update!(**args) end |
Instance Attribute Details
#certificates ⇒ Fixnum
The count of certificates.
Corresponds to the JSON property certificates
884 885 886 |
# File 'lib/google/apis/certificatemanager_v1/classes.rb', line 884 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
897 898 899 |
# File 'lib/google/apis/certificatemanager_v1/classes.rb', line 897 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
903 904 905 |
# File 'lib/google/apis/certificatemanager_v1/classes.rb', line 903 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
910 911 912 913 914 |
# File 'lib/google/apis/certificatemanager_v1/classes.rb', line 910 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 |