From cde6a74009f34d01e3b583aa796b719c983e5886 Mon Sep 17 00:00:00 2001 From: Anurag Garg Date: Tue, 5 Nov 2024 13:25:29 -0600 Subject: [PATCH] Removing unused models --- Cims/Cmdlets/Get-OCICimsCsiNumber.cs | 91 ---------------------------- Cims/Cmdlets/Get-OCICimsStatus.cs | 67 -------------------- 2 files changed, 158 deletions(-) delete mode 100644 Cims/Cmdlets/Get-OCICimsCsiNumber.cs delete mode 100644 Cims/Cmdlets/Get-OCICimsStatus.cs diff --git a/Cims/Cmdlets/Get-OCICimsCsiNumber.cs b/Cims/Cmdlets/Get-OCICimsCsiNumber.cs deleted file mode 100644 index 7961f72e7..000000000 --- a/Cims/Cmdlets/Get-OCICimsCsiNumber.cs +++ /dev/null @@ -1,91 +0,0 @@ -/* - * NOTE: Generated using OracleSDKGenerator, API Version: 20181231 - * DO NOT EDIT this file manually. - * - * Copyright (c) 2020, 2024, 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.CimsService.Requests; -using Oci.CimsService.Responses; -using Oci.CimsService.Models; -using Oci.Common.Model; - -namespace Oci.CimsService.Cmdlets -{ - [Cmdlet("Get", "OCICimsCsiNumber")] - [OutputType(new System.Type[] { typeof(string), typeof(Oci.CimsService.Responses.GetCsiNumberResponse) })] - public class GetOCICimsCsiNumber : OCIIncidentCmdlet - { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Tenancy Ocid in oracle cloud Infrastructure")] - public string TenantId { get; set; } - - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Home region of the customer which is part of oracle cloud infrastructure regions. This property corresponds to Region parameter in the API.")] - public string CimsRegion { 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 = @"User OCID for Oracle Identity Cloud Service (IDCS) users who also have a federated Oracle Cloud Infrastructure account.")] - public string Ocid { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The region of the tenancy.")] - public string Homeregion { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Token type that determine which cloud provider the request come from.")] - public string Bearertokentype { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Token that provided by multi cloud provider, which help to validate the email.")] - public string Bearertoken { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"IdToken that provided by multi cloud provider, which help to validate the email.")] - public string Idtoken { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The OCID of identity domain.")] - public string Domainid { get; set; } - - protected override void ProcessRecord() - { - base.ProcessRecord(); - GetCsiNumberRequest request; - - try - { - request = new GetCsiNumberRequest - { - TenantId = TenantId, - Region = CimsRegion, - OpcRequestId = OpcRequestId, - Ocid = Ocid, - Homeregion = Homeregion, - Bearertokentype = Bearertokentype, - Bearertoken = Bearertoken, - Idtoken = Idtoken, - Domainid = Domainid - }; - - response = client.GetCsiNumber(request).GetAwaiter().GetResult(); - WriteOutput(response, response.Value); - FinishProcessing(response); - } - catch (OciException ex) - { - TerminatingErrorDuringExecution(ex); - } - catch (Exception ex) - { - TerminatingErrorDuringExecution(ex); - } - } - - protected override void StopProcessing() - { - base.StopProcessing(); - TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); - } - - private GetCsiNumberResponse response; - } -} diff --git a/Cims/Cmdlets/Get-OCICimsStatus.cs b/Cims/Cmdlets/Get-OCICimsStatus.cs deleted file mode 100644 index bc37640fd..000000000 --- a/Cims/Cmdlets/Get-OCICimsStatus.cs +++ /dev/null @@ -1,67 +0,0 @@ -/* - * NOTE: Generated using OracleSDKGenerator, API Version: 20181231 - * DO NOT EDIT this file manually. - * - * Copyright (c) 2020, 2024, 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.CimsService.Requests; -using Oci.CimsService.Responses; -using Oci.CimsService.Models; -using Oci.Common.Model; - -namespace Oci.CimsService.Cmdlets -{ - [Cmdlet("Get", "OCICimsStatus")] - [OutputType(new System.Type[] { typeof(Oci.CimsService.Models.Status), typeof(Oci.CimsService.Responses.GetStatusResponse) })] - public class GetOCICimsStatus : OCIIncidentCmdlet - { - [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 = @"User OCID for Oracle Identity Cloud Service (IDCS) users who also have a federated Oracle Cloud Infrastructure account.")] - public string Ocid { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The region of the tenancy.")] - public string Homeregion { get; set; } - - protected override void ProcessRecord() - { - base.ProcessRecord(); - GetStatusRequest request; - - try - { - request = new GetStatusRequest - { - OpcRequestId = OpcRequestId, - Ocid = Ocid, - Homeregion = Homeregion - }; - - response = client.GetStatus(request).GetAwaiter().GetResult(); - WriteOutput(response, response.Status); - FinishProcessing(response); - } - catch (OciException ex) - { - TerminatingErrorDuringExecution(ex); - } - catch (Exception ex) - { - TerminatingErrorDuringExecution(ex); - } - } - - protected override void StopProcessing() - { - base.StopProcessing(); - TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); - } - - private GetStatusResponse response; - } -}