-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2746 in SDK/oci-go-sdk from merge_to_github2024-0…
…5-13 to github Releasing Version 65.65.2 Squashed commit of the following: commit 10febf0bf437fb06fa66fb4aec248a5fe58fcf33 Author: oci-dex-release-bot <[email protected]> Date: Mon May 13 16:51:43 2024 +0000 Releasing version 65 65 2
- Loading branch information
DEXREQ Automation
committed
May 13, 2024
1 parent
bbed598
commit 0e84ce0
Showing
96 changed files
with
8,723 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. | ||
// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. | ||
// Code generated. DO NOT EDIT. | ||
|
||
// Email Delivery API | ||
// | ||
// Use the Email Delivery API to do the necessary set up to send high-volume and application-generated emails through the OCI Email Delivery service. | ||
// For more information, see Overview of the Email Delivery Service (https://docs.cloud.oracle.com/iaas/Content/Email/Concepts/overview.htm). | ||
// **Note:** Write actions (POST, UPDATE, DELETE) may take several minutes to propagate and be reflected by the API. | ||
// If a subsequent read request fails to reflect your changes, wait a few minutes and try again. | ||
// | ||
|
||
package email | ||
|
||
import ( | ||
"fmt" | ||
"github.com/oracle/oci-go-sdk/v65/common" | ||
"strings" | ||
) | ||
|
||
// CreateEmailReturnPathDetails Properties to create a new email return path. | ||
// The new object will be created in the same compartment as the parent resource. | ||
type CreateEmailReturnPathDetails struct { | ||
|
||
// The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the EmailDomain for this email return path. | ||
ParentResourceId *string `mandatory:"true" json:"parentResourceId"` | ||
|
||
// The name of the email return path domain in the Internet Domain Name System (DNS). | ||
// The name must be a subdomain of the email domain used to send emails. | ||
// The email return path name must be globally unique for this tenancy. | ||
// If you do not provide the email return path name, we will generate one for you. | ||
// If you do provide the email return path name, we suggest adding a short region indicator to | ||
// allow using the same parent domain in other regions you might be subscribed to. | ||
// Domain names limited to ASCII characters use alphanumeric, dash ("-"), and dot (".") characters. | ||
// The dash and dot are only allowed between alphanumeric characters. | ||
// Non-ASCII domain names should adopt IDNA2008 normalization (RFC 5891-5892). | ||
Name *string `mandatory:"false" json:"name"` | ||
|
||
// A string that describes the details about the email return path. It does not have to be unique, | ||
// and you can change it. Avoid entering confidential information. | ||
Description *string `mandatory:"false" json:"description"` | ||
|
||
// Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. | ||
// For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). | ||
// Example: `{"Department": "Finance"}` | ||
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` | ||
|
||
// Defined tags for this resource. Each key is predefined and scoped to a namespace. | ||
// For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). | ||
// Example: `{"Operations": {"CostCenter": "42"}}` | ||
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` | ||
} | ||
|
||
func (m CreateEmailReturnPathDetails) String() string { | ||
return common.PointerString(m) | ||
} | ||
|
||
// ValidateEnumValue returns an error when providing an unsupported enum value | ||
// This function is being called during constructing API request process | ||
// Not recommended for calling this function directly | ||
func (m CreateEmailReturnPathDetails) ValidateEnumValue() (bool, error) { | ||
errMessage := []string{} | ||
|
||
if len(errMessage) > 0 { | ||
return true, fmt.Errorf(strings.Join(errMessage, "\n")) | ||
} | ||
return false, nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. | ||
// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. | ||
// Code generated. DO NOT EDIT. | ||
|
||
package email | ||
|
||
import ( | ||
"fmt" | ||
"github.com/oracle/oci-go-sdk/v65/common" | ||
"net/http" | ||
"strings" | ||
) | ||
|
||
// CreateEmailReturnPathRequest wrapper for the CreateEmailReturnPath operation | ||
// | ||
// # See also | ||
// | ||
// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/email/CreateEmailReturnPath.go.html to see an example of how to use CreateEmailReturnPathRequest. | ||
type CreateEmailReturnPathRequest struct { | ||
|
||
// The email return path to create. | ||
CreateEmailReturnPathDetails `contributesTo:"body"` | ||
|
||
// The request ID for tracing from the system | ||
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` | ||
|
||
// A token that uniquely identifies a request so it can be retried in case of a timeout or | ||
// server error without risk of executing that same action again. Retry tokens expire after 24 | ||
// hours, but can be invalidated before then due to conflicting operations. For example, if a resource | ||
// has been deleted and purged from the system, then a retry of the original creation request | ||
// might be rejected. | ||
OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` | ||
|
||
// Metadata about the request. This information will not be transmitted to the service, but | ||
// represents information that the SDK will consume to drive retry behavior. | ||
RequestMetadata common.RequestMetadata | ||
} | ||
|
||
func (request CreateEmailReturnPathRequest) String() string { | ||
return common.PointerString(request) | ||
} | ||
|
||
// HTTPRequest implements the OCIRequest interface | ||
func (request CreateEmailReturnPathRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { | ||
|
||
_, err := request.ValidateEnumValue() | ||
if err != nil { | ||
return http.Request{}, err | ||
} | ||
return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) | ||
} | ||
|
||
// BinaryRequestBody implements the OCIRequest interface | ||
func (request CreateEmailReturnPathRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { | ||
|
||
return nil, false | ||
|
||
} | ||
|
||
// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. | ||
func (request CreateEmailReturnPathRequest) RetryPolicy() *common.RetryPolicy { | ||
return request.RequestMetadata.RetryPolicy | ||
} | ||
|
||
// ValidateEnumValue returns an error when providing an unsupported enum value | ||
// This function is being called during constructing API request process | ||
// Not recommended for calling this function directly | ||
func (request CreateEmailReturnPathRequest) ValidateEnumValue() (bool, error) { | ||
errMessage := []string{} | ||
if len(errMessage) > 0 { | ||
return true, fmt.Errorf(strings.Join(errMessage, "\n")) | ||
} | ||
return false, nil | ||
} | ||
|
||
// CreateEmailReturnPathResponse wrapper for the CreateEmailReturnPath operation | ||
type CreateEmailReturnPathResponse struct { | ||
|
||
// The underlying http response | ||
RawResponse *http.Response | ||
|
||
// The EmailReturnPath instance | ||
EmailReturnPath `presentIn:"body"` | ||
|
||
// The full URI of the resource related to the request | ||
ContentLocation *string `presentIn:"header" name:"content-location"` | ||
|
||
// For optimistic concurrency control. See `if-match`. | ||
Etag *string `presentIn:"header" name:"etag"` | ||
|
||
// The full URI of the resource related to the request | ||
Location *string `presentIn:"header" name:"location"` | ||
|
||
// 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"` | ||
|
||
// Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. | ||
OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` | ||
} | ||
|
||
func (response CreateEmailReturnPathResponse) String() string { | ||
return common.PointerString(response) | ||
} | ||
|
||
// HTTPResponse implements the OCIResponse interface | ||
func (response CreateEmailReturnPathResponse) HTTPResponse() *http.Response { | ||
return response.RawResponse | ||
} |
Oops, something went wrong.