Class SoftwareSourceClient
- java.lang.Object
-
- com.oracle.bmc.http.internal.BaseSyncClient
-
- com.oracle.bmc.osmanagementhub.SoftwareSourceClient
-
- All Implemented Interfaces:
SoftwareSource
,AutoCloseable
@Generated(value="OracleSDKGenerator", comments="API Version: 20220901") public class SoftwareSourceClient extends BaseSyncClient implements SoftwareSource
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SoftwareSourceClient.Builder
Builder class for this client.
-
Field Summary
Fields Modifier and Type Field Description String
clientCommonLibraryVersion
Compatible SDK version, provided by the codegen.Optional<String>
minimumClientCommonLibraryVersionFromClient
Minimum compatible SDK version, maybe provided by the codegen.static Service
SERVICE
Service instance for SoftwareSource.
-
Constructor Summary
Constructors Constructor Description SoftwareSourceClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory)
Deprecated.Use thebuilder
instead.SoftwareSourceClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators)
Deprecated.Use thebuilder
instead.SoftwareSourceClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators, String endpoint)
Deprecated.Use thebuilder
instead.SoftwareSourceClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint)
Deprecated.Use thebuilder
instead.SoftwareSourceClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint, ExecutorService executorService)
Deprecated.Use thebuilder
instead.SoftwareSourceClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
Deprecated.Use thebuilder
instead.SoftwareSourceClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration)
Deprecated.Use thebuilder
instead.SoftwareSourceClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator)
Deprecated.Use thebuilder
instead.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AddPackagesToSoftwareSourceResponse
addPackagesToSoftwareSource(AddPackagesToSoftwareSourceRequest request)
Adds packages to a software source.static SoftwareSourceClient.Builder
builder()
Create a builder for this client.ChangeAvailabilityOfSoftwareSourcesResponse
changeAvailabilityOfSoftwareSources(ChangeAvailabilityOfSoftwareSourcesRequest request)
Updates the availability for a list of specified software sources.ChangeSoftwareSourceCompartmentResponse
changeSoftwareSourceCompartment(ChangeSoftwareSourceCompartmentRequest request)
Moves the specified software sources to a different compartment within the same tenancy.void
close()
CreateEntitlementResponse
createEntitlement(CreateEntitlementRequest request)
Registers the necessary entitlement credentials for OS vendor software sources for a tenancy.CreateSoftwareSourceResponse
createSoftwareSource(CreateSoftwareSourceRequest request)
Creates a new software source.DeleteSoftwareSourceResponse
deleteSoftwareSource(DeleteSoftwareSourceRequest request)
Deletes the specified software source.String
getClientCommonLibraryVersion()
protected ClientConfigurator
getDefaultConfigurator()
String
getEndpoint()
GetErratumResponse
getErratum(GetErratumRequest request)
Returns information about the specified erratum based on its advisory name.Optional<String>
getMinimumClientCommonLibraryVersionFromClient()
GetModuleStreamResponse
getModuleStream(GetModuleStreamRequest request)
Returns information about the specified module stream in a software source.GetModuleStreamProfileResponse
getModuleStreamProfile(GetModuleStreamProfileRequest request)
Returns information about the specified module stream profile in a software source.GetPackageGroupResponse
getPackageGroup(GetPackageGroupRequest request)
Returns information about the specified package group from a software source.SoftwareSourcePaginators
getPaginators()
Gets the pre-configured paginators available for list operations in this service which may return multiple pages of data.GetSoftwarePackageResponse
getSoftwarePackage(GetSoftwarePackageRequest request)
Returns information about the specified software package.GetSoftwarePackageByNameResponse
getSoftwarePackageByName(GetSoftwarePackageByNameRequest request)
Returns information about the specified software package based on its fully qualified name (NVRA or NEVRA).GetSoftwareSourceResponse
getSoftwareSource(GetSoftwareSourceRequest request)
Returns information about the specified software source.GetSoftwareSourceManifestResponse
getSoftwareSourceManifest(GetSoftwareSourceManifestRequest request)
Returns an archive containing the list of packages in the software source.SoftwareSourceWaiters
getWaiters()
Gets the pre-configured waiters available for resources for this service.ListAllSoftwarePackagesResponse
listAllSoftwarePackages(ListAllSoftwarePackagesRequest request)
Lists software packages available through the OS Management Hub service.ListAvailableSoftwarePackagesResponse
listAvailableSoftwarePackages(ListAvailableSoftwarePackagesRequest request)
Lists software packages that are available to be added to a custom software source of type MANIFEST.ListEntitlementsResponse
listEntitlements(ListEntitlementsRequest request)
Lists entitlements in the specified tenancy OCID.ListErrataResponse
listErrata(ListErrataRequest request)
Lists all of the currently available errata.ListModuleStreamProfilesResponse
listModuleStreamProfiles(ListModuleStreamProfilesRequest request)
Lists module stream profiles from the specified software source OCID.ListModuleStreamsResponse
listModuleStreams(ListModuleStreamsRequest request)
Lists module streams from the specified software source OCID.ListPackageGroupsResponse
listPackageGroups(ListPackageGroupsRequest request)
Lists package groups that are associated with the specified software source OCID.ListSoftwarePackagesResponse
listSoftwarePackages(ListSoftwarePackagesRequest request)
Lists software packages in the specified software source.ListSoftwarePackageSoftwareSourcesResponse
listSoftwarePackageSoftwareSources(ListSoftwarePackageSoftwareSourcesRequest request)
Lists the software sources in the tenancy that contain the software package.ListSoftwareSourcesResponse
listSoftwareSources(ListSoftwareSourcesRequest request)
Lists software sources that match the specified tenancy or software source OCID.ListSoftwareSourceVendorsResponse
listSoftwareSourceVendors(ListSoftwareSourceVendorsRequest request)
Lists available software source vendors.void
populateServiceParametersInEndpoint(String endpoint, Map<String,Object> requiredParametersMap)
Populate the parameters in the endpoint with its corresponding value and update the base endpoint.void
refreshClient()
Rebuild the backingHttpClient
.RemovePackagesFromSoftwareSourceResponse
removePackagesFromSoftwareSource(RemovePackagesFromSoftwareSourceRequest request)
Removes packages from a software source.ReplacePackagesInSoftwareSourceResponse
replacePackagesInSoftwareSource(ReplacePackagesInSoftwareSourceRequest request)
Replaces packages in a software source with the provided list of packages.SearchSoftwareSourceModulesResponse
searchSoftwareSourceModules(SearchSoftwareSourceModulesRequest request)
Lists modules from a list of software sources.SearchSoftwareSourceModuleStreamsResponse
searchSoftwareSourceModuleStreams(SearchSoftwareSourceModuleStreamsRequest request)
Returns a list of module streams from the specified software sources.SearchSoftwareSourcePackageGroupsResponse
searchSoftwareSourcePackageGroups(SearchSoftwareSourcePackageGroupsRequest request)
Searches the package groups from the specified list of software sources.void
setEndpoint(String endpoint)
void
setRegion(Region region)
Sets the region to call (ex, Region.US_PHOENIX_1).void
setRegion(String regionId)
Sets the region to call (ex, ‘us-phoenix-1’).SoftwareSourceGenerateMetadataResponse
softwareSourceGenerateMetadata(SoftwareSourceGenerateMetadataRequest request)
Regenerates metadata for the specified custom software source.void
updateBaseEndpoint(String endpoint)
This method should be used for parameterized endpoint templates only.UpdateSoftwareSourceResponse
updateSoftwareSource(UpdateSoftwareSourceRequest request)
Updates the specified software source’s details, including but not limited to name, description, and tags.UpdateSoftwareSourceManifestResponse
updateSoftwareSourceManifest(UpdateSoftwareSourceManifestRequest request)
Updates the package list document for the software source.void
useRealmSpecificEndpointTemplate(boolean useOfRealmSpecificEndpointTemplateEnabled)
This method should be used to enable or disable the use of realm-specific endpoint template.-
Methods inherited from class com.oracle.bmc.http.internal.BaseSyncClient
clientCall
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.AutoCloseable
close
-
Methods inherited from interface com.oracle.bmc.osmanagementhub.SoftwareSource
getEndpoint, refreshClient, setEndpoint, useRealmSpecificEndpointTemplate
-
-
-
-
Constructor Detail
-
SoftwareSourceClient
@Deprecated public SoftwareSourceClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
Deprecated.Use thebuilder
instead.Create a new client instance.- Parameters:
authenticationDetailsProvider
- The authentication details (seeSoftwareSourceClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)
-
SoftwareSourceClient
@Deprecated public SoftwareSourceClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration)
Deprecated.Use thebuilder
instead.Create a new client instance.- Parameters:
authenticationDetailsProvider
- The authentication details (seeSoftwareSourceClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
-ClientBuilderBase.configuration
-
SoftwareSourceClient
@Deprecated public SoftwareSourceClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator)
Deprecated.Use thebuilder
instead.Create a new client instance.- Parameters:
authenticationDetailsProvider
- The authentication details (seeSoftwareSourceClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
-ClientBuilderBase.configuration
clientConfigurator
-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
-
SoftwareSourceClient
@Deprecated public SoftwareSourceClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory)
Deprecated.Use thebuilder
instead.Create a new client instance.- Parameters:
authenticationDetailsProvider
- The authentication details (seeSoftwareSourceClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
-ClientBuilderBase.configuration
clientConfigurator
-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
-ClientBuilderBase.requestSignerFactory
-
SoftwareSourceClient
@Deprecated public SoftwareSourceClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators)
Deprecated.Use thebuilder
instead.Create a new client instance.- Parameters:
authenticationDetailsProvider
- The authentication details (seeSoftwareSourceClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
-ClientBuilderBase.configuration
clientConfigurator
-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
-ClientBuilderBase.requestSignerFactory
additionalClientConfigurators
-ClientBuilderBase.additionalClientConfigurators
-
SoftwareSourceClient
@Deprecated public SoftwareSourceClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators, String endpoint)
Deprecated.Use thebuilder
instead.Create a new client instance.- Parameters:
authenticationDetailsProvider
- The authentication details (seeSoftwareSourceClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
-ClientBuilderBase.configuration
clientConfigurator
-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
-ClientBuilderBase.requestSignerFactory
additionalClientConfigurators
-ClientBuilderBase.additionalClientConfigurators
endpoint
-ClientBuilderBase.endpoint(java.lang.String)
-
SoftwareSourceClient
@Deprecated public SoftwareSourceClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint)
Deprecated.Use thebuilder
instead.Create a new client instance.- Parameters:
authenticationDetailsProvider
- The authentication details (seeSoftwareSourceClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
-ClientBuilderBase.configuration
clientConfigurator
-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
-ClientBuilderBase.requestSignerFactory
additionalClientConfigurators
-ClientBuilderBase.additionalClientConfigurators
endpoint
-ClientBuilderBase.endpoint(java.lang.String)
signingStrategyRequestSignerFactories
-ClientBuilderBase.signingStrategyRequestSignerFactories
-
SoftwareSourceClient
@Deprecated public SoftwareSourceClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint, ExecutorService executorService)
Deprecated.Use thebuilder
instead.Create a new client instance.- Parameters:
authenticationDetailsProvider
- The authentication details (seeSoftwareSourceClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
-ClientBuilderBase.configuration
clientConfigurator
-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
-ClientBuilderBase.requestSignerFactory
additionalClientConfigurators
-ClientBuilderBase.additionalClientConfigurators
endpoint
-ClientBuilderBase.endpoint(java.lang.String)
signingStrategyRequestSignerFactories
-ClientBuilderBase.signingStrategyRequestSignerFactories
executorService
-SoftwareSourceClient.Builder.executorService
-
-
Method Detail
-
builder
public static SoftwareSourceClient.Builder builder()
Create a builder for this client.- Returns:
- builder
-
setRegion
public void setRegion(Region region)
Description copied from interface:SoftwareSource
Sets the region to call (ex, Region.US_PHOENIX_1).Note, this will call
setEndpoint
after resolving the endpoint. If the service is not available in this Region, however, an IllegalArgumentException will be raised.- Specified by:
setRegion
in interfaceSoftwareSource
- Parameters:
region
- The region of the service.
-
setRegion
public void setRegion(String regionId)
Description copied from interface:SoftwareSource
Sets the region to call (ex, ‘us-phoenix-1’).Note, this will first try to map the region ID to a known Region and call
setRegion
.If no known Region could be determined, it will create an endpoint based on the default endpoint format (
Region.formatDefaultRegionEndpoint(Service, String)
and then callsetEndpoint
.- Specified by:
setRegion
in interfaceSoftwareSource
- Parameters:
regionId
- The public region ID.
-
addPackagesToSoftwareSource
public AddPackagesToSoftwareSourceResponse addPackagesToSoftwareSource(AddPackagesToSoftwareSourceRequest request)
Description copied from interface:SoftwareSource
Adds packages to a software source.This operation can only be done for custom and versioned custom software sources that are not created using filters. For a versioned custom software source, you can only add packages when the source is created. Once content is added to a versioned custom software source, it is immutable. Packages can be of the format: * name (for example: git). If isLatestContentOnly is true, only the latest version of the package will be added, otherwise all versions of the package will be added. * name-version-release.architecture (for example: git-2.43.5-1.el8_10.x86_64) * name-epoch:version-release.architecture (for example: git-0:2.43.5-1.el8_10.x86_64)
- Specified by:
addPackagesToSoftwareSource
in interfaceSoftwareSource
- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
changeAvailabilityOfSoftwareSources
public ChangeAvailabilityOfSoftwareSourcesResponse changeAvailabilityOfSoftwareSources(ChangeAvailabilityOfSoftwareSourcesRequest request)
Description copied from interface:SoftwareSource
Updates the availability for a list of specified software sources.- Specified by:
changeAvailabilityOfSoftwareSources
in interfaceSoftwareSource
- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
changeSoftwareSourceCompartment
public ChangeSoftwareSourceCompartmentResponse changeSoftwareSourceCompartment(ChangeSoftwareSourceCompartmentRequest request)
Description copied from interface:SoftwareSource
Moves the specified software sources to a different compartment within the same tenancy.For information about moving resources between compartments, see Moving Resources to a Different Compartment.
- Specified by:
changeSoftwareSourceCompartment
in interfaceSoftwareSource
- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
createEntitlement
public CreateEntitlementResponse createEntitlement(CreateEntitlementRequest request)
Description copied from interface:SoftwareSource
Registers the necessary entitlement credentials for OS vendor software sources for a tenancy.- Specified by:
createEntitlement
in interfaceSoftwareSource
- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
createSoftwareSource
public CreateSoftwareSourceResponse createSoftwareSource(CreateSoftwareSourceRequest request)
Description copied from interface:SoftwareSource
Creates a new software source.- Specified by:
createSoftwareSource
in interfaceSoftwareSource
- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
deleteSoftwareSource
public DeleteSoftwareSourceResponse deleteSoftwareSource(DeleteSoftwareSourceRequest request)
Description copied from interface:SoftwareSource
Deletes the specified software source.- Specified by:
deleteSoftwareSource
in interfaceSoftwareSource
- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getErratum
public GetErratumResponse getErratum(GetErratumRequest request)
Description copied from interface:SoftwareSource
Returns information about the specified erratum based on its advisory name.- Specified by:
getErratum
in interfaceSoftwareSource
- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getModuleStream
public GetModuleStreamResponse getModuleStream(GetModuleStreamRequest request)
Description copied from interface:SoftwareSource
Returns information about the specified module stream in a software source.- Specified by:
getModuleStream
in interfaceSoftwareSource
- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getModuleStreamProfile
public GetModuleStreamProfileResponse getModuleStreamProfile(GetModuleStreamProfileRequest request)
Description copied from interface:SoftwareSource
Returns information about the specified module stream profile in a software source.- Specified by:
getModuleStreamProfile
in interfaceSoftwareSource
- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getPackageGroup
public GetPackageGroupResponse getPackageGroup(GetPackageGroupRequest request)
Description copied from interface:SoftwareSource
Returns information about the specified package group from a software source.- Specified by:
getPackageGroup
in interfaceSoftwareSource
- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getSoftwarePackage
public GetSoftwarePackageResponse getSoftwarePackage(GetSoftwarePackageRequest request)
Description copied from interface:SoftwareSource
Returns information about the specified software package.- Specified by:
getSoftwarePackage
in interfaceSoftwareSource
- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getSoftwarePackageByName
public GetSoftwarePackageByNameResponse getSoftwarePackageByName(GetSoftwarePackageByNameRequest request)
Description copied from interface:SoftwareSource
Returns information about the specified software package based on its fully qualified name (NVRA or NEVRA).- Specified by:
getSoftwarePackageByName
in interfaceSoftwareSource
- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getSoftwareSource
public GetSoftwareSourceResponse getSoftwareSource(GetSoftwareSourceRequest request)
Description copied from interface:SoftwareSource
Returns information about the specified software source.- Specified by:
getSoftwareSource
in interfaceSoftwareSource
- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getSoftwareSourceManifest
public GetSoftwareSourceManifestResponse getSoftwareSourceManifest(GetSoftwareSourceManifestRequest request)
Description copied from interface:SoftwareSource
Returns an archive containing the list of packages in the software source.- Specified by:
getSoftwareSourceManifest
in interfaceSoftwareSource
- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
listAllSoftwarePackages
public ListAllSoftwarePackagesResponse listAllSoftwarePackages(ListAllSoftwarePackagesRequest request)
Description copied from interface:SoftwareSource
Lists software packages available through the OS Management Hub service.Filter the list against a variety of criteria including but not limited to its name.
- Specified by:
listAllSoftwarePackages
in interfaceSoftwareSource
- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
listAvailableSoftwarePackages
public ListAvailableSoftwarePackagesResponse listAvailableSoftwarePackages(ListAvailableSoftwarePackagesRequest request)
Description copied from interface:SoftwareSource
Lists software packages that are available to be added to a custom software source of type MANIFEST.Filter the list against a variety of criteria including but not limited to its name.
- Specified by:
listAvailableSoftwarePackages
in interfaceSoftwareSource
- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
listEntitlements
public ListEntitlementsResponse listEntitlements(ListEntitlementsRequest request)
Description copied from interface:SoftwareSource
Lists entitlements in the specified tenancy OCID.Filter the list against a variety of criteria including but not limited to its Customer Support Identifier (CSI), and vendor name.
- Specified by:
listEntitlements
in interfaceSoftwareSource
- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
listErrata
public ListErrataResponse listErrata(ListErrataRequest request)
Description copied from interface:SoftwareSource
Lists all of the currently available errata.Filter the list against a variety of criteria including but not limited to its name, classification type, advisory severity, and OS family.
- Specified by:
listErrata
in interfaceSoftwareSource
- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
listModuleStreamProfiles
public ListModuleStreamProfilesResponse listModuleStreamProfiles(ListModuleStreamProfilesRequest request)
Description copied from interface:SoftwareSource
Lists module stream profiles from the specified software source OCID.Filter the list against a variety of criteria including but not limited to its module name, stream name, and profile name.
- Specified by:
listModuleStreamProfiles
in interfaceSoftwareSource
- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
listModuleStreams
public ListModuleStreamsResponse listModuleStreams(ListModuleStreamsRequest request)
Description copied from interface:SoftwareSource
Lists module streams from the specified software source OCID.Filter the list against a variety of criteria including but not limited to its module name and (stream) name.
- Specified by:
listModuleStreams
in interfaceSoftwareSource
- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
listPackageGroups
public ListPackageGroupsResponse listPackageGroups(ListPackageGroupsRequest request)
Description copied from interface:SoftwareSource
Lists package groups that are associated with the specified software source OCID.Filter the list against a variety of criteria including but not limited to its name, and package group type.
- Specified by:
listPackageGroups
in interfaceSoftwareSource
- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
listSoftwarePackageSoftwareSources
public ListSoftwarePackageSoftwareSourcesResponse listSoftwarePackageSoftwareSources(ListSoftwarePackageSoftwareSourcesRequest request)
Description copied from interface:SoftwareSource
Lists the software sources in the tenancy that contain the software package.Filter the list against a variety of criteria including but not limited to its name, type, architecture, and OS family.
- Specified by:
listSoftwarePackageSoftwareSources
in interfaceSoftwareSource
- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
listSoftwarePackages
public ListSoftwarePackagesResponse listSoftwarePackages(ListSoftwarePackagesRequest request)
Description copied from interface:SoftwareSource
Lists software packages in the specified software source.Filter the list against a variety of criteria including but not limited to its name.
- Specified by:
listSoftwarePackages
in interfaceSoftwareSource
- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
listSoftwareSourceVendors
public ListSoftwareSourceVendorsResponse listSoftwareSourceVendors(ListSoftwareSourceVendorsRequest request)
Description copied from interface:SoftwareSource
Lists available software source vendors.Filter the list against a variety of criteria including but not limited to its name.
- Specified by:
listSoftwareSourceVendors
in interfaceSoftwareSource
- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
listSoftwareSources
public ListSoftwareSourcesResponse listSoftwareSources(ListSoftwareSourcesRequest request)
Description copied from interface:SoftwareSource
Lists software sources that match the specified tenancy or software source OCID.Filter the list against a variety of criteria including but not limited to its name, status, architecture, and OS family.
- Specified by:
listSoftwareSources
in interfaceSoftwareSource
- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
removePackagesFromSoftwareSource
public RemovePackagesFromSoftwareSourceResponse removePackagesFromSoftwareSource(RemovePackagesFromSoftwareSourceRequest request)
Description copied from interface:SoftwareSource
Removes packages from a software source.This operation can only be done for custom software sources that are not created using filters. Packages can be of the format: * name (for example: git). This removes all versions of the package. * name-version-release.architecture (for example: git-2.43.5-1.el8_10.x86_64) * name-epoch:version-release.architecture (for example: git-0:2.43.5-1.el8_10.x86_64)
- Specified by:
removePackagesFromSoftwareSource
in interfaceSoftwareSource
- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
replacePackagesInSoftwareSource
public ReplacePackagesInSoftwareSourceResponse replacePackagesInSoftwareSource(ReplacePackagesInSoftwareSourceRequest request)
Description copied from interface:SoftwareSource
Replaces packages in a software source with the provided list of packages.This operation can only be done for custom software sources that are not created using filters. Packages can be of the format: * name (for example: git). If isLatestContentOnly is true, only the latest version of the package will be added, otherwise all versions of the package will be added. * name-version-release.architecture (for example: git-2.43.5-1.el8_10.x86_64) * name-epoch:version-release.architecture (for example: git-0:2.43.5-1.el8_10.x86_64)
- Specified by:
replacePackagesInSoftwareSource
in interfaceSoftwareSource
- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
searchSoftwareSourceModuleStreams
public SearchSoftwareSourceModuleStreamsResponse searchSoftwareSourceModuleStreams(SearchSoftwareSourceModuleStreamsRequest request)
Description copied from interface:SoftwareSource
Returns a list of module streams from the specified software sources.Filter the list against a variety of criteria including the module name.
- Specified by:
searchSoftwareSourceModuleStreams
in interfaceSoftwareSource
- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
searchSoftwareSourceModules
public SearchSoftwareSourceModulesResponse searchSoftwareSourceModules(SearchSoftwareSourceModulesRequest request)
Description copied from interface:SoftwareSource
Lists modules from a list of software sources.Filter the list against a variety of criteria including the module name.
- Specified by:
searchSoftwareSourceModules
in interfaceSoftwareSource
- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
searchSoftwareSourcePackageGroups
public SearchSoftwareSourcePackageGroupsResponse searchSoftwareSourcePackageGroups(SearchSoftwareSourcePackageGroupsRequest request)
Description copied from interface:SoftwareSource
Searches the package groups from the specified list of software sources.Filter the list against a variety of criteria including but not limited to its name, and group type.
- Specified by:
searchSoftwareSourcePackageGroups
in interfaceSoftwareSource
- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
softwareSourceGenerateMetadata
public SoftwareSourceGenerateMetadataResponse softwareSourceGenerateMetadata(SoftwareSourceGenerateMetadataRequest request)
Description copied from interface:SoftwareSource
Regenerates metadata for the specified custom software source.- Specified by:
softwareSourceGenerateMetadata
in interfaceSoftwareSource
- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
updateSoftwareSource
public UpdateSoftwareSourceResponse updateSoftwareSource(UpdateSoftwareSourceRequest request)
Description copied from interface:SoftwareSource
Updates the specified software source’s details, including but not limited to name, description, and tags.- Specified by:
updateSoftwareSource
in interfaceSoftwareSource
- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
updateSoftwareSourceManifest
public UpdateSoftwareSourceManifestResponse updateSoftwareSourceManifest(UpdateSoftwareSourceManifestRequest request)
Description copied from interface:SoftwareSource
Updates the package list document for the software source.Note: This operation consumes a stream.
If the stream supports
InputStream.mark(int)
andInputStream.reset()
, when a retry is necessary, the stream is reset so it starts at the beginning (or whatever the stream's position was at the time this operation is called}.Note this means that if the caller has used
InputStream.mark(int)
before, then the mark will not be the same anymore after this operation, and a subsequent call toInputStream.reset()
by the caller will reset the stream not to the caller's mark, but to the position the stream was in when this operation was called.If the stream is a
FileInputStream
, and the stream'sFileChannel
position can be changed (like for a regular file), the stream will be wrapped in such a way that it does provide support forInputStream.mark(int)
andInputStream.reset()
. Then the same procedure as above is followed. If the stream'sFileChannel
position cannot be changed (like for a named pipe), then the stream's contents will be buffered in memory, as described below.If the stream does not support
InputStream.mark(int)
andInputStream.reset()
, then the stream is wrapped in aBufferedInputStream
, which means the entire contents may be buffered in memory. Then the same procedure as above is followed.The contents of the stream, except when the stream is a
FileInputStream
whoseFileChannel
position can be changed, should be less than 2 GiB in size if retries are used. This is because streams 2 GiB in size or larger do no guarantee that mark-and-reset can be performed. If the stream is larger, do not use built-in retries and manage retries yourself.- Specified by:
updateSoftwareSourceManifest
in interfaceSoftwareSource
- Parameters:
request
- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getWaiters
public SoftwareSourceWaiters getWaiters()
Description copied from interface:SoftwareSource
Gets the pre-configured waiters available for resources for this service.- Specified by:
getWaiters
in interfaceSoftwareSource
- Returns:
- The service waiters.
-
getPaginators
public SoftwareSourcePaginators getPaginators()
Description copied from interface:SoftwareSource
Gets the pre-configured paginators available for list operations in this service which may return multiple pages of data.These paginators provide an
Iterable
interface so that service responses, or resources/records, can be iterated through without having to manually deal with pagination and page tokens.- Specified by:
getPaginators
in interfaceSoftwareSource
- Returns:
- The service paginators.
-
getDefaultConfigurator
protected ClientConfigurator getDefaultConfigurator()
-
useRealmSpecificEndpointTemplate
public void useRealmSpecificEndpointTemplate(boolean useOfRealmSpecificEndpointTemplateEnabled)
This method should be used to enable or disable the use of realm-specific endpoint template.The default value is null. To enable the use of endpoint template defined for the realm in use, set the flag to true To disable the use of endpoint template defined for the realm in use, set the flag to false
- Parameters:
useOfRealmSpecificEndpointTemplateEnabled
- This flag can be set to true or false to enable or disable the use of realm-specific endpoint template respectively
-
populateServiceParametersInEndpoint
public final void populateServiceParametersInEndpoint(String endpoint, Map<String,Object> requiredParametersMap)
Populate the parameters in the endpoint with its corresponding value and update the base endpoint.The value will be populated iff the parameter in endpoint is a required request path parameter or a required request query parameter. If not, the parameter in the endpoint will be ignored and left blank.
- Parameters:
endpoint
- The endpoint template in userequiredParametersMap
- Map of parameter name as key and value set in request path or query parameter as value
-
updateBaseEndpoint
public final void updateBaseEndpoint(String endpoint)
This method should be used for parameterized endpoint templates only.This does not include {region} and {secondLevelDomain} parameters.
- Parameters:
endpoint
- The updated endpoint to use
-
setEndpoint
public final void setEndpoint(String endpoint)
-
getEndpoint
public final String getEndpoint()
-
refreshClient
public final void refreshClient()
Rebuild the backingHttpClient
.This will call
ClientConfigurator
s again, and can be used to e.g. refresh the SSL certificate.
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
-
getClientCommonLibraryVersion
public String getClientCommonLibraryVersion()
-
-