Skip to content

Commit 392af96

Browse files
Apaar Guptajotruon
authored andcommitted
Added - Support for CASPER - ObjectStorage to have Customer Specific Domains in Customer Zone DNS
1 parent 5ec5da8 commit 392af96

File tree

4 files changed

+15
-1
lines changed

4 files changed

+15
-1
lines changed

internal/client/object_storage_clients.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ func initObjectstorageObjectStorageClient(configProvider oci_common.Configuratio
2626
if serviceClientOverrides.HostUrlOverride != "" {
2727
client.Host = serviceClientOverrides.HostUrlOverride
2828
}
29+
err = setCustomConfiguration(&client)
30+
if err != nil {
31+
return nil, err
32+
}
2933
return &client, nil
3034
}
3135

internal/integrationtest/objectstorage_preauthrequest_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ func TestObjectStoragePreauthenticatedRequestResource_basic(t *testing.T) {
185185
ImportStateVerify: true,
186186
ImportStateVerifyIgnore: []string{
187187
"access_uri",
188+
"full_path",
188189
"time_expires",
189190
},
190191
ResourceName: resourceName,

internal/service/objectstorage/objectstorage_preauthrequest_resource.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ func ObjectStoragePreauthenticatedRequestResource() *schema.Resource {
9595
Type: schema.TypeString,
9696
Computed: true,
9797
},
98+
"full_path": {
99+
Type: schema.TypeString,
100+
Computed: true,
101+
},
98102
"time_created": {
99103
Type: schema.TypeString,
100104
Computed: true,
@@ -289,6 +293,10 @@ func (s *ObjectStoragePreauthenticatedRequestResourceCrud) SetData() error {
289293

290294
s.D.Set("bucket_listing_action", s.Res.BucketListingAction)
291295

296+
if s.Res.FullPath != nil {
297+
s.D.Set("full_path", *s.Res.FullPath)
298+
}
299+
292300
if s.Res.Name != nil {
293301
s.D.Set("name", *s.Res.Name)
294302
}

website/docs/r/objectstorage_preauthrequest.html.markdown

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,9 @@ The following attributes are exported:
5353

5454
* `access_type` - The operation that can be performed on this resource.
5555
* `bucket_listing_action` - Specifies whether a list operation is allowed on a PAR with accessType "AnyObjectRead" or "AnyObjectReadWrite". Deny: Prevents the user from performing a list operation. ListObjects: Authorizes the user to perform a list operation.
56+
* `full_path` - The full Path for the object.
5657
* `access_uri` - The URI to embed in the URL `https://objectstorage.${var.region}.oraclecloud.com{var.access_uri}` when using the pre-authenticated request.
57-
* `bucket` - The name of the bucket. Example: `my-new-bucket1`
58+
* `bucket` - The name of the bucket. Example: `my-new-bucket1`
5859
* `id` - The unique identifier to use when directly addressing the pre-authenticated request.
5960
* `name` - The user-provided name of the pre-authenticated request.
6061
* `namespace` - The top-level namespace used for the request.

0 commit comments

Comments
 (0)