Class: Google::Apis::OsconfigV1alpha::OsPolicyResourceRepositoryResourceGooRepository

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/osconfig_v1alpha/classes.rb,
lib/google/apis/osconfig_v1alpha/representations.rb,
lib/google/apis/osconfig_v1alpha/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.



2413
2414
2415
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 2413

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

Instance Attribute Details

#nameString

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

Returns:

  • (String)


2406
2407
2408
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 2406

def name
  @name
end

#urlString

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

Returns:

  • (String)


2411
2412
2413
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 2411

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2418
2419
2420
2421
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 2418

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