Skip to content

Commit be580d5

Browse files
Releasing version 87.0.0
Co-authored-by: Harsh Kumar <[email protected]>
1 parent 00cddb1 commit be580d5

File tree

187 files changed

+3731
-444
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

187 files changed

+3731
-444
lines changed

Accessgovernancecp/OCI.PSModules.Accessgovernancecp.psd1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
RootModule = 'assemblies/OCI.PSModules.Accessgovernancecp.dll'
1212

1313
# Version number of this module.
14-
ModuleVersion = '99.9.0'
14+
ModuleVersion = '87.0.0'
1515

1616
# Supported PSEditions
1717
CompatiblePSEditions = 'Core'
@@ -50,7 +50,7 @@ PowerShellVersion = '6.0'
5050
# ProcessorArchitecture = ''
5151

5252
# Modules that must be imported into the global environment prior to importing this module
53-
RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '99.9.0'; })
53+
RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '87.0.0'; })
5454

5555
# Assemblies that must be loaded prior to importing this module
5656
RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Accessgovernancecp.dll'

Adm/OCI.PSModules.Adm.psd1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
RootModule = 'assemblies/OCI.PSModules.Adm.dll'
1212

1313
# Version number of this module.
14-
ModuleVersion = '99.9.0'
14+
ModuleVersion = '87.0.0'
1515

1616
# Supported PSEditions
1717
CompatiblePSEditions = 'Core'
@@ -50,7 +50,7 @@ PowerShellVersion = '6.0'
5050
# ProcessorArchitecture = ''
5151

5252
# Modules that must be imported into the global environment prior to importing this module
53-
RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '99.9.0'; })
53+
RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '87.0.0'; })
5454

5555
# Assemblies that must be loaded prior to importing this module
5656
RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Adm.dll'

Aianomalydetection/OCI.PSModules.Aianomalydetection.psd1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
RootModule = 'assemblies/OCI.PSModules.Aianomalydetection.dll'
1212

1313
# Version number of this module.
14-
ModuleVersion = '99.9.0'
14+
ModuleVersion = '87.0.0'
1515

1616
# Supported PSEditions
1717
CompatiblePSEditions = 'Core'
@@ -50,7 +50,7 @@ PowerShellVersion = '6.0'
5050
# ProcessorArchitecture = ''
5151

5252
# Modules that must be imported into the global environment prior to importing this module
53-
RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '99.9.0'; })
53+
RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '87.0.0'; })
5454

5555
# Assemblies that must be loaded prior to importing this module
5656
RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Aianomalydetection.dll'

Aidocument/OCI.PSModules.Aidocument.psd1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
RootModule = 'assemblies/OCI.PSModules.Aidocument.dll'
1212

1313
# Version number of this module.
14-
ModuleVersion = '99.9.0'
14+
ModuleVersion = '87.0.0'
1515

1616
# Supported PSEditions
1717
CompatiblePSEditions = 'Core'
@@ -50,7 +50,7 @@ PowerShellVersion = '6.0'
5050
# ProcessorArchitecture = ''
5151

5252
# Modules that must be imported into the global environment prior to importing this module
53-
RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '99.9.0'; })
53+
RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '87.0.0'; })
5454

5555
# Assemblies that must be loaded prior to importing this module
5656
RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Aidocument.dll'

Ailanguage/OCI.PSModules.Ailanguage.psd1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
RootModule = 'assemblies/OCI.PSModules.Ailanguage.dll'
1212

1313
# Version number of this module.
14-
ModuleVersion = '99.9.0'
14+
ModuleVersion = '87.0.0'
1515

1616
# Supported PSEditions
1717
CompatiblePSEditions = 'Core'
@@ -50,7 +50,7 @@ PowerShellVersion = '6.0'
5050
# ProcessorArchitecture = ''
5151

5252
# Modules that must be imported into the global environment prior to importing this module
53-
RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '99.9.0'; })
53+
RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '87.0.0'; })
5454

5555
# Assemblies that must be loaded prior to importing this module
5656
RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Ailanguage.dll'
Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
/*
2+
* NOTE: Generated using OracleSDKGenerator, API Version: 20220101
3+
* DO NOT EDIT this file manually.
4+
*
5+
* Copyright (c) 2020, 2024, Oracle and/or its affiliates.
6+
* 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.
7+
*/
8+
9+
using System;
10+
using System.Management.Automation;
11+
using Oci.AispeechService.Requests;
12+
using Oci.AispeechService.Responses;
13+
using Oci.AispeechService.Models;
14+
using Oci.Common.Model;
15+
using Oci.Common.Waiters;
16+
17+
namespace Oci.AispeechService.Cmdlets
18+
{
19+
[Cmdlet("Get", "OCIAispeechCustomization", DefaultParameterSetName = Default)]
20+
[OutputType(new System.Type[] { typeof(Oci.AispeechService.Models.Customization), typeof(Oci.AispeechService.Responses.GetCustomizationResponse) })]
21+
public class GetOCIAispeechCustomization : OCIAIServiceSpeechCmdlet
22+
{
23+
24+
[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Customization training Job identifier.", ParameterSetName = LifecycleStateParamSet)]
25+
[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Customization training Job identifier.", ParameterSetName = Default)]
26+
public string CustomizationId { get; set; }
27+
28+
29+
[Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.", ParameterSetName = LifecycleStateParamSet)]
30+
[Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.", ParameterSetName = Default)]
31+
public string OpcRequestId { get; set; }
32+
33+
[Parameter(Mandatory = true, HelpMessage = @"This operation creates, modifies or deletes a resource that has a defined lifecycle state. Specify this option to perform the action and then wait until the resource reaches a given lifecycle state. Multiple states can be specified, returning on the first state.", ParameterSetName = LifecycleStateParamSet)]
34+
public Oci.AispeechService.Models.Customization.LifecycleStateEnum[] WaitForLifecycleState { get; set; }
35+
36+
[Parameter(Mandatory = false, HelpMessage = @"Check every WaitIntervalSeconds to see whether the resource has reached a desired state.", ParameterSetName = LifecycleStateParamSet)]
37+
public int WaitIntervalSeconds { get; set; } = WAIT_INTERVAL_SECONDS;
38+
39+
[Parameter(Mandatory = false, HelpMessage = @"Maximum number of attempts to be made until the resource reaches a desired state.", ParameterSetName = LifecycleStateParamSet)]
40+
public int MaxWaitAttempts { get; set; } = MAX_WAITER_ATTEMPTS;
41+
42+
protected override void ProcessRecord()
43+
{
44+
base.ProcessRecord();
45+
GetCustomizationRequest request;
46+
47+
try
48+
{
49+
request = new GetCustomizationRequest
50+
{
51+
CustomizationId = CustomizationId,
52+
OpcRequestId = OpcRequestId
53+
};
54+
55+
HandleOutput(request);
56+
FinishProcessing(response);
57+
}
58+
catch (OciException ex)
59+
{
60+
TerminatingErrorDuringExecution(ex);
61+
}
62+
catch (Exception ex)
63+
{
64+
TerminatingErrorDuringExecution(ex);
65+
}
66+
}
67+
68+
protected override void StopProcessing()
69+
{
70+
base.StopProcessing();
71+
TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted"));
72+
}
73+
74+
private void HandleOutput(GetCustomizationRequest request)
75+
{
76+
var waiterConfig = new WaiterConfiguration
77+
{
78+
MaxAttempts = MaxWaitAttempts,
79+
GetNextDelayInSeconds = (_) => WaitIntervalSeconds
80+
};
81+
82+
switch (ParameterSetName)
83+
{
84+
case LifecycleStateParamSet:
85+
response = client.Waiters.ForCustomization(request, waiterConfig, WaitForLifecycleState).Execute();
86+
break;
87+
88+
case Default:
89+
response = client.GetCustomization(request).GetAwaiter().GetResult();
90+
break;
91+
}
92+
WriteOutput(response, response.Customization);
93+
}
94+
95+
private GetCustomizationResponse response;
96+
private const string LifecycleStateParamSet = "LifecycleStateParamSet";
97+
private const string Default = "Default";
98+
}
99+
}
Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
/*
2+
* NOTE: Generated using OracleSDKGenerator, API Version: 20220101
3+
* DO NOT EDIT this file manually.
4+
*
5+
* Copyright (c) 2020, 2024, Oracle and/or its affiliates.
6+
* 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.
7+
*/
8+
9+
using System;
10+
using System.Collections.Generic;
11+
using System.Linq;
12+
using System.Management.Automation;
13+
using Oci.AispeechService.Requests;
14+
using Oci.AispeechService.Responses;
15+
using Oci.AispeechService.Models;
16+
using Oci.Common.Model;
17+
18+
namespace Oci.AispeechService.Cmdlets
19+
{
20+
[Cmdlet("Get", "OCIAispeechCustomizationsList")]
21+
[OutputType(new System.Type[] { typeof(Oci.AispeechService.Models.CustomizationCollection), typeof(Oci.AispeechService.Responses.ListCustomizationsResponse) })]
22+
public class GetOCIAispeechCustomizationsList : OCIAIServiceSpeechCmdlet
23+
{
24+
[Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The ID of the compartment in which to list resources.")]
25+
public string CompartmentId { get; set; }
26+
27+
[Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only resources whose lifecycleState matches the given lifecycleState.")]
28+
public System.Nullable<Oci.AispeechService.Models.Customization.LifecycleStateEnum> LifecycleState { get; set; }
29+
30+
[Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only resources that match the entire display name given.")]
31+
public string DisplayName { get; set; }
32+
33+
[Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique identifier(OCID).")]
34+
public string Id { get; set; }
35+
36+
[Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return.", ParameterSetName = LimitSet)]
37+
public System.Nullable<int> Limit { get; set; }
38+
39+
[Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.")]
40+
public string Page { get; set; }
41+
42+
[Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The sort order to use, either 'ASC' or 'DESC'.")]
43+
public System.Nullable<Oci.AispeechService.Models.SortOrder> SortOrder { get; set; }
44+
45+
[Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending.")]
46+
public System.Nullable<Oci.AispeechService.Requests.ListCustomizationsRequest.SortByEnum> SortBy { get; set; }
47+
48+
[Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")]
49+
public string OpcRequestId { get; set; }
50+
51+
[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Fetches all pages of results.", ParameterSetName = AllPageSet)]
52+
public SwitchParameter All { get; set; }
53+
54+
protected override void ProcessRecord()
55+
{
56+
base.ProcessRecord();
57+
ListCustomizationsRequest request;
58+
59+
try
60+
{
61+
request = new ListCustomizationsRequest
62+
{
63+
CompartmentId = CompartmentId,
64+
LifecycleState = LifecycleState,
65+
DisplayName = DisplayName,
66+
Id = Id,
67+
Limit = Limit,
68+
Page = Page,
69+
SortOrder = SortOrder,
70+
SortBy = SortBy,
71+
OpcRequestId = OpcRequestId
72+
};
73+
IEnumerable<ListCustomizationsResponse> responses = GetRequestDelegate().Invoke(request);
74+
foreach (var item in responses)
75+
{
76+
response = item;
77+
WriteOutput(response, response.CustomizationCollection, true);
78+
}
79+
if(!ParameterSetName.Equals(AllPageSet) && !ParameterSetName.Equals(LimitSet) && response.OpcNextPage != null)
80+
{
81+
WriteWarning("This operation supports pagination and not all resources were returned. Re-run using the -All option to auto paginate and list all resources.");
82+
}
83+
FinishProcessing(response);
84+
}
85+
catch (OciException ex)
86+
{
87+
TerminatingErrorDuringExecution(ex);
88+
}
89+
catch (Exception ex)
90+
{
91+
TerminatingErrorDuringExecution(ex);
92+
}
93+
}
94+
95+
protected override void StopProcessing()
96+
{
97+
base.StopProcessing();
98+
TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted"));
99+
}
100+
101+
private RequestDelegate GetRequestDelegate()
102+
{
103+
IEnumerable<ListCustomizationsResponse> DefaultRequest(ListCustomizationsRequest request) => Enumerable.Repeat(client.ListCustomizations(request).GetAwaiter().GetResult(), 1);
104+
if (ParameterSetName.Equals(AllPageSet))
105+
{
106+
return req => client.Paginators.ListCustomizationsResponseEnumerator(req);
107+
}
108+
return DefaultRequest;
109+
}
110+
111+
private ListCustomizationsResponse response;
112+
private delegate IEnumerable<ListCustomizationsResponse> RequestDelegate(ListCustomizationsRequest request);
113+
private const string AllPageSet = "AllPages";
114+
private const string LimitSet = "Limit";
115+
}
116+
}
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
/*
2+
* NOTE: Generated using OracleSDKGenerator, API Version: 20220101
3+
* DO NOT EDIT this file manually.
4+
*
5+
* Copyright (c) 2020, 2024, Oracle and/or its affiliates.
6+
* 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.
7+
*/
8+
9+
using System;
10+
using System.Management.Automation;
11+
using Oci.AispeechService.Requests;
12+
using Oci.AispeechService.Responses;
13+
using Oci.AispeechService.Models;
14+
using Oci.Common.Model;
15+
16+
namespace Oci.AispeechService.Cmdlets
17+
{
18+
[Cmdlet("Move", "OCIAispeechCustomizationCompartment")]
19+
[OutputType(new System.Type[] { typeof(void), typeof(Oci.AispeechService.Responses.ChangeCustomizationCompartmentResponse) })]
20+
public class MoveOCIAispeechCustomizationCompartment : OCIAIServiceSpeechCmdlet
21+
{
22+
[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Customization training Job identifier.")]
23+
public string CustomizationId { get; set; }
24+
25+
[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Details for changing the compartment of a Customization.")]
26+
public ChangeCustomizationCompartmentDetails ChangeCustomizationCompartmentDetails { get; set; }
27+
28+
[Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.")]
29+
public string IfMatch { get; set; }
30+
31+
[Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")]
32+
public string OpcRequestId { get; set; }
33+
34+
[Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"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.")]
35+
public string OpcRetryToken { get; set; }
36+
37+
protected override void ProcessRecord()
38+
{
39+
base.ProcessRecord();
40+
ChangeCustomizationCompartmentRequest request;
41+
42+
try
43+
{
44+
request = new ChangeCustomizationCompartmentRequest
45+
{
46+
CustomizationId = CustomizationId,
47+
ChangeCustomizationCompartmentDetails = ChangeCustomizationCompartmentDetails,
48+
IfMatch = IfMatch,
49+
OpcRequestId = OpcRequestId,
50+
OpcRetryToken = OpcRetryToken
51+
};
52+
53+
response = client.ChangeCustomizationCompartment(request).GetAwaiter().GetResult();
54+
WriteOutput(response);
55+
FinishProcessing(response);
56+
}
57+
catch (OciException ex)
58+
{
59+
TerminatingErrorDuringExecution(ex);
60+
}
61+
catch (Exception ex)
62+
{
63+
TerminatingErrorDuringExecution(ex);
64+
}
65+
}
66+
67+
protected override void StopProcessing()
68+
{
69+
base.StopProcessing();
70+
TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted"));
71+
}
72+
73+
private ChangeCustomizationCompartmentResponse response;
74+
}
75+
}

0 commit comments

Comments
 (0)