1
0
Fork 0

Migrate to go-acme/lego.

This commit is contained in:
Ludovic Fernandez 2019-03-14 11:04:04 +01:00 committed by Traefiker Bot
parent 4a68d29ce2
commit 87da7520de
286 changed files with 14021 additions and 2501 deletions

View file

@ -0,0 +1,42 @@
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
// DNS API
//
// API for the DNS service. Use this API to manage DNS zones, records, and other DNS resources.
// For more information, see Overview of the DNS Service (https://docs.cloud.oracle.com/iaas/Content/DNS/Concepts/dnszonemanagement.htm).
//
package dns
import (
"github.com/oracle/oci-go-sdk/common"
)
// CreateSteeringPolicyAttachmentDetails The body for defining an attachment between a steering policy and a domain.
// An attachment occludes all records at its domain that are of a covered rtype, constructing
// DNS responses from its steering policy rather than from those domain records.
// The attachment will cover every rtype that matches the rtype of an answer in its policy, and
// will cover all address rtypes (e.g., A and AAAA) if the policy includes at least one CNAME
// answer.
// A domain can have at most one attachment covering any given rtype.
type CreateSteeringPolicyAttachmentDetails struct {
// The OCID of the attached steering policy.
SteeringPolicyId *string `mandatory:"true" json:"steeringPolicyId"`
// The OCID of the attached zone.
ZoneId *string `mandatory:"true" json:"zoneId"`
// The attached domain within the attached zone.
DomainName *string `mandatory:"true" json:"domainName"`
// A user-friendly name for the steering policy attachment.
// Does not have to be unique, and it's changeable.
// Avoid entering confidential information.
DisplayName *string `mandatory:"false" json:"displayName"`
}
func (m CreateSteeringPolicyAttachmentDetails) String() string {
return common.PointerString(m)
}

View file

@ -0,0 +1,75 @@
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
package dns
import (
"github.com/oracle/oci-go-sdk/common"
"net/http"
)
// CreateSteeringPolicyAttachmentRequest wrapper for the CreateSteeringPolicyAttachment operation
type CreateSteeringPolicyAttachmentRequest struct {
// Details for creating a new steering policy attachment.
CreateSteeringPolicyAttachmentDetails `contributesTo:"body"`
// 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 (for example, if a resource has been
// deleted and purged from the system, then a retry of the original creation
// request may be rejected).
OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"`
// 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 CreateSteeringPolicyAttachmentRequest) String() string {
return common.PointerString(request)
}
// HTTPRequest implements the OCIRequest interface
func (request CreateSteeringPolicyAttachmentRequest) HTTPRequest(method, path string) (http.Request, error) {
return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request)
}
// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request CreateSteeringPolicyAttachmentRequest) RetryPolicy() *common.RetryPolicy {
return request.RequestMetadata.RetryPolicy
}
// CreateSteeringPolicyAttachmentResponse wrapper for the CreateSteeringPolicyAttachment operation
type CreateSteeringPolicyAttachmentResponse struct {
// The underlying http response
RawResponse *http.Response
// The SteeringPolicyAttachment instance
SteeringPolicyAttachment `presentIn:"body"`
// 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 current version of the resource, ending with a
// representation-specific suffix. This value may be used in If-Match
// and If-None-Match headers for later requests of the same resource.
ETag *string `presentIn:"header" name:"etag"`
}
func (response CreateSteeringPolicyAttachmentResponse) String() string {
return common.PointerString(response)
}
// HTTPResponse implements the OCIResponse interface
func (response CreateSteeringPolicyAttachmentResponse) HTTPResponse() *http.Response {
return response.RawResponse
}

View file

@ -0,0 +1,177 @@
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
// DNS API
//
// API for the DNS service. Use this API to manage DNS zones, records, and other DNS resources.
// For more information, see Overview of the DNS Service (https://docs.cloud.oracle.com/iaas/Content/DNS/Concepts/dnszonemanagement.htm).
//
package dns
import (
"encoding/json"
"github.com/oracle/oci-go-sdk/common"
)
// CreateSteeringPolicyDetails The body for defining a new steering policy.
// *Warning:* Oracle recommends that you avoid using any confidential information when you supply string values using the API.
type CreateSteeringPolicyDetails struct {
// The OCID of the compartment containing the steering policy.
CompartmentId *string `mandatory:"true" json:"compartmentId"`
// A user-friendly name for the steering policy.
// Does not have to be unique, and it's changeable.
// Avoid entering confidential information.
DisplayName *string `mandatory:"true" json:"displayName"`
// The common pattern (or lack thereof) to which the steering policy adheres. This
// value restricts the possible configurations of rules, but thereby supports
// specifically tailored interfaces. Values other than "CUSTOM" require the rules to
// begin with an unconditional FILTER that keeps answers contingent upon
// `answer.isDisabled != true`, followed
// _if and only if the policy references a health check monitor_ by an unconditional
// HEALTH rule, and require the last rule to be an unconditional LIMIT.
// What must precede the LIMIT rule is determined by the template value:
// - FAILOVER requires exactly an unconditional PRIORITY rule that ranks answers by pool.
// Each answer pool must have a unique priority value assigned to it. Answer data must
// be defined in the `defaultAnswerData` property for the rule and the `cases` property
// must not be defined.
// - LOAD_BALANCE requires exactly an unconditional WEIGHTED rule that shuffles answers
// by name. Answer data must be defined in the `defaultAnswerData` property for the
// rule and the `cases` property must not be defined.
// - ROUTE_BY_GEO requires exactly one PRIORITY rule that ranks answers by pool using the
// geographical location of the client as a condition. Within that rule you may only
// use `query.client.geoKey` in the `caseCondition` expressions for defining the cases.
// For each case in the PRIORITY rule each answer pool must have a unique priority
// value assigned to it. Answer data can only be defined within cases and
// `defaultAnswerData` cannot be used in the PRIORITY rule.
// - ROUTE_BY_ASN requires exactly one PRIORITY rule that ranks answers by pool using the
// ASN of the client as a condition. Within that rule you may only use
// `query.client.asn` in the `caseCondition` expressions for defining the cases.
// For each case in the PRIORITY rule each answer pool must have a unique priority
// value assigned to it. Answer data can only be defined within cases and
// `defaultAnswerData` cannot be used in the PRIORITY rule.
// - ROUTE_BY_IP requires exactly one PRIORITY rule that ranks answers by pool using the
// IP subnet of the client as a condition. Within that rule you may only use
// `query.client.address` in the `caseCondition` expressions for defining the cases.
// For each case in the PRIORITY rule each answer pool must have a unique priority
// value assigned to it. Answer data can only be defined within cases and
// `defaultAnswerData` cannot be used in the PRIORITY rule.
// - CUSTOM allows an arbitrary configuration of rules.
// For an existing steering policy, the template value may be changed to any of the
// supported options but the resulting policy must conform to the requirements for the
// new template type or else a Bad Request error will be returned.
Template CreateSteeringPolicyDetailsTemplateEnum `mandatory:"true" json:"template"`
// The Time To Live for responses from the steering policy, in seconds.
// If not specified during creation, a value of 30 seconds will be used.
Ttl *int `mandatory:"false" json:"ttl"`
// The OCID of the health check monitor providing health data about the answers of the
// steering policy.
// A steering policy answer with `rdata` matching a monitored endpoint will use the health
// data of that endpoint.
// A steering policy answer with `rdata` not matching any monitored endpoint will be assumed
// healthy.
HealthCheckMonitorId *string `mandatory:"false" json:"healthCheckMonitorId"`
// Simple key-value pair that is applied without any predefined name, type, or scope.
// For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
// Example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// Usage of predefined tag keys. These predefined keys are scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
// The set of all answers that can potentially issue from the steering policy.
Answers []SteeringPolicyAnswer `mandatory:"false" json:"answers"`
// The pipeline of rules that will be processed in sequence to reduce the pool of answers
// to a response for any given request.
// The first rule receives a shuffled list of all answers, and every other rule receives
// the list of answers emitted by the one preceding it. The last rule populates the
// response.
Rules []SteeringPolicyRule `mandatory:"false" json:"rules"`
}
func (m CreateSteeringPolicyDetails) String() string {
return common.PointerString(m)
}
// UnmarshalJSON unmarshals from json
func (m *CreateSteeringPolicyDetails) UnmarshalJSON(data []byte) (e error) {
model := struct {
Ttl *int `json:"ttl"`
HealthCheckMonitorId *string `json:"healthCheckMonitorId"`
FreeformTags map[string]string `json:"freeformTags"`
DefinedTags map[string]map[string]interface{} `json:"definedTags"`
Answers []SteeringPolicyAnswer `json:"answers"`
Rules []steeringpolicyrule `json:"rules"`
CompartmentId *string `json:"compartmentId"`
DisplayName *string `json:"displayName"`
Template CreateSteeringPolicyDetailsTemplateEnum `json:"template"`
}{}
e = json.Unmarshal(data, &model)
if e != nil {
return
}
m.Ttl = model.Ttl
m.HealthCheckMonitorId = model.HealthCheckMonitorId
m.FreeformTags = model.FreeformTags
m.DefinedTags = model.DefinedTags
m.Answers = make([]SteeringPolicyAnswer, len(model.Answers))
for i, n := range model.Answers {
m.Answers[i] = n
}
m.Rules = make([]SteeringPolicyRule, len(model.Rules))
for i, n := range model.Rules {
nn, err := n.UnmarshalPolymorphicJSON(n.JsonData)
if err != nil {
return err
}
if nn != nil {
m.Rules[i] = nn.(SteeringPolicyRule)
} else {
m.Rules[i] = nil
}
}
m.CompartmentId = model.CompartmentId
m.DisplayName = model.DisplayName
m.Template = model.Template
return
}
// CreateSteeringPolicyDetailsTemplateEnum Enum with underlying type: string
type CreateSteeringPolicyDetailsTemplateEnum string
// Set of constants representing the allowable values for CreateSteeringPolicyDetailsTemplateEnum
const (
CreateSteeringPolicyDetailsTemplateFailover CreateSteeringPolicyDetailsTemplateEnum = "FAILOVER"
CreateSteeringPolicyDetailsTemplateLoadBalance CreateSteeringPolicyDetailsTemplateEnum = "LOAD_BALANCE"
CreateSteeringPolicyDetailsTemplateRouteByGeo CreateSteeringPolicyDetailsTemplateEnum = "ROUTE_BY_GEO"
CreateSteeringPolicyDetailsTemplateRouteByAsn CreateSteeringPolicyDetailsTemplateEnum = "ROUTE_BY_ASN"
CreateSteeringPolicyDetailsTemplateRouteByIp CreateSteeringPolicyDetailsTemplateEnum = "ROUTE_BY_IP"
CreateSteeringPolicyDetailsTemplateCustom CreateSteeringPolicyDetailsTemplateEnum = "CUSTOM"
)
var mappingCreateSteeringPolicyDetailsTemplate = map[string]CreateSteeringPolicyDetailsTemplateEnum{
"FAILOVER": CreateSteeringPolicyDetailsTemplateFailover,
"LOAD_BALANCE": CreateSteeringPolicyDetailsTemplateLoadBalance,
"ROUTE_BY_GEO": CreateSteeringPolicyDetailsTemplateRouteByGeo,
"ROUTE_BY_ASN": CreateSteeringPolicyDetailsTemplateRouteByAsn,
"ROUTE_BY_IP": CreateSteeringPolicyDetailsTemplateRouteByIp,
"CUSTOM": CreateSteeringPolicyDetailsTemplateCustom,
}
// GetCreateSteeringPolicyDetailsTemplateEnumValues Enumerates the set of values for CreateSteeringPolicyDetailsTemplateEnum
func GetCreateSteeringPolicyDetailsTemplateEnumValues() []CreateSteeringPolicyDetailsTemplateEnum {
values := make([]CreateSteeringPolicyDetailsTemplateEnum, 0)
for _, v := range mappingCreateSteeringPolicyDetailsTemplate {
values = append(values, v)
}
return values
}

View file

@ -0,0 +1,75 @@
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
package dns
import (
"github.com/oracle/oci-go-sdk/common"
"net/http"
)
// CreateSteeringPolicyRequest wrapper for the CreateSteeringPolicy operation
type CreateSteeringPolicyRequest struct {
// Details for creating a new steering policy.
CreateSteeringPolicyDetails `contributesTo:"body"`
// 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 (for example, if a resource has been
// deleted and purged from the system, then a retry of the original creation
// request may be rejected).
OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"`
// 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 CreateSteeringPolicyRequest) String() string {
return common.PointerString(request)
}
// HTTPRequest implements the OCIRequest interface
func (request CreateSteeringPolicyRequest) HTTPRequest(method, path string) (http.Request, error) {
return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request)
}
// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request CreateSteeringPolicyRequest) RetryPolicy() *common.RetryPolicy {
return request.RequestMetadata.RetryPolicy
}
// CreateSteeringPolicyResponse wrapper for the CreateSteeringPolicy operation
type CreateSteeringPolicyResponse struct {
// The underlying http response
RawResponse *http.Response
// The SteeringPolicy instance
SteeringPolicy `presentIn:"body"`
// 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 current version of the resource, ending with a
// representation-specific suffix. This value may be used in If-Match
// and If-None-Match headers for later requests of the same resource.
ETag *string `presentIn:"header" name:"etag"`
}
func (response CreateSteeringPolicyResponse) String() string {
return common.PointerString(response)
}
// HTTPResponse implements the OCIResponse interface
func (response CreateSteeringPolicyResponse) HTTPResponse() *http.Response {
return response.RawResponse
}

View file

@ -0,0 +1,68 @@
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
// DNS API
//
// API for the DNS service. Use this API to manage DNS zones, records, and other DNS resources.
// For more information, see Overview of the DNS Service (https://docs.cloud.oracle.com/iaas/Content/DNS/Concepts/dnszonemanagement.htm).
//
package dns
import (
"github.com/oracle/oci-go-sdk/common"
)
// CreateZoneDetails The body for defining a new zone.
// *Warning:* Oracle recommends that you avoid using any confidential information when you supply string values using the API.
type CreateZoneDetails struct {
// The name of the zone.
Name *string `mandatory:"true" json:"name"`
// The type of the zone. Must be either `PRIMARY` or `SECONDARY`.
ZoneType CreateZoneDetailsZoneTypeEnum `mandatory:"true" json:"zoneType"`
// The OCID of the compartment containing the zone.
CompartmentId *string `mandatory:"true" json:"compartmentId"`
// Simple key-value pair that is applied without any predefined name, type, or scope.
// For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
// Example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// Usage of predefined tag keys. These predefined keys are scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
// External master servers for the zone. `externalMasters` becomes a
// required parameter when the `zoneType` value is `SECONDARY`.
ExternalMasters []ExternalMaster `mandatory:"false" json:"externalMasters"`
}
func (m CreateZoneDetails) String() string {
return common.PointerString(m)
}
// CreateZoneDetailsZoneTypeEnum Enum with underlying type: string
type CreateZoneDetailsZoneTypeEnum string
// Set of constants representing the allowable values for CreateZoneDetailsZoneTypeEnum
const (
CreateZoneDetailsZoneTypePrimary CreateZoneDetailsZoneTypeEnum = "PRIMARY"
CreateZoneDetailsZoneTypeSecondary CreateZoneDetailsZoneTypeEnum = "SECONDARY"
)
var mappingCreateZoneDetailsZoneType = map[string]CreateZoneDetailsZoneTypeEnum{
"PRIMARY": CreateZoneDetailsZoneTypePrimary,
"SECONDARY": CreateZoneDetailsZoneTypeSecondary,
}
// GetCreateZoneDetailsZoneTypeEnumValues Enumerates the set of values for CreateZoneDetailsZoneTypeEnum
func GetCreateZoneDetailsZoneTypeEnumValues() []CreateZoneDetailsZoneTypeEnum {
values := make([]CreateZoneDetailsZoneTypeEnum, 0)
for _, v := range mappingCreateZoneDetailsZoneType {
values = append(values, v)
}
return values
}

View file

@ -0,0 +1,69 @@
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
package dns
import (
"github.com/oracle/oci-go-sdk/common"
"net/http"
)
// CreateZoneRequest wrapper for the CreateZone operation
type CreateZoneRequest struct {
// Details for creating a new zone.
CreateZoneDetails `contributesTo:"body"`
// The OCID of the compartment the resource belongs to.
CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"`
// 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 CreateZoneRequest) String() string {
return common.PointerString(request)
}
// HTTPRequest implements the OCIRequest interface
func (request CreateZoneRequest) HTTPRequest(method, path string) (http.Request, error) {
return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request)
}
// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request CreateZoneRequest) RetryPolicy() *common.RetryPolicy {
return request.RequestMetadata.RetryPolicy
}
// CreateZoneResponse wrapper for the CreateZone operation
type CreateZoneResponse struct {
// The underlying http response
RawResponse *http.Response
// The Zone instance
Zone `presentIn:"body"`
// 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 current version of the zone, ending with a
// representation-specific suffix. This value may be used in If-Match
// and If-None-Match headers for later requests of the same resource.
ETag *string `presentIn:"header" name:"etag"`
}
func (response CreateZoneResponse) String() string {
return common.PointerString(response)
}
// HTTPResponse implements the OCIResponse interface
func (response CreateZoneResponse) HTTPResponse() *http.Response {
return response.RawResponse
}

View file

@ -0,0 +1,79 @@
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
package dns
import (
"github.com/oracle/oci-go-sdk/common"
"net/http"
)
// DeleteDomainRecordsRequest wrapper for the DeleteDomainRecords operation
type DeleteDomainRecordsRequest struct {
// The name or OCID of the target zone.
ZoneNameOrId *string `mandatory:"true" contributesTo:"path" name:"zoneNameOrId"`
// The target fully-qualified domain name (FQDN) within the target zone.
Domain *string `mandatory:"true" contributesTo:"path" name:"domain"`
// The `If-Match` header field makes the request method conditional on the
// existence of at least one current representation of the target resource,
// when the field-value is `*`, or having a current representation of the
// target resource that has an entity-tag matching a member of the list of
// entity-tags provided in the field-value.
IfMatch *string `mandatory:"false" contributesTo:"header" name:"If-Match"`
// The `If-Unmodified-Since` header field makes the request method
// conditional on the selected representation's last modification date being
// earlier than or equal to the date provided in the field-value. This
// field accomplishes the same purpose as If-Match for cases where the user
// agent does not have an entity-tag for the representation.
IfUnmodifiedSince *string `mandatory:"false" contributesTo:"header" name:"If-Unmodified-Since"`
// The OCID of the compartment the resource belongs to.
CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"`
// 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 DeleteDomainRecordsRequest) String() string {
return common.PointerString(request)
}
// HTTPRequest implements the OCIRequest interface
func (request DeleteDomainRecordsRequest) HTTPRequest(method, path string) (http.Request, error) {
return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request)
}
// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request DeleteDomainRecordsRequest) RetryPolicy() *common.RetryPolicy {
return request.RequestMetadata.RetryPolicy
}
// DeleteDomainRecordsResponse wrapper for the DeleteDomainRecords operation
type DeleteDomainRecordsResponse struct {
// The underlying http response
RawResponse *http.Response
// 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 DeleteDomainRecordsResponse) String() string {
return common.PointerString(response)
}
// HTTPResponse implements the OCIResponse interface
func (response DeleteDomainRecordsResponse) HTTPResponse() *http.Response {
return response.RawResponse
}

View file

@ -0,0 +1,82 @@
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
package dns
import (
"github.com/oracle/oci-go-sdk/common"
"net/http"
)
// DeleteRRSetRequest wrapper for the DeleteRRSet operation
type DeleteRRSetRequest struct {
// The name or OCID of the target zone.
ZoneNameOrId *string `mandatory:"true" contributesTo:"path" name:"zoneNameOrId"`
// The target fully-qualified domain name (FQDN) within the target zone.
Domain *string `mandatory:"true" contributesTo:"path" name:"domain"`
// The type of the target RRSet within the target zone.
Rtype *string `mandatory:"true" contributesTo:"path" name:"rtype"`
// The `If-Match` header field makes the request method conditional on the
// existence of at least one current representation of the target resource,
// when the field-value is `*`, or having a current representation of the
// target resource that has an entity-tag matching a member of the list of
// entity-tags provided in the field-value.
IfMatch *string `mandatory:"false" contributesTo:"header" name:"If-Match"`
// The `If-Unmodified-Since` header field makes the request method
// conditional on the selected representation's last modification date being
// earlier than or equal to the date provided in the field-value. This
// field accomplishes the same purpose as If-Match for cases where the user
// agent does not have an entity-tag for the representation.
IfUnmodifiedSince *string `mandatory:"false" contributesTo:"header" name:"If-Unmodified-Since"`
// The OCID of the compartment the resource belongs to.
CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"`
// 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 DeleteRRSetRequest) String() string {
return common.PointerString(request)
}
// HTTPRequest implements the OCIRequest interface
func (request DeleteRRSetRequest) HTTPRequest(method, path string) (http.Request, error) {
return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request)
}
// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request DeleteRRSetRequest) RetryPolicy() *common.RetryPolicy {
return request.RequestMetadata.RetryPolicy
}
// DeleteRRSetResponse wrapper for the DeleteRRSet operation
type DeleteRRSetResponse struct {
// The underlying http response
RawResponse *http.Response
// 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 DeleteRRSetResponse) String() string {
return common.PointerString(response)
}
// HTTPResponse implements the OCIResponse interface
func (response DeleteRRSetResponse) HTTPResponse() *http.Response {
return response.RawResponse
}

View file

@ -0,0 +1,73 @@
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
package dns
import (
"github.com/oracle/oci-go-sdk/common"
"net/http"
)
// DeleteSteeringPolicyAttachmentRequest wrapper for the DeleteSteeringPolicyAttachment operation
type DeleteSteeringPolicyAttachmentRequest struct {
// The OCID of the target steering policy attachment.
SteeringPolicyAttachmentId *string `mandatory:"true" contributesTo:"path" name:"steeringPolicyAttachmentId"`
// The `If-Match` header field makes the request method conditional on the
// existence of at least one current representation of the target resource,
// when the field-value is `*`, or having a current representation of the
// target resource that has an entity-tag matching a member of the list of
// entity-tags provided in the field-value.
IfMatch *string `mandatory:"false" contributesTo:"header" name:"If-Match"`
// The `If-Unmodified-Since` header field makes the request method
// conditional on the selected representation's last modification date being
// earlier than or equal to the date provided in the field-value. This
// field accomplishes the same purpose as If-Match for cases where the user
// agent does not have an entity-tag for the representation.
IfUnmodifiedSince *string `mandatory:"false" contributesTo:"header" name:"If-Unmodified-Since"`
// 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 DeleteSteeringPolicyAttachmentRequest) String() string {
return common.PointerString(request)
}
// HTTPRequest implements the OCIRequest interface
func (request DeleteSteeringPolicyAttachmentRequest) HTTPRequest(method, path string) (http.Request, error) {
return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request)
}
// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request DeleteSteeringPolicyAttachmentRequest) RetryPolicy() *common.RetryPolicy {
return request.RequestMetadata.RetryPolicy
}
// DeleteSteeringPolicyAttachmentResponse wrapper for the DeleteSteeringPolicyAttachment operation
type DeleteSteeringPolicyAttachmentResponse struct {
// The underlying http response
RawResponse *http.Response
// 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 DeleteSteeringPolicyAttachmentResponse) String() string {
return common.PointerString(response)
}
// HTTPResponse implements the OCIResponse interface
func (response DeleteSteeringPolicyAttachmentResponse) HTTPResponse() *http.Response {
return response.RawResponse
}

View file

@ -0,0 +1,73 @@
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
package dns
import (
"github.com/oracle/oci-go-sdk/common"
"net/http"
)
// DeleteSteeringPolicyRequest wrapper for the DeleteSteeringPolicy operation
type DeleteSteeringPolicyRequest struct {
// The OCID of the target steering policy.
SteeringPolicyId *string `mandatory:"true" contributesTo:"path" name:"steeringPolicyId"`
// The `If-Match` header field makes the request method conditional on the
// existence of at least one current representation of the target resource,
// when the field-value is `*`, or having a current representation of the
// target resource that has an entity-tag matching a member of the list of
// entity-tags provided in the field-value.
IfMatch *string `mandatory:"false" contributesTo:"header" name:"If-Match"`
// The `If-Unmodified-Since` header field makes the request method
// conditional on the selected representation's last modification date being
// earlier than or equal to the date provided in the field-value. This
// field accomplishes the same purpose as If-Match for cases where the user
// agent does not have an entity-tag for the representation.
IfUnmodifiedSince *string `mandatory:"false" contributesTo:"header" name:"If-Unmodified-Since"`
// 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 DeleteSteeringPolicyRequest) String() string {
return common.PointerString(request)
}
// HTTPRequest implements the OCIRequest interface
func (request DeleteSteeringPolicyRequest) HTTPRequest(method, path string) (http.Request, error) {
return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request)
}
// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request DeleteSteeringPolicyRequest) RetryPolicy() *common.RetryPolicy {
return request.RequestMetadata.RetryPolicy
}
// DeleteSteeringPolicyResponse wrapper for the DeleteSteeringPolicy operation
type DeleteSteeringPolicyResponse struct {
// The underlying http response
RawResponse *http.Response
// 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 DeleteSteeringPolicyResponse) String() string {
return common.PointerString(response)
}
// HTTPResponse implements the OCIResponse interface
func (response DeleteSteeringPolicyResponse) HTTPResponse() *http.Response {
return response.RawResponse
}

View file

@ -0,0 +1,76 @@
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
package dns
import (
"github.com/oracle/oci-go-sdk/common"
"net/http"
)
// DeleteZoneRequest wrapper for the DeleteZone operation
type DeleteZoneRequest struct {
// The name or OCID of the target zone.
ZoneNameOrId *string `mandatory:"true" contributesTo:"path" name:"zoneNameOrId"`
// The `If-Match` header field makes the request method conditional on the
// existence of at least one current representation of the target resource,
// when the field-value is `*`, or having a current representation of the
// target resource that has an entity-tag matching a member of the list of
// entity-tags provided in the field-value.
IfMatch *string `mandatory:"false" contributesTo:"header" name:"If-Match"`
// The `If-Unmodified-Since` header field makes the request method
// conditional on the selected representation's last modification date being
// earlier than or equal to the date provided in the field-value. This
// field accomplishes the same purpose as If-Match for cases where the user
// agent does not have an entity-tag for the representation.
IfUnmodifiedSince *string `mandatory:"false" contributesTo:"header" name:"If-Unmodified-Since"`
// The OCID of the compartment the resource belongs to.
CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"`
// 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 DeleteZoneRequest) String() string {
return common.PointerString(request)
}
// HTTPRequest implements the OCIRequest interface
func (request DeleteZoneRequest) HTTPRequest(method, path string) (http.Request, error) {
return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request)
}
// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request DeleteZoneRequest) RetryPolicy() *common.RetryPolicy {
return request.RequestMetadata.RetryPolicy
}
// DeleteZoneResponse wrapper for the DeleteZone operation
type DeleteZoneResponse struct {
// The underlying http response
RawResponse *http.Response
// 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 DeleteZoneResponse) String() string {
return common.PointerString(response)
}
// HTTPResponse implements the OCIResponse interface
func (response DeleteZoneResponse) HTTPResponse() *http.Response {
return response.RawResponse
}

1191
vendor/github.com/oracle/oci-go-sdk/dns/dns_client.go generated vendored Normal file

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,31 @@
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
// DNS API
//
// API for the DNS service. Use this API to manage DNS zones, records, and other DNS resources.
// For more information, see Overview of the DNS Service (https://docs.cloud.oracle.com/iaas/Content/DNS/Concepts/dnszonemanagement.htm).
//
package dns
import (
"github.com/oracle/oci-go-sdk/common"
)
// ExternalMaster An external master name server used as the source of zone data.
type ExternalMaster struct {
// The server's IP address (IPv4 or IPv6).
Address *string `mandatory:"true" json:"address"`
// The server's port. Port value must be a value of 53, otherwise omit
// the port value.
Port *int `mandatory:"false" json:"port"`
Tsig *Tsig `mandatory:"false" json:"tsig"`
}
func (m ExternalMaster) String() string {
return common.PointerString(m)
}

View file

@ -0,0 +1,158 @@
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
package dns
import (
"github.com/oracle/oci-go-sdk/common"
"net/http"
)
// GetDomainRecordsRequest wrapper for the GetDomainRecords operation
type GetDomainRecordsRequest struct {
// The name or OCID of the target zone.
ZoneNameOrId *string `mandatory:"true" contributesTo:"path" name:"zoneNameOrId"`
// The target fully-qualified domain name (FQDN) within the target zone.
Domain *string `mandatory:"true" contributesTo:"path" name:"domain"`
// The `If-None-Match` header field makes the request method conditional on
// the absence of any current representation of the target resource, when
// the field-value is `*`, or having a selected representation with an
// entity-tag that does not match any of those listed in the field-value.
IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"If-None-Match"`
// The `If-Modified-Since` header field makes a GET or HEAD request method
// conditional on the selected representation's modification date being more
// recent than the date provided in the field-value. Transfer of the
// selected representation's data is avoided if that data has not changed.
IfModifiedSince *string `mandatory:"false" contributesTo:"header" name:"If-Modified-Since"`
// The maximum number of items to return in a page of the collection.
Limit *int64 `mandatory:"false" contributesTo:"query" name:"limit"`
// The value of the `opc-next-page` response header from the previous "List" call.
Page *string `mandatory:"false" contributesTo:"query" name:"page"`
// The version of the zone for which data is requested.
ZoneVersion *string `mandatory:"false" contributesTo:"query" name:"zoneVersion"`
// Search by record type.
// Will match any record whose type (https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-4) (case-insensitive) equals the provided value.
Rtype *string `mandatory:"false" contributesTo:"query" name:"rtype"`
// The field by which to sort records.
SortBy GetDomainRecordsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`
// The order to sort the resources.
SortOrder GetDomainRecordsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"`
// The OCID of the compartment the resource belongs to.
CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"`
// 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 GetDomainRecordsRequest) String() string {
return common.PointerString(request)
}
// HTTPRequest implements the OCIRequest interface
func (request GetDomainRecordsRequest) HTTPRequest(method, path string) (http.Request, error) {
return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request)
}
// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetDomainRecordsRequest) RetryPolicy() *common.RetryPolicy {
return request.RequestMetadata.RetryPolicy
}
// GetDomainRecordsResponse wrapper for the GetDomainRecords operation
type GetDomainRecordsResponse struct {
// The underlying http response
RawResponse *http.Response
// A list of RecordCollection instances
RecordCollection `presentIn:"body"`
// For list pagination. When this header appears in the response, additional pages
// of results 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"`
// The total number of items that match the query.
OpcTotalItems *int `presentIn:"header" name:"opc-total-items"`
// 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 current version of the record collection, ending with a
// representation-specific suffix. This value may be used in If-Match
// and If-None-Match headers for later requests of the same resource.
ETag *string `presentIn:"header" name:"etag"`
}
func (response GetDomainRecordsResponse) String() string {
return common.PointerString(response)
}
// HTTPResponse implements the OCIResponse interface
func (response GetDomainRecordsResponse) HTTPResponse() *http.Response {
return response.RawResponse
}
// GetDomainRecordsSortByEnum Enum with underlying type: string
type GetDomainRecordsSortByEnum string
// Set of constants representing the allowable values for GetDomainRecordsSortByEnum
const (
GetDomainRecordsSortByRtype GetDomainRecordsSortByEnum = "rtype"
GetDomainRecordsSortByTtl GetDomainRecordsSortByEnum = "ttl"
)
var mappingGetDomainRecordsSortBy = map[string]GetDomainRecordsSortByEnum{
"rtype": GetDomainRecordsSortByRtype,
"ttl": GetDomainRecordsSortByTtl,
}
// GetGetDomainRecordsSortByEnumValues Enumerates the set of values for GetDomainRecordsSortByEnum
func GetGetDomainRecordsSortByEnumValues() []GetDomainRecordsSortByEnum {
values := make([]GetDomainRecordsSortByEnum, 0)
for _, v := range mappingGetDomainRecordsSortBy {
values = append(values, v)
}
return values
}
// GetDomainRecordsSortOrderEnum Enum with underlying type: string
type GetDomainRecordsSortOrderEnum string
// Set of constants representing the allowable values for GetDomainRecordsSortOrderEnum
const (
GetDomainRecordsSortOrderAsc GetDomainRecordsSortOrderEnum = "ASC"
GetDomainRecordsSortOrderDesc GetDomainRecordsSortOrderEnum = "DESC"
)
var mappingGetDomainRecordsSortOrder = map[string]GetDomainRecordsSortOrderEnum{
"ASC": GetDomainRecordsSortOrderAsc,
"DESC": GetDomainRecordsSortOrderDesc,
}
// GetGetDomainRecordsSortOrderEnumValues Enumerates the set of values for GetDomainRecordsSortOrderEnum
func GetGetDomainRecordsSortOrderEnumValues() []GetDomainRecordsSortOrderEnum {
values := make([]GetDomainRecordsSortOrderEnum, 0)
for _, v := range mappingGetDomainRecordsSortOrder {
values = append(values, v)
}
return values
}

View file

@ -0,0 +1,105 @@
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
package dns
import (
"github.com/oracle/oci-go-sdk/common"
"net/http"
)
// GetRRSetRequest wrapper for the GetRRSet operation
type GetRRSetRequest struct {
// The name or OCID of the target zone.
ZoneNameOrId *string `mandatory:"true" contributesTo:"path" name:"zoneNameOrId"`
// The target fully-qualified domain name (FQDN) within the target zone.
Domain *string `mandatory:"true" contributesTo:"path" name:"domain"`
// The type of the target RRSet within the target zone.
Rtype *string `mandatory:"true" contributesTo:"path" name:"rtype"`
// The `If-None-Match` header field makes the request method conditional on
// the absence of any current representation of the target resource, when
// the field-value is `*`, or having a selected representation with an
// entity-tag that does not match any of those listed in the field-value.
IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"If-None-Match"`
// The `If-Modified-Since` header field makes a GET or HEAD request method
// conditional on the selected representation's modification date being more
// recent than the date provided in the field-value. Transfer of the
// selected representation's data is avoided if that data has not changed.
IfModifiedSince *string `mandatory:"false" contributesTo:"header" name:"If-Modified-Since"`
// The maximum number of items to return in a page of the collection.
Limit *int64 `mandatory:"false" contributesTo:"query" name:"limit"`
// The value of the `opc-next-page` response header from the previous "List" call.
Page *string `mandatory:"false" contributesTo:"query" name:"page"`
// The version of the zone for which data is requested.
ZoneVersion *string `mandatory:"false" contributesTo:"query" name:"zoneVersion"`
// The OCID of the compartment the resource belongs to.
CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"`
// 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 GetRRSetRequest) String() string {
return common.PointerString(request)
}
// HTTPRequest implements the OCIRequest interface
func (request GetRRSetRequest) HTTPRequest(method, path string) (http.Request, error) {
return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request)
}
// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetRRSetRequest) RetryPolicy() *common.RetryPolicy {
return request.RequestMetadata.RetryPolicy
}
// GetRRSetResponse wrapper for the GetRRSet operation
type GetRRSetResponse struct {
// The underlying http response
RawResponse *http.Response
// A list of RrSet instances
RrSet `presentIn:"body"`
// For list pagination. When this header appears in the response, additional pages
// of results 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"`
// The total number of items that match the query.
OpcTotalItems *int `presentIn:"header" name:"opc-total-items"`
// 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 current version of the record collection, ending with a
// representation-specific suffix. This value may be used in If-Match
// and If-None-Match headers for later requests of the same resource.
ETag *string `presentIn:"header" name:"etag"`
}
func (response GetRRSetResponse) String() string {
return common.PointerString(response)
}
// HTTPResponse implements the OCIResponse interface
func (response GetRRSetResponse) HTTPResponse() *http.Response {
return response.RawResponse
}

View file

@ -0,0 +1,85 @@
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
package dns
import (
"github.com/oracle/oci-go-sdk/common"
"net/http"
)
// GetSteeringPolicyAttachmentRequest wrapper for the GetSteeringPolicyAttachment operation
type GetSteeringPolicyAttachmentRequest struct {
// The OCID of the target steering policy attachment.
SteeringPolicyAttachmentId *string `mandatory:"true" contributesTo:"path" name:"steeringPolicyAttachmentId"`
// The `If-None-Match` header field makes the request method conditional on
// the absence of any current representation of the target resource, when
// the field-value is `*`, or having a selected representation with an
// entity-tag that does not match any of those listed in the field-value.
IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"If-None-Match"`
// The `If-Modified-Since` header field makes a GET or HEAD request method
// conditional on the selected representation's modification date being more
// recent than the date provided in the field-value. Transfer of the
// selected representation's data is avoided if that data has not changed.
IfModifiedSince *string `mandatory:"false" contributesTo:"header" name:"If-Modified-Since"`
// 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 GetSteeringPolicyAttachmentRequest) String() string {
return common.PointerString(request)
}
// HTTPRequest implements the OCIRequest interface
func (request GetSteeringPolicyAttachmentRequest) HTTPRequest(method, path string) (http.Request, error) {
return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request)
}
// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetSteeringPolicyAttachmentRequest) RetryPolicy() *common.RetryPolicy {
return request.RequestMetadata.RetryPolicy
}
// GetSteeringPolicyAttachmentResponse wrapper for the GetSteeringPolicyAttachment operation
type GetSteeringPolicyAttachmentResponse struct {
// The underlying http response
RawResponse *http.Response
// The SteeringPolicyAttachment instance
SteeringPolicyAttachment `presentIn:"body"`
// 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 current version of the resource, ending with a
// representation-specific suffix. This value may be used in If-Match
// and If-None-Match headers for later requests of the same resource.
ETag *string `presentIn:"header" name:"etag"`
// Flag to indicate whether or not the object was modified. If this is true,
// the getter for the object itself will return null. Callers should check this
// if they specified one of the request params that might result in a conditional
// response (like 'if-match'/'if-none-match').
IsNotModified bool
}
func (response GetSteeringPolicyAttachmentResponse) String() string {
return common.PointerString(response)
}
// HTTPResponse implements the OCIResponse interface
func (response GetSteeringPolicyAttachmentResponse) HTTPResponse() *http.Response {
return response.RawResponse
}

View file

@ -0,0 +1,85 @@
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
package dns
import (
"github.com/oracle/oci-go-sdk/common"
"net/http"
)
// GetSteeringPolicyRequest wrapper for the GetSteeringPolicy operation
type GetSteeringPolicyRequest struct {
// The OCID of the target steering policy.
SteeringPolicyId *string `mandatory:"true" contributesTo:"path" name:"steeringPolicyId"`
// The `If-None-Match` header field makes the request method conditional on
// the absence of any current representation of the target resource, when
// the field-value is `*`, or having a selected representation with an
// entity-tag that does not match any of those listed in the field-value.
IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"If-None-Match"`
// The `If-Modified-Since` header field makes a GET or HEAD request method
// conditional on the selected representation's modification date being more
// recent than the date provided in the field-value. Transfer of the
// selected representation's data is avoided if that data has not changed.
IfModifiedSince *string `mandatory:"false" contributesTo:"header" name:"If-Modified-Since"`
// 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 GetSteeringPolicyRequest) String() string {
return common.PointerString(request)
}
// HTTPRequest implements the OCIRequest interface
func (request GetSteeringPolicyRequest) HTTPRequest(method, path string) (http.Request, error) {
return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request)
}
// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetSteeringPolicyRequest) RetryPolicy() *common.RetryPolicy {
return request.RequestMetadata.RetryPolicy
}
// GetSteeringPolicyResponse wrapper for the GetSteeringPolicy operation
type GetSteeringPolicyResponse struct {
// The underlying http response
RawResponse *http.Response
// The SteeringPolicy instance
SteeringPolicy `presentIn:"body"`
// 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 current version of the resource, ending with a
// representation-specific suffix. This value may be used in If-Match
// and If-None-Match headers for later requests of the same resource.
ETag *string `presentIn:"header" name:"etag"`
// Flag to indicate whether or not the object was modified. If this is true,
// the getter for the object itself will return null. Callers should check this
// if they specified one of the request params that might result in a conditional
// response (like 'if-match'/'if-none-match').
IsNotModified bool
}
func (response GetSteeringPolicyResponse) String() string {
return common.PointerString(response)
}
// HTTPResponse implements the OCIResponse interface
func (response GetSteeringPolicyResponse) HTTPResponse() *http.Response {
return response.RawResponse
}

View file

@ -0,0 +1,165 @@
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
package dns
import (
"github.com/oracle/oci-go-sdk/common"
"net/http"
)
// GetZoneRecordsRequest wrapper for the GetZoneRecords operation
type GetZoneRecordsRequest struct {
// The name or OCID of the target zone.
ZoneNameOrId *string `mandatory:"true" contributesTo:"path" name:"zoneNameOrId"`
// The `If-None-Match` header field makes the request method conditional on
// the absence of any current representation of the target resource, when
// the field-value is `*`, or having a selected representation with an
// entity-tag that does not match any of those listed in the field-value.
IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"If-None-Match"`
// The `If-Modified-Since` header field makes a GET or HEAD request method
// conditional on the selected representation's modification date being more
// recent than the date provided in the field-value. Transfer of the
// selected representation's data is avoided if that data has not changed.
IfModifiedSince *string `mandatory:"false" contributesTo:"header" name:"If-Modified-Since"`
// The maximum number of items to return in a page of the collection.
Limit *int64 `mandatory:"false" contributesTo:"query" name:"limit"`
// The value of the `opc-next-page` response header from the previous "List" call.
Page *string `mandatory:"false" contributesTo:"query" name:"page"`
// The version of the zone for which data is requested.
ZoneVersion *string `mandatory:"false" contributesTo:"query" name:"zoneVersion"`
// Search by domain.
// Will match any record whose domain (case-insensitive) equals the provided value.
Domain *string `mandatory:"false" contributesTo:"query" name:"domain"`
// Search by domain.
// Will match any record whose domain (case-insensitive) contains the provided value.
DomainContains *string `mandatory:"false" contributesTo:"query" name:"domainContains"`
// Search by record type.
// Will match any record whose type (https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-4) (case-insensitive) equals the provided value.
Rtype *string `mandatory:"false" contributesTo:"query" name:"rtype"`
// The field by which to sort records.
SortBy GetZoneRecordsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`
// The order to sort the resources.
SortOrder GetZoneRecordsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"`
// The OCID of the compartment the resource belongs to.
CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"`
// 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 GetZoneRecordsRequest) String() string {
return common.PointerString(request)
}
// HTTPRequest implements the OCIRequest interface
func (request GetZoneRecordsRequest) HTTPRequest(method, path string) (http.Request, error) {
return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request)
}
// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetZoneRecordsRequest) RetryPolicy() *common.RetryPolicy {
return request.RequestMetadata.RetryPolicy
}
// GetZoneRecordsResponse wrapper for the GetZoneRecords operation
type GetZoneRecordsResponse struct {
// The underlying http response
RawResponse *http.Response
// A list of RecordCollection instances
RecordCollection `presentIn:"body"`
// For list pagination. When this header appears in the response, additional pages
// of results 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"`
// The total number of items that match the query.
OpcTotalItems *int `presentIn:"header" name:"opc-total-items"`
// 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 current version of the record collection, ending with a
// representation-specific suffix. This value may be used in If-Match
// and If-None-Match headers for later requests of the same resource.
ETag *string `presentIn:"header" name:"etag"`
}
func (response GetZoneRecordsResponse) String() string {
return common.PointerString(response)
}
// HTTPResponse implements the OCIResponse interface
func (response GetZoneRecordsResponse) HTTPResponse() *http.Response {
return response.RawResponse
}
// GetZoneRecordsSortByEnum Enum with underlying type: string
type GetZoneRecordsSortByEnum string
// Set of constants representing the allowable values for GetZoneRecordsSortByEnum
const (
GetZoneRecordsSortByDomain GetZoneRecordsSortByEnum = "domain"
GetZoneRecordsSortByRtype GetZoneRecordsSortByEnum = "rtype"
GetZoneRecordsSortByTtl GetZoneRecordsSortByEnum = "ttl"
)
var mappingGetZoneRecordsSortBy = map[string]GetZoneRecordsSortByEnum{
"domain": GetZoneRecordsSortByDomain,
"rtype": GetZoneRecordsSortByRtype,
"ttl": GetZoneRecordsSortByTtl,
}
// GetGetZoneRecordsSortByEnumValues Enumerates the set of values for GetZoneRecordsSortByEnum
func GetGetZoneRecordsSortByEnumValues() []GetZoneRecordsSortByEnum {
values := make([]GetZoneRecordsSortByEnum, 0)
for _, v := range mappingGetZoneRecordsSortBy {
values = append(values, v)
}
return values
}
// GetZoneRecordsSortOrderEnum Enum with underlying type: string
type GetZoneRecordsSortOrderEnum string
// Set of constants representing the allowable values for GetZoneRecordsSortOrderEnum
const (
GetZoneRecordsSortOrderAsc GetZoneRecordsSortOrderEnum = "ASC"
GetZoneRecordsSortOrderDesc GetZoneRecordsSortOrderEnum = "DESC"
)
var mappingGetZoneRecordsSortOrder = map[string]GetZoneRecordsSortOrderEnum{
"ASC": GetZoneRecordsSortOrderAsc,
"DESC": GetZoneRecordsSortOrderDesc,
}
// GetGetZoneRecordsSortOrderEnumValues Enumerates the set of values for GetZoneRecordsSortOrderEnum
func GetGetZoneRecordsSortOrderEnumValues() []GetZoneRecordsSortOrderEnum {
values := make([]GetZoneRecordsSortOrderEnum, 0)
for _, v := range mappingGetZoneRecordsSortOrder {
values = append(values, v)
}
return values
}

View file

@ -0,0 +1,81 @@
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
package dns
import (
"github.com/oracle/oci-go-sdk/common"
"net/http"
)
// GetZoneRequest wrapper for the GetZone operation
type GetZoneRequest struct {
// The name or OCID of the target zone.
ZoneNameOrId *string `mandatory:"true" contributesTo:"path" name:"zoneNameOrId"`
// The `If-None-Match` header field makes the request method conditional on
// the absence of any current representation of the target resource, when
// the field-value is `*`, or having a selected representation with an
// entity-tag that does not match any of those listed in the field-value.
IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"If-None-Match"`
// The `If-Modified-Since` header field makes a GET or HEAD request method
// conditional on the selected representation's modification date being more
// recent than the date provided in the field-value. Transfer of the
// selected representation's data is avoided if that data has not changed.
IfModifiedSince *string `mandatory:"false" contributesTo:"header" name:"If-Modified-Since"`
// The OCID of the compartment the resource belongs to.
CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"`
// 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 GetZoneRequest) String() string {
return common.PointerString(request)
}
// HTTPRequest implements the OCIRequest interface
func (request GetZoneRequest) HTTPRequest(method, path string) (http.Request, error) {
return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request)
}
// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetZoneRequest) RetryPolicy() *common.RetryPolicy {
return request.RequestMetadata.RetryPolicy
}
// GetZoneResponse wrapper for the GetZone operation
type GetZoneResponse struct {
// The underlying http response
RawResponse *http.Response
// The Zone instance
Zone `presentIn:"body"`
// 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 current version of the zone, ending with a
// representation-specific suffix. This value may be used in If-Match
// and If-None-Match headers for later requests of the same resource.
ETag *string `presentIn:"header" name:"etag"`
}
func (response GetZoneResponse) String() string {
return common.PointerString(response)
}
// HTTPResponse implements the OCIResponse interface
func (response GetZoneResponse) HTTPResponse() *http.Response {
return response.RawResponse
}

View file

@ -0,0 +1,159 @@
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
package dns
import (
"github.com/oracle/oci-go-sdk/common"
"net/http"
)
// ListSteeringPoliciesRequest wrapper for the ListSteeringPolicies operation
type ListSteeringPoliciesRequest struct {
// The OCID of the compartment the resource belongs to.
CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"`
// The maximum number of items to return in a page of the collection.
Limit *int64 `mandatory:"false" contributesTo:"query" name:"limit"`
// The value of the `opc-next-page` response header from the previous "List" call.
Page *string `mandatory:"false" contributesTo:"query" name:"page"`
// The OCID of a resource.
Id *string `mandatory:"false" contributesTo:"query" name:"id"`
// The displayName of a resource.
DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"`
// The partial displayName of a resource. Will match any resource whose name
// (case-insensitive) contains the provided value.
DisplayNameContains *string `mandatory:"false" contributesTo:"query" name:"displayNameContains"`
// Search by health check monitor OCID.
// Will match any resource whose health check monitor id matches the provided value.
HealthCheckMonitorId *string `mandatory:"false" contributesTo:"query" name:"healthCheckMonitorId"`
// An RFC 3339 (https://www.ietf.org/rfc/rfc3339.txt) timestamp that states
// all returned resources were created on or after the indicated time.
TimeCreatedGreaterThanOrEqualTo *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeCreatedGreaterThanOrEqualTo"`
// An RFC 3339 (https://www.ietf.org/rfc/rfc3339.txt) timestamp that states
// all returned resources were created before the indicated time.
TimeCreatedLessThan *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeCreatedLessThan"`
// Search by template type.
// Will match any resource whose template type matches the provided value.
Template *string `mandatory:"false" contributesTo:"query" name:"template"`
// The state of a resource.
LifecycleState SteeringPolicySummaryLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"`
// The field by which to sort steering policies.
SortBy ListSteeringPoliciesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`
// The order to sort the resources.
SortOrder ListSteeringPoliciesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"`
// 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 ListSteeringPoliciesRequest) String() string {
return common.PointerString(request)
}
// HTTPRequest implements the OCIRequest interface
func (request ListSteeringPoliciesRequest) HTTPRequest(method, path string) (http.Request, error) {
return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request)
}
// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListSteeringPoliciesRequest) RetryPolicy() *common.RetryPolicy {
return request.RequestMetadata.RetryPolicy
}
// ListSteeringPoliciesResponse wrapper for the ListSteeringPolicies operation
type ListSteeringPoliciesResponse struct {
// The underlying http response
RawResponse *http.Response
// A list of []SteeringPolicySummary instances
Items []SteeringPolicySummary `presentIn:"body"`
// For list pagination. When this header appears in the response, additional pages
// of results 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"`
// The total number of items that match the query.
OpcTotalItems *int `presentIn:"header" name:"opc-total-items"`
// 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 ListSteeringPoliciesResponse) String() string {
return common.PointerString(response)
}
// HTTPResponse implements the OCIResponse interface
func (response ListSteeringPoliciesResponse) HTTPResponse() *http.Response {
return response.RawResponse
}
// ListSteeringPoliciesSortByEnum Enum with underlying type: string
type ListSteeringPoliciesSortByEnum string
// Set of constants representing the allowable values for ListSteeringPoliciesSortByEnum
const (
ListSteeringPoliciesSortByDisplayname ListSteeringPoliciesSortByEnum = "displayName"
ListSteeringPoliciesSortByTimecreated ListSteeringPoliciesSortByEnum = "timeCreated"
ListSteeringPoliciesSortByTemplate ListSteeringPoliciesSortByEnum = "template"
)
var mappingListSteeringPoliciesSortBy = map[string]ListSteeringPoliciesSortByEnum{
"displayName": ListSteeringPoliciesSortByDisplayname,
"timeCreated": ListSteeringPoliciesSortByTimecreated,
"template": ListSteeringPoliciesSortByTemplate,
}
// GetListSteeringPoliciesSortByEnumValues Enumerates the set of values for ListSteeringPoliciesSortByEnum
func GetListSteeringPoliciesSortByEnumValues() []ListSteeringPoliciesSortByEnum {
values := make([]ListSteeringPoliciesSortByEnum, 0)
for _, v := range mappingListSteeringPoliciesSortBy {
values = append(values, v)
}
return values
}
// ListSteeringPoliciesSortOrderEnum Enum with underlying type: string
type ListSteeringPoliciesSortOrderEnum string
// Set of constants representing the allowable values for ListSteeringPoliciesSortOrderEnum
const (
ListSteeringPoliciesSortOrderAsc ListSteeringPoliciesSortOrderEnum = "ASC"
ListSteeringPoliciesSortOrderDesc ListSteeringPoliciesSortOrderEnum = "DESC"
)
var mappingListSteeringPoliciesSortOrder = map[string]ListSteeringPoliciesSortOrderEnum{
"ASC": ListSteeringPoliciesSortOrderAsc,
"DESC": ListSteeringPoliciesSortOrderDesc,
}
// GetListSteeringPoliciesSortOrderEnumValues Enumerates the set of values for ListSteeringPoliciesSortOrderEnum
func GetListSteeringPoliciesSortOrderEnumValues() []ListSteeringPoliciesSortOrderEnum {
values := make([]ListSteeringPoliciesSortOrderEnum, 0)
for _, v := range mappingListSteeringPoliciesSortOrder {
values = append(values, v)
}
return values
}

View file

@ -0,0 +1,163 @@
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
package dns
import (
"github.com/oracle/oci-go-sdk/common"
"net/http"
)
// ListSteeringPolicyAttachmentsRequest wrapper for the ListSteeringPolicyAttachments operation
type ListSteeringPolicyAttachmentsRequest struct {
// The OCID of the compartment the resource belongs to.
CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"`
// The maximum number of items to return in a page of the collection.
Limit *int64 `mandatory:"false" contributesTo:"query" name:"limit"`
// The value of the `opc-next-page` response header from the previous "List" call.
Page *string `mandatory:"false" contributesTo:"query" name:"page"`
// The OCID of a resource.
Id *string `mandatory:"false" contributesTo:"query" name:"id"`
// The displayName of a resource.
DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"`
// Search by steering policy OCID.
// Will match any resource whose steering policy id matches the provided value.
SteeringPolicyId *string `mandatory:"false" contributesTo:"query" name:"steeringPolicyId"`
// Search by zone OCID.
// Will match any resource whose zone id matches the provided value.
ZoneId *string `mandatory:"false" contributesTo:"query" name:"zoneId"`
// Search by domain.
// Will match any record whose domain (case-insensitive) equals the provided value.
Domain *string `mandatory:"false" contributesTo:"query" name:"domain"`
// Search by domain.
// Will match any record whose domain (case-insensitive) contains the provided value.
DomainContains *string `mandatory:"false" contributesTo:"query" name:"domainContains"`
// An RFC 3339 (https://www.ietf.org/rfc/rfc3339.txt) timestamp that states
// all returned resources were created on or after the indicated time.
TimeCreatedGreaterThanOrEqualTo *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeCreatedGreaterThanOrEqualTo"`
// An RFC 3339 (https://www.ietf.org/rfc/rfc3339.txt) timestamp that states
// all returned resources were created before the indicated time.
TimeCreatedLessThan *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeCreatedLessThan"`
// The state of a resource.
LifecycleState SteeringPolicyAttachmentSummaryLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"`
// The field by which to sort steering policy attachments.
SortBy ListSteeringPolicyAttachmentsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`
// The order to sort the resources.
SortOrder ListSteeringPolicyAttachmentsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"`
// 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 ListSteeringPolicyAttachmentsRequest) String() string {
return common.PointerString(request)
}
// HTTPRequest implements the OCIRequest interface
func (request ListSteeringPolicyAttachmentsRequest) HTTPRequest(method, path string) (http.Request, error) {
return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request)
}
// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListSteeringPolicyAttachmentsRequest) RetryPolicy() *common.RetryPolicy {
return request.RequestMetadata.RetryPolicy
}
// ListSteeringPolicyAttachmentsResponse wrapper for the ListSteeringPolicyAttachments operation
type ListSteeringPolicyAttachmentsResponse struct {
// The underlying http response
RawResponse *http.Response
// A list of []SteeringPolicyAttachmentSummary instances
Items []SteeringPolicyAttachmentSummary `presentIn:"body"`
// For list pagination. When this header appears in the response, additional pages
// of results 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"`
// The total number of items that match the query.
OpcTotalItems *int `presentIn:"header" name:"opc-total-items"`
// 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 ListSteeringPolicyAttachmentsResponse) String() string {
return common.PointerString(response)
}
// HTTPResponse implements the OCIResponse interface
func (response ListSteeringPolicyAttachmentsResponse) HTTPResponse() *http.Response {
return response.RawResponse
}
// ListSteeringPolicyAttachmentsSortByEnum Enum with underlying type: string
type ListSteeringPolicyAttachmentsSortByEnum string
// Set of constants representing the allowable values for ListSteeringPolicyAttachmentsSortByEnum
const (
ListSteeringPolicyAttachmentsSortByDisplayname ListSteeringPolicyAttachmentsSortByEnum = "displayName"
ListSteeringPolicyAttachmentsSortByTimecreated ListSteeringPolicyAttachmentsSortByEnum = "timeCreated"
ListSteeringPolicyAttachmentsSortByDomainname ListSteeringPolicyAttachmentsSortByEnum = "domainName"
)
var mappingListSteeringPolicyAttachmentsSortBy = map[string]ListSteeringPolicyAttachmentsSortByEnum{
"displayName": ListSteeringPolicyAttachmentsSortByDisplayname,
"timeCreated": ListSteeringPolicyAttachmentsSortByTimecreated,
"domainName": ListSteeringPolicyAttachmentsSortByDomainname,
}
// GetListSteeringPolicyAttachmentsSortByEnumValues Enumerates the set of values for ListSteeringPolicyAttachmentsSortByEnum
func GetListSteeringPolicyAttachmentsSortByEnumValues() []ListSteeringPolicyAttachmentsSortByEnum {
values := make([]ListSteeringPolicyAttachmentsSortByEnum, 0)
for _, v := range mappingListSteeringPolicyAttachmentsSortBy {
values = append(values, v)
}
return values
}
// ListSteeringPolicyAttachmentsSortOrderEnum Enum with underlying type: string
type ListSteeringPolicyAttachmentsSortOrderEnum string
// Set of constants representing the allowable values for ListSteeringPolicyAttachmentsSortOrderEnum
const (
ListSteeringPolicyAttachmentsSortOrderAsc ListSteeringPolicyAttachmentsSortOrderEnum = "ASC"
ListSteeringPolicyAttachmentsSortOrderDesc ListSteeringPolicyAttachmentsSortOrderEnum = "DESC"
)
var mappingListSteeringPolicyAttachmentsSortOrder = map[string]ListSteeringPolicyAttachmentsSortOrderEnum{
"ASC": ListSteeringPolicyAttachmentsSortOrderAsc,
"DESC": ListSteeringPolicyAttachmentsSortOrderDesc,
}
// GetListSteeringPolicyAttachmentsSortOrderEnumValues Enumerates the set of values for ListSteeringPolicyAttachmentsSortOrderEnum
func GetListSteeringPolicyAttachmentsSortOrderEnumValues() []ListSteeringPolicyAttachmentsSortOrderEnum {
values := make([]ListSteeringPolicyAttachmentsSortOrderEnum, 0)
for _, v := range mappingListSteeringPolicyAttachmentsSortOrder {
values = append(values, v)
}
return values
}

View file

@ -0,0 +1,205 @@
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
package dns
import (
"github.com/oracle/oci-go-sdk/common"
"net/http"
)
// ListZonesRequest wrapper for the ListZones operation
type ListZonesRequest struct {
// The OCID of the compartment the resource belongs to.
CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"`
// The maximum number of items to return in a page of the collection.
Limit *int64 `mandatory:"false" contributesTo:"query" name:"limit"`
// The value of the `opc-next-page` response header from the previous "List" call.
Page *string `mandatory:"false" contributesTo:"query" name:"page"`
// A case-sensitive filter for zone names.
// Will match any zone with a name that equals the provided value.
Name *string `mandatory:"false" contributesTo:"query" name:"name"`
// Search by zone name.
// Will match any zone whose name (case-insensitive) contains the provided value.
NameContains *string `mandatory:"false" contributesTo:"query" name:"nameContains"`
// Search by zone type, `PRIMARY` or `SECONDARY`.
// Will match any zone whose type equals the provided value.
ZoneType ListZonesZoneTypeEnum `mandatory:"false" contributesTo:"query" name:"zoneType" omitEmpty:"true"`
// An RFC 3339 (https://www.ietf.org/rfc/rfc3339.txt) timestamp that states
// all returned resources were created on or after the indicated time.
TimeCreatedGreaterThanOrEqualTo *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeCreatedGreaterThanOrEqualTo"`
// An RFC 3339 (https://www.ietf.org/rfc/rfc3339.txt) timestamp that states
// all returned resources were created before the indicated time.
TimeCreatedLessThan *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeCreatedLessThan"`
// The state of a resource.
LifecycleState ListZonesLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"`
// The field by which to sort zones.
SortBy ListZonesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`
// The order to sort the resources.
SortOrder ListZonesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"`
// 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 ListZonesRequest) String() string {
return common.PointerString(request)
}
// HTTPRequest implements the OCIRequest interface
func (request ListZonesRequest) HTTPRequest(method, path string) (http.Request, error) {
return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request)
}
// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListZonesRequest) RetryPolicy() *common.RetryPolicy {
return request.RequestMetadata.RetryPolicy
}
// ListZonesResponse wrapper for the ListZones operation
type ListZonesResponse struct {
// The underlying http response
RawResponse *http.Response
// A list of []ZoneSummary instances
Items []ZoneSummary `presentIn:"body"`
// For list pagination. When this header appears in the response, additional pages
// of results 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"`
// The total number of items that match the query.
OpcTotalItems *int `presentIn:"header" name:"opc-total-items"`
// 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 ListZonesResponse) String() string {
return common.PointerString(response)
}
// HTTPResponse implements the OCIResponse interface
func (response ListZonesResponse) HTTPResponse() *http.Response {
return response.RawResponse
}
// ListZonesZoneTypeEnum Enum with underlying type: string
type ListZonesZoneTypeEnum string
// Set of constants representing the allowable values for ListZonesZoneTypeEnum
const (
ListZonesZoneTypePrimary ListZonesZoneTypeEnum = "PRIMARY"
ListZonesZoneTypeSecondary ListZonesZoneTypeEnum = "SECONDARY"
)
var mappingListZonesZoneType = map[string]ListZonesZoneTypeEnum{
"PRIMARY": ListZonesZoneTypePrimary,
"SECONDARY": ListZonesZoneTypeSecondary,
}
// GetListZonesZoneTypeEnumValues Enumerates the set of values for ListZonesZoneTypeEnum
func GetListZonesZoneTypeEnumValues() []ListZonesZoneTypeEnum {
values := make([]ListZonesZoneTypeEnum, 0)
for _, v := range mappingListZonesZoneType {
values = append(values, v)
}
return values
}
// ListZonesLifecycleStateEnum Enum with underlying type: string
type ListZonesLifecycleStateEnum string
// Set of constants representing the allowable values for ListZonesLifecycleStateEnum
const (
ListZonesLifecycleStateActive ListZonesLifecycleStateEnum = "ACTIVE"
ListZonesLifecycleStateCreating ListZonesLifecycleStateEnum = "CREATING"
ListZonesLifecycleStateDeleted ListZonesLifecycleStateEnum = "DELETED"
ListZonesLifecycleStateDeleting ListZonesLifecycleStateEnum = "DELETING"
ListZonesLifecycleStateFailed ListZonesLifecycleStateEnum = "FAILED"
)
var mappingListZonesLifecycleState = map[string]ListZonesLifecycleStateEnum{
"ACTIVE": ListZonesLifecycleStateActive,
"CREATING": ListZonesLifecycleStateCreating,
"DELETED": ListZonesLifecycleStateDeleted,
"DELETING": ListZonesLifecycleStateDeleting,
"FAILED": ListZonesLifecycleStateFailed,
}
// GetListZonesLifecycleStateEnumValues Enumerates the set of values for ListZonesLifecycleStateEnum
func GetListZonesLifecycleStateEnumValues() []ListZonesLifecycleStateEnum {
values := make([]ListZonesLifecycleStateEnum, 0)
for _, v := range mappingListZonesLifecycleState {
values = append(values, v)
}
return values
}
// ListZonesSortByEnum Enum with underlying type: string
type ListZonesSortByEnum string
// Set of constants representing the allowable values for ListZonesSortByEnum
const (
ListZonesSortByName ListZonesSortByEnum = "name"
ListZonesSortByZonetype ListZonesSortByEnum = "zoneType"
ListZonesSortByTimecreated ListZonesSortByEnum = "timeCreated"
)
var mappingListZonesSortBy = map[string]ListZonesSortByEnum{
"name": ListZonesSortByName,
"zoneType": ListZonesSortByZonetype,
"timeCreated": ListZonesSortByTimecreated,
}
// GetListZonesSortByEnumValues Enumerates the set of values for ListZonesSortByEnum
func GetListZonesSortByEnumValues() []ListZonesSortByEnum {
values := make([]ListZonesSortByEnum, 0)
for _, v := range mappingListZonesSortBy {
values = append(values, v)
}
return values
}
// ListZonesSortOrderEnum Enum with underlying type: string
type ListZonesSortOrderEnum string
// Set of constants representing the allowable values for ListZonesSortOrderEnum
const (
ListZonesSortOrderAsc ListZonesSortOrderEnum = "ASC"
ListZonesSortOrderDesc ListZonesSortOrderEnum = "DESC"
)
var mappingListZonesSortOrder = map[string]ListZonesSortOrderEnum{
"ASC": ListZonesSortOrderAsc,
"DESC": ListZonesSortOrderDesc,
}
// GetListZonesSortOrderEnumValues Enumerates the set of values for ListZonesSortOrderEnum
func GetListZonesSortOrderEnumValues() []ListZonesSortOrderEnum {
values := make([]ListZonesSortOrderEnum, 0)
for _, v := range mappingListZonesSortOrder {
values = append(values, v)
}
return values
}

25
vendor/github.com/oracle/oci-go-sdk/dns/nameserver.go generated vendored Normal file
View file

@ -0,0 +1,25 @@
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
// DNS API
//
// API for the DNS service. Use this API to manage DNS zones, records, and other DNS resources.
// For more information, see Overview of the DNS Service (https://docs.cloud.oracle.com/iaas/Content/DNS/Concepts/dnszonemanagement.htm).
//
package dns
import (
"github.com/oracle/oci-go-sdk/common"
)
// Nameserver A server that has been set up to answer DNS queries for a zone.
type Nameserver struct {
// The hostname of the nameserver.
Hostname *string `mandatory:"true" json:"hostname"`
}
func (m Nameserver) String() string {
return common.PointerString(m)
}

View file

@ -0,0 +1,23 @@
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
// DNS API
//
// API for the DNS service. Use this API to manage DNS zones, records, and other DNS resources.
// For more information, see Overview of the DNS Service (https://docs.cloud.oracle.com/iaas/Content/DNS/Concepts/dnszonemanagement.htm).
//
package dns
import (
"github.com/oracle/oci-go-sdk/common"
)
// PatchDomainRecordsDetails The representation of PatchDomainRecordsDetails
type PatchDomainRecordsDetails struct {
Items []RecordOperation `mandatory:"false" json:"items"`
}
func (m PatchDomainRecordsDetails) String() string {
return common.PointerString(m)
}

View file

@ -0,0 +1,98 @@
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
package dns
import (
"github.com/oracle/oci-go-sdk/common"
"net/http"
)
// PatchDomainRecordsRequest wrapper for the PatchDomainRecords operation
type PatchDomainRecordsRequest struct {
// The name or OCID of the target zone.
ZoneNameOrId *string `mandatory:"true" contributesTo:"path" name:"zoneNameOrId"`
// The target fully-qualified domain name (FQDN) within the target zone.
Domain *string `mandatory:"true" contributesTo:"path" name:"domain"`
// Operations describing how to modify the collection of records.
PatchDomainRecordsDetails `contributesTo:"body"`
// The `If-Match` header field makes the request method conditional on the
// existence of at least one current representation of the target resource,
// when the field-value is `*`, or having a current representation of the
// target resource that has an entity-tag matching a member of the list of
// entity-tags provided in the field-value.
IfMatch *string `mandatory:"false" contributesTo:"header" name:"If-Match"`
// The `If-Unmodified-Since` header field makes the request method
// conditional on the selected representation's last modification date being
// earlier than or equal to the date provided in the field-value. This
// field accomplishes the same purpose as If-Match for cases where the user
// agent does not have an entity-tag for the representation.
IfUnmodifiedSince *string `mandatory:"false" contributesTo:"header" name:"If-Unmodified-Since"`
// The OCID of the compartment the resource belongs to.
CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"`
// 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 PatchDomainRecordsRequest) String() string {
return common.PointerString(request)
}
// HTTPRequest implements the OCIRequest interface
func (request PatchDomainRecordsRequest) HTTPRequest(method, path string) (http.Request, error) {
return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request)
}
// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request PatchDomainRecordsRequest) RetryPolicy() *common.RetryPolicy {
return request.RequestMetadata.RetryPolicy
}
// PatchDomainRecordsResponse wrapper for the PatchDomainRecords operation
type PatchDomainRecordsResponse struct {
// The underlying http response
RawResponse *http.Response
// The RecordCollection instance
RecordCollection `presentIn:"body"`
// For list pagination. When this header appears in the response, additional pages
// of results 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"`
// The total number of items that match the query.
OpcTotalItems *int `presentIn:"header" name:"opc-total-items"`
// 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 current version of the record collection, ending with a
// representation-specific suffix. This value may be used in If-Match
// and If-None-Match headers for later requests of the same resource.
ETag *string `presentIn:"header" name:"etag"`
}
func (response PatchDomainRecordsResponse) String() string {
return common.PointerString(response)
}
// HTTPResponse implements the OCIResponse interface
func (response PatchDomainRecordsResponse) HTTPResponse() *http.Response {
return response.RawResponse
}

View file

@ -0,0 +1,101 @@
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
package dns
import (
"github.com/oracle/oci-go-sdk/common"
"net/http"
)
// PatchRRSetRequest wrapper for the PatchRRSet operation
type PatchRRSetRequest struct {
// The name or OCID of the target zone.
ZoneNameOrId *string `mandatory:"true" contributesTo:"path" name:"zoneNameOrId"`
// The target fully-qualified domain name (FQDN) within the target zone.
Domain *string `mandatory:"true" contributesTo:"path" name:"domain"`
// The type of the target RRSet within the target zone.
Rtype *string `mandatory:"true" contributesTo:"path" name:"rtype"`
// Operations describing how to modify the collection of records.
PatchRrSetDetails `contributesTo:"body"`
// The `If-Match` header field makes the request method conditional on the
// existence of at least one current representation of the target resource,
// when the field-value is `*`, or having a current representation of the
// target resource that has an entity-tag matching a member of the list of
// entity-tags provided in the field-value.
IfMatch *string `mandatory:"false" contributesTo:"header" name:"If-Match"`
// The `If-Unmodified-Since` header field makes the request method
// conditional on the selected representation's last modification date being
// earlier than or equal to the date provided in the field-value. This
// field accomplishes the same purpose as If-Match for cases where the user
// agent does not have an entity-tag for the representation.
IfUnmodifiedSince *string `mandatory:"false" contributesTo:"header" name:"If-Unmodified-Since"`
// The OCID of the compartment the resource belongs to.
CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"`
// 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 PatchRRSetRequest) String() string {
return common.PointerString(request)
}
// HTTPRequest implements the OCIRequest interface
func (request PatchRRSetRequest) HTTPRequest(method, path string) (http.Request, error) {
return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request)
}
// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request PatchRRSetRequest) RetryPolicy() *common.RetryPolicy {
return request.RequestMetadata.RetryPolicy
}
// PatchRRSetResponse wrapper for the PatchRRSet operation
type PatchRRSetResponse struct {
// The underlying http response
RawResponse *http.Response
// The RecordCollection instance
RecordCollection `presentIn:"body"`
// For list pagination. When this header appears in the response, additional pages
// of results 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"`
// The total number of items that match the query.
OpcTotalItems *int `presentIn:"header" name:"opc-total-items"`
// 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 current version of the record collection, ending with a
// representation-specific suffix. This value may be used in If-Match
// and If-None-Match headers for later requests of the same resource.
ETag *string `presentIn:"header" name:"etag"`
}
func (response PatchRRSetResponse) String() string {
return common.PointerString(response)
}
// HTTPResponse implements the OCIResponse interface
func (response PatchRRSetResponse) HTTPResponse() *http.Response {
return response.RawResponse
}

View file

@ -0,0 +1,23 @@
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
// DNS API
//
// API for the DNS service. Use this API to manage DNS zones, records, and other DNS resources.
// For more information, see Overview of the DNS Service (https://docs.cloud.oracle.com/iaas/Content/DNS/Concepts/dnszonemanagement.htm).
//
package dns
import (
"github.com/oracle/oci-go-sdk/common"
)
// PatchRrSetDetails The representation of PatchRrSetDetails
type PatchRrSetDetails struct {
Items []RecordOperation `mandatory:"false" json:"items"`
}
func (m PatchRrSetDetails) String() string {
return common.PointerString(m)
}

View file

@ -0,0 +1,23 @@
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
// DNS API
//
// API for the DNS service. Use this API to manage DNS zones, records, and other DNS resources.
// For more information, see Overview of the DNS Service (https://docs.cloud.oracle.com/iaas/Content/DNS/Concepts/dnszonemanagement.htm).
//
package dns
import (
"github.com/oracle/oci-go-sdk/common"
)
// PatchZoneRecordsDetails The representation of PatchZoneRecordsDetails
type PatchZoneRecordsDetails struct {
Items []RecordOperation `mandatory:"false" json:"items"`
}
func (m PatchZoneRecordsDetails) String() string {
return common.PointerString(m)
}

View file

@ -0,0 +1,95 @@
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
package dns
import (
"github.com/oracle/oci-go-sdk/common"
"net/http"
)
// PatchZoneRecordsRequest wrapper for the PatchZoneRecords operation
type PatchZoneRecordsRequest struct {
// The name or OCID of the target zone.
ZoneNameOrId *string `mandatory:"true" contributesTo:"path" name:"zoneNameOrId"`
// The operations describing how to modify the collection of records.
PatchZoneRecordsDetails `contributesTo:"body"`
// The `If-Match` header field makes the request method conditional on the
// existence of at least one current representation of the target resource,
// when the field-value is `*`, or having a current representation of the
// target resource that has an entity-tag matching a member of the list of
// entity-tags provided in the field-value.
IfMatch *string `mandatory:"false" contributesTo:"header" name:"If-Match"`
// The `If-Unmodified-Since` header field makes the request method
// conditional on the selected representation's last modification date being
// earlier than or equal to the date provided in the field-value. This
// field accomplishes the same purpose as If-Match for cases where the user
// agent does not have an entity-tag for the representation.
IfUnmodifiedSince *string `mandatory:"false" contributesTo:"header" name:"If-Unmodified-Since"`
// The OCID of the compartment the resource belongs to.
CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"`
// 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 PatchZoneRecordsRequest) String() string {
return common.PointerString(request)
}
// HTTPRequest implements the OCIRequest interface
func (request PatchZoneRecordsRequest) HTTPRequest(method, path string) (http.Request, error) {
return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request)
}
// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request PatchZoneRecordsRequest) RetryPolicy() *common.RetryPolicy {
return request.RequestMetadata.RetryPolicy
}
// PatchZoneRecordsResponse wrapper for the PatchZoneRecords operation
type PatchZoneRecordsResponse struct {
// The underlying http response
RawResponse *http.Response
// The RecordCollection instance
RecordCollection `presentIn:"body"`
// For list pagination. When this header appears in the response, additional pages
// of results 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"`
// The total number of items that match the query.
OpcTotalItems *int `presentIn:"header" name:"opc-total-items"`
// 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 current version of the record collection, ending with a
// representation-specific suffix. This value may be used in If-Match
// and If-None-Match headers for later requests of the same resource.
ETag *string `presentIn:"header" name:"etag"`
}
func (response PatchZoneRecordsResponse) String() string {
return common.PointerString(response)
}
// HTTPResponse implements the OCIResponse interface
func (response PatchZoneRecordsResponse) HTTPResponse() *http.Response {
return response.RawResponse
}

49
vendor/github.com/oracle/oci-go-sdk/dns/record.go generated vendored Normal file
View file

@ -0,0 +1,49 @@
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
// DNS API
//
// API for the DNS service. Use this API to manage DNS zones, records, and other DNS resources.
// For more information, see Overview of the DNS Service (https://docs.cloud.oracle.com/iaas/Content/DNS/Concepts/dnszonemanagement.htm).
//
package dns
import (
"github.com/oracle/oci-go-sdk/common"
)
// Record A DNS resource record. For more information about DNS records, see RFC 1034 (https://tools.ietf.org/html/rfc1034#section-3.6).
type Record struct {
// The fully qualified domain name where the record can be located.
Domain *string `mandatory:"false" json:"domain"`
// A unique identifier for the record within its zone.
RecordHash *string `mandatory:"false" json:"recordHash"`
// A Boolean flag indicating whether or not parts of the record
// are unable to be explicitly managed.
IsProtected *bool `mandatory:"false" json:"isProtected"`
// The record's data, as whitespace-delimited tokens in
// type-specific presentation format. All RDATA is normalized and the
// returned presentation of your RDATA may differ from its initial input.
// For more information about RDATA, see Supported DNS Resource Record Types (https://docs.cloud.oracle.com/iaas/Content/DNS/Reference/supporteddnsresource.htm)
Rdata *string `mandatory:"false" json:"rdata"`
// The latest version of the record's zone in which its RRSet differs
// from the preceding version.
RrsetVersion *string `mandatory:"false" json:"rrsetVersion"`
// The canonical name for the record's type, such as A or CNAME. For more
// information, see Resource Record (RR) TYPEs (https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-4).
Rtype *string `mandatory:"false" json:"rtype"`
// The Time To Live for the record, in seconds.
Ttl *int `mandatory:"false" json:"ttl"`
}
func (m Record) String() string {
return common.PointerString(m)
}

View file

@ -0,0 +1,23 @@
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
// DNS API
//
// API for the DNS service. Use this API to manage DNS zones, records, and other DNS resources.
// For more information, see Overview of the DNS Service (https://docs.cloud.oracle.com/iaas/Content/DNS/Concepts/dnszonemanagement.htm).
//
package dns
import (
"github.com/oracle/oci-go-sdk/common"
)
// RecordCollection A collection of DNS resource records.
type RecordCollection struct {
Items []Record `mandatory:"false" json:"items"`
}
func (m RecordCollection) String() string {
return common.PointerString(m)
}

View file

@ -0,0 +1,49 @@
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
// DNS API
//
// API for the DNS service. Use this API to manage DNS zones, records, and other DNS resources.
// For more information, see Overview of the DNS Service (https://docs.cloud.oracle.com/iaas/Content/DNS/Concepts/dnszonemanagement.htm).
//
package dns
import (
"github.com/oracle/oci-go-sdk/common"
)
// RecordDetails A DNS resource record. For more information about records, see RFC 1034 (https://tools.ietf.org/html/rfc1034#section-3.6).
type RecordDetails struct {
// The fully qualified domain name where the record can be located.
Domain *string `mandatory:"true" json:"domain"`
// The record's data, as whitespace-delimited tokens in
// type-specific presentation format. All RDATA is normalized and the
// returned presentation of your RDATA may differ from its initial input.
// For more information about RDATA, see Supported DNS Resource Record Types (https://docs.cloud.oracle.com/iaas/Content/DNS/Reference/supporteddnsresource.htm)
Rdata *string `mandatory:"true" json:"rdata"`
// The canonical name for the record's type, such as A or CNAME. For more
// information, see Resource Record (RR) TYPEs (https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-4).
Rtype *string `mandatory:"true" json:"rtype"`
// The Time To Live for the record, in seconds.
Ttl *int `mandatory:"true" json:"ttl"`
// A unique identifier for the record within its zone.
RecordHash *string `mandatory:"false" json:"recordHash"`
// A Boolean flag indicating whether or not parts of the record
// are unable to be explicitly managed.
IsProtected *bool `mandatory:"false" json:"isProtected"`
// The latest version of the record's zone in which its RRSet differs
// from the preceding version.
RrsetVersion *string `mandatory:"false" json:"rrsetVersion"`
}
func (m RecordDetails) String() string {
return common.PointerString(m)
}

View file

@ -0,0 +1,92 @@
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
// DNS API
//
// API for the DNS service. Use this API to manage DNS zones, records, and other DNS resources.
// For more information, see Overview of the DNS Service (https://docs.cloud.oracle.com/iaas/Content/DNS/Concepts/dnszonemanagement.htm).
//
package dns
import (
"github.com/oracle/oci-go-sdk/common"
)
// RecordOperation An extension of the existing record resource, describing either a
// precondition, an add, or a remove. Preconditions check all fields,
// including read-only data like `recordHash` and `rrsetVersion`.
type RecordOperation struct {
// The fully qualified domain name where the record can be located.
Domain *string `mandatory:"false" json:"domain"`
// A unique identifier for the record within its zone.
RecordHash *string `mandatory:"false" json:"recordHash"`
// A Boolean flag indicating whether or not parts of the record
// are unable to be explicitly managed.
IsProtected *bool `mandatory:"false" json:"isProtected"`
// The record's data, as whitespace-delimited tokens in
// type-specific presentation format. All RDATA is normalized and the
// returned presentation of your RDATA may differ from its initial input.
// For more information about RDATA, see Supported DNS Resource Record Types (https://docs.cloud.oracle.com/iaas/Content/DNS/Reference/supporteddnsresource.htm)
Rdata *string `mandatory:"false" json:"rdata"`
// The latest version of the record's zone in which its RRSet differs
// from the preceding version.
RrsetVersion *string `mandatory:"false" json:"rrsetVersion"`
// The canonical name for the record's type, such as A or CNAME. For more
// information, see Resource Record (RR) TYPEs (https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-4).
Rtype *string `mandatory:"false" json:"rtype"`
// The Time To Live for the record, in seconds.
Ttl *int `mandatory:"false" json:"ttl"`
// A description of how a record relates to a PATCH operation.
// - `REQUIRE` indicates a precondition that record data **must** already exist.
// - `PROHIBIT` indicates a precondition that record data **must not** already exist.
// - `ADD` indicates that record data **must** exist after successful application.
// - `REMOVE` indicates that record data **must not** exist after successful application.
// **Note:** `ADD` and `REMOVE` operations can succeed even if
// they require no changes when applied, such as when the described
// records are already present or absent.
// **Note:** `ADD` and `REMOVE` operations can describe changes for
// more than one record.
// **Example:** `{ "domain": "www.example.com", "rtype": "AAAA", "ttl": 60 }`
// specifies a new TTL for every record in the www.example.com AAAA RRSet.
Operation RecordOperationOperationEnum `mandatory:"false" json:"operation,omitempty"`
}
func (m RecordOperation) String() string {
return common.PointerString(m)
}
// RecordOperationOperationEnum Enum with underlying type: string
type RecordOperationOperationEnum string
// Set of constants representing the allowable values for RecordOperationOperationEnum
const (
RecordOperationOperationRequire RecordOperationOperationEnum = "REQUIRE"
RecordOperationOperationProhibit RecordOperationOperationEnum = "PROHIBIT"
RecordOperationOperationAdd RecordOperationOperationEnum = "ADD"
RecordOperationOperationRemove RecordOperationOperationEnum = "REMOVE"
)
var mappingRecordOperationOperation = map[string]RecordOperationOperationEnum{
"REQUIRE": RecordOperationOperationRequire,
"PROHIBIT": RecordOperationOperationProhibit,
"ADD": RecordOperationOperationAdd,
"REMOVE": RecordOperationOperationRemove,
}
// GetRecordOperationOperationEnumValues Enumerates the set of values for RecordOperationOperationEnum
func GetRecordOperationOperationEnumValues() []RecordOperationOperationEnum {
values := make([]RecordOperationOperationEnum, 0)
for _, v := range mappingRecordOperationOperation {
values = append(values, v)
}
return values
}

24
vendor/github.com/oracle/oci-go-sdk/dns/rr_set.go generated vendored Normal file
View file

@ -0,0 +1,24 @@
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
// DNS API
//
// API for the DNS service. Use this API to manage DNS zones, records, and other DNS resources.
// For more information, see Overview of the DNS Service (https://docs.cloud.oracle.com/iaas/Content/DNS/Concepts/dnszonemanagement.htm).
//
package dns
import (
"github.com/oracle/oci-go-sdk/common"
)
// RrSet A collection of DNS records of the same domain and type. For more
// information about record types, see Resource Record (RR) TYPEs (https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-4).
type RrSet struct {
Items []Record `mandatory:"false" json:"items"`
}
func (m RrSet) String() string {
return common.PointerString(m)
}

22
vendor/github.com/oracle/oci-go-sdk/dns/sort_order.go generated vendored Normal file
View file

@ -0,0 +1,22 @@
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
// DNS API
//
// API for the DNS service. Use this API to manage DNS zones, records, and other DNS resources.
// For more information, see Overview of the DNS Service (https://docs.cloud.oracle.com/iaas/Content/DNS/Concepts/dnszonemanagement.htm).
//
package dns
import (
"github.com/oracle/oci-go-sdk/common"
)
// SortOrder The order to sort the resources.
type SortOrder struct {
}
func (m SortOrder) String() string {
return common.PointerString(m)
}

View file

@ -0,0 +1,226 @@
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
// DNS API
//
// API for the DNS service. Use this API to manage DNS zones, records, and other DNS resources.
// For more information, see Overview of the DNS Service (https://docs.cloud.oracle.com/iaas/Content/DNS/Concepts/dnszonemanagement.htm).
//
package dns
import (
"encoding/json"
"github.com/oracle/oci-go-sdk/common"
)
// SteeringPolicy A DNS steering policy.
// *Warning:* Oracle recommends that you avoid using any confidential information when you supply string values using the API.
type SteeringPolicy struct {
// The OCID of the compartment containing the steering policy.
CompartmentId *string `mandatory:"false" json:"compartmentId"`
// A user-friendly name for the steering policy.
// Does not have to be unique, and it's changeable.
// Avoid entering confidential information.
DisplayName *string `mandatory:"false" json:"displayName"`
// The Time To Live for responses from the steering policy, in seconds.
// If not specified during creation, a value of 30 seconds will be used.
Ttl *int `mandatory:"false" json:"ttl"`
// The OCID of the health check monitor providing health data about the answers of the
// steering policy.
// A steering policy answer with `rdata` matching a monitored endpoint will use the health
// data of that endpoint.
// A steering policy answer with `rdata` not matching any monitored endpoint will be assumed
// healthy.
HealthCheckMonitorId *string `mandatory:"false" json:"healthCheckMonitorId"`
// The common pattern (or lack thereof) to which the steering policy adheres. This
// value restricts the possible configurations of rules, but thereby supports
// specifically tailored interfaces. Values other than "CUSTOM" require the rules to
// begin with an unconditional FILTER that keeps answers contingent upon
// `answer.isDisabled != true`, followed
// _if and only if the policy references a health check monitor_ by an unconditional
// HEALTH rule, and require the last rule to be an unconditional LIMIT.
// What must precede the LIMIT rule is determined by the template value:
// - FAILOVER requires exactly an unconditional PRIORITY rule that ranks answers by pool.
// Each answer pool must have a unique priority value assigned to it. Answer data must
// be defined in the `defaultAnswerData` property for the rule and the `cases` property
// must not be defined.
// - LOAD_BALANCE requires exactly an unconditional WEIGHTED rule that shuffles answers
// by name. Answer data must be defined in the `defaultAnswerData` property for the
// rule and the `cases` property must not be defined.
// - ROUTE_BY_GEO requires exactly one PRIORITY rule that ranks answers by pool using the
// geographical location of the client as a condition. Within that rule you may only
// use `query.client.geoKey` in the `caseCondition` expressions for defining the cases.
// For each case in the PRIORITY rule each answer pool must have a unique priority
// value assigned to it. Answer data can only be defined within cases and
// `defaultAnswerData` cannot be used in the PRIORITY rule.
// - ROUTE_BY_ASN requires exactly one PRIORITY rule that ranks answers by pool using the
// ASN of the client as a condition. Within that rule you may only use
// `query.client.asn` in the `caseCondition` expressions for defining the cases.
// For each case in the PRIORITY rule each answer pool must have a unique priority
// value assigned to it. Answer data can only be defined within cases and
// `defaultAnswerData` cannot be used in the PRIORITY rule.
// - ROUTE_BY_IP requires exactly one PRIORITY rule that ranks answers by pool using the
// IP subnet of the client as a condition. Within that rule you may only use
// `query.client.address` in the `caseCondition` expressions for defining the cases.
// For each case in the PRIORITY rule each answer pool must have a unique priority
// value assigned to it. Answer data can only be defined within cases and
// `defaultAnswerData` cannot be used in the PRIORITY rule.
// - CUSTOM allows an arbitrary configuration of rules.
// For an existing steering policy, the template value may be changed to any of the
// supported options but the resulting policy must conform to the requirements for the
// new template type or else a Bad Request error will be returned.
Template SteeringPolicyTemplateEnum `mandatory:"false" json:"template,omitempty"`
// Simple key-value pair that is applied without any predefined name, type, or scope.
// For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
// Example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// Usage of predefined tag keys. These predefined keys are scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
// The set of all answers that can potentially issue from the steering policy.
Answers []SteeringPolicyAnswer `mandatory:"false" json:"answers"`
// The pipeline of rules that will be processed in sequence to reduce the pool of answers
// to a response for any given request.
// The first rule receives a shuffled list of all answers, and every other rule receives
// the list of answers emitted by the one preceding it. The last rule populates the
// response.
Rules []SteeringPolicyRule `mandatory:"false" json:"rules"`
// The canonical absolute URL of the resource.
Self *string `mandatory:"false" json:"self"`
// The OCID of the resource.
Id *string `mandatory:"false" json:"id"`
// The date and time the resource was created in "YYYY-MM-ddThh:mmZ" format
// with a Z offset, as defined by RFC 3339.
// **Example:** `2016-07-22T17:23:59:60Z`
TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"`
// The current state of the resource.
LifecycleState SteeringPolicyLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"`
}
func (m SteeringPolicy) String() string {
return common.PointerString(m)
}
// UnmarshalJSON unmarshals from json
func (m *SteeringPolicy) UnmarshalJSON(data []byte) (e error) {
model := struct {
CompartmentId *string `json:"compartmentId"`
DisplayName *string `json:"displayName"`
Ttl *int `json:"ttl"`
HealthCheckMonitorId *string `json:"healthCheckMonitorId"`
Template SteeringPolicyTemplateEnum `json:"template"`
FreeformTags map[string]string `json:"freeformTags"`
DefinedTags map[string]map[string]interface{} `json:"definedTags"`
Answers []SteeringPolicyAnswer `json:"answers"`
Rules []steeringpolicyrule `json:"rules"`
Self *string `json:"self"`
Id *string `json:"id"`
TimeCreated *common.SDKTime `json:"timeCreated"`
LifecycleState SteeringPolicyLifecycleStateEnum `json:"lifecycleState"`
}{}
e = json.Unmarshal(data, &model)
if e != nil {
return
}
m.CompartmentId = model.CompartmentId
m.DisplayName = model.DisplayName
m.Ttl = model.Ttl
m.HealthCheckMonitorId = model.HealthCheckMonitorId
m.Template = model.Template
m.FreeformTags = model.FreeformTags
m.DefinedTags = model.DefinedTags
m.Answers = make([]SteeringPolicyAnswer, len(model.Answers))
for i, n := range model.Answers {
m.Answers[i] = n
}
m.Rules = make([]SteeringPolicyRule, len(model.Rules))
for i, n := range model.Rules {
nn, err := n.UnmarshalPolymorphicJSON(n.JsonData)
if err != nil {
return err
}
if nn != nil {
m.Rules[i] = nn.(SteeringPolicyRule)
} else {
m.Rules[i] = nil
}
}
m.Self = model.Self
m.Id = model.Id
m.TimeCreated = model.TimeCreated
m.LifecycleState = model.LifecycleState
return
}
// SteeringPolicyTemplateEnum Enum with underlying type: string
type SteeringPolicyTemplateEnum string
// Set of constants representing the allowable values for SteeringPolicyTemplateEnum
const (
SteeringPolicyTemplateFailover SteeringPolicyTemplateEnum = "FAILOVER"
SteeringPolicyTemplateLoadBalance SteeringPolicyTemplateEnum = "LOAD_BALANCE"
SteeringPolicyTemplateRouteByGeo SteeringPolicyTemplateEnum = "ROUTE_BY_GEO"
SteeringPolicyTemplateRouteByAsn SteeringPolicyTemplateEnum = "ROUTE_BY_ASN"
SteeringPolicyTemplateRouteByIp SteeringPolicyTemplateEnum = "ROUTE_BY_IP"
SteeringPolicyTemplateCustom SteeringPolicyTemplateEnum = "CUSTOM"
)
var mappingSteeringPolicyTemplate = map[string]SteeringPolicyTemplateEnum{
"FAILOVER": SteeringPolicyTemplateFailover,
"LOAD_BALANCE": SteeringPolicyTemplateLoadBalance,
"ROUTE_BY_GEO": SteeringPolicyTemplateRouteByGeo,
"ROUTE_BY_ASN": SteeringPolicyTemplateRouteByAsn,
"ROUTE_BY_IP": SteeringPolicyTemplateRouteByIp,
"CUSTOM": SteeringPolicyTemplateCustom,
}
// GetSteeringPolicyTemplateEnumValues Enumerates the set of values for SteeringPolicyTemplateEnum
func GetSteeringPolicyTemplateEnumValues() []SteeringPolicyTemplateEnum {
values := make([]SteeringPolicyTemplateEnum, 0)
for _, v := range mappingSteeringPolicyTemplate {
values = append(values, v)
}
return values
}
// SteeringPolicyLifecycleStateEnum Enum with underlying type: string
type SteeringPolicyLifecycleStateEnum string
// Set of constants representing the allowable values for SteeringPolicyLifecycleStateEnum
const (
SteeringPolicyLifecycleStateActive SteeringPolicyLifecycleStateEnum = "ACTIVE"
SteeringPolicyLifecycleStateCreating SteeringPolicyLifecycleStateEnum = "CREATING"
SteeringPolicyLifecycleStateDeleted SteeringPolicyLifecycleStateEnum = "DELETED"
SteeringPolicyLifecycleStateDeleting SteeringPolicyLifecycleStateEnum = "DELETING"
)
var mappingSteeringPolicyLifecycleState = map[string]SteeringPolicyLifecycleStateEnum{
"ACTIVE": SteeringPolicyLifecycleStateActive,
"CREATING": SteeringPolicyLifecycleStateCreating,
"DELETED": SteeringPolicyLifecycleStateDeleted,
"DELETING": SteeringPolicyLifecycleStateDeleting,
}
// GetSteeringPolicyLifecycleStateEnumValues Enumerates the set of values for SteeringPolicyLifecycleStateEnum
func GetSteeringPolicyLifecycleStateEnumValues() []SteeringPolicyLifecycleStateEnum {
values := make([]SteeringPolicyLifecycleStateEnum, 0)
for _, v := range mappingSteeringPolicyLifecycleState {
values = append(values, v)
}
return values
}

View file

@ -0,0 +1,43 @@
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
// DNS API
//
// API for the DNS service. Use this API to manage DNS zones, records, and other DNS resources.
// For more information, see Overview of the DNS Service (https://docs.cloud.oracle.com/iaas/Content/DNS/Concepts/dnszonemanagement.htm).
//
package dns
import (
"github.com/oracle/oci-go-sdk/common"
)
// SteeringPolicyAnswer DNS record data with metadata for processing in a steering policy.
// *Warning:* Oracle recommends that you avoid using any confidential information when you supply string values using the API.
type SteeringPolicyAnswer struct {
// A user-friendly name for the answer, unique within the steering policy.
Name *string `mandatory:"true" json:"name"`
// The canonical name for the record's type. Only A, AAAA, and CNAME are supported. For more
// information, see Resource Record (RR) TYPEs (https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-4).
Rtype *string `mandatory:"true" json:"rtype"`
// The record's data, as whitespace-delimited tokens in
// type-specific presentation format.
Rdata *string `mandatory:"true" json:"rdata"`
// The freeform name of a group of one or more records (e.g., a data center or a geographic
// region) in which this one is included.
Pool *string `mandatory:"false" json:"pool"`
// Whether or not an answer should be excluded from responses, e.g. because the corresponding
// server is down for maintenance. Note, however, that such filtering is not automatic and
// will only take place if a rule implements it.
IsDisabled *bool `mandatory:"false" json:"isDisabled"`
}
func (m SteeringPolicyAnswer) String() string {
return common.PointerString(m)
}

View file

@ -0,0 +1,86 @@
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
// DNS API
//
// API for the DNS service. Use this API to manage DNS zones, records, and other DNS resources.
// For more information, see Overview of the DNS Service (https://docs.cloud.oracle.com/iaas/Content/DNS/Concepts/dnszonemanagement.htm).
//
package dns
import (
"github.com/oracle/oci-go-sdk/common"
)
// SteeringPolicyAttachment An attachment between a steering policy and a domain.
// An attachment occludes all records at its domain that are of a covered rtype, constructing
// DNS responses from its steering policy rather than from those domain records.
// A domain can have at most one attachment covering any given rtype.
type SteeringPolicyAttachment struct {
// The OCID of the attached steering policy.
SteeringPolicyId *string `mandatory:"false" json:"steeringPolicyId"`
// The OCID of the attached zone.
ZoneId *string `mandatory:"false" json:"zoneId"`
// The attached domain within the attached zone.
DomainName *string `mandatory:"false" json:"domainName"`
// A user-friendly name for the steering policy attachment.
// Does not have to be unique, and it's changeable.
// Avoid entering confidential information.
DisplayName *string `mandatory:"false" json:"displayName"`
// The record types covered by the attachment at the domain. The set of record types is
// determined by aggregating the record types from the answers defined in the steering
// policy.
Rtypes []string `mandatory:"false" json:"rtypes"`
// The OCID of the compartment containing the steering policy attachment.
CompartmentId *string `mandatory:"false" json:"compartmentId"`
// The canonical absolute URL of the resource.
Self *string `mandatory:"false" json:"self"`
// The OCID of the resource.
Id *string `mandatory:"false" json:"id"`
// The date and time the resource was created in "YYYY-MM-ddThh:mmZ" format
// with a Z offset, as defined by RFC 3339.
// **Example:** `2016-07-22T17:23:59:60Z`
TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"`
// The current state of the resource.
LifecycleState SteeringPolicyAttachmentLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"`
}
func (m SteeringPolicyAttachment) String() string {
return common.PointerString(m)
}
// SteeringPolicyAttachmentLifecycleStateEnum Enum with underlying type: string
type SteeringPolicyAttachmentLifecycleStateEnum string
// Set of constants representing the allowable values for SteeringPolicyAttachmentLifecycleStateEnum
const (
SteeringPolicyAttachmentLifecycleStateCreating SteeringPolicyAttachmentLifecycleStateEnum = "CREATING"
SteeringPolicyAttachmentLifecycleStateActive SteeringPolicyAttachmentLifecycleStateEnum = "ACTIVE"
SteeringPolicyAttachmentLifecycleStateDeleting SteeringPolicyAttachmentLifecycleStateEnum = "DELETING"
)
var mappingSteeringPolicyAttachmentLifecycleState = map[string]SteeringPolicyAttachmentLifecycleStateEnum{
"CREATING": SteeringPolicyAttachmentLifecycleStateCreating,
"ACTIVE": SteeringPolicyAttachmentLifecycleStateActive,
"DELETING": SteeringPolicyAttachmentLifecycleStateDeleting,
}
// GetSteeringPolicyAttachmentLifecycleStateEnumValues Enumerates the set of values for SteeringPolicyAttachmentLifecycleStateEnum
func GetSteeringPolicyAttachmentLifecycleStateEnumValues() []SteeringPolicyAttachmentLifecycleStateEnum {
values := make([]SteeringPolicyAttachmentLifecycleStateEnum, 0)
for _, v := range mappingSteeringPolicyAttachmentLifecycleState {
values = append(values, v)
}
return values
}

View file

@ -0,0 +1,83 @@
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
// DNS API
//
// API for the DNS service. Use this API to manage DNS zones, records, and other DNS resources.
// For more information, see Overview of the DNS Service (https://docs.cloud.oracle.com/iaas/Content/DNS/Concepts/dnszonemanagement.htm).
//
package dns
import (
"github.com/oracle/oci-go-sdk/common"
)
// SteeringPolicyAttachmentSummary An attachment between a steering policy and a domain.
type SteeringPolicyAttachmentSummary struct {
// The OCID of the attached steering policy.
SteeringPolicyId *string `mandatory:"false" json:"steeringPolicyId"`
// The OCID of the attached zone.
ZoneId *string `mandatory:"false" json:"zoneId"`
// The attached domain within the attached zone.
DomainName *string `mandatory:"false" json:"domainName"`
// A user-friendly name for the steering policy attachment.
// Does not have to be unique, and it's changeable.
// Avoid entering confidential information.
DisplayName *string `mandatory:"false" json:"displayName"`
// The record types covered by the attachment at the domain. The set of record types is
// determined by aggregating the record types from the answers defined in the steering
// policy.
Rtypes []string `mandatory:"false" json:"rtypes"`
// The OCID of the compartment containing the steering policy attachment.
CompartmentId *string `mandatory:"false" json:"compartmentId"`
// The canonical absolute URL of the resource.
Self *string `mandatory:"false" json:"self"`
// The OCID of the resource.
Id *string `mandatory:"false" json:"id"`
// The date and time the resource was created in "YYYY-MM-ddThh:mmZ" format
// with a Z offset, as defined by RFC 3339.
// **Example:** `2016-07-22T17:23:59:60Z`
TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"`
// The current state of the resource.
LifecycleState SteeringPolicyAttachmentSummaryLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"`
}
func (m SteeringPolicyAttachmentSummary) String() string {
return common.PointerString(m)
}
// SteeringPolicyAttachmentSummaryLifecycleStateEnum Enum with underlying type: string
type SteeringPolicyAttachmentSummaryLifecycleStateEnum string
// Set of constants representing the allowable values for SteeringPolicyAttachmentSummaryLifecycleStateEnum
const (
SteeringPolicyAttachmentSummaryLifecycleStateCreating SteeringPolicyAttachmentSummaryLifecycleStateEnum = "CREATING"
SteeringPolicyAttachmentSummaryLifecycleStateActive SteeringPolicyAttachmentSummaryLifecycleStateEnum = "ACTIVE"
SteeringPolicyAttachmentSummaryLifecycleStateDeleting SteeringPolicyAttachmentSummaryLifecycleStateEnum = "DELETING"
)
var mappingSteeringPolicyAttachmentSummaryLifecycleState = map[string]SteeringPolicyAttachmentSummaryLifecycleStateEnum{
"CREATING": SteeringPolicyAttachmentSummaryLifecycleStateCreating,
"ACTIVE": SteeringPolicyAttachmentSummaryLifecycleStateActive,
"DELETING": SteeringPolicyAttachmentSummaryLifecycleStateDeleting,
}
// GetSteeringPolicyAttachmentSummaryLifecycleStateEnumValues Enumerates the set of values for SteeringPolicyAttachmentSummaryLifecycleStateEnum
func GetSteeringPolicyAttachmentSummaryLifecycleStateEnumValues() []SteeringPolicyAttachmentSummaryLifecycleStateEnum {
values := make([]SteeringPolicyAttachmentSummaryLifecycleStateEnum, 0)
for _, v := range mappingSteeringPolicyAttachmentSummaryLifecycleState {
values = append(values, v)
}
return values
}

View file

@ -0,0 +1,26 @@
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
// DNS API
//
// API for the DNS service. Use this API to manage DNS zones, records, and other DNS resources.
// For more information, see Overview of the DNS Service (https://docs.cloud.oracle.com/iaas/Content/DNS/Concepts/dnszonemanagement.htm).
//
package dns
import (
"github.com/oracle/oci-go-sdk/common"
)
// SteeringPolicyFilterAnswerData The representation of SteeringPolicyFilterAnswerData
type SteeringPolicyFilterAnswerData struct {
AnswerCondition *string `mandatory:"false" json:"answerCondition"`
// Keep the answer if the value is `true`.
ShouldKeep *bool `mandatory:"false" json:"shouldKeep"`
}
func (m SteeringPolicyFilterAnswerData) String() string {
return common.PointerString(m)
}

View file

@ -0,0 +1,53 @@
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
// DNS API
//
// API for the DNS service. Use this API to manage DNS zones, records, and other DNS resources.
// For more information, see Overview of the DNS Service (https://docs.cloud.oracle.com/iaas/Content/DNS/Concepts/dnszonemanagement.htm).
//
package dns
import (
"encoding/json"
"github.com/oracle/oci-go-sdk/common"
)
// SteeringPolicyFilterRule The representation of SteeringPolicyFilterRule
type SteeringPolicyFilterRule struct {
// Your description of the rule's purpose and/or behavior.
Description *string `mandatory:"false" json:"description"`
Cases []SteeringPolicyFilterRuleCase `mandatory:"false" json:"cases"`
// Defines a default set of answer conditions and values that are applied to an answer when
// `cases` is not defined for the rule or a matching case does not have any matching
// `answerCondition`s in its `answerData`. `defaultAnswerData` is **not** applied if `cases` is
// defined and there are no matching cases.
DefaultAnswerData []SteeringPolicyFilterAnswerData `mandatory:"false" json:"defaultAnswerData"`
}
//GetDescription returns Description
func (m SteeringPolicyFilterRule) GetDescription() *string {
return m.Description
}
func (m SteeringPolicyFilterRule) String() string {
return common.PointerString(m)
}
// MarshalJSON marshals to json representation
func (m SteeringPolicyFilterRule) MarshalJSON() (buff []byte, e error) {
type MarshalTypeSteeringPolicyFilterRule SteeringPolicyFilterRule
s := struct {
DiscriminatorParam string `json:"ruleType"`
MarshalTypeSteeringPolicyFilterRule
}{
"FILTER",
(MarshalTypeSteeringPolicyFilterRule)(m),
}
return json.Marshal(&s)
}

View file

@ -0,0 +1,25 @@
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
// DNS API
//
// API for the DNS service. Use this API to manage DNS zones, records, and other DNS resources.
// For more information, see Overview of the DNS Service (https://docs.cloud.oracle.com/iaas/Content/DNS/Concepts/dnszonemanagement.htm).
//
package dns
import (
"github.com/oracle/oci-go-sdk/common"
)
// SteeringPolicyFilterRuleCase The representation of SteeringPolicyFilterRuleCase
type SteeringPolicyFilterRuleCase struct {
CaseCondition *string `mandatory:"false" json:"caseCondition"`
AnswerData []SteeringPolicyFilterAnswerData `mandatory:"false" json:"answerData"`
}
func (m SteeringPolicyFilterRuleCase) String() string {
return common.PointerString(m)
}

View file

@ -0,0 +1,47 @@
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
// DNS API
//
// API for the DNS service. Use this API to manage DNS zones, records, and other DNS resources.
// For more information, see Overview of the DNS Service (https://docs.cloud.oracle.com/iaas/Content/DNS/Concepts/dnszonemanagement.htm).
//
package dns
import (
"encoding/json"
"github.com/oracle/oci-go-sdk/common"
)
// SteeringPolicyHealthRule The representation of SteeringPolicyHealthRule
type SteeringPolicyHealthRule struct {
// Your description of the rule's purpose and/or behavior.
Description *string `mandatory:"false" json:"description"`
Cases []SteeringPolicyHealthRuleCase `mandatory:"false" json:"cases"`
}
//GetDescription returns Description
func (m SteeringPolicyHealthRule) GetDescription() *string {
return m.Description
}
func (m SteeringPolicyHealthRule) String() string {
return common.PointerString(m)
}
// MarshalJSON marshals to json representation
func (m SteeringPolicyHealthRule) MarshalJSON() (buff []byte, e error) {
type MarshalTypeSteeringPolicyHealthRule SteeringPolicyHealthRule
s := struct {
DiscriminatorParam string `json:"ruleType"`
MarshalTypeSteeringPolicyHealthRule
}{
"HEALTH",
(MarshalTypeSteeringPolicyHealthRule)(m),
}
return json.Marshal(&s)
}

View file

@ -0,0 +1,23 @@
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
// DNS API
//
// API for the DNS service. Use this API to manage DNS zones, records, and other DNS resources.
// For more information, see Overview of the DNS Service (https://docs.cloud.oracle.com/iaas/Content/DNS/Concepts/dnszonemanagement.htm).
//
package dns
import (
"github.com/oracle/oci-go-sdk/common"
)
// SteeringPolicyHealthRuleCase The representation of SteeringPolicyHealthRuleCase
type SteeringPolicyHealthRuleCase struct {
CaseCondition *string `mandatory:"false" json:"caseCondition"`
}
func (m SteeringPolicyHealthRuleCase) String() string {
return common.PointerString(m)
}

View file

@ -0,0 +1,52 @@
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
// DNS API
//
// API for the DNS service. Use this API to manage DNS zones, records, and other DNS resources.
// For more information, see Overview of the DNS Service (https://docs.cloud.oracle.com/iaas/Content/DNS/Concepts/dnszonemanagement.htm).
//
package dns
import (
"encoding/json"
"github.com/oracle/oci-go-sdk/common"
)
// SteeringPolicyLimitRule The representation of SteeringPolicyLimitRule
type SteeringPolicyLimitRule struct {
// Your description of the rule's purpose and/or behavior.
Description *string `mandatory:"false" json:"description"`
Cases []SteeringPolicyLimitRuleCase `mandatory:"false" json:"cases"`
// Defines a default count if `cases` is not defined for the rule or a matching case does
// not define `count`. `defaultCount` is **not** applied if `cases` is defined and there
// are no matching cases.
DefaultCount *int `mandatory:"false" json:"defaultCount"`
}
//GetDescription returns Description
func (m SteeringPolicyLimitRule) GetDescription() *string {
return m.Description
}
func (m SteeringPolicyLimitRule) String() string {
return common.PointerString(m)
}
// MarshalJSON marshals to json representation
func (m SteeringPolicyLimitRule) MarshalJSON() (buff []byte, e error) {
type MarshalTypeSteeringPolicyLimitRule SteeringPolicyLimitRule
s := struct {
DiscriminatorParam string `json:"ruleType"`
MarshalTypeSteeringPolicyLimitRule
}{
"LIMIT",
(MarshalTypeSteeringPolicyLimitRule)(m),
}
return json.Marshal(&s)
}

View file

@ -0,0 +1,25 @@
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
// DNS API
//
// API for the DNS service. Use this API to manage DNS zones, records, and other DNS resources.
// For more information, see Overview of the DNS Service (https://docs.cloud.oracle.com/iaas/Content/DNS/Concepts/dnszonemanagement.htm).
//
package dns
import (
"github.com/oracle/oci-go-sdk/common"
)
// SteeringPolicyLimitRuleCase The representation of SteeringPolicyLimitRuleCase
type SteeringPolicyLimitRuleCase struct {
Count *int `mandatory:"true" json:"count"`
CaseCondition *string `mandatory:"false" json:"caseCondition"`
}
func (m SteeringPolicyLimitRuleCase) String() string {
return common.PointerString(m)
}

View file

@ -0,0 +1,25 @@
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
// DNS API
//
// API for the DNS service. Use this API to manage DNS zones, records, and other DNS resources.
// For more information, see Overview of the DNS Service (https://docs.cloud.oracle.com/iaas/Content/DNS/Concepts/dnszonemanagement.htm).
//
package dns
import (
"github.com/oracle/oci-go-sdk/common"
)
// SteeringPolicyPriorityAnswerData The representation of SteeringPolicyPriorityAnswerData
type SteeringPolicyPriorityAnswerData struct {
AnswerCondition *string `mandatory:"false" json:"answerCondition"`
Value *int `mandatory:"false" json:"value"`
}
func (m SteeringPolicyPriorityAnswerData) String() string {
return common.PointerString(m)
}

View file

@ -0,0 +1,53 @@
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
// DNS API
//
// API for the DNS service. Use this API to manage DNS zones, records, and other DNS resources.
// For more information, see Overview of the DNS Service (https://docs.cloud.oracle.com/iaas/Content/DNS/Concepts/dnszonemanagement.htm).
//
package dns
import (
"encoding/json"
"github.com/oracle/oci-go-sdk/common"
)
// SteeringPolicyPriorityRule The representation of SteeringPolicyPriorityRule
type SteeringPolicyPriorityRule struct {
// Your description of the rule's purpose and/or behavior.
Description *string `mandatory:"false" json:"description"`
Cases []SteeringPolicyPriorityRuleCase `mandatory:"false" json:"cases"`
// Defines a default set of answer conditions and values that are applied to an answer when
// `cases` is not defined for the rule or a matching case does not have any matching
// `answerCondition`s in its `answerData`. `defaultAnswerData` is **not** applied if `cases` is
// defined and there are no matching cases.
DefaultAnswerData []SteeringPolicyPriorityAnswerData `mandatory:"false" json:"defaultAnswerData"`
}
//GetDescription returns Description
func (m SteeringPolicyPriorityRule) GetDescription() *string {
return m.Description
}
func (m SteeringPolicyPriorityRule) String() string {
return common.PointerString(m)
}
// MarshalJSON marshals to json representation
func (m SteeringPolicyPriorityRule) MarshalJSON() (buff []byte, e error) {
type MarshalTypeSteeringPolicyPriorityRule SteeringPolicyPriorityRule
s := struct {
DiscriminatorParam string `json:"ruleType"`
MarshalTypeSteeringPolicyPriorityRule
}{
"PRIORITY",
(MarshalTypeSteeringPolicyPriorityRule)(m),
}
return json.Marshal(&s)
}

View file

@ -0,0 +1,25 @@
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
// DNS API
//
// API for the DNS service. Use this API to manage DNS zones, records, and other DNS resources.
// For more information, see Overview of the DNS Service (https://docs.cloud.oracle.com/iaas/Content/DNS/Concepts/dnszonemanagement.htm).
//
package dns
import (
"github.com/oracle/oci-go-sdk/common"
)
// SteeringPolicyPriorityRuleCase The representation of SteeringPolicyPriorityRuleCase
type SteeringPolicyPriorityRuleCase struct {
CaseCondition *string `mandatory:"false" json:"caseCondition"`
AnswerData []SteeringPolicyPriorityAnswerData `mandatory:"false" json:"answerData"`
}
func (m SteeringPolicyPriorityRuleCase) String() string {
return common.PointerString(m)
}

View file

@ -0,0 +1,101 @@
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
// DNS API
//
// API for the DNS service. Use this API to manage DNS zones, records, and other DNS resources.
// For more information, see Overview of the DNS Service (https://docs.cloud.oracle.com/iaas/Content/DNS/Concepts/dnszonemanagement.htm).
//
package dns
import (
"encoding/json"
"github.com/oracle/oci-go-sdk/common"
)
// SteeringPolicyRule Configuration for sorting and/or filtering the list of remaining candidate answers, subject to
// rule type and the values of type-specific parameters and/or data associated with answers.
// A rule may optionally include a sequence of cases, each with an optional `caseCondition`
// expression. If it does, the first case with a matching `caseCondition` or with no
// `caseCondition` at all is used to set rule parameter values and/or answer-associated data,
// and the rule will be ignored during processing of any request that does not match any case.
// Rules without a sequence of cases are processed unconditionally, and rules with an _empty_
// sequence of cases are **ignored** unconditionally.
// Data is associated with answers one-by-one in a similar fashion—for each answer, the first
// answerData item with a matching `answerCondition` or with no `answerCondition` at all is used
// to associate data with the answer, and the absence of any such item associates with the answer
// a default value. Rule-level default answer data is always processed, but case-level answer
// data will override it on a per-answer basis.
// To prevent empty responses, any attempt to filter away all answers is suppressed at runtime.
type SteeringPolicyRule interface {
// Your description of the rule's purpose and/or behavior.
GetDescription() *string
}
type steeringpolicyrule struct {
JsonData []byte
Description *string `mandatory:"false" json:"description"`
RuleType string `json:"ruleType"`
}
// UnmarshalJSON unmarshals json
func (m *steeringpolicyrule) UnmarshalJSON(data []byte) error {
m.JsonData = data
type Unmarshalersteeringpolicyrule steeringpolicyrule
s := struct {
Model Unmarshalersteeringpolicyrule
}{}
err := json.Unmarshal(data, &s.Model)
if err != nil {
return err
}
m.Description = s.Model.Description
m.RuleType = s.Model.RuleType
return err
}
// UnmarshalPolymorphicJSON unmarshals polymorphic json
func (m *steeringpolicyrule) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) {
if data == nil || string(data) == "null" {
return nil, nil
}
var err error
switch m.RuleType {
case "FILTER":
mm := SteeringPolicyFilterRule{}
err = json.Unmarshal(data, &mm)
return mm, err
case "WEIGHTED":
mm := SteeringPolicyWeightedRule{}
err = json.Unmarshal(data, &mm)
return mm, err
case "LIMIT":
mm := SteeringPolicyLimitRule{}
err = json.Unmarshal(data, &mm)
return mm, err
case "HEALTH":
mm := SteeringPolicyHealthRule{}
err = json.Unmarshal(data, &mm)
return mm, err
case "PRIORITY":
mm := SteeringPolicyPriorityRule{}
err = json.Unmarshal(data, &mm)
return mm, err
default:
return *m, nil
}
}
//GetDescription returns Description
func (m steeringpolicyrule) GetDescription() *string {
return m.Description
}
func (m steeringpolicyrule) String() string {
return common.PointerString(m)
}

View file

@ -0,0 +1,163 @@
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
// DNS API
//
// API for the DNS service. Use this API to manage DNS zones, records, and other DNS resources.
// For more information, see Overview of the DNS Service (https://docs.cloud.oracle.com/iaas/Content/DNS/Concepts/dnszonemanagement.htm).
//
package dns
import (
"github.com/oracle/oci-go-sdk/common"
)
// SteeringPolicySummary A DNS steering policy.
// *Warning:* Oracle recommends that you avoid using any confidential information when you supply string values using the API.
type SteeringPolicySummary struct {
// The OCID of the compartment containing the steering policy.
CompartmentId *string `mandatory:"false" json:"compartmentId"`
// A user-friendly name for the steering policy.
// Does not have to be unique, and it's changeable.
// Avoid entering confidential information.
DisplayName *string `mandatory:"false" json:"displayName"`
// The Time To Live for responses from the steering policy, in seconds.
// If not specified during creation, a value of 30 seconds will be used.
Ttl *int `mandatory:"false" json:"ttl"`
// The OCID of the health check monitor providing health data about the answers of the
// steering policy.
// A steering policy answer with `rdata` matching a monitored endpoint will use the health
// data of that endpoint.
// A steering policy answer with `rdata` not matching any monitored endpoint will be assumed
// healthy.
HealthCheckMonitorId *string `mandatory:"false" json:"healthCheckMonitorId"`
// The common pattern (or lack thereof) to which the steering policy adheres. This
// value restricts the possible configurations of rules, but thereby supports
// specifically tailored interfaces. Values other than "CUSTOM" require the rules to
// begin with an unconditional FILTER that keeps answers contingent upon
// `answer.isDisabled != true`, followed
// _if and only if the policy references a health check monitor_ by an unconditional
// HEALTH rule, and require the last rule to be an unconditional LIMIT.
// What must precede the LIMIT rule is determined by the template value:
// - FAILOVER requires exactly an unconditional PRIORITY rule that ranks answers by pool.
// Each answer pool must have a unique priority value assigned to it. Answer data must
// be defined in the `defaultAnswerData` property for the rule and the `cases` property
// must not be defined.
// - LOAD_BALANCE requires exactly an unconditional WEIGHTED rule that shuffles answers
// by name. Answer data must be defined in the `defaultAnswerData` property for the
// rule and the `cases` property must not be defined.
// - ROUTE_BY_GEO requires exactly one PRIORITY rule that ranks answers by pool using the
// geographical location of the client as a condition. Within that rule you may only
// use `query.client.geoKey` in the `caseCondition` expressions for defining the cases.
// For each case in the PRIORITY rule each answer pool must have a unique priority
// value assigned to it. Answer data can only be defined within cases and
// `defaultAnswerData` cannot be used in the PRIORITY rule.
// - ROUTE_BY_ASN requires exactly one PRIORITY rule that ranks answers by pool using the
// ASN of the client as a condition. Within that rule you may only use
// `query.client.asn` in the `caseCondition` expressions for defining the cases.
// For each case in the PRIORITY rule each answer pool must have a unique priority
// value assigned to it. Answer data can only be defined within cases and
// `defaultAnswerData` cannot be used in the PRIORITY rule.
// - ROUTE_BY_IP requires exactly one PRIORITY rule that ranks answers by pool using the
// IP subnet of the client as a condition. Within that rule you may only use
// `query.client.address` in the `caseCondition` expressions for defining the cases.
// For each case in the PRIORITY rule each answer pool must have a unique priority
// value assigned to it. Answer data can only be defined within cases and
// `defaultAnswerData` cannot be used in the PRIORITY rule.
// - CUSTOM allows an arbitrary configuration of rules.
// For an existing steering policy, the template value may be changed to any of the
// supported options but the resulting policy must conform to the requirements for the
// new template type or else a Bad Request error will be returned.
Template SteeringPolicySummaryTemplateEnum `mandatory:"false" json:"template,omitempty"`
// Simple key-value pair that is applied without any predefined name, type, or scope.
// For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
// Example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// Usage of predefined tag keys. These predefined keys are scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
// The canonical absolute URL of the resource.
Self *string `mandatory:"false" json:"self"`
// The OCID of the resource.
Id *string `mandatory:"false" json:"id"`
// The date and time the resource was created in "YYYY-MM-ddThh:mmZ" format
// with a Z offset, as defined by RFC 3339.
// **Example:** `2016-07-22T17:23:59:60Z`
TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"`
// The current state of the resource.
LifecycleState SteeringPolicySummaryLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"`
}
func (m SteeringPolicySummary) String() string {
return common.PointerString(m)
}
// SteeringPolicySummaryTemplateEnum Enum with underlying type: string
type SteeringPolicySummaryTemplateEnum string
// Set of constants representing the allowable values for SteeringPolicySummaryTemplateEnum
const (
SteeringPolicySummaryTemplateFailover SteeringPolicySummaryTemplateEnum = "FAILOVER"
SteeringPolicySummaryTemplateLoadBalance SteeringPolicySummaryTemplateEnum = "LOAD_BALANCE"
SteeringPolicySummaryTemplateRouteByGeo SteeringPolicySummaryTemplateEnum = "ROUTE_BY_GEO"
SteeringPolicySummaryTemplateRouteByAsn SteeringPolicySummaryTemplateEnum = "ROUTE_BY_ASN"
SteeringPolicySummaryTemplateRouteByIp SteeringPolicySummaryTemplateEnum = "ROUTE_BY_IP"
SteeringPolicySummaryTemplateCustom SteeringPolicySummaryTemplateEnum = "CUSTOM"
)
var mappingSteeringPolicySummaryTemplate = map[string]SteeringPolicySummaryTemplateEnum{
"FAILOVER": SteeringPolicySummaryTemplateFailover,
"LOAD_BALANCE": SteeringPolicySummaryTemplateLoadBalance,
"ROUTE_BY_GEO": SteeringPolicySummaryTemplateRouteByGeo,
"ROUTE_BY_ASN": SteeringPolicySummaryTemplateRouteByAsn,
"ROUTE_BY_IP": SteeringPolicySummaryTemplateRouteByIp,
"CUSTOM": SteeringPolicySummaryTemplateCustom,
}
// GetSteeringPolicySummaryTemplateEnumValues Enumerates the set of values for SteeringPolicySummaryTemplateEnum
func GetSteeringPolicySummaryTemplateEnumValues() []SteeringPolicySummaryTemplateEnum {
values := make([]SteeringPolicySummaryTemplateEnum, 0)
for _, v := range mappingSteeringPolicySummaryTemplate {
values = append(values, v)
}
return values
}
// SteeringPolicySummaryLifecycleStateEnum Enum with underlying type: string
type SteeringPolicySummaryLifecycleStateEnum string
// Set of constants representing the allowable values for SteeringPolicySummaryLifecycleStateEnum
const (
SteeringPolicySummaryLifecycleStateActive SteeringPolicySummaryLifecycleStateEnum = "ACTIVE"
SteeringPolicySummaryLifecycleStateCreating SteeringPolicySummaryLifecycleStateEnum = "CREATING"
SteeringPolicySummaryLifecycleStateDeleted SteeringPolicySummaryLifecycleStateEnum = "DELETED"
SteeringPolicySummaryLifecycleStateDeleting SteeringPolicySummaryLifecycleStateEnum = "DELETING"
)
var mappingSteeringPolicySummaryLifecycleState = map[string]SteeringPolicySummaryLifecycleStateEnum{
"ACTIVE": SteeringPolicySummaryLifecycleStateActive,
"CREATING": SteeringPolicySummaryLifecycleStateCreating,
"DELETED": SteeringPolicySummaryLifecycleStateDeleted,
"DELETING": SteeringPolicySummaryLifecycleStateDeleting,
}
// GetSteeringPolicySummaryLifecycleStateEnumValues Enumerates the set of values for SteeringPolicySummaryLifecycleStateEnum
func GetSteeringPolicySummaryLifecycleStateEnumValues() []SteeringPolicySummaryLifecycleStateEnum {
values := make([]SteeringPolicySummaryLifecycleStateEnum, 0)
for _, v := range mappingSteeringPolicySummaryLifecycleState {
values = append(values, v)
}
return values
}

View file

@ -0,0 +1,25 @@
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
// DNS API
//
// API for the DNS service. Use this API to manage DNS zones, records, and other DNS resources.
// For more information, see Overview of the DNS Service (https://docs.cloud.oracle.com/iaas/Content/DNS/Concepts/dnszonemanagement.htm).
//
package dns
import (
"github.com/oracle/oci-go-sdk/common"
)
// SteeringPolicyWeightedAnswerData The representation of SteeringPolicyWeightedAnswerData
type SteeringPolicyWeightedAnswerData struct {
AnswerCondition *string `mandatory:"false" json:"answerCondition"`
Value *int `mandatory:"false" json:"value"`
}
func (m SteeringPolicyWeightedAnswerData) String() string {
return common.PointerString(m)
}

View file

@ -0,0 +1,53 @@
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
// DNS API
//
// API for the DNS service. Use this API to manage DNS zones, records, and other DNS resources.
// For more information, see Overview of the DNS Service (https://docs.cloud.oracle.com/iaas/Content/DNS/Concepts/dnszonemanagement.htm).
//
package dns
import (
"encoding/json"
"github.com/oracle/oci-go-sdk/common"
)
// SteeringPolicyWeightedRule The representation of SteeringPolicyWeightedRule
type SteeringPolicyWeightedRule struct {
// Your description of the rule's purpose and/or behavior.
Description *string `mandatory:"false" json:"description"`
Cases []SteeringPolicyWeightedRuleCase `mandatory:"false" json:"cases"`
// Defines a default set of answer conditions and values that are applied to an answer when
// `cases` is not defined for the rule or a matching case does not have any matching
// `answerCondition`s in its `answerData`. `defaultAnswerData` is **not** applied if `cases` is
// defined and there are no matching cases.
DefaultAnswerData []SteeringPolicyWeightedAnswerData `mandatory:"false" json:"defaultAnswerData"`
}
//GetDescription returns Description
func (m SteeringPolicyWeightedRule) GetDescription() *string {
return m.Description
}
func (m SteeringPolicyWeightedRule) String() string {
return common.PointerString(m)
}
// MarshalJSON marshals to json representation
func (m SteeringPolicyWeightedRule) MarshalJSON() (buff []byte, e error) {
type MarshalTypeSteeringPolicyWeightedRule SteeringPolicyWeightedRule
s := struct {
DiscriminatorParam string `json:"ruleType"`
MarshalTypeSteeringPolicyWeightedRule
}{
"WEIGHTED",
(MarshalTypeSteeringPolicyWeightedRule)(m),
}
return json.Marshal(&s)
}

View file

@ -0,0 +1,25 @@
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
// DNS API
//
// API for the DNS service. Use this API to manage DNS zones, records, and other DNS resources.
// For more information, see Overview of the DNS Service (https://docs.cloud.oracle.com/iaas/Content/DNS/Concepts/dnszonemanagement.htm).
//
package dns
import (
"github.com/oracle/oci-go-sdk/common"
)
// SteeringPolicyWeightedRuleCase The representation of SteeringPolicyWeightedRuleCase
type SteeringPolicyWeightedRuleCase struct {
CaseCondition *string `mandatory:"false" json:"caseCondition"`
AnswerData []SteeringPolicyWeightedAnswerData `mandatory:"false" json:"answerData"`
}
func (m SteeringPolicyWeightedRuleCase) String() string {
return common.PointerString(m)
}

34
vendor/github.com/oracle/oci-go-sdk/dns/tsig.go generated vendored Normal file
View file

@ -0,0 +1,34 @@
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
// DNS API
//
// API for the DNS service. Use this API to manage DNS zones, records, and other DNS resources.
// For more information, see Overview of the DNS Service (https://docs.cloud.oracle.com/iaas/Content/DNS/Concepts/dnszonemanagement.htm).
//
package dns
import (
"github.com/oracle/oci-go-sdk/common"
)
// Tsig A TSIG (https://tools.ietf.org/html/rfc2845) key.
type Tsig struct {
// A domain name identifying the key for a given pair of hosts.
Name *string `mandatory:"true" json:"name"`
// A base64 string encoding the binary shared secret.
Secret *string `mandatory:"true" json:"secret"`
// TSIG Algorithms are encoded as domain names, but most consist of only one
// non-empty label, which is not required to be explicitly absolute.
// Applicable algorithms include: hmac-sha1, hmac-sha224, hmac-sha256,
// hmac-sha512. For more information on these algorithms, see RFC 4635 (https://tools.ietf.org/html/rfc4635#section-2).
Algorithm *string `mandatory:"true" json:"algorithm"`
}
func (m Tsig) String() string {
return common.PointerString(m)
}

View file

@ -0,0 +1,23 @@
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
// DNS API
//
// API for the DNS service. Use this API to manage DNS zones, records, and other DNS resources.
// For more information, see Overview of the DNS Service (https://docs.cloud.oracle.com/iaas/Content/DNS/Concepts/dnszonemanagement.htm).
//
package dns
import (
"github.com/oracle/oci-go-sdk/common"
)
// UpdateDomainRecordsDetails The representation of UpdateDomainRecordsDetails
type UpdateDomainRecordsDetails struct {
Items []RecordDetails `mandatory:"false" json:"items"`
}
func (m UpdateDomainRecordsDetails) String() string {
return common.PointerString(m)
}

View file

@ -0,0 +1,98 @@
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
package dns
import (
"github.com/oracle/oci-go-sdk/common"
"net/http"
)
// UpdateDomainRecordsRequest wrapper for the UpdateDomainRecords operation
type UpdateDomainRecordsRequest struct {
// The name or OCID of the target zone.
ZoneNameOrId *string `mandatory:"true" contributesTo:"path" name:"zoneNameOrId"`
// The target fully-qualified domain name (FQDN) within the target zone.
Domain *string `mandatory:"true" contributesTo:"path" name:"domain"`
// A full list of records for the domain.
UpdateDomainRecordsDetails `contributesTo:"body"`
// The `If-Match` header field makes the request method conditional on the
// existence of at least one current representation of the target resource,
// when the field-value is `*`, or having a current representation of the
// target resource that has an entity-tag matching a member of the list of
// entity-tags provided in the field-value.
IfMatch *string `mandatory:"false" contributesTo:"header" name:"If-Match"`
// The `If-Unmodified-Since` header field makes the request method
// conditional on the selected representation's last modification date being
// earlier than or equal to the date provided in the field-value. This
// field accomplishes the same purpose as If-Match for cases where the user
// agent does not have an entity-tag for the representation.
IfUnmodifiedSince *string `mandatory:"false" contributesTo:"header" name:"If-Unmodified-Since"`
// The OCID of the compartment the resource belongs to.
CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"`
// 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 UpdateDomainRecordsRequest) String() string {
return common.PointerString(request)
}
// HTTPRequest implements the OCIRequest interface
func (request UpdateDomainRecordsRequest) HTTPRequest(method, path string) (http.Request, error) {
return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request)
}
// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request UpdateDomainRecordsRequest) RetryPolicy() *common.RetryPolicy {
return request.RequestMetadata.RetryPolicy
}
// UpdateDomainRecordsResponse wrapper for the UpdateDomainRecords operation
type UpdateDomainRecordsResponse struct {
// The underlying http response
RawResponse *http.Response
// The RecordCollection instance
RecordCollection `presentIn:"body"`
// For list pagination. When this header appears in the response, additional pages
// of results 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"`
// The total number of items that match the query.
OpcTotalItems *int `presentIn:"header" name:"opc-total-items"`
// 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 current version of the record collection, ending with a
// representation-specific suffix. This value may be used in If-Match
// and If-None-Match headers for later requests of the same resource.
ETag *string `presentIn:"header" name:"etag"`
}
func (response UpdateDomainRecordsResponse) String() string {
return common.PointerString(response)
}
// HTTPResponse implements the OCIResponse interface
func (response UpdateDomainRecordsResponse) HTTPResponse() *http.Response {
return response.RawResponse
}

View file

@ -0,0 +1,101 @@
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
package dns
import (
"github.com/oracle/oci-go-sdk/common"
"net/http"
)
// UpdateRRSetRequest wrapper for the UpdateRRSet operation
type UpdateRRSetRequest struct {
// The name or OCID of the target zone.
ZoneNameOrId *string `mandatory:"true" contributesTo:"path" name:"zoneNameOrId"`
// The target fully-qualified domain name (FQDN) within the target zone.
Domain *string `mandatory:"true" contributesTo:"path" name:"domain"`
// The type of the target RRSet within the target zone.
Rtype *string `mandatory:"true" contributesTo:"path" name:"rtype"`
// A full list of records for the RRSet.
UpdateRrSetDetails `contributesTo:"body"`
// The `If-Match` header field makes the request method conditional on the
// existence of at least one current representation of the target resource,
// when the field-value is `*`, or having a current representation of the
// target resource that has an entity-tag matching a member of the list of
// entity-tags provided in the field-value.
IfMatch *string `mandatory:"false" contributesTo:"header" name:"If-Match"`
// The `If-Unmodified-Since` header field makes the request method
// conditional on the selected representation's last modification date being
// earlier than or equal to the date provided in the field-value. This
// field accomplishes the same purpose as If-Match for cases where the user
// agent does not have an entity-tag for the representation.
IfUnmodifiedSince *string `mandatory:"false" contributesTo:"header" name:"If-Unmodified-Since"`
// The OCID of the compartment the resource belongs to.
CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"`
// 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 UpdateRRSetRequest) String() string {
return common.PointerString(request)
}
// HTTPRequest implements the OCIRequest interface
func (request UpdateRRSetRequest) HTTPRequest(method, path string) (http.Request, error) {
return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request)
}
// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request UpdateRRSetRequest) RetryPolicy() *common.RetryPolicy {
return request.RequestMetadata.RetryPolicy
}
// UpdateRRSetResponse wrapper for the UpdateRRSet operation
type UpdateRRSetResponse struct {
// The underlying http response
RawResponse *http.Response
// The RecordCollection instance
RecordCollection `presentIn:"body"`
// For list pagination. When this header appears in the response, additional pages
// of results 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"`
// The total number of items that match the query.
OpcTotalItems *int `presentIn:"header" name:"opc-total-items"`
// 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 current version of the record collection, ending with a
// representation-specific suffix. This value may be used in If-Match
// and If-None-Match headers for later requests of the same resource.
ETag *string `presentIn:"header" name:"etag"`
}
func (response UpdateRRSetResponse) String() string {
return common.PointerString(response)
}
// HTTPResponse implements the OCIResponse interface
func (response UpdateRRSetResponse) HTTPResponse() *http.Response {
return response.RawResponse
}

View file

@ -0,0 +1,23 @@
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
// DNS API
//
// API for the DNS service. Use this API to manage DNS zones, records, and other DNS resources.
// For more information, see Overview of the DNS Service (https://docs.cloud.oracle.com/iaas/Content/DNS/Concepts/dnszonemanagement.htm).
//
package dns
import (
"github.com/oracle/oci-go-sdk/common"
)
// UpdateRrSetDetails The representation of UpdateRrSetDetails
type UpdateRrSetDetails struct {
Items []RecordDetails `mandatory:"false" json:"items"`
}
func (m UpdateRrSetDetails) String() string {
return common.PointerString(m)
}

View file

@ -0,0 +1,27 @@
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
// DNS API
//
// API for the DNS service. Use this API to manage DNS zones, records, and other DNS resources.
// For more information, see Overview of the DNS Service (https://docs.cloud.oracle.com/iaas/Content/DNS/Concepts/dnszonemanagement.htm).
//
package dns
import (
"github.com/oracle/oci-go-sdk/common"
)
// UpdateSteeringPolicyAttachmentDetails The body for updating a steering policy attachment.
type UpdateSteeringPolicyAttachmentDetails struct {
// A user-friendly name for the steering policy attachment.
// Does not have to be unique, and it's changeable.
// Avoid entering confidential information.
DisplayName *string `mandatory:"false" json:"displayName"`
}
func (m UpdateSteeringPolicyAttachmentDetails) String() string {
return common.PointerString(m)
}

View file

@ -0,0 +1,84 @@
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
package dns
import (
"github.com/oracle/oci-go-sdk/common"
"net/http"
)
// UpdateSteeringPolicyAttachmentRequest wrapper for the UpdateSteeringPolicyAttachment operation
type UpdateSteeringPolicyAttachmentRequest struct {
// The OCID of the target steering policy attachment.
SteeringPolicyAttachmentId *string `mandatory:"true" contributesTo:"path" name:"steeringPolicyAttachmentId"`
// New data for the steering policy attachment.
UpdateSteeringPolicyAttachmentDetails `contributesTo:"body"`
// The `If-Match` header field makes the request method conditional on the
// existence of at least one current representation of the target resource,
// when the field-value is `*`, or having a current representation of the
// target resource that has an entity-tag matching a member of the list of
// entity-tags provided in the field-value.
IfMatch *string `mandatory:"false" contributesTo:"header" name:"If-Match"`
// The `If-Unmodified-Since` header field makes the request method
// conditional on the selected representation's last modification date being
// earlier than or equal to the date provided in the field-value. This
// field accomplishes the same purpose as If-Match for cases where the user
// agent does not have an entity-tag for the representation.
IfUnmodifiedSince *string `mandatory:"false" contributesTo:"header" name:"If-Unmodified-Since"`
// 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 UpdateSteeringPolicyAttachmentRequest) String() string {
return common.PointerString(request)
}
// HTTPRequest implements the OCIRequest interface
func (request UpdateSteeringPolicyAttachmentRequest) HTTPRequest(method, path string) (http.Request, error) {
return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request)
}
// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request UpdateSteeringPolicyAttachmentRequest) RetryPolicy() *common.RetryPolicy {
return request.RequestMetadata.RetryPolicy
}
// UpdateSteeringPolicyAttachmentResponse wrapper for the UpdateSteeringPolicyAttachment operation
type UpdateSteeringPolicyAttachmentResponse struct {
// The underlying http response
RawResponse *http.Response
// The SteeringPolicyAttachment instance
SteeringPolicyAttachment `presentIn:"body"`
// 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 current version of the resource, ending with a
// representation-specific suffix. This value may be used in If-Match
// and If-None-Match headers for later requests of the same resource.
ETag *string `presentIn:"header" name:"etag"`
}
func (response UpdateSteeringPolicyAttachmentResponse) String() string {
return common.PointerString(response)
}
// HTTPResponse implements the OCIResponse interface
func (response UpdateSteeringPolicyAttachmentResponse) HTTPResponse() *http.Response {
return response.RawResponse
}

View file

@ -0,0 +1,173 @@
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
// DNS API
//
// API for the DNS service. Use this API to manage DNS zones, records, and other DNS resources.
// For more information, see Overview of the DNS Service (https://docs.cloud.oracle.com/iaas/Content/DNS/Concepts/dnszonemanagement.htm).
//
package dns
import (
"encoding/json"
"github.com/oracle/oci-go-sdk/common"
)
// UpdateSteeringPolicyDetails The body for updating a steering policy. New rules and answers provided in the request will
// replace the existing rules and answers in the policy.
// *Warning:* Oracle recommends that you avoid using any confidential information when you supply string values using the API.
type UpdateSteeringPolicyDetails struct {
// A user-friendly name for the steering policy.
// Does not have to be unique, and it's changeable.
// Avoid entering confidential information.
DisplayName *string `mandatory:"false" json:"displayName"`
// The Time To Live for responses from the steering policy, in seconds.
// If not specified during creation, a value of 30 seconds will be used.
Ttl *int `mandatory:"false" json:"ttl"`
// The OCID of the health check monitor providing health data about the answers of the
// steering policy.
// A steering policy answer with `rdata` matching a monitored endpoint will use the health
// data of that endpoint.
// A steering policy answer with `rdata` not matching any monitored endpoint will be assumed
// healthy.
HealthCheckMonitorId *string `mandatory:"false" json:"healthCheckMonitorId"`
// The common pattern (or lack thereof) to which the steering policy adheres. This
// value restricts the possible configurations of rules, but thereby supports
// specifically tailored interfaces. Values other than "CUSTOM" require the rules to
// begin with an unconditional FILTER that keeps answers contingent upon
// `answer.isDisabled != true`, followed
// _if and only if the policy references a health check monitor_ by an unconditional
// HEALTH rule, and require the last rule to be an unconditional LIMIT.
// What must precede the LIMIT rule is determined by the template value:
// - FAILOVER requires exactly an unconditional PRIORITY rule that ranks answers by pool.
// Each answer pool must have a unique priority value assigned to it. Answer data must
// be defined in the `defaultAnswerData` property for the rule and the `cases` property
// must not be defined.
// - LOAD_BALANCE requires exactly an unconditional WEIGHTED rule that shuffles answers
// by name. Answer data must be defined in the `defaultAnswerData` property for the
// rule and the `cases` property must not be defined.
// - ROUTE_BY_GEO requires exactly one PRIORITY rule that ranks answers by pool using the
// geographical location of the client as a condition. Within that rule you may only
// use `query.client.geoKey` in the `caseCondition` expressions for defining the cases.
// For each case in the PRIORITY rule each answer pool must have a unique priority
// value assigned to it. Answer data can only be defined within cases and
// `defaultAnswerData` cannot be used in the PRIORITY rule.
// - ROUTE_BY_ASN requires exactly one PRIORITY rule that ranks answers by pool using the
// ASN of the client as a condition. Within that rule you may only use
// `query.client.asn` in the `caseCondition` expressions for defining the cases.
// For each case in the PRIORITY rule each answer pool must have a unique priority
// value assigned to it. Answer data can only be defined within cases and
// `defaultAnswerData` cannot be used in the PRIORITY rule.
// - ROUTE_BY_IP requires exactly one PRIORITY rule that ranks answers by pool using the
// IP subnet of the client as a condition. Within that rule you may only use
// `query.client.address` in the `caseCondition` expressions for defining the cases.
// For each case in the PRIORITY rule each answer pool must have a unique priority
// value assigned to it. Answer data can only be defined within cases and
// `defaultAnswerData` cannot be used in the PRIORITY rule.
// - CUSTOM allows an arbitrary configuration of rules.
// For an existing steering policy, the template value may be changed to any of the
// supported options but the resulting policy must conform to the requirements for the
// new template type or else a Bad Request error will be returned.
Template UpdateSteeringPolicyDetailsTemplateEnum `mandatory:"false" json:"template,omitempty"`
// Simple key-value pair that is applied without any predefined name, type, or scope.
// For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
// Example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// Usage of predefined tag keys. These predefined keys are scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
// The set of all answers that can potentially issue from the steering policy.
Answers []SteeringPolicyAnswer `mandatory:"false" json:"answers"`
// The pipeline of rules that will be processed in sequence to reduce the pool of answers
// to a response for any given request.
// The first rule receives a shuffled list of all answers, and every other rule receives
// the list of answers emitted by the one preceding it. The last rule populates the
// response.
Rules []SteeringPolicyRule `mandatory:"false" json:"rules"`
}
func (m UpdateSteeringPolicyDetails) String() string {
return common.PointerString(m)
}
// UnmarshalJSON unmarshals from json
func (m *UpdateSteeringPolicyDetails) UnmarshalJSON(data []byte) (e error) {
model := struct {
DisplayName *string `json:"displayName"`
Ttl *int `json:"ttl"`
HealthCheckMonitorId *string `json:"healthCheckMonitorId"`
Template UpdateSteeringPolicyDetailsTemplateEnum `json:"template"`
FreeformTags map[string]string `json:"freeformTags"`
DefinedTags map[string]map[string]interface{} `json:"definedTags"`
Answers []SteeringPolicyAnswer `json:"answers"`
Rules []steeringpolicyrule `json:"rules"`
}{}
e = json.Unmarshal(data, &model)
if e != nil {
return
}
m.DisplayName = model.DisplayName
m.Ttl = model.Ttl
m.HealthCheckMonitorId = model.HealthCheckMonitorId
m.Template = model.Template
m.FreeformTags = model.FreeformTags
m.DefinedTags = model.DefinedTags
m.Answers = make([]SteeringPolicyAnswer, len(model.Answers))
for i, n := range model.Answers {
m.Answers[i] = n
}
m.Rules = make([]SteeringPolicyRule, len(model.Rules))
for i, n := range model.Rules {
nn, err := n.UnmarshalPolymorphicJSON(n.JsonData)
if err != nil {
return err
}
if nn != nil {
m.Rules[i] = nn.(SteeringPolicyRule)
} else {
m.Rules[i] = nil
}
}
return
}
// UpdateSteeringPolicyDetailsTemplateEnum Enum with underlying type: string
type UpdateSteeringPolicyDetailsTemplateEnum string
// Set of constants representing the allowable values for UpdateSteeringPolicyDetailsTemplateEnum
const (
UpdateSteeringPolicyDetailsTemplateFailover UpdateSteeringPolicyDetailsTemplateEnum = "FAILOVER"
UpdateSteeringPolicyDetailsTemplateLoadBalance UpdateSteeringPolicyDetailsTemplateEnum = "LOAD_BALANCE"
UpdateSteeringPolicyDetailsTemplateRouteByGeo UpdateSteeringPolicyDetailsTemplateEnum = "ROUTE_BY_GEO"
UpdateSteeringPolicyDetailsTemplateRouteByAsn UpdateSteeringPolicyDetailsTemplateEnum = "ROUTE_BY_ASN"
UpdateSteeringPolicyDetailsTemplateRouteByIp UpdateSteeringPolicyDetailsTemplateEnum = "ROUTE_BY_IP"
UpdateSteeringPolicyDetailsTemplateCustom UpdateSteeringPolicyDetailsTemplateEnum = "CUSTOM"
)
var mappingUpdateSteeringPolicyDetailsTemplate = map[string]UpdateSteeringPolicyDetailsTemplateEnum{
"FAILOVER": UpdateSteeringPolicyDetailsTemplateFailover,
"LOAD_BALANCE": UpdateSteeringPolicyDetailsTemplateLoadBalance,
"ROUTE_BY_GEO": UpdateSteeringPolicyDetailsTemplateRouteByGeo,
"ROUTE_BY_ASN": UpdateSteeringPolicyDetailsTemplateRouteByAsn,
"ROUTE_BY_IP": UpdateSteeringPolicyDetailsTemplateRouteByIp,
"CUSTOM": UpdateSteeringPolicyDetailsTemplateCustom,
}
// GetUpdateSteeringPolicyDetailsTemplateEnumValues Enumerates the set of values for UpdateSteeringPolicyDetailsTemplateEnum
func GetUpdateSteeringPolicyDetailsTemplateEnumValues() []UpdateSteeringPolicyDetailsTemplateEnum {
values := make([]UpdateSteeringPolicyDetailsTemplateEnum, 0)
for _, v := range mappingUpdateSteeringPolicyDetailsTemplate {
values = append(values, v)
}
return values
}

View file

@ -0,0 +1,84 @@
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
package dns
import (
"github.com/oracle/oci-go-sdk/common"
"net/http"
)
// UpdateSteeringPolicyRequest wrapper for the UpdateSteeringPolicy operation
type UpdateSteeringPolicyRequest struct {
// The OCID of the target steering policy.
SteeringPolicyId *string `mandatory:"true" contributesTo:"path" name:"steeringPolicyId"`
// New data for the steering policy.
UpdateSteeringPolicyDetails `contributesTo:"body"`
// The `If-Match` header field makes the request method conditional on the
// existence of at least one current representation of the target resource,
// when the field-value is `*`, or having a current representation of the
// target resource that has an entity-tag matching a member of the list of
// entity-tags provided in the field-value.
IfMatch *string `mandatory:"false" contributesTo:"header" name:"If-Match"`
// The `If-Unmodified-Since` header field makes the request method
// conditional on the selected representation's last modification date being
// earlier than or equal to the date provided in the field-value. This
// field accomplishes the same purpose as If-Match for cases where the user
// agent does not have an entity-tag for the representation.
IfUnmodifiedSince *string `mandatory:"false" contributesTo:"header" name:"If-Unmodified-Since"`
// 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 UpdateSteeringPolicyRequest) String() string {
return common.PointerString(request)
}
// HTTPRequest implements the OCIRequest interface
func (request UpdateSteeringPolicyRequest) HTTPRequest(method, path string) (http.Request, error) {
return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request)
}
// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request UpdateSteeringPolicyRequest) RetryPolicy() *common.RetryPolicy {
return request.RequestMetadata.RetryPolicy
}
// UpdateSteeringPolicyResponse wrapper for the UpdateSteeringPolicy operation
type UpdateSteeringPolicyResponse struct {
// The underlying http response
RawResponse *http.Response
// The SteeringPolicy instance
SteeringPolicy `presentIn:"body"`
// 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 current version of the resource, ending with a
// representation-specific suffix. This value may be used in If-Match
// and If-None-Match headers for later requests of the same resource.
ETag *string `presentIn:"header" name:"etag"`
}
func (response UpdateSteeringPolicyResponse) String() string {
return common.PointerString(response)
}
// HTTPResponse implements the OCIResponse interface
func (response UpdateSteeringPolicyResponse) HTTPResponse() *http.Response {
return response.RawResponse
}

View file

@ -0,0 +1,36 @@
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
// DNS API
//
// API for the DNS service. Use this API to manage DNS zones, records, and other DNS resources.
// For more information, see Overview of the DNS Service (https://docs.cloud.oracle.com/iaas/Content/DNS/Concepts/dnszonemanagement.htm).
//
package dns
import (
"github.com/oracle/oci-go-sdk/common"
)
// UpdateZoneDetails The body for updating a zone.
// *Warning:* Oracle recommends that you avoid using any confidential information when you supply string values using the API.
type UpdateZoneDetails struct {
// Simple key-value pair that is applied without any predefined name, type, or scope.
// For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
// Example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// Usage of predefined tag keys. These predefined keys are scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
// External master servers for the zone. `externalMasters` becomes a
// required parameter when the `zoneType` value is `SECONDARY`.
ExternalMasters []ExternalMaster `mandatory:"false" json:"externalMasters"`
}
func (m UpdateZoneDetails) String() string {
return common.PointerString(m)
}

View file

@ -0,0 +1,23 @@
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
// DNS API
//
// API for the DNS service. Use this API to manage DNS zones, records, and other DNS resources.
// For more information, see Overview of the DNS Service (https://docs.cloud.oracle.com/iaas/Content/DNS/Concepts/dnszonemanagement.htm).
//
package dns
import (
"github.com/oracle/oci-go-sdk/common"
)
// UpdateZoneRecordsDetails The representation of UpdateZoneRecordsDetails
type UpdateZoneRecordsDetails struct {
Items []RecordDetails `mandatory:"false" json:"items"`
}
func (m UpdateZoneRecordsDetails) String() string {
return common.PointerString(m)
}

View file

@ -0,0 +1,95 @@
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
package dns
import (
"github.com/oracle/oci-go-sdk/common"
"net/http"
)
// UpdateZoneRecordsRequest wrapper for the UpdateZoneRecords operation
type UpdateZoneRecordsRequest struct {
// The name or OCID of the target zone.
ZoneNameOrId *string `mandatory:"true" contributesTo:"path" name:"zoneNameOrId"`
// A full list of records for the zone.
UpdateZoneRecordsDetails `contributesTo:"body"`
// The `If-Match` header field makes the request method conditional on the
// existence of at least one current representation of the target resource,
// when the field-value is `*`, or having a current representation of the
// target resource that has an entity-tag matching a member of the list of
// entity-tags provided in the field-value.
IfMatch *string `mandatory:"false" contributesTo:"header" name:"If-Match"`
// The `If-Unmodified-Since` header field makes the request method
// conditional on the selected representation's last modification date being
// earlier than or equal to the date provided in the field-value. This
// field accomplishes the same purpose as If-Match for cases where the user
// agent does not have an entity-tag for the representation.
IfUnmodifiedSince *string `mandatory:"false" contributesTo:"header" name:"If-Unmodified-Since"`
// The OCID of the compartment the resource belongs to.
CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"`
// 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 UpdateZoneRecordsRequest) String() string {
return common.PointerString(request)
}
// HTTPRequest implements the OCIRequest interface
func (request UpdateZoneRecordsRequest) HTTPRequest(method, path string) (http.Request, error) {
return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request)
}
// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request UpdateZoneRecordsRequest) RetryPolicy() *common.RetryPolicy {
return request.RequestMetadata.RetryPolicy
}
// UpdateZoneRecordsResponse wrapper for the UpdateZoneRecords operation
type UpdateZoneRecordsResponse struct {
// The underlying http response
RawResponse *http.Response
// The RecordCollection instance
RecordCollection `presentIn:"body"`
// For list pagination. When this header appears in the response, additional pages
// of results 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"`
// The total number of items that match the query.
OpcTotalItems *int `presentIn:"header" name:"opc-total-items"`
// 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 current version of the record collection, ending with a
// representation-specific suffix. This value may be used in If-Match
// and If-None-Match headers for later requests of the same resource.
ETag *string `presentIn:"header" name:"etag"`
}
func (response UpdateZoneRecordsResponse) String() string {
return common.PointerString(response)
}
// HTTPResponse implements the OCIResponse interface
func (response UpdateZoneRecordsResponse) HTTPResponse() *http.Response {
return response.RawResponse
}

View file

@ -0,0 +1,86 @@
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
package dns
import (
"github.com/oracle/oci-go-sdk/common"
"net/http"
)
// UpdateZoneRequest wrapper for the UpdateZone operation
type UpdateZoneRequest struct {
// The name or OCID of the target zone.
ZoneNameOrId *string `mandatory:"true" contributesTo:"path" name:"zoneNameOrId"`
// New data for the zone.
UpdateZoneDetails `contributesTo:"body"`
// The `If-Match` header field makes the request method conditional on the
// existence of at least one current representation of the target resource,
// when the field-value is `*`, or having a current representation of the
// target resource that has an entity-tag matching a member of the list of
// entity-tags provided in the field-value.
IfMatch *string `mandatory:"false" contributesTo:"header" name:"If-Match"`
// The `If-Unmodified-Since` header field makes the request method
// conditional on the selected representation's last modification date being
// earlier than or equal to the date provided in the field-value. This
// field accomplishes the same purpose as If-Match for cases where the user
// agent does not have an entity-tag for the representation.
IfUnmodifiedSince *string `mandatory:"false" contributesTo:"header" name:"If-Unmodified-Since"`
// The OCID of the compartment the resource belongs to.
CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"`
// 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 UpdateZoneRequest) String() string {
return common.PointerString(request)
}
// HTTPRequest implements the OCIRequest interface
func (request UpdateZoneRequest) HTTPRequest(method, path string) (http.Request, error) {
return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request)
}
// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request UpdateZoneRequest) RetryPolicy() *common.RetryPolicy {
return request.RequestMetadata.RetryPolicy
}
// UpdateZoneResponse wrapper for the UpdateZone operation
type UpdateZoneResponse struct {
// The underlying http response
RawResponse *http.Response
// The Zone instance
Zone `presentIn:"body"`
// 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 current version of the zone, ending with a
// representation-specific suffix. This value may be used in If-Match
// and If-None-Match headers for later requests of the same resource.
ETag *string `presentIn:"header" name:"etag"`
}
func (response UpdateZoneResponse) String() string {
return common.PointerString(response)
}
// HTTPResponse implements the OCIResponse interface
func (response UpdateZoneResponse) HTTPResponse() *http.Response {
return response.RawResponse
}

122
vendor/github.com/oracle/oci-go-sdk/dns/zone.go generated vendored Normal file
View file

@ -0,0 +1,122 @@
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
// DNS API
//
// API for the DNS service. Use this API to manage DNS zones, records, and other DNS resources.
// For more information, see Overview of the DNS Service (https://docs.cloud.oracle.com/iaas/Content/DNS/Concepts/dnszonemanagement.htm).
//
package dns
import (
"github.com/oracle/oci-go-sdk/common"
)
// Zone A DNS zone.
// *Warning:* Oracle recommends that you avoid using any confidential information when you supply string values using the API.
type Zone struct {
// The name of the zone.
Name *string `mandatory:"false" json:"name"`
// The type of the zone. Must be either `PRIMARY` or `SECONDARY`.
ZoneType ZoneZoneTypeEnum `mandatory:"false" json:"zoneType,omitempty"`
// The OCID of the compartment containing the zone.
CompartmentId *string `mandatory:"false" json:"compartmentId"`
// Simple key-value pair that is applied without any predefined name, type, or scope.
// For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
// Example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// Usage of predefined tag keys. These predefined keys are scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
// External master servers for the zone. `externalMasters` becomes a
// required parameter when the `zoneType` value is `SECONDARY`.
ExternalMasters []ExternalMaster `mandatory:"false" json:"externalMasters"`
// The canonical absolute URL of the resource.
Self *string `mandatory:"false" json:"self"`
// The OCID of the zone.
Id *string `mandatory:"false" json:"id"`
// The date and time the resource was created in "YYYY-MM-ddThh:mmZ" format
// with a Z offset, as defined by RFC 3339.
// **Example:** `2016-07-22T17:23:59:60Z`
TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"`
// Version is the never-repeating, totally-orderable, version of the
// zone, from which the serial field of the zone's SOA record is
// derived.
Version *string `mandatory:"false" json:"version"`
// The current serial of the zone. As seen in the zone's SOA record.
Serial *int64 `mandatory:"false" json:"serial"`
// The current state of the zone resource.
LifecycleState ZoneLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"`
// The authoritative nameservers for the zone.
Nameservers []Nameserver `mandatory:"false" json:"nameservers"`
}
func (m Zone) String() string {
return common.PointerString(m)
}
// ZoneZoneTypeEnum Enum with underlying type: string
type ZoneZoneTypeEnum string
// Set of constants representing the allowable values for ZoneZoneTypeEnum
const (
ZoneZoneTypePrimary ZoneZoneTypeEnum = "PRIMARY"
ZoneZoneTypeSecondary ZoneZoneTypeEnum = "SECONDARY"
)
var mappingZoneZoneType = map[string]ZoneZoneTypeEnum{
"PRIMARY": ZoneZoneTypePrimary,
"SECONDARY": ZoneZoneTypeSecondary,
}
// GetZoneZoneTypeEnumValues Enumerates the set of values for ZoneZoneTypeEnum
func GetZoneZoneTypeEnumValues() []ZoneZoneTypeEnum {
values := make([]ZoneZoneTypeEnum, 0)
for _, v := range mappingZoneZoneType {
values = append(values, v)
}
return values
}
// ZoneLifecycleStateEnum Enum with underlying type: string
type ZoneLifecycleStateEnum string
// Set of constants representing the allowable values for ZoneLifecycleStateEnum
const (
ZoneLifecycleStateActive ZoneLifecycleStateEnum = "ACTIVE"
ZoneLifecycleStateCreating ZoneLifecycleStateEnum = "CREATING"
ZoneLifecycleStateDeleted ZoneLifecycleStateEnum = "DELETED"
ZoneLifecycleStateDeleting ZoneLifecycleStateEnum = "DELETING"
ZoneLifecycleStateFailed ZoneLifecycleStateEnum = "FAILED"
)
var mappingZoneLifecycleState = map[string]ZoneLifecycleStateEnum{
"ACTIVE": ZoneLifecycleStateActive,
"CREATING": ZoneLifecycleStateCreating,
"DELETED": ZoneLifecycleStateDeleted,
"DELETING": ZoneLifecycleStateDeleting,
"FAILED": ZoneLifecycleStateFailed,
}
// GetZoneLifecycleStateEnumValues Enumerates the set of values for ZoneLifecycleStateEnum
func GetZoneLifecycleStateEnumValues() []ZoneLifecycleStateEnum {
values := make([]ZoneLifecycleStateEnum, 0)
for _, v := range mappingZoneLifecycleState {
values = append(values, v)
}
return values
}

115
vendor/github.com/oracle/oci-go-sdk/dns/zone_summary.go generated vendored Normal file
View file

@ -0,0 +1,115 @@
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
// Code generated. DO NOT EDIT.
// DNS API
//
// API for the DNS service. Use this API to manage DNS zones, records, and other DNS resources.
// For more information, see Overview of the DNS Service (https://docs.cloud.oracle.com/iaas/Content/DNS/Concepts/dnszonemanagement.htm).
//
package dns
import (
"github.com/oracle/oci-go-sdk/common"
)
// ZoneSummary A DNS zone.
// *Warning:* Oracle recommends that you avoid using any confidential information when you supply string values using the API.
type ZoneSummary struct {
// The name of the zone.
Name *string `mandatory:"false" json:"name"`
// The type of the zone. Must be either `PRIMARY` or `SECONDARY`.
ZoneType ZoneSummaryZoneTypeEnum `mandatory:"false" json:"zoneType,omitempty"`
// The OCID of the compartment containing the zone.
CompartmentId *string `mandatory:"false" json:"compartmentId"`
// Simple key-value pair that is applied without any predefined name, type, or scope.
// For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
// Example: `{"bar-key": "value"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// Usage of predefined tag keys. These predefined keys are scoped to a namespace.
// Example: `{"foo-namespace": {"bar-key": "value"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
// The canonical absolute URL of the resource.
Self *string `mandatory:"false" json:"self"`
// The OCID of the zone.
Id *string `mandatory:"false" json:"id"`
// The date and time the resource was created in "YYYY-MM-ddThh:mmZ" format
// with a Z offset, as defined by RFC 3339.
// **Example:** `2016-07-22T17:23:59:60Z`
TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"`
// Version is the never-repeating, totally-orderable, version of the
// zone, from which the serial field of the zone's SOA record is
// derived.
Version *string `mandatory:"false" json:"version"`
// The current serial of the zone. As seen in the zone's SOA record.
Serial *int64 `mandatory:"false" json:"serial"`
// The current state of the zone resource.
LifecycleState ZoneSummaryLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"`
}
func (m ZoneSummary) String() string {
return common.PointerString(m)
}
// ZoneSummaryZoneTypeEnum Enum with underlying type: string
type ZoneSummaryZoneTypeEnum string
// Set of constants representing the allowable values for ZoneSummaryZoneTypeEnum
const (
ZoneSummaryZoneTypePrimary ZoneSummaryZoneTypeEnum = "PRIMARY"
ZoneSummaryZoneTypeSecondary ZoneSummaryZoneTypeEnum = "SECONDARY"
)
var mappingZoneSummaryZoneType = map[string]ZoneSummaryZoneTypeEnum{
"PRIMARY": ZoneSummaryZoneTypePrimary,
"SECONDARY": ZoneSummaryZoneTypeSecondary,
}
// GetZoneSummaryZoneTypeEnumValues Enumerates the set of values for ZoneSummaryZoneTypeEnum
func GetZoneSummaryZoneTypeEnumValues() []ZoneSummaryZoneTypeEnum {
values := make([]ZoneSummaryZoneTypeEnum, 0)
for _, v := range mappingZoneSummaryZoneType {
values = append(values, v)
}
return values
}
// ZoneSummaryLifecycleStateEnum Enum with underlying type: string
type ZoneSummaryLifecycleStateEnum string
// Set of constants representing the allowable values for ZoneSummaryLifecycleStateEnum
const (
ZoneSummaryLifecycleStateActive ZoneSummaryLifecycleStateEnum = "ACTIVE"
ZoneSummaryLifecycleStateCreating ZoneSummaryLifecycleStateEnum = "CREATING"
ZoneSummaryLifecycleStateDeleted ZoneSummaryLifecycleStateEnum = "DELETED"
ZoneSummaryLifecycleStateDeleting ZoneSummaryLifecycleStateEnum = "DELETING"
ZoneSummaryLifecycleStateFailed ZoneSummaryLifecycleStateEnum = "FAILED"
)
var mappingZoneSummaryLifecycleState = map[string]ZoneSummaryLifecycleStateEnum{
"ACTIVE": ZoneSummaryLifecycleStateActive,
"CREATING": ZoneSummaryLifecycleStateCreating,
"DELETED": ZoneSummaryLifecycleStateDeleted,
"DELETING": ZoneSummaryLifecycleStateDeleting,
"FAILED": ZoneSummaryLifecycleStateFailed,
}
// GetZoneSummaryLifecycleStateEnumValues Enumerates the set of values for ZoneSummaryLifecycleStateEnum
func GetZoneSummaryLifecycleStateEnumValues() []ZoneSummaryLifecycleStateEnum {
values := make([]ZoneSummaryLifecycleStateEnum, 0)
for _, v := range mappingZoneSummaryLifecycleState {
values = append(values, v)
}
return values
}