Class: Google::Apis::OsconfigV1beta::YumRepository

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/osconfig_v1beta/classes.rb,
lib/google/apis/osconfig_v1beta/representations.rb,
lib/google/apis/osconfig_v1beta/representations.rb

Overview

Represents a single Yum package repository. This repository is added to a repo file that is stored at /etc/yum.repos.d/google_osconfig.repo.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ YumRepository

Returns a new instance of YumRepository.



2289
2290
2291
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 2289

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

Instance Attribute Details

#base_urlString

Required. The location of the repository directory. Corresponds to the JSON property baseUrl

Returns:

  • (String)


2269
2270
2271
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 2269

def base_url
  @base_url
end

#display_nameString

The display name of the repository. Corresponds to the JSON property displayName

Returns:

  • (String)


2274
2275
2276
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 2274

def display_name
  @display_name
end

#gpg_keysArray<String>

URIs of GPG keys. Corresponds to the JSON property gpgKeys

Returns:

  • (Array<String>)


2279
2280
2281
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 2279

def gpg_keys
  @gpg_keys
end

#idString

Required. A one word, unique name for this repository. This is the repo id in the Yum config file and also the display_name if display_name is omitted. This id is also used as the unique identifier when checking for guest policy conflicts. Corresponds to the JSON property id

Returns:

  • (String)


2287
2288
2289
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 2287

def id
  @id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2294
2295
2296
2297
2298
2299
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 2294

def update!(**args)
  @base_url = args[:base_url] if args.key?(:base_url)
  @display_name = args[:display_name] if args.key?(:display_name)
  @gpg_keys = args[:gpg_keys] if args.key?(:gpg_keys)
  @id = args[:id] if args.key?(:id)
end