Class: Google::Apis::OsconfigV1alpha::OsPolicyResourceRepositoryResourceAptRepository

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 apt package repository. These will be added to a repo file that will be managed at /etc/apt/sources.list.d/google_osconfig.list.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OsPolicyResourceRepositoryResourceAptRepository

Returns a new instance of OsPolicyResourceRepositoryResourceAptRepository.



2388
2389
2390
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 2388

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

Instance Attribute Details

#archive_typeString

Required. Type of archive files in this repository. Corresponds to the JSON property archiveType

Returns:

  • (String)


2364
2365
2366
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 2364

def archive_type
  @archive_type
end

#componentsArray<String>

Required. List of components for this repository. Must contain at least one item. Corresponds to the JSON property components

Returns:

  • (Array<String>)


2370
2371
2372
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 2370

def components
  @components
end

#distributionString

Required. Distribution of this repository. Corresponds to the JSON property distribution

Returns:

  • (String)


2375
2376
2377
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 2375

def distribution
  @distribution
end

#gpg_keyString

URI of the key file for this repository. The agent maintains a keyring at / etc/apt/trusted.gpg.d/osconfig_agent_managed.gpg. Corresponds to the JSON property gpgKey

Returns:

  • (String)


2381
2382
2383
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 2381

def gpg_key
  @gpg_key
end

#uriString

Required. URI for this repository. Corresponds to the JSON property uri

Returns:

  • (String)


2386
2387
2388
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 2386

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2393
2394
2395
2396
2397
2398
2399
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 2393

def update!(**args)
  @archive_type = args[:archive_type] if args.key?(:archive_type)
  @components = args[:components] if args.key?(:components)
  @distribution = args[:distribution] if args.key?(:distribution)
  @gpg_key = args[:gpg_key] if args.key?(:gpg_key)
  @uri = args[:uri] if args.key?(:uri)
end