Class: Google::Apis::OsconfigV1alpha::OsPolicyResourceRepositoryResourceZypperRepository

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 single zypper package repository. These are added to a repo file that is managed at /etc/zypp/repos.d/google_osconfig.repo.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OsPolicyResourceRepositoryResourceZypperRepository

Returns a new instance of OsPolicyResourceRepositoryResourceZypperRepository.



2493
2494
2495
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 2493

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)


2473
2474
2475
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 2473

def base_url
  @base_url
end

#display_nameString

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

Returns:

  • (String)


2478
2479
2480
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 2478

def display_name
  @display_name
end

#gpg_keysArray<String>

URIs of GPG keys. Corresponds to the JSON property gpgKeys

Returns:

  • (Array<String>)


2483
2484
2485
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 2483

def gpg_keys
  @gpg_keys
end

#idString

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

Returns:

  • (String)


2491
2492
2493
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 2491

def id
  @id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2498
2499
2500
2501
2502
2503
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 2498

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