Class GlobalCatalog
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.BaseService
-
- com.ibm.cloud.platform_services.global_catalog.v1.GlobalCatalog
-
public class GlobalCatalog extends com.ibm.cloud.sdk.core.service.BaseServiceThe catalog service manages offerings across geographies as the system of record. The catalog supports a RESTful API where users can retrieve information about existing offerings and create, manage, and delete their offerings. Start with the base URL and use the endpoints to retrieve metadata about services in the catalog and manage service visbility. Depending on the kind of object, the metadata can include information about pricing, provisioning, regions, and more. For more information, see the [catalog documentation](https://cloud.ibm.com/docs/overview/catalog.html#global-catalog-overview).- Version:
- v1
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_SERVICE_NAMEstatic java.lang.StringDEFAULT_SERVICE_URL
-
Constructor Summary
Constructors Constructor Description GlobalCatalog(java.lang.String serviceName, com.ibm.cloud.sdk.core.security.Authenticator authenticator)Constructs an instance of the `GlobalCatalog` client.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.ibm.cloud.sdk.core.http.ServiceCall<CatalogEntry>createCatalogEntry(CreateCatalogEntryOptions createCatalogEntryOptions)Create a catalog entry.com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void>deleteArtifact(DeleteArtifactOptions deleteArtifactOptions)Delete artifact.com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void>deleteCatalogEntry(DeleteCatalogEntryOptions deleteCatalogEntryOptions)Delete a catalog entry.com.ibm.cloud.sdk.core.http.ServiceCall<java.io.InputStream>getArtifact(GetArtifactOptions getArtifactOptions)Get artifact.com.ibm.cloud.sdk.core.http.ServiceCall<AuditSearchResult>getAuditLogs(GetAuditLogsOptions getAuditLogsOptions)Get the audit logs for an object.com.ibm.cloud.sdk.core.http.ServiceCall<CatalogEntry>getCatalogEntry(GetCatalogEntryOptions getCatalogEntryOptions)Get a specific catalog object.com.ibm.cloud.sdk.core.http.ServiceCall<EntrySearchResult>getChildObjects(GetChildObjectsOptions getChildObjectsOptions)Get child catalog entries of a specific kind.com.ibm.cloud.sdk.core.http.ServiceCall<PricingGet>getPricing(GetPricingOptions getPricingOptions)Get the pricing for an object.com.ibm.cloud.sdk.core.http.ServiceCall<Visibility>getVisibility(GetVisibilityOptions getVisibilityOptions)Get the visibility constraints for an object.com.ibm.cloud.sdk.core.http.ServiceCall<Artifacts>listArtifacts(ListArtifactsOptions listArtifactsOptions)Get artifacts.com.ibm.cloud.sdk.core.http.ServiceCall<EntrySearchResult>listCatalogEntries()Returns parent catalog entries.com.ibm.cloud.sdk.core.http.ServiceCall<EntrySearchResult>listCatalogEntries(ListCatalogEntriesOptions listCatalogEntriesOptions)Returns parent catalog entries.static GlobalCatalognewInstance()Class method which constructs an instance of the `GlobalCatalog` client.static GlobalCatalognewInstance(java.lang.String serviceName)Class method which constructs an instance of the `GlobalCatalog` client.com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void>restoreCatalogEntry(RestoreCatalogEntryOptions restoreCatalogEntryOptions)Restore archived catalog entry.com.ibm.cloud.sdk.core.http.ServiceCall<CatalogEntry>updateCatalogEntry(UpdateCatalogEntryOptions updateCatalogEntryOptions)Update a catalog entry.com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void>updateVisibility(UpdateVisibilityOptions updateVisibilityOptions)Update visibility.com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void>uploadArtifact(UploadArtifactOptions uploadArtifactOptions)Upload artifact.-
Methods inherited from class com.ibm.cloud.sdk.core.service.BaseService
configureClient, configureService, constructServiceUrl, constructServiceURL, disableRetries, enableGzipCompression, enableRetries, getAuthenticator, getClient, getDefaultHeaders, getEndPoint, getName, getServiceUrl, isJsonMimeType, isJsonPatchMimeType, setClient, setDefaultHeaders, setEndPoint, setServiceUrl, toString
-
-
-
-
Field Detail
-
DEFAULT_SERVICE_NAME
public static final java.lang.String DEFAULT_SERVICE_NAME
- See Also:
- Constant Field Values
-
DEFAULT_SERVICE_URL
public static final java.lang.String DEFAULT_SERVICE_URL
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GlobalCatalog
public GlobalCatalog(java.lang.String serviceName, com.ibm.cloud.sdk.core.security.Authenticator authenticator)Constructs an instance of the `GlobalCatalog` client. The specified service name and authenticator are used to configure the client instance.- Parameters:
serviceName- the service name to be used when configuring the client instanceauthenticator- theAuthenticatorinstance to be configured for this client
-
-
Method Detail
-
newInstance
public static GlobalCatalog newInstance()
Class method which constructs an instance of the `GlobalCatalog` client. The default service name is used to configure the client instance.- Returns:
- an instance of the `GlobalCatalog` client using external configuration
-
newInstance
public static GlobalCatalog newInstance(java.lang.String serviceName)
Class method which constructs an instance of the `GlobalCatalog` client. The specified service name is used to configure the client instance.- Parameters:
serviceName- the service name to be used when configuring the client instance- Returns:
- an instance of the `GlobalCatalog` client using external configuration
-
listCatalogEntries
public com.ibm.cloud.sdk.core.http.ServiceCall<EntrySearchResult> listCatalogEntries(ListCatalogEntriesOptions listCatalogEntriesOptions)
Returns parent catalog entries. Includes key information, such as ID, name, kind, CRN, tags, and provider. This endpoint is ETag enabled.- Parameters:
listCatalogEntriesOptions- theListCatalogEntriesOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeEntrySearchResult
-
listCatalogEntries
public com.ibm.cloud.sdk.core.http.ServiceCall<EntrySearchResult> listCatalogEntries()
Returns parent catalog entries. Includes key information, such as ID, name, kind, CRN, tags, and provider. This endpoint is ETag enabled.- Returns:
- a
ServiceCallwith a result of typeEntrySearchResult
-
createCatalogEntry
public com.ibm.cloud.sdk.core.http.ServiceCall<CatalogEntry> createCatalogEntry(CreateCatalogEntryOptions createCatalogEntryOptions)
Create a catalog entry. The created catalog entry is restricted by default. You must have an administrator or editor role in the scope of the provided token. This API will return an ETag that can be used for standard ETag processing, except when depth query is used.- Parameters:
createCatalogEntryOptions- theCreateCatalogEntryOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeCatalogEntry
-
getCatalogEntry
public com.ibm.cloud.sdk.core.http.ServiceCall<CatalogEntry> getCatalogEntry(GetCatalogEntryOptions getCatalogEntryOptions)
Get a specific catalog object. This endpoint returns a specific catalog entry using the object's unique identifier, for example `/_*service_name*?complete=true`. This endpoint is ETag enabled. This can be used by an unauthenticated user for publicly available services.- Parameters:
getCatalogEntryOptions- theGetCatalogEntryOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeCatalogEntry
-
updateCatalogEntry
public com.ibm.cloud.sdk.core.http.ServiceCall<CatalogEntry> updateCatalogEntry(UpdateCatalogEntryOptions updateCatalogEntryOptions)
Update a catalog entry. Update a catalog entry. The visibility of the catalog entry cannot be modified with this endpoint. You must be an administrator or editor in the scope of the provided token. This endpoint is ETag enabled.- Parameters:
updateCatalogEntryOptions- theUpdateCatalogEntryOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeCatalogEntry
-
deleteCatalogEntry
public com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> deleteCatalogEntry(DeleteCatalogEntryOptions deleteCatalogEntryOptions)
Delete a catalog entry. Delete a catalog entry. This will archive the catalog entry for a minimum of two weeks. While archived, it can be restored using the PUT restore API. After two weeks, it will be deleted and cannot be restored. You must have administrator role in the scope of the provided token to modify it. This endpoint is ETag enabled.- Parameters:
deleteCatalogEntryOptions- theDeleteCatalogEntryOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a void result
-
getChildObjects
public com.ibm.cloud.sdk.core.http.ServiceCall<EntrySearchResult> getChildObjects(GetChildObjectsOptions getChildObjectsOptions)
Get child catalog entries of a specific kind. Fetch child catalog entries for a catalog entry with a specific id. This endpoint is ETag enabled. This can be used by an unauthenticated user for publicly available services.- Parameters:
getChildObjectsOptions- theGetChildObjectsOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeEntrySearchResult
-
restoreCatalogEntry
public com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> restoreCatalogEntry(RestoreCatalogEntryOptions restoreCatalogEntryOptions)
Restore archived catalog entry. Restore an archived catalog entry. You must have an administrator role in the scope of the provided token.- Parameters:
restoreCatalogEntryOptions- theRestoreCatalogEntryOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a void result
-
getVisibility
public com.ibm.cloud.sdk.core.http.ServiceCall<Visibility> getVisibility(GetVisibilityOptions getVisibilityOptions)
Get the visibility constraints for an object. This endpoint returns the visibility rules for this object. Overall visibility is determined by the parent objects and any further restrictions on this object. You must have an administrator role in the scope of the provided token. This endpoint is ETag enabled.- Parameters:
getVisibilityOptions- theGetVisibilityOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeVisibility
-
updateVisibility
public com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> updateVisibility(UpdateVisibilityOptions updateVisibilityOptions)
Update visibility. Update an Object's Visibility. You must have an administrator role in the scope of the provided token. This endpoint is ETag enabled.- Parameters:
updateVisibilityOptions- theUpdateVisibilityOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a void result
-
getPricing
public com.ibm.cloud.sdk.core.http.ServiceCall<PricingGet> getPricing(GetPricingOptions getPricingOptions)
Get the pricing for an object. This endpoint returns the pricing for an object. Static pricing is defined in the catalog. Dynamic pricing is stored in IBM Cloud Pricing Catalog. This can be used by an unauthenticated user for publicly available services.- Parameters:
getPricingOptions- theGetPricingOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typePricingGet
-
getAuditLogs
public com.ibm.cloud.sdk.core.http.ServiceCall<AuditSearchResult> getAuditLogs(GetAuditLogsOptions getAuditLogsOptions)
Get the audit logs for an object. This endpoint returns the audit logs for an object. Only administrators and editors can get logs.- Parameters:
getAuditLogsOptions- theGetAuditLogsOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeAuditSearchResult
-
listArtifacts
public com.ibm.cloud.sdk.core.http.ServiceCall<Artifacts> listArtifacts(ListArtifactsOptions listArtifactsOptions)
Get artifacts. This endpoint returns a list of artifacts for an object.- Parameters:
listArtifactsOptions- theListArtifactsOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeArtifacts
-
getArtifact
public com.ibm.cloud.sdk.core.http.ServiceCall<java.io.InputStream> getArtifact(GetArtifactOptions getArtifactOptions)
Get artifact. This endpoint returns the binary of an artifact.- Parameters:
getArtifactOptions- theGetArtifactOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeInputStream
-
uploadArtifact
public com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> uploadArtifact(UploadArtifactOptions uploadArtifactOptions)
Upload artifact. This endpoint uploads the binary for an artifact. Only administrators and editors can upload artifacts.- Parameters:
uploadArtifactOptions- theUploadArtifactOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a void result
-
deleteArtifact
public com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> deleteArtifact(DeleteArtifactOptions deleteArtifactOptions)
Delete artifact. This endpoint deletes an artifact. Only administrators and editors can delete artifacts.- Parameters:
deleteArtifactOptions- theDeleteArtifactOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a void result
-
-