Class: Google::Apis::OsconfigV1::OsPolicyResourceRepositoryResourceGooRepository
- Inherits:
-
Object
- Object
- Google::Apis::OsconfigV1::OsPolicyResourceRepositoryResourceGooRepository
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/osconfig_v1/classes.rb,
lib/google/apis/osconfig_v1/representations.rb,
lib/google/apis/osconfig_v1/representations.rb
Overview
Represents a Goo package repository. These are added to a repo file that is
managed at C:/ProgramData/GooGet/repos/google_osconfig.repo.
Instance Attribute Summary collapse
-
#name ⇒ String
Required.
-
#url ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OsPolicyResourceRepositoryResourceGooRepository
constructor
A new instance of OsPolicyResourceRepositoryResourceGooRepository.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ OsPolicyResourceRepositoryResourceGooRepository
Returns a new instance of OsPolicyResourceRepositoryResourceGooRepository.
2458 2459 2460 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 2458 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Required. The name of the repository.
Corresponds to the JSON property name
2451 2452 2453 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 2451 def name @name end |
#url ⇒ String
Required. The url of the repository.
Corresponds to the JSON property url
2456 2457 2458 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 2456 def url @url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2463 2464 2465 2466 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 2463 def update!(**args) @name = args[:name] if args.key?(:name) @url = args[:url] if args.key?(:url) end |