Skip to content

Commit 6d8d452

Browse files
Merge pull request #11 from oracle/release_2020-10-13
Releasing version 1.8.0
2 parents 80956ef + ae90cff commit 6d8d452

File tree

126 files changed

+3637
-274
lines changed

Some content is hidden

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

126 files changed

+3637
-274
lines changed

Analytics/OCI.PSModules.Analytics.psd1

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Generated by: Oracle Cloud Infrastructure
55
#
6-
# Generated on: 10/01/2020
6+
# Generated on: 10/09/2020
77
#
88

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

1414
# Version number of this module.
15-
ModuleVersion = '1.7.0'
15+
ModuleVersion = '1.8.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 = '1.7.0'; })
54+
RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.8.0'; })
5555

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

Announcementsservice/OCI.PSModules.Announcementsservice.psd1

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Generated by: Oracle Cloud Infrastructure
55
#
6-
# Generated on: 10/01/2020
6+
# Generated on: 10/09/2020
77
#
88

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

1414
# Version number of this module.
15-
ModuleVersion = '1.7.0'
15+
ModuleVersion = '1.8.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 = '1.7.0'; })
54+
RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '1.8.0'; })
5555

5656
# Assemblies that must be loaded prior to importing this module
5757
RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Announcementsservice.dll'
+94
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
/*
2+
* NOTE: Generated using OracleSDKGenerator, API Version: 20190501
3+
* DO NOT EDIT this file manually.
4+
*
5+
* Copyright (c) 2020, 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.ApigatewayService.Requests;
12+
using Oci.ApigatewayService.Responses;
13+
using Oci.ApigatewayService.Models;
14+
using Oci.Common.Waiters;
15+
16+
namespace Oci.ApigatewayService.Cmdlets
17+
{
18+
[Cmdlet("Get", "OCIApigatewayApi", DefaultParameterSetName = Default)]
19+
[OutputType(new System.Type[] { typeof(Oci.ApigatewayService.Models.Api), typeof(Oci.ApigatewayService.Responses.GetApiResponse) })]
20+
public class GetOCIApigatewayApi : OCIApiGatewayCmdlet
21+
{
22+
23+
[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The ocid of the API.", ParameterSetName = LifecycleStateParamSet)]
24+
[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The ocid of the API.", ParameterSetName = Default)]
25+
public string ApiId { 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.ApigatewayService.Models.Api.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+
GetApiRequest request;
45+
46+
try
47+
{
48+
request = new GetApiRequest
49+
{
50+
ApiId = ApiId,
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(GetApiRequest 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.ForApi(request, waiterConfig, WaitForLifecycleState).Execute();
81+
break;
82+
83+
case Default:
84+
response = client.GetApi(request).GetAwaiter().GetResult();
85+
break;
86+
}
87+
WriteOutput(response, response.Api);
88+
}
89+
90+
private GetApiResponse response;
91+
private const string LifecycleStateParamSet = "LifecycleStateParamSet";
92+
private const string Default = "Default";
93+
}
94+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
/*
2+
* NOTE: Generated using OracleSDKGenerator, API Version: 20190501
3+
* DO NOT EDIT this file manually.
4+
*
5+
* Copyright (c) 2020, 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.ApigatewayService.Requests;
12+
using Oci.ApigatewayService.Responses;
13+
using Oci.ApigatewayService.Models;
14+
15+
namespace Oci.ApigatewayService.Cmdlets
16+
{
17+
/*
18+
* As per https://github.com/PowerShell/PowerShell/issues/11143, this cmdlet is marked with a default parameter set for proper resolution of the invoked parameter set.
19+
* Parameter set "Default" contains all the parameters that are defined in this class(including base classes) and are not explicitly tagged with a ParameterSetName.
20+
*/
21+
[Cmdlet("Get", "OCIApigatewayApiContent", DefaultParameterSetName = Default)]
22+
[OutputType(new System.Type[] { typeof(System.IO.Stream), typeof(void), typeof(Oci.ApigatewayService.Responses.GetApiContentResponse) })]
23+
public class GetOCIApigatewayApiContent : OCIApiGatewayCmdlet
24+
{
25+
[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The ocid of the API.")]
26+
public string ApiId { get; set; }
27+
28+
[Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request id for tracing.")]
29+
public string OpcRequestId { get; set; }
30+
31+
[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.")]
32+
public string IfMatch { get; set; }
33+
34+
[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "Path to the output file.", ParameterSetName = WriteToFileSet)]
35+
public string OutputFile { get; set; }
36+
37+
[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "Output the complete response returned by the API Operation. Using this switch will make this Cmdlet output an object containing response headers in-addition to an optional response body.", ParameterSetName = FullResponseSet)]
38+
public override SwitchParameter FullResponse { get; set; }
39+
40+
protected override void ProcessRecord()
41+
{
42+
base.ProcessRecord();
43+
GetApiContentRequest request;
44+
45+
try
46+
{
47+
request = new GetApiContentRequest
48+
{
49+
ApiId = ApiId,
50+
OpcRequestId = OpcRequestId,
51+
IfMatch = IfMatch
52+
};
53+
54+
response = client.GetApiContent(request).GetAwaiter().GetResult();
55+
HandleOutput();
56+
57+
FinishProcessing(response);
58+
}
59+
catch (Exception ex)
60+
{
61+
TerminatingErrorDuringExecution(ex);
62+
}
63+
}
64+
65+
protected override void StopProcessing()
66+
{
67+
base.StopProcessing();
68+
TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted"));
69+
}
70+
71+
private void HandleOutput()
72+
{
73+
if (ParameterSetName.Equals(WriteToFileSet))
74+
{
75+
WriteToOutputFile(OutputFile, response.InputStream);
76+
}
77+
else
78+
{
79+
WriteOutput(response, response.InputStream);
80+
}
81+
}
82+
83+
private GetApiContentResponse response;
84+
private const string Default = "Default";
85+
private const string WriteToFileSet = "WriteToFile";
86+
private const string FullResponseSet = "FullResponse";
87+
}
88+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
/*
2+
* NOTE: Generated using OracleSDKGenerator, API Version: 20190501
3+
* DO NOT EDIT this file manually.
4+
*
5+
* Copyright (c) 2020, 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.ApigatewayService.Requests;
12+
using Oci.ApigatewayService.Responses;
13+
using Oci.ApigatewayService.Models;
14+
15+
namespace Oci.ApigatewayService.Cmdlets
16+
{
17+
[Cmdlet("Get", "OCIApigatewayApiDeploymentSpecification")]
18+
[OutputType(new System.Type[] { typeof(Oci.ApigatewayService.Models.ApiSpecification), typeof(Oci.ApigatewayService.Responses.GetApiDeploymentSpecificationResponse) })]
19+
public class GetOCIApigatewayApiDeploymentSpecification : OCIApiGatewayCmdlet
20+
{
21+
[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The ocid of the API.")]
22+
public string ApiId { get; set; }
23+
24+
[Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request id for tracing.")]
25+
public string OpcRequestId { get; set; }
26+
27+
[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.")]
28+
public string IfMatch { get; set; }
29+
30+
protected override void ProcessRecord()
31+
{
32+
base.ProcessRecord();
33+
GetApiDeploymentSpecificationRequest request;
34+
35+
try
36+
{
37+
request = new GetApiDeploymentSpecificationRequest
38+
{
39+
ApiId = ApiId,
40+
OpcRequestId = OpcRequestId,
41+
IfMatch = IfMatch
42+
};
43+
44+
response = client.GetApiDeploymentSpecification(request).GetAwaiter().GetResult();
45+
WriteOutput(response, response.ApiSpecification);
46+
FinishProcessing(response);
47+
}
48+
catch (Exception ex)
49+
{
50+
TerminatingErrorDuringExecution(ex);
51+
}
52+
}
53+
54+
protected override void StopProcessing()
55+
{
56+
base.StopProcessing();
57+
TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted"));
58+
}
59+
60+
private GetApiDeploymentSpecificationResponse response;
61+
}
62+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
/*
2+
* NOTE: Generated using OracleSDKGenerator, API Version: 20190501
3+
* DO NOT EDIT this file manually.
4+
*
5+
* Copyright (c) 2020, 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.ApigatewayService.Requests;
12+
using Oci.ApigatewayService.Responses;
13+
using Oci.ApigatewayService.Models;
14+
15+
namespace Oci.ApigatewayService.Cmdlets
16+
{
17+
[Cmdlet("Get", "OCIApigatewayApiValidations")]
18+
[OutputType(new System.Type[] { typeof(Oci.ApigatewayService.Models.ApiValidations), typeof(Oci.ApigatewayService.Responses.GetApiValidationsResponse) })]
19+
public class GetOCIApigatewayApiValidations : OCIApiGatewayCmdlet
20+
{
21+
[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The ocid of the API.")]
22+
public string ApiId { get; set; }
23+
24+
[Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request id for tracing.")]
25+
public string OpcRequestId { get; set; }
26+
27+
[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.")]
28+
public string IfMatch { get; set; }
29+
30+
protected override void ProcessRecord()
31+
{
32+
base.ProcessRecord();
33+
GetApiValidationsRequest request;
34+
35+
try
36+
{
37+
request = new GetApiValidationsRequest
38+
{
39+
ApiId = ApiId,
40+
OpcRequestId = OpcRequestId,
41+
IfMatch = IfMatch
42+
};
43+
44+
response = client.GetApiValidations(request).GetAwaiter().GetResult();
45+
WriteOutput(response, response.ApiValidations);
46+
FinishProcessing(response);
47+
}
48+
catch (Exception ex)
49+
{
50+
TerminatingErrorDuringExecution(ex);
51+
}
52+
}
53+
54+
protected override void StopProcessing()
55+
{
56+
base.StopProcessing();
57+
TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted"));
58+
}
59+
60+
private GetApiValidationsResponse response;
61+
}
62+
}

0 commit comments

Comments
 (0)