diff --git a/Analytics/OCI.PSModules.Analytics.psd1 b/Analytics/OCI.PSModules.Analytics.psd1 index 648348d25..4fccb1d3c 100644 --- a/Analytics/OCI.PSModules.Analytics.psd1 +++ b/Analytics/OCI.PSModules.Analytics.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 3/1/2021 +# Generated on: 03/04/2021 # @{ @@ -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' @@ -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' diff --git a/Announcementsservice/OCI.PSModules.Announcementsservice.psd1 b/Announcementsservice/OCI.PSModules.Announcementsservice.psd1 index bb0fbd73f..2acb075ff 100644 --- a/Announcementsservice/OCI.PSModules.Announcementsservice.psd1 +++ b/Announcementsservice/OCI.PSModules.Announcementsservice.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 3/1/2021 +# Generated on: 03/04/2021 # @{ @@ -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' @@ -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' diff --git a/Apigateway/OCI.PSModules.Apigateway.psd1 b/Apigateway/OCI.PSModules.Apigateway.psd1 index b47b20a83..fd42d38a3 100644 --- a/Apigateway/OCI.PSModules.Apigateway.psd1 +++ b/Apigateway/OCI.PSModules.Apigateway.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 3/1/2021 +# Generated on: 03/04/2021 # @{ @@ -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' @@ -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' diff --git a/Apmcontrolplane/Cmdlets/Get-OCIApmcontrolplaneApmDomain.cs b/Apmcontrolplane/Cmdlets/Get-OCIApmcontrolplaneApmDomain.cs new file mode 100644 index 000000000..ebf97198f --- /dev/null +++ b/Apmcontrolplane/Cmdlets/Get-OCIApmcontrolplaneApmDomain.cs @@ -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"; + } +} diff --git a/Apmcontrolplane/Cmdlets/Get-OCIApmcontrolplaneApmDomainWorkRequestsList.cs b/Apmcontrolplane/Cmdlets/Get-OCIApmcontrolplaneApmDomainWorkRequestsList.cs new file mode 100644 index 000000000..f6f4ee3bf --- /dev/null +++ b/Apmcontrolplane/Cmdlets/Get-OCIApmcontrolplaneApmDomainWorkRequestsList.cs @@ -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; + } +} diff --git a/Apmcontrolplane/Cmdlets/Get-OCIApmcontrolplaneApmDomainsList.cs b/Apmcontrolplane/Cmdlets/Get-OCIApmcontrolplaneApmDomainsList.cs new file mode 100644 index 000000000..7b7262584 --- /dev/null +++ b/Apmcontrolplane/Cmdlets/Get-OCIApmcontrolplaneApmDomainsList.cs @@ -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 LifecycleState { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return.", ParameterSetName = LimitSet)] + public System.Nullable 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 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 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 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 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 RequestDelegate(ListApmDomainsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Apmcontrolplane/Cmdlets/Get-OCIApmcontrolplaneDataKeysList.cs b/Apmcontrolplane/Cmdlets/Get-OCIApmcontrolplaneDataKeysList.cs new file mode 100644 index 000000000..a4eb4738e --- /dev/null +++ b/Apmcontrolplane/Cmdlets/Get-OCIApmcontrolplaneDataKeysList.cs @@ -0,0 +1,62 @@ +/* + * 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", "OCIApmcontrolplaneDataKeysList")] + [OutputType(new System.Type[] { typeof(Oci.ApmcontrolplaneService.Models.DataKeySummary), typeof(Oci.ApmcontrolplaneService.Responses.ListDataKeysResponse) })] + public class GetOCIApmcontrolplaneDataKeysList : OCIApmDomainCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"OCID of the APM Domain")] + public string ApmDomainId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Data key type.")] + public System.Nullable DataKeyType { 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(); + ListDataKeysRequest request; + + try + { + request = new ListDataKeysRequest + { + ApmDomainId = ApmDomainId, + DataKeyType = DataKeyType, + OpcRequestId = OpcRequestId + }; + + response = client.ListDataKeys(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 ListDataKeysResponse response; + } +} diff --git a/Apmcontrolplane/Cmdlets/Get-OCIApmcontrolplaneWorkRequest.cs b/Apmcontrolplane/Cmdlets/Get-OCIApmcontrolplaneWorkRequest.cs new file mode 100644 index 000000000..634026d05 --- /dev/null +++ b/Apmcontrolplane/Cmdlets/Get-OCIApmcontrolplaneWorkRequest.cs @@ -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", "OCIApmcontrolplaneWorkRequest", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.ApmcontrolplaneService.Models.WorkRequest), typeof(Oci.ApmcontrolplaneService.Responses.GetWorkRequestResponse) })] + public class GetOCIApmcontrolplaneWorkRequest : OCIApmDomainCmdlet + { + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The ID of the asynchronous request.", ParameterSetName = StatusParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The ID of the asynchronous request.", ParameterSetName = Default)] + public string WorkRequestId { get; set; } + + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.", ParameterSetName = StatusParamSet)] + [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 = StatusParamSet)] + public Oci.ApmcontrolplaneService.Models.OperationStatus[] WaitForStatus { get; set; } + + [Parameter(Mandatory = false, HelpMessage = @"Check every WaitIntervalSeconds to see whether the resource has reached a desired state.", ParameterSetName = StatusParamSet)] + 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 = StatusParamSet)] + public int MaxWaitAttempts { get; set; } = MAX_WAITER_ATTEMPTS; + + protected override void ProcessRecord() + { + base.ProcessRecord(); + GetWorkRequestRequest request; + + try + { + request = new GetWorkRequestRequest + { + WorkRequestId = WorkRequestId, + 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(GetWorkRequestRequest request) + { + var waiterConfig = new WaiterConfiguration + { + MaxAttempts = MaxWaitAttempts, + GetNextDelayInSeconds = (_) => WaitIntervalSeconds + }; + + switch (ParameterSetName) + { + case StatusParamSet: + response = client.Waiters.ForWorkRequest(request, waiterConfig, WaitForStatus).Execute(); + break; + + case Default: + response = client.GetWorkRequest(request).GetAwaiter().GetResult(); + break; + } + WriteOutput(response, response.WorkRequest); + } + + private GetWorkRequestResponse response; + private const string StatusParamSet = "StatusParamSet"; + private const string Default = "Default"; + } +} diff --git a/Apmcontrolplane/Cmdlets/Get-OCIApmcontrolplaneWorkRequestErrorsList.cs b/Apmcontrolplane/Cmdlets/Get-OCIApmcontrolplaneWorkRequestErrorsList.cs new file mode 100644 index 000000000..b2f10e521 --- /dev/null +++ b/Apmcontrolplane/Cmdlets/Get-OCIApmcontrolplaneWorkRequestErrorsList.cs @@ -0,0 +1,91 @@ +/* + * 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", "OCIApmcontrolplaneWorkRequestErrorsList")] + [OutputType(new System.Type[] { typeof(Oci.ApmcontrolplaneService.Models.WorkRequestError), typeof(Oci.ApmcontrolplaneService.Responses.ListWorkRequestErrorsResponse) })] + public class GetOCIApmcontrolplaneWorkRequestErrorsList : OCIApmDomainCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The ID of the asynchronous request.")] + public string WorkRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { 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 maximum number of items to return.", ParameterSetName = LimitSet)] + public System.Nullable Limit { 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(); + ListWorkRequestErrorsRequest request; + + try + { + request = new ListWorkRequestErrorsRequest + { + WorkRequestId = WorkRequestId, + OpcRequestId = OpcRequestId, + Page = Page, + Limit = Limit + }; + IEnumerable 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 DefaultRequest(ListWorkRequestErrorsRequest request) => Enumerable.Repeat(client.ListWorkRequestErrors(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListWorkRequestErrorsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListWorkRequestErrorsResponse response; + private delegate IEnumerable RequestDelegate(ListWorkRequestErrorsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Apmcontrolplane/Cmdlets/Get-OCIApmcontrolplaneWorkRequestLogsList.cs b/Apmcontrolplane/Cmdlets/Get-OCIApmcontrolplaneWorkRequestLogsList.cs new file mode 100644 index 000000000..9da46ca79 --- /dev/null +++ b/Apmcontrolplane/Cmdlets/Get-OCIApmcontrolplaneWorkRequestLogsList.cs @@ -0,0 +1,91 @@ +/* + * 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", "OCIApmcontrolplaneWorkRequestLogsList")] + [OutputType(new System.Type[] { typeof(Oci.ApmcontrolplaneService.Models.WorkRequestLogEntry), typeof(Oci.ApmcontrolplaneService.Responses.ListWorkRequestLogsResponse) })] + public class GetOCIApmcontrolplaneWorkRequestLogsList : OCIApmDomainCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The ID of the asynchronous request.")] + public string WorkRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { 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 maximum number of items to return.", ParameterSetName = LimitSet)] + public System.Nullable Limit { 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(); + ListWorkRequestLogsRequest request; + + try + { + request = new ListWorkRequestLogsRequest + { + WorkRequestId = WorkRequestId, + OpcRequestId = OpcRequestId, + Page = Page, + Limit = Limit + }; + IEnumerable 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 DefaultRequest(ListWorkRequestLogsRequest request) => Enumerable.Repeat(client.ListWorkRequestLogs(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListWorkRequestLogsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListWorkRequestLogsResponse response; + private delegate IEnumerable RequestDelegate(ListWorkRequestLogsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Apmcontrolplane/Cmdlets/Get-OCIApmcontrolplaneWorkRequestsList.cs b/Apmcontrolplane/Cmdlets/Get-OCIApmcontrolplaneWorkRequestsList.cs new file mode 100644 index 000000000..18c47ba2d --- /dev/null +++ b/Apmcontrolplane/Cmdlets/Get-OCIApmcontrolplaneWorkRequestsList.cs @@ -0,0 +1,91 @@ +/* + * 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", "OCIApmcontrolplaneWorkRequestsList")] + [OutputType(new System.Type[] { typeof(Oci.ApmcontrolplaneService.Models.WorkRequest), typeof(Oci.ApmcontrolplaneService.Responses.ListWorkRequestsResponse) })] + public class GetOCIApmcontrolplaneWorkRequestsList : 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 = @"The client request ID for tracing.")] + public string OpcRequestId { 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 maximum number of items to return.", ParameterSetName = LimitSet)] + public System.Nullable Limit { 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(); + ListWorkRequestsRequest request; + + try + { + request = new ListWorkRequestsRequest + { + CompartmentId = CompartmentId, + OpcRequestId = OpcRequestId, + Page = Page, + Limit = Limit + }; + IEnumerable 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 DefaultRequest(ListWorkRequestsRequest request) => Enumerable.Repeat(client.ListWorkRequests(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListWorkRequestsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListWorkRequestsResponse response; + private delegate IEnumerable RequestDelegate(ListWorkRequestsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Apmcontrolplane/Cmdlets/Move-OCIApmcontrolplaneApmDomainCompartment.cs b/Apmcontrolplane/Cmdlets/Move-OCIApmcontrolplaneApmDomainCompartment.cs new file mode 100644 index 000000000..8fdb66067 --- /dev/null +++ b/Apmcontrolplane/Cmdlets/Move-OCIApmcontrolplaneApmDomainCompartment.cs @@ -0,0 +1,70 @@ +/* + * 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("Move", "OCIApmcontrolplaneApmDomainCompartment")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.ApmcontrolplaneService.Responses.ChangeApmDomainCompartmentResponse) })] + public class MoveOCIApmcontrolplaneApmDomainCompartment : OCIApmDomainCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"OCID of the APM Domain")] + public string ApmDomainId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The information to be used in changing compartment.")] + public ChangeApmDomainCompartmentDetails ChangeApmDomainCompartmentDetails { get; set; } + + [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.")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + + [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.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ChangeApmDomainCompartmentRequest request; + + try + { + request = new ChangeApmDomainCompartmentRequest + { + ApmDomainId = ApmDomainId, + ChangeApmDomainCompartmentDetails = ChangeApmDomainCompartmentDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId, + OpcRetryToken = OpcRetryToken + }; + + response = client.ChangeApmDomainCompartment(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private ChangeApmDomainCompartmentResponse response; + } +} diff --git a/Apmcontrolplane/Cmdlets/New-OCIApmcontrolplaneApmDomain.cs b/Apmcontrolplane/Cmdlets/New-OCIApmcontrolplaneApmDomain.cs new file mode 100644 index 000000000..7f8dbf814 --- /dev/null +++ b/Apmcontrolplane/Cmdlets/New-OCIApmcontrolplaneApmDomain.cs @@ -0,0 +1,62 @@ +/* + * 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("New", "OCIApmcontrolplaneApmDomain")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.ApmcontrolplaneService.Responses.CreateApmDomainResponse) })] + public class NewOCIApmcontrolplaneApmDomain : OCIApmDomainCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Details for the new APM Domain.")] + public CreateApmDomainDetails CreateApmDomainDetails { get; set; } + + [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.")] + public string OpcRetryToken { 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(); + CreateApmDomainRequest request; + + try + { + request = new CreateApmDomainRequest + { + CreateApmDomainDetails = CreateApmDomainDetails, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId + }; + + response = client.CreateApmDomain(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private CreateApmDomainResponse response; + } +} diff --git a/Apmcontrolplane/Cmdlets/New-OCIApmcontrolplaneDataKeys.cs b/Apmcontrolplane/Cmdlets/New-OCIApmcontrolplaneDataKeys.cs new file mode 100644 index 000000000..95336dd96 --- /dev/null +++ b/Apmcontrolplane/Cmdlets/New-OCIApmcontrolplaneDataKeys.cs @@ -0,0 +1,66 @@ +/* + * 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("New", "OCIApmcontrolplaneDataKeys")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.ApmcontrolplaneService.Responses.GenerateDataKeysResponse) })] + public class NewOCIApmcontrolplaneDataKeys : OCIApmDomainCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"List of new Data Keys to be generated.")] + public System.Collections.Generic.List GenerateDataKeysListDetails { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"OCID of the APM Domain")] + public string ApmDomainId { get; set; } + + [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.")] + public string IfMatch { 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(); + GenerateDataKeysRequest request; + + try + { + request = new GenerateDataKeysRequest + { + GenerateDataKeysListDetails = GenerateDataKeysListDetails, + ApmDomainId = ApmDomainId, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.GenerateDataKeys(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private GenerateDataKeysResponse response; + } +} diff --git a/Apmcontrolplane/Cmdlets/OCIApmDomainCmdlet.cs b/Apmcontrolplane/Cmdlets/OCIApmDomainCmdlet.cs new file mode 100644 index 000000000..23c25a356 --- /dev/null +++ b/Apmcontrolplane/Cmdlets/OCIApmDomainCmdlet.cs @@ -0,0 +1,86 @@ +/* + * 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.Common.Retry; +using Oci.ApmcontrolplaneService; + +namespace Oci.ApmcontrolplaneService.Cmdlets +{ + public abstract class OCIApmDomainCmdlet : Oci.PSModules.Common.Cmdlets.OCICmdlet + { + + protected override void BeginProcessing() + { + base.BeginProcessing(); + try + { + bool noretry = AvoidRetry(); + WriteDebug($"Retry strategy : {!noretry}"); + retryConfig = (noretry) ? null : new RetryConfiguration(); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + try + { + client?.Dispose(); + int timeout = GetPreferredTimeout(); + WriteDebug($"Cmdlet Timeout : {timeout} milliseconds."); + client = new ApmDomainClient(AuthProvider, new Oci.Common.ClientConfiguration + { + RetryConfiguration = retryConfig, + TimeoutMillis = timeout, + ClientUserAgent = PSUserAgent + }); + string region = GetPreferredRegion(); + if (region != null) + { + WriteDebug("Choosing Region:" + region); + client.SetRegion(region); + } + if (Endpoint != null) + { + WriteDebug("Choosing Endpoint:" + Endpoint); + client.SetEndpoint(Endpoint); + } + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + } + + protected override void EndProcessing() + { + base.EndProcessing(); + client.Dispose(); + } + + protected override void TerminatingErrorDuringExecution(Exception ex) + { + client?.Dispose(); + base.TerminatingErrorDuringExecution(ex); + } + + protected ApmDomainClient client; + private RetryConfiguration retryConfig; + } +} \ No newline at end of file diff --git a/Apmcontrolplane/Cmdlets/Remove-OCIApmcontrolplaneApmDomain.cs b/Apmcontrolplane/Cmdlets/Remove-OCIApmcontrolplaneApmDomain.cs new file mode 100644 index 000000000..17e717228 --- /dev/null +++ b/Apmcontrolplane/Cmdlets/Remove-OCIApmcontrolplaneApmDomain.cs @@ -0,0 +1,71 @@ +/* + * 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("Remove", "OCIApmcontrolplaneApmDomain", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.ApmcontrolplaneService.Responses.DeleteApmDomainResponse) })] + public class RemoveOCIApmcontrolplaneApmDomain : OCIApmDomainCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"OCID of the APM Domain")] + public string ApmDomainId { get; set; } + + [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.")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "Ignore confirmation and force the Cmdlet to complete action.")] + public SwitchParameter Force { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + + if (!ConfirmDelete("OCIApmcontrolplaneApmDomain", "Remove")) + { + return; + } + + DeleteApmDomainRequest request; + + try + { + request = new DeleteApmDomainRequest + { + ApmDomainId = ApmDomainId, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.DeleteApmDomain(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private DeleteApmDomainResponse response; + } +} diff --git a/Apmcontrolplane/Cmdlets/Remove-OCIApmcontrolplaneDataKeys.cs b/Apmcontrolplane/Cmdlets/Remove-OCIApmcontrolplaneDataKeys.cs new file mode 100644 index 000000000..c8833aed3 --- /dev/null +++ b/Apmcontrolplane/Cmdlets/Remove-OCIApmcontrolplaneDataKeys.cs @@ -0,0 +1,66 @@ +/* + * 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("Remove", "OCIApmcontrolplaneDataKeys")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.ApmcontrolplaneService.Responses.RemoveDataKeysResponse) })] + public class RemoveOCIApmcontrolplaneDataKeys : OCIApmDomainCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"OCID of the APM Domain")] + public string ApmDomainId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"List of Data Keys to be removed.")] + public System.Collections.Generic.List RemoveDataKeysListDetails { get; set; } + + [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.")] + public string IfMatch { 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(); + RemoveDataKeysRequest request; + + try + { + request = new RemoveDataKeysRequest + { + ApmDomainId = ApmDomainId, + RemoveDataKeysListDetails = RemoveDataKeysListDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.RemoveDataKeys(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RemoveDataKeysResponse response; + } +} diff --git a/Apmcontrolplane/Cmdlets/Update-OCIApmcontrolplaneApmDomain.cs b/Apmcontrolplane/Cmdlets/Update-OCIApmcontrolplaneApmDomain.cs new file mode 100644 index 000000000..9bf365034 --- /dev/null +++ b/Apmcontrolplane/Cmdlets/Update-OCIApmcontrolplaneApmDomain.cs @@ -0,0 +1,66 @@ +/* + * 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("Update", "OCIApmcontrolplaneApmDomain")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.ApmcontrolplaneService.Responses.UpdateApmDomainResponse) })] + public class UpdateOCIApmcontrolplaneApmDomain : OCIApmDomainCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"OCID of the APM Domain")] + public string ApmDomainId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The information to be updated for the APM Domain.")] + public UpdateApmDomainDetails UpdateApmDomainDetails { get; set; } + + [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.")] + public string IfMatch { 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(); + UpdateApmDomainRequest request; + + try + { + request = new UpdateApmDomainRequest + { + ApmDomainId = ApmDomainId, + UpdateApmDomainDetails = UpdateApmDomainDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.UpdateApmDomain(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private UpdateApmDomainResponse response; + } +} diff --git a/Apmcontrolplane/OCI.PSModules.Apmcontrolplane.csproj b/Apmcontrolplane/OCI.PSModules.Apmcontrolplane.csproj new file mode 100644 index 000000000..778a7a40a --- /dev/null +++ b/Apmcontrolplane/OCI.PSModules.Apmcontrolplane.csproj @@ -0,0 +1,23 @@ + + + + + netstandard2.0 + OCI.PSModules.Apmcontrolplane + OCI.PSModules.Apmcontrolplane + Oracle Cloud Infrastructure + Oracle + 8.0 + Oracle;OCI;Cloud;oci-sdk;OracleCloudInfrastructure;Apmcontrolplane + Apmcontrolplane Service + + + + + + + + + + + diff --git a/Apmcontrolplane/OCI.PSModules.Apmcontrolplane.psd1 b/Apmcontrolplane/OCI.PSModules.Apmcontrolplane.psd1 new file mode 100644 index 000000000..57c7b3cc3 --- /dev/null +++ b/Apmcontrolplane/OCI.PSModules.Apmcontrolplane.psd1 @@ -0,0 +1,144 @@ +# +# Module manifest for module 'OCI.PSModules.Apmcontrolplane' +# +# Generated by: Oracle Cloud Infrastructure +# +# Generated on: 03/04/2021 +# + +@{ + +# Script module or binary module file associated with this manifest. +RootModule = 'assemblies/OCI.PSModules.Apmcontrolplane.dll' + +# Version number of this module. +ModuleVersion = '10.1.0' + +# Supported PSEditions +CompatiblePSEditions = 'Core' + +# ID used to uniquely identify this module +GUID = '2656b809-7098-428e-b605-696525730fec' + +# Author of this module +Author = 'Oracle Cloud Infrastructure' + +# Company or vendor of this module +CompanyName = 'Oracle Corporation' + +# Copyright statement for this module +Copyright = '(c) Oracle Cloud Infrastructure. All rights reserved.' + +# Description of the functionality provided by this module +Description = 'This modules provides Cmdlets for OCI Apmcontrolplane Service' + +# Minimum version of the PowerShell engine required by this module +PowerShellVersion = '6.0' + +# Name of the PowerShell host required by this module +# PowerShellHostName = '' + +# Minimum version of the PowerShell host required by this module +# PowerShellHostVersion = '' + +# Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only. +# DotNetFrameworkVersion = '' + +# Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only. +# ClrVersion = '' + +# Processor architecture (None, X86, Amd64) required by this module +# 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.1.0'; }) + +# Assemblies that must be loaded prior to importing this module +RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Apmcontrolplane.dll' + +# Script files (.ps1) that are run in the caller's environment prior to importing this module. +# ScriptsToProcess = @() + +# Type files (.ps1xml) to be loaded when importing this module +# TypesToProcess = @() + +# Format files (.ps1xml) to be loaded when importing this module +# FormatsToProcess = @() + +# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess +# NestedModules = @() + +# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export. +FunctionsToExport = '*' + +# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. +CmdletsToExport = 'Get-OCIApmcontrolplaneApmDomain', + 'Get-OCIApmcontrolplaneApmDomainsList', + 'Get-OCIApmcontrolplaneApmDomainWorkRequestsList', + 'Get-OCIApmcontrolplaneDataKeysList', + 'Get-OCIApmcontrolplaneWorkRequest', + 'Get-OCIApmcontrolplaneWorkRequestErrorsList', + 'Get-OCIApmcontrolplaneWorkRequestLogsList', + 'Get-OCIApmcontrolplaneWorkRequestsList', + 'Move-OCIApmcontrolplaneApmDomainCompartment', + 'New-OCIApmcontrolplaneApmDomain', 'New-OCIApmcontrolplaneDataKeys', + 'Remove-OCIApmcontrolplaneApmDomain', + 'Remove-OCIApmcontrolplaneDataKeys', + 'Update-OCIApmcontrolplaneApmDomain' + +# Variables to export from this module +VariablesToExport = '*' + +# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export. +AliasesToExport = '*' + +# DSC resources to export from this module +# DscResourcesToExport = @() + +# List of all modules packaged with this module +# ModuleList = @() + +# List of all files packaged with this module +# FileList = @() + +# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell. +PrivateData = @{ + + PSData = @{ + + # Tags applied to this module. These help with module discovery in online galleries. + Tags = 'PSEdition_Core','Windows','Linux','macOS','Oracle','OCI','Cloud','OracleCloudInfrastructure','Apmcontrolplane' + + # A URL to the license for this module. + LicenseUri = 'https://github.com/oracle/oci-powershell-modules/blob/master/LICENSE.txt' + + # A URL to the main website for this project. + ProjectUri = 'https://github.com/oracle/oci-powershell-modules/' + + # A URL to an icon representing this module. + IconUri = 'https://github.com/oracle/oci-powershell-modules/blob/master/icon.png' + + # ReleaseNotes of this module + ReleaseNotes = 'https://github.com/oracle/oci-powershell-modules/blob/master/CHANGELOG.md' + + # Prerelease string of this module + # Prerelease = '' + + # Flag to indicate whether the module requires explicit user acceptance for install/update/save + # RequireLicenseAcceptance = $false + + # External dependent modules of this module + # ExternalModuleDependencies = @() + + } # End of PSData hashtable + + } # End of PrivateData hashtable + +# HelpInfo URI of this module +# HelpInfoURI = '' + +# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix. +# DefaultCommandPrefix = '' + +} + diff --git a/Apmsynthetics/Cmdlets/Get-OCIApmsyntheticsMonitor.cs b/Apmsynthetics/Cmdlets/Get-OCIApmsyntheticsMonitor.cs new file mode 100644 index 000000000..bf214dcab --- /dev/null +++ b/Apmsynthetics/Cmdlets/Get-OCIApmsyntheticsMonitor.cs @@ -0,0 +1,62 @@ +/* + * 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.ApmsyntheticsService.Requests; +using Oci.ApmsyntheticsService.Responses; +using Oci.ApmsyntheticsService.Models; + +namespace Oci.ApmsyntheticsService.Cmdlets +{ + [Cmdlet("Get", "OCIApmsyntheticsMonitor")] + [OutputType(new System.Type[] { typeof(Oci.ApmsyntheticsService.Models.Monitor), typeof(Oci.ApmsyntheticsService.Responses.GetMonitorResponse) })] + public class GetOCIApmsyntheticsMonitor : OCIApmSyntheticCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The APM domain ID the request is intended for.")] + public string ApmDomainId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The OCID of the monitor.")] + public string MonitorId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] + public string OpcRequestId { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + GetMonitorRequest request; + + try + { + request = new GetMonitorRequest + { + ApmDomainId = ApmDomainId, + MonitorId = MonitorId, + OpcRequestId = OpcRequestId + }; + + response = client.GetMonitor(request).GetAwaiter().GetResult(); + WriteOutput(response, response.Monitor); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private GetMonitorResponse response; + } +} diff --git a/Apmsynthetics/Cmdlets/Get-OCIApmsyntheticsMonitorResult.cs b/Apmsynthetics/Cmdlets/Get-OCIApmsyntheticsMonitorResult.cs new file mode 100644 index 000000000..021907ce2 --- /dev/null +++ b/Apmsynthetics/Cmdlets/Get-OCIApmsyntheticsMonitorResult.cs @@ -0,0 +1,78 @@ +/* + * 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.ApmsyntheticsService.Requests; +using Oci.ApmsyntheticsService.Responses; +using Oci.ApmsyntheticsService.Models; + +namespace Oci.ApmsyntheticsService.Cmdlets +{ + [Cmdlet("Get", "OCIApmsyntheticsMonitorResult")] + [OutputType(new System.Type[] { typeof(Oci.ApmsyntheticsService.Models.MonitorResult), typeof(Oci.ApmsyntheticsService.Responses.GetMonitorResultResponse) })] + public class GetOCIApmsyntheticsMonitorResult : OCIApmSyntheticCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The APM domain ID the request is intended for.")] + public string ApmDomainId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The OCID of the monitor.")] + public string MonitorId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The vantagePoint name.")] + public string VantagePoint { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The result type har or screenshot or log.")] + public string ResultType { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The result content type zip or raw.")] + public string ResultContentType { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The time the object was posted.")] + public string ExecutionTime { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] + public string OpcRequestId { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + GetMonitorResultRequest request; + + try + { + request = new GetMonitorResultRequest + { + ApmDomainId = ApmDomainId, + MonitorId = MonitorId, + VantagePoint = VantagePoint, + ResultType = ResultType, + ResultContentType = ResultContentType, + ExecutionTime = ExecutionTime, + OpcRequestId = OpcRequestId + }; + + response = client.GetMonitorResult(request).GetAwaiter().GetResult(); + WriteOutput(response, response.MonitorResult); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private GetMonitorResultResponse response; + } +} diff --git a/Apmsynthetics/Cmdlets/Get-OCIApmsyntheticsMonitorsList.cs b/Apmsynthetics/Cmdlets/Get-OCIApmsyntheticsMonitorsList.cs new file mode 100644 index 000000000..2f73e086f --- /dev/null +++ b/Apmsynthetics/Cmdlets/Get-OCIApmsyntheticsMonitorsList.cs @@ -0,0 +1,117 @@ +/* + * 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.ApmsyntheticsService.Requests; +using Oci.ApmsyntheticsService.Responses; +using Oci.ApmsyntheticsService.Models; + +namespace Oci.ApmsyntheticsService.Cmdlets +{ + [Cmdlet("Get", "OCIApmsyntheticsMonitorsList")] + [OutputType(new System.Type[] { typeof(Oci.ApmsyntheticsService.Models.MonitorCollection), typeof(Oci.ApmsyntheticsService.Responses.ListMonitorsResponse) })] + public class GetOCIApmsyntheticsMonitorsList : OCIApmSyntheticCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The APM domain ID the request is intended for.")] + public string ApmDomainId { 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 monitors using scriptId.")] + public string ScriptId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only monitors that match the given monitor type. Supported values are SCRIPTED_BROWSER, BROWSER, SCRIPTED_REST and REST.")] + public string MonitorType { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only monitors that match the status given.")] + public System.Nullable Status { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return.", ParameterSetName = LimitSet)] + public System.Nullable Limit { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The maximum number of results per page, or items to return in a paginated ""List"" call. For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + +Example: `50`")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The sort order to use, either ascending (`ASC`) or descending (`DESC`). Default sort order is ascending.")] + public System.Nullable SortOrder { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The field to sort by. Only one sort order may be provided. Default order of displayName is ascending. Default order of timeCreated and timeUpdated is descending. The displayName sort by is case insensitive.")] + public System.Nullable SortBy { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] + 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(); + ListMonitorsRequest request; + + try + { + request = new ListMonitorsRequest + { + ApmDomainId = ApmDomainId, + DisplayName = DisplayName, + ScriptId = ScriptId, + MonitorType = MonitorType, + Status = Status, + Limit = Limit, + Page = Page, + SortOrder = SortOrder, + SortBy = SortBy, + OpcRequestId = OpcRequestId + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.MonitorCollection, 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 DefaultRequest(ListMonitorsRequest request) => Enumerable.Repeat(client.ListMonitors(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListMonitorsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListMonitorsResponse response; + private delegate IEnumerable RequestDelegate(ListMonitorsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Apmsynthetics/Cmdlets/Get-OCIApmsyntheticsPublicVantagePointsList.cs b/Apmsynthetics/Cmdlets/Get-OCIApmsyntheticsPublicVantagePointsList.cs new file mode 100644 index 000000000..70a79a3db --- /dev/null +++ b/Apmsynthetics/Cmdlets/Get-OCIApmsyntheticsPublicVantagePointsList.cs @@ -0,0 +1,109 @@ +/* + * 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.ApmsyntheticsService.Requests; +using Oci.ApmsyntheticsService.Responses; +using Oci.ApmsyntheticsService.Models; + +namespace Oci.ApmsyntheticsService.Cmdlets +{ + [Cmdlet("Get", "OCIApmsyntheticsPublicVantagePointsList")] + [OutputType(new System.Type[] { typeof(Oci.ApmsyntheticsService.Models.PublicVantagePointCollection), typeof(Oci.ApmsyntheticsService.Responses.ListPublicVantagePointsResponse) })] + public class GetOCIApmsyntheticsPublicVantagePointsList : OCIApmSyntheticCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The APM domain ID the request is intended for.")] + public string ApmDomainId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return.", ParameterSetName = LimitSet)] + public System.Nullable Limit { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The maximum number of results per page, or items to return in a paginated ""List"" call. For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + +Example: `50`")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The sort order to use, either ascending (`ASC`) or descending (`DESC`). Default sort order is ascending.")] + public System.Nullable SortOrder { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The field to sort by. You can provide one sort by (`sortBy`). Default order for displayName or name is ascending. The displayName or name sort by is case insensitive.")] + public System.Nullable SortBy { 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 entire name given.")] + public string Name { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] + 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(); + ListPublicVantagePointsRequest request; + + try + { + request = new ListPublicVantagePointsRequest + { + ApmDomainId = ApmDomainId, + Limit = Limit, + Page = Page, + SortOrder = SortOrder, + SortBy = SortBy, + DisplayName = DisplayName, + Name = Name, + OpcRequestId = OpcRequestId + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.PublicVantagePointCollection, 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 DefaultRequest(ListPublicVantagePointsRequest request) => Enumerable.Repeat(client.ListPublicVantagePoints(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListPublicVantagePointsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListPublicVantagePointsResponse response; + private delegate IEnumerable RequestDelegate(ListPublicVantagePointsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Apmsynthetics/Cmdlets/Get-OCIApmsyntheticsScript.cs b/Apmsynthetics/Cmdlets/Get-OCIApmsyntheticsScript.cs new file mode 100644 index 000000000..e78c9cb62 --- /dev/null +++ b/Apmsynthetics/Cmdlets/Get-OCIApmsyntheticsScript.cs @@ -0,0 +1,62 @@ +/* + * 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.ApmsyntheticsService.Requests; +using Oci.ApmsyntheticsService.Responses; +using Oci.ApmsyntheticsService.Models; + +namespace Oci.ApmsyntheticsService.Cmdlets +{ + [Cmdlet("Get", "OCIApmsyntheticsScript")] + [OutputType(new System.Type[] { typeof(Oci.ApmsyntheticsService.Models.Script), typeof(Oci.ApmsyntheticsService.Responses.GetScriptResponse) })] + public class GetOCIApmsyntheticsScript : OCIApmSyntheticCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The APM domain ID the request is intended for.")] + public string ApmDomainId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The OCID of the script.")] + public string ScriptId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] + public string OpcRequestId { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + GetScriptRequest request; + + try + { + request = new GetScriptRequest + { + ApmDomainId = ApmDomainId, + ScriptId = ScriptId, + OpcRequestId = OpcRequestId + }; + + response = client.GetScript(request).GetAwaiter().GetResult(); + WriteOutput(response, response.Script); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private GetScriptResponse response; + } +} diff --git a/Apmsynthetics/Cmdlets/Get-OCIApmsyntheticsScriptsList.cs b/Apmsynthetics/Cmdlets/Get-OCIApmsyntheticsScriptsList.cs new file mode 100644 index 000000000..1f7f90e50 --- /dev/null +++ b/Apmsynthetics/Cmdlets/Get-OCIApmsyntheticsScriptsList.cs @@ -0,0 +1,109 @@ +/* + * 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.ApmsyntheticsService.Requests; +using Oci.ApmsyntheticsService.Responses; +using Oci.ApmsyntheticsService.Models; + +namespace Oci.ApmsyntheticsService.Cmdlets +{ + [Cmdlet("Get", "OCIApmsyntheticsScriptsList")] + [OutputType(new System.Type[] { typeof(Oci.ApmsyntheticsService.Models.ScriptCollection), typeof(Oci.ApmsyntheticsService.Responses.ListScriptsResponse) })] + public class GetOCIApmsyntheticsScriptsList : OCIApmSyntheticCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The APM domain ID the request is intended for.")] + public string ApmDomainId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] + public string OpcRequestId { 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 content type given.")] + public string ContentType { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return.", ParameterSetName = LimitSet)] + public System.Nullable Limit { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The maximum number of results per page, or items to return in a paginated ""List"" call. For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + +Example: `50`")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The sort order to use, either ascending (`ASC`) or descending (`DESC`). Default sort order is ascending.")] + public System.Nullable SortOrder { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The field to sort by. Only one sort order may be provided. Default order of displayName and contentType is ascending. Default order of timeCreated and timeUpdated is descending. The displayName sort by is case insensitive.")] + public System.Nullable SortBy { 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(); + ListScriptsRequest request; + + try + { + request = new ListScriptsRequest + { + ApmDomainId = ApmDomainId, + OpcRequestId = OpcRequestId, + DisplayName = DisplayName, + ContentType = ContentType, + Limit = Limit, + Page = Page, + SortOrder = SortOrder, + SortBy = SortBy + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.ScriptCollection, 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 DefaultRequest(ListScriptsRequest request) => Enumerable.Repeat(client.ListScripts(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListScriptsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListScriptsResponse response; + private delegate IEnumerable RequestDelegate(ListScriptsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Apmsynthetics/Cmdlets/New-OCIApmsyntheticsMonitor.cs b/Apmsynthetics/Cmdlets/New-OCIApmsyntheticsMonitor.cs new file mode 100644 index 000000000..bbc636e0e --- /dev/null +++ b/Apmsynthetics/Cmdlets/New-OCIApmsyntheticsMonitor.cs @@ -0,0 +1,66 @@ +/* + * 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.ApmsyntheticsService.Requests; +using Oci.ApmsyntheticsService.Responses; +using Oci.ApmsyntheticsService.Models; + +namespace Oci.ApmsyntheticsService.Cmdlets +{ + [Cmdlet("New", "OCIApmsyntheticsMonitor")] + [OutputType(new System.Type[] { typeof(Oci.ApmsyntheticsService.Models.Monitor), typeof(Oci.ApmsyntheticsService.Responses.CreateMonitorResponse) })] + public class NewOCIApmsyntheticsMonitor : OCIApmSyntheticCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The APM domain ID the request is intended for.")] + public string ApmDomainId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The configuration details for creating a monitor.")] + public CreateMonitorDetails CreateMonitorDetails { get; set; } + + [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.")] + public string OpcRetryToken { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] + public string OpcRequestId { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + CreateMonitorRequest request; + + try + { + request = new CreateMonitorRequest + { + ApmDomainId = ApmDomainId, + CreateMonitorDetails = CreateMonitorDetails, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId + }; + + response = client.CreateMonitor(request).GetAwaiter().GetResult(); + WriteOutput(response, response.Monitor); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private CreateMonitorResponse response; + } +} diff --git a/Apmsynthetics/Cmdlets/New-OCIApmsyntheticsScript.cs b/Apmsynthetics/Cmdlets/New-OCIApmsyntheticsScript.cs new file mode 100644 index 000000000..a5a5b428e --- /dev/null +++ b/Apmsynthetics/Cmdlets/New-OCIApmsyntheticsScript.cs @@ -0,0 +1,66 @@ +/* + * 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.ApmsyntheticsService.Requests; +using Oci.ApmsyntheticsService.Responses; +using Oci.ApmsyntheticsService.Models; + +namespace Oci.ApmsyntheticsService.Cmdlets +{ + [Cmdlet("New", "OCIApmsyntheticsScript")] + [OutputType(new System.Type[] { typeof(Oci.ApmsyntheticsService.Models.Script), typeof(Oci.ApmsyntheticsService.Responses.CreateScriptResponse) })] + public class NewOCIApmsyntheticsScript : OCIApmSyntheticCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The APM domain ID the request is intended for.")] + public string ApmDomainId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The configuration details for creating a script.")] + public CreateScriptDetails CreateScriptDetails { get; set; } + + [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.")] + public string OpcRetryToken { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] + public string OpcRequestId { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + CreateScriptRequest request; + + try + { + request = new CreateScriptRequest + { + ApmDomainId = ApmDomainId, + CreateScriptDetails = CreateScriptDetails, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId + }; + + response = client.CreateScript(request).GetAwaiter().GetResult(); + WriteOutput(response, response.Script); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private CreateScriptResponse response; + } +} diff --git a/Apmsynthetics/Cmdlets/OCIApmSyntheticCmdlet.cs b/Apmsynthetics/Cmdlets/OCIApmSyntheticCmdlet.cs new file mode 100644 index 000000000..6e16707e3 --- /dev/null +++ b/Apmsynthetics/Cmdlets/OCIApmSyntheticCmdlet.cs @@ -0,0 +1,86 @@ +/* + * 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.Common.Retry; +using Oci.ApmsyntheticsService; + +namespace Oci.ApmsyntheticsService.Cmdlets +{ + public abstract class OCIApmSyntheticCmdlet : Oci.PSModules.Common.Cmdlets.OCICmdlet + { + + protected override void BeginProcessing() + { + base.BeginProcessing(); + try + { + bool noretry = AvoidRetry(); + WriteDebug($"Retry strategy : {!noretry}"); + retryConfig = (noretry) ? null : new RetryConfiguration(); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + try + { + client?.Dispose(); + int timeout = GetPreferredTimeout(); + WriteDebug($"Cmdlet Timeout : {timeout} milliseconds."); + client = new ApmSyntheticClient(AuthProvider, new Oci.Common.ClientConfiguration + { + RetryConfiguration = retryConfig, + TimeoutMillis = timeout, + ClientUserAgent = PSUserAgent + }); + string region = GetPreferredRegion(); + if (region != null) + { + WriteDebug("Choosing Region:" + region); + client.SetRegion(region); + } + if (Endpoint != null) + { + WriteDebug("Choosing Endpoint:" + Endpoint); + client.SetEndpoint(Endpoint); + } + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + } + + protected override void EndProcessing() + { + base.EndProcessing(); + client.Dispose(); + } + + protected override void TerminatingErrorDuringExecution(Exception ex) + { + client?.Dispose(); + base.TerminatingErrorDuringExecution(ex); + } + + protected ApmSyntheticClient client; + private RetryConfiguration retryConfig; + } +} \ No newline at end of file diff --git a/Apmsynthetics/Cmdlets/Remove-OCIApmsyntheticsMonitor.cs b/Apmsynthetics/Cmdlets/Remove-OCIApmsyntheticsMonitor.cs new file mode 100644 index 000000000..c910b4e6e --- /dev/null +++ b/Apmsynthetics/Cmdlets/Remove-OCIApmsyntheticsMonitor.cs @@ -0,0 +1,75 @@ +/* + * 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.ApmsyntheticsService.Requests; +using Oci.ApmsyntheticsService.Responses; +using Oci.ApmsyntheticsService.Models; + +namespace Oci.ApmsyntheticsService.Cmdlets +{ + [Cmdlet("Remove", "OCIApmsyntheticsMonitor", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.ApmsyntheticsService.Responses.DeleteMonitorResponse) })] + public class RemoveOCIApmsyntheticsMonitor : OCIApmSyntheticCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The APM domain ID the request is intended for.")] + public string ApmDomainId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The OCID of the monitor.")] + public string MonitorId { get; set; } + + [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.")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "Ignore confirmation and force the Cmdlet to complete action.")] + public SwitchParameter Force { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + + if (!ConfirmDelete("OCIApmsyntheticsMonitor", "Remove")) + { + return; + } + + DeleteMonitorRequest request; + + try + { + request = new DeleteMonitorRequest + { + ApmDomainId = ApmDomainId, + MonitorId = MonitorId, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.DeleteMonitor(request).GetAwaiter().GetResult(); + WriteOutput(response); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private DeleteMonitorResponse response; + } +} diff --git a/Apmsynthetics/Cmdlets/Remove-OCIApmsyntheticsScript.cs b/Apmsynthetics/Cmdlets/Remove-OCIApmsyntheticsScript.cs new file mode 100644 index 000000000..beca63cba --- /dev/null +++ b/Apmsynthetics/Cmdlets/Remove-OCIApmsyntheticsScript.cs @@ -0,0 +1,75 @@ +/* + * 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.ApmsyntheticsService.Requests; +using Oci.ApmsyntheticsService.Responses; +using Oci.ApmsyntheticsService.Models; + +namespace Oci.ApmsyntheticsService.Cmdlets +{ + [Cmdlet("Remove", "OCIApmsyntheticsScript", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.ApmsyntheticsService.Responses.DeleteScriptResponse) })] + public class RemoveOCIApmsyntheticsScript : OCIApmSyntheticCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The APM domain ID the request is intended for.")] + public string ApmDomainId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The OCID of the script.")] + public string ScriptId { get; set; } + + [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.")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "Ignore confirmation and force the Cmdlet to complete action.")] + public SwitchParameter Force { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + + if (!ConfirmDelete("OCIApmsyntheticsScript", "Remove")) + { + return; + } + + DeleteScriptRequest request; + + try + { + request = new DeleteScriptRequest + { + ApmDomainId = ApmDomainId, + ScriptId = ScriptId, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.DeleteScript(request).GetAwaiter().GetResult(); + WriteOutput(response); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private DeleteScriptResponse response; + } +} diff --git a/Apmsynthetics/Cmdlets/Update-OCIApmsyntheticsMonitor.cs b/Apmsynthetics/Cmdlets/Update-OCIApmsyntheticsMonitor.cs new file mode 100644 index 000000000..3a46f083e --- /dev/null +++ b/Apmsynthetics/Cmdlets/Update-OCIApmsyntheticsMonitor.cs @@ -0,0 +1,70 @@ +/* + * 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.ApmsyntheticsService.Requests; +using Oci.ApmsyntheticsService.Responses; +using Oci.ApmsyntheticsService.Models; + +namespace Oci.ApmsyntheticsService.Cmdlets +{ + [Cmdlet("Update", "OCIApmsyntheticsMonitor")] + [OutputType(new System.Type[] { typeof(Oci.ApmsyntheticsService.Models.Monitor), typeof(Oci.ApmsyntheticsService.Responses.UpdateMonitorResponse) })] + public class UpdateOCIApmsyntheticsMonitor : OCIApmSyntheticCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The APM domain ID the request is intended for.")] + public string ApmDomainId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The OCID of the monitor.")] + public string MonitorId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The information to be updated.")] + public UpdateMonitorDetails UpdateMonitorDetails { get; set; } + + [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.")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] + public string OpcRequestId { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + UpdateMonitorRequest request; + + try + { + request = new UpdateMonitorRequest + { + ApmDomainId = ApmDomainId, + MonitorId = MonitorId, + UpdateMonitorDetails = UpdateMonitorDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.UpdateMonitor(request).GetAwaiter().GetResult(); + WriteOutput(response, response.Monitor); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private UpdateMonitorResponse response; + } +} diff --git a/Apmsynthetics/Cmdlets/Update-OCIApmsyntheticsScript.cs b/Apmsynthetics/Cmdlets/Update-OCIApmsyntheticsScript.cs new file mode 100644 index 000000000..bd8ae16ef --- /dev/null +++ b/Apmsynthetics/Cmdlets/Update-OCIApmsyntheticsScript.cs @@ -0,0 +1,70 @@ +/* + * 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.ApmsyntheticsService.Requests; +using Oci.ApmsyntheticsService.Responses; +using Oci.ApmsyntheticsService.Models; + +namespace Oci.ApmsyntheticsService.Cmdlets +{ + [Cmdlet("Update", "OCIApmsyntheticsScript")] + [OutputType(new System.Type[] { typeof(Oci.ApmsyntheticsService.Models.Script), typeof(Oci.ApmsyntheticsService.Responses.UpdateScriptResponse) })] + public class UpdateOCIApmsyntheticsScript : OCIApmSyntheticCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The APM domain ID the request is intended for.")] + public string ApmDomainId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The OCID of the script.")] + public string ScriptId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The information to be updated.")] + public UpdateScriptDetails UpdateScriptDetails { get; set; } + + [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.")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] + public string OpcRequestId { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + UpdateScriptRequest request; + + try + { + request = new UpdateScriptRequest + { + ApmDomainId = ApmDomainId, + ScriptId = ScriptId, + UpdateScriptDetails = UpdateScriptDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.UpdateScript(request).GetAwaiter().GetResult(); + WriteOutput(response, response.Script); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private UpdateScriptResponse response; + } +} diff --git a/Apmsynthetics/OCI.PSModules.Apmsynthetics.csproj b/Apmsynthetics/OCI.PSModules.Apmsynthetics.csproj new file mode 100644 index 000000000..1ecab09f2 --- /dev/null +++ b/Apmsynthetics/OCI.PSModules.Apmsynthetics.csproj @@ -0,0 +1,23 @@ + + + + + netstandard2.0 + OCI.PSModules.Apmsynthetics + OCI.PSModules.Apmsynthetics + Oracle Cloud Infrastructure + Oracle + 8.0 + Oracle;OCI;Cloud;oci-sdk;OracleCloudInfrastructure;Apmsynthetics + Apmsynthetics Service + + + + + + + + + + + diff --git a/Apmsynthetics/OCI.PSModules.Apmsynthetics.psd1 b/Apmsynthetics/OCI.PSModules.Apmsynthetics.psd1 new file mode 100644 index 000000000..f075aa927 --- /dev/null +++ b/Apmsynthetics/OCI.PSModules.Apmsynthetics.psd1 @@ -0,0 +1,138 @@ +# +# Module manifest for module 'OCI.PSModules.Apmsynthetics' +# +# Generated by: Oracle Cloud Infrastructure +# +# Generated on: 03/04/2021 +# + +@{ + +# Script module or binary module file associated with this manifest. +RootModule = 'assemblies/OCI.PSModules.Apmsynthetics.dll' + +# Version number of this module. +ModuleVersion = '10.1.0' + +# Supported PSEditions +CompatiblePSEditions = 'Core' + +# ID used to uniquely identify this module +GUID = 'b2901c22-2813-4f21-ae94-09094aa70e0e' + +# Author of this module +Author = 'Oracle Cloud Infrastructure' + +# Company or vendor of this module +CompanyName = 'Oracle Corporation' + +# Copyright statement for this module +Copyright = '(c) Oracle Cloud Infrastructure. All rights reserved.' + +# Description of the functionality provided by this module +Description = 'This modules provides Cmdlets for OCI Apmsynthetics Service' + +# Minimum version of the PowerShell engine required by this module +PowerShellVersion = '6.0' + +# Name of the PowerShell host required by this module +# PowerShellHostName = '' + +# Minimum version of the PowerShell host required by this module +# PowerShellHostVersion = '' + +# Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only. +# DotNetFrameworkVersion = '' + +# Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only. +# ClrVersion = '' + +# Processor architecture (None, X86, Amd64) required by this module +# 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.1.0'; }) + +# Assemblies that must be loaded prior to importing this module +RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Apmsynthetics.dll' + +# Script files (.ps1) that are run in the caller's environment prior to importing this module. +# ScriptsToProcess = @() + +# Type files (.ps1xml) to be loaded when importing this module +# TypesToProcess = @() + +# Format files (.ps1xml) to be loaded when importing this module +# FormatsToProcess = @() + +# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess +# NestedModules = @() + +# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export. +FunctionsToExport = '*' + +# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. +CmdletsToExport = 'Get-OCIApmsyntheticsMonitor', 'Get-OCIApmsyntheticsMonitorResult', + 'Get-OCIApmsyntheticsMonitorsList', + 'Get-OCIApmsyntheticsPublicVantagePointsList', + 'Get-OCIApmsyntheticsScript', 'Get-OCIApmsyntheticsScriptsList', + 'New-OCIApmsyntheticsMonitor', 'New-OCIApmsyntheticsScript', + 'Remove-OCIApmsyntheticsMonitor', 'Remove-OCIApmsyntheticsScript', + 'Update-OCIApmsyntheticsMonitor', 'Update-OCIApmsyntheticsScript' + +# Variables to export from this module +VariablesToExport = '*' + +# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export. +AliasesToExport = '*' + +# DSC resources to export from this module +# DscResourcesToExport = @() + +# List of all modules packaged with this module +# ModuleList = @() + +# List of all files packaged with this module +# FileList = @() + +# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell. +PrivateData = @{ + + PSData = @{ + + # Tags applied to this module. These help with module discovery in online galleries. + Tags = 'PSEdition_Core','Windows','Linux','macOS','Oracle','OCI','Cloud','OracleCloudInfrastructure','Apmsynthetics' + + # A URL to the license for this module. + LicenseUri = 'https://github.com/oracle/oci-powershell-modules/blob/master/LICENSE.txt' + + # A URL to the main website for this project. + ProjectUri = 'https://github.com/oracle/oci-powershell-modules/' + + # A URL to an icon representing this module. + IconUri = 'https://github.com/oracle/oci-powershell-modules/blob/master/icon.png' + + # ReleaseNotes of this module + ReleaseNotes = 'https://github.com/oracle/oci-powershell-modules/blob/master/CHANGELOG.md' + + # Prerelease string of this module + # Prerelease = '' + + # Flag to indicate whether the module requires explicit user acceptance for install/update/save + # RequireLicenseAcceptance = $false + + # External dependent modules of this module + # ExternalModuleDependencies = @() + + } # End of PSData hashtable + + } # End of PrivateData hashtable + +# HelpInfo URI of this module +# HelpInfoURI = '' + +# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix. +# DefaultCommandPrefix = '' + +} + diff --git a/Apmtraces/Cmdlets/Get-OCIApmtracesQuickPicksList.cs b/Apmtraces/Cmdlets/Get-OCIApmtracesQuickPicksList.cs new file mode 100644 index 000000000..3c66b0041 --- /dev/null +++ b/Apmtraces/Cmdlets/Get-OCIApmtracesQuickPicksList.cs @@ -0,0 +1,91 @@ +/* + * 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.ApmtracesService.Requests; +using Oci.ApmtracesService.Responses; +using Oci.ApmtracesService.Models; + +namespace Oci.ApmtracesService.Cmdlets +{ + [Cmdlet("Get", "OCIApmtracesQuickPicksList")] + [OutputType(new System.Type[] { typeof(Oci.ApmtracesService.Models.QuickPickSummary), typeof(Oci.ApmtracesService.Responses.ListQuickPicksResponse) })] + public class GetOCIApmtracesQuickPicksList : OCIQueryCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The APM Domain Id the request is intended for.")] + public string ApmDomainId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return.", ParameterSetName = LimitSet)] + public System.Nullable 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 response.")] + public string Page { 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(); + ListQuickPicksRequest request; + + try + { + request = new ListQuickPicksRequest + { + ApmDomainId = ApmDomainId, + OpcRequestId = OpcRequestId, + Limit = Limit, + Page = Page + }; + IEnumerable 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 DefaultRequest(ListQuickPicksRequest request) => Enumerable.Repeat(client.ListQuickPicks(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListQuickPicksResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListQuickPicksResponse response; + private delegate IEnumerable RequestDelegate(ListQuickPicksRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Apmtraces/Cmdlets/Get-OCIApmtracesSpan.cs b/Apmtraces/Cmdlets/Get-OCIApmtracesSpan.cs new file mode 100644 index 000000000..b12491a0c --- /dev/null +++ b/Apmtraces/Cmdlets/Get-OCIApmtracesSpan.cs @@ -0,0 +1,66 @@ +/* + * 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.ApmtracesService.Requests; +using Oci.ApmtracesService.Responses; +using Oci.ApmtracesService.Models; + +namespace Oci.ApmtracesService.Cmdlets +{ + [Cmdlet("Get", "OCIApmtracesSpan")] + [OutputType(new System.Type[] { typeof(Oci.ApmtracesService.Models.Span), typeof(Oci.ApmtracesService.Responses.GetSpanResponse) })] + public class GetOCIApmtracesSpan : OCITraceCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The APM Domain Id the request is intended for.")] + public string ApmDomainId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique APM span identifier(spanId).")] + public string SpanKey { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique APM trace identifier(traceId).")] + public string TraceKey { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] + public string OpcRequestId { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + GetSpanRequest request; + + try + { + request = new GetSpanRequest + { + ApmDomainId = ApmDomainId, + SpanKey = SpanKey, + TraceKey = TraceKey, + OpcRequestId = OpcRequestId + }; + + response = client.GetSpan(request).GetAwaiter().GetResult(); + WriteOutput(response, response.Span); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private GetSpanResponse response; + } +} diff --git a/Apmtraces/Cmdlets/Get-OCIApmtracesTrace.cs b/Apmtraces/Cmdlets/Get-OCIApmtracesTrace.cs new file mode 100644 index 000000000..53862bb55 --- /dev/null +++ b/Apmtraces/Cmdlets/Get-OCIApmtracesTrace.cs @@ -0,0 +1,62 @@ +/* + * 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.ApmtracesService.Requests; +using Oci.ApmtracesService.Responses; +using Oci.ApmtracesService.Models; + +namespace Oci.ApmtracesService.Cmdlets +{ + [Cmdlet("Get", "OCIApmtracesTrace")] + [OutputType(new System.Type[] { typeof(Oci.ApmtracesService.Models.Trace), typeof(Oci.ApmtracesService.Responses.GetTraceResponse) })] + public class GetOCIApmtracesTrace : OCITraceCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The APM Domain Id the request is intended for.")] + public string ApmDomainId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique APM trace identifier(traceId).")] + public string TraceKey { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] + public string OpcRequestId { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + GetTraceRequest request; + + try + { + request = new GetTraceRequest + { + ApmDomainId = ApmDomainId, + TraceKey = TraceKey, + OpcRequestId = OpcRequestId + }; + + response = client.GetTrace(request).GetAwaiter().GetResult(); + WriteOutput(response, response.Trace); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private GetTraceResponse response; + } +} diff --git a/Apmtraces/Cmdlets/Invoke-OCIApmtracesQuery.cs b/Apmtraces/Cmdlets/Invoke-OCIApmtracesQuery.cs new file mode 100644 index 000000000..2b7484190 --- /dev/null +++ b/Apmtraces/Cmdlets/Invoke-OCIApmtracesQuery.cs @@ -0,0 +1,78 @@ +/* + * 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.ApmtracesService.Requests; +using Oci.ApmtracesService.Responses; +using Oci.ApmtracesService.Models; + +namespace Oci.ApmtracesService.Cmdlets +{ + [Cmdlet("Invoke", "OCIApmtracesQuery")] + [OutputType(new System.Type[] { typeof(Oci.ApmtracesService.Models.QueryResultResponse), typeof(Oci.ApmtracesService.Responses.QueryResponse) })] + public class InvokeOCIApmtracesQuery : OCIQueryCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The APM Domain Id the request is intended for.")] + public string ApmDomainId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Include spans that have a `spanStartTime` equal to or greater this value.")] + public System.Nullable TimeSpanStartedGreaterThanOrEqualTo { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Include spans that have a `spanStartTime`less than this value.")] + public System.Nullable TimeSpanStartedLessThan { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Request body containing the query to be run against our repository.")] + public QueryDetails QueryDetails { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return.")] + public System.Nullable 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 response.")] + public string Page { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + QueryRequest request; + + try + { + request = new QueryRequest + { + ApmDomainId = ApmDomainId, + TimeSpanStartedGreaterThanOrEqualTo = TimeSpanStartedGreaterThanOrEqualTo, + TimeSpanStartedLessThan = TimeSpanStartedLessThan, + QueryDetails = QueryDetails, + OpcRequestId = OpcRequestId, + Limit = Limit, + Page = Page + }; + + response = client.Query(request).GetAwaiter().GetResult(); + WriteOutput(response, response.QueryResultResponse); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private QueryResponse response; + } +} diff --git a/Apmtraces/Cmdlets/Invoke-OCIApmtracesQueryOld.cs b/Apmtraces/Cmdlets/Invoke-OCIApmtracesQueryOld.cs new file mode 100644 index 000000000..b817d3ebd --- /dev/null +++ b/Apmtraces/Cmdlets/Invoke-OCIApmtracesQueryOld.cs @@ -0,0 +1,78 @@ +/* + * 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.ApmtracesService.Requests; +using Oci.ApmtracesService.Responses; +using Oci.ApmtracesService.Models; + +namespace Oci.ApmtracesService.Cmdlets +{ + [Cmdlet("Invoke", "OCIApmtracesQueryOld")] + [OutputType(new System.Type[] { typeof(Oci.ApmtracesService.Models.QueryResultResponse), typeof(Oci.ApmtracesService.Responses.QueryOldResponse) })] + public class InvokeOCIApmtracesQueryOld : OCIQueryCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The APM Domain Id the request is intended for.")] + public string ApmDomainId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Include spans that have a `spanStartTime` equal to or greater this value.")] + public System.Nullable TimeSpanStartedGreaterThanOrEqualTo { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Include spans that have a `spanStartTime`less than this value.")] + public System.Nullable TimeSpanStartedLessThan { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Request body containing the query to be run against our repository.")] + public QueryDetails QueryDetails { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return.")] + public System.Nullable 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 response.")] + public string Page { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + QueryOldRequest request; + + try + { + request = new QueryOldRequest + { + ApmDomainId = ApmDomainId, + TimeSpanStartedGreaterThanOrEqualTo = TimeSpanStartedGreaterThanOrEqualTo, + TimeSpanStartedLessThan = TimeSpanStartedLessThan, + QueryDetails = QueryDetails, + OpcRequestId = OpcRequestId, + Limit = Limit, + Page = Page + }; + + response = client.QueryOld(request).GetAwaiter().GetResult(); + WriteOutput(response, response.QueryResultResponse); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private QueryOldResponse response; + } +} diff --git a/Apmtraces/Cmdlets/OCIQueryCmdlet.cs b/Apmtraces/Cmdlets/OCIQueryCmdlet.cs new file mode 100644 index 000000000..106fc28ef --- /dev/null +++ b/Apmtraces/Cmdlets/OCIQueryCmdlet.cs @@ -0,0 +1,86 @@ +/* + * 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.Common.Retry; +using Oci.ApmtracesService; + +namespace Oci.ApmtracesService.Cmdlets +{ + public abstract class OCIQueryCmdlet : Oci.PSModules.Common.Cmdlets.OCICmdlet + { + + protected override void BeginProcessing() + { + base.BeginProcessing(); + try + { + bool noretry = AvoidRetry(); + WriteDebug($"Retry strategy : {!noretry}"); + retryConfig = (noretry) ? null : new RetryConfiguration(); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + try + { + client?.Dispose(); + int timeout = GetPreferredTimeout(); + WriteDebug($"Cmdlet Timeout : {timeout} milliseconds."); + client = new QueryClient(AuthProvider, new Oci.Common.ClientConfiguration + { + RetryConfiguration = retryConfig, + TimeoutMillis = timeout, + ClientUserAgent = PSUserAgent + }); + string region = GetPreferredRegion(); + if (region != null) + { + WriteDebug("Choosing Region:" + region); + client.SetRegion(region); + } + if (Endpoint != null) + { + WriteDebug("Choosing Endpoint:" + Endpoint); + client.SetEndpoint(Endpoint); + } + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + } + + protected override void EndProcessing() + { + base.EndProcessing(); + client.Dispose(); + } + + protected override void TerminatingErrorDuringExecution(Exception ex) + { + client?.Dispose(); + base.TerminatingErrorDuringExecution(ex); + } + + protected QueryClient client; + private RetryConfiguration retryConfig; + } +} \ No newline at end of file diff --git a/Apmtraces/Cmdlets/OCITraceCmdlet.cs b/Apmtraces/Cmdlets/OCITraceCmdlet.cs new file mode 100644 index 000000000..8716db550 --- /dev/null +++ b/Apmtraces/Cmdlets/OCITraceCmdlet.cs @@ -0,0 +1,86 @@ +/* + * 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.Common.Retry; +using Oci.ApmtracesService; + +namespace Oci.ApmtracesService.Cmdlets +{ + public abstract class OCITraceCmdlet : Oci.PSModules.Common.Cmdlets.OCICmdlet + { + + protected override void BeginProcessing() + { + base.BeginProcessing(); + try + { + bool noretry = AvoidRetry(); + WriteDebug($"Retry strategy : {!noretry}"); + retryConfig = (noretry) ? null : new RetryConfiguration(); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + try + { + client?.Dispose(); + int timeout = GetPreferredTimeout(); + WriteDebug($"Cmdlet Timeout : {timeout} milliseconds."); + client = new TraceClient(AuthProvider, new Oci.Common.ClientConfiguration + { + RetryConfiguration = retryConfig, + TimeoutMillis = timeout, + ClientUserAgent = PSUserAgent + }); + string region = GetPreferredRegion(); + if (region != null) + { + WriteDebug("Choosing Region:" + region); + client.SetRegion(region); + } + if (Endpoint != null) + { + WriteDebug("Choosing Endpoint:" + Endpoint); + client.SetEndpoint(Endpoint); + } + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + } + + protected override void EndProcessing() + { + base.EndProcessing(); + client.Dispose(); + } + + protected override void TerminatingErrorDuringExecution(Exception ex) + { + client?.Dispose(); + base.TerminatingErrorDuringExecution(ex); + } + + protected TraceClient client; + private RetryConfiguration retryConfig; + } +} \ No newline at end of file diff --git a/Apmtraces/OCI.PSModules.Apmtraces.csproj b/Apmtraces/OCI.PSModules.Apmtraces.csproj new file mode 100644 index 000000000..b6d46dbb3 --- /dev/null +++ b/Apmtraces/OCI.PSModules.Apmtraces.csproj @@ -0,0 +1,23 @@ + + + + + netstandard2.0 + OCI.PSModules.Apmtraces + OCI.PSModules.Apmtraces + Oracle Cloud Infrastructure + Oracle + 8.0 + Oracle;OCI;Cloud;oci-sdk;OracleCloudInfrastructure;Apmtraces + Apmtraces Service + + + + + + + + + + + diff --git a/Apmtraces/OCI.PSModules.Apmtraces.psd1 b/Apmtraces/OCI.PSModules.Apmtraces.psd1 new file mode 100644 index 000000000..cc08817c2 --- /dev/null +++ b/Apmtraces/OCI.PSModules.Apmtraces.psd1 @@ -0,0 +1,134 @@ +# +# Module manifest for module 'OCI.PSModules.Apmtraces' +# +# Generated by: Oracle Cloud Infrastructure +# +# Generated on: 03/04/2021 +# + +@{ + +# Script module or binary module file associated with this manifest. +RootModule = 'assemblies/OCI.PSModules.Apmtraces.dll' + +# Version number of this module. +ModuleVersion = '10.1.0' + +# Supported PSEditions +CompatiblePSEditions = 'Core' + +# ID used to uniquely identify this module +GUID = 'b8a6f9e5-94d6-4c39-9ded-9767df367b9b' + +# Author of this module +Author = 'Oracle Cloud Infrastructure' + +# Company or vendor of this module +CompanyName = 'Oracle Corporation' + +# Copyright statement for this module +Copyright = '(c) Oracle Cloud Infrastructure. All rights reserved.' + +# Description of the functionality provided by this module +Description = 'This modules provides Cmdlets for OCI Apmtraces Service' + +# Minimum version of the PowerShell engine required by this module +PowerShellVersion = '6.0' + +# Name of the PowerShell host required by this module +# PowerShellHostName = '' + +# Minimum version of the PowerShell host required by this module +# PowerShellHostVersion = '' + +# Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only. +# DotNetFrameworkVersion = '' + +# Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only. +# ClrVersion = '' + +# Processor architecture (None, X86, Amd64) required by this module +# 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.1.0'; }) + +# Assemblies that must be loaded prior to importing this module +RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Apmtraces.dll' + +# Script files (.ps1) that are run in the caller's environment prior to importing this module. +# ScriptsToProcess = @() + +# Type files (.ps1xml) to be loaded when importing this module +# TypesToProcess = @() + +# Format files (.ps1xml) to be loaded when importing this module +# FormatsToProcess = @() + +# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess +# NestedModules = @() + +# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export. +FunctionsToExport = '*' + +# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. +CmdletsToExport = 'Get-OCIApmtracesQuickPicksList', 'Get-OCIApmtracesSpan', + 'Get-OCIApmtracesTrace', 'Invoke-OCIApmtracesQuery', + 'Invoke-OCIApmtracesQueryOld' + +# Variables to export from this module +VariablesToExport = '*' + +# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export. +AliasesToExport = '*' + +# DSC resources to export from this module +# DscResourcesToExport = @() + +# List of all modules packaged with this module +# ModuleList = @() + +# List of all files packaged with this module +# FileList = @() + +# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell. +PrivateData = @{ + + PSData = @{ + + # Tags applied to this module. These help with module discovery in online galleries. + Tags = 'PSEdition_Core','Windows','Linux','macOS','Oracle','OCI','Cloud','OracleCloudInfrastructure','Apmtraces' + + # A URL to the license for this module. + LicenseUri = 'https://github.com/oracle/oci-powershell-modules/blob/master/LICENSE.txt' + + # A URL to the main website for this project. + ProjectUri = 'https://github.com/oracle/oci-powershell-modules/' + + # A URL to an icon representing this module. + IconUri = 'https://github.com/oracle/oci-powershell-modules/blob/master/icon.png' + + # ReleaseNotes of this module + ReleaseNotes = 'https://github.com/oracle/oci-powershell-modules/blob/master/CHANGELOG.md' + + # Prerelease string of this module + # Prerelease = '' + + # Flag to indicate whether the module requires explicit user acceptance for install/update/save + # RequireLicenseAcceptance = $false + + # External dependent modules of this module + # ExternalModuleDependencies = @() + + } # End of PSData hashtable + + } # End of PrivateData hashtable + +# HelpInfo URI of this module +# HelpInfoURI = '' + +# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix. +# DefaultCommandPrefix = '' + +} + diff --git a/Applicationmigration/OCI.PSModules.Applicationmigration.psd1 b/Applicationmigration/OCI.PSModules.Applicationmigration.psd1 index 35966dd09..f84869b49 100644 --- a/Applicationmigration/OCI.PSModules.Applicationmigration.psd1 +++ b/Applicationmigration/OCI.PSModules.Applicationmigration.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 3/1/2021 +# Generated on: 03/04/2021 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Applicationmigration.dll' # Version number of this module. -ModuleVersion = '10.0.0' +ModuleVersion = '10.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -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.Applicationmigration.dll' diff --git a/Artifacts/OCI.PSModules.Artifacts.psd1 b/Artifacts/OCI.PSModules.Artifacts.psd1 index 290ba45b2..6c0950104 100644 --- a/Artifacts/OCI.PSModules.Artifacts.psd1 +++ b/Artifacts/OCI.PSModules.Artifacts.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 3/1/2021 +# Generated on: 03/04/2021 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Artifacts.dll' # Version number of this module. -ModuleVersion = '10.0.0' +ModuleVersion = '10.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -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.Artifacts.dll' diff --git a/Audit/OCI.PSModules.Audit.psd1 b/Audit/OCI.PSModules.Audit.psd1 index 2de77ff21..25e0b41b8 100644 --- a/Audit/OCI.PSModules.Audit.psd1 +++ b/Audit/OCI.PSModules.Audit.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 3/1/2021 +# Generated on: 03/04/2021 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Audit.dll' # Version number of this module. -ModuleVersion = '10.0.0' +ModuleVersion = '10.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -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.Audit.dll' diff --git a/Autoscaling/OCI.PSModules.Autoscaling.psd1 b/Autoscaling/OCI.PSModules.Autoscaling.psd1 index d5180b6e9..b0b383c57 100644 --- a/Autoscaling/OCI.PSModules.Autoscaling.psd1 +++ b/Autoscaling/OCI.PSModules.Autoscaling.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 3/1/2021 +# Generated on: 03/04/2021 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Autoscaling.dll' # Version number of this module. -ModuleVersion = '10.0.0' +ModuleVersion = '10.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -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.Autoscaling.dll' diff --git a/Bds/OCI.PSModules.Bds.psd1 b/Bds/OCI.PSModules.Bds.psd1 index 157c5aa0c..b5a934ab2 100644 --- a/Bds/OCI.PSModules.Bds.psd1 +++ b/Bds/OCI.PSModules.Bds.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 3/1/2021 +# Generated on: 03/04/2021 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Bds.dll' # Version number of this module. -ModuleVersion = '10.0.0' +ModuleVersion = '10.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -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.Bds.dll' diff --git a/Blockchain/OCI.PSModules.Blockchain.psd1 b/Blockchain/OCI.PSModules.Blockchain.psd1 index 68b99c985..b77212ce9 100644 --- a/Blockchain/OCI.PSModules.Blockchain.psd1 +++ b/Blockchain/OCI.PSModules.Blockchain.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 3/1/2021 +# Generated on: 03/04/2021 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Blockchain.dll' # Version number of this module. -ModuleVersion = '10.0.0' +ModuleVersion = '10.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -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.Blockchain.dll' diff --git a/Budget/OCI.PSModules.Budget.psd1 b/Budget/OCI.PSModules.Budget.psd1 index 69c29759e..84b749ac9 100644 --- a/Budget/OCI.PSModules.Budget.psd1 +++ b/Budget/OCI.PSModules.Budget.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 3/1/2021 +# Generated on: 03/04/2021 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Budget.dll' # Version number of this module. -ModuleVersion = '10.0.0' +ModuleVersion = '10.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -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.Budget.dll' diff --git a/CHANGELOG.md b/CHANGELOG.md index 29e4fac31..9d775e3f9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,11 +3,20 @@ All notable changes to this project will be documented in this file. The format is based on Keep a [Changelog](https://keepachangelog.com/en/1.0.0/). +## 10.1.0 - 2021-03-09 +### Added +- Support for the Application Performance Monitoring service. +- Support for the Golden Gate service. +- Support for SMS subscriptions in the Notifications service. +- Support for friendly-formatted messages in the Service Connector Hub service. +- Support for attaching and detaching instances to instance pools in the Autoscaling service. + ## 10.0.0 - 2021-03-02 ### Added - Support for pipelines, pipeline tasks, and favorites in the Data Integration service. - Support for publishing tasks to OCI Data Flow in the Data Integration service. - Support for clones in the File Storage service. +- Support for bundled modules. ### Breaking changes - Changed `Oci.DataintegrationService.Models.UniqueKey` model in the Dataintegration service to not inherit from `Key`. diff --git a/Cims/OCI.PSModules.Cims.psd1 b/Cims/OCI.PSModules.Cims.psd1 index 352f3c21b..f382c40aa 100644 --- a/Cims/OCI.PSModules.Cims.psd1 +++ b/Cims/OCI.PSModules.Cims.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 3/1/2021 +# Generated on: 03/04/2021 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Cims.dll' # Version number of this module. -ModuleVersion = '10.0.0' +ModuleVersion = '10.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -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.Cims.dll' diff --git a/Cloudguard/OCI.PSModules.Cloudguard.psd1 b/Cloudguard/OCI.PSModules.Cloudguard.psd1 index 863f86811..e8b2bd1ab 100644 --- a/Cloudguard/OCI.PSModules.Cloudguard.psd1 +++ b/Cloudguard/OCI.PSModules.Cloudguard.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 3/1/2021 +# Generated on: 03/04/2021 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Cloudguard.dll' # Version number of this module. -ModuleVersion = '10.0.0' +ModuleVersion = '10.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -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.Cloudguard.dll' diff --git a/Common/OCI.PSModules.Common.psd1 b/Common/OCI.PSModules.Common.psd1 index 8e8514293..24d750c92 100644 --- a/Common/OCI.PSModules.Common.psd1 +++ b/Common/OCI.PSModules.Common.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 3/1/2021 +# Generated on: 03/04/2021 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Common.dll' # Version number of this module. -ModuleVersion = '10.0.0' +ModuleVersion = '10.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' diff --git a/Common/Version.cs b/Common/Version.cs index d3cbed67e..e72b11ec0 100644 --- a/Common/Version.cs +++ b/Common/Version.cs @@ -7,7 +7,7 @@ namespace Oci.PSModules.Common.Cmdlets public class Version { public static string MAJOR = "10"; - public static string MINOR = "0"; + public static string MINOR = "1"; public static string PATCH = "0"; public static string GetVersion() diff --git a/Computeinstanceagent/OCI.PSModules.Computeinstanceagent.psd1 b/Computeinstanceagent/OCI.PSModules.Computeinstanceagent.psd1 index 4e844cbec..5bcd2538e 100644 --- a/Computeinstanceagent/OCI.PSModules.Computeinstanceagent.psd1 +++ b/Computeinstanceagent/OCI.PSModules.Computeinstanceagent.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 3/1/2021 +# Generated on: 03/04/2021 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Computeinstanceagent.dll' # Version number of this module. -ModuleVersion = '10.0.0' +ModuleVersion = '10.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -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.Computeinstanceagent.dll' diff --git a/Containerengine/OCI.PSModules.Containerengine.psd1 b/Containerengine/OCI.PSModules.Containerengine.psd1 index 5248da3dd..bae45848f 100644 --- a/Containerengine/OCI.PSModules.Containerengine.psd1 +++ b/Containerengine/OCI.PSModules.Containerengine.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 3/1/2021 +# Generated on: 03/04/2021 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Containerengine.dll' # Version number of this module. -ModuleVersion = '10.0.0' +ModuleVersion = '10.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -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.Containerengine.dll' diff --git a/Core/Cmdlets/DisMount-OCIComputeManagementInstancePoolInstance.cs b/Core/Cmdlets/DisMount-OCIComputeManagementInstancePoolInstance.cs new file mode 100644 index 000000000..5951641fe --- /dev/null +++ b/Core/Cmdlets/DisMount-OCIComputeManagementInstancePoolInstance.cs @@ -0,0 +1,100 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20160918 + * 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.CoreService.Requests; +using Oci.CoreService.Responses; +using Oci.CoreService.Models; +using Oci.Common.Waiters; + +namespace Oci.CoreService.Cmdlets +{ + [Cmdlet("DisMount", "OCIComputeManagementInstancePoolInstance", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.CoreService.Responses.DetachInstancePoolInstanceResponse) })] + public class DisMountOCIComputeManagementInstancePoolInstance : OCIComputeManagementCmdlet + { + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the instance pool.", ParameterSetName = StatusParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the instance pool.", ParameterSetName = Default)] + public string InstancePoolId { get; set; } + + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Instance being detached", ParameterSetName = StatusParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Instance being detached", ParameterSetName = Default)] + public DetachInstancePoolInstanceDetails DetachInstancePoolInstanceDetails { get; set; } + + + [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 may be rejected).", ParameterSetName = StatusParamSet)] + [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 may be rejected).", ParameterSetName = Default)] + public string OpcRetryToken { 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 = StatusParamSet)] + public WorkrequestsService.Models.WorkRequest.StatusEnum[] WaitForStatus { get; set; } + + [Parameter(Mandatory = false, HelpMessage = @"Check every WaitIntervalSeconds to see whether the resource has reached a desired state.", ParameterSetName = StatusParamSet)] + 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 = StatusParamSet)] + public int MaxWaitAttempts { get; set; } = MAX_WAITER_ATTEMPTS; + + protected override void ProcessRecord() + { + base.ProcessRecord(); + DetachInstancePoolInstanceRequest request; + + try + { + request = new DetachInstancePoolInstanceRequest + { + InstancePoolId = InstancePoolId, + DetachInstancePoolInstanceDetails = DetachInstancePoolInstanceDetails, + OpcRetryToken = OpcRetryToken + }; + + HandleOutput(request); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private void HandleOutput(DetachInstancePoolInstanceRequest request) + { + var waiterConfig = new WaiterConfiguration + { + MaxAttempts = MaxWaitAttempts, + GetNextDelayInSeconds = (_) => WaitIntervalSeconds + }; + + switch (ParameterSetName) + { + case StatusParamSet: + response = client.Waiters.ForDetachInstancePoolInstance(request, waiterConfig, WaitForStatus).Execute(); + break; + + case Default: + response = client.DetachInstancePoolInstance(request).GetAwaiter().GetResult(); + break; + } + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + } + + private DetachInstancePoolInstanceResponse response; + private const string StatusParamSet = "StatusParamSet"; + private const string Default = "Default"; + } +} diff --git a/Core/Cmdlets/Get-OCIComputeManagementInstancePoolInstance.cs b/Core/Cmdlets/Get-OCIComputeManagementInstancePoolInstance.cs new file mode 100644 index 000000000..3fe83f81e --- /dev/null +++ b/Core/Cmdlets/Get-OCIComputeManagementInstancePoolInstance.cs @@ -0,0 +1,94 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20160918 + * 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.CoreService.Requests; +using Oci.CoreService.Responses; +using Oci.CoreService.Models; +using Oci.Common.Waiters; + +namespace Oci.CoreService.Cmdlets +{ + [Cmdlet("Get", "OCIComputeManagementInstancePoolInstance", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.CoreService.Models.InstancePoolInstance), typeof(Oci.CoreService.Responses.GetInstancePoolInstanceResponse) })] + public class GetOCIComputeManagementInstancePoolInstance : OCIComputeManagementCmdlet + { + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the instance pool.", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the instance pool.", ParameterSetName = Default)] + public string InstancePoolId { get; set; } + + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The OCID of the instance.", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The OCID of the instance.", ParameterSetName = Default)] + public string InstanceId { 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.CoreService.Models.InstancePoolInstance.LifecycleStateEnum[] 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(); + GetInstancePoolInstanceRequest request; + + try + { + request = new GetInstancePoolInstanceRequest + { + InstancePoolId = InstancePoolId, + InstanceId = InstanceId + }; + + HandleOutput(request); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private void HandleOutput(GetInstancePoolInstanceRequest request) + { + var waiterConfig = new WaiterConfiguration + { + MaxAttempts = MaxWaitAttempts, + GetNextDelayInSeconds = (_) => WaitIntervalSeconds + }; + + switch (ParameterSetName) + { + case LifecycleStateParamSet: + response = client.Waiters.ForInstancePoolInstance(request, waiterConfig, WaitForLifecycleState).Execute(); + break; + + case Default: + response = client.GetInstancePoolInstance(request).GetAwaiter().GetResult(); + break; + } + WriteOutput(response, response.InstancePoolInstance); + } + + private GetInstancePoolInstanceResponse response; + private const string LifecycleStateParamSet = "LifecycleStateParamSet"; + private const string Default = "Default"; + } +} diff --git a/Core/Cmdlets/Mount-OCIComputeManagementInstancePoolInstance.cs b/Core/Cmdlets/Mount-OCIComputeManagementInstancePoolInstance.cs new file mode 100644 index 000000000..9ecfece11 --- /dev/null +++ b/Core/Cmdlets/Mount-OCIComputeManagementInstancePoolInstance.cs @@ -0,0 +1,100 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20160918 + * 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.CoreService.Requests; +using Oci.CoreService.Responses; +using Oci.CoreService.Models; +using Oci.Common.Waiters; + +namespace Oci.CoreService.Cmdlets +{ + [Cmdlet("Mount", "OCIComputeManagementInstancePoolInstance", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.CoreService.Models.InstancePoolInstance), typeof(Oci.CoreService.Responses.AttachInstancePoolInstanceResponse) })] + public class MountOCIComputeManagementInstancePoolInstance : OCIComputeManagementCmdlet + { + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the instance pool.", ParameterSetName = StatusParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the instance pool.", ParameterSetName = Default)] + public string InstancePoolId { get; set; } + + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Attach an instance to a pool", ParameterSetName = StatusParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Attach an instance to a pool", ParameterSetName = Default)] + public AttachInstancePoolInstanceDetails AttachInstancePoolInstanceDetails { get; set; } + + + [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 may be rejected).", ParameterSetName = StatusParamSet)] + [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 may be rejected).", ParameterSetName = Default)] + public string OpcRetryToken { 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 = StatusParamSet)] + public WorkrequestsService.Models.WorkRequest.StatusEnum[] WaitForStatus { get; set; } + + [Parameter(Mandatory = false, HelpMessage = @"Check every WaitIntervalSeconds to see whether the resource has reached a desired state.", ParameterSetName = StatusParamSet)] + 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 = StatusParamSet)] + public int MaxWaitAttempts { get; set; } = MAX_WAITER_ATTEMPTS; + + protected override void ProcessRecord() + { + base.ProcessRecord(); + AttachInstancePoolInstanceRequest request; + + try + { + request = new AttachInstancePoolInstanceRequest + { + InstancePoolId = InstancePoolId, + AttachInstancePoolInstanceDetails = AttachInstancePoolInstanceDetails, + OpcRetryToken = OpcRetryToken + }; + + HandleOutput(request); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private void HandleOutput(AttachInstancePoolInstanceRequest request) + { + var waiterConfig = new WaiterConfiguration + { + MaxAttempts = MaxWaitAttempts, + GetNextDelayInSeconds = (_) => WaitIntervalSeconds + }; + + switch (ParameterSetName) + { + case StatusParamSet: + response = client.Waiters.ForAttachInstancePoolInstance(request, waiterConfig, WaitForStatus).Execute(); + break; + + case Default: + response = client.AttachInstancePoolInstance(request).GetAwaiter().GetResult(); + break; + } + WriteOutput(response, response.InstancePoolInstance); + } + + private AttachInstancePoolInstanceResponse response; + private const string StatusParamSet = "StatusParamSet"; + private const string Default = "Default"; + } +} diff --git a/Core/OCI.PSModules.Core.psd1 b/Core/OCI.PSModules.Core.psd1 index 608c67da1..657c749da 100644 --- a/Core/OCI.PSModules.Core.psd1 +++ b/Core/OCI.PSModules.Core.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 3/1/2021 +# Generated on: 03/04/2021 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Core.dll' # Version number of this module. -ModuleVersion = '10.0.0' +ModuleVersion = '10.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -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.Core.dll' @@ -81,6 +81,7 @@ CmdletsToExport = 'Add-OCIComputeImageShapeCompatibilityEntry', 'Connect-OCIVirtualNetworkRemotePeeringConnections', 'Copy-OCIBlockstorageBootVolumeBackup', 'Copy-OCIBlockstorageVolumeBackup', 'DisMount-OCIComputeBootVolume', + 'DisMount-OCIComputeManagementInstancePoolInstance', 'DisMount-OCIComputeManagementLoadBalancer', 'DisMount-OCIComputeVnic', 'DisMount-OCIComputeVolume', 'DisMount-OCIVirtualNetworkServiceId', @@ -135,6 +136,7 @@ CmdletsToExport = 'Add-OCIComputeImageShapeCompatibilityEntry', 'Get-OCIComputeManagementInstanceConfiguration', 'Get-OCIComputeManagementInstanceConfigurationsList', 'Get-OCIComputeManagementInstancePool', + 'Get-OCIComputeManagementInstancePoolInstance', 'Get-OCIComputeManagementInstancePoolInstancesList', 'Get-OCIComputeManagementInstancePoolLoadBalancerAttachment', 'Get-OCIComputeManagementInstancePoolsList', @@ -228,6 +230,7 @@ CmdletsToExport = 'Add-OCIComputeImageShapeCompatibilityEntry', 'Invoke-OCIVirtualNetworkBulkDeleteVirtualCircuitPublicPrefixes', 'Invoke-OCIVirtualNetworkWithdrawByoipRange', 'Mount-OCIComputeBootVolume', + 'Mount-OCIComputeManagementInstancePoolInstance', 'Mount-OCIComputeManagementLoadBalancer', 'Mount-OCIComputeVnic', 'Mount-OCIComputeVolume', 'Mount-OCIVirtualNetworkServiceId', 'Move-OCIBlockstorageBootVolumeBackupCompartment', diff --git a/Database/OCI.PSModules.Database.psd1 b/Database/OCI.PSModules.Database.psd1 index b368bc6b8..3511cade6 100644 --- a/Database/OCI.PSModules.Database.psd1 +++ b/Database/OCI.PSModules.Database.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 3/1/2021 +# Generated on: 03/04/2021 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Database.dll' # Version number of this module. -ModuleVersion = '10.0.0' +ModuleVersion = '10.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -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.Database.dll' diff --git a/Databasemanagement/OCI.PSModules.Databasemanagement.psd1 b/Databasemanagement/OCI.PSModules.Databasemanagement.psd1 index a3394eaf6..32313c2e3 100644 --- a/Databasemanagement/OCI.PSModules.Databasemanagement.psd1 +++ b/Databasemanagement/OCI.PSModules.Databasemanagement.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 3/1/2021 +# Generated on: 03/04/2021 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Databasemanagement.dll' # Version number of this module. -ModuleVersion = '10.0.0' +ModuleVersion = '10.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -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.Databasemanagement.dll' diff --git a/Datacatalog/OCI.PSModules.Datacatalog.psd1 b/Datacatalog/OCI.PSModules.Datacatalog.psd1 index ad92952f7..563888c6e 100644 --- a/Datacatalog/OCI.PSModules.Datacatalog.psd1 +++ b/Datacatalog/OCI.PSModules.Datacatalog.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 3/1/2021 +# Generated on: 03/04/2021 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Datacatalog.dll' # Version number of this module. -ModuleVersion = '10.0.0' +ModuleVersion = '10.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -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.Datacatalog.dll' diff --git a/Dataflow/OCI.PSModules.Dataflow.psd1 b/Dataflow/OCI.PSModules.Dataflow.psd1 index d91fd729f..bcfb2801b 100644 --- a/Dataflow/OCI.PSModules.Dataflow.psd1 +++ b/Dataflow/OCI.PSModules.Dataflow.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 3/1/2021 +# Generated on: 03/04/2021 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Dataflow.dll' # Version number of this module. -ModuleVersion = '10.0.0' +ModuleVersion = '10.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -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.Dataflow.dll' diff --git a/Dataintegration/OCI.PSModules.Dataintegration.psd1 b/Dataintegration/OCI.PSModules.Dataintegration.psd1 index a243606a6..11690bf9f 100644 --- a/Dataintegration/OCI.PSModules.Dataintegration.psd1 +++ b/Dataintegration/OCI.PSModules.Dataintegration.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 3/1/2021 +# Generated on: 03/04/2021 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Dataintegration.dll' # Version number of this module. -ModuleVersion = '10.0.0' +ModuleVersion = '10.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -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.Dataintegration.dll' diff --git a/Datasafe/OCI.PSModules.Datasafe.psd1 b/Datasafe/OCI.PSModules.Datasafe.psd1 index b108aa51b..aa6113cfe 100644 --- a/Datasafe/OCI.PSModules.Datasafe.psd1 +++ b/Datasafe/OCI.PSModules.Datasafe.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 3/1/2021 +# Generated on: 03/04/2021 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Datasafe.dll' # Version number of this module. -ModuleVersion = '10.0.0' +ModuleVersion = '10.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -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.Datasafe.dll' diff --git a/Datascience/OCI.PSModules.Datascience.psd1 b/Datascience/OCI.PSModules.Datascience.psd1 index 610da97db..9b79d8692 100644 --- a/Datascience/OCI.PSModules.Datascience.psd1 +++ b/Datascience/OCI.PSModules.Datascience.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 3/1/2021 +# Generated on: 03/04/2021 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Datascience.dll' # Version number of this module. -ModuleVersion = '10.0.0' +ModuleVersion = '10.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -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.Datascience.dll' diff --git a/Directory.Build.props b/Directory.Build.props index 3c6a7dcc5..0aa184c5a 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,6 +1,6 @@ - 15.0.0 + 15.1.0 diff --git a/Dns/OCI.PSModules.Dns.psd1 b/Dns/OCI.PSModules.Dns.psd1 index c6a2e1286..7e4926f2f 100644 --- a/Dns/OCI.PSModules.Dns.psd1 +++ b/Dns/OCI.PSModules.Dns.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 3/1/2021 +# Generated on: 03/04/2021 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Dns.dll' # Version number of this module. -ModuleVersion = '10.0.0' +ModuleVersion = '10.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -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.Dns.dll' diff --git a/Dts/OCI.PSModules.Dts.psd1 b/Dts/OCI.PSModules.Dts.psd1 index 2215d6ebb..9596a6fae 100644 --- a/Dts/OCI.PSModules.Dts.psd1 +++ b/Dts/OCI.PSModules.Dts.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 3/1/2021 +# Generated on: 03/04/2021 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Dts.dll' # Version number of this module. -ModuleVersion = '10.0.0' +ModuleVersion = '10.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -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.Dts.dll' diff --git a/Email/OCI.PSModules.Email.psd1 b/Email/OCI.PSModules.Email.psd1 index 39972078b..6329a7164 100644 --- a/Email/OCI.PSModules.Email.psd1 +++ b/Email/OCI.PSModules.Email.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 3/1/2021 +# Generated on: 03/04/2021 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Email.dll' # Version number of this module. -ModuleVersion = '10.0.0' +ModuleVersion = '10.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -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.Email.dll' diff --git a/Events/OCI.PSModules.Events.psd1 b/Events/OCI.PSModules.Events.psd1 index d0a68dc25..dd06586e7 100644 --- a/Events/OCI.PSModules.Events.psd1 +++ b/Events/OCI.PSModules.Events.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 3/1/2021 +# Generated on: 03/04/2021 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Events.dll' # Version number of this module. -ModuleVersion = '10.0.0' +ModuleVersion = '10.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -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.Events.dll' diff --git a/Filestorage/OCI.PSModules.Filestorage.psd1 b/Filestorage/OCI.PSModules.Filestorage.psd1 index 0ce7e906a..ccf6214d6 100644 --- a/Filestorage/OCI.PSModules.Filestorage.psd1 +++ b/Filestorage/OCI.PSModules.Filestorage.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 3/1/2021 +# Generated on: 03/04/2021 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Filestorage.dll' # Version number of this module. -ModuleVersion = '10.0.0' +ModuleVersion = '10.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -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.Filestorage.dll' diff --git a/Functions/OCI.PSModules.Functions.psd1 b/Functions/OCI.PSModules.Functions.psd1 index 541a1eb6e..9568b5e60 100644 --- a/Functions/OCI.PSModules.Functions.psd1 +++ b/Functions/OCI.PSModules.Functions.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 3/1/2021 +# Generated on: 03/04/2021 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Functions.dll' # Version number of this module. -ModuleVersion = '10.0.0' +ModuleVersion = '10.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -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.Functions.dll' diff --git a/Goldengate/Cmdlets/Get-OCIGoldengateDatabaseRegistration.cs b/Goldengate/Cmdlets/Get-OCIGoldengateDatabaseRegistration.cs new file mode 100644 index 000000000..8041ca6b2 --- /dev/null +++ b/Goldengate/Cmdlets/Get-OCIGoldengateDatabaseRegistration.cs @@ -0,0 +1,94 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200407 + * 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.GoldengateService.Requests; +using Oci.GoldengateService.Responses; +using Oci.GoldengateService.Models; +using Oci.Common.Waiters; + +namespace Oci.GoldengateService.Cmdlets +{ + [Cmdlet("Get", "OCIGoldengateDatabaseRegistration", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.GoldengateService.Models.DatabaseRegistration), typeof(Oci.GoldengateService.Responses.GetDatabaseRegistrationResponse) })] + public class GetOCIGoldengateDatabaseRegistration : OCIGoldenGateCmdlet + { + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"A unique DatabaseRegistration identifier.", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"A unique DatabaseRegistration identifier.", ParameterSetName = Default)] + public string DatabaseRegistrationId { 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.GoldengateService.Models.LifecycleState[] 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(); + GetDatabaseRegistrationRequest request; + + try + { + request = new GetDatabaseRegistrationRequest + { + DatabaseRegistrationId = DatabaseRegistrationId, + 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(GetDatabaseRegistrationRequest request) + { + var waiterConfig = new WaiterConfiguration + { + MaxAttempts = MaxWaitAttempts, + GetNextDelayInSeconds = (_) => WaitIntervalSeconds + }; + + switch (ParameterSetName) + { + case LifecycleStateParamSet: + response = client.Waiters.ForDatabaseRegistration(request, waiterConfig, WaitForLifecycleState).Execute(); + break; + + case Default: + response = client.GetDatabaseRegistration(request).GetAwaiter().GetResult(); + break; + } + WriteOutput(response, response.DatabaseRegistration); + } + + private GetDatabaseRegistrationResponse response; + private const string LifecycleStateParamSet = "LifecycleStateParamSet"; + private const string Default = "Default"; + } +} diff --git a/Goldengate/Cmdlets/Get-OCIGoldengateDatabaseRegistrationsList.cs b/Goldengate/Cmdlets/Get-OCIGoldengateDatabaseRegistrationsList.cs new file mode 100644 index 000000000..9d5289e36 --- /dev/null +++ b/Goldengate/Cmdlets/Get-OCIGoldengateDatabaseRegistrationsList.cs @@ -0,0 +1,107 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200407 + * 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.GoldengateService.Requests; +using Oci.GoldengateService.Responses; +using Oci.GoldengateService.Models; + +namespace Oci.GoldengateService.Cmdlets +{ + [Cmdlet("Get", "OCIGoldengateDatabaseRegistrationsList")] + [OutputType(new System.Type[] { typeof(Oci.GoldengateService.Models.DatabaseRegistrationCollection), typeof(Oci.GoldengateService.Responses.ListDatabaseRegistrationsResponse) })] + public class GetOCIGoldengateDatabaseRegistrationsList : OCIGoldenGateCmdlet + { + [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 the resources that match the 'lifecycleState' given.")] + public System.Nullable LifecycleState { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only the resources that match the entire 'displayName' given.")] + public string DisplayName { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return.", ParameterSetName = LimitSet)] + public System.Nullable 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 SortOrder { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The field to sort by. Only one sort order can be provided. Default order for 'timeCreated' is descending. Default order for 'displayName' is ascending. If no value is specified timeCreated is the default.")] + public System.Nullable 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(); + ListDatabaseRegistrationsRequest request; + + try + { + request = new ListDatabaseRegistrationsRequest + { + CompartmentId = CompartmentId, + LifecycleState = LifecycleState, + DisplayName = DisplayName, + Limit = Limit, + Page = Page, + SortOrder = SortOrder, + SortBy = SortBy, + OpcRequestId = OpcRequestId + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.DatabaseRegistrationCollection, 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 DefaultRequest(ListDatabaseRegistrationsRequest request) => Enumerable.Repeat(client.ListDatabaseRegistrations(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListDatabaseRegistrationsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListDatabaseRegistrationsResponse response; + private delegate IEnumerable RequestDelegate(ListDatabaseRegistrationsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Goldengate/Cmdlets/Get-OCIGoldengateDeployment.cs b/Goldengate/Cmdlets/Get-OCIGoldengateDeployment.cs new file mode 100644 index 000000000..f18cd7fca --- /dev/null +++ b/Goldengate/Cmdlets/Get-OCIGoldengateDeployment.cs @@ -0,0 +1,94 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200407 + * 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.GoldengateService.Requests; +using Oci.GoldengateService.Responses; +using Oci.GoldengateService.Models; +using Oci.Common.Waiters; + +namespace Oci.GoldengateService.Cmdlets +{ + [Cmdlet("Get", "OCIGoldengateDeployment", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.GoldengateService.Models.Deployment), typeof(Oci.GoldengateService.Responses.GetDeploymentResponse) })] + public class GetOCIGoldengateDeployment : OCIGoldenGateCmdlet + { + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"A unique Deployment identifier.", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"A unique Deployment identifier.", ParameterSetName = Default)] + public string DeploymentId { 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.GoldengateService.Models.LifecycleState[] 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(); + GetDeploymentRequest request; + + try + { + request = new GetDeploymentRequest + { + DeploymentId = DeploymentId, + 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(GetDeploymentRequest request) + { + var waiterConfig = new WaiterConfiguration + { + MaxAttempts = MaxWaitAttempts, + GetNextDelayInSeconds = (_) => WaitIntervalSeconds + }; + + switch (ParameterSetName) + { + case LifecycleStateParamSet: + response = client.Waiters.ForDeployment(request, waiterConfig, WaitForLifecycleState).Execute(); + break; + + case Default: + response = client.GetDeployment(request).GetAwaiter().GetResult(); + break; + } + WriteOutput(response, response.Deployment); + } + + private GetDeploymentResponse response; + private const string LifecycleStateParamSet = "LifecycleStateParamSet"; + private const string Default = "Default"; + } +} diff --git a/Goldengate/Cmdlets/Get-OCIGoldengateDeploymentBackup.cs b/Goldengate/Cmdlets/Get-OCIGoldengateDeploymentBackup.cs new file mode 100644 index 000000000..db8e68b1a --- /dev/null +++ b/Goldengate/Cmdlets/Get-OCIGoldengateDeploymentBackup.cs @@ -0,0 +1,94 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200407 + * 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.GoldengateService.Requests; +using Oci.GoldengateService.Responses; +using Oci.GoldengateService.Models; +using Oci.Common.Waiters; + +namespace Oci.GoldengateService.Cmdlets +{ + [Cmdlet("Get", "OCIGoldengateDeploymentBackup", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.GoldengateService.Models.DeploymentBackup), typeof(Oci.GoldengateService.Responses.GetDeploymentBackupResponse) })] + public class GetOCIGoldengateDeploymentBackup : OCIGoldenGateCmdlet + { + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"A unique DeploymentBackup identifier.", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"A unique DeploymentBackup identifier.", ParameterSetName = Default)] + public string DeploymentBackupId { 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.GoldengateService.Models.LifecycleState[] 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(); + GetDeploymentBackupRequest request; + + try + { + request = new GetDeploymentBackupRequest + { + DeploymentBackupId = DeploymentBackupId, + 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(GetDeploymentBackupRequest request) + { + var waiterConfig = new WaiterConfiguration + { + MaxAttempts = MaxWaitAttempts, + GetNextDelayInSeconds = (_) => WaitIntervalSeconds + }; + + switch (ParameterSetName) + { + case LifecycleStateParamSet: + response = client.Waiters.ForDeploymentBackup(request, waiterConfig, WaitForLifecycleState).Execute(); + break; + + case Default: + response = client.GetDeploymentBackup(request).GetAwaiter().GetResult(); + break; + } + WriteOutput(response, response.DeploymentBackup); + } + + private GetDeploymentBackupResponse response; + private const string LifecycleStateParamSet = "LifecycleStateParamSet"; + private const string Default = "Default"; + } +} diff --git a/Goldengate/Cmdlets/Get-OCIGoldengateDeploymentBackupsList.cs b/Goldengate/Cmdlets/Get-OCIGoldengateDeploymentBackupsList.cs new file mode 100644 index 000000000..bdbebe6c3 --- /dev/null +++ b/Goldengate/Cmdlets/Get-OCIGoldengateDeploymentBackupsList.cs @@ -0,0 +1,111 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200407 + * 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.GoldengateService.Requests; +using Oci.GoldengateService.Responses; +using Oci.GoldengateService.Models; + +namespace Oci.GoldengateService.Cmdlets +{ + [Cmdlet("Get", "OCIGoldengateDeploymentBackupsList")] + [OutputType(new System.Type[] { typeof(Oci.GoldengateService.Models.DeploymentBackupCollection), typeof(Oci.GoldengateService.Responses.ListDeploymentBackupsResponse) })] + public class GetOCIGoldengateDeploymentBackupsList : OCIGoldenGateCmdlet + { + [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 = @"The ID of the deployment in which to list resources.")] + public string DeploymentId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only the resources that match the 'lifecycleState' given.")] + public System.Nullable LifecycleState { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only the resources that match the entire 'displayName' given.")] + public string DisplayName { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return.", ParameterSetName = LimitSet)] + public System.Nullable 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 SortOrder { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The field to sort by. Only one sort order can be provided. Default order for 'timeCreated' is descending. Default order for 'displayName' is ascending. If no value is specified timeCreated is the default.")] + public System.Nullable 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(); + ListDeploymentBackupsRequest request; + + try + { + request = new ListDeploymentBackupsRequest + { + CompartmentId = CompartmentId, + DeploymentId = DeploymentId, + LifecycleState = LifecycleState, + DisplayName = DisplayName, + Limit = Limit, + Page = Page, + SortOrder = SortOrder, + SortBy = SortBy, + OpcRequestId = OpcRequestId + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.DeploymentBackupCollection, 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 DefaultRequest(ListDeploymentBackupsRequest request) => Enumerable.Repeat(client.ListDeploymentBackups(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListDeploymentBackupsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListDeploymentBackupsResponse response; + private delegate IEnumerable RequestDelegate(ListDeploymentBackupsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Goldengate/Cmdlets/Get-OCIGoldengateDeploymentsList.cs b/Goldengate/Cmdlets/Get-OCIGoldengateDeploymentsList.cs new file mode 100644 index 000000000..e828ef689 --- /dev/null +++ b/Goldengate/Cmdlets/Get-OCIGoldengateDeploymentsList.cs @@ -0,0 +1,107 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200407 + * 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.GoldengateService.Requests; +using Oci.GoldengateService.Responses; +using Oci.GoldengateService.Models; + +namespace Oci.GoldengateService.Cmdlets +{ + [Cmdlet("Get", "OCIGoldengateDeploymentsList")] + [OutputType(new System.Type[] { typeof(Oci.GoldengateService.Models.DeploymentCollection), typeof(Oci.GoldengateService.Responses.ListDeploymentsResponse) })] + public class GetOCIGoldengateDeploymentsList : OCIGoldenGateCmdlet + { + [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 the resources that match the 'lifecycleState' given.")] + public System.Nullable LifecycleState { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only the resources that match the entire 'displayName' given.")] + public string DisplayName { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return.", ParameterSetName = LimitSet)] + public System.Nullable 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 SortOrder { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The field to sort by. Only one sort order can be provided. Default order for 'timeCreated' is descending. Default order for 'displayName' is ascending. If no value is specified timeCreated is the default.")] + public System.Nullable 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(); + ListDeploymentsRequest request; + + try + { + request = new ListDeploymentsRequest + { + CompartmentId = CompartmentId, + LifecycleState = LifecycleState, + DisplayName = DisplayName, + Limit = Limit, + Page = Page, + SortOrder = SortOrder, + SortBy = SortBy, + OpcRequestId = OpcRequestId + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.DeploymentCollection, 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 DefaultRequest(ListDeploymentsRequest request) => Enumerable.Repeat(client.ListDeployments(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListDeploymentsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListDeploymentsResponse response; + private delegate IEnumerable RequestDelegate(ListDeploymentsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Goldengate/Cmdlets/Get-OCIGoldengateWorkRequest.cs b/Goldengate/Cmdlets/Get-OCIGoldengateWorkRequest.cs new file mode 100644 index 000000000..c455c8745 --- /dev/null +++ b/Goldengate/Cmdlets/Get-OCIGoldengateWorkRequest.cs @@ -0,0 +1,94 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200407 + * 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.GoldengateService.Requests; +using Oci.GoldengateService.Responses; +using Oci.GoldengateService.Models; +using Oci.Common.Waiters; + +namespace Oci.GoldengateService.Cmdlets +{ + [Cmdlet("Get", "OCIGoldengateWorkRequest", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.GoldengateService.Models.WorkRequest), typeof(Oci.GoldengateService.Responses.GetWorkRequestResponse) })] + public class GetOCIGoldengateWorkRequest : OCIGoldenGateCmdlet + { + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The ID of the asynchronous request.", ParameterSetName = StatusParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The ID of the asynchronous request.", ParameterSetName = Default)] + public string WorkRequestId { get; set; } + + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.", ParameterSetName = StatusParamSet)] + [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 = StatusParamSet)] + public Oci.GoldengateService.Models.OperationStatus[] WaitForStatus { get; set; } + + [Parameter(Mandatory = false, HelpMessage = @"Check every WaitIntervalSeconds to see whether the resource has reached a desired state.", ParameterSetName = StatusParamSet)] + 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 = StatusParamSet)] + public int MaxWaitAttempts { get; set; } = MAX_WAITER_ATTEMPTS; + + protected override void ProcessRecord() + { + base.ProcessRecord(); + GetWorkRequestRequest request; + + try + { + request = new GetWorkRequestRequest + { + WorkRequestId = WorkRequestId, + 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(GetWorkRequestRequest request) + { + var waiterConfig = new WaiterConfiguration + { + MaxAttempts = MaxWaitAttempts, + GetNextDelayInSeconds = (_) => WaitIntervalSeconds + }; + + switch (ParameterSetName) + { + case StatusParamSet: + response = client.Waiters.ForWorkRequest(request, waiterConfig, WaitForStatus).Execute(); + break; + + case Default: + response = client.GetWorkRequest(request).GetAwaiter().GetResult(); + break; + } + WriteOutput(response, response.WorkRequest); + } + + private GetWorkRequestResponse response; + private const string StatusParamSet = "StatusParamSet"; + private const string Default = "Default"; + } +} diff --git a/Goldengate/Cmdlets/Get-OCIGoldengateWorkRequestErrorsList.cs b/Goldengate/Cmdlets/Get-OCIGoldengateWorkRequestErrorsList.cs new file mode 100644 index 000000000..57a4c1df0 --- /dev/null +++ b/Goldengate/Cmdlets/Get-OCIGoldengateWorkRequestErrorsList.cs @@ -0,0 +1,91 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200407 + * 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.GoldengateService.Requests; +using Oci.GoldengateService.Responses; +using Oci.GoldengateService.Models; + +namespace Oci.GoldengateService.Cmdlets +{ + [Cmdlet("Get", "OCIGoldengateWorkRequestErrorsList")] + [OutputType(new System.Type[] { typeof(Oci.GoldengateService.Models.WorkRequestError), typeof(Oci.GoldengateService.Responses.ListWorkRequestErrorsResponse) })] + public class GetOCIGoldengateWorkRequestErrorsList : OCIGoldenGateCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The ID of the asynchronous request.")] + public string WorkRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { 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 maximum number of items to return.", ParameterSetName = LimitSet)] + public System.Nullable Limit { 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(); + ListWorkRequestErrorsRequest request; + + try + { + request = new ListWorkRequestErrorsRequest + { + WorkRequestId = WorkRequestId, + OpcRequestId = OpcRequestId, + Page = Page, + Limit = Limit + }; + IEnumerable 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 DefaultRequest(ListWorkRequestErrorsRequest request) => Enumerable.Repeat(client.ListWorkRequestErrors(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListWorkRequestErrorsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListWorkRequestErrorsResponse response; + private delegate IEnumerable RequestDelegate(ListWorkRequestErrorsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Goldengate/Cmdlets/Get-OCIGoldengateWorkRequestLogsList.cs b/Goldengate/Cmdlets/Get-OCIGoldengateWorkRequestLogsList.cs new file mode 100644 index 000000000..b315c9810 --- /dev/null +++ b/Goldengate/Cmdlets/Get-OCIGoldengateWorkRequestLogsList.cs @@ -0,0 +1,91 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200407 + * 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.GoldengateService.Requests; +using Oci.GoldengateService.Responses; +using Oci.GoldengateService.Models; + +namespace Oci.GoldengateService.Cmdlets +{ + [Cmdlet("Get", "OCIGoldengateWorkRequestLogsList")] + [OutputType(new System.Type[] { typeof(Oci.GoldengateService.Models.WorkRequestLogEntry), typeof(Oci.GoldengateService.Responses.ListWorkRequestLogsResponse) })] + public class GetOCIGoldengateWorkRequestLogsList : OCIGoldenGateCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The ID of the asynchronous request.")] + public string WorkRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { 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 maximum number of items to return.", ParameterSetName = LimitSet)] + public System.Nullable Limit { 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(); + ListWorkRequestLogsRequest request; + + try + { + request = new ListWorkRequestLogsRequest + { + WorkRequestId = WorkRequestId, + OpcRequestId = OpcRequestId, + Page = Page, + Limit = Limit + }; + IEnumerable 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 DefaultRequest(ListWorkRequestLogsRequest request) => Enumerable.Repeat(client.ListWorkRequestLogs(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListWorkRequestLogsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListWorkRequestLogsResponse response; + private delegate IEnumerable RequestDelegate(ListWorkRequestLogsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Goldengate/Cmdlets/Get-OCIGoldengateWorkRequestsList.cs b/Goldengate/Cmdlets/Get-OCIGoldengateWorkRequestsList.cs new file mode 100644 index 000000000..d88c9491e --- /dev/null +++ b/Goldengate/Cmdlets/Get-OCIGoldengateWorkRequestsList.cs @@ -0,0 +1,91 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200407 + * 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.GoldengateService.Requests; +using Oci.GoldengateService.Responses; +using Oci.GoldengateService.Models; + +namespace Oci.GoldengateService.Cmdlets +{ + [Cmdlet("Get", "OCIGoldengateWorkRequestsList")] + [OutputType(new System.Type[] { typeof(Oci.GoldengateService.Models.WorkRequest), typeof(Oci.GoldengateService.Responses.ListWorkRequestsResponse) })] + public class GetOCIGoldengateWorkRequestsList : OCIGoldenGateCmdlet + { + [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 = @"The client request ID for tracing.")] + public string OpcRequestId { 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 maximum number of items to return.", ParameterSetName = LimitSet)] + public System.Nullable Limit { 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(); + ListWorkRequestsRequest request; + + try + { + request = new ListWorkRequestsRequest + { + CompartmentId = CompartmentId, + OpcRequestId = OpcRequestId, + Page = Page, + Limit = Limit + }; + IEnumerable 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 DefaultRequest(ListWorkRequestsRequest request) => Enumerable.Repeat(client.ListWorkRequests(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListWorkRequestsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListWorkRequestsResponse response; + private delegate IEnumerable RequestDelegate(ListWorkRequestsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Goldengate/Cmdlets/Invoke-OCIGoldengateUpgradeDeployment.cs b/Goldengate/Cmdlets/Invoke-OCIGoldengateUpgradeDeployment.cs new file mode 100644 index 000000000..603543d77 --- /dev/null +++ b/Goldengate/Cmdlets/Invoke-OCIGoldengateUpgradeDeployment.cs @@ -0,0 +1,70 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200407 + * 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.GoldengateService.Requests; +using Oci.GoldengateService.Responses; +using Oci.GoldengateService.Models; + +namespace Oci.GoldengateService.Cmdlets +{ + [Cmdlet("Invoke", "OCIGoldengateUpgradeDeployment")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.GoldengateService.Responses.UpgradeDeploymentResponse) })] + public class InvokeOCIGoldengateUpgradeDeployment : OCIGoldenGateCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"A unique Deployment identifier.")] + public string DeploymentId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"A placeholder for any additional metadata to describe the deployment upgrade. This parameter also accepts subtype of type .")] + public UpgradeDeploymentDetails UpgradeDeploymentDetails { get; set; } + + [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 is updated or deleted only if the etag you provide matches the resource's current etag value.")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + + [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 is rejected.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + UpgradeDeploymentRequest request; + + try + { + request = new UpgradeDeploymentRequest + { + DeploymentId = DeploymentId, + UpgradeDeploymentDetails = UpgradeDeploymentDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId, + OpcRetryToken = OpcRetryToken + }; + + response = client.UpgradeDeployment(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private UpgradeDeploymentResponse response; + } +} diff --git a/Goldengate/Cmdlets/Move-OCIGoldengateDatabaseRegistrationCompartment.cs b/Goldengate/Cmdlets/Move-OCIGoldengateDatabaseRegistrationCompartment.cs new file mode 100644 index 000000000..75d6c9657 --- /dev/null +++ b/Goldengate/Cmdlets/Move-OCIGoldengateDatabaseRegistrationCompartment.cs @@ -0,0 +1,70 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200407 + * 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.GoldengateService.Requests; +using Oci.GoldengateService.Responses; +using Oci.GoldengateService.Models; + +namespace Oci.GoldengateService.Cmdlets +{ + [Cmdlet("Move", "OCIGoldengateDatabaseRegistrationCompartment")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.GoldengateService.Responses.ChangeDatabaseRegistrationCompartmentResponse) })] + public class MoveOCIGoldengateDatabaseRegistrationCompartment : OCIGoldenGateCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"A unique DatabaseRegistration identifier.")] + public string DatabaseRegistrationId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Properties to change the compartment of a DatabaseRegistration.")] + public ChangeDatabaseRegistrationCompartmentDetails ChangeDatabaseRegistrationCompartmentDetails { get; set; } + + [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 is updated or deleted only if the etag you provide matches the resource's current etag value.")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + + [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 is rejected.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ChangeDatabaseRegistrationCompartmentRequest request; + + try + { + request = new ChangeDatabaseRegistrationCompartmentRequest + { + DatabaseRegistrationId = DatabaseRegistrationId, + ChangeDatabaseRegistrationCompartmentDetails = ChangeDatabaseRegistrationCompartmentDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId, + OpcRetryToken = OpcRetryToken + }; + + response = client.ChangeDatabaseRegistrationCompartment(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private ChangeDatabaseRegistrationCompartmentResponse response; + } +} diff --git a/Goldengate/Cmdlets/Move-OCIGoldengateDeploymentBackupCompartment.cs b/Goldengate/Cmdlets/Move-OCIGoldengateDeploymentBackupCompartment.cs new file mode 100644 index 000000000..7722d1492 --- /dev/null +++ b/Goldengate/Cmdlets/Move-OCIGoldengateDeploymentBackupCompartment.cs @@ -0,0 +1,70 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200407 + * 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.GoldengateService.Requests; +using Oci.GoldengateService.Responses; +using Oci.GoldengateService.Models; + +namespace Oci.GoldengateService.Cmdlets +{ + [Cmdlet("Move", "OCIGoldengateDeploymentBackupCompartment")] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.GoldengateService.Responses.ChangeDeploymentBackupCompartmentResponse) })] + public class MoveOCIGoldengateDeploymentBackupCompartment : OCIGoldenGateCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"A unique DeploymentBackup identifier.")] + public string DeploymentBackupId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Properties to change the compartment of a DeploymentBackup.")] + public ChangeDeploymentBackupCompartmentDetails ChangeDeploymentBackupCompartmentDetails { get; set; } + + [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 is updated or deleted only if the etag you provide matches the resource's current etag value.")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + + [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 is rejected.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ChangeDeploymentBackupCompartmentRequest request; + + try + { + request = new ChangeDeploymentBackupCompartmentRequest + { + DeploymentBackupId = DeploymentBackupId, + ChangeDeploymentBackupCompartmentDetails = ChangeDeploymentBackupCompartmentDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId, + OpcRetryToken = OpcRetryToken + }; + + response = client.ChangeDeploymentBackupCompartment(request).GetAwaiter().GetResult(); + WriteOutput(response); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private ChangeDeploymentBackupCompartmentResponse response; + } +} diff --git a/Goldengate/Cmdlets/Move-OCIGoldengateDeploymentCompartment.cs b/Goldengate/Cmdlets/Move-OCIGoldengateDeploymentCompartment.cs new file mode 100644 index 000000000..f99b68a78 --- /dev/null +++ b/Goldengate/Cmdlets/Move-OCIGoldengateDeploymentCompartment.cs @@ -0,0 +1,70 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200407 + * 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.GoldengateService.Requests; +using Oci.GoldengateService.Responses; +using Oci.GoldengateService.Models; + +namespace Oci.GoldengateService.Cmdlets +{ + [Cmdlet("Move", "OCIGoldengateDeploymentCompartment")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.GoldengateService.Responses.ChangeDeploymentCompartmentResponse) })] + public class MoveOCIGoldengateDeploymentCompartment : OCIGoldenGateCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"A unique Deployment identifier.")] + public string DeploymentId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Properties to change the compartment of a Deployment.")] + public ChangeDeploymentCompartmentDetails ChangeDeploymentCompartmentDetails { get; set; } + + [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 is updated or deleted only if the etag you provide matches the resource's current etag value.")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + + [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 is rejected.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ChangeDeploymentCompartmentRequest request; + + try + { + request = new ChangeDeploymentCompartmentRequest + { + DeploymentId = DeploymentId, + ChangeDeploymentCompartmentDetails = ChangeDeploymentCompartmentDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId, + OpcRetryToken = OpcRetryToken + }; + + response = client.ChangeDeploymentCompartment(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private ChangeDeploymentCompartmentResponse response; + } +} diff --git a/Goldengate/Cmdlets/New-OCIGoldengateDatabaseRegistration.cs b/Goldengate/Cmdlets/New-OCIGoldengateDatabaseRegistration.cs new file mode 100644 index 000000000..a894688cf --- /dev/null +++ b/Goldengate/Cmdlets/New-OCIGoldengateDatabaseRegistration.cs @@ -0,0 +1,62 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200407 + * 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.GoldengateService.Requests; +using Oci.GoldengateService.Responses; +using Oci.GoldengateService.Models; + +namespace Oci.GoldengateService.Cmdlets +{ + [Cmdlet("New", "OCIGoldengateDatabaseRegistration")] + [OutputType(new System.Type[] { typeof(Oci.GoldengateService.Models.DatabaseRegistration), typeof(Oci.GoldengateService.Responses.CreateDatabaseRegistrationResponse) })] + public class NewOCIGoldengateDatabaseRegistration : OCIGoldenGateCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Specification of the DatabaseRegistration to create.")] + public CreateDatabaseRegistrationDetails CreateDatabaseRegistrationDetails { get; set; } + + [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 is rejected.")] + public string OpcRetryToken { 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(); + CreateDatabaseRegistrationRequest request; + + try + { + request = new CreateDatabaseRegistrationRequest + { + CreateDatabaseRegistrationDetails = CreateDatabaseRegistrationDetails, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId + }; + + response = client.CreateDatabaseRegistration(request).GetAwaiter().GetResult(); + WriteOutput(response, response.DatabaseRegistration); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private CreateDatabaseRegistrationResponse response; + } +} diff --git a/Goldengate/Cmdlets/New-OCIGoldengateDeployment.cs b/Goldengate/Cmdlets/New-OCIGoldengateDeployment.cs new file mode 100644 index 000000000..56703c89b --- /dev/null +++ b/Goldengate/Cmdlets/New-OCIGoldengateDeployment.cs @@ -0,0 +1,62 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200407 + * 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.GoldengateService.Requests; +using Oci.GoldengateService.Responses; +using Oci.GoldengateService.Models; + +namespace Oci.GoldengateService.Cmdlets +{ + [Cmdlet("New", "OCIGoldengateDeployment")] + [OutputType(new System.Type[] { typeof(Oci.GoldengateService.Models.Deployment), typeof(Oci.GoldengateService.Responses.CreateDeploymentResponse) })] + public class NewOCIGoldengateDeployment : OCIGoldenGateCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Specifications to create the Deployment.")] + public CreateDeploymentDetails CreateDeploymentDetails { get; set; } + + [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 is rejected.")] + public string OpcRetryToken { 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(); + CreateDeploymentRequest request; + + try + { + request = new CreateDeploymentRequest + { + CreateDeploymentDetails = CreateDeploymentDetails, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId + }; + + response = client.CreateDeployment(request).GetAwaiter().GetResult(); + WriteOutput(response, response.Deployment); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private CreateDeploymentResponse response; + } +} diff --git a/Goldengate/Cmdlets/New-OCIGoldengateDeploymentBackup.cs b/Goldengate/Cmdlets/New-OCIGoldengateDeploymentBackup.cs new file mode 100644 index 000000000..341ce37c1 --- /dev/null +++ b/Goldengate/Cmdlets/New-OCIGoldengateDeploymentBackup.cs @@ -0,0 +1,62 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200407 + * 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.GoldengateService.Requests; +using Oci.GoldengateService.Responses; +using Oci.GoldengateService.Models; + +namespace Oci.GoldengateService.Cmdlets +{ + [Cmdlet("New", "OCIGoldengateDeploymentBackup")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.GoldengateService.Responses.CreateDeploymentBackupResponse) })] + public class NewOCIGoldengateDeploymentBackup : OCIGoldenGateCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Specification of the DeploymentBackup to create.")] + public CreateDeploymentBackupDetails CreateDeploymentBackupDetails { get; set; } + + [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 is rejected.")] + public string OpcRetryToken { 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(); + CreateDeploymentBackupRequest request; + + try + { + request = new CreateDeploymentBackupRequest + { + CreateDeploymentBackupDetails = CreateDeploymentBackupDetails, + OpcRetryToken = OpcRetryToken, + OpcRequestId = OpcRequestId + }; + + response = client.CreateDeploymentBackup(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private CreateDeploymentBackupResponse response; + } +} diff --git a/Goldengate/Cmdlets/OCIGoldenGateCmdlet.cs b/Goldengate/Cmdlets/OCIGoldenGateCmdlet.cs new file mode 100644 index 000000000..7c1547f4c --- /dev/null +++ b/Goldengate/Cmdlets/OCIGoldenGateCmdlet.cs @@ -0,0 +1,86 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200407 + * 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.Common.Retry; +using Oci.GoldengateService; + +namespace Oci.GoldengateService.Cmdlets +{ + public abstract class OCIGoldenGateCmdlet : Oci.PSModules.Common.Cmdlets.OCICmdlet + { + + protected override void BeginProcessing() + { + base.BeginProcessing(); + try + { + bool noretry = AvoidRetry(); + WriteDebug($"Retry strategy : {!noretry}"); + retryConfig = (noretry) ? null : new RetryConfiguration(); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + try + { + client?.Dispose(); + int timeout = GetPreferredTimeout(); + WriteDebug($"Cmdlet Timeout : {timeout} milliseconds."); + client = new GoldenGateClient(AuthProvider, new Oci.Common.ClientConfiguration + { + RetryConfiguration = retryConfig, + TimeoutMillis = timeout, + ClientUserAgent = PSUserAgent + }); + string region = GetPreferredRegion(); + if (region != null) + { + WriteDebug("Choosing Region:" + region); + client.SetRegion(region); + } + if (Endpoint != null) + { + WriteDebug("Choosing Endpoint:" + Endpoint); + client.SetEndpoint(Endpoint); + } + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + } + + protected override void EndProcessing() + { + base.EndProcessing(); + client.Dispose(); + } + + protected override void TerminatingErrorDuringExecution(Exception ex) + { + client?.Dispose(); + base.TerminatingErrorDuringExecution(ex); + } + + protected GoldenGateClient client; + private RetryConfiguration retryConfig; + } +} \ No newline at end of file diff --git a/Goldengate/Cmdlets/Remove-OCIGoldengateDatabaseRegistration.cs b/Goldengate/Cmdlets/Remove-OCIGoldengateDatabaseRegistration.cs new file mode 100644 index 000000000..e6e2cd9ef --- /dev/null +++ b/Goldengate/Cmdlets/Remove-OCIGoldengateDatabaseRegistration.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200407 + * 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.GoldengateService.Requests; +using Oci.GoldengateService.Responses; +using Oci.GoldengateService.Models; + +namespace Oci.GoldengateService.Cmdlets +{ + [Cmdlet("Remove", "OCIGoldengateDatabaseRegistration", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.GoldengateService.Responses.DeleteDatabaseRegistrationResponse) })] + public class RemoveOCIGoldengateDatabaseRegistration : OCIGoldenGateCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"A unique DatabaseRegistration identifier.")] + public string DatabaseRegistrationId { get; set; } + + [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 is updated or deleted only if the etag you provide matches the resource's current etag value.")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "Ignore confirmation and force the Cmdlet to complete action.")] + public SwitchParameter Force { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + + if (!ConfirmDelete("OCIGoldengateDatabaseRegistration", "Remove")) + { + return; + } + + DeleteDatabaseRegistrationRequest request; + + try + { + request = new DeleteDatabaseRegistrationRequest + { + DatabaseRegistrationId = DatabaseRegistrationId, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.DeleteDatabaseRegistration(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private DeleteDatabaseRegistrationResponse response; + } +} diff --git a/Goldengate/Cmdlets/Remove-OCIGoldengateDeployment.cs b/Goldengate/Cmdlets/Remove-OCIGoldengateDeployment.cs new file mode 100644 index 000000000..d6945f071 --- /dev/null +++ b/Goldengate/Cmdlets/Remove-OCIGoldengateDeployment.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200407 + * 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.GoldengateService.Requests; +using Oci.GoldengateService.Responses; +using Oci.GoldengateService.Models; + +namespace Oci.GoldengateService.Cmdlets +{ + [Cmdlet("Remove", "OCIGoldengateDeployment", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.GoldengateService.Responses.DeleteDeploymentResponse) })] + public class RemoveOCIGoldengateDeployment : OCIGoldenGateCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"A unique Deployment identifier.")] + public string DeploymentId { get; set; } + + [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 is updated or deleted only if the etag you provide matches the resource's current etag value.")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "Ignore confirmation and force the Cmdlet to complete action.")] + public SwitchParameter Force { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + + if (!ConfirmDelete("OCIGoldengateDeployment", "Remove")) + { + return; + } + + DeleteDeploymentRequest request; + + try + { + request = new DeleteDeploymentRequest + { + DeploymentId = DeploymentId, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.DeleteDeployment(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private DeleteDeploymentResponse response; + } +} diff --git a/Goldengate/Cmdlets/Remove-OCIGoldengateDeploymentBackup.cs b/Goldengate/Cmdlets/Remove-OCIGoldengateDeploymentBackup.cs new file mode 100644 index 000000000..32edf28a5 --- /dev/null +++ b/Goldengate/Cmdlets/Remove-OCIGoldengateDeploymentBackup.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200407 + * 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.GoldengateService.Requests; +using Oci.GoldengateService.Responses; +using Oci.GoldengateService.Models; + +namespace Oci.GoldengateService.Cmdlets +{ + [Cmdlet("Remove", "OCIGoldengateDeploymentBackup", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.GoldengateService.Responses.DeleteDeploymentBackupResponse) })] + public class RemoveOCIGoldengateDeploymentBackup : OCIGoldenGateCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"A unique DeploymentBackup identifier.")] + public string DeploymentBackupId { get; set; } + + [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 is updated or deleted only if the etag you provide matches the resource's current etag value.")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "Ignore confirmation and force the Cmdlet to complete action.")] + public SwitchParameter Force { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + + if (!ConfirmDelete("OCIGoldengateDeploymentBackup", "Remove")) + { + return; + } + + DeleteDeploymentBackupRequest request; + + try + { + request = new DeleteDeploymentBackupRequest + { + DeploymentBackupId = DeploymentBackupId, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.DeleteDeploymentBackup(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private DeleteDeploymentBackupResponse response; + } +} diff --git a/Goldengate/Cmdlets/Restore-OCIGoldengateDeployment.cs b/Goldengate/Cmdlets/Restore-OCIGoldengateDeployment.cs new file mode 100644 index 000000000..b8c13b387 --- /dev/null +++ b/Goldengate/Cmdlets/Restore-OCIGoldengateDeployment.cs @@ -0,0 +1,70 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200407 + * 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.GoldengateService.Requests; +using Oci.GoldengateService.Responses; +using Oci.GoldengateService.Models; + +namespace Oci.GoldengateService.Cmdlets +{ + [Cmdlet("Restore", "OCIGoldengateDeployment")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.GoldengateService.Responses.RestoreDeploymentResponse) })] + public class RestoreOCIGoldengateDeployment : OCIGoldenGateCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"A unique DeploymentBackup identifier.")] + public string DeploymentBackupId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"A placeholder for any additional metadata to describe the deployment restore. This parameter also accepts subtype of type .")] + public RestoreDeploymentDetails RestoreDeploymentDetails { get; set; } + + [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 is updated or deleted only if the etag you provide matches the resource's current etag value.")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + + [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 is rejected.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + RestoreDeploymentRequest request; + + try + { + request = new RestoreDeploymentRequest + { + DeploymentBackupId = DeploymentBackupId, + RestoreDeploymentDetails = RestoreDeploymentDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId, + OpcRetryToken = OpcRetryToken + }; + + response = client.RestoreDeployment(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RestoreDeploymentResponse response; + } +} diff --git a/Goldengate/Cmdlets/Start-OCIGoldengateDeployment.cs b/Goldengate/Cmdlets/Start-OCIGoldengateDeployment.cs new file mode 100644 index 000000000..cf3e79d11 --- /dev/null +++ b/Goldengate/Cmdlets/Start-OCIGoldengateDeployment.cs @@ -0,0 +1,70 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200407 + * 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.GoldengateService.Requests; +using Oci.GoldengateService.Responses; +using Oci.GoldengateService.Models; + +namespace Oci.GoldengateService.Cmdlets +{ + [Cmdlet("Start", "OCIGoldengateDeployment")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.GoldengateService.Responses.StartDeploymentResponse) })] + public class StartOCIGoldengateDeployment : OCIGoldenGateCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"A unique Deployment identifier.")] + public string DeploymentId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"A placeholder for any additional metadata to describe the deployment start. This parameter also accepts subtype of type .")] + public StartDeploymentDetails StartDeploymentDetails { get; set; } + + [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 is updated or deleted only if the etag you provide matches the resource's current etag value.")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + + [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 is rejected.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + StartDeploymentRequest request; + + try + { + request = new StartDeploymentRequest + { + DeploymentId = DeploymentId, + StartDeploymentDetails = StartDeploymentDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId, + OpcRetryToken = OpcRetryToken + }; + + response = client.StartDeployment(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private StartDeploymentResponse response; + } +} diff --git a/Goldengate/Cmdlets/Stop-OCIGoldengateDeployment.cs b/Goldengate/Cmdlets/Stop-OCIGoldengateDeployment.cs new file mode 100644 index 000000000..91ed6572e --- /dev/null +++ b/Goldengate/Cmdlets/Stop-OCIGoldengateDeployment.cs @@ -0,0 +1,70 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200407 + * 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.GoldengateService.Requests; +using Oci.GoldengateService.Responses; +using Oci.GoldengateService.Models; + +namespace Oci.GoldengateService.Cmdlets +{ + [Cmdlet("Stop", "OCIGoldengateDeployment")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.GoldengateService.Responses.StopDeploymentResponse) })] + public class StopOCIGoldengateDeployment : OCIGoldenGateCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"A unique Deployment identifier.")] + public string DeploymentId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"A placeholder for any additional metadata to describe the deployment stop. This parameter also accepts subtype of type .")] + public StopDeploymentDetails StopDeploymentDetails { get; set; } + + [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 is updated or deleted only if the etag you provide matches the resource's current etag value.")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + + [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 is rejected.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + StopDeploymentRequest request; + + try + { + request = new StopDeploymentRequest + { + DeploymentId = DeploymentId, + StopDeploymentDetails = StopDeploymentDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId, + OpcRetryToken = OpcRetryToken + }; + + response = client.StopDeployment(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private StopDeploymentResponse response; + } +} diff --git a/Goldengate/Cmdlets/Update-OCIGoldengateDatabaseRegistration.cs b/Goldengate/Cmdlets/Update-OCIGoldengateDatabaseRegistration.cs new file mode 100644 index 000000000..bc807e003 --- /dev/null +++ b/Goldengate/Cmdlets/Update-OCIGoldengateDatabaseRegistration.cs @@ -0,0 +1,66 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200407 + * 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.GoldengateService.Requests; +using Oci.GoldengateService.Responses; +using Oci.GoldengateService.Models; + +namespace Oci.GoldengateService.Cmdlets +{ + [Cmdlet("Update", "OCIGoldengateDatabaseRegistration")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.GoldengateService.Responses.UpdateDatabaseRegistrationResponse) })] + public class UpdateOCIGoldengateDatabaseRegistration : OCIGoldenGateCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"A unique DatabaseRegistration identifier.")] + public string DatabaseRegistrationId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The new DatabaseRegistration specifications to apply.")] + public UpdateDatabaseRegistrationDetails UpdateDatabaseRegistrationDetails { get; set; } + + [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 is updated or deleted only if the etag you provide matches the resource's current etag value.")] + public string IfMatch { 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(); + UpdateDatabaseRegistrationRequest request; + + try + { + request = new UpdateDatabaseRegistrationRequest + { + DatabaseRegistrationId = DatabaseRegistrationId, + UpdateDatabaseRegistrationDetails = UpdateDatabaseRegistrationDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.UpdateDatabaseRegistration(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private UpdateDatabaseRegistrationResponse response; + } +} diff --git a/Goldengate/Cmdlets/Update-OCIGoldengateDeployment.cs b/Goldengate/Cmdlets/Update-OCIGoldengateDeployment.cs new file mode 100644 index 000000000..23df2b58a --- /dev/null +++ b/Goldengate/Cmdlets/Update-OCIGoldengateDeployment.cs @@ -0,0 +1,66 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200407 + * 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.GoldengateService.Requests; +using Oci.GoldengateService.Responses; +using Oci.GoldengateService.Models; + +namespace Oci.GoldengateService.Cmdlets +{ + [Cmdlet("Update", "OCIGoldengateDeployment")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.GoldengateService.Responses.UpdateDeploymentResponse) })] + public class UpdateOCIGoldengateDeployment : OCIGoldenGateCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"A unique Deployment identifier.")] + public string DeploymentId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The information to be updated.")] + public UpdateDeploymentDetails UpdateDeploymentDetails { get; set; } + + [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 is updated or deleted only if the etag you provide matches the resource's current etag value.")] + public string IfMatch { 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(); + UpdateDeploymentRequest request; + + try + { + request = new UpdateDeploymentRequest + { + DeploymentId = DeploymentId, + UpdateDeploymentDetails = UpdateDeploymentDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.UpdateDeployment(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private UpdateDeploymentResponse response; + } +} diff --git a/Goldengate/Cmdlets/Update-OCIGoldengateDeploymentBackup.cs b/Goldengate/Cmdlets/Update-OCIGoldengateDeploymentBackup.cs new file mode 100644 index 000000000..511c57bac --- /dev/null +++ b/Goldengate/Cmdlets/Update-OCIGoldengateDeploymentBackup.cs @@ -0,0 +1,66 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200407 + * 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.GoldengateService.Requests; +using Oci.GoldengateService.Responses; +using Oci.GoldengateService.Models; + +namespace Oci.GoldengateService.Cmdlets +{ + [Cmdlet("Update", "OCIGoldengateDeploymentBackup")] + [OutputType(new System.Type[] { typeof(Oci.GoldengateService.Models.DeploymentBackup), typeof(Oci.GoldengateService.Responses.UpdateDeploymentBackupResponse) })] + public class UpdateOCIGoldengateDeploymentBackup : OCIGoldenGateCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"A unique DeploymentBackup identifier.")] + public string DeploymentBackupId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The information to be updated.")] + public UpdateDeploymentBackupDetails UpdateDeploymentBackupDetails { get; set; } + + [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 is updated or deleted only if the etag you provide matches the resource's current etag value.")] + public string IfMatch { 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(); + UpdateDeploymentBackupRequest request; + + try + { + request = new UpdateDeploymentBackupRequest + { + DeploymentBackupId = DeploymentBackupId, + UpdateDeploymentBackupDetails = UpdateDeploymentBackupDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId + }; + + response = client.UpdateDeploymentBackup(request).GetAwaiter().GetResult(); + WriteOutput(response, response.DeploymentBackup); + FinishProcessing(response); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private UpdateDeploymentBackupResponse response; + } +} diff --git a/Goldengate/OCI.PSModules.Goldengate.csproj b/Goldengate/OCI.PSModules.Goldengate.csproj new file mode 100644 index 000000000..6eec5345e --- /dev/null +++ b/Goldengate/OCI.PSModules.Goldengate.csproj @@ -0,0 +1,23 @@ + + + + + netstandard2.0 + OCI.PSModules.Goldengate + OCI.PSModules.Goldengate + Oracle Cloud Infrastructure + Oracle + 8.0 + Oracle;OCI;Cloud;oci-sdk;OracleCloudInfrastructure;Goldengate + Goldengate Service + + + + + + + + + + + diff --git a/Goldengate/OCI.PSModules.Goldengate.psd1 b/Goldengate/OCI.PSModules.Goldengate.psd1 new file mode 100644 index 000000000..4210094a8 --- /dev/null +++ b/Goldengate/OCI.PSModules.Goldengate.psd1 @@ -0,0 +1,153 @@ +# +# Module manifest for module 'OCI.PSModules.Goldengate' +# +# Generated by: Oracle Cloud Infrastructure +# +# Generated on: 03/04/2021 +# + +@{ + +# Script module or binary module file associated with this manifest. +RootModule = 'assemblies/OCI.PSModules.Goldengate.dll' + +# Version number of this module. +ModuleVersion = '10.1.0' + +# Supported PSEditions +CompatiblePSEditions = 'Core' + +# ID used to uniquely identify this module +GUID = '342128d9-559b-4b8b-9ce9-d9d50eaf7247' + +# Author of this module +Author = 'Oracle Cloud Infrastructure' + +# Company or vendor of this module +CompanyName = 'Oracle Corporation' + +# Copyright statement for this module +Copyright = '(c) Oracle Cloud Infrastructure. All rights reserved.' + +# Description of the functionality provided by this module +Description = 'This modules provides Cmdlets for OCI Goldengate Service' + +# Minimum version of the PowerShell engine required by this module +PowerShellVersion = '6.0' + +# Name of the PowerShell host required by this module +# PowerShellHostName = '' + +# Minimum version of the PowerShell host required by this module +# PowerShellHostVersion = '' + +# Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only. +# DotNetFrameworkVersion = '' + +# Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only. +# ClrVersion = '' + +# Processor architecture (None, X86, Amd64) required by this module +# 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.1.0'; }) + +# Assemblies that must be loaded prior to importing this module +RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Goldengate.dll' + +# Script files (.ps1) that are run in the caller's environment prior to importing this module. +# ScriptsToProcess = @() + +# Type files (.ps1xml) to be loaded when importing this module +# TypesToProcess = @() + +# Format files (.ps1xml) to be loaded when importing this module +# FormatsToProcess = @() + +# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess +# NestedModules = @() + +# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export. +FunctionsToExport = '*' + +# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. +CmdletsToExport = 'Get-OCIGoldengateDatabaseRegistration', + 'Get-OCIGoldengateDatabaseRegistrationsList', + 'Get-OCIGoldengateDeployment', 'Get-OCIGoldengateDeploymentBackup', + 'Get-OCIGoldengateDeploymentBackupsList', + 'Get-OCIGoldengateDeploymentsList', 'Get-OCIGoldengateWorkRequest', + 'Get-OCIGoldengateWorkRequestErrorsList', + 'Get-OCIGoldengateWorkRequestLogsList', + 'Get-OCIGoldengateWorkRequestsList', + 'Invoke-OCIGoldengateUpgradeDeployment', + 'Move-OCIGoldengateDatabaseRegistrationCompartment', + 'Move-OCIGoldengateDeploymentBackupCompartment', + 'Move-OCIGoldengateDeploymentCompartment', + 'New-OCIGoldengateDatabaseRegistration', + 'New-OCIGoldengateDeployment', 'New-OCIGoldengateDeploymentBackup', + 'Remove-OCIGoldengateDatabaseRegistration', + 'Remove-OCIGoldengateDeployment', + 'Remove-OCIGoldengateDeploymentBackup', + 'Restore-OCIGoldengateDeployment', 'Start-OCIGoldengateDeployment', + 'Stop-OCIGoldengateDeployment', + 'Update-OCIGoldengateDatabaseRegistration', + 'Update-OCIGoldengateDeployment', + 'Update-OCIGoldengateDeploymentBackup' + +# Variables to export from this module +VariablesToExport = '*' + +# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export. +AliasesToExport = '*' + +# DSC resources to export from this module +# DscResourcesToExport = @() + +# List of all modules packaged with this module +# ModuleList = @() + +# List of all files packaged with this module +# FileList = @() + +# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell. +PrivateData = @{ + + PSData = @{ + + # Tags applied to this module. These help with module discovery in online galleries. + Tags = 'PSEdition_Core','Windows','Linux','macOS','Oracle','OCI','Cloud','OracleCloudInfrastructure','Goldengate' + + # A URL to the license for this module. + LicenseUri = 'https://github.com/oracle/oci-powershell-modules/blob/master/LICENSE.txt' + + # A URL to the main website for this project. + ProjectUri = 'https://github.com/oracle/oci-powershell-modules/' + + # A URL to an icon representing this module. + IconUri = 'https://github.com/oracle/oci-powershell-modules/blob/master/icon.png' + + # ReleaseNotes of this module + ReleaseNotes = 'https://github.com/oracle/oci-powershell-modules/blob/master/CHANGELOG.md' + + # Prerelease string of this module + # Prerelease = '' + + # Flag to indicate whether the module requires explicit user acceptance for install/update/save + # RequireLicenseAcceptance = $false + + # External dependent modules of this module + # ExternalModuleDependencies = @() + + } # End of PSData hashtable + + } # End of PrivateData hashtable + +# HelpInfo URI of this module +# HelpInfoURI = '' + +# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix. +# DefaultCommandPrefix = '' + +} + diff --git a/Healthchecks/OCI.PSModules.Healthchecks.psd1 b/Healthchecks/OCI.PSModules.Healthchecks.psd1 index 3f8f2f1f1..58b7339bf 100644 --- a/Healthchecks/OCI.PSModules.Healthchecks.psd1 +++ b/Healthchecks/OCI.PSModules.Healthchecks.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 3/1/2021 +# Generated on: 03/04/2021 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Healthchecks.dll' # Version number of this module. -ModuleVersion = '10.0.0' +ModuleVersion = '10.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -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.Healthchecks.dll' diff --git a/Identity/OCI.PSModules.Identity.psd1 b/Identity/OCI.PSModules.Identity.psd1 index 1eadbfe78..4228c53ff 100644 --- a/Identity/OCI.PSModules.Identity.psd1 +++ b/Identity/OCI.PSModules.Identity.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 3/1/2021 +# Generated on: 03/04/2021 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Identity.dll' # Version number of this module. -ModuleVersion = '10.0.0' +ModuleVersion = '10.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -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.Identity.dll' diff --git a/Integration/OCI.PSModules.Integration.psd1 b/Integration/OCI.PSModules.Integration.psd1 index fb65dd9ff..b8081df84 100644 --- a/Integration/OCI.PSModules.Integration.psd1 +++ b/Integration/OCI.PSModules.Integration.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 3/1/2021 +# Generated on: 03/04/2021 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Integration.dll' # Version number of this module. -ModuleVersion = '10.0.0' +ModuleVersion = '10.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -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.Integration.dll' diff --git a/Keymanagement/OCI.PSModules.Keymanagement.psd1 b/Keymanagement/OCI.PSModules.Keymanagement.psd1 index cafbad61a..bd4a7ce19 100644 --- a/Keymanagement/OCI.PSModules.Keymanagement.psd1 +++ b/Keymanagement/OCI.PSModules.Keymanagement.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 3/1/2021 +# Generated on: 03/04/2021 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Keymanagement.dll' # Version number of this module. -ModuleVersion = '10.0.0' +ModuleVersion = '10.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -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.Keymanagement.dll' diff --git a/Limits/OCI.PSModules.Limits.psd1 b/Limits/OCI.PSModules.Limits.psd1 index ef4c3261a..c99922480 100644 --- a/Limits/OCI.PSModules.Limits.psd1 +++ b/Limits/OCI.PSModules.Limits.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 3/1/2021 +# Generated on: 03/04/2021 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Limits.dll' # Version number of this module. -ModuleVersion = '10.0.0' +ModuleVersion = '10.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -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.Limits.dll' diff --git a/Loadbalancer/OCI.PSModules.Loadbalancer.psd1 b/Loadbalancer/OCI.PSModules.Loadbalancer.psd1 index be4873566..7d6e15d35 100644 --- a/Loadbalancer/OCI.PSModules.Loadbalancer.psd1 +++ b/Loadbalancer/OCI.PSModules.Loadbalancer.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 3/1/2021 +# Generated on: 03/04/2021 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Loadbalancer.dll' # Version number of this module. -ModuleVersion = '10.0.0' +ModuleVersion = '10.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -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.Loadbalancer.dll' diff --git a/Loganalytics/OCI.PSModules.Loganalytics.psd1 b/Loganalytics/OCI.PSModules.Loganalytics.psd1 index d6798b82e..41e1e0b42 100644 --- a/Loganalytics/OCI.PSModules.Loganalytics.psd1 +++ b/Loganalytics/OCI.PSModules.Loganalytics.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 3/1/2021 +# Generated on: 03/04/2021 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Loganalytics.dll' # Version number of this module. -ModuleVersion = '10.0.0' +ModuleVersion = '10.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -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.Loganalytics.dll' diff --git a/Logging/OCI.PSModules.Logging.psd1 b/Logging/OCI.PSModules.Logging.psd1 index 08999f81e..d8ab6a367 100644 --- a/Logging/OCI.PSModules.Logging.psd1 +++ b/Logging/OCI.PSModules.Logging.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 3/1/2021 +# Generated on: 03/04/2021 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Logging.dll' # Version number of this module. -ModuleVersion = '10.0.0' +ModuleVersion = '10.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -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.Logging.dll' diff --git a/Loggingingestion/OCI.PSModules.Loggingingestion.psd1 b/Loggingingestion/OCI.PSModules.Loggingingestion.psd1 index 8dae49ce0..be7d67033 100644 --- a/Loggingingestion/OCI.PSModules.Loggingingestion.psd1 +++ b/Loggingingestion/OCI.PSModules.Loggingingestion.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 3/1/2021 +# Generated on: 03/04/2021 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Loggingingestion.dll' # Version number of this module. -ModuleVersion = '10.0.0' +ModuleVersion = '10.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -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.Loggingingestion.dll' diff --git a/Loggingsearch/OCI.PSModules.Loggingsearch.psd1 b/Loggingsearch/OCI.PSModules.Loggingsearch.psd1 index df39bba7b..4604f5cef 100644 --- a/Loggingsearch/OCI.PSModules.Loggingsearch.psd1 +++ b/Loggingsearch/OCI.PSModules.Loggingsearch.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 3/1/2021 +# Generated on: 03/04/2021 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Loggingsearch.dll' # Version number of this module. -ModuleVersion = '10.0.0' +ModuleVersion = '10.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -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.Loggingsearch.dll' diff --git a/Managementagent/OCI.PSModules.Managementagent.psd1 b/Managementagent/OCI.PSModules.Managementagent.psd1 index f2e73e81c..f0b7aa29a 100644 --- a/Managementagent/OCI.PSModules.Managementagent.psd1 +++ b/Managementagent/OCI.PSModules.Managementagent.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 3/1/2021 +# Generated on: 03/04/2021 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Managementagent.dll' # Version number of this module. -ModuleVersion = '10.0.0' +ModuleVersion = '10.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -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.Managementagent.dll' diff --git a/Managementdashboard/OCI.PSModules.Managementdashboard.psd1 b/Managementdashboard/OCI.PSModules.Managementdashboard.psd1 index 90243e60f..3ae5e9ebd 100644 --- a/Managementdashboard/OCI.PSModules.Managementdashboard.psd1 +++ b/Managementdashboard/OCI.PSModules.Managementdashboard.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 3/1/2021 +# Generated on: 03/04/2021 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Managementdashboard.dll' # Version number of this module. -ModuleVersion = '10.0.0' +ModuleVersion = '10.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -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.Managementdashboard.dll' diff --git a/Marketplace/OCI.PSModules.Marketplace.psd1 b/Marketplace/OCI.PSModules.Marketplace.psd1 index a49d0bb8f..265965622 100644 --- a/Marketplace/OCI.PSModules.Marketplace.psd1 +++ b/Marketplace/OCI.PSModules.Marketplace.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 3/1/2021 +# Generated on: 03/04/2021 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Marketplace.dll' # Version number of this module. -ModuleVersion = '10.0.0' +ModuleVersion = '10.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -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.Marketplace.dll' diff --git a/Monitoring/OCI.PSModules.Monitoring.psd1 b/Monitoring/OCI.PSModules.Monitoring.psd1 index f25faaec4..a0605cc43 100644 --- a/Monitoring/OCI.PSModules.Monitoring.psd1 +++ b/Monitoring/OCI.PSModules.Monitoring.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 3/1/2021 +# Generated on: 03/04/2021 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Monitoring.dll' # Version number of this module. -ModuleVersion = '10.0.0' +ModuleVersion = '10.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -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.Monitoring.dll' diff --git a/Mysql/OCI.PSModules.Mysql.psd1 b/Mysql/OCI.PSModules.Mysql.psd1 index 2a0b9eea6..1e5acf81b 100644 --- a/Mysql/OCI.PSModules.Mysql.psd1 +++ b/Mysql/OCI.PSModules.Mysql.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 3/1/2021 +# Generated on: 03/04/2021 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Mysql.dll' # Version number of this module. -ModuleVersion = '10.0.0' +ModuleVersion = '10.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -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.Mysql.dll' diff --git a/Nosql/OCI.PSModules.Nosql.psd1 b/Nosql/OCI.PSModules.Nosql.psd1 index 454fb6bf6..2a8597374 100644 --- a/Nosql/OCI.PSModules.Nosql.psd1 +++ b/Nosql/OCI.PSModules.Nosql.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 3/1/2021 +# Generated on: 03/04/2021 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Nosql.dll' # Version number of this module. -ModuleVersion = '10.0.0' +ModuleVersion = '10.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -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.Nosql.dll' diff --git a/Objectstorage/OCI.PSModules.Objectstorage.psd1 b/Objectstorage/OCI.PSModules.Objectstorage.psd1 index 551a835a5..a9bbd4667 100644 --- a/Objectstorage/OCI.PSModules.Objectstorage.psd1 +++ b/Objectstorage/OCI.PSModules.Objectstorage.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 3/1/2021 +# Generated on: 03/04/2021 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Objectstorage.dll' # Version number of this module. -ModuleVersion = '10.0.0' +ModuleVersion = '10.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -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.Objectstorage.dll' diff --git a/Oce/OCI.PSModules.Oce.psd1 b/Oce/OCI.PSModules.Oce.psd1 index 5dbc8faac..7f39e5b45 100644 --- a/Oce/OCI.PSModules.Oce.psd1 +++ b/Oce/OCI.PSModules.Oce.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 3/1/2021 +# Generated on: 03/04/2021 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Oce.dll' # Version number of this module. -ModuleVersion = '10.0.0' +ModuleVersion = '10.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -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.Oce.dll' diff --git a/Ocvp/OCI.PSModules.Ocvp.psd1 b/Ocvp/OCI.PSModules.Ocvp.psd1 index f76611f94..b3871d7b0 100644 --- a/Ocvp/OCI.PSModules.Ocvp.psd1 +++ b/Ocvp/OCI.PSModules.Ocvp.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 3/1/2021 +# Generated on: 03/04/2021 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Ocvp.dll' # Version number of this module. -ModuleVersion = '10.0.0' +ModuleVersion = '10.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -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.Ocvp.dll' diff --git a/Oda/OCI.PSModules.Oda.psd1 b/Oda/OCI.PSModules.Oda.psd1 index ccb83f43c..73201399a 100644 --- a/Oda/OCI.PSModules.Oda.psd1 +++ b/Oda/OCI.PSModules.Oda.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 3/1/2021 +# Generated on: 03/04/2021 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Oda.dll' # Version number of this module. -ModuleVersion = '10.0.0' +ModuleVersion = '10.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -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.Oda.dll' diff --git a/Ons/Cmdlets/Get-OCIOnsConfirmSubscription.cs b/Ons/Cmdlets/Get-OCIOnsConfirmSubscription.cs index e1e4a2d47..a07f81c7e 100644 --- a/Ons/Cmdlets/Get-OCIOnsConfirmSubscription.cs +++ b/Ons/Cmdlets/Get-OCIOnsConfirmSubscription.cs @@ -26,7 +26,7 @@ public class GetOCIOnsConfirmSubscription : OCINotificationDataPlaneCmdlet [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The protocol used for the subscription. -Allowed values: * `CUSTOM_HTTPS` * `EMAIL` * `HTTPS` (deprecated; for PagerDuty endpoints, use `PAGERDUTY`) * `PAGERDUTY` * `SLACK` * `ORACLE_FUNCTIONS` +Allowed values: * `CUSTOM_HTTPS` * `EMAIL` * `HTTPS` (deprecated; for PagerDuty endpoints, use `PAGERDUTY`) * `ORACLE_FUNCTIONS` * `PAGERDUTY` * `SLACK` * `SMS` For information about subscription protocols, see [To create a subscription](https://docs.cloud.oracle.com/iaas/Content/Notification/Tasks/managingtopicsandsubscriptions.htm#createSub).")] public string Protocol { get; set; } diff --git a/Ons/Cmdlets/Get-OCIOnsUnsubscription.cs b/Ons/Cmdlets/Get-OCIOnsUnsubscription.cs index c8c5acd6a..4f5a3c6d2 100644 --- a/Ons/Cmdlets/Get-OCIOnsUnsubscription.cs +++ b/Ons/Cmdlets/Get-OCIOnsUnsubscription.cs @@ -26,7 +26,7 @@ public class GetOCIOnsUnsubscription : OCINotificationDataPlaneCmdlet [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The protocol used for the subscription. -Allowed values: * `CUSTOM_HTTPS` * `EMAIL` * `HTTPS` (deprecated; for PagerDuty endpoints, use `PAGERDUTY`) * `PAGERDUTY` * `SLACK` * `ORACLE_FUNCTIONS` +Allowed values: * `CUSTOM_HTTPS` * `EMAIL` * `HTTPS` (deprecated; for PagerDuty endpoints, use `PAGERDUTY`) * `ORACLE_FUNCTIONS` * `PAGERDUTY` * `SLACK` * `SMS` For information about subscription protocols, see [To create a subscription](https://docs.cloud.oracle.com/iaas/Content/Notification/Tasks/managingtopicsandsubscriptions.htm#createSub).")] public string Protocol { get; set; } diff --git a/Ons/Cmdlets/Invoke-OCIOnsPublishMessage.cs b/Ons/Cmdlets/Invoke-OCIOnsPublishMessage.cs index d14e6b7dc..b36f12a61 100644 --- a/Ons/Cmdlets/Invoke-OCIOnsPublishMessage.cs +++ b/Ons/Cmdlets/Invoke-OCIOnsPublishMessage.cs @@ -27,7 +27,9 @@ public class InvokeOCIOnsPublishMessage : OCINotificationDataPlaneCmdlet [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] public string OpcRequestId { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Type of message body in the request.")] + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"**Deprecated.** Support for JSON is deprecated. You can send a JSON payload even when transmitting the payload as a raw string. Configure your receiving system to read the raw payload as JSON format. + +Type of message body in the request. For `messageType` of JSON, a default key-value pair is required. Example: `{""default"": ""Alarm breached"", ""Email"": ""Alarm breached: ""}.`")] public System.Nullable MessageType { get; set; } protected override void ProcessRecord() diff --git a/Ons/OCI.PSModules.Ons.psd1 b/Ons/OCI.PSModules.Ons.psd1 index 5f71b3415..8f26233b5 100644 --- a/Ons/OCI.PSModules.Ons.psd1 +++ b/Ons/OCI.PSModules.Ons.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 3/1/2021 +# Generated on: 03/04/2021 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Ons.dll' # Version number of this module. -ModuleVersion = '10.0.0' +ModuleVersion = '10.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -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.Ons.dll' diff --git a/Opsi/OCI.PSModules.Opsi.psd1 b/Opsi/OCI.PSModules.Opsi.psd1 index 02fdd67ae..1792084f1 100644 --- a/Opsi/OCI.PSModules.Opsi.psd1 +++ b/Opsi/OCI.PSModules.Opsi.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 3/1/2021 +# Generated on: 03/04/2021 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Opsi.dll' # Version number of this module. -ModuleVersion = '10.0.0' +ModuleVersion = '10.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -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.Opsi.dll' diff --git a/Optimizer/OCI.PSModules.Optimizer.psd1 b/Optimizer/OCI.PSModules.Optimizer.psd1 index 18064e3ca..93fb8ece6 100644 --- a/Optimizer/OCI.PSModules.Optimizer.psd1 +++ b/Optimizer/OCI.PSModules.Optimizer.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 3/1/2021 +# Generated on: 03/04/2021 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Optimizer.dll' # Version number of this module. -ModuleVersion = '10.0.0' +ModuleVersion = '10.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -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.Optimizer.dll' diff --git a/Osmanagement/OCI.PSModules.Osmanagement.psd1 b/Osmanagement/OCI.PSModules.Osmanagement.psd1 index a19345d7e..d2b5ba0cc 100644 --- a/Osmanagement/OCI.PSModules.Osmanagement.psd1 +++ b/Osmanagement/OCI.PSModules.Osmanagement.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 3/1/2021 +# Generated on: 03/04/2021 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Osmanagement.dll' # Version number of this module. -ModuleVersion = '10.0.0' +ModuleVersion = '10.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -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.Osmanagement.dll' diff --git a/PSModules/OCI.PSModules.psd1 b/PSModules/OCI.PSModules.psd1 index 44eaa22d9..de9f6362c 100644 --- a/PSModules/OCI.PSModules.psd1 +++ b/PSModules/OCI.PSModules.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 3/1/2021 +# Generated on: 3/8/2021 # @{ @@ -12,7 +12,7 @@ # RootModule = '' # Version number of this module. -ModuleVersion = '10.0.0' +ModuleVersion = '10.1.0' # Supported PSEditions CompatiblePSEditions = 'Core', 'Desktop' @@ -52,69 +52,73 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Analytics'; RequiredVersion = '10.0.0'; }, - @{ModuleName = 'OCI.PSModules.Announcementsservice'; RequiredVersion = '10.0.0'; }, - @{ModuleName = 'OCI.PSModules.Apigateway'; RequiredVersion = '10.0.0'; }, - @{ModuleName = 'OCI.PSModules.Applicationmigration'; RequiredVersion = '10.0.0'; }, - @{ModuleName = 'OCI.PSModules.Artifacts'; RequiredVersion = '10.0.0'; }, - @{ModuleName = 'OCI.PSModules.Audit'; RequiredVersion = '10.0.0'; }, - @{ModuleName = 'OCI.PSModules.Autoscaling'; RequiredVersion = '10.0.0'; }, - @{ModuleName = 'OCI.PSModules.Bds'; RequiredVersion = '10.0.0'; }, - @{ModuleName = 'OCI.PSModules.Blockchain'; RequiredVersion = '10.0.0'; }, - @{ModuleName = 'OCI.PSModules.Budget'; RequiredVersion = '10.0.0'; }, - @{ModuleName = 'OCI.PSModules.Cims'; RequiredVersion = '10.0.0'; }, - @{ModuleName = 'OCI.PSModules.Cloudguard'; RequiredVersion = '10.0.0'; }, - @{ModuleName = 'OCI.PSModules.Computeinstanceagent'; RequiredVersion = '10.0.0'; }, - @{ModuleName = 'OCI.PSModules.Containerengine'; RequiredVersion = '10.0.0'; }, - @{ModuleName = 'OCI.PSModules.Core'; RequiredVersion = '10.0.0'; }, - @{ModuleName = 'OCI.PSModules.Database'; RequiredVersion = '10.0.0'; }, - @{ModuleName = 'OCI.PSModules.Databasemanagement'; RequiredVersion = '10.0.0'; }, - @{ModuleName = 'OCI.PSModules.Datacatalog'; RequiredVersion = '10.0.0'; }, - @{ModuleName = 'OCI.PSModules.Dataflow'; RequiredVersion = '10.0.0'; }, - @{ModuleName = 'OCI.PSModules.Dataintegration'; RequiredVersion = '10.0.0'; }, - @{ModuleName = 'OCI.PSModules.Datasafe'; RequiredVersion = '10.0.0'; }, - @{ModuleName = 'OCI.PSModules.Datascience'; RequiredVersion = '10.0.0'; }, - @{ModuleName = 'OCI.PSModules.Dns'; RequiredVersion = '10.0.0'; }, - @{ModuleName = 'OCI.PSModules.Dts'; RequiredVersion = '10.0.0'; }, - @{ModuleName = 'OCI.PSModules.Email'; RequiredVersion = '10.0.0'; }, - @{ModuleName = 'OCI.PSModules.Events'; RequiredVersion = '10.0.0'; }, - @{ModuleName = 'OCI.PSModules.Filestorage'; RequiredVersion = '10.0.0'; }, - @{ModuleName = 'OCI.PSModules.Functions'; RequiredVersion = '10.0.0'; }, - @{ModuleName = 'OCI.PSModules.Healthchecks'; RequiredVersion = '10.0.0'; }, - @{ModuleName = 'OCI.PSModules.Identity'; RequiredVersion = '10.0.0'; }, - @{ModuleName = 'OCI.PSModules.Integration'; RequiredVersion = '10.0.0'; }, - @{ModuleName = 'OCI.PSModules.Keymanagement'; RequiredVersion = '10.0.0'; }, - @{ModuleName = 'OCI.PSModules.Limits'; RequiredVersion = '10.0.0'; }, - @{ModuleName = 'OCI.PSModules.Loadbalancer'; RequiredVersion = '10.0.0'; }, - @{ModuleName = 'OCI.PSModules.Loganalytics'; RequiredVersion = '10.0.0'; }, - @{ModuleName = 'OCI.PSModules.Logging'; RequiredVersion = '10.0.0'; }, - @{ModuleName = 'OCI.PSModules.Loggingingestion'; RequiredVersion = '10.0.0'; }, - @{ModuleName = 'OCI.PSModules.Loggingsearch'; RequiredVersion = '10.0.0'; }, - @{ModuleName = 'OCI.PSModules.Managementagent'; RequiredVersion = '10.0.0'; }, - @{ModuleName = 'OCI.PSModules.Managementdashboard'; RequiredVersion = '10.0.0'; }, - @{ModuleName = 'OCI.PSModules.Marketplace'; RequiredVersion = '10.0.0'; }, - @{ModuleName = 'OCI.PSModules.Monitoring'; RequiredVersion = '10.0.0'; }, - @{ModuleName = 'OCI.PSModules.Mysql'; RequiredVersion = '10.0.0'; }, - @{ModuleName = 'OCI.PSModules.Nosql'; RequiredVersion = '10.0.0'; }, - @{ModuleName = 'OCI.PSModules.Objectstorage'; RequiredVersion = '10.0.0'; }, - @{ModuleName = 'OCI.PSModules.Oce'; RequiredVersion = '10.0.0'; }, - @{ModuleName = 'OCI.PSModules.Ocvp'; RequiredVersion = '10.0.0'; }, - @{ModuleName = 'OCI.PSModules.Oda'; RequiredVersion = '10.0.0'; }, - @{ModuleName = 'OCI.PSModules.Ons'; RequiredVersion = '10.0.0'; }, - @{ModuleName = 'OCI.PSModules.Opsi'; RequiredVersion = '10.0.0'; }, - @{ModuleName = 'OCI.PSModules.Optimizer'; RequiredVersion = '10.0.0'; }, - @{ModuleName = 'OCI.PSModules.Osmanagement'; RequiredVersion = '10.0.0'; }, - @{ModuleName = 'OCI.PSModules.Resourcemanager'; RequiredVersion = '10.0.0'; }, - @{ModuleName = 'OCI.PSModules.Resourcesearch'; RequiredVersion = '10.0.0'; }, - @{ModuleName = 'OCI.PSModules.Rover'; RequiredVersion = '10.0.0'; }, - @{ModuleName = 'OCI.PSModules.Sch'; RequiredVersion = '10.0.0'; }, - @{ModuleName = 'OCI.PSModules.Secrets'; RequiredVersion = '10.0.0'; }, - @{ModuleName = 'OCI.PSModules.Streaming'; RequiredVersion = '10.0.0'; }, - @{ModuleName = 'OCI.PSModules.Tenantmanagercontrolplane'; RequiredVersion = '10.0.0'; }, - @{ModuleName = 'OCI.PSModules.Usageapi'; RequiredVersion = '10.0.0'; }, - @{ModuleName = 'OCI.PSModules.Vault'; RequiredVersion = '10.0.0'; }, - @{ModuleName = 'OCI.PSModules.Waas'; RequiredVersion = '10.0.0'; }, - @{ModuleName = 'OCI.PSModules.Workrequests'; RequiredVersion = '10.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Analytics'; RequiredVersion = '10.1.0'; }, + @{ModuleName = 'OCI.PSModules.Announcementsservice'; RequiredVersion = '10.1.0'; }, + @{ModuleName = 'OCI.PSModules.Apigateway'; RequiredVersion = '10.1.0'; }, + @{ModuleName = 'OCI.PSModules.Apmcontrolplane'; RequiredVersion = '10.1.0'; }, + @{ModuleName = 'OCI.PSModules.Apmsynthetics'; RequiredVersion = '10.1.0'; }, + @{ModuleName = 'OCI.PSModules.Apmtraces'; RequiredVersion = '10.1.0'; }, + @{ModuleName = 'OCI.PSModules.Applicationmigration'; RequiredVersion = '10.1.0'; }, + @{ModuleName = 'OCI.PSModules.Artifacts'; RequiredVersion = '10.1.0'; }, + @{ModuleName = 'OCI.PSModules.Audit'; RequiredVersion = '10.1.0'; }, + @{ModuleName = 'OCI.PSModules.Autoscaling'; RequiredVersion = '10.1.0'; }, + @{ModuleName = 'OCI.PSModules.Bds'; RequiredVersion = '10.1.0'; }, + @{ModuleName = 'OCI.PSModules.Blockchain'; RequiredVersion = '10.1.0'; }, + @{ModuleName = 'OCI.PSModules.Budget'; RequiredVersion = '10.1.0'; }, + @{ModuleName = 'OCI.PSModules.Cims'; RequiredVersion = '10.1.0'; }, + @{ModuleName = 'OCI.PSModules.Cloudguard'; RequiredVersion = '10.1.0'; }, + @{ModuleName = 'OCI.PSModules.Computeinstanceagent'; RequiredVersion = '10.1.0'; }, + @{ModuleName = 'OCI.PSModules.Containerengine'; RequiredVersion = '10.1.0'; }, + @{ModuleName = 'OCI.PSModules.Core'; RequiredVersion = '10.1.0'; }, + @{ModuleName = 'OCI.PSModules.Database'; RequiredVersion = '10.1.0'; }, + @{ModuleName = 'OCI.PSModules.Databasemanagement'; RequiredVersion = '10.1.0'; }, + @{ModuleName = 'OCI.PSModules.Datacatalog'; RequiredVersion = '10.1.0'; }, + @{ModuleName = 'OCI.PSModules.Dataflow'; RequiredVersion = '10.1.0'; }, + @{ModuleName = 'OCI.PSModules.Dataintegration'; RequiredVersion = '10.1.0'; }, + @{ModuleName = 'OCI.PSModules.Datasafe'; RequiredVersion = '10.1.0'; }, + @{ModuleName = 'OCI.PSModules.Datascience'; RequiredVersion = '10.1.0'; }, + @{ModuleName = 'OCI.PSModules.Dns'; RequiredVersion = '10.1.0'; }, + @{ModuleName = 'OCI.PSModules.Dts'; RequiredVersion = '10.1.0'; }, + @{ModuleName = 'OCI.PSModules.Email'; RequiredVersion = '10.1.0'; }, + @{ModuleName = 'OCI.PSModules.Events'; RequiredVersion = '10.1.0'; }, + @{ModuleName = 'OCI.PSModules.Filestorage'; RequiredVersion = '10.1.0'; }, + @{ModuleName = 'OCI.PSModules.Functions'; RequiredVersion = '10.1.0'; }, + @{ModuleName = 'OCI.PSModules.Goldengate'; RequiredVersion = '10.1.0'; }, + @{ModuleName = 'OCI.PSModules.Healthchecks'; RequiredVersion = '10.1.0'; }, + @{ModuleName = 'OCI.PSModules.Identity'; RequiredVersion = '10.1.0'; }, + @{ModuleName = 'OCI.PSModules.Integration'; RequiredVersion = '10.1.0'; }, + @{ModuleName = 'OCI.PSModules.Keymanagement'; RequiredVersion = '10.1.0'; }, + @{ModuleName = 'OCI.PSModules.Limits'; RequiredVersion = '10.1.0'; }, + @{ModuleName = 'OCI.PSModules.Loadbalancer'; RequiredVersion = '10.1.0'; }, + @{ModuleName = 'OCI.PSModules.Loganalytics'; RequiredVersion = '10.1.0'; }, + @{ModuleName = 'OCI.PSModules.Logging'; RequiredVersion = '10.1.0'; }, + @{ModuleName = 'OCI.PSModules.Loggingingestion'; RequiredVersion = '10.1.0'; }, + @{ModuleName = 'OCI.PSModules.Loggingsearch'; RequiredVersion = '10.1.0'; }, + @{ModuleName = 'OCI.PSModules.Managementagent'; RequiredVersion = '10.1.0'; }, + @{ModuleName = 'OCI.PSModules.Managementdashboard'; RequiredVersion = '10.1.0'; }, + @{ModuleName = 'OCI.PSModules.Marketplace'; RequiredVersion = '10.1.0'; }, + @{ModuleName = 'OCI.PSModules.Monitoring'; RequiredVersion = '10.1.0'; }, + @{ModuleName = 'OCI.PSModules.Mysql'; RequiredVersion = '10.1.0'; }, + @{ModuleName = 'OCI.PSModules.Nosql'; RequiredVersion = '10.1.0'; }, + @{ModuleName = 'OCI.PSModules.Objectstorage'; RequiredVersion = '10.1.0'; }, + @{ModuleName = 'OCI.PSModules.Oce'; RequiredVersion = '10.1.0'; }, + @{ModuleName = 'OCI.PSModules.Ocvp'; RequiredVersion = '10.1.0'; }, + @{ModuleName = 'OCI.PSModules.Oda'; RequiredVersion = '10.1.0'; }, + @{ModuleName = 'OCI.PSModules.Ons'; RequiredVersion = '10.1.0'; }, + @{ModuleName = 'OCI.PSModules.Opsi'; RequiredVersion = '10.1.0'; }, + @{ModuleName = 'OCI.PSModules.Optimizer'; RequiredVersion = '10.1.0'; }, + @{ModuleName = 'OCI.PSModules.Osmanagement'; RequiredVersion = '10.1.0'; }, + @{ModuleName = 'OCI.PSModules.Resourcemanager'; RequiredVersion = '10.1.0'; }, + @{ModuleName = 'OCI.PSModules.Resourcesearch'; RequiredVersion = '10.1.0'; }, + @{ModuleName = 'OCI.PSModules.Rover'; RequiredVersion = '10.1.0'; }, + @{ModuleName = 'OCI.PSModules.Sch'; RequiredVersion = '10.1.0'; }, + @{ModuleName = 'OCI.PSModules.Secrets'; RequiredVersion = '10.1.0'; }, + @{ModuleName = 'OCI.PSModules.Streaming'; RequiredVersion = '10.1.0'; }, + @{ModuleName = 'OCI.PSModules.Tenantmanagercontrolplane'; RequiredVersion = '10.1.0'; }, + @{ModuleName = 'OCI.PSModules.Usageapi'; RequiredVersion = '10.1.0'; }, + @{ModuleName = 'OCI.PSModules.Vault'; RequiredVersion = '10.1.0'; }, + @{ModuleName = 'OCI.PSModules.Waas'; RequiredVersion = '10.1.0'; }, + @{ModuleName = 'OCI.PSModules.Workrequests'; RequiredVersion = '10.1.0'; }) # Assemblies that must be loaded prior to importing this module # RequiredAssemblies = @() diff --git a/Resourcemanager/OCI.PSModules.Resourcemanager.psd1 b/Resourcemanager/OCI.PSModules.Resourcemanager.psd1 index ebcc9ab4a..1788b163c 100644 --- a/Resourcemanager/OCI.PSModules.Resourcemanager.psd1 +++ b/Resourcemanager/OCI.PSModules.Resourcemanager.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 3/1/2021 +# Generated on: 03/04/2021 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Resourcemanager.dll' # Version number of this module. -ModuleVersion = '10.0.0' +ModuleVersion = '10.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -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.Resourcemanager.dll' diff --git a/Resourcesearch/OCI.PSModules.Resourcesearch.psd1 b/Resourcesearch/OCI.PSModules.Resourcesearch.psd1 index bf92e23b2..d9f8ef3a6 100644 --- a/Resourcesearch/OCI.PSModules.Resourcesearch.psd1 +++ b/Resourcesearch/OCI.PSModules.Resourcesearch.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 3/1/2021 +# Generated on: 03/04/2021 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Resourcesearch.dll' # Version number of this module. -ModuleVersion = '10.0.0' +ModuleVersion = '10.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -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.Resourcesearch.dll' diff --git a/Rover/OCI.PSModules.Rover.psd1 b/Rover/OCI.PSModules.Rover.psd1 index 715c752fb..e9e92150d 100644 --- a/Rover/OCI.PSModules.Rover.psd1 +++ b/Rover/OCI.PSModules.Rover.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 3/1/2021 +# Generated on: 03/04/2021 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Rover.dll' # Version number of this module. -ModuleVersion = '10.0.0' +ModuleVersion = '10.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -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.Rover.dll' diff --git a/Sch/OCI.PSModules.Sch.psd1 b/Sch/OCI.PSModules.Sch.psd1 index b0bf8df65..e9d7b9ff7 100644 --- a/Sch/OCI.PSModules.Sch.psd1 +++ b/Sch/OCI.PSModules.Sch.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 3/1/2021 +# Generated on: 03/04/2021 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Sch.dll' # Version number of this module. -ModuleVersion = '10.0.0' +ModuleVersion = '10.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -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.Sch.dll' diff --git a/Secrets/OCI.PSModules.Secrets.psd1 b/Secrets/OCI.PSModules.Secrets.psd1 index d28fc7ffd..f70ab96c4 100644 --- a/Secrets/OCI.PSModules.Secrets.psd1 +++ b/Secrets/OCI.PSModules.Secrets.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 3/1/2021 +# Generated on: 03/04/2021 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Secrets.dll' # Version number of this module. -ModuleVersion = '10.0.0' +ModuleVersion = '10.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -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.Secrets.dll' diff --git a/Streaming/OCI.PSModules.Streaming.psd1 b/Streaming/OCI.PSModules.Streaming.psd1 index eabc6ef08..73906c9da 100644 --- a/Streaming/OCI.PSModules.Streaming.psd1 +++ b/Streaming/OCI.PSModules.Streaming.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 3/1/2021 +# Generated on: 03/04/2021 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Streaming.dll' # Version number of this module. -ModuleVersion = '10.0.0' +ModuleVersion = '10.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -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.Streaming.dll' diff --git a/Tenantmanagercontrolplane/OCI.PSModules.Tenantmanagercontrolplane.psd1 b/Tenantmanagercontrolplane/OCI.PSModules.Tenantmanagercontrolplane.psd1 index f3adbe484..f6b069c2b 100644 --- a/Tenantmanagercontrolplane/OCI.PSModules.Tenantmanagercontrolplane.psd1 +++ b/Tenantmanagercontrolplane/OCI.PSModules.Tenantmanagercontrolplane.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 3/1/2021 +# Generated on: 03/04/2021 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Tenantmanagercontrolplane.dll' # Version number of this module. -ModuleVersion = '10.0.0' +ModuleVersion = '10.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -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.Tenantmanagercontrolplane.dll' diff --git a/Usageapi/OCI.PSModules.Usageapi.psd1 b/Usageapi/OCI.PSModules.Usageapi.psd1 index ca16b6239..58a4ff28b 100644 --- a/Usageapi/OCI.PSModules.Usageapi.psd1 +++ b/Usageapi/OCI.PSModules.Usageapi.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 3/1/2021 +# Generated on: 03/04/2021 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Usageapi.dll' # Version number of this module. -ModuleVersion = '10.0.0' +ModuleVersion = '10.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -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.Usageapi.dll' diff --git a/Vault/OCI.PSModules.Vault.psd1 b/Vault/OCI.PSModules.Vault.psd1 index e2edfef24..a24fb7af3 100644 --- a/Vault/OCI.PSModules.Vault.psd1 +++ b/Vault/OCI.PSModules.Vault.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 3/1/2021 +# Generated on: 03/04/2021 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Vault.dll' # Version number of this module. -ModuleVersion = '10.0.0' +ModuleVersion = '10.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -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.Vault.dll' diff --git a/Waas/OCI.PSModules.Waas.psd1 b/Waas/OCI.PSModules.Waas.psd1 index 8c49d8088..d2bc3d5ff 100644 --- a/Waas/OCI.PSModules.Waas.psd1 +++ b/Waas/OCI.PSModules.Waas.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 3/1/2021 +# Generated on: 03/04/2021 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Waas.dll' # Version number of this module. -ModuleVersion = '10.0.0' +ModuleVersion = '10.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -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.Waas.dll' diff --git a/Workrequests/OCI.PSModules.Workrequests.psd1 b/Workrequests/OCI.PSModules.Workrequests.psd1 index 35f77dabf..0c41cff9a 100644 --- a/Workrequests/OCI.PSModules.Workrequests.psd1 +++ b/Workrequests/OCI.PSModules.Workrequests.psd1 @@ -3,7 +3,7 @@ # # Generated by: Oracle Cloud Infrastructure # -# Generated on: 3/1/2021 +# Generated on: 03/04/2021 # @{ @@ -12,7 +12,7 @@ RootModule = 'assemblies/OCI.PSModules.Workrequests.dll' # Version number of this module. -ModuleVersion = '10.0.0' +ModuleVersion = '10.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -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.Workrequests.dll' diff --git a/oci-powershell-modules.sln b/oci-powershell-modules.sln index 59c67aa72..20289dba0 100644 --- a/oci-powershell-modules.sln +++ b/oci-powershell-modules.sln @@ -131,6 +131,14 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OCI.PSModules.Databasemanag EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OCI.PSModules.Artifacts", "Artifacts\OCI.PSModules.Artifacts.csproj", "{373DD03E-0778-455F-ADFD-3FF5083618E0}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OCI.PSModules.Apmsynthetics", "Apmsynthetics\OCI.PSModules.Apmsynthetics.csproj", "{F8B3BFDF-3884-4D40-B2E1-641C7570BC59}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OCI.PSModules.Goldengate", "Goldengate\OCI.PSModules.Goldengate.csproj", "{146BF208-0C1A-4F2D-9014-E3E0A6DEB589}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OCI.PSModules.Apmcontrolplane", "Apmcontrolplane\OCI.PSModules.Apmcontrolplane.csproj", "{8876F0C0-DFC4-4F7D-8F41-91C7DAE0395C}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OCI.PSModules.Apmtraces", "Apmtraces\OCI.PSModules.Apmtraces.csproj", "{99A2B73F-65AD-4692-8CB7-8F3BCC3D787B}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -924,5 +932,53 @@ Global {373DD03E-0778-455F-ADFD-3FF5083618E0}.Release|x64.Build.0 = Release|Any CPU {373DD03E-0778-455F-ADFD-3FF5083618E0}.Release|x86.ActiveCfg = Release|Any CPU {373DD03E-0778-455F-ADFD-3FF5083618E0}.Release|x86.Build.0 = Release|Any CPU + {F8B3BFDF-3884-4D40-B2E1-641C7570BC59}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F8B3BFDF-3884-4D40-B2E1-641C7570BC59}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F8B3BFDF-3884-4D40-B2E1-641C7570BC59}.Debug|x64.ActiveCfg = Debug|Any CPU + {F8B3BFDF-3884-4D40-B2E1-641C7570BC59}.Debug|x64.Build.0 = Debug|Any CPU + {F8B3BFDF-3884-4D40-B2E1-641C7570BC59}.Debug|x86.ActiveCfg = Debug|Any CPU + {F8B3BFDF-3884-4D40-B2E1-641C7570BC59}.Debug|x86.Build.0 = Debug|Any CPU + {F8B3BFDF-3884-4D40-B2E1-641C7570BC59}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F8B3BFDF-3884-4D40-B2E1-641C7570BC59}.Release|Any CPU.Build.0 = Release|Any CPU + {F8B3BFDF-3884-4D40-B2E1-641C7570BC59}.Release|x64.ActiveCfg = Release|Any CPU + {F8B3BFDF-3884-4D40-B2E1-641C7570BC59}.Release|x64.Build.0 = Release|Any CPU + {F8B3BFDF-3884-4D40-B2E1-641C7570BC59}.Release|x86.ActiveCfg = Release|Any CPU + {F8B3BFDF-3884-4D40-B2E1-641C7570BC59}.Release|x86.Build.0 = Release|Any CPU + {146BF208-0C1A-4F2D-9014-E3E0A6DEB589}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {146BF208-0C1A-4F2D-9014-E3E0A6DEB589}.Debug|Any CPU.Build.0 = Debug|Any CPU + {146BF208-0C1A-4F2D-9014-E3E0A6DEB589}.Debug|x64.ActiveCfg = Debug|Any CPU + {146BF208-0C1A-4F2D-9014-E3E0A6DEB589}.Debug|x64.Build.0 = Debug|Any CPU + {146BF208-0C1A-4F2D-9014-E3E0A6DEB589}.Debug|x86.ActiveCfg = Debug|Any CPU + {146BF208-0C1A-4F2D-9014-E3E0A6DEB589}.Debug|x86.Build.0 = Debug|Any CPU + {146BF208-0C1A-4F2D-9014-E3E0A6DEB589}.Release|Any CPU.ActiveCfg = Release|Any CPU + {146BF208-0C1A-4F2D-9014-E3E0A6DEB589}.Release|Any CPU.Build.0 = Release|Any CPU + {146BF208-0C1A-4F2D-9014-E3E0A6DEB589}.Release|x64.ActiveCfg = Release|Any CPU + {146BF208-0C1A-4F2D-9014-E3E0A6DEB589}.Release|x64.Build.0 = Release|Any CPU + {146BF208-0C1A-4F2D-9014-E3E0A6DEB589}.Release|x86.ActiveCfg = Release|Any CPU + {146BF208-0C1A-4F2D-9014-E3E0A6DEB589}.Release|x86.Build.0 = Release|Any CPU + {8876F0C0-DFC4-4F7D-8F41-91C7DAE0395C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {8876F0C0-DFC4-4F7D-8F41-91C7DAE0395C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {8876F0C0-DFC4-4F7D-8F41-91C7DAE0395C}.Debug|x64.ActiveCfg = Debug|Any CPU + {8876F0C0-DFC4-4F7D-8F41-91C7DAE0395C}.Debug|x64.Build.0 = Debug|Any CPU + {8876F0C0-DFC4-4F7D-8F41-91C7DAE0395C}.Debug|x86.ActiveCfg = Debug|Any CPU + {8876F0C0-DFC4-4F7D-8F41-91C7DAE0395C}.Debug|x86.Build.0 = Debug|Any CPU + {8876F0C0-DFC4-4F7D-8F41-91C7DAE0395C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {8876F0C0-DFC4-4F7D-8F41-91C7DAE0395C}.Release|Any CPU.Build.0 = Release|Any CPU + {8876F0C0-DFC4-4F7D-8F41-91C7DAE0395C}.Release|x64.ActiveCfg = Release|Any CPU + {8876F0C0-DFC4-4F7D-8F41-91C7DAE0395C}.Release|x64.Build.0 = Release|Any CPU + {8876F0C0-DFC4-4F7D-8F41-91C7DAE0395C}.Release|x86.ActiveCfg = Release|Any CPU + {8876F0C0-DFC4-4F7D-8F41-91C7DAE0395C}.Release|x86.Build.0 = Release|Any CPU + {99A2B73F-65AD-4692-8CB7-8F3BCC3D787B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {99A2B73F-65AD-4692-8CB7-8F3BCC3D787B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {99A2B73F-65AD-4692-8CB7-8F3BCC3D787B}.Debug|x64.ActiveCfg = Debug|Any CPU + {99A2B73F-65AD-4692-8CB7-8F3BCC3D787B}.Debug|x64.Build.0 = Debug|Any CPU + {99A2B73F-65AD-4692-8CB7-8F3BCC3D787B}.Debug|x86.ActiveCfg = Debug|Any CPU + {99A2B73F-65AD-4692-8CB7-8F3BCC3D787B}.Debug|x86.Build.0 = Debug|Any CPU + {99A2B73F-65AD-4692-8CB7-8F3BCC3D787B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {99A2B73F-65AD-4692-8CB7-8F3BCC3D787B}.Release|Any CPU.Build.0 = Release|Any CPU + {99A2B73F-65AD-4692-8CB7-8F3BCC3D787B}.Release|x64.ActiveCfg = Release|Any CPU + {99A2B73F-65AD-4692-8CB7-8F3BCC3D787B}.Release|x64.Build.0 = Release|Any CPU + {99A2B73F-65AD-4692-8CB7-8F3BCC3D787B}.Release|x86.ActiveCfg = Release|Any CPU + {99A2B73F-65AD-4692-8CB7-8F3BCC3D787B}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection EndGlobal