Class: Google::Apis::OsconfigV1::OsPolicyResourceRepositoryResourceGooRepository

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OsPolicyResourceRepositoryResourceGooRepository

Returns a new instance of OsPolicyResourceRepositoryResourceGooRepository.



2461
2462
2463
# File 'lib/google/apis/osconfig_v1/classes.rb', line 2461

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

Instance Attribute Details

#nameString

Required. The name of the repository. Corresponds to the JSON property name

Returns:

  • (String)


2454
2455
2456
# File 'lib/google/apis/osconfig_v1/classes.rb', line 2454

def name
  @name
end

#urlString

Required. The url of the repository. Corresponds to the JSON property url

Returns:

  • (String)


2459
2460
2461
# File 'lib/google/apis/osconfig_v1/classes.rb', line 2459

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2466
2467
2468
2469
# File 'lib/google/apis/osconfig_v1/classes.rb', line 2466

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