Skip to content

Commit

Permalink
Releasing version 10.1.0
Browse files Browse the repository at this point in the history
Releasing version 10.1.0
  • Loading branch information
joshunter authored Mar 9, 2021
2 parents e732c02 + b4ac85e commit d8d9bdc
Show file tree
Hide file tree
Showing 145 changed files with 6,204 additions and 261 deletions.
6 changes: 3 additions & 3 deletions Analytics/OCI.PSModules.Analytics.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# Generated by: Oracle Cloud Infrastructure
#
# Generated on: 3/1/2021
# Generated on: 03/04/2021
#

@{
Expand All @@ -12,7 +12,7 @@
RootModule = 'assemblies/OCI.PSModules.Analytics.dll'

# Version number of this module.
ModuleVersion = '10.0.0'
ModuleVersion = '10.1.0'

# Supported PSEditions
CompatiblePSEditions = 'Core'
Expand Down Expand Up @@ -51,7 +51,7 @@ PowerShellVersion = '6.0'
# ProcessorArchitecture = ''

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

# Assemblies that must be loaded prior to importing this module
RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Analytics.dll'
Expand Down
6 changes: 3 additions & 3 deletions Announcementsservice/OCI.PSModules.Announcementsservice.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# Generated by: Oracle Cloud Infrastructure
#
# Generated on: 3/1/2021
# Generated on: 03/04/2021
#

@{
Expand All @@ -12,7 +12,7 @@
RootModule = 'assemblies/OCI.PSModules.Announcementsservice.dll'

# Version number of this module.
ModuleVersion = '10.0.0'
ModuleVersion = '10.1.0'

# Supported PSEditions
CompatiblePSEditions = 'Core'
Expand Down Expand Up @@ -51,7 +51,7 @@ PowerShellVersion = '6.0'
# ProcessorArchitecture = ''

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

# Assemblies that must be loaded prior to importing this module
RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Announcementsservice.dll'
Expand Down
6 changes: 3 additions & 3 deletions Apigateway/OCI.PSModules.Apigateway.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# Generated by: Oracle Cloud Infrastructure
#
# Generated on: 3/1/2021
# Generated on: 03/04/2021
#

@{
Expand All @@ -12,7 +12,7 @@
RootModule = 'assemblies/OCI.PSModules.Apigateway.dll'

# Version number of this module.
ModuleVersion = '10.0.0'
ModuleVersion = '10.1.0'

# Supported PSEditions
CompatiblePSEditions = 'Core'
Expand Down Expand Up @@ -51,7 +51,7 @@ PowerShellVersion = '6.0'
# ProcessorArchitecture = ''

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

# Assemblies that must be loaded prior to importing this module
RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Apigateway.dll'
Expand Down
94 changes: 94 additions & 0 deletions Apmcontrolplane/Cmdlets/Get-OCIApmcontrolplaneApmDomain.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
/*
* NOTE: Generated using OracleSDKGenerator, API Version: 20200630
* DO NOT EDIT this file manually.
*
* Copyright (c) 2020, 2021, Oracle and/or its affiliates.
* 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.
*/

using System;
using System.Management.Automation;
using Oci.ApmcontrolplaneService.Requests;
using Oci.ApmcontrolplaneService.Responses;
using Oci.ApmcontrolplaneService.Models;
using Oci.Common.Waiters;

namespace Oci.ApmcontrolplaneService.Cmdlets
{
[Cmdlet("Get", "OCIApmcontrolplaneApmDomain", DefaultParameterSetName = Default)]
[OutputType(new System.Type[] { typeof(Oci.ApmcontrolplaneService.Models.ApmDomain), typeof(Oci.ApmcontrolplaneService.Responses.GetApmDomainResponse) })]
public class GetOCIApmcontrolplaneApmDomain : OCIApmDomainCmdlet
{

[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"OCID of the APM Domain", ParameterSetName = LifecycleStateParamSet)]
[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"OCID of the APM Domain", ParameterSetName = Default)]
public string ApmDomainId { get; set; }


[Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.", ParameterSetName = LifecycleStateParamSet)]
[Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.", ParameterSetName = Default)]
public string OpcRequestId { get; set; }

[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)]
public Oci.ApmcontrolplaneService.Models.LifecycleStates[] WaitForLifecycleState { get; set; }

[Parameter(Mandatory = false, HelpMessage = @"Check every WaitIntervalSeconds to see whether the resource has reached a desired state.", ParameterSetName = LifecycleStateParamSet)]
public int WaitIntervalSeconds { get; set; } = WAIT_INTERVAL_SECONDS;

[Parameter(Mandatory = false, HelpMessage = @"Maximum number of attempts to be made until the resource reaches a desired state.", ParameterSetName = LifecycleStateParamSet)]
public int MaxWaitAttempts { get; set; } = MAX_WAITER_ATTEMPTS;

protected override void ProcessRecord()
{
base.ProcessRecord();
GetApmDomainRequest request;

try
{
request = new GetApmDomainRequest
{
ApmDomainId = ApmDomainId,
OpcRequestId = OpcRequestId
};

HandleOutput(request);
FinishProcessing(response);
}
catch (Exception ex)
{
TerminatingErrorDuringExecution(ex);
}
}

protected override void StopProcessing()
{
base.StopProcessing();
TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted"));
}

private void HandleOutput(GetApmDomainRequest request)
{
var waiterConfig = new WaiterConfiguration
{
MaxAttempts = MaxWaitAttempts,
GetNextDelayInSeconds = (_) => WaitIntervalSeconds
};

switch (ParameterSetName)
{
case LifecycleStateParamSet:
response = client.Waiters.ForApmDomain(request, waiterConfig, WaitForLifecycleState).Execute();
break;

case Default:
response = client.GetApmDomain(request).GetAwaiter().GetResult();
break;
}
WriteOutput(response, response.ApmDomain);
}

private GetApmDomainResponse response;
private const string LifecycleStateParamSet = "LifecycleStateParamSet";
private const string Default = "Default";
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
/*
* NOTE: Generated using OracleSDKGenerator, API Version: 20200630
* DO NOT EDIT this file manually.
*
* Copyright (c) 2020, 2021, Oracle and/or its affiliates.
* 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.
*/

using System;
using System.Management.Automation;
using Oci.ApmcontrolplaneService.Requests;
using Oci.ApmcontrolplaneService.Responses;
using Oci.ApmcontrolplaneService.Models;

namespace Oci.ApmcontrolplaneService.Cmdlets
{
[Cmdlet("Get", "OCIApmcontrolplaneApmDomainWorkRequestsList")]
[OutputType(new System.Type[] { typeof(Oci.ApmcontrolplaneService.Models.WorkRequest), typeof(Oci.ApmcontrolplaneService.Responses.ListApmDomainWorkRequestsResponse) })]
public class GetOCIApmcontrolplaneApmDomainWorkRequestsList : OCIApmDomainCmdlet
{
[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"OCID of the APM Domain")]
public string ApmDomainId { get; set; }

[Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")]
public string OpcRequestId { get; set; }

protected override void ProcessRecord()
{
base.ProcessRecord();
ListApmDomainWorkRequestsRequest request;

try
{
request = new ListApmDomainWorkRequestsRequest
{
ApmDomainId = ApmDomainId,
OpcRequestId = OpcRequestId
};

response = client.ListApmDomainWorkRequests(request).GetAwaiter().GetResult();
WriteOutput(response, response.Items, true);
FinishProcessing(response);
}
catch (Exception ex)
{
TerminatingErrorDuringExecution(ex);
}
}

protected override void StopProcessing()
{
base.StopProcessing();
TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted"));
}

private ListApmDomainWorkRequestsResponse response;
}
}
107 changes: 107 additions & 0 deletions Apmcontrolplane/Cmdlets/Get-OCIApmcontrolplaneApmDomainsList.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
/*
* NOTE: Generated using OracleSDKGenerator, API Version: 20200630
* DO NOT EDIT this file manually.
*
* Copyright (c) 2020, 2021, Oracle and/or its affiliates.
* 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.
*/

using System;
using System.Collections.Generic;
using System.Linq;
using System.Management.Automation;
using Oci.ApmcontrolplaneService.Requests;
using Oci.ApmcontrolplaneService.Responses;
using Oci.ApmcontrolplaneService.Models;

namespace Oci.ApmcontrolplaneService.Cmdlets
{
[Cmdlet("Get", "OCIApmcontrolplaneApmDomainsList")]
[OutputType(new System.Type[] { typeof(Oci.ApmcontrolplaneService.Models.ApmDomainSummary), typeof(Oci.ApmcontrolplaneService.Responses.ListApmDomainsResponse) })]
public class GetOCIApmcontrolplaneApmDomainsList : OCIApmDomainCmdlet
{
[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The ID of the compartment in which to list resources.")]
public string CompartmentId { get; set; }

[Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only resources that match the entire display name given.")]
public string DisplayName { get; set; }

[Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only resources that match the given life-cycle state.")]
public System.Nullable<Oci.ApmcontrolplaneService.Models.LifecycleStates> LifecycleState { get; set; }

[Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return.", ParameterSetName = LimitSet)]
public System.Nullable<int> Limit { get; set; }

[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.")]
public string Page { get; set; }

[Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The sort order to use, either 'asc' or 'desc'.")]
public System.Nullable<Oci.ApmcontrolplaneService.Models.SortOrders> SortOrder { get; set; }

[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.")]
public System.Nullable<Oci.ApmcontrolplaneService.Requests.ListApmDomainsRequest.SortByEnum> SortBy { get; set; }

[Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")]
public string OpcRequestId { get; set; }

[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Fetches all pages of results.", ParameterSetName = AllPageSet)]
public SwitchParameter All { get; set; }

protected override void ProcessRecord()
{
base.ProcessRecord();
ListApmDomainsRequest request;

try
{
request = new ListApmDomainsRequest
{
CompartmentId = CompartmentId,
DisplayName = DisplayName,
LifecycleState = LifecycleState,
Limit = Limit,
Page = Page,
SortOrder = SortOrder,
SortBy = SortBy,
OpcRequestId = OpcRequestId
};
IEnumerable<ListApmDomainsResponse> responses = GetRequestDelegate().Invoke(request);
foreach (var item in responses)
{
response = item;
WriteOutput(response, response.Items, true);
}
if(!ParameterSetName.Equals(AllPageSet) && !ParameterSetName.Equals(LimitSet) && response.OpcNextPage != null)
{
WriteWarning("This operation supports pagination and not all resources were returned. Re-run using the -All option to auto paginate and list all resources.");
}
FinishProcessing(response);
}
catch (Exception ex)
{
TerminatingErrorDuringExecution(ex);
}
}

protected override void StopProcessing()
{
base.StopProcessing();
TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted"));
}

private RequestDelegate GetRequestDelegate()
{
IEnumerable<ListApmDomainsResponse> DefaultRequest(ListApmDomainsRequest request) => Enumerable.Repeat(client.ListApmDomains(request).GetAwaiter().GetResult(), 1);
if (ParameterSetName.Equals(AllPageSet))
{
return req => client.Paginators.ListApmDomainsResponseEnumerator(req);
}
return DefaultRequest;
}

private ListApmDomainsResponse response;
private delegate IEnumerable<ListApmDomainsResponse> RequestDelegate(ListApmDomainsRequest request);
private const string AllPageSet = "AllPages";
private const string LimitSet = "Limit";
}
}
Loading

0 comments on commit d8d9bdc

Please sign in to comment.