1// Copyright (c) 2016, 2018, 2020, Oracle and/or its affiliates. All rights reserved. 2// 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. 3// Code generated. DO NOT EDIT. 4 5package loganalytics 6 7import ( 8 "github.com/oracle/oci-go-sdk/common" 9 "net/http" 10) 11 12// AddEntityAssociationRequest wrapper for the AddEntityAssociation operation 13type AddEntityAssociationRequest struct { 14 15 // The Log Analytics namespace used for the request. 16 NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` 17 18 // The log analytics entity OCID. 19 LogAnalyticsEntityId *string `mandatory:"true" contributesTo:"path" name:"logAnalyticsEntityId"` 20 21 // This parameter specifies the entity OCIDs with which associations are to be created. Specify destination OCIDs as comma separated string. 22 AddEntityAssociationDetails `contributesTo:"body"` 23 24 // The client request ID for tracing. 25 OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` 26 27 // A token that uniquely identifies a request so it can be retried in case of a timeout or 28 // server error without risk of executing that same action again. Retry tokens expire after 24 29 // hours, but can be invalidated before then due to conflicting operations. For example, if a resource 30 // has been deleted and purged from the system, then a retry of the original creation request 31 // might be rejected. 32 OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` 33 34 // For optimistic concurrency control. In the PUT or DELETE call 35 // for a resource, set the `if-match` parameter to the value of the 36 // etag from a previous GET or POST response for that resource. 37 // The resource will be updated or deleted only if the etag you 38 // provide matches the resource's current etag value. 39 IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` 40 41 // Metadata about the request. This information will not be transmitted to the service, but 42 // represents information that the SDK will consume to drive retry behavior. 43 RequestMetadata common.RequestMetadata 44} 45 46func (request AddEntityAssociationRequest) String() string { 47 return common.PointerString(request) 48} 49 50// HTTPRequest implements the OCIRequest interface 51func (request AddEntityAssociationRequest) HTTPRequest(method, path string) (http.Request, error) { 52 return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) 53} 54 55// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. 56func (request AddEntityAssociationRequest) RetryPolicy() *common.RetryPolicy { 57 return request.RequestMetadata.RetryPolicy 58} 59 60// AddEntityAssociationResponse wrapper for the AddEntityAssociation operation 61type AddEntityAssociationResponse struct { 62 63 // The underlying http response 64 RawResponse *http.Response 65 66 // Unique Oracle-assigned identifier for the request. If you need to contact 67 // Oracle about a particular request, please provide the request ID. 68 OpcRequestId *string `presentIn:"header" name:"opc-request-id"` 69} 70 71func (response AddEntityAssociationResponse) String() string { 72 return common.PointerString(response) 73} 74 75// HTTPResponse implements the OCIResponse interface 76func (response AddEntityAssociationResponse) HTTPResponse() *http.Response { 77 return response.RawResponse 78} 79