Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Releasing version 78.2.0
- Loading branch information
Showing
253 changed files
with
9,806 additions
and
165 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
/* | ||
* Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. | ||
* 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. | ||
*/ | ||
|
||
// NOTE: Code generated by OracleSDKGenerator. | ||
// DO NOT EDIT this file manually. | ||
|
||
using System.Linq; | ||
using Oci.Common.Waiters; | ||
using Oci.CapacitymanagementService.Models; | ||
using Oci.CapacitymanagementService.Requests; | ||
using Oci.CapacitymanagementService.Responses; | ||
|
||
namespace Oci.CapacitymanagementService | ||
{ | ||
/// <summary> | ||
/// Contains collection of helper methods to produce Oci.Common.Waiters for different resources of CapacityManagement. | ||
/// </summary> | ||
public class CapacityManagementWaiters | ||
{ | ||
private readonly CapacityManagementClient client; | ||
|
||
public CapacityManagementWaiters(CapacityManagementClient client) | ||
{ | ||
this.client = client; | ||
} | ||
|
||
/// <summary> | ||
/// Creates a waiter using default wait configuration. | ||
/// </summary> | ||
/// <param name="request">Request to send.</param> | ||
/// <param name="targetStates">Desired resource states. If multiple states are provided then the waiter will return once the resource reaches any of the provided states</param> | ||
/// <returns>a new Oci.common.Waiter instance</returns> | ||
public Waiter<GetOccAvailabilityCatalogRequest, GetOccAvailabilityCatalogResponse> ForOccAvailabilityCatalog(GetOccAvailabilityCatalogRequest request, params OccAvailabilityCatalog.LifecycleStateEnum[] targetStates) | ||
{ | ||
return this.ForOccAvailabilityCatalog(request, WaiterConfiguration.DefaultWaiterConfiguration, targetStates); | ||
} | ||
|
||
/// <summary> | ||
/// Creates a waiter using the provided configuration. | ||
/// </summary> | ||
/// <param name="request">Request to send.</param> | ||
/// <param name="config">Wait Configuration</param> | ||
/// <param name="targetStates">Desired resource states. If multiple states are provided then the waiter will return once the resource reaches any of the provided states</param> | ||
/// <returns>a new Oci.common.Waiter instance</returns> | ||
public Waiter<GetOccAvailabilityCatalogRequest, GetOccAvailabilityCatalogResponse> ForOccAvailabilityCatalog(GetOccAvailabilityCatalogRequest request, WaiterConfiguration config, params OccAvailabilityCatalog.LifecycleStateEnum[] targetStates) | ||
{ | ||
var agent = new WaiterAgent<GetOccAvailabilityCatalogRequest, GetOccAvailabilityCatalogResponse>( | ||
request, | ||
request => client.GetOccAvailabilityCatalog(request), | ||
response => targetStates.Contains(response.OccAvailabilityCatalog.LifecycleState.Value), | ||
targetStates.Contains(OccAvailabilityCatalog.LifecycleStateEnum.Deleted) | ||
); | ||
return new Waiter<GetOccAvailabilityCatalogRequest, GetOccAvailabilityCatalogResponse>(config, agent); | ||
} | ||
/// <summary> | ||
/// Creates a waiter using default wait configuration. | ||
/// </summary> | ||
/// <param name="request">Request to send.</param> | ||
/// <param name="targetStates">Desired resource states. If multiple states are provided then the waiter will return once the resource reaches any of the provided states</param> | ||
/// <returns>a new Oci.common.Waiter instance</returns> | ||
public Waiter<GetOccCapacityRequestRequest, GetOccCapacityRequestResponse> ForOccCapacityRequest(GetOccCapacityRequestRequest request, params OccCapacityRequest.LifecycleStateEnum[] targetStates) | ||
{ | ||
return this.ForOccCapacityRequest(request, WaiterConfiguration.DefaultWaiterConfiguration, targetStates); | ||
} | ||
|
||
/// <summary> | ||
/// Creates a waiter using the provided configuration. | ||
/// </summary> | ||
/// <param name="request">Request to send.</param> | ||
/// <param name="config">Wait Configuration</param> | ||
/// <param name="targetStates">Desired resource states. If multiple states are provided then the waiter will return once the resource reaches any of the provided states</param> | ||
/// <returns>a new Oci.common.Waiter instance</returns> | ||
public Waiter<GetOccCapacityRequestRequest, GetOccCapacityRequestResponse> ForOccCapacityRequest(GetOccCapacityRequestRequest request, WaiterConfiguration config, params OccCapacityRequest.LifecycleStateEnum[] targetStates) | ||
{ | ||
var agent = new WaiterAgent<GetOccCapacityRequestRequest, GetOccCapacityRequestResponse>( | ||
request, | ||
request => client.GetOccCapacityRequest(request), | ||
response => targetStates.Contains(response.OccCapacityRequest.LifecycleState.Value), | ||
targetStates.Contains(OccCapacityRequest.LifecycleStateEnum.Deleted) | ||
); | ||
return new Waiter<GetOccCapacityRequestRequest, GetOccCapacityRequestResponse>(config, agent); | ||
} | ||
/// <summary> | ||
/// Creates a waiter using default wait configuration. | ||
/// </summary> | ||
/// <param name="request">Request to send.</param> | ||
/// <param name="targetStates">Desired resource states. If multiple states are provided then the waiter will return once the resource reaches any of the provided states</param> | ||
/// <returns>a new Oci.common.Waiter instance</returns> | ||
public Waiter<GetOccCustomerGroupRequest, GetOccCustomerGroupResponse> ForOccCustomerGroup(GetOccCustomerGroupRequest request, params OccCustomerGroup.LifecycleStateEnum[] targetStates) | ||
{ | ||
return this.ForOccCustomerGroup(request, WaiterConfiguration.DefaultWaiterConfiguration, targetStates); | ||
} | ||
|
||
/// <summary> | ||
/// Creates a waiter using the provided configuration. | ||
/// </summary> | ||
/// <param name="request">Request to send.</param> | ||
/// <param name="config">Wait Configuration</param> | ||
/// <param name="targetStates">Desired resource states. If multiple states are provided then the waiter will return once the resource reaches any of the provided states</param> | ||
/// <returns>a new Oci.common.Waiter instance</returns> | ||
public Waiter<GetOccCustomerGroupRequest, GetOccCustomerGroupResponse> ForOccCustomerGroup(GetOccCustomerGroupRequest request, WaiterConfiguration config, params OccCustomerGroup.LifecycleStateEnum[] targetStates) | ||
{ | ||
var agent = new WaiterAgent<GetOccCustomerGroupRequest, GetOccCustomerGroupResponse>( | ||
request, | ||
request => client.GetOccCustomerGroup(request), | ||
response => targetStates.Contains(response.OccCustomerGroup.LifecycleState.Value), | ||
targetStates.Contains(OccCustomerGroup.LifecycleStateEnum.Deleted) | ||
); | ||
return new Waiter<GetOccCustomerGroupRequest, GetOccCustomerGroupResponse>(config, agent); | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
Capacitymanagement/OCI.DotNetSDK.Capacitymanagement.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
|
||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<Import Project="..\General.targets" /> | ||
<PropertyGroup> | ||
<ProjectGuid>{429928E3-2759-439D-BD5A-C0F170003953}</ProjectGuid> | ||
<OutputType>Library</OutputType> | ||
<TargetFramework>netstandard2.0</TargetFramework> | ||
<LangVersion>8.0</LangVersion> | ||
<PackageId>OCI.DotNetSDK.Capacitymanagement</PackageId> | ||
<RootNamespace>Oci.CapacitymanagementService</RootNamespace> | ||
<Authors>Oracle Cloud Infrastructure</Authors> | ||
<Company>Oracle</Company> | ||
<PackageTags>Oracle;OCI;Oracle Cloud;OracleCloud;oci-sdk;OracleCloudInfrastructure;Capacitymanagement</PackageTags> | ||
<Description>Oracle Cloud Infrastructure Cloud Capacity Management Service</Description> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\Common\OCI.DotNetSDK.Common.csproj"/> | ||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
|
||
# OCI .NET client for Capacity Management Service | ||
|
||
This module enables you to write code to manage resources for Capacity Management Service. | ||
|
||
## Requirements | ||
|
||
To use this module, you must have the following: | ||
|
||
- An Oracle Cloud Infrastructure account. | ||
- A user created in that account, in a group with a policy that grants the desired permissions. This can be a user for yourself, or another person/system that needs to call the API. For an example of how to set up a new user, group, compartment, and policy, see [Adding Users](https://docs.cloud.oracle.com/en-us/iaas/Content/GSG/Tasks/addingusers.htm). For a list of typical policies you may want to use, see [Common Policies](https://docs.cloud.oracle.com/en-us/iaas/Content/Identity/Concepts/commonpolicies.htm). | ||
- A key pair used for signing API requests, with the public key uploaded to Oracle. Only the user calling the API should be in possession of the private key. For more information, see [Configuring Credentials](https://docs.cloud.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconfig.htm) | ||
|
||
## Installing | ||
|
||
Use the following command to install this module: | ||
|
||
``` | ||
dotnet add package OCI.DotNetSDK.Capacitymanagement | ||
``` |
99 changes: 99 additions & 0 deletions
99
Capacitymanagement/models/CreateOccAvailabilityCatalogDetails.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
/* | ||
* Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved. | ||
* 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. | ||
*/ | ||
|
||
// NOTE: Code generated by OracleSDKGenerator. | ||
// DO NOT EDIT this file manually. | ||
|
||
|
||
using System.ComponentModel.DataAnnotations; | ||
using System.Runtime.Serialization; | ||
using Newtonsoft.Json; | ||
using Newtonsoft.Json.Converters; | ||
|
||
|
||
namespace Oci.CapacitymanagementService.Models | ||
{ | ||
/// <summary> | ||
/// Details about the create request for the availability catalog. | ||
/// </summary> | ||
public class CreateOccAvailabilityCatalogDetails | ||
{ | ||
|
||
/// <value> | ||
/// The OCID of the customer group. | ||
/// </value> | ||
/// <remarks> | ||
/// Required | ||
/// </remarks> | ||
[Required(ErrorMessage = "OccCustomerGroupId is required.")] | ||
[JsonProperty(PropertyName = "occCustomerGroupId")] | ||
public string OccCustomerGroupId { get; set; } | ||
|
||
/// <value> | ||
/// The name of the OCI service in consideration. For example, Compute, Exadata, and so on. | ||
/// </value> | ||
/// <remarks> | ||
/// Required | ||
/// </remarks> | ||
[Required(ErrorMessage = "Namespace is required.")] | ||
[JsonProperty(PropertyName = "namespace")] | ||
[JsonConverter(typeof(StringEnumConverter))] | ||
public System.Nullable<Namespace> Namespace { get; set; } | ||
|
||
/// <value> | ||
/// Since all resources are at tenancy level hence this will be the ocid of the tenancy where operation is to be performed. | ||
/// </value> | ||
/// <remarks> | ||
/// Required | ||
/// </remarks> | ||
[Required(ErrorMessage = "CompartmentId is required.")] | ||
[JsonProperty(PropertyName = "compartmentId")] | ||
public string CompartmentId { get; set; } | ||
|
||
/// <value> | ||
/// The base 64 encoded string corresponding to the catalog file contents. | ||
/// </value> | ||
/// <remarks> | ||
/// Required | ||
/// </remarks> | ||
[Required(ErrorMessage = "Base64EncodedCatalogDetails is required.")] | ||
[JsonProperty(PropertyName = "base64EncodedCatalogDetails")] | ||
public string Base64EncodedCatalogDetails { get; set; } | ||
|
||
[JsonProperty(PropertyName = "metadataDetails")] | ||
public MetadataDetails MetadataDetails { get; set; } | ||
|
||
/// <value> | ||
/// The display name of the availability catalog. | ||
/// </value> | ||
/// <remarks> | ||
/// Required | ||
/// </remarks> | ||
[Required(ErrorMessage = "DisplayName is required.")] | ||
[JsonProperty(PropertyName = "displayName")] | ||
public string DisplayName { get; set; } | ||
|
||
/// <value> | ||
/// Additional information about the availability catalog. | ||
/// </value> | ||
[JsonProperty(PropertyName = "description")] | ||
public string Description { get; set; } | ||
|
||
/// <value> | ||
/// Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. | ||
/// Example: {"bar-key": "value"} | ||
/// </value> | ||
[JsonProperty(PropertyName = "freeformTags")] | ||
public System.Collections.Generic.Dictionary<string, string> FreeformTags { get; set; } | ||
|
||
/// <value> | ||
/// Defined tags for this resource. Each key is predefined and scoped to a namespace. | ||
/// Example: {"foo-namespace": {"bar-key": "value"}} | ||
/// </value> | ||
[JsonProperty(PropertyName = "definedTags")] | ||
public System.Collections.Generic.Dictionary<string, System.Collections.Generic.Dictionary<string, System.Object>> DefinedTags { get; set; } | ||
|
||
} | ||
} |
Oops, something went wrong.