1// Copyright (c) 2016, 2018, 2019, Oracle and/or its affiliates. All rights reserved. 2// Code generated. DO NOT EDIT. 3 4package identity 5 6import ( 7 "github.com/oracle/oci-go-sdk/common" 8 "net/http" 9) 10 11// UpdateIdpGroupMappingRequest wrapper for the UpdateIdpGroupMapping operation 12type UpdateIdpGroupMappingRequest struct { 13 14 // The OCID of the identity provider. 15 IdentityProviderId *string `mandatory:"true" contributesTo:"path" name:"identityProviderId"` 16 17 // The OCID of the group mapping. 18 MappingId *string `mandatory:"true" contributesTo:"path" name:"mappingId"` 19 20 // Request object for updating an identity provider group mapping 21 UpdateIdpGroupMappingDetails `contributesTo:"body"` 22 23 // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` 24 // parameter to the value of the etag from a previous GET or POST response for that resource. The resource 25 // will be updated or deleted only if the etag you provide matches the resource's current etag value. 26 IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` 27 28 // Unique Oracle-assigned identifier for the request. 29 // If you need to contact Oracle about a particular request, please provide the request ID. 30 OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` 31 32 // Metadata about the request. This information will not be transmitted to the service, but 33 // represents information that the SDK will consume to drive retry behavior. 34 RequestMetadata common.RequestMetadata 35} 36 37func (request UpdateIdpGroupMappingRequest) String() string { 38 return common.PointerString(request) 39} 40 41// HTTPRequest implements the OCIRequest interface 42func (request UpdateIdpGroupMappingRequest) HTTPRequest(method, path string) (http.Request, error) { 43 return common.MakeDefaultHTTPRequestWithTaggedStruct(method, path, request) 44} 45 46// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. 47func (request UpdateIdpGroupMappingRequest) RetryPolicy() *common.RetryPolicy { 48 return request.RequestMetadata.RetryPolicy 49} 50 51// UpdateIdpGroupMappingResponse wrapper for the UpdateIdpGroupMapping operation 52type UpdateIdpGroupMappingResponse struct { 53 54 // The underlying http response 55 RawResponse *http.Response 56 57 // The IdpGroupMapping instance 58 IdpGroupMapping `presentIn:"body"` 59 60 // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a 61 // particular request, please provide the request ID. 62 OpcRequestId *string `presentIn:"header" name:"opc-request-id"` 63 64 // For optimistic concurrency control. See `if-match`. 65 Etag *string `presentIn:"header" name:"etag"` 66} 67 68func (response UpdateIdpGroupMappingResponse) String() string { 69 return common.PointerString(response) 70} 71 72// HTTPResponse implements the OCIResponse interface 73func (response UpdateIdpGroupMappingResponse) HTTPResponse() *http.Response { 74 return response.RawResponse 75} 76