generated/google/apis/osconfig_v1beta/classes.rb in google-api-client-0.44.1 vs generated/google/apis/osconfig_v1beta/classes.rb in google-api-client-0.44.2
- old
+ new
@@ -371,78 +371,10 @@
# Update properties of this object
def update!(**args)
end
end
- # A resource that contains custom validation and enforcement steps.
- class ExecResource
- include Google::Apis::Core::Hashable
-
- # A file or script to execute.
- # Corresponds to the JSON property `enforce`
- # @return [Google::Apis::OsconfigV1beta::ExecResourceExec]
- attr_accessor :enforce
-
- # A file or script to execute.
- # Corresponds to the JSON property `validate`
- # @return [Google::Apis::OsconfigV1beta::ExecResourceExec]
- attr_accessor :validate
-
- def initialize(**args)
- update!(**args)
- end
-
- # Update properties of this object
- def update!(**args)
- @enforce = args[:enforce] if args.key?(:enforce)
- @validate = args[:validate] if args.key?(:validate)
- end
- end
-
- # A file or script to execute.
- class ExecResourceExec
- include Google::Apis::Core::Hashable
-
- # Exit codes that indicate success.
- # Corresponds to the JSON property `allowedSuccessCodes`
- # @return [Array<Fixnum>]
- attr_accessor :allowed_success_codes
-
- # Arguments to use.
- # Corresponds to the JSON property `args`
- # @return [Array<String>]
- attr_accessor :args
-
- # A remote or local file.
- # Corresponds to the JSON property `file`
- # @return [Google::Apis::OsconfigV1beta::File]
- attr_accessor :file
-
- # The script interpreter to use.
- # Corresponds to the JSON property `interpreter`
- # @return [String]
- attr_accessor :interpreter
-
- # An inline script.
- # Corresponds to the JSON property `script`
- # @return [String]
- attr_accessor :script
-
- def initialize(**args)
- update!(**args)
- end
-
- # Update properties of this object
- def update!(**args)
- @allowed_success_codes = args[:allowed_success_codes] if args.key?(:allowed_success_codes)
- @args = args[:args] if args.key?(:args)
- @file = args[:file] if args.key?(:file)
- @interpreter = args[:interpreter] if args.key?(:interpreter)
- @script = args[:script] if args.key?(:script)
- end
- end
-
# A step that runs an executable for a PatchJob.
class ExecStep
include Google::Apis::Core::Hashable
# Common configurations for an ExecStep.
@@ -566,204 +498,10 @@
@patch_config = args[:patch_config] if args.key?(:patch_config)
@rollout = args[:rollout] if args.key?(:rollout)
end
end
- # A resource that extracts an archive
- class ExtractArchiveResource
- include Google::Apis::Core::Hashable
-
- # Local file path that signals this resource is in the desired state. The
- # absence of this file will indicate whether the archive needs to be extracted.
- # Corresponds to the JSON property `creates`
- # @return [String]
- attr_accessor :creates
-
- # Directory to extract archive to.
- # Corresponds to the JSON property `destination`
- # @return [String]
- attr_accessor :destination
-
- # Whether to overwrite existing files during extraction. If this is set to true,
- # any existing files in the destination location will be overwritten by the
- # extraction.
- # Corresponds to the JSON property `overwrite`
- # @return [Boolean]
- attr_accessor :overwrite
- alias_method :overwrite?, :overwrite
-
- # A remote or local file.
- # Corresponds to the JSON property `source`
- # @return [Google::Apis::OsconfigV1beta::File]
- attr_accessor :source
-
- # The type of the archive to extract.
- # Corresponds to the JSON property `type`
- # @return [String]
- attr_accessor :type
-
- def initialize(**args)
- update!(**args)
- end
-
- # Update properties of this object
- def update!(**args)
- @creates = args[:creates] if args.key?(:creates)
- @destination = args[:destination] if args.key?(:destination)
- @overwrite = args[:overwrite] if args.key?(:overwrite)
- @source = args[:source] if args.key?(:source)
- @type = args[:type] if args.key?(:type)
- end
- end
-
- # A remote or local file.
- class File
- include Google::Apis::Core::Hashable
-
- # Defaults to false. When false, files will be subject to validations based on
- # the file type: Remote: A checksum must be specified. GCS: An object generation
- # number must be specified.
- # Corresponds to the JSON property `allowInsecure`
- # @return [Boolean]
- attr_accessor :allow_insecure
- alias_method :allow_insecure?, :allow_insecure
-
- # Specifies a file available as a GCS Object.
- # Corresponds to the JSON property `gcs`
- # @return [Google::Apis::OsconfigV1beta::FileGcs]
- attr_accessor :gcs
-
- # A local path to use.
- # Corresponds to the JSON property `localPath`
- # @return [String]
- attr_accessor :local_path
-
- # Specifies a file available via some URI.
- # Corresponds to the JSON property `remote`
- # @return [Google::Apis::OsconfigV1beta::FileRemote]
- attr_accessor :remote
-
- def initialize(**args)
- update!(**args)
- end
-
- # Update properties of this object
- def update!(**args)
- @allow_insecure = args[:allow_insecure] if args.key?(:allow_insecure)
- @gcs = args[:gcs] if args.key?(:gcs)
- @local_path = args[:local_path] if args.key?(:local_path)
- @remote = args[:remote] if args.key?(:remote)
- end
- end
-
- # Specifies a file available as a GCS Object.
- class FileGcs
- include Google::Apis::Core::Hashable
-
- # Bucket of the GCS object.
- # Corresponds to the JSON property `bucket`
- # @return [String]
- attr_accessor :bucket
-
- # Generation number of the GCS object.
- # Corresponds to the JSON property `generation`
- # @return [Fixnum]
- attr_accessor :generation
-
- # Name of the GCS object.
- # Corresponds to the JSON property `object`
- # @return [String]
- attr_accessor :object
-
- def initialize(**args)
- update!(**args)
- end
-
- # Update properties of this object
- def update!(**args)
- @bucket = args[:bucket] if args.key?(:bucket)
- @generation = args[:generation] if args.key?(:generation)
- @object = args[:object] if args.key?(:object)
- end
- end
-
- # Specifies a file available via some URI.
- class FileRemote
- include Google::Apis::Core::Hashable
-
- # SHA256 checksum of the remote file.
- # Corresponds to the JSON property `sha256Checksum`
- # @return [String]
- attr_accessor :sha256_checksum
-
- # URI from which to fetch the object. It should contain both the protocol and
- # path following the format `protocol`://`location`.
- # Corresponds to the JSON property `uri`
- # @return [String]
- attr_accessor :uri
-
- def initialize(**args)
- update!(**args)
- end
-
- # Update properties of this object
- def update!(**args)
- @sha256_checksum = args[:sha256_checksum] if args.key?(:sha256_checksum)
- @uri = args[:uri] if args.key?(:uri)
- end
- end
-
- # A resource that manages the state of a file.
- class FileResource
- include Google::Apis::Core::Hashable
-
- # A a file with this content.
- # Corresponds to the JSON property `content`
- # @return [String]
- attr_accessor :content
-
- # A remote or local file.
- # Corresponds to the JSON property `file`
- # @return [Google::Apis::OsconfigV1beta::File]
- attr_accessor :file
-
- # The absolute path of the file.
- # Corresponds to the JSON property `path`
- # @return [String]
- attr_accessor :path
-
- # Consists of three octal digits which represent, in order, the permissions of
- # the owner, group, and other users for the file (similarly to the numeric mode
- # used in the linux chmod utility). Each digit represents a three bit number
- # with the 4 bit corresponding to the read permissions, the 2 bit corresponds to
- # the write bit, and the one bit corresponds to the execute permission. Default
- # behavior is 755. Below are some examples of permissions and their associated
- # values: read, write, and execute: 7 read and execute: 5 read and write: 6 read
- # only: 4
- # Corresponds to the JSON property `permissions`
- # @return [String]
- attr_accessor :permissions
-
- # Desired state of the file.
- # Corresponds to the JSON property `state`
- # @return [String]
- attr_accessor :state
-
- def initialize(**args)
- update!(**args)
- end
-
- # Update properties of this object
- def update!(**args)
- @content = args[:content] if args.key?(:content)
- @file = args[:file] if args.key?(:file)
- @path = args[:path] if args.key?(:path)
- @permissions = args[:permissions] if args.key?(:permissions)
- @state = args[:state] if args.key?(:state)
- end
- end
-
# Message encapsulating a value that can be either absolute ("fixed") or
# relative ("percent") to a value.
class FixedOrPercent
include Google::Apis::Core::Hashable
@@ -1211,246 +949,10 @@
@yum = args[:yum] if args.key?(:yum)
@zypper = args[:zypper] if args.key?(:zypper)
end
end
- # A resource that manages a system package.
- class PackageResource
- include Google::Apis::Core::Hashable
-
- # A package managed by APT. install: `apt-get update && apt-get -y install [name]
- # ` remove: `apt-get -y remove [name]`
- # Corresponds to the JSON property `apt`
- # @return [Google::Apis::OsconfigV1beta::PackageResourceApt]
- attr_accessor :apt
-
- # A deb package file. dpkg packages only support INSTALLED state.
- # Corresponds to the JSON property `deb`
- # @return [Google::Apis::OsconfigV1beta::PackageResourceDeb]
- attr_accessor :deb
-
- # The desired_state the agent should maintain for this package. The default is
- # to ensure the package is installed.
- # Corresponds to the JSON property `desiredState`
- # @return [String]
- attr_accessor :desired_state
-
- # A package managed by GooGet. install: `googet -noconfirm install package`
- # remove: `googet -noconfirm remove package`
- # Corresponds to the JSON property `googet`
- # @return [Google::Apis::OsconfigV1beta::PackageResourceGooGet]
- attr_accessor :googet
-
- # An MSI package. MSI packages only support INSTALLED state. Install msiexec /i /
- # qn /norestart
- # Corresponds to the JSON property `msi`
- # @return [Google::Apis::OsconfigV1beta::PackageResourceMsi]
- attr_accessor :msi
-
- # An RPM package file. RPM packages only support INSTALLED state.
- # Corresponds to the JSON property `rpm`
- # @return [Google::Apis::OsconfigV1beta::PackageResourceRpm]
- attr_accessor :rpm
-
- # A package managed by YUM. install: `yum -y install package` remove: `yum -y
- # remove package`
- # Corresponds to the JSON property `yum`
- # @return [Google::Apis::OsconfigV1beta::PackageResourceYum]
- attr_accessor :yum
-
- # A package managed by Zypper. install: `zypper -y install package` remove: `
- # zypper -y rm package`
- # Corresponds to the JSON property `zypper`
- # @return [Google::Apis::OsconfigV1beta::PackageResourceZypper]
- attr_accessor :zypper
-
- def initialize(**args)
- update!(**args)
- end
-
- # Update properties of this object
- def update!(**args)
- @apt = args[:apt] if args.key?(:apt)
- @deb = args[:deb] if args.key?(:deb)
- @desired_state = args[:desired_state] if args.key?(:desired_state)
- @googet = args[:googet] if args.key?(:googet)
- @msi = args[:msi] if args.key?(:msi)
- @rpm = args[:rpm] if args.key?(:rpm)
- @yum = args[:yum] if args.key?(:yum)
- @zypper = args[:zypper] if args.key?(:zypper)
- end
- end
-
- # A package managed by APT. install: `apt-get update && apt-get -y install [name]
- # ` remove: `apt-get -y remove [name]`
- class PackageResourceApt
- include Google::Apis::Core::Hashable
-
- # Package name.
- # Corresponds to the JSON property `name`
- # @return [String]
- attr_accessor :name
-
- def initialize(**args)
- update!(**args)
- end
-
- # Update properties of this object
- def update!(**args)
- @name = args[:name] if args.key?(:name)
- end
- end
-
- # A deb package file. dpkg packages only support INSTALLED state.
- class PackageResourceDeb
- include Google::Apis::Core::Hashable
-
- # Whether dependencies should also be installed. install when false: `dpkg -i
- # package` install when true: `apt-get update && apt-get -y install package.deb`
- # Corresponds to the JSON property `pullDeps`
- # @return [Boolean]
- attr_accessor :pull_deps
- alias_method :pull_deps?, :pull_deps
-
- # A remote or local file.
- # Corresponds to the JSON property `source`
- # @return [Google::Apis::OsconfigV1beta::File]
- attr_accessor :source
-
- def initialize(**args)
- update!(**args)
- end
-
- # Update properties of this object
- def update!(**args)
- @pull_deps = args[:pull_deps] if args.key?(:pull_deps)
- @source = args[:source] if args.key?(:source)
- end
- end
-
- # A package managed by GooGet. install: `googet -noconfirm install package`
- # remove: `googet -noconfirm remove package`
- class PackageResourceGooGet
- include Google::Apis::Core::Hashable
-
- # Package name.
- # Corresponds to the JSON property `name`
- # @return [String]
- attr_accessor :name
-
- def initialize(**args)
- update!(**args)
- end
-
- # Update properties of this object
- def update!(**args)
- @name = args[:name] if args.key?(:name)
- end
- end
-
- # An MSI package. MSI packages only support INSTALLED state. Install msiexec /i /
- # qn /norestart
- class PackageResourceMsi
- include Google::Apis::Core::Hashable
-
- # Return codes that indicate that the software installed or updated successfully.
- # Behaviour defaults to [0]
- # Corresponds to the JSON property `allowedSuccessCodes`
- # @return [Array<Fixnum>]
- attr_accessor :allowed_success_codes
-
- # Flags to use during package install. Appended to the defalts of "/i /qn /
- # norestart"
- # Corresponds to the JSON property `flags`
- # @return [Array<String>]
- attr_accessor :flags
-
- # A remote or local file.
- # Corresponds to the JSON property `source`
- # @return [Google::Apis::OsconfigV1beta::File]
- attr_accessor :source
-
- def initialize(**args)
- update!(**args)
- end
-
- # Update properties of this object
- def update!(**args)
- @allowed_success_codes = args[:allowed_success_codes] if args.key?(:allowed_success_codes)
- @flags = args[:flags] if args.key?(:flags)
- @source = args[:source] if args.key?(:source)
- end
- end
-
- # An RPM package file. RPM packages only support INSTALLED state.
- class PackageResourceRpm
- include Google::Apis::Core::Hashable
-
- # Whether dependencies should also be installed. install when false: `rpm --
- # upgrade --replacepkgs package.rpm` install when true: `yum -y install package.
- # rpm` or `zypper -y install package.rpm`
- # Corresponds to the JSON property `pullDeps`
- # @return [Boolean]
- attr_accessor :pull_deps
- alias_method :pull_deps?, :pull_deps
-
- # A remote or local file.
- # Corresponds to the JSON property `source`
- # @return [Google::Apis::OsconfigV1beta::File]
- attr_accessor :source
-
- def initialize(**args)
- update!(**args)
- end
-
- # Update properties of this object
- def update!(**args)
- @pull_deps = args[:pull_deps] if args.key?(:pull_deps)
- @source = args[:source] if args.key?(:source)
- end
- end
-
- # A package managed by YUM. install: `yum -y install package` remove: `yum -y
- # remove package`
- class PackageResourceYum
- include Google::Apis::Core::Hashable
-
- # Package name.
- # Corresponds to the JSON property `name`
- # @return [String]
- attr_accessor :name
-
- def initialize(**args)
- update!(**args)
- end
-
- # Update properties of this object
- def update!(**args)
- @name = args[:name] if args.key?(:name)
- end
- end
-
- # A package managed by Zypper. install: `zypper -y install package` remove: `
- # zypper -y rm package`
- class PackageResourceZypper
- include Google::Apis::Core::Hashable
-
- # Package name.
- # Corresponds to the JSON property `name`
- # @return [String]
- attr_accessor :name
-
- def initialize(**args)
- update!(**args)
- end
-
- # Update properties of this object
- def update!(**args)
- @name = args[:name] if args.key?(:name)
- end
- end
-
# Patch configuration specifications. Contains details on how to apply the patch(
# es) to a VM instance.
class PatchConfig
include Google::Apis::Core::Hashable
@@ -2054,215 +1556,9 @@
@next_execute_time = args[:next_execute_time] if args.key?(:next_execute_time)
@start_time = args[:start_time] if args.key?(:start_time)
@time_of_day = args[:time_of_day] if args.key?(:time_of_day)
@time_zone = args[:time_zone] if args.key?(:time_zone)
@weekly = args[:weekly] if args.key?(:weekly)
- end
- end
-
- # A resource that manages a package repository.
- class RepositoryResource
- include Google::Apis::Core::Hashable
-
- # 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.
- # Corresponds to the JSON property `apt`
- # @return [Google::Apis::OsconfigV1beta::RepositoryResourceAptRepository]
- attr_accessor :apt
-
- # Represents a Goo package repository. These will be added to a repo file that
- # will be managed at C:/ProgramData/GooGet/repos/google_osconfig.repo.
- # Corresponds to the JSON property `goo`
- # @return [Google::Apis::OsconfigV1beta::RepositoryResourceGooRepository]
- attr_accessor :goo
-
- # Represents a single yum package repository. These will be added to a repo file
- # that will be managed at /etc/yum.repos.d/google_osconfig.repo.
- # Corresponds to the JSON property `yum`
- # @return [Google::Apis::OsconfigV1beta::RepositoryResourceYumRepository]
- attr_accessor :yum
-
- # Represents a single zypper package repository. These will be added to a repo
- # file that will be managed at /etc/zypp/repos.d/google_osconfig.repo.
- # Corresponds to the JSON property `zypper`
- # @return [Google::Apis::OsconfigV1beta::RepositoryResourceZypperRepository]
- attr_accessor :zypper
-
- def initialize(**args)
- update!(**args)
- end
-
- # Update properties of this object
- def update!(**args)
- @apt = args[:apt] if args.key?(:apt)
- @goo = args[:goo] if args.key?(:goo)
- @yum = args[:yum] if args.key?(:yum)
- @zypper = args[:zypper] if args.key?(:zypper)
- end
- end
-
- # 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.
- class RepositoryResourceAptRepository
- include Google::Apis::Core::Hashable
-
- # Type of archive files in this repository. The default behavior is DEB.
- # Corresponds to the JSON property `archiveType`
- # @return [String]
- attr_accessor :archive_type
-
- # List of components for this repository. Must contain at least one item.
- # Corresponds to the JSON property `components`
- # @return [Array<String>]
- attr_accessor :components
-
- # Distribution of this repository.
- # Corresponds to the JSON property `distribution`
- # @return [String]
- attr_accessor :distribution
-
- # URI of the key file for this repository. The agent will maintain a keyring at /
- # etc/apt/trusted.gpg.d/osconfig_agent_managed.gpg.
- # Corresponds to the JSON property `gpgKey`
- # @return [String]
- attr_accessor :gpg_key
-
- # URI for this repository.
- # Corresponds to the JSON property `uri`
- # @return [String]
- attr_accessor :uri
-
- def initialize(**args)
- update!(**args)
- end
-
- # Update properties of this object
- 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
- end
-
- # Represents a Goo package repository. These will be added to a repo file that
- # will be managed at C:/ProgramData/GooGet/repos/google_osconfig.repo.
- class RepositoryResourceGooRepository
- include Google::Apis::Core::Hashable
-
- # The name of the repository.
- # Corresponds to the JSON property `name`
- # @return [String]
- attr_accessor :name
-
- # The url of the repository.
- # Corresponds to the JSON property `url`
- # @return [String]
- attr_accessor :url
-
- def initialize(**args)
- update!(**args)
- end
-
- # Update properties of this object
- def update!(**args)
- @name = args[:name] if args.key?(:name)
- @url = args[:url] if args.key?(:url)
- end
- end
-
- # Represents a single yum package repository. These will be added to a repo file
- # that will be managed at /etc/yum.repos.d/google_osconfig.repo.
- class RepositoryResourceYumRepository
- include Google::Apis::Core::Hashable
-
- # The location of the repository directory.
- # Corresponds to the JSON property `baseUrl`
- # @return [String]
- attr_accessor :base_url
-
- # The display name of the repository.
- # Corresponds to the JSON property `displayName`
- # @return [String]
- attr_accessor :display_name
-
- # URIs of GPG keys.
- # Corresponds to the JSON property `gpgKeys`
- # @return [Array<String>]
- attr_accessor :gpg_keys
-
- # A one word, unique name for this repository. This will be 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 resource conflicts.
- # Corresponds to the JSON property `id`
- # @return [String]
- attr_accessor :id
-
- def initialize(**args)
- update!(**args)
- end
-
- # Update properties of this object
- 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
- end
-
- # Represents a single zypper package repository. These will be added to a repo
- # file that will be managed at /etc/zypp/repos.d/google_osconfig.repo.
- class RepositoryResourceZypperRepository
- include Google::Apis::Core::Hashable
-
- # The location of the repository directory.
- # Corresponds to the JSON property `baseUrl`
- # @return [String]
- attr_accessor :base_url
-
- # The display name of the repository.
- # Corresponds to the JSON property `displayName`
- # @return [String]
- attr_accessor :display_name
-
- # URIs of GPG keys.
- # Corresponds to the JSON property `gpgKeys`
- # @return [Array<String>]
- attr_accessor :gpg_keys
-
- # A one word, unique name for this repository. This will be 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`
- # @return [String]
- attr_accessor :id
-
- def initialize(**args)
- update!(**args)
- end
-
- # Update properties of this object
- 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
- end
-
- # A resource that manages a system service.
- class ServiceResource
- include Google::Apis::Core::Hashable
-
- def initialize(**args)
- update!(**args)
- end
-
- # Update properties of this object
- def update!(**args)
end
end
# A software recipe is a set of instructions for installing and configuring a
# piece of software. It consists of a set of artifacts that are downloaded, and