public class UserAgentBlockingRules
extends com.ibm.cloud.sdk.core.service.BaseService
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_SERVICE_NAME |
static String |
DEFAULT_SERVICE_URL |
| Constructor and Description |
|---|
UserAgentBlockingRules(String crn,
String zoneIdentifier,
String serviceName,
com.ibm.cloud.sdk.core.security.Authenticator authenticator)
Constructs an instance of the `UserAgentBlockingRules` client.
|
| Modifier and Type | Method and Description |
|---|---|
com.ibm.cloud.sdk.core.http.ServiceCall<UseragentRuleResp> |
createZoneUserAgentRule()
Create user-agent blocking rule.
|
com.ibm.cloud.sdk.core.http.ServiceCall<UseragentRuleResp> |
createZoneUserAgentRule(CreateZoneUserAgentRuleOptions createZoneUserAgentRuleOptions)
Create user-agent blocking rule.
|
com.ibm.cloud.sdk.core.http.ServiceCall<DeleteUseragentRuleResp> |
deleteZoneUserAgentRule(DeleteZoneUserAgentRuleOptions deleteZoneUserAgentRuleOptions)
Delete user-agent blocking rule.
|
String |
getCrn()
Gets the crn.
|
com.ibm.cloud.sdk.core.http.ServiceCall<UseragentRuleResp> |
getUserAgentRule(GetUserAgentRuleOptions getUserAgentRuleOptions)
Get user-agent blocking rule.
|
String |
getZoneIdentifier()
Gets the zoneIdentifier.
|
com.ibm.cloud.sdk.core.http.ServiceCall<ListUseragentRulesResp> |
listAllZoneUserAgentRules()
List all user-agent blocking rules.
|
com.ibm.cloud.sdk.core.http.ServiceCall<ListUseragentRulesResp> |
listAllZoneUserAgentRules(ListAllZoneUserAgentRulesOptions listAllZoneUserAgentRulesOptions)
List all user-agent blocking rules.
|
static UserAgentBlockingRules |
newInstance(String crn,
String zoneIdentifier)
Class method which constructs an instance of the `UserAgentBlockingRules` client.
|
static UserAgentBlockingRules |
newInstance(String crn,
String zoneIdentifier,
String serviceName)
Class method which constructs an instance of the `UserAgentBlockingRules` client.
|
void |
setCrn(String crn)
Sets the crn.
|
void |
setZoneIdentifier(String zoneIdentifier)
Sets the zoneIdentifier.
|
com.ibm.cloud.sdk.core.http.ServiceCall<UseragentRuleResp> |
updateUserAgentRule(UpdateUserAgentRuleOptions updateUserAgentRuleOptions)
Update user-agent blocking rule.
|
configureClient, configureService, constructServiceUrl, constructServiceURL, disableRetries, enableGzipCompression, enableRetries, getAuthenticator, getClient, getEndPoint, getName, getServiceUrl, isJsonMimeType, isJsonPatchMimeType, setClient, setDefaultHeaders, setEndPoint, setServiceUrl, toStringpublic static final String DEFAULT_SERVICE_NAME
public static final String DEFAULT_SERVICE_URL
public UserAgentBlockingRules(String crn, String zoneIdentifier, String serviceName, com.ibm.cloud.sdk.core.security.Authenticator authenticator)
crn - Full url-encoded cloud resource name (CRN) of resource instance.zoneIdentifier - Zone identifier of the zone for which user-agent rule is created.serviceName - the service name to be used when configuring the client instanceauthenticator - the Authenticator instance to be configured for this clientpublic static UserAgentBlockingRules newInstance(String crn, String zoneIdentifier)
crn - Full url-encoded cloud resource name (CRN) of resource instance.zoneIdentifier - Zone identifier of the zone for which user-agent rule is created.public static UserAgentBlockingRules newInstance(String crn, String zoneIdentifier, String serviceName)
crn - Full url-encoded cloud resource name (CRN) of resource instance.zoneIdentifier - Zone identifier of the zone for which user-agent rule is created.serviceName - the service name to be used when configuring the client instancepublic String getCrn()
public void setCrn(String crn)
crn - the new crnpublic String getZoneIdentifier()
public void setZoneIdentifier(String zoneIdentifier)
zoneIdentifier - the new zoneIdentifierpublic com.ibm.cloud.sdk.core.http.ServiceCall<ListUseragentRulesResp> listAllZoneUserAgentRules(ListAllZoneUserAgentRulesOptions listAllZoneUserAgentRulesOptions)
listAllZoneUserAgentRulesOptions - the ListAllZoneUserAgentRulesOptions containing the options for the callServiceCall with a result of type ListUseragentRulesResppublic com.ibm.cloud.sdk.core.http.ServiceCall<ListUseragentRulesResp> listAllZoneUserAgentRules()
ServiceCall with a result of type ListUseragentRulesResppublic com.ibm.cloud.sdk.core.http.ServiceCall<UseragentRuleResp> createZoneUserAgentRule(CreateZoneUserAgentRuleOptions createZoneUserAgentRuleOptions)
createZoneUserAgentRuleOptions - the CreateZoneUserAgentRuleOptions containing the options for the callServiceCall with a result of type UseragentRuleResppublic com.ibm.cloud.sdk.core.http.ServiceCall<UseragentRuleResp> createZoneUserAgentRule()
ServiceCall with a result of type UseragentRuleResppublic com.ibm.cloud.sdk.core.http.ServiceCall<DeleteUseragentRuleResp> deleteZoneUserAgentRule(DeleteZoneUserAgentRuleOptions deleteZoneUserAgentRuleOptions)
deleteZoneUserAgentRuleOptions - the DeleteZoneUserAgentRuleOptions containing the options for the callServiceCall with a result of type DeleteUseragentRuleResppublic com.ibm.cloud.sdk.core.http.ServiceCall<UseragentRuleResp> getUserAgentRule(GetUserAgentRuleOptions getUserAgentRuleOptions)
getUserAgentRuleOptions - the GetUserAgentRuleOptions containing the options for the callServiceCall with a result of type UseragentRuleResppublic com.ibm.cloud.sdk.core.http.ServiceCall<UseragentRuleResp> updateUserAgentRule(UpdateUserAgentRuleOptions updateUserAgentRuleOptions)
updateUserAgentRuleOptions - the UpdateUserAgentRuleOptions containing the options for the callServiceCall with a result of type UseragentRuleRespCopyright © 2022 IBM Cloud Networking Services. All rights reserved.