Skip to content

Commit f94ea59

Browse files
Releasing version 27.0.0
Releasing version 27.0.0
2 parents 2eabdc7 + 9548f4b commit f94ea59

File tree

296 files changed

+15633
-437
lines changed

Some content is hidden

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

296 files changed

+15633
-437
lines changed

Aianomalydetection/OCI.PSModules.Aianomalydetection.psd1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Generated by: Oracle Cloud Infrastructure
55
#
6-
# Generated on: 02/04/2022
6+
# Generated on: 02/14/2022
77
#
88

99
@{
@@ -12,7 +12,7 @@
1212
RootModule = 'assemblies/OCI.PSModules.Aianomalydetection.dll'
1313

1414
# Version number of this module.
15-
ModuleVersion = '26.0.0'
15+
ModuleVersion = '27.0.0'
1616

1717
# Supported PSEditions
1818
CompatiblePSEditions = 'Core'
@@ -51,7 +51,7 @@ PowerShellVersion = '6.0'
5151
# ProcessorArchitecture = ''
5252

5353
# Modules that must be imported into the global environment prior to importing this module
54-
RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '26.0.0'; })
54+
RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '27.0.0'; })
5555

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

Ailanguage/OCI.PSModules.Ailanguage.psd1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Generated by: Oracle Cloud Infrastructure
55
#
6-
# Generated on: 02/04/2022
6+
# Generated on: 02/14/2022
77
#
88

99
@{
@@ -12,7 +12,7 @@
1212
RootModule = 'assemblies/OCI.PSModules.Ailanguage.dll'
1313

1414
# Version number of this module.
15-
ModuleVersion = '26.0.0'
15+
ModuleVersion = '27.0.0'
1616

1717
# Supported PSEditions
1818
CompatiblePSEditions = 'Core'
@@ -51,7 +51,7 @@ PowerShellVersion = '6.0'
5151
# ProcessorArchitecture = ''
5252

5353
# Modules that must be imported into the global environment prior to importing this module
54-
RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '26.0.0'; })
54+
RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '27.0.0'; })
5555

5656
# Assemblies that must be loaded prior to importing this module
5757
RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Ailanguage.dll'
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
/*
2+
* NOTE: Generated using OracleSDKGenerator, API Version: 20220125
3+
* DO NOT EDIT this file manually.
4+
*
5+
* Copyright (c) 2020, 2022, 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.AivisionService.Requests;
12+
using Oci.AivisionService.Responses;
13+
using Oci.AivisionService.Models;
14+
using Oci.Common.Waiters;
15+
16+
namespace Oci.AivisionService.Cmdlets
17+
{
18+
[Cmdlet("Get", "OCIAivisionDocumentJob", DefaultParameterSetName = Default)]
19+
[OutputType(new System.Type[] { typeof(Oci.AivisionService.Models.DocumentJob), typeof(Oci.AivisionService.Responses.GetDocumentJobResponse) })]
20+
public class GetOCIAivisionDocumentJob : OCIAIServiceVisionCmdlet
21+
{
22+
23+
[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Document job id.", ParameterSetName = LifecycleStateParamSet)]
24+
[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Document job id.", ParameterSetName = Default)]
25+
public string DocumentJobId { get; set; }
26+
27+
28+
[Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.", ParameterSetName = LifecycleStateParamSet)]
29+
[Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.", ParameterSetName = Default)]
30+
public string OpcRequestId { get; set; }
31+
32+
[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)]
33+
public Oci.AivisionService.Models.DocumentJob.LifecycleStateEnum[] WaitForLifecycleState { get; set; }
34+
35+
[Parameter(Mandatory = false, HelpMessage = @"Check every WaitIntervalSeconds to see whether the resource has reached a desired state.", ParameterSetName = LifecycleStateParamSet)]
36+
public int WaitIntervalSeconds { get; set; } = WAIT_INTERVAL_SECONDS;
37+
38+
[Parameter(Mandatory = false, HelpMessage = @"Maximum number of attempts to be made until the resource reaches a desired state.", ParameterSetName = LifecycleStateParamSet)]
39+
public int MaxWaitAttempts { get; set; } = MAX_WAITER_ATTEMPTS;
40+
41+
protected override void ProcessRecord()
42+
{
43+
base.ProcessRecord();
44+
GetDocumentJobRequest request;
45+
46+
try
47+
{
48+
request = new GetDocumentJobRequest
49+
{
50+
DocumentJobId = DocumentJobId,
51+
OpcRequestId = OpcRequestId
52+
};
53+
54+
HandleOutput(request);
55+
FinishProcessing(response);
56+
}
57+
catch (Exception ex)
58+
{
59+
TerminatingErrorDuringExecution(ex);
60+
}
61+
}
62+
63+
protected override void StopProcessing()
64+
{
65+
base.StopProcessing();
66+
TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted"));
67+
}
68+
69+
private void HandleOutput(GetDocumentJobRequest request)
70+
{
71+
var waiterConfig = new WaiterConfiguration
72+
{
73+
MaxAttempts = MaxWaitAttempts,
74+
GetNextDelayInSeconds = (_) => WaitIntervalSeconds
75+
};
76+
77+
switch (ParameterSetName)
78+
{
79+
case LifecycleStateParamSet:
80+
response = client.Waiters.ForDocumentJob(request, waiterConfig, WaitForLifecycleState).Execute();
81+
break;
82+
83+
case Default:
84+
response = client.GetDocumentJob(request).GetAwaiter().GetResult();
85+
break;
86+
}
87+
WriteOutput(response, response.DocumentJob);
88+
}
89+
90+
private GetDocumentJobResponse response;
91+
private const string LifecycleStateParamSet = "LifecycleStateParamSet";
92+
private const string Default = "Default";
93+
}
94+
}
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
/*
2+
* NOTE: Generated using OracleSDKGenerator, API Version: 20220125
3+
* DO NOT EDIT this file manually.
4+
*
5+
* Copyright (c) 2020, 2022, 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.AivisionService.Requests;
12+
using Oci.AivisionService.Responses;
13+
using Oci.AivisionService.Models;
14+
using Oci.Common.Waiters;
15+
16+
namespace Oci.AivisionService.Cmdlets
17+
{
18+
[Cmdlet("Get", "OCIAivisionImageJob", DefaultParameterSetName = Default)]
19+
[OutputType(new System.Type[] { typeof(Oci.AivisionService.Models.ImageJob), typeof(Oci.AivisionService.Responses.GetImageJobResponse) })]
20+
public class GetOCIAivisionImageJob : OCIAIServiceVisionCmdlet
21+
{
22+
23+
[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Image job id.", ParameterSetName = LifecycleStateParamSet)]
24+
[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Image job id.", ParameterSetName = Default)]
25+
public string ImageJobId { get; set; }
26+
27+
28+
[Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.", ParameterSetName = LifecycleStateParamSet)]
29+
[Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.", ParameterSetName = Default)]
30+
public string OpcRequestId { get; set; }
31+
32+
[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)]
33+
public Oci.AivisionService.Models.ImageJob.LifecycleStateEnum[] WaitForLifecycleState { get; set; }
34+
35+
[Parameter(Mandatory = false, HelpMessage = @"Check every WaitIntervalSeconds to see whether the resource has reached a desired state.", ParameterSetName = LifecycleStateParamSet)]
36+
public int WaitIntervalSeconds { get; set; } = WAIT_INTERVAL_SECONDS;
37+
38+
[Parameter(Mandatory = false, HelpMessage = @"Maximum number of attempts to be made until the resource reaches a desired state.", ParameterSetName = LifecycleStateParamSet)]
39+
public int MaxWaitAttempts { get; set; } = MAX_WAITER_ATTEMPTS;
40+
41+
protected override void ProcessRecord()
42+
{
43+
base.ProcessRecord();
44+
GetImageJobRequest request;
45+
46+
try
47+
{
48+
request = new GetImageJobRequest
49+
{
50+
ImageJobId = ImageJobId,
51+
OpcRequestId = OpcRequestId
52+
};
53+
54+
HandleOutput(request);
55+
FinishProcessing(response);
56+
}
57+
catch (Exception ex)
58+
{
59+
TerminatingErrorDuringExecution(ex);
60+
}
61+
}
62+
63+
protected override void StopProcessing()
64+
{
65+
base.StopProcessing();
66+
TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted"));
67+
}
68+
69+
private void HandleOutput(GetImageJobRequest request)
70+
{
71+
var waiterConfig = new WaiterConfiguration
72+
{
73+
MaxAttempts = MaxWaitAttempts,
74+
GetNextDelayInSeconds = (_) => WaitIntervalSeconds
75+
};
76+
77+
switch (ParameterSetName)
78+
{
79+
case LifecycleStateParamSet:
80+
response = client.Waiters.ForImageJob(request, waiterConfig, WaitForLifecycleState).Execute();
81+
break;
82+
83+
case Default:
84+
response = client.GetImageJob(request).GetAwaiter().GetResult();
85+
break;
86+
}
87+
WriteOutput(response, response.ImageJob);
88+
}
89+
90+
private GetImageJobResponse response;
91+
private const string LifecycleStateParamSet = "LifecycleStateParamSet";
92+
private const string Default = "Default";
93+
}
94+
}
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
/*
2+
* NOTE: Generated using OracleSDKGenerator, API Version: 20220125
3+
* DO NOT EDIT this file manually.
4+
*
5+
* Copyright (c) 2020, 2022, 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.AivisionService.Requests;
12+
using Oci.AivisionService.Responses;
13+
using Oci.AivisionService.Models;
14+
using Oci.Common.Waiters;
15+
16+
namespace Oci.AivisionService.Cmdlets
17+
{
18+
[Cmdlet("Get", "OCIAivisionModel", DefaultParameterSetName = Default)]
19+
[OutputType(new System.Type[] { typeof(Oci.AivisionService.Models.Model), typeof(Oci.AivisionService.Responses.GetModelResponse) })]
20+
public class GetOCIAivisionModel : OCIAIServiceVisionCmdlet
21+
{
22+
23+
[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"unique model identifier.", ParameterSetName = LifecycleStateParamSet)]
24+
[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"unique model identifier.", ParameterSetName = Default)]
25+
public string ModelId { get; set; }
26+
27+
28+
[Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.", ParameterSetName = LifecycleStateParamSet)]
29+
[Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.", ParameterSetName = Default)]
30+
public string OpcRequestId { get; set; }
31+
32+
[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)]
33+
public Oci.AivisionService.Models.Model.LifecycleStateEnum[] WaitForLifecycleState { get; set; }
34+
35+
[Parameter(Mandatory = false, HelpMessage = @"Check every WaitIntervalSeconds to see whether the resource has reached a desired state.", ParameterSetName = LifecycleStateParamSet)]
36+
public int WaitIntervalSeconds { get; set; } = WAIT_INTERVAL_SECONDS;
37+
38+
[Parameter(Mandatory = false, HelpMessage = @"Maximum number of attempts to be made until the resource reaches a desired state.", ParameterSetName = LifecycleStateParamSet)]
39+
public int MaxWaitAttempts { get; set; } = MAX_WAITER_ATTEMPTS;
40+
41+
protected override void ProcessRecord()
42+
{
43+
base.ProcessRecord();
44+
GetModelRequest request;
45+
46+
try
47+
{
48+
request = new GetModelRequest
49+
{
50+
ModelId = ModelId,
51+
OpcRequestId = OpcRequestId
52+
};
53+
54+
HandleOutput(request);
55+
FinishProcessing(response);
56+
}
57+
catch (Exception ex)
58+
{
59+
TerminatingErrorDuringExecution(ex);
60+
}
61+
}
62+
63+
protected override void StopProcessing()
64+
{
65+
base.StopProcessing();
66+
TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted"));
67+
}
68+
69+
private void HandleOutput(GetModelRequest request)
70+
{
71+
var waiterConfig = new WaiterConfiguration
72+
{
73+
MaxAttempts = MaxWaitAttempts,
74+
GetNextDelayInSeconds = (_) => WaitIntervalSeconds
75+
};
76+
77+
switch (ParameterSetName)
78+
{
79+
case LifecycleStateParamSet:
80+
response = client.Waiters.ForModel(request, waiterConfig, WaitForLifecycleState).Execute();
81+
break;
82+
83+
case Default:
84+
response = client.GetModel(request).GetAwaiter().GetResult();
85+
break;
86+
}
87+
WriteOutput(response, response.Model);
88+
}
89+
90+
private GetModelResponse response;
91+
private const string LifecycleStateParamSet = "LifecycleStateParamSet";
92+
private const string Default = "Default";
93+
}
94+
}

0 commit comments

Comments
 (0)