GetCertificateLifecycleStateEnumValues Enumerates the set of values for LifecycleStatesEnum Consider using GetLifecycleStatesEnumValue Deprecated
var GetCertificateLifecycleStateEnumValues = GetLifecycleStatesEnumValues
GetCertificateSummaryLifecycleStateEnumValues Enumerates the set of values for LifecycleStatesEnum Consider using GetLifecycleStatesEnumValue Deprecated
var GetCertificateSummaryLifecycleStateEnumValues = GetLifecycleStatesEnumValues
GetWaasPolicyLifecycleStateEnumValues Enumerates the set of values for LifecycleStatesEnum Consider using GetLifecycleStatesEnumValue Deprecated
var GetWaasPolicyLifecycleStateEnumValues = GetLifecycleStatesEnumValues
GetWaasPolicySummaryLifecycleStateEnumValues Enumerates the set of values for LifecycleStatesEnum Consider using GetLifecycleStatesEnumValue Deprecated
var GetWaasPolicySummaryLifecycleStateEnumValues = GetLifecycleStatesEnumValues
GetWorkRequestOperationTypeEnumValues Enumerates the set of values for WorkRequestOperationTypesEnum Consider using GetWorkRequestOperationTypesEnumValue Deprecated
var GetWorkRequestOperationTypeEnumValues = GetWorkRequestOperationTypesEnumValues
GetWorkRequestStatusEnumValues Enumerates the set of values for WorkRequestStatusValuesEnum Consider using GetWorkRequestStatusValuesEnumValue Deprecated
var GetWorkRequestStatusEnumValues = GetWorkRequestStatusValuesEnumValues
GetWorkRequestSummaryOperationTypeEnumValues Enumerates the set of values for WorkRequestOperationTypesEnum Consider using GetWorkRequestOperationTypesEnumValue Deprecated
var GetWorkRequestSummaryOperationTypeEnumValues = GetWorkRequestOperationTypesEnumValues
GetWorkRequestSummaryStatusEnumValues Enumerates the set of values for WorkRequestStatusValuesEnum Consider using GetWorkRequestStatusValuesEnumValue Deprecated
var GetWorkRequestSummaryStatusEnumValues = GetWorkRequestStatusValuesEnumValues
func GetAccessRuleActionEnumStringValues() []string
GetAccessRuleActionEnumStringValues Enumerates the set of values in String for AccessRuleActionEnum
func GetAccessRuleBlockActionEnumStringValues() []string
GetAccessRuleBlockActionEnumStringValues Enumerates the set of values in String for AccessRuleBlockActionEnum
func GetAccessRuleBypassChallengesEnumStringValues() []string
GetAccessRuleBypassChallengesEnumStringValues Enumerates the set of values in String for AccessRuleBypassChallengesEnum
func GetAccessRuleCriteriaConditionEnumStringValues() []string
GetAccessRuleCriteriaConditionEnumStringValues Enumerates the set of values in String for AccessRuleCriteriaConditionEnum
func GetAccessRuleRedirectResponseCodeEnumStringValues() []string
GetAccessRuleRedirectResponseCodeEnumStringValues Enumerates the set of values in String for AccessRuleRedirectResponseCodeEnum
func GetBlockChallengeSettingsBlockActionEnumStringValues() []string
GetBlockChallengeSettingsBlockActionEnumStringValues Enumerates the set of values in String for BlockChallengeSettingsBlockActionEnum
func GetCachingRuleActionEnumStringValues() []string
GetCachingRuleActionEnumStringValues Enumerates the set of values in String for CachingRuleActionEnum
func GetCachingRuleCriteriaConditionEnumStringValues() []string
GetCachingRuleCriteriaConditionEnumStringValues Enumerates the set of values in String for CachingRuleCriteriaConditionEnum
func GetCachingRuleSummaryActionEnumStringValues() []string
GetCachingRuleSummaryActionEnumStringValues Enumerates the set of values in String for CachingRuleSummaryActionEnum
func GetCustomProtectionRuleSettingActionEnumStringValues() []string
GetCustomProtectionRuleSettingActionEnumStringValues Enumerates the set of values in String for CustomProtectionRuleSettingActionEnum
func GetDeviceFingerprintChallengeActionEnumStringValues() []string
GetDeviceFingerprintChallengeActionEnumStringValues Enumerates the set of values in String for DeviceFingerprintChallengeActionEnum
func GetHeaderManipulationActionActionEnumStringValues() []string
GetHeaderManipulationActionActionEnumStringValues Enumerates the set of values in String for HeaderManipulationActionActionEnum
func GetHealthCheckExpectedResponseCodeGroupEnumStringValues() []string
GetHealthCheckExpectedResponseCodeGroupEnumStringValues Enumerates the set of values in String for HealthCheckExpectedResponseCodeGroupEnum
func GetHealthCheckMethodEnumStringValues() []string
GetHealthCheckMethodEnumStringValues Enumerates the set of values in String for HealthCheckMethodEnum
func GetHttpRedirectTargetProtocolEnumStringValues() []string
GetHttpRedirectTargetProtocolEnumStringValues Enumerates the set of values in String for HttpRedirectTargetProtocolEnum
func GetHumanInteractionChallengeActionEnumStringValues() []string
GetHumanInteractionChallengeActionEnumStringValues Enumerates the set of values in String for HumanInteractionChallengeActionEnum
func GetJsChallengeActionEnumStringValues() []string
GetJsChallengeActionEnumStringValues Enumerates the set of values in String for JsChallengeActionEnum
func GetLifecycleStatesEnumStringValues() []string
GetLifecycleStatesEnumStringValues Enumerates the set of values in String for LifecycleStatesEnum
func GetListAddressListsSortByEnumStringValues() []string
GetListAddressListsSortByEnumStringValues Enumerates the set of values in String for ListAddressListsSortByEnum
func GetListAddressListsSortOrderEnumStringValues() []string
GetListAddressListsSortOrderEnumStringValues Enumerates the set of values in String for ListAddressListsSortOrderEnum
func GetListCertificatesSortByEnumStringValues() []string
GetListCertificatesSortByEnumStringValues Enumerates the set of values in String for ListCertificatesSortByEnum
func GetListCertificatesSortOrderEnumStringValues() []string
GetListCertificatesSortOrderEnumStringValues Enumerates the set of values in String for ListCertificatesSortOrderEnum
func GetListCustomProtectionRulesSortByEnumStringValues() []string
GetListCustomProtectionRulesSortByEnumStringValues Enumerates the set of values in String for ListCustomProtectionRulesSortByEnum
func GetListCustomProtectionRulesSortOrderEnumStringValues() []string
GetListCustomProtectionRulesSortOrderEnumStringValues Enumerates the set of values in String for ListCustomProtectionRulesSortOrderEnum
func GetListEdgeSubnetsSortByEnumStringValues() []string
GetListEdgeSubnetsSortByEnumStringValues Enumerates the set of values in String for ListEdgeSubnetsSortByEnum
func GetListEdgeSubnetsSortOrderEnumStringValues() []string
GetListEdgeSubnetsSortOrderEnumStringValues Enumerates the set of values in String for ListEdgeSubnetsSortOrderEnum
func GetListHttpRedirectsSortByEnumStringValues() []string
GetListHttpRedirectsSortByEnumStringValues Enumerates the set of values in String for ListHttpRedirectsSortByEnum
func GetListHttpRedirectsSortOrderEnumStringValues() []string
GetListHttpRedirectsSortOrderEnumStringValues Enumerates the set of values in String for ListHttpRedirectsSortOrderEnum
func GetListProtectionRulesActionEnumStringValues() []string
GetListProtectionRulesActionEnumStringValues Enumerates the set of values in String for ListProtectionRulesActionEnum
func GetListRecommendationsRecommendedActionEnumStringValues() []string
GetListRecommendationsRecommendedActionEnumStringValues Enumerates the set of values in String for ListRecommendationsRecommendedActionEnum
func GetListWaasPoliciesSortByEnumStringValues() []string
GetListWaasPoliciesSortByEnumStringValues Enumerates the set of values in String for ListWaasPoliciesSortByEnum
func GetListWaasPoliciesSortOrderEnumStringValues() []string
GetListWaasPoliciesSortOrderEnumStringValues Enumerates the set of values in String for ListWaasPoliciesSortOrderEnum
func GetListWaasPolicyCustomProtectionRulesActionEnumStringValues() []string
GetListWaasPolicyCustomProtectionRulesActionEnumStringValues Enumerates the set of values in String for ListWaasPolicyCustomProtectionRulesActionEnum
func GetListWafBlockedRequestsWafFeatureEnumStringValues() []string
GetListWafBlockedRequestsWafFeatureEnumStringValues Enumerates the set of values in String for ListWafBlockedRequestsWafFeatureEnum
func GetListWafLogsActionEnumStringValues() []string
GetListWafLogsActionEnumStringValues Enumerates the set of values in String for ListWafLogsActionEnum
func GetListWafLogsHttpMethodEnumStringValues() []string
GetListWafLogsHttpMethodEnumStringValues Enumerates the set of values in String for ListWafLogsHttpMethodEnum
func GetListWafLogsLogTypeEnumStringValues() []string
GetListWafLogsLogTypeEnumStringValues Enumerates the set of values in String for ListWafLogsLogTypeEnum
func GetListWorkRequestsSortByEnumStringValues() []string
GetListWorkRequestsSortByEnumStringValues Enumerates the set of values in String for ListWorkRequestsSortByEnum
func GetListWorkRequestsSortOrderEnumStringValues() []string
GetListWorkRequestsSortOrderEnumStringValues Enumerates the set of values in String for ListWorkRequestsSortOrderEnum
func GetLoadBalancingMethodMethodEnumStringValues() []string
GetLoadBalancingMethodMethodEnumStringValues Enumerates the set of values in String for LoadBalancingMethodMethodEnum
func GetPolicyConfigCipherGroupEnumStringValues() []string
GetPolicyConfigCipherGroupEnumStringValues Enumerates the set of values in String for PolicyConfigCipherGroupEnum
func GetPolicyConfigClientAddressHeaderEnumStringValues() []string
GetPolicyConfigClientAddressHeaderEnumStringValues Enumerates the set of values in String for PolicyConfigClientAddressHeaderEnum
func GetPolicyConfigTlsProtocolsEnumStringValues() []string
GetPolicyConfigTlsProtocolsEnumStringValues Enumerates the set of values in String for PolicyConfigTlsProtocolsEnum
func GetProtectionRuleActionActionEnumStringValues() []string
GetProtectionRuleActionActionEnumStringValues Enumerates the set of values in String for ProtectionRuleActionActionEnum
func GetProtectionRuleActionEnumStringValues() []string
GetProtectionRuleActionEnumStringValues Enumerates the set of values in String for ProtectionRuleActionEnum
func GetProtectionRuleExclusionTargetEnumStringValues() []string
GetProtectionRuleExclusionTargetEnumStringValues Enumerates the set of values in String for ProtectionRuleExclusionTargetEnum
func GetProtectionSettingsAllowedHttpMethodsEnumStringValues() []string
GetProtectionSettingsAllowedHttpMethodsEnumStringValues Enumerates the set of values in String for ProtectionSettingsAllowedHttpMethodsEnum
func GetProtectionSettingsBlockActionEnumStringValues() []string
GetProtectionSettingsBlockActionEnumStringValues Enumerates the set of values in String for ProtectionSettingsBlockActionEnum
func GetThreatFeedActionActionEnumStringValues() []string
GetThreatFeedActionActionEnumStringValues Enumerates the set of values in String for ThreatFeedActionActionEnum
func GetThreatFeedActionEnumStringValues() []string
GetThreatFeedActionEnumStringValues Enumerates the set of values in String for ThreatFeedActionEnum
func GetWaasPolicyCustomProtectionRuleSummaryActionEnumStringValues() []string
GetWaasPolicyCustomProtectionRuleSummaryActionEnumStringValues Enumerates the set of values in String for WaasPolicyCustomProtectionRuleSummaryActionEnum
func GetWafBlockedRequestWafFeatureEnumStringValues() []string
GetWafBlockedRequestWafFeatureEnumStringValues Enumerates the set of values in String for WafBlockedRequestWafFeatureEnum
func GetWorkRequestOperationTypesEnumStringValues() []string
GetWorkRequestOperationTypesEnumStringValues Enumerates the set of values in String for WorkRequestOperationTypesEnum
func GetWorkRequestResourceActionTypeEnumStringValues() []string
GetWorkRequestResourceActionTypeEnumStringValues Enumerates the set of values in String for WorkRequestResourceActionTypeEnum
func GetWorkRequestStatusValuesEnumStringValues() []string
GetWorkRequestStatusValuesEnumStringValues Enumerates the set of values in String for WorkRequestStatusValuesEnum
AcceptRecommendationsRequest wrapper for the AcceptRecommendations operation
# See also
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.54.0/waas/AcceptRecommendations.go.html to see an example of how to use AcceptRecommendationsRequest.
type AcceptRecommendationsRequest struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the WAAS policy. WaasPolicyId *string `mandatory:"true" contributesTo:"path" name:"waasPolicyId"` ProtectionRuleKeys *[]string `mandatory:"true" contributesTo:"body"` // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // For optimistic concurrency control. In the `PUT` or `DELETE` call for a resource, set the `if-match` parameter to the value of the etag from a previous `GET` or `POST` response for that resource. The resource will be updated or deleted only if the etag provided matches the resource's current etag value. IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request AcceptRecommendationsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request AcceptRecommendationsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request AcceptRecommendationsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request AcceptRecommendationsRequest) String() string
func (request AcceptRecommendationsRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
AcceptRecommendationsResponse wrapper for the AcceptRecommendations operation
type AcceptRecommendationsResponse struct { // The underlying http response RawResponse *http.Response // A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` }
func (response AcceptRecommendationsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response AcceptRecommendationsResponse) String() string
AccessRule A content access rule. An access rule specifies an action to take if a set of criteria is matched by a request.
type AccessRule struct { // The unique name of the access rule. Name *string `mandatory:"true" json:"name"` // The list of access rule criteria. The rule would be applied only for the requests that matched all the listed conditions. Criteria []AccessRuleCriteria `mandatory:"true" json:"criteria"` // The action to take when the access criteria are met for a rule. If unspecified, defaults to `ALLOW`. // - **ALLOW:** Takes no action, just logs the request. // - **DETECT:** Takes no action, but creates an alert for the request. // - **BLOCK:** Blocks the request by returning specified response code or showing error page. // - **BYPASS:** Bypasses some or all challenges. // - **REDIRECT:** Redirects the request to the specified URL. These fields are required when `REDIRECT` is selected: `redirectUrl`, `redirectResponseCode`. // - **SHOW_CAPTCHA:** Show a CAPTCHA Challenge page instead of the requested page. // Regardless of action, no further rules are processed once a rule is matched. Action AccessRuleActionEnum `mandatory:"true" json:"action"` // The method used to block requests if `action` is set to `BLOCK` and the access criteria are met. If unspecified, defaults to `SET_RESPONSE_CODE`. BlockAction AccessRuleBlockActionEnum `mandatory:"false" json:"blockAction,omitempty"` // The response status code to return when `action` is set to `BLOCK`, `blockAction` is set to `SET_RESPONSE_CODE`, and the access criteria are met. If unspecified, defaults to `403`. The list of available response codes: `200`, `201`, `202`, `204`, `206`, `300`, `301`, `302`, `303`, `304`, `307`, `400`, `401`, `403`, `404`, `405`, `408`, `409`, `411`, `412`, `413`, `414`, `415`, `416`, `422`, `444`, `494`, `495`, `496`, `497`, `499`, `500`, `501`, `502`, `503`, `504`, `507`. BlockResponseCode *int `mandatory:"false" json:"blockResponseCode"` // The message to show on the error page when `action` is set to `BLOCK`, `blockAction` is set to `SHOW_ERROR_PAGE`, and the access criteria are met. If unspecified, defaults to 'Access to the website is blocked.' BlockErrorPageMessage *string `mandatory:"false" json:"blockErrorPageMessage"` // The error code to show on the error page when `action` is set to `BLOCK`, `blockAction` is set to `SHOW_ERROR_PAGE`, and the access criteria are met. If unspecified, defaults to 'Access rules'. BlockErrorPageCode *string `mandatory:"false" json:"blockErrorPageCode"` // The description text to show on the error page when `action` is set to `BLOCK`, `blockAction` is set to `SHOW_ERROR_PAGE`, and the access criteria are met. If unspecified, defaults to 'Access blocked by website owner. Please contact support.' BlockErrorPageDescription *string `mandatory:"false" json:"blockErrorPageDescription"` // The list of challenges to bypass when `action` is set to `BYPASS`. If unspecified or empty, all challenges are bypassed. // - **JS_CHALLENGE:** Bypasses JavaScript Challenge. // - **DEVICE_FINGERPRINT_CHALLENGE:** Bypasses Device Fingerprint Challenge. // - **HUMAN_INTERACTION_CHALLENGE:** Bypasses Human Interaction Challenge. // - **CAPTCHA:** Bypasses CAPTCHA Challenge. BypassChallenges []AccessRuleBypassChallengesEnum `mandatory:"false" json:"bypassChallenges,omitempty"` // The target to which the request should be redirected, represented as a URI reference. Required when `action` is `REDIRECT`. RedirectUrl *string `mandatory:"false" json:"redirectUrl"` // The response status code to return when `action` is set to `REDIRECT`. // - **MOVED_PERMANENTLY:** Used for designating the permanent movement of a page (numerical code - 301). // - **FOUND:** Used for designating the temporary movement of a page (numerical code - 302). RedirectResponseCode AccessRuleRedirectResponseCodeEnum `mandatory:"false" json:"redirectResponseCode,omitempty"` // The title used when showing a CAPTCHA challenge when `action` is set to `SHOW_CAPTCHA` and the request is challenged. CaptchaTitle *string `mandatory:"false" json:"captchaTitle"` // The text to show in the header when showing a CAPTCHA challenge when `action` is set to `SHOW_CAPTCHA` and the request is challenged. CaptchaHeader *string `mandatory:"false" json:"captchaHeader"` // The text to show in the footer when showing a CAPTCHA challenge when `action` is set to `SHOW_CAPTCHA` and the request is challenged. CaptchaFooter *string `mandatory:"false" json:"captchaFooter"` // The text to show on the label of the CAPTCHA challenge submit button when `action` is set to `SHOW_CAPTCHA` and the request is challenged. CaptchaSubmitLabel *string `mandatory:"false" json:"captchaSubmitLabel"` // An object that represents an action to apply to an HTTP response headers if all rule criteria will be matched regardless of `action` value. ResponseHeaderManipulation []HeaderManipulationAction `mandatory:"false" json:"responseHeaderManipulation"` }
func (m AccessRule) String() string
func (m *AccessRule) UnmarshalJSON(data []byte) (e error)
UnmarshalJSON unmarshals from json
func (m AccessRule) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
AccessRuleActionEnum Enum with underlying type: string
type AccessRuleActionEnum string
Set of constants representing the allowable values for AccessRuleActionEnum
const ( AccessRuleActionAllow AccessRuleActionEnum = "ALLOW" AccessRuleActionDetect AccessRuleActionEnum = "DETECT" AccessRuleActionBlock AccessRuleActionEnum = "BLOCK" AccessRuleActionBypass AccessRuleActionEnum = "BYPASS" AccessRuleActionRedirect AccessRuleActionEnum = "REDIRECT" AccessRuleActionShowCaptcha AccessRuleActionEnum = "SHOW_CAPTCHA" )
func GetAccessRuleActionEnumValues() []AccessRuleActionEnum
GetAccessRuleActionEnumValues Enumerates the set of values for AccessRuleActionEnum
func GetMappingAccessRuleActionEnum(val string) (AccessRuleActionEnum, bool)
GetMappingAccessRuleActionEnum performs case Insensitive comparison on enum value and return the desired enum
AccessRuleBlockActionEnum Enum with underlying type: string
type AccessRuleBlockActionEnum string
Set of constants representing the allowable values for AccessRuleBlockActionEnum
const ( AccessRuleBlockActionSetResponseCode AccessRuleBlockActionEnum = "SET_RESPONSE_CODE" AccessRuleBlockActionShowErrorPage AccessRuleBlockActionEnum = "SHOW_ERROR_PAGE" )
func GetAccessRuleBlockActionEnumValues() []AccessRuleBlockActionEnum
GetAccessRuleBlockActionEnumValues Enumerates the set of values for AccessRuleBlockActionEnum
func GetMappingAccessRuleBlockActionEnum(val string) (AccessRuleBlockActionEnum, bool)
GetMappingAccessRuleBlockActionEnum performs case Insensitive comparison on enum value and return the desired enum
AccessRuleBypassChallengesEnum Enum with underlying type: string
type AccessRuleBypassChallengesEnum string
Set of constants representing the allowable values for AccessRuleBypassChallengesEnum
const ( AccessRuleBypassChallengesJsChallenge AccessRuleBypassChallengesEnum = "JS_CHALLENGE" AccessRuleBypassChallengesDeviceFingerprintChallenge AccessRuleBypassChallengesEnum = "DEVICE_FINGERPRINT_CHALLENGE" AccessRuleBypassChallengesHumanInteractionChallenge AccessRuleBypassChallengesEnum = "HUMAN_INTERACTION_CHALLENGE" AccessRuleBypassChallengesCaptcha AccessRuleBypassChallengesEnum = "CAPTCHA" )
func GetAccessRuleBypassChallengesEnumValues() []AccessRuleBypassChallengesEnum
GetAccessRuleBypassChallengesEnumValues Enumerates the set of values for AccessRuleBypassChallengesEnum
func GetMappingAccessRuleBypassChallengesEnum(val string) (AccessRuleBypassChallengesEnum, bool)
GetMappingAccessRuleBypassChallengesEnum performs case Insensitive comparison on enum value and return the desired enum
AccessRuleCriteria When defined, the parent challenge would be applied only for the requests that matched all the listed conditions.
type AccessRuleCriteria struct { // The criteria the access rule and JavaScript Challenge uses to determine if action should be taken on a request. // - **URL_IS:** Matches if the concatenation of request URL path and query is identical to the contents of the `value` field. URL must start with a `/`. // - **URL_IS_NOT:** Matches if the concatenation of request URL path and query is not identical to the contents of the `value` field. URL must start with a `/`. // - **URL_STARTS_WITH:** Matches if the concatenation of request URL path and query starts with the contents of the `value` field. URL must start with a `/`. // - **URL_PART_ENDS_WITH:** Matches if the concatenation of request URL path and query ends with the contents of the `value` field. // - **URL_PART_CONTAINS:** Matches if the concatenation of request URL path and query contains the contents of the `value` field. // - **URL_REGEX:** Matches if the concatenation of request URL path and query is described by the regular expression in the value field. The value must be a valid regular expression recognized by the PCRE library in Nginx (https://www.pcre.org). // - **URL_DOES_NOT_MATCH_REGEX:** Matches if the concatenation of request URL path and query is not described by the regular expression in the `value` field. The value must be a valid regular expression recognized by the PCRE library in Nginx (https://www.pcre.org). // - **URL_DOES_NOT_START_WITH:** Matches if the concatenation of request URL path and query does not start with the contents of the `value` field. // - **URL_PART_DOES_NOT_CONTAIN:** Matches if the concatenation of request URL path and query does not contain the contents of the `value` field. // - **URL_PART_DOES_NOT_END_WITH:** Matches if the concatenation of request URL path and query does not end with the contents of the `value` field. // - **IP_IS:** Matches if the request originates from one of the IP addresses contained in the defined address list. The `value` in this case is string with one or multiple IPs or CIDR notations separated by new line symbol \n // *Example:* "1.1.1.1\n1.1.1.2\n1.2.2.1/30" // - **IP_IS_NOT:** Matches if the request does not originate from any of the IP addresses contained in the defined address list. The `value` in this case is string with one or multiple IPs or CIDR notations separated by new line symbol \n // *Example:* "1.1.1.1\n1.1.1.2\n1.2.2.1/30" // - **IP_IN_LIST:** Matches if the request originates from one of the IP addresses contained in the referenced address list. The `value` in this case is OCID of the address list. // - **IP_NOT_IN_LIST:** Matches if the request does not originate from any IP address contained in the referenced address list. The `value` field in this case is OCID of the address list. // - **HTTP_HEADER_CONTAINS:** The HTTP_HEADER_CONTAINS criteria is defined using a compound value separated by a colon: a header field name and a header field value. `host:test.example.com` is an example of a criteria value where `host` is the header field name and `test.example.com` is the header field value. A request matches when the header field name is a case insensitive match and the header field value is a case insensitive, substring match. // *Example:* With a criteria value of `host:test.example.com`, where `host` is the name of the field and `test.example.com` is the value of the host field, a request with the header values, `Host: www.test.example.com` will match, where as a request with header values of `host: www.example.com` or `host: test.sub.example.com` will not match. // - **HTTP_METHOD_IS:** Matches if the request method is identical to one of the values listed in field. The `value` in this case is string with one or multiple HTTP methods separated by new line symbol \n The list of available methods: `GET`, `HEAD`, `POST`, `PUT`, `DELETE`, `CONNECT`, `OPTIONS`, `TRACE`, `PATCH` // *Example:* "GET\nPOST" // - **HTTP_METHOD_IS_NOT:** Matches if the request is not identical to any of the contents of the `value` field. The `value` in this case is string with one or multiple HTTP methods separated by new line symbol \n The list of available methods: `GET`, `HEAD`, `POST`, `PUT`, `DELETE`, `CONNECT`, `OPTIONS`, `TRACE`, `PATCH` // *Example:* "GET\nPOST" // - **COUNTRY_IS:** Matches if the request originates from one of countries in the `value` field. The `value` in this case is string with one or multiple countries separated by new line symbol \n Country codes are in ISO 3166-1 alpha-2 format. For a list of codes, see ISO's website (https://www.iso.org/obp/ui/#search/code/). // *Example:* "AL\nDZ\nAM" // - **COUNTRY_IS_NOT:** Matches if the request does not originate from any of countries in the `value` field. The `value` in this case is string with one or multiple countries separated by new line symbol \n Country codes are in ISO 3166-1 alpha-2 format. For a list of codes, see ISO's website (https://www.iso.org/obp/ui/#search/code/). // *Example:* "AL\nDZ\nAM" // - **USER_AGENT_IS:** Matches if the requesting user agent is identical to the contents of the `value` field. // *Example:* `Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:35.0) Gecko/20100101 Firefox/35.0` // - **USER_AGENT_IS_NOT:** Matches if the requesting user agent is not identical to the contents of the `value` field. // *Example:* `Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:35.0) Gecko/20100101 Firefox/35.0` Condition AccessRuleCriteriaConditionEnum `mandatory:"true" json:"condition"` // The criteria value. Value *string `mandatory:"true" json:"value"` // When enabled, the condition will be matched with case-sensitive rules. IsCaseSensitive *bool `mandatory:"false" json:"isCaseSensitive"` }
func (m AccessRuleCriteria) String() string
func (m AccessRuleCriteria) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
AccessRuleCriteriaConditionEnum Enum with underlying type: string
type AccessRuleCriteriaConditionEnum string
Set of constants representing the allowable values for AccessRuleCriteriaConditionEnum
const ( AccessRuleCriteriaConditionUrlIs AccessRuleCriteriaConditionEnum = "URL_IS" AccessRuleCriteriaConditionUrlIsNot AccessRuleCriteriaConditionEnum = "URL_IS_NOT" AccessRuleCriteriaConditionUrlStartsWith AccessRuleCriteriaConditionEnum = "URL_STARTS_WITH" AccessRuleCriteriaConditionUrlPartEndsWith AccessRuleCriteriaConditionEnum = "URL_PART_ENDS_WITH" AccessRuleCriteriaConditionUrlPartContains AccessRuleCriteriaConditionEnum = "URL_PART_CONTAINS" AccessRuleCriteriaConditionUrlRegex AccessRuleCriteriaConditionEnum = "URL_REGEX" AccessRuleCriteriaConditionUrlDoesNotMatchRegex AccessRuleCriteriaConditionEnum = "URL_DOES_NOT_MATCH_REGEX" AccessRuleCriteriaConditionUrlDoesNotStartWith AccessRuleCriteriaConditionEnum = "URL_DOES_NOT_START_WITH" AccessRuleCriteriaConditionUrlPartDoesNotContain AccessRuleCriteriaConditionEnum = "URL_PART_DOES_NOT_CONTAIN" AccessRuleCriteriaConditionUrlPartDoesNotEndWith AccessRuleCriteriaConditionEnum = "URL_PART_DOES_NOT_END_WITH" AccessRuleCriteriaConditionIpIs AccessRuleCriteriaConditionEnum = "IP_IS" AccessRuleCriteriaConditionIpIsNot AccessRuleCriteriaConditionEnum = "IP_IS_NOT" AccessRuleCriteriaConditionIpInList AccessRuleCriteriaConditionEnum = "IP_IN_LIST" AccessRuleCriteriaConditionIpNotInList AccessRuleCriteriaConditionEnum = "IP_NOT_IN_LIST" AccessRuleCriteriaConditionHttpHeaderContains AccessRuleCriteriaConditionEnum = "HTTP_HEADER_CONTAINS" AccessRuleCriteriaConditionHttpMethodIs AccessRuleCriteriaConditionEnum = "HTTP_METHOD_IS" AccessRuleCriteriaConditionHttpMethodIsNot AccessRuleCriteriaConditionEnum = "HTTP_METHOD_IS_NOT" AccessRuleCriteriaConditionCountryIs AccessRuleCriteriaConditionEnum = "COUNTRY_IS" AccessRuleCriteriaConditionCountryIsNot AccessRuleCriteriaConditionEnum = "COUNTRY_IS_NOT" AccessRuleCriteriaConditionUserAgentIs AccessRuleCriteriaConditionEnum = "USER_AGENT_IS" AccessRuleCriteriaConditionUserAgentIsNot AccessRuleCriteriaConditionEnum = "USER_AGENT_IS_NOT" )
func GetAccessRuleCriteriaConditionEnumValues() []AccessRuleCriteriaConditionEnum
GetAccessRuleCriteriaConditionEnumValues Enumerates the set of values for AccessRuleCriteriaConditionEnum
func GetMappingAccessRuleCriteriaConditionEnum(val string) (AccessRuleCriteriaConditionEnum, bool)
GetMappingAccessRuleCriteriaConditionEnum performs case Insensitive comparison on enum value and return the desired enum
AccessRuleRedirectResponseCodeEnum Enum with underlying type: string
type AccessRuleRedirectResponseCodeEnum string
Set of constants representing the allowable values for AccessRuleRedirectResponseCodeEnum
const ( AccessRuleRedirectResponseCodeMovedPermanently AccessRuleRedirectResponseCodeEnum = "MOVED_PERMANENTLY" AccessRuleRedirectResponseCodeFound AccessRuleRedirectResponseCodeEnum = "FOUND" )
func GetAccessRuleRedirectResponseCodeEnumValues() []AccessRuleRedirectResponseCodeEnum
GetAccessRuleRedirectResponseCodeEnumValues Enumerates the set of values for AccessRuleRedirectResponseCodeEnum
func GetMappingAccessRuleRedirectResponseCodeEnum(val string) (AccessRuleRedirectResponseCodeEnum, bool)
GetMappingAccessRuleRedirectResponseCodeEnum performs case Insensitive comparison on enum value and return the desired enum
AddHttpResponseHeaderAction An object that represents the action of replacing or adding a header field. All prior occurrences of the header with the given name are removed and then the header field with specified value is added.
type AddHttpResponseHeaderAction struct { // A header field name that conforms to RFC 7230. // Example: `example_header_name` Header *string `mandatory:"true" json:"header"` // A header field value that conforms to RFC 7230. // Example: `example_value` Value *string `mandatory:"true" json:"value"` }
func (m AddHttpResponseHeaderAction) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m AddHttpResponseHeaderAction) String() string
func (m AddHttpResponseHeaderAction) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
AddressList The details of the address list.
type AddressList struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the address list. Id *string `mandatory:"false" json:"id"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the address list's compartment. CompartmentId *string `mandatory:"false" json:"compartmentId"` // The user-friendly name of the address list. DisplayName *string `mandatory:"false" json:"displayName"` // The total number of unique IP addresses in the address list. AddressCount *float32 `mandatory:"false" json:"addressCount"` // The list of IP addresses or CIDR notations. Addresses []string `mandatory:"false" json:"addresses"` // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` // Defined tags for this resource. Each key is predefined and scoped to a namespace. // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` // The current lifecycle state of the address list. LifecycleState LifecycleStatesEnum `mandatory:"false" json:"lifecycleState,omitempty"` // The date and time the address list was created, expressed in RFC 3339 timestamp format. TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` }
func (m AddressList) String() string
func (m AddressList) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
AddressListSummary A summary of the address list's information.
type AddressListSummary struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the address list. Id *string `mandatory:"false" json:"id"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the address list's compartment. CompartmentId *string `mandatory:"false" json:"compartmentId"` // The user-friendly name of the address list. DisplayName *string `mandatory:"false" json:"displayName"` // The total number of unique IP addresses in the address list. AddressCount *float32 `mandatory:"false" json:"addressCount"` // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` // Defined tags for this resource. Each key is predefined and scoped to a namespace. // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` // The current lifecycle state of the address list. LifecycleState LifecycleStatesEnum `mandatory:"false" json:"lifecycleState,omitempty"` // The date and time the address list was created, in the format defined by RFC3339. TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` }
func (m AddressListSummary) String() string
func (m AddressListSummary) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
AddressRateLimiting The IP rate limiting configuration. Defines the amount of allowed requests from a unique IP address and the resulting block response code when that threshold is exceeded.
type AddressRateLimiting struct { // Enables or disables the address rate limiting Web Application Firewall feature. IsEnabled *bool `mandatory:"true" json:"isEnabled"` // The number of allowed requests per second from one IP address. If unspecified, defaults to `1`. AllowedRatePerAddress *int `mandatory:"false" json:"allowedRatePerAddress"` // The maximum number of requests allowed to be queued before subsequent requests are dropped. If unspecified, defaults to `10`. MaxDelayedCountPerAddress *int `mandatory:"false" json:"maxDelayedCountPerAddress"` // The response status code returned when a request is blocked. If unspecified, defaults to `503`. The list of available response codes: `400`, `401`, `403`, `404`, `405`, `408`, `409`, `411`, `412`, `413`, `414`, `415`, `416`, `422`, `494`, `495`, `496`, `497`, `499`, `500`, `501`, `502`, `503`, `504`, `507`. BlockResponseCode *int `mandatory:"false" json:"blockResponseCode"` }
func (m AddressRateLimiting) String() string
func (m AddressRateLimiting) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
BlockChallengeSettings The challenge settings if `action` is set to `BLOCK`.
type BlockChallengeSettings struct { // The method used to block requests that fail the challenge, if `action` is set to `BLOCK`. If unspecified, defaults to `SHOW_ERROR_PAGE`. BlockAction BlockChallengeSettingsBlockActionEnum `mandatory:"false" json:"blockAction,omitempty"` // The response status code to return when `action` is set to `BLOCK`, `blockAction` is set to `SET_RESPONSE_CODE` or `SHOW_ERROR_PAGE`, and the request is blocked. If unspecified, defaults to `403`. The list of available response codes: `200`, `201`, `202`, `204`, `206`, `300`, `301`, `302`, `303`, `304`, `307`, `400`, `401`, `403`, `404`, `405`, `408`, `409`, `411`, `412`, `413`, `414`, `415`, `416`, `422`, `444`, `494`, `495`, `496`, `497`, `499`, `500`, `501`, `502`, `503`, `504`, `507`. BlockResponseCode *int `mandatory:"false" json:"blockResponseCode"` // The message to show on the error page when `action` is set to `BLOCK`, `blockAction` is set to `SHOW_ERROR_PAGE`, and the request is blocked. If unspecified, defaults to `Access to the website is blocked`. BlockErrorPageMessage *string `mandatory:"false" json:"blockErrorPageMessage"` // The description text to show on the error page when `action` is set to `BLOCK`, `blockAction` is set to `SHOW_ERROR_PAGE`, and the request is blocked. If unspecified, defaults to `Access blocked by website owner. Please contact support.` BlockErrorPageDescription *string `mandatory:"false" json:"blockErrorPageDescription"` // The error code to show on the error page when `action` is set to `BLOCK`, `blockAction` is set to `SHOW_ERROR_PAGE` and the request is blocked. If unspecified, defaults to `403`. BlockErrorPageCode *string `mandatory:"false" json:"blockErrorPageCode"` // The title used when showing a CAPTCHA challenge when `action` is set to `BLOCK`, `blockAction` is set to `SHOW_CAPTCHA`, and the request is blocked. If unspecified, defaults to `Are you human?` CaptchaTitle *string `mandatory:"false" json:"captchaTitle"` // The text to show in the header when showing a CAPTCHA challenge when `action` is set to `BLOCK`, `blockAction` is set to `SHOW_CAPTCHA`, and the request is blocked. If unspecified, defaults to `We have detected an increased number of attempts to access this webapp. To help us keep this webapp secure, please let us know that you are not a robot by entering the text from captcha below.` CaptchaHeader *string `mandatory:"false" json:"captchaHeader"` // The text to show in the footer when showing a CAPTCHA challenge when `action` is set to `BLOCK`, `blockAction` is set to `SHOW_CAPTCHA`, and the request is blocked. If unspecified, default to `Enter the letters and numbers as they are shown in image above`. CaptchaFooter *string `mandatory:"false" json:"captchaFooter"` // The text to show on the label of the CAPTCHA challenge submit button when `action` is set to `BLOCK`, `blockAction` is set to `SHOW_CAPTCHA`, and the request is blocked. If unspecified, defaults to `Yes, I am human`. CaptchaSubmitLabel *string `mandatory:"false" json:"captchaSubmitLabel"` }
func (m BlockChallengeSettings) String() string
func (m BlockChallengeSettings) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
BlockChallengeSettingsBlockActionEnum Enum with underlying type: string
type BlockChallengeSettingsBlockActionEnum string
Set of constants representing the allowable values for BlockChallengeSettingsBlockActionEnum
const ( BlockChallengeSettingsBlockActionSetResponseCode BlockChallengeSettingsBlockActionEnum = "SET_RESPONSE_CODE" BlockChallengeSettingsBlockActionShowErrorPage BlockChallengeSettingsBlockActionEnum = "SHOW_ERROR_PAGE" BlockChallengeSettingsBlockActionShowCaptcha BlockChallengeSettingsBlockActionEnum = "SHOW_CAPTCHA" )
func GetBlockChallengeSettingsBlockActionEnumValues() []BlockChallengeSettingsBlockActionEnum
GetBlockChallengeSettingsBlockActionEnumValues Enumerates the set of values for BlockChallengeSettingsBlockActionEnum
func GetMappingBlockChallengeSettingsBlockActionEnum(val string) (BlockChallengeSettingsBlockActionEnum, bool)
GetMappingBlockChallengeSettingsBlockActionEnum performs case Insensitive comparison on enum value and return the desired enum
CachingRule The representation of CachingRule
type CachingRule struct { // The name of the caching rule. Name *string `mandatory:"true" json:"name"` // The action to take when the criteria of a caching rule are met. // - **CACHE:** Caches requested content when the criteria of the rule are met. // - **BYPASS_CACHE:** Allows requests to bypass the cache and be directed to the origin when the criteria of the rule is met. Action CachingRuleActionEnum `mandatory:"true" json:"action"` // The array of the rule criteria with condition and value. The caching rule would be applied for the requests that matched any of the listed conditions. Criteria []CachingRuleCriteria `mandatory:"true" json:"criteria"` // The unique key for the caching rule. Key *string `mandatory:"false" json:"key"` // The duration to cache content for the caching rule, specified in ISO 8601 extended format. Supported units: seconds, minutes, hours, days, weeks, months. The maximum value that can be set for any unit is `99`. Mixing of multiple units is not supported. Only applies when the `action` is set to `CACHE`. // Example: `PT1H` CachingDuration *string `mandatory:"false" json:"cachingDuration"` // Enables or disables client caching. // Browsers use the `Cache-Control` header value for caching content locally in the browser. This setting overrides the addition of a `Cache-Control` header in responses. IsClientCachingEnabled *bool `mandatory:"false" json:"isClientCachingEnabled"` // The duration to cache content in the user's browser, specified in ISO 8601 extended format. Supported units: seconds, minutes, hours, days, weeks, months. The maximum value that can be set for any unit is `99`. Mixing of multiple units is not supported. Only applies when the `action` is set to `CACHE`. // Example: `PT1H` ClientCachingDuration *string `mandatory:"false" json:"clientCachingDuration"` }
func (m CachingRule) String() string
func (m CachingRule) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CachingRuleActionEnum Enum with underlying type: string
type CachingRuleActionEnum string
Set of constants representing the allowable values for CachingRuleActionEnum
const ( CachingRuleActionCache CachingRuleActionEnum = "CACHE" CachingRuleActionBypassCache CachingRuleActionEnum = "BYPASS_CACHE" )
func GetCachingRuleActionEnumValues() []CachingRuleActionEnum
GetCachingRuleActionEnumValues Enumerates the set of values for CachingRuleActionEnum
func GetMappingCachingRuleActionEnum(val string) (CachingRuleActionEnum, bool)
GetMappingCachingRuleActionEnum performs case Insensitive comparison on enum value and return the desired enum
CachingRuleCriteria A caching rule criteria condition and value.
type CachingRuleCriteria struct { // The condition of the caching rule criteria. // - **URL_IS:** Matches if the concatenation of request URL path and query is identical to the contents of the `value` field. // - **URL_STARTS_WITH:** Matches if the concatenation of request URL path and query starts with the contents of the `value` field. // - **URL_PART_ENDS_WITH:** Matches if the concatenation of request URL path and query ends with the contents of the `value` field. // - **URL_PART_CONTAINS:** Matches if the concatenation of request URL path and query contains the contents of the `value` field. // URLs must start with a `/`. URLs can't contain restricted double slashes `//`. URLs can't contain the restricted `'` `&` `?` symbols. Resources to cache can only be specified by a URL, any query parameters are ignored. Condition CachingRuleCriteriaConditionEnum `mandatory:"true" json:"condition"` // The value of the caching rule criteria. Value *string `mandatory:"true" json:"value"` }
func (m CachingRuleCriteria) String() string
func (m CachingRuleCriteria) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CachingRuleCriteriaConditionEnum Enum with underlying type: string
type CachingRuleCriteriaConditionEnum string
Set of constants representing the allowable values for CachingRuleCriteriaConditionEnum
const ( CachingRuleCriteriaConditionIs CachingRuleCriteriaConditionEnum = "URL_IS" CachingRuleCriteriaConditionStartsWith CachingRuleCriteriaConditionEnum = "URL_STARTS_WITH" CachingRuleCriteriaConditionPartEndsWith CachingRuleCriteriaConditionEnum = "URL_PART_ENDS_WITH" CachingRuleCriteriaConditionPartContains CachingRuleCriteriaConditionEnum = "URL_PART_CONTAINS" )
func GetCachingRuleCriteriaConditionEnumValues() []CachingRuleCriteriaConditionEnum
GetCachingRuleCriteriaConditionEnumValues Enumerates the set of values for CachingRuleCriteriaConditionEnum
func GetMappingCachingRuleCriteriaConditionEnum(val string) (CachingRuleCriteriaConditionEnum, bool)
GetMappingCachingRuleCriteriaConditionEnum performs case Insensitive comparison on enum value and return the desired enum
CachingRuleSummary The caching rule settings.
type CachingRuleSummary struct { // The name of the caching rule. Name *string `mandatory:"true" json:"name"` // The action to take when the criteria of a caching rule are met. // - **CACHE:** Caches requested content when the criteria of the rule are met. // - **BYPASS_CACHE:** Allows requests to bypass the cache and be directed to the origin when the criteria of the rule is met. Action CachingRuleSummaryActionEnum `mandatory:"true" json:"action"` // The array of the rule criteria with condition and value. The caching rule would be applied for the requests that matched any of the listed conditions. Criteria []CachingRuleCriteria `mandatory:"true" json:"criteria"` // The unique key for the caching rule. Key *string `mandatory:"false" json:"key"` // The duration to cache content for the caching rule, specified in ISO 8601 extended format. Supported units: seconds, minutes, hours, days, weeks, months. The maximum value that can be set for any unit is `99`. Mixing of multiple units is not supported. Only applies when the `action` is set to `CACHE`. // Example: `PT1H` CachingDuration *string `mandatory:"false" json:"cachingDuration"` // Enables or disables client caching. // Browsers use the `Cache-Control` header value for caching content locally in the browser. This setting overrides the addition of a `Cache-Control` header in responses. IsClientCachingEnabled *bool `mandatory:"false" json:"isClientCachingEnabled"` // The duration to cache content in the user's browser, specified in ISO 8601 extended format. Supported units: seconds, minutes, hours, days, weeks, months. The maximum value that can be set for any unit is `99`. Mixing of multiple units is not supported. Only applies when the `action` is set to `CACHE`. // Example: `PT1H` ClientCachingDuration *string `mandatory:"false" json:"clientCachingDuration"` }
func (m CachingRuleSummary) String() string
func (m CachingRuleSummary) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CachingRuleSummaryActionEnum Enum with underlying type: string
type CachingRuleSummaryActionEnum string
Set of constants representing the allowable values for CachingRuleSummaryActionEnum
const ( CachingRuleSummaryActionCache CachingRuleSummaryActionEnum = "CACHE" CachingRuleSummaryActionBypassCache CachingRuleSummaryActionEnum = "BYPASS_CACHE" )
func GetCachingRuleSummaryActionEnumValues() []CachingRuleSummaryActionEnum
GetCachingRuleSummaryActionEnumValues Enumerates the set of values for CachingRuleSummaryActionEnum
func GetMappingCachingRuleSummaryActionEnum(val string) (CachingRuleSummaryActionEnum, bool)
GetMappingCachingRuleSummaryActionEnum performs case Insensitive comparison on enum value and return the desired enum
CancelWorkRequestRequest wrapper for the CancelWorkRequest operation
# See also
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.54.0/waas/CancelWorkRequest.go.html to see an example of how to use CancelWorkRequestRequest.
type CancelWorkRequestRequest struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. This number is generated when work request is created. WorkRequestId *string `mandatory:"true" contributesTo:"path" name:"workRequestId"` // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations // *Example:* If a resource has been deleted and purged from the system, then a retry of the original delete request may be rejected. OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` // For optimistic concurrency control. In the `PUT` or `DELETE` call for a resource, set the `if-match` parameter to the value of the etag from a previous `GET` or `POST` response for that resource. The resource will be updated or deleted only if the etag provided matches the resource's current etag value. IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request CancelWorkRequestRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request CancelWorkRequestRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request CancelWorkRequestRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request CancelWorkRequestRequest) String() string
func (request CancelWorkRequestRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CancelWorkRequestResponse wrapper for the CancelWorkRequest operation
type CancelWorkRequestResponse struct { // The underlying http response RawResponse *http.Response // A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response CancelWorkRequestResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response CancelWorkRequestResponse) String() string
Captcha The settings of the CAPTCHA challenge. If a specific URL should be accessed only by a human, a CAPTCHA challenge can be placed at the URL to protect the web application from bots. *Warning:* Oracle recommends that you avoid using any confidential information when you supply string values using the API.
type Captcha struct { // The unique URL path at which to show the CAPTCHA challenge. Url *string `mandatory:"true" json:"url"` // The amount of time before the CAPTCHA expires, in seconds. If unspecified, defaults to `300`. SessionExpirationInSeconds *int `mandatory:"true" json:"sessionExpirationInSeconds"` // The title used when displaying a CAPTCHA challenge. If unspecified, defaults to `Are you human?` Title *string `mandatory:"true" json:"title"` // The text to show when incorrect CAPTCHA text is entered. If unspecified, defaults to `The CAPTCHA was incorrect. Try again.` FailureMessage *string `mandatory:"true" json:"failureMessage"` // The text to show on the label of the CAPTCHA challenge submit button. If unspecified, defaults to `Yes, I am human`. SubmitLabel *string `mandatory:"true" json:"submitLabel"` // The text to show in the header when showing a CAPTCHA challenge. If unspecified, defaults to 'We have detected an increased number of attempts to access this website. To help us keep this site secure, please let us know that you are not a robot by entering the text from the image below.' HeaderText *string `mandatory:"false" json:"headerText"` // The text to show in the footer when showing a CAPTCHA challenge. If unspecified, defaults to 'Enter the letters and numbers as they are shown in the image above.' FooterText *string `mandatory:"false" json:"footerText"` }
func (m Captcha) String() string
func (m Captcha) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
Certificate The details of the SSL certificate. **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API.
type Certificate struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the certificate. Id *string `mandatory:"true" json:"id"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the certificate's compartment. CompartmentId *string `mandatory:"true" json:"compartmentId"` // The user-friendly name of the certificate. DisplayName *string `mandatory:"true" json:"displayName"` // A unique, positive integer assigned by the Certificate Authority (CA). The issuer name and serial number identify a unique certificate. SerialNumber *string `mandatory:"true" json:"serialNumber"` // The version of the encoded certificate. Version *int `mandatory:"true" json:"version"` // The identifier for the cryptographic algorithm used by the Certificate Authority (CA) to sign this certificate. SignatureAlgorithm *string `mandatory:"true" json:"signatureAlgorithm"` // The date and time the certificate will become valid, expressed in RFC 3339 timestamp format. TimeNotValidBefore *common.SDKTime `mandatory:"true" json:"timeNotValidBefore"` // The date and time the certificate will expire, expressed in RFC 3339 timestamp format. TimeNotValidAfter *common.SDKTime `mandatory:"true" json:"timeNotValidAfter"` IssuedBy *string `mandatory:"false" json:"issuedBy"` SubjectName *CertificateSubjectName `mandatory:"false" json:"subjectName"` IssuerName *CertificateIssuerName `mandatory:"false" json:"issuerName"` PublicKeyInfo *CertificatePublicKeyInfo `mandatory:"false" json:"publicKeyInfo"` // Additional attributes associated with users or public keys for managing relationships between Certificate Authorities. Extensions []CertificateExtensions `mandatory:"false" json:"extensions"` // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` // Defined tags for this resource. Each key is predefined and scoped to a namespace. // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` // The current lifecycle state of the SSL certificate. LifecycleState LifecycleStatesEnum `mandatory:"false" json:"lifecycleState,omitempty"` // The date and time the certificate was created, expressed in RFC 3339 timestamp format. TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` // This indicates whether trust verification was disabled during the creation of SSL certificate. // If `true` SSL certificate trust verification was disabled and this SSL certificate is most likely self-signed. IsTrustVerificationDisabled *bool `mandatory:"false" json:"isTrustVerificationDisabled"` // The data of the SSL certificate. CertificateData *string `mandatory:"false" json:"certificateData"` }
func (m Certificate) String() string
func (m Certificate) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CertificateExtensions The representation of CertificateExtensions
type CertificateExtensions struct { // The certificate extension name. Name *string `mandatory:"false" json:"name"` // The critical flag of the extension. Critical extensions must be processed, non-critical extensions can be ignored. IsCritical *bool `mandatory:"false" json:"isCritical"` // The certificate extension value. Value *string `mandatory:"false" json:"value"` }
func (m CertificateExtensions) String() string
func (m CertificateExtensions) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CertificateIssuerName The issuer of the certificate.
type CertificateIssuerName struct { // ISO 3166-1 alpha-2 code of the country where the organization is located. For a list of codes, see ISO's website (https://www.iso.org/obp/ui/#search/code/). Country *string `mandatory:"false" json:"country"` // The province where the organization is located. StateProvince *string `mandatory:"false" json:"stateProvince"` // The city in which the organization is located. Locality *string `mandatory:"false" json:"locality"` // The organization name. Organization *string `mandatory:"false" json:"organization"` // The field to differentiate between divisions within an organization. OrganizationalUnit *string `mandatory:"false" json:"organizationalUnit"` // The Certificate Authority (CA) name. CommonName *string `mandatory:"false" json:"commonName"` // The email address of the server's administrator. EmailAddress *string `mandatory:"false" json:"emailAddress"` }
func (m CertificateIssuerName) String() string
func (m CertificateIssuerName) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CertificateLifecycleStateEnum is an alias to type: LifecycleStatesEnum Consider using LifecycleStatesEnum instead Deprecated
type CertificateLifecycleStateEnum = LifecycleStatesEnum
CertificatePublicKeyInfo Information about the public key and the algorithm used by the public key.
type CertificatePublicKeyInfo struct { // The algorithm identifier and parameters for the public key. Algorithm *string `mandatory:"false" json:"algorithm"` // The private key exponent. Exponent *int `mandatory:"false" json:"exponent"` // The number of bits in a key used by a cryptographic algorithm. KeySize *int `mandatory:"false" json:"keySize"` }
func (m CertificatePublicKeyInfo) String() string
func (m CertificatePublicKeyInfo) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CertificateSubjectName The entity to be secured by the certificate.
type CertificateSubjectName struct { // ISO 3166-1 alpha-2 code of the country where the organization is located. For a list of codes, see ISO's website (https://www.iso.org/obp/ui/#search/code/). Country *string `mandatory:"false" json:"country"` // The province where the organization is located. StateProvince *string `mandatory:"false" json:"stateProvince"` // The city in which the organization is located. Locality *string `mandatory:"false" json:"locality"` // The organization name. Organization *string `mandatory:"false" json:"organization"` // The field to differentiate between divisions within an organization. OrganizationalUnit *string `mandatory:"false" json:"organizationalUnit"` // The fully qualified domain name used for DNS lookups of the server. CommonName *string `mandatory:"false" json:"commonName"` // The email address of the server's administrator. EmailAddress *string `mandatory:"false" json:"emailAddress"` }
func (m CertificateSubjectName) String() string
func (m CertificateSubjectName) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CertificateSummary A summary of the SSL certificate's information. **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API.
type CertificateSummary struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the SSL certificate. Id *string `mandatory:"false" json:"id"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the SSL certificate's compartment. CompartmentId *string `mandatory:"false" json:"compartmentId"` // The user-friendly name of the SSL certificate. DisplayName *string `mandatory:"false" json:"displayName"` // The date and time the certificate will expire, expressed in RFC 3339 timestamp format. TimeNotValidAfter *common.SDKTime `mandatory:"false" json:"timeNotValidAfter"` // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` // Defined tags for this resource. Each key is predefined and scoped to a namespace. // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` // The current lifecycle state of the certificate. LifecycleState LifecycleStatesEnum `mandatory:"false" json:"lifecycleState,omitempty"` // The date and time the certificate was created, in the format defined by RFC3339. TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` }
func (m CertificateSummary) String() string
func (m CertificateSummary) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CertificateSummaryLifecycleStateEnum is an alias to type: LifecycleStatesEnum Consider using LifecycleStatesEnum instead Deprecated
type CertificateSummaryLifecycleStateEnum = LifecycleStatesEnum
ChangeAddressListCompartmentDetails The representation of ChangeAddressListCompartmentDetails
type ChangeAddressListCompartmentDetails struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment into which the resource should be moved. For information about moving resources between compartments, see Moving Resources to a Different Compartment (https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). CompartmentId *string `mandatory:"true" json:"compartmentId"` }
func (m ChangeAddressListCompartmentDetails) String() string
func (m ChangeAddressListCompartmentDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ChangeAddressListCompartmentRequest wrapper for the ChangeAddressListCompartment operation
# See also
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.54.0/waas/ChangeAddressListCompartment.go.html to see an example of how to use ChangeAddressListCompartmentRequest.
type ChangeAddressListCompartmentRequest struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the address list. This number is generated when the address list is added to the compartment. AddressListId *string `mandatory:"true" contributesTo:"path" name:"addressListId"` ChangeAddressListCompartmentDetails `contributesTo:"body"` // For optimistic concurrency control. In the `PUT` or `DELETE` call for a resource, set the `if-match` parameter to the value of the etag from a previous `GET` or `POST` response for that resource. The resource will be updated or deleted only if the etag provided matches the resource's current etag value. IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations // *Example:* If a resource has been deleted and purged from the system, then a retry of the original delete request may be rejected. OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request ChangeAddressListCompartmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ChangeAddressListCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ChangeAddressListCompartmentRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ChangeAddressListCompartmentRequest) String() string
func (request ChangeAddressListCompartmentRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ChangeAddressListCompartmentResponse wrapper for the ChangeAddressListCompartment operation
type ChangeAddressListCompartmentResponse struct { // The underlying http response RawResponse *http.Response // A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response ChangeAddressListCompartmentResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ChangeAddressListCompartmentResponse) String() string
ChangeCertificateCompartmentDetails The representation of ChangeCertificateCompartmentDetails
type ChangeCertificateCompartmentDetails struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment into which the resource should be moved. // For information about moving resources between compartments, see Moving Resources to a Different Compartment (https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). CompartmentId *string `mandatory:"true" json:"compartmentId"` }
func (m ChangeCertificateCompartmentDetails) String() string
func (m ChangeCertificateCompartmentDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ChangeCertificateCompartmentRequest wrapper for the ChangeCertificateCompartment operation
# See also
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.54.0/waas/ChangeCertificateCompartment.go.html to see an example of how to use ChangeCertificateCompartmentRequest.
type ChangeCertificateCompartmentRequest struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the SSL certificate used in the WAAS policy. This number is generated when the certificate is added to the policy. CertificateId *string `mandatory:"true" contributesTo:"path" name:"certificateId"` ChangeCertificateCompartmentDetails `contributesTo:"body"` // For optimistic concurrency control. In the `PUT` or `DELETE` call for a resource, set the `if-match` parameter to the value of the etag from a previous `GET` or `POST` response for that resource. The resource will be updated or deleted only if the etag provided matches the resource's current etag value. IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations // *Example:* If a resource has been deleted and purged from the system, then a retry of the original delete request may be rejected. OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request ChangeCertificateCompartmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ChangeCertificateCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ChangeCertificateCompartmentRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ChangeCertificateCompartmentRequest) String() string
func (request ChangeCertificateCompartmentRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ChangeCertificateCompartmentResponse wrapper for the ChangeCertificateCompartment operation
type ChangeCertificateCompartmentResponse struct { // The underlying http response RawResponse *http.Response // A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response ChangeCertificateCompartmentResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ChangeCertificateCompartmentResponse) String() string
ChangeCustomProtectionRuleCompartmentDetails The representation of ChangeCustomProtectionRuleCompartmentDetails
type ChangeCustomProtectionRuleCompartmentDetails struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment into which the resource should be moved. For information about moving resources between compartments, see Moving Resources to a Different Compartment (https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). CompartmentId *string `mandatory:"true" json:"compartmentId"` }
func (m ChangeCustomProtectionRuleCompartmentDetails) String() string
func (m ChangeCustomProtectionRuleCompartmentDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ChangeCustomProtectionRuleCompartmentRequest wrapper for the ChangeCustomProtectionRuleCompartment operation
# See also
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.54.0/waas/ChangeCustomProtectionRuleCompartment.go.html to see an example of how to use ChangeCustomProtectionRuleCompartmentRequest.
type ChangeCustomProtectionRuleCompartmentRequest struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the custom protection rule. This number is generated when the custom protection rule is added to the compartment. CustomProtectionRuleId *string `mandatory:"true" contributesTo:"path" name:"customProtectionRuleId"` ChangeCustomProtectionRuleCompartmentDetails `contributesTo:"body"` // For optimistic concurrency control. In the `PUT` or `DELETE` call for a resource, set the `if-match` parameter to the value of the etag from a previous `GET` or `POST` response for that resource. The resource will be updated or deleted only if the etag provided matches the resource's current etag value. IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations // *Example:* If a resource has been deleted and purged from the system, then a retry of the original delete request may be rejected. OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request ChangeCustomProtectionRuleCompartmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ChangeCustomProtectionRuleCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ChangeCustomProtectionRuleCompartmentRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ChangeCustomProtectionRuleCompartmentRequest) String() string
func (request ChangeCustomProtectionRuleCompartmentRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ChangeCustomProtectionRuleCompartmentResponse wrapper for the ChangeCustomProtectionRuleCompartment operation
type ChangeCustomProtectionRuleCompartmentResponse struct { // The underlying http response RawResponse *http.Response // A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response ChangeCustomProtectionRuleCompartmentResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ChangeCustomProtectionRuleCompartmentResponse) String() string
ChangeHttpRedirectCompartmentDetails The representation of ChangeHttpRedirectCompartmentDetails
type ChangeHttpRedirectCompartmentDetails struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment into which the resource should be moved. CompartmentId *string `mandatory:"true" json:"compartmentId"` }
func (m ChangeHttpRedirectCompartmentDetails) String() string
func (m ChangeHttpRedirectCompartmentDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ChangeHttpRedirectCompartmentRequest wrapper for the ChangeHttpRedirectCompartment operation
# See also
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.54.0/waas/ChangeHttpRedirectCompartment.go.html to see an example of how to use ChangeHttpRedirectCompartmentRequest.
type ChangeHttpRedirectCompartmentRequest struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the HTTP Redirect. HttpRedirectId *string `mandatory:"true" contributesTo:"path" name:"httpRedirectId"` ChangeHttpRedirectCompartmentDetails `contributesTo:"body"` // For optimistic concurrency control. In the `PUT` or `DELETE` call for a resource, set the `if-match` parameter to the value of the etag from a previous `GET` or `POST` response for that resource. The resource will be updated or deleted only if the etag provided matches the resource's current etag value. IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations // *Example:* If a resource has been deleted and purged from the system, then a retry of the original delete request may be rejected. OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request ChangeHttpRedirectCompartmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ChangeHttpRedirectCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ChangeHttpRedirectCompartmentRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ChangeHttpRedirectCompartmentRequest) String() string
func (request ChangeHttpRedirectCompartmentRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ChangeHttpRedirectCompartmentResponse wrapper for the ChangeHttpRedirectCompartment operation
type ChangeHttpRedirectCompartmentResponse struct { // The underlying http response RawResponse *http.Response // A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response ChangeHttpRedirectCompartmentResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ChangeHttpRedirectCompartmentResponse) String() string
ChangeWaasPolicyCompartmentDetails The representation of ChangeWaasPolicyCompartmentDetails
type ChangeWaasPolicyCompartmentDetails struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment into which the resource should be moved. // For information about moving resources between compartments, see Moving Resources to a Different Compartment (https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). CompartmentId *string `mandatory:"true" json:"compartmentId"` }
func (m ChangeWaasPolicyCompartmentDetails) String() string
func (m ChangeWaasPolicyCompartmentDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ChangeWaasPolicyCompartmentRequest wrapper for the ChangeWaasPolicyCompartment operation
# See also
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.54.0/waas/ChangeWaasPolicyCompartment.go.html to see an example of how to use ChangeWaasPolicyCompartmentRequest.
type ChangeWaasPolicyCompartmentRequest struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the WAAS policy. WaasPolicyId *string `mandatory:"true" contributesTo:"path" name:"waasPolicyId"` ChangeWaasPolicyCompartmentDetails `contributesTo:"body"` // For optimistic concurrency control. In the `PUT` or `DELETE` call for a resource, set the `if-match` parameter to the value of the etag from a previous `GET` or `POST` response for that resource. The resource will be updated or deleted only if the etag provided matches the resource's current etag value. IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations // *Example:* If a resource has been deleted and purged from the system, then a retry of the original delete request may be rejected. OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request ChangeWaasPolicyCompartmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ChangeWaasPolicyCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ChangeWaasPolicyCompartmentRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ChangeWaasPolicyCompartmentRequest) String() string
func (request ChangeWaasPolicyCompartmentRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ChangeWaasPolicyCompartmentResponse wrapper for the ChangeWaasPolicyCompartment operation
type ChangeWaasPolicyCompartmentResponse struct { // The underlying http response RawResponse *http.Response // A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response ChangeWaasPolicyCompartmentResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ChangeWaasPolicyCompartmentResponse) String() string
CreateAddressListDetails The data used to create a new address list of IP addresses and CIDR notations.
type CreateAddressListDetails struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment in which to create the address list. CompartmentId *string `mandatory:"true" json:"compartmentId"` // A user-friendly name for the address list. DisplayName *string `mandatory:"true" json:"displayName"` // A list of IP addresses or CIDR notations. Addresses []string `mandatory:"true" json:"addresses"` // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` // Defined tags for this resource. Each key is predefined and scoped to a namespace. // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` }
func (m CreateAddressListDetails) String() string
func (m CreateAddressListDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CreateAddressListRequest wrapper for the CreateAddressList operation
# See also
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.54.0/waas/CreateAddressList.go.html to see an example of how to use CreateAddressListRequest.
type CreateAddressListRequest struct { // The details of the address list resource to create. CreateAddressListDetails `contributesTo:"body"` // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations // *Example:* If a resource has been deleted and purged from the system, then a retry of the original delete request may be rejected. OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request CreateAddressListRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request CreateAddressListRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request CreateAddressListRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request CreateAddressListRequest) String() string
func (request CreateAddressListRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CreateAddressListResponse wrapper for the CreateAddressList operation
type CreateAddressListResponse struct { // The underlying http response RawResponse *http.Response // The AddressList instance AddressList `presentIn:"body"` // A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // For optimistic concurrency control. See `if-match`. Etag *string `presentIn:"header" name:"etag"` }
func (response CreateAddressListResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response CreateAddressListResponse) String() string
CreateCertificateDetails The data used to create a new SSL certificate. **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API.
type CreateCertificateDetails struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment in which to create the SSL certificate. CompartmentId *string `mandatory:"true" json:"compartmentId"` // The data of the SSL certificate. // // **Note:** Many SSL certificate providers require an intermediate certificate chain to ensure a trusted status. // If your SSL certificate requires an intermediate certificate chain, please append the intermediate certificate // key in the `certificateData` field after the leaf certificate issued by the SSL certificate provider. If you // are unsure if your certificate requires an intermediate certificate chain, see your certificate // provider's documentation. // // The example below shows an intermediate certificate appended to a leaf certificate. CertificateData *string `mandatory:"true" json:"certificateData"` // The private key of the SSL certificate. PrivateKeyData *string `mandatory:"true" json:"privateKeyData"` // A user-friendly name for the SSL certificate. The name can be changed and does not need to be unique. DisplayName *string `mandatory:"false" json:"displayName"` // Set to `true` if the SSL certificate is self-signed. IsTrustVerificationDisabled *bool `mandatory:"false" json:"isTrustVerificationDisabled"` // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` // Defined tags for this resource. Each key is predefined and scoped to a namespace. // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` }
func (m CreateCertificateDetails) String() string
func (m CreateCertificateDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CreateCertificateRequest wrapper for the CreateCertificate operation
# See also
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.54.0/waas/CreateCertificate.go.html to see an example of how to use CreateCertificateRequest.
type CreateCertificateRequest struct { // The details of the SSL certificate resource to create. CreateCertificateDetails `contributesTo:"body"` // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations // *Example:* If a resource has been deleted and purged from the system, then a retry of the original delete request may be rejected. OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request CreateCertificateRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request CreateCertificateRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request CreateCertificateRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request CreateCertificateRequest) String() string
func (request CreateCertificateRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CreateCertificateResponse wrapper for the CreateCertificate operation
type CreateCertificateResponse struct { // The underlying http response RawResponse *http.Response // The Certificate instance Certificate `presentIn:"body"` // A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // For optimistic concurrency control. See `if-match`. Etag *string `presentIn:"header" name:"etag"` }
func (response CreateCertificateResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response CreateCertificateResponse) String() string
CreateCustomProtectionRuleDetails The required data to create a custom protection rule. For more information about custom protection rules, see Custom Protection Rules (https://docs.cloud.oracle.com/iaas/Content/WAF/Tasks/customprotectionrules.htm). **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API.
type CreateCustomProtectionRuleDetails struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment in which to create the custom protection rule. CompartmentId *string `mandatory:"true" json:"compartmentId"` // A user-friendly name for the custom protection rule. DisplayName *string `mandatory:"true" json:"displayName"` // The template text of the custom protection rule. All custom protection rules are expressed in ModSecurity Rule Language. // Additionally, each rule must include two placeholder variables that are updated by the WAF service upon publication of the rule. // `id: {{id_1}}` - This field is populated with a unique rule ID generated by the WAF service which identifies a `SecRule`. More than one `SecRule` can be defined in the `template` field of a CreateCustomSecurityRule call. The value of the first `SecRule` must be `id: {{id_1}}` and the `id` field of each subsequent `SecRule` should increase by one, as shown in the example. // `ctl:ruleEngine={{mode}}` - The action to be taken when the criteria of the `SecRule` are met, either `OFF`, `DETECT` or `BLOCK`. This field is automatically populated with the corresponding value of the `action` field of the `CustomProtectionRuleSetting` schema when the `WafConfig` is updated. // *Example:* // ``` // SecRule REQUEST_COOKIES "regex matching SQL injection - part 1/2" \ // "phase:2, \ // msg:'Detects chained SQL injection attempts 1/2.', \ // id: {{id_1}}, \ // ctl:ruleEngine={{mode}}, \ // deny" // SecRule REQUEST_COOKIES "regex matching SQL injection - part 2/2" \ // "phase:2, \ // msg:'Detects chained SQL injection attempts 2/2.', \ // id: {{id_2}}, \ // ctl:ruleEngine={{mode}}, \ // deny" // ``` // // The example contains two `SecRules` each having distinct regex expression to match the `Cookie` header value during the second input analysis phase. // For more information about custom protection rules, see Custom Protection Rules (https://docs.cloud.oracle.com/Content/WAF/Tasks/customprotectionrules.htm). // For more information about ModSecurity syntax, see Making Rules: The Basic Syntax (https://www.modsecurity.org/CRS/Documentation/making.html). // For more information about ModSecurity's open source WAF rules, see Mod Security's OWASP Core Rule Set documentation (https://www.modsecurity.org/CRS/Documentation/index.html). Template *string `mandatory:"true" json:"template"` // A description for the Custom Protection rule. Description *string `mandatory:"false" json:"description"` // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` // Defined tags for this resource. Each key is predefined and scoped to a namespace. // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` }
func (m CreateCustomProtectionRuleDetails) String() string
func (m CreateCustomProtectionRuleDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CreateCustomProtectionRuleRequest wrapper for the CreateCustomProtectionRule operation
# See also
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.54.0/waas/CreateCustomProtectionRule.go.html to see an example of how to use CreateCustomProtectionRuleRequest.
type CreateCustomProtectionRuleRequest struct { // The details of the custom protection rule. CreateCustomProtectionRuleDetails `contributesTo:"body"` // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations // *Example:* If a resource has been deleted and purged from the system, then a retry of the original delete request may be rejected. OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request CreateCustomProtectionRuleRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request CreateCustomProtectionRuleRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request CreateCustomProtectionRuleRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request CreateCustomProtectionRuleRequest) String() string
func (request CreateCustomProtectionRuleRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CreateCustomProtectionRuleResponse wrapper for the CreateCustomProtectionRule operation
type CreateCustomProtectionRuleResponse struct { // The underlying http response RawResponse *http.Response // The CustomProtectionRule instance CustomProtectionRule `presentIn:"body"` // A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // For optimistic concurrency control. See `if-match`. Etag *string `presentIn:"header" name:"etag"` }
func (response CreateCustomProtectionRuleResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response CreateCustomProtectionRuleResponse) String() string
CreateHttpRedirectDetails The details of a HTTP Redirect configured to redirect traffic from one hostname to another. **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API.
type CreateHttpRedirectDetails struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the HTTP Redirects compartment. CompartmentId *string `mandatory:"true" json:"compartmentId"` // The domain from which traffic will be redirected. Domain *string `mandatory:"true" json:"domain"` // The redirect target object including all the redirect data. Target *HttpRedirectTarget `mandatory:"true" json:"target"` // The user-friendly name of the HTTP Redirect. The name can be changed and does not need to be unique. DisplayName *string `mandatory:"false" json:"displayName"` // The response code returned for the redirect to the client. For more information, see RFC 7231 (https://tools.ietf.org/html/rfc7231#section-6.4). ResponseCode *int `mandatory:"false" json:"responseCode"` // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` // Defined tags for this resource. Each key is predefined and scoped to a namespace. // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` }
func (m CreateHttpRedirectDetails) String() string
func (m CreateHttpRedirectDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CreateHttpRedirectRequest wrapper for the CreateHttpRedirect operation
# See also
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.54.0/waas/CreateHttpRedirect.go.html to see an example of how to use CreateHttpRedirectRequest.
type CreateHttpRedirectRequest struct { // The details of the HTTP Redirect. CreateHttpRedirectDetails `contributesTo:"body"` // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations // *Example:* If a resource has been deleted and purged from the system, then a retry of the original delete request may be rejected. OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request CreateHttpRedirectRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request CreateHttpRedirectRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request CreateHttpRedirectRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request CreateHttpRedirectRequest) String() string
func (request CreateHttpRedirectRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CreateHttpRedirectResponse wrapper for the CreateHttpRedirect operation
type CreateHttpRedirectResponse struct { // The underlying http response RawResponse *http.Response // A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` }
func (response CreateHttpRedirectResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response CreateHttpRedirectResponse) String() string
CreateWaasPolicyDetails The required data to create a WAAS policy. **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API.
type CreateWaasPolicyDetails struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment in which to create the WAAS policy. CompartmentId *string `mandatory:"true" json:"compartmentId"` // The web application domain that the WAAS policy protects. Domain *string `mandatory:"true" json:"domain"` // A user-friendly name for the WAAS policy. The name can be changed and does not need to be unique. DisplayName *string `mandatory:"false" json:"displayName"` // An array of additional domains for the specified web application. AdditionalDomains []string `mandatory:"false" json:"additionalDomains"` // A map of host to origin for the web application. The key should be a customer friendly name for the host, ex. primary, secondary, etc. Origins map[string]Origin `mandatory:"false" json:"origins"` // The map of origin groups and their keys used to associate origins to the `wafConfig`. Origin groups allow you to apply weights to groups of origins for load balancing purposes. Origins with higher weights will receive larger proportions of client requests. // To add additional origins to your WAAS policy, update the `origins` field of a `UpdateWaasPolicy` request. OriginGroups map[string]OriginGroup `mandatory:"false" json:"originGroups"` PolicyConfig *PolicyConfig `mandatory:"false" json:"policyConfig"` WafConfig *WafConfigDetails `mandatory:"false" json:"wafConfig"` // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` // Defined tags for this resource. Each key is predefined and scoped to a namespace. // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` }
func (m CreateWaasPolicyDetails) String() string
func (m CreateWaasPolicyDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CreateWaasPolicyRequest wrapper for the CreateWaasPolicy operation
# See also
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.54.0/waas/CreateWaasPolicy.go.html to see an example of how to use CreateWaasPolicyRequest.
type CreateWaasPolicyRequest struct { // The details of the WAAS policy. CreateWaasPolicyDetails `contributesTo:"body"` // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations // *Example:* If a resource has been deleted and purged from the system, then a retry of the original delete request may be rejected. OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request CreateWaasPolicyRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request CreateWaasPolicyRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request CreateWaasPolicyRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request CreateWaasPolicyRequest) String() string
func (request CreateWaasPolicyRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CreateWaasPolicyResponse wrapper for the CreateWaasPolicy operation
type CreateWaasPolicyResponse struct { // The underlying http response RawResponse *http.Response // A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // For optimistic concurrency control. See `if-match`. Etag *string `presentIn:"header" name:"etag"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` }
func (response CreateWaasPolicyResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response CreateWaasPolicyResponse) String() string
CustomProtectionRule The details of a custom protection rule.
type CustomProtectionRule struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the custom protection rule. Id *string `mandatory:"false" json:"id"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the custom protection rule's compartment. CompartmentId *string `mandatory:"false" json:"compartmentId"` // The user-friendly name of the custom protection rule. DisplayName *string `mandatory:"false" json:"displayName"` // The description of the custom protection rule. Description *string `mandatory:"false" json:"description"` // The auto-generated ID for the custom protection rule. These IDs are referenced in logs. ModSecurityRuleIds []string `mandatory:"false" json:"modSecurityRuleIds"` // The template text of the custom protection rule. All custom protection rules are expressed in ModSecurity Rule Language. // Additionally, each rule must include two placeholder variables that are updated by the WAF service upon publication of the rule. // `id: {{id_1}}` - This field is populated with a unique rule ID generated by the WAF service which identifies a `SecRule`. More than one `SecRule` can be defined in the `template` field of a CreateCustomSecurityRule call. The value of the first `SecRule` must be `id: {{id_1}}` and the `id` field of each subsequent `SecRule` should increase by one, as shown in the example. // `ctl:ruleEngine={{mode}}` - The action to be taken when the criteria of the `SecRule` are met, either `OFF`, `DETECT` or `BLOCK`. This field is automatically populated with the corresponding value of the `action` field of the `CustomProtectionRuleSetting` schema when the `WafConfig` is updated. // *Example:* // ``` // SecRule REQUEST_COOKIES "regex matching SQL injection - part 1/2" \ // "phase:2, \ // msg:'Detects chained SQL injection attempts 1/2.', \ // id: {{id_1}}, \ // ctl:ruleEngine={{mode}}, \ // deny" // SecRule REQUEST_COOKIES "regex matching SQL injection - part 2/2" \ // "phase:2, \ // msg:'Detects chained SQL injection attempts 2/2.', \ // id: {{id_2}}, \ // ctl:ruleEngine={{mode}}, \ // deny" // ``` // // The example contains two `SecRules` each having distinct regex expression to match the `Cookie` header value during the second input analysis phase. // For more information about custom protection rules, see Custom Protection Rules (https://docs.cloud.oracle.com/Content/WAF/Tasks/customprotectionrules.htm). // For more information about ModSecurity syntax, see Making Rules: The Basic Syntax (https://www.modsecurity.org/CRS/Documentation/making.html). // For more information about ModSecurity's open source WAF rules, see Mod Security's OWASP Core Rule Set documentation (https://www.modsecurity.org/CRS/Documentation/index.html). Template *string `mandatory:"false" json:"template"` // The current lifecycle state of the custom protection rule. LifecycleState LifecycleStatesEnum `mandatory:"false" json:"lifecycleState,omitempty"` // The date and time the protection rule was created, expressed in RFC 3339 timestamp format. TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` // Defined tags for this resource. Each key is predefined and scoped to a namespace. // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` }
func (m CustomProtectionRule) String() string
func (m CustomProtectionRule) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CustomProtectionRuleSetting The OCID and action of a custom protection rule.
type CustomProtectionRuleSetting struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the custom protection rule. Id *string `mandatory:"false" json:"id"` // The action to take when the custom protection rule is triggered. // `DETECT` - Logs the request when the criteria of the custom protection rule are met. `BLOCK` - Blocks the request when the criteria of the custom protection rule are met. Action CustomProtectionRuleSettingActionEnum `mandatory:"false" json:"action,omitempty"` Exclusions []ProtectionRuleExclusion `mandatory:"false" json:"exclusions"` }
func (m CustomProtectionRuleSetting) String() string
func (m CustomProtectionRuleSetting) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CustomProtectionRuleSettingActionEnum Enum with underlying type: string
type CustomProtectionRuleSettingActionEnum string
Set of constants representing the allowable values for CustomProtectionRuleSettingActionEnum
const ( CustomProtectionRuleSettingActionDetect CustomProtectionRuleSettingActionEnum = "DETECT" CustomProtectionRuleSettingActionBlock CustomProtectionRuleSettingActionEnum = "BLOCK" )
func GetCustomProtectionRuleSettingActionEnumValues() []CustomProtectionRuleSettingActionEnum
GetCustomProtectionRuleSettingActionEnumValues Enumerates the set of values for CustomProtectionRuleSettingActionEnum
func GetMappingCustomProtectionRuleSettingActionEnum(val string) (CustomProtectionRuleSettingActionEnum, bool)
GetMappingCustomProtectionRuleSettingActionEnum performs case Insensitive comparison on enum value and return the desired enum
CustomProtectionRuleSummary An overview of a custom protection rule.
type CustomProtectionRuleSummary struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the custom protection rule. Id *string `mandatory:"false" json:"id"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the custom protection rule's compartment. CompartmentId *string `mandatory:"false" json:"compartmentId"` // The user-friendly name of the custom protection rule. DisplayName *string `mandatory:"false" json:"displayName"` // The auto-generated ID for the custom protection rule. These IDs are referenced in logs. ModSecurityRuleIds []string `mandatory:"false" json:"modSecurityRuleIds"` // The current lifecycle state of the custom protection rule. LifecycleState LifecycleStatesEnum `mandatory:"false" json:"lifecycleState,omitempty"` // The date and time the protection rule was created, expressed in RFC 3339 timestamp format. TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` // Defined tags for this resource. Each key is predefined and scoped to a namespace. // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` }
func (m CustomProtectionRuleSummary) String() string
func (m CustomProtectionRuleSummary) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
DeleteAddressListRequest wrapper for the DeleteAddressList operation
# See also
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.54.0/waas/DeleteAddressList.go.html to see an example of how to use DeleteAddressListRequest.
type DeleteAddressListRequest struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the address list. This number is generated when the address list is added to the compartment. AddressListId *string `mandatory:"true" contributesTo:"path" name:"addressListId"` // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations // *Example:* If a resource has been deleted and purged from the system, then a retry of the original delete request may be rejected. OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` // For optimistic concurrency control. In the `PUT` or `DELETE` call for a resource, set the `if-match` parameter to the value of the etag from a previous `GET` or `POST` response for that resource. The resource will be updated or deleted only if the etag provided matches the resource's current etag value. IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request DeleteAddressListRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request DeleteAddressListRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request DeleteAddressListRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request DeleteAddressListRequest) String() string
func (request DeleteAddressListRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
DeleteAddressListResponse wrapper for the DeleteAddressList operation
type DeleteAddressListResponse struct { // The underlying http response RawResponse *http.Response // A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response DeleteAddressListResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response DeleteAddressListResponse) String() string
DeleteCertificateRequest wrapper for the DeleteCertificate operation
# See also
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.54.0/waas/DeleteCertificate.go.html to see an example of how to use DeleteCertificateRequest.
type DeleteCertificateRequest struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the SSL certificate used in the WAAS policy. This number is generated when the certificate is added to the policy. CertificateId *string `mandatory:"true" contributesTo:"path" name:"certificateId"` // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations // *Example:* If a resource has been deleted and purged from the system, then a retry of the original delete request may be rejected. OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` // For optimistic concurrency control. In the `PUT` or `DELETE` call for a resource, set the `if-match` parameter to the value of the etag from a previous `GET` or `POST` response for that resource. The resource will be updated or deleted only if the etag provided matches the resource's current etag value. IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request DeleteCertificateRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request DeleteCertificateRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request DeleteCertificateRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request DeleteCertificateRequest) String() string
func (request DeleteCertificateRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
DeleteCertificateResponse wrapper for the DeleteCertificate operation
type DeleteCertificateResponse struct { // The underlying http response RawResponse *http.Response // A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response DeleteCertificateResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response DeleteCertificateResponse) String() string
DeleteCustomProtectionRuleRequest wrapper for the DeleteCustomProtectionRule operation
# See also
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.54.0/waas/DeleteCustomProtectionRule.go.html to see an example of how to use DeleteCustomProtectionRuleRequest.
type DeleteCustomProtectionRuleRequest struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the custom protection rule. This number is generated when the custom protection rule is added to the compartment. CustomProtectionRuleId *string `mandatory:"true" contributesTo:"path" name:"customProtectionRuleId"` // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations // *Example:* If a resource has been deleted and purged from the system, then a retry of the original delete request may be rejected. OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` // For optimistic concurrency control. In the `PUT` or `DELETE` call for a resource, set the `if-match` parameter to the value of the etag from a previous `GET` or `POST` response for that resource. The resource will be updated or deleted only if the etag provided matches the resource's current etag value. IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request DeleteCustomProtectionRuleRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request DeleteCustomProtectionRuleRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request DeleteCustomProtectionRuleRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request DeleteCustomProtectionRuleRequest) String() string
func (request DeleteCustomProtectionRuleRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
DeleteCustomProtectionRuleResponse wrapper for the DeleteCustomProtectionRule operation
type DeleteCustomProtectionRuleResponse struct { // The underlying http response RawResponse *http.Response // A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response DeleteCustomProtectionRuleResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response DeleteCustomProtectionRuleResponse) String() string
DeleteHttpRedirectRequest wrapper for the DeleteHttpRedirect operation
# See also
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.54.0/waas/DeleteHttpRedirect.go.html to see an example of how to use DeleteHttpRedirectRequest.
type DeleteHttpRedirectRequest struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the HTTP Redirect. HttpRedirectId *string `mandatory:"true" contributesTo:"path" name:"httpRedirectId"` // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations // *Example:* If a resource has been deleted and purged from the system, then a retry of the original delete request may be rejected. OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` // For optimistic concurrency control. In the `PUT` or `DELETE` call for a resource, set the `if-match` parameter to the value of the etag from a previous `GET` or `POST` response for that resource. The resource will be updated or deleted only if the etag provided matches the resource's current etag value. IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request DeleteHttpRedirectRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request DeleteHttpRedirectRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request DeleteHttpRedirectRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request DeleteHttpRedirectRequest) String() string
func (request DeleteHttpRedirectRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
DeleteHttpRedirectResponse wrapper for the DeleteHttpRedirect operation
type DeleteHttpRedirectResponse struct { // The underlying http response RawResponse *http.Response // A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` }
func (response DeleteHttpRedirectResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response DeleteHttpRedirectResponse) String() string
DeleteWaasPolicyRequest wrapper for the DeleteWaasPolicy operation
# See also
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.54.0/waas/DeleteWaasPolicy.go.html to see an example of how to use DeleteWaasPolicyRequest.
type DeleteWaasPolicyRequest struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the WAAS policy. WaasPolicyId *string `mandatory:"true" contributesTo:"path" name:"waasPolicyId"` // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations // *Example:* If a resource has been deleted and purged from the system, then a retry of the original delete request may be rejected. OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` // For optimistic concurrency control. In the `PUT` or `DELETE` call for a resource, set the `if-match` parameter to the value of the etag from a previous `GET` or `POST` response for that resource. The resource will be updated or deleted only if the etag provided matches the resource's current etag value. IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request DeleteWaasPolicyRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request DeleteWaasPolicyRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request DeleteWaasPolicyRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request DeleteWaasPolicyRequest) String() string
func (request DeleteWaasPolicyRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
DeleteWaasPolicyResponse wrapper for the DeleteWaasPolicy operation
type DeleteWaasPolicyResponse struct { // The underlying http response RawResponse *http.Response // A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` }
func (response DeleteWaasPolicyResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response DeleteWaasPolicyResponse) String() string
DeviceFingerprintChallenge The device fingerprint challenge settings. The device fingerprint challenge generates hashed signatures of both virtual and real browsers to identify and block malicious bots.
type DeviceFingerprintChallenge struct { // Enables or disables the device fingerprint challenge Web Application Firewall feature. IsEnabled *bool `mandatory:"true" json:"isEnabled"` // The action to take on requests from detected bots. If unspecified, defaults to `DETECT`. Action DeviceFingerprintChallengeActionEnum `mandatory:"false" json:"action,omitempty"` // The number of failed requests allowed before taking action. If unspecified, defaults to `10`. FailureThreshold *int `mandatory:"false" json:"failureThreshold"` // The number of seconds between challenges for the same IP address. If unspecified, defaults to `60`. ActionExpirationInSeconds *int `mandatory:"false" json:"actionExpirationInSeconds"` // The number of seconds before the failure threshold resets. If unspecified, defaults to `60`. FailureThresholdExpirationInSeconds *int `mandatory:"false" json:"failureThresholdExpirationInSeconds"` // The maximum number of IP addresses permitted with the same device fingerprint. If unspecified, defaults to `20`. MaxAddressCount *int `mandatory:"false" json:"maxAddressCount"` // The number of seconds before the maximum addresses count resets. If unspecified, defaults to `60`. MaxAddressCountExpirationInSeconds *int `mandatory:"false" json:"maxAddressCountExpirationInSeconds"` ChallengeSettings *BlockChallengeSettings `mandatory:"false" json:"challengeSettings"` }
func (m DeviceFingerprintChallenge) String() string
func (m DeviceFingerprintChallenge) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
DeviceFingerprintChallengeActionEnum Enum with underlying type: string
type DeviceFingerprintChallengeActionEnum string
Set of constants representing the allowable values for DeviceFingerprintChallengeActionEnum
const ( DeviceFingerprintChallengeActionDetect DeviceFingerprintChallengeActionEnum = "DETECT" DeviceFingerprintChallengeActionBlock DeviceFingerprintChallengeActionEnum = "BLOCK" )
func GetDeviceFingerprintChallengeActionEnumValues() []DeviceFingerprintChallengeActionEnum
GetDeviceFingerprintChallengeActionEnumValues Enumerates the set of values for DeviceFingerprintChallengeActionEnum
func GetMappingDeviceFingerprintChallengeActionEnum(val string) (DeviceFingerprintChallengeActionEnum, bool)
GetMappingDeviceFingerprintChallengeActionEnum performs case Insensitive comparison on enum value and return the desired enum
EdgeSubnet The details about an edge node subnet.
type EdgeSubnet struct { // An edge node subnet. This can include /24 or /8 addresses. Cidr *string `mandatory:"false" json:"cidr"` // The date and time the last change was made to the indicated edge node subnet, expressed in RFC 3339 timestamp format. TimeModified *common.SDKTime `mandatory:"false" json:"timeModified"` // The name of the region containing the indicated subnet. Region *string `mandatory:"false" json:"region"` }
func (m EdgeSubnet) String() string
func (m EdgeSubnet) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ExtendHttpResponseHeaderAction An object that represents the action of adding a header field to a response. If the header with specified value already exists, nothing will be added. If the header exists with different value, additional header name:value pair will be added. Comma separated header values are not considered individually (instead as a single value) when adding a new header field.
type ExtendHttpResponseHeaderAction struct { // A header field name that conforms to RFC 7230. // Example: `example_header_name` Header *string `mandatory:"true" json:"header"` // A header field value that conforms to RFC 7230. // Example: `example_value` Value *string `mandatory:"true" json:"value"` }
func (m ExtendHttpResponseHeaderAction) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m ExtendHttpResponseHeaderAction) String() string
func (m ExtendHttpResponseHeaderAction) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
GetAddressListRequest wrapper for the GetAddressList operation
# See also
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.54.0/waas/GetAddressList.go.html to see an example of how to use GetAddressListRequest.
type GetAddressListRequest struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the address list. This number is generated when the address list is added to the compartment. AddressListId *string `mandatory:"true" contributesTo:"path" name:"addressListId"` // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request GetAddressListRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request GetAddressListRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request GetAddressListRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetAddressListRequest) String() string
func (request GetAddressListRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
GetAddressListResponse wrapper for the GetAddressList operation
type GetAddressListResponse struct { // The underlying http response RawResponse *http.Response // The AddressList instance AddressList `presentIn:"body"` // For optimistic concurrency control. See `if-match`. Etag *string `presentIn:"header" name:"etag"` // A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response GetAddressListResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response GetAddressListResponse) String() string
GetCertificateRequest wrapper for the GetCertificate operation
# See also
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.54.0/waas/GetCertificate.go.html to see an example of how to use GetCertificateRequest.
type GetCertificateRequest struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the SSL certificate used in the WAAS policy. This number is generated when the certificate is added to the policy. CertificateId *string `mandatory:"true" contributesTo:"path" name:"certificateId"` // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request GetCertificateRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request GetCertificateRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request GetCertificateRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetCertificateRequest) String() string
func (request GetCertificateRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
GetCertificateResponse wrapper for the GetCertificate operation
type GetCertificateResponse struct { // The underlying http response RawResponse *http.Response // The Certificate instance Certificate `presentIn:"body"` // For optimistic concurrency control. See `if-match`. Etag *string `presentIn:"header" name:"etag"` // A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response GetCertificateResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response GetCertificateResponse) String() string
GetCustomProtectionRuleRequest wrapper for the GetCustomProtectionRule operation
# See also
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.54.0/waas/GetCustomProtectionRule.go.html to see an example of how to use GetCustomProtectionRuleRequest.
type GetCustomProtectionRuleRequest struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the custom protection rule. This number is generated when the custom protection rule is added to the compartment. CustomProtectionRuleId *string `mandatory:"true" contributesTo:"path" name:"customProtectionRuleId"` // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request GetCustomProtectionRuleRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request GetCustomProtectionRuleRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request GetCustomProtectionRuleRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetCustomProtectionRuleRequest) String() string
func (request GetCustomProtectionRuleRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
GetCustomProtectionRuleResponse wrapper for the GetCustomProtectionRule operation
type GetCustomProtectionRuleResponse struct { // The underlying http response RawResponse *http.Response // The CustomProtectionRule instance CustomProtectionRule `presentIn:"body"` // For optimistic concurrency control. See `if-match`. Etag *string `presentIn:"header" name:"etag"` // A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response GetCustomProtectionRuleResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response GetCustomProtectionRuleResponse) String() string
GetDeviceFingerprintChallengeRequest wrapper for the GetDeviceFingerprintChallenge operation
# See also
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.54.0/waas/GetDeviceFingerprintChallenge.go.html to see an example of how to use GetDeviceFingerprintChallengeRequest.
type GetDeviceFingerprintChallengeRequest struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the WAAS policy. WaasPolicyId *string `mandatory:"true" contributesTo:"path" name:"waasPolicyId"` // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request GetDeviceFingerprintChallengeRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request GetDeviceFingerprintChallengeRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request GetDeviceFingerprintChallengeRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetDeviceFingerprintChallengeRequest) String() string
func (request GetDeviceFingerprintChallengeRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
GetDeviceFingerprintChallengeResponse wrapper for the GetDeviceFingerprintChallenge operation
type GetDeviceFingerprintChallengeResponse struct { // The underlying http response RawResponse *http.Response // The DeviceFingerprintChallenge instance DeviceFingerprintChallenge `presentIn:"body"` // For optimistic concurrency control. See `if-match`. Etag *string `presentIn:"header" name:"etag"` // A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response GetDeviceFingerprintChallengeResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response GetDeviceFingerprintChallengeResponse) String() string
GetHttpRedirectRequest wrapper for the GetHttpRedirect operation
# See also
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.54.0/waas/GetHttpRedirect.go.html to see an example of how to use GetHttpRedirectRequest.
type GetHttpRedirectRequest struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the HTTP Redirect. HttpRedirectId *string `mandatory:"true" contributesTo:"path" name:"httpRedirectId"` // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request GetHttpRedirectRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request GetHttpRedirectRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request GetHttpRedirectRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetHttpRedirectRequest) String() string
func (request GetHttpRedirectRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
GetHttpRedirectResponse wrapper for the GetHttpRedirect operation
type GetHttpRedirectResponse struct { // The underlying http response RawResponse *http.Response // The HttpRedirect instance HttpRedirect `presentIn:"body"` // For optimistic concurrency control. See `if-match`. Etag *string `presentIn:"header" name:"etag"` // A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response GetHttpRedirectResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response GetHttpRedirectResponse) String() string
GetHumanInteractionChallengeRequest wrapper for the GetHumanInteractionChallenge operation
# See also
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.54.0/waas/GetHumanInteractionChallenge.go.html to see an example of how to use GetHumanInteractionChallengeRequest.
type GetHumanInteractionChallengeRequest struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the WAAS policy. WaasPolicyId *string `mandatory:"true" contributesTo:"path" name:"waasPolicyId"` // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request GetHumanInteractionChallengeRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request GetHumanInteractionChallengeRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request GetHumanInteractionChallengeRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetHumanInteractionChallengeRequest) String() string
func (request GetHumanInteractionChallengeRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
GetHumanInteractionChallengeResponse wrapper for the GetHumanInteractionChallenge operation
type GetHumanInteractionChallengeResponse struct { // The underlying http response RawResponse *http.Response // The HumanInteractionChallenge instance HumanInteractionChallenge `presentIn:"body"` // For optimistic concurrency control. See `if-match`. Etag *string `presentIn:"header" name:"etag"` // A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response GetHumanInteractionChallengeResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response GetHumanInteractionChallengeResponse) String() string
GetJsChallengeRequest wrapper for the GetJsChallenge operation
# See also
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.54.0/waas/GetJsChallenge.go.html to see an example of how to use GetJsChallengeRequest.
type GetJsChallengeRequest struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the WAAS policy. WaasPolicyId *string `mandatory:"true" contributesTo:"path" name:"waasPolicyId"` // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request GetJsChallengeRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request GetJsChallengeRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request GetJsChallengeRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetJsChallengeRequest) String() string
func (request GetJsChallengeRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
GetJsChallengeResponse wrapper for the GetJsChallenge operation
type GetJsChallengeResponse struct { // The underlying http response RawResponse *http.Response // The JsChallenge instance JsChallenge `presentIn:"body"` // For optimistic concurrency control. See `if-match`. Etag *string `presentIn:"header" name:"etag"` // A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response GetJsChallengeResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response GetJsChallengeResponse) String() string
GetPolicyConfigRequest wrapper for the GetPolicyConfig operation
# See also
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.54.0/waas/GetPolicyConfig.go.html to see an example of how to use GetPolicyConfigRequest.
type GetPolicyConfigRequest struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the WAAS policy. WaasPolicyId *string `mandatory:"true" contributesTo:"path" name:"waasPolicyId"` // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request GetPolicyConfigRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request GetPolicyConfigRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request GetPolicyConfigRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetPolicyConfigRequest) String() string
func (request GetPolicyConfigRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
GetPolicyConfigResponse wrapper for the GetPolicyConfig operation
type GetPolicyConfigResponse struct { // The underlying http response RawResponse *http.Response // The PolicyConfig instance PolicyConfig `presentIn:"body"` // For optimistic concurrency control. See `if-match`. Etag *string `presentIn:"header" name:"etag"` // A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response GetPolicyConfigResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response GetPolicyConfigResponse) String() string
GetProtectionRuleRequest wrapper for the GetProtectionRule operation
# See also
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.54.0/waas/GetProtectionRule.go.html to see an example of how to use GetProtectionRuleRequest.
type GetProtectionRuleRequest struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the WAAS policy. WaasPolicyId *string `mandatory:"true" contributesTo:"path" name:"waasPolicyId"` // The protection rule key. ProtectionRuleKey *string `mandatory:"true" contributesTo:"path" name:"protectionRuleKey"` // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request GetProtectionRuleRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request GetProtectionRuleRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request GetProtectionRuleRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetProtectionRuleRequest) String() string
func (request GetProtectionRuleRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
GetProtectionRuleResponse wrapper for the GetProtectionRule operation
type GetProtectionRuleResponse struct { // The underlying http response RawResponse *http.Response // The ProtectionRule instance ProtectionRule `presentIn:"body"` // For optimistic concurrency control. See `if-match`. Etag *string `presentIn:"header" name:"etag"` // A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response GetProtectionRuleResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response GetProtectionRuleResponse) String() string
GetProtectionSettingsRequest wrapper for the GetProtectionSettings operation
# See also
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.54.0/waas/GetProtectionSettings.go.html to see an example of how to use GetProtectionSettingsRequest.
type GetProtectionSettingsRequest struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the WAAS policy. WaasPolicyId *string `mandatory:"true" contributesTo:"path" name:"waasPolicyId"` // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request GetProtectionSettingsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request GetProtectionSettingsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request GetProtectionSettingsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetProtectionSettingsRequest) String() string
func (request GetProtectionSettingsRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
GetProtectionSettingsResponse wrapper for the GetProtectionSettings operation
type GetProtectionSettingsResponse struct { // The underlying http response RawResponse *http.Response // The ProtectionSettings instance ProtectionSettings `presentIn:"body"` // For optimistic concurrency control. See `if-match`. Etag *string `presentIn:"header" name:"etag"` // A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response GetProtectionSettingsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response GetProtectionSettingsResponse) String() string
GetWaasPolicyRequest wrapper for the GetWaasPolicy operation
# See also
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.54.0/waas/GetWaasPolicy.go.html to see an example of how to use GetWaasPolicyRequest.
type GetWaasPolicyRequest struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the WAAS policy. WaasPolicyId *string `mandatory:"true" contributesTo:"path" name:"waasPolicyId"` // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request GetWaasPolicyRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request GetWaasPolicyRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request GetWaasPolicyRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetWaasPolicyRequest) String() string
func (request GetWaasPolicyRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
GetWaasPolicyResponse wrapper for the GetWaasPolicy operation
type GetWaasPolicyResponse struct { // The underlying http response RawResponse *http.Response // The WaasPolicy instance WaasPolicy `presentIn:"body"` // For optimistic concurrency control. See `if-match`. Etag *string `presentIn:"header" name:"etag"` // A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response GetWaasPolicyResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response GetWaasPolicyResponse) String() string
GetWafAddressRateLimitingRequest wrapper for the GetWafAddressRateLimiting operation
# See also
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.54.0/waas/GetWafAddressRateLimiting.go.html to see an example of how to use GetWafAddressRateLimitingRequest.
type GetWafAddressRateLimitingRequest struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the WAAS policy. WaasPolicyId *string `mandatory:"true" contributesTo:"path" name:"waasPolicyId"` // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request GetWafAddressRateLimitingRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request GetWafAddressRateLimitingRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request GetWafAddressRateLimitingRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetWafAddressRateLimitingRequest) String() string
func (request GetWafAddressRateLimitingRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
GetWafAddressRateLimitingResponse wrapper for the GetWafAddressRateLimiting operation
type GetWafAddressRateLimitingResponse struct { // The underlying http response RawResponse *http.Response // The AddressRateLimiting instance AddressRateLimiting `presentIn:"body"` // For optimistic concurrency control. See `if-match`. Etag *string `presentIn:"header" name:"etag"` // A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response GetWafAddressRateLimitingResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response GetWafAddressRateLimitingResponse) String() string
GetWafConfigRequest wrapper for the GetWafConfig operation
# See also
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.54.0/waas/GetWafConfig.go.html to see an example of how to use GetWafConfigRequest.
type GetWafConfigRequest struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the WAAS policy. WaasPolicyId *string `mandatory:"true" contributesTo:"path" name:"waasPolicyId"` // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request GetWafConfigRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request GetWafConfigRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request GetWafConfigRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetWafConfigRequest) String() string
func (request GetWafConfigRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
GetWafConfigResponse wrapper for the GetWafConfig operation
type GetWafConfigResponse struct { // The underlying http response RawResponse *http.Response // The WafConfig instance WafConfig `presentIn:"body"` // For optimistic concurrency control. See `if-match`. Etag *string `presentIn:"header" name:"etag"` // A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response GetWafConfigResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response GetWafConfigResponse) String() string
GetWorkRequestRequest wrapper for the GetWorkRequest operation
# See also
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.54.0/waas/GetWorkRequest.go.html to see an example of how to use GetWorkRequestRequest.
type GetWorkRequestRequest struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. This number is generated when work request is created. WorkRequestId *string `mandatory:"true" contributesTo:"path" name:"workRequestId"` // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request GetWorkRequestRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request GetWorkRequestRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request GetWorkRequestRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetWorkRequestRequest) String() string
func (request GetWorkRequestRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
GetWorkRequestResponse wrapper for the GetWorkRequest operation
type GetWorkRequestResponse struct { // The underlying http response RawResponse *http.Response // The WorkRequest instance WorkRequest `presentIn:"body"` // For optimistic concurrency control. See `if-match`. Etag *string `presentIn:"header" name:"etag"` // A decimal number representing the number of seconds the client should wait before polling this endpoint again. RetryAfter *float32 `presentIn:"header" name:"retry-after"` // A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response GetWorkRequestResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response GetWorkRequestResponse) String() string
GoodBot The good bot settings. Good bots provides a list of bots which are managed by known providers.
type GoodBot struct { // The unique key for the bot. Key *string `mandatory:"true" json:"key"` // Enables or disables the bot. IsEnabled *bool `mandatory:"true" json:"isEnabled"` // The bot name. Name *string `mandatory:"false" json:"name"` // The description of the bot. Description *string `mandatory:"false" json:"description"` }
func (m GoodBot) String() string
func (m GoodBot) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
Header An HTTP header with name and value.
type Header struct { // The name of the header. Name *string `mandatory:"true" json:"name"` // The value of the header. Value *string `mandatory:"true" json:"value"` }
func (m Header) String() string
func (m Header) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
HeaderManipulationAction An object that represents an action to apply to an HTTP headers.
type HeaderManipulationAction interface { }
HeaderManipulationActionActionEnum Enum with underlying type: string
type HeaderManipulationActionActionEnum string
Set of constants representing the allowable values for HeaderManipulationActionActionEnum
const ( HeaderManipulationActionActionExtendHttpResponseHeader HeaderManipulationActionActionEnum = "EXTEND_HTTP_RESPONSE_HEADER" HeaderManipulationActionActionAddHttpResponseHeader HeaderManipulationActionActionEnum = "ADD_HTTP_RESPONSE_HEADER" HeaderManipulationActionActionRemoveHttpResponseHeader HeaderManipulationActionActionEnum = "REMOVE_HTTP_RESPONSE_HEADER" )
func GetHeaderManipulationActionActionEnumValues() []HeaderManipulationActionActionEnum
GetHeaderManipulationActionActionEnumValues Enumerates the set of values for HeaderManipulationActionActionEnum
func GetMappingHeaderManipulationActionActionEnum(val string) (HeaderManipulationActionActionEnum, bool)
GetMappingHeaderManipulationActionActionEnum performs case Insensitive comparison on enum value and return the desired enum
HealthCheck Health checks monitor the status of your origin servers and only route traffic to the origins that pass the health check. If the health check fails, origin is automatically removed from the load balancing. There is roughly one health check per EDGE POP per period. Any checks that pass will be reported as "healthy".
type HealthCheck struct { // Enables or disables the health checks. IsEnabled *bool `mandatory:"false" json:"isEnabled"` // An HTTP verb (i.e. HEAD, GET, or POST) to use when performing the health check. Method HealthCheckMethodEnum `mandatory:"false" json:"method,omitempty"` // Path to visit on your origins when performing the health check. Path *string `mandatory:"false" json:"path"` // HTTP header fields to include in health check requests, expressed as `"name": "value"` properties. Because HTTP header field names are case-insensitive, any use of names that are case-insensitive equal to other names will be rejected. If Host is not specified, requests will include a Host header field with value matching the policy's protected domain. If User-Agent is not specified, requests will include a User-Agent header field with value "waf health checks". // **Note:** The only currently-supported header fields are Host and User-Agent. Headers map[string]string `mandatory:"false" json:"headers"` // The HTTP response codes that signify a healthy state. // - **2XX:** Success response code group. // - **3XX:** Redirection response code group. // - **4XX:** Client errors response code group. // - **5XX:** Server errors response code group. ExpectedResponseCodeGroup []HealthCheckExpectedResponseCodeGroupEnum `mandatory:"false" json:"expectedResponseCodeGroup,omitempty"` // Enables or disables additional check for predefined text in addition to response code. IsResponseTextCheckEnabled *bool `mandatory:"false" json:"isResponseTextCheckEnabled"` // Health check will search for the given text in a case-sensitive manner within the response body and will fail if the text is not found. ExpectedResponseText *string `mandatory:"false" json:"expectedResponseText"` // Time between health checks of an individual origin server, in seconds. IntervalInSeconds *int `mandatory:"false" json:"intervalInSeconds"` // Response timeout represents wait time until request is considered failed, in seconds. TimeoutInSeconds *int `mandatory:"false" json:"timeoutInSeconds"` // Number of successful health checks after which the server is marked up. HealthyThreshold *int `mandatory:"false" json:"healthyThreshold"` // Number of failed health checks after which the server is marked down. UnhealthyThreshold *int `mandatory:"false" json:"unhealthyThreshold"` }
func (m HealthCheck) String() string
func (m HealthCheck) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
HealthCheckExpectedResponseCodeGroupEnum Enum with underlying type: string
type HealthCheckExpectedResponseCodeGroupEnum string
Set of constants representing the allowable values for HealthCheckExpectedResponseCodeGroupEnum
const ( HealthCheckExpectedResponseCodeGroup2xx HealthCheckExpectedResponseCodeGroupEnum = "2XX" HealthCheckExpectedResponseCodeGroup3xx HealthCheckExpectedResponseCodeGroupEnum = "3XX" HealthCheckExpectedResponseCodeGroup4xx HealthCheckExpectedResponseCodeGroupEnum = "4XX" HealthCheckExpectedResponseCodeGroup5xx HealthCheckExpectedResponseCodeGroupEnum = "5XX" )
func GetHealthCheckExpectedResponseCodeGroupEnumValues() []HealthCheckExpectedResponseCodeGroupEnum
GetHealthCheckExpectedResponseCodeGroupEnumValues Enumerates the set of values for HealthCheckExpectedResponseCodeGroupEnum
func GetMappingHealthCheckExpectedResponseCodeGroupEnum(val string) (HealthCheckExpectedResponseCodeGroupEnum, bool)
GetMappingHealthCheckExpectedResponseCodeGroupEnum performs case Insensitive comparison on enum value and return the desired enum
HealthCheckMethodEnum Enum with underlying type: string
type HealthCheckMethodEnum string
Set of constants representing the allowable values for HealthCheckMethodEnum
const ( HealthCheckMethodGet HealthCheckMethodEnum = "GET" HealthCheckMethodHead HealthCheckMethodEnum = "HEAD" HealthCheckMethodPost HealthCheckMethodEnum = "POST" )
func GetHealthCheckMethodEnumValues() []HealthCheckMethodEnum
GetHealthCheckMethodEnumValues Enumerates the set of values for HealthCheckMethodEnum
func GetMappingHealthCheckMethodEnum(val string) (HealthCheckMethodEnum, bool)
GetMappingHealthCheckMethodEnum performs case Insensitive comparison on enum value and return the desired enum
HttpRedirect The details of a HTTP Redirect configuration to allow redirecting HTTP traffic from a request domain to a new target. **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API.
type HttpRedirect struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the HTTP Redirect. Id *string `mandatory:"false" json:"id"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the HTTP Redirect's compartment. CompartmentId *string `mandatory:"false" json:"compartmentId"` // The user-friendly name of the HTTP Redirect. The name can be changed and does not need to be unique. DisplayName *string `mandatory:"false" json:"displayName"` // The domain from which traffic will be redirected. Domain *string `mandatory:"false" json:"domain"` // The redirect target object including all the redirect data. Target *HttpRedirectTarget `mandatory:"false" json:"target"` // The response code returned for the redirect to the client. For more information, see RFC 7231 (https://tools.ietf.org/html/rfc7231#section-6.4). ResponseCode *int `mandatory:"false" json:"responseCode"` // The date and time the policy was created, expressed in RFC 3339 timestamp format. TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` // The current lifecycle state of the HTTP Redirect. LifecycleState LifecycleStatesEnum `mandatory:"false" json:"lifecycleState,omitempty"` // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` // Defined tags for this resource. Each key is predefined and scoped to a namespace. // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` }
func (m HttpRedirect) String() string
func (m HttpRedirect) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
HttpRedirectSummary The details of a HTTP Redirect configuration to allow redirecting HTTP traffic from a request domain to a new target. **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API.
type HttpRedirectSummary struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the HTTP Redirect. Id *string `mandatory:"false" json:"id"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the HTTP Redirect's compartment. CompartmentId *string `mandatory:"false" json:"compartmentId"` // The user-friendly name of the HTTP Redirect. The name can be changed and does not need to be unique. DisplayName *string `mandatory:"false" json:"displayName"` // The domain from which traffic will be redirected. Domain *string `mandatory:"false" json:"domain"` // The redirect target object including all the redirect data. Target *HttpRedirectTarget `mandatory:"false" json:"target"` // The response code returned for the redirect to the client. For more information, see RFC 7231 (https://tools.ietf.org/html/rfc7231#section-6.4). ResponseCode *int `mandatory:"false" json:"responseCode"` // The current lifecycle state of the HTTP Redirect. LifecycleState LifecycleStatesEnum `mandatory:"false" json:"lifecycleState,omitempty"` // The date and time the policy was created, expressed in RFC 3339 timestamp format. TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` // Defined tags for this resource. Each key is predefined and scoped to a namespace. // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` }
func (m HttpRedirectSummary) String() string
func (m HttpRedirectSummary) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
HttpRedirectTarget The representation of HttpRedirectTarget
type HttpRedirectTarget struct { // The protocol used for the target, http or https. Protocol HttpRedirectTargetProtocolEnum `mandatory:"true" json:"protocol"` // The host portion of the redirect. Host *string `mandatory:"true" json:"host"` // The path component of the target URL (e.g., "/path/to/resource" in "https://target.example.com/path/to/resource?redirected"), which can be empty, static, or request-copying, or request-prefixing. Use of \ is not permitted except to escape a following \, {, or }. An empty value is treated the same as static "/". A static value must begin with a leading "/", optionally followed by other path characters. A request-copying value must exactly match "{path}", and will be replaced with the path component of the request URL (including its initial "/"). A request-prefixing value must start with "/" and end with a non-escaped "{path}", which will be replaced with the path component of the request URL (including its initial "/"). Only one such replacement token is allowed. Path *string `mandatory:"true" json:"path"` // The query component of the target URL (e.g., "?redirected" in "https://target.example.com/path/to/resource?redirected"), which can be empty, static, or request-copying. Use of \ is not permitted except to escape a following \, {, or }. An empty value results in a redirection target URL with no query component. A static value must begin with a leading "?", optionally followed by other query characters. A request-copying value must exactly match "{query}", and will be replaced with the query component of the request URL (including a leading "?" if and only if the request URL includes a query component). Query *string `mandatory:"true" json:"query"` // Port number of the target destination of the redirect, default to match protocol Port *int `mandatory:"false" json:"port"` }
func (m HttpRedirectTarget) String() string
func (m HttpRedirectTarget) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
HttpRedirectTargetProtocolEnum Enum with underlying type: string
type HttpRedirectTargetProtocolEnum string
Set of constants representing the allowable values for HttpRedirectTargetProtocolEnum
const ( HttpRedirectTargetProtocolHttp HttpRedirectTargetProtocolEnum = "HTTP" HttpRedirectTargetProtocolHttps HttpRedirectTargetProtocolEnum = "HTTPS" )
func GetHttpRedirectTargetProtocolEnumValues() []HttpRedirectTargetProtocolEnum
GetHttpRedirectTargetProtocolEnumValues Enumerates the set of values for HttpRedirectTargetProtocolEnum
func GetMappingHttpRedirectTargetProtocolEnum(val string) (HttpRedirectTargetProtocolEnum, bool)
GetMappingHttpRedirectTargetProtocolEnum performs case Insensitive comparison on enum value and return the desired enum
HumanInteractionChallenge The human interaction challenge settings. The human interaction challenge checks various event listeners in the user's browser to determine if there is a human user making a request.
type HumanInteractionChallenge struct { // Enables or disables the human interaction challenge Web Application Firewall feature. IsEnabled *bool `mandatory:"true" json:"isEnabled"` // The action to take against requests from detected bots. If unspecified, defaults to `DETECT`. Action HumanInteractionChallengeActionEnum `mandatory:"false" json:"action,omitempty"` // The number of failed requests before taking action. If unspecified, defaults to `10`. FailureThreshold *int `mandatory:"false" json:"failureThreshold"` // The number of seconds between challenges for the same IP address. If unspecified, defaults to `60`. ActionExpirationInSeconds *int `mandatory:"false" json:"actionExpirationInSeconds"` // The number of seconds before the failure threshold resets. If unspecified, defaults to `60`. FailureThresholdExpirationInSeconds *int `mandatory:"false" json:"failureThresholdExpirationInSeconds"` // The number of interactions required to pass the challenge. If unspecified, defaults to `3`. InteractionThreshold *int `mandatory:"false" json:"interactionThreshold"` // The number of seconds to record the interactions from the user. If unspecified, defaults to `15`. RecordingPeriodInSeconds *int `mandatory:"false" json:"recordingPeriodInSeconds"` // Adds an additional HTTP header to requests that fail the challenge before being passed to the origin. Only applicable when the `action` is set to `DETECT`. SetHttpHeader *Header `mandatory:"false" json:"setHttpHeader"` ChallengeSettings *BlockChallengeSettings `mandatory:"false" json:"challengeSettings"` // When enabled, the user is identified not only by the IP address but also by an unique additional hash, which prevents blocking visitors with shared IP addresses. IsNatEnabled *bool `mandatory:"false" json:"isNatEnabled"` }
func (m HumanInteractionChallenge) String() string
func (m HumanInteractionChallenge) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
HumanInteractionChallengeActionEnum Enum with underlying type: string
type HumanInteractionChallengeActionEnum string
Set of constants representing the allowable values for HumanInteractionChallengeActionEnum
const ( HumanInteractionChallengeActionDetect HumanInteractionChallengeActionEnum = "DETECT" HumanInteractionChallengeActionBlock HumanInteractionChallengeActionEnum = "BLOCK" )
func GetHumanInteractionChallengeActionEnumValues() []HumanInteractionChallengeActionEnum
GetHumanInteractionChallengeActionEnumValues Enumerates the set of values for HumanInteractionChallengeActionEnum
func GetMappingHumanInteractionChallengeActionEnum(val string) (HumanInteractionChallengeActionEnum, bool)
GetMappingHumanInteractionChallengeActionEnum performs case Insensitive comparison on enum value and return the desired enum
IpHashLoadBalancingMethod An object that represents the `ip-hash` load balancing method.
type IpHashLoadBalancingMethod struct { }
func (m IpHashLoadBalancingMethod) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m IpHashLoadBalancingMethod) String() string
func (m IpHashLoadBalancingMethod) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
JsChallenge The JavaScript challenge settings. JavaScript Challenge is the function to filter abnormal or malicious bots and allow access to real clients.
type JsChallenge struct { // Enables or disables the JavaScript challenge Web Application Firewall feature. IsEnabled *bool `mandatory:"true" json:"isEnabled"` // The action to take against requests from detected bots. If unspecified, defaults to `DETECT`. Action JsChallengeActionEnum `mandatory:"false" json:"action,omitempty"` // The number of failed requests before taking action. If unspecified, defaults to `10`. FailureThreshold *int `mandatory:"false" json:"failureThreshold"` // The number of seconds between challenges from the same IP address. If unspecified, defaults to `60`. ActionExpirationInSeconds *int `mandatory:"false" json:"actionExpirationInSeconds"` // Adds an additional HTTP header to requests that fail the challenge before being passed to the origin. Only applicable when the `action` is set to `DETECT`. SetHttpHeader *Header `mandatory:"false" json:"setHttpHeader"` ChallengeSettings *BlockChallengeSettings `mandatory:"false" json:"challengeSettings"` // When enabled, redirect responses from the origin will also be challenged. This will change HTTP 301/302 responses from origin to HTTP 200 with an HTML body containing JavaScript page redirection. AreRedirectsChallenged *bool `mandatory:"false" json:"areRedirectsChallenged"` // When defined, the JavaScript Challenge would be applied only for the requests that matched all the listed conditions. Criteria []AccessRuleCriteria `mandatory:"false" json:"criteria"` // When enabled, the user is identified not only by the IP address but also by an unique additional hash, which prevents blocking visitors with shared IP addresses. IsNatEnabled *bool `mandatory:"false" json:"isNatEnabled"` }
func (m JsChallenge) String() string
func (m JsChallenge) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
JsChallengeActionEnum Enum with underlying type: string
type JsChallengeActionEnum string
Set of constants representing the allowable values for JsChallengeActionEnum
const ( JsChallengeActionDetect JsChallengeActionEnum = "DETECT" JsChallengeActionBlock JsChallengeActionEnum = "BLOCK" )
func GetJsChallengeActionEnumValues() []JsChallengeActionEnum
GetJsChallengeActionEnumValues Enumerates the set of values for JsChallengeActionEnum
func GetMappingJsChallengeActionEnum(val string) (JsChallengeActionEnum, bool)
GetMappingJsChallengeActionEnum performs case Insensitive comparison on enum value and return the desired enum
LifecycleStatesEnum Enum with underlying type: string
type LifecycleStatesEnum string
Set of constants representing the allowable values for LifecycleStatesEnum Deprecated
const ( CertificateLifecycleStateCreating LifecycleStatesEnum = "CREATING" CertificateLifecycleStateActive LifecycleStatesEnum = "ACTIVE" CertificateLifecycleStateFailed LifecycleStatesEnum = "FAILED" CertificateLifecycleStateUpdating LifecycleStatesEnum = "UPDATING" CertificateLifecycleStateDeleting LifecycleStatesEnum = "DELETING" CertificateLifecycleStateDeleted LifecycleStatesEnum = "DELETED" )
Set of constants representing the allowable values for LifecycleStatesEnum Deprecated
const ( CertificateSummaryLifecycleStateCreating LifecycleStatesEnum = "CREATING" CertificateSummaryLifecycleStateActive LifecycleStatesEnum = "ACTIVE" CertificateSummaryLifecycleStateFailed LifecycleStatesEnum = "FAILED" CertificateSummaryLifecycleStateUpdating LifecycleStatesEnum = "UPDATING" CertificateSummaryLifecycleStateDeleting LifecycleStatesEnum = "DELETING" CertificateSummaryLifecycleStateDeleted LifecycleStatesEnum = "DELETED" )
Set of constants representing the allowable values for LifecycleStatesEnum
const ( LifecycleStatesCreating LifecycleStatesEnum = "CREATING" LifecycleStatesActive LifecycleStatesEnum = "ACTIVE" LifecycleStatesFailed LifecycleStatesEnum = "FAILED" LifecycleStatesUpdating LifecycleStatesEnum = "UPDATING" LifecycleStatesDeleting LifecycleStatesEnum = "DELETING" LifecycleStatesDeleted LifecycleStatesEnum = "DELETED" )
Set of constants representing the allowable values for LifecycleStatesEnum Deprecated
const ( WaasPolicyLifecycleStateCreating LifecycleStatesEnum = "CREATING" WaasPolicyLifecycleStateActive LifecycleStatesEnum = "ACTIVE" WaasPolicyLifecycleStateFailed LifecycleStatesEnum = "FAILED" WaasPolicyLifecycleStateUpdating LifecycleStatesEnum = "UPDATING" WaasPolicyLifecycleStateDeleting LifecycleStatesEnum = "DELETING" WaasPolicyLifecycleStateDeleted LifecycleStatesEnum = "DELETED" )
Set of constants representing the allowable values for LifecycleStatesEnum Deprecated
const ( WaasPolicySummaryLifecycleStateCreating LifecycleStatesEnum = "CREATING" WaasPolicySummaryLifecycleStateActive LifecycleStatesEnum = "ACTIVE" WaasPolicySummaryLifecycleStateFailed LifecycleStatesEnum = "FAILED" WaasPolicySummaryLifecycleStateUpdating LifecycleStatesEnum = "UPDATING" WaasPolicySummaryLifecycleStateDeleting LifecycleStatesEnum = "DELETING" WaasPolicySummaryLifecycleStateDeleted LifecycleStatesEnum = "DELETED" )
func GetLifecycleStatesEnumValues() []LifecycleStatesEnum
GetLifecycleStatesEnumValues Enumerates the set of values for LifecycleStatesEnum
func GetMappingLifecycleStatesEnum(val string) (LifecycleStatesEnum, bool)
GetMappingLifecycleStatesEnum performs case Insensitive comparison on enum value and return the desired enum
ListAccessRulesRequest wrapper for the ListAccessRules operation
# See also
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.54.0/waas/ListAccessRules.go.html to see an example of how to use ListAccessRulesRequest.
type ListAccessRulesRequest struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the WAAS policy. WaasPolicyId *string `mandatory:"true" contributesTo:"path" name:"waasPolicyId"` // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // The maximum number of items to return in a paginated call. If unspecified, defaults to `10`. Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // The value of the `opc-next-page` response header from the previous paginated call. Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request ListAccessRulesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ListAccessRulesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListAccessRulesRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListAccessRulesRequest) String() string
func (request ListAccessRulesRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ListAccessRulesResponse wrapper for the ListAccessRules operation
type ListAccessRulesResponse struct { // The underlying http response RawResponse *http.Response // A list of []AccessRule instances Items []AccessRule `presentIn:"body"` // For optimistic concurrency control. See `if-match`. Etag *string `presentIn:"header" name:"etag"` // For list pagination. When this header appears in the response, additional pages of results may remain. For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response ListAccessRulesResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListAccessRulesResponse) String() string
ListAddressListsRequest wrapper for the ListAddressLists operation
# See also
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.54.0/waas/ListAddressLists.go.html to see an example of how to use ListAddressListsRequest.
type ListAddressListsRequest struct { // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. This number is generated when the compartment is created. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // The maximum number of items to return in a paginated call. If unspecified, defaults to `10`. Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // The value of the `opc-next-page` response header from the previous paginated call. Page *string `mandatory:"false" contributesTo:"query" name:"page"` // The value by which address lists are sorted in a paginated 'List' call. If unspecified, defaults to `timeCreated`. SortBy ListAddressListsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` // The value of the sorting direction of resources in a paginated 'List' call. If unspecified, defaults to `DESC`. SortOrder ListAddressListsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` // Filter address lists using a list of address lists OCIDs. Id []string `contributesTo:"query" name:"id" collectionFormat:"multi"` // Filter address lists using a list of names. Name []string `contributesTo:"query" name:"name" collectionFormat:"multi"` // Filter address lists using a list of lifecycle states. LifecycleState []LifecycleStatesEnum `contributesTo:"query" name:"lifecycleState" omitEmpty:"true" collectionFormat:"multi"` // A filter that matches address lists created on or after the specified date-time. TimeCreatedGreaterThanOrEqualTo *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeCreatedGreaterThanOrEqualTo"` // A filter that matches address lists created before the specified date-time. TimeCreatedLessThan *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeCreatedLessThan"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request ListAddressListsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ListAddressListsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListAddressListsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListAddressListsRequest) String() string
func (request ListAddressListsRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ListAddressListsResponse wrapper for the ListAddressLists operation
type ListAddressListsResponse struct { // The underlying http response RawResponse *http.Response // A list of []AddressListSummary instances Items []AddressListSummary `presentIn:"body"` // For list pagination. When this header appears in the response, additional pages of results may remain. For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response ListAddressListsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListAddressListsResponse) String() string
ListAddressListsSortByEnum Enum with underlying type: string
type ListAddressListsSortByEnum string
Set of constants representing the allowable values for ListAddressListsSortByEnum
const ( ListAddressListsSortById ListAddressListsSortByEnum = "id" ListAddressListsSortByName ListAddressListsSortByEnum = "name" ListAddressListsSortByTimecreated ListAddressListsSortByEnum = "timeCreated" )
func GetListAddressListsSortByEnumValues() []ListAddressListsSortByEnum
GetListAddressListsSortByEnumValues Enumerates the set of values for ListAddressListsSortByEnum
func GetMappingListAddressListsSortByEnum(val string) (ListAddressListsSortByEnum, bool)
GetMappingListAddressListsSortByEnum performs case Insensitive comparison on enum value and return the desired enum
ListAddressListsSortOrderEnum Enum with underlying type: string
type ListAddressListsSortOrderEnum string
Set of constants representing the allowable values for ListAddressListsSortOrderEnum
const ( ListAddressListsSortOrderAsc ListAddressListsSortOrderEnum = "ASC" ListAddressListsSortOrderDesc ListAddressListsSortOrderEnum = "DESC" )
func GetListAddressListsSortOrderEnumValues() []ListAddressListsSortOrderEnum
GetListAddressListsSortOrderEnumValues Enumerates the set of values for ListAddressListsSortOrderEnum
func GetMappingListAddressListsSortOrderEnum(val string) (ListAddressListsSortOrderEnum, bool)
GetMappingListAddressListsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum
ListCachingRulesRequest wrapper for the ListCachingRules operation
# See also
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.54.0/waas/ListCachingRules.go.html to see an example of how to use ListCachingRulesRequest.
type ListCachingRulesRequest struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the WAAS policy. WaasPolicyId *string `mandatory:"true" contributesTo:"path" name:"waasPolicyId"` // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // The maximum number of items to return in a paginated call. If unspecified, defaults to `10`. Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // The value of the `opc-next-page` response header from the previous paginated call. Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request ListCachingRulesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ListCachingRulesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListCachingRulesRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListCachingRulesRequest) String() string
func (request ListCachingRulesRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ListCachingRulesResponse wrapper for the ListCachingRules operation
type ListCachingRulesResponse struct { // The underlying http response RawResponse *http.Response // A list of []CachingRuleSummary instances Items []CachingRuleSummary `presentIn:"body"` // For optimistic concurrency control. See `if-match`. Etag *string `presentIn:"header" name:"etag"` // For list pagination. When this header appears in the response, additional pages of results may remain. For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response ListCachingRulesResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListCachingRulesResponse) String() string
ListCaptchasRequest wrapper for the ListCaptchas operation
# See also
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.54.0/waas/ListCaptchas.go.html to see an example of how to use ListCaptchasRequest.
type ListCaptchasRequest struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the WAAS policy. WaasPolicyId *string `mandatory:"true" contributesTo:"path" name:"waasPolicyId"` // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // The maximum number of items to return in a paginated call. If unspecified, defaults to `10`. Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // The value of the `opc-next-page` response header from the previous paginated call. Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request ListCaptchasRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ListCaptchasRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListCaptchasRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListCaptchasRequest) String() string
func (request ListCaptchasRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ListCaptchasResponse wrapper for the ListCaptchas operation
type ListCaptchasResponse struct { // The underlying http response RawResponse *http.Response // A list of []Captcha instances Items []Captcha `presentIn:"body"` // For optimistic concurrency control. See `if-match`. Etag *string `presentIn:"header" name:"etag"` // For list pagination. When this header appears in the response, additional pages of results may remain. For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response ListCaptchasResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListCaptchasResponse) String() string
ListCertificatesRequest wrapper for the ListCertificates operation
# See also
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.54.0/waas/ListCertificates.go.html to see an example of how to use ListCertificatesRequest.
type ListCertificatesRequest struct { // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. This number is generated when the compartment is created. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // The maximum number of items to return in a paginated call. If unspecified, defaults to `10`. Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // The value of the `opc-next-page` response header from the previous paginated call. Page *string `mandatory:"false" contributesTo:"query" name:"page"` // The value by which certificate summaries are sorted in a paginated 'List' call. If unspecified, defaults to `timeCreated`. SortBy ListCertificatesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` // The value of the sorting direction of resources in a paginated 'List' call. If unspecified, defaults to `DESC`. SortOrder ListCertificatesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` // Filter certificates using a list of certificates OCIDs. Id []string `contributesTo:"query" name:"id" collectionFormat:"multi"` // Filter certificates using a list of display names. DisplayName []string `contributesTo:"query" name:"displayName" collectionFormat:"multi"` // Filter certificates using a list of lifecycle states. LifecycleState []LifecycleStatesEnum `contributesTo:"query" name:"lifecycleState" omitEmpty:"true" collectionFormat:"multi"` // A filter that matches certificates created on or after the specified date-time. TimeCreatedGreaterThanOrEqualTo *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeCreatedGreaterThanOrEqualTo"` // A filter that matches certificates created before the specified date-time. TimeCreatedLessThan *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeCreatedLessThan"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request ListCertificatesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ListCertificatesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListCertificatesRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListCertificatesRequest) String() string
func (request ListCertificatesRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ListCertificatesResponse wrapper for the ListCertificates operation
type ListCertificatesResponse struct { // The underlying http response RawResponse *http.Response // A list of []CertificateSummary instances Items []CertificateSummary `presentIn:"body"` // For list pagination. When this header appears in the response, additional pages of results may remain. For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response ListCertificatesResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListCertificatesResponse) String() string
ListCertificatesSortByEnum Enum with underlying type: string
type ListCertificatesSortByEnum string
Set of constants representing the allowable values for ListCertificatesSortByEnum
const ( ListCertificatesSortById ListCertificatesSortByEnum = "id" ListCertificatesSortByCompartmentid ListCertificatesSortByEnum = "compartmentId" ListCertificatesSortByDisplayname ListCertificatesSortByEnum = "displayName" ListCertificatesSortByNotvalidafter ListCertificatesSortByEnum = "notValidAfter" ListCertificatesSortByTimecreated ListCertificatesSortByEnum = "timeCreated" )
func GetListCertificatesSortByEnumValues() []ListCertificatesSortByEnum
GetListCertificatesSortByEnumValues Enumerates the set of values for ListCertificatesSortByEnum
func GetMappingListCertificatesSortByEnum(val string) (ListCertificatesSortByEnum, bool)
GetMappingListCertificatesSortByEnum performs case Insensitive comparison on enum value and return the desired enum
ListCertificatesSortOrderEnum Enum with underlying type: string
type ListCertificatesSortOrderEnum string
Set of constants representing the allowable values for ListCertificatesSortOrderEnum
const ( ListCertificatesSortOrderAsc ListCertificatesSortOrderEnum = "ASC" ListCertificatesSortOrderDesc ListCertificatesSortOrderEnum = "DESC" )
func GetListCertificatesSortOrderEnumValues() []ListCertificatesSortOrderEnum
GetListCertificatesSortOrderEnumValues Enumerates the set of values for ListCertificatesSortOrderEnum
func GetMappingListCertificatesSortOrderEnum(val string) (ListCertificatesSortOrderEnum, bool)
GetMappingListCertificatesSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum
ListCustomProtectionRulesRequest wrapper for the ListCustomProtectionRules operation
# See also
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.54.0/waas/ListCustomProtectionRules.go.html to see an example of how to use ListCustomProtectionRulesRequest.
type ListCustomProtectionRulesRequest struct { // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. This number is generated when the compartment is created. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // The maximum number of items to return in a paginated call. If unspecified, defaults to `10`. Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // The value of the `opc-next-page` response header from the previous paginated call. Page *string `mandatory:"false" contributesTo:"query" name:"page"` // The value by which custom protection rules are sorted in a paginated 'List' call. If unspecified, defaults to `timeCreated`. SortBy ListCustomProtectionRulesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` // The value of the sorting direction of resources in a paginated 'List' call. If unspecified, defaults to `DESC`. SortOrder ListCustomProtectionRulesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` // Filter custom protection rules using a list of custom protection rule OCIDs. Id []string `contributesTo:"query" name:"id" collectionFormat:"multi"` // Filter custom protection rules using a list of display names. DisplayName []string `contributesTo:"query" name:"displayName" collectionFormat:"multi"` // Filter Custom Protection rules using a list of lifecycle states. LifecycleState []LifecycleStatesEnum `contributesTo:"query" name:"lifecycleState" omitEmpty:"true" collectionFormat:"multi"` // A filter that matches Custom Protection rules created on or after the specified date-time. TimeCreatedGreaterThanOrEqualTo *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeCreatedGreaterThanOrEqualTo"` // A filter that matches custom protection rules created before the specified date-time. TimeCreatedLessThan *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeCreatedLessThan"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request ListCustomProtectionRulesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ListCustomProtectionRulesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListCustomProtectionRulesRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListCustomProtectionRulesRequest) String() string
func (request ListCustomProtectionRulesRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ListCustomProtectionRulesResponse wrapper for the ListCustomProtectionRules operation
type ListCustomProtectionRulesResponse struct { // The underlying http response RawResponse *http.Response // A list of []CustomProtectionRuleSummary instances Items []CustomProtectionRuleSummary `presentIn:"body"` // For list pagination. When this header appears in the response, additional pages of results may remain. For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response ListCustomProtectionRulesResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListCustomProtectionRulesResponse) String() string
ListCustomProtectionRulesSortByEnum Enum with underlying type: string
type ListCustomProtectionRulesSortByEnum string
Set of constants representing the allowable values for ListCustomProtectionRulesSortByEnum
const ( ListCustomProtectionRulesSortById ListCustomProtectionRulesSortByEnum = "id" ListCustomProtectionRulesSortByCompartmentid ListCustomProtectionRulesSortByEnum = "compartmentId" ListCustomProtectionRulesSortByDisplayname ListCustomProtectionRulesSortByEnum = "displayName" ListCustomProtectionRulesSortByModsecurityruleid ListCustomProtectionRulesSortByEnum = "modSecurityRuleId" ListCustomProtectionRulesSortByTimecreated ListCustomProtectionRulesSortByEnum = "timeCreated" )
func GetListCustomProtectionRulesSortByEnumValues() []ListCustomProtectionRulesSortByEnum
GetListCustomProtectionRulesSortByEnumValues Enumerates the set of values for ListCustomProtectionRulesSortByEnum
func GetMappingListCustomProtectionRulesSortByEnum(val string) (ListCustomProtectionRulesSortByEnum, bool)
GetMappingListCustomProtectionRulesSortByEnum performs case Insensitive comparison on enum value and return the desired enum
ListCustomProtectionRulesSortOrderEnum Enum with underlying type: string
type ListCustomProtectionRulesSortOrderEnum string
Set of constants representing the allowable values for ListCustomProtectionRulesSortOrderEnum
const ( ListCustomProtectionRulesSortOrderAsc ListCustomProtectionRulesSortOrderEnum = "ASC" ListCustomProtectionRulesSortOrderDesc ListCustomProtectionRulesSortOrderEnum = "DESC" )
func GetListCustomProtectionRulesSortOrderEnumValues() []ListCustomProtectionRulesSortOrderEnum
GetListCustomProtectionRulesSortOrderEnumValues Enumerates the set of values for ListCustomProtectionRulesSortOrderEnum
func GetMappingListCustomProtectionRulesSortOrderEnum(val string) (ListCustomProtectionRulesSortOrderEnum, bool)
GetMappingListCustomProtectionRulesSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum
ListEdgeSubnetsRequest wrapper for the ListEdgeSubnets operation
# See also
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.54.0/waas/ListEdgeSubnets.go.html to see an example of how to use ListEdgeSubnetsRequest.
type ListEdgeSubnetsRequest struct { // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // The maximum number of items to return in a paginated call. If unspecified, defaults to `10`. Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // The value of the `opc-next-page` response header from the previous paginated call. Page *string `mandatory:"false" contributesTo:"query" name:"page"` // The value by which edge node subnets are sorted in a paginated 'List' call. If unspecified, defaults to `timeModified`. SortBy ListEdgeSubnetsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` // The value of the sorting direction of resources in a paginated 'List' call. If unspecified, defaults to `DESC`. SortOrder ListEdgeSubnetsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request ListEdgeSubnetsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ListEdgeSubnetsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListEdgeSubnetsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListEdgeSubnetsRequest) String() string
func (request ListEdgeSubnetsRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ListEdgeSubnetsResponse wrapper for the ListEdgeSubnets operation
type ListEdgeSubnetsResponse struct { // The underlying http response RawResponse *http.Response // A list of []EdgeSubnet instances Items []EdgeSubnet `presentIn:"body"` // For pagination of a list of items. When paging through a list, if this header appears in the response, then a partial list might have been returned. Include this value as the `page` parameter for the subsequent `GET` request to get the next batch of items. OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response ListEdgeSubnetsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListEdgeSubnetsResponse) String() string
ListEdgeSubnetsSortByEnum Enum with underlying type: string
type ListEdgeSubnetsSortByEnum string
Set of constants representing the allowable values for ListEdgeSubnetsSortByEnum
const ( ListEdgeSubnetsSortByCidr ListEdgeSubnetsSortByEnum = "cidr" ListEdgeSubnetsSortByRegion ListEdgeSubnetsSortByEnum = "region" ListEdgeSubnetsSortByTimemodified ListEdgeSubnetsSortByEnum = "timeModified" )
func GetListEdgeSubnetsSortByEnumValues() []ListEdgeSubnetsSortByEnum
GetListEdgeSubnetsSortByEnumValues Enumerates the set of values for ListEdgeSubnetsSortByEnum
func GetMappingListEdgeSubnetsSortByEnum(val string) (ListEdgeSubnetsSortByEnum, bool)
GetMappingListEdgeSubnetsSortByEnum performs case Insensitive comparison on enum value and return the desired enum
ListEdgeSubnetsSortOrderEnum Enum with underlying type: string
type ListEdgeSubnetsSortOrderEnum string
Set of constants representing the allowable values for ListEdgeSubnetsSortOrderEnum
const ( ListEdgeSubnetsSortOrderAsc ListEdgeSubnetsSortOrderEnum = "ASC" ListEdgeSubnetsSortOrderDesc ListEdgeSubnetsSortOrderEnum = "DESC" )
func GetListEdgeSubnetsSortOrderEnumValues() []ListEdgeSubnetsSortOrderEnum
GetListEdgeSubnetsSortOrderEnumValues Enumerates the set of values for ListEdgeSubnetsSortOrderEnum
func GetMappingListEdgeSubnetsSortOrderEnum(val string) (ListEdgeSubnetsSortOrderEnum, bool)
GetMappingListEdgeSubnetsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum
ListGoodBotsRequest wrapper for the ListGoodBots operation
# See also
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.54.0/waas/ListGoodBots.go.html to see an example of how to use ListGoodBotsRequest.
type ListGoodBotsRequest struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the WAAS policy. WaasPolicyId *string `mandatory:"true" contributesTo:"path" name:"waasPolicyId"` // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // The maximum number of items to return in a paginated call. If unspecified, defaults to `10`. Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // The value of the `opc-next-page` response header from the previous paginated call. Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request ListGoodBotsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ListGoodBotsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListGoodBotsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListGoodBotsRequest) String() string
func (request ListGoodBotsRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ListGoodBotsResponse wrapper for the ListGoodBots operation
type ListGoodBotsResponse struct { // The underlying http response RawResponse *http.Response // A list of []GoodBot instances Items []GoodBot `presentIn:"body"` // For optimistic concurrency control. See `if-match`. Etag *string `presentIn:"header" name:"etag"` // A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // For list pagination. When this header appears in the response, additional pages of results may remain. For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` }
func (response ListGoodBotsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListGoodBotsResponse) String() string
ListHttpRedirectsRequest wrapper for the ListHttpRedirects operation
# See also
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.54.0/waas/ListHttpRedirects.go.html to see an example of how to use ListHttpRedirectsRequest.
type ListHttpRedirectsRequest struct { // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. This number is generated when the compartment is created. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // The maximum number of items to return in a paginated call. If unspecified, defaults to `10`. Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // The value of the `opc-next-page` response header from the previous paginated call. Page *string `mandatory:"false" contributesTo:"query" name:"page"` // The value of the sorting direction of resources in a paginated 'List' call. If unspecified, defaults to `DESC`. SortOrder ListHttpRedirectsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` // The field to sort the results of the List query. SortBy ListHttpRedirectsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` // Filter redirects using a list of redirect OCIDs. Id []string `contributesTo:"query" name:"id" collectionFormat:"multi"` // Filter redirects using a display name. DisplayName []string `contributesTo:"query" name:"displayName" collectionFormat:"multi"` // Filter redirects using a list of lifecycle states. LifecycleState []LifecycleStatesEnum `contributesTo:"query" name:"lifecycleState" omitEmpty:"true" collectionFormat:"multi"` // A filter that matches redirects created on or after the specified date and time. TimeCreatedGreaterThanOrEqualTo *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeCreatedGreaterThanOrEqualTo"` // A filter that matches redirects created before the specified date-time. Default to 1 day before now. TimeCreatedLessThan *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeCreatedLessThan"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request ListHttpRedirectsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ListHttpRedirectsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListHttpRedirectsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListHttpRedirectsRequest) String() string
func (request ListHttpRedirectsRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ListHttpRedirectsResponse wrapper for the ListHttpRedirects operation
type ListHttpRedirectsResponse struct { // The underlying http response RawResponse *http.Response // A list of []HttpRedirectSummary instances Items []HttpRedirectSummary `presentIn:"body"` // For list pagination. When this header appears in the response, additional pages of results may remain. For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response ListHttpRedirectsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListHttpRedirectsResponse) String() string
ListHttpRedirectsSortByEnum Enum with underlying type: string
type ListHttpRedirectsSortByEnum string
Set of constants representing the allowable values for ListHttpRedirectsSortByEnum
const ( ListHttpRedirectsSortById ListHttpRedirectsSortByEnum = "id" ListHttpRedirectsSortByDomain ListHttpRedirectsSortByEnum = "domain" ListHttpRedirectsSortByTarget ListHttpRedirectsSortByEnum = "target" ListHttpRedirectsSortByDisplayname ListHttpRedirectsSortByEnum = "displayName" )
func GetListHttpRedirectsSortByEnumValues() []ListHttpRedirectsSortByEnum
GetListHttpRedirectsSortByEnumValues Enumerates the set of values for ListHttpRedirectsSortByEnum
func GetMappingListHttpRedirectsSortByEnum(val string) (ListHttpRedirectsSortByEnum, bool)
GetMappingListHttpRedirectsSortByEnum performs case Insensitive comparison on enum value and return the desired enum
ListHttpRedirectsSortOrderEnum Enum with underlying type: string
type ListHttpRedirectsSortOrderEnum string
Set of constants representing the allowable values for ListHttpRedirectsSortOrderEnum
const ( ListHttpRedirectsSortOrderAsc ListHttpRedirectsSortOrderEnum = "ASC" ListHttpRedirectsSortOrderDesc ListHttpRedirectsSortOrderEnum = "DESC" )
func GetListHttpRedirectsSortOrderEnumValues() []ListHttpRedirectsSortOrderEnum
GetListHttpRedirectsSortOrderEnumValues Enumerates the set of values for ListHttpRedirectsSortOrderEnum
func GetMappingListHttpRedirectsSortOrderEnum(val string) (ListHttpRedirectsSortOrderEnum, bool)
GetMappingListHttpRedirectsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum
ListProtectionRulesActionEnum Enum with underlying type: string
type ListProtectionRulesActionEnum string
Set of constants representing the allowable values for ListProtectionRulesActionEnum
const ( ListProtectionRulesActionOff ListProtectionRulesActionEnum = "OFF" ListProtectionRulesActionDetect ListProtectionRulesActionEnum = "DETECT" ListProtectionRulesActionBlock ListProtectionRulesActionEnum = "BLOCK" )
func GetListProtectionRulesActionEnumValues() []ListProtectionRulesActionEnum
GetListProtectionRulesActionEnumValues Enumerates the set of values for ListProtectionRulesActionEnum
func GetMappingListProtectionRulesActionEnum(val string) (ListProtectionRulesActionEnum, bool)
GetMappingListProtectionRulesActionEnum performs case Insensitive comparison on enum value and return the desired enum
ListProtectionRulesRequest wrapper for the ListProtectionRules operation
# See also
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.54.0/waas/ListProtectionRules.go.html to see an example of how to use ListProtectionRulesRequest.
type ListProtectionRulesRequest struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the WAAS policy. WaasPolicyId *string `mandatory:"true" contributesTo:"path" name:"waasPolicyId"` // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // The maximum number of items to return in a paginated call. If unspecified, defaults to `10`. Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // The value of the `opc-next-page` response header from the previous paginated call. Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Filter rules using a list of ModSecurity rule IDs. ModSecurityRuleId []string `contributesTo:"query" name:"modSecurityRuleId" collectionFormat:"multi"` // Filter rules using a list of actions. Action []ListProtectionRulesActionEnum `contributesTo:"query" name:"action" omitEmpty:"true" collectionFormat:"multi"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request ListProtectionRulesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ListProtectionRulesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListProtectionRulesRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListProtectionRulesRequest) String() string
func (request ListProtectionRulesRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ListProtectionRulesResponse wrapper for the ListProtectionRules operation
type ListProtectionRulesResponse struct { // The underlying http response RawResponse *http.Response // A list of []ProtectionRule instances Items []ProtectionRule `presentIn:"body"` // For optimistic concurrency control. See `if-match`. Etag *string `presentIn:"header" name:"etag"` // For list pagination. When this header appears in the response, additional pages of results may remain. For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response ListProtectionRulesResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListProtectionRulesResponse) String() string
ListRecommendationsRecommendedActionEnum Enum with underlying type: string
type ListRecommendationsRecommendedActionEnum string
Set of constants representing the allowable values for ListRecommendationsRecommendedActionEnum
const ( ListRecommendationsRecommendedActionDetect ListRecommendationsRecommendedActionEnum = "DETECT" ListRecommendationsRecommendedActionBlock ListRecommendationsRecommendedActionEnum = "BLOCK" )
func GetListRecommendationsRecommendedActionEnumValues() []ListRecommendationsRecommendedActionEnum
GetListRecommendationsRecommendedActionEnumValues Enumerates the set of values for ListRecommendationsRecommendedActionEnum
func GetMappingListRecommendationsRecommendedActionEnum(val string) (ListRecommendationsRecommendedActionEnum, bool)
GetMappingListRecommendationsRecommendedActionEnum performs case Insensitive comparison on enum value and return the desired enum
ListRecommendationsRequest wrapper for the ListRecommendations operation
# See also
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.54.0/waas/ListRecommendations.go.html to see an example of how to use ListRecommendationsRequest.
type ListRecommendationsRequest struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the WAAS policy. WaasPolicyId *string `mandatory:"true" contributesTo:"path" name:"waasPolicyId"` // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // A filter that matches recommended protection rules based on the selected action. If unspecified, rules with any action type are returned. RecommendedAction ListRecommendationsRecommendedActionEnum `mandatory:"false" contributesTo:"query" name:"recommendedAction" omitEmpty:"true"` // The maximum number of items to return in a paginated call. If unspecified, defaults to `10`. Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // The value of the `opc-next-page` response header from the previous paginated call. Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request ListRecommendationsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ListRecommendationsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListRecommendationsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListRecommendationsRequest) String() string
func (request ListRecommendationsRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ListRecommendationsResponse wrapper for the ListRecommendations operation
type ListRecommendationsResponse struct { // The underlying http response RawResponse *http.Response // A list of []Recommendation instances Items []Recommendation `presentIn:"body"` // For optimistic concurrency control. See `if-match`. Etag *string `presentIn:"header" name:"etag"` // For list pagination. When this header appears in the response, additional pages of results may remain. For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response ListRecommendationsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListRecommendationsResponse) String() string
ListThreatFeedsRequest wrapper for the ListThreatFeeds operation
# See also
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.54.0/waas/ListThreatFeeds.go.html to see an example of how to use ListThreatFeedsRequest.
type ListThreatFeedsRequest struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the WAAS policy. WaasPolicyId *string `mandatory:"true" contributesTo:"path" name:"waasPolicyId"` // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // The maximum number of items to return in a paginated call. If unspecified, defaults to `10`. Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // The value of the `opc-next-page` response header from the previous paginated call. Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request ListThreatFeedsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ListThreatFeedsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListThreatFeedsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListThreatFeedsRequest) String() string
func (request ListThreatFeedsRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ListThreatFeedsResponse wrapper for the ListThreatFeeds operation
type ListThreatFeedsResponse struct { // The underlying http response RawResponse *http.Response // A list of []ThreatFeed instances Items []ThreatFeed `presentIn:"body"` // For optimistic concurrency control. See `if-match`. Etag *string `presentIn:"header" name:"etag"` // A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // For list pagination. When this header appears in the response, additional pages of results may remain. For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` }
func (response ListThreatFeedsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListThreatFeedsResponse) String() string
ListWaasPoliciesRequest wrapper for the ListWaasPolicies operation
# See also
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.54.0/waas/ListWaasPolicies.go.html to see an example of how to use ListWaasPoliciesRequest.
type ListWaasPoliciesRequest struct { // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. This number is generated when the compartment is created. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // The maximum number of items to return in a paginated call. If unspecified, defaults to `10`. Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // The value of the `opc-next-page` response header from the previous paginated call. Page *string `mandatory:"false" contributesTo:"query" name:"page"` // The value by which policies are sorted in a paginated 'List' call. If unspecified, defaults to `timeCreated`. SortBy ListWaasPoliciesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` // The value of the sorting direction of resources in a paginated 'List' call. If unspecified, defaults to `DESC`. SortOrder ListWaasPoliciesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` // Filter policies using a list of policy OCIDs. Id []string `contributesTo:"query" name:"id" collectionFormat:"multi"` // Filter policies using a list of display names. DisplayName []string `contributesTo:"query" name:"displayName" collectionFormat:"multi"` // Filter policies using a list of lifecycle states. LifecycleState []LifecycleStatesEnum `contributesTo:"query" name:"lifecycleState" omitEmpty:"true" collectionFormat:"multi"` // A filter that matches policies created on or after the specified date and time. TimeCreatedGreaterThanOrEqualTo *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeCreatedGreaterThanOrEqualTo"` // A filter that matches policies created before the specified date-time. TimeCreatedLessThan *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeCreatedLessThan"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request ListWaasPoliciesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ListWaasPoliciesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListWaasPoliciesRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListWaasPoliciesRequest) String() string
func (request ListWaasPoliciesRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ListWaasPoliciesResponse wrapper for the ListWaasPolicies operation
type ListWaasPoliciesResponse struct { // The underlying http response RawResponse *http.Response // A list of []WaasPolicySummary instances Items []WaasPolicySummary `presentIn:"body"` // For list pagination. When this header appears in the response, additional pages of results may remain. For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response ListWaasPoliciesResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListWaasPoliciesResponse) String() string
ListWaasPoliciesSortByEnum Enum with underlying type: string
type ListWaasPoliciesSortByEnum string
Set of constants representing the allowable values for ListWaasPoliciesSortByEnum
const ( ListWaasPoliciesSortById ListWaasPoliciesSortByEnum = "id" ListWaasPoliciesSortByDisplayname ListWaasPoliciesSortByEnum = "displayName" ListWaasPoliciesSortByTimecreated ListWaasPoliciesSortByEnum = "timeCreated" )
func GetListWaasPoliciesSortByEnumValues() []ListWaasPoliciesSortByEnum
GetListWaasPoliciesSortByEnumValues Enumerates the set of values for ListWaasPoliciesSortByEnum
func GetMappingListWaasPoliciesSortByEnum(val string) (ListWaasPoliciesSortByEnum, bool)
GetMappingListWaasPoliciesSortByEnum performs case Insensitive comparison on enum value and return the desired enum
ListWaasPoliciesSortOrderEnum Enum with underlying type: string
type ListWaasPoliciesSortOrderEnum string
Set of constants representing the allowable values for ListWaasPoliciesSortOrderEnum
const ( ListWaasPoliciesSortOrderAsc ListWaasPoliciesSortOrderEnum = "ASC" ListWaasPoliciesSortOrderDesc ListWaasPoliciesSortOrderEnum = "DESC" )
func GetListWaasPoliciesSortOrderEnumValues() []ListWaasPoliciesSortOrderEnum
GetListWaasPoliciesSortOrderEnumValues Enumerates the set of values for ListWaasPoliciesSortOrderEnum
func GetMappingListWaasPoliciesSortOrderEnum(val string) (ListWaasPoliciesSortOrderEnum, bool)
GetMappingListWaasPoliciesSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum
ListWaasPolicyCustomProtectionRulesActionEnum Enum with underlying type: string
type ListWaasPolicyCustomProtectionRulesActionEnum string
Set of constants representing the allowable values for ListWaasPolicyCustomProtectionRulesActionEnum
const ( ListWaasPolicyCustomProtectionRulesActionDetect ListWaasPolicyCustomProtectionRulesActionEnum = "DETECT" ListWaasPolicyCustomProtectionRulesActionBlock ListWaasPolicyCustomProtectionRulesActionEnum = "BLOCK" )
func GetListWaasPolicyCustomProtectionRulesActionEnumValues() []ListWaasPolicyCustomProtectionRulesActionEnum
GetListWaasPolicyCustomProtectionRulesActionEnumValues Enumerates the set of values for ListWaasPolicyCustomProtectionRulesActionEnum
func GetMappingListWaasPolicyCustomProtectionRulesActionEnum(val string) (ListWaasPolicyCustomProtectionRulesActionEnum, bool)
GetMappingListWaasPolicyCustomProtectionRulesActionEnum performs case Insensitive comparison on enum value and return the desired enum
ListWaasPolicyCustomProtectionRulesRequest wrapper for the ListWaasPolicyCustomProtectionRules operation
# See also
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.54.0/waas/ListWaasPolicyCustomProtectionRules.go.html to see an example of how to use ListWaasPolicyCustomProtectionRulesRequest.
type ListWaasPolicyCustomProtectionRulesRequest struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the WAAS policy. WaasPolicyId *string `mandatory:"true" contributesTo:"path" name:"waasPolicyId"` // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // The maximum number of items to return in a paginated call. If unspecified, defaults to `10`. Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // The value of the `opc-next-page` response header from the previous paginated call. Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Filter rules using a list of ModSecurity rule IDs. ModSecurityRuleId []string `contributesTo:"query" name:"modSecurityRuleId" collectionFormat:"multi"` // Filter rules using a list of actions. Action []ListWaasPolicyCustomProtectionRulesActionEnum `contributesTo:"query" name:"action" omitEmpty:"true" collectionFormat:"multi"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request ListWaasPolicyCustomProtectionRulesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ListWaasPolicyCustomProtectionRulesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListWaasPolicyCustomProtectionRulesRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListWaasPolicyCustomProtectionRulesRequest) String() string
func (request ListWaasPolicyCustomProtectionRulesRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ListWaasPolicyCustomProtectionRulesResponse wrapper for the ListWaasPolicyCustomProtectionRules operation
type ListWaasPolicyCustomProtectionRulesResponse struct { // The underlying http response RawResponse *http.Response // A list of []WaasPolicyCustomProtectionRuleSummary instances Items []WaasPolicyCustomProtectionRuleSummary `presentIn:"body"` // For optimistic concurrency control. See `if-match`. Etag *string `presentIn:"header" name:"etag"` // For list pagination. When this header appears in the response, additional pages of results may remain. For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response ListWaasPolicyCustomProtectionRulesResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListWaasPolicyCustomProtectionRulesResponse) String() string
ListWafBlockedRequestsRequest wrapper for the ListWafBlockedRequests operation
# See also
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.54.0/waas/ListWafBlockedRequests.go.html to see an example of how to use ListWafBlockedRequestsRequest.
type ListWafBlockedRequestsRequest struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the WAAS policy. WaasPolicyId *string `mandatory:"true" contributesTo:"path" name:"waasPolicyId"` // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // A filter that limits returned events to those occurring on or after a date and time, specified in RFC 3339 format. If unspecified, defaults to 30 minutes before receipt of the request. TimeObservedGreaterThanOrEqualTo *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeObservedGreaterThanOrEqualTo"` // A filter that limits returned events to those occurring before a date and time, specified in RFC 3339 format. TimeObservedLessThan *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeObservedLessThan"` // The maximum number of items to return in a paginated call. If unspecified, defaults to `10`. Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // The value of the `opc-next-page` response header from the previous paginated call. Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Filter stats by the Web Application Firewall feature that triggered the block action. If unspecified, data for all WAF features will be returned. WafFeature []ListWafBlockedRequestsWafFeatureEnum `contributesTo:"query" name:"wafFeature" omitEmpty:"true" collectionFormat:"multi"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request ListWafBlockedRequestsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ListWafBlockedRequestsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListWafBlockedRequestsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListWafBlockedRequestsRequest) String() string
func (request ListWafBlockedRequestsRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ListWafBlockedRequestsResponse wrapper for the ListWafBlockedRequests operation
type ListWafBlockedRequestsResponse struct { // The underlying http response RawResponse *http.Response // A list of []WafBlockedRequest instances Items []WafBlockedRequest `presentIn:"body"` // A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // For pagination of a list of items. When paging through a list, if this header appears in the response, then a partial list might have been returned. Include this value as the page parameter for the subsequent GET request to get the next batch of items. OpcNextPage *string `presentIn:"header" name:"opc-next-page"` }
func (response ListWafBlockedRequestsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListWafBlockedRequestsResponse) String() string
ListWafBlockedRequestsWafFeatureEnum Enum with underlying type: string
type ListWafBlockedRequestsWafFeatureEnum string
Set of constants representing the allowable values for ListWafBlockedRequestsWafFeatureEnum
const ( ListWafBlockedRequestsWafFeatureProtectionRules ListWafBlockedRequestsWafFeatureEnum = "PROTECTION_RULES" ListWafBlockedRequestsWafFeatureJsChallenge ListWafBlockedRequestsWafFeatureEnum = "JS_CHALLENGE" ListWafBlockedRequestsWafFeatureAccessRules ListWafBlockedRequestsWafFeatureEnum = "ACCESS_RULES" ListWafBlockedRequestsWafFeatureThreatFeeds ListWafBlockedRequestsWafFeatureEnum = "THREAT_FEEDS" ListWafBlockedRequestsWafFeatureHumanInteractionChallenge ListWafBlockedRequestsWafFeatureEnum = "HUMAN_INTERACTION_CHALLENGE" ListWafBlockedRequestsWafFeatureDeviceFingerprintChallenge ListWafBlockedRequestsWafFeatureEnum = "DEVICE_FINGERPRINT_CHALLENGE" ListWafBlockedRequestsWafFeatureCaptcha ListWafBlockedRequestsWafFeatureEnum = "CAPTCHA" ListWafBlockedRequestsWafFeatureAddressRateLimiting ListWafBlockedRequestsWafFeatureEnum = "ADDRESS_RATE_LIMITING" )
func GetListWafBlockedRequestsWafFeatureEnumValues() []ListWafBlockedRequestsWafFeatureEnum
GetListWafBlockedRequestsWafFeatureEnumValues Enumerates the set of values for ListWafBlockedRequestsWafFeatureEnum
func GetMappingListWafBlockedRequestsWafFeatureEnum(val string) (ListWafBlockedRequestsWafFeatureEnum, bool)
GetMappingListWafBlockedRequestsWafFeatureEnum performs case Insensitive comparison on enum value and return the desired enum
ListWafLogsActionEnum Enum with underlying type: string
type ListWafLogsActionEnum string
Set of constants representing the allowable values for ListWafLogsActionEnum
const ( ListWafLogsActionBlock ListWafLogsActionEnum = "BLOCK" ListWafLogsActionDetect ListWafLogsActionEnum = "DETECT" ListWafLogsActionBypass ListWafLogsActionEnum = "BYPASS" ListWafLogsActionLog ListWafLogsActionEnum = "LOG" ListWafLogsActionRedirected ListWafLogsActionEnum = "REDIRECTED" )
func GetListWafLogsActionEnumValues() []ListWafLogsActionEnum
GetListWafLogsActionEnumValues Enumerates the set of values for ListWafLogsActionEnum
func GetMappingListWafLogsActionEnum(val string) (ListWafLogsActionEnum, bool)
GetMappingListWafLogsActionEnum performs case Insensitive comparison on enum value and return the desired enum
ListWafLogsHttpMethodEnum Enum with underlying type: string
type ListWafLogsHttpMethodEnum string
Set of constants representing the allowable values for ListWafLogsHttpMethodEnum
const ( ListWafLogsHttpMethodOptions ListWafLogsHttpMethodEnum = "OPTIONS" ListWafLogsHttpMethodGet ListWafLogsHttpMethodEnum = "GET" ListWafLogsHttpMethodHead ListWafLogsHttpMethodEnum = "HEAD" ListWafLogsHttpMethodPost ListWafLogsHttpMethodEnum = "POST" ListWafLogsHttpMethodPut ListWafLogsHttpMethodEnum = "PUT" ListWafLogsHttpMethodDelete ListWafLogsHttpMethodEnum = "DELETE" ListWafLogsHttpMethodTrace ListWafLogsHttpMethodEnum = "TRACE" ListWafLogsHttpMethodConnect ListWafLogsHttpMethodEnum = "CONNECT" )
func GetListWafLogsHttpMethodEnumValues() []ListWafLogsHttpMethodEnum
GetListWafLogsHttpMethodEnumValues Enumerates the set of values for ListWafLogsHttpMethodEnum
func GetMappingListWafLogsHttpMethodEnum(val string) (ListWafLogsHttpMethodEnum, bool)
GetMappingListWafLogsHttpMethodEnum performs case Insensitive comparison on enum value and return the desired enum
ListWafLogsLogTypeEnum Enum with underlying type: string
type ListWafLogsLogTypeEnum string
Set of constants representing the allowable values for ListWafLogsLogTypeEnum
const ( ListWafLogsLogTypeAccess ListWafLogsLogTypeEnum = "ACCESS" ListWafLogsLogTypeProtectionRules ListWafLogsLogTypeEnum = "PROTECTION_RULES" ListWafLogsLogTypeJsChallenge ListWafLogsLogTypeEnum = "JS_CHALLENGE" ListWafLogsLogTypeCaptcha ListWafLogsLogTypeEnum = "CAPTCHA" ListWafLogsLogTypeAccessRules ListWafLogsLogTypeEnum = "ACCESS_RULES" ListWafLogsLogTypeThreatFeeds ListWafLogsLogTypeEnum = "THREAT_FEEDS" ListWafLogsLogTypeHumanInteractionChallenge ListWafLogsLogTypeEnum = "HUMAN_INTERACTION_CHALLENGE" ListWafLogsLogTypeDeviceFingerprintChallenge ListWafLogsLogTypeEnum = "DEVICE_FINGERPRINT_CHALLENGE" ListWafLogsLogTypeAddressRateLimiting ListWafLogsLogTypeEnum = "ADDRESS_RATE_LIMITING" )
func GetListWafLogsLogTypeEnumValues() []ListWafLogsLogTypeEnum
GetListWafLogsLogTypeEnumValues Enumerates the set of values for ListWafLogsLogTypeEnum
func GetMappingListWafLogsLogTypeEnum(val string) (ListWafLogsLogTypeEnum, bool)
GetMappingListWafLogsLogTypeEnum performs case Insensitive comparison on enum value and return the desired enum
ListWafLogsRequest wrapper for the ListWafLogs operation
# See also
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.54.0/waas/ListWafLogs.go.html to see an example of how to use ListWafLogsRequest.
type ListWafLogsRequest struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the WAAS policy. WaasPolicyId *string `mandatory:"true" contributesTo:"path" name:"waasPolicyId"` // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // The maximum number of items to return in a paginated call. If unspecified, defaults to `20`. Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // The value of the `opc-next-page` response header from the previous paginated call. Page *string `mandatory:"false" contributesTo:"query" name:"page"` // A filter that matches log entries where the observed event occurred on or after a date and time specified in RFC 3339 format. If unspecified, defaults to two hours before receipt of the request. TimeObservedGreaterThanOrEqualTo *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeObservedGreaterThanOrEqualTo"` // A filter that matches log entries where the observed event occurred before a date and time, specified in RFC 3339 format. TimeObservedLessThan *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeObservedLessThan"` // A full text search for logs. TextContains *string `mandatory:"false" contributesTo:"query" name:"textContains"` // Filters logs by access rule key. AccessRuleKey []string `contributesTo:"query" name:"accessRuleKey" collectionFormat:"multi"` // Filters logs by Web Application Firewall action. Action []ListWafLogsActionEnum `contributesTo:"query" name:"action" omitEmpty:"true" collectionFormat:"multi"` // Filters logs by client IP address. ClientAddress []string `contributesTo:"query" name:"clientAddress" collectionFormat:"multi"` // Filters logs by country code. Country codes are in ISO 3166-1 alpha-2 format. For a list of codes, see ISO's website (https://www.iso.org/obp/ui/#search/code/). CountryCode []string `contributesTo:"query" name:"countryCode" collectionFormat:"multi"` // Filter logs by country name. CountryName []string `contributesTo:"query" name:"countryName" collectionFormat:"multi"` // Filter logs by device fingerprint. Fingerprint []string `contributesTo:"query" name:"fingerprint" collectionFormat:"multi"` // Filter logs by HTTP method. HttpMethod []ListWafLogsHttpMethodEnum `contributesTo:"query" name:"httpMethod" omitEmpty:"true" collectionFormat:"multi"` // Filter logs by incident key. IncidentKey []string `contributesTo:"query" name:"incidentKey" collectionFormat:"multi"` // Filter by log type. For more information about WAF logs, see Logs (https://docs.cloud.oracle.com/iaas/Content/WAF/Tasks/logs.htm). LogType []ListWafLogsLogTypeEnum `contributesTo:"query" name:"logType" omitEmpty:"true" collectionFormat:"multi"` // Filter by origin IP address. OriginAddress []string `contributesTo:"query" name:"originAddress" collectionFormat:"multi"` // Filter by referrer. Referrer []string `contributesTo:"query" name:"referrer" collectionFormat:"multi"` // Filter by request URL. RequestUrl []string `contributesTo:"query" name:"requestUrl" collectionFormat:"multi"` // Filter by response code. ResponseCode []int `contributesTo:"query" name:"responseCode" collectionFormat:"multi"` // Filter by threat feed key. ThreatFeedKey []string `contributesTo:"query" name:"threatFeedKey" collectionFormat:"multi"` // Filter by user agent. UserAgent []string `contributesTo:"query" name:"userAgent" collectionFormat:"multi"` // Filter by protection rule key. ProtectionRuleKey []string `contributesTo:"query" name:"protectionRuleKey" collectionFormat:"multi"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request ListWafLogsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ListWafLogsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListWafLogsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListWafLogsRequest) String() string
func (request ListWafLogsRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ListWafLogsResponse wrapper for the ListWafLogs operation
type ListWafLogsResponse struct { // The underlying http response RawResponse *http.Response // A list of []WafLog instances Items []WafLog `presentIn:"body"` // A unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // For list pagination. When this header appears in the response, additional pages of results may remain. For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` }
func (response ListWafLogsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListWafLogsResponse) String() string
ListWafRequestsRequest wrapper for the ListWafRequests operation
# See also
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.54.0/waas/ListWafRequests.go.html to see an example of how to use ListWafRequestsRequest.
type ListWafRequestsRequest struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the WAAS policy. WaasPolicyId *string `mandatory:"true" contributesTo:"path" name:"waasPolicyId"` // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // A filter that limits returned events to those occurring on or after a date and time, specified in RFC 3339 format. If unspecified, defaults to 30 minutes before receipt of the request. TimeObservedGreaterThanOrEqualTo *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeObservedGreaterThanOrEqualTo"` // A filter that limits returned events to those occurring before a date and time, specified in RFC 3339 format. TimeObservedLessThan *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeObservedLessThan"` // The maximum number of items to return in a paginated call. If unspecified, defaults to `10`. Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // The value of the `opc-next-page` response header from the previous paginated call. Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request ListWafRequestsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ListWafRequestsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListWafRequestsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (req