Skip to content

Commit d8d9bdc

Browse files
authored
Releasing version 10.1.0
Releasing version 10.1.0
2 parents e732c02 + b4ac85e commit d8d9bdc

File tree

145 files changed

+6204
-261
lines changed

Some content is hidden

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

145 files changed

+6204
-261
lines changed

Analytics/OCI.PSModules.Analytics.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: 3/1/2021
6+
# Generated on: 03/04/2021
77
#
88

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

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

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: 3/1/2021
6+
# Generated on: 03/04/2021
77
#
88

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

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

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

Apigateway/OCI.PSModules.Apigateway.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: 3/1/2021
6+
# Generated on: 03/04/2021
77
#
88

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

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

5656
# Assemblies that must be loaded prior to importing this module
5757
RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Apigateway.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: 20200630
3+
* DO NOT EDIT this file manually.
4+
*
5+
* Copyright (c) 2020, 2021, 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.ApmcontrolplaneService.Requests;
12+
using Oci.ApmcontrolplaneService.Responses;
13+
using Oci.ApmcontrolplaneService.Models;
14+
using Oci.Common.Waiters;
15+
16+
namespace Oci.ApmcontrolplaneService.Cmdlets
17+
{
18+
[Cmdlet("Get", "OCIApmcontrolplaneApmDomain", DefaultParameterSetName = Default)]
19+
[OutputType(new System.Type[] { typeof(Oci.ApmcontrolplaneService.Models.ApmDomain), typeof(Oci.ApmcontrolplaneService.Responses.GetApmDomainResponse) })]
20+
public class GetOCIApmcontrolplaneApmDomain : OCIApmDomainCmdlet
21+
{
22+
23+
[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"OCID of the APM Domain", ParameterSetName = LifecycleStateParamSet)]
24+
[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"OCID of the APM Domain", ParameterSetName = Default)]
25+
public string ApmDomainId { 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.ApmcontrolplaneService.Models.LifecycleStates[] 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+
GetApmDomainRequest request;
45+
46+
try
47+
{
48+
request = new GetApmDomainRequest
49+
{
50+
ApmDomainId = ApmDomainId,
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(GetApmDomainRequest 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.ForApmDomain(request, waiterConfig, WaitForLifecycleState).Execute();
81+
break;
82+
83+
case Default:
84+
response = client.GetApmDomain(request).GetAwaiter().GetResult();
85+
break;
86+
}
87+
WriteOutput(response, response.ApmDomain);
88+
}
89+
90+
private GetApmDomainResponse response;
91+
private const string LifecycleStateParamSet = "LifecycleStateParamSet";
92+
private const string Default = "Default";
93+
}
94+
}
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
/*
2+
* NOTE: Generated using OracleSDKGenerator, API Version: 20200630
3+
* DO NOT EDIT this file manually.
4+
*
5+
* Copyright (c) 2020, 2021, 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.ApmcontrolplaneService.Requests;
12+
using Oci.ApmcontrolplaneService.Responses;
13+
using Oci.ApmcontrolplaneService.Models;
14+
15+
namespace Oci.ApmcontrolplaneService.Cmdlets
16+
{
17+
[Cmdlet("Get", "OCIApmcontrolplaneApmDomainWorkRequestsList")]
18+
[OutputType(new System.Type[] { typeof(Oci.ApmcontrolplaneService.Models.WorkRequest), typeof(Oci.ApmcontrolplaneService.Responses.ListApmDomainWorkRequestsResponse) })]
19+
public class GetOCIApmcontrolplaneApmDomainWorkRequestsList : OCIApmDomainCmdlet
20+
{
21+
[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"OCID of the APM Domain")]
22+
public string ApmDomainId { get; set; }
23+
24+
[Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")]
25+
public string OpcRequestId { get; set; }
26+
27+
protected override void ProcessRecord()
28+
{
29+
base.ProcessRecord();
30+
ListApmDomainWorkRequestsRequest request;
31+
32+
try
33+
{
34+
request = new ListApmDomainWorkRequestsRequest
35+
{
36+
ApmDomainId = ApmDomainId,
37+
OpcRequestId = OpcRequestId
38+
};
39+
40+
response = client.ListApmDomainWorkRequests(request).GetAwaiter().GetResult();
41+
WriteOutput(response, response.Items, true);
42+
FinishProcessing(response);
43+
}
44+
catch (Exception ex)
45+
{
46+
TerminatingErrorDuringExecution(ex);
47+
}
48+
}
49+
50+
protected override void StopProcessing()
51+
{
52+
base.StopProcessing();
53+
TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted"));
54+
}
55+
56+
private ListApmDomainWorkRequestsResponse response;
57+
}
58+
}
Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
/*
2+
* NOTE: Generated using OracleSDKGenerator, API Version: 20200630
3+
* DO NOT EDIT this file manually.
4+
*
5+
* Copyright (c) 2020, 2021, 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.ApmcontrolplaneService.Requests;
14+
using Oci.ApmcontrolplaneService.Responses;
15+
using Oci.ApmcontrolplaneService.Models;
16+
17+
namespace Oci.ApmcontrolplaneService.Cmdlets
18+
{
19+
[Cmdlet("Get", "OCIApmcontrolplaneApmDomainsList")]
20+
[OutputType(new System.Type[] { typeof(Oci.ApmcontrolplaneService.Models.ApmDomainSummary), typeof(Oci.ApmcontrolplaneService.Responses.ListApmDomainsResponse) })]
21+
public class GetOCIApmcontrolplaneApmDomainsList : OCIApmDomainCmdlet
22+
{
23+
[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The ID of the compartment in which to list resources.")]
24+
public string CompartmentId { get; set; }
25+
26+
[Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only resources that match the entire display name given.")]
27+
public string DisplayName { get; set; }
28+
29+
[Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only resources that match the given life-cycle state.")]
30+
public System.Nullable<Oci.ApmcontrolplaneService.Models.LifecycleStates> LifecycleState { get; set; }
31+
32+
[Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return.", ParameterSetName = LimitSet)]
33+
public System.Nullable<int> Limit { get; set; }
34+
35+
[Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.")]
36+
public string Page { get; set; }
37+
38+
[Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The sort order to use, either 'asc' or 'desc'.")]
39+
public System.Nullable<Oci.ApmcontrolplaneService.Models.SortOrders> SortOrder { get; set; }
40+
41+
[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. If no value is specified timeCreated is default.")]
42+
public System.Nullable<Oci.ApmcontrolplaneService.Requests.ListApmDomainsRequest.SortByEnum> SortBy { get; set; }
43+
44+
[Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")]
45+
public string OpcRequestId { get; set; }
46+
47+
[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Fetches all pages of results.", ParameterSetName = AllPageSet)]
48+
public SwitchParameter All { get; set; }
49+
50+
protected override void ProcessRecord()
51+
{
52+
base.ProcessRecord();
53+
ListApmDomainsRequest request;
54+
55+
try
56+
{
57+
request = new ListApmDomainsRequest
58+
{
59+
CompartmentId = CompartmentId,
60+
DisplayName = DisplayName,
61+
LifecycleState = LifecycleState,
62+
Limit = Limit,
63+
Page = Page,
64+
SortOrder = SortOrder,
65+
SortBy = SortBy,
66+
OpcRequestId = OpcRequestId
67+
};
68+
IEnumerable<ListApmDomainsResponse> responses = GetRequestDelegate().Invoke(request);
69+
foreach (var item in responses)
70+
{
71+
response = item;
72+
WriteOutput(response, response.Items, true);
73+
}
74+
if(!ParameterSetName.Equals(AllPageSet) && !ParameterSetName.Equals(LimitSet) && response.OpcNextPage != null)
75+
{
76+
WriteWarning("This operation supports pagination and not all resources were returned. Re-run using the -All option to auto paginate and list all resources.");
77+
}
78+
FinishProcessing(response);
79+
}
80+
catch (Exception ex)
81+
{
82+
TerminatingErrorDuringExecution(ex);
83+
}
84+
}
85+
86+
protected override void StopProcessing()
87+
{
88+
base.StopProcessing();
89+
TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted"));
90+
}
91+
92+
private RequestDelegate GetRequestDelegate()
93+
{
94+
IEnumerable<ListApmDomainsResponse> DefaultRequest(ListApmDomainsRequest request) => Enumerable.Repeat(client.ListApmDomains(request).GetAwaiter().GetResult(), 1);
95+
if (ParameterSetName.Equals(AllPageSet))
96+
{
97+
return req => client.Paginators.ListApmDomainsResponseEnumerator(req);
98+
}
99+
return DefaultRequest;
100+
}
101+
102+
private ListApmDomainsResponse response;
103+
private delegate IEnumerable<ListApmDomainsResponse> RequestDelegate(ListApmDomainsRequest request);
104+
private const string AllPageSet = "AllPages";
105+
private const string LimitSet = "Limit";
106+
}
107+
}

0 commit comments

Comments
 (0)