diff --git a/CHANGELOG.md b/CHANGELOG.md index 5e12731..4711744 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,23 @@ +# 0.0.3-beta 2023-01-06 + +### G42Cloud SDK IMS + +- _Features_ + - New Support IMS +- _Bug Fix_ + - None +- _Change_ + - None + +### G42Cloud SDK SMN + +- _Features_ + - New Support SMN +- _Bug Fix_ + - None +- _Change_ + - None + # 0.0.2-beta 2022-11-29 ### G42Cloud SDK CBR diff --git a/Core/Auth/AuthCache.cs b/Core/Auth/AuthCache.cs new file mode 100755 index 0000000..9b29064 --- /dev/null +++ b/Core/Auth/AuthCache.cs @@ -0,0 +1,42 @@ +/* + * Copyright 2020 G42 Technologies Co.,Ltd. + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +using System.Collections.Concurrent; + +namespace G42Cloud.SDK.Core.Auth +{ + public class AuthCache + { + private static ConcurrentDictionary _authDict = new ConcurrentDictionary(); + + public static string GetAuth(string akWithName) + { + return _authDict.TryGetValue(akWithName, out var value) ? value : null; + } + + public static void PutAuth(string akWithName, string id) + { + _authDict.AddOrUpdate(akWithName, id, (key, value) => id); + } + + + } +} diff --git a/Core/Auth/BasicCredentials.cs b/Core/Auth/BasicCredentials.cs new file mode 100755 index 0000000..8b4a50e --- /dev/null +++ b/Core/Auth/BasicCredentials.cs @@ -0,0 +1,187 @@ +/* + * Copyright 2020 G42 Technologies Co.,Ltd. + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +using System; +using System.Collections.Generic; +using System.Threading.Tasks; +using static System.String; + +namespace G42Cloud.SDK.Core.Auth +{ + public class BasicCredentials : Credentials + { + private string Ak { set; get; } + private string Sk { set; get; } + private string ProjectId { set; get; } + private string SecurityToken { set; get; } + private string IamEndpoint { set; get; } + private Func DerivedPredicate { set; get; } + private string _derivedAuthServiceName; + private string _regionId; + + public BasicCredentials(string ak, string sk, string projectId = null) + { + if (IsNullOrEmpty(ak)) + { + throw new ArgumentNullException(nameof(ak)); + } + + if (IsNullOrEmpty(sk)) + { + throw new ArgumentNullException(nameof(sk)); + } + + this.Ak = ak; + this.Sk = sk; + this.ProjectId = projectId; + } + + public BasicCredentials WithIamEndpoint(string endpoint) + { + IamEndpoint = endpoint; + return this; + } + + public BasicCredentials WithSecurityToken(string token) + { + this.SecurityToken = token; + return this; + } + + public BasicCredentials WithDerivedPredicate(Func func) + { + this.DerivedPredicate = func; + return this; + } + + protected bool IsDerivedAuth(HttpRequest httpRequest) + { + if (DerivedPredicate == null) + { + return false; + } + + return DerivedPredicate(httpRequest); + } + + public override void ProcessDerivedAuthParams(string derivedAuthServiceName, string regionId) + { + if (this._derivedAuthServiceName == null) + { + this._derivedAuthServiceName = derivedAuthServiceName; + } + + if (this._regionId == null) + { + this._regionId = regionId; + } + } + + public override Dictionary GetPathParamDictionary() + { + var pathParamDictionary = new Dictionary(); + if (ProjectId != null) + { + pathParamDictionary.Add("project_id", ProjectId); + } + + return pathParamDictionary; + } + + public override Task SignAuthRequest(HttpRequest request) + { + var httpRequestTask = Task.Factory.StartNew(() => + { + if (ProjectId != null) + { + request.Headers.Add("X-Project-Id", ProjectId); + } + + if (SecurityToken != null) + { + request.Headers.Add("X-Security-Token", SecurityToken); + } + + if (!IsNullOrEmpty(request.ContentType) && !request.ContentType.Contains("application/json")) + { + request.Headers.Add("X-Sdk-Content-Sha256", "UNSIGNED-PAYLOAD"); + } + + if (IsDerivedAuth(request)) + { + var signer = new DerivedSigner + { + Key = Ak, + Secret = Sk + }; + signer.Sign(request, _regionId, _derivedAuthServiceName); + } + else + { + var signer = new Signer + { + Key = Ak, + Secret = Sk + }; + signer.Sign(request); + } + + return request; + }); + + return httpRequestTask; + } + + public override Credentials ProcessAuthParams(SdkHttpClient client, string regionId) + { + if (ProjectId != null) + { + return this; + } + + var akWithName = Ak + regionId; + var projectId = AuthCache.GetAuth(akWithName); + if (!string.IsNullOrEmpty(projectId)) + { + ProjectId = projectId; + return this; + } + + Func derivedFunc = DerivedPredicate; + DerivedPredicate = null; + + IamEndpoint = IsNullOrEmpty(IamEndpoint) ? IamService.DefaultIamEndpoint : IamEndpoint; + var request = IamService.GetKeystoneListProjectsRequest(IamEndpoint, regionId); + request = SignAuthRequest(request).Result; + try + { + ProjectId = IamService.KeystoneListProjects(client, request); + AuthCache.PutAuth(akWithName, ProjectId); + DerivedPredicate = derivedFunc; + return this; + } + catch (ServiceResponseException e) + { + throw new ArgumentException("Failed to get project id, " + e.ErrorMsg); + } + } + } +} diff --git a/Core/Auth/Credentials.cs b/Core/Auth/Credentials.cs new file mode 100755 index 0000000..0a14767 --- /dev/null +++ b/Core/Auth/Credentials.cs @@ -0,0 +1,44 @@ +/* + * Copyright 2020 G42 Technologies Co.,Ltd. + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +using System.Collections.Generic; +using System.Threading.Tasks; +using System; +using System.Text.RegularExpressions; + +namespace G42Cloud.SDK.Core.Auth +{ + public abstract class Credentials + { + public static readonly string DEFAULT_ENDPOINT_REG = + "^[a-z][a-z0-9-]+(\\.[a-z]{2,}-[a-z]+-\\d{1,2})?\\.(my)?(g42cloud|myhwclouds).(com|cn)"; + public abstract Dictionary GetPathParamDictionary(); + + public abstract Task SignAuthRequest(HttpRequest request); + + public abstract Credentials ProcessAuthParams(SdkHttpClient client, string regionId); + + public abstract void ProcessDerivedAuthParams(string derivedAuthServiceName, string regionId); + + public static Func DefaultDerivedPredicate = httpRequest => + !Regex.IsMatch(httpRequest.Url.Host, DEFAULT_ENDPOINT_REG); + } +} \ No newline at end of file diff --git a/Core/Auth/EnvCredentials.cs b/Core/Auth/EnvCredentials.cs new file mode 100755 index 0000000..e2b50de --- /dev/null +++ b/Core/Auth/EnvCredentials.cs @@ -0,0 +1,56 @@ +/* + * Copyright 2020 G42 Technologies Co.,Ltd. + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +using System; + +namespace G42Cloud.SDK.Core.Auth +{ + public class EnvCredentials + { + private const string AkEnvName = "G42CLOUD_SDK_AK"; + private const string SkEnvName = "G42CLOUD_SDK_SK"; + private const string ProjectIdEnvName = "G42CLOUD_SDK_PROJECT_ID"; + private const string DomainIdEnvName = "G42CLOUD_SDK_DOMAIN_ID"; + + private const string BasicCredentialsType = "BasicCredentials"; + private const string GlobalCredentialsType = "GlobalCredentials"; + + public static Credentials LoadCredentialsFromEnv(string defaultType) + { + var ak = Environment.GetEnvironmentVariable(AkEnvName); + var sk = Environment.GetEnvironmentVariable(SkEnvName); + + if (Equals(BasicCredentialsType, defaultType)) + { + var projectId = Environment.GetEnvironmentVariable(ProjectIdEnvName); + return new BasicCredentials(ak, sk, projectId); + } + + if (Equals(GlobalCredentialsType, defaultType)) + { + var domainId = Environment.GetEnvironmentVariable(DomainIdEnvName); + return new GlobalCredentials(ak, sk, domainId); + } + + return null; + } + } +} \ No newline at end of file diff --git a/Core/Auth/GlobalCredentials.cs b/Core/Auth/GlobalCredentials.cs new file mode 100755 index 0000000..a1f5839 --- /dev/null +++ b/Core/Auth/GlobalCredentials.cs @@ -0,0 +1,192 @@ +/* + * Copyright 2020 G42 Technologies Co.,Ltd. + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +using System; +using System.Collections.Generic; +using System.Threading.Tasks; +using static System.String; + +namespace G42Cloud.SDK.Core.Auth +{ + public class GlobalCredentials : Credentials + { + private string Ak { set; get; } + private string Sk { set; get; } + private string DomainId { set; get; } + private string SecurityToken { set; get; } + private string IamEndpoint { set; get; } + private Func DerivedPredicate { set; get; } + private string _derivedAuthServiceName; + private string _regionId; + + + public GlobalCredentials(string ak, string sk, string domainId = null) + { + if (IsNullOrEmpty(ak)) + { + throw new ArgumentNullException(nameof(ak)); + } + + if (IsNullOrEmpty(sk)) + { + throw new ArgumentNullException(nameof(sk)); + } + + this.Ak = ak; + this.Sk = sk; + this.DomainId = domainId; + } + + public GlobalCredentials WithIamEndpoint(string endpoint) + { + IamEndpoint = endpoint; + return this; + } + + public GlobalCredentials WithSecurityToken(string token) + { + this.SecurityToken = token; + return this; + } + + /** + * @param derivedPredicate optional property, judge whether to use the DerivedAKSKSigner + * @return DerivedT with derived set + */ + public GlobalCredentials WithDerivedPredicate(Func func) + { + this.DerivedPredicate = func; + return this; + } + + protected bool IsDerivedAuth(HttpRequest httpRequest) + { + if (DerivedPredicate == null) + { + return false; + } + + return DerivedPredicate(httpRequest); + } + + public override void ProcessDerivedAuthParams(string derivedAuthServiceName, string regionId) + { + if (this._derivedAuthServiceName == null) + { + this._derivedAuthServiceName = derivedAuthServiceName; + } + + if (this._regionId == null) + { + this._regionId = regionId; + } + } + + public override Dictionary GetPathParamDictionary() + { + var pathParamDictionary = new Dictionary(); + + if (DomainId != null) + { + pathParamDictionary.Add("domain_id", DomainId); + } + + return pathParamDictionary; + } + + public override Task SignAuthRequest(HttpRequest request) + { + Task httpRequestTask = Task.Factory.StartNew(() => + { + if (DomainId != null) + { + request.Headers.Add("X-Domain-Id", DomainId); + } + + if (SecurityToken != null) + { + request.Headers.Add("X-Security-Token", SecurityToken); + } + + if (!IsNullOrEmpty(request.ContentType) && !request.ContentType.Contains("application/json")) + { + request.Headers.Add("X-Sdk-Content-Sha256", "UNSIGNED-PAYLOAD"); + } + + if (IsDerivedAuth(request)) + { + var signer = new DerivedSigner + { + Key = Ak, + Secret = Sk + }; + signer.Sign(request, _regionId, _derivedAuthServiceName); + } + else + { + var signer = new Signer + { + Key = Ak, + Secret = Sk + }; + signer.Sign(request); + } + + return request; + }); + + return httpRequestTask; + } + + public override Credentials ProcessAuthParams(SdkHttpClient client, string regionId) + { + if (DomainId != null) + { + return this; + } + + var domainId = AuthCache.GetAuth(Ak); + if (!string.IsNullOrEmpty(domainId)) + { + DomainId = domainId; + return this; + } + + Func derivedFunc = DerivedPredicate; + DerivedPredicate = null; + + IamEndpoint = IsNullOrEmpty(IamEndpoint) ? IamService.DefaultIamEndpoint : IamEndpoint; + var request = IamService.GetKeystoneListAuthDomainsRequest(IamEndpoint); + request = SignAuthRequest(request).Result; + try + { + DomainId = IamService.KeystoneListAuthDomains(client, request); + AuthCache.PutAuth(Ak, DomainId); + DerivedPredicate = derivedFunc; + return this; + } + catch (ServiceResponseException e) + { + throw new ArgumentException("Failed to get domain id, " + e.ErrorMsg); + } + } + } +} diff --git a/Core/Auth/IamService.cs b/Core/Auth/IamService.cs new file mode 100755 index 0000000..4b8f898 --- /dev/null +++ b/Core/Auth/IamService.cs @@ -0,0 +1,155 @@ +/* + * Copyright 2020 G42 Technologies Co.,Ltd. + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +using System; +using System.Collections.Generic; +using Newtonsoft.Json; + +namespace G42Cloud.SDK.Core.Auth +{ + internal class Project + { + [JsonProperty("id", NullValueHandling = NullValueHandling.Ignore)] + public string Id { get; set; } + + [JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)] + public string Name { get; set; } + } + + internal class KeystoneListProjectsResponse + { + [JsonProperty("projects", NullValueHandling = NullValueHandling.Ignore)] + public List Projects { get; set; } + } + + internal class Domains + { + [JsonProperty("id", NullValueHandling = NullValueHandling.Ignore)] + public string Id { get; set; } + + [JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)] + public string Name { get; set; } + } + + internal class KeystoneListAuthDomainsResponse + { + [JsonProperty("domains", NullValueHandling = NullValueHandling.Ignore)] + public List Domains { get; set; } + } + + public static class IamService + { + public const string DefaultIamEndpoint = "https://iam.ae-ad-1.g42cloud.com"; + private const string KeystoneListProjectsUri = "/v3/projects"; + private const string KeystoneListAuthDomainsUri = "/v3/auth/domains"; + + public static HttpRequest GetKeystoneListProjectsRequest(string iamEndpoint, string regionId) + { + var urlParam = new Dictionary(); + var urlPath = HttpUtils.AddUrlPath(KeystoneListProjectsUri, urlParam); + var sdkRequest = HttpUtils.InitSdkRequest(urlPath); + + var url = iamEndpoint + urlPath + "?name=" + regionId; + + var request = new HttpRequest("GET", sdkRequest.ContentType, new Uri(url)) + { + Body = "" + }; + + return request; + } + + public static string KeystoneListProjects(SdkHttpClient client, HttpRequest request) + { + var message = client.InitHttpRequest(request, true); + try + { + var response = client.DoHttpRequest(message).Result; + if ((int)response.StatusCode >= 400) + { + throw ExceptionUtils.GetException(response); + } + + var data = JsonUtils.DeSerialize(response); + // TODO support create new project id here + if (data?.Projects == null || data.Projects?.Count == 0) + { + throw new ArgumentException("No project id found, please specify project_id manually when initializing the credentials."); + } + + if (data.Projects.Count == 1) + { + return data.Projects[0].Id; + } + + throw new ArgumentException( + "Multiple project ids have been returned, please specify one when initializing the credentials."); + } + catch (AggregateException aggregateException) + { + throw new ConnectionException(ExceptionUtils.GetMessageFromAggregateException(aggregateException)); + } + } + + public static HttpRequest GetKeystoneListAuthDomainsRequest(string iamEndpoint) + { + var urlParam = new Dictionary(); + var urlPath = HttpUtils.AddUrlPath(KeystoneListAuthDomainsUri, urlParam); + var sdkRequest = HttpUtils.InitSdkRequest(urlPath); + + var url = iamEndpoint + urlPath; + var request = new HttpRequest("GET", sdkRequest.ContentType, new Uri(url)) + { + Body = "" + }; + + return request; + } + + public static string KeystoneListAuthDomains(SdkHttpClient client, HttpRequest request) + { + var message = client.InitHttpRequest(request, true); + try + { + var response = client.DoHttpRequest(message).Result; + if ((int)response.StatusCode >= 400) + { + throw ExceptionUtils.GetException(response); + } + + var data = JsonUtils.DeSerialize(response); + if (data?.Domains != null && data.Domains.Count > 0) + { + return data.Domains[0].Id; + } + + throw new ArgumentException("No domain id found, please select one of the following solutions:\n\t" + + "1. Manually specify domain_id when initializing the credentials.\n\t" + + "2. Use the domain account to grant the current account permissions of the IAM service.\n\t" + + "3. Use AK/SK of the domain account."); + } + catch (AggregateException aggregateException) + { + throw new ConnectionException(ExceptionUtils.GetMessageFromAggregateException(aggregateException)); + } + } + } +} diff --git a/Core/Client.cs b/Core/Client.cs new file mode 100755 index 0000000..8b79f5e --- /dev/null +++ b/Core/Client.cs @@ -0,0 +1,277 @@ +/* + * Copyright 2020 G42 Technologies Co.,Ltd. + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Net.Http; +using System.Threading.Tasks; +using G42Cloud.SDK.Core.Auth; +using Microsoft.Extensions.Logging; +using static System.String; + +namespace G42Cloud.SDK.Core +{ + public class Client + { + public class ClientBuilder where T : Client + { + private string[] CredentialType { get; } = {nameof(BasicCredentials)}; + + public ClientBuilder() + { + } + + public ClientBuilder(string credentialType) + { + this.CredentialType = credentialType.Split(','); + } + + private Credentials _credentials; + private HttpConfig _httpConfig; + private Region _region; + private string _endPoint; + private bool _enableLogging; + private LogLevel _logLevel = LogLevel.Information; + private HttpHandler _httpHandler; + private string _derivedAuthServiceName; + + private const string HttpScheme = "http"; + private const string HttpsScheme = "https"; + + public ClientBuilder WithCredential(Credentials credentials) + { + this._credentials = credentials; + return this; + } + + public ClientBuilder WithHttpConfig(HttpConfig httpConfig) + { + this._httpConfig = httpConfig; + return this; + } + + public ClientBuilder WithRegion(Region region) + { + this._region = region; + return this; + } + + public ClientBuilder WithEndPoint(string endPoint) + { + this._endPoint = endPoint; + return this; + } + + public ClientBuilder WithLogging(LogLevel logLevel) + { + this._enableLogging = true; + this._logLevel = logLevel; + return this; + } + + public ClientBuilder WithHttpHandler(HttpHandler httpHandler) + { + this._httpHandler = httpHandler; + return this; + } + + public ClientBuilder WithDerivedAuthServiceName(string derivedAuthServiceName) + { + this._derivedAuthServiceName = derivedAuthServiceName; + return this; + } + + public T Build() + { + Client client = Activator.CreateInstance(); + + if (this._credentials == null) + { + this._credentials = EnvCredentials.LoadCredentialsFromEnv(CredentialType[0]); + } + + if (!CredentialType.Contains(this._credentials.GetType().Name)) + { + throw new ArgumentException( + $"credential type error, support credential type is {Join(",", CredentialType)}"); + } + + client.WithHttpConfig(_httpConfig ?? HttpConfig.GetDefaultConfig()) + .InitSdkHttpClient(this._httpHandler, this._enableLogging, this._logLevel); + + if (this._region != null) + { + this._endPoint = _region.Endpoint; + this._credentials = _credentials.ProcessAuthParams(client._sdkHttpClient, _region.Id); + this._credentials.ProcessDerivedAuthParams(_derivedAuthServiceName, _region.Id); + } + + if (!_endPoint.StartsWith(HttpScheme)) + { + _endPoint = HttpsScheme + "://" + _endPoint; + } + + client.WithCredential(this._credentials) + .WithEndPoint(this._endPoint); + + return (T) client; + } + } + + private string _endpoint; + private HttpConfig _httpConfig; + private Credentials _credential; + + private SdkHttpClient _sdkHttpClient; + + private const string XRequestAgent = "User-Agent"; + private const string CredentialsNull = "Credentials cannot be null."; + + private Client WithCredential(Credentials credentials) + { + this._credential = credentials ?? throw new ArgumentNullException(CredentialsNull); + return this; + } + + private Client WithHttpConfig(HttpConfig httpConfig) + { + this._httpConfig = httpConfig; + return this; + } + + private Client WithEndPoint(string endPoint) + { + this._endpoint = endPoint; + return this; + } + + private void InitSdkHttpClient(HttpHandler httpHandler, bool enableLogging, LogLevel logLevel) + { + this._sdkHttpClient = + new SdkHttpClient(this.GetType().FullName, _httpConfig, httpHandler, enableLogging, logLevel); + } + + protected async Task DoHttpRequestAsync(string methodType, SdkRequest request) + { + var url = GetRealEndpoint(request) + + HttpUtils.AddUrlPath(request.Path, _credential.GetPathParamDictionary()) + + (IsNullOrEmpty(request.QueryParams) ? "" : "?" + request.QueryParams); + return await _async_http(url, methodType.ToUpper(), request); + } + + private async Task _async_http(string url, string method, SdkRequest sdkRequest) + { + var request = GetHttpRequest(url, method, sdkRequest); + if (IsNullOrEmpty(request.Headers.Get("Authorization"))) + { + request = await _credential.SignAuthRequest(request); + } + + var message = this._sdkHttpClient.InitHttpRequest(request, _httpConfig.IgnoreBodyForGetRequest); + try + { + var response = await this._sdkHttpClient.DoHttpRequest(message); + return GetResult(response); + } + catch (AggregateException aggregateException) + { + throw new ConnectionException(ExceptionUtils.GetMessageFromAggregateException(aggregateException)); + } + } + + protected HttpResponseMessage DoHttpRequestSync(string methodType, SdkRequest request) + { + var url = GetRealEndpoint(request) + + HttpUtils.AddUrlPath(request.Path, _credential.GetPathParamDictionary()) + + (IsNullOrEmpty(request.QueryParams) ? "" : "?" + request.QueryParams); + return _sync_http(url, methodType.ToUpper(), request); + } + + private HttpResponseMessage _sync_http(string url, string method, SdkRequest sdkRequest) + { + var request = GetHttpRequest(url, method, sdkRequest); + if (IsNullOrEmpty(request.Headers.Get("Authorization"))) + { + request = _credential.SignAuthRequest(request).Result; + } + + var message = this._sdkHttpClient.InitHttpRequest(request, _httpConfig.IgnoreBodyForGetRequest); + try + { + var response = this._sdkHttpClient.DoHttpRequest(message).Result; + return GetResult(response); + } + catch (AggregateException aggregateException) + { + throw new ConnectionException(ExceptionUtils.GetMessageFromAggregateException(aggregateException)); + } + } + + private string GetRealEndpoint(SdkRequest request) + { + if (String.IsNullOrEmpty(request.Cname)) + { + return _endpoint; + } + + return _endpoint.Insert(8, request.Cname + "."); + } + + private HttpResponseMessage GetResult(HttpResponseMessage responseMessage) + { + if ((int) responseMessage.StatusCode < 400) + { + return responseMessage; + } + + throw ExceptionUtils.GetException(responseMessage); + } + + private HttpRequest GetHttpRequest(string url, string method, SdkRequest sdkRequest) + { + var request = new HttpRequest(method.ToUpper(), sdkRequest.ContentType, new Uri(url)) + { + Body = sdkRequest.Body ?? "", + FileStream = sdkRequest.FileStream, + FormData = sdkRequest.FormData + }; + + UpdateHeaders(request, sdkRequest.Header); + return request; + } + + private void UpdateHeaders(HttpRequest request, Dictionary headers) + { + if (headers == null) + { + return; + } + + foreach (var header in headers) + { + request.Headers.Add(header.Key, header.Value); + } + + request.Headers.Add(XRequestAgent, "g42cloud-usdk-net/3.0"); + } + } +} \ No newline at end of file diff --git a/Core/Core.csproj b/Core/Core.csproj new file mode 100755 index 0000000..b593b50 --- /dev/null +++ b/Core/Core.csproj @@ -0,0 +1,31 @@ + + + G42Cloud.SDK.Core + G42Cloud.SDK.Core + netstandard2.0 + false + false + false + false + false + false + false + false + false + G42Cloud + Copyright 2020 G42 Technologies Co., Ltd. + G42 Technologies Co., Ltd. + G42Cloud .net SDK + LICENSE + + + + + + + + + + + + diff --git a/Core/Core.sln b/Core/Core.sln new file mode 100755 index 0000000..251bcb2 --- /dev/null +++ b/Core/Core.sln @@ -0,0 +1,17 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Core", "Core.csproj", "{863F0212-886F-42E1-89D6-D05075529D8A}" +EndProject + +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {863F0212-886F-42E1-89D6-D05075529D8A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {863F0212-886F-42E1-89D6-D05075529D8A}.Debug|Any CPU.Build.0 = Debug|Any CPU + {863F0212-886F-42E1-89D6-D05075529D8A}.Release|Any CPU.ActiveCfg = Release|Any CPU + {863F0212-886F-42E1-89D6-D05075529D8A}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection +EndGlobal diff --git a/Core/EnumClassConverter.cs b/Core/EnumClassConverter.cs new file mode 100755 index 0000000..a41f57a --- /dev/null +++ b/Core/EnumClassConverter.cs @@ -0,0 +1,72 @@ +/* + * Copyright 2020 G42 Technologies Co.,Ltd. + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +using System; +using System.Reflection; +using Newtonsoft.Json; + +namespace G42Cloud.SDK.Core +{ + public class EnumClassConverter : JsonConverter + { + private readonly FieldInfo _value = typeof(T).GetField("_value", BindingFlags.Instance | BindingFlags.NonPublic); + private readonly MethodInfo _methodGetValue = typeof(T).GetMethod("GetValue"); + private readonly MethodInfo _methodFromValue = typeof(T).GetMethod("FromValue"); + + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + if (value != null) + { + var actualValue = _methodGetValue.Invoke(value, new object[] { }); + writer.WriteValue(actualValue); + } + } + + public override object ReadJson(JsonReader reader, Type objectType, object existingValue, + JsonSerializer serializer) + { + if (reader.Value == null) + { + return null; + } + + var actualValue = reader.Value; + if (reader.ValueType != _value.FieldType) + { + actualValue = Convert.ChangeType(reader.Value, Nullable.GetUnderlyingType(_value.FieldType)); + } + + var obj = _methodFromValue.Invoke(null, new[] {actualValue}); + if (obj == null) + { + ConstructorInfo constructor = typeof(T).GetConstructor(new[] {_value.FieldType}); + obj = constructor.Invoke(new[] {actualValue}); + } + + return obj; + } + + public override bool CanConvert(Type objectType) + { + throw new NotImplementedException(); + } + } +} \ No newline at end of file diff --git a/Core/Exception/CallTimeoutException.cs b/Core/Exception/CallTimeoutException.cs new file mode 100755 index 0000000..0b195eb --- /dev/null +++ b/Core/Exception/CallTimeoutException.cs @@ -0,0 +1,31 @@ +/* + * Copyright 2020 G42 Technologies Co.,Ltd. + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +namespace G42Cloud.SDK.Core +{ + public class CallTimeoutException : RequestTimeoutException + { + public CallTimeoutException(string errorMessage):base(errorMessage) + { + this.ErrorMessage = errorMessage; + } + } +} \ No newline at end of file diff --git a/Core/Exception/ClientRequestException.cs b/Core/Exception/ClientRequestException.cs new file mode 100755 index 0000000..a6cd983 --- /dev/null +++ b/Core/Exception/ClientRequestException.cs @@ -0,0 +1,34 @@ +/* + * Copyright 2020 G42 Technologies Co.,Ltd. + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +namespace G42Cloud.SDK.Core +{ + public class ClientRequestException : ServiceResponseException + { + public ClientRequestException(int? httpCode, SdkError sdkError) : base(httpCode, sdkError) + { + this.HttpStatusCode = httpCode; + this.ErrorCode = sdkError.ErrorCode; + this.ErrorMsg = sdkError.ErrorMsg; + this.RequestId = sdkError.RequestId; + } + } +} \ No newline at end of file diff --git a/Core/Exception/ConnectionException.cs b/Core/Exception/ConnectionException.cs new file mode 100755 index 0000000..6683af3 --- /dev/null +++ b/Core/Exception/ConnectionException.cs @@ -0,0 +1,33 @@ +/* + * Copyright 2020 G42 Technologies Co.,Ltd. + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +namespace G42Cloud.SDK.Core +{ + public class ConnectionException : SdkException + { + public string ErrorMessage { get; set; } + + public ConnectionException(string errorMessage) + { + this.ErrorMessage = errorMessage; + } + } +} \ No newline at end of file diff --git a/Core/Exception/HostUnreachableException.cs b/Core/Exception/HostUnreachableException.cs new file mode 100755 index 0000000..06992bd --- /dev/null +++ b/Core/Exception/HostUnreachableException.cs @@ -0,0 +1,31 @@ +/* + * Copyright 2020 G42 Technologies Co.,Ltd. + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +namespace G42Cloud.SDK.Core +{ + public class HostUnreachableException : ConnectionException + { + public HostUnreachableException(string errorMessage):base(errorMessage) + { + this.ErrorMessage = errorMessage; + } + } +} \ No newline at end of file diff --git a/Core/Exception/RequestTimeoutException.cs b/Core/Exception/RequestTimeoutException.cs new file mode 100755 index 0000000..96ce405 --- /dev/null +++ b/Core/Exception/RequestTimeoutException.cs @@ -0,0 +1,33 @@ +/* + * Copyright 2020 G42 Technologies Co.,Ltd. + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +namespace G42Cloud.SDK.Core +{ + public class RequestTimeoutException : SdkException + { + public string ErrorMessage { get; set; } + + public RequestTimeoutException(string errorMessage) + { + this.ErrorMessage = errorMessage; + } + } +} \ No newline at end of file diff --git a/Core/Exception/RetryOutageException.cs b/Core/Exception/RetryOutageException.cs new file mode 100755 index 0000000..cf31775 --- /dev/null +++ b/Core/Exception/RetryOutageException.cs @@ -0,0 +1,31 @@ +/* + * Copyright 2020 G42 Technologies Co.,Ltd. + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +namespace G42Cloud.SDK.Core +{ + public class RetryOutageException : RequestTimeoutException + { + public RetryOutageException(string errorMessage):base(errorMessage) + { + this.ErrorMessage = errorMessage; + } + } +} \ No newline at end of file diff --git a/Core/Exception/SdkError.cs b/Core/Exception/SdkError.cs new file mode 100755 index 0000000..8371758 --- /dev/null +++ b/Core/Exception/SdkError.cs @@ -0,0 +1,64 @@ +/* + * Copyright 2020 G42 Technologies Co.,Ltd. + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +using System.Xml.Serialization; +using Newtonsoft.Json; + +namespace G42Cloud.SDK.Core +{ + [XmlRoot("Error")] + public class SdkError : SdkResponse + { + [JsonProperty("error_msg", NullValueHandling = NullValueHandling.Ignore)] + [XmlElement("Message")] + public string ErrorMsg { get; set; } + + [JsonProperty("error_code", NullValueHandling = NullValueHandling.Ignore)] + [XmlElement("Code")] + public string ErrorCode; + + [JsonProperty("request_id", NullValueHandling = NullValueHandling.Ignore)] + [XmlElement("RequestId")] + public string RequestId; + + public SdkError() + { + } + + public SdkError(string errorCode, string errorMsg, string requestId) + { + this.ErrorCode = errorCode; + this.ErrorMsg = errorMsg; + this.RequestId = requestId; + } + + public SdkError(string errorCode, string errorMsg) + { + this.ErrorCode = errorCode; + this.ErrorMsg = errorMsg; + } + + public SdkError(string errorMsg) + { + this.ErrorMsg = errorMsg; + } + } +} \ No newline at end of file diff --git a/Core/Exception/SdkException.cs b/Core/Exception/SdkException.cs new file mode 100755 index 0000000..a646055 --- /dev/null +++ b/Core/Exception/SdkException.cs @@ -0,0 +1,29 @@ +/* + * Copyright 2020 G42 Technologies Co.,Ltd. + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +using System; + +namespace G42Cloud.SDK.Core +{ + public class SdkException : Exception + { + } +} \ No newline at end of file diff --git a/Core/Exception/ServerResponseException.cs b/Core/Exception/ServerResponseException.cs new file mode 100755 index 0000000..8b293b1 --- /dev/null +++ b/Core/Exception/ServerResponseException.cs @@ -0,0 +1,34 @@ +/* + * Copyright 2020 G42 Technologies Co.,Ltd. + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +namespace G42Cloud.SDK.Core +{ + public class ServerResponseException : ServiceResponseException + { + public ServerResponseException(int? httpCode, SdkError sdkError) : base(httpCode, sdkError) + { + this.HttpStatusCode = httpCode; + this.ErrorCode = sdkError.ErrorCode; + this.ErrorMsg = sdkError.ErrorMsg; + this.RequestId = sdkError.RequestId; + } + } +} \ No newline at end of file diff --git a/Core/Exception/ServiceResponseException.cs b/Core/Exception/ServiceResponseException.cs new file mode 100755 index 0000000..220933a --- /dev/null +++ b/Core/Exception/ServiceResponseException.cs @@ -0,0 +1,57 @@ +/* + * Copyright 2020 G42 Technologies Co.,Ltd. + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +namespace G42Cloud.SDK.Core +{ + public class ServiceResponseException : SdkException + { + public int? HttpStatusCode { get; set; } + + public string ErrorMsg { get; set; } + + public string ErrorCode { get; set; } + + public string RequestId { get; set; } + + public ServiceResponseException(int? httpStatusCode, SdkError sdkError) + { + this.HttpStatusCode = httpStatusCode; + this.ErrorCode = sdkError.ErrorCode; + this.ErrorMsg = sdkError.ErrorMsg; + this.RequestId = sdkError.RequestId; + } + + public static ServiceResponseException MapException(int? httpStatusCode, SdkError sdkError) + { + if (httpStatusCode >= 400 && httpStatusCode < 500) + { + return new ClientRequestException(httpStatusCode, sdkError); + } + + if (httpStatusCode >= 500 && httpStatusCode < 600) + { + return new ServerResponseException(httpStatusCode, sdkError); + } + + return new ServiceResponseException(httpStatusCode, sdkError); + } + } +} \ No newline at end of file diff --git a/Core/Exception/SslHandShakeException.cs b/Core/Exception/SslHandShakeException.cs new file mode 100755 index 0000000..aac88aa --- /dev/null +++ b/Core/Exception/SslHandShakeException.cs @@ -0,0 +1,31 @@ +/* + * Copyright 2020 G42 Technologies Co.,Ltd. + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +namespace G42Cloud.SDK.Core +{ + public class SslHandShakeException : ConnectionException + { + public SslHandShakeException(string errorMessage):base(errorMessage) + { + this.ErrorMessage = errorMessage; + } + } +} \ No newline at end of file diff --git a/Core/FormDataFilePartConverter.cs b/Core/FormDataFilePartConverter.cs new file mode 100755 index 0000000..b97896f --- /dev/null +++ b/Core/FormDataFilePartConverter.cs @@ -0,0 +1,52 @@ +/* + * Copyright 2020 G42 Technologies Co.,Ltd. + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +using System; +using System.IO; +using Newtonsoft.Json; + +namespace G42Cloud.SDK.Core +{ + public class FormDataFilePartConverter : JsonConverter + { + public override void WriteJson(JsonWriter writer, FormDataFilePart value, JsonSerializer serializer) + { + + } + + public override FormDataFilePart ReadJson(JsonReader reader, Type objectType, FormDataFilePart existingValue, bool hasExistingValue, JsonSerializer serializer) + { + + if (reader.Value != null && reader.Value is string path) + { + if (!File.Exists(path)) + { + throw new FileNotFoundException(path + " does not exist."); + } + + var split = path.Split(Path.DirectorySeparatorChar); + var filename = split[split.Length - 1]; + return new FormDataFilePart(File.OpenRead(path), filename); + } + return null; + } + } +} diff --git a/Core/Http/FormDataFilePart.cs b/Core/Http/FormDataFilePart.cs new file mode 100755 index 0000000..c6a1108 --- /dev/null +++ b/Core/Http/FormDataFilePart.cs @@ -0,0 +1,60 @@ +/* + * Copyright 2020 G42 Technologies Co.,Ltd. + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +using System.IO; +using Newtonsoft.Json; + +namespace G42Cloud.SDK.Core +{ + [JsonConverter(typeof(FormDataFilePartConverter))] + public class FormDataFilePart : FormDataPart + { + private readonly string _filename; + + private string _contentType; + + public FormDataFilePart(Stream stream, string filename) : base(stream) + { + _filename = filename; + } + + public string GetFilename() + { + return _filename; + } + + public FormDataFilePart WithContentType(string contentType) + { + _contentType = contentType; + return this; + } + + public string GetContentType() + { + return _contentType; + } + + public Stream GetStream() + { + return GetValue(); + } + } +} diff --git a/Core/Http/FormDataPart.cs b/Core/Http/FormDataPart.cs new file mode 100755 index 0000000..8ecda39 --- /dev/null +++ b/Core/Http/FormDataPart.cs @@ -0,0 +1,50 @@ +/* + * Copyright 2020 G42 Technologies Co.,Ltd. + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +namespace G42Cloud.SDK.Core +{ + public class FormDataPart + { + private T _value; + + public FormDataPart(T value) + { + _value = value; + } + + public T GetValue() + { + return _value; + } + + public FormDataPart WithValue(T value) + { + _value = value; + return this; + } + + public override string ToString() + { + return _value.ToString(); + } + + } +} diff --git a/Core/Http/HttpConfig.cs b/Core/Http/HttpConfig.cs new file mode 100755 index 0000000..c2dee64 --- /dev/null +++ b/Core/Http/HttpConfig.cs @@ -0,0 +1,95 @@ +/* + * Copyright 2020 G42 Technologies Co.,Ltd. + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +namespace G42Cloud.SDK.Core +{ + public class HttpConfig + { + public int? Timeout = 120; + + public bool IgnoreSslVerification = false; + + public bool IgnoreBodyForGetRequest = false; + + public string ProxyUsername { get; set; } + + public string ProxyPassword { get; set; } + + public string ProxyDomain { get; set; } + + public string ProxyHost { get; set; } + + public int? ProxyPort { get; set; } + + public static HttpConfig GetDefaultConfig() + { + return new HttpConfig(); + } + + public HttpConfig WithTimeout(int timeout) + { + this.Timeout = timeout; + return this; + } + + public HttpConfig WithIgnoreSslVerification(bool ignore) + { + this.IgnoreSslVerification = ignore; + return this; + } + + public HttpConfig WithIgnoreBodyForGetRequest(bool ignore) + { + this.IgnoreBodyForGetRequest = ignore; + return this; + } + + public HttpConfig WithIgnoreProxyUsername(string username) + { + this.ProxyUsername = username; + return this; + } + + public HttpConfig WithIgnoreProxyPassword(string password) + { + this.ProxyPassword = password; + return this; + } + + public HttpConfig WithProxyDomain(string domain) + { + this.ProxyDomain = domain; + return this; + } + + public HttpConfig WithProxyHost(string host) + { + this.ProxyHost = host; + return this; + } + + public HttpConfig WithProxyPort(int port) + { + this.ProxyPort = port; + return this; + } + } +} \ No newline at end of file diff --git a/Core/Http/HttpHandler.cs b/Core/Http/HttpHandler.cs new file mode 100755 index 0000000..814a40b --- /dev/null +++ b/Core/Http/HttpHandler.cs @@ -0,0 +1,44 @@ +using System; +using System.Collections.Generic; +using System.Net.Http; +using Microsoft.Extensions.Logging; + +namespace G42Cloud.SDK.Core +{ + public class HttpHandler + { + private List> _requestHandlers = + new List>(); + + private List> _responseHandlers = + new List>(); + + public HttpHandler AddRequestHandler(Action func) + { + _requestHandlers.Add(func); + return this; + } + + public HttpHandler AddResponseHandler(Action func) + { + _responseHandlers.Add(func); + return this; + } + + public void ProcessRequest(HttpRequestMessage request, ILogger logger) + { + foreach (var requestHandler in _requestHandlers) + { + requestHandler(request, logger); + } + } + + public void ProcessResponse(HttpResponseMessage response, ILogger logger) + { + foreach (var responseHandler in _responseHandlers) + { + responseHandler(response, logger); + } + } + } +} \ No newline at end of file diff --git a/Core/Http/HttpRequest.cs b/Core/Http/HttpRequest.cs new file mode 100755 index 0000000..82c7aad --- /dev/null +++ b/Core/Http/HttpRequest.cs @@ -0,0 +1,109 @@ +/* + * Copyright 2020 G42 Technologies Co.,Ltd. + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +using System; +using System.Collections.Generic; +using System.IO; +using System.Net; +using System.Web; + +namespace G42Cloud.SDK.Core +{ + public class HttpRequest + { + public string Method = "GET"; + public string Host = ""; + public Uri Url = null; + public Dictionary> QueryParam = new Dictionary>(); + public WebHeaderCollection Headers = new WebHeaderCollection(); + public string Body = ""; + public string ContentType = "application/json"; + public Stream FileStream = Stream.Null; + public Dictionary FormData; + + public HttpRequest(string method = "GET", string contentType = "application/json", Uri url = null, + WebHeaderCollection headers = null, + string body = null, Stream fileStream = null) + { + if (method != null) + { + Method = method; + } + + if (url != null) + { + Url = url; + Host = url.Scheme + "://" + url.Host; + ParseQueryParam(); + } + + if (headers != null) + { + Headers = headers; + } + + if (body != null) + { + Body = body; + if (Method != "POST" && Method != "PATCH" && Method != "PUT") + { + Body = ""; + } + } + + if (contentType != null) + { + ContentType = contentType; + } + + if (fileStream != null) + { + FileStream = fileStream; + } + } + + private void ParseQueryParam() + { + if (Url.Query.Length > 1) + { + foreach (var kv in Url.Query.Substring(1).Split('&')) + { + var spl = kv.Split(new char[] {'='}, 2); + var key = HttpUtility.UrlDecode(spl[0]); + var value = ""; + if (spl.Length > 1) + { + value = HttpUtility.UrlDecode(spl[1]); + } + + if (QueryParam.ContainsKey(key)) + { + QueryParam[key].Add(value); + } + else + { + QueryParam[key] = new List {value}; + } + } + } + } + } +} \ No newline at end of file diff --git a/Core/Http/IFormDataBody.cs b/Core/Http/IFormDataBody.cs new file mode 100755 index 0000000..a0181f6 --- /dev/null +++ b/Core/Http/IFormDataBody.cs @@ -0,0 +1,30 @@ +/* + * Copyright 2020 G42 Technologies Co.,Ltd. + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +using System.Collections.Generic; + +namespace G42Cloud.SDK.Core +{ + public interface IFormDataBody + { + Dictionary BuildFormData(); + } +} diff --git a/Core/Http/SdkHttpClient.cs b/Core/Http/SdkHttpClient.cs new file mode 100755 index 0000000..de8b232 --- /dev/null +++ b/Core/Http/SdkHttpClient.cs @@ -0,0 +1,186 @@ +/* + * Copyright 2020 G42 Technologies Co.,Ltd. + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +using System; +using System.Collections.Generic; +using System.IO; +using System.Net; +using System.Net.Http; +using System.Net.Http.Headers; +using System.Threading.Tasks; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Logging; +using Polly; + +namespace G42Cloud.SDK.Core +{ + public class SdkHttpClient + { + private readonly HttpClient _myHttpClient; + private readonly ILogger _logger; + private readonly HttpHandler _httpHandler; + + public SdkHttpClient(String clientName, HttpConfig config, HttpHandler httpHandler, bool logging, + LogLevel logLevel) + { + var serviceProvider = GetServiceCollection(config, logging, logLevel).BuildServiceProvider(); + var loggerFactory = serviceProvider.GetService(); + this._logger = loggerFactory.CreateLogger("G42Cloud.Sdk"); + var httpClientFactory = serviceProvider.GetService(); + this._myHttpClient = httpClientFactory.CreateClient("SdkHttpClient"); + this._httpHandler = httpHandler; + } + + private IServiceCollection GetServiceCollection(HttpConfig httpConfig, bool logging, LogLevel logLevel) + { + var service = new ServiceCollection() + .AddHttpClient( + "SdkHttpClient", + x => { x.Timeout = TimeSpan.FromSeconds(httpConfig.Timeout.Value); } + ) + .AddTransientHttpErrorPolicy(builder => builder.WaitAndRetryAsync(new[] + { + TimeSpan.FromSeconds(3), + TimeSpan.FromSeconds(3), + TimeSpan.FromSeconds(3) + })) + .ConfigurePrimaryHttpMessageHandler( + () => new HwMessageHandlerFactory(httpConfig).GetHandler() + ) + .Services; + + if (logging) + { + service = service.AddLogging(builder => builder + .AddConsole() + .AddDebug() + .AddFilter(level => level >= logLevel)); + } + + return service; + } + + public HttpRequestMessage InitHttpRequest(HttpRequest request, bool ignoreBodyForGetRequest) + { + var message = new HttpRequestMessage + { + RequestUri = request.Url, + Method = new HttpMethod(request.Method) + }; + + foreach (var key in request.Headers.AllKeys) + { + if (key.Equals(HttpRequestHeader.Authorization.ToString())) + { + message.Headers.TryAddWithoutValidation(HttpRequestHeader.Authorization.ToString(), + request.Headers.GetValues(key)); + } + else + { + message.Headers.TryAddWithoutValidation(key, request.Headers.GetValues(key)); + } + } + + // Temporary workaround for .NET Framework, this framework does not support Content-Type headers in GET requests. + if (!ignoreBodyForGetRequest || message.Method != HttpMethod.Get) + { + message.Content = new StringContent(request.Body); + message.Content.Headers.ContentType = + new MediaTypeHeaderValue(SelectHeaderContentType(request.ContentType)); + } + + if (request.FileStream != null && request.FileStream != Stream.Null) + { + message.Content = new StreamContent(request.FileStream); + message.Content.Headers.ContentType = + new MediaTypeHeaderValue(SelectHeaderContentType(request.ContentType)); + } + + if (request.FormData != null && request.FormData.Count != 0) + { + var formDataContent = GetFormDataContent(request); + message.Content = formDataContent; + } + + return message; + } + + private string SelectHeaderContentType(string contentType) + { + if (contentType == null) + { + return "application/json"; + } + + if (contentType.Contains("application/json") || contentType.Contains("*/*")) + { + return "application/json"; + } + + return contentType; + } + + private HttpContent GetFormDataContent(HttpRequest request) + { + var boundary = Guid.NewGuid().ToString("N"); + var contentType = "multipart/form-data; boundary=" + boundary; + var content = new MultipartFormDataContent(boundary); + request.Headers.Add("ContentType", contentType); + content.Headers.Remove("Content-Type"); + content.Headers.TryAddWithoutValidation("Content-Type", contentType); + + var fileParts = new Dictionary(); + + foreach (var pair in request.FormData) + { + if (pair.Value is FormDataFilePart formDataFilePart) + { + fileParts.Add(pair.Key, formDataFilePart); + } + else + { + content.Add(new StringContent(pair.Value.ToString()), $"\"{pair.Key}\""); + } + } + + foreach (var pair in fileParts) + { + var filePart = pair.Value; + var streamContent = new StreamContent(filePart.GetValue()); + if (filePart.GetContentType() != null) + { + streamContent.Headers.ContentType = new MediaTypeHeaderValue(filePart.GetContentType()); + } + content.Add(streamContent, $"\"{pair.Key}\"", $"\"{filePart.GetFilename()}\""); + } + + return content; + } + + public async Task DoHttpRequest(HttpRequestMessage request) + { + _httpHandler?.ProcessRequest(request, this._logger); + var response = await _myHttpClient.SendAsync(request); + _httpHandler?.ProcessResponse(response, this._logger); + return response; + } + } +} diff --git a/Core/Http/SdkHttpMessageHandler.cs b/Core/Http/SdkHttpMessageHandler.cs new file mode 100755 index 0000000..07a7882 --- /dev/null +++ b/Core/Http/SdkHttpMessageHandler.cs @@ -0,0 +1,101 @@ +/* + * Copyright 2020 G42 Technologies Co.,Ltd. + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +using System.Net; +using System.Net.Http; +using System.Net.Security; +using System.Threading; +using System.Threading.Tasks; + +namespace G42Cloud.SDK.Core +{ + public class HwMessageHandlerFactory + { + private readonly HttpConfig _httpConfig; + + public HwMessageHandlerFactory(HttpConfig httpConfig) + { + this._httpConfig = httpConfig; + } + + public DelegatingHandler GetHandler() + { + var handler = new HttpClientHandler + { + ClientCertificateOptions = ClientCertificateOption.Manual, + ServerCertificateCustomValidationCallback = + (httpRequestMessage, cert, cetChain, policyErrors) => + _httpConfig.IgnoreSslVerification || policyErrors == SslPolicyErrors.None + }; + if (!string.IsNullOrEmpty(_httpConfig.ProxyHost)) + { + handler.Proxy = InitProxy(_httpConfig); + } + + return new RetryHandler(handler); + } + + private static WebProxy InitProxy(HttpConfig config) + { + var proxy = config.ProxyPort.HasValue + ? new WebProxy(config.ProxyHost, config.ProxyPort.Value) + : new WebProxy(config.ProxyHost); + + proxy.BypassProxyOnLocal = true; + proxy.UseDefaultCredentials = false; + proxy.Credentials = string.IsNullOrEmpty(config.ProxyDomain) + ? new NetworkCredential(config.ProxyUsername, + config.ProxyPassword ?? string.Empty) + : new NetworkCredential(config.ProxyUsername, + config.ProxyPassword ?? string.Empty, + config.ProxyDomain); + + return proxy; + } + } + + public class RetryHandler : DelegatingHandler + { + private const int MaxRetries = 1; + + public RetryHandler(HttpMessageHandler innerHandler) : base(innerHandler) + { + } + + protected override async Task SendAsync(HttpRequestMessage request, + CancellationToken cancellationToken) + { + HttpResponseMessage response = null; + for (var i = 0; i < MaxRetries; i++) + { + response = await base.SendAsync(request, cancellationToken); + + // todo Retry depends on policy + if (response.IsSuccessStatusCode) + { + return response; + } + } + + return response; + } + } +} \ No newline at end of file diff --git a/Core/Region/Region.cs b/Core/Region/Region.cs new file mode 100755 index 0000000..e6df1d9 --- /dev/null +++ b/Core/Region/Region.cs @@ -0,0 +1,21 @@ +namespace G42Cloud.SDK.Core +{ + public class Region + { + public string Id { get; set; } + + public string Endpoint { get; set; } + + public Region(string id, string endpoint) + { + Id = id; + Endpoint = endpoint; + } + + public Region WithEndpointOverride(string newEndpoint) + { + Endpoint = newEndpoint; + return this; + } + } +} \ No newline at end of file diff --git a/Core/SDKPropertyAttribute.cs b/Core/SDKPropertyAttribute.cs new file mode 100755 index 0000000..c3fab5a --- /dev/null +++ b/Core/SDKPropertyAttribute.cs @@ -0,0 +1,46 @@ +/* + * Copyright 2020 G42 Technologies Co.,Ltd. + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +using System; + +namespace G42Cloud.SDK.Core +{ + [AttributeUsage(AttributeTargets.Property, AllowMultiple = false)] + public sealed class SDKPropertyAttribute : Attribute + { + public SDKPropertyAttribute(string propertyName) + { + PropertyName = propertyName; + } + + public string PropertyName { get; set; } + + public bool IsQuery { get; set; } + + public bool IsHeader { get; set; } + + public bool IsBody { get; set; } + + public bool IsPath { get; set; } + + public bool IsCname { get; set; } + } +} \ No newline at end of file diff --git a/Core/SdkRequest.cs b/Core/SdkRequest.cs new file mode 100755 index 0000000..ffa653e --- /dev/null +++ b/Core/SdkRequest.cs @@ -0,0 +1,47 @@ +/* + * Copyright 2020 G42 Technologies Co.,Ltd. + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +using System.Collections.Generic; +using System.IO; + +namespace G42Cloud.SDK.Core +{ + public class SdkRequest + { + public string Body { get; set; } + + public string Path { get; set; } + + public string QueryParams { get; set; } + + public string Method { get; set; } + + public string Cname { get; set; } + + public Dictionary Header { get; set; } + + public string ContentType { get; set; } + + public Stream FileStream { get; set; } + + public Dictionary FormData { get; set; } + } +} diff --git a/Core/SdkResponse.cs b/Core/SdkResponse.cs new file mode 100755 index 0000000..5c62557 --- /dev/null +++ b/Core/SdkResponse.cs @@ -0,0 +1,47 @@ +/* + * Copyright 2020 G42 Technologies Co.,Ltd. + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +namespace G42Cloud.SDK.Core +{ + public class SdkResponse + { + public string HttpBody { get; set; } + + public int? HttpStatusCode { get; set; } + + public string HttpHeaders { get; set; } + + public string GetHttpBody() + { + return this.HttpBody; + } + + public int? GetHttpStatusCode() + { + return this.HttpStatusCode; + } + + public string GetHttpHeaders() + { + return this.HttpHeaders; + } + } +} \ No newline at end of file diff --git a/Core/SdkStreamRequest.cs b/Core/SdkStreamRequest.cs new file mode 100755 index 0000000..398efa3 --- /dev/null +++ b/Core/SdkStreamRequest.cs @@ -0,0 +1,30 @@ +/* + * Copyright 2020 G42 Technologies Co.,Ltd. + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +using System.IO; + +namespace G42Cloud.SDK.Core +{ + public class SdkStreamRequest + { + public Stream FileStream { get; set; } + } +} \ No newline at end of file diff --git a/Core/SdkStreamResponse.cs b/Core/SdkStreamResponse.cs new file mode 100755 index 0000000..48da244 --- /dev/null +++ b/Core/SdkStreamResponse.cs @@ -0,0 +1,41 @@ +/* + * Copyright 2020 G42 Technologies Co.,Ltd. + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +using System; +using System.IO; + +namespace G42Cloud.SDK.Core +{ + public class SdkStreamResponse : SdkResponse + { + private Stream _stream; + + public void SetStream(Stream stream) + { + this._stream = stream; + } + + public void ConsumeDownloadStream(Action fn) + { + fn(this._stream); + } + } +} \ No newline at end of file diff --git a/Core/Signer/DerivedSigner.cs b/Core/Signer/DerivedSigner.cs new file mode 100755 index 0000000..da21d1a --- /dev/null +++ b/Core/Signer/DerivedSigner.cs @@ -0,0 +1,197 @@ +using System; +using System.Text; +using System.Globalization; +using System.Security.Cryptography; +using System.IO; + +namespace G42Cloud.SDK.Core +{ + public class DerivedSigner : Signer + { + const string V11HmacSha256 = "V11-HMAC-SHA256"; + + public void Sign(HttpRequest request, string regionId, string derivedAuthServiceName) + { + if (string.IsNullOrEmpty(regionId)) + { + throw new ArgumentException("regionId in credential is required when using derived auth"); + } + if (string.IsNullOrEmpty(derivedAuthServiceName)) + { + throw new ArgumentException("derivedAuthServiceName in credential is required when using derived auth"); + } + // Add X-Sdk-Date + var time = request.Headers.GetValues(HeaderXDate); + DateTime t; + if (time == null) + { + t = DateTime.Now; + request.Headers.Add(HeaderXDate, t.ToUniversalTime().ToString(BasicDateFormat)); + } + else + { + t = DateTime.ParseExact(time[0], BasicDateFormat, CultureInfo.CurrentCulture); + } + + // Add Host header + var host = request.Url.Host; + if (request.Headers.GetValues(HeaderHost) != null) + { + host = request.Headers.GetValues(HeaderHost)?[0]; + } + request.Headers.Set("host", host); + + // Create the string to sign + var canonicalRequest = ConstructCanonicalRequest(request); + string timeStamp = t.ToUniversalTime().ToString(BasicDateFormat); + string info = timeStamp.Substring(0, 8) + "/" + regionId + "/" + derivedAuthServiceName; + string stringToSign = StringToSign(canonicalRequest, timeStamp, info); + + // Calculate the signature + var signedHeaders = ProcessSignedHeaders(request); + string derivationKey = Hkdf.GetDerKeySha(Key, Secret, info); + string signatureString = SignStringToSign(stringToSign, Encoding.UTF8.GetBytes(derivationKey)); + var authValue = $"{V11HmacSha256} Credential={Key}/{info}, SignedHeaders={string.Join(";", signedHeaders)}, Signature={signatureString}"; + request.Headers.Set(HeaderAuthorization, authValue); + } + + string StringToSign(string canonicalRequest, string timeStamp, string info) + { + SHA256 sha256 = new SHA256Managed(); + var bytes = sha256.ComputeHash(Encoding.UTF8.GetBytes(canonicalRequest)); + sha256.Clear(); + return $"{V11HmacSha256}\n" + + $"{timeStamp}\n" + + $"{info}\n" + + $"{ToHexString(bytes)}"; + } + + static class Hkdf + { + private const string HmacSha1 = "HMACSHA1"; + + private const string HmacSha256 = "HMACSHA256"; + + private static readonly int DERIVATION_KEY_LENGTH = 32; + + private static readonly string HMAC_ALGORITHM = HmacSha256; + + private static readonly int AlgorithmHashLength = GetHashLen(HMAC_ALGORITHM); + + private static readonly int ExpandCeil = (int)Math.Ceiling(DERIVATION_KEY_LENGTH / (double)AlgorithmHashLength); + + public static string GetDerKeySha(string ak, string sk, string info) + { + if (string.IsNullOrEmpty(ak) || string.IsNullOrEmpty(sk)) + { + return null; + } + + try + { + byte[] tmpKey = Extract(ak, sk); + byte[] derSecretKey = Expend(tmpKey, Encoding.UTF8.GetBytes(info)); + if (derSecretKey != null) + { + return ToHexString(derSecretKey); + } + } + catch (Exception exception) + { + throw new ArgumentException("Failed to derive AK " + $"{ak}" + " with info " + $"{info}" + " .\n" + $"{exception.Message}"); + } + return null; + } + + private static byte[] Expend(byte[] prk, byte[] info) + { + HMAC hMacSha = HMAC.Create(HMAC_ALGORITHM); + if (hMacSha == null) + { + throw new ArgumentException("unknown in HMAC algorithm"); + } + hMacSha.Key = prk; + + byte[] rawResult; + if (ExpandCeil == 1) + { + rawResult = ExpandFirst(info, hMacSha); + } + else + { + rawResult = new byte[0]; + byte[] temp = new byte[0]; + for (int i = 1; i <= ExpandCeil; ++i) + { + temp = ExpandOnce(info, hMacSha, temp, i); + MemoryStream combineBytes = new MemoryStream(); + combineBytes.Write(rawResult, 0, rawResult.Length); + combineBytes.Write(temp, 0, temp.Length); + rawResult = combineBytes.ToArray(); + } + } + + byte[] ret = null; + if (DERIVATION_KEY_LENGTH <= rawResult.Length) + { + ret = new byte[DERIVATION_KEY_LENGTH]; + Array.Copy(rawResult, 0, ret, 0, Math.Min(DERIVATION_KEY_LENGTH, rawResult.Length)); + } + return ret; + } + + private static byte[] Extract(string ak, string sk) + { + HMAC hMacSha = HMAC.Create(HMAC_ALGORITHM); + if (hMacSha == null) + { + throw new ArgumentException("unknown in HMAC algorithm"); + } + var akBytes = Encoding.UTF8.GetBytes(ak); + var skBytes = Encoding.UTF8.GetBytes(sk); + hMacSha.Key = akBytes; + + return hMacSha.ComputeHash(skBytes); + } + + private static byte[] ExpandFirst(byte[] info, HMAC mac) + { + byte[] result = new byte[info.Length + 1]; + Array.Copy(info, 0, result, 0, info.Length); + result[info.Length] = 0x01; + return mac.ComputeHash(result); + } + + private static byte[] ExpandOnce(byte[] info, HMAC mac, byte[] preTemp, int i) + { + MemoryStream hashBytes = new MemoryStream(); + hashBytes.Write(preTemp, 0, preTemp.Length); + hashBytes.Write(info, 0, info.Length); + hashBytes.WriteByte((byte)i); + return mac.ComputeHash(hashBytes.ToArray()); + } + + private static string ToHexstring(byte[] data) + { + string hex = string.Empty; + foreach (var b in data) + { + hex += b.ToString("x2"); + } + return hex; + } + + private static int GetHashLen(string hmacAlgorithm) + { + switch (hmacAlgorithm) + { + case HmacSha1: + return 20; + case HmacSha256: + default: + return 32; + } + } + } + } +} diff --git a/Core/Signer/HttpEncoder.cs b/Core/Signer/HttpEncoder.cs new file mode 100755 index 0000000..c620ba7 --- /dev/null +++ b/Core/Signer/HttpEncoder.cs @@ -0,0 +1,111 @@ +//------------------------------------------------------------------------------ +// based on https://github.com/Microsoft/referencesource/blob/master/System.Web/Util/HttpEncoder.cs +// and https://github.com/Microsoft/referencesource/blob/master/System.Web/Util/HttpEncoderUtility.cs +// +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +//------------------------------------------------------------------------------ + +/* + * Copyright (c) 2009 Microsoft Corporation + */ + +using System; +using System.Text; + +namespace G42Cloud.SDK.Core +{ + public partial class Signer + { + private static char IntToHex(int n) + { + if (n <= 9) + return (char)(n + (int)'0'); + else + return (char)(n - 10 + (int)'A'); + } + + private static bool IsUrlSafeChar(char ch) + { + if (ch >= 'a' && ch <= 'z' || ch >= 'A' && ch <= 'Z' || ch >= '0' && ch <= '9') + return true; + + switch (ch) + { + case '-': + case '_': + case '.': + case '~': + return true; + } + + return false; + } + + private static byte[] UrlEncode(byte[] bytes, int offset, int count) + { + int cUnsafe = 0; + + // count them first + for (int i = 0; i < count; i++) + { + char ch = (char)bytes[offset + i]; + + if (!IsUrlSafeChar(ch)) + cUnsafe++; + } + + // nothing to expand? + if (cUnsafe == 0) + { + // DevDiv 912606: respect "offset" and "count" + if (0 == offset && bytes.Length == count) + { + return bytes; + } + else + { + var subarray = new byte[count]; + Buffer.BlockCopy(bytes, offset, subarray, 0, count); + return subarray; + } + } + + // expand not 'safe' characters into %XX, spaces to +s + byte[] expandedBytes = new byte[count + cUnsafe * 2]; + int pos = 0; + + for (int i = 0; i < count; i++) + { + byte b = bytes[offset + i]; + char ch = (char)b; + + if (IsUrlSafeChar(ch)) + { + expandedBytes[pos++] = b; + } + else + { + expandedBytes[pos++] = (byte)'%'; + expandedBytes[pos++] = (byte)IntToHex((b >> 4) & 0xf); + expandedBytes[pos++] = (byte)IntToHex(b & 0x0f); + } + } + + return expandedBytes; + } + + protected static string UrlEncode(string value) + { + if (value == null) + return null; + + byte[] bytes = Encoding.UTF8.GetBytes(value); + return Encoding.UTF8.GetString(UrlEncode(bytes, 0, bytes.Length)); + } + } +} \ No newline at end of file diff --git a/Core/Signer/Signer.cs b/Core/Signer/Signer.cs new file mode 100755 index 0000000..8338bf9 --- /dev/null +++ b/Core/Signer/Signer.cs @@ -0,0 +1,235 @@ +/* + * Copyright 2020 G42 Technologies Co.,Ltd. + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +using System; +using System.Collections.Generic; +using System.Globalization; +using System.Linq; +using System.Security.Cryptography; +using System.Text; +using static System.String; + +namespace G42Cloud.SDK.Core + +{ + public partial class Signer + { + protected const string BasicDateFormat = "yyyyMMddTHHmmssZ"; + const string Algorithm = "SDK-HMAC-SHA256"; + protected const string HeaderXDate = "X-Sdk-Date"; + protected const string HeaderHost = "host"; + protected const string HeaderAuthorization = "Authorization"; + const string HeaderContentSha256 = "X-Sdk-Content-Sha256"; + private readonly HashSet _unsignedHeaders = new HashSet {"content-type"}; + + public string Key { get; set; } + public string Secret { get; set; } + + public void Sign(HttpRequest request) + { + var time = request.Headers.GetValues(HeaderXDate); + DateTime t; + if (time == null) + { + t = DateTime.Now; + request.Headers.Add(HeaderXDate, t.ToUniversalTime().ToString(BasicDateFormat)); + } + else + { + t = DateTime.ParseExact(time[0], BasicDateFormat, CultureInfo.CurrentCulture); + } + + var host = request.Url.Host; + if (request.Headers.GetValues(HeaderHost) != null) + { + host = request.Headers.GetValues(HeaderHost)?[0]; + } + + request.Headers.Set("host", host); + + var signedHeaders = ProcessSignedHeaders(request); + var canonicalRequest = ConstructCanonicalRequest(request); + var stringToSign = StringToSign(canonicalRequest, t); + var signature = SignStringToSign(stringToSign, Encoding.UTF8.GetBytes(Secret)); + var authValue = ProcessAuthHeader(signature, signedHeaders); + request.Headers.Set(HeaderAuthorization, authValue); + } + + /// + /// Build a CanonicalRequest from a regular request string + /// CanonicalRequest consists of several parts: + /// Part 1. HTTPRequestMethod + /// Part 2. CanonicalURI + /// Part 3. CanonicalQueryString + /// Part 4. CanonicalHeaders + /// Part 5 SignedHeaders + /// Part 6 HexEncode(Hash(RequestPayload)) + /// + protected string ConstructCanonicalRequest(HttpRequest request) + { + return $"{ProcessRequestMethod(request)}\n" + + $"{ProcessCanonicalUri(request)}\n" + + $"{ProcessCanonicalQueryString(request)}\n" + + $"{CanonicalHeaders(request)}\n" + + $"{Join(";", ProcessSignedHeaders(request))}\n" + + $"{ProcessRequestPayload(request)}"; + } + + private string ProcessRequestMethod(HttpRequest request) + { + return request.Method; + } + + private string ProcessCanonicalUri(HttpRequest request) + { + var uri = request.Url.GetComponents(UriComponents.Path | UriComponents.KeepDelimiter, UriFormat.Unescaped); + uri = Join("/", uri.Split('/').Select(UrlEncode).ToList()); + uri = uri.EndsWith("/") ? uri : uri + "/"; + return uri; + } + + private string ProcessCanonicalQueryString(HttpRequest request) + { + var keys = request.QueryParam.Select(pair => pair.Key).ToList(); + keys.Sort(CompareOrdinal); + + var queryStrings = new List(); + foreach (var key in keys) + { + var k = UrlEncode(key); + var values = request.QueryParam[key]; + values.Sort(CompareOrdinal); + queryStrings.AddRange(values.Select(value => k + "=" + UrlEncode(value))); + } + + return Join("&", queryStrings); + } + + private string CanonicalHeaders(HttpRequest request) + { + var headers = new List(); + var signedHeaders = ProcessSignedHeaders(request); + foreach (var key in signedHeaders) + { + var values = new List(request.Headers.GetValues(key)); + values.Sort(CompareOrdinal); + foreach (var value in values) + { + headers.Add(key + ":" + value.Trim()); + request.Headers.Set(key, + Encoding.GetEncoding("iso-8859-1").GetString(Encoding.UTF8.GetBytes(value))); + } + } + + return Join("\n", headers) + "\n"; + } + + protected List ProcessSignedHeaders(HttpRequest request) + { + var signedHeaders = (from key in request.Headers.AllKeys + let keyLower = key.ToLower() + where !_unsignedHeaders.Contains(keyLower) + select key.ToLower()).ToList(); + + signedHeaders.Sort(CompareOrdinal); + return signedHeaders; + } + + private string ProcessRequestPayload(HttpRequest request) + { + string hexEncodePayload; + if (request.Headers.Get(HeaderContentSha256) != null) + { + hexEncodePayload = request.Headers.Get(HeaderContentSha256); + } + else + { + var data = Encoding.UTF8.GetBytes(request.Body); + hexEncodePayload = HexEncodeSha256Hash(data); + } + + return hexEncodePayload; + } + + private string ProcessAuthHeader(string signature, List signedHeaders) + { + return $"{Algorithm} Access={Key}, SignedHeaders={Join(";", signedHeaders)}, Signature={signature}"; + } + + private static string HexEncodeSha256Hash(byte[] body) + { + SHA256 sha256 = new SHA256Managed(); + var bytes = sha256.ComputeHash(body); + sha256.Clear(); + return ToHexString(bytes); + } + + protected static string ToHexString(byte[] value) + { + var num = value.Length * 2; + var array = new char[num]; + var num2 = 0; + for (var i = 0; i < num; i += 2) + { + var b = value[num2++]; + array[i] = GetHexValue(b / 16); + array[i + 1] = GetHexValue(b % 16); + } + + return new string(array, 0, num); + } + + private static char GetHexValue(int i) + { + if (i < 10) + { + return (char) (i + '0'); + } + + return (char) (i - 10 + 'a'); + } + + protected string StringToSign(string canonicalRequest, DateTime t) + { + SHA256 sha256 = new SHA256Managed(); + var bytes = sha256.ComputeHash(Encoding.UTF8.GetBytes(canonicalRequest)); + sha256.Clear(); + return $"{Algorithm}\n" + + $"{t.ToUniversalTime().ToString(BasicDateFormat)}\n" + + $"{ToHexString(bytes)}"; + } + + protected string SignStringToSign(string stringToSign, byte[] signingKey) + { + var hm = HMacSha256(signingKey, stringToSign); + return ToHexString(hm); + } + + private byte[] HMacSha256(byte[] keyByte, string message) + { + var messageBytes = Encoding.UTF8.GetBytes(message); + using (var hMacSha256 = new HMACSHA256(keyByte)) + { + return hMacSha256.ComputeHash(messageBytes); + } + } + } +} \ No newline at end of file diff --git a/Core/Utils/ExceptionUtils.cs b/Core/Utils/ExceptionUtils.cs new file mode 100755 index 0000000..2fc3e70 --- /dev/null +++ b/Core/Utils/ExceptionUtils.cs @@ -0,0 +1,142 @@ +/* + * Copyright 2020 G42 Technologies Co.,Ltd. + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Net.Http; +using System.Text; +using Newtonsoft.Json; +using Newtonsoft.Json.Linq; +using static System.String; + +namespace G42Cloud.SDK.Core +{ + public static class ExceptionUtils + { + private const string XRequestId = "X-Request-Id"; + + public static string GetMessageFromAggregateException(AggregateException aggregateException) + { + var messages = new StringBuilder(); + messages.AppendLine(aggregateException.Message); + foreach (var innerException in aggregateException.InnerExceptions) + { + messages.AppendLine(innerException.Message); + } + return messages.ToString(); + } + + public static ServiceResponseException GetException(HttpResponseMessage responseMessage) + { + var result = new SdkResponse + { + HttpStatusCode = (int) responseMessage.StatusCode, + HttpHeaders = responseMessage.Headers.ToString(), + HttpBody = Encoding.UTF8.GetString(responseMessage.Content.ReadAsByteArrayAsync().Result) + }; + + var requestId = ""; + if (responseMessage.Headers.Contains(XRequestId)) + { + requestId = responseMessage.Headers.GetValues(XRequestId).FirstOrDefault(); + } + + SdkError sdkError; + try + { + sdkError = responseMessage.Content.Headers.ContentType.MediaType.Equals("application/xml") + ? XmlUtils.DeSerialize(result) + : GetSdkErrorFromResponse(requestId, result); + } + catch (Exception exception) + { + throw new ServerResponseException(result.HttpStatusCode, + new SdkError {ErrorMsg = exception.Message}); + } + + throw ServiceResponseException.MapException((int) responseMessage.StatusCode, sdkError); + } + + private static SdkError GetSdkErrorFromResponse(string requestId, SdkResponse response) + { + SdkError sdkError; + try + { + sdkError = JsonUtils.DeSerialize(response); + if (IsNullOrEmpty(sdkError.ErrorCode) || IsNullOrEmpty(sdkError.ErrorMsg)) + { + sdkError = HandleServiceCommonException(response); + } + } + catch (Exception) + { + sdkError = new SdkError(); + } + + if (IsNullOrEmpty(sdkError.ErrorMsg)) + { + sdkError = HandleServiceSpecException(response); + } + + if (IsNullOrEmpty(sdkError.RequestId)) + { + sdkError.RequestId = requestId; + } + + return sdkError; + } + + private static SdkError HandleServiceSpecException(SdkResponse response) + { + return new SdkError(); + } + + private static SdkError HandleServiceCommonException(SdkResponse response) + { + var exception = JsonConvert.DeserializeObject>(response.HttpBody); + if (exception.ContainsKey("code") && exception.ContainsKey("message")) + { + return new SdkError(exception["code"].ToString(), exception["message"].ToString()); + } + + foreach (var item in exception) + { + var jValue = JObject.Parse(item.Value.ToString()); + var errorCode = jValue["error_code"]; + var errorMsg = jValue["error_msg"]; + if (errorCode != null && errorMsg != null) + { + return new SdkError(errorCode.ToString(), errorMsg.ToString()); + } + + var message = jValue["message"]; + var code = jValue["code"]; + if (message != null && code != null) + { + return new SdkError(code.ToString(), message.ToString()); + } + } + + return new SdkError(response.HttpBody); + } + } +} \ No newline at end of file diff --git a/Core/Utils/HttpUtils.cs b/Core/Utils/HttpUtils.cs new file mode 100755 index 0000000..573624c --- /dev/null +++ b/Core/Utils/HttpUtils.cs @@ -0,0 +1,491 @@ +/* + * Copyright 2020 G42 Technologies Co.,Ltd. + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; +using System.Net.Http; +using System.Reflection; +using System.Text; + +namespace G42Cloud.SDK.Core +{ + public static class HttpUtils + { + public static string AddUrlPath(string path, Dictionary pathParams) + { + return pathParams.Aggregate(path, + (current, keyValuePair) => current.Replace("{" + keyValuePair.Key + "}", + keyValuePair.Value)); + } + + private static string GetQueryParameters(Object obj) + { + var sb = new StringBuilder(); + var t = obj.GetType(); + var pi = t.GetProperties(BindingFlags.Public | BindingFlags.Instance); + + foreach (var p in pi) + { + var attributes = p.GetCustomAttributes(typeof(SDKPropertyAttribute), true); + SDKPropertyAttribute sdkPropertyAttribute = null; + + if (attributes.Length == 0) + { + continue; + } + + foreach (var a in attributes) + { + if (a is SDKPropertyAttribute propertyAttribute) + { + sdkPropertyAttribute = propertyAttribute; + } + } + + if (sdkPropertyAttribute == null || !sdkPropertyAttribute.IsQuery) + { + continue; + } + + var value = p.GetValue(obj, null); + if (value == null || string.IsNullOrEmpty(Convert.ToString(value))) + { + continue; + } + + if (value is IList list) + { + sb.Append(BuildQueryListParameter(sdkPropertyAttribute.PropertyName, list)); + } + else if (value is IDictionary dictionary) + { + sb.Append(BuildQueryDictionaryParameter(sdkPropertyAttribute.PropertyName, dictionary)); + } + else if (value is bool boolean) + { + sb.Append(BuildQueryBooleanParameter(sdkPropertyAttribute.PropertyName, boolean)); + } + else + { + sb.Append(BuildQueryStringParameter(sdkPropertyAttribute.PropertyName, Convert.ToString(value))); + } + } + + var strIndex = sb.Length; + if (!string.IsNullOrEmpty(sb.ToString())) + { + sb.Remove(strIndex - 1, 1); + } + + return sb.ToString(); + } + + private static StringBuilder BuildQueryStringParameter(string key, string value) + { + var sb = new StringBuilder(); + return sb.Append(key).Append("=").Append(Convert.ToString(value)).Append("&"); + } + + private static StringBuilder BuildQueryBooleanParameter(string key, bool boolean) + { + var sb = new StringBuilder(); + return sb.Append(key).Append("=").Append(Convert.ToString(boolean).ToLower()).Append("&"); + } + + private static StringBuilder BuildQueryListParameter(string key, IList list) + { + var sb = new StringBuilder(); + foreach (var item in list) + { + sb.Append(key).Append("=").Append(Convert.ToString(item)).Append("&"); + } + + return sb; + } + + private static StringBuilder BuildQueryDictionaryParameter(string key, IDictionary dict) + { + var sb = new StringBuilder(); + foreach (var k in dict.Keys) + { + if (dict[k] is IList list) + { + sb.Append(BuildQueryListParameter(key + "[" + k + "]", list)); + } + else if (dict[k] is IDictionary dictionary) + { + sb.Append(BuildQueryDictionaryParameter(key + "[" + k + "]", dictionary)); + } + else + { + sb.Append(BuildQueryStringParameter(key + "[" + k + "]", Convert.ToString(dict[k]))); + } + } + + return sb; + } + + private static Dictionary GetRequestHeader(object obj) + { + var t = obj.GetType(); + var pi = t.GetProperties(BindingFlags.Public | BindingFlags.Instance); + + var element = new Dictionary(); + foreach (var p in pi) + { + var attributes = p.GetCustomAttributes(typeof(SDKPropertyAttribute), true); + SDKPropertyAttribute sdkPropertyAttribute = null; + + if (attributes.Length == 0) + { + continue; + } + + foreach (var a in attributes) + { + if (a is SDKPropertyAttribute propertyAttribute) + { + sdkPropertyAttribute = propertyAttribute; + } + } + + if (sdkPropertyAttribute == null || !sdkPropertyAttribute.IsHeader) + { + continue; + } + + var value = p.GetValue(obj, null); + if (value == null || string.IsNullOrEmpty(Convert.ToString(value))) + { + continue; + } + + element.Add(sdkPropertyAttribute.PropertyName, Convert.ToString(value)); + } + + return element; + } + + private static string GetCname(object obj) + { + var t = obj.GetType(); + var pi = t.GetProperties(BindingFlags.Public | BindingFlags.Instance); + + var element = new Dictionary(); + foreach (var p in pi) + { + var attributes = p.GetCustomAttributes(typeof(SDKPropertyAttribute), true); + SDKPropertyAttribute sdkPropertyAttribute = null; + + if (attributes.Length == 0) + { + continue; + } + + foreach (var a in attributes) + { + if (a is SDKPropertyAttribute propertyAttribute) + { + sdkPropertyAttribute = propertyAttribute; + } + } + + if (sdkPropertyAttribute == null || !sdkPropertyAttribute.IsCname) + { + continue; + } + + var value = p.GetValue(obj, null); + if (value == null || string.IsNullOrEmpty(Convert.ToString(value))) + { + continue; + } + + return Convert.ToString(value); + } + + return null; + } + + private static string GetRequestBody(object obj, string contentType) + { + var t = obj.GetType(); + var pi = t.GetProperties(BindingFlags.Public | BindingFlags.Instance); + + var sdkPropertyList = new List(); + + foreach (var p in pi) + { + var attributes = p.GetCustomAttributes(typeof(SDKPropertyAttribute), true); + SDKPropertyAttribute sdkPropertyAttribute = null; + + if (attributes.Length == 0) + { + continue; + } + + foreach (var a in attributes) + { + if (a is SDKPropertyAttribute propertyAttribute) + { + sdkPropertyAttribute = propertyAttribute; + } + } + + if (sdkPropertyAttribute == null || !sdkPropertyAttribute.IsBody) + { + continue; + } + + var value = p.GetValue(obj, null); + if (value == null) + { + continue; + } + + sdkPropertyList.Add(value); + } + + if (sdkPropertyList.Count == 1) + { + foreach (var elem in sdkPropertyList) + { + return contentType == "application/xml" ? XmlUtils.Serialize(elem) : JsonUtils.Serialize(elem); + } + } + + return ""; + } + + private static Dictionary GetFormData(object obj) + { + var t = obj.GetType(); + var pi = t.GetProperties(BindingFlags.Public | BindingFlags.Instance); + + var sdkPropertyList = new List(); + + foreach (var p in pi) + { + var attributes = p.GetCustomAttributes(typeof(SDKPropertyAttribute), true); + SDKPropertyAttribute sdkPropertyAttribute = null; + + if (attributes.Length == 0) + { + continue; + } + + foreach (var a in attributes) + { + if (a is SDKPropertyAttribute propertyAttribute) + { + sdkPropertyAttribute = propertyAttribute; + } + } + + if (sdkPropertyAttribute == null || !sdkPropertyAttribute.IsBody) + { + continue; + } + + var value = p.GetValue(obj, null); + if (value == null) + { + continue; + } + + sdkPropertyList.Add(value); + } + + if (sdkPropertyList.Count == 1) + { + foreach (var elem in sdkPropertyList) + { + if (elem is IFormDataBody) + { + return ((IFormDataBody)elem).BuildFormData(); + } + } + } + + return null; + } + + public static SdkRequest InitSdkRequest(string path, object data = null) + { + return InitSdkRequest(path, null, data); + } + + public static SdkRequest InitSdkRequest(string path, String contentType, object data = null) + { + if (path != null && string.IsNullOrEmpty(path)) + { + throw new ArgumentNullException("Url cannot be null."); + } + + var request = new SdkRequest + { + Path = path + }; + if (data == null) + { + return request; + } + + var cname = GetCname(data); + if (!String.IsNullOrEmpty(cname)) + { + request.Cname = cname; + } + + var prams = GetQueryParameters(data); + if (prams != "") + { + request.QueryParams = prams; + } + + var headers = GetRequestHeader(data); + if (headers != null) + { + request.Header = headers; + } + + if (contentType == "multipart/form-data") + { + var formData = GetFormData(data); + if (formData != null) + { + request.FormData = formData; + } + } + else + { + var bodyData = GetRequestBody(data, contentType); + if (bodyData != null) + { + request.Body = bodyData; + } + } + + if (!string.IsNullOrEmpty(contentType)) + { + request.ContentType = contentType; + request.Header.Add("Content-Type", request.ContentType); + } + + if (data.GetType().IsSubclassOf(typeof(SdkStreamRequest))) + { + request.FileStream = ((SdkStreamRequest)data).FileStream; + } + + return request; + } + + public static T DeSerializeStream(HttpResponseMessage message) + { + var t = Activator.CreateInstance(); + t.GetType().GetProperty("HttpStatusCode")?.SetValue(t, (int)message.StatusCode, null); + t.GetType().GetProperty("HttpHeaders")?.SetValue(t, message.Headers.ToString(), null); + BindingFlags flag = BindingFlags.Public | BindingFlags.Instance; + t.GetType().GetMethod("SetStream") + ?.Invoke(t, flag, Type.DefaultBinder, + new object[] + { + message.Content.ReadAsStreamAsync().Result + }, null); + return t; + } + + public static void SetAdditionalAttrs(HttpResponseMessage message, T obj, string body) + { + obj.GetType().GetProperty("HttpStatusCode")?.SetValue(obj, (int)message.StatusCode, null); + obj.GetType().GetProperty("HttpHeaders")?.SetValue(obj, message.Headers.ToString(), null); + obj.GetType().GetProperty("HttpBody")?.SetValue(obj, body, null); + } + + private static readonly List HttpContentHeadersList = new List + { + "Allow", + "Content-Disposition", + "Content-Encoding", + "Content-Language", + "Content-Location", + "Content-MD5", + "Content-Range", + "Content-Type", + "Content-Length", + "Expires", + "Last-Modified" + }; + + public static void SetResponseHeaders(HttpResponseMessage message, T obj) + { + const BindingFlags instanceBindFlags = BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic; + + var properties = obj.GetType().GetProperties(instanceBindFlags); + + foreach (var property in properties) + { + var oriAttrName = ""; + var customAttrs = property.GetCustomAttributes(typeof(SDKPropertyAttribute), true); + if (customAttrs.Length > 0) + { + SDKPropertyAttribute sdkPropertyAttribute = null; + foreach (var customAttr in customAttrs) + { + if (customAttr is SDKPropertyAttribute propertyAttribute) + { + sdkPropertyAttribute = propertyAttribute; + } + + if (sdkPropertyAttribute == null || !sdkPropertyAttribute.IsHeader) + { + continue; + } + + oriAttrName = sdkPropertyAttribute.PropertyName; + } + } + + if (string.IsNullOrEmpty(oriAttrName)) + { + continue; + } + + if (HttpContentHeadersList.Contains(oriAttrName)) + { + if (message.Content.Headers.Contains(oriAttrName)) + { + property.SetValue(obj, message.Content.Headers.GetValues(oriAttrName).First()); + } + } + else + { + if (message.Headers.Contains(oriAttrName)) + { + property.SetValue(obj, message.Headers.GetValues(oriAttrName).First()); + } + } + } + } + } +} diff --git a/Core/Utils/JsonUtils.cs b/Core/Utils/JsonUtils.cs new file mode 100755 index 0000000..ed1a415 --- /dev/null +++ b/Core/Utils/JsonUtils.cs @@ -0,0 +1,109 @@ +/* + * Copyright 2020 G42 Technologies Co.,Ltd. + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +using System; +using System.Collections.Generic; +using System.Net.Http; +using System.Text; +using Newtonsoft.Json; +using Newtonsoft.Json.Linq; + +namespace G42Cloud.SDK.Core +{ + public static class JsonUtils + { + public static T DeSerialize(HttpResponseMessage message) + { + if (typeof(T).IsSubclassOf(typeof(SdkStreamResponse))) + { + return HttpUtils.DeSerializeStream(message); + } + + var body = Encoding.UTF8.GetString(message.Content.ReadAsByteArrayAsync().Result); + var jsonObject = SetResponseBody(body); + + HttpUtils.SetAdditionalAttrs(message, jsonObject, body); + HttpUtils.SetResponseHeaders(message, jsonObject); + + return jsonObject; + } + + private static T SetResponseBody(string body) + { + var jsonObject = JsonConvert.DeserializeObject(body, GetJsonSettings()); + + if (jsonObject == null) + { + jsonObject = Activator.CreateInstance(); + } + + return jsonObject; + } + + public static T DeSerialize(SdkResponse response) where T : SdkResponse + { + var jsonObject = JsonConvert.DeserializeObject(response.HttpBody, GetJsonSettings()) ?? + Activator.CreateInstance(); + + jsonObject.HttpStatusCode = response.HttpStatusCode; + jsonObject.HttpHeaders = response.HttpHeaders; + jsonObject.HttpBody = response.HttpBody; + return jsonObject; + } + + public static T DeSerializeNull(HttpResponseMessage message) where T : SdkResponse + { + var t = Activator.CreateInstance(); + t.HttpStatusCode = (int) message.StatusCode; + t.HttpHeaders = message.Headers.ToString(); + t.HttpBody = Encoding.UTF8.GetString(message.Content.ReadAsByteArrayAsync().Result); + return t; + } + + public static List DeSerializeList(HttpResponseMessage message) + { + var body = Encoding.UTF8.GetString(message.Content.ReadAsByteArrayAsync().Result); + return JArray.Parse(body).ToObject>(JsonSerializer.CreateDefault(GetJsonSettings())); + } + + public static Dictionary DeSerializeMap(HttpResponseMessage message) + { + var body = Encoding.UTF8.GetString(message.Content.ReadAsByteArrayAsync().Result); + return JArray.Parse(body).ToObject>(JsonSerializer.CreateDefault(GetJsonSettings())); + } + + public static string Serialize(object item) + { + return JsonConvert.SerializeObject(item); + } + + private static JsonSerializerSettings GetJsonSettings() + { + var settings = new JsonSerializerSettings + { + DateFormatHandling = DateFormatHandling.IsoDateFormat, + DateTimeZoneHandling = DateTimeZoneHandling.Utc, + DateParseHandling = DateParseHandling.DateTime + }; + return settings; + } + } +} \ No newline at end of file diff --git a/Core/Utils/StringUtils.cs b/Core/Utils/StringUtils.cs new file mode 100755 index 0000000..746524b --- /dev/null +++ b/Core/Utils/StringUtils.cs @@ -0,0 +1,25 @@ +using System.Linq; + +namespace G42Cloud.SDK.Core +{ + public class StringUtils + { + public static string ToSnakeCase(string str) + { + return string.Concat(str.Select((x, i) => i > 0 && char.IsUpper(x) ? "_" + x : x.ToString())) + .ToLower(); + } + + public static string UnderscoreToCamel(string str) + { + var item = str; + while (item.IndexOf('_') >= 0) + { + string newUpper = item.Substring(item.IndexOf('_'), 2); + item = item.Replace(newUpper, newUpper.Trim('_').ToUpper()); + str = str.Replace(newUpper, newUpper.Trim('_').ToUpper()); + } + return str; + } + } +} \ No newline at end of file diff --git a/Core/Utils/XmlUtils.cs b/Core/Utils/XmlUtils.cs new file mode 100755 index 0000000..0050d57 --- /dev/null +++ b/Core/Utils/XmlUtils.cs @@ -0,0 +1,89 @@ +using System; +using System.IO; +using System.Net.Http; +using System.Text; +using System.Text.RegularExpressions; +using System.Xml; +using System.Xml.Serialization; + +namespace G42Cloud.SDK.Core +{ + public class XmlUtils + { + + class Utf8StringWriter : StringWriter + { + public override Encoding Encoding => Encoding.UTF8; + } + public static T DeSerialize(HttpResponseMessage message) + { + + var body = Encoding.UTF8.GetString(message.Content.ReadAsByteArrayAsync().Result); + var xmlObject = SetResponseBody(body); + + HttpUtils.SetAdditionalAttrs(message, xmlObject, body); + HttpUtils.SetResponseHeaders(message, xmlObject); + + return xmlObject; + } + + public static T DeSerialize(SdkResponse response) where T : SdkResponse + { + T xmlObject; + var xmlSerializer = new XmlSerializer(typeof(T)); + using (TextReader reader = new StringReader(RemoveXmlns(response.HttpBody))) + { + xmlObject = (T)xmlSerializer.Deserialize(reader); + } + + if (xmlObject == null) + { + xmlObject = Activator.CreateInstance(); + } + + xmlObject.HttpStatusCode = response.HttpStatusCode; + xmlObject.HttpHeaders = response.HttpHeaders; + xmlObject.HttpBody = response.HttpBody; + + return xmlObject; + } + + private static T SetResponseBody(string body) + { + T xmlObject; + var xmlSerializer = new XmlSerializer(typeof(T)); + using (TextReader reader = new StringReader(RemoveXmlns(body))) + { + xmlObject = (T)xmlSerializer.Deserialize(reader); + } + + if (xmlObject == null) + { + xmlObject = Activator.CreateInstance(); + } + + return xmlObject; + } + + private static string RemoveXmlns(string xml) + { + var match = Regex.Match(xml, " xmlns=\"http.*\">"); + if (match.Success) + { + return xml.Replace(match.Value.TrimEnd('>'), ""); + } + return xml; + } + + public static string Serialize(object obj) + { + using (StringWriter stringWriter = new Utf8StringWriter()) { + XmlSerializer xmlSerializer = new XmlSerializer(obj.GetType()); + XmlSerializerNamespaces xmlSerializerNamespaces = new XmlSerializerNamespaces(); + xmlSerializerNamespaces.Add("", ""); + xmlSerializer.Serialize(stringWriter, obj, xmlSerializerNamespaces); + return stringWriter.ToString(); + } + } + } +} diff --git a/Core/obj/Core.csproj.nuget.cache b/Core/obj/Core.csproj.nuget.cache new file mode 100644 index 0000000..9276d5d --- /dev/null +++ b/Core/obj/Core.csproj.nuget.cache @@ -0,0 +1,5 @@ +{ + "version": 1, + "dgSpecHash": "pX5TQpHddhXJDwCow0PW/FhLHNvDNa0EAYA9+VcOEXaKQwpOaWUW41C4peaADlYInr+jeXpUFLENOcQ//s+ABQ==", + "success": true +} \ No newline at end of file diff --git a/Services/Cce/obj/Cce.csproj.nuget.dgspec.json b/Core/obj/Core.csproj.nuget.dgspec.json similarity index 51% rename from Services/Cce/obj/Cce.csproj.nuget.dgspec.json rename to Core/obj/Core.csproj.nuget.dgspec.json index 4aa8751..9576782 100644 --- a/Services/Cce/obj/Cce.csproj.nuget.dgspec.json +++ b/Core/obj/Core.csproj.nuget.dgspec.json @@ -1,17 +1,17 @@ { "format": 1, "restore": { - "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Cce/Cce.csproj": {} + "/data/fuxi_ci_workspace/63b6740fcbf60d4ed9345ed5/Core/Core.csproj": {} }, "projects": { - "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Cce/Cce.csproj": { - "version": "0.0.2-beta", + "/data/fuxi_ci_workspace/63b6740fcbf60d4ed9345ed5/Core/Core.csproj": { + "version": "1.0.0", "restore": { - "projectUniqueName": "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Cce/Cce.csproj", - "projectName": "G42Cloud.SDK.Cce", - "projectPath": "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Cce/Cce.csproj", + "projectUniqueName": "/data/fuxi_ci_workspace/63b6740fcbf60d4ed9345ed5/Core/Core.csproj", + "projectName": "G42Cloud.SDK.Core", + "projectPath": "/data/fuxi_ci_workspace/63b6740fcbf60d4ed9345ed5/Core/Core.csproj", "packagesPath": "/root/.nuget/packages/", - "outputPath": "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Cce/obj/", + "outputPath": "/data/fuxi_ci_workspace/63b6740fcbf60d4ed9345ed5/Core/obj/", "projectStyle": "PackageReference", "fallbackFolders": [ "/usr/dotnet2/sdk/NuGetFallbackFolder" @@ -23,7 +23,7 @@ "netstandard2.0" ], "sources": { - "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86": {} + "/data/fuxi_ci_workspace/63b6740fcbf60d4ed9345ed5/package": {} }, "frameworks": { "netstandard2.0": { @@ -39,9 +39,25 @@ "frameworks": { "netstandard2.0": { "dependencies": { - "HuaweiCloud.SDK.Core": { + "Microsoft.Extensions.DependencyInjection": { "target": "Package", - "version": "[3.1.11, )" + "version": "[3.1.5, )" + }, + "Microsoft.Extensions.Http": { + "target": "Package", + "version": "[3.1.5, )" + }, + "Microsoft.Extensions.Http.Polly": { + "target": "Package", + "version": "[3.1.5, )" + }, + "Microsoft.Extensions.Logging.Console": { + "target": "Package", + "version": "[3.1.5, )" + }, + "Microsoft.Extensions.Logging.Debug": { + "target": "Package", + "version": "[3.1.5, )" }, "NETStandard.Library": { "suppressParent": "All", diff --git a/Services/Cce/obj/Cce.csproj.nuget.g.props b/Core/obj/Core.csproj.nuget.g.props similarity index 90% rename from Services/Cce/obj/Cce.csproj.nuget.g.props rename to Core/obj/Core.csproj.nuget.g.props index 449cdc4..d2dfac1 100644 --- a/Services/Cce/obj/Cce.csproj.nuget.g.props +++ b/Core/obj/Core.csproj.nuget.g.props @@ -3,7 +3,7 @@ True NuGet - /data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Cce/obj/project.assets.json + /data/fuxi_ci_workspace/63b6740fcbf60d4ed9345ed5/Core/obj/project.assets.json /root/.nuget/packages/ /root/.nuget/packages/;/usr/dotnet2/sdk/NuGetFallbackFolder PackageReference diff --git a/Services/Cbr/obj/Cbr.csproj.nuget.g.targets b/Core/obj/Core.csproj.nuget.g.targets similarity index 100% rename from Services/Cbr/obj/Cbr.csproj.nuget.g.targets rename to Core/obj/Core.csproj.nuget.g.targets diff --git a/Services/Cce/obj/project.assets.json b/Core/obj/project.assets.json similarity index 96% rename from Services/Cce/obj/project.assets.json rename to Core/obj/project.assets.json index d51df3a..2965fcd 100644 --- a/Services/Cce/obj/project.assets.json +++ b/Core/obj/project.assets.json @@ -2,23 +2,6 @@ "version": 3, "targets": { ".NETStandard,Version=v2.0": { - "HuaweiCloud.SDK.Core/3.1.11": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.DependencyInjection": "3.1.5", - "Microsoft.Extensions.Http": "3.1.5", - "Microsoft.Extensions.Http.Polly": "3.1.5", - "Microsoft.Extensions.Logging.Console": "3.1.5", - "Microsoft.Extensions.Logging.Debug": "3.1.5", - "Newtonsoft.Json": "13.0.1" - }, - "compile": { - "lib/netstandard2.0/HuaweiCloud.SDK.Core.dll": {} - }, - "runtime": { - "lib/netstandard2.0/HuaweiCloud.SDK.Core.dll": {} - } - }, "Microsoft.Bcl.AsyncInterfaces/1.1.1": { "type": "package", "dependencies": { @@ -341,18 +324,6 @@ } }, "libraries": { - "HuaweiCloud.SDK.Core/3.1.11": { - "sha512": "gfSrNtvvgvmEptRbn8LinWOcd2CmDgHVHKCOG7loIczGvrVSfCWJhnJYig/St+Jb8eKMeWgu/Ms52YJbdxUu0w==", - "type": "package", - "path": "huaweicloud.sdk.core/3.1.11", - "files": [ - ".nupkg.metadata", - "LICENSE", - "huaweicloud.sdk.core.3.1.11.nupkg.sha512", - "huaweicloud.sdk.core.nuspec", - "lib/netstandard2.0/HuaweiCloud.SDK.Core.dll" - ] - }, "Microsoft.Bcl.AsyncInterfaces/1.1.1": { "sha512": "yuvf07qFWFqtK3P/MRkEKLhn5r2UbSpVueRziSqj0yJQIKFwG1pq9mOayK3zE5qZCTs0CbrwL9M6R8VwqyGy2w==", "type": "package", @@ -1064,7 +1035,11 @@ }, "projectFileDependencyGroups": { ".NETStandard,Version=v2.0": [ - "HuaweiCloud.SDK.Core >= 3.1.11", + "Microsoft.Extensions.DependencyInjection >= 3.1.5", + "Microsoft.Extensions.Http >= 3.1.5", + "Microsoft.Extensions.Http.Polly >= 3.1.5", + "Microsoft.Extensions.Logging.Console >= 3.1.5", + "Microsoft.Extensions.Logging.Debug >= 3.1.5", "NETStandard.Library >= 2.0.3", "Newtonsoft.Json >= 13.0.1" ] @@ -1074,13 +1049,13 @@ "/usr/dotnet2/sdk/NuGetFallbackFolder": {} }, "project": { - "version": "0.0.2-beta", + "version": "1.0.0", "restore": { - "projectUniqueName": "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Cce/Cce.csproj", - "projectName": "G42Cloud.SDK.Cce", - "projectPath": "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Cce/Cce.csproj", + "projectUniqueName": "/data/fuxi_ci_workspace/63b6740fcbf60d4ed9345ed5/Core/Core.csproj", + "projectName": "G42Cloud.SDK.Core", + "projectPath": "/data/fuxi_ci_workspace/63b6740fcbf60d4ed9345ed5/Core/Core.csproj", "packagesPath": "/root/.nuget/packages/", - "outputPath": "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Cce/obj/", + "outputPath": "/data/fuxi_ci_workspace/63b6740fcbf60d4ed9345ed5/Core/obj/", "projectStyle": "PackageReference", "fallbackFolders": [ "/usr/dotnet2/sdk/NuGetFallbackFolder" @@ -1092,7 +1067,7 @@ "netstandard2.0" ], "sources": { - "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86": {} + "/data/fuxi_ci_workspace/63b6740fcbf60d4ed9345ed5/package": {} }, "frameworks": { "netstandard2.0": { @@ -1108,9 +1083,25 @@ "frameworks": { "netstandard2.0": { "dependencies": { - "HuaweiCloud.SDK.Core": { + "Microsoft.Extensions.DependencyInjection": { + "target": "Package", + "version": "[3.1.5, )" + }, + "Microsoft.Extensions.Http": { + "target": "Package", + "version": "[3.1.5, )" + }, + "Microsoft.Extensions.Http.Polly": { + "target": "Package", + "version": "[3.1.5, )" + }, + "Microsoft.Extensions.Logging.Console": { + "target": "Package", + "version": "[3.1.5, )" + }, + "Microsoft.Extensions.Logging.Debug": { "target": "Package", - "version": "[3.1.11, )" + "version": "[3.1.5, )" }, "NETStandard.Library": { "suppressParent": "All", diff --git a/G42Cloud.sln b/G42Cloud.sln index 0972971..9b192c6 100644 --- a/G42Cloud.sln +++ b/G42Cloud.sln @@ -3,24 +3,30 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 15 VisualStudioVersion = 15.0.26124.0 MinimumVisualStudioVersion = 15.0.26124.0 -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Services", "Services", "{158CBAD0-03DF-49BD-94F0-EDB6D674B3D9}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Core", "Core\Core.csproj", "{863F0212-886F-42E1-89D6-D05075529D8A}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ecs", "Services\Ecs\Ecs.csproj", "{c3aaea74-f41e-4c56-b64e-7a2496ff6551}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Vpc", "Services\Vpc\Vpc.csproj", "{96f50236-7030-47ab-af32-bb76484fadec}" +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Services", "Services", "{97A29E1A-7EE7-4A93-B5AF-C6EB19611EB0}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Cdn", "Services\Cdn\Cdn.csproj", "{456c6dc7-f610-410e-85a1-189ba73f1e43}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Smn", "Services\Smn\Smn.csproj", "{ced0cfa7-3d43-457f-9f81-f1695a6c65cd}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ims", "Services\Ims\Ims.csproj", "{5B7BFA6B-B85E-4222-8988-16CCF9558393}" +EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ces", "Services\Ces\Ces.csproj", "{ef66723c-296f-90fe-1bd4-6684bbb02913}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Cce", "Services\Cce\Cce.csproj", "{a4aaea74-f41e-4c56-b64e-7a2496ff4351}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ecs", "Services\Ecs\Ecs.csproj", "{c3aaea74-f41e-4c56-b64e-7a2496ff6551}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Vpc", "Services\Vpc\Vpc.csproj", "{96f50236-7030-47ab-af32-bb76484fadec}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Evs", "Services\Evs\Evs.csproj", "{B6D999F9-9335-433F-BCD2-1E07409AFA39}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Cbr", "Services\Cbr\Cbr.csproj", "{d5af20cc-1577-e1eb-419c-1d1c08a09995}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Cce", "Services\Cce\Cce.csproj", "{a4aaea74-f41e-4c56-b64e-7a2496ff4351}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Elb", "Services\Elb\Elb.csproj", "{e15b6d96-3026-44f3-6e15-a7bb7f8f1ebb}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Cbr", "Services\Cbr\Cbr.csproj", "{d5af20cc-1577-e1eb-419c-1d1c08a09995}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -34,30 +40,18 @@ Global HideSolutionNode = FALSE EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {c3aaea74-f41e-4c56-b64e-7a2496ff6551}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {c3aaea74-f41e-4c56-b64e-7a2496ff6551}.Debug|Any CPU.Build.0 = Debug|Any CPU - {c3aaea74-f41e-4c56-b64e-7a2496ff6551}.Debug|x64.ActiveCfg = Debug|Any CPU - {c3aaea74-f41e-4c56-b64e-7a2496ff6551}.Debug|x64.Build.0 = Debug|Any CPU - {c3aaea74-f41e-4c56-b64e-7a2496ff6551}.Debug|x86.ActiveCfg = Debug|Any CPU - {c3aaea74-f41e-4c56-b64e-7a2496ff6551}.Debug|x86.Build.0 = Debug|Any CPU - {c3aaea74-f41e-4c56-b64e-7a2496ff6551}.Release|Any CPU.ActiveCfg = Release|Any CPU - {c3aaea74-f41e-4c56-b64e-7a2496ff6551}.Release|Any CPU.Build.0 = Release|Any CPU - {c3aaea74-f41e-4c56-b64e-7a2496ff6551}.Release|x64.ActiveCfg = Release|Any CPU - {c3aaea74-f41e-4c56-b64e-7a2496ff6551}.Release|x64.Build.0 = Release|Any CPU - {c3aaea74-f41e-4c56-b64e-7a2496ff6551}.Release|x86.ActiveCfg = Release|Any CPU - {c3aaea74-f41e-4c56-b64e-7a2496ff6551}.Release|x86.Build.0 = Release|Any CPU - {96f50236-7030-47ab-af32-bb76484fadec}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {96f50236-7030-47ab-af32-bb76484fadec}.Debug|Any CPU.Build.0 = Debug|Any CPU - {96f50236-7030-47ab-af32-bb76484fadec}.Debug|x64.ActiveCfg = Debug|Any CPU - {96f50236-7030-47ab-af32-bb76484fadec}.Debug|x64.Build.0 = Debug|Any CPU - {96f50236-7030-47ab-af32-bb76484fadec}.Debug|x86.ActiveCfg = Debug|Any CPU - {96f50236-7030-47ab-af32-bb76484fadec}.Debug|x86.Build.0 = Debug|Any CPU - {96f50236-7030-47ab-af32-bb76484fadec}.Release|Any CPU.ActiveCfg = Release|Any CPU - {96f50236-7030-47ab-af32-bb76484fadec}.Release|Any CPU.Build.0 = Release|Any CPU - {96f50236-7030-47ab-af32-bb76484fadec}.Release|x64.ActiveCfg = Release|Any CPU - {96f50236-7030-47ab-af32-bb76484fadec}.Release|x64.Build.0 = Release|Any CPU - {96f50236-7030-47ab-af32-bb76484fadec}.Release|x86.ActiveCfg = Release|Any CPU - {96f50236-7030-47ab-af32-bb76484fadec}.Release|x86.Build.0 = Release|Any CPU + {863F0212-886F-42E1-89D6-D05075529D8A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {863F0212-886F-42E1-89D6-D05075529D8A}.Debug|Any CPU.Build.0 = Debug|Any CPU + {863F0212-886F-42E1-89D6-D05075529D8A}.Debug|x64.ActiveCfg = Debug|Any CPU + {863F0212-886F-42E1-89D6-D05075529D8A}.Debug|x64.Build.0 = Debug|Any CPU + {863F0212-886F-42E1-89D6-D05075529D8A}.Debug|x86.ActiveCfg = Debug|Any CPU + {863F0212-886F-42E1-89D6-D05075529D8A}.Debug|x86.Build.0 = Debug|Any CPU + {863F0212-886F-42E1-89D6-D05075529D8A}.Release|Any CPU.ActiveCfg = Release|Any CPU + {863F0212-886F-42E1-89D6-D05075529D8A}.Release|Any CPU.Build.0 = Release|Any CPU + {863F0212-886F-42E1-89D6-D05075529D8A}.Release|x64.ActiveCfg = Release|Any CPU + {863F0212-886F-42E1-89D6-D05075529D8A}.Release|x64.Build.0 = Release|Any CPU + {863F0212-886F-42E1-89D6-D05075529D8A}.Release|x86.ActiveCfg = Release|Any CPU + {863F0212-886F-42E1-89D6-D05075529D8A}.Release|x86.Build.0 = Release|Any CPU {456c6dc7-f610-410e-85a1-189ba73f1e43}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {456c6dc7-f610-410e-85a1-189ba73f1e43}.Debug|Any CPU.Build.0 = Debug|Any CPU {456c6dc7-f610-410e-85a1-189ba73f1e43}.Debug|x64.ActiveCfg = Debug|Any CPU @@ -70,6 +64,30 @@ Global {456c6dc7-f610-410e-85a1-189ba73f1e43}.Release|x64.Build.0 = Release|Any CPU {456c6dc7-f610-410e-85a1-189ba73f1e43}.Release|x86.ActiveCfg = Release|Any CPU {456c6dc7-f610-410e-85a1-189ba73f1e43}.Release|x86.Build.0 = Release|Any CPU + {ced0cfa7-3d43-457f-9f81-f1695a6c65cd}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {ced0cfa7-3d43-457f-9f81-f1695a6c65cd}.Debug|Any CPU.Build.0 = Debug|Any CPU + {ced0cfa7-3d43-457f-9f81-f1695a6c65cd}.Debug|x64.ActiveCfg = Debug|Any CPU + {ced0cfa7-3d43-457f-9f81-f1695a6c65cd}.Debug|x64.Build.0 = Debug|Any CPU + {ced0cfa7-3d43-457f-9f81-f1695a6c65cd}.Debug|x86.ActiveCfg = Debug|Any CPU + {ced0cfa7-3d43-457f-9f81-f1695a6c65cd}.Debug|x86.Build.0 = Debug|Any CPU + {ced0cfa7-3d43-457f-9f81-f1695a6c65cd}.Release|Any CPU.ActiveCfg = Release|Any CPU + {ced0cfa7-3d43-457f-9f81-f1695a6c65cd}.Release|Any CPU.Build.0 = Release|Any CPU + {ced0cfa7-3d43-457f-9f81-f1695a6c65cd}.Release|x64.ActiveCfg = Release|Any CPU + {ced0cfa7-3d43-457f-9f81-f1695a6c65cd}.Release|x64.Build.0 = Release|Any CPU + {ced0cfa7-3d43-457f-9f81-f1695a6c65cd}.Release|x86.ActiveCfg = Release|Any CPU + {ced0cfa7-3d43-457f-9f81-f1695a6c65cd}.Release|x86.Build.0 = Release|Any CPU + {5B7BFA6B-B85E-4222-8988-16CCF9558393}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {5B7BFA6B-B85E-4222-8988-16CCF9558393}.Debug|Any CPU.Build.0 = Debug|Any CPU + {5B7BFA6B-B85E-4222-8988-16CCF9558393}.Debug|x64.ActiveCfg = Debug|Any CPU + {5B7BFA6B-B85E-4222-8988-16CCF9558393}.Debug|x64.Build.0 = Debug|Any CPU + {5B7BFA6B-B85E-4222-8988-16CCF9558393}.Debug|x86.ActiveCfg = Debug|Any CPU + {5B7BFA6B-B85E-4222-8988-16CCF9558393}.Debug|x86.Build.0 = Debug|Any CPU + {5B7BFA6B-B85E-4222-8988-16CCF9558393}.Release|Any CPU.ActiveCfg = Release|Any CPU + {5B7BFA6B-B85E-4222-8988-16CCF9558393}.Release|Any CPU.Build.0 = Release|Any CPU + {5B7BFA6B-B85E-4222-8988-16CCF9558393}.Release|x64.ActiveCfg = Release|Any CPU + {5B7BFA6B-B85E-4222-8988-16CCF9558393}.Release|x64.Build.0 = Release|Any CPU + {5B7BFA6B-B85E-4222-8988-16CCF9558393}.Release|x86.ActiveCfg = Release|Any CPU + {5B7BFA6B-B85E-4222-8988-16CCF9558393}.Release|x86.Build.0 = Release|Any CPU {ef66723c-296f-90fe-1bd4-6684bbb02913}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {ef66723c-296f-90fe-1bd4-6684bbb02913}.Debug|Any CPU.Build.0 = Debug|Any CPU {ef66723c-296f-90fe-1bd4-6684bbb02913}.Debug|x64.ActiveCfg = Debug|Any CPU @@ -82,18 +100,30 @@ Global {ef66723c-296f-90fe-1bd4-6684bbb02913}.Release|x64.Build.0 = Release|Any CPU {ef66723c-296f-90fe-1bd4-6684bbb02913}.Release|x86.ActiveCfg = Release|Any CPU {ef66723c-296f-90fe-1bd4-6684bbb02913}.Release|x86.Build.0 = Release|Any CPU - {a4aaea74-f41e-4c56-b64e-7a2496ff4351}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {a4aaea74-f41e-4c56-b64e-7a2496ff4351}.Debug|Any CPU.Build.0 = Debug|Any CPU - {a4aaea74-f41e-4c56-b64e-7a2496ff4351}.Debug|x64.ActiveCfg = Debug|Any CPU - {a4aaea74-f41e-4c56-b64e-7a2496ff4351}.Debug|x64.Build.0 = Debug|Any CPU - {a4aaea74-f41e-4c56-b64e-7a2496ff4351}.Debug|x86.ActiveCfg = Debug|Any CPU - {a4aaea74-f41e-4c56-b64e-7a2496ff4351}.Debug|x86.Build.0 = Debug|Any CPU - {a4aaea74-f41e-4c56-b64e-7a2496ff4351}.Release|Any CPU.ActiveCfg = Release|Any CPU - {a4aaea74-f41e-4c56-b64e-7a2496ff4351}.Release|Any CPU.Build.0 = Release|Any CPU - {a4aaea74-f41e-4c56-b64e-7a2496ff4351}.Release|x64.ActiveCfg = Release|Any CPU - {a4aaea74-f41e-4c56-b64e-7a2496ff4351}.Release|x64.Build.0 = Release|Any CPU - {a4aaea74-f41e-4c56-b64e-7a2496ff4351}.Release|x86.ActiveCfg = Release|Any CPU - {a4aaea74-f41e-4c56-b64e-7a2496ff4351}.Release|x86.Build.0 = Release|Any CPU + {c3aaea74-f41e-4c56-b64e-7a2496ff6551}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {c3aaea74-f41e-4c56-b64e-7a2496ff6551}.Debug|Any CPU.Build.0 = Debug|Any CPU + {c3aaea74-f41e-4c56-b64e-7a2496ff6551}.Debug|x64.ActiveCfg = Debug|Any CPU + {c3aaea74-f41e-4c56-b64e-7a2496ff6551}.Debug|x64.Build.0 = Debug|Any CPU + {c3aaea74-f41e-4c56-b64e-7a2496ff6551}.Debug|x86.ActiveCfg = Debug|Any CPU + {c3aaea74-f41e-4c56-b64e-7a2496ff6551}.Debug|x86.Build.0 = Debug|Any CPU + {c3aaea74-f41e-4c56-b64e-7a2496ff6551}.Release|Any CPU.ActiveCfg = Release|Any CPU + {c3aaea74-f41e-4c56-b64e-7a2496ff6551}.Release|Any CPU.Build.0 = Release|Any CPU + {c3aaea74-f41e-4c56-b64e-7a2496ff6551}.Release|x64.ActiveCfg = Release|Any CPU + {c3aaea74-f41e-4c56-b64e-7a2496ff6551}.Release|x64.Build.0 = Release|Any CPU + {c3aaea74-f41e-4c56-b64e-7a2496ff6551}.Release|x86.ActiveCfg = Release|Any CPU + {c3aaea74-f41e-4c56-b64e-7a2496ff6551}.Release|x86.Build.0 = Release|Any CPU + {96f50236-7030-47ab-af32-bb76484fadec}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {96f50236-7030-47ab-af32-bb76484fadec}.Debug|Any CPU.Build.0 = Debug|Any CPU + {96f50236-7030-47ab-af32-bb76484fadec}.Debug|x64.ActiveCfg = Debug|Any CPU + {96f50236-7030-47ab-af32-bb76484fadec}.Debug|x64.Build.0 = Debug|Any CPU + {96f50236-7030-47ab-af32-bb76484fadec}.Debug|x86.ActiveCfg = Debug|Any CPU + {96f50236-7030-47ab-af32-bb76484fadec}.Debug|x86.Build.0 = Debug|Any CPU + {96f50236-7030-47ab-af32-bb76484fadec}.Release|Any CPU.ActiveCfg = Release|Any CPU + {96f50236-7030-47ab-af32-bb76484fadec}.Release|Any CPU.Build.0 = Release|Any CPU + {96f50236-7030-47ab-af32-bb76484fadec}.Release|x64.ActiveCfg = Release|Any CPU + {96f50236-7030-47ab-af32-bb76484fadec}.Release|x64.Build.0 = Release|Any CPU + {96f50236-7030-47ab-af32-bb76484fadec}.Release|x86.ActiveCfg = Release|Any CPU + {96f50236-7030-47ab-af32-bb76484fadec}.Release|x86.Build.0 = Release|Any CPU {B6D999F9-9335-433F-BCD2-1E07409AFA39}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {B6D999F9-9335-433F-BCD2-1E07409AFA39}.Debug|Any CPU.Build.0 = Debug|Any CPU {B6D999F9-9335-433F-BCD2-1E07409AFA39}.Debug|x64.ActiveCfg = Debug|Any CPU @@ -106,18 +136,18 @@ Global {B6D999F9-9335-433F-BCD2-1E07409AFA39}.Release|x64.Build.0 = Release|Any CPU {B6D999F9-9335-433F-BCD2-1E07409AFA39}.Release|x86.ActiveCfg = Release|Any CPU {B6D999F9-9335-433F-BCD2-1E07409AFA39}.Release|x86.Build.0 = Release|Any CPU - {d5af20cc-1577-e1eb-419c-1d1c08a09995}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {d5af20cc-1577-e1eb-419c-1d1c08a09995}.Debug|Any CPU.Build.0 = Debug|Any CPU - {d5af20cc-1577-e1eb-419c-1d1c08a09995}.Debug|x64.ActiveCfg = Debug|Any CPU - {d5af20cc-1577-e1eb-419c-1d1c08a09995}.Debug|x64.Build.0 = Debug|Any CPU - {d5af20cc-1577-e1eb-419c-1d1c08a09995}.Debug|x86.ActiveCfg = Debug|Any CPU - {d5af20cc-1577-e1eb-419c-1d1c08a09995}.Debug|x86.Build.0 = Debug|Any CPU - {d5af20cc-1577-e1eb-419c-1d1c08a09995}.Release|Any CPU.ActiveCfg = Release|Any CPU - {d5af20cc-1577-e1eb-419c-1d1c08a09995}.Release|Any CPU.Build.0 = Release|Any CPU - {d5af20cc-1577-e1eb-419c-1d1c08a09995}.Release|x64.ActiveCfg = Release|Any CPU - {d5af20cc-1577-e1eb-419c-1d1c08a09995}.Release|x64.Build.0 = Release|Any CPU - {d5af20cc-1577-e1eb-419c-1d1c08a09995}.Release|x86.ActiveCfg = Release|Any CPU - {d5af20cc-1577-e1eb-419c-1d1c08a09995}.Release|x86.Build.0 = Release|Any CPU + {a4aaea74-f41e-4c56-b64e-7a2496ff4351}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {a4aaea74-f41e-4c56-b64e-7a2496ff4351}.Debug|Any CPU.Build.0 = Debug|Any CPU + {a4aaea74-f41e-4c56-b64e-7a2496ff4351}.Debug|x64.ActiveCfg = Debug|Any CPU + {a4aaea74-f41e-4c56-b64e-7a2496ff4351}.Debug|x64.Build.0 = Debug|Any CPU + {a4aaea74-f41e-4c56-b64e-7a2496ff4351}.Debug|x86.ActiveCfg = Debug|Any CPU + {a4aaea74-f41e-4c56-b64e-7a2496ff4351}.Debug|x86.Build.0 = Debug|Any CPU + {a4aaea74-f41e-4c56-b64e-7a2496ff4351}.Release|Any CPU.ActiveCfg = Release|Any CPU + {a4aaea74-f41e-4c56-b64e-7a2496ff4351}.Release|Any CPU.Build.0 = Release|Any CPU + {a4aaea74-f41e-4c56-b64e-7a2496ff4351}.Release|x64.ActiveCfg = Release|Any CPU + {a4aaea74-f41e-4c56-b64e-7a2496ff4351}.Release|x64.Build.0 = Release|Any CPU + {a4aaea74-f41e-4c56-b64e-7a2496ff4351}.Release|x86.ActiveCfg = Release|Any CPU + {a4aaea74-f41e-4c56-b64e-7a2496ff4351}.Release|x86.Build.0 = Release|Any CPU {e15b6d96-3026-44f3-6e15-a7bb7f8f1ebb}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {e15b6d96-3026-44f3-6e15-a7bb7f8f1ebb}.Debug|Any CPU.Build.0 = Debug|Any CPU {e15b6d96-3026-44f3-6e15-a7bb7f8f1ebb}.Debug|x64.ActiveCfg = Debug|Any CPU @@ -130,15 +160,29 @@ Global {e15b6d96-3026-44f3-6e15-a7bb7f8f1ebb}.Release|x64.Build.0 = Release|Any CPU {e15b6d96-3026-44f3-6e15-a7bb7f8f1ebb}.Release|x86.ActiveCfg = Release|Any CPU {e15b6d96-3026-44f3-6e15-a7bb7f8f1ebb}.Release|x86.Build.0 = Release|Any CPU + {d5af20cc-1577-e1eb-419c-1d1c08a09995}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {d5af20cc-1577-e1eb-419c-1d1c08a09995}.Debug|Any CPU.Build.0 = Debug|Any CPU + {d5af20cc-1577-e1eb-419c-1d1c08a09995}.Debug|x64.ActiveCfg = Debug|Any CPU + {d5af20cc-1577-e1eb-419c-1d1c08a09995}.Debug|x64.Build.0 = Debug|Any CPU + {d5af20cc-1577-e1eb-419c-1d1c08a09995}.Debug|x86.ActiveCfg = Debug|Any CPU + {d5af20cc-1577-e1eb-419c-1d1c08a09995}.Debug|x86.Build.0 = Debug|Any CPU + {d5af20cc-1577-e1eb-419c-1d1c08a09995}.Release|Any CPU.ActiveCfg = Release|Any CPU + {d5af20cc-1577-e1eb-419c-1d1c08a09995}.Release|Any CPU.Build.0 = Release|Any CPU + {d5af20cc-1577-e1eb-419c-1d1c08a09995}.Release|x64.ActiveCfg = Release|Any CPU + {d5af20cc-1577-e1eb-419c-1d1c08a09995}.Release|x64.Build.0 = Release|Any CPU + {d5af20cc-1577-e1eb-419c-1d1c08a09995}.Release|x86.ActiveCfg = Release|Any CPU + {d5af20cc-1577-e1eb-419c-1d1c08a09995}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(NestedProjects) = preSolution - {c3aaea74-f41e-4c56-b64e-7a2496ff6551} = {158CBAD0-03DF-49BD-94F0-EDB6D674B3D9} - {96f50236-7030-47ab-af32-bb76484fadec} = {158CBAD0-03DF-49BD-94F0-EDB6D674B3D9} - {456c6dc7-f610-410e-85a1-189ba73f1e43} = {158CBAD0-03DF-49BD-94F0-EDB6D674B3D9} - {ef66723c-296f-90fe-1bd4-6684bbb02913} = {158CBAD0-03DF-49BD-94F0-EDB6D674B3D9} - {a4aaea74-f41e-4c56-b64e-7a2496ff4351} = {158CBAD0-03DF-49BD-94F0-EDB6D674B3D9} - {B6D999F9-9335-433F-BCD2-1E07409AFA39} = {158CBAD0-03DF-49BD-94F0-EDB6D674B3D9} - {d5af20cc-1577-e1eb-419c-1d1c08a09995} = {158CBAD0-03DF-49BD-94F0-EDB6D674B3D9} - {e15b6d96-3026-44f3-6e15-a7bb7f8f1ebb} = {158CBAD0-03DF-49BD-94F0-EDB6D674B3D9} + {456c6dc7-f610-410e-85a1-189ba73f1e43} = {97A29E1A-7EE7-4A93-B5AF-C6EB19611EB0} + {ced0cfa7-3d43-457f-9f81-f1695a6c65cd} = {97A29E1A-7EE7-4A93-B5AF-C6EB19611EB0} + {5B7BFA6B-B85E-4222-8988-16CCF9558393} = {97A29E1A-7EE7-4A93-B5AF-C6EB19611EB0} + {ef66723c-296f-90fe-1bd4-6684bbb02913} = {97A29E1A-7EE7-4A93-B5AF-C6EB19611EB0} + {c3aaea74-f41e-4c56-b64e-7a2496ff6551} = {97A29E1A-7EE7-4A93-B5AF-C6EB19611EB0} + {96f50236-7030-47ab-af32-bb76484fadec} = {97A29E1A-7EE7-4A93-B5AF-C6EB19611EB0} + {B6D999F9-9335-433F-BCD2-1E07409AFA39} = {97A29E1A-7EE7-4A93-B5AF-C6EB19611EB0} + {a4aaea74-f41e-4c56-b64e-7a2496ff4351} = {97A29E1A-7EE7-4A93-B5AF-C6EB19611EB0} + {e15b6d96-3026-44f3-6e15-a7bb7f8f1ebb} = {97A29E1A-7EE7-4A93-B5AF-C6EB19611EB0} + {d5af20cc-1577-e1eb-419c-1d1c08a09995} = {97A29E1A-7EE7-4A93-B5AF-C6EB19611EB0} EndGlobalSection EndGlobal diff --git a/README.md b/README.md index ed2d7d3..b6a2b3c 100755 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@

- +

G42 Cloud .Net Software Development Kit (.Net SDK)

@@ -25,20 +25,20 @@ This document introduces how to obtain and use G42 Cloud .Net SDK. Run the following commands to install .Net SDK: -You must install `HuaweiCloud.SDK.Core` library no matter which product development kit you need to use. Take using VPC -SDK for example, you need to install `HuaweiCloud.SDK.Core` library and `G42Cloud.SDK.Vpc` library: +You must install `G42Cloud.SDK.Core` library no matter which product development kit you need to use. Take using VPC +SDK for example, you need to install `G42Cloud.SDK.Core` library and `G42Cloud.SDK.Vpc` library: - Use .NET CLI ``` bash -dotnet add package HuaweiCloud.SDK.Core +dotnet add package G42Cloud.SDK.Core dotnet add package G42Cloud.SDK.Vpc ``` - Use Package Manager ``` bash -Install-Package HuaweiCloud.SDK.Core +Install-Package G42Cloud.SDK.Core Install-Package G42Cloud.SDK.Vpc ``` @@ -50,8 +50,8 @@ Install-Package G42Cloud.SDK.Vpc ```csharp using System; -using HuaweiCloud.SDK.Core; -using HuaweiCloud.SDK.Core.Auth; +using G42Cloud.SDK.Core; +using G42Cloud.SDK.Core.Auth; // Import the specified {Service}, take Vpc as an example using G42Cloud.SDK.Vpc.V2; using G42Cloud.SDK.Vpc.V2.Model; @@ -126,7 +126,6 @@ the [CHANGELOG.md](https://github.com/g42cloud-sdk/g42cloud-sdk-net/blob/master/ * [2.2 Use Temporary AK&SK](#22-use-temporary-aksk-top) * [3. Client Initialization](#3-client-initialization-top) * [3.1 Initialize the client with specified Endpoint](#31-initialize-the-serviceclient-with-specified-endpoint-top) - * [3.2 Initialize the client with specified Region (Recommended)](#32-initialize-the-serviceclient-with-specified-region-recommended-top) * [4. Send Requests and Handle Responses](#4-send-requests-and-handle-responses-top) * [4.1 Exceptions](#41-exceptions-top) * [5. Use Asynchronous Client](#5-use-asynchronous-client-top) @@ -211,14 +210,6 @@ Credentials basicCredentials = new BasicCredentials(ak, sk, projectId); Credentials globalCredentials = new GlobalCredentials(ak, sk, domainId); ``` -**Notice**: - -- projectId/domainId supports **automatic acquisition** in version `3.0.26-beta` or later, if you want to use this - feature, you need to provide the ak and sk of your account and the id of the region, and then build your client - instance with method `WithRegion()`, detailed example could refer - to [3.2 Initialize the client with specified Region](#32-initialize-the-serviceclient-with-specified-region-recommended-top) - . - #### 2.2 Use Temporary AK&SK [:top:](#user-manual-top) It's required to obtain temporary AK&SK and security token first, which could be obtained through @@ -257,44 +248,6 @@ VpcClient vpcClient = VpcClient.NewBuilder() .Build(); ``` -**where:** - -- `endpoint` is the service specific endpoints, - see [Regions and Endpoints](https://docs.g42cloud.com/endpoint/index.html). - -- When you meet some trouble in getting projectId using the specified region way, you could use this way instead. - -#### 3.2 Initialize the {Service}Client with specified Region **(Recommended)** [:top:](#user-manual-top) - -``` csharp -// Initialize the credentials, projectId or domainId could be unassigned in this situation, take initializing GlobalCredentials for example -Credentials globalCredentials = new GlobalCredentials(ak, sk); - -// Initialize specified {Service}Client instance, take initializing the global service IAM's IamClient for example -IamClient iamClient = IamClient.NewBuilder() - .WithCredential(globalCredentials) - .WithRegion(IamRegion.CN_NORTH_4) - .WithHttpConfig(config) - .Build(); -``` - -**Notice:** - -- If you use {Service}Region to initialize {Service}Client, projectId/domainId supports automatic acquisition, you don't - need to configure it when initializing Credentials. - -- Multiple ProjectId situation is **not supported**. - -- Supported region list: af-south-1, ap-southeast-1, ap-southeast-2, ap-southeast-3, cn-east-2, cn-east-3, - cn-north-1, cn-north-4, cn-south-1, cn-southwest-2, ru-northwest-2. You may get exception such as `Unsupported regionId` if your region don't in the list above. - -**Comparison of the two ways:** - -| Initialization | Advantages | Disadvantage | -| :---- | :---- | :---- | -| Specified Endpoint | The API can be invoked successfully once it has been published in the environment. | You need to prepare projectId and endpoint yourself. -| Specified Region | No need for projectId and endpoint, it supports automatic acquisition if you configure it in the right way. | The supported services and regions are limited. - ### 4. Send Requests and Handle Responses [:top:](#user-manual-top) ```csharp diff --git a/Services/Cbr/Cbr.csproj b/Services/Cbr/Cbr.csproj index c54c3e6..3403717 100755 --- a/Services/Cbr/Cbr.csproj +++ b/Services/Cbr/Cbr.csproj @@ -15,7 +15,7 @@ false false G42Cloud.SDK.Cbr - 0.0.2-beta + 0.0.3-beta G42Cloud Copyright 2020 G42 Technologies Co., Ltd. G42 Technologies Co., Ltd. @@ -24,7 +24,7 @@
- + diff --git a/Services/Cbr/V1/CbrAsyncClient.cs b/Services/Cbr/V1/CbrAsyncClient.cs index 1f4780d..4672042 100755 --- a/Services/Cbr/V1/CbrAsyncClient.cs +++ b/Services/Cbr/V1/CbrAsyncClient.cs @@ -1,7 +1,7 @@ using System.Net.Http; using System.Collections.Generic; using System.Threading.Tasks; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; using G42Cloud.SDK.Cbr.V1.Model; namespace G42Cloud.SDK.Cbr.V1 diff --git a/Services/Cbr/V1/CbrClient.cs b/Services/Cbr/V1/CbrClient.cs index 7c2def3..33d25b9 100755 --- a/Services/Cbr/V1/CbrClient.cs +++ b/Services/Cbr/V1/CbrClient.cs @@ -1,6 +1,6 @@ using System.Net.Http; using System.Collections.Generic; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; using G42Cloud.SDK.Cbr.V1.Model; namespace G42Cloud.SDK.Cbr.V1 diff --git a/Services/Cbr/V1/Model/AddMemberRequest.cs b/Services/Cbr/V1/Model/AddMemberRequest.cs index 02bc606..436fc11 100755 --- a/Services/Cbr/V1/Model/AddMemberRequest.cs +++ b/Services/Cbr/V1/Model/AddMemberRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/AddMemberResponse.cs b/Services/Cbr/V1/Model/AddMemberResponse.cs index 34d8548..7b6fbb1 100755 --- a/Services/Cbr/V1/Model/AddMemberResponse.cs +++ b/Services/Cbr/V1/Model/AddMemberResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/AddMembersReq.cs b/Services/Cbr/V1/Model/AddMembersReq.cs index 79e7845..2062e64 100755 --- a/Services/Cbr/V1/Model/AddMembersReq.cs +++ b/Services/Cbr/V1/Model/AddMembersReq.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/AddVaultResourceRequest.cs b/Services/Cbr/V1/Model/AddVaultResourceRequest.cs index dd798f0..b54688c 100755 --- a/Services/Cbr/V1/Model/AddVaultResourceRequest.cs +++ b/Services/Cbr/V1/Model/AddVaultResourceRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/AddVaultResourceResponse.cs b/Services/Cbr/V1/Model/AddVaultResourceResponse.cs index 537bffc..dcc9132 100755 --- a/Services/Cbr/V1/Model/AddVaultResourceResponse.cs +++ b/Services/Cbr/V1/Model/AddVaultResourceResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/AssociateVaultPolicyRequest.cs b/Services/Cbr/V1/Model/AssociateVaultPolicyRequest.cs index 739ac0b..23bb541 100755 --- a/Services/Cbr/V1/Model/AssociateVaultPolicyRequest.cs +++ b/Services/Cbr/V1/Model/AssociateVaultPolicyRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/AssociateVaultPolicyResponse.cs b/Services/Cbr/V1/Model/AssociateVaultPolicyResponse.cs index 8d3a5c7..832a553 100755 --- a/Services/Cbr/V1/Model/AssociateVaultPolicyResponse.cs +++ b/Services/Cbr/V1/Model/AssociateVaultPolicyResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/BackupExtendInfo.cs b/Services/Cbr/V1/Model/BackupExtendInfo.cs index 9c93321..dfe596d 100755 --- a/Services/Cbr/V1/Model/BackupExtendInfo.cs +++ b/Services/Cbr/V1/Model/BackupExtendInfo.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { @@ -40,11 +41,16 @@ public class SupportedRestoreModeEnum { " snapshot", _SNAPSHOT }, }; - private string Value; + private string _value; + + public SupportedRestoreModeEnum() + { + + } public SupportedRestoreModeEnum(string value) { - Value = value; + _value = value; } public static SupportedRestoreModeEnum FromValue(string value) @@ -63,17 +69,17 @@ public static SupportedRestoreModeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -102,7 +108,7 @@ public bool Equals(SupportedRestoreModeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(SupportedRestoreModeEnum a, SupportedRestoreModeEnum b) diff --git a/Services/Cbr/V1/Model/BackupReplicateReq.cs b/Services/Cbr/V1/Model/BackupReplicateReq.cs index af608e6..4dad485 100755 --- a/Services/Cbr/V1/Model/BackupReplicateReq.cs +++ b/Services/Cbr/V1/Model/BackupReplicateReq.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/BackupReplicateReqBody.cs b/Services/Cbr/V1/Model/BackupReplicateReqBody.cs index 6c1cbd9..abe3762 100755 --- a/Services/Cbr/V1/Model/BackupReplicateReqBody.cs +++ b/Services/Cbr/V1/Model/BackupReplicateReqBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/BackupReplicateRespBody.cs b/Services/Cbr/V1/Model/BackupReplicateRespBody.cs index 3901bfe..9e8b67f 100755 --- a/Services/Cbr/V1/Model/BackupReplicateRespBody.cs +++ b/Services/Cbr/V1/Model/BackupReplicateRespBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/BackupResp.cs b/Services/Cbr/V1/Model/BackupResp.cs index 81a1d06..f42cf20 100755 --- a/Services/Cbr/V1/Model/BackupResp.cs +++ b/Services/Cbr/V1/Model/BackupResp.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { @@ -34,11 +35,16 @@ public class ImageTypeEnum { "replication", REPLICATION }, }; - private string Value; + private string _value; + + public ImageTypeEnum() + { + + } public ImageTypeEnum(string value) { - Value = value; + _value = value; } public static ImageTypeEnum FromValue(string value) @@ -57,17 +63,17 @@ public static ImageTypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -96,7 +102,7 @@ public bool Equals(ImageTypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(ImageTypeEnum a, ImageTypeEnum b) @@ -140,11 +146,16 @@ public class ResourceTypeEnum { "OS::Cinder::Volume", OS_CINDER_VOLUME }, }; - private string Value; + private string _value; + + public ResourceTypeEnum() + { + + } public ResourceTypeEnum(string value) { - Value = value; + _value = value; } public static ResourceTypeEnum FromValue(string value) @@ -163,17 +174,17 @@ public static ResourceTypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -202,7 +213,7 @@ public bool Equals(ResourceTypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(ResourceTypeEnum a, ResourceTypeEnum b) @@ -282,11 +293,16 @@ public class StatusEnum { "waiting_restore", WAITING_RESTORE }, }; - private string Value; + private string _value; + + public StatusEnum() + { + + } public StatusEnum(string value) { - Value = value; + _value = value; } public static StatusEnum FromValue(string value) @@ -305,17 +321,17 @@ public static StatusEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -344,7 +360,7 @@ public bool Equals(StatusEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(StatusEnum a, StatusEnum b) diff --git a/Services/Cbr/V1/Model/BackupRestore.cs b/Services/Cbr/V1/Model/BackupRestore.cs index 9586a85..8300693 100755 --- a/Services/Cbr/V1/Model/BackupRestore.cs +++ b/Services/Cbr/V1/Model/BackupRestore.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/BackupRestoreReq.cs b/Services/Cbr/V1/Model/BackupRestoreReq.cs index 56ad77f..6fc9e75 100755 --- a/Services/Cbr/V1/Model/BackupRestoreReq.cs +++ b/Services/Cbr/V1/Model/BackupRestoreReq.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/BackupRestoreServerMapping.cs b/Services/Cbr/V1/Model/BackupRestoreServerMapping.cs index 09e56be..5daa1f3 100755 --- a/Services/Cbr/V1/Model/BackupRestoreServerMapping.cs +++ b/Services/Cbr/V1/Model/BackupRestoreServerMapping.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/BackupSync.cs b/Services/Cbr/V1/Model/BackupSync.cs index 72c716a..d97882b 100755 --- a/Services/Cbr/V1/Model/BackupSync.cs +++ b/Services/Cbr/V1/Model/BackupSync.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/BackupSyncReq.cs b/Services/Cbr/V1/Model/BackupSyncReq.cs index 45e6e8c..abc25ca 100755 --- a/Services/Cbr/V1/Model/BackupSyncReq.cs +++ b/Services/Cbr/V1/Model/BackupSyncReq.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/BackupSyncRespBody.cs b/Services/Cbr/V1/Model/BackupSyncRespBody.cs index 1009d0a..359041f 100755 --- a/Services/Cbr/V1/Model/BackupSyncRespBody.cs +++ b/Services/Cbr/V1/Model/BackupSyncRespBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/BatchCreateAndDeleteVaultTagsRequest.cs b/Services/Cbr/V1/Model/BatchCreateAndDeleteVaultTagsRequest.cs index 0ff422d..d89dd81 100755 --- a/Services/Cbr/V1/Model/BatchCreateAndDeleteVaultTagsRequest.cs +++ b/Services/Cbr/V1/Model/BatchCreateAndDeleteVaultTagsRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/BatchCreateAndDeleteVaultTagsResponse.cs b/Services/Cbr/V1/Model/BatchCreateAndDeleteVaultTagsResponse.cs index 3d3f95c..5517809 100755 --- a/Services/Cbr/V1/Model/BatchCreateAndDeleteVaultTagsResponse.cs +++ b/Services/Cbr/V1/Model/BatchCreateAndDeleteVaultTagsResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/BillbingCreateExtraInfo.cs b/Services/Cbr/V1/Model/BillbingCreateExtraInfo.cs index 13307a3..0403938 100755 --- a/Services/Cbr/V1/Model/BillbingCreateExtraInfo.cs +++ b/Services/Cbr/V1/Model/BillbingCreateExtraInfo.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/Billing.cs b/Services/Cbr/V1/Model/Billing.cs index b4512c9..f745ee5 100755 --- a/Services/Cbr/V1/Model/Billing.cs +++ b/Services/Cbr/V1/Model/Billing.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { @@ -34,11 +35,16 @@ public class ChargingModeEnum { "post_paid", POST_PAID }, }; - private string Value; + private string _value; + + public ChargingModeEnum() + { + + } public ChargingModeEnum(string value) { - Value = value; + _value = value; } public static ChargingModeEnum FromValue(string value) @@ -57,17 +63,17 @@ public static ChargingModeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -96,7 +102,7 @@ public bool Equals(ChargingModeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(ChargingModeEnum a, ChargingModeEnum b) @@ -140,11 +146,16 @@ public class CloudTypeEnum { "hybrid", HYBRID }, }; - private string Value; + private string _value; + + public CloudTypeEnum() + { + + } public CloudTypeEnum(string value) { - Value = value; + _value = value; } public static CloudTypeEnum FromValue(string value) @@ -163,17 +174,17 @@ public static CloudTypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -202,7 +213,7 @@ public bool Equals(CloudTypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(CloudTypeEnum a, CloudTypeEnum b) @@ -246,11 +257,16 @@ public class ConsistentLevelEnum { "crash_consistent", CRASH_CONSISTENT }, }; - private string Value; + private string _value; + + public ConsistentLevelEnum() + { + + } public ConsistentLevelEnum(string value) { - Value = value; + _value = value; } public static ConsistentLevelEnum FromValue(string value) @@ -269,17 +285,17 @@ public static ConsistentLevelEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -308,7 +324,7 @@ public bool Equals(ConsistentLevelEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(ConsistentLevelEnum a, ConsistentLevelEnum b) @@ -352,11 +368,16 @@ public class ObjectTypeEnum { "disk", DISK }, }; - private string Value; + private string _value; + + public ObjectTypeEnum() + { + + } public ObjectTypeEnum(string value) { - Value = value; + _value = value; } public static ObjectTypeEnum FromValue(string value) @@ -375,17 +396,17 @@ public static ObjectTypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -414,7 +435,7 @@ public bool Equals(ObjectTypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(ObjectTypeEnum a, ObjectTypeEnum b) @@ -464,11 +485,16 @@ public class ProtectTypeEnum { "hybrid", HYBRID }, }; - private string Value; + private string _value; + + public ProtectTypeEnum() + { + + } public ProtectTypeEnum(string value) { - Value = value; + _value = value; } public static ProtectTypeEnum FromValue(string value) @@ -487,17 +513,17 @@ public static ProtectTypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -526,7 +552,7 @@ public bool Equals(ProtectTypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(ProtectTypeEnum a, ProtectTypeEnum b) @@ -570,11 +596,16 @@ public class SpecCodeEnum { "vault.backup.volume.normal", VAULT_BACKUP_VOLUME_NORMAL }, }; - private string Value; + private string _value; + + public SpecCodeEnum() + { + + } public SpecCodeEnum(string value) { - Value = value; + _value = value; } public static SpecCodeEnum FromValue(string value) @@ -593,17 +624,17 @@ public static SpecCodeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -632,7 +663,7 @@ public bool Equals(SpecCodeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(SpecCodeEnum a, SpecCodeEnum b) @@ -694,11 +725,16 @@ public class StatusEnum { "error", ERROR }, }; - private string Value; + private string _value; + + public StatusEnum() + { + + } public StatusEnum(string value) { - Value = value; + _value = value; } public static StatusEnum FromValue(string value) @@ -717,17 +753,17 @@ public static StatusEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -756,7 +792,7 @@ public bool Equals(StatusEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(StatusEnum a, StatusEnum b) diff --git a/Services/Cbr/V1/Model/BillingCreate.cs b/Services/Cbr/V1/Model/BillingCreate.cs index 86c31d4..da7b3c5 100755 --- a/Services/Cbr/V1/Model/BillingCreate.cs +++ b/Services/Cbr/V1/Model/BillingCreate.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { @@ -34,11 +35,16 @@ public class CloudTypeEnum { "hybrid", HYBRID }, }; - private string Value; + private string _value; + + public CloudTypeEnum() + { + + } public CloudTypeEnum(string value) { - Value = value; + _value = value; } public static CloudTypeEnum FromValue(string value) @@ -57,17 +63,17 @@ public static CloudTypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -96,7 +102,7 @@ public bool Equals(CloudTypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(CloudTypeEnum a, CloudTypeEnum b) @@ -140,11 +146,16 @@ public class ConsistentLevelEnum { "crash_consistent", CRASH_CONSISTENT }, }; - private string Value; + private string _value; + + public ConsistentLevelEnum() + { + + } public ConsistentLevelEnum(string value) { - Value = value; + _value = value; } public static ConsistentLevelEnum FromValue(string value) @@ -163,17 +174,17 @@ public static ConsistentLevelEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -202,7 +213,7 @@ public bool Equals(ConsistentLevelEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(ConsistentLevelEnum a, ConsistentLevelEnum b) @@ -252,11 +263,16 @@ public class ObjectTypeEnum { "turbo", TURBO }, }; - private string Value; + private string _value; + + public ObjectTypeEnum() + { + + } public ObjectTypeEnum(string value) { - Value = value; + _value = value; } public static ObjectTypeEnum FromValue(string value) @@ -275,17 +291,17 @@ public static ObjectTypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -314,7 +330,7 @@ public bool Equals(ObjectTypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(ObjectTypeEnum a, ObjectTypeEnum b) @@ -358,11 +374,16 @@ public class ProtectTypeEnum { "replication", REPLICATION }, }; - private string Value; + private string _value; + + public ProtectTypeEnum() + { + + } public ProtectTypeEnum(string value) { - Value = value; + _value = value; } public static ProtectTypeEnum FromValue(string value) @@ -381,17 +402,17 @@ public static ProtectTypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -420,7 +441,7 @@ public bool Equals(ProtectTypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(ProtectTypeEnum a, ProtectTypeEnum b) @@ -464,11 +485,16 @@ public class ChargingModeEnum { "pre_paid", PRE_PAID }, }; - private string Value; + private string _value; + + public ChargingModeEnum() + { + + } public ChargingModeEnum(string value) { - Value = value; + _value = value; } public static ChargingModeEnum FromValue(string value) @@ -487,17 +513,17 @@ public static ChargingModeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -526,7 +552,7 @@ public bool Equals(ChargingModeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(ChargingModeEnum a, ChargingModeEnum b) @@ -570,11 +596,16 @@ public class PeriodTypeEnum { "month", MONTH }, }; - private string Value; + private string _value; + + public PeriodTypeEnum() + { + + } public PeriodTypeEnum(string value) { - Value = value; + _value = value; } public static PeriodTypeEnum FromValue(string value) @@ -593,17 +624,17 @@ public static PeriodTypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -632,7 +663,7 @@ public bool Equals(PeriodTypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(PeriodTypeEnum a, PeriodTypeEnum b) diff --git a/Services/Cbr/V1/Model/BillingUpdate.cs b/Services/Cbr/V1/Model/BillingUpdate.cs index 2664c51..8363028 100755 --- a/Services/Cbr/V1/Model/BillingUpdate.cs +++ b/Services/Cbr/V1/Model/BillingUpdate.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { @@ -34,11 +35,16 @@ public class ConsistentLevelEnum { "crash_consistent", CRASH_CONSISTENT }, }; - private string Value; + private string _value; + + public ConsistentLevelEnum() + { + + } public ConsistentLevelEnum(string value) { - Value = value; + _value = value; } public static ConsistentLevelEnum FromValue(string value) @@ -57,17 +63,17 @@ public static ConsistentLevelEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -96,7 +102,7 @@ public bool Equals(ConsistentLevelEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(ConsistentLevelEnum a, ConsistentLevelEnum b) diff --git a/Services/Cbr/V1/Model/BulkCreateAndDeleteVaultTagsReq.cs b/Services/Cbr/V1/Model/BulkCreateAndDeleteVaultTagsReq.cs index 6ae5c6d..0a5c36e 100755 --- a/Services/Cbr/V1/Model/BulkCreateAndDeleteVaultTagsReq.cs +++ b/Services/Cbr/V1/Model/BulkCreateAndDeleteVaultTagsReq.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { @@ -34,11 +35,16 @@ public class ActionEnum { " delete", _DELETE }, }; - private string Value; + private string _value; + + public ActionEnum() + { + + } public ActionEnum(string value) { - Value = value; + _value = value; } public static ActionEnum FromValue(string value) @@ -57,17 +63,17 @@ public static ActionEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -96,7 +102,7 @@ public bool Equals(ActionEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(ActionEnum a, ActionEnum b) diff --git a/Services/Cbr/V1/Model/CbcOrderResult.cs b/Services/Cbr/V1/Model/CbcOrderResult.cs index c91eb25..ef4e642 100755 --- a/Services/Cbr/V1/Model/CbcOrderResult.cs +++ b/Services/Cbr/V1/Model/CbcOrderResult.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/CheckpointCreate.cs b/Services/Cbr/V1/Model/CheckpointCreate.cs index 931d782..8e599a8 100755 --- a/Services/Cbr/V1/Model/CheckpointCreate.cs +++ b/Services/Cbr/V1/Model/CheckpointCreate.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { @@ -58,11 +59,16 @@ public class StatusEnum { "error", ERROR }, }; - private string Value; + private string _value; + + public StatusEnum() + { + + } public StatusEnum(string value) { - Value = value; + _value = value; } public static StatusEnum FromValue(string value) @@ -81,17 +87,17 @@ public static StatusEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -120,7 +126,7 @@ public bool Equals(StatusEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(StatusEnum a, StatusEnum b) diff --git a/Services/Cbr/V1/Model/CheckpointCreateSkippedResource.cs b/Services/Cbr/V1/Model/CheckpointCreateSkippedResource.cs index f0570fd..3c6e2e7 100755 --- a/Services/Cbr/V1/Model/CheckpointCreateSkippedResource.cs +++ b/Services/Cbr/V1/Model/CheckpointCreateSkippedResource.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/CheckpointExtraInfoResp.cs b/Services/Cbr/V1/Model/CheckpointExtraInfoResp.cs index e7cb92d..490fd27 100755 --- a/Services/Cbr/V1/Model/CheckpointExtraInfoResp.cs +++ b/Services/Cbr/V1/Model/CheckpointExtraInfoResp.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/CheckpointParam.cs b/Services/Cbr/V1/Model/CheckpointParam.cs index 99ed2d9..0b73c51 100755 --- a/Services/Cbr/V1/Model/CheckpointParam.cs +++ b/Services/Cbr/V1/Model/CheckpointParam.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/CheckpointPlanCreate.cs b/Services/Cbr/V1/Model/CheckpointPlanCreate.cs index bd12213..56e9f20 100755 --- a/Services/Cbr/V1/Model/CheckpointPlanCreate.cs +++ b/Services/Cbr/V1/Model/CheckpointPlanCreate.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/CheckpointReplicateParam.cs b/Services/Cbr/V1/Model/CheckpointReplicateParam.cs index ee815bb..1579bb4 100755 --- a/Services/Cbr/V1/Model/CheckpointReplicateParam.cs +++ b/Services/Cbr/V1/Model/CheckpointReplicateParam.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/CheckpointReplicateReq.cs b/Services/Cbr/V1/Model/CheckpointReplicateReq.cs index cb88d32..a40683f 100755 --- a/Services/Cbr/V1/Model/CheckpointReplicateReq.cs +++ b/Services/Cbr/V1/Model/CheckpointReplicateReq.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/CheckpointReplicateRespBody.cs b/Services/Cbr/V1/Model/CheckpointReplicateRespBody.cs index d59246f..235794c 100755 --- a/Services/Cbr/V1/Model/CheckpointReplicateRespBody.cs +++ b/Services/Cbr/V1/Model/CheckpointReplicateRespBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/CheckpointReplicateRespbackups.cs b/Services/Cbr/V1/Model/CheckpointReplicateRespbackups.cs index 6a6eba6..a3a0f7f 100755 --- a/Services/Cbr/V1/Model/CheckpointReplicateRespbackups.cs +++ b/Services/Cbr/V1/Model/CheckpointReplicateRespbackups.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/CheckpointResourceResp.cs b/Services/Cbr/V1/Model/CheckpointResourceResp.cs index 8735c8e..4d08d9e 100755 --- a/Services/Cbr/V1/Model/CheckpointResourceResp.cs +++ b/Services/Cbr/V1/Model/CheckpointResourceResp.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { @@ -52,11 +53,16 @@ public class ProtectStatusEnum { "removing", REMOVING }, }; - private string Value; + private string _value; + + public ProtectStatusEnum() + { + + } public ProtectStatusEnum(string value) { - Value = value; + _value = value; } public static ProtectStatusEnum FromValue(string value) @@ -75,17 +81,17 @@ public static ProtectStatusEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -114,7 +120,7 @@ public bool Equals(ProtectStatusEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(ProtectStatusEnum a, ProtectStatusEnum b) diff --git a/Services/Cbr/V1/Model/CopyBackupRequest.cs b/Services/Cbr/V1/Model/CopyBackupRequest.cs index f4829af..c1bb699 100755 --- a/Services/Cbr/V1/Model/CopyBackupRequest.cs +++ b/Services/Cbr/V1/Model/CopyBackupRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/CopyBackupResponse.cs b/Services/Cbr/V1/Model/CopyBackupResponse.cs index e86cd9d..d230201 100755 --- a/Services/Cbr/V1/Model/CopyBackupResponse.cs +++ b/Services/Cbr/V1/Model/CopyBackupResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/CopyCheckpointRequest.cs b/Services/Cbr/V1/Model/CopyCheckpointRequest.cs index 7648d83..13c5246 100755 --- a/Services/Cbr/V1/Model/CopyCheckpointRequest.cs +++ b/Services/Cbr/V1/Model/CopyCheckpointRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/CopyCheckpointResponse.cs b/Services/Cbr/V1/Model/CopyCheckpointResponse.cs index ac49f70..47deba2 100755 --- a/Services/Cbr/V1/Model/CopyCheckpointResponse.cs +++ b/Services/Cbr/V1/Model/CopyCheckpointResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/CreateCheckpointRequest.cs b/Services/Cbr/V1/Model/CreateCheckpointRequest.cs index cdab9bf..0ee3fee 100755 --- a/Services/Cbr/V1/Model/CreateCheckpointRequest.cs +++ b/Services/Cbr/V1/Model/CreateCheckpointRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/CreateCheckpointResponse.cs b/Services/Cbr/V1/Model/CreateCheckpointResponse.cs index cfbfde0..f766b21 100755 --- a/Services/Cbr/V1/Model/CreateCheckpointResponse.cs +++ b/Services/Cbr/V1/Model/CreateCheckpointResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/CreatePolicyRequest.cs b/Services/Cbr/V1/Model/CreatePolicyRequest.cs index 87ae80e..147282c 100755 --- a/Services/Cbr/V1/Model/CreatePolicyRequest.cs +++ b/Services/Cbr/V1/Model/CreatePolicyRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/CreatePolicyResponse.cs b/Services/Cbr/V1/Model/CreatePolicyResponse.cs index ea6dd2b..7e8b411 100755 --- a/Services/Cbr/V1/Model/CreatePolicyResponse.cs +++ b/Services/Cbr/V1/Model/CreatePolicyResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/CreateVaultRequest.cs b/Services/Cbr/V1/Model/CreateVaultRequest.cs index 9312f0c..1914366 100755 --- a/Services/Cbr/V1/Model/CreateVaultRequest.cs +++ b/Services/Cbr/V1/Model/CreateVaultRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/CreateVaultResponse.cs b/Services/Cbr/V1/Model/CreateVaultResponse.cs index b94b45c..926b62c 100755 --- a/Services/Cbr/V1/Model/CreateVaultResponse.cs +++ b/Services/Cbr/V1/Model/CreateVaultResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/CreateVaultTagsRequest.cs b/Services/Cbr/V1/Model/CreateVaultTagsRequest.cs index acb4e27..150a086 100755 --- a/Services/Cbr/V1/Model/CreateVaultTagsRequest.cs +++ b/Services/Cbr/V1/Model/CreateVaultTagsRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/CreateVaultTagsResponse.cs b/Services/Cbr/V1/Model/CreateVaultTagsResponse.cs index b363c04..e776289 100755 --- a/Services/Cbr/V1/Model/CreateVaultTagsResponse.cs +++ b/Services/Cbr/V1/Model/CreateVaultTagsResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/DeleteBackupRequest.cs b/Services/Cbr/V1/Model/DeleteBackupRequest.cs index 20e9b29..a45bf5d 100755 --- a/Services/Cbr/V1/Model/DeleteBackupRequest.cs +++ b/Services/Cbr/V1/Model/DeleteBackupRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/DeleteBackupResponse.cs b/Services/Cbr/V1/Model/DeleteBackupResponse.cs index 86254f3..4b498a5 100755 --- a/Services/Cbr/V1/Model/DeleteBackupResponse.cs +++ b/Services/Cbr/V1/Model/DeleteBackupResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/DeleteMemberRequest.cs b/Services/Cbr/V1/Model/DeleteMemberRequest.cs index df3000b..ea24b9c 100755 --- a/Services/Cbr/V1/Model/DeleteMemberRequest.cs +++ b/Services/Cbr/V1/Model/DeleteMemberRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/DeleteMemberResponse.cs b/Services/Cbr/V1/Model/DeleteMemberResponse.cs index 9086cf8..4cf2a0e 100755 --- a/Services/Cbr/V1/Model/DeleteMemberResponse.cs +++ b/Services/Cbr/V1/Model/DeleteMemberResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/DeletePolicyRequest.cs b/Services/Cbr/V1/Model/DeletePolicyRequest.cs index 8c68f8a..8f523b5 100755 --- a/Services/Cbr/V1/Model/DeletePolicyRequest.cs +++ b/Services/Cbr/V1/Model/DeletePolicyRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/DeletePolicyResponse.cs b/Services/Cbr/V1/Model/DeletePolicyResponse.cs index 35abc24..b9e230d 100755 --- a/Services/Cbr/V1/Model/DeletePolicyResponse.cs +++ b/Services/Cbr/V1/Model/DeletePolicyResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/DeleteVaultRequest.cs b/Services/Cbr/V1/Model/DeleteVaultRequest.cs index f8c7c34..b337c39 100755 --- a/Services/Cbr/V1/Model/DeleteVaultRequest.cs +++ b/Services/Cbr/V1/Model/DeleteVaultRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/DeleteVaultResponse.cs b/Services/Cbr/V1/Model/DeleteVaultResponse.cs index a773d6a..d0f23eb 100755 --- a/Services/Cbr/V1/Model/DeleteVaultResponse.cs +++ b/Services/Cbr/V1/Model/DeleteVaultResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/DeleteVaultTagRequest.cs b/Services/Cbr/V1/Model/DeleteVaultTagRequest.cs index 22b8af2..6444e9d 100755 --- a/Services/Cbr/V1/Model/DeleteVaultTagRequest.cs +++ b/Services/Cbr/V1/Model/DeleteVaultTagRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/DeleteVaultTagResponse.cs b/Services/Cbr/V1/Model/DeleteVaultTagResponse.cs index 6e492d6..dde0c38 100755 --- a/Services/Cbr/V1/Model/DeleteVaultTagResponse.cs +++ b/Services/Cbr/V1/Model/DeleteVaultTagResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/DisassociateVaultPolicyRequest.cs b/Services/Cbr/V1/Model/DisassociateVaultPolicyRequest.cs index c2a4a5a..71daaf7 100755 --- a/Services/Cbr/V1/Model/DisassociateVaultPolicyRequest.cs +++ b/Services/Cbr/V1/Model/DisassociateVaultPolicyRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/DisassociateVaultPolicyResponse.cs b/Services/Cbr/V1/Model/DisassociateVaultPolicyResponse.cs index aee403c..0c57a12 100755 --- a/Services/Cbr/V1/Model/DisassociateVaultPolicyResponse.cs +++ b/Services/Cbr/V1/Model/DisassociateVaultPolicyResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/ImageData.cs b/Services/Cbr/V1/Model/ImageData.cs index 29a43a5..c1d3112 100755 --- a/Services/Cbr/V1/Model/ImageData.cs +++ b/Services/Cbr/V1/Model/ImageData.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/ImportBackupRequest.cs b/Services/Cbr/V1/Model/ImportBackupRequest.cs index 86b8a5e..d5b6e3a 100755 --- a/Services/Cbr/V1/Model/ImportBackupRequest.cs +++ b/Services/Cbr/V1/Model/ImportBackupRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/ImportBackupResponse.cs b/Services/Cbr/V1/Model/ImportBackupResponse.cs index 8a6c171..2f51770 100755 --- a/Services/Cbr/V1/Model/ImportBackupResponse.cs +++ b/Services/Cbr/V1/Model/ImportBackupResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/ListBackupsRequest.cs b/Services/Cbr/V1/Model/ListBackupsRequest.cs index a06b7b8..f5f6067 100755 --- a/Services/Cbr/V1/Model/ListBackupsRequest.cs +++ b/Services/Cbr/V1/Model/ListBackupsRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { @@ -34,11 +35,16 @@ public class ImageTypeEnum { "replication", REPLICATION }, }; - private string Value; + private string _value; + + public ImageTypeEnum() + { + + } public ImageTypeEnum(string value) { - Value = value; + _value = value; } public static ImageTypeEnum FromValue(string value) @@ -57,17 +63,17 @@ public static ImageTypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -96,7 +102,7 @@ public bool Equals(ImageTypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(ImageTypeEnum a, ImageTypeEnum b) @@ -140,11 +146,16 @@ public class ResourceTypeEnum { "OS::Nova::Server", OS_NOVA_SERVER }, }; - private string Value; + private string _value; + + public ResourceTypeEnum() + { + + } public ResourceTypeEnum(string value) { - Value = value; + _value = value; } public static ResourceTypeEnum FromValue(string value) @@ -163,17 +174,17 @@ public static ResourceTypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -202,7 +213,7 @@ public bool Equals(ResourceTypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(ResourceTypeEnum a, ResourceTypeEnum b) @@ -282,11 +293,16 @@ public class StatusEnum { "waiting_restore", WAITING_RESTORE }, }; - private string Value; + private string _value; + + public StatusEnum() + { + + } public StatusEnum(string value) { - Value = value; + _value = value; } public static StatusEnum FromValue(string value) @@ -305,17 +321,17 @@ public static StatusEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -344,7 +360,7 @@ public bool Equals(StatusEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(StatusEnum a, StatusEnum b) @@ -394,11 +410,16 @@ public class OwnTypeEnum { "shared", SHARED }, }; - private string Value; + private string _value; + + public OwnTypeEnum() + { + + } public OwnTypeEnum(string value) { - Value = value; + _value = value; } public static OwnTypeEnum FromValue(string value) @@ -417,17 +438,17 @@ public static OwnTypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -456,7 +477,7 @@ public bool Equals(OwnTypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(OwnTypeEnum a, OwnTypeEnum b) @@ -506,11 +527,16 @@ public class MemberStatusEnum { "rejected", REJECTED }, }; - private string Value; + private string _value; + + public MemberStatusEnum() + { + + } public MemberStatusEnum(string value) { - Value = value; + _value = value; } public static MemberStatusEnum FromValue(string value) @@ -529,17 +555,17 @@ public static MemberStatusEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -568,7 +594,7 @@ public bool Equals(MemberStatusEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(MemberStatusEnum a, MemberStatusEnum b) diff --git a/Services/Cbr/V1/Model/ListBackupsResponse.cs b/Services/Cbr/V1/Model/ListBackupsResponse.cs index d0e6532..db7c665 100755 --- a/Services/Cbr/V1/Model/ListBackupsResponse.cs +++ b/Services/Cbr/V1/Model/ListBackupsResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/ListOpLogsRequest.cs b/Services/Cbr/V1/Model/ListOpLogsRequest.cs index 5e5f855..4ee0678 100755 --- a/Services/Cbr/V1/Model/ListOpLogsRequest.cs +++ b/Services/Cbr/V1/Model/ListOpLogsRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { @@ -70,11 +71,16 @@ public class OperationTypeEnum { "sync", SYNC }, }; - private string Value; + private string _value; + + public OperationTypeEnum() + { + + } public OperationTypeEnum(string value) { - Value = value; + _value = value; } public static OperationTypeEnum FromValue(string value) @@ -93,17 +99,17 @@ public static OperationTypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -132,7 +138,7 @@ public bool Equals(OperationTypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(OperationTypeEnum a, OperationTypeEnum b) @@ -200,11 +206,16 @@ public class StatusEnum { "waiting", WAITING }, }; - private string Value; + private string _value; + + public StatusEnum() + { + + } public StatusEnum(string value) { - Value = value; + _value = value; } public static StatusEnum FromValue(string value) @@ -223,17 +234,17 @@ public static StatusEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -262,7 +273,7 @@ public bool Equals(StatusEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(StatusEnum a, StatusEnum b) diff --git a/Services/Cbr/V1/Model/ListOpLogsResponse.cs b/Services/Cbr/V1/Model/ListOpLogsResponse.cs index a2eeed1..0945ed0 100755 --- a/Services/Cbr/V1/Model/ListOpLogsResponse.cs +++ b/Services/Cbr/V1/Model/ListOpLogsResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/ListPoliciesRequest.cs b/Services/Cbr/V1/Model/ListPoliciesRequest.cs index 5355686..b02380a 100755 --- a/Services/Cbr/V1/Model/ListPoliciesRequest.cs +++ b/Services/Cbr/V1/Model/ListPoliciesRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { @@ -34,11 +35,16 @@ public class OperationTypeEnum { "replication", REPLICATION }, }; - private string Value; + private string _value; + + public OperationTypeEnum() + { + + } public OperationTypeEnum(string value) { - Value = value; + _value = value; } public static OperationTypeEnum FromValue(string value) @@ -57,17 +63,17 @@ public static OperationTypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -96,7 +102,7 @@ public bool Equals(OperationTypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(OperationTypeEnum a, OperationTypeEnum b) diff --git a/Services/Cbr/V1/Model/ListPoliciesResponse.cs b/Services/Cbr/V1/Model/ListPoliciesResponse.cs index a5fa4db..394457e 100755 --- a/Services/Cbr/V1/Model/ListPoliciesResponse.cs +++ b/Services/Cbr/V1/Model/ListPoliciesResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/ListProtectableRequest.cs b/Services/Cbr/V1/Model/ListProtectableRequest.cs index 7c69341..6cf621c 100755 --- a/Services/Cbr/V1/Model/ListProtectableRequest.cs +++ b/Services/Cbr/V1/Model/ListProtectableRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { @@ -34,11 +35,16 @@ public class ProtectableTypeEnum { "disk", DISK }, }; - private string Value; + private string _value; + + public ProtectableTypeEnum() + { + + } public ProtectableTypeEnum(string value) { - Value = value; + _value = value; } public static ProtectableTypeEnum FromValue(string value) @@ -57,17 +63,17 @@ public static ProtectableTypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -96,7 +102,7 @@ public bool Equals(ProtectableTypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(ProtectableTypeEnum a, ProtectableTypeEnum b) diff --git a/Services/Cbr/V1/Model/ListProtectableResponse.cs b/Services/Cbr/V1/Model/ListProtectableResponse.cs index e3a7f31..40e387a 100755 --- a/Services/Cbr/V1/Model/ListProtectableResponse.cs +++ b/Services/Cbr/V1/Model/ListProtectableResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/ListVaultRequest.cs b/Services/Cbr/V1/Model/ListVaultRequest.cs index 2b1bc95..fa7494d 100755 --- a/Services/Cbr/V1/Model/ListVaultRequest.cs +++ b/Services/Cbr/V1/Model/ListVaultRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { @@ -34,11 +35,16 @@ public class CloudTypeEnum { "hybrid", HYBRID }, }; - private string Value; + private string _value; + + public CloudTypeEnum() + { + + } public CloudTypeEnum(string value) { - Value = value; + _value = value; } public static CloudTypeEnum FromValue(string value) @@ -57,17 +63,17 @@ public static CloudTypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -96,7 +102,7 @@ public bool Equals(CloudTypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(CloudTypeEnum a, CloudTypeEnum b) @@ -140,11 +146,16 @@ public class ProtectTypeEnum { "replication", REPLICATION }, }; - private string Value; + private string _value; + + public ProtectTypeEnum() + { + + } public ProtectTypeEnum(string value) { - Value = value; + _value = value; } public static ProtectTypeEnum FromValue(string value) @@ -163,17 +174,17 @@ public static ProtectTypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -202,7 +213,7 @@ public bool Equals(ProtectTypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(ProtectTypeEnum a, ProtectTypeEnum b) diff --git a/Services/Cbr/V1/Model/ListVaultResponse.cs b/Services/Cbr/V1/Model/ListVaultResponse.cs index cf7b734..84b0574 100755 --- a/Services/Cbr/V1/Model/ListVaultResponse.cs +++ b/Services/Cbr/V1/Model/ListVaultResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/Match.cs b/Services/Cbr/V1/Model/Match.cs index ba85903..09f5691 100755 --- a/Services/Cbr/V1/Model/Match.cs +++ b/Services/Cbr/V1/Model/Match.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/Member.cs b/Services/Cbr/V1/Model/Member.cs index e675fb8..f473669 100755 --- a/Services/Cbr/V1/Model/Member.cs +++ b/Services/Cbr/V1/Model/Member.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { @@ -40,11 +41,16 @@ public class StatusEnum { "rejected", REJECTED }, }; - private string Value; + private string _value; + + public StatusEnum() + { + + } public StatusEnum(string value) { - Value = value; + _value = value; } public static StatusEnum FromValue(string value) @@ -63,17 +69,17 @@ public static StatusEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -102,7 +108,7 @@ public bool Equals(StatusEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(StatusEnum a, StatusEnum b) diff --git a/Services/Cbr/V1/Model/MigrateVaultResourceRequest.cs b/Services/Cbr/V1/Model/MigrateVaultResourceRequest.cs index 04afa3a..c2e441d 100755 --- a/Services/Cbr/V1/Model/MigrateVaultResourceRequest.cs +++ b/Services/Cbr/V1/Model/MigrateVaultResourceRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/MigrateVaultResourceResponse.cs b/Services/Cbr/V1/Model/MigrateVaultResourceResponse.cs index bfff464..c4681aa 100755 --- a/Services/Cbr/V1/Model/MigrateVaultResourceResponse.cs +++ b/Services/Cbr/V1/Model/MigrateVaultResourceResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/OpErrorInfo.cs b/Services/Cbr/V1/Model/OpErrorInfo.cs index d409d9c..2f7b825 100755 --- a/Services/Cbr/V1/Model/OpErrorInfo.cs +++ b/Services/Cbr/V1/Model/OpErrorInfo.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/OpExtendInfoBckup.cs b/Services/Cbr/V1/Model/OpExtendInfoBckup.cs index f220256..cf676fe 100755 --- a/Services/Cbr/V1/Model/OpExtendInfoBckup.cs +++ b/Services/Cbr/V1/Model/OpExtendInfoBckup.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { @@ -34,11 +35,16 @@ public class AppConsistencyStatusEnum { "1", _1 }, }; - private string Value; + private string _value; + + public AppConsistencyStatusEnum() + { + + } public AppConsistencyStatusEnum(string value) { - Value = value; + _value = value; } public static AppConsistencyStatusEnum FromValue(string value) @@ -57,17 +63,17 @@ public static AppConsistencyStatusEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -96,7 +102,7 @@ public bool Equals(AppConsistencyStatusEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(AppConsistencyStatusEnum a, AppConsistencyStatusEnum b) @@ -140,11 +146,16 @@ public class IncrementalEnum { "\"false\"", _FALSE_ }, }; - private string Value; + private string _value; + + public IncrementalEnum() + { + + } public IncrementalEnum(string value) { - Value = value; + _value = value; } public static IncrementalEnum FromValue(string value) @@ -163,17 +174,17 @@ public static IncrementalEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -202,7 +213,7 @@ public bool Equals(IncrementalEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(IncrementalEnum a, IncrementalEnum b) diff --git a/Services/Cbr/V1/Model/OpExtendInfoCommon.cs b/Services/Cbr/V1/Model/OpExtendInfoCommon.cs index caf6e52..5d80503 100755 --- a/Services/Cbr/V1/Model/OpExtendInfoCommon.cs +++ b/Services/Cbr/V1/Model/OpExtendInfoCommon.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/OpExtendInfoDelete.cs b/Services/Cbr/V1/Model/OpExtendInfoDelete.cs index a82ae53..4c0c087 100755 --- a/Services/Cbr/V1/Model/OpExtendInfoDelete.cs +++ b/Services/Cbr/V1/Model/OpExtendInfoDelete.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/OpExtendInfoRemoveResources.cs b/Services/Cbr/V1/Model/OpExtendInfoRemoveResources.cs index 3a916f6..a396a15 100755 --- a/Services/Cbr/V1/Model/OpExtendInfoRemoveResources.cs +++ b/Services/Cbr/V1/Model/OpExtendInfoRemoveResources.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/OpExtendInfoReplication.cs b/Services/Cbr/V1/Model/OpExtendInfoReplication.cs index 17d5690..77416db 100755 --- a/Services/Cbr/V1/Model/OpExtendInfoReplication.cs +++ b/Services/Cbr/V1/Model/OpExtendInfoReplication.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/OpExtendInfoRestore.cs b/Services/Cbr/V1/Model/OpExtendInfoRestore.cs index 025a35e..c5868f7 100755 --- a/Services/Cbr/V1/Model/OpExtendInfoRestore.cs +++ b/Services/Cbr/V1/Model/OpExtendInfoRestore.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/OpExtendInfoSync.cs b/Services/Cbr/V1/Model/OpExtendInfoSync.cs index 8a063d2..5edb9ae 100755 --- a/Services/Cbr/V1/Model/OpExtendInfoSync.cs +++ b/Services/Cbr/V1/Model/OpExtendInfoSync.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/OpExtendInfoVaultDelete.cs b/Services/Cbr/V1/Model/OpExtendInfoVaultDelete.cs index 6d22a50..067c66e 100755 --- a/Services/Cbr/V1/Model/OpExtendInfoVaultDelete.cs +++ b/Services/Cbr/V1/Model/OpExtendInfoVaultDelete.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/OpExtraInfo.cs b/Services/Cbr/V1/Model/OpExtraInfo.cs index 9bba799..163c0ec 100755 --- a/Services/Cbr/V1/Model/OpExtraInfo.cs +++ b/Services/Cbr/V1/Model/OpExtraInfo.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/OperationLog.cs b/Services/Cbr/V1/Model/OperationLog.cs index 0d91868..d9467ee 100755 --- a/Services/Cbr/V1/Model/OperationLog.cs +++ b/Services/Cbr/V1/Model/OperationLog.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { @@ -70,11 +71,16 @@ public class OperationTypeEnum { "remove_resource", REMOVE_RESOURCE }, }; - private string Value; + private string _value; + + public OperationTypeEnum() + { + + } public OperationTypeEnum(string value) { - Value = value; + _value = value; } public static OperationTypeEnum FromValue(string value) @@ -93,17 +99,17 @@ public static OperationTypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -132,7 +138,7 @@ public bool Equals(OperationTypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(OperationTypeEnum a, OperationTypeEnum b) @@ -200,11 +206,16 @@ public class StatusEnum { "waiting", WAITING }, }; - private string Value; + private string _value; + + public StatusEnum() + { + + } public StatusEnum(string value) { - Value = value; + _value = value; } public static StatusEnum FromValue(string value) @@ -223,17 +234,17 @@ public static StatusEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -262,7 +273,7 @@ public bool Equals(StatusEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(StatusEnum a, StatusEnum b) diff --git a/Services/Cbr/V1/Model/Policy.cs b/Services/Cbr/V1/Model/Policy.cs index fcbbcd6..6a9d266 100755 --- a/Services/Cbr/V1/Model/Policy.cs +++ b/Services/Cbr/V1/Model/Policy.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { @@ -34,11 +35,16 @@ public class OperationTypeEnum { "replication", REPLICATION }, }; - private string Value; + private string _value; + + public OperationTypeEnum() + { + + } public OperationTypeEnum(string value) { - Value = value; + _value = value; } public static OperationTypeEnum FromValue(string value) @@ -57,17 +63,17 @@ public static OperationTypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -96,7 +102,7 @@ public bool Equals(OperationTypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(OperationTypeEnum a, OperationTypeEnum b) diff --git a/Services/Cbr/V1/Model/PolicyAssociateVault.cs b/Services/Cbr/V1/Model/PolicyAssociateVault.cs index a4feb25..20e33eb 100755 --- a/Services/Cbr/V1/Model/PolicyAssociateVault.cs +++ b/Services/Cbr/V1/Model/PolicyAssociateVault.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/PolicyCreate.cs b/Services/Cbr/V1/Model/PolicyCreate.cs index a07b124..05e54bb 100755 --- a/Services/Cbr/V1/Model/PolicyCreate.cs +++ b/Services/Cbr/V1/Model/PolicyCreate.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { @@ -34,11 +35,16 @@ public class OperationTypeEnum { "replication", REPLICATION }, }; - private string Value; + private string _value; + + public OperationTypeEnum() + { + + } public OperationTypeEnum(string value) { - Value = value; + _value = value; } public static OperationTypeEnum FromValue(string value) @@ -57,17 +63,17 @@ public static OperationTypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -96,7 +102,7 @@ public bool Equals(OperationTypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(OperationTypeEnum a, OperationTypeEnum b) diff --git a/Services/Cbr/V1/Model/PolicyCreateReq.cs b/Services/Cbr/V1/Model/PolicyCreateReq.cs index 64d1b63..62cf85e 100755 --- a/Services/Cbr/V1/Model/PolicyCreateReq.cs +++ b/Services/Cbr/V1/Model/PolicyCreateReq.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/PolicyTriggerPropertiesReq.cs b/Services/Cbr/V1/Model/PolicyTriggerPropertiesReq.cs index 5505ab3..b2e7077 100755 --- a/Services/Cbr/V1/Model/PolicyTriggerPropertiesReq.cs +++ b/Services/Cbr/V1/Model/PolicyTriggerPropertiesReq.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/PolicyTriggerPropertiesResp.cs b/Services/Cbr/V1/Model/PolicyTriggerPropertiesResp.cs index bac5540..ad4268c 100755 --- a/Services/Cbr/V1/Model/PolicyTriggerPropertiesResp.cs +++ b/Services/Cbr/V1/Model/PolicyTriggerPropertiesResp.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/PolicyTriggerReq.cs b/Services/Cbr/V1/Model/PolicyTriggerReq.cs index 379cfc9..7448aeb 100755 --- a/Services/Cbr/V1/Model/PolicyTriggerReq.cs +++ b/Services/Cbr/V1/Model/PolicyTriggerReq.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/PolicyTriggerResp.cs b/Services/Cbr/V1/Model/PolicyTriggerResp.cs index aceb1b8..6105ff2 100755 --- a/Services/Cbr/V1/Model/PolicyTriggerResp.cs +++ b/Services/Cbr/V1/Model/PolicyTriggerResp.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { @@ -28,11 +29,16 @@ public class TypeEnum { "time", TIME }, }; - private string Value; + private string _value; + + public TypeEnum() + { + + } public TypeEnum(string value) { - Value = value; + _value = value; } public static TypeEnum FromValue(string value) @@ -51,17 +57,17 @@ public static TypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -90,7 +96,7 @@ public bool Equals(TypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(TypeEnum a, TypeEnum b) diff --git a/Services/Cbr/V1/Model/PolicyUpdate.cs b/Services/Cbr/V1/Model/PolicyUpdate.cs index 4a5173d..c3f2add 100755 --- a/Services/Cbr/V1/Model/PolicyUpdate.cs +++ b/Services/Cbr/V1/Model/PolicyUpdate.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/PolicyUpdateReq.cs b/Services/Cbr/V1/Model/PolicyUpdateReq.cs index 077a949..e1774e6 100755 --- a/Services/Cbr/V1/Model/PolicyUpdateReq.cs +++ b/Services/Cbr/V1/Model/PolicyUpdateReq.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/PolicyoODCreate.cs b/Services/Cbr/V1/Model/PolicyoODCreate.cs index 895660d..18eb1ff 100755 --- a/Services/Cbr/V1/Model/PolicyoODCreate.cs +++ b/Services/Cbr/V1/Model/PolicyoODCreate.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/ProtectableReplicationCapabilitiesRespRegion.cs b/Services/Cbr/V1/Model/ProtectableReplicationCapabilitiesRespRegion.cs index c1532a2..fdad1d8 100755 --- a/Services/Cbr/V1/Model/ProtectableReplicationCapabilitiesRespRegion.cs +++ b/Services/Cbr/V1/Model/ProtectableReplicationCapabilitiesRespRegion.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/ProtectableResult.cs b/Services/Cbr/V1/Model/ProtectableResult.cs index 46d6802..b33ce48 100755 --- a/Services/Cbr/V1/Model/ProtectableResult.cs +++ b/Services/Cbr/V1/Model/ProtectableResult.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/ProtectablesResp.cs b/Services/Cbr/V1/Model/ProtectablesResp.cs index 4291238..c5d0926 100755 --- a/Services/Cbr/V1/Model/ProtectablesResp.cs +++ b/Services/Cbr/V1/Model/ProtectablesResp.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { @@ -40,11 +41,16 @@ public class StatusEnum { "error", ERROR }, }; - private string Value; + private string _value; + + public StatusEnum() + { + + } public StatusEnum(string value) { - Value = value; + _value = value; } public static StatusEnum FromValue(string value) @@ -63,17 +69,17 @@ public static StatusEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -102,7 +108,7 @@ public bool Equals(StatusEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(StatusEnum a, StatusEnum b) diff --git a/Services/Cbr/V1/Model/RemoveVaultResourceRequest.cs b/Services/Cbr/V1/Model/RemoveVaultResourceRequest.cs index fdc4859..a74ec8c 100755 --- a/Services/Cbr/V1/Model/RemoveVaultResourceRequest.cs +++ b/Services/Cbr/V1/Model/RemoveVaultResourceRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/RemoveVaultResourceResponse.cs b/Services/Cbr/V1/Model/RemoveVaultResourceResponse.cs index 1387d03..3aa38a3 100755 --- a/Services/Cbr/V1/Model/RemoveVaultResourceResponse.cs +++ b/Services/Cbr/V1/Model/RemoveVaultResourceResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/ReplicationRecordGet.cs b/Services/Cbr/V1/Model/ReplicationRecordGet.cs index 0b19411..2b872ad 100755 --- a/Services/Cbr/V1/Model/ReplicationRecordGet.cs +++ b/Services/Cbr/V1/Model/ReplicationRecordGet.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { @@ -52,11 +53,16 @@ public class StatusEnum { "waiting_replicate", WAITING_REPLICATE }, }; - private string Value; + private string _value; + + public StatusEnum() + { + + } public StatusEnum(string value) { - Value = value; + _value = value; } public static StatusEnum FromValue(string value) @@ -75,17 +81,17 @@ public static StatusEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -114,7 +120,7 @@ public bool Equals(StatusEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(StatusEnum a, StatusEnum b) diff --git a/Services/Cbr/V1/Model/ReplicationRecordsExtraInfo.cs b/Services/Cbr/V1/Model/ReplicationRecordsExtraInfo.cs index f322d00..aef04b6 100755 --- a/Services/Cbr/V1/Model/ReplicationRecordsExtraInfo.cs +++ b/Services/Cbr/V1/Model/ReplicationRecordsExtraInfo.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/Resource.cs b/Services/Cbr/V1/Model/Resource.cs index f97f792..443c2a5 100755 --- a/Services/Cbr/V1/Model/Resource.cs +++ b/Services/Cbr/V1/Model/Resource.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/ResourceCreate.cs b/Services/Cbr/V1/Model/ResourceCreate.cs index 5b3ec16..1219d7a 100755 --- a/Services/Cbr/V1/Model/ResourceCreate.cs +++ b/Services/Cbr/V1/Model/ResourceCreate.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/ResourceExtraInfo.cs b/Services/Cbr/V1/Model/ResourceExtraInfo.cs index 6bc2995..a8c1b99 100755 --- a/Services/Cbr/V1/Model/ResourceExtraInfo.cs +++ b/Services/Cbr/V1/Model/ResourceExtraInfo.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/ResourceResp.cs b/Services/Cbr/V1/Model/ResourceResp.cs index 58894ec..84112ba 100755 --- a/Services/Cbr/V1/Model/ResourceResp.cs +++ b/Services/Cbr/V1/Model/ResourceResp.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { @@ -52,11 +53,16 @@ public class ProtectStatusEnum { "removing", REMOVING }, }; - private string Value; + private string _value; + + public ProtectStatusEnum() + { + + } public ProtectStatusEnum(string value) { - Value = value; + _value = value; } public static ProtectStatusEnum FromValue(string value) @@ -75,17 +81,17 @@ public static ProtectStatusEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -114,7 +120,7 @@ public bool Equals(ProtectStatusEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(ProtectStatusEnum a, ProtectStatusEnum b) diff --git a/Services/Cbr/V1/Model/RestoreBackupRequest.cs b/Services/Cbr/V1/Model/RestoreBackupRequest.cs index 57cc329..2863bb0 100755 --- a/Services/Cbr/V1/Model/RestoreBackupRequest.cs +++ b/Services/Cbr/V1/Model/RestoreBackupRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/RestoreBackupResponse.cs b/Services/Cbr/V1/Model/RestoreBackupResponse.cs index a47f30d..1345387 100755 --- a/Services/Cbr/V1/Model/RestoreBackupResponse.cs +++ b/Services/Cbr/V1/Model/RestoreBackupResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/ShowBackupRequest.cs b/Services/Cbr/V1/Model/ShowBackupRequest.cs index 25f05ec..94f7842 100755 --- a/Services/Cbr/V1/Model/ShowBackupRequest.cs +++ b/Services/Cbr/V1/Model/ShowBackupRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/ShowBackupResponse.cs b/Services/Cbr/V1/Model/ShowBackupResponse.cs index 286bc18..7c8b925 100755 --- a/Services/Cbr/V1/Model/ShowBackupResponse.cs +++ b/Services/Cbr/V1/Model/ShowBackupResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/ShowCheckpointRequest.cs b/Services/Cbr/V1/Model/ShowCheckpointRequest.cs index 8f7a611..75aff58 100755 --- a/Services/Cbr/V1/Model/ShowCheckpointRequest.cs +++ b/Services/Cbr/V1/Model/ShowCheckpointRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/ShowCheckpointResponse.cs b/Services/Cbr/V1/Model/ShowCheckpointResponse.cs index 7ee9d2f..da5d31b 100755 --- a/Services/Cbr/V1/Model/ShowCheckpointResponse.cs +++ b/Services/Cbr/V1/Model/ShowCheckpointResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/ShowMemberDetailRequest.cs b/Services/Cbr/V1/Model/ShowMemberDetailRequest.cs index 81168b5..6c929e2 100755 --- a/Services/Cbr/V1/Model/ShowMemberDetailRequest.cs +++ b/Services/Cbr/V1/Model/ShowMemberDetailRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/ShowMemberDetailResponse.cs b/Services/Cbr/V1/Model/ShowMemberDetailResponse.cs index fb765dc..d23edf9 100755 --- a/Services/Cbr/V1/Model/ShowMemberDetailResponse.cs +++ b/Services/Cbr/V1/Model/ShowMemberDetailResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/ShowMembersDetailRequest.cs b/Services/Cbr/V1/Model/ShowMembersDetailRequest.cs index af33bc5..c899714 100755 --- a/Services/Cbr/V1/Model/ShowMembersDetailRequest.cs +++ b/Services/Cbr/V1/Model/ShowMembersDetailRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/ShowMembersDetailResponse.cs b/Services/Cbr/V1/Model/ShowMembersDetailResponse.cs index fdc8cca..b03a79a 100755 --- a/Services/Cbr/V1/Model/ShowMembersDetailResponse.cs +++ b/Services/Cbr/V1/Model/ShowMembersDetailResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/ShowOpLogRequest.cs b/Services/Cbr/V1/Model/ShowOpLogRequest.cs index 6eba05f..183ab95 100755 --- a/Services/Cbr/V1/Model/ShowOpLogRequest.cs +++ b/Services/Cbr/V1/Model/ShowOpLogRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/ShowOpLogResponse.cs b/Services/Cbr/V1/Model/ShowOpLogResponse.cs index bd2e8a0..41954f9 100755 --- a/Services/Cbr/V1/Model/ShowOpLogResponse.cs +++ b/Services/Cbr/V1/Model/ShowOpLogResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/ShowPolicyRequest.cs b/Services/Cbr/V1/Model/ShowPolicyRequest.cs index ce64385..69f3a2c 100755 --- a/Services/Cbr/V1/Model/ShowPolicyRequest.cs +++ b/Services/Cbr/V1/Model/ShowPolicyRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/ShowPolicyResponse.cs b/Services/Cbr/V1/Model/ShowPolicyResponse.cs index 17548ec..452e952 100755 --- a/Services/Cbr/V1/Model/ShowPolicyResponse.cs +++ b/Services/Cbr/V1/Model/ShowPolicyResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/ShowProtectableRequest.cs b/Services/Cbr/V1/Model/ShowProtectableRequest.cs index 5ce59bf..7258836 100755 --- a/Services/Cbr/V1/Model/ShowProtectableRequest.cs +++ b/Services/Cbr/V1/Model/ShowProtectableRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { @@ -34,11 +35,16 @@ public class ProtectableTypeEnum { "disk", DISK }, }; - private string Value; + private string _value; + + public ProtectableTypeEnum() + { + + } public ProtectableTypeEnum(string value) { - Value = value; + _value = value; } public static ProtectableTypeEnum FromValue(string value) @@ -57,17 +63,17 @@ public static ProtectableTypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -96,7 +102,7 @@ public bool Equals(ProtectableTypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(ProtectableTypeEnum a, ProtectableTypeEnum b) diff --git a/Services/Cbr/V1/Model/ShowProtectableResponse.cs b/Services/Cbr/V1/Model/ShowProtectableResponse.cs index 7459e5d..9e6b94d 100755 --- a/Services/Cbr/V1/Model/ShowProtectableResponse.cs +++ b/Services/Cbr/V1/Model/ShowProtectableResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/ShowReplicationCapabilitiesRequest.cs b/Services/Cbr/V1/Model/ShowReplicationCapabilitiesRequest.cs index 76957c8..bc1012c 100755 --- a/Services/Cbr/V1/Model/ShowReplicationCapabilitiesRequest.cs +++ b/Services/Cbr/V1/Model/ShowReplicationCapabilitiesRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/ShowReplicationCapabilitiesResponse.cs b/Services/Cbr/V1/Model/ShowReplicationCapabilitiesResponse.cs index 01a51ac..3e72dd3 100755 --- a/Services/Cbr/V1/Model/ShowReplicationCapabilitiesResponse.cs +++ b/Services/Cbr/V1/Model/ShowReplicationCapabilitiesResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/ShowVaultProjectTagRequest.cs b/Services/Cbr/V1/Model/ShowVaultProjectTagRequest.cs index 70f1966..60545c8 100755 --- a/Services/Cbr/V1/Model/ShowVaultProjectTagRequest.cs +++ b/Services/Cbr/V1/Model/ShowVaultProjectTagRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/ShowVaultProjectTagResponse.cs b/Services/Cbr/V1/Model/ShowVaultProjectTagResponse.cs index 90aceac..4071123 100755 --- a/Services/Cbr/V1/Model/ShowVaultProjectTagResponse.cs +++ b/Services/Cbr/V1/Model/ShowVaultProjectTagResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/ShowVaultRequest.cs b/Services/Cbr/V1/Model/ShowVaultRequest.cs index 38eaf31..87b5f32 100755 --- a/Services/Cbr/V1/Model/ShowVaultRequest.cs +++ b/Services/Cbr/V1/Model/ShowVaultRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/ShowVaultResourceInstancesRequest.cs b/Services/Cbr/V1/Model/ShowVaultResourceInstancesRequest.cs index 87e173e..2c49d58 100755 --- a/Services/Cbr/V1/Model/ShowVaultResourceInstancesRequest.cs +++ b/Services/Cbr/V1/Model/ShowVaultResourceInstancesRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/ShowVaultResourceInstancesResponse.cs b/Services/Cbr/V1/Model/ShowVaultResourceInstancesResponse.cs index 8b1ef4c..9567d56 100755 --- a/Services/Cbr/V1/Model/ShowVaultResourceInstancesResponse.cs +++ b/Services/Cbr/V1/Model/ShowVaultResourceInstancesResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/ShowVaultResponse.cs b/Services/Cbr/V1/Model/ShowVaultResponse.cs index 933eff6..05c24ac 100755 --- a/Services/Cbr/V1/Model/ShowVaultResponse.cs +++ b/Services/Cbr/V1/Model/ShowVaultResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/ShowVaultTagRequest.cs b/Services/Cbr/V1/Model/ShowVaultTagRequest.cs index a13588e..5b54621 100755 --- a/Services/Cbr/V1/Model/ShowVaultTagRequest.cs +++ b/Services/Cbr/V1/Model/ShowVaultTagRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/ShowVaultTagResponse.cs b/Services/Cbr/V1/Model/ShowVaultTagResponse.cs index fa3af10..d0c3e95 100755 --- a/Services/Cbr/V1/Model/ShowVaultTagResponse.cs +++ b/Services/Cbr/V1/Model/ShowVaultTagResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/SysTag.cs b/Services/Cbr/V1/Model/SysTag.cs index 82a72f6..509fd73 100755 --- a/Services/Cbr/V1/Model/SysTag.cs +++ b/Services/Cbr/V1/Model/SysTag.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/SysTags.cs b/Services/Cbr/V1/Model/SysTags.cs index 0ceadd9..329d239 100755 --- a/Services/Cbr/V1/Model/SysTags.cs +++ b/Services/Cbr/V1/Model/SysTags.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/Tag.cs b/Services/Cbr/V1/Model/Tag.cs index 887fe38..1079905 100755 --- a/Services/Cbr/V1/Model/Tag.cs +++ b/Services/Cbr/V1/Model/Tag.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/TagResource.cs b/Services/Cbr/V1/Model/TagResource.cs index 1521d43..abdc9ef 100755 --- a/Services/Cbr/V1/Model/TagResource.cs +++ b/Services/Cbr/V1/Model/TagResource.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/TagsReq.cs b/Services/Cbr/V1/Model/TagsReq.cs index 3e3cf1d..8675dfc 100755 --- a/Services/Cbr/V1/Model/TagsReq.cs +++ b/Services/Cbr/V1/Model/TagsReq.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/TagsResp.cs b/Services/Cbr/V1/Model/TagsResp.cs index aca5e88..de756d1 100755 --- a/Services/Cbr/V1/Model/TagsResp.cs +++ b/Services/Cbr/V1/Model/TagsResp.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/UpdateMember.cs b/Services/Cbr/V1/Model/UpdateMember.cs index 5c113cd..3be8acb 100755 --- a/Services/Cbr/V1/Model/UpdateMember.cs +++ b/Services/Cbr/V1/Model/UpdateMember.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { @@ -40,11 +41,16 @@ public class StatusEnum { "rejected", REJECTED }, }; - private string Value; + private string _value; + + public StatusEnum() + { + + } public StatusEnum(string value) { - Value = value; + _value = value; } public static StatusEnum FromValue(string value) @@ -63,17 +69,17 @@ public static StatusEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -102,7 +108,7 @@ public bool Equals(StatusEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(StatusEnum a, StatusEnum b) diff --git a/Services/Cbr/V1/Model/UpdateMemberStatusRequest.cs b/Services/Cbr/V1/Model/UpdateMemberStatusRequest.cs index a72aa22..6520de7 100755 --- a/Services/Cbr/V1/Model/UpdateMemberStatusRequest.cs +++ b/Services/Cbr/V1/Model/UpdateMemberStatusRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/UpdateMemberStatusResponse.cs b/Services/Cbr/V1/Model/UpdateMemberStatusResponse.cs index a153ed3..3347258 100755 --- a/Services/Cbr/V1/Model/UpdateMemberStatusResponse.cs +++ b/Services/Cbr/V1/Model/UpdateMemberStatusResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/UpdatePolicyRequest.cs b/Services/Cbr/V1/Model/UpdatePolicyRequest.cs index 0153807..1d6fe5c 100755 --- a/Services/Cbr/V1/Model/UpdatePolicyRequest.cs +++ b/Services/Cbr/V1/Model/UpdatePolicyRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/UpdatePolicyResponse.cs b/Services/Cbr/V1/Model/UpdatePolicyResponse.cs index e91e74b..1377571 100755 --- a/Services/Cbr/V1/Model/UpdatePolicyResponse.cs +++ b/Services/Cbr/V1/Model/UpdatePolicyResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/UpdateVaultRequest.cs b/Services/Cbr/V1/Model/UpdateVaultRequest.cs index 01199a8..95440dc 100755 --- a/Services/Cbr/V1/Model/UpdateVaultRequest.cs +++ b/Services/Cbr/V1/Model/UpdateVaultRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/UpdateVaultResponse.cs b/Services/Cbr/V1/Model/UpdateVaultResponse.cs index 732952c..f240c7b 100755 --- a/Services/Cbr/V1/Model/UpdateVaultResponse.cs +++ b/Services/Cbr/V1/Model/UpdateVaultResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/Vault.cs b/Services/Cbr/V1/Model/Vault.cs index aa3f872..01279ec 100755 --- a/Services/Cbr/V1/Model/Vault.cs +++ b/Services/Cbr/V1/Model/Vault.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/VaultAddResourceReq.cs b/Services/Cbr/V1/Model/VaultAddResourceReq.cs index ed4193e..c4dcbfa 100755 --- a/Services/Cbr/V1/Model/VaultAddResourceReq.cs +++ b/Services/Cbr/V1/Model/VaultAddResourceReq.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/VaultAssociate.cs b/Services/Cbr/V1/Model/VaultAssociate.cs index 17fd73e..d0062fc 100755 --- a/Services/Cbr/V1/Model/VaultAssociate.cs +++ b/Services/Cbr/V1/Model/VaultAssociate.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/VaultBackup.cs b/Services/Cbr/V1/Model/VaultBackup.cs index 05075e0..3ee8c20 100755 --- a/Services/Cbr/V1/Model/VaultBackup.cs +++ b/Services/Cbr/V1/Model/VaultBackup.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/VaultBackupReq.cs b/Services/Cbr/V1/Model/VaultBackupReq.cs index 6a52273..60047f8 100755 --- a/Services/Cbr/V1/Model/VaultBackupReq.cs +++ b/Services/Cbr/V1/Model/VaultBackupReq.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/VaultBindRules.cs b/Services/Cbr/V1/Model/VaultBindRules.cs index 8a58daa..a90fab0 100755 --- a/Services/Cbr/V1/Model/VaultBindRules.cs +++ b/Services/Cbr/V1/Model/VaultBindRules.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/VaultCreate.cs b/Services/Cbr/V1/Model/VaultCreate.cs index 7dd3161..dc94198 100755 --- a/Services/Cbr/V1/Model/VaultCreate.cs +++ b/Services/Cbr/V1/Model/VaultCreate.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/VaultCreateReq.cs b/Services/Cbr/V1/Model/VaultCreateReq.cs index 3344d50..58268f6 100755 --- a/Services/Cbr/V1/Model/VaultCreateReq.cs +++ b/Services/Cbr/V1/Model/VaultCreateReq.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/VaultCreateResource.cs b/Services/Cbr/V1/Model/VaultCreateResource.cs index 5b187ab..a64d4e5 100755 --- a/Services/Cbr/V1/Model/VaultCreateResource.cs +++ b/Services/Cbr/V1/Model/VaultCreateResource.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/VaultDissociate.cs b/Services/Cbr/V1/Model/VaultDissociate.cs index 49c4354..e78798c 100755 --- a/Services/Cbr/V1/Model/VaultDissociate.cs +++ b/Services/Cbr/V1/Model/VaultDissociate.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/VaultGet.cs b/Services/Cbr/V1/Model/VaultGet.cs index 52274cc..12d7936 100755 --- a/Services/Cbr/V1/Model/VaultGet.cs +++ b/Services/Cbr/V1/Model/VaultGet.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/VaultMigrateResourceReq.cs b/Services/Cbr/V1/Model/VaultMigrateResourceReq.cs index 12aba23..703d1be 100755 --- a/Services/Cbr/V1/Model/VaultMigrateResourceReq.cs +++ b/Services/Cbr/V1/Model/VaultMigrateResourceReq.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/VaultPolicyResp.cs b/Services/Cbr/V1/Model/VaultPolicyResp.cs index afcc7a3..d4208e8 100755 --- a/Services/Cbr/V1/Model/VaultPolicyResp.cs +++ b/Services/Cbr/V1/Model/VaultPolicyResp.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/VaultRemoveResourceReq.cs b/Services/Cbr/V1/Model/VaultRemoveResourceReq.cs index 19dee2d..f8fcb46 100755 --- a/Services/Cbr/V1/Model/VaultRemoveResourceReq.cs +++ b/Services/Cbr/V1/Model/VaultRemoveResourceReq.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/VaultResourceInstancesReq.cs b/Services/Cbr/V1/Model/VaultResourceInstancesReq.cs index 9de4448..6ff6ddb 100755 --- a/Services/Cbr/V1/Model/VaultResourceInstancesReq.cs +++ b/Services/Cbr/V1/Model/VaultResourceInstancesReq.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { @@ -34,11 +35,16 @@ public class CloudTypeEnum { " hybrid", _HYBRID }, }; - private string Value; + private string _value; + + public CloudTypeEnum() + { + + } public CloudTypeEnum(string value) { - Value = value; + _value = value; } public static CloudTypeEnum FromValue(string value) @@ -57,17 +63,17 @@ public static CloudTypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -96,7 +102,7 @@ public bool Equals(CloudTypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(CloudTypeEnum a, CloudTypeEnum b) @@ -140,11 +146,16 @@ public class ObjectTypeEnum { "disk", DISK }, }; - private string Value; + private string _value; + + public ObjectTypeEnum() + { + + } public ObjectTypeEnum(string value) { - Value = value; + _value = value; } public static ObjectTypeEnum FromValue(string value) @@ -163,17 +174,17 @@ public static ObjectTypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -202,7 +213,7 @@ public bool Equals(ObjectTypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(ObjectTypeEnum a, ObjectTypeEnum b) diff --git a/Services/Cbr/V1/Model/VaultTagsCreateReq.cs b/Services/Cbr/V1/Model/VaultTagsCreateReq.cs index 82d6d97..72be4e2 100755 --- a/Services/Cbr/V1/Model/VaultTagsCreateReq.cs +++ b/Services/Cbr/V1/Model/VaultTagsCreateReq.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/VaultUpdate.cs b/Services/Cbr/V1/Model/VaultUpdate.cs index 1ed6077..450a815 100755 --- a/Services/Cbr/V1/Model/VaultUpdate.cs +++ b/Services/Cbr/V1/Model/VaultUpdate.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Model/VaultUpdateReq.cs b/Services/Cbr/V1/Model/VaultUpdateReq.cs index 13f5d3c..e8b3307 100755 --- a/Services/Cbr/V1/Model/VaultUpdateReq.cs +++ b/Services/Cbr/V1/Model/VaultUpdateReq.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1.Model { diff --git a/Services/Cbr/V1/Region/CbrRegion.cs b/Services/Cbr/V1/Region/CbrRegion.cs index 8fea81e..6ab31ff 100755 --- a/Services/Cbr/V1/Region/CbrRegion.cs +++ b/Services/Cbr/V1/Region/CbrRegion.cs @@ -1,6 +1,6 @@ using System; using System.Collections.Generic; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cbr.V1 { diff --git a/Services/Cbr/obj/Cbr.csproj.nuget.cache b/Services/Cbr/obj/Cbr.csproj.nuget.cache deleted file mode 100644 index d9736b8..0000000 --- a/Services/Cbr/obj/Cbr.csproj.nuget.cache +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": 1, - "dgSpecHash": "HMdqR8HiAbzUP07s+XOgLQ/+1bXMXDiqYOZEBAspd1x4jP/aRlGDH/U2Rmbk3fWDWX4WF6otDEWNL953QHKNXw==", - "success": true -} \ No newline at end of file diff --git a/Services/Cbr/obj/Cbr.csproj.nuget.dgspec.json b/Services/Cbr/obj/Cbr.csproj.nuget.dgspec.json deleted file mode 100644 index 81f49ce..0000000 --- a/Services/Cbr/obj/Cbr.csproj.nuget.dgspec.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "format": 1, - "restore": { - "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Cbr/Cbr.csproj": {} - }, - "projects": { - "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Cbr/Cbr.csproj": { - "version": "0.0.2-beta", - "restore": { - "projectUniqueName": "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Cbr/Cbr.csproj", - "projectName": "G42Cloud.SDK.Cbr", - "projectPath": "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Cbr/Cbr.csproj", - "packagesPath": "/root/.nuget/packages/", - "outputPath": "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Cbr/obj/", - "projectStyle": "PackageReference", - "fallbackFolders": [ - "/usr/dotnet2/sdk/NuGetFallbackFolder" - ], - "configFilePaths": [ - "/root/.nuget/NuGet/NuGet.Config" - ], - "originalTargetFrameworks": [ - "netstandard2.0" - ], - "sources": { - "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86": {} - }, - "frameworks": { - "netstandard2.0": { - "projectReferences": {} - } - }, - "warningProperties": { - "warnAsError": [ - "NU1605" - ] - } - }, - "frameworks": { - "netstandard2.0": { - "dependencies": { - "HuaweiCloud.SDK.Core": { - "target": "Package", - "version": "[3.1.11, )" - }, - "NETStandard.Library": { - "suppressParent": "All", - "target": "Package", - "version": "[2.0.3, )", - "autoReferenced": true - }, - "Newtonsoft.Json": { - "target": "Package", - "version": "[13.0.1, )" - } - }, - "imports": [ - "net461" - ], - "assetTargetFallback": true, - "warn": true - } - } - } - } -} \ No newline at end of file diff --git a/Services/Cbr/obj/Cbr.csproj.nuget.g.props b/Services/Cbr/obj/Cbr.csproj.nuget.g.props deleted file mode 100644 index 4d88d27..0000000 --- a/Services/Cbr/obj/Cbr.csproj.nuget.g.props +++ /dev/null @@ -1,15 +0,0 @@ - - - - True - NuGet - /data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Cbr/obj/project.assets.json - /root/.nuget/packages/ - /root/.nuget/packages/;/usr/dotnet2/sdk/NuGetFallbackFolder - PackageReference - 5.0.2 - - - $(MSBuildAllProjects);$(MSBuildThisFileFullPath) - - \ No newline at end of file diff --git a/Services/Cbr/obj/project.assets.json b/Services/Cbr/obj/project.assets.json deleted file mode 100644 index 73dec0a..0000000 --- a/Services/Cbr/obj/project.assets.json +++ /dev/null @@ -1,1134 +0,0 @@ -{ - "version": 3, - "targets": { - ".NETStandard,Version=v2.0": { - "HuaweiCloud.SDK.Core/3.1.11": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.DependencyInjection": "3.1.5", - "Microsoft.Extensions.Http": "3.1.5", - "Microsoft.Extensions.Http.Polly": "3.1.5", - "Microsoft.Extensions.Logging.Console": "3.1.5", - "Microsoft.Extensions.Logging.Debug": "3.1.5", - "Newtonsoft.Json": "13.0.1" - }, - "compile": { - "lib/netstandard2.0/HuaweiCloud.SDK.Core.dll": {} - }, - "runtime": { - "lib/netstandard2.0/HuaweiCloud.SDK.Core.dll": {} - } - }, - "Microsoft.Bcl.AsyncInterfaces/1.1.1": { - "type": "package", - "dependencies": { - "System.Threading.Tasks.Extensions": "4.5.4" - }, - "compile": { - "ref/netstandard2.0/Microsoft.Bcl.AsyncInterfaces.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Bcl.AsyncInterfaces.dll": {} - } - }, - "Microsoft.Extensions.Configuration/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.Configuration.Abstractions": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Configuration.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Configuration.dll": {} - } - }, - "Microsoft.Extensions.Configuration.Abstractions/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.Primitives": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Configuration.Abstractions.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Configuration.Abstractions.dll": {} - } - }, - "Microsoft.Extensions.Configuration.Binder/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.Configuration": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Configuration.Binder.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Configuration.Binder.dll": {} - } - }, - "Microsoft.Extensions.DependencyInjection/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Bcl.AsyncInterfaces": "1.1.1", - "Microsoft.Extensions.DependencyInjection.Abstractions": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.dll": {} - } - }, - "Microsoft.Extensions.DependencyInjection.Abstractions/3.1.5": { - "type": "package", - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll": {} - } - }, - "Microsoft.Extensions.Http/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.DependencyInjection.Abstractions": "3.1.5", - "Microsoft.Extensions.Logging": "3.1.5", - "Microsoft.Extensions.Options": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Http.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Http.dll": {} - } - }, - "Microsoft.Extensions.Http.Polly/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.Http": "3.1.5", - "Polly": "7.1.0", - "Polly.Extensions.Http": "3.0.0" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Http.Polly.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Http.Polly.dll": {} - } - }, - "Microsoft.Extensions.Logging/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.Configuration.Binder": "3.1.5", - "Microsoft.Extensions.DependencyInjection": "3.1.5", - "Microsoft.Extensions.Logging.Abstractions": "3.1.5", - "Microsoft.Extensions.Options": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.dll": {} - } - }, - "Microsoft.Extensions.Logging.Abstractions/3.1.5": { - "type": "package", - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.Abstractions.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.Abstractions.dll": {} - } - }, - "Microsoft.Extensions.Logging.Configuration/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.Logging": "3.1.5", - "Microsoft.Extensions.Options.ConfigurationExtensions": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.Configuration.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.Configuration.dll": {} - } - }, - "Microsoft.Extensions.Logging.Console/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.Configuration.Abstractions": "3.1.5", - "Microsoft.Extensions.Logging": "3.1.5", - "Microsoft.Extensions.Logging.Configuration": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.Console.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.Console.dll": {} - } - }, - "Microsoft.Extensions.Logging.Debug/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.Logging": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.Debug.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.Debug.dll": {} - } - }, - "Microsoft.Extensions.Options/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.DependencyInjection.Abstractions": "3.1.5", - "Microsoft.Extensions.Primitives": "3.1.5", - "System.ComponentModel.Annotations": "4.7.0" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Options.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Options.dll": {} - } - }, - "Microsoft.Extensions.Options.ConfigurationExtensions/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.Configuration.Abstractions": "3.1.5", - "Microsoft.Extensions.Configuration.Binder": "3.1.5", - "Microsoft.Extensions.DependencyInjection.Abstractions": "3.1.5", - "Microsoft.Extensions.Options": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Options.ConfigurationExtensions.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Options.ConfigurationExtensions.dll": {} - } - }, - "Microsoft.Extensions.Primitives/3.1.5": { - "type": "package", - "dependencies": { - "System.Memory": "4.5.2", - "System.Runtime.CompilerServices.Unsafe": "4.7.1" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Primitives.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Primitives.dll": {} - } - }, - "Microsoft.NETCore.Platforms/1.1.0": { - "type": "package", - "compile": { - "lib/netstandard1.0/_._": {} - }, - "runtime": { - "lib/netstandard1.0/_._": {} - } - }, - "NETStandard.Library/2.0.3": { - "type": "package", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0" - }, - "compile": { - "lib/netstandard1.0/_._": {} - }, - "runtime": { - "lib/netstandard1.0/_._": {} - }, - "build": { - "build/netstandard2.0/NETStandard.Library.targets": {} - } - }, - "Newtonsoft.Json/13.0.1": { - "type": "package", - "compile": { - "lib/netstandard2.0/Newtonsoft.Json.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Newtonsoft.Json.dll": {} - } - }, - "Polly/7.1.0": { - "type": "package", - "compile": { - "lib/netstandard2.0/Polly.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Polly.dll": {} - } - }, - "Polly.Extensions.Http/3.0.0": { - "type": "package", - "dependencies": { - "Polly": "7.1.0" - }, - "compile": { - "lib/netstandard2.0/Polly.Extensions.Http.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Polly.Extensions.Http.dll": {} - } - }, - "System.Buffers/4.4.0": { - "type": "package", - "compile": { - "ref/netstandard2.0/System.Buffers.dll": {} - }, - "runtime": { - "lib/netstandard2.0/System.Buffers.dll": {} - } - }, - "System.ComponentModel.Annotations/4.7.0": { - "type": "package", - "compile": { - "ref/netstandard2.0/System.ComponentModel.Annotations.dll": {} - }, - "runtime": { - "lib/netstandard2.0/System.ComponentModel.Annotations.dll": {} - } - }, - "System.Memory/4.5.2": { - "type": "package", - "dependencies": { - "System.Buffers": "4.4.0", - "System.Numerics.Vectors": "4.4.0", - "System.Runtime.CompilerServices.Unsafe": "4.5.2" - }, - "compile": { - "lib/netstandard2.0/System.Memory.dll": {} - }, - "runtime": { - "lib/netstandard2.0/System.Memory.dll": {} - } - }, - "System.Numerics.Vectors/4.4.0": { - "type": "package", - "compile": { - "ref/netstandard2.0/System.Numerics.Vectors.dll": {} - }, - "runtime": { - "lib/netstandard2.0/System.Numerics.Vectors.dll": {} - } - }, - "System.Runtime.CompilerServices.Unsafe/4.7.1": { - "type": "package", - "compile": { - "ref/netstandard2.0/System.Runtime.CompilerServices.Unsafe.dll": {} - }, - "runtime": { - "lib/netstandard2.0/System.Runtime.CompilerServices.Unsafe.dll": {} - } - }, - "System.Threading.Tasks.Extensions/4.5.4": { - "type": "package", - "dependencies": { - "System.Runtime.CompilerServices.Unsafe": "4.5.3" - }, - "compile": { - "lib/netstandard2.0/System.Threading.Tasks.Extensions.dll": {} - }, - "runtime": { - "lib/netstandard2.0/System.Threading.Tasks.Extensions.dll": {} - } - } - } - }, - "libraries": { - "HuaweiCloud.SDK.Core/3.1.11": { - "sha512": "gfSrNtvvgvmEptRbn8LinWOcd2CmDgHVHKCOG7loIczGvrVSfCWJhnJYig/St+Jb8eKMeWgu/Ms52YJbdxUu0w==", - "type": "package", - "path": "huaweicloud.sdk.core/3.1.11", - "files": [ - ".nupkg.metadata", - "LICENSE", - "huaweicloud.sdk.core.3.1.11.nupkg.sha512", - "huaweicloud.sdk.core.nuspec", - "lib/netstandard2.0/HuaweiCloud.SDK.Core.dll" - ] - }, - "Microsoft.Bcl.AsyncInterfaces/1.1.1": { - "sha512": "yuvf07qFWFqtK3P/MRkEKLhn5r2UbSpVueRziSqj0yJQIKFwG1pq9mOayK3zE5qZCTs0CbrwL9M6R8VwqyGy2w==", - "type": "package", - "path": "microsoft.bcl.asyncinterfaces/1.1.1", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "LICENSE.TXT", - "THIRD-PARTY-NOTICES.TXT", - "lib/net461/Microsoft.Bcl.AsyncInterfaces.dll", - "lib/net461/Microsoft.Bcl.AsyncInterfaces.xml", - "lib/netstandard2.0/Microsoft.Bcl.AsyncInterfaces.dll", - "lib/netstandard2.0/Microsoft.Bcl.AsyncInterfaces.xml", - "lib/netstandard2.1/Microsoft.Bcl.AsyncInterfaces.dll", - "lib/netstandard2.1/Microsoft.Bcl.AsyncInterfaces.xml", - "microsoft.bcl.asyncinterfaces.1.1.1.nupkg.sha512", - "microsoft.bcl.asyncinterfaces.nuspec", - "ref/net461/Microsoft.Bcl.AsyncInterfaces.dll", - "ref/netstandard2.0/Microsoft.Bcl.AsyncInterfaces.dll", - "ref/netstandard2.1/Microsoft.Bcl.AsyncInterfaces.dll", - "useSharedDesignerContext.txt", - "version.txt" - ] - }, - "Microsoft.Extensions.Configuration/3.1.5": { - "sha512": "LZfdAP8flK4hkaniUv6TlstDX9FXLmJMX1A4mpLghAsZxTaJIgf+nzBNiPRdy/B5Vrs74gRONX3JrIUJQrebmA==", - "type": "package", - "path": "microsoft.extensions.configuration/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Configuration.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Configuration.xml", - "lib/netstandard2.0/Microsoft.Extensions.Configuration.dll", - "lib/netstandard2.0/Microsoft.Extensions.Configuration.xml", - "microsoft.extensions.configuration.3.1.5.nupkg.sha512", - "microsoft.extensions.configuration.nuspec" - ] - }, - "Microsoft.Extensions.Configuration.Abstractions/3.1.5": { - "sha512": "VBcAk6s9izZr04WCzNqOh1Sxz2RbVSh0G79MfpHSDv16cUJtSEYEHody9ZnF71LBEktzdu6cvDFBOFMh43q0iA==", - "type": "package", - "path": "microsoft.extensions.configuration.abstractions/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Configuration.Abstractions.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Configuration.Abstractions.xml", - "lib/netstandard2.0/Microsoft.Extensions.Configuration.Abstractions.dll", - "lib/netstandard2.0/Microsoft.Extensions.Configuration.Abstractions.xml", - "microsoft.extensions.configuration.abstractions.3.1.5.nupkg.sha512", - "microsoft.extensions.configuration.abstractions.nuspec" - ] - }, - "Microsoft.Extensions.Configuration.Binder/3.1.5": { - "sha512": "ZR/zjBxkvdnnWhRoBHDT95uz1ZgJFhv1QazmKCIcDqy/RXqi+6dJ/PfxDhEnzPvk9HbkcGfFsPEu1vSIyxDqBQ==", - "type": "package", - "path": "microsoft.extensions.configuration.binder/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Configuration.Binder.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Configuration.Binder.xml", - "lib/netstandard2.0/Microsoft.Extensions.Configuration.Binder.dll", - "lib/netstandard2.0/Microsoft.Extensions.Configuration.Binder.xml", - "microsoft.extensions.configuration.binder.3.1.5.nupkg.sha512", - "microsoft.extensions.configuration.binder.nuspec" - ] - }, - "Microsoft.Extensions.DependencyInjection/3.1.5": { - "sha512": "I+RTJQi7TtenIHZqL2zr6523PYXfL88Ruu4UIVmspIxdw14GHd8zZ+2dGLSdwX7fn41Hth4d42S1e1iHWVOJyQ==", - "type": "package", - "path": "microsoft.extensions.dependencyinjection/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/net461/Microsoft.Extensions.DependencyInjection.dll", - "lib/net461/Microsoft.Extensions.DependencyInjection.xml", - "lib/netcoreapp3.1/Microsoft.Extensions.DependencyInjection.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.DependencyInjection.xml", - "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.dll", - "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.xml", - "lib/netstandard2.1/Microsoft.Extensions.DependencyInjection.dll", - "lib/netstandard2.1/Microsoft.Extensions.DependencyInjection.xml", - "microsoft.extensions.dependencyinjection.3.1.5.nupkg.sha512", - "microsoft.extensions.dependencyinjection.nuspec" - ] - }, - "Microsoft.Extensions.DependencyInjection.Abstractions/3.1.5": { - "sha512": "2VSCj2TZPMdeEi279Lawi6qJQu4+sEWizSOYrhY6hapyS1jxn1jVUZT1Ugv68bya+x8+3lD4+RqhUZql9PhISQ==", - "type": "package", - "path": "microsoft.extensions.dependencyinjection.abstractions/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll", - "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.Abstractions.xml", - "microsoft.extensions.dependencyinjection.abstractions.3.1.5.nupkg.sha512", - "microsoft.extensions.dependencyinjection.abstractions.nuspec" - ] - }, - "Microsoft.Extensions.Http/3.1.5": { - "sha512": "P8yu3UDd0X129FmxJN0/nObuuH4v7YoxK00kEs8EU4R7POa+3yp/buux74fNYTLORuEqjBTMGtV7TBszuvCj7g==", - "type": "package", - "path": "microsoft.extensions.http/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Http.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Http.xml", - "lib/netstandard2.0/Microsoft.Extensions.Http.dll", - "lib/netstandard2.0/Microsoft.Extensions.Http.xml", - "microsoft.extensions.http.3.1.5.nupkg.sha512", - "microsoft.extensions.http.nuspec" - ] - }, - "Microsoft.Extensions.Http.Polly/3.1.5": { - "sha512": "wW+kLLqoQPIg3+NQhBkqmxBAtoGJhVsQ03RAjw/Jx0oTSmaZsJY3rIlBmsrHdeKOxq19P4qRlST2wk/k5tdXhg==", - "type": "package", - "path": "microsoft.extensions.http.polly/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netstandard2.0/Microsoft.Extensions.Http.Polly.dll", - "lib/netstandard2.0/Microsoft.Extensions.Http.Polly.xml", - "microsoft.extensions.http.polly.3.1.5.nupkg.sha512", - "microsoft.extensions.http.polly.nuspec" - ] - }, - "Microsoft.Extensions.Logging/3.1.5": { - "sha512": "C85NYDym6xy03o70vxX+VQ4ZEjj5Eg5t5QoGW0t100vG5MmPL6+G3XXcQjIIn1WRQrjzGWzQwuKf38fxXEWIWA==", - "type": "package", - "path": "microsoft.extensions.logging/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Logging.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Logging.xml", - "lib/netstandard2.0/Microsoft.Extensions.Logging.dll", - "lib/netstandard2.0/Microsoft.Extensions.Logging.xml", - "microsoft.extensions.logging.3.1.5.nupkg.sha512", - "microsoft.extensions.logging.nuspec" - ] - }, - "Microsoft.Extensions.Logging.Abstractions/3.1.5": { - "sha512": "ZvwowjRSWXewdPI+whPFXgwF4Qme6Q9KV9SCPEITSGiqHLArct7q5hTBtTzj3GPsVLjTqehvTg6Bd/EQk9JS0A==", - "type": "package", - "path": "microsoft.extensions.logging.abstractions/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netstandard2.0/Microsoft.Extensions.Logging.Abstractions.dll", - "lib/netstandard2.0/Microsoft.Extensions.Logging.Abstractions.xml", - "microsoft.extensions.logging.abstractions.3.1.5.nupkg.sha512", - "microsoft.extensions.logging.abstractions.nuspec" - ] - }, - "Microsoft.Extensions.Logging.Configuration/3.1.5": { - "sha512": "I+9jx/A9cLdkTmynKMa2oR4rYAfe3n2F/wNVvKxwIk2J33paEU13Se08Q5xvQisqfbumaRUNF7BWHr63JzuuRw==", - "type": "package", - "path": "microsoft.extensions.logging.configuration/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Logging.Configuration.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Logging.Configuration.xml", - "lib/netstandard2.0/Microsoft.Extensions.Logging.Configuration.dll", - "lib/netstandard2.0/Microsoft.Extensions.Logging.Configuration.xml", - "microsoft.extensions.logging.configuration.3.1.5.nupkg.sha512", - "microsoft.extensions.logging.configuration.nuspec" - ] - }, - "Microsoft.Extensions.Logging.Console/3.1.5": { - "sha512": "c/W7d9sjgyU0/3txj/i6pC+8f25Jbua7zKhHVHidC5hHL4OX8fAxSGPBWYOsRN4tXqpd5VphNmIFUWyT12fMoA==", - "type": "package", - "path": "microsoft.extensions.logging.console/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Logging.Console.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Logging.Console.xml", - "lib/netstandard2.0/Microsoft.Extensions.Logging.Console.dll", - "lib/netstandard2.0/Microsoft.Extensions.Logging.Console.xml", - "microsoft.extensions.logging.console.3.1.5.nupkg.sha512", - "microsoft.extensions.logging.console.nuspec" - ] - }, - "Microsoft.Extensions.Logging.Debug/3.1.5": { - "sha512": "oDs0vlr6tNm0Z4U81eiCvnX+9zSP1CBAIGNAnpKidLb1KzbX26UGI627TfuIEtvW9wYiQWqZtmwMMK9WHE8Dqg==", - "type": "package", - "path": "microsoft.extensions.logging.debug/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Logging.Debug.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Logging.Debug.xml", - "lib/netstandard2.0/Microsoft.Extensions.Logging.Debug.dll", - "lib/netstandard2.0/Microsoft.Extensions.Logging.Debug.xml", - "microsoft.extensions.logging.debug.3.1.5.nupkg.sha512", - "microsoft.extensions.logging.debug.nuspec" - ] - }, - "Microsoft.Extensions.Options/3.1.5": { - "sha512": "f+JT/7lkKBMp/Ak2tVjO+TD7o+UoCfjnExkZNn0PZIso8kIXrqNy6x42Lrxf4Q0pW3JMf9ExmL2EQlvk2XnFAg==", - "type": "package", - "path": "microsoft.extensions.options/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Options.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Options.xml", - "lib/netstandard2.0/Microsoft.Extensions.Options.dll", - "lib/netstandard2.0/Microsoft.Extensions.Options.xml", - "microsoft.extensions.options.3.1.5.nupkg.sha512", - "microsoft.extensions.options.nuspec" - ] - }, - "Microsoft.Extensions.Options.ConfigurationExtensions/3.1.5": { - "sha512": "mgM+JHFeRg3zSRjScVADU/mohY8s0czKRTNT9oszWgX1mlw419yqP6ITCXovPopMXiqzRdkZ7AEuErX9K+ROww==", - "type": "package", - "path": "microsoft.extensions.options.configurationextensions/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Options.ConfigurationExtensions.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Options.ConfigurationExtensions.xml", - "lib/netstandard2.0/Microsoft.Extensions.Options.ConfigurationExtensions.dll", - "lib/netstandard2.0/Microsoft.Extensions.Options.ConfigurationExtensions.xml", - "microsoft.extensions.options.configurationextensions.3.1.5.nupkg.sha512", - "microsoft.extensions.options.configurationextensions.nuspec" - ] - }, - "Microsoft.Extensions.Primitives/3.1.5": { - "sha512": "6bLdjSAQix82oP2tsuX9MM2yjgUFFOkSZYyRSKoUULilw2cg0Y0H+dnugwYlfj8Jd7yjd/+QSdNBqEyYhTYv0w==", - "type": "package", - "path": "microsoft.extensions.primitives/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Primitives.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Primitives.xml", - "lib/netstandard2.0/Microsoft.Extensions.Primitives.dll", - "lib/netstandard2.0/Microsoft.Extensions.Primitives.xml", - "microsoft.extensions.primitives.3.1.5.nupkg.sha512", - "microsoft.extensions.primitives.nuspec" - ] - }, - "Microsoft.NETCore.Platforms/1.1.0": { - "sha512": "kz0PEW2lhqygehI/d6XsPCQzD7ff7gUJaVGPVETX611eadGsA3A877GdSlU0LRVMCTH/+P3o2iDTak+S08V2+A==", - "type": "package", - "path": "microsoft.netcore.platforms/1.1.0", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "ThirdPartyNotices.txt", - "dotnet_library_license.txt", - "lib/netstandard1.0/_._", - "microsoft.netcore.platforms.1.1.0.nupkg.sha512", - "microsoft.netcore.platforms.nuspec", - "runtime.json" - ] - }, - "NETStandard.Library/2.0.3": { - "sha512": "st47PosZSHrjECdjeIzZQbzivYBJFv6P2nv4cj2ypdI204DO+vZ7l5raGMiX4eXMJ53RfOIg+/s4DHVZ54Nu2A==", - "type": "package", - "path": "netstandard.library/2.0.3", - "files": [ - ".nupkg.metadata", - "LICENSE.TXT", - "THIRD-PARTY-NOTICES.TXT", - "build/netstandard2.0/NETStandard.Library.targets", - "build/netstandard2.0/ref/Microsoft.Win32.Primitives.dll", - "build/netstandard2.0/ref/System.AppContext.dll", - "build/netstandard2.0/ref/System.Collections.Concurrent.dll", - "build/netstandard2.0/ref/System.Collections.NonGeneric.dll", - "build/netstandard2.0/ref/System.Collections.Specialized.dll", - "build/netstandard2.0/ref/System.Collections.dll", - "build/netstandard2.0/ref/System.ComponentModel.Composition.dll", - "build/netstandard2.0/ref/System.ComponentModel.EventBasedAsync.dll", - "build/netstandard2.0/ref/System.ComponentModel.Primitives.dll", - "build/netstandard2.0/ref/System.ComponentModel.TypeConverter.dll", - "build/netstandard2.0/ref/System.ComponentModel.dll", - "build/netstandard2.0/ref/System.Console.dll", - "build/netstandard2.0/ref/System.Core.dll", - "build/netstandard2.0/ref/System.Data.Common.dll", - "build/netstandard2.0/ref/System.Data.dll", - "build/netstandard2.0/ref/System.Diagnostics.Contracts.dll", - "build/netstandard2.0/ref/System.Diagnostics.Debug.dll", - "build/netstandard2.0/ref/System.Diagnostics.FileVersionInfo.dll", - "build/netstandard2.0/ref/System.Diagnostics.Process.dll", - "build/netstandard2.0/ref/System.Diagnostics.StackTrace.dll", - "build/netstandard2.0/ref/System.Diagnostics.TextWriterTraceListener.dll", - "build/netstandard2.0/ref/System.Diagnostics.Tools.dll", - "build/netstandard2.0/ref/System.Diagnostics.TraceSource.dll", - "build/netstandard2.0/ref/System.Diagnostics.Tracing.dll", - "build/netstandard2.0/ref/System.Drawing.Primitives.dll", - "build/netstandard2.0/ref/System.Drawing.dll", - "build/netstandard2.0/ref/System.Dynamic.Runtime.dll", - "build/netstandard2.0/ref/System.Globalization.Calendars.dll", - "build/netstandard2.0/ref/System.Globalization.Extensions.dll", - "build/netstandard2.0/ref/System.Globalization.dll", - "build/netstandard2.0/ref/System.IO.Compression.FileSystem.dll", - "build/netstandard2.0/ref/System.IO.Compression.ZipFile.dll", - "build/netstandard2.0/ref/System.IO.Compression.dll", - "build/netstandard2.0/ref/System.IO.FileSystem.DriveInfo.dll", - "build/netstandard2.0/ref/System.IO.FileSystem.Primitives.dll", - "build/netstandard2.0/ref/System.IO.FileSystem.Watcher.dll", - "build/netstandard2.0/ref/System.IO.FileSystem.dll", - "build/netstandard2.0/ref/System.IO.IsolatedStorage.dll", - "build/netstandard2.0/ref/System.IO.MemoryMappedFiles.dll", - "build/netstandard2.0/ref/System.IO.Pipes.dll", - "build/netstandard2.0/ref/System.IO.UnmanagedMemoryStream.dll", - "build/netstandard2.0/ref/System.IO.dll", - "build/netstandard2.0/ref/System.Linq.Expressions.dll", - "build/netstandard2.0/ref/System.Linq.Parallel.dll", - "build/netstandard2.0/ref/System.Linq.Queryable.dll", - "build/netstandard2.0/ref/System.Linq.dll", - "build/netstandard2.0/ref/System.Net.Http.dll", - "build/netstandard2.0/ref/System.Net.NameResolution.dll", - "build/netstandard2.0/ref/System.Net.NetworkInformation.dll", - "build/netstandard2.0/ref/System.Net.Ping.dll", - "build/netstandard2.0/ref/System.Net.Primitives.dll", - "build/netstandard2.0/ref/System.Net.Requests.dll", - "build/netstandard2.0/ref/System.Net.Security.dll", - "build/netstandard2.0/ref/System.Net.Sockets.dll", - "build/netstandard2.0/ref/System.Net.WebHeaderCollection.dll", - "build/netstandard2.0/ref/System.Net.WebSockets.Client.dll", - "build/netstandard2.0/ref/System.Net.WebSockets.dll", - "build/netstandard2.0/ref/System.Net.dll", - "build/netstandard2.0/ref/System.Numerics.dll", - "build/netstandard2.0/ref/System.ObjectModel.dll", - "build/netstandard2.0/ref/System.Reflection.Extensions.dll", - "build/netstandard2.0/ref/System.Reflection.Primitives.dll", - "build/netstandard2.0/ref/System.Reflection.dll", - "build/netstandard2.0/ref/System.Resources.Reader.dll", - "build/netstandard2.0/ref/System.Resources.ResourceManager.dll", - "build/netstandard2.0/ref/System.Resources.Writer.dll", - "build/netstandard2.0/ref/System.Runtime.CompilerServices.VisualC.dll", - "build/netstandard2.0/ref/System.Runtime.Extensions.dll", - "build/netstandard2.0/ref/System.Runtime.Handles.dll", - "build/netstandard2.0/ref/System.Runtime.InteropServices.RuntimeInformation.dll", - "build/netstandard2.0/ref/System.Runtime.InteropServices.dll", - "build/netstandard2.0/ref/System.Runtime.Numerics.dll", - "build/netstandard2.0/ref/System.Runtime.Serialization.Formatters.dll", - "build/netstandard2.0/ref/System.Runtime.Serialization.Json.dll", - "build/netstandard2.0/ref/System.Runtime.Serialization.Primitives.dll", - "build/netstandard2.0/ref/System.Runtime.Serialization.Xml.dll", - "build/netstandard2.0/ref/System.Runtime.Serialization.dll", - "build/netstandard2.0/ref/System.Runtime.dll", - "build/netstandard2.0/ref/System.Security.Claims.dll", - "build/netstandard2.0/ref/System.Security.Cryptography.Algorithms.dll", - "build/netstandard2.0/ref/System.Security.Cryptography.Csp.dll", - "build/netstandard2.0/ref/System.Security.Cryptography.Encoding.dll", - "build/netstandard2.0/ref/System.Security.Cryptography.Primitives.dll", - "build/netstandard2.0/ref/System.Security.Cryptography.X509Certificates.dll", - "build/netstandard2.0/ref/System.Security.Principal.dll", - "build/netstandard2.0/ref/System.Security.SecureString.dll", - "build/netstandard2.0/ref/System.ServiceModel.Web.dll", - "build/netstandard2.0/ref/System.Text.Encoding.Extensions.dll", - "build/netstandard2.0/ref/System.Text.Encoding.dll", - "build/netstandard2.0/ref/System.Text.RegularExpressions.dll", - "build/netstandard2.0/ref/System.Threading.Overlapped.dll", - "build/netstandard2.0/ref/System.Threading.Tasks.Parallel.dll", - "build/netstandard2.0/ref/System.Threading.Tasks.dll", - "build/netstandard2.0/ref/System.Threading.Thread.dll", - "build/netstandard2.0/ref/System.Threading.ThreadPool.dll", - "build/netstandard2.0/ref/System.Threading.Timer.dll", - "build/netstandard2.0/ref/System.Threading.dll", - "build/netstandard2.0/ref/System.Transactions.dll", - "build/netstandard2.0/ref/System.ValueTuple.dll", - "build/netstandard2.0/ref/System.Web.dll", - "build/netstandard2.0/ref/System.Windows.dll", - "build/netstandard2.0/ref/System.Xml.Linq.dll", - "build/netstandard2.0/ref/System.Xml.ReaderWriter.dll", - "build/netstandard2.0/ref/System.Xml.Serialization.dll", - "build/netstandard2.0/ref/System.Xml.XDocument.dll", - "build/netstandard2.0/ref/System.Xml.XPath.XDocument.dll", - "build/netstandard2.0/ref/System.Xml.XPath.dll", - "build/netstandard2.0/ref/System.Xml.XmlDocument.dll", - "build/netstandard2.0/ref/System.Xml.XmlSerializer.dll", - "build/netstandard2.0/ref/System.Xml.dll", - "build/netstandard2.0/ref/System.dll", - "build/netstandard2.0/ref/mscorlib.dll", - "build/netstandard2.0/ref/netstandard.dll", - "build/netstandard2.0/ref/netstandard.xml", - "lib/netstandard1.0/_._", - "netstandard.library.2.0.3.nupkg.sha512", - "netstandard.library.nuspec" - ] - }, - "Newtonsoft.Json/13.0.1": { - "sha512": "ppPFpBcvxdsfUonNcvITKqLl3bqxWbDCZIzDWHzjpdAHRFfZe0Dw9HmA0+za13IdyrgJwpkDTDA9fHaxOrt20A==", - "type": "package", - "path": "newtonsoft.json/13.0.1", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "LICENSE.md", - "lib/net20/Newtonsoft.Json.dll", - "lib/net20/Newtonsoft.Json.xml", - "lib/net35/Newtonsoft.Json.dll", - "lib/net35/Newtonsoft.Json.xml", - "lib/net40/Newtonsoft.Json.dll", - "lib/net40/Newtonsoft.Json.xml", - "lib/net45/Newtonsoft.Json.dll", - "lib/net45/Newtonsoft.Json.xml", - "lib/netstandard1.0/Newtonsoft.Json.dll", - "lib/netstandard1.0/Newtonsoft.Json.xml", - "lib/netstandard1.3/Newtonsoft.Json.dll", - "lib/netstandard1.3/Newtonsoft.Json.xml", - "lib/netstandard2.0/Newtonsoft.Json.dll", - "lib/netstandard2.0/Newtonsoft.Json.xml", - "newtonsoft.json.13.0.1.nupkg.sha512", - "newtonsoft.json.nuspec", - "packageIcon.png" - ] - }, - "Polly/7.1.0": { - "sha512": "mpQsvlEn4ipgICh5CGyVLPV93RFVzOrBG7wPZfzY8gExh7XgWQn0GCDY9nudbUEJ12UiGPP9i4+CohghBvzhmg==", - "type": "package", - "path": "polly/7.1.0", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "lib/netstandard1.1/Polly.dll", - "lib/netstandard1.1/Polly.xml", - "lib/netstandard2.0/Polly.dll", - "lib/netstandard2.0/Polly.xml", - "polly.7.1.0.nupkg.sha512", - "polly.nuspec" - ] - }, - "Polly.Extensions.Http/3.0.0": { - "sha512": "drrG+hB3pYFY7w1c3BD+lSGYvH2oIclH8GRSehgfyP5kjnFnHKQuuBhuHLv+PWyFuaTDyk/vfRpnxOzd11+J8g==", - "type": "package", - "path": "polly.extensions.http/3.0.0", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "lib/netstandard1.1/Polly.Extensions.Http.dll", - "lib/netstandard1.1/Polly.Extensions.Http.xml", - "lib/netstandard2.0/Polly.Extensions.Http.dll", - "lib/netstandard2.0/Polly.Extensions.Http.xml", - "polly.extensions.http.3.0.0.nupkg.sha512", - "polly.extensions.http.nuspec" - ] - }, - "System.Buffers/4.4.0": { - "sha512": "AwarXzzoDwX6BgrhjoJsk6tUezZEozOT5Y9QKF94Gl4JK91I4PIIBkBco9068Y9/Dra8Dkbie99kXB8+1BaYKw==", - "type": "package", - "path": "system.buffers/4.4.0", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "LICENSE.TXT", - "THIRD-PARTY-NOTICES.TXT", - "lib/netcoreapp2.0/_._", - "lib/netstandard1.1/System.Buffers.dll", - "lib/netstandard1.1/System.Buffers.xml", - "lib/netstandard2.0/System.Buffers.dll", - "lib/netstandard2.0/System.Buffers.xml", - "ref/netcoreapp2.0/_._", - "ref/netstandard1.1/System.Buffers.dll", - "ref/netstandard1.1/System.Buffers.xml", - "ref/netstandard2.0/System.Buffers.dll", - "ref/netstandard2.0/System.Buffers.xml", - "system.buffers.4.4.0.nupkg.sha512", - "system.buffers.nuspec", - "useSharedDesignerContext.txt", - "version.txt" - ] - }, - "System.ComponentModel.Annotations/4.7.0": { - "sha512": "0YFqjhp/mYkDGpU0Ye1GjE53HMp9UVfGN7seGpAMttAC0C40v5gw598jCgpbBLMmCo0E5YRLBv5Z2doypO49ZQ==", - "type": "package", - "path": "system.componentmodel.annotations/4.7.0", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "LICENSE.TXT", - "THIRD-PARTY-NOTICES.TXT", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net45/_._", - "lib/net461/System.ComponentModel.Annotations.dll", - "lib/netcore50/System.ComponentModel.Annotations.dll", - "lib/netstandard1.4/System.ComponentModel.Annotations.dll", - "lib/netstandard2.0/System.ComponentModel.Annotations.dll", - "lib/netstandard2.1/System.ComponentModel.Annotations.dll", - "lib/netstandard2.1/System.ComponentModel.Annotations.xml", - "lib/portable-net45+win8/_._", - "lib/win8/_._", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net45/_._", - "ref/net461/System.ComponentModel.Annotations.dll", - "ref/net461/System.ComponentModel.Annotations.xml", - "ref/netcore50/System.ComponentModel.Annotations.dll", - "ref/netcore50/System.ComponentModel.Annotations.xml", - "ref/netcore50/de/System.ComponentModel.Annotations.xml", - "ref/netcore50/es/System.ComponentModel.Annotations.xml", - "ref/netcore50/fr/System.ComponentModel.Annotations.xml", - "ref/netcore50/it/System.ComponentModel.Annotations.xml", - "ref/netcore50/ja/System.ComponentModel.Annotations.xml", - "ref/netcore50/ko/System.ComponentModel.Annotations.xml", - "ref/netcore50/ru/System.ComponentModel.Annotations.xml", - "ref/netcore50/zh-hans/System.ComponentModel.Annotations.xml", - "ref/netcore50/zh-hant/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/System.ComponentModel.Annotations.dll", - "ref/netstandard1.1/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/de/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/es/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/fr/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/it/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/ja/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/ko/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/ru/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/zh-hans/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/zh-hant/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/System.ComponentModel.Annotations.dll", - "ref/netstandard1.3/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/de/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/es/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/fr/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/it/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/ja/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/ko/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/ru/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/zh-hans/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/zh-hant/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/System.ComponentModel.Annotations.dll", - "ref/netstandard1.4/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/de/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/es/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/fr/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/it/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/ja/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/ko/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/ru/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/zh-hans/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/zh-hant/System.ComponentModel.Annotations.xml", - "ref/netstandard2.0/System.ComponentModel.Annotations.dll", - "ref/netstandard2.0/System.ComponentModel.Annotations.xml", - "ref/netstandard2.1/System.ComponentModel.Annotations.dll", - "ref/netstandard2.1/System.ComponentModel.Annotations.xml", - "ref/portable-net45+win8/_._", - "ref/win8/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._", - "system.componentmodel.annotations.4.7.0.nupkg.sha512", - "system.componentmodel.annotations.nuspec", - "useSharedDesignerContext.txt", - "version.txt" - ] - }, - "System.Memory/4.5.2": { - "sha512": "fvq1GNmUFwbKv+aLVYYdgu/+gc8Nu9oFujOxIjPrsf+meis9JBzTPDL6aP/eeGOz9yPj6rRLUbOjKMpsMEWpNg==", - "type": "package", - "path": "system.memory/4.5.2", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "LICENSE.TXT", - "THIRD-PARTY-NOTICES.TXT", - "lib/netcoreapp2.1/_._", - "lib/netstandard1.1/System.Memory.dll", - "lib/netstandard1.1/System.Memory.xml", - "lib/netstandard2.0/System.Memory.dll", - "lib/netstandard2.0/System.Memory.xml", - "ref/netcoreapp2.1/_._", - "system.memory.4.5.2.nupkg.sha512", - "system.memory.nuspec", - "useSharedDesignerContext.txt", - "version.txt" - ] - }, - "System.Numerics.Vectors/4.4.0": { - "sha512": "UiLzLW+Lw6HLed1Hcg+8jSRttrbuXv7DANVj0DkL9g6EnnzbL75EB7EWsw5uRbhxd/4YdG8li5XizGWepmG3PQ==", - "type": "package", - "path": "system.numerics.vectors/4.4.0", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "LICENSE.TXT", - "THIRD-PARTY-NOTICES.TXT", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net46/System.Numerics.Vectors.dll", - "lib/net46/System.Numerics.Vectors.xml", - "lib/netcoreapp2.0/_._", - "lib/netstandard1.0/System.Numerics.Vectors.dll", - "lib/netstandard1.0/System.Numerics.Vectors.xml", - "lib/netstandard2.0/System.Numerics.Vectors.dll", - "lib/netstandard2.0/System.Numerics.Vectors.xml", - "lib/portable-net45+win8+wp8+wpa81/System.Numerics.Vectors.dll", - "lib/portable-net45+win8+wp8+wpa81/System.Numerics.Vectors.xml", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net46/System.Numerics.Vectors.dll", - "ref/net46/System.Numerics.Vectors.xml", - "ref/netcoreapp2.0/_._", - "ref/netstandard1.0/System.Numerics.Vectors.dll", - "ref/netstandard1.0/System.Numerics.Vectors.xml", - "ref/netstandard2.0/System.Numerics.Vectors.dll", - "ref/netstandard2.0/System.Numerics.Vectors.xml", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._", - "system.numerics.vectors.4.4.0.nupkg.sha512", - "system.numerics.vectors.nuspec", - "useSharedDesignerContext.txt", - "version.txt" - ] - }, - "System.Runtime.CompilerServices.Unsafe/4.7.1": { - "sha512": "zOHkQmzPCn5zm/BH+cxC1XbUS3P4Yoi3xzW7eRgVpDR2tPGSzyMZ17Ig1iRkfJuY0nhxkQQde8pgePNiA7z7TQ==", - "type": "package", - "path": "system.runtime.compilerservices.unsafe/4.7.1", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "LICENSE.TXT", - "THIRD-PARTY-NOTICES.TXT", - "lib/net461/System.Runtime.CompilerServices.Unsafe.dll", - "lib/net461/System.Runtime.CompilerServices.Unsafe.xml", - "lib/netcoreapp2.0/System.Runtime.CompilerServices.Unsafe.dll", - "lib/netcoreapp2.0/System.Runtime.CompilerServices.Unsafe.xml", - "lib/netstandard1.0/System.Runtime.CompilerServices.Unsafe.dll", - "lib/netstandard1.0/System.Runtime.CompilerServices.Unsafe.xml", - "lib/netstandard2.0/System.Runtime.CompilerServices.Unsafe.dll", - "lib/netstandard2.0/System.Runtime.CompilerServices.Unsafe.xml", - "ref/net461/System.Runtime.CompilerServices.Unsafe.dll", - "ref/net461/System.Runtime.CompilerServices.Unsafe.xml", - "ref/netstandard1.0/System.Runtime.CompilerServices.Unsafe.dll", - "ref/netstandard1.0/System.Runtime.CompilerServices.Unsafe.xml", - "ref/netstandard2.0/System.Runtime.CompilerServices.Unsafe.dll", - "ref/netstandard2.0/System.Runtime.CompilerServices.Unsafe.xml", - "system.runtime.compilerservices.unsafe.4.7.1.nupkg.sha512", - "system.runtime.compilerservices.unsafe.nuspec", - "useSharedDesignerContext.txt", - "version.txt" - ] - }, - "System.Threading.Tasks.Extensions/4.5.4": { - "sha512": "zteT+G8xuGu6mS+mzDzYXbzS7rd3K6Fjb9RiZlYlJPam2/hU7JCBZBVEcywNuR+oZ1ncTvc/cq0faRr3P01OVg==", - "type": "package", - "path": "system.threading.tasks.extensions/4.5.4", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "LICENSE.TXT", - "THIRD-PARTY-NOTICES.TXT", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net461/System.Threading.Tasks.Extensions.dll", - "lib/net461/System.Threading.Tasks.Extensions.xml", - "lib/netcoreapp2.1/_._", - "lib/netstandard1.0/System.Threading.Tasks.Extensions.dll", - "lib/netstandard1.0/System.Threading.Tasks.Extensions.xml", - "lib/netstandard2.0/System.Threading.Tasks.Extensions.dll", - "lib/netstandard2.0/System.Threading.Tasks.Extensions.xml", - "lib/portable-net45+win8+wp8+wpa81/System.Threading.Tasks.Extensions.dll", - "lib/portable-net45+win8+wp8+wpa81/System.Threading.Tasks.Extensions.xml", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/netcoreapp2.1/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._", - "system.threading.tasks.extensions.4.5.4.nupkg.sha512", - "system.threading.tasks.extensions.nuspec", - "useSharedDesignerContext.txt", - "version.txt" - ] - } - }, - "projectFileDependencyGroups": { - ".NETStandard,Version=v2.0": [ - "HuaweiCloud.SDK.Core >= 3.1.11", - "NETStandard.Library >= 2.0.3", - "Newtonsoft.Json >= 13.0.1" - ] - }, - "packageFolders": { - "/root/.nuget/packages/": {}, - "/usr/dotnet2/sdk/NuGetFallbackFolder": {} - }, - "project": { - "version": "0.0.2-beta", - "restore": { - "projectUniqueName": "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Cbr/Cbr.csproj", - "projectName": "G42Cloud.SDK.Cbr", - "projectPath": "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Cbr/Cbr.csproj", - "packagesPath": "/root/.nuget/packages/", - "outputPath": "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Cbr/obj/", - "projectStyle": "PackageReference", - "fallbackFolders": [ - "/usr/dotnet2/sdk/NuGetFallbackFolder" - ], - "configFilePaths": [ - "/root/.nuget/NuGet/NuGet.Config" - ], - "originalTargetFrameworks": [ - "netstandard2.0" - ], - "sources": { - "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86": {} - }, - "frameworks": { - "netstandard2.0": { - "projectReferences": {} - } - }, - "warningProperties": { - "warnAsError": [ - "NU1605" - ] - } - }, - "frameworks": { - "netstandard2.0": { - "dependencies": { - "HuaweiCloud.SDK.Core": { - "target": "Package", - "version": "[3.1.11, )" - }, - "NETStandard.Library": { - "suppressParent": "All", - "target": "Package", - "version": "[2.0.3, )", - "autoReferenced": true - }, - "Newtonsoft.Json": { - "target": "Package", - "version": "[13.0.1, )" - } - }, - "imports": [ - "net461" - ], - "assetTargetFallback": true, - "warn": true - } - } - } -} \ No newline at end of file diff --git a/Services/Cce/Cce.csproj b/Services/Cce/Cce.csproj index 8a7f61b..288c846 100755 --- a/Services/Cce/Cce.csproj +++ b/Services/Cce/Cce.csproj @@ -15,7 +15,7 @@ false false G42Cloud.SDK.Cce - 0.0.2-beta + 0.0.3-beta G42Cloud Copyright 2020 G42 Technologies Co., Ltd. G42 Technologies Co., Ltd. @@ -24,7 +24,7 @@ - + diff --git a/Services/Cce/V3/CceAsyncClient.cs b/Services/Cce/V3/CceAsyncClient.cs index e408687..73345c5 100755 --- a/Services/Cce/V3/CceAsyncClient.cs +++ b/Services/Cce/V3/CceAsyncClient.cs @@ -1,7 +1,7 @@ using System.Net.Http; using System.Collections.Generic; using System.Threading.Tasks; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; using G42Cloud.SDK.Cce.V3.Model; namespace G42Cloud.SDK.Cce.V3 diff --git a/Services/Cce/V3/CceClient.cs b/Services/Cce/V3/CceClient.cs index 16c10d4..88ff202 100755 --- a/Services/Cce/V3/CceClient.cs +++ b/Services/Cce/V3/CceClient.cs @@ -1,6 +1,6 @@ using System.Net.Http; using System.Collections.Generic; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; using G42Cloud.SDK.Cce.V3.Model; namespace G42Cloud.SDK.Cce.V3 diff --git a/Services/Cce/V3/Model/AddonInstance.cs b/Services/Cce/V3/Model/AddonInstance.cs index c664bb0..b299ad9 100755 --- a/Services/Cce/V3/Model/AddonInstance.cs +++ b/Services/Cce/V3/Model/AddonInstance.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/AddonInstanceStatus.cs b/Services/Cce/V3/Model/AddonInstanceStatus.cs index 7b64f85..7239f19 100755 --- a/Services/Cce/V3/Model/AddonInstanceStatus.cs +++ b/Services/Cce/V3/Model/AddonInstanceStatus.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { @@ -88,11 +89,16 @@ public class StatusEnum { "rollbacking", ROLLBACKING }, }; - private string Value; + private string _value; + + public StatusEnum() + { + + } public StatusEnum(string value) { - Value = value; + _value = value; } public static StatusEnum FromValue(string value) @@ -111,17 +117,17 @@ public static StatusEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -150,7 +156,7 @@ public bool Equals(StatusEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(StatusEnum a, StatusEnum b) diff --git a/Services/Cce/V3/Model/AddonTemplate.cs b/Services/Cce/V3/Model/AddonTemplate.cs index b489f31..6a4040c 100755 --- a/Services/Cce/V3/Model/AddonTemplate.cs +++ b/Services/Cce/V3/Model/AddonTemplate.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/AuthenticatingProxy.cs b/Services/Cce/V3/Model/AuthenticatingProxy.cs index 445e348..3e40dbf 100755 --- a/Services/Cce/V3/Model/AuthenticatingProxy.cs +++ b/Services/Cce/V3/Model/AuthenticatingProxy.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/Authentication.cs b/Services/Cce/V3/Model/Authentication.cs index 4495a92..b5836a2 100755 --- a/Services/Cce/V3/Model/Authentication.cs +++ b/Services/Cce/V3/Model/Authentication.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/AwakeClusterRequest.cs b/Services/Cce/V3/Model/AwakeClusterRequest.cs index c1ba872..0de2342 100755 --- a/Services/Cce/V3/Model/AwakeClusterRequest.cs +++ b/Services/Cce/V3/Model/AwakeClusterRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/AwakeClusterResponse.cs b/Services/Cce/V3/Model/AwakeClusterResponse.cs index efbea13..4a2a9f2 100755 --- a/Services/Cce/V3/Model/AwakeClusterResponse.cs +++ b/Services/Cce/V3/Model/AwakeClusterResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/CertDuration.cs b/Services/Cce/V3/Model/CertDuration.cs index 45d603c..84b21f1 100755 --- a/Services/Cce/V3/Model/CertDuration.cs +++ b/Services/Cce/V3/Model/CertDuration.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/Cluster.cs b/Services/Cce/V3/Model/Cluster.cs index f7d9e68..5b5fc2f 100755 --- a/Services/Cce/V3/Model/Cluster.cs +++ b/Services/Cce/V3/Model/Cluster.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/ClusterCert.cs b/Services/Cce/V3/Model/ClusterCert.cs index 8faaa1e..ea2e178 100755 --- a/Services/Cce/V3/Model/ClusterCert.cs +++ b/Services/Cce/V3/Model/ClusterCert.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/ClusterEndpoints.cs b/Services/Cce/V3/Model/ClusterEndpoints.cs index 14c4310..f1cb87b 100755 --- a/Services/Cce/V3/Model/ClusterEndpoints.cs +++ b/Services/Cce/V3/Model/ClusterEndpoints.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/ClusterExtendParam.cs b/Services/Cce/V3/Model/ClusterExtendParam.cs index 5bc9c16..b490f63 100755 --- a/Services/Cce/V3/Model/ClusterExtendParam.cs +++ b/Services/Cce/V3/Model/ClusterExtendParam.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/ClusterInformation.cs b/Services/Cce/V3/Model/ClusterInformation.cs index 38e53a6..d8827fb 100755 --- a/Services/Cce/V3/Model/ClusterInformation.cs +++ b/Services/Cce/V3/Model/ClusterInformation.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/ClusterInformationSpec.cs b/Services/Cce/V3/Model/ClusterInformationSpec.cs index b4a9f57..53a308f 100755 --- a/Services/Cce/V3/Model/ClusterInformationSpec.cs +++ b/Services/Cce/V3/Model/ClusterInformationSpec.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/ClusterMetadata.cs b/Services/Cce/V3/Model/ClusterMetadata.cs index cb9c64e..4048326 100755 --- a/Services/Cce/V3/Model/ClusterMetadata.cs +++ b/Services/Cce/V3/Model/ClusterMetadata.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/ClusterNodeInformation.cs b/Services/Cce/V3/Model/ClusterNodeInformation.cs index 4d641db..1f7baca 100755 --- a/Services/Cce/V3/Model/ClusterNodeInformation.cs +++ b/Services/Cce/V3/Model/ClusterNodeInformation.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/ClusterNodeInformationMetadata.cs b/Services/Cce/V3/Model/ClusterNodeInformationMetadata.cs index 24fb329..287633b 100755 --- a/Services/Cce/V3/Model/ClusterNodeInformationMetadata.cs +++ b/Services/Cce/V3/Model/ClusterNodeInformationMetadata.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/ClusterSpec.cs b/Services/Cce/V3/Model/ClusterSpec.cs index 698a3e5..55c2b81 100755 --- a/Services/Cce/V3/Model/ClusterSpec.cs +++ b/Services/Cce/V3/Model/ClusterSpec.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { @@ -34,11 +35,16 @@ public class CategoryEnum { "Turbo", TURBO }, }; - private string Value; + private string _value; + + public CategoryEnum() + { + + } public CategoryEnum(string value) { - Value = value; + _value = value; } public static CategoryEnum FromValue(string value) @@ -57,17 +63,17 @@ public static CategoryEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -96,7 +102,7 @@ public bool Equals(CategoryEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(CategoryEnum a, CategoryEnum b) @@ -140,11 +146,16 @@ public class TypeEnum { "ARM64", ARM64 }, }; - private string Value; + private string _value; + + public TypeEnum() + { + + } public TypeEnum(string value) { - Value = value; + _value = value; } public static TypeEnum FromValue(string value) @@ -163,17 +174,17 @@ public static TypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -202,7 +213,7 @@ public bool Equals(TypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(TypeEnum a, TypeEnum b) @@ -246,11 +257,16 @@ public class KubeProxyModeEnum { "ipvs", IPVS }, }; - private string Value; + private string _value; + + public KubeProxyModeEnum() + { + + } public KubeProxyModeEnum(string value) { - Value = value; + _value = value; } public static KubeProxyModeEnum FromValue(string value) @@ -269,17 +285,17 @@ public static KubeProxyModeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -308,7 +324,7 @@ public bool Equals(KubeProxyModeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(KubeProxyModeEnum a, KubeProxyModeEnum b) diff --git a/Services/Cce/V3/Model/ClusterStatus.cs b/Services/Cce/V3/Model/ClusterStatus.cs index 04cdb8c..8c20d5f 100755 --- a/Services/Cce/V3/Model/ClusterStatus.cs +++ b/Services/Cce/V3/Model/ClusterStatus.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/Clusters.cs b/Services/Cce/V3/Model/Clusters.cs index f48b847..8642704 100755 --- a/Services/Cce/V3/Model/Clusters.cs +++ b/Services/Cce/V3/Model/Clusters.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/ContainerCIDR.cs b/Services/Cce/V3/Model/ContainerCIDR.cs index 3f89684..8f48897 100755 --- a/Services/Cce/V3/Model/ContainerCIDR.cs +++ b/Services/Cce/V3/Model/ContainerCIDR.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/ContainerNetwork.cs b/Services/Cce/V3/Model/ContainerNetwork.cs index 3117216..670cd2c 100755 --- a/Services/Cce/V3/Model/ContainerNetwork.cs +++ b/Services/Cce/V3/Model/ContainerNetwork.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { @@ -40,11 +41,16 @@ public class ModeEnum { "eni", ENI }, }; - private string Value; + private string _value; + + public ModeEnum() + { + + } public ModeEnum(string value) { - Value = value; + _value = value; } public static ModeEnum FromValue(string value) @@ -63,17 +69,17 @@ public static ModeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -102,7 +108,7 @@ public bool Equals(ModeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(ModeEnum a, ModeEnum b) diff --git a/Services/Cce/V3/Model/ContainerNetworkUpdate.cs b/Services/Cce/V3/Model/ContainerNetworkUpdate.cs index 130757f..b30f988 100755 --- a/Services/Cce/V3/Model/ContainerNetworkUpdate.cs +++ b/Services/Cce/V3/Model/ContainerNetworkUpdate.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/Context.cs b/Services/Cce/V3/Model/Context.cs index b4ecbc2..fb85db8 100755 --- a/Services/Cce/V3/Model/Context.cs +++ b/Services/Cce/V3/Model/Context.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/Contexts.cs b/Services/Cce/V3/Model/Contexts.cs index 5650fa4..917cdc7 100755 --- a/Services/Cce/V3/Model/Contexts.cs +++ b/Services/Cce/V3/Model/Contexts.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/CreateAddonInstanceRequest.cs b/Services/Cce/V3/Model/CreateAddonInstanceRequest.cs index 8594762..c69e884 100755 --- a/Services/Cce/V3/Model/CreateAddonInstanceRequest.cs +++ b/Services/Cce/V3/Model/CreateAddonInstanceRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/CreateAddonInstanceResponse.cs b/Services/Cce/V3/Model/CreateAddonInstanceResponse.cs index 0c5f3a9..7f15b22 100755 --- a/Services/Cce/V3/Model/CreateAddonInstanceResponse.cs +++ b/Services/Cce/V3/Model/CreateAddonInstanceResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/CreateCloudPersistentVolumeClaimsRequest.cs b/Services/Cce/V3/Model/CreateCloudPersistentVolumeClaimsRequest.cs index 732b334..f2802fd 100755 --- a/Services/Cce/V3/Model/CreateCloudPersistentVolumeClaimsRequest.cs +++ b/Services/Cce/V3/Model/CreateCloudPersistentVolumeClaimsRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/CreateCloudPersistentVolumeClaimsResponse.cs b/Services/Cce/V3/Model/CreateCloudPersistentVolumeClaimsResponse.cs index 4f8ef21..fc7a1bf 100755 --- a/Services/Cce/V3/Model/CreateCloudPersistentVolumeClaimsResponse.cs +++ b/Services/Cce/V3/Model/CreateCloudPersistentVolumeClaimsResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/CreateClusterRequest.cs b/Services/Cce/V3/Model/CreateClusterRequest.cs index c7eb30f..4d84f19 100755 --- a/Services/Cce/V3/Model/CreateClusterRequest.cs +++ b/Services/Cce/V3/Model/CreateClusterRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/CreateClusterResponse.cs b/Services/Cce/V3/Model/CreateClusterResponse.cs index 9bae05e..9014190 100755 --- a/Services/Cce/V3/Model/CreateClusterResponse.cs +++ b/Services/Cce/V3/Model/CreateClusterResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/CreateKubernetesClusterCertRequest.cs b/Services/Cce/V3/Model/CreateKubernetesClusterCertRequest.cs index 1a61470..ad6bdf2 100755 --- a/Services/Cce/V3/Model/CreateKubernetesClusterCertRequest.cs +++ b/Services/Cce/V3/Model/CreateKubernetesClusterCertRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/CreateKubernetesClusterCertResponse.cs b/Services/Cce/V3/Model/CreateKubernetesClusterCertResponse.cs index 3da6337..2b7865a 100755 --- a/Services/Cce/V3/Model/CreateKubernetesClusterCertResponse.cs +++ b/Services/Cce/V3/Model/CreateKubernetesClusterCertResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/CreateNodePoolRequest.cs b/Services/Cce/V3/Model/CreateNodePoolRequest.cs index 84fafeb..9c76212 100755 --- a/Services/Cce/V3/Model/CreateNodePoolRequest.cs +++ b/Services/Cce/V3/Model/CreateNodePoolRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/CreateNodePoolResponse.cs b/Services/Cce/V3/Model/CreateNodePoolResponse.cs index c169525..465f4ef 100755 --- a/Services/Cce/V3/Model/CreateNodePoolResponse.cs +++ b/Services/Cce/V3/Model/CreateNodePoolResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/CreateNodeRequest.cs b/Services/Cce/V3/Model/CreateNodeRequest.cs index 4dd0844..06d68bb 100755 --- a/Services/Cce/V3/Model/CreateNodeRequest.cs +++ b/Services/Cce/V3/Model/CreateNodeRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { @@ -28,11 +29,16 @@ public class NodepoolScaleUpEnum { "NodepoolScaleUp", NODEPOOLSCALEUP }, }; - private string Value; + private string _value; + + public NodepoolScaleUpEnum() + { + + } public NodepoolScaleUpEnum(string value) { - Value = value; + _value = value; } public static NodepoolScaleUpEnum FromValue(string value) @@ -51,17 +57,17 @@ public static NodepoolScaleUpEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -90,7 +96,7 @@ public bool Equals(NodepoolScaleUpEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(NodepoolScaleUpEnum a, NodepoolScaleUpEnum b) diff --git a/Services/Cce/V3/Model/CreateNodeResponse.cs b/Services/Cce/V3/Model/CreateNodeResponse.cs index 862c5f8..0074ccf 100755 --- a/Services/Cce/V3/Model/CreateNodeResponse.cs +++ b/Services/Cce/V3/Model/CreateNodeResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/DeleteAddonInstanceRequest.cs b/Services/Cce/V3/Model/DeleteAddonInstanceRequest.cs index a387b73..6657c4f 100755 --- a/Services/Cce/V3/Model/DeleteAddonInstanceRequest.cs +++ b/Services/Cce/V3/Model/DeleteAddonInstanceRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/DeleteAddonInstanceResponse.cs b/Services/Cce/V3/Model/DeleteAddonInstanceResponse.cs index 8e20e62..b92cd2a 100755 --- a/Services/Cce/V3/Model/DeleteAddonInstanceResponse.cs +++ b/Services/Cce/V3/Model/DeleteAddonInstanceResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/DeleteCloudPersistentVolumeClaimsRequest.cs b/Services/Cce/V3/Model/DeleteCloudPersistentVolumeClaimsRequest.cs index 0498c91..24fe1fe 100755 --- a/Services/Cce/V3/Model/DeleteCloudPersistentVolumeClaimsRequest.cs +++ b/Services/Cce/V3/Model/DeleteCloudPersistentVolumeClaimsRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/DeleteCloudPersistentVolumeClaimsResponse.cs b/Services/Cce/V3/Model/DeleteCloudPersistentVolumeClaimsResponse.cs index 0fe5ce1..f50c491 100755 --- a/Services/Cce/V3/Model/DeleteCloudPersistentVolumeClaimsResponse.cs +++ b/Services/Cce/V3/Model/DeleteCloudPersistentVolumeClaimsResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/DeleteClusterRequest.cs b/Services/Cce/V3/Model/DeleteClusterRequest.cs index add882e..eabd771 100755 --- a/Services/Cce/V3/Model/DeleteClusterRequest.cs +++ b/Services/Cce/V3/Model/DeleteClusterRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { @@ -52,11 +53,16 @@ public class DeleteEfsEnum { "skip", SKIP }, }; - private string Value; + private string _value; + + public DeleteEfsEnum() + { + + } public DeleteEfsEnum(string value) { - Value = value; + _value = value; } public static DeleteEfsEnum FromValue(string value) @@ -75,17 +81,17 @@ public static DeleteEfsEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -114,7 +120,7 @@ public bool Equals(DeleteEfsEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(DeleteEfsEnum a, DeleteEfsEnum b) @@ -176,11 +182,16 @@ public class DeleteEniEnum { "skip", SKIP }, }; - private string Value; + private string _value; + + public DeleteEniEnum() + { + + } public DeleteEniEnum(string value) { - Value = value; + _value = value; } public static DeleteEniEnum FromValue(string value) @@ -199,17 +210,17 @@ public static DeleteEniEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -238,7 +249,7 @@ public bool Equals(DeleteEniEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(DeleteEniEnum a, DeleteEniEnum b) @@ -300,11 +311,16 @@ public class DeleteEvsEnum { "skip", SKIP }, }; - private string Value; + private string _value; + + public DeleteEvsEnum() + { + + } public DeleteEvsEnum(string value) { - Value = value; + _value = value; } public static DeleteEvsEnum FromValue(string value) @@ -323,17 +339,17 @@ public static DeleteEvsEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -362,7 +378,7 @@ public bool Equals(DeleteEvsEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(DeleteEvsEnum a, DeleteEvsEnum b) @@ -424,11 +440,16 @@ public class DeleteNetEnum { "skip", SKIP }, }; - private string Value; + private string _value; + + public DeleteNetEnum() + { + + } public DeleteNetEnum(string value) { - Value = value; + _value = value; } public static DeleteNetEnum FromValue(string value) @@ -447,17 +468,17 @@ public static DeleteNetEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -486,7 +507,7 @@ public bool Equals(DeleteNetEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(DeleteNetEnum a, DeleteNetEnum b) @@ -548,11 +569,16 @@ public class DeleteObsEnum { "skip", SKIP }, }; - private string Value; + private string _value; + + public DeleteObsEnum() + { + + } public DeleteObsEnum(string value) { - Value = value; + _value = value; } public static DeleteObsEnum FromValue(string value) @@ -571,17 +597,17 @@ public static DeleteObsEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -610,7 +636,7 @@ public bool Equals(DeleteObsEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(DeleteObsEnum a, DeleteObsEnum b) @@ -672,11 +698,16 @@ public class DeleteSfsEnum { "skip", SKIP }, }; - private string Value; + private string _value; + + public DeleteSfsEnum() + { + + } public DeleteSfsEnum(string value) { - Value = value; + _value = value; } public static DeleteSfsEnum FromValue(string value) @@ -695,17 +726,17 @@ public static DeleteSfsEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -734,7 +765,7 @@ public bool Equals(DeleteSfsEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(DeleteSfsEnum a, DeleteSfsEnum b) @@ -772,11 +803,16 @@ public class TobedeletedEnum { "true", TRUE }, }; - private string Value; + private string _value; + + public TobedeletedEnum() + { + + } public TobedeletedEnum(string value) { - Value = value; + _value = value; } public static TobedeletedEnum FromValue(string value) @@ -795,17 +831,17 @@ public static TobedeletedEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -834,7 +870,7 @@ public bool Equals(TobedeletedEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(TobedeletedEnum a, TobedeletedEnum b) diff --git a/Services/Cce/V3/Model/DeleteClusterResponse.cs b/Services/Cce/V3/Model/DeleteClusterResponse.cs index 7a35897..4d3c39d 100755 --- a/Services/Cce/V3/Model/DeleteClusterResponse.cs +++ b/Services/Cce/V3/Model/DeleteClusterResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/DeleteNodePoolRequest.cs b/Services/Cce/V3/Model/DeleteNodePoolRequest.cs index fc63fb8..87d99ae 100755 --- a/Services/Cce/V3/Model/DeleteNodePoolRequest.cs +++ b/Services/Cce/V3/Model/DeleteNodePoolRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/DeleteNodePoolResponse.cs b/Services/Cce/V3/Model/DeleteNodePoolResponse.cs index 5d57390..7f0427a 100755 --- a/Services/Cce/V3/Model/DeleteNodePoolResponse.cs +++ b/Services/Cce/V3/Model/DeleteNodePoolResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/DeleteNodeRequest.cs b/Services/Cce/V3/Model/DeleteNodeRequest.cs index de3425d..962ddf1 100755 --- a/Services/Cce/V3/Model/DeleteNodeRequest.cs +++ b/Services/Cce/V3/Model/DeleteNodeRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { @@ -28,11 +29,16 @@ public class NodepoolScaleDownEnum { "NoScaleDown", NOSCALEDOWN }, }; - private string Value; + private string _value; + + public NodepoolScaleDownEnum() + { + + } public NodepoolScaleDownEnum(string value) { - Value = value; + _value = value; } public static NodepoolScaleDownEnum FromValue(string value) @@ -51,17 +57,17 @@ public static NodepoolScaleDownEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -90,7 +96,7 @@ public bool Equals(NodepoolScaleDownEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(NodepoolScaleDownEnum a, NodepoolScaleDownEnum b) diff --git a/Services/Cce/V3/Model/DeleteNodeResponse.cs b/Services/Cce/V3/Model/DeleteNodeResponse.cs index 0d9a03a..5284866 100755 --- a/Services/Cce/V3/Model/DeleteNodeResponse.cs +++ b/Services/Cce/V3/Model/DeleteNodeResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/DeleteStatus.cs b/Services/Cce/V3/Model/DeleteStatus.cs index 5e1833f..64ef889 100755 --- a/Services/Cce/V3/Model/DeleteStatus.cs +++ b/Services/Cce/V3/Model/DeleteStatus.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/EniNetwork.cs b/Services/Cce/V3/Model/EniNetwork.cs index f2cf72a..a2d54aa 100755 --- a/Services/Cce/V3/Model/EniNetwork.cs +++ b/Services/Cce/V3/Model/EniNetwork.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/HibernateClusterRequest.cs b/Services/Cce/V3/Model/HibernateClusterRequest.cs index 8eecd2f..3893aba 100755 --- a/Services/Cce/V3/Model/HibernateClusterRequest.cs +++ b/Services/Cce/V3/Model/HibernateClusterRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/HibernateClusterResponse.cs b/Services/Cce/V3/Model/HibernateClusterResponse.cs index fcc4759..b56a7bd 100755 --- a/Services/Cce/V3/Model/HibernateClusterResponse.cs +++ b/Services/Cce/V3/Model/HibernateClusterResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/HostNetwork.cs b/Services/Cce/V3/Model/HostNetwork.cs index 75e3e1b..c7c5181 100755 --- a/Services/Cce/V3/Model/HostNetwork.cs +++ b/Services/Cce/V3/Model/HostNetwork.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/InstanceRequest.cs b/Services/Cce/V3/Model/InstanceRequest.cs index de93e82..3789de9 100755 --- a/Services/Cce/V3/Model/InstanceRequest.cs +++ b/Services/Cce/V3/Model/InstanceRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/InstanceRequestSpec.cs b/Services/Cce/V3/Model/InstanceRequestSpec.cs index dc3d33e..50507ae 100755 --- a/Services/Cce/V3/Model/InstanceRequestSpec.cs +++ b/Services/Cce/V3/Model/InstanceRequestSpec.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/InstanceSpec.cs b/Services/Cce/V3/Model/InstanceSpec.cs index 99c3b9b..3a6be7b 100755 --- a/Services/Cce/V3/Model/InstanceSpec.cs +++ b/Services/Cce/V3/Model/InstanceSpec.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/Job.cs b/Services/Cce/V3/Model/Job.cs index 3b3c69d..1c7ee7d 100755 --- a/Services/Cce/V3/Model/Job.cs +++ b/Services/Cce/V3/Model/Job.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/JobMetadata.cs b/Services/Cce/V3/Model/JobMetadata.cs index 6f40887..6bfad5a 100755 --- a/Services/Cce/V3/Model/JobMetadata.cs +++ b/Services/Cce/V3/Model/JobMetadata.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/JobSpec.cs b/Services/Cce/V3/Model/JobSpec.cs index 026052e..db3c286 100755 --- a/Services/Cce/V3/Model/JobSpec.cs +++ b/Services/Cce/V3/Model/JobSpec.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/JobStatus.cs b/Services/Cce/V3/Model/JobStatus.cs index dd350ae..6fe05a2 100755 --- a/Services/Cce/V3/Model/JobStatus.cs +++ b/Services/Cce/V3/Model/JobStatus.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/LVMConfig.cs b/Services/Cce/V3/Model/LVMConfig.cs index d3c9f71..8a8e784 100755 --- a/Services/Cce/V3/Model/LVMConfig.cs +++ b/Services/Cce/V3/Model/LVMConfig.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/ListAddonInstancesRequest.cs b/Services/Cce/V3/Model/ListAddonInstancesRequest.cs index da00d7b..74a55a2 100755 --- a/Services/Cce/V3/Model/ListAddonInstancesRequest.cs +++ b/Services/Cce/V3/Model/ListAddonInstancesRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/ListAddonInstancesResponse.cs b/Services/Cce/V3/Model/ListAddonInstancesResponse.cs index a6c1cc8..3ed1b7f 100755 --- a/Services/Cce/V3/Model/ListAddonInstancesResponse.cs +++ b/Services/Cce/V3/Model/ListAddonInstancesResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/ListAddonTemplatesRequest.cs b/Services/Cce/V3/Model/ListAddonTemplatesRequest.cs index 06ee832..7f239ee 100755 --- a/Services/Cce/V3/Model/ListAddonTemplatesRequest.cs +++ b/Services/Cce/V3/Model/ListAddonTemplatesRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/ListAddonTemplatesResponse.cs b/Services/Cce/V3/Model/ListAddonTemplatesResponse.cs index 9dc392f..f6ad946 100755 --- a/Services/Cce/V3/Model/ListAddonTemplatesResponse.cs +++ b/Services/Cce/V3/Model/ListAddonTemplatesResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/ListClustersRequest.cs b/Services/Cce/V3/Model/ListClustersRequest.cs index f6f74e2..d81293e 100755 --- a/Services/Cce/V3/Model/ListClustersRequest.cs +++ b/Services/Cce/V3/Model/ListClustersRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { @@ -88,11 +89,16 @@ public class StatusEnum { "Empty", EMPTY }, }; - private string Value; + private string _value; + + public StatusEnum() + { + + } public StatusEnum(string value) { - Value = value; + _value = value; } public static StatusEnum FromValue(string value) @@ -111,17 +117,17 @@ public static StatusEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -150,7 +156,7 @@ public bool Equals(StatusEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(StatusEnum a, StatusEnum b) @@ -194,11 +200,16 @@ public class TypeEnum { "ARM64", ARM64 }, }; - private string Value; + private string _value; + + public TypeEnum() + { + + } public TypeEnum(string value) { - Value = value; + _value = value; } public static TypeEnum FromValue(string value) @@ -217,17 +228,17 @@ public static TypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -256,7 +267,7 @@ public bool Equals(TypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(TypeEnum a, TypeEnum b) diff --git a/Services/Cce/V3/Model/ListClustersResponse.cs b/Services/Cce/V3/Model/ListClustersResponse.cs index 9fd9051..af7eed3 100755 --- a/Services/Cce/V3/Model/ListClustersResponse.cs +++ b/Services/Cce/V3/Model/ListClustersResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/ListNodePoolsRequest.cs b/Services/Cce/V3/Model/ListNodePoolsRequest.cs index 3edb72b..82c0588 100755 --- a/Services/Cce/V3/Model/ListNodePoolsRequest.cs +++ b/Services/Cce/V3/Model/ListNodePoolsRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/ListNodePoolsResponse.cs b/Services/Cce/V3/Model/ListNodePoolsResponse.cs index c4f2b0e..1015ac4 100755 --- a/Services/Cce/V3/Model/ListNodePoolsResponse.cs +++ b/Services/Cce/V3/Model/ListNodePoolsResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/ListNodesRequest.cs b/Services/Cce/V3/Model/ListNodesRequest.cs index 4b29354..e30798c 100755 --- a/Services/Cce/V3/Model/ListNodesRequest.cs +++ b/Services/Cce/V3/Model/ListNodesRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/ListNodesResponse.cs b/Services/Cce/V3/Model/ListNodesResponse.cs index b753ff1..f65ad50 100755 --- a/Services/Cce/V3/Model/ListNodesResponse.cs +++ b/Services/Cce/V3/Model/ListNodesResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/Login.cs b/Services/Cce/V3/Model/Login.cs index bcf92be..519848b 100755 --- a/Services/Cce/V3/Model/Login.cs +++ b/Services/Cce/V3/Model/Login.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/MasterSpec.cs b/Services/Cce/V3/Model/MasterSpec.cs index c323269..37e8ed7 100755 --- a/Services/Cce/V3/Model/MasterSpec.cs +++ b/Services/Cce/V3/Model/MasterSpec.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/Metadata.cs b/Services/Cce/V3/Model/Metadata.cs index 43459e0..47cc0e4 100755 --- a/Services/Cce/V3/Model/Metadata.cs +++ b/Services/Cce/V3/Model/Metadata.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/MigrateNodeExtendParam.cs b/Services/Cce/V3/Model/MigrateNodeExtendParam.cs index 88e79ec..259a818 100755 --- a/Services/Cce/V3/Model/MigrateNodeExtendParam.cs +++ b/Services/Cce/V3/Model/MigrateNodeExtendParam.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/MigrateNodeRequest.cs b/Services/Cce/V3/Model/MigrateNodeRequest.cs index a9a17a0..5974404 100755 --- a/Services/Cce/V3/Model/MigrateNodeRequest.cs +++ b/Services/Cce/V3/Model/MigrateNodeRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/MigrateNodeResponse.cs b/Services/Cce/V3/Model/MigrateNodeResponse.cs index aa9e956..de06c6c 100755 --- a/Services/Cce/V3/Model/MigrateNodeResponse.cs +++ b/Services/Cce/V3/Model/MigrateNodeResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/MigrateNodesSpec.cs b/Services/Cce/V3/Model/MigrateNodesSpec.cs index 4249885..483b291 100755 --- a/Services/Cce/V3/Model/MigrateNodesSpec.cs +++ b/Services/Cce/V3/Model/MigrateNodesSpec.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/MigrateNodesTask.cs b/Services/Cce/V3/Model/MigrateNodesTask.cs index 6e2de2d..44cd000 100755 --- a/Services/Cce/V3/Model/MigrateNodesTask.cs +++ b/Services/Cce/V3/Model/MigrateNodesTask.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/NetworkSubnet.cs b/Services/Cce/V3/Model/NetworkSubnet.cs index 22f6e64..1901831 100755 --- a/Services/Cce/V3/Model/NetworkSubnet.cs +++ b/Services/Cce/V3/Model/NetworkSubnet.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/NicSpec.cs b/Services/Cce/V3/Model/NicSpec.cs index 8be5dd3..7c336a0 100755 --- a/Services/Cce/V3/Model/NicSpec.cs +++ b/Services/Cce/V3/Model/NicSpec.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/Node.cs b/Services/Cce/V3/Model/Node.cs index 4c4a830..ea84f46 100755 --- a/Services/Cce/V3/Model/Node.cs +++ b/Services/Cce/V3/Model/Node.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/NodeBandwidth.cs b/Services/Cce/V3/Model/NodeBandwidth.cs index 0d93806..0df196e 100755 --- a/Services/Cce/V3/Model/NodeBandwidth.cs +++ b/Services/Cce/V3/Model/NodeBandwidth.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/NodeCreateRequest.cs b/Services/Cce/V3/Model/NodeCreateRequest.cs index 5026365..e66804f 100755 --- a/Services/Cce/V3/Model/NodeCreateRequest.cs +++ b/Services/Cce/V3/Model/NodeCreateRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/NodeEIPSpec.cs b/Services/Cce/V3/Model/NodeEIPSpec.cs index d0d0b56..05b5496 100755 --- a/Services/Cce/V3/Model/NodeEIPSpec.cs +++ b/Services/Cce/V3/Model/NodeEIPSpec.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/NodeExtendParam.cs b/Services/Cce/V3/Model/NodeExtendParam.cs index eeb94a4..fd3c9ae 100755 --- a/Services/Cce/V3/Model/NodeExtendParam.cs +++ b/Services/Cce/V3/Model/NodeExtendParam.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/NodeItem.cs b/Services/Cce/V3/Model/NodeItem.cs index 6ccbe73..9f83a27 100755 --- a/Services/Cce/V3/Model/NodeItem.cs +++ b/Services/Cce/V3/Model/NodeItem.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/NodeManagement.cs b/Services/Cce/V3/Model/NodeManagement.cs index f633f2d..43f9f48 100755 --- a/Services/Cce/V3/Model/NodeManagement.cs +++ b/Services/Cce/V3/Model/NodeManagement.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/NodeMetadata.cs b/Services/Cce/V3/Model/NodeMetadata.cs index 79980e6..95ed2a6 100755 --- a/Services/Cce/V3/Model/NodeMetadata.cs +++ b/Services/Cce/V3/Model/NodeMetadata.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/NodeNicSpec.cs b/Services/Cce/V3/Model/NodeNicSpec.cs index 87c842d..44fb9de 100755 --- a/Services/Cce/V3/Model/NodeNicSpec.cs +++ b/Services/Cce/V3/Model/NodeNicSpec.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/NodePool.cs b/Services/Cce/V3/Model/NodePool.cs index c7cd8f0..c92b68b 100755 --- a/Services/Cce/V3/Model/NodePool.cs +++ b/Services/Cce/V3/Model/NodePool.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/NodePoolCondition.cs b/Services/Cce/V3/Model/NodePoolCondition.cs index 3bae889..76ec62f 100755 --- a/Services/Cce/V3/Model/NodePoolCondition.cs +++ b/Services/Cce/V3/Model/NodePoolCondition.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/NodePoolMetadata.cs b/Services/Cce/V3/Model/NodePoolMetadata.cs index eff3acd..5f5bfef 100755 --- a/Services/Cce/V3/Model/NodePoolMetadata.cs +++ b/Services/Cce/V3/Model/NodePoolMetadata.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/NodePoolMetadataUpdate.cs b/Services/Cce/V3/Model/NodePoolMetadataUpdate.cs index f5256ae..96666df 100755 --- a/Services/Cce/V3/Model/NodePoolMetadataUpdate.cs +++ b/Services/Cce/V3/Model/NodePoolMetadataUpdate.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/NodePoolNodeAutoscaling.cs b/Services/Cce/V3/Model/NodePoolNodeAutoscaling.cs index ccf27d7..e22f52e 100755 --- a/Services/Cce/V3/Model/NodePoolNodeAutoscaling.cs +++ b/Services/Cce/V3/Model/NodePoolNodeAutoscaling.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/NodePoolSpec.cs b/Services/Cce/V3/Model/NodePoolSpec.cs index 1d32d3e..2a25952 100755 --- a/Services/Cce/V3/Model/NodePoolSpec.cs +++ b/Services/Cce/V3/Model/NodePoolSpec.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { @@ -34,11 +35,16 @@ public class TypeEnum { "ElasticBMS", ELASTICBMS }, }; - private string Value; + private string _value; + + public TypeEnum() + { + + } public TypeEnum(string value) { - Value = value; + _value = value; } public static TypeEnum FromValue(string value) @@ -57,17 +63,17 @@ public static TypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -96,7 +102,7 @@ public bool Equals(TypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(TypeEnum a, TypeEnum b) diff --git a/Services/Cce/V3/Model/NodePoolSpecUpdate.cs b/Services/Cce/V3/Model/NodePoolSpecUpdate.cs index f269593..56c3baa 100755 --- a/Services/Cce/V3/Model/NodePoolSpecUpdate.cs +++ b/Services/Cce/V3/Model/NodePoolSpecUpdate.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/NodePoolStatus.cs b/Services/Cce/V3/Model/NodePoolStatus.cs index 8be92f9..674a541 100755 --- a/Services/Cce/V3/Model/NodePoolStatus.cs +++ b/Services/Cce/V3/Model/NodePoolStatus.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { @@ -52,11 +53,16 @@ public class PhaseEnum { "Error", ERROR }, }; - private string Value; + private string _value; + + public PhaseEnum() + { + + } public PhaseEnum(string value) { - Value = value; + _value = value; } public static PhaseEnum FromValue(string value) @@ -75,17 +81,17 @@ public static PhaseEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -114,7 +120,7 @@ public bool Equals(PhaseEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(PhaseEnum a, PhaseEnum b) diff --git a/Services/Cce/V3/Model/NodePoolUpdate.cs b/Services/Cce/V3/Model/NodePoolUpdate.cs index ea25be6..a6acab2 100755 --- a/Services/Cce/V3/Model/NodePoolUpdate.cs +++ b/Services/Cce/V3/Model/NodePoolUpdate.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/NodePublicIP.cs b/Services/Cce/V3/Model/NodePublicIP.cs index c93493b..037f33c 100755 --- a/Services/Cce/V3/Model/NodePublicIP.cs +++ b/Services/Cce/V3/Model/NodePublicIP.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/NodeSpec.cs b/Services/Cce/V3/Model/NodeSpec.cs index 0644bd7..5f6bb4e 100755 --- a/Services/Cce/V3/Model/NodeSpec.cs +++ b/Services/Cce/V3/Model/NodeSpec.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/NodeSpecUpdate.cs b/Services/Cce/V3/Model/NodeSpecUpdate.cs index ab1f387..4fcc436 100755 --- a/Services/Cce/V3/Model/NodeSpecUpdate.cs +++ b/Services/Cce/V3/Model/NodeSpecUpdate.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/NodeStatus.cs b/Services/Cce/V3/Model/NodeStatus.cs index c41754a..ef29ff8 100755 --- a/Services/Cce/V3/Model/NodeStatus.cs +++ b/Services/Cce/V3/Model/NodeStatus.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { @@ -76,11 +77,16 @@ public class PhaseEnum { "Error", ERROR }, }; - private string Value; + private string _value; + + public PhaseEnum() + { + + } public PhaseEnum(string value) { - Value = value; + _value = value; } public static PhaseEnum FromValue(string value) @@ -99,17 +105,17 @@ public static PhaseEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -138,7 +144,7 @@ public bool Equals(PhaseEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(PhaseEnum a, PhaseEnum b) diff --git a/Services/Cce/V3/Model/PersistentVolumeClaim.cs b/Services/Cce/V3/Model/PersistentVolumeClaim.cs index c8d9ceb..4f3be1d 100755 --- a/Services/Cce/V3/Model/PersistentVolumeClaim.cs +++ b/Services/Cce/V3/Model/PersistentVolumeClaim.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/PersistentVolumeClaimMetadata.cs b/Services/Cce/V3/Model/PersistentVolumeClaimMetadata.cs index 8d2787a..2b598d6 100755 --- a/Services/Cce/V3/Model/PersistentVolumeClaimMetadata.cs +++ b/Services/Cce/V3/Model/PersistentVolumeClaimMetadata.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/PersistentVolumeClaimSpec.cs b/Services/Cce/V3/Model/PersistentVolumeClaimSpec.cs index 7785ed1..31933a0 100755 --- a/Services/Cce/V3/Model/PersistentVolumeClaimSpec.cs +++ b/Services/Cce/V3/Model/PersistentVolumeClaimSpec.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { @@ -34,11 +35,16 @@ public class AccessModesEnum { "ReadWriteMany", READWRITEMANY }, }; - private string Value; + private string _value; + + public AccessModesEnum() + { + + } public AccessModesEnum(string value) { - Value = value; + _value = value; } public static AccessModesEnum FromValue(string value) @@ -57,17 +63,17 @@ public static AccessModesEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -96,7 +102,7 @@ public bool Equals(AccessModesEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(AccessModesEnum a, AccessModesEnum b) diff --git a/Services/Cce/V3/Model/PersistentVolumeClaimStatus.cs b/Services/Cce/V3/Model/PersistentVolumeClaimStatus.cs index 2ddb7c2..cfa9bd8 100755 --- a/Services/Cce/V3/Model/PersistentVolumeClaimStatus.cs +++ b/Services/Cce/V3/Model/PersistentVolumeClaimStatus.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/RemoveNodeRequest.cs b/Services/Cce/V3/Model/RemoveNodeRequest.cs index 46b0f15..b68dbdc 100755 --- a/Services/Cce/V3/Model/RemoveNodeRequest.cs +++ b/Services/Cce/V3/Model/RemoveNodeRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/RemoveNodeResponse.cs b/Services/Cce/V3/Model/RemoveNodeResponse.cs index addec11..3f05b7c 100755 --- a/Services/Cce/V3/Model/RemoveNodeResponse.cs +++ b/Services/Cce/V3/Model/RemoveNodeResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/RemoveNodesSpec.cs b/Services/Cce/V3/Model/RemoveNodesSpec.cs index 0bd6a4c..428e6f8 100755 --- a/Services/Cce/V3/Model/RemoveNodesSpec.cs +++ b/Services/Cce/V3/Model/RemoveNodesSpec.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/RemoveNodesTask.cs b/Services/Cce/V3/Model/RemoveNodesTask.cs index c73a271..9982229 100755 --- a/Services/Cce/V3/Model/RemoveNodesTask.cs +++ b/Services/Cce/V3/Model/RemoveNodesTask.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/ResourceRequirements.cs b/Services/Cce/V3/Model/ResourceRequirements.cs index 3a74113..1dde7e9 100755 --- a/Services/Cce/V3/Model/ResourceRequirements.cs +++ b/Services/Cce/V3/Model/ResourceRequirements.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/ResourceTag.cs b/Services/Cce/V3/Model/ResourceTag.cs index 6c2b30d..4c96d5a 100755 --- a/Services/Cce/V3/Model/ResourceTag.cs +++ b/Services/Cce/V3/Model/ResourceTag.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/Runtime.cs b/Services/Cce/V3/Model/Runtime.cs index 39fe05e..2d8574a 100755 --- a/Services/Cce/V3/Model/Runtime.cs +++ b/Services/Cce/V3/Model/Runtime.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { @@ -34,11 +35,16 @@ public class NameEnum { "containerd", CONTAINERD }, }; - private string Value; + private string _value; + + public NameEnum() + { + + } public NameEnum(string value) { - Value = value; + _value = value; } public static NameEnum FromValue(string value) @@ -57,17 +63,17 @@ public static NameEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -96,7 +102,7 @@ public bool Equals(NameEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(NameEnum a, NameEnum b) diff --git a/Services/Cce/V3/Model/RuntimeConfig.cs b/Services/Cce/V3/Model/RuntimeConfig.cs index a91ac0d..180d2b4 100755 --- a/Services/Cce/V3/Model/RuntimeConfig.cs +++ b/Services/Cce/V3/Model/RuntimeConfig.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/SecurityID.cs b/Services/Cce/V3/Model/SecurityID.cs index 94f0cd0..f413906 100755 --- a/Services/Cce/V3/Model/SecurityID.cs +++ b/Services/Cce/V3/Model/SecurityID.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/ShowAddonInstanceRequest.cs b/Services/Cce/V3/Model/ShowAddonInstanceRequest.cs index 5c50e03..7c8b29f 100755 --- a/Services/Cce/V3/Model/ShowAddonInstanceRequest.cs +++ b/Services/Cce/V3/Model/ShowAddonInstanceRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/ShowAddonInstanceResponse.cs b/Services/Cce/V3/Model/ShowAddonInstanceResponse.cs index 3290a2a..a76b910 100755 --- a/Services/Cce/V3/Model/ShowAddonInstanceResponse.cs +++ b/Services/Cce/V3/Model/ShowAddonInstanceResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/ShowClusterRequest.cs b/Services/Cce/V3/Model/ShowClusterRequest.cs index 4526f03..7e42dfa 100755 --- a/Services/Cce/V3/Model/ShowClusterRequest.cs +++ b/Services/Cce/V3/Model/ShowClusterRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/ShowClusterResponse.cs b/Services/Cce/V3/Model/ShowClusterResponse.cs index 03b260b..57c0e33 100755 --- a/Services/Cce/V3/Model/ShowClusterResponse.cs +++ b/Services/Cce/V3/Model/ShowClusterResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/ShowJobRequest.cs b/Services/Cce/V3/Model/ShowJobRequest.cs index 5af2217..02a1910 100755 --- a/Services/Cce/V3/Model/ShowJobRequest.cs +++ b/Services/Cce/V3/Model/ShowJobRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/ShowJobResponse.cs b/Services/Cce/V3/Model/ShowJobResponse.cs index 973c089..1a75843 100755 --- a/Services/Cce/V3/Model/ShowJobResponse.cs +++ b/Services/Cce/V3/Model/ShowJobResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/ShowNodePoolRequest.cs b/Services/Cce/V3/Model/ShowNodePoolRequest.cs index 8f0a427..7f45b5a 100755 --- a/Services/Cce/V3/Model/ShowNodePoolRequest.cs +++ b/Services/Cce/V3/Model/ShowNodePoolRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/ShowNodePoolResponse.cs b/Services/Cce/V3/Model/ShowNodePoolResponse.cs index 1017759..5181b1f 100755 --- a/Services/Cce/V3/Model/ShowNodePoolResponse.cs +++ b/Services/Cce/V3/Model/ShowNodePoolResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/ShowNodeRequest.cs b/Services/Cce/V3/Model/ShowNodeRequest.cs index c8fed68..78fe464 100755 --- a/Services/Cce/V3/Model/ShowNodeRequest.cs +++ b/Services/Cce/V3/Model/ShowNodeRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/ShowNodeResponse.cs b/Services/Cce/V3/Model/ShowNodeResponse.cs index 9a5bc67..498f4d5 100755 --- a/Services/Cce/V3/Model/ShowNodeResponse.cs +++ b/Services/Cce/V3/Model/ShowNodeResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/Storage.cs b/Services/Cce/V3/Model/Storage.cs index e4e1f9e..7aa4bbf 100755 --- a/Services/Cce/V3/Model/Storage.cs +++ b/Services/Cce/V3/Model/Storage.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/StorageGroups.cs b/Services/Cce/V3/Model/StorageGroups.cs index c48a3da..e5caaba 100755 --- a/Services/Cce/V3/Model/StorageGroups.cs +++ b/Services/Cce/V3/Model/StorageGroups.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/StorageSelectors.cs b/Services/Cce/V3/Model/StorageSelectors.cs index 83f357c..8dd33e0 100755 --- a/Services/Cce/V3/Model/StorageSelectors.cs +++ b/Services/Cce/V3/Model/StorageSelectors.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/StorageSelectorsMatchLabels.cs b/Services/Cce/V3/Model/StorageSelectorsMatchLabels.cs index 43044f8..e361cf6 100755 --- a/Services/Cce/V3/Model/StorageSelectorsMatchLabels.cs +++ b/Services/Cce/V3/Model/StorageSelectorsMatchLabels.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/SupportVersions.cs b/Services/Cce/V3/Model/SupportVersions.cs index 85f31a1..c4cc0b5 100755 --- a/Services/Cce/V3/Model/SupportVersions.cs +++ b/Services/Cce/V3/Model/SupportVersions.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/Taint.cs b/Services/Cce/V3/Model/Taint.cs index 48de262..61754d6 100755 --- a/Services/Cce/V3/Model/Taint.cs +++ b/Services/Cce/V3/Model/Taint.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { @@ -40,11 +41,16 @@ public class EffectEnum { "NoExecute", NOEXECUTE }, }; - private string Value; + private string _value; + + public EffectEnum() + { + + } public EffectEnum(string value) { - Value = value; + _value = value; } public static EffectEnum FromValue(string value) @@ -63,17 +69,17 @@ public static EffectEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -102,7 +108,7 @@ public bool Equals(EffectEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(EffectEnum a, EffectEnum b) diff --git a/Services/Cce/V3/Model/TaskStatus.cs b/Services/Cce/V3/Model/TaskStatus.cs index 11ac15a..04b89dd 100755 --- a/Services/Cce/V3/Model/TaskStatus.cs +++ b/Services/Cce/V3/Model/TaskStatus.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/Templatespec.cs b/Services/Cce/V3/Model/Templatespec.cs index bd33480..525c2ca 100755 --- a/Services/Cce/V3/Model/Templatespec.cs +++ b/Services/Cce/V3/Model/Templatespec.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/UpdateAddonInstanceRequest.cs b/Services/Cce/V3/Model/UpdateAddonInstanceRequest.cs index f15ffad..cd0ee15 100755 --- a/Services/Cce/V3/Model/UpdateAddonInstanceRequest.cs +++ b/Services/Cce/V3/Model/UpdateAddonInstanceRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/UpdateAddonInstanceResponse.cs b/Services/Cce/V3/Model/UpdateAddonInstanceResponse.cs index 879181f..c72070e 100755 --- a/Services/Cce/V3/Model/UpdateAddonInstanceResponse.cs +++ b/Services/Cce/V3/Model/UpdateAddonInstanceResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/UpdateClusterRequest.cs b/Services/Cce/V3/Model/UpdateClusterRequest.cs index 53c6b25..4b13948 100755 --- a/Services/Cce/V3/Model/UpdateClusterRequest.cs +++ b/Services/Cce/V3/Model/UpdateClusterRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/UpdateClusterResponse.cs b/Services/Cce/V3/Model/UpdateClusterResponse.cs index 1a6fd5b..7b8e965 100755 --- a/Services/Cce/V3/Model/UpdateClusterResponse.cs +++ b/Services/Cce/V3/Model/UpdateClusterResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/UpdateNodePoolRequest.cs b/Services/Cce/V3/Model/UpdateNodePoolRequest.cs index c7a46e9..b4b756f 100755 --- a/Services/Cce/V3/Model/UpdateNodePoolRequest.cs +++ b/Services/Cce/V3/Model/UpdateNodePoolRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/UpdateNodePoolResponse.cs b/Services/Cce/V3/Model/UpdateNodePoolResponse.cs index c63c40a..08c7395 100755 --- a/Services/Cce/V3/Model/UpdateNodePoolResponse.cs +++ b/Services/Cce/V3/Model/UpdateNodePoolResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/UpdateNodeRequest.cs b/Services/Cce/V3/Model/UpdateNodeRequest.cs index 465194e..8a8c650 100755 --- a/Services/Cce/V3/Model/UpdateNodeRequest.cs +++ b/Services/Cce/V3/Model/UpdateNodeRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/UpdateNodeResponse.cs b/Services/Cce/V3/Model/UpdateNodeResponse.cs index 765919a..1c1f44d 100755 --- a/Services/Cce/V3/Model/UpdateNodeResponse.cs +++ b/Services/Cce/V3/Model/UpdateNodeResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/User.cs b/Services/Cce/V3/Model/User.cs index fee9e93..81f8c5e 100755 --- a/Services/Cce/V3/Model/User.cs +++ b/Services/Cce/V3/Model/User.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/UserPassword.cs b/Services/Cce/V3/Model/UserPassword.cs index def8321..c78aaa8 100755 --- a/Services/Cce/V3/Model/UserPassword.cs +++ b/Services/Cce/V3/Model/UserPassword.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/UserTag.cs b/Services/Cce/V3/Model/UserTag.cs index 27aa45d..10c6625 100755 --- a/Services/Cce/V3/Model/UserTag.cs +++ b/Services/Cce/V3/Model/UserTag.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/Users.cs b/Services/Cce/V3/Model/Users.cs index 13cae38..9f17358 100755 --- a/Services/Cce/V3/Model/Users.cs +++ b/Services/Cce/V3/Model/Users.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/Versions.cs b/Services/Cce/V3/Model/Versions.cs index 2ad1c1d..408327e 100755 --- a/Services/Cce/V3/Model/Versions.cs +++ b/Services/Cce/V3/Model/Versions.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/VirtualSpace.cs b/Services/Cce/V3/Model/VirtualSpace.cs index 5431bbb..e791f28 100755 --- a/Services/Cce/V3/Model/VirtualSpace.cs +++ b/Services/Cce/V3/Model/VirtualSpace.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/Volume.cs b/Services/Cce/V3/Model/Volume.cs index ab9d7c2..1978bd7 100755 --- a/Services/Cce/V3/Model/Volume.cs +++ b/Services/Cce/V3/Model/Volume.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Model/VolumeMetadata.cs b/Services/Cce/V3/Model/VolumeMetadata.cs index 49a0019..771096e 100755 --- a/Services/Cce/V3/Model/VolumeMetadata.cs +++ b/Services/Cce/V3/Model/VolumeMetadata.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3.Model { diff --git a/Services/Cce/V3/Region/CceRegion.cs b/Services/Cce/V3/Region/CceRegion.cs index 33ef0d7..d69b895 100755 --- a/Services/Cce/V3/Region/CceRegion.cs +++ b/Services/Cce/V3/Region/CceRegion.cs @@ -1,6 +1,6 @@ using System; using System.Collections.Generic; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cce.V3 { diff --git a/Services/Cce/obj/Cce.csproj.nuget.cache b/Services/Cce/obj/Cce.csproj.nuget.cache deleted file mode 100644 index 2097e29..0000000 --- a/Services/Cce/obj/Cce.csproj.nuget.cache +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": 1, - "dgSpecHash": "Vw4kD7+N8VouN2qk4ia4c1x7wuiEmYnSB9VIoKX0dScxW8jCtd77V9eTPyo6pPFTdFnShTkSe8xh0kkTN2rK5w==", - "success": true -} \ No newline at end of file diff --git a/Services/Cce/obj/Cce.csproj.nuget.g.targets b/Services/Cce/obj/Cce.csproj.nuget.g.targets deleted file mode 100644 index e8536f5..0000000 --- a/Services/Cce/obj/Cce.csproj.nuget.g.targets +++ /dev/null @@ -1,9 +0,0 @@ - - - - $(MSBuildAllProjects);$(MSBuildThisFileFullPath) - - - - - \ No newline at end of file diff --git a/Services/Cdn/Cdn.csproj b/Services/Cdn/Cdn.csproj index a520e3e..b68d084 100755 --- a/Services/Cdn/Cdn.csproj +++ b/Services/Cdn/Cdn.csproj @@ -15,7 +15,7 @@ false false G42Cloud.SDK.Cdn - 0.0.2-beta + 0.0.3-beta G42Cloud Copyright 2020 G42 Technologies Co., Ltd. G42 Technologies Co., Ltd. @@ -24,7 +24,7 @@ - + diff --git a/Services/Cdn/V1/CdnAsyncClient.cs b/Services/Cdn/V1/CdnAsyncClient.cs index 399c2ec..9340a14 100755 --- a/Services/Cdn/V1/CdnAsyncClient.cs +++ b/Services/Cdn/V1/CdnAsyncClient.cs @@ -1,7 +1,7 @@ using System.Net.Http; using System.Collections.Generic; using System.Threading.Tasks; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; using G42Cloud.SDK.Cdn.V1.Model; namespace G42Cloud.SDK.Cdn.V1 diff --git a/Services/Cdn/V1/CdnClient.cs b/Services/Cdn/V1/CdnClient.cs index d305c67..d609c2d 100755 --- a/Services/Cdn/V1/CdnClient.cs +++ b/Services/Cdn/V1/CdnClient.cs @@ -1,6 +1,6 @@ using System.Net.Http; using System.Collections.Generic; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; using G42Cloud.SDK.Cdn.V1.Model; namespace G42Cloud.SDK.Cdn.V1 diff --git a/Services/Cdn/V1/Model/BlackWhiteListBody.cs b/Services/Cdn/V1/Model/BlackWhiteListBody.cs index 3add9e4..e115fdd 100755 --- a/Services/Cdn/V1/Model/BlackWhiteListBody.cs +++ b/Services/Cdn/V1/Model/BlackWhiteListBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/CacheConfig.cs b/Services/Cdn/V1/Model/CacheConfig.cs index f015445..c7c3de5 100755 --- a/Services/Cdn/V1/Model/CacheConfig.cs +++ b/Services/Cdn/V1/Model/CacheConfig.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/CacheConfigRequest.cs b/Services/Cdn/V1/Model/CacheConfigRequest.cs index 8fdca60..670af0c 100755 --- a/Services/Cdn/V1/Model/CacheConfigRequest.cs +++ b/Services/Cdn/V1/Model/CacheConfigRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/CacheConfigRequestBody.cs b/Services/Cdn/V1/Model/CacheConfigRequestBody.cs index 6ad2c93..311a30b 100755 --- a/Services/Cdn/V1/Model/CacheConfigRequestBody.cs +++ b/Services/Cdn/V1/Model/CacheConfigRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/CdnIps.cs b/Services/Cdn/V1/Model/CdnIps.cs index 6e3d06f..2ecdbb3 100755 --- a/Services/Cdn/V1/Model/CdnIps.cs +++ b/Services/Cdn/V1/Model/CdnIps.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/Compress.cs b/Services/Cdn/V1/Model/Compress.cs index ae9dd0b..c81729b 100755 --- a/Services/Cdn/V1/Model/Compress.cs +++ b/Services/Cdn/V1/Model/Compress.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/CompressRequest.cs b/Services/Cdn/V1/Model/CompressRequest.cs index 44c73eb..935db0f 100755 --- a/Services/Cdn/V1/Model/CompressRequest.cs +++ b/Services/Cdn/V1/Model/CompressRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/CompressResponse.cs b/Services/Cdn/V1/Model/CompressResponse.cs index dd6fc7c..abd28e0 100755 --- a/Services/Cdn/V1/Model/CompressResponse.cs +++ b/Services/Cdn/V1/Model/CompressResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/CompressRules.cs b/Services/Cdn/V1/Model/CompressRules.cs index 807dc4f..0def0a4 100755 --- a/Services/Cdn/V1/Model/CompressRules.cs +++ b/Services/Cdn/V1/Model/CompressRules.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/Configs.cs b/Services/Cdn/V1/Model/Configs.cs index d78d143..79f4cd4 100755 --- a/Services/Cdn/V1/Model/Configs.cs +++ b/Services/Cdn/V1/Model/Configs.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/ConfigsGetBody.cs b/Services/Cdn/V1/Model/ConfigsGetBody.cs index 5102a92..60c6cbf 100755 --- a/Services/Cdn/V1/Model/ConfigsGetBody.cs +++ b/Services/Cdn/V1/Model/ConfigsGetBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/CreateDomainRequest.cs b/Services/Cdn/V1/Model/CreateDomainRequest.cs index 4fb660b..b2a1cfb 100755 --- a/Services/Cdn/V1/Model/CreateDomainRequest.cs +++ b/Services/Cdn/V1/Model/CreateDomainRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/CreateDomainRequestBody.cs b/Services/Cdn/V1/Model/CreateDomainRequestBody.cs index 2542d5f..27f0666 100755 --- a/Services/Cdn/V1/Model/CreateDomainRequestBody.cs +++ b/Services/Cdn/V1/Model/CreateDomainRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/CreateDomainResponse.cs b/Services/Cdn/V1/Model/CreateDomainResponse.cs index d41f95b..7dab4ae 100755 --- a/Services/Cdn/V1/Model/CreateDomainResponse.cs +++ b/Services/Cdn/V1/Model/CreateDomainResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/CreateDomainResponseBodyContent.cs b/Services/Cdn/V1/Model/CreateDomainResponseBodyContent.cs index adf583d..cf59e24 100755 --- a/Services/Cdn/V1/Model/CreateDomainResponseBodyContent.cs +++ b/Services/Cdn/V1/Model/CreateDomainResponseBodyContent.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/CreatePreheatingTasksRequest.cs b/Services/Cdn/V1/Model/CreatePreheatingTasksRequest.cs index 22fd91f..dd30868 100755 --- a/Services/Cdn/V1/Model/CreatePreheatingTasksRequest.cs +++ b/Services/Cdn/V1/Model/CreatePreheatingTasksRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/CreatePreheatingTasksResponse.cs b/Services/Cdn/V1/Model/CreatePreheatingTasksResponse.cs index 2834eb9..e7144b9 100755 --- a/Services/Cdn/V1/Model/CreatePreheatingTasksResponse.cs +++ b/Services/Cdn/V1/Model/CreatePreheatingTasksResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/CreateRefreshTasksRequest.cs b/Services/Cdn/V1/Model/CreateRefreshTasksRequest.cs index df53453..1319b8d 100755 --- a/Services/Cdn/V1/Model/CreateRefreshTasksRequest.cs +++ b/Services/Cdn/V1/Model/CreateRefreshTasksRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/CreateRefreshTasksResponse.cs b/Services/Cdn/V1/Model/CreateRefreshTasksResponse.cs index f3c0111..eb8ea0a 100755 --- a/Services/Cdn/V1/Model/CreateRefreshTasksResponse.cs +++ b/Services/Cdn/V1/Model/CreateRefreshTasksResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/DeleteDomainRequest.cs b/Services/Cdn/V1/Model/DeleteDomainRequest.cs index fb855d4..ec6a8c4 100755 --- a/Services/Cdn/V1/Model/DeleteDomainRequest.cs +++ b/Services/Cdn/V1/Model/DeleteDomainRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/DeleteDomainResponse.cs b/Services/Cdn/V1/Model/DeleteDomainResponse.cs index 18f9d91..e45545b 100755 --- a/Services/Cdn/V1/Model/DeleteDomainResponse.cs +++ b/Services/Cdn/V1/Model/DeleteDomainResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/DisableDomainRequest.cs b/Services/Cdn/V1/Model/DisableDomainRequest.cs index 7292628..43c50cc 100755 --- a/Services/Cdn/V1/Model/DisableDomainRequest.cs +++ b/Services/Cdn/V1/Model/DisableDomainRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/DisableDomainResponse.cs b/Services/Cdn/V1/Model/DisableDomainResponse.cs index 09c1ed1..6190e90 100755 --- a/Services/Cdn/V1/Model/DisableDomainResponse.cs +++ b/Services/Cdn/V1/Model/DisableDomainResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/DomainBody.cs b/Services/Cdn/V1/Model/DomainBody.cs index de282a1..e6f3e31 100755 --- a/Services/Cdn/V1/Model/DomainBody.cs +++ b/Services/Cdn/V1/Model/DomainBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { @@ -46,11 +47,16 @@ public class BusinessTypeEnum { "wholeSite", WHOLESITE }, }; - private string Value; + private string _value; + + public BusinessTypeEnum() + { + + } public BusinessTypeEnum(string value) { - Value = value; + _value = value; } public static BusinessTypeEnum FromValue(string value) @@ -69,17 +75,17 @@ public static BusinessTypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -108,7 +114,7 @@ public bool Equals(BusinessTypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(BusinessTypeEnum a, BusinessTypeEnum b) @@ -158,11 +164,16 @@ public class ServiceAreaEnum { "global", GLOBAL }, }; - private string Value; + private string _value; + + public ServiceAreaEnum() + { + + } public ServiceAreaEnum(string value) { - Value = value; + _value = value; } public static ServiceAreaEnum FromValue(string value) @@ -181,17 +192,17 @@ public static ServiceAreaEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -220,7 +231,7 @@ public bool Equals(ServiceAreaEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(ServiceAreaEnum a, ServiceAreaEnum b) diff --git a/Services/Cdn/V1/Model/DomainItemDetail.cs b/Services/Cdn/V1/Model/DomainItemDetail.cs index 8c6beda..2c8eae7 100755 --- a/Services/Cdn/V1/Model/DomainItemDetail.cs +++ b/Services/Cdn/V1/Model/DomainItemDetail.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/DomainItemLocationDetails.cs b/Services/Cdn/V1/Model/DomainItemLocationDetails.cs index 4ae8c73..594af74 100755 --- a/Services/Cdn/V1/Model/DomainItemLocationDetails.cs +++ b/Services/Cdn/V1/Model/DomainItemLocationDetails.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/DomainOriginHost.cs b/Services/Cdn/V1/Model/DomainOriginHost.cs index 47cab97..74b8139 100755 --- a/Services/Cdn/V1/Model/DomainOriginHost.cs +++ b/Services/Cdn/V1/Model/DomainOriginHost.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/DomainRegion.cs b/Services/Cdn/V1/Model/DomainRegion.cs index af6b625..22ac892 100755 --- a/Services/Cdn/V1/Model/DomainRegion.cs +++ b/Services/Cdn/V1/Model/DomainRegion.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/Domains.cs b/Services/Cdn/V1/Model/Domains.cs index 8c02a4f..2edf94f 100755 --- a/Services/Cdn/V1/Model/Domains.cs +++ b/Services/Cdn/V1/Model/Domains.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { @@ -40,11 +41,16 @@ public class ServiceAreaEnum { "global", GLOBAL }, }; - private string Value; + private string _value; + + public ServiceAreaEnum() + { + + } public ServiceAreaEnum(string value) { - Value = value; + _value = value; } public static ServiceAreaEnum FromValue(string value) @@ -63,17 +69,17 @@ public static ServiceAreaEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -102,7 +108,7 @@ public bool Equals(ServiceAreaEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(ServiceAreaEnum a, ServiceAreaEnum b) diff --git a/Services/Cdn/V1/Model/DomainsWithPort.cs b/Services/Cdn/V1/Model/DomainsWithPort.cs index 5e9cdd3..b8e356a 100755 --- a/Services/Cdn/V1/Model/DomainsWithPort.cs +++ b/Services/Cdn/V1/Model/DomainsWithPort.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { @@ -40,11 +41,16 @@ public class ServiceAreaEnum { "global", GLOBAL }, }; - private string Value; + private string _value; + + public ServiceAreaEnum() + { + + } public ServiceAreaEnum(string value) { - Value = value; + _value = value; } public static ServiceAreaEnum FromValue(string value) @@ -63,17 +69,17 @@ public static ServiceAreaEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -102,7 +108,7 @@ public bool Equals(ServiceAreaEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(ServiceAreaEnum a, ServiceAreaEnum b) diff --git a/Services/Cdn/V1/Model/EnableDomainRequest.cs b/Services/Cdn/V1/Model/EnableDomainRequest.cs index 098f39f..d7ed991 100755 --- a/Services/Cdn/V1/Model/EnableDomainRequest.cs +++ b/Services/Cdn/V1/Model/EnableDomainRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/EnableDomainResponse.cs b/Services/Cdn/V1/Model/EnableDomainResponse.cs index e86ab66..6e27227 100755 --- a/Services/Cdn/V1/Model/EnableDomainResponse.cs +++ b/Services/Cdn/V1/Model/EnableDomainResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/Follow302StatusBody.cs b/Services/Cdn/V1/Model/Follow302StatusBody.cs index 6bb35ff..b5e5770 100755 --- a/Services/Cdn/V1/Model/Follow302StatusBody.cs +++ b/Services/Cdn/V1/Model/Follow302StatusBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { @@ -34,11 +35,16 @@ public class FollowStatusEnum { "on", ON }, }; - private string Value; + private string _value; + + public FollowStatusEnum() + { + + } public FollowStatusEnum(string value) { - Value = value; + _value = value; } public static FollowStatusEnum FromValue(string value) @@ -57,17 +63,17 @@ public static FollowStatusEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -96,7 +102,7 @@ public bool Equals(FollowStatusEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(FollowStatusEnum a, FollowStatusEnum b) diff --git a/Services/Cdn/V1/Model/Follow302StatusRequest.cs b/Services/Cdn/V1/Model/Follow302StatusRequest.cs index 5677082..eb44108 100755 --- a/Services/Cdn/V1/Model/Follow302StatusRequest.cs +++ b/Services/Cdn/V1/Model/Follow302StatusRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { @@ -34,11 +35,16 @@ public class Follow302StatusEnum { "on", ON }, }; - private string Value; + private string _value; + + public Follow302StatusEnum() + { + + } public Follow302StatusEnum(string value) { - Value = value; + _value = value; } public static Follow302StatusEnum FromValue(string value) @@ -57,17 +63,17 @@ public static Follow302StatusEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -96,7 +102,7 @@ public bool Equals(Follow302StatusEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(Follow302StatusEnum a, Follow302StatusEnum b) diff --git a/Services/Cdn/V1/Model/ForceRedirect.cs b/Services/Cdn/V1/Model/ForceRedirect.cs index 18fb703..7fab7b9 100755 --- a/Services/Cdn/V1/Model/ForceRedirect.cs +++ b/Services/Cdn/V1/Model/ForceRedirect.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/ForceRedirectConfig.cs b/Services/Cdn/V1/Model/ForceRedirectConfig.cs index db117ba..0e3ecb2 100755 --- a/Services/Cdn/V1/Model/ForceRedirectConfig.cs +++ b/Services/Cdn/V1/Model/ForceRedirectConfig.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/HeaderBody.cs b/Services/Cdn/V1/Model/HeaderBody.cs index 3f9e90c..ce04914 100755 --- a/Services/Cdn/V1/Model/HeaderBody.cs +++ b/Services/Cdn/V1/Model/HeaderBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/HeaderMap.cs b/Services/Cdn/V1/Model/HeaderMap.cs index 6acf069..b0e8e6e 100755 --- a/Services/Cdn/V1/Model/HeaderMap.cs +++ b/Services/Cdn/V1/Model/HeaderMap.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/HttpGetBody.cs b/Services/Cdn/V1/Model/HttpGetBody.cs index a80a74e..4935c5c 100755 --- a/Services/Cdn/V1/Model/HttpGetBody.cs +++ b/Services/Cdn/V1/Model/HttpGetBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/HttpInfoRequest.cs b/Services/Cdn/V1/Model/HttpInfoRequest.cs index ab11d49..1a25afe 100755 --- a/Services/Cdn/V1/Model/HttpInfoRequest.cs +++ b/Services/Cdn/V1/Model/HttpInfoRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/HttpInfoRequestBody.cs b/Services/Cdn/V1/Model/HttpInfoRequestBody.cs index 0571a1c..3d12937 100755 --- a/Services/Cdn/V1/Model/HttpInfoRequestBody.cs +++ b/Services/Cdn/V1/Model/HttpInfoRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/HttpInfoResponseBody.cs b/Services/Cdn/V1/Model/HttpInfoResponseBody.cs index bbb4a67..aa9aa1d 100755 --- a/Services/Cdn/V1/Model/HttpInfoResponseBody.cs +++ b/Services/Cdn/V1/Model/HttpInfoResponseBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/HttpPutBody.cs b/Services/Cdn/V1/Model/HttpPutBody.cs index 63cfe34..221f4e9 100755 --- a/Services/Cdn/V1/Model/HttpPutBody.cs +++ b/Services/Cdn/V1/Model/HttpPutBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/HttpResponseHeader.cs b/Services/Cdn/V1/Model/HttpResponseHeader.cs index 2a6c5ce..8aa899d 100755 --- a/Services/Cdn/V1/Model/HttpResponseHeader.cs +++ b/Services/Cdn/V1/Model/HttpResponseHeader.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/HttpsDetail.cs b/Services/Cdn/V1/Model/HttpsDetail.cs index a2df7a9..2ecf4f1 100755 --- a/Services/Cdn/V1/Model/HttpsDetail.cs +++ b/Services/Cdn/V1/Model/HttpsDetail.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/ListDomainsRequest.cs b/Services/Cdn/V1/Model/ListDomainsRequest.cs index a7388dd..1203666 100755 --- a/Services/Cdn/V1/Model/ListDomainsRequest.cs +++ b/Services/Cdn/V1/Model/ListDomainsRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { @@ -46,11 +47,16 @@ public class BusinessTypeEnum { "wholeSite", WHOLESITE }, }; - private string Value; + private string _value; + + public BusinessTypeEnum() + { + + } public BusinessTypeEnum(string value) { - Value = value; + _value = value; } public static BusinessTypeEnum FromValue(string value) @@ -69,17 +75,17 @@ public static BusinessTypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -108,7 +114,7 @@ public bool Equals(BusinessTypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(BusinessTypeEnum a, BusinessTypeEnum b) @@ -182,11 +188,16 @@ public class DomainStatusEnum { "deleting", DELETING }, }; - private string Value; + private string _value; + + public DomainStatusEnum() + { + + } public DomainStatusEnum(string value) { - Value = value; + _value = value; } public static DomainStatusEnum FromValue(string value) @@ -205,17 +216,17 @@ public static DomainStatusEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -244,7 +255,7 @@ public bool Equals(DomainStatusEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(DomainStatusEnum a, DomainStatusEnum b) @@ -294,11 +305,16 @@ public class ServiceAreaEnum { "global", GLOBAL }, }; - private string Value; + private string _value; + + public ServiceAreaEnum() + { + + } public ServiceAreaEnum(string value) { - Value = value; + _value = value; } public static ServiceAreaEnum FromValue(string value) @@ -317,17 +333,17 @@ public static ServiceAreaEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -356,7 +372,7 @@ public bool Equals(ServiceAreaEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(ServiceAreaEnum a, ServiceAreaEnum b) diff --git a/Services/Cdn/V1/Model/ListDomainsResponse.cs b/Services/Cdn/V1/Model/ListDomainsResponse.cs index b637110..d1f262f 100755 --- a/Services/Cdn/V1/Model/ListDomainsResponse.cs +++ b/Services/Cdn/V1/Model/ListDomainsResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/LogObject.cs b/Services/Cdn/V1/Model/LogObject.cs index dc06945..8c90c91 100755 --- a/Services/Cdn/V1/Model/LogObject.cs +++ b/Services/Cdn/V1/Model/LogObject.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/ModifyDomainConfigRequestBody.cs b/Services/Cdn/V1/Model/ModifyDomainConfigRequestBody.cs index 5c2da3f..fb422e4 100755 --- a/Services/Cdn/V1/Model/ModifyDomainConfigRequestBody.cs +++ b/Services/Cdn/V1/Model/ModifyDomainConfigRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/OriginHostBody.cs b/Services/Cdn/V1/Model/OriginHostBody.cs index 7738dc4..c38218e 100755 --- a/Services/Cdn/V1/Model/OriginHostBody.cs +++ b/Services/Cdn/V1/Model/OriginHostBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { @@ -34,11 +35,16 @@ public class OriginHostTypeEnum { "customize", CUSTOMIZE }, }; - private string Value; + private string _value; + + public OriginHostTypeEnum() + { + + } public OriginHostTypeEnum(string value) { - Value = value; + _value = value; } public static OriginHostTypeEnum FromValue(string value) @@ -57,17 +63,17 @@ public static OriginHostTypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -96,7 +102,7 @@ public bool Equals(OriginHostTypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(OriginHostTypeEnum a, OriginHostTypeEnum b) diff --git a/Services/Cdn/V1/Model/OriginHostRequest.cs b/Services/Cdn/V1/Model/OriginHostRequest.cs index 31c49a8..2b6c444 100755 --- a/Services/Cdn/V1/Model/OriginHostRequest.cs +++ b/Services/Cdn/V1/Model/OriginHostRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/OriginRangeBody.cs b/Services/Cdn/V1/Model/OriginRangeBody.cs index 31a37ca..6b686d1 100755 --- a/Services/Cdn/V1/Model/OriginRangeBody.cs +++ b/Services/Cdn/V1/Model/OriginRangeBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { @@ -34,11 +35,16 @@ public class RangeStatusEnum { "on", ON }, }; - private string Value; + private string _value; + + public RangeStatusEnum() + { + + } public RangeStatusEnum(string value) { - Value = value; + _value = value; } public static RangeStatusEnum FromValue(string value) @@ -57,17 +63,17 @@ public static RangeStatusEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -96,7 +102,7 @@ public bool Equals(RangeStatusEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(RangeStatusEnum a, RangeStatusEnum b) diff --git a/Services/Cdn/V1/Model/OriginRequest.cs b/Services/Cdn/V1/Model/OriginRequest.cs index cbd398d..8da063e 100755 --- a/Services/Cdn/V1/Model/OriginRequest.cs +++ b/Services/Cdn/V1/Model/OriginRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/OriginRequestHeader.cs b/Services/Cdn/V1/Model/OriginRequestHeader.cs index 7ebe3a1..30df656 100755 --- a/Services/Cdn/V1/Model/OriginRequestHeader.cs +++ b/Services/Cdn/V1/Model/OriginRequestHeader.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/PreheatingTaskRequest.cs b/Services/Cdn/V1/Model/PreheatingTaskRequest.cs index c1971b8..4a4d58d 100755 --- a/Services/Cdn/V1/Model/PreheatingTaskRequest.cs +++ b/Services/Cdn/V1/Model/PreheatingTaskRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/PreheatingTaskRequestBody.cs b/Services/Cdn/V1/Model/PreheatingTaskRequestBody.cs index b4ba7f2..f5ee761 100755 --- a/Services/Cdn/V1/Model/PreheatingTaskRequestBody.cs +++ b/Services/Cdn/V1/Model/PreheatingTaskRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/Quotas.cs b/Services/Cdn/V1/Model/Quotas.cs index 0f43754..8acc002 100755 --- a/Services/Cdn/V1/Model/Quotas.cs +++ b/Services/Cdn/V1/Model/Quotas.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/RangeStatusRequest.cs b/Services/Cdn/V1/Model/RangeStatusRequest.cs index 97242bd..cec24c1 100755 --- a/Services/Cdn/V1/Model/RangeStatusRequest.cs +++ b/Services/Cdn/V1/Model/RangeStatusRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { @@ -34,11 +35,16 @@ public class RangeStatusEnum { "on", ON }, }; - private string Value; + private string _value; + + public RangeStatusEnum() + { + + } public RangeStatusEnum(string value) { - Value = value; + _value = value; } public static RangeStatusEnum FromValue(string value) @@ -57,17 +63,17 @@ public static RangeStatusEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -96,7 +102,7 @@ public bool Equals(RangeStatusEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(RangeStatusEnum a, RangeStatusEnum b) diff --git a/Services/Cdn/V1/Model/Referer.cs b/Services/Cdn/V1/Model/Referer.cs index 2763d11..146b8e7 100755 --- a/Services/Cdn/V1/Model/Referer.cs +++ b/Services/Cdn/V1/Model/Referer.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/RefererBody.cs b/Services/Cdn/V1/Model/RefererBody.cs index 61be26c..825d640 100755 --- a/Services/Cdn/V1/Model/RefererBody.cs +++ b/Services/Cdn/V1/Model/RefererBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/RefererRsp.cs b/Services/Cdn/V1/Model/RefererRsp.cs index 2f0f192..2ac9d72 100755 --- a/Services/Cdn/V1/Model/RefererRsp.cs +++ b/Services/Cdn/V1/Model/RefererRsp.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/RefreshTaskRequest.cs b/Services/Cdn/V1/Model/RefreshTaskRequest.cs index bbf40b5..907647b 100755 --- a/Services/Cdn/V1/Model/RefreshTaskRequest.cs +++ b/Services/Cdn/V1/Model/RefreshTaskRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/RefreshTaskRequestBody.cs b/Services/Cdn/V1/Model/RefreshTaskRequestBody.cs index bf015cb..2d5db38 100755 --- a/Services/Cdn/V1/Model/RefreshTaskRequestBody.cs +++ b/Services/Cdn/V1/Model/RefreshTaskRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { @@ -34,11 +35,16 @@ public class TypeEnum { "directory", DIRECTORY }, }; - private string Value; + private string _value; + + public TypeEnum() + { + + } public TypeEnum(string value) { - Value = value; + _value = value; } public static TypeEnum FromValue(string value) @@ -57,17 +63,17 @@ public static TypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -96,7 +102,7 @@ public bool Equals(TypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(TypeEnum a, TypeEnum b) diff --git a/Services/Cdn/V1/Model/ResourceBody.cs b/Services/Cdn/V1/Model/ResourceBody.cs index c6813d6..ed7010c 100755 --- a/Services/Cdn/V1/Model/ResourceBody.cs +++ b/Services/Cdn/V1/Model/ResourceBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/Rules.cs b/Services/Cdn/V1/Model/Rules.cs index 473e2b5..9e77bc0 100755 --- a/Services/Cdn/V1/Model/Rules.cs +++ b/Services/Cdn/V1/Model/Rules.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/ShowBlackWhiteListRequest.cs b/Services/Cdn/V1/Model/ShowBlackWhiteListRequest.cs index 9beda67..e889af2 100755 --- a/Services/Cdn/V1/Model/ShowBlackWhiteListRequest.cs +++ b/Services/Cdn/V1/Model/ShowBlackWhiteListRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/ShowBlackWhiteListResponse.cs b/Services/Cdn/V1/Model/ShowBlackWhiteListResponse.cs index dad2a91..0431a7c 100755 --- a/Services/Cdn/V1/Model/ShowBlackWhiteListResponse.cs +++ b/Services/Cdn/V1/Model/ShowBlackWhiteListResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/ShowCacheRulesRequest.cs b/Services/Cdn/V1/Model/ShowCacheRulesRequest.cs index 0e546df..43d12df 100755 --- a/Services/Cdn/V1/Model/ShowCacheRulesRequest.cs +++ b/Services/Cdn/V1/Model/ShowCacheRulesRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/ShowCacheRulesResponse.cs b/Services/Cdn/V1/Model/ShowCacheRulesResponse.cs index 9144aa8..8d12fec 100755 --- a/Services/Cdn/V1/Model/ShowCacheRulesResponse.cs +++ b/Services/Cdn/V1/Model/ShowCacheRulesResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/ShowCertificatesHttpsInfoRequest.cs b/Services/Cdn/V1/Model/ShowCertificatesHttpsInfoRequest.cs index c204a00..613a7af 100755 --- a/Services/Cdn/V1/Model/ShowCertificatesHttpsInfoRequest.cs +++ b/Services/Cdn/V1/Model/ShowCertificatesHttpsInfoRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/ShowCertificatesHttpsInfoResponse.cs b/Services/Cdn/V1/Model/ShowCertificatesHttpsInfoResponse.cs index a235a72..816557b 100755 --- a/Services/Cdn/V1/Model/ShowCertificatesHttpsInfoResponse.cs +++ b/Services/Cdn/V1/Model/ShowCertificatesHttpsInfoResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/ShowDomainDetailRequest.cs b/Services/Cdn/V1/Model/ShowDomainDetailRequest.cs index 1e84fb6..c8544b2 100755 --- a/Services/Cdn/V1/Model/ShowDomainDetailRequest.cs +++ b/Services/Cdn/V1/Model/ShowDomainDetailRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/ShowDomainDetailResponse.cs b/Services/Cdn/V1/Model/ShowDomainDetailResponse.cs index 10d1e97..3d07ec4 100755 --- a/Services/Cdn/V1/Model/ShowDomainDetailResponse.cs +++ b/Services/Cdn/V1/Model/ShowDomainDetailResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/ShowDomainFullConfigRequest.cs b/Services/Cdn/V1/Model/ShowDomainFullConfigRequest.cs index e19687e..3f21e76 100755 --- a/Services/Cdn/V1/Model/ShowDomainFullConfigRequest.cs +++ b/Services/Cdn/V1/Model/ShowDomainFullConfigRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/ShowDomainFullConfigResponse.cs b/Services/Cdn/V1/Model/ShowDomainFullConfigResponse.cs index 4c91887..dd11c29 100755 --- a/Services/Cdn/V1/Model/ShowDomainFullConfigResponse.cs +++ b/Services/Cdn/V1/Model/ShowDomainFullConfigResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/ShowDomainItemDetailsRequest.cs b/Services/Cdn/V1/Model/ShowDomainItemDetailsRequest.cs index 28061f2..b7b4311 100755 --- a/Services/Cdn/V1/Model/ShowDomainItemDetailsRequest.cs +++ b/Services/Cdn/V1/Model/ShowDomainItemDetailsRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/ShowDomainItemDetailsResponse.cs b/Services/Cdn/V1/Model/ShowDomainItemDetailsResponse.cs index a09b07a..0869fb9 100755 --- a/Services/Cdn/V1/Model/ShowDomainItemDetailsResponse.cs +++ b/Services/Cdn/V1/Model/ShowDomainItemDetailsResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/ShowDomainItemLocationDetailsRequest.cs b/Services/Cdn/V1/Model/ShowDomainItemLocationDetailsRequest.cs index 1b8b8b0..2a19064 100755 --- a/Services/Cdn/V1/Model/ShowDomainItemLocationDetailsRequest.cs +++ b/Services/Cdn/V1/Model/ShowDomainItemLocationDetailsRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/ShowDomainItemLocationDetailsResponse.cs b/Services/Cdn/V1/Model/ShowDomainItemLocationDetailsResponse.cs index e5e4301..eba6de0 100755 --- a/Services/Cdn/V1/Model/ShowDomainItemLocationDetailsResponse.cs +++ b/Services/Cdn/V1/Model/ShowDomainItemLocationDetailsResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/ShowDomainLocationStatsRequest.cs b/Services/Cdn/V1/Model/ShowDomainLocationStatsRequest.cs index be3ae2a..38f31ae 100755 --- a/Services/Cdn/V1/Model/ShowDomainLocationStatsRequest.cs +++ b/Services/Cdn/V1/Model/ShowDomainLocationStatsRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/ShowDomainLocationStatsResponse.cs b/Services/Cdn/V1/Model/ShowDomainLocationStatsResponse.cs index aa195d6..8a3be03 100755 --- a/Services/Cdn/V1/Model/ShowDomainLocationStatsResponse.cs +++ b/Services/Cdn/V1/Model/ShowDomainLocationStatsResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/ShowDomainStatsRequest.cs b/Services/Cdn/V1/Model/ShowDomainStatsRequest.cs index 07759ff..835ea63 100755 --- a/Services/Cdn/V1/Model/ShowDomainStatsRequest.cs +++ b/Services/Cdn/V1/Model/ShowDomainStatsRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/ShowDomainStatsResponse.cs b/Services/Cdn/V1/Model/ShowDomainStatsResponse.cs index ba6fce7..67c543a 100755 --- a/Services/Cdn/V1/Model/ShowDomainStatsResponse.cs +++ b/Services/Cdn/V1/Model/ShowDomainStatsResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/ShowHistoryTaskDetailsRequest.cs b/Services/Cdn/V1/Model/ShowHistoryTaskDetailsRequest.cs index 5bd2c97..658fc00 100755 --- a/Services/Cdn/V1/Model/ShowHistoryTaskDetailsRequest.cs +++ b/Services/Cdn/V1/Model/ShowHistoryTaskDetailsRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/ShowHistoryTaskDetailsResponse.cs b/Services/Cdn/V1/Model/ShowHistoryTaskDetailsResponse.cs index c02db8c..eef82fb 100755 --- a/Services/Cdn/V1/Model/ShowHistoryTaskDetailsResponse.cs +++ b/Services/Cdn/V1/Model/ShowHistoryTaskDetailsResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/ShowHistoryTasksRequest.cs b/Services/Cdn/V1/Model/ShowHistoryTasksRequest.cs index 9d2a79e..c74d3ae 100755 --- a/Services/Cdn/V1/Model/ShowHistoryTasksRequest.cs +++ b/Services/Cdn/V1/Model/ShowHistoryTasksRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { @@ -34,11 +35,16 @@ public class StatusEnum { "task_done", TASK_DONE }, }; - private string Value; + private string _value; + + public StatusEnum() + { + + } public StatusEnum(string value) { - Value = value; + _value = value; } public static StatusEnum FromValue(string value) @@ -57,17 +63,17 @@ public static StatusEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -96,7 +102,7 @@ public bool Equals(StatusEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(StatusEnum a, StatusEnum b) @@ -140,11 +146,16 @@ public class FileTypeEnum { "directory", DIRECTORY }, }; - private string Value; + private string _value; + + public FileTypeEnum() + { + + } public FileTypeEnum(string value) { - Value = value; + _value = value; } public static FileTypeEnum FromValue(string value) @@ -163,17 +174,17 @@ public static FileTypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -202,7 +213,7 @@ public bool Equals(FileTypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(FileTypeEnum a, FileTypeEnum b) diff --git a/Services/Cdn/V1/Model/ShowHistoryTasksResponse.cs b/Services/Cdn/V1/Model/ShowHistoryTasksResponse.cs index f9ca096..f7d66b8 100755 --- a/Services/Cdn/V1/Model/ShowHistoryTasksResponse.cs +++ b/Services/Cdn/V1/Model/ShowHistoryTasksResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/ShowHttpInfoRequest.cs b/Services/Cdn/V1/Model/ShowHttpInfoRequest.cs index dc72adc..cba3452 100755 --- a/Services/Cdn/V1/Model/ShowHttpInfoRequest.cs +++ b/Services/Cdn/V1/Model/ShowHttpInfoRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/ShowHttpInfoResponse.cs b/Services/Cdn/V1/Model/ShowHttpInfoResponse.cs index 79964ae..e72ea23 100755 --- a/Services/Cdn/V1/Model/ShowHttpInfoResponse.cs +++ b/Services/Cdn/V1/Model/ShowHttpInfoResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/ShowIpInfoRequest.cs b/Services/Cdn/V1/Model/ShowIpInfoRequest.cs index bdd9191..adf7d9a 100755 --- a/Services/Cdn/V1/Model/ShowIpInfoRequest.cs +++ b/Services/Cdn/V1/Model/ShowIpInfoRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/ShowIpInfoResponse.cs b/Services/Cdn/V1/Model/ShowIpInfoResponse.cs index e8eb6b1..fd8b7cd 100755 --- a/Services/Cdn/V1/Model/ShowIpInfoResponse.cs +++ b/Services/Cdn/V1/Model/ShowIpInfoResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/ShowLogsRequest.cs b/Services/Cdn/V1/Model/ShowLogsRequest.cs index e0b7204..67ea173 100755 --- a/Services/Cdn/V1/Model/ShowLogsRequest.cs +++ b/Services/Cdn/V1/Model/ShowLogsRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/ShowLogsResponse.cs b/Services/Cdn/V1/Model/ShowLogsResponse.cs index 85009bb..088af86 100755 --- a/Services/Cdn/V1/Model/ShowLogsResponse.cs +++ b/Services/Cdn/V1/Model/ShowLogsResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/ShowOriginHostRequest.cs b/Services/Cdn/V1/Model/ShowOriginHostRequest.cs index f0db487..ea58c33 100755 --- a/Services/Cdn/V1/Model/ShowOriginHostRequest.cs +++ b/Services/Cdn/V1/Model/ShowOriginHostRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/ShowOriginHostResponse.cs b/Services/Cdn/V1/Model/ShowOriginHostResponse.cs index 44393b1..1f90a6e 100755 --- a/Services/Cdn/V1/Model/ShowOriginHostResponse.cs +++ b/Services/Cdn/V1/Model/ShowOriginHostResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/ShowQuotaRequest.cs b/Services/Cdn/V1/Model/ShowQuotaRequest.cs index 4d64ad5..d445c20 100755 --- a/Services/Cdn/V1/Model/ShowQuotaRequest.cs +++ b/Services/Cdn/V1/Model/ShowQuotaRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/ShowQuotaResponse.cs b/Services/Cdn/V1/Model/ShowQuotaResponse.cs index 9ab0a4e..ecf18a4 100755 --- a/Services/Cdn/V1/Model/ShowQuotaResponse.cs +++ b/Services/Cdn/V1/Model/ShowQuotaResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/ShowReferRequest.cs b/Services/Cdn/V1/Model/ShowReferRequest.cs index fde764c..cbcb2d8 100755 --- a/Services/Cdn/V1/Model/ShowReferRequest.cs +++ b/Services/Cdn/V1/Model/ShowReferRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/ShowReferResponse.cs b/Services/Cdn/V1/Model/ShowReferResponse.cs index b64e977..e632a0e 100755 --- a/Services/Cdn/V1/Model/ShowReferResponse.cs +++ b/Services/Cdn/V1/Model/ShowReferResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/ShowResponseHeaderRequest.cs b/Services/Cdn/V1/Model/ShowResponseHeaderRequest.cs index 961405c..4f3f002 100755 --- a/Services/Cdn/V1/Model/ShowResponseHeaderRequest.cs +++ b/Services/Cdn/V1/Model/ShowResponseHeaderRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/ShowResponseHeaderResponse.cs b/Services/Cdn/V1/Model/ShowResponseHeaderResponse.cs index 2656646..b86adf4 100755 --- a/Services/Cdn/V1/Model/ShowResponseHeaderResponse.cs +++ b/Services/Cdn/V1/Model/ShowResponseHeaderResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/ShowTopUrlRequest.cs b/Services/Cdn/V1/Model/ShowTopUrlRequest.cs index c37b0ad..322257c 100755 --- a/Services/Cdn/V1/Model/ShowTopUrlRequest.cs +++ b/Services/Cdn/V1/Model/ShowTopUrlRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { @@ -34,11 +35,16 @@ public class ServiceAreaEnum { "outside_mainland_china", OUTSIDE_MAINLAND_CHINA }, }; - private string Value; + private string _value; + + public ServiceAreaEnum() + { + + } public ServiceAreaEnum(string value) { - Value = value; + _value = value; } public static ServiceAreaEnum FromValue(string value) @@ -57,17 +63,17 @@ public static ServiceAreaEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -96,7 +102,7 @@ public bool Equals(ServiceAreaEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(ServiceAreaEnum a, ServiceAreaEnum b) @@ -140,11 +146,16 @@ public class StatTypeEnum { "req_num", REQ_NUM }, }; - private string Value; + private string _value; + + public StatTypeEnum() + { + + } public StatTypeEnum(string value) { - Value = value; + _value = value; } public static StatTypeEnum FromValue(string value) @@ -163,17 +174,17 @@ public static StatTypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -202,7 +213,7 @@ public bool Equals(StatTypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(StatTypeEnum a, StatTypeEnum b) diff --git a/Services/Cdn/V1/Model/ShowTopUrlResponse.cs b/Services/Cdn/V1/Model/ShowTopUrlResponse.cs index bb7f7df..d19409a 100755 --- a/Services/Cdn/V1/Model/ShowTopUrlResponse.cs +++ b/Services/Cdn/V1/Model/ShowTopUrlResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/SourceWithPort.cs b/Services/Cdn/V1/Model/SourceWithPort.cs index fa054aa..cf80f11 100755 --- a/Services/Cdn/V1/Model/SourceWithPort.cs +++ b/Services/Cdn/V1/Model/SourceWithPort.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { @@ -40,11 +41,16 @@ public class OriginTypeEnum { "obs_bucket", OBS_BUCKET }, }; - private string Value; + private string _value; + + public OriginTypeEnum() + { + + } public OriginTypeEnum(string value) { - Value = value; + _value = value; } public static OriginTypeEnum FromValue(string value) @@ -63,17 +69,17 @@ public static OriginTypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -102,7 +108,7 @@ public bool Equals(OriginTypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(OriginTypeEnum a, OriginTypeEnum b) diff --git a/Services/Cdn/V1/Model/Sources.cs b/Services/Cdn/V1/Model/Sources.cs index ce04374..1991bbb 100755 --- a/Services/Cdn/V1/Model/Sources.cs +++ b/Services/Cdn/V1/Model/Sources.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { @@ -40,11 +41,16 @@ public class OriginTypeEnum { "obs_bucket", OBS_BUCKET }, }; - private string Value; + private string _value; + + public OriginTypeEnum() + { + + } public OriginTypeEnum(string value) { - Value = value; + _value = value; } public static OriginTypeEnum FromValue(string value) @@ -63,17 +69,17 @@ public static OriginTypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -102,7 +108,7 @@ public bool Equals(OriginTypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(OriginTypeEnum a, OriginTypeEnum b) diff --git a/Services/Cdn/V1/Model/SourcesConfig.cs b/Services/Cdn/V1/Model/SourcesConfig.cs index 942dbe2..ca7ee5e 100755 --- a/Services/Cdn/V1/Model/SourcesConfig.cs +++ b/Services/Cdn/V1/Model/SourcesConfig.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/TasksObject.cs b/Services/Cdn/V1/Model/TasksObject.cs index 7534b09..9d7620f 100755 --- a/Services/Cdn/V1/Model/TasksObject.cs +++ b/Services/Cdn/V1/Model/TasksObject.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { @@ -34,11 +35,16 @@ public class TaskTypeEnum { "preheating", PREHEATING }, }; - private string Value; + private string _value; + + public TaskTypeEnum() + { + + } public TaskTypeEnum(string value) { - Value = value; + _value = value; } public static TaskTypeEnum FromValue(string value) @@ -57,17 +63,17 @@ public static TaskTypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -96,7 +102,7 @@ public bool Equals(TaskTypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(TaskTypeEnum a, TaskTypeEnum b) @@ -140,11 +146,16 @@ public class FileTypeEnum { "directory", DIRECTORY }, }; - private string Value; + private string _value; + + public FileTypeEnum() + { + + } public FileTypeEnum(string value) { - Value = value; + _value = value; } public static FileTypeEnum FromValue(string value) @@ -163,17 +174,17 @@ public static FileTypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -202,7 +213,7 @@ public bool Equals(FileTypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(FileTypeEnum a, FileTypeEnum b) diff --git a/Services/Cdn/V1/Model/TopUrlSummary.cs b/Services/Cdn/V1/Model/TopUrlSummary.cs index c4dbebf..bc64869 100755 --- a/Services/Cdn/V1/Model/TopUrlSummary.cs +++ b/Services/Cdn/V1/Model/TopUrlSummary.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/UpdateBlackWhiteListRequest.cs b/Services/Cdn/V1/Model/UpdateBlackWhiteListRequest.cs index ac7d527..296774b 100755 --- a/Services/Cdn/V1/Model/UpdateBlackWhiteListRequest.cs +++ b/Services/Cdn/V1/Model/UpdateBlackWhiteListRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/UpdateBlackWhiteListResponse.cs b/Services/Cdn/V1/Model/UpdateBlackWhiteListResponse.cs index f5b91a9..e44c585 100755 --- a/Services/Cdn/V1/Model/UpdateBlackWhiteListResponse.cs +++ b/Services/Cdn/V1/Model/UpdateBlackWhiteListResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/UpdateCacheRulesRequest.cs b/Services/Cdn/V1/Model/UpdateCacheRulesRequest.cs index 904a1dd..a9639fb 100755 --- a/Services/Cdn/V1/Model/UpdateCacheRulesRequest.cs +++ b/Services/Cdn/V1/Model/UpdateCacheRulesRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/UpdateCacheRulesResponse.cs b/Services/Cdn/V1/Model/UpdateCacheRulesResponse.cs index 8f3972c..48e9bc1 100755 --- a/Services/Cdn/V1/Model/UpdateCacheRulesResponse.cs +++ b/Services/Cdn/V1/Model/UpdateCacheRulesResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/UpdateDomainFullConfigRequest.cs b/Services/Cdn/V1/Model/UpdateDomainFullConfigRequest.cs index 65fbf6b..3fb48f4 100755 --- a/Services/Cdn/V1/Model/UpdateDomainFullConfigRequest.cs +++ b/Services/Cdn/V1/Model/UpdateDomainFullConfigRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/UpdateDomainFullConfigResponse.cs b/Services/Cdn/V1/Model/UpdateDomainFullConfigResponse.cs index 5a66833..df3e429 100755 --- a/Services/Cdn/V1/Model/UpdateDomainFullConfigResponse.cs +++ b/Services/Cdn/V1/Model/UpdateDomainFullConfigResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/UpdateDomainMultiCertificatesRequest.cs b/Services/Cdn/V1/Model/UpdateDomainMultiCertificatesRequest.cs index 6e155cc..90e6a0f 100755 --- a/Services/Cdn/V1/Model/UpdateDomainMultiCertificatesRequest.cs +++ b/Services/Cdn/V1/Model/UpdateDomainMultiCertificatesRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/UpdateDomainMultiCertificatesRequestBody.cs b/Services/Cdn/V1/Model/UpdateDomainMultiCertificatesRequestBody.cs index acb1740..4fd678f 100755 --- a/Services/Cdn/V1/Model/UpdateDomainMultiCertificatesRequestBody.cs +++ b/Services/Cdn/V1/Model/UpdateDomainMultiCertificatesRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/UpdateDomainMultiCertificatesRequestBodyContent.cs b/Services/Cdn/V1/Model/UpdateDomainMultiCertificatesRequestBodyContent.cs index 650c76a..5d27f09 100755 --- a/Services/Cdn/V1/Model/UpdateDomainMultiCertificatesRequestBodyContent.cs +++ b/Services/Cdn/V1/Model/UpdateDomainMultiCertificatesRequestBodyContent.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/UpdateDomainMultiCertificatesResponse.cs b/Services/Cdn/V1/Model/UpdateDomainMultiCertificatesResponse.cs index 1e46e2b..ecf38b8 100755 --- a/Services/Cdn/V1/Model/UpdateDomainMultiCertificatesResponse.cs +++ b/Services/Cdn/V1/Model/UpdateDomainMultiCertificatesResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/UpdateDomainMultiCertificatesResponseBodyContent.cs b/Services/Cdn/V1/Model/UpdateDomainMultiCertificatesResponseBodyContent.cs index 414d69a..b8bf4bb 100755 --- a/Services/Cdn/V1/Model/UpdateDomainMultiCertificatesResponseBodyContent.cs +++ b/Services/Cdn/V1/Model/UpdateDomainMultiCertificatesResponseBodyContent.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/UpdateDomainOriginRequest.cs b/Services/Cdn/V1/Model/UpdateDomainOriginRequest.cs index 48f40b2..d047a39 100755 --- a/Services/Cdn/V1/Model/UpdateDomainOriginRequest.cs +++ b/Services/Cdn/V1/Model/UpdateDomainOriginRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/UpdateDomainOriginResponse.cs b/Services/Cdn/V1/Model/UpdateDomainOriginResponse.cs index 0c611a0..36227da 100755 --- a/Services/Cdn/V1/Model/UpdateDomainOriginResponse.cs +++ b/Services/Cdn/V1/Model/UpdateDomainOriginResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/UpdateFollow302SwitchRequest.cs b/Services/Cdn/V1/Model/UpdateFollow302SwitchRequest.cs index 3c7e042..d5df661 100755 --- a/Services/Cdn/V1/Model/UpdateFollow302SwitchRequest.cs +++ b/Services/Cdn/V1/Model/UpdateFollow302SwitchRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/UpdateFollow302SwitchResponse.cs b/Services/Cdn/V1/Model/UpdateFollow302SwitchResponse.cs index cbfb8bb..bff116f 100755 --- a/Services/Cdn/V1/Model/UpdateFollow302SwitchResponse.cs +++ b/Services/Cdn/V1/Model/UpdateFollow302SwitchResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/UpdateHttpsInfoRequest.cs b/Services/Cdn/V1/Model/UpdateHttpsInfoRequest.cs index 60db871..5747081 100755 --- a/Services/Cdn/V1/Model/UpdateHttpsInfoRequest.cs +++ b/Services/Cdn/V1/Model/UpdateHttpsInfoRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/UpdateHttpsInfoResponse.cs b/Services/Cdn/V1/Model/UpdateHttpsInfoResponse.cs index 45bb79e..ba9f256 100755 --- a/Services/Cdn/V1/Model/UpdateHttpsInfoResponse.cs +++ b/Services/Cdn/V1/Model/UpdateHttpsInfoResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/UpdateOriginHostRequest.cs b/Services/Cdn/V1/Model/UpdateOriginHostRequest.cs index 4c36e75..997c407 100755 --- a/Services/Cdn/V1/Model/UpdateOriginHostRequest.cs +++ b/Services/Cdn/V1/Model/UpdateOriginHostRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/UpdateOriginHostResponse.cs b/Services/Cdn/V1/Model/UpdateOriginHostResponse.cs index e7c98c4..7129303 100755 --- a/Services/Cdn/V1/Model/UpdateOriginHostResponse.cs +++ b/Services/Cdn/V1/Model/UpdateOriginHostResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/UpdatePrivateBucketAccessBody.cs b/Services/Cdn/V1/Model/UpdatePrivateBucketAccessBody.cs index 6ca77ae..0cd3ac3 100755 --- a/Services/Cdn/V1/Model/UpdatePrivateBucketAccessBody.cs +++ b/Services/Cdn/V1/Model/UpdatePrivateBucketAccessBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/UpdatePrivateBucketAccessRequest.cs b/Services/Cdn/V1/Model/UpdatePrivateBucketAccessRequest.cs index d23ad3c..101e02d 100755 --- a/Services/Cdn/V1/Model/UpdatePrivateBucketAccessRequest.cs +++ b/Services/Cdn/V1/Model/UpdatePrivateBucketAccessRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/UpdatePrivateBucketAccessResponse.cs b/Services/Cdn/V1/Model/UpdatePrivateBucketAccessResponse.cs index f983a36..0f787c0 100755 --- a/Services/Cdn/V1/Model/UpdatePrivateBucketAccessResponse.cs +++ b/Services/Cdn/V1/Model/UpdatePrivateBucketAccessResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/UpdateRangeSwitchRequest.cs b/Services/Cdn/V1/Model/UpdateRangeSwitchRequest.cs index e4dff41..e8af9e0 100755 --- a/Services/Cdn/V1/Model/UpdateRangeSwitchRequest.cs +++ b/Services/Cdn/V1/Model/UpdateRangeSwitchRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/UpdateRangeSwitchResponse.cs b/Services/Cdn/V1/Model/UpdateRangeSwitchResponse.cs index 28d7e42..c099468 100755 --- a/Services/Cdn/V1/Model/UpdateRangeSwitchResponse.cs +++ b/Services/Cdn/V1/Model/UpdateRangeSwitchResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/UpdateReferRequest.cs b/Services/Cdn/V1/Model/UpdateReferRequest.cs index 2da5028..21fdc30 100755 --- a/Services/Cdn/V1/Model/UpdateReferRequest.cs +++ b/Services/Cdn/V1/Model/UpdateReferRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/UpdateReferResponse.cs b/Services/Cdn/V1/Model/UpdateReferResponse.cs index 94e0eee..abc3488 100755 --- a/Services/Cdn/V1/Model/UpdateReferResponse.cs +++ b/Services/Cdn/V1/Model/UpdateReferResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/UpdateResponseHeaderRequest.cs b/Services/Cdn/V1/Model/UpdateResponseHeaderRequest.cs index dd19c19..d8d2bda 100755 --- a/Services/Cdn/V1/Model/UpdateResponseHeaderRequest.cs +++ b/Services/Cdn/V1/Model/UpdateResponseHeaderRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/UpdateResponseHeaderResponse.cs b/Services/Cdn/V1/Model/UpdateResponseHeaderResponse.cs index ed60201..c628021 100755 --- a/Services/Cdn/V1/Model/UpdateResponseHeaderResponse.cs +++ b/Services/Cdn/V1/Model/UpdateResponseHeaderResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/UrlAuth.cs b/Services/Cdn/V1/Model/UrlAuth.cs index bcf8c48..a2bce42 100755 --- a/Services/Cdn/V1/Model/UrlAuth.cs +++ b/Services/Cdn/V1/Model/UrlAuth.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/UrlAuthGetBody.cs b/Services/Cdn/V1/Model/UrlAuthGetBody.cs index 6320316..961ea14 100755 --- a/Services/Cdn/V1/Model/UrlAuthGetBody.cs +++ b/Services/Cdn/V1/Model/UrlAuthGetBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Model/UrlObject.cs b/Services/Cdn/V1/Model/UrlObject.cs index 1a82965..4a419e8 100755 --- a/Services/Cdn/V1/Model/UrlObject.cs +++ b/Services/Cdn/V1/Model/UrlObject.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1.Model { diff --git a/Services/Cdn/V1/Region/CdnRegion.cs b/Services/Cdn/V1/Region/CdnRegion.cs index 98f6724..8d909a9 100755 --- a/Services/Cdn/V1/Region/CdnRegion.cs +++ b/Services/Cdn/V1/Region/CdnRegion.cs @@ -1,6 +1,6 @@ using System; using System.Collections.Generic; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V1 { diff --git a/Services/Cdn/V2/CdnAsyncClient.cs b/Services/Cdn/V2/CdnAsyncClient.cs index 571e308..07f28d9 100755 --- a/Services/Cdn/V2/CdnAsyncClient.cs +++ b/Services/Cdn/V2/CdnAsyncClient.cs @@ -1,7 +1,7 @@ using System.Net.Http; using System.Collections.Generic; using System.Threading.Tasks; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; using G42Cloud.SDK.Cdn.V2.Model; namespace G42Cloud.SDK.Cdn.V2 diff --git a/Services/Cdn/V2/CdnClient.cs b/Services/Cdn/V2/CdnClient.cs index 19f7e9e..7ed82eb 100755 --- a/Services/Cdn/V2/CdnClient.cs +++ b/Services/Cdn/V2/CdnClient.cs @@ -1,6 +1,6 @@ using System.Net.Http; using System.Collections.Generic; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; using G42Cloud.SDK.Cdn.V2.Model; namespace G42Cloud.SDK.Cdn.V2 diff --git a/Services/Cdn/V2/Model/ErrMsg.cs b/Services/Cdn/V2/Model/ErrMsg.cs index 5ed9160..84757ef 100755 --- a/Services/Cdn/V2/Model/ErrMsg.cs +++ b/Services/Cdn/V2/Model/ErrMsg.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V2.Model { diff --git a/Services/Cdn/V2/Model/ErrRsp.cs b/Services/Cdn/V2/Model/ErrRsp.cs index a9a62a7..c39f423 100755 --- a/Services/Cdn/V2/Model/ErrRsp.cs +++ b/Services/Cdn/V2/Model/ErrRsp.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V2.Model { diff --git a/Services/Cdn/V2/Model/ShowDomainLocationStatsRequest.cs b/Services/Cdn/V2/Model/ShowDomainLocationStatsRequest.cs index 3d7e050..1004876 100755 --- a/Services/Cdn/V2/Model/ShowDomainLocationStatsRequest.cs +++ b/Services/Cdn/V2/Model/ShowDomainLocationStatsRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V2.Model { diff --git a/Services/Cdn/V2/Model/ShowDomainLocationStatsResponse.cs b/Services/Cdn/V2/Model/ShowDomainLocationStatsResponse.cs index cd71f32..36ecd1d 100755 --- a/Services/Cdn/V2/Model/ShowDomainLocationStatsResponse.cs +++ b/Services/Cdn/V2/Model/ShowDomainLocationStatsResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V2.Model { diff --git a/Services/Cdn/V2/Model/ShowDomainStatsRequest.cs b/Services/Cdn/V2/Model/ShowDomainStatsRequest.cs index 76d9dc9..38b03d1 100755 --- a/Services/Cdn/V2/Model/ShowDomainStatsRequest.cs +++ b/Services/Cdn/V2/Model/ShowDomainStatsRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V2.Model { diff --git a/Services/Cdn/V2/Model/ShowDomainStatsResponse.cs b/Services/Cdn/V2/Model/ShowDomainStatsResponse.cs index 1b9d723..0c28342 100755 --- a/Services/Cdn/V2/Model/ShowDomainStatsResponse.cs +++ b/Services/Cdn/V2/Model/ShowDomainStatsResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V2.Model { diff --git a/Services/Cdn/V2/Model/ShowTopUrlRequest.cs b/Services/Cdn/V2/Model/ShowTopUrlRequest.cs index ed5923e..14b8997 100755 --- a/Services/Cdn/V2/Model/ShowTopUrlRequest.cs +++ b/Services/Cdn/V2/Model/ShowTopUrlRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V2.Model { diff --git a/Services/Cdn/V2/Model/ShowTopUrlResponse.cs b/Services/Cdn/V2/Model/ShowTopUrlResponse.cs index 12ac0fd..5d5e7cc 100755 --- a/Services/Cdn/V2/Model/ShowTopUrlResponse.cs +++ b/Services/Cdn/V2/Model/ShowTopUrlResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V2.Model { diff --git a/Services/Cdn/V2/Region/CdnRegion.cs b/Services/Cdn/V2/Region/CdnRegion.cs index 05f8d5b..0fe4c2d 100755 --- a/Services/Cdn/V2/Region/CdnRegion.cs +++ b/Services/Cdn/V2/Region/CdnRegion.cs @@ -1,6 +1,6 @@ using System; using System.Collections.Generic; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Cdn.V2 { diff --git a/Services/Cdn/obj/Cdn.csproj.nuget.cache b/Services/Cdn/obj/Cdn.csproj.nuget.cache deleted file mode 100644 index 2d892b0..0000000 --- a/Services/Cdn/obj/Cdn.csproj.nuget.cache +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": 1, - "dgSpecHash": "8pIsg/6oP9Qq5cIIvRXha4N/gN3wifUF/TzVN18YVE3DutSIEx7HHcjKu4Bg5ROkWeYFfm7ene+QxOTfAUdpng==", - "success": true -} \ No newline at end of file diff --git a/Services/Cdn/obj/Cdn.csproj.nuget.dgspec.json b/Services/Cdn/obj/Cdn.csproj.nuget.dgspec.json deleted file mode 100644 index fd68013..0000000 --- a/Services/Cdn/obj/Cdn.csproj.nuget.dgspec.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "format": 1, - "restore": { - "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Cdn/Cdn.csproj": {} - }, - "projects": { - "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Cdn/Cdn.csproj": { - "version": "0.0.2-beta", - "restore": { - "projectUniqueName": "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Cdn/Cdn.csproj", - "projectName": "G42Cloud.SDK.Cdn", - "projectPath": "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Cdn/Cdn.csproj", - "packagesPath": "/root/.nuget/packages/", - "outputPath": "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Cdn/obj/", - "projectStyle": "PackageReference", - "fallbackFolders": [ - "/usr/dotnet2/sdk/NuGetFallbackFolder" - ], - "configFilePaths": [ - "/root/.nuget/NuGet/NuGet.Config" - ], - "originalTargetFrameworks": [ - "netstandard2.0" - ], - "sources": { - "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86": {} - }, - "frameworks": { - "netstandard2.0": { - "projectReferences": {} - } - }, - "warningProperties": { - "warnAsError": [ - "NU1605" - ] - } - }, - "frameworks": { - "netstandard2.0": { - "dependencies": { - "HuaweiCloud.SDK.Core": { - "target": "Package", - "version": "[3.1.11, )" - }, - "NETStandard.Library": { - "suppressParent": "All", - "target": "Package", - "version": "[2.0.3, )", - "autoReferenced": true - }, - "Newtonsoft.Json": { - "target": "Package", - "version": "[13.0.1, )" - } - }, - "imports": [ - "net461" - ], - "assetTargetFallback": true, - "warn": true - } - } - } - } -} \ No newline at end of file diff --git a/Services/Cdn/obj/Cdn.csproj.nuget.g.props b/Services/Cdn/obj/Cdn.csproj.nuget.g.props deleted file mode 100644 index 1220fca..0000000 --- a/Services/Cdn/obj/Cdn.csproj.nuget.g.props +++ /dev/null @@ -1,15 +0,0 @@ - - - - True - NuGet - /data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Cdn/obj/project.assets.json - /root/.nuget/packages/ - /root/.nuget/packages/;/usr/dotnet2/sdk/NuGetFallbackFolder - PackageReference - 5.0.2 - - - $(MSBuildAllProjects);$(MSBuildThisFileFullPath) - - \ No newline at end of file diff --git a/Services/Cdn/obj/Cdn.csproj.nuget.g.targets b/Services/Cdn/obj/Cdn.csproj.nuget.g.targets deleted file mode 100644 index e8536f5..0000000 --- a/Services/Cdn/obj/Cdn.csproj.nuget.g.targets +++ /dev/null @@ -1,9 +0,0 @@ - - - - $(MSBuildAllProjects);$(MSBuildThisFileFullPath) - - - - - \ No newline at end of file diff --git a/Services/Cdn/obj/project.assets.json b/Services/Cdn/obj/project.assets.json deleted file mode 100644 index ae5a988..0000000 --- a/Services/Cdn/obj/project.assets.json +++ /dev/null @@ -1,1134 +0,0 @@ -{ - "version": 3, - "targets": { - ".NETStandard,Version=v2.0": { - "HuaweiCloud.SDK.Core/3.1.11": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.DependencyInjection": "3.1.5", - "Microsoft.Extensions.Http": "3.1.5", - "Microsoft.Extensions.Http.Polly": "3.1.5", - "Microsoft.Extensions.Logging.Console": "3.1.5", - "Microsoft.Extensions.Logging.Debug": "3.1.5", - "Newtonsoft.Json": "13.0.1" - }, - "compile": { - "lib/netstandard2.0/HuaweiCloud.SDK.Core.dll": {} - }, - "runtime": { - "lib/netstandard2.0/HuaweiCloud.SDK.Core.dll": {} - } - }, - "Microsoft.Bcl.AsyncInterfaces/1.1.1": { - "type": "package", - "dependencies": { - "System.Threading.Tasks.Extensions": "4.5.4" - }, - "compile": { - "ref/netstandard2.0/Microsoft.Bcl.AsyncInterfaces.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Bcl.AsyncInterfaces.dll": {} - } - }, - "Microsoft.Extensions.Configuration/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.Configuration.Abstractions": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Configuration.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Configuration.dll": {} - } - }, - "Microsoft.Extensions.Configuration.Abstractions/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.Primitives": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Configuration.Abstractions.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Configuration.Abstractions.dll": {} - } - }, - "Microsoft.Extensions.Configuration.Binder/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.Configuration": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Configuration.Binder.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Configuration.Binder.dll": {} - } - }, - "Microsoft.Extensions.DependencyInjection/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Bcl.AsyncInterfaces": "1.1.1", - "Microsoft.Extensions.DependencyInjection.Abstractions": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.dll": {} - } - }, - "Microsoft.Extensions.DependencyInjection.Abstractions/3.1.5": { - "type": "package", - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll": {} - } - }, - "Microsoft.Extensions.Http/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.DependencyInjection.Abstractions": "3.1.5", - "Microsoft.Extensions.Logging": "3.1.5", - "Microsoft.Extensions.Options": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Http.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Http.dll": {} - } - }, - "Microsoft.Extensions.Http.Polly/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.Http": "3.1.5", - "Polly": "7.1.0", - "Polly.Extensions.Http": "3.0.0" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Http.Polly.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Http.Polly.dll": {} - } - }, - "Microsoft.Extensions.Logging/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.Configuration.Binder": "3.1.5", - "Microsoft.Extensions.DependencyInjection": "3.1.5", - "Microsoft.Extensions.Logging.Abstractions": "3.1.5", - "Microsoft.Extensions.Options": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.dll": {} - } - }, - "Microsoft.Extensions.Logging.Abstractions/3.1.5": { - "type": "package", - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.Abstractions.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.Abstractions.dll": {} - } - }, - "Microsoft.Extensions.Logging.Configuration/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.Logging": "3.1.5", - "Microsoft.Extensions.Options.ConfigurationExtensions": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.Configuration.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.Configuration.dll": {} - } - }, - "Microsoft.Extensions.Logging.Console/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.Configuration.Abstractions": "3.1.5", - "Microsoft.Extensions.Logging": "3.1.5", - "Microsoft.Extensions.Logging.Configuration": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.Console.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.Console.dll": {} - } - }, - "Microsoft.Extensions.Logging.Debug/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.Logging": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.Debug.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.Debug.dll": {} - } - }, - "Microsoft.Extensions.Options/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.DependencyInjection.Abstractions": "3.1.5", - "Microsoft.Extensions.Primitives": "3.1.5", - "System.ComponentModel.Annotations": "4.7.0" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Options.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Options.dll": {} - } - }, - "Microsoft.Extensions.Options.ConfigurationExtensions/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.Configuration.Abstractions": "3.1.5", - "Microsoft.Extensions.Configuration.Binder": "3.1.5", - "Microsoft.Extensions.DependencyInjection.Abstractions": "3.1.5", - "Microsoft.Extensions.Options": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Options.ConfigurationExtensions.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Options.ConfigurationExtensions.dll": {} - } - }, - "Microsoft.Extensions.Primitives/3.1.5": { - "type": "package", - "dependencies": { - "System.Memory": "4.5.2", - "System.Runtime.CompilerServices.Unsafe": "4.7.1" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Primitives.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Primitives.dll": {} - } - }, - "Microsoft.NETCore.Platforms/1.1.0": { - "type": "package", - "compile": { - "lib/netstandard1.0/_._": {} - }, - "runtime": { - "lib/netstandard1.0/_._": {} - } - }, - "NETStandard.Library/2.0.3": { - "type": "package", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0" - }, - "compile": { - "lib/netstandard1.0/_._": {} - }, - "runtime": { - "lib/netstandard1.0/_._": {} - }, - "build": { - "build/netstandard2.0/NETStandard.Library.targets": {} - } - }, - "Newtonsoft.Json/13.0.1": { - "type": "package", - "compile": { - "lib/netstandard2.0/Newtonsoft.Json.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Newtonsoft.Json.dll": {} - } - }, - "Polly/7.1.0": { - "type": "package", - "compile": { - "lib/netstandard2.0/Polly.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Polly.dll": {} - } - }, - "Polly.Extensions.Http/3.0.0": { - "type": "package", - "dependencies": { - "Polly": "7.1.0" - }, - "compile": { - "lib/netstandard2.0/Polly.Extensions.Http.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Polly.Extensions.Http.dll": {} - } - }, - "System.Buffers/4.4.0": { - "type": "package", - "compile": { - "ref/netstandard2.0/System.Buffers.dll": {} - }, - "runtime": { - "lib/netstandard2.0/System.Buffers.dll": {} - } - }, - "System.ComponentModel.Annotations/4.7.0": { - "type": "package", - "compile": { - "ref/netstandard2.0/System.ComponentModel.Annotations.dll": {} - }, - "runtime": { - "lib/netstandard2.0/System.ComponentModel.Annotations.dll": {} - } - }, - "System.Memory/4.5.2": { - "type": "package", - "dependencies": { - "System.Buffers": "4.4.0", - "System.Numerics.Vectors": "4.4.0", - "System.Runtime.CompilerServices.Unsafe": "4.5.2" - }, - "compile": { - "lib/netstandard2.0/System.Memory.dll": {} - }, - "runtime": { - "lib/netstandard2.0/System.Memory.dll": {} - } - }, - "System.Numerics.Vectors/4.4.0": { - "type": "package", - "compile": { - "ref/netstandard2.0/System.Numerics.Vectors.dll": {} - }, - "runtime": { - "lib/netstandard2.0/System.Numerics.Vectors.dll": {} - } - }, - "System.Runtime.CompilerServices.Unsafe/4.7.1": { - "type": "package", - "compile": { - "ref/netstandard2.0/System.Runtime.CompilerServices.Unsafe.dll": {} - }, - "runtime": { - "lib/netstandard2.0/System.Runtime.CompilerServices.Unsafe.dll": {} - } - }, - "System.Threading.Tasks.Extensions/4.5.4": { - "type": "package", - "dependencies": { - "System.Runtime.CompilerServices.Unsafe": "4.5.3" - }, - "compile": { - "lib/netstandard2.0/System.Threading.Tasks.Extensions.dll": {} - }, - "runtime": { - "lib/netstandard2.0/System.Threading.Tasks.Extensions.dll": {} - } - } - } - }, - "libraries": { - "HuaweiCloud.SDK.Core/3.1.11": { - "sha512": "gfSrNtvvgvmEptRbn8LinWOcd2CmDgHVHKCOG7loIczGvrVSfCWJhnJYig/St+Jb8eKMeWgu/Ms52YJbdxUu0w==", - "type": "package", - "path": "huaweicloud.sdk.core/3.1.11", - "files": [ - ".nupkg.metadata", - "LICENSE", - "huaweicloud.sdk.core.3.1.11.nupkg.sha512", - "huaweicloud.sdk.core.nuspec", - "lib/netstandard2.0/HuaweiCloud.SDK.Core.dll" - ] - }, - "Microsoft.Bcl.AsyncInterfaces/1.1.1": { - "sha512": "yuvf07qFWFqtK3P/MRkEKLhn5r2UbSpVueRziSqj0yJQIKFwG1pq9mOayK3zE5qZCTs0CbrwL9M6R8VwqyGy2w==", - "type": "package", - "path": "microsoft.bcl.asyncinterfaces/1.1.1", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "LICENSE.TXT", - "THIRD-PARTY-NOTICES.TXT", - "lib/net461/Microsoft.Bcl.AsyncInterfaces.dll", - "lib/net461/Microsoft.Bcl.AsyncInterfaces.xml", - "lib/netstandard2.0/Microsoft.Bcl.AsyncInterfaces.dll", - "lib/netstandard2.0/Microsoft.Bcl.AsyncInterfaces.xml", - "lib/netstandard2.1/Microsoft.Bcl.AsyncInterfaces.dll", - "lib/netstandard2.1/Microsoft.Bcl.AsyncInterfaces.xml", - "microsoft.bcl.asyncinterfaces.1.1.1.nupkg.sha512", - "microsoft.bcl.asyncinterfaces.nuspec", - "ref/net461/Microsoft.Bcl.AsyncInterfaces.dll", - "ref/netstandard2.0/Microsoft.Bcl.AsyncInterfaces.dll", - "ref/netstandard2.1/Microsoft.Bcl.AsyncInterfaces.dll", - "useSharedDesignerContext.txt", - "version.txt" - ] - }, - "Microsoft.Extensions.Configuration/3.1.5": { - "sha512": "LZfdAP8flK4hkaniUv6TlstDX9FXLmJMX1A4mpLghAsZxTaJIgf+nzBNiPRdy/B5Vrs74gRONX3JrIUJQrebmA==", - "type": "package", - "path": "microsoft.extensions.configuration/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Configuration.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Configuration.xml", - "lib/netstandard2.0/Microsoft.Extensions.Configuration.dll", - "lib/netstandard2.0/Microsoft.Extensions.Configuration.xml", - "microsoft.extensions.configuration.3.1.5.nupkg.sha512", - "microsoft.extensions.configuration.nuspec" - ] - }, - "Microsoft.Extensions.Configuration.Abstractions/3.1.5": { - "sha512": "VBcAk6s9izZr04WCzNqOh1Sxz2RbVSh0G79MfpHSDv16cUJtSEYEHody9ZnF71LBEktzdu6cvDFBOFMh43q0iA==", - "type": "package", - "path": "microsoft.extensions.configuration.abstractions/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Configuration.Abstractions.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Configuration.Abstractions.xml", - "lib/netstandard2.0/Microsoft.Extensions.Configuration.Abstractions.dll", - "lib/netstandard2.0/Microsoft.Extensions.Configuration.Abstractions.xml", - "microsoft.extensions.configuration.abstractions.3.1.5.nupkg.sha512", - "microsoft.extensions.configuration.abstractions.nuspec" - ] - }, - "Microsoft.Extensions.Configuration.Binder/3.1.5": { - "sha512": "ZR/zjBxkvdnnWhRoBHDT95uz1ZgJFhv1QazmKCIcDqy/RXqi+6dJ/PfxDhEnzPvk9HbkcGfFsPEu1vSIyxDqBQ==", - "type": "package", - "path": "microsoft.extensions.configuration.binder/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Configuration.Binder.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Configuration.Binder.xml", - "lib/netstandard2.0/Microsoft.Extensions.Configuration.Binder.dll", - "lib/netstandard2.0/Microsoft.Extensions.Configuration.Binder.xml", - "microsoft.extensions.configuration.binder.3.1.5.nupkg.sha512", - "microsoft.extensions.configuration.binder.nuspec" - ] - }, - "Microsoft.Extensions.DependencyInjection/3.1.5": { - "sha512": "I+RTJQi7TtenIHZqL2zr6523PYXfL88Ruu4UIVmspIxdw14GHd8zZ+2dGLSdwX7fn41Hth4d42S1e1iHWVOJyQ==", - "type": "package", - "path": "microsoft.extensions.dependencyinjection/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/net461/Microsoft.Extensions.DependencyInjection.dll", - "lib/net461/Microsoft.Extensions.DependencyInjection.xml", - "lib/netcoreapp3.1/Microsoft.Extensions.DependencyInjection.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.DependencyInjection.xml", - "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.dll", - "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.xml", - "lib/netstandard2.1/Microsoft.Extensions.DependencyInjection.dll", - "lib/netstandard2.1/Microsoft.Extensions.DependencyInjection.xml", - "microsoft.extensions.dependencyinjection.3.1.5.nupkg.sha512", - "microsoft.extensions.dependencyinjection.nuspec" - ] - }, - "Microsoft.Extensions.DependencyInjection.Abstractions/3.1.5": { - "sha512": "2VSCj2TZPMdeEi279Lawi6qJQu4+sEWizSOYrhY6hapyS1jxn1jVUZT1Ugv68bya+x8+3lD4+RqhUZql9PhISQ==", - "type": "package", - "path": "microsoft.extensions.dependencyinjection.abstractions/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll", - "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.Abstractions.xml", - "microsoft.extensions.dependencyinjection.abstractions.3.1.5.nupkg.sha512", - "microsoft.extensions.dependencyinjection.abstractions.nuspec" - ] - }, - "Microsoft.Extensions.Http/3.1.5": { - "sha512": "P8yu3UDd0X129FmxJN0/nObuuH4v7YoxK00kEs8EU4R7POa+3yp/buux74fNYTLORuEqjBTMGtV7TBszuvCj7g==", - "type": "package", - "path": "microsoft.extensions.http/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Http.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Http.xml", - "lib/netstandard2.0/Microsoft.Extensions.Http.dll", - "lib/netstandard2.0/Microsoft.Extensions.Http.xml", - "microsoft.extensions.http.3.1.5.nupkg.sha512", - "microsoft.extensions.http.nuspec" - ] - }, - "Microsoft.Extensions.Http.Polly/3.1.5": { - "sha512": "wW+kLLqoQPIg3+NQhBkqmxBAtoGJhVsQ03RAjw/Jx0oTSmaZsJY3rIlBmsrHdeKOxq19P4qRlST2wk/k5tdXhg==", - "type": "package", - "path": "microsoft.extensions.http.polly/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netstandard2.0/Microsoft.Extensions.Http.Polly.dll", - "lib/netstandard2.0/Microsoft.Extensions.Http.Polly.xml", - "microsoft.extensions.http.polly.3.1.5.nupkg.sha512", - "microsoft.extensions.http.polly.nuspec" - ] - }, - "Microsoft.Extensions.Logging/3.1.5": { - "sha512": "C85NYDym6xy03o70vxX+VQ4ZEjj5Eg5t5QoGW0t100vG5MmPL6+G3XXcQjIIn1WRQrjzGWzQwuKf38fxXEWIWA==", - "type": "package", - "path": "microsoft.extensions.logging/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Logging.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Logging.xml", - "lib/netstandard2.0/Microsoft.Extensions.Logging.dll", - "lib/netstandard2.0/Microsoft.Extensions.Logging.xml", - "microsoft.extensions.logging.3.1.5.nupkg.sha512", - "microsoft.extensions.logging.nuspec" - ] - }, - "Microsoft.Extensions.Logging.Abstractions/3.1.5": { - "sha512": "ZvwowjRSWXewdPI+whPFXgwF4Qme6Q9KV9SCPEITSGiqHLArct7q5hTBtTzj3GPsVLjTqehvTg6Bd/EQk9JS0A==", - "type": "package", - "path": "microsoft.extensions.logging.abstractions/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netstandard2.0/Microsoft.Extensions.Logging.Abstractions.dll", - "lib/netstandard2.0/Microsoft.Extensions.Logging.Abstractions.xml", - "microsoft.extensions.logging.abstractions.3.1.5.nupkg.sha512", - "microsoft.extensions.logging.abstractions.nuspec" - ] - }, - "Microsoft.Extensions.Logging.Configuration/3.1.5": { - "sha512": "I+9jx/A9cLdkTmynKMa2oR4rYAfe3n2F/wNVvKxwIk2J33paEU13Se08Q5xvQisqfbumaRUNF7BWHr63JzuuRw==", - "type": "package", - "path": "microsoft.extensions.logging.configuration/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Logging.Configuration.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Logging.Configuration.xml", - "lib/netstandard2.0/Microsoft.Extensions.Logging.Configuration.dll", - "lib/netstandard2.0/Microsoft.Extensions.Logging.Configuration.xml", - "microsoft.extensions.logging.configuration.3.1.5.nupkg.sha512", - "microsoft.extensions.logging.configuration.nuspec" - ] - }, - "Microsoft.Extensions.Logging.Console/3.1.5": { - "sha512": "c/W7d9sjgyU0/3txj/i6pC+8f25Jbua7zKhHVHidC5hHL4OX8fAxSGPBWYOsRN4tXqpd5VphNmIFUWyT12fMoA==", - "type": "package", - "path": "microsoft.extensions.logging.console/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Logging.Console.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Logging.Console.xml", - "lib/netstandard2.0/Microsoft.Extensions.Logging.Console.dll", - "lib/netstandard2.0/Microsoft.Extensions.Logging.Console.xml", - "microsoft.extensions.logging.console.3.1.5.nupkg.sha512", - "microsoft.extensions.logging.console.nuspec" - ] - }, - "Microsoft.Extensions.Logging.Debug/3.1.5": { - "sha512": "oDs0vlr6tNm0Z4U81eiCvnX+9zSP1CBAIGNAnpKidLb1KzbX26UGI627TfuIEtvW9wYiQWqZtmwMMK9WHE8Dqg==", - "type": "package", - "path": "microsoft.extensions.logging.debug/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Logging.Debug.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Logging.Debug.xml", - "lib/netstandard2.0/Microsoft.Extensions.Logging.Debug.dll", - "lib/netstandard2.0/Microsoft.Extensions.Logging.Debug.xml", - "microsoft.extensions.logging.debug.3.1.5.nupkg.sha512", - "microsoft.extensions.logging.debug.nuspec" - ] - }, - "Microsoft.Extensions.Options/3.1.5": { - "sha512": "f+JT/7lkKBMp/Ak2tVjO+TD7o+UoCfjnExkZNn0PZIso8kIXrqNy6x42Lrxf4Q0pW3JMf9ExmL2EQlvk2XnFAg==", - "type": "package", - "path": "microsoft.extensions.options/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Options.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Options.xml", - "lib/netstandard2.0/Microsoft.Extensions.Options.dll", - "lib/netstandard2.0/Microsoft.Extensions.Options.xml", - "microsoft.extensions.options.3.1.5.nupkg.sha512", - "microsoft.extensions.options.nuspec" - ] - }, - "Microsoft.Extensions.Options.ConfigurationExtensions/3.1.5": { - "sha512": "mgM+JHFeRg3zSRjScVADU/mohY8s0czKRTNT9oszWgX1mlw419yqP6ITCXovPopMXiqzRdkZ7AEuErX9K+ROww==", - "type": "package", - "path": "microsoft.extensions.options.configurationextensions/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Options.ConfigurationExtensions.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Options.ConfigurationExtensions.xml", - "lib/netstandard2.0/Microsoft.Extensions.Options.ConfigurationExtensions.dll", - "lib/netstandard2.0/Microsoft.Extensions.Options.ConfigurationExtensions.xml", - "microsoft.extensions.options.configurationextensions.3.1.5.nupkg.sha512", - "microsoft.extensions.options.configurationextensions.nuspec" - ] - }, - "Microsoft.Extensions.Primitives/3.1.5": { - "sha512": "6bLdjSAQix82oP2tsuX9MM2yjgUFFOkSZYyRSKoUULilw2cg0Y0H+dnugwYlfj8Jd7yjd/+QSdNBqEyYhTYv0w==", - "type": "package", - "path": "microsoft.extensions.primitives/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Primitives.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Primitives.xml", - "lib/netstandard2.0/Microsoft.Extensions.Primitives.dll", - "lib/netstandard2.0/Microsoft.Extensions.Primitives.xml", - "microsoft.extensions.primitives.3.1.5.nupkg.sha512", - "microsoft.extensions.primitives.nuspec" - ] - }, - "Microsoft.NETCore.Platforms/1.1.0": { - "sha512": "kz0PEW2lhqygehI/d6XsPCQzD7ff7gUJaVGPVETX611eadGsA3A877GdSlU0LRVMCTH/+P3o2iDTak+S08V2+A==", - "type": "package", - "path": "microsoft.netcore.platforms/1.1.0", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "ThirdPartyNotices.txt", - "dotnet_library_license.txt", - "lib/netstandard1.0/_._", - "microsoft.netcore.platforms.1.1.0.nupkg.sha512", - "microsoft.netcore.platforms.nuspec", - "runtime.json" - ] - }, - "NETStandard.Library/2.0.3": { - "sha512": "st47PosZSHrjECdjeIzZQbzivYBJFv6P2nv4cj2ypdI204DO+vZ7l5raGMiX4eXMJ53RfOIg+/s4DHVZ54Nu2A==", - "type": "package", - "path": "netstandard.library/2.0.3", - "files": [ - ".nupkg.metadata", - "LICENSE.TXT", - "THIRD-PARTY-NOTICES.TXT", - "build/netstandard2.0/NETStandard.Library.targets", - "build/netstandard2.0/ref/Microsoft.Win32.Primitives.dll", - "build/netstandard2.0/ref/System.AppContext.dll", - "build/netstandard2.0/ref/System.Collections.Concurrent.dll", - "build/netstandard2.0/ref/System.Collections.NonGeneric.dll", - "build/netstandard2.0/ref/System.Collections.Specialized.dll", - "build/netstandard2.0/ref/System.Collections.dll", - "build/netstandard2.0/ref/System.ComponentModel.Composition.dll", - "build/netstandard2.0/ref/System.ComponentModel.EventBasedAsync.dll", - "build/netstandard2.0/ref/System.ComponentModel.Primitives.dll", - "build/netstandard2.0/ref/System.ComponentModel.TypeConverter.dll", - "build/netstandard2.0/ref/System.ComponentModel.dll", - "build/netstandard2.0/ref/System.Console.dll", - "build/netstandard2.0/ref/System.Core.dll", - "build/netstandard2.0/ref/System.Data.Common.dll", - "build/netstandard2.0/ref/System.Data.dll", - "build/netstandard2.0/ref/System.Diagnostics.Contracts.dll", - "build/netstandard2.0/ref/System.Diagnostics.Debug.dll", - "build/netstandard2.0/ref/System.Diagnostics.FileVersionInfo.dll", - "build/netstandard2.0/ref/System.Diagnostics.Process.dll", - "build/netstandard2.0/ref/System.Diagnostics.StackTrace.dll", - "build/netstandard2.0/ref/System.Diagnostics.TextWriterTraceListener.dll", - "build/netstandard2.0/ref/System.Diagnostics.Tools.dll", - "build/netstandard2.0/ref/System.Diagnostics.TraceSource.dll", - "build/netstandard2.0/ref/System.Diagnostics.Tracing.dll", - "build/netstandard2.0/ref/System.Drawing.Primitives.dll", - "build/netstandard2.0/ref/System.Drawing.dll", - "build/netstandard2.0/ref/System.Dynamic.Runtime.dll", - "build/netstandard2.0/ref/System.Globalization.Calendars.dll", - "build/netstandard2.0/ref/System.Globalization.Extensions.dll", - "build/netstandard2.0/ref/System.Globalization.dll", - "build/netstandard2.0/ref/System.IO.Compression.FileSystem.dll", - "build/netstandard2.0/ref/System.IO.Compression.ZipFile.dll", - "build/netstandard2.0/ref/System.IO.Compression.dll", - "build/netstandard2.0/ref/System.IO.FileSystem.DriveInfo.dll", - "build/netstandard2.0/ref/System.IO.FileSystem.Primitives.dll", - "build/netstandard2.0/ref/System.IO.FileSystem.Watcher.dll", - "build/netstandard2.0/ref/System.IO.FileSystem.dll", - "build/netstandard2.0/ref/System.IO.IsolatedStorage.dll", - "build/netstandard2.0/ref/System.IO.MemoryMappedFiles.dll", - "build/netstandard2.0/ref/System.IO.Pipes.dll", - "build/netstandard2.0/ref/System.IO.UnmanagedMemoryStream.dll", - "build/netstandard2.0/ref/System.IO.dll", - "build/netstandard2.0/ref/System.Linq.Expressions.dll", - "build/netstandard2.0/ref/System.Linq.Parallel.dll", - "build/netstandard2.0/ref/System.Linq.Queryable.dll", - "build/netstandard2.0/ref/System.Linq.dll", - "build/netstandard2.0/ref/System.Net.Http.dll", - "build/netstandard2.0/ref/System.Net.NameResolution.dll", - "build/netstandard2.0/ref/System.Net.NetworkInformation.dll", - "build/netstandard2.0/ref/System.Net.Ping.dll", - "build/netstandard2.0/ref/System.Net.Primitives.dll", - "build/netstandard2.0/ref/System.Net.Requests.dll", - "build/netstandard2.0/ref/System.Net.Security.dll", - "build/netstandard2.0/ref/System.Net.Sockets.dll", - "build/netstandard2.0/ref/System.Net.WebHeaderCollection.dll", - "build/netstandard2.0/ref/System.Net.WebSockets.Client.dll", - "build/netstandard2.0/ref/System.Net.WebSockets.dll", - "build/netstandard2.0/ref/System.Net.dll", - "build/netstandard2.0/ref/System.Numerics.dll", - "build/netstandard2.0/ref/System.ObjectModel.dll", - "build/netstandard2.0/ref/System.Reflection.Extensions.dll", - "build/netstandard2.0/ref/System.Reflection.Primitives.dll", - "build/netstandard2.0/ref/System.Reflection.dll", - "build/netstandard2.0/ref/System.Resources.Reader.dll", - "build/netstandard2.0/ref/System.Resources.ResourceManager.dll", - "build/netstandard2.0/ref/System.Resources.Writer.dll", - "build/netstandard2.0/ref/System.Runtime.CompilerServices.VisualC.dll", - "build/netstandard2.0/ref/System.Runtime.Extensions.dll", - "build/netstandard2.0/ref/System.Runtime.Handles.dll", - "build/netstandard2.0/ref/System.Runtime.InteropServices.RuntimeInformation.dll", - "build/netstandard2.0/ref/System.Runtime.InteropServices.dll", - "build/netstandard2.0/ref/System.Runtime.Numerics.dll", - "build/netstandard2.0/ref/System.Runtime.Serialization.Formatters.dll", - "build/netstandard2.0/ref/System.Runtime.Serialization.Json.dll", - "build/netstandard2.0/ref/System.Runtime.Serialization.Primitives.dll", - "build/netstandard2.0/ref/System.Runtime.Serialization.Xml.dll", - "build/netstandard2.0/ref/System.Runtime.Serialization.dll", - "build/netstandard2.0/ref/System.Runtime.dll", - "build/netstandard2.0/ref/System.Security.Claims.dll", - "build/netstandard2.0/ref/System.Security.Cryptography.Algorithms.dll", - "build/netstandard2.0/ref/System.Security.Cryptography.Csp.dll", - "build/netstandard2.0/ref/System.Security.Cryptography.Encoding.dll", - "build/netstandard2.0/ref/System.Security.Cryptography.Primitives.dll", - "build/netstandard2.0/ref/System.Security.Cryptography.X509Certificates.dll", - "build/netstandard2.0/ref/System.Security.Principal.dll", - "build/netstandard2.0/ref/System.Security.SecureString.dll", - "build/netstandard2.0/ref/System.ServiceModel.Web.dll", - "build/netstandard2.0/ref/System.Text.Encoding.Extensions.dll", - "build/netstandard2.0/ref/System.Text.Encoding.dll", - "build/netstandard2.0/ref/System.Text.RegularExpressions.dll", - "build/netstandard2.0/ref/System.Threading.Overlapped.dll", - "build/netstandard2.0/ref/System.Threading.Tasks.Parallel.dll", - "build/netstandard2.0/ref/System.Threading.Tasks.dll", - "build/netstandard2.0/ref/System.Threading.Thread.dll", - "build/netstandard2.0/ref/System.Threading.ThreadPool.dll", - "build/netstandard2.0/ref/System.Threading.Timer.dll", - "build/netstandard2.0/ref/System.Threading.dll", - "build/netstandard2.0/ref/System.Transactions.dll", - "build/netstandard2.0/ref/System.ValueTuple.dll", - "build/netstandard2.0/ref/System.Web.dll", - "build/netstandard2.0/ref/System.Windows.dll", - "build/netstandard2.0/ref/System.Xml.Linq.dll", - "build/netstandard2.0/ref/System.Xml.ReaderWriter.dll", - "build/netstandard2.0/ref/System.Xml.Serialization.dll", - "build/netstandard2.0/ref/System.Xml.XDocument.dll", - "build/netstandard2.0/ref/System.Xml.XPath.XDocument.dll", - "build/netstandard2.0/ref/System.Xml.XPath.dll", - "build/netstandard2.0/ref/System.Xml.XmlDocument.dll", - "build/netstandard2.0/ref/System.Xml.XmlSerializer.dll", - "build/netstandard2.0/ref/System.Xml.dll", - "build/netstandard2.0/ref/System.dll", - "build/netstandard2.0/ref/mscorlib.dll", - "build/netstandard2.0/ref/netstandard.dll", - "build/netstandard2.0/ref/netstandard.xml", - "lib/netstandard1.0/_._", - "netstandard.library.2.0.3.nupkg.sha512", - "netstandard.library.nuspec" - ] - }, - "Newtonsoft.Json/13.0.1": { - "sha512": "ppPFpBcvxdsfUonNcvITKqLl3bqxWbDCZIzDWHzjpdAHRFfZe0Dw9HmA0+za13IdyrgJwpkDTDA9fHaxOrt20A==", - "type": "package", - "path": "newtonsoft.json/13.0.1", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "LICENSE.md", - "lib/net20/Newtonsoft.Json.dll", - "lib/net20/Newtonsoft.Json.xml", - "lib/net35/Newtonsoft.Json.dll", - "lib/net35/Newtonsoft.Json.xml", - "lib/net40/Newtonsoft.Json.dll", - "lib/net40/Newtonsoft.Json.xml", - "lib/net45/Newtonsoft.Json.dll", - "lib/net45/Newtonsoft.Json.xml", - "lib/netstandard1.0/Newtonsoft.Json.dll", - "lib/netstandard1.0/Newtonsoft.Json.xml", - "lib/netstandard1.3/Newtonsoft.Json.dll", - "lib/netstandard1.3/Newtonsoft.Json.xml", - "lib/netstandard2.0/Newtonsoft.Json.dll", - "lib/netstandard2.0/Newtonsoft.Json.xml", - "newtonsoft.json.13.0.1.nupkg.sha512", - "newtonsoft.json.nuspec", - "packageIcon.png" - ] - }, - "Polly/7.1.0": { - "sha512": "mpQsvlEn4ipgICh5CGyVLPV93RFVzOrBG7wPZfzY8gExh7XgWQn0GCDY9nudbUEJ12UiGPP9i4+CohghBvzhmg==", - "type": "package", - "path": "polly/7.1.0", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "lib/netstandard1.1/Polly.dll", - "lib/netstandard1.1/Polly.xml", - "lib/netstandard2.0/Polly.dll", - "lib/netstandard2.0/Polly.xml", - "polly.7.1.0.nupkg.sha512", - "polly.nuspec" - ] - }, - "Polly.Extensions.Http/3.0.0": { - "sha512": "drrG+hB3pYFY7w1c3BD+lSGYvH2oIclH8GRSehgfyP5kjnFnHKQuuBhuHLv+PWyFuaTDyk/vfRpnxOzd11+J8g==", - "type": "package", - "path": "polly.extensions.http/3.0.0", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "lib/netstandard1.1/Polly.Extensions.Http.dll", - "lib/netstandard1.1/Polly.Extensions.Http.xml", - "lib/netstandard2.0/Polly.Extensions.Http.dll", - "lib/netstandard2.0/Polly.Extensions.Http.xml", - "polly.extensions.http.3.0.0.nupkg.sha512", - "polly.extensions.http.nuspec" - ] - }, - "System.Buffers/4.4.0": { - "sha512": "AwarXzzoDwX6BgrhjoJsk6tUezZEozOT5Y9QKF94Gl4JK91I4PIIBkBco9068Y9/Dra8Dkbie99kXB8+1BaYKw==", - "type": "package", - "path": "system.buffers/4.4.0", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "LICENSE.TXT", - "THIRD-PARTY-NOTICES.TXT", - "lib/netcoreapp2.0/_._", - "lib/netstandard1.1/System.Buffers.dll", - "lib/netstandard1.1/System.Buffers.xml", - "lib/netstandard2.0/System.Buffers.dll", - "lib/netstandard2.0/System.Buffers.xml", - "ref/netcoreapp2.0/_._", - "ref/netstandard1.1/System.Buffers.dll", - "ref/netstandard1.1/System.Buffers.xml", - "ref/netstandard2.0/System.Buffers.dll", - "ref/netstandard2.0/System.Buffers.xml", - "system.buffers.4.4.0.nupkg.sha512", - "system.buffers.nuspec", - "useSharedDesignerContext.txt", - "version.txt" - ] - }, - "System.ComponentModel.Annotations/4.7.0": { - "sha512": "0YFqjhp/mYkDGpU0Ye1GjE53HMp9UVfGN7seGpAMttAC0C40v5gw598jCgpbBLMmCo0E5YRLBv5Z2doypO49ZQ==", - "type": "package", - "path": "system.componentmodel.annotations/4.7.0", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "LICENSE.TXT", - "THIRD-PARTY-NOTICES.TXT", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net45/_._", - "lib/net461/System.ComponentModel.Annotations.dll", - "lib/netcore50/System.ComponentModel.Annotations.dll", - "lib/netstandard1.4/System.ComponentModel.Annotations.dll", - "lib/netstandard2.0/System.ComponentModel.Annotations.dll", - "lib/netstandard2.1/System.ComponentModel.Annotations.dll", - "lib/netstandard2.1/System.ComponentModel.Annotations.xml", - "lib/portable-net45+win8/_._", - "lib/win8/_._", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net45/_._", - "ref/net461/System.ComponentModel.Annotations.dll", - "ref/net461/System.ComponentModel.Annotations.xml", - "ref/netcore50/System.ComponentModel.Annotations.dll", - "ref/netcore50/System.ComponentModel.Annotations.xml", - "ref/netcore50/de/System.ComponentModel.Annotations.xml", - "ref/netcore50/es/System.ComponentModel.Annotations.xml", - "ref/netcore50/fr/System.ComponentModel.Annotations.xml", - "ref/netcore50/it/System.ComponentModel.Annotations.xml", - "ref/netcore50/ja/System.ComponentModel.Annotations.xml", - "ref/netcore50/ko/System.ComponentModel.Annotations.xml", - "ref/netcore50/ru/System.ComponentModel.Annotations.xml", - "ref/netcore50/zh-hans/System.ComponentModel.Annotations.xml", - "ref/netcore50/zh-hant/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/System.ComponentModel.Annotations.dll", - "ref/netstandard1.1/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/de/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/es/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/fr/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/it/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/ja/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/ko/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/ru/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/zh-hans/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/zh-hant/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/System.ComponentModel.Annotations.dll", - "ref/netstandard1.3/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/de/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/es/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/fr/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/it/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/ja/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/ko/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/ru/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/zh-hans/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/zh-hant/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/System.ComponentModel.Annotations.dll", - "ref/netstandard1.4/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/de/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/es/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/fr/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/it/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/ja/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/ko/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/ru/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/zh-hans/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/zh-hant/System.ComponentModel.Annotations.xml", - "ref/netstandard2.0/System.ComponentModel.Annotations.dll", - "ref/netstandard2.0/System.ComponentModel.Annotations.xml", - "ref/netstandard2.1/System.ComponentModel.Annotations.dll", - "ref/netstandard2.1/System.ComponentModel.Annotations.xml", - "ref/portable-net45+win8/_._", - "ref/win8/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._", - "system.componentmodel.annotations.4.7.0.nupkg.sha512", - "system.componentmodel.annotations.nuspec", - "useSharedDesignerContext.txt", - "version.txt" - ] - }, - "System.Memory/4.5.2": { - "sha512": "fvq1GNmUFwbKv+aLVYYdgu/+gc8Nu9oFujOxIjPrsf+meis9JBzTPDL6aP/eeGOz9yPj6rRLUbOjKMpsMEWpNg==", - "type": "package", - "path": "system.memory/4.5.2", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "LICENSE.TXT", - "THIRD-PARTY-NOTICES.TXT", - "lib/netcoreapp2.1/_._", - "lib/netstandard1.1/System.Memory.dll", - "lib/netstandard1.1/System.Memory.xml", - "lib/netstandard2.0/System.Memory.dll", - "lib/netstandard2.0/System.Memory.xml", - "ref/netcoreapp2.1/_._", - "system.memory.4.5.2.nupkg.sha512", - "system.memory.nuspec", - "useSharedDesignerContext.txt", - "version.txt" - ] - }, - "System.Numerics.Vectors/4.4.0": { - "sha512": "UiLzLW+Lw6HLed1Hcg+8jSRttrbuXv7DANVj0DkL9g6EnnzbL75EB7EWsw5uRbhxd/4YdG8li5XizGWepmG3PQ==", - "type": "package", - "path": "system.numerics.vectors/4.4.0", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "LICENSE.TXT", - "THIRD-PARTY-NOTICES.TXT", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net46/System.Numerics.Vectors.dll", - "lib/net46/System.Numerics.Vectors.xml", - "lib/netcoreapp2.0/_._", - "lib/netstandard1.0/System.Numerics.Vectors.dll", - "lib/netstandard1.0/System.Numerics.Vectors.xml", - "lib/netstandard2.0/System.Numerics.Vectors.dll", - "lib/netstandard2.0/System.Numerics.Vectors.xml", - "lib/portable-net45+win8+wp8+wpa81/System.Numerics.Vectors.dll", - "lib/portable-net45+win8+wp8+wpa81/System.Numerics.Vectors.xml", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net46/System.Numerics.Vectors.dll", - "ref/net46/System.Numerics.Vectors.xml", - "ref/netcoreapp2.0/_._", - "ref/netstandard1.0/System.Numerics.Vectors.dll", - "ref/netstandard1.0/System.Numerics.Vectors.xml", - "ref/netstandard2.0/System.Numerics.Vectors.dll", - "ref/netstandard2.0/System.Numerics.Vectors.xml", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._", - "system.numerics.vectors.4.4.0.nupkg.sha512", - "system.numerics.vectors.nuspec", - "useSharedDesignerContext.txt", - "version.txt" - ] - }, - "System.Runtime.CompilerServices.Unsafe/4.7.1": { - "sha512": "zOHkQmzPCn5zm/BH+cxC1XbUS3P4Yoi3xzW7eRgVpDR2tPGSzyMZ17Ig1iRkfJuY0nhxkQQde8pgePNiA7z7TQ==", - "type": "package", - "path": "system.runtime.compilerservices.unsafe/4.7.1", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "LICENSE.TXT", - "THIRD-PARTY-NOTICES.TXT", - "lib/net461/System.Runtime.CompilerServices.Unsafe.dll", - "lib/net461/System.Runtime.CompilerServices.Unsafe.xml", - "lib/netcoreapp2.0/System.Runtime.CompilerServices.Unsafe.dll", - "lib/netcoreapp2.0/System.Runtime.CompilerServices.Unsafe.xml", - "lib/netstandard1.0/System.Runtime.CompilerServices.Unsafe.dll", - "lib/netstandard1.0/System.Runtime.CompilerServices.Unsafe.xml", - "lib/netstandard2.0/System.Runtime.CompilerServices.Unsafe.dll", - "lib/netstandard2.0/System.Runtime.CompilerServices.Unsafe.xml", - "ref/net461/System.Runtime.CompilerServices.Unsafe.dll", - "ref/net461/System.Runtime.CompilerServices.Unsafe.xml", - "ref/netstandard1.0/System.Runtime.CompilerServices.Unsafe.dll", - "ref/netstandard1.0/System.Runtime.CompilerServices.Unsafe.xml", - "ref/netstandard2.0/System.Runtime.CompilerServices.Unsafe.dll", - "ref/netstandard2.0/System.Runtime.CompilerServices.Unsafe.xml", - "system.runtime.compilerservices.unsafe.4.7.1.nupkg.sha512", - "system.runtime.compilerservices.unsafe.nuspec", - "useSharedDesignerContext.txt", - "version.txt" - ] - }, - "System.Threading.Tasks.Extensions/4.5.4": { - "sha512": "zteT+G8xuGu6mS+mzDzYXbzS7rd3K6Fjb9RiZlYlJPam2/hU7JCBZBVEcywNuR+oZ1ncTvc/cq0faRr3P01OVg==", - "type": "package", - "path": "system.threading.tasks.extensions/4.5.4", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "LICENSE.TXT", - "THIRD-PARTY-NOTICES.TXT", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net461/System.Threading.Tasks.Extensions.dll", - "lib/net461/System.Threading.Tasks.Extensions.xml", - "lib/netcoreapp2.1/_._", - "lib/netstandard1.0/System.Threading.Tasks.Extensions.dll", - "lib/netstandard1.0/System.Threading.Tasks.Extensions.xml", - "lib/netstandard2.0/System.Threading.Tasks.Extensions.dll", - "lib/netstandard2.0/System.Threading.Tasks.Extensions.xml", - "lib/portable-net45+win8+wp8+wpa81/System.Threading.Tasks.Extensions.dll", - "lib/portable-net45+win8+wp8+wpa81/System.Threading.Tasks.Extensions.xml", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/netcoreapp2.1/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._", - "system.threading.tasks.extensions.4.5.4.nupkg.sha512", - "system.threading.tasks.extensions.nuspec", - "useSharedDesignerContext.txt", - "version.txt" - ] - } - }, - "projectFileDependencyGroups": { - ".NETStandard,Version=v2.0": [ - "HuaweiCloud.SDK.Core >= 3.1.11", - "NETStandard.Library >= 2.0.3", - "Newtonsoft.Json >= 13.0.1" - ] - }, - "packageFolders": { - "/root/.nuget/packages/": {}, - "/usr/dotnet2/sdk/NuGetFallbackFolder": {} - }, - "project": { - "version": "0.0.2-beta", - "restore": { - "projectUniqueName": "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Cdn/Cdn.csproj", - "projectName": "G42Cloud.SDK.Cdn", - "projectPath": "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Cdn/Cdn.csproj", - "packagesPath": "/root/.nuget/packages/", - "outputPath": "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Cdn/obj/", - "projectStyle": "PackageReference", - "fallbackFolders": [ - "/usr/dotnet2/sdk/NuGetFallbackFolder" - ], - "configFilePaths": [ - "/root/.nuget/NuGet/NuGet.Config" - ], - "originalTargetFrameworks": [ - "netstandard2.0" - ], - "sources": { - "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86": {} - }, - "frameworks": { - "netstandard2.0": { - "projectReferences": {} - } - }, - "warningProperties": { - "warnAsError": [ - "NU1605" - ] - } - }, - "frameworks": { - "netstandard2.0": { - "dependencies": { - "HuaweiCloud.SDK.Core": { - "target": "Package", - "version": "[3.1.11, )" - }, - "NETStandard.Library": { - "suppressParent": "All", - "target": "Package", - "version": "[2.0.3, )", - "autoReferenced": true - }, - "Newtonsoft.Json": { - "target": "Package", - "version": "[13.0.1, )" - } - }, - "imports": [ - "net461" - ], - "assetTargetFallback": true, - "warn": true - } - } - } -} \ No newline at end of file diff --git a/Services/Ces/Ces.csproj b/Services/Ces/Ces.csproj index e8b8046..6c09306 100755 --- a/Services/Ces/Ces.csproj +++ b/Services/Ces/Ces.csproj @@ -15,7 +15,7 @@ false false G42Cloud.SDK.Ces - 0.0.2-beta + 0.0.3-beta G42Cloud Copyright 2020 G42 Technologies Co., Ltd. G42 Technologies Co., Ltd. @@ -24,7 +24,7 @@ - + diff --git a/Services/Ces/V1/CesAsyncClient.cs b/Services/Ces/V1/CesAsyncClient.cs index b11f1f1..9ce85d3 100755 --- a/Services/Ces/V1/CesAsyncClient.cs +++ b/Services/Ces/V1/CesAsyncClient.cs @@ -1,7 +1,7 @@ using System.Net.Http; using System.Collections.Generic; using System.Threading.Tasks; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; using G42Cloud.SDK.Ces.V1.Model; namespace G42Cloud.SDK.Ces.V1 diff --git a/Services/Ces/V1/CesClient.cs b/Services/Ces/V1/CesClient.cs index d9d63e0..5dcb917 100755 --- a/Services/Ces/V1/CesClient.cs +++ b/Services/Ces/V1/CesClient.cs @@ -1,6 +1,6 @@ using System.Net.Http; using System.Collections.Generic; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; using G42Cloud.SDK.Ces.V1.Model; namespace G42Cloud.SDK.Ces.V1 diff --git a/Services/Ces/V1/Model/AdditionalInfo.cs b/Services/Ces/V1/Model/AdditionalInfo.cs index 36a4106..48c0c3e 100755 --- a/Services/Ces/V1/Model/AdditionalInfo.cs +++ b/Services/Ces/V1/Model/AdditionalInfo.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/AlarmActions.cs b/Services/Ces/V1/Model/AlarmActions.cs index 713255f..4f62462 100755 --- a/Services/Ces/V1/Model/AlarmActions.cs +++ b/Services/Ces/V1/Model/AlarmActions.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/AlarmHistoryInfo.cs b/Services/Ces/V1/Model/AlarmHistoryInfo.cs index 49218c1..3f32918 100755 --- a/Services/Ces/V1/Model/AlarmHistoryInfo.cs +++ b/Services/Ces/V1/Model/AlarmHistoryInfo.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/AlarmTemplate.cs b/Services/Ces/V1/Model/AlarmTemplate.cs index 87218c3..3689e6b 100755 --- a/Services/Ces/V1/Model/AlarmTemplate.cs +++ b/Services/Ces/V1/Model/AlarmTemplate.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/AlarmTemplateCondition.cs b/Services/Ces/V1/Model/AlarmTemplateCondition.cs index d20c92e..5307dbd 100755 --- a/Services/Ces/V1/Model/AlarmTemplateCondition.cs +++ b/Services/Ces/V1/Model/AlarmTemplateCondition.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/BatchListMetricDataRequest.cs b/Services/Ces/V1/Model/BatchListMetricDataRequest.cs index 1668089..0cf1703 100755 --- a/Services/Ces/V1/Model/BatchListMetricDataRequest.cs +++ b/Services/Ces/V1/Model/BatchListMetricDataRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/BatchListMetricDataRequestBody.cs b/Services/Ces/V1/Model/BatchListMetricDataRequestBody.cs index d7eec16..219dfe8 100755 --- a/Services/Ces/V1/Model/BatchListMetricDataRequestBody.cs +++ b/Services/Ces/V1/Model/BatchListMetricDataRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/BatchListMetricDataResponse.cs b/Services/Ces/V1/Model/BatchListMetricDataResponse.cs index 045ab4f..d1d159f 100755 --- a/Services/Ces/V1/Model/BatchListMetricDataResponse.cs +++ b/Services/Ces/V1/Model/BatchListMetricDataResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/BatchMetricData.cs b/Services/Ces/V1/Model/BatchMetricData.cs index a1ff66b..768640c 100755 --- a/Services/Ces/V1/Model/BatchMetricData.cs +++ b/Services/Ces/V1/Model/BatchMetricData.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/Condition.cs b/Services/Ces/V1/Model/Condition.cs index 8b9a63e..3a67c70 100755 --- a/Services/Ces/V1/Model/Condition.cs +++ b/Services/Ces/V1/Model/Condition.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/CreateAlarmRequest.cs b/Services/Ces/V1/Model/CreateAlarmRequest.cs index 7ba1b29..c19cb39 100755 --- a/Services/Ces/V1/Model/CreateAlarmRequest.cs +++ b/Services/Ces/V1/Model/CreateAlarmRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/CreateAlarmRequestBody.cs b/Services/Ces/V1/Model/CreateAlarmRequestBody.cs index 2a31af3..25be927 100755 --- a/Services/Ces/V1/Model/CreateAlarmRequestBody.cs +++ b/Services/Ces/V1/Model/CreateAlarmRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { @@ -40,11 +41,16 @@ public class AlarmTypeEnum { "RESOURCE_GROUP", RESOURCE_GROUP }, }; - private string Value; + private string _value; + + public AlarmTypeEnum() + { + + } public AlarmTypeEnum(string value) { - Value = value; + _value = value; } public static AlarmTypeEnum FromValue(string value) @@ -63,17 +69,17 @@ public static AlarmTypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -102,7 +108,7 @@ public bool Equals(AlarmTypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(AlarmTypeEnum a, AlarmTypeEnum b) diff --git a/Services/Ces/V1/Model/CreateAlarmResponse.cs b/Services/Ces/V1/Model/CreateAlarmResponse.cs index f00a69d..c304f6d 100755 --- a/Services/Ces/V1/Model/CreateAlarmResponse.cs +++ b/Services/Ces/V1/Model/CreateAlarmResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/CreateAlarmTemplateRequest.cs b/Services/Ces/V1/Model/CreateAlarmTemplateRequest.cs index 0f3c8eb..626e39a 100755 --- a/Services/Ces/V1/Model/CreateAlarmTemplateRequest.cs +++ b/Services/Ces/V1/Model/CreateAlarmTemplateRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/CreateAlarmTemplateRequestBody.cs b/Services/Ces/V1/Model/CreateAlarmTemplateRequestBody.cs index f1774ab..642df17 100755 --- a/Services/Ces/V1/Model/CreateAlarmTemplateRequestBody.cs +++ b/Services/Ces/V1/Model/CreateAlarmTemplateRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/CreateAlarmTemplateResponse.cs b/Services/Ces/V1/Model/CreateAlarmTemplateResponse.cs index d276be8..4b653fd 100755 --- a/Services/Ces/V1/Model/CreateAlarmTemplateResponse.cs +++ b/Services/Ces/V1/Model/CreateAlarmTemplateResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/CreateEventsRequest.cs b/Services/Ces/V1/Model/CreateEventsRequest.cs index 16bf4c5..68ca9ba 100755 --- a/Services/Ces/V1/Model/CreateEventsRequest.cs +++ b/Services/Ces/V1/Model/CreateEventsRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/CreateEventsResponse.cs b/Services/Ces/V1/Model/CreateEventsResponse.cs index b55f168..6a8dba1 100755 --- a/Services/Ces/V1/Model/CreateEventsResponse.cs +++ b/Services/Ces/V1/Model/CreateEventsResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/CreateEventsResponseBody.cs b/Services/Ces/V1/Model/CreateEventsResponseBody.cs index a49fe6c..a672872 100755 --- a/Services/Ces/V1/Model/CreateEventsResponseBody.cs +++ b/Services/Ces/V1/Model/CreateEventsResponseBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/CreateMetricDataRequest.cs b/Services/Ces/V1/Model/CreateMetricDataRequest.cs index de6318a..a3551e1 100755 --- a/Services/Ces/V1/Model/CreateMetricDataRequest.cs +++ b/Services/Ces/V1/Model/CreateMetricDataRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/CreateMetricDataResponse.cs b/Services/Ces/V1/Model/CreateMetricDataResponse.cs index b673961..8ccf812 100755 --- a/Services/Ces/V1/Model/CreateMetricDataResponse.cs +++ b/Services/Ces/V1/Model/CreateMetricDataResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/CreateResourceGroup.cs b/Services/Ces/V1/Model/CreateResourceGroup.cs index 23fd2cf..91ff32e 100755 --- a/Services/Ces/V1/Model/CreateResourceGroup.cs +++ b/Services/Ces/V1/Model/CreateResourceGroup.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/CreateResourceGroupRequest.cs b/Services/Ces/V1/Model/CreateResourceGroupRequest.cs index 58f8e99..a53265a 100755 --- a/Services/Ces/V1/Model/CreateResourceGroupRequest.cs +++ b/Services/Ces/V1/Model/CreateResourceGroupRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/CreateResourceGroupRequestBody.cs b/Services/Ces/V1/Model/CreateResourceGroupRequestBody.cs index 6e15b16..0937173 100755 --- a/Services/Ces/V1/Model/CreateResourceGroupRequestBody.cs +++ b/Services/Ces/V1/Model/CreateResourceGroupRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/CreateResourceGroupResponse.cs b/Services/Ces/V1/Model/CreateResourceGroupResponse.cs index 2f51a7b..7539950 100755 --- a/Services/Ces/V1/Model/CreateResourceGroupResponse.cs +++ b/Services/Ces/V1/Model/CreateResourceGroupResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/DataPointForAlarmHistory.cs b/Services/Ces/V1/Model/DataPointForAlarmHistory.cs index ad64375..4cbd509 100755 --- a/Services/Ces/V1/Model/DataPointForAlarmHistory.cs +++ b/Services/Ces/V1/Model/DataPointForAlarmHistory.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/Datapoint.cs b/Services/Ces/V1/Model/Datapoint.cs index cb74a32..d006ca1 100755 --- a/Services/Ces/V1/Model/Datapoint.cs +++ b/Services/Ces/V1/Model/Datapoint.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/DatapointForBatchMetric.cs b/Services/Ces/V1/Model/DatapointForBatchMetric.cs index 7256e1a..28eeb5e 100755 --- a/Services/Ces/V1/Model/DatapointForBatchMetric.cs +++ b/Services/Ces/V1/Model/DatapointForBatchMetric.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/DeleteAlarmRequest.cs b/Services/Ces/V1/Model/DeleteAlarmRequest.cs index e9710dd..08e2ce3 100755 --- a/Services/Ces/V1/Model/DeleteAlarmRequest.cs +++ b/Services/Ces/V1/Model/DeleteAlarmRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/DeleteAlarmResponse.cs b/Services/Ces/V1/Model/DeleteAlarmResponse.cs index 2691c27..aba243e 100755 --- a/Services/Ces/V1/Model/DeleteAlarmResponse.cs +++ b/Services/Ces/V1/Model/DeleteAlarmResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/DeleteAlarmTemplateRequest.cs b/Services/Ces/V1/Model/DeleteAlarmTemplateRequest.cs index 0db3b4c..8348764 100755 --- a/Services/Ces/V1/Model/DeleteAlarmTemplateRequest.cs +++ b/Services/Ces/V1/Model/DeleteAlarmTemplateRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/DeleteAlarmTemplateResponse.cs b/Services/Ces/V1/Model/DeleteAlarmTemplateResponse.cs index b698157..40b5b73 100755 --- a/Services/Ces/V1/Model/DeleteAlarmTemplateResponse.cs +++ b/Services/Ces/V1/Model/DeleteAlarmTemplateResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/DeleteResourceGroupRequest.cs b/Services/Ces/V1/Model/DeleteResourceGroupRequest.cs index 9e4a40f..01b0632 100755 --- a/Services/Ces/V1/Model/DeleteResourceGroupRequest.cs +++ b/Services/Ces/V1/Model/DeleteResourceGroupRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/DeleteResourceGroupResponse.cs b/Services/Ces/V1/Model/DeleteResourceGroupResponse.cs index db8051d..ac0646e 100755 --- a/Services/Ces/V1/Model/DeleteResourceGroupResponse.cs +++ b/Services/Ces/V1/Model/DeleteResourceGroupResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/EventDataInfo.cs b/Services/Ces/V1/Model/EventDataInfo.cs index 0afc0da..9a0b644 100755 --- a/Services/Ces/V1/Model/EventDataInfo.cs +++ b/Services/Ces/V1/Model/EventDataInfo.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/EventInfo.cs b/Services/Ces/V1/Model/EventInfo.cs index 925f618..172ba96 100755 --- a/Services/Ces/V1/Model/EventInfo.cs +++ b/Services/Ces/V1/Model/EventInfo.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/EventInfoDetail.cs b/Services/Ces/V1/Model/EventInfoDetail.cs index 8d3c981..28eb6af 100755 --- a/Services/Ces/V1/Model/EventInfoDetail.cs +++ b/Services/Ces/V1/Model/EventInfoDetail.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/EventItem.cs b/Services/Ces/V1/Model/EventItem.cs index 2976cff..40e76ab 100755 --- a/Services/Ces/V1/Model/EventItem.cs +++ b/Services/Ces/V1/Model/EventItem.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/EventItemDetail.cs b/Services/Ces/V1/Model/EventItemDetail.cs index 65dacda..4d8f8c3 100755 --- a/Services/Ces/V1/Model/EventItemDetail.cs +++ b/Services/Ces/V1/Model/EventItemDetail.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { @@ -40,11 +41,16 @@ public class EventStateEnum { "incident", INCIDENT }, }; - private string Value; + private string _value; + + public EventStateEnum() + { + + } public EventStateEnum(string value) { - Value = value; + _value = value; } public static EventStateEnum FromValue(string value) @@ -63,17 +69,17 @@ public static EventStateEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -102,7 +108,7 @@ public bool Equals(EventStateEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(EventStateEnum a, EventStateEnum b) @@ -158,11 +164,16 @@ public class EventLevelEnum { "Info", INFO }, }; - private string Value; + private string _value; + + public EventLevelEnum() + { + + } public EventLevelEnum(string value) { - Value = value; + _value = value; } public static EventLevelEnum FromValue(string value) @@ -181,17 +192,17 @@ public static EventLevelEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -220,7 +231,7 @@ public bool Equals(EventLevelEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(EventLevelEnum a, EventLevelEnum b) diff --git a/Services/Ces/V1/Model/InstanceStatistics.cs b/Services/Ces/V1/Model/InstanceStatistics.cs index e2f4279..e46c6be 100755 --- a/Services/Ces/V1/Model/InstanceStatistics.cs +++ b/Services/Ces/V1/Model/InstanceStatistics.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/ListAlarmHistoriesRequest.cs b/Services/Ces/V1/Model/ListAlarmHistoriesRequest.cs index 6adc061..bb392e6 100755 --- a/Services/Ces/V1/Model/ListAlarmHistoriesRequest.cs +++ b/Services/Ces/V1/Model/ListAlarmHistoriesRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/ListAlarmHistoriesResponse.cs b/Services/Ces/V1/Model/ListAlarmHistoriesResponse.cs index 28b501b..cb4bb57 100755 --- a/Services/Ces/V1/Model/ListAlarmHistoriesResponse.cs +++ b/Services/Ces/V1/Model/ListAlarmHistoriesResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/ListAlarmTemplatesRequest.cs b/Services/Ces/V1/Model/ListAlarmTemplatesRequest.cs index 790951c..198bfb3 100755 --- a/Services/Ces/V1/Model/ListAlarmTemplatesRequest.cs +++ b/Services/Ces/V1/Model/ListAlarmTemplatesRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/ListAlarmTemplatesResponse.cs b/Services/Ces/V1/Model/ListAlarmTemplatesResponse.cs index 70a2c18..1033636 100755 --- a/Services/Ces/V1/Model/ListAlarmTemplatesResponse.cs +++ b/Services/Ces/V1/Model/ListAlarmTemplatesResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/ListAlarmsRequest.cs b/Services/Ces/V1/Model/ListAlarmsRequest.cs index 478efa2..7faab97 100755 --- a/Services/Ces/V1/Model/ListAlarmsRequest.cs +++ b/Services/Ces/V1/Model/ListAlarmsRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/ListAlarmsResponse.cs b/Services/Ces/V1/Model/ListAlarmsResponse.cs index 94c7ea3..533e9cd 100755 --- a/Services/Ces/V1/Model/ListAlarmsResponse.cs +++ b/Services/Ces/V1/Model/ListAlarmsResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/ListEventDetailRequest.cs b/Services/Ces/V1/Model/ListEventDetailRequest.cs index 42d3bb0..139cf91 100755 --- a/Services/Ces/V1/Model/ListEventDetailRequest.cs +++ b/Services/Ces/V1/Model/ListEventDetailRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { @@ -34,11 +35,16 @@ public class EventTypeEnum { "EVENT.CUSTOM", EVENT_CUSTOM }, }; - private string Value; + private string _value; + + public EventTypeEnum() + { + + } public EventTypeEnum(string value) { - Value = value; + _value = value; } public static EventTypeEnum FromValue(string value) @@ -57,17 +63,17 @@ public static EventTypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -96,7 +102,7 @@ public bool Equals(EventTypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(EventTypeEnum a, EventTypeEnum b) diff --git a/Services/Ces/V1/Model/ListEventDetailResponse.cs b/Services/Ces/V1/Model/ListEventDetailResponse.cs index e73edcf..87c8c6a 100755 --- a/Services/Ces/V1/Model/ListEventDetailResponse.cs +++ b/Services/Ces/V1/Model/ListEventDetailResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { @@ -34,11 +35,16 @@ public class EventTypeEnum { "EVENT.CUSTOM", EVENT_CUSTOM }, }; - private string Value; + private string _value; + + public EventTypeEnum() + { + + } public EventTypeEnum(string value) { - Value = value; + _value = value; } public static EventTypeEnum FromValue(string value) @@ -57,17 +63,17 @@ public static EventTypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -96,7 +102,7 @@ public bool Equals(EventTypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(EventTypeEnum a, EventTypeEnum b) diff --git a/Services/Ces/V1/Model/ListEventsRequest.cs b/Services/Ces/V1/Model/ListEventsRequest.cs index a5f2bf0..aa89f6c 100755 --- a/Services/Ces/V1/Model/ListEventsRequest.cs +++ b/Services/Ces/V1/Model/ListEventsRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { @@ -34,11 +35,16 @@ public class EventTypeEnum { "EVENT.CUSTOM", EVENT_CUSTOM }, }; - private string Value; + private string _value; + + public EventTypeEnum() + { + + } public EventTypeEnum(string value) { - Value = value; + _value = value; } public static EventTypeEnum FromValue(string value) @@ -57,17 +63,17 @@ public static EventTypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -96,7 +102,7 @@ public bool Equals(EventTypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(EventTypeEnum a, EventTypeEnum b) diff --git a/Services/Ces/V1/Model/ListEventsResponse.cs b/Services/Ces/V1/Model/ListEventsResponse.cs index a73f5c9..c99650c 100755 --- a/Services/Ces/V1/Model/ListEventsResponse.cs +++ b/Services/Ces/V1/Model/ListEventsResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/ListMetricsRequest.cs b/Services/Ces/V1/Model/ListMetricsRequest.cs index bdefbb5..e4d8155 100755 --- a/Services/Ces/V1/Model/ListMetricsRequest.cs +++ b/Services/Ces/V1/Model/ListMetricsRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { @@ -34,11 +35,16 @@ public class OrderEnum { "desc", DESC }, }; - private string Value; + private string _value; + + public OrderEnum() + { + + } public OrderEnum(string value) { - Value = value; + _value = value; } public static OrderEnum FromValue(string value) @@ -57,17 +63,17 @@ public static OrderEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -96,7 +102,7 @@ public bool Equals(OrderEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(OrderEnum a, OrderEnum b) diff --git a/Services/Ces/V1/Model/ListMetricsResponse.cs b/Services/Ces/V1/Model/ListMetricsResponse.cs index 3cda67e..c99474d 100755 --- a/Services/Ces/V1/Model/ListMetricsResponse.cs +++ b/Services/Ces/V1/Model/ListMetricsResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/ListResourceGroupRequest.cs b/Services/Ces/V1/Model/ListResourceGroupRequest.cs index 3e27762..4b6fd27 100755 --- a/Services/Ces/V1/Model/ListResourceGroupRequest.cs +++ b/Services/Ces/V1/Model/ListResourceGroupRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/ListResourceGroupResponse.cs b/Services/Ces/V1/Model/ListResourceGroupResponse.cs index 2e1d700..1355f7b 100755 --- a/Services/Ces/V1/Model/ListResourceGroupResponse.cs +++ b/Services/Ces/V1/Model/ListResourceGroupResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/MetaData.cs b/Services/Ces/V1/Model/MetaData.cs index 415bd09..1efc1f3 100755 --- a/Services/Ces/V1/Model/MetaData.cs +++ b/Services/Ces/V1/Model/MetaData.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/MetaDataForAlarmHistory.cs b/Services/Ces/V1/Model/MetaDataForAlarmHistory.cs index 1a02751..c59806f 100755 --- a/Services/Ces/V1/Model/MetaDataForAlarmHistory.cs +++ b/Services/Ces/V1/Model/MetaDataForAlarmHistory.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/MetricAlarms.cs b/Services/Ces/V1/Model/MetricAlarms.cs index cd8d372..06e8625 100755 --- a/Services/Ces/V1/Model/MetricAlarms.cs +++ b/Services/Ces/V1/Model/MetricAlarms.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { @@ -34,11 +35,16 @@ public class AlarmTypeEnum { "EVENT.CUSTOM", EVENT_CUSTOM }, }; - private string Value; + private string _value; + + public AlarmTypeEnum() + { + + } public AlarmTypeEnum(string value) { - Value = value; + _value = value; } public static AlarmTypeEnum FromValue(string value) @@ -57,17 +63,17 @@ public static AlarmTypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -96,7 +102,7 @@ public bool Equals(AlarmTypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(AlarmTypeEnum a, AlarmTypeEnum b) diff --git a/Services/Ces/V1/Model/MetricDataItem.cs b/Services/Ces/V1/Model/MetricDataItem.cs index ed640dd..8696223 100755 --- a/Services/Ces/V1/Model/MetricDataItem.cs +++ b/Services/Ces/V1/Model/MetricDataItem.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/MetricForAlarm.cs b/Services/Ces/V1/Model/MetricForAlarm.cs index f737f80..f0dc05b 100755 --- a/Services/Ces/V1/Model/MetricForAlarm.cs +++ b/Services/Ces/V1/Model/MetricForAlarm.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/MetricInfo.cs b/Services/Ces/V1/Model/MetricInfo.cs index 0d40889..adbe6bf 100755 --- a/Services/Ces/V1/Model/MetricInfo.cs +++ b/Services/Ces/V1/Model/MetricInfo.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/MetricInfoForAlarm.cs b/Services/Ces/V1/Model/MetricInfoForAlarm.cs index 66fa630..a02dbee 100755 --- a/Services/Ces/V1/Model/MetricInfoForAlarm.cs +++ b/Services/Ces/V1/Model/MetricInfoForAlarm.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/MetricInfoList.cs b/Services/Ces/V1/Model/MetricInfoList.cs index ac5b7c9..443255f 100755 --- a/Services/Ces/V1/Model/MetricInfoList.cs +++ b/Services/Ces/V1/Model/MetricInfoList.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/MetricsDimension.cs b/Services/Ces/V1/Model/MetricsDimension.cs index b85e3f5..bb13d33 100755 --- a/Services/Ces/V1/Model/MetricsDimension.cs +++ b/Services/Ces/V1/Model/MetricsDimension.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/ModifyAlarmActionReq.cs b/Services/Ces/V1/Model/ModifyAlarmActionReq.cs index 12e721e..2dd226c 100755 --- a/Services/Ces/V1/Model/ModifyAlarmActionReq.cs +++ b/Services/Ces/V1/Model/ModifyAlarmActionReq.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/Quotas.cs b/Services/Ces/V1/Model/Quotas.cs index 464e1c2..e8a9643 100755 --- a/Services/Ces/V1/Model/Quotas.cs +++ b/Services/Ces/V1/Model/Quotas.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/Resource.cs b/Services/Ces/V1/Model/Resource.cs index 3b3d6b2..c69f124 100755 --- a/Services/Ces/V1/Model/Resource.cs +++ b/Services/Ces/V1/Model/Resource.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/ResourceGroup.cs b/Services/Ces/V1/Model/ResourceGroup.cs index 0236324..aed2a1e 100755 --- a/Services/Ces/V1/Model/ResourceGroup.cs +++ b/Services/Ces/V1/Model/ResourceGroup.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/ResourceGroupInfo.cs b/Services/Ces/V1/Model/ResourceGroupInfo.cs index 1520ac2..551fa1c 100755 --- a/Services/Ces/V1/Model/ResourceGroupInfo.cs +++ b/Services/Ces/V1/Model/ResourceGroupInfo.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/ShowAlarmRequest.cs b/Services/Ces/V1/Model/ShowAlarmRequest.cs index 2deb56f..c40ba20 100755 --- a/Services/Ces/V1/Model/ShowAlarmRequest.cs +++ b/Services/Ces/V1/Model/ShowAlarmRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/ShowAlarmResponse.cs b/Services/Ces/V1/Model/ShowAlarmResponse.cs index 02e37f8..da6e913 100755 --- a/Services/Ces/V1/Model/ShowAlarmResponse.cs +++ b/Services/Ces/V1/Model/ShowAlarmResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/ShowEventDataRequest.cs b/Services/Ces/V1/Model/ShowEventDataRequest.cs index 7167419..8e86eec 100755 --- a/Services/Ces/V1/Model/ShowEventDataRequest.cs +++ b/Services/Ces/V1/Model/ShowEventDataRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/ShowEventDataResponse.cs b/Services/Ces/V1/Model/ShowEventDataResponse.cs index a5d9436..d557c74 100755 --- a/Services/Ces/V1/Model/ShowEventDataResponse.cs +++ b/Services/Ces/V1/Model/ShowEventDataResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/ShowMetricDataRequest.cs b/Services/Ces/V1/Model/ShowMetricDataRequest.cs index 925bc86..83c3821 100755 --- a/Services/Ces/V1/Model/ShowMetricDataRequest.cs +++ b/Services/Ces/V1/Model/ShowMetricDataRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { @@ -52,11 +53,16 @@ public class FilterEnum { "variance", VARIANCE }, }; - private string Value; + private string _value; + + public FilterEnum() + { + + } public FilterEnum(string value) { - Value = value; + _value = value; } public static FilterEnum FromValue(string value) @@ -75,17 +81,17 @@ public static FilterEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -114,7 +120,7 @@ public bool Equals(FilterEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(FilterEnum a, FilterEnum b) diff --git a/Services/Ces/V1/Model/ShowMetricDataResponse.cs b/Services/Ces/V1/Model/ShowMetricDataResponse.cs index 13f4683..4685eee 100755 --- a/Services/Ces/V1/Model/ShowMetricDataResponse.cs +++ b/Services/Ces/V1/Model/ShowMetricDataResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/ShowQuotasRequest.cs b/Services/Ces/V1/Model/ShowQuotasRequest.cs index 2aec750..22781d8 100755 --- a/Services/Ces/V1/Model/ShowQuotasRequest.cs +++ b/Services/Ces/V1/Model/ShowQuotasRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/ShowQuotasResponse.cs b/Services/Ces/V1/Model/ShowQuotasResponse.cs index 623b616..1a12f3d 100755 --- a/Services/Ces/V1/Model/ShowQuotasResponse.cs +++ b/Services/Ces/V1/Model/ShowQuotasResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/ShowResourceGroupRequest.cs b/Services/Ces/V1/Model/ShowResourceGroupRequest.cs index df0b323..4ccf8b0 100755 --- a/Services/Ces/V1/Model/ShowResourceGroupRequest.cs +++ b/Services/Ces/V1/Model/ShowResourceGroupRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/ShowResourceGroupResponse.cs b/Services/Ces/V1/Model/ShowResourceGroupResponse.cs index b948a30..278d162 100755 --- a/Services/Ces/V1/Model/ShowResourceGroupResponse.cs +++ b/Services/Ces/V1/Model/ShowResourceGroupResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/TemplateItem.cs b/Services/Ces/V1/Model/TemplateItem.cs index 586c389..b669d5a 100755 --- a/Services/Ces/V1/Model/TemplateItem.cs +++ b/Services/Ces/V1/Model/TemplateItem.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/TotalMetaData.cs b/Services/Ces/V1/Model/TotalMetaData.cs index 13c2bf4..5770a77 100755 --- a/Services/Ces/V1/Model/TotalMetaData.cs +++ b/Services/Ces/V1/Model/TotalMetaData.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/UpdateAlarmActionRequest.cs b/Services/Ces/V1/Model/UpdateAlarmActionRequest.cs index f14587f..75e7088 100755 --- a/Services/Ces/V1/Model/UpdateAlarmActionRequest.cs +++ b/Services/Ces/V1/Model/UpdateAlarmActionRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/UpdateAlarmActionResponse.cs b/Services/Ces/V1/Model/UpdateAlarmActionResponse.cs index 55220da..14ae626 100755 --- a/Services/Ces/V1/Model/UpdateAlarmActionResponse.cs +++ b/Services/Ces/V1/Model/UpdateAlarmActionResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/UpdateAlarmRequest.cs b/Services/Ces/V1/Model/UpdateAlarmRequest.cs index 062be15..f385501 100755 --- a/Services/Ces/V1/Model/UpdateAlarmRequest.cs +++ b/Services/Ces/V1/Model/UpdateAlarmRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/UpdateAlarmRequestBody.cs b/Services/Ces/V1/Model/UpdateAlarmRequestBody.cs index 21d54f1..4046bbd 100755 --- a/Services/Ces/V1/Model/UpdateAlarmRequestBody.cs +++ b/Services/Ces/V1/Model/UpdateAlarmRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { @@ -40,11 +41,16 @@ public class AlarmTypeEnum { "RESOURCE_GROUP", RESOURCE_GROUP }, }; - private string Value; + private string _value; + + public AlarmTypeEnum() + { + + } public AlarmTypeEnum(string value) { - Value = value; + _value = value; } public static AlarmTypeEnum FromValue(string value) @@ -63,17 +69,17 @@ public static AlarmTypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -102,7 +108,7 @@ public bool Equals(AlarmTypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(AlarmTypeEnum a, AlarmTypeEnum b) diff --git a/Services/Ces/V1/Model/UpdateAlarmResponse.cs b/Services/Ces/V1/Model/UpdateAlarmResponse.cs index f55e072..8ba919e 100755 --- a/Services/Ces/V1/Model/UpdateAlarmResponse.cs +++ b/Services/Ces/V1/Model/UpdateAlarmResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/UpdateAlarmTemplateRequest.cs b/Services/Ces/V1/Model/UpdateAlarmTemplateRequest.cs index d51f77a..b9a64b6 100755 --- a/Services/Ces/V1/Model/UpdateAlarmTemplateRequest.cs +++ b/Services/Ces/V1/Model/UpdateAlarmTemplateRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/UpdateAlarmTemplateRequestBody.cs b/Services/Ces/V1/Model/UpdateAlarmTemplateRequestBody.cs index 0c02e77..73f76b0 100755 --- a/Services/Ces/V1/Model/UpdateAlarmTemplateRequestBody.cs +++ b/Services/Ces/V1/Model/UpdateAlarmTemplateRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/UpdateAlarmTemplateResponse.cs b/Services/Ces/V1/Model/UpdateAlarmTemplateResponse.cs index 46f0481..aa5d8fd 100755 --- a/Services/Ces/V1/Model/UpdateAlarmTemplateResponse.cs +++ b/Services/Ces/V1/Model/UpdateAlarmTemplateResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/UpdateResourceGroupRequest.cs b/Services/Ces/V1/Model/UpdateResourceGroupRequest.cs index b0f4da1..5429c90 100755 --- a/Services/Ces/V1/Model/UpdateResourceGroupRequest.cs +++ b/Services/Ces/V1/Model/UpdateResourceGroupRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/UpdateResourceGroupRequestBody.cs b/Services/Ces/V1/Model/UpdateResourceGroupRequestBody.cs index 40d52f3..aa098b8 100755 --- a/Services/Ces/V1/Model/UpdateResourceGroupRequestBody.cs +++ b/Services/Ces/V1/Model/UpdateResourceGroupRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Model/UpdateResourceGroupResponse.cs b/Services/Ces/V1/Model/UpdateResourceGroupResponse.cs index 60bafe1..3c8e1fc 100755 --- a/Services/Ces/V1/Model/UpdateResourceGroupResponse.cs +++ b/Services/Ces/V1/Model/UpdateResourceGroupResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1.Model { diff --git a/Services/Ces/V1/Region/CesRegion.cs b/Services/Ces/V1/Region/CesRegion.cs index a775cfc..017bf15 100755 --- a/Services/Ces/V1/Region/CesRegion.cs +++ b/Services/Ces/V1/Region/CesRegion.cs @@ -1,6 +1,6 @@ using System; using System.Collections.Generic; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V1 { diff --git a/Services/Ces/V2/CesAsyncClient.cs b/Services/Ces/V2/CesAsyncClient.cs index 640af69..4217e1c 100755 --- a/Services/Ces/V2/CesAsyncClient.cs +++ b/Services/Ces/V2/CesAsyncClient.cs @@ -1,7 +1,7 @@ using System.Net.Http; using System.Collections.Generic; using System.Threading.Tasks; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; using G42Cloud.SDK.Ces.V2.Model; namespace G42Cloud.SDK.Ces.V2 diff --git a/Services/Ces/V2/CesClient.cs b/Services/Ces/V2/CesClient.cs index 4c13b83..610b9a9 100755 --- a/Services/Ces/V2/CesClient.cs +++ b/Services/Ces/V2/CesClient.cs @@ -1,6 +1,6 @@ using System.Net.Http; using System.Collections.Generic; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; using G42Cloud.SDK.Ces.V2.Model; namespace G42Cloud.SDK.Ces.V2 diff --git a/Services/Ces/V2/Model/AddAlarmRuleResourcesRequest.cs b/Services/Ces/V2/Model/AddAlarmRuleResourcesRequest.cs index e16909e..0382e9f 100755 --- a/Services/Ces/V2/Model/AddAlarmRuleResourcesRequest.cs +++ b/Services/Ces/V2/Model/AddAlarmRuleResourcesRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V2.Model { diff --git a/Services/Ces/V2/Model/AddAlarmRuleResourcesResponse.cs b/Services/Ces/V2/Model/AddAlarmRuleResourcesResponse.cs index d7ddecf..b4688d2 100755 --- a/Services/Ces/V2/Model/AddAlarmRuleResourcesResponse.cs +++ b/Services/Ces/V2/Model/AddAlarmRuleResourcesResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V2.Model { diff --git a/Services/Ces/V2/Model/AdditionalInfo.cs b/Services/Ces/V2/Model/AdditionalInfo.cs index 9585848..07c950e 100755 --- a/Services/Ces/V2/Model/AdditionalInfo.cs +++ b/Services/Ces/V2/Model/AdditionalInfo.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V2.Model { diff --git a/Services/Ces/V2/Model/AgentDimension.cs b/Services/Ces/V2/Model/AgentDimension.cs index 61c2e94..d357dc3 100755 --- a/Services/Ces/V2/Model/AgentDimension.cs +++ b/Services/Ces/V2/Model/AgentDimension.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V2.Model { @@ -52,11 +53,16 @@ public class NameEnum { "raid", RAID }, }; - private string Value; + private string _value; + + public NameEnum() + { + + } public NameEnum(string value) { - Value = value; + _value = value; } public static NameEnum FromValue(string value) @@ -75,17 +81,17 @@ public static NameEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -114,7 +120,7 @@ public bool Equals(NameEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(NameEnum a, NameEnum b) diff --git a/Services/Ces/V2/Model/AlarmCondition.cs b/Services/Ces/V2/Model/AlarmCondition.cs index a5f635b..75d8280 100755 --- a/Services/Ces/V2/Model/AlarmCondition.cs +++ b/Services/Ces/V2/Model/AlarmCondition.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V2.Model { @@ -64,11 +65,16 @@ public class PeriodEnum { 86400, NUMBER_86400 }, }; - private int? Value; + private int? _value; + + public PeriodEnum() + { + + } public PeriodEnum(int? value) { - Value = value; + _value = value; } public static PeriodEnum FromValue(int? value) @@ -87,17 +93,17 @@ public static PeriodEnum FromValue(int? value) public int? GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -126,7 +132,7 @@ public bool Equals(PeriodEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(PeriodEnum a, PeriodEnum b) @@ -212,11 +218,16 @@ public class SuppressDurationEnum { 43200, NUMBER_43200 }, }; - private int? Value; + private int? _value; + + public SuppressDurationEnum() + { + + } public SuppressDurationEnum(int? value) { - Value = value; + _value = value; } public static SuppressDurationEnum FromValue(int? value) @@ -235,17 +246,17 @@ public static SuppressDurationEnum FromValue(int? value) public int? GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -274,7 +285,7 @@ public bool Equals(SuppressDurationEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(SuppressDurationEnum a, SuppressDurationEnum b) diff --git a/Services/Ces/V2/Model/AlarmDescription.cs b/Services/Ces/V2/Model/AlarmDescription.cs index d0d0246..18cb463 100755 --- a/Services/Ces/V2/Model/AlarmDescription.cs +++ b/Services/Ces/V2/Model/AlarmDescription.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V2.Model { diff --git a/Services/Ces/V2/Model/AlarmEnabled.cs b/Services/Ces/V2/Model/AlarmEnabled.cs index 80c9016..de34904 100755 --- a/Services/Ces/V2/Model/AlarmEnabled.cs +++ b/Services/Ces/V2/Model/AlarmEnabled.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V2.Model { diff --git a/Services/Ces/V2/Model/AlarmHistoryItemV2.cs b/Services/Ces/V2/Model/AlarmHistoryItemV2.cs index e0fea4e..5f07740 100755 --- a/Services/Ces/V2/Model/AlarmHistoryItemV2.cs +++ b/Services/Ces/V2/Model/AlarmHistoryItemV2.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V2.Model { @@ -40,11 +41,16 @@ public class StatusEnum { "invalid", INVALID }, }; - private string Value; + private string _value; + + public StatusEnum() + { + + } public StatusEnum(string value) { - Value = value; + _value = value; } public static StatusEnum FromValue(string value) @@ -63,17 +69,17 @@ public static StatusEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -102,7 +108,7 @@ public bool Equals(StatusEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(StatusEnum a, StatusEnum b) @@ -158,11 +164,16 @@ public class LevelEnum { 4, NUMBER_4 }, }; - private int? Value; + private int? _value; + + public LevelEnum() + { + + } public LevelEnum(int? value) { - Value = value; + _value = value; } public static LevelEnum FromValue(int? value) @@ -181,17 +192,17 @@ public static LevelEnum FromValue(int? value) public int? GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -220,7 +231,7 @@ public bool Equals(LevelEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(LevelEnum a, LevelEnum b) @@ -264,11 +275,16 @@ public class TypeEnum { "EVENT.CUSTOM", EVENT_CUSTOM }, }; - private string Value; + private string _value; + + public TypeEnum() + { + + } public TypeEnum(string value) { - Value = value; + _value = value; } public static TypeEnum FromValue(string value) @@ -287,17 +303,17 @@ public static TypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -326,7 +342,7 @@ public bool Equals(TypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(TypeEnum a, TypeEnum b) diff --git a/Services/Ces/V2/Model/AlarmID.cs b/Services/Ces/V2/Model/AlarmID.cs index 8a36d2a..ef2bcae 100755 --- a/Services/Ces/V2/Model/AlarmID.cs +++ b/Services/Ces/V2/Model/AlarmID.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V2.Model { diff --git a/Services/Ces/V2/Model/AlarmName.cs b/Services/Ces/V2/Model/AlarmName.cs index 5a1132d..d03c1b8 100755 --- a/Services/Ces/V2/Model/AlarmName.cs +++ b/Services/Ces/V2/Model/AlarmName.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V2.Model { diff --git a/Services/Ces/V2/Model/AlarmTemplateID.cs b/Services/Ces/V2/Model/AlarmTemplateID.cs index 5c7adf0..2dc6dc5 100755 --- a/Services/Ces/V2/Model/AlarmTemplateID.cs +++ b/Services/Ces/V2/Model/AlarmTemplateID.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V2.Model { diff --git a/Services/Ces/V2/Model/AlarmType.cs b/Services/Ces/V2/Model/AlarmType.cs index 0729edb..2bf6a58 100755 --- a/Services/Ces/V2/Model/AlarmType.cs +++ b/Services/Ces/V2/Model/AlarmType.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V2.Model { diff --git a/Services/Ces/V2/Model/BatchDeleteAlarmRulesRequest.cs b/Services/Ces/V2/Model/BatchDeleteAlarmRulesRequest.cs index e8cdef9..120fe40 100755 --- a/Services/Ces/V2/Model/BatchDeleteAlarmRulesRequest.cs +++ b/Services/Ces/V2/Model/BatchDeleteAlarmRulesRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V2.Model { diff --git a/Services/Ces/V2/Model/BatchDeleteAlarmRulesResponse.cs b/Services/Ces/V2/Model/BatchDeleteAlarmRulesResponse.cs index 7855372..25acf5a 100755 --- a/Services/Ces/V2/Model/BatchDeleteAlarmRulesResponse.cs +++ b/Services/Ces/V2/Model/BatchDeleteAlarmRulesResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V2.Model { diff --git a/Services/Ces/V2/Model/BatchDeleteAlarmsRequestBody.cs b/Services/Ces/V2/Model/BatchDeleteAlarmsRequestBody.cs index cf2c855..6578dcc 100755 --- a/Services/Ces/V2/Model/BatchDeleteAlarmsRequestBody.cs +++ b/Services/Ces/V2/Model/BatchDeleteAlarmsRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V2.Model { diff --git a/Services/Ces/V2/Model/BatchEnableAlarmRulesRequest.cs b/Services/Ces/V2/Model/BatchEnableAlarmRulesRequest.cs index 7898d21..8fae266 100755 --- a/Services/Ces/V2/Model/BatchEnableAlarmRulesRequest.cs +++ b/Services/Ces/V2/Model/BatchEnableAlarmRulesRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V2.Model { diff --git a/Services/Ces/V2/Model/BatchEnableAlarmRulesResponse.cs b/Services/Ces/V2/Model/BatchEnableAlarmRulesResponse.cs index 9970f54..fea9ce0 100755 --- a/Services/Ces/V2/Model/BatchEnableAlarmRulesResponse.cs +++ b/Services/Ces/V2/Model/BatchEnableAlarmRulesResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V2.Model { diff --git a/Services/Ces/V2/Model/BatchEnableAlarmsRequestBody.cs b/Services/Ces/V2/Model/BatchEnableAlarmsRequestBody.cs index 270b747..78603ab 100755 --- a/Services/Ces/V2/Model/BatchEnableAlarmsRequestBody.cs +++ b/Services/Ces/V2/Model/BatchEnableAlarmsRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V2.Model { diff --git a/Services/Ces/V2/Model/ComparisonOperator.cs b/Services/Ces/V2/Model/ComparisonOperator.cs index d0305ae..a09dac5 100755 --- a/Services/Ces/V2/Model/ComparisonOperator.cs +++ b/Services/Ces/V2/Model/ComparisonOperator.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V2.Model { diff --git a/Services/Ces/V2/Model/Count.cs b/Services/Ces/V2/Model/Count.cs index a7eab3c..1cc97c7 100755 --- a/Services/Ces/V2/Model/Count.cs +++ b/Services/Ces/V2/Model/Count.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V2.Model { diff --git a/Services/Ces/V2/Model/CreateAlarmRulesRequest.cs b/Services/Ces/V2/Model/CreateAlarmRulesRequest.cs index 252faa7..f573902 100755 --- a/Services/Ces/V2/Model/CreateAlarmRulesRequest.cs +++ b/Services/Ces/V2/Model/CreateAlarmRulesRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V2.Model { diff --git a/Services/Ces/V2/Model/CreateAlarmRulesResponse.cs b/Services/Ces/V2/Model/CreateAlarmRulesResponse.cs index abcce3c..e17bd7e 100755 --- a/Services/Ces/V2/Model/CreateAlarmRulesResponse.cs +++ b/Services/Ces/V2/Model/CreateAlarmRulesResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V2.Model { diff --git a/Services/Ces/V2/Model/DataPointInfo.cs b/Services/Ces/V2/Model/DataPointInfo.cs index f4caa3e..a5ebf9e 100755 --- a/Services/Ces/V2/Model/DataPointInfo.cs +++ b/Services/Ces/V2/Model/DataPointInfo.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V2.Model { diff --git a/Services/Ces/V2/Model/DeleteAlarmRuleResourcesRequest.cs b/Services/Ces/V2/Model/DeleteAlarmRuleResourcesRequest.cs index 2275075..58a9bf6 100755 --- a/Services/Ces/V2/Model/DeleteAlarmRuleResourcesRequest.cs +++ b/Services/Ces/V2/Model/DeleteAlarmRuleResourcesRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V2.Model { diff --git a/Services/Ces/V2/Model/DeleteAlarmRuleResourcesResponse.cs b/Services/Ces/V2/Model/DeleteAlarmRuleResourcesResponse.cs index 9a36425..fe274b9 100755 --- a/Services/Ces/V2/Model/DeleteAlarmRuleResourcesResponse.cs +++ b/Services/Ces/V2/Model/DeleteAlarmRuleResourcesResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V2.Model { diff --git a/Services/Ces/V2/Model/Dimension.cs b/Services/Ces/V2/Model/Dimension.cs index 6bedd21..d2066ca 100755 --- a/Services/Ces/V2/Model/Dimension.cs +++ b/Services/Ces/V2/Model/Dimension.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V2.Model { diff --git a/Services/Ces/V2/Model/EnterpriseProjectID.cs b/Services/Ces/V2/Model/EnterpriseProjectID.cs index c84327a..94c3960 100755 --- a/Services/Ces/V2/Model/EnterpriseProjectID.cs +++ b/Services/Ces/V2/Model/EnterpriseProjectID.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V2.Model { diff --git a/Services/Ces/V2/Model/Filter.cs b/Services/Ces/V2/Model/Filter.cs index 26e767b..53e11bc 100755 --- a/Services/Ces/V2/Model/Filter.cs +++ b/Services/Ces/V2/Model/Filter.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V2.Model { diff --git a/Services/Ces/V2/Model/Level.cs b/Services/Ces/V2/Model/Level.cs index 99a76a5..bfce1f8 100755 --- a/Services/Ces/V2/Model/Level.cs +++ b/Services/Ces/V2/Model/Level.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V2.Model { diff --git a/Services/Ces/V2/Model/ListAgentDimensionInfoRequest.cs b/Services/Ces/V2/Model/ListAgentDimensionInfoRequest.cs index e1d237f..ed8ecf1 100755 --- a/Services/Ces/V2/Model/ListAgentDimensionInfoRequest.cs +++ b/Services/Ces/V2/Model/ListAgentDimensionInfoRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V2.Model { @@ -52,11 +53,16 @@ public class DimNameEnum { "raid", RAID }, }; - private string Value; + private string _value; + + public DimNameEnum() + { + + } public DimNameEnum(string value) { - Value = value; + _value = value; } public static DimNameEnum FromValue(string value) @@ -75,17 +81,17 @@ public static DimNameEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -114,7 +120,7 @@ public bool Equals(DimNameEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(DimNameEnum a, DimNameEnum b) diff --git a/Services/Ces/V2/Model/ListAgentDimensionInfoResponse.cs b/Services/Ces/V2/Model/ListAgentDimensionInfoResponse.cs index 0e1d7e7..a8b924d 100755 --- a/Services/Ces/V2/Model/ListAgentDimensionInfoResponse.cs +++ b/Services/Ces/V2/Model/ListAgentDimensionInfoResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V2.Model { diff --git a/Services/Ces/V2/Model/ListAlarmHistoriesRequest.cs b/Services/Ces/V2/Model/ListAlarmHistoriesRequest.cs index f60528d..280c044 100755 --- a/Services/Ces/V2/Model/ListAlarmHistoriesRequest.cs +++ b/Services/Ces/V2/Model/ListAlarmHistoriesRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V2.Model { diff --git a/Services/Ces/V2/Model/ListAlarmHistoriesResponse.cs b/Services/Ces/V2/Model/ListAlarmHistoriesResponse.cs index d349743..71e6efd 100755 --- a/Services/Ces/V2/Model/ListAlarmHistoriesResponse.cs +++ b/Services/Ces/V2/Model/ListAlarmHistoriesResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V2.Model { diff --git a/Services/Ces/V2/Model/ListAlarmResponseAlarms.cs b/Services/Ces/V2/Model/ListAlarmResponseAlarms.cs index cb73cb5..13fa79c 100755 --- a/Services/Ces/V2/Model/ListAlarmResponseAlarms.cs +++ b/Services/Ces/V2/Model/ListAlarmResponseAlarms.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V2.Model { diff --git a/Services/Ces/V2/Model/ListAlarmRulePoliciesRequest.cs b/Services/Ces/V2/Model/ListAlarmRulePoliciesRequest.cs index 67a6d1e..a20ea01 100755 --- a/Services/Ces/V2/Model/ListAlarmRulePoliciesRequest.cs +++ b/Services/Ces/V2/Model/ListAlarmRulePoliciesRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V2.Model { diff --git a/Services/Ces/V2/Model/ListAlarmRulePoliciesResponse.cs b/Services/Ces/V2/Model/ListAlarmRulePoliciesResponse.cs index e24d652..5dee83b 100755 --- a/Services/Ces/V2/Model/ListAlarmRulePoliciesResponse.cs +++ b/Services/Ces/V2/Model/ListAlarmRulePoliciesResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V2.Model { diff --git a/Services/Ces/V2/Model/ListAlarmRuleResourcesRequest.cs b/Services/Ces/V2/Model/ListAlarmRuleResourcesRequest.cs index 7872420..774b047 100755 --- a/Services/Ces/V2/Model/ListAlarmRuleResourcesRequest.cs +++ b/Services/Ces/V2/Model/ListAlarmRuleResourcesRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V2.Model { diff --git a/Services/Ces/V2/Model/ListAlarmRuleResourcesResponse.cs b/Services/Ces/V2/Model/ListAlarmRuleResourcesResponse.cs index 6d3a1b4..0f72173 100755 --- a/Services/Ces/V2/Model/ListAlarmRuleResourcesResponse.cs +++ b/Services/Ces/V2/Model/ListAlarmRuleResourcesResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V2.Model { diff --git a/Services/Ces/V2/Model/ListAlarmRulesRequest.cs b/Services/Ces/V2/Model/ListAlarmRulesRequest.cs index 1e5abbd..3481022 100755 --- a/Services/Ces/V2/Model/ListAlarmRulesRequest.cs +++ b/Services/Ces/V2/Model/ListAlarmRulesRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V2.Model { diff --git a/Services/Ces/V2/Model/ListAlarmRulesResponse.cs b/Services/Ces/V2/Model/ListAlarmRulesResponse.cs index 38e3df4..ae936ab 100755 --- a/Services/Ces/V2/Model/ListAlarmRulesResponse.cs +++ b/Services/Ces/V2/Model/ListAlarmRulesResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V2.Model { diff --git a/Services/Ces/V2/Model/Metric.cs b/Services/Ces/V2/Model/Metric.cs index 6f430a4..6d5ff5f 100755 --- a/Services/Ces/V2/Model/Metric.cs +++ b/Services/Ces/V2/Model/Metric.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V2.Model { diff --git a/Services/Ces/V2/Model/MetricDimension.cs b/Services/Ces/V2/Model/MetricDimension.cs index 406efe3..30e5657 100755 --- a/Services/Ces/V2/Model/MetricDimension.cs +++ b/Services/Ces/V2/Model/MetricDimension.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V2.Model { diff --git a/Services/Ces/V2/Model/MetricName.cs b/Services/Ces/V2/Model/MetricName.cs index e91823c..08055be 100755 --- a/Services/Ces/V2/Model/MetricName.cs +++ b/Services/Ces/V2/Model/MetricName.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V2.Model { diff --git a/Services/Ces/V2/Model/Namespace.cs b/Services/Ces/V2/Model/Namespace.cs index 0c83b31..07b7eb0 100755 --- a/Services/Ces/V2/Model/Namespace.cs +++ b/Services/Ces/V2/Model/Namespace.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V2.Model { diff --git a/Services/Ces/V2/Model/Notification.cs b/Services/Ces/V2/Model/Notification.cs index ea66c62..4b8bfcd 100755 --- a/Services/Ces/V2/Model/Notification.cs +++ b/Services/Ces/V2/Model/Notification.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V2.Model { diff --git a/Services/Ces/V2/Model/NotificationBeginTime.cs b/Services/Ces/V2/Model/NotificationBeginTime.cs index 4175192..87fd85d 100755 --- a/Services/Ces/V2/Model/NotificationBeginTime.cs +++ b/Services/Ces/V2/Model/NotificationBeginTime.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V2.Model { diff --git a/Services/Ces/V2/Model/NotificationEnabled.cs b/Services/Ces/V2/Model/NotificationEnabled.cs index ddb471d..55ee41d 100755 --- a/Services/Ces/V2/Model/NotificationEnabled.cs +++ b/Services/Ces/V2/Model/NotificationEnabled.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V2.Model { diff --git a/Services/Ces/V2/Model/NotificationEndTime.cs b/Services/Ces/V2/Model/NotificationEndTime.cs index 28bc3fb..70bd8a7 100755 --- a/Services/Ces/V2/Model/NotificationEndTime.cs +++ b/Services/Ces/V2/Model/NotificationEndTime.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V2.Model { diff --git a/Services/Ces/V2/Model/PoliciesReqV2.cs b/Services/Ces/V2/Model/PoliciesReqV2.cs index 3b7fc05..2d995ef 100755 --- a/Services/Ces/V2/Model/PoliciesReqV2.cs +++ b/Services/Ces/V2/Model/PoliciesReqV2.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V2.Model { diff --git a/Services/Ces/V2/Model/Policy.cs b/Services/Ces/V2/Model/Policy.cs index aab9674..7c2901d 100755 --- a/Services/Ces/V2/Model/Policy.cs +++ b/Services/Ces/V2/Model/Policy.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V2.Model { diff --git a/Services/Ces/V2/Model/PostAlarmsReqV2.cs b/Services/Ces/V2/Model/PostAlarmsReqV2.cs index 1239c61..a3dbd2e 100755 --- a/Services/Ces/V2/Model/PostAlarmsReqV2.cs +++ b/Services/Ces/V2/Model/PostAlarmsReqV2.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V2.Model { diff --git a/Services/Ces/V2/Model/ResourceGroupID.cs b/Services/Ces/V2/Model/ResourceGroupID.cs index 3f646f4..16d1e9d 100755 --- a/Services/Ces/V2/Model/ResourceGroupID.cs +++ b/Services/Ces/V2/Model/ResourceGroupID.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V2.Model { diff --git a/Services/Ces/V2/Model/ResourcesInListResp.cs b/Services/Ces/V2/Model/ResourcesInListResp.cs index 69a912e..3ddae01 100755 --- a/Services/Ces/V2/Model/ResourcesInListResp.cs +++ b/Services/Ces/V2/Model/ResourcesInListResp.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V2.Model { diff --git a/Services/Ces/V2/Model/ResourcesReqV2.cs b/Services/Ces/V2/Model/ResourcesReqV2.cs index 258e4f9..09ac37e 100755 --- a/Services/Ces/V2/Model/ResourcesReqV2.cs +++ b/Services/Ces/V2/Model/ResourcesReqV2.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V2.Model { diff --git a/Services/Ces/V2/Model/SMNUrn.cs b/Services/Ces/V2/Model/SMNUrn.cs index 18363b8..05059f9 100755 --- a/Services/Ces/V2/Model/SMNUrn.cs +++ b/Services/Ces/V2/Model/SMNUrn.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V2.Model { diff --git a/Services/Ces/V2/Model/Unit.cs b/Services/Ces/V2/Model/Unit.cs index ca653a3..9d5c0f3 100755 --- a/Services/Ces/V2/Model/Unit.cs +++ b/Services/Ces/V2/Model/Unit.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V2.Model { diff --git a/Services/Ces/V2/Model/UpdateAlarmRulePoliciesRequest.cs b/Services/Ces/V2/Model/UpdateAlarmRulePoliciesRequest.cs index 31e85e5..da9c5cf 100755 --- a/Services/Ces/V2/Model/UpdateAlarmRulePoliciesRequest.cs +++ b/Services/Ces/V2/Model/UpdateAlarmRulePoliciesRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V2.Model { diff --git a/Services/Ces/V2/Model/UpdateAlarmRulePoliciesResponse.cs b/Services/Ces/V2/Model/UpdateAlarmRulePoliciesResponse.cs index 72fd1f5..230fa4c 100755 --- a/Services/Ces/V2/Model/UpdateAlarmRulePoliciesResponse.cs +++ b/Services/Ces/V2/Model/UpdateAlarmRulePoliciesResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V2.Model { diff --git a/Services/Ces/V2/Model/Value.cs b/Services/Ces/V2/Model/Value.cs index bfcadec..a3bf543 100755 --- a/Services/Ces/V2/Model/Value.cs +++ b/Services/Ces/V2/Model/Value.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V2.Model { diff --git a/Services/Ces/V2/Region/CesRegion.cs b/Services/Ces/V2/Region/CesRegion.cs index be8b317..ea1d221 100755 --- a/Services/Ces/V2/Region/CesRegion.cs +++ b/Services/Ces/V2/Region/CesRegion.cs @@ -1,6 +1,6 @@ using System; using System.Collections.Generic; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ces.V2 { diff --git a/Services/Ces/obj/Ces.csproj.nuget.cache b/Services/Ces/obj/Ces.csproj.nuget.cache deleted file mode 100644 index cb84cb5..0000000 --- a/Services/Ces/obj/Ces.csproj.nuget.cache +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": 1, - "dgSpecHash": "7OlWD/o6PPEPOS6wgrUQv+hhmEZqmVFfV8x8OoHcqJEQJL6UKXpZ4xzgqa4Sfdqj1TT/3/tR0vhhUcFyB9jNdQ==", - "success": true -} \ No newline at end of file diff --git a/Services/Ces/obj/Ces.csproj.nuget.dgspec.json b/Services/Ces/obj/Ces.csproj.nuget.dgspec.json deleted file mode 100644 index a1cb14a..0000000 --- a/Services/Ces/obj/Ces.csproj.nuget.dgspec.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "format": 1, - "restore": { - "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Ces/Ces.csproj": {} - }, - "projects": { - "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Ces/Ces.csproj": { - "version": "0.0.2-beta", - "restore": { - "projectUniqueName": "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Ces/Ces.csproj", - "projectName": "G42Cloud.SDK.Ces", - "projectPath": "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Ces/Ces.csproj", - "packagesPath": "/root/.nuget/packages/", - "outputPath": "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Ces/obj/", - "projectStyle": "PackageReference", - "fallbackFolders": [ - "/usr/dotnet2/sdk/NuGetFallbackFolder" - ], - "configFilePaths": [ - "/root/.nuget/NuGet/NuGet.Config" - ], - "originalTargetFrameworks": [ - "netstandard2.0" - ], - "sources": { - "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86": {} - }, - "frameworks": { - "netstandard2.0": { - "projectReferences": {} - } - }, - "warningProperties": { - "warnAsError": [ - "NU1605" - ] - } - }, - "frameworks": { - "netstandard2.0": { - "dependencies": { - "HuaweiCloud.SDK.Core": { - "target": "Package", - "version": "[3.1.11, )" - }, - "NETStandard.Library": { - "suppressParent": "All", - "target": "Package", - "version": "[2.0.3, )", - "autoReferenced": true - }, - "Newtonsoft.Json": { - "target": "Package", - "version": "[13.0.1, )" - } - }, - "imports": [ - "net461" - ], - "assetTargetFallback": true, - "warn": true - } - } - } - } -} \ No newline at end of file diff --git a/Services/Ces/obj/Ces.csproj.nuget.g.props b/Services/Ces/obj/Ces.csproj.nuget.g.props deleted file mode 100644 index 138966f..0000000 --- a/Services/Ces/obj/Ces.csproj.nuget.g.props +++ /dev/null @@ -1,15 +0,0 @@ - - - - True - NuGet - /data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Ces/obj/project.assets.json - /root/.nuget/packages/ - /root/.nuget/packages/;/usr/dotnet2/sdk/NuGetFallbackFolder - PackageReference - 5.0.2 - - - $(MSBuildAllProjects);$(MSBuildThisFileFullPath) - - \ No newline at end of file diff --git a/Services/Ces/obj/Ces.csproj.nuget.g.targets b/Services/Ces/obj/Ces.csproj.nuget.g.targets deleted file mode 100644 index e8536f5..0000000 --- a/Services/Ces/obj/Ces.csproj.nuget.g.targets +++ /dev/null @@ -1,9 +0,0 @@ - - - - $(MSBuildAllProjects);$(MSBuildThisFileFullPath) - - - - - \ No newline at end of file diff --git a/Services/Ces/obj/project.assets.json b/Services/Ces/obj/project.assets.json deleted file mode 100644 index 48fecac..0000000 --- a/Services/Ces/obj/project.assets.json +++ /dev/null @@ -1,1134 +0,0 @@ -{ - "version": 3, - "targets": { - ".NETStandard,Version=v2.0": { - "HuaweiCloud.SDK.Core/3.1.11": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.DependencyInjection": "3.1.5", - "Microsoft.Extensions.Http": "3.1.5", - "Microsoft.Extensions.Http.Polly": "3.1.5", - "Microsoft.Extensions.Logging.Console": "3.1.5", - "Microsoft.Extensions.Logging.Debug": "3.1.5", - "Newtonsoft.Json": "13.0.1" - }, - "compile": { - "lib/netstandard2.0/HuaweiCloud.SDK.Core.dll": {} - }, - "runtime": { - "lib/netstandard2.0/HuaweiCloud.SDK.Core.dll": {} - } - }, - "Microsoft.Bcl.AsyncInterfaces/1.1.1": { - "type": "package", - "dependencies": { - "System.Threading.Tasks.Extensions": "4.5.4" - }, - "compile": { - "ref/netstandard2.0/Microsoft.Bcl.AsyncInterfaces.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Bcl.AsyncInterfaces.dll": {} - } - }, - "Microsoft.Extensions.Configuration/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.Configuration.Abstractions": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Configuration.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Configuration.dll": {} - } - }, - "Microsoft.Extensions.Configuration.Abstractions/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.Primitives": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Configuration.Abstractions.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Configuration.Abstractions.dll": {} - } - }, - "Microsoft.Extensions.Configuration.Binder/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.Configuration": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Configuration.Binder.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Configuration.Binder.dll": {} - } - }, - "Microsoft.Extensions.DependencyInjection/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Bcl.AsyncInterfaces": "1.1.1", - "Microsoft.Extensions.DependencyInjection.Abstractions": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.dll": {} - } - }, - "Microsoft.Extensions.DependencyInjection.Abstractions/3.1.5": { - "type": "package", - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll": {} - } - }, - "Microsoft.Extensions.Http/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.DependencyInjection.Abstractions": "3.1.5", - "Microsoft.Extensions.Logging": "3.1.5", - "Microsoft.Extensions.Options": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Http.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Http.dll": {} - } - }, - "Microsoft.Extensions.Http.Polly/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.Http": "3.1.5", - "Polly": "7.1.0", - "Polly.Extensions.Http": "3.0.0" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Http.Polly.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Http.Polly.dll": {} - } - }, - "Microsoft.Extensions.Logging/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.Configuration.Binder": "3.1.5", - "Microsoft.Extensions.DependencyInjection": "3.1.5", - "Microsoft.Extensions.Logging.Abstractions": "3.1.5", - "Microsoft.Extensions.Options": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.dll": {} - } - }, - "Microsoft.Extensions.Logging.Abstractions/3.1.5": { - "type": "package", - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.Abstractions.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.Abstractions.dll": {} - } - }, - "Microsoft.Extensions.Logging.Configuration/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.Logging": "3.1.5", - "Microsoft.Extensions.Options.ConfigurationExtensions": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.Configuration.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.Configuration.dll": {} - } - }, - "Microsoft.Extensions.Logging.Console/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.Configuration.Abstractions": "3.1.5", - "Microsoft.Extensions.Logging": "3.1.5", - "Microsoft.Extensions.Logging.Configuration": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.Console.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.Console.dll": {} - } - }, - "Microsoft.Extensions.Logging.Debug/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.Logging": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.Debug.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.Debug.dll": {} - } - }, - "Microsoft.Extensions.Options/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.DependencyInjection.Abstractions": "3.1.5", - "Microsoft.Extensions.Primitives": "3.1.5", - "System.ComponentModel.Annotations": "4.7.0" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Options.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Options.dll": {} - } - }, - "Microsoft.Extensions.Options.ConfigurationExtensions/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.Configuration.Abstractions": "3.1.5", - "Microsoft.Extensions.Configuration.Binder": "3.1.5", - "Microsoft.Extensions.DependencyInjection.Abstractions": "3.1.5", - "Microsoft.Extensions.Options": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Options.ConfigurationExtensions.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Options.ConfigurationExtensions.dll": {} - } - }, - "Microsoft.Extensions.Primitives/3.1.5": { - "type": "package", - "dependencies": { - "System.Memory": "4.5.2", - "System.Runtime.CompilerServices.Unsafe": "4.7.1" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Primitives.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Primitives.dll": {} - } - }, - "Microsoft.NETCore.Platforms/1.1.0": { - "type": "package", - "compile": { - "lib/netstandard1.0/_._": {} - }, - "runtime": { - "lib/netstandard1.0/_._": {} - } - }, - "NETStandard.Library/2.0.3": { - "type": "package", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0" - }, - "compile": { - "lib/netstandard1.0/_._": {} - }, - "runtime": { - "lib/netstandard1.0/_._": {} - }, - "build": { - "build/netstandard2.0/NETStandard.Library.targets": {} - } - }, - "Newtonsoft.Json/13.0.1": { - "type": "package", - "compile": { - "lib/netstandard2.0/Newtonsoft.Json.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Newtonsoft.Json.dll": {} - } - }, - "Polly/7.1.0": { - "type": "package", - "compile": { - "lib/netstandard2.0/Polly.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Polly.dll": {} - } - }, - "Polly.Extensions.Http/3.0.0": { - "type": "package", - "dependencies": { - "Polly": "7.1.0" - }, - "compile": { - "lib/netstandard2.0/Polly.Extensions.Http.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Polly.Extensions.Http.dll": {} - } - }, - "System.Buffers/4.4.0": { - "type": "package", - "compile": { - "ref/netstandard2.0/System.Buffers.dll": {} - }, - "runtime": { - "lib/netstandard2.0/System.Buffers.dll": {} - } - }, - "System.ComponentModel.Annotations/4.7.0": { - "type": "package", - "compile": { - "ref/netstandard2.0/System.ComponentModel.Annotations.dll": {} - }, - "runtime": { - "lib/netstandard2.0/System.ComponentModel.Annotations.dll": {} - } - }, - "System.Memory/4.5.2": { - "type": "package", - "dependencies": { - "System.Buffers": "4.4.0", - "System.Numerics.Vectors": "4.4.0", - "System.Runtime.CompilerServices.Unsafe": "4.5.2" - }, - "compile": { - "lib/netstandard2.0/System.Memory.dll": {} - }, - "runtime": { - "lib/netstandard2.0/System.Memory.dll": {} - } - }, - "System.Numerics.Vectors/4.4.0": { - "type": "package", - "compile": { - "ref/netstandard2.0/System.Numerics.Vectors.dll": {} - }, - "runtime": { - "lib/netstandard2.0/System.Numerics.Vectors.dll": {} - } - }, - "System.Runtime.CompilerServices.Unsafe/4.7.1": { - "type": "package", - "compile": { - "ref/netstandard2.0/System.Runtime.CompilerServices.Unsafe.dll": {} - }, - "runtime": { - "lib/netstandard2.0/System.Runtime.CompilerServices.Unsafe.dll": {} - } - }, - "System.Threading.Tasks.Extensions/4.5.4": { - "type": "package", - "dependencies": { - "System.Runtime.CompilerServices.Unsafe": "4.5.3" - }, - "compile": { - "lib/netstandard2.0/System.Threading.Tasks.Extensions.dll": {} - }, - "runtime": { - "lib/netstandard2.0/System.Threading.Tasks.Extensions.dll": {} - } - } - } - }, - "libraries": { - "HuaweiCloud.SDK.Core/3.1.11": { - "sha512": "gfSrNtvvgvmEptRbn8LinWOcd2CmDgHVHKCOG7loIczGvrVSfCWJhnJYig/St+Jb8eKMeWgu/Ms52YJbdxUu0w==", - "type": "package", - "path": "huaweicloud.sdk.core/3.1.11", - "files": [ - ".nupkg.metadata", - "LICENSE", - "huaweicloud.sdk.core.3.1.11.nupkg.sha512", - "huaweicloud.sdk.core.nuspec", - "lib/netstandard2.0/HuaweiCloud.SDK.Core.dll" - ] - }, - "Microsoft.Bcl.AsyncInterfaces/1.1.1": { - "sha512": "yuvf07qFWFqtK3P/MRkEKLhn5r2UbSpVueRziSqj0yJQIKFwG1pq9mOayK3zE5qZCTs0CbrwL9M6R8VwqyGy2w==", - "type": "package", - "path": "microsoft.bcl.asyncinterfaces/1.1.1", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "LICENSE.TXT", - "THIRD-PARTY-NOTICES.TXT", - "lib/net461/Microsoft.Bcl.AsyncInterfaces.dll", - "lib/net461/Microsoft.Bcl.AsyncInterfaces.xml", - "lib/netstandard2.0/Microsoft.Bcl.AsyncInterfaces.dll", - "lib/netstandard2.0/Microsoft.Bcl.AsyncInterfaces.xml", - "lib/netstandard2.1/Microsoft.Bcl.AsyncInterfaces.dll", - "lib/netstandard2.1/Microsoft.Bcl.AsyncInterfaces.xml", - "microsoft.bcl.asyncinterfaces.1.1.1.nupkg.sha512", - "microsoft.bcl.asyncinterfaces.nuspec", - "ref/net461/Microsoft.Bcl.AsyncInterfaces.dll", - "ref/netstandard2.0/Microsoft.Bcl.AsyncInterfaces.dll", - "ref/netstandard2.1/Microsoft.Bcl.AsyncInterfaces.dll", - "useSharedDesignerContext.txt", - "version.txt" - ] - }, - "Microsoft.Extensions.Configuration/3.1.5": { - "sha512": "LZfdAP8flK4hkaniUv6TlstDX9FXLmJMX1A4mpLghAsZxTaJIgf+nzBNiPRdy/B5Vrs74gRONX3JrIUJQrebmA==", - "type": "package", - "path": "microsoft.extensions.configuration/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Configuration.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Configuration.xml", - "lib/netstandard2.0/Microsoft.Extensions.Configuration.dll", - "lib/netstandard2.0/Microsoft.Extensions.Configuration.xml", - "microsoft.extensions.configuration.3.1.5.nupkg.sha512", - "microsoft.extensions.configuration.nuspec" - ] - }, - "Microsoft.Extensions.Configuration.Abstractions/3.1.5": { - "sha512": "VBcAk6s9izZr04WCzNqOh1Sxz2RbVSh0G79MfpHSDv16cUJtSEYEHody9ZnF71LBEktzdu6cvDFBOFMh43q0iA==", - "type": "package", - "path": "microsoft.extensions.configuration.abstractions/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Configuration.Abstractions.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Configuration.Abstractions.xml", - "lib/netstandard2.0/Microsoft.Extensions.Configuration.Abstractions.dll", - "lib/netstandard2.0/Microsoft.Extensions.Configuration.Abstractions.xml", - "microsoft.extensions.configuration.abstractions.3.1.5.nupkg.sha512", - "microsoft.extensions.configuration.abstractions.nuspec" - ] - }, - "Microsoft.Extensions.Configuration.Binder/3.1.5": { - "sha512": "ZR/zjBxkvdnnWhRoBHDT95uz1ZgJFhv1QazmKCIcDqy/RXqi+6dJ/PfxDhEnzPvk9HbkcGfFsPEu1vSIyxDqBQ==", - "type": "package", - "path": "microsoft.extensions.configuration.binder/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Configuration.Binder.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Configuration.Binder.xml", - "lib/netstandard2.0/Microsoft.Extensions.Configuration.Binder.dll", - "lib/netstandard2.0/Microsoft.Extensions.Configuration.Binder.xml", - "microsoft.extensions.configuration.binder.3.1.5.nupkg.sha512", - "microsoft.extensions.configuration.binder.nuspec" - ] - }, - "Microsoft.Extensions.DependencyInjection/3.1.5": { - "sha512": "I+RTJQi7TtenIHZqL2zr6523PYXfL88Ruu4UIVmspIxdw14GHd8zZ+2dGLSdwX7fn41Hth4d42S1e1iHWVOJyQ==", - "type": "package", - "path": "microsoft.extensions.dependencyinjection/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/net461/Microsoft.Extensions.DependencyInjection.dll", - "lib/net461/Microsoft.Extensions.DependencyInjection.xml", - "lib/netcoreapp3.1/Microsoft.Extensions.DependencyInjection.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.DependencyInjection.xml", - "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.dll", - "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.xml", - "lib/netstandard2.1/Microsoft.Extensions.DependencyInjection.dll", - "lib/netstandard2.1/Microsoft.Extensions.DependencyInjection.xml", - "microsoft.extensions.dependencyinjection.3.1.5.nupkg.sha512", - "microsoft.extensions.dependencyinjection.nuspec" - ] - }, - "Microsoft.Extensions.DependencyInjection.Abstractions/3.1.5": { - "sha512": "2VSCj2TZPMdeEi279Lawi6qJQu4+sEWizSOYrhY6hapyS1jxn1jVUZT1Ugv68bya+x8+3lD4+RqhUZql9PhISQ==", - "type": "package", - "path": "microsoft.extensions.dependencyinjection.abstractions/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll", - "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.Abstractions.xml", - "microsoft.extensions.dependencyinjection.abstractions.3.1.5.nupkg.sha512", - "microsoft.extensions.dependencyinjection.abstractions.nuspec" - ] - }, - "Microsoft.Extensions.Http/3.1.5": { - "sha512": "P8yu3UDd0X129FmxJN0/nObuuH4v7YoxK00kEs8EU4R7POa+3yp/buux74fNYTLORuEqjBTMGtV7TBszuvCj7g==", - "type": "package", - "path": "microsoft.extensions.http/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Http.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Http.xml", - "lib/netstandard2.0/Microsoft.Extensions.Http.dll", - "lib/netstandard2.0/Microsoft.Extensions.Http.xml", - "microsoft.extensions.http.3.1.5.nupkg.sha512", - "microsoft.extensions.http.nuspec" - ] - }, - "Microsoft.Extensions.Http.Polly/3.1.5": { - "sha512": "wW+kLLqoQPIg3+NQhBkqmxBAtoGJhVsQ03RAjw/Jx0oTSmaZsJY3rIlBmsrHdeKOxq19P4qRlST2wk/k5tdXhg==", - "type": "package", - "path": "microsoft.extensions.http.polly/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netstandard2.0/Microsoft.Extensions.Http.Polly.dll", - "lib/netstandard2.0/Microsoft.Extensions.Http.Polly.xml", - "microsoft.extensions.http.polly.3.1.5.nupkg.sha512", - "microsoft.extensions.http.polly.nuspec" - ] - }, - "Microsoft.Extensions.Logging/3.1.5": { - "sha512": "C85NYDym6xy03o70vxX+VQ4ZEjj5Eg5t5QoGW0t100vG5MmPL6+G3XXcQjIIn1WRQrjzGWzQwuKf38fxXEWIWA==", - "type": "package", - "path": "microsoft.extensions.logging/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Logging.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Logging.xml", - "lib/netstandard2.0/Microsoft.Extensions.Logging.dll", - "lib/netstandard2.0/Microsoft.Extensions.Logging.xml", - "microsoft.extensions.logging.3.1.5.nupkg.sha512", - "microsoft.extensions.logging.nuspec" - ] - }, - "Microsoft.Extensions.Logging.Abstractions/3.1.5": { - "sha512": "ZvwowjRSWXewdPI+whPFXgwF4Qme6Q9KV9SCPEITSGiqHLArct7q5hTBtTzj3GPsVLjTqehvTg6Bd/EQk9JS0A==", - "type": "package", - "path": "microsoft.extensions.logging.abstractions/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netstandard2.0/Microsoft.Extensions.Logging.Abstractions.dll", - "lib/netstandard2.0/Microsoft.Extensions.Logging.Abstractions.xml", - "microsoft.extensions.logging.abstractions.3.1.5.nupkg.sha512", - "microsoft.extensions.logging.abstractions.nuspec" - ] - }, - "Microsoft.Extensions.Logging.Configuration/3.1.5": { - "sha512": "I+9jx/A9cLdkTmynKMa2oR4rYAfe3n2F/wNVvKxwIk2J33paEU13Se08Q5xvQisqfbumaRUNF7BWHr63JzuuRw==", - "type": "package", - "path": "microsoft.extensions.logging.configuration/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Logging.Configuration.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Logging.Configuration.xml", - "lib/netstandard2.0/Microsoft.Extensions.Logging.Configuration.dll", - "lib/netstandard2.0/Microsoft.Extensions.Logging.Configuration.xml", - "microsoft.extensions.logging.configuration.3.1.5.nupkg.sha512", - "microsoft.extensions.logging.configuration.nuspec" - ] - }, - "Microsoft.Extensions.Logging.Console/3.1.5": { - "sha512": "c/W7d9sjgyU0/3txj/i6pC+8f25Jbua7zKhHVHidC5hHL4OX8fAxSGPBWYOsRN4tXqpd5VphNmIFUWyT12fMoA==", - "type": "package", - "path": "microsoft.extensions.logging.console/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Logging.Console.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Logging.Console.xml", - "lib/netstandard2.0/Microsoft.Extensions.Logging.Console.dll", - "lib/netstandard2.0/Microsoft.Extensions.Logging.Console.xml", - "microsoft.extensions.logging.console.3.1.5.nupkg.sha512", - "microsoft.extensions.logging.console.nuspec" - ] - }, - "Microsoft.Extensions.Logging.Debug/3.1.5": { - "sha512": "oDs0vlr6tNm0Z4U81eiCvnX+9zSP1CBAIGNAnpKidLb1KzbX26UGI627TfuIEtvW9wYiQWqZtmwMMK9WHE8Dqg==", - "type": "package", - "path": "microsoft.extensions.logging.debug/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Logging.Debug.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Logging.Debug.xml", - "lib/netstandard2.0/Microsoft.Extensions.Logging.Debug.dll", - "lib/netstandard2.0/Microsoft.Extensions.Logging.Debug.xml", - "microsoft.extensions.logging.debug.3.1.5.nupkg.sha512", - "microsoft.extensions.logging.debug.nuspec" - ] - }, - "Microsoft.Extensions.Options/3.1.5": { - "sha512": "f+JT/7lkKBMp/Ak2tVjO+TD7o+UoCfjnExkZNn0PZIso8kIXrqNy6x42Lrxf4Q0pW3JMf9ExmL2EQlvk2XnFAg==", - "type": "package", - "path": "microsoft.extensions.options/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Options.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Options.xml", - "lib/netstandard2.0/Microsoft.Extensions.Options.dll", - "lib/netstandard2.0/Microsoft.Extensions.Options.xml", - "microsoft.extensions.options.3.1.5.nupkg.sha512", - "microsoft.extensions.options.nuspec" - ] - }, - "Microsoft.Extensions.Options.ConfigurationExtensions/3.1.5": { - "sha512": "mgM+JHFeRg3zSRjScVADU/mohY8s0czKRTNT9oszWgX1mlw419yqP6ITCXovPopMXiqzRdkZ7AEuErX9K+ROww==", - "type": "package", - "path": "microsoft.extensions.options.configurationextensions/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Options.ConfigurationExtensions.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Options.ConfigurationExtensions.xml", - "lib/netstandard2.0/Microsoft.Extensions.Options.ConfigurationExtensions.dll", - "lib/netstandard2.0/Microsoft.Extensions.Options.ConfigurationExtensions.xml", - "microsoft.extensions.options.configurationextensions.3.1.5.nupkg.sha512", - "microsoft.extensions.options.configurationextensions.nuspec" - ] - }, - "Microsoft.Extensions.Primitives/3.1.5": { - "sha512": "6bLdjSAQix82oP2tsuX9MM2yjgUFFOkSZYyRSKoUULilw2cg0Y0H+dnugwYlfj8Jd7yjd/+QSdNBqEyYhTYv0w==", - "type": "package", - "path": "microsoft.extensions.primitives/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Primitives.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Primitives.xml", - "lib/netstandard2.0/Microsoft.Extensions.Primitives.dll", - "lib/netstandard2.0/Microsoft.Extensions.Primitives.xml", - "microsoft.extensions.primitives.3.1.5.nupkg.sha512", - "microsoft.extensions.primitives.nuspec" - ] - }, - "Microsoft.NETCore.Platforms/1.1.0": { - "sha512": "kz0PEW2lhqygehI/d6XsPCQzD7ff7gUJaVGPVETX611eadGsA3A877GdSlU0LRVMCTH/+P3o2iDTak+S08V2+A==", - "type": "package", - "path": "microsoft.netcore.platforms/1.1.0", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "ThirdPartyNotices.txt", - "dotnet_library_license.txt", - "lib/netstandard1.0/_._", - "microsoft.netcore.platforms.1.1.0.nupkg.sha512", - "microsoft.netcore.platforms.nuspec", - "runtime.json" - ] - }, - "NETStandard.Library/2.0.3": { - "sha512": "st47PosZSHrjECdjeIzZQbzivYBJFv6P2nv4cj2ypdI204DO+vZ7l5raGMiX4eXMJ53RfOIg+/s4DHVZ54Nu2A==", - "type": "package", - "path": "netstandard.library/2.0.3", - "files": [ - ".nupkg.metadata", - "LICENSE.TXT", - "THIRD-PARTY-NOTICES.TXT", - "build/netstandard2.0/NETStandard.Library.targets", - "build/netstandard2.0/ref/Microsoft.Win32.Primitives.dll", - "build/netstandard2.0/ref/System.AppContext.dll", - "build/netstandard2.0/ref/System.Collections.Concurrent.dll", - "build/netstandard2.0/ref/System.Collections.NonGeneric.dll", - "build/netstandard2.0/ref/System.Collections.Specialized.dll", - "build/netstandard2.0/ref/System.Collections.dll", - "build/netstandard2.0/ref/System.ComponentModel.Composition.dll", - "build/netstandard2.0/ref/System.ComponentModel.EventBasedAsync.dll", - "build/netstandard2.0/ref/System.ComponentModel.Primitives.dll", - "build/netstandard2.0/ref/System.ComponentModel.TypeConverter.dll", - "build/netstandard2.0/ref/System.ComponentModel.dll", - "build/netstandard2.0/ref/System.Console.dll", - "build/netstandard2.0/ref/System.Core.dll", - "build/netstandard2.0/ref/System.Data.Common.dll", - "build/netstandard2.0/ref/System.Data.dll", - "build/netstandard2.0/ref/System.Diagnostics.Contracts.dll", - "build/netstandard2.0/ref/System.Diagnostics.Debug.dll", - "build/netstandard2.0/ref/System.Diagnostics.FileVersionInfo.dll", - "build/netstandard2.0/ref/System.Diagnostics.Process.dll", - "build/netstandard2.0/ref/System.Diagnostics.StackTrace.dll", - "build/netstandard2.0/ref/System.Diagnostics.TextWriterTraceListener.dll", - "build/netstandard2.0/ref/System.Diagnostics.Tools.dll", - "build/netstandard2.0/ref/System.Diagnostics.TraceSource.dll", - "build/netstandard2.0/ref/System.Diagnostics.Tracing.dll", - "build/netstandard2.0/ref/System.Drawing.Primitives.dll", - "build/netstandard2.0/ref/System.Drawing.dll", - "build/netstandard2.0/ref/System.Dynamic.Runtime.dll", - "build/netstandard2.0/ref/System.Globalization.Calendars.dll", - "build/netstandard2.0/ref/System.Globalization.Extensions.dll", - "build/netstandard2.0/ref/System.Globalization.dll", - "build/netstandard2.0/ref/System.IO.Compression.FileSystem.dll", - "build/netstandard2.0/ref/System.IO.Compression.ZipFile.dll", - "build/netstandard2.0/ref/System.IO.Compression.dll", - "build/netstandard2.0/ref/System.IO.FileSystem.DriveInfo.dll", - "build/netstandard2.0/ref/System.IO.FileSystem.Primitives.dll", - "build/netstandard2.0/ref/System.IO.FileSystem.Watcher.dll", - "build/netstandard2.0/ref/System.IO.FileSystem.dll", - "build/netstandard2.0/ref/System.IO.IsolatedStorage.dll", - "build/netstandard2.0/ref/System.IO.MemoryMappedFiles.dll", - "build/netstandard2.0/ref/System.IO.Pipes.dll", - "build/netstandard2.0/ref/System.IO.UnmanagedMemoryStream.dll", - "build/netstandard2.0/ref/System.IO.dll", - "build/netstandard2.0/ref/System.Linq.Expressions.dll", - "build/netstandard2.0/ref/System.Linq.Parallel.dll", - "build/netstandard2.0/ref/System.Linq.Queryable.dll", - "build/netstandard2.0/ref/System.Linq.dll", - "build/netstandard2.0/ref/System.Net.Http.dll", - "build/netstandard2.0/ref/System.Net.NameResolution.dll", - "build/netstandard2.0/ref/System.Net.NetworkInformation.dll", - "build/netstandard2.0/ref/System.Net.Ping.dll", - "build/netstandard2.0/ref/System.Net.Primitives.dll", - "build/netstandard2.0/ref/System.Net.Requests.dll", - "build/netstandard2.0/ref/System.Net.Security.dll", - "build/netstandard2.0/ref/System.Net.Sockets.dll", - "build/netstandard2.0/ref/System.Net.WebHeaderCollection.dll", - "build/netstandard2.0/ref/System.Net.WebSockets.Client.dll", - "build/netstandard2.0/ref/System.Net.WebSockets.dll", - "build/netstandard2.0/ref/System.Net.dll", - "build/netstandard2.0/ref/System.Numerics.dll", - "build/netstandard2.0/ref/System.ObjectModel.dll", - "build/netstandard2.0/ref/System.Reflection.Extensions.dll", - "build/netstandard2.0/ref/System.Reflection.Primitives.dll", - "build/netstandard2.0/ref/System.Reflection.dll", - "build/netstandard2.0/ref/System.Resources.Reader.dll", - "build/netstandard2.0/ref/System.Resources.ResourceManager.dll", - "build/netstandard2.0/ref/System.Resources.Writer.dll", - "build/netstandard2.0/ref/System.Runtime.CompilerServices.VisualC.dll", - "build/netstandard2.0/ref/System.Runtime.Extensions.dll", - "build/netstandard2.0/ref/System.Runtime.Handles.dll", - "build/netstandard2.0/ref/System.Runtime.InteropServices.RuntimeInformation.dll", - "build/netstandard2.0/ref/System.Runtime.InteropServices.dll", - "build/netstandard2.0/ref/System.Runtime.Numerics.dll", - "build/netstandard2.0/ref/System.Runtime.Serialization.Formatters.dll", - "build/netstandard2.0/ref/System.Runtime.Serialization.Json.dll", - "build/netstandard2.0/ref/System.Runtime.Serialization.Primitives.dll", - "build/netstandard2.0/ref/System.Runtime.Serialization.Xml.dll", - "build/netstandard2.0/ref/System.Runtime.Serialization.dll", - "build/netstandard2.0/ref/System.Runtime.dll", - "build/netstandard2.0/ref/System.Security.Claims.dll", - "build/netstandard2.0/ref/System.Security.Cryptography.Algorithms.dll", - "build/netstandard2.0/ref/System.Security.Cryptography.Csp.dll", - "build/netstandard2.0/ref/System.Security.Cryptography.Encoding.dll", - "build/netstandard2.0/ref/System.Security.Cryptography.Primitives.dll", - "build/netstandard2.0/ref/System.Security.Cryptography.X509Certificates.dll", - "build/netstandard2.0/ref/System.Security.Principal.dll", - "build/netstandard2.0/ref/System.Security.SecureString.dll", - "build/netstandard2.0/ref/System.ServiceModel.Web.dll", - "build/netstandard2.0/ref/System.Text.Encoding.Extensions.dll", - "build/netstandard2.0/ref/System.Text.Encoding.dll", - "build/netstandard2.0/ref/System.Text.RegularExpressions.dll", - "build/netstandard2.0/ref/System.Threading.Overlapped.dll", - "build/netstandard2.0/ref/System.Threading.Tasks.Parallel.dll", - "build/netstandard2.0/ref/System.Threading.Tasks.dll", - "build/netstandard2.0/ref/System.Threading.Thread.dll", - "build/netstandard2.0/ref/System.Threading.ThreadPool.dll", - "build/netstandard2.0/ref/System.Threading.Timer.dll", - "build/netstandard2.0/ref/System.Threading.dll", - "build/netstandard2.0/ref/System.Transactions.dll", - "build/netstandard2.0/ref/System.ValueTuple.dll", - "build/netstandard2.0/ref/System.Web.dll", - "build/netstandard2.0/ref/System.Windows.dll", - "build/netstandard2.0/ref/System.Xml.Linq.dll", - "build/netstandard2.0/ref/System.Xml.ReaderWriter.dll", - "build/netstandard2.0/ref/System.Xml.Serialization.dll", - "build/netstandard2.0/ref/System.Xml.XDocument.dll", - "build/netstandard2.0/ref/System.Xml.XPath.XDocument.dll", - "build/netstandard2.0/ref/System.Xml.XPath.dll", - "build/netstandard2.0/ref/System.Xml.XmlDocument.dll", - "build/netstandard2.0/ref/System.Xml.XmlSerializer.dll", - "build/netstandard2.0/ref/System.Xml.dll", - "build/netstandard2.0/ref/System.dll", - "build/netstandard2.0/ref/mscorlib.dll", - "build/netstandard2.0/ref/netstandard.dll", - "build/netstandard2.0/ref/netstandard.xml", - "lib/netstandard1.0/_._", - "netstandard.library.2.0.3.nupkg.sha512", - "netstandard.library.nuspec" - ] - }, - "Newtonsoft.Json/13.0.1": { - "sha512": "ppPFpBcvxdsfUonNcvITKqLl3bqxWbDCZIzDWHzjpdAHRFfZe0Dw9HmA0+za13IdyrgJwpkDTDA9fHaxOrt20A==", - "type": "package", - "path": "newtonsoft.json/13.0.1", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "LICENSE.md", - "lib/net20/Newtonsoft.Json.dll", - "lib/net20/Newtonsoft.Json.xml", - "lib/net35/Newtonsoft.Json.dll", - "lib/net35/Newtonsoft.Json.xml", - "lib/net40/Newtonsoft.Json.dll", - "lib/net40/Newtonsoft.Json.xml", - "lib/net45/Newtonsoft.Json.dll", - "lib/net45/Newtonsoft.Json.xml", - "lib/netstandard1.0/Newtonsoft.Json.dll", - "lib/netstandard1.0/Newtonsoft.Json.xml", - "lib/netstandard1.3/Newtonsoft.Json.dll", - "lib/netstandard1.3/Newtonsoft.Json.xml", - "lib/netstandard2.0/Newtonsoft.Json.dll", - "lib/netstandard2.0/Newtonsoft.Json.xml", - "newtonsoft.json.13.0.1.nupkg.sha512", - "newtonsoft.json.nuspec", - "packageIcon.png" - ] - }, - "Polly/7.1.0": { - "sha512": "mpQsvlEn4ipgICh5CGyVLPV93RFVzOrBG7wPZfzY8gExh7XgWQn0GCDY9nudbUEJ12UiGPP9i4+CohghBvzhmg==", - "type": "package", - "path": "polly/7.1.0", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "lib/netstandard1.1/Polly.dll", - "lib/netstandard1.1/Polly.xml", - "lib/netstandard2.0/Polly.dll", - "lib/netstandard2.0/Polly.xml", - "polly.7.1.0.nupkg.sha512", - "polly.nuspec" - ] - }, - "Polly.Extensions.Http/3.0.0": { - "sha512": "drrG+hB3pYFY7w1c3BD+lSGYvH2oIclH8GRSehgfyP5kjnFnHKQuuBhuHLv+PWyFuaTDyk/vfRpnxOzd11+J8g==", - "type": "package", - "path": "polly.extensions.http/3.0.0", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "lib/netstandard1.1/Polly.Extensions.Http.dll", - "lib/netstandard1.1/Polly.Extensions.Http.xml", - "lib/netstandard2.0/Polly.Extensions.Http.dll", - "lib/netstandard2.0/Polly.Extensions.Http.xml", - "polly.extensions.http.3.0.0.nupkg.sha512", - "polly.extensions.http.nuspec" - ] - }, - "System.Buffers/4.4.0": { - "sha512": "AwarXzzoDwX6BgrhjoJsk6tUezZEozOT5Y9QKF94Gl4JK91I4PIIBkBco9068Y9/Dra8Dkbie99kXB8+1BaYKw==", - "type": "package", - "path": "system.buffers/4.4.0", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "LICENSE.TXT", - "THIRD-PARTY-NOTICES.TXT", - "lib/netcoreapp2.0/_._", - "lib/netstandard1.1/System.Buffers.dll", - "lib/netstandard1.1/System.Buffers.xml", - "lib/netstandard2.0/System.Buffers.dll", - "lib/netstandard2.0/System.Buffers.xml", - "ref/netcoreapp2.0/_._", - "ref/netstandard1.1/System.Buffers.dll", - "ref/netstandard1.1/System.Buffers.xml", - "ref/netstandard2.0/System.Buffers.dll", - "ref/netstandard2.0/System.Buffers.xml", - "system.buffers.4.4.0.nupkg.sha512", - "system.buffers.nuspec", - "useSharedDesignerContext.txt", - "version.txt" - ] - }, - "System.ComponentModel.Annotations/4.7.0": { - "sha512": "0YFqjhp/mYkDGpU0Ye1GjE53HMp9UVfGN7seGpAMttAC0C40v5gw598jCgpbBLMmCo0E5YRLBv5Z2doypO49ZQ==", - "type": "package", - "path": "system.componentmodel.annotations/4.7.0", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "LICENSE.TXT", - "THIRD-PARTY-NOTICES.TXT", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net45/_._", - "lib/net461/System.ComponentModel.Annotations.dll", - "lib/netcore50/System.ComponentModel.Annotations.dll", - "lib/netstandard1.4/System.ComponentModel.Annotations.dll", - "lib/netstandard2.0/System.ComponentModel.Annotations.dll", - "lib/netstandard2.1/System.ComponentModel.Annotations.dll", - "lib/netstandard2.1/System.ComponentModel.Annotations.xml", - "lib/portable-net45+win8/_._", - "lib/win8/_._", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net45/_._", - "ref/net461/System.ComponentModel.Annotations.dll", - "ref/net461/System.ComponentModel.Annotations.xml", - "ref/netcore50/System.ComponentModel.Annotations.dll", - "ref/netcore50/System.ComponentModel.Annotations.xml", - "ref/netcore50/de/System.ComponentModel.Annotations.xml", - "ref/netcore50/es/System.ComponentModel.Annotations.xml", - "ref/netcore50/fr/System.ComponentModel.Annotations.xml", - "ref/netcore50/it/System.ComponentModel.Annotations.xml", - "ref/netcore50/ja/System.ComponentModel.Annotations.xml", - "ref/netcore50/ko/System.ComponentModel.Annotations.xml", - "ref/netcore50/ru/System.ComponentModel.Annotations.xml", - "ref/netcore50/zh-hans/System.ComponentModel.Annotations.xml", - "ref/netcore50/zh-hant/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/System.ComponentModel.Annotations.dll", - "ref/netstandard1.1/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/de/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/es/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/fr/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/it/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/ja/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/ko/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/ru/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/zh-hans/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/zh-hant/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/System.ComponentModel.Annotations.dll", - "ref/netstandard1.3/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/de/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/es/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/fr/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/it/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/ja/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/ko/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/ru/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/zh-hans/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/zh-hant/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/System.ComponentModel.Annotations.dll", - "ref/netstandard1.4/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/de/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/es/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/fr/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/it/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/ja/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/ko/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/ru/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/zh-hans/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/zh-hant/System.ComponentModel.Annotations.xml", - "ref/netstandard2.0/System.ComponentModel.Annotations.dll", - "ref/netstandard2.0/System.ComponentModel.Annotations.xml", - "ref/netstandard2.1/System.ComponentModel.Annotations.dll", - "ref/netstandard2.1/System.ComponentModel.Annotations.xml", - "ref/portable-net45+win8/_._", - "ref/win8/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._", - "system.componentmodel.annotations.4.7.0.nupkg.sha512", - "system.componentmodel.annotations.nuspec", - "useSharedDesignerContext.txt", - "version.txt" - ] - }, - "System.Memory/4.5.2": { - "sha512": "fvq1GNmUFwbKv+aLVYYdgu/+gc8Nu9oFujOxIjPrsf+meis9JBzTPDL6aP/eeGOz9yPj6rRLUbOjKMpsMEWpNg==", - "type": "package", - "path": "system.memory/4.5.2", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "LICENSE.TXT", - "THIRD-PARTY-NOTICES.TXT", - "lib/netcoreapp2.1/_._", - "lib/netstandard1.1/System.Memory.dll", - "lib/netstandard1.1/System.Memory.xml", - "lib/netstandard2.0/System.Memory.dll", - "lib/netstandard2.0/System.Memory.xml", - "ref/netcoreapp2.1/_._", - "system.memory.4.5.2.nupkg.sha512", - "system.memory.nuspec", - "useSharedDesignerContext.txt", - "version.txt" - ] - }, - "System.Numerics.Vectors/4.4.0": { - "sha512": "UiLzLW+Lw6HLed1Hcg+8jSRttrbuXv7DANVj0DkL9g6EnnzbL75EB7EWsw5uRbhxd/4YdG8li5XizGWepmG3PQ==", - "type": "package", - "path": "system.numerics.vectors/4.4.0", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "LICENSE.TXT", - "THIRD-PARTY-NOTICES.TXT", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net46/System.Numerics.Vectors.dll", - "lib/net46/System.Numerics.Vectors.xml", - "lib/netcoreapp2.0/_._", - "lib/netstandard1.0/System.Numerics.Vectors.dll", - "lib/netstandard1.0/System.Numerics.Vectors.xml", - "lib/netstandard2.0/System.Numerics.Vectors.dll", - "lib/netstandard2.0/System.Numerics.Vectors.xml", - "lib/portable-net45+win8+wp8+wpa81/System.Numerics.Vectors.dll", - "lib/portable-net45+win8+wp8+wpa81/System.Numerics.Vectors.xml", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net46/System.Numerics.Vectors.dll", - "ref/net46/System.Numerics.Vectors.xml", - "ref/netcoreapp2.0/_._", - "ref/netstandard1.0/System.Numerics.Vectors.dll", - "ref/netstandard1.0/System.Numerics.Vectors.xml", - "ref/netstandard2.0/System.Numerics.Vectors.dll", - "ref/netstandard2.0/System.Numerics.Vectors.xml", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._", - "system.numerics.vectors.4.4.0.nupkg.sha512", - "system.numerics.vectors.nuspec", - "useSharedDesignerContext.txt", - "version.txt" - ] - }, - "System.Runtime.CompilerServices.Unsafe/4.7.1": { - "sha512": "zOHkQmzPCn5zm/BH+cxC1XbUS3P4Yoi3xzW7eRgVpDR2tPGSzyMZ17Ig1iRkfJuY0nhxkQQde8pgePNiA7z7TQ==", - "type": "package", - "path": "system.runtime.compilerservices.unsafe/4.7.1", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "LICENSE.TXT", - "THIRD-PARTY-NOTICES.TXT", - "lib/net461/System.Runtime.CompilerServices.Unsafe.dll", - "lib/net461/System.Runtime.CompilerServices.Unsafe.xml", - "lib/netcoreapp2.0/System.Runtime.CompilerServices.Unsafe.dll", - "lib/netcoreapp2.0/System.Runtime.CompilerServices.Unsafe.xml", - "lib/netstandard1.0/System.Runtime.CompilerServices.Unsafe.dll", - "lib/netstandard1.0/System.Runtime.CompilerServices.Unsafe.xml", - "lib/netstandard2.0/System.Runtime.CompilerServices.Unsafe.dll", - "lib/netstandard2.0/System.Runtime.CompilerServices.Unsafe.xml", - "ref/net461/System.Runtime.CompilerServices.Unsafe.dll", - "ref/net461/System.Runtime.CompilerServices.Unsafe.xml", - "ref/netstandard1.0/System.Runtime.CompilerServices.Unsafe.dll", - "ref/netstandard1.0/System.Runtime.CompilerServices.Unsafe.xml", - "ref/netstandard2.0/System.Runtime.CompilerServices.Unsafe.dll", - "ref/netstandard2.0/System.Runtime.CompilerServices.Unsafe.xml", - "system.runtime.compilerservices.unsafe.4.7.1.nupkg.sha512", - "system.runtime.compilerservices.unsafe.nuspec", - "useSharedDesignerContext.txt", - "version.txt" - ] - }, - "System.Threading.Tasks.Extensions/4.5.4": { - "sha512": "zteT+G8xuGu6mS+mzDzYXbzS7rd3K6Fjb9RiZlYlJPam2/hU7JCBZBVEcywNuR+oZ1ncTvc/cq0faRr3P01OVg==", - "type": "package", - "path": "system.threading.tasks.extensions/4.5.4", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "LICENSE.TXT", - "THIRD-PARTY-NOTICES.TXT", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net461/System.Threading.Tasks.Extensions.dll", - "lib/net461/System.Threading.Tasks.Extensions.xml", - "lib/netcoreapp2.1/_._", - "lib/netstandard1.0/System.Threading.Tasks.Extensions.dll", - "lib/netstandard1.0/System.Threading.Tasks.Extensions.xml", - "lib/netstandard2.0/System.Threading.Tasks.Extensions.dll", - "lib/netstandard2.0/System.Threading.Tasks.Extensions.xml", - "lib/portable-net45+win8+wp8+wpa81/System.Threading.Tasks.Extensions.dll", - "lib/portable-net45+win8+wp8+wpa81/System.Threading.Tasks.Extensions.xml", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/netcoreapp2.1/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._", - "system.threading.tasks.extensions.4.5.4.nupkg.sha512", - "system.threading.tasks.extensions.nuspec", - "useSharedDesignerContext.txt", - "version.txt" - ] - } - }, - "projectFileDependencyGroups": { - ".NETStandard,Version=v2.0": [ - "HuaweiCloud.SDK.Core >= 3.1.11", - "NETStandard.Library >= 2.0.3", - "Newtonsoft.Json >= 13.0.1" - ] - }, - "packageFolders": { - "/root/.nuget/packages/": {}, - "/usr/dotnet2/sdk/NuGetFallbackFolder": {} - }, - "project": { - "version": "0.0.2-beta", - "restore": { - "projectUniqueName": "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Ces/Ces.csproj", - "projectName": "G42Cloud.SDK.Ces", - "projectPath": "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Ces/Ces.csproj", - "packagesPath": "/root/.nuget/packages/", - "outputPath": "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Ces/obj/", - "projectStyle": "PackageReference", - "fallbackFolders": [ - "/usr/dotnet2/sdk/NuGetFallbackFolder" - ], - "configFilePaths": [ - "/root/.nuget/NuGet/NuGet.Config" - ], - "originalTargetFrameworks": [ - "netstandard2.0" - ], - "sources": { - "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86": {} - }, - "frameworks": { - "netstandard2.0": { - "projectReferences": {} - } - }, - "warningProperties": { - "warnAsError": [ - "NU1605" - ] - } - }, - "frameworks": { - "netstandard2.0": { - "dependencies": { - "HuaweiCloud.SDK.Core": { - "target": "Package", - "version": "[3.1.11, )" - }, - "NETStandard.Library": { - "suppressParent": "All", - "target": "Package", - "version": "[2.0.3, )", - "autoReferenced": true - }, - "Newtonsoft.Json": { - "target": "Package", - "version": "[13.0.1, )" - } - }, - "imports": [ - "net461" - ], - "assetTargetFallback": true, - "warn": true - } - } - } -} \ No newline at end of file diff --git a/Services/Ecs/Ecs.csproj b/Services/Ecs/Ecs.csproj index 313301d..b87a2cd 100755 --- a/Services/Ecs/Ecs.csproj +++ b/Services/Ecs/Ecs.csproj @@ -15,7 +15,7 @@ false false G42Cloud.SDK.Ecs - 0.0.2-beta + 0.0.3-beta G42Cloud Copyright 2020 G42 Technologies Co., Ltd. G42 Technologies Co., Ltd. @@ -24,7 +24,7 @@ - + diff --git a/Services/Ecs/V2/EcsAsyncClient.cs b/Services/Ecs/V2/EcsAsyncClient.cs index 4364af4..a19a461 100755 --- a/Services/Ecs/V2/EcsAsyncClient.cs +++ b/Services/Ecs/V2/EcsAsyncClient.cs @@ -1,7 +1,7 @@ using System.Net.Http; using System.Collections.Generic; using System.Threading.Tasks; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; using G42Cloud.SDK.Ecs.V2.Model; namespace G42Cloud.SDK.Ecs.V2 diff --git a/Services/Ecs/V2/EcsClient.cs b/Services/Ecs/V2/EcsClient.cs index ae45d01..b681988 100755 --- a/Services/Ecs/V2/EcsClient.cs +++ b/Services/Ecs/V2/EcsClient.cs @@ -1,6 +1,6 @@ using System.Net.Http; using System.Collections.Generic; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; using G42Cloud.SDK.Ecs.V2.Model; namespace G42Cloud.SDK.Ecs.V2 diff --git a/Services/Ecs/V2/Model/AddServerGroupMemberRequest.cs b/Services/Ecs/V2/Model/AddServerGroupMemberRequest.cs index 3605682..f61128c 100755 --- a/Services/Ecs/V2/Model/AddServerGroupMemberRequest.cs +++ b/Services/Ecs/V2/Model/AddServerGroupMemberRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/AddServerGroupMemberRequestBody.cs b/Services/Ecs/V2/Model/AddServerGroupMemberRequestBody.cs index 9ab1bb6..1c07411 100755 --- a/Services/Ecs/V2/Model/AddServerGroupMemberRequestBody.cs +++ b/Services/Ecs/V2/Model/AddServerGroupMemberRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/AddServerGroupMemberResponse.cs b/Services/Ecs/V2/Model/AddServerGroupMemberResponse.cs index 6584f14..799125c 100755 --- a/Services/Ecs/V2/Model/AddServerGroupMemberResponse.cs +++ b/Services/Ecs/V2/Model/AddServerGroupMemberResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/AssociateServerVirtualIpOption.cs b/Services/Ecs/V2/Model/AssociateServerVirtualIpOption.cs index 0921465..527fb93 100755 --- a/Services/Ecs/V2/Model/AssociateServerVirtualIpOption.cs +++ b/Services/Ecs/V2/Model/AssociateServerVirtualIpOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/AssociateServerVirtualIpRequest.cs b/Services/Ecs/V2/Model/AssociateServerVirtualIpRequest.cs index 335895b..7b3bec1 100755 --- a/Services/Ecs/V2/Model/AssociateServerVirtualIpRequest.cs +++ b/Services/Ecs/V2/Model/AssociateServerVirtualIpRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/AssociateServerVirtualIpRequestBody.cs b/Services/Ecs/V2/Model/AssociateServerVirtualIpRequestBody.cs index 87eccfd..410bdf7 100755 --- a/Services/Ecs/V2/Model/AssociateServerVirtualIpRequestBody.cs +++ b/Services/Ecs/V2/Model/AssociateServerVirtualIpRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/AssociateServerVirtualIpResponse.cs b/Services/Ecs/V2/Model/AssociateServerVirtualIpResponse.cs index 14311fa..7e14aae 100755 --- a/Services/Ecs/V2/Model/AssociateServerVirtualIpResponse.cs +++ b/Services/Ecs/V2/Model/AssociateServerVirtualIpResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/AttachServerVolumeOption.cs b/Services/Ecs/V2/Model/AttachServerVolumeOption.cs index 6505e18..ce4a602 100755 --- a/Services/Ecs/V2/Model/AttachServerVolumeOption.cs +++ b/Services/Ecs/V2/Model/AttachServerVolumeOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/AttachServerVolumeRequest.cs b/Services/Ecs/V2/Model/AttachServerVolumeRequest.cs index a616478..5d0c6f6 100755 --- a/Services/Ecs/V2/Model/AttachServerVolumeRequest.cs +++ b/Services/Ecs/V2/Model/AttachServerVolumeRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/AttachServerVolumeRequestBody.cs b/Services/Ecs/V2/Model/AttachServerVolumeRequestBody.cs index c485429..eb3598c 100755 --- a/Services/Ecs/V2/Model/AttachServerVolumeRequestBody.cs +++ b/Services/Ecs/V2/Model/AttachServerVolumeRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/AttachServerVolumeResponse.cs b/Services/Ecs/V2/Model/AttachServerVolumeResponse.cs index 035a39f..0d63d21 100755 --- a/Services/Ecs/V2/Model/AttachServerVolumeResponse.cs +++ b/Services/Ecs/V2/Model/AttachServerVolumeResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/BatchAddServerNicOption.cs b/Services/Ecs/V2/Model/BatchAddServerNicOption.cs index 48923c3..b68bbf4 100755 --- a/Services/Ecs/V2/Model/BatchAddServerNicOption.cs +++ b/Services/Ecs/V2/Model/BatchAddServerNicOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/BatchAddServerNicsRequest.cs b/Services/Ecs/V2/Model/BatchAddServerNicsRequest.cs index 94f882c..17e29cb 100755 --- a/Services/Ecs/V2/Model/BatchAddServerNicsRequest.cs +++ b/Services/Ecs/V2/Model/BatchAddServerNicsRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/BatchAddServerNicsRequestBody.cs b/Services/Ecs/V2/Model/BatchAddServerNicsRequestBody.cs index 8ed655f..e312e63 100755 --- a/Services/Ecs/V2/Model/BatchAddServerNicsRequestBody.cs +++ b/Services/Ecs/V2/Model/BatchAddServerNicsRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/BatchAddServerNicsResponse.cs b/Services/Ecs/V2/Model/BatchAddServerNicsResponse.cs index c21fe5a..7e3e6c2 100755 --- a/Services/Ecs/V2/Model/BatchAddServerNicsResponse.cs +++ b/Services/Ecs/V2/Model/BatchAddServerNicsResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/BatchAttachSharableVolumesOption.cs b/Services/Ecs/V2/Model/BatchAttachSharableVolumesOption.cs index 2cfbc58..da82492 100755 --- a/Services/Ecs/V2/Model/BatchAttachSharableVolumesOption.cs +++ b/Services/Ecs/V2/Model/BatchAttachSharableVolumesOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/BatchAttachSharableVolumesRequest.cs b/Services/Ecs/V2/Model/BatchAttachSharableVolumesRequest.cs index 6fed63e..2a4a268 100755 --- a/Services/Ecs/V2/Model/BatchAttachSharableVolumesRequest.cs +++ b/Services/Ecs/V2/Model/BatchAttachSharableVolumesRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/BatchAttachSharableVolumesRequestBody.cs b/Services/Ecs/V2/Model/BatchAttachSharableVolumesRequestBody.cs index b5e3ef4..e91e818 100755 --- a/Services/Ecs/V2/Model/BatchAttachSharableVolumesRequestBody.cs +++ b/Services/Ecs/V2/Model/BatchAttachSharableVolumesRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/BatchAttachSharableVolumesResponse.cs b/Services/Ecs/V2/Model/BatchAttachSharableVolumesResponse.cs index b8f4fb7..018af19 100755 --- a/Services/Ecs/V2/Model/BatchAttachSharableVolumesResponse.cs +++ b/Services/Ecs/V2/Model/BatchAttachSharableVolumesResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/BatchCreateServerTagsRequest.cs b/Services/Ecs/V2/Model/BatchCreateServerTagsRequest.cs index fb9635f..b2fdf99 100755 --- a/Services/Ecs/V2/Model/BatchCreateServerTagsRequest.cs +++ b/Services/Ecs/V2/Model/BatchCreateServerTagsRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/BatchCreateServerTagsRequestBody.cs b/Services/Ecs/V2/Model/BatchCreateServerTagsRequestBody.cs index 1d90974..5e4ef1a 100755 --- a/Services/Ecs/V2/Model/BatchCreateServerTagsRequestBody.cs +++ b/Services/Ecs/V2/Model/BatchCreateServerTagsRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { @@ -28,11 +29,16 @@ public class ActionEnum { "create", CREATE }, }; - private string Value; + private string _value; + + public ActionEnum() + { + + } public ActionEnum(string value) { - Value = value; + _value = value; } public static ActionEnum FromValue(string value) @@ -51,17 +57,17 @@ public static ActionEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -90,7 +96,7 @@ public bool Equals(ActionEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(ActionEnum a, ActionEnum b) diff --git a/Services/Ecs/V2/Model/BatchCreateServerTagsResponse.cs b/Services/Ecs/V2/Model/BatchCreateServerTagsResponse.cs index 9a07852..3e5b124 100755 --- a/Services/Ecs/V2/Model/BatchCreateServerTagsResponse.cs +++ b/Services/Ecs/V2/Model/BatchCreateServerTagsResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/BatchDeleteServerNicOption.cs b/Services/Ecs/V2/Model/BatchDeleteServerNicOption.cs index eea547d..1788c4d 100755 --- a/Services/Ecs/V2/Model/BatchDeleteServerNicOption.cs +++ b/Services/Ecs/V2/Model/BatchDeleteServerNicOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/BatchDeleteServerNicsRequest.cs b/Services/Ecs/V2/Model/BatchDeleteServerNicsRequest.cs index 280ff2c..bdbc302 100755 --- a/Services/Ecs/V2/Model/BatchDeleteServerNicsRequest.cs +++ b/Services/Ecs/V2/Model/BatchDeleteServerNicsRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/BatchDeleteServerNicsRequestBody.cs b/Services/Ecs/V2/Model/BatchDeleteServerNicsRequestBody.cs index 9213c27..c24f2f6 100755 --- a/Services/Ecs/V2/Model/BatchDeleteServerNicsRequestBody.cs +++ b/Services/Ecs/V2/Model/BatchDeleteServerNicsRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/BatchDeleteServerNicsResponse.cs b/Services/Ecs/V2/Model/BatchDeleteServerNicsResponse.cs index a027d9d..376eaf8 100755 --- a/Services/Ecs/V2/Model/BatchDeleteServerNicsResponse.cs +++ b/Services/Ecs/V2/Model/BatchDeleteServerNicsResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/BatchDeleteServerTagsRequest.cs b/Services/Ecs/V2/Model/BatchDeleteServerTagsRequest.cs index eaf6d8c..28eb524 100755 --- a/Services/Ecs/V2/Model/BatchDeleteServerTagsRequest.cs +++ b/Services/Ecs/V2/Model/BatchDeleteServerTagsRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/BatchDeleteServerTagsRequestBody.cs b/Services/Ecs/V2/Model/BatchDeleteServerTagsRequestBody.cs index db156dc..d7c26e2 100755 --- a/Services/Ecs/V2/Model/BatchDeleteServerTagsRequestBody.cs +++ b/Services/Ecs/V2/Model/BatchDeleteServerTagsRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { @@ -28,11 +29,16 @@ public class ActionEnum { "delete", DELETE }, }; - private string Value; + private string _value; + + public ActionEnum() + { + + } public ActionEnum(string value) { - Value = value; + _value = value; } public static ActionEnum FromValue(string value) @@ -51,17 +57,17 @@ public static ActionEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -90,7 +96,7 @@ public bool Equals(ActionEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(ActionEnum a, ActionEnum b) diff --git a/Services/Ecs/V2/Model/BatchDeleteServerTagsResponse.cs b/Services/Ecs/V2/Model/BatchDeleteServerTagsResponse.cs index 83c7331..543eae8 100755 --- a/Services/Ecs/V2/Model/BatchDeleteServerTagsResponse.cs +++ b/Services/Ecs/V2/Model/BatchDeleteServerTagsResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/BatchRebootServersRequest.cs b/Services/Ecs/V2/Model/BatchRebootServersRequest.cs index f62fae8..87437e4 100755 --- a/Services/Ecs/V2/Model/BatchRebootServersRequest.cs +++ b/Services/Ecs/V2/Model/BatchRebootServersRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/BatchRebootServersRequestBody.cs b/Services/Ecs/V2/Model/BatchRebootServersRequestBody.cs index 765b6a0..35c8580 100755 --- a/Services/Ecs/V2/Model/BatchRebootServersRequestBody.cs +++ b/Services/Ecs/V2/Model/BatchRebootServersRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/BatchRebootServersResponse.cs b/Services/Ecs/V2/Model/BatchRebootServersResponse.cs index b18ff83..9f987a3 100755 --- a/Services/Ecs/V2/Model/BatchRebootServersResponse.cs +++ b/Services/Ecs/V2/Model/BatchRebootServersResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/BatchRebootSeversOption.cs b/Services/Ecs/V2/Model/BatchRebootSeversOption.cs index 8ac55f4..19691f5 100755 --- a/Services/Ecs/V2/Model/BatchRebootSeversOption.cs +++ b/Services/Ecs/V2/Model/BatchRebootSeversOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { @@ -34,11 +35,16 @@ public class TypeEnum { "HARD", HARD }, }; - private string Value; + private string _value; + + public TypeEnum() + { + + } public TypeEnum(string value) { - Value = value; + _value = value; } public static TypeEnum FromValue(string value) @@ -57,17 +63,17 @@ public static TypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -96,7 +102,7 @@ public bool Equals(TypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(TypeEnum a, TypeEnum b) diff --git a/Services/Ecs/V2/Model/BatchResetServersPasswordRequest.cs b/Services/Ecs/V2/Model/BatchResetServersPasswordRequest.cs index f01aa96..36d857a 100755 --- a/Services/Ecs/V2/Model/BatchResetServersPasswordRequest.cs +++ b/Services/Ecs/V2/Model/BatchResetServersPasswordRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/BatchResetServersPasswordRequestBody.cs b/Services/Ecs/V2/Model/BatchResetServersPasswordRequestBody.cs index 7c00171..4e53aab 100755 --- a/Services/Ecs/V2/Model/BatchResetServersPasswordRequestBody.cs +++ b/Services/Ecs/V2/Model/BatchResetServersPasswordRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/BatchResetServersPasswordResponse.cs b/Services/Ecs/V2/Model/BatchResetServersPasswordResponse.cs index 740f839..49325b2 100755 --- a/Services/Ecs/V2/Model/BatchResetServersPasswordResponse.cs +++ b/Services/Ecs/V2/Model/BatchResetServersPasswordResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/BatchStartServersOption.cs b/Services/Ecs/V2/Model/BatchStartServersOption.cs index b2a697a..4309226 100755 --- a/Services/Ecs/V2/Model/BatchStartServersOption.cs +++ b/Services/Ecs/V2/Model/BatchStartServersOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/BatchStartServersRequest.cs b/Services/Ecs/V2/Model/BatchStartServersRequest.cs index ef27621..66f4ab6 100755 --- a/Services/Ecs/V2/Model/BatchStartServersRequest.cs +++ b/Services/Ecs/V2/Model/BatchStartServersRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/BatchStartServersRequestBody.cs b/Services/Ecs/V2/Model/BatchStartServersRequestBody.cs index 0abfc70..8441a57 100755 --- a/Services/Ecs/V2/Model/BatchStartServersRequestBody.cs +++ b/Services/Ecs/V2/Model/BatchStartServersRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/BatchStartServersResponse.cs b/Services/Ecs/V2/Model/BatchStartServersResponse.cs index 8ec8701..3c5b0d7 100755 --- a/Services/Ecs/V2/Model/BatchStartServersResponse.cs +++ b/Services/Ecs/V2/Model/BatchStartServersResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/BatchStopServersOption.cs b/Services/Ecs/V2/Model/BatchStopServersOption.cs index a2149a9..7ed7668 100755 --- a/Services/Ecs/V2/Model/BatchStopServersOption.cs +++ b/Services/Ecs/V2/Model/BatchStopServersOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { @@ -34,11 +35,16 @@ public class TypeEnum { "HARD", HARD }, }; - private string Value; + private string _value; + + public TypeEnum() + { + + } public TypeEnum(string value) { - Value = value; + _value = value; } public static TypeEnum FromValue(string value) @@ -57,17 +63,17 @@ public static TypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -96,7 +102,7 @@ public bool Equals(TypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(TypeEnum a, TypeEnum b) diff --git a/Services/Ecs/V2/Model/BatchStopServersRequest.cs b/Services/Ecs/V2/Model/BatchStopServersRequest.cs index 2aa1685..9be45ad 100755 --- a/Services/Ecs/V2/Model/BatchStopServersRequest.cs +++ b/Services/Ecs/V2/Model/BatchStopServersRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/BatchStopServersRequestBody.cs b/Services/Ecs/V2/Model/BatchStopServersRequestBody.cs index 5159940..23a49a2 100755 --- a/Services/Ecs/V2/Model/BatchStopServersRequestBody.cs +++ b/Services/Ecs/V2/Model/BatchStopServersRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/BatchStopServersResponse.cs b/Services/Ecs/V2/Model/BatchStopServersResponse.cs index 117dcae..6f4a7a8 100755 --- a/Services/Ecs/V2/Model/BatchStopServersResponse.cs +++ b/Services/Ecs/V2/Model/BatchStopServersResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/BatchUpdateServersNameRequest.cs b/Services/Ecs/V2/Model/BatchUpdateServersNameRequest.cs index b5516b9..7c50ae0 100755 --- a/Services/Ecs/V2/Model/BatchUpdateServersNameRequest.cs +++ b/Services/Ecs/V2/Model/BatchUpdateServersNameRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/BatchUpdateServersNameRequestBody.cs b/Services/Ecs/V2/Model/BatchUpdateServersNameRequestBody.cs index 4363402..8df294a 100755 --- a/Services/Ecs/V2/Model/BatchUpdateServersNameRequestBody.cs +++ b/Services/Ecs/V2/Model/BatchUpdateServersNameRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/BatchUpdateServersNameResponse.cs b/Services/Ecs/V2/Model/BatchUpdateServersNameResponse.cs index 01fdc26..489c036 100755 --- a/Services/Ecs/V2/Model/BatchUpdateServersNameResponse.cs +++ b/Services/Ecs/V2/Model/BatchUpdateServersNameResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/BlockDeviceAttachableQuantity.cs b/Services/Ecs/V2/Model/BlockDeviceAttachableQuantity.cs index 432b911..a7c123b 100755 --- a/Services/Ecs/V2/Model/BlockDeviceAttachableQuantity.cs +++ b/Services/Ecs/V2/Model/BlockDeviceAttachableQuantity.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ChangeServerOsWithCloudInitOption.cs b/Services/Ecs/V2/Model/ChangeServerOsWithCloudInitOption.cs index af898d2..92f42c8 100755 --- a/Services/Ecs/V2/Model/ChangeServerOsWithCloudInitOption.cs +++ b/Services/Ecs/V2/Model/ChangeServerOsWithCloudInitOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ChangeServerOsWithCloudInitRequest.cs b/Services/Ecs/V2/Model/ChangeServerOsWithCloudInitRequest.cs index 00a83b1..78e9cf0 100755 --- a/Services/Ecs/V2/Model/ChangeServerOsWithCloudInitRequest.cs +++ b/Services/Ecs/V2/Model/ChangeServerOsWithCloudInitRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ChangeServerOsWithCloudInitRequestBody.cs b/Services/Ecs/V2/Model/ChangeServerOsWithCloudInitRequestBody.cs index 394f299..9bac412 100755 --- a/Services/Ecs/V2/Model/ChangeServerOsWithCloudInitRequestBody.cs +++ b/Services/Ecs/V2/Model/ChangeServerOsWithCloudInitRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ChangeServerOsWithCloudInitResponse.cs b/Services/Ecs/V2/Model/ChangeServerOsWithCloudInitResponse.cs index 79edf21..2386166 100755 --- a/Services/Ecs/V2/Model/ChangeServerOsWithCloudInitResponse.cs +++ b/Services/Ecs/V2/Model/ChangeServerOsWithCloudInitResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ChangeServerOsWithoutCloudInitOption.cs b/Services/Ecs/V2/Model/ChangeServerOsWithoutCloudInitOption.cs index 5b0eee2..746fc63 100755 --- a/Services/Ecs/V2/Model/ChangeServerOsWithoutCloudInitOption.cs +++ b/Services/Ecs/V2/Model/ChangeServerOsWithoutCloudInitOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ChangeServerOsWithoutCloudInitRequest.cs b/Services/Ecs/V2/Model/ChangeServerOsWithoutCloudInitRequest.cs index 170fd46..0ea78f7 100755 --- a/Services/Ecs/V2/Model/ChangeServerOsWithoutCloudInitRequest.cs +++ b/Services/Ecs/V2/Model/ChangeServerOsWithoutCloudInitRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ChangeServerOsWithoutCloudInitRequestBody.cs b/Services/Ecs/V2/Model/ChangeServerOsWithoutCloudInitRequestBody.cs index 37149d8..f3c184d 100755 --- a/Services/Ecs/V2/Model/ChangeServerOsWithoutCloudInitRequestBody.cs +++ b/Services/Ecs/V2/Model/ChangeServerOsWithoutCloudInitRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ChangeServerOsWithoutCloudInitResponse.cs b/Services/Ecs/V2/Model/ChangeServerOsWithoutCloudInitResponse.cs index 9977a51..fafc8e8 100755 --- a/Services/Ecs/V2/Model/ChangeServerOsWithoutCloudInitResponse.cs +++ b/Services/Ecs/V2/Model/ChangeServerOsWithoutCloudInitResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ChangeSeversOsMetadata.cs b/Services/Ecs/V2/Model/ChangeSeversOsMetadata.cs index 604a913..9542eb9 100755 --- a/Services/Ecs/V2/Model/ChangeSeversOsMetadata.cs +++ b/Services/Ecs/V2/Model/ChangeSeversOsMetadata.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/CpuOptions.cs b/Services/Ecs/V2/Model/CpuOptions.cs index b8c4c1e..6f3161c 100755 --- a/Services/Ecs/V2/Model/CpuOptions.cs +++ b/Services/Ecs/V2/Model/CpuOptions.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/CreatePostPaidServersRequest.cs b/Services/Ecs/V2/Model/CreatePostPaidServersRequest.cs index ee7c9c4..4a3d825 100755 --- a/Services/Ecs/V2/Model/CreatePostPaidServersRequest.cs +++ b/Services/Ecs/V2/Model/CreatePostPaidServersRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/CreatePostPaidServersRequestBody.cs b/Services/Ecs/V2/Model/CreatePostPaidServersRequestBody.cs index 04840be..943d1fc 100755 --- a/Services/Ecs/V2/Model/CreatePostPaidServersRequestBody.cs +++ b/Services/Ecs/V2/Model/CreatePostPaidServersRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/CreatePostPaidServersResponse.cs b/Services/Ecs/V2/Model/CreatePostPaidServersResponse.cs index 1d198f5..c2734d0 100755 --- a/Services/Ecs/V2/Model/CreatePostPaidServersResponse.cs +++ b/Services/Ecs/V2/Model/CreatePostPaidServersResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/CreateServerGroupOption.cs b/Services/Ecs/V2/Model/CreateServerGroupOption.cs index 8424c9c..a1856eb 100755 --- a/Services/Ecs/V2/Model/CreateServerGroupOption.cs +++ b/Services/Ecs/V2/Model/CreateServerGroupOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { @@ -28,11 +29,16 @@ public class PoliciesEnum { "anti-affinity", ANTI_AFFINITY }, }; - private string Value; + private string _value; + + public PoliciesEnum() + { + + } public PoliciesEnum(string value) { - Value = value; + _value = value; } public static PoliciesEnum FromValue(string value) @@ -51,17 +57,17 @@ public static PoliciesEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -90,7 +96,7 @@ public bool Equals(PoliciesEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(PoliciesEnum a, PoliciesEnum b) diff --git a/Services/Ecs/V2/Model/CreateServerGroupRequest.cs b/Services/Ecs/V2/Model/CreateServerGroupRequest.cs index fa58e97..45b453a 100755 --- a/Services/Ecs/V2/Model/CreateServerGroupRequest.cs +++ b/Services/Ecs/V2/Model/CreateServerGroupRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/CreateServerGroupRequestBody.cs b/Services/Ecs/V2/Model/CreateServerGroupRequestBody.cs index 0d3f331..f92f7bd 100755 --- a/Services/Ecs/V2/Model/CreateServerGroupRequestBody.cs +++ b/Services/Ecs/V2/Model/CreateServerGroupRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/CreateServerGroupResponse.cs b/Services/Ecs/V2/Model/CreateServerGroupResponse.cs index 5e3aaac..32efc19 100755 --- a/Services/Ecs/V2/Model/CreateServerGroupResponse.cs +++ b/Services/Ecs/V2/Model/CreateServerGroupResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/CreateServerGroupResult.cs b/Services/Ecs/V2/Model/CreateServerGroupResult.cs index af06706..5bcf74c 100755 --- a/Services/Ecs/V2/Model/CreateServerGroupResult.cs +++ b/Services/Ecs/V2/Model/CreateServerGroupResult.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/CreateServersRequest.cs b/Services/Ecs/V2/Model/CreateServersRequest.cs index 57f01fc..8aee36a 100755 --- a/Services/Ecs/V2/Model/CreateServersRequest.cs +++ b/Services/Ecs/V2/Model/CreateServersRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/CreateServersRequestBody.cs b/Services/Ecs/V2/Model/CreateServersRequestBody.cs index a3097e0..678c709 100755 --- a/Services/Ecs/V2/Model/CreateServersRequestBody.cs +++ b/Services/Ecs/V2/Model/CreateServersRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/CreateServersResponse.cs b/Services/Ecs/V2/Model/CreateServersResponse.cs index 166ec67..5debb82 100755 --- a/Services/Ecs/V2/Model/CreateServersResponse.cs +++ b/Services/Ecs/V2/Model/CreateServersResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/DeleteServerGroupMemberRequest.cs b/Services/Ecs/V2/Model/DeleteServerGroupMemberRequest.cs index c9864d7..c95bf82 100755 --- a/Services/Ecs/V2/Model/DeleteServerGroupMemberRequest.cs +++ b/Services/Ecs/V2/Model/DeleteServerGroupMemberRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/DeleteServerGroupMemberRequestBody.cs b/Services/Ecs/V2/Model/DeleteServerGroupMemberRequestBody.cs index f846c7d..9ed0aa5 100755 --- a/Services/Ecs/V2/Model/DeleteServerGroupMemberRequestBody.cs +++ b/Services/Ecs/V2/Model/DeleteServerGroupMemberRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/DeleteServerGroupMemberResponse.cs b/Services/Ecs/V2/Model/DeleteServerGroupMemberResponse.cs index 70e1d02..4ba200b 100755 --- a/Services/Ecs/V2/Model/DeleteServerGroupMemberResponse.cs +++ b/Services/Ecs/V2/Model/DeleteServerGroupMemberResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/DeleteServerGroupRequest.cs b/Services/Ecs/V2/Model/DeleteServerGroupRequest.cs index 1060808..788c626 100755 --- a/Services/Ecs/V2/Model/DeleteServerGroupRequest.cs +++ b/Services/Ecs/V2/Model/DeleteServerGroupRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/DeleteServerGroupResponse.cs b/Services/Ecs/V2/Model/DeleteServerGroupResponse.cs index b5dfd04..b50e5c9 100755 --- a/Services/Ecs/V2/Model/DeleteServerGroupResponse.cs +++ b/Services/Ecs/V2/Model/DeleteServerGroupResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/DeleteServerMetadataRequest.cs b/Services/Ecs/V2/Model/DeleteServerMetadataRequest.cs index 72f0081..f4369fd 100755 --- a/Services/Ecs/V2/Model/DeleteServerMetadataRequest.cs +++ b/Services/Ecs/V2/Model/DeleteServerMetadataRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/DeleteServerMetadataResponse.cs b/Services/Ecs/V2/Model/DeleteServerMetadataResponse.cs index f4c9be4..8bf89dd 100755 --- a/Services/Ecs/V2/Model/DeleteServerMetadataResponse.cs +++ b/Services/Ecs/V2/Model/DeleteServerMetadataResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/DeleteServerPasswordRequest.cs b/Services/Ecs/V2/Model/DeleteServerPasswordRequest.cs index 78addff..ecc4c36 100755 --- a/Services/Ecs/V2/Model/DeleteServerPasswordRequest.cs +++ b/Services/Ecs/V2/Model/DeleteServerPasswordRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/DeleteServerPasswordResponse.cs b/Services/Ecs/V2/Model/DeleteServerPasswordResponse.cs index d37c31e..f941352 100755 --- a/Services/Ecs/V2/Model/DeleteServerPasswordResponse.cs +++ b/Services/Ecs/V2/Model/DeleteServerPasswordResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/DeleteServersRequest.cs b/Services/Ecs/V2/Model/DeleteServersRequest.cs index 400a47b..4222f19 100755 --- a/Services/Ecs/V2/Model/DeleteServersRequest.cs +++ b/Services/Ecs/V2/Model/DeleteServersRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/DeleteServersRequestBody.cs b/Services/Ecs/V2/Model/DeleteServersRequestBody.cs index 777eb4d..f0e9bc9 100755 --- a/Services/Ecs/V2/Model/DeleteServersRequestBody.cs +++ b/Services/Ecs/V2/Model/DeleteServersRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/DeleteServersResponse.cs b/Services/Ecs/V2/Model/DeleteServersResponse.cs index 6815349..a5cb27a 100755 --- a/Services/Ecs/V2/Model/DeleteServersResponse.cs +++ b/Services/Ecs/V2/Model/DeleteServersResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/DetachServerVolumeRequest.cs b/Services/Ecs/V2/Model/DetachServerVolumeRequest.cs index 8484c40..d37ec98 100755 --- a/Services/Ecs/V2/Model/DetachServerVolumeRequest.cs +++ b/Services/Ecs/V2/Model/DetachServerVolumeRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { @@ -34,11 +35,16 @@ public class DeleteFlagEnum { "1", _1 }, }; - private string Value; + private string _value; + + public DeleteFlagEnum() + { + + } public DeleteFlagEnum(string value) { - Value = value; + _value = value; } public static DeleteFlagEnum FromValue(string value) @@ -57,17 +63,17 @@ public static DeleteFlagEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -96,7 +102,7 @@ public bool Equals(DeleteFlagEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(DeleteFlagEnum a, DeleteFlagEnum b) diff --git a/Services/Ecs/V2/Model/DetachServerVolumeResponse.cs b/Services/Ecs/V2/Model/DetachServerVolumeResponse.cs index 21b8bf3..e1b0404 100755 --- a/Services/Ecs/V2/Model/DetachServerVolumeResponse.cs +++ b/Services/Ecs/V2/Model/DetachServerVolumeResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/DisassociateServerVirtualIpOption.cs b/Services/Ecs/V2/Model/DisassociateServerVirtualIpOption.cs index a811b5c..c0c91eb 100755 --- a/Services/Ecs/V2/Model/DisassociateServerVirtualIpOption.cs +++ b/Services/Ecs/V2/Model/DisassociateServerVirtualIpOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { @@ -28,11 +29,16 @@ public class SubnetIdEnum { "", EMPTY }, }; - private string Value; + private string _value; + + public SubnetIdEnum() + { + + } public SubnetIdEnum(string value) { - Value = value; + _value = value; } public static SubnetIdEnum FromValue(string value) @@ -51,17 +57,17 @@ public static SubnetIdEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -90,7 +96,7 @@ public bool Equals(SubnetIdEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(SubnetIdEnum a, SubnetIdEnum b) @@ -128,11 +134,16 @@ public class IpAddressEnum { "", EMPTY }, }; - private string Value; + private string _value; + + public IpAddressEnum() + { + + } public IpAddressEnum(string value) { - Value = value; + _value = value; } public static IpAddressEnum FromValue(string value) @@ -151,17 +162,17 @@ public static IpAddressEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -190,7 +201,7 @@ public bool Equals(IpAddressEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(IpAddressEnum a, IpAddressEnum b) diff --git a/Services/Ecs/V2/Model/DisassociateServerVirtualIpRequest.cs b/Services/Ecs/V2/Model/DisassociateServerVirtualIpRequest.cs index 49af3bd..a901eff 100755 --- a/Services/Ecs/V2/Model/DisassociateServerVirtualIpRequest.cs +++ b/Services/Ecs/V2/Model/DisassociateServerVirtualIpRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/DisassociateServerVirtualIpRequestBody.cs b/Services/Ecs/V2/Model/DisassociateServerVirtualIpRequestBody.cs index 56adb89..42b906c 100755 --- a/Services/Ecs/V2/Model/DisassociateServerVirtualIpRequestBody.cs +++ b/Services/Ecs/V2/Model/DisassociateServerVirtualIpRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/DisassociateServerVirtualIpResponse.cs b/Services/Ecs/V2/Model/DisassociateServerVirtualIpResponse.cs index a44a771..45bb282 100755 --- a/Services/Ecs/V2/Model/DisassociateServerVirtualIpResponse.cs +++ b/Services/Ecs/V2/Model/DisassociateServerVirtualIpResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/Flavor.cs b/Services/Ecs/V2/Model/Flavor.cs index 21e4b54..c146c50 100755 --- a/Services/Ecs/V2/Model/Flavor.cs +++ b/Services/Ecs/V2/Model/Flavor.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/FlavorExtraSpec.cs b/Services/Ecs/V2/Model/FlavorExtraSpec.cs index 44091ea..c2a0868 100755 --- a/Services/Ecs/V2/Model/FlavorExtraSpec.cs +++ b/Services/Ecs/V2/Model/FlavorExtraSpec.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/FlavorLink.cs b/Services/Ecs/V2/Model/FlavorLink.cs index 179c174..1a9bee2 100755 --- a/Services/Ecs/V2/Model/FlavorLink.cs +++ b/Services/Ecs/V2/Model/FlavorLink.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/GetServerRemoteConsoleOption.cs b/Services/Ecs/V2/Model/GetServerRemoteConsoleOption.cs index 9dad281..1335e13 100755 --- a/Services/Ecs/V2/Model/GetServerRemoteConsoleOption.cs +++ b/Services/Ecs/V2/Model/GetServerRemoteConsoleOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { @@ -28,11 +29,16 @@ public class ProtocolEnum { "vnc", VNC }, }; - private string Value; + private string _value; + + public ProtocolEnum() + { + + } public ProtocolEnum(string value) { - Value = value; + _value = value; } public static ProtocolEnum FromValue(string value) @@ -51,17 +57,17 @@ public static ProtocolEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -90,7 +96,7 @@ public bool Equals(ProtocolEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(ProtocolEnum a, ProtocolEnum b) @@ -128,11 +134,16 @@ public class TypeEnum { "novnc", NOVNC }, }; - private string Value; + private string _value; + + public TypeEnum() + { + + } public TypeEnum(string value) { - Value = value; + _value = value; } public static TypeEnum FromValue(string value) @@ -151,17 +162,17 @@ public static TypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -190,7 +201,7 @@ public bool Equals(TypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(TypeEnum a, TypeEnum b) diff --git a/Services/Ecs/V2/Model/Hypervisor.cs b/Services/Ecs/V2/Model/Hypervisor.cs index 50a0c40..a08b6a9 100755 --- a/Services/Ecs/V2/Model/Hypervisor.cs +++ b/Services/Ecs/V2/Model/Hypervisor.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/InterfaceAttachableQuantity.cs b/Services/Ecs/V2/Model/InterfaceAttachableQuantity.cs index feb292b..992ba3b 100755 --- a/Services/Ecs/V2/Model/InterfaceAttachableQuantity.cs +++ b/Services/Ecs/V2/Model/InterfaceAttachableQuantity.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/InterfaceAttachment.cs b/Services/Ecs/V2/Model/InterfaceAttachment.cs index c1b2e49..32cd649 100755 --- a/Services/Ecs/V2/Model/InterfaceAttachment.cs +++ b/Services/Ecs/V2/Model/InterfaceAttachment.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/Ipv6Bandwidth.cs b/Services/Ecs/V2/Model/Ipv6Bandwidth.cs index 1f3287b..c1cc939 100755 --- a/Services/Ecs/V2/Model/Ipv6Bandwidth.cs +++ b/Services/Ecs/V2/Model/Ipv6Bandwidth.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/JobEntities.cs b/Services/Ecs/V2/Model/JobEntities.cs index c7106b6..9c84f7b 100755 --- a/Services/Ecs/V2/Model/JobEntities.cs +++ b/Services/Ecs/V2/Model/JobEntities.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/Link.cs b/Services/Ecs/V2/Model/Link.cs index 433b410..158e10e 100755 --- a/Services/Ecs/V2/Model/Link.cs +++ b/Services/Ecs/V2/Model/Link.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ListFlavorsRequest.cs b/Services/Ecs/V2/Model/ListFlavorsRequest.cs index 3a2017f..13679bf 100755 --- a/Services/Ecs/V2/Model/ListFlavorsRequest.cs +++ b/Services/Ecs/V2/Model/ListFlavorsRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ListFlavorsResponse.cs b/Services/Ecs/V2/Model/ListFlavorsResponse.cs index fff3b48..ae0daef 100755 --- a/Services/Ecs/V2/Model/ListFlavorsResponse.cs +++ b/Services/Ecs/V2/Model/ListFlavorsResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ListResizeFlavorsRequest.cs b/Services/Ecs/V2/Model/ListResizeFlavorsRequest.cs index 75bb6fd..fa2e8bd 100755 --- a/Services/Ecs/V2/Model/ListResizeFlavorsRequest.cs +++ b/Services/Ecs/V2/Model/ListResizeFlavorsRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { @@ -34,11 +35,16 @@ public class SortDirEnum { "desc", DESC }, }; - private string Value; + private string _value; + + public SortDirEnum() + { + + } public SortDirEnum(string value) { - Value = value; + _value = value; } public static SortDirEnum FromValue(string value) @@ -57,17 +63,17 @@ public static SortDirEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -96,7 +102,7 @@ public bool Equals(SortDirEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(SortDirEnum a, SortDirEnum b) @@ -164,11 +170,16 @@ public class SortKeyEnum { "root_gb", ROOT_GB }, }; - private string Value; + private string _value; + + public SortKeyEnum() + { + + } public SortKeyEnum(string value) { - Value = value; + _value = value; } public static SortKeyEnum FromValue(string value) @@ -187,17 +198,17 @@ public static SortKeyEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -226,7 +237,7 @@ public bool Equals(SortKeyEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(SortKeyEnum a, SortKeyEnum b) diff --git a/Services/Ecs/V2/Model/ListResizeFlavorsResponse.cs b/Services/Ecs/V2/Model/ListResizeFlavorsResponse.cs index 7e7f54d..84d7b0c 100755 --- a/Services/Ecs/V2/Model/ListResizeFlavorsResponse.cs +++ b/Services/Ecs/V2/Model/ListResizeFlavorsResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ListResizeFlavorsResult.cs b/Services/Ecs/V2/Model/ListResizeFlavorsResult.cs index ce320df..f530241 100755 --- a/Services/Ecs/V2/Model/ListResizeFlavorsResult.cs +++ b/Services/Ecs/V2/Model/ListResizeFlavorsResult.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ListServerBlockDevicesRequest.cs b/Services/Ecs/V2/Model/ListServerBlockDevicesRequest.cs index 46c0fff..22682c9 100755 --- a/Services/Ecs/V2/Model/ListServerBlockDevicesRequest.cs +++ b/Services/Ecs/V2/Model/ListServerBlockDevicesRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ListServerBlockDevicesResponse.cs b/Services/Ecs/V2/Model/ListServerBlockDevicesResponse.cs index c1f34dc..d43f100 100755 --- a/Services/Ecs/V2/Model/ListServerBlockDevicesResponse.cs +++ b/Services/Ecs/V2/Model/ListServerBlockDevicesResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ListServerGroupsPageInfoResult.cs b/Services/Ecs/V2/Model/ListServerGroupsPageInfoResult.cs index dbae09d..106d04c 100755 --- a/Services/Ecs/V2/Model/ListServerGroupsPageInfoResult.cs +++ b/Services/Ecs/V2/Model/ListServerGroupsPageInfoResult.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ListServerGroupsRequest.cs b/Services/Ecs/V2/Model/ListServerGroupsRequest.cs index 91f1a0b..76e7616 100755 --- a/Services/Ecs/V2/Model/ListServerGroupsRequest.cs +++ b/Services/Ecs/V2/Model/ListServerGroupsRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ListServerGroupsResponse.cs b/Services/Ecs/V2/Model/ListServerGroupsResponse.cs index 434eb84..cc411eb 100755 --- a/Services/Ecs/V2/Model/ListServerGroupsResponse.cs +++ b/Services/Ecs/V2/Model/ListServerGroupsResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ListServerGroupsResult.cs b/Services/Ecs/V2/Model/ListServerGroupsResult.cs index 3649c39..f8f2177 100755 --- a/Services/Ecs/V2/Model/ListServerGroupsResult.cs +++ b/Services/Ecs/V2/Model/ListServerGroupsResult.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ListServerInterfacesRequest.cs b/Services/Ecs/V2/Model/ListServerInterfacesRequest.cs index d80ab93..7578a83 100755 --- a/Services/Ecs/V2/Model/ListServerInterfacesRequest.cs +++ b/Services/Ecs/V2/Model/ListServerInterfacesRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ListServerInterfacesResponse.cs b/Services/Ecs/V2/Model/ListServerInterfacesResponse.cs index 0c1bc14..915bf55 100755 --- a/Services/Ecs/V2/Model/ListServerInterfacesResponse.cs +++ b/Services/Ecs/V2/Model/ListServerInterfacesResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ListServerTagsRequest.cs b/Services/Ecs/V2/Model/ListServerTagsRequest.cs index d1a5a73..b5aa457 100755 --- a/Services/Ecs/V2/Model/ListServerTagsRequest.cs +++ b/Services/Ecs/V2/Model/ListServerTagsRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ListServerTagsResponse.cs b/Services/Ecs/V2/Model/ListServerTagsResponse.cs index 6b32bbd..a82e82b 100755 --- a/Services/Ecs/V2/Model/ListServerTagsResponse.cs +++ b/Services/Ecs/V2/Model/ListServerTagsResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ListServersDetailsRequest.cs b/Services/Ecs/V2/Model/ListServersDetailsRequest.cs index ebfabf1..59703e7 100755 --- a/Services/Ecs/V2/Model/ListServersDetailsRequest.cs +++ b/Services/Ecs/V2/Model/ListServersDetailsRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ListServersDetailsResponse.cs b/Services/Ecs/V2/Model/ListServersDetailsResponse.cs index 849a633..ea0b5f6 100755 --- a/Services/Ecs/V2/Model/ListServersDetailsResponse.cs +++ b/Services/Ecs/V2/Model/ListServersDetailsResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/MigrateServerOption.cs b/Services/Ecs/V2/Model/MigrateServerOption.cs index e8c9382..1b58bac 100755 --- a/Services/Ecs/V2/Model/MigrateServerOption.cs +++ b/Services/Ecs/V2/Model/MigrateServerOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/MigrateServerRequest.cs b/Services/Ecs/V2/Model/MigrateServerRequest.cs index 174f64a..35dbcaa 100755 --- a/Services/Ecs/V2/Model/MigrateServerRequest.cs +++ b/Services/Ecs/V2/Model/MigrateServerRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/MigrateServerRequestBody.cs b/Services/Ecs/V2/Model/MigrateServerRequestBody.cs index 20e9b4f..8d2748f 100755 --- a/Services/Ecs/V2/Model/MigrateServerRequestBody.cs +++ b/Services/Ecs/V2/Model/MigrateServerRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/MigrateServerResponse.cs b/Services/Ecs/V2/Model/MigrateServerResponse.cs index baed931..fb4d3c0 100755 --- a/Services/Ecs/V2/Model/MigrateServerResponse.cs +++ b/Services/Ecs/V2/Model/MigrateServerResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/NovaAddSecurityGroupOption.cs b/Services/Ecs/V2/Model/NovaAddSecurityGroupOption.cs index 77dde93..650954c 100755 --- a/Services/Ecs/V2/Model/NovaAddSecurityGroupOption.cs +++ b/Services/Ecs/V2/Model/NovaAddSecurityGroupOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/NovaAssociateSecurityGroupRequest.cs b/Services/Ecs/V2/Model/NovaAssociateSecurityGroupRequest.cs index ee00211..d37a96b 100755 --- a/Services/Ecs/V2/Model/NovaAssociateSecurityGroupRequest.cs +++ b/Services/Ecs/V2/Model/NovaAssociateSecurityGroupRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/NovaAssociateSecurityGroupRequestBody.cs b/Services/Ecs/V2/Model/NovaAssociateSecurityGroupRequestBody.cs index b0e355f..348d12f 100755 --- a/Services/Ecs/V2/Model/NovaAssociateSecurityGroupRequestBody.cs +++ b/Services/Ecs/V2/Model/NovaAssociateSecurityGroupRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/NovaAssociateSecurityGroupResponse.cs b/Services/Ecs/V2/Model/NovaAssociateSecurityGroupResponse.cs index 2db111a..1eb7fdd 100755 --- a/Services/Ecs/V2/Model/NovaAssociateSecurityGroupResponse.cs +++ b/Services/Ecs/V2/Model/NovaAssociateSecurityGroupResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/NovaAvailabilityZone.cs b/Services/Ecs/V2/Model/NovaAvailabilityZone.cs index 69db9f2..f761292 100755 --- a/Services/Ecs/V2/Model/NovaAvailabilityZone.cs +++ b/Services/Ecs/V2/Model/NovaAvailabilityZone.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/NovaAvailabilityZoneState.cs b/Services/Ecs/V2/Model/NovaAvailabilityZoneState.cs index 4d81862..de589d2 100755 --- a/Services/Ecs/V2/Model/NovaAvailabilityZoneState.cs +++ b/Services/Ecs/V2/Model/NovaAvailabilityZoneState.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/NovaCreateKeypairOption.cs b/Services/Ecs/V2/Model/NovaCreateKeypairOption.cs index 0bb283b..2dcca26 100755 --- a/Services/Ecs/V2/Model/NovaCreateKeypairOption.cs +++ b/Services/Ecs/V2/Model/NovaCreateKeypairOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { @@ -34,11 +35,16 @@ public class TypeEnum { "x509", X509 }, }; - private string Value; + private string _value; + + public TypeEnum() + { + + } public TypeEnum(string value) { - Value = value; + _value = value; } public static TypeEnum FromValue(string value) @@ -57,17 +63,17 @@ public static TypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -96,7 +102,7 @@ public bool Equals(TypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(TypeEnum a, TypeEnum b) diff --git a/Services/Ecs/V2/Model/NovaCreateKeypairRequest.cs b/Services/Ecs/V2/Model/NovaCreateKeypairRequest.cs index d74c296..6e2b6ed 100755 --- a/Services/Ecs/V2/Model/NovaCreateKeypairRequest.cs +++ b/Services/Ecs/V2/Model/NovaCreateKeypairRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/NovaCreateKeypairRequestBody.cs b/Services/Ecs/V2/Model/NovaCreateKeypairRequestBody.cs index 46cdd4d..75149df 100755 --- a/Services/Ecs/V2/Model/NovaCreateKeypairRequestBody.cs +++ b/Services/Ecs/V2/Model/NovaCreateKeypairRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/NovaCreateKeypairResponse.cs b/Services/Ecs/V2/Model/NovaCreateKeypairResponse.cs index bc3dd94..2c66585 100755 --- a/Services/Ecs/V2/Model/NovaCreateKeypairResponse.cs +++ b/Services/Ecs/V2/Model/NovaCreateKeypairResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/NovaCreateServersOption.cs b/Services/Ecs/V2/Model/NovaCreateServersOption.cs index d2c671d..232ca45 100755 --- a/Services/Ecs/V2/Model/NovaCreateServersOption.cs +++ b/Services/Ecs/V2/Model/NovaCreateServersOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { @@ -34,11 +35,16 @@ public class OSDCFdiskConfigEnum { "MANUAL", MANUAL }, }; - private string Value; + private string _value; + + public OSDCFdiskConfigEnum() + { + + } public OSDCFdiskConfigEnum(string value) { - Value = value; + _value = value; } public static OSDCFdiskConfigEnum FromValue(string value) @@ -57,17 +63,17 @@ public static OSDCFdiskConfigEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -96,7 +102,7 @@ public bool Equals(OSDCFdiskConfigEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(OSDCFdiskConfigEnum a, OSDCFdiskConfigEnum b) diff --git a/Services/Ecs/V2/Model/NovaCreateServersRequest.cs b/Services/Ecs/V2/Model/NovaCreateServersRequest.cs index 348b32c..11ddc10 100755 --- a/Services/Ecs/V2/Model/NovaCreateServersRequest.cs +++ b/Services/Ecs/V2/Model/NovaCreateServersRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/NovaCreateServersRequestBody.cs b/Services/Ecs/V2/Model/NovaCreateServersRequestBody.cs index 7a0c8cd..7f3dcdf 100755 --- a/Services/Ecs/V2/Model/NovaCreateServersRequestBody.cs +++ b/Services/Ecs/V2/Model/NovaCreateServersRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/NovaCreateServersResponse.cs b/Services/Ecs/V2/Model/NovaCreateServersResponse.cs index 22a1541..61653b3 100755 --- a/Services/Ecs/V2/Model/NovaCreateServersResponse.cs +++ b/Services/Ecs/V2/Model/NovaCreateServersResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/NovaCreateServersResult.cs b/Services/Ecs/V2/Model/NovaCreateServersResult.cs index 0800698..dc9e244 100755 --- a/Services/Ecs/V2/Model/NovaCreateServersResult.cs +++ b/Services/Ecs/V2/Model/NovaCreateServersResult.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { @@ -34,11 +35,16 @@ public class OSDCFdiskConfigEnum { "AUTO", AUTO }, }; - private string Value; + private string _value; + + public OSDCFdiskConfigEnum() + { + + } public OSDCFdiskConfigEnum(string value) { - Value = value; + _value = value; } public static OSDCFdiskConfigEnum FromValue(string value) @@ -57,17 +63,17 @@ public static OSDCFdiskConfigEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -96,7 +102,7 @@ public bool Equals(OSDCFdiskConfigEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(OSDCFdiskConfigEnum a, OSDCFdiskConfigEnum b) diff --git a/Services/Ecs/V2/Model/NovaCreateServersSchedulerHint.cs b/Services/Ecs/V2/Model/NovaCreateServersSchedulerHint.cs index 6d5df94..67852f9 100755 --- a/Services/Ecs/V2/Model/NovaCreateServersSchedulerHint.cs +++ b/Services/Ecs/V2/Model/NovaCreateServersSchedulerHint.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/NovaDeleteKeypairRequest.cs b/Services/Ecs/V2/Model/NovaDeleteKeypairRequest.cs index 6c8d8ba..4b6e70b 100755 --- a/Services/Ecs/V2/Model/NovaDeleteKeypairRequest.cs +++ b/Services/Ecs/V2/Model/NovaDeleteKeypairRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/NovaDeleteKeypairResponse.cs b/Services/Ecs/V2/Model/NovaDeleteKeypairResponse.cs index c526898..5269aef 100755 --- a/Services/Ecs/V2/Model/NovaDeleteKeypairResponse.cs +++ b/Services/Ecs/V2/Model/NovaDeleteKeypairResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/NovaDeleteServerRequest.cs b/Services/Ecs/V2/Model/NovaDeleteServerRequest.cs index 9d6f7fa..9eb5fc6 100755 --- a/Services/Ecs/V2/Model/NovaDeleteServerRequest.cs +++ b/Services/Ecs/V2/Model/NovaDeleteServerRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/NovaDeleteServerResponse.cs b/Services/Ecs/V2/Model/NovaDeleteServerResponse.cs index 86b5bcc..adf5d3d 100755 --- a/Services/Ecs/V2/Model/NovaDeleteServerResponse.cs +++ b/Services/Ecs/V2/Model/NovaDeleteServerResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/NovaDisassociateSecurityGroupRequest.cs b/Services/Ecs/V2/Model/NovaDisassociateSecurityGroupRequest.cs index d8a7282..5319acb 100755 --- a/Services/Ecs/V2/Model/NovaDisassociateSecurityGroupRequest.cs +++ b/Services/Ecs/V2/Model/NovaDisassociateSecurityGroupRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/NovaDisassociateSecurityGroupRequestBody.cs b/Services/Ecs/V2/Model/NovaDisassociateSecurityGroupRequestBody.cs index a1ab133..b1b0235 100755 --- a/Services/Ecs/V2/Model/NovaDisassociateSecurityGroupRequestBody.cs +++ b/Services/Ecs/V2/Model/NovaDisassociateSecurityGroupRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/NovaDisassociateSecurityGroupResponse.cs b/Services/Ecs/V2/Model/NovaDisassociateSecurityGroupResponse.cs index a0607fa..4e1fe84 100755 --- a/Services/Ecs/V2/Model/NovaDisassociateSecurityGroupResponse.cs +++ b/Services/Ecs/V2/Model/NovaDisassociateSecurityGroupResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/NovaKeypair.cs b/Services/Ecs/V2/Model/NovaKeypair.cs index 0f7962a..eed20af 100755 --- a/Services/Ecs/V2/Model/NovaKeypair.cs +++ b/Services/Ecs/V2/Model/NovaKeypair.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/NovaKeypairDetail.cs b/Services/Ecs/V2/Model/NovaKeypairDetail.cs index cd0c94d..5bb5f7c 100755 --- a/Services/Ecs/V2/Model/NovaKeypairDetail.cs +++ b/Services/Ecs/V2/Model/NovaKeypairDetail.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/NovaLink.cs b/Services/Ecs/V2/Model/NovaLink.cs index d7ba46a..0099ffa 100755 --- a/Services/Ecs/V2/Model/NovaLink.cs +++ b/Services/Ecs/V2/Model/NovaLink.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { @@ -46,11 +47,16 @@ public class RelEnum { "describedby", DESCRIBEDBY }, }; - private string Value; + private string _value; + + public RelEnum() + { + + } public RelEnum(string value) { - Value = value; + _value = value; } public static RelEnum FromValue(string value) @@ -69,17 +75,17 @@ public static RelEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -108,7 +114,7 @@ public bool Equals(RelEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(RelEnum a, RelEnum b) diff --git a/Services/Ecs/V2/Model/NovaListAvailabilityZonesRequest.cs b/Services/Ecs/V2/Model/NovaListAvailabilityZonesRequest.cs index 5138b29..548c8da 100755 --- a/Services/Ecs/V2/Model/NovaListAvailabilityZonesRequest.cs +++ b/Services/Ecs/V2/Model/NovaListAvailabilityZonesRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/NovaListAvailabilityZonesResponse.cs b/Services/Ecs/V2/Model/NovaListAvailabilityZonesResponse.cs index 0927308..6d85246 100755 --- a/Services/Ecs/V2/Model/NovaListAvailabilityZonesResponse.cs +++ b/Services/Ecs/V2/Model/NovaListAvailabilityZonesResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/NovaListKeypairsRequest.cs b/Services/Ecs/V2/Model/NovaListKeypairsRequest.cs index 15ef923..e5c3b0f 100755 --- a/Services/Ecs/V2/Model/NovaListKeypairsRequest.cs +++ b/Services/Ecs/V2/Model/NovaListKeypairsRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/NovaListKeypairsResponse.cs b/Services/Ecs/V2/Model/NovaListKeypairsResponse.cs index 8ffb811..ce730fa 100755 --- a/Services/Ecs/V2/Model/NovaListKeypairsResponse.cs +++ b/Services/Ecs/V2/Model/NovaListKeypairsResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/NovaListKeypairsResult.cs b/Services/Ecs/V2/Model/NovaListKeypairsResult.cs index 5f89e53..5ad27f9 100755 --- a/Services/Ecs/V2/Model/NovaListKeypairsResult.cs +++ b/Services/Ecs/V2/Model/NovaListKeypairsResult.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/NovaListServerSecurityGroupsRequest.cs b/Services/Ecs/V2/Model/NovaListServerSecurityGroupsRequest.cs index 1aecac6..4dda9df 100755 --- a/Services/Ecs/V2/Model/NovaListServerSecurityGroupsRequest.cs +++ b/Services/Ecs/V2/Model/NovaListServerSecurityGroupsRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/NovaListServerSecurityGroupsResponse.cs b/Services/Ecs/V2/Model/NovaListServerSecurityGroupsResponse.cs index c2b9686..08f5109 100755 --- a/Services/Ecs/V2/Model/NovaListServerSecurityGroupsResponse.cs +++ b/Services/Ecs/V2/Model/NovaListServerSecurityGroupsResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/NovaListServersDetailsRequest.cs b/Services/Ecs/V2/Model/NovaListServersDetailsRequest.cs index c55d15d..2dace32 100755 --- a/Services/Ecs/V2/Model/NovaListServersDetailsRequest.cs +++ b/Services/Ecs/V2/Model/NovaListServersDetailsRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { @@ -88,11 +89,16 @@ public class SortKeyEnum { "vm_state", VM_STATE }, }; - private string Value; + private string _value; + + public SortKeyEnum() + { + + } public SortKeyEnum(string value) { - Value = value; + _value = value; } public static SortKeyEnum FromValue(string value) @@ -111,17 +117,17 @@ public static SortKeyEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -150,7 +156,7 @@ public bool Equals(SortKeyEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(SortKeyEnum a, SortKeyEnum b) @@ -266,11 +272,16 @@ public class StatusEnum { "VERIFY_RESIZE", VERIFY_RESIZE }, }; - private string Value; + private string _value; + + public StatusEnum() + { + + } public StatusEnum(string value) { - Value = value; + _value = value; } public static StatusEnum FromValue(string value) @@ -289,17 +300,17 @@ public static StatusEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -328,7 +339,7 @@ public bool Equals(StatusEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(StatusEnum a, StatusEnum b) diff --git a/Services/Ecs/V2/Model/NovaListServersDetailsResponse.cs b/Services/Ecs/V2/Model/NovaListServersDetailsResponse.cs index fa311e6..8c51bf3 100755 --- a/Services/Ecs/V2/Model/NovaListServersDetailsResponse.cs +++ b/Services/Ecs/V2/Model/NovaListServersDetailsResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/NovaNetwork.cs b/Services/Ecs/V2/Model/NovaNetwork.cs index ef9adc9..08e5c8e 100755 --- a/Services/Ecs/V2/Model/NovaNetwork.cs +++ b/Services/Ecs/V2/Model/NovaNetwork.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/NovaRemoveSecurityGroupOption.cs b/Services/Ecs/V2/Model/NovaRemoveSecurityGroupOption.cs index 4e8ac4d..47128b6 100755 --- a/Services/Ecs/V2/Model/NovaRemoveSecurityGroupOption.cs +++ b/Services/Ecs/V2/Model/NovaRemoveSecurityGroupOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/NovaSecurityGroup.cs b/Services/Ecs/V2/Model/NovaSecurityGroup.cs index cb54c9b..2f7aedb 100755 --- a/Services/Ecs/V2/Model/NovaSecurityGroup.cs +++ b/Services/Ecs/V2/Model/NovaSecurityGroup.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/NovaSecurityGroupCommonGroup.cs b/Services/Ecs/V2/Model/NovaSecurityGroupCommonGroup.cs index 0bd6456..c450cf3 100755 --- a/Services/Ecs/V2/Model/NovaSecurityGroupCommonGroup.cs +++ b/Services/Ecs/V2/Model/NovaSecurityGroupCommonGroup.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/NovaSecurityGroupCommonIpRange.cs b/Services/Ecs/V2/Model/NovaSecurityGroupCommonIpRange.cs index 4f756fe..15ad2fc 100755 --- a/Services/Ecs/V2/Model/NovaSecurityGroupCommonIpRange.cs +++ b/Services/Ecs/V2/Model/NovaSecurityGroupCommonIpRange.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/NovaSecurityGroupCommonRule.cs b/Services/Ecs/V2/Model/NovaSecurityGroupCommonRule.cs index af343c1..2ed52f1 100755 --- a/Services/Ecs/V2/Model/NovaSecurityGroupCommonRule.cs +++ b/Services/Ecs/V2/Model/NovaSecurityGroupCommonRule.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/NovaServer.cs b/Services/Ecs/V2/Model/NovaServer.cs index 56f103d..44aaa99 100755 --- a/Services/Ecs/V2/Model/NovaServer.cs +++ b/Services/Ecs/V2/Model/NovaServer.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { @@ -106,11 +107,16 @@ public class StatusEnum { "VERIFY_RESIZE", VERIFY_RESIZE }, }; - private string Value; + private string _value; + + public StatusEnum() + { + + } public StatusEnum(string value) { - Value = value; + _value = value; } public static StatusEnum FromValue(string value) @@ -129,17 +135,17 @@ public static StatusEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -168,7 +174,7 @@ public bool Equals(StatusEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(StatusEnum a, StatusEnum b) @@ -212,11 +218,16 @@ public class OSDCFdiskConfigEnum { "MANUAL", MANUAL }, }; - private string Value; + private string _value; + + public OSDCFdiskConfigEnum() + { + + } public OSDCFdiskConfigEnum(string value) { - Value = value; + _value = value; } public static OSDCFdiskConfigEnum FromValue(string value) @@ -235,17 +246,17 @@ public static OSDCFdiskConfigEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -274,7 +285,7 @@ public bool Equals(OSDCFdiskConfigEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(OSDCFdiskConfigEnum a, OSDCFdiskConfigEnum b) @@ -390,11 +401,16 @@ public class OSEXTSTStaskStateEnum { "SHELVED_OFFLOADED", SHELVED_OFFLOADED }, }; - private string Value; + private string _value; + + public OSEXTSTStaskStateEnum() + { + + } public OSEXTSTStaskStateEnum(string value) { - Value = value; + _value = value; } public static OSEXTSTStaskStateEnum FromValue(string value) @@ -413,17 +429,17 @@ public static OSEXTSTStaskStateEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -452,7 +468,7 @@ public bool Equals(OSEXTSTStaskStateEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(OSEXTSTStaskStateEnum a, OSEXTSTStaskStateEnum b) @@ -556,11 +572,16 @@ public class OSEXTSTSvmStateEnum { "SHELVED_OFFLOADED", SHELVED_OFFLOADED }, }; - private string Value; + private string _value; + + public OSEXTSTSvmStateEnum() + { + + } public OSEXTSTSvmStateEnum(string value) { - Value = value; + _value = value; } public static OSEXTSTSvmStateEnum FromValue(string value) @@ -579,17 +600,17 @@ public static OSEXTSTSvmStateEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -618,7 +639,7 @@ public bool Equals(OSEXTSTSvmStateEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(OSEXTSTSvmStateEnum a, OSEXTSTSvmStateEnum b) @@ -674,11 +695,16 @@ public class HostStatusEnum { "MAINTENANCE", MAINTENANCE }, }; - private string Value; + private string _value; + + public HostStatusEnum() + { + + } public HostStatusEnum(string value) { - Value = value; + _value = value; } public static HostStatusEnum FromValue(string value) @@ -697,17 +723,17 @@ public static HostStatusEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -736,7 +762,7 @@ public bool Equals(HostStatusEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(HostStatusEnum a, HostStatusEnum b) diff --git a/Services/Ecs/V2/Model/NovaServerBlockDeviceMapping.cs b/Services/Ecs/V2/Model/NovaServerBlockDeviceMapping.cs index c0cf2a2..1c32bf7 100755 --- a/Services/Ecs/V2/Model/NovaServerBlockDeviceMapping.cs +++ b/Services/Ecs/V2/Model/NovaServerBlockDeviceMapping.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { @@ -46,11 +47,16 @@ public class SourceTypeEnum { "image", IMAGE }, }; - private string Value; + private string _value; + + public SourceTypeEnum() + { + + } public SourceTypeEnum(string value) { - Value = value; + _value = value; } public static SourceTypeEnum FromValue(string value) @@ -69,17 +75,17 @@ public static SourceTypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -108,7 +114,7 @@ public bool Equals(SourceTypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(SourceTypeEnum a, SourceTypeEnum b) @@ -146,11 +152,16 @@ public class DestinationTypeEnum { "volume", VOLUME }, }; - private string Value; + private string _value; + + public DestinationTypeEnum() + { + + } public DestinationTypeEnum(string value) { - Value = value; + _value = value; } public static DestinationTypeEnum FromValue(string value) @@ -169,17 +180,17 @@ public static DestinationTypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -208,7 +219,7 @@ public bool Equals(DestinationTypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(DestinationTypeEnum a, DestinationTypeEnum b) diff --git a/Services/Ecs/V2/Model/NovaServerFault.cs b/Services/Ecs/V2/Model/NovaServerFault.cs index 201761c..4e4f3e4 100755 --- a/Services/Ecs/V2/Model/NovaServerFault.cs +++ b/Services/Ecs/V2/Model/NovaServerFault.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/NovaServerFlavor.cs b/Services/Ecs/V2/Model/NovaServerFlavor.cs index 410d0a2..1592b7b 100755 --- a/Services/Ecs/V2/Model/NovaServerFlavor.cs +++ b/Services/Ecs/V2/Model/NovaServerFlavor.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/NovaServerImage.cs b/Services/Ecs/V2/Model/NovaServerImage.cs index 314a477..9f747be 100755 --- a/Services/Ecs/V2/Model/NovaServerImage.cs +++ b/Services/Ecs/V2/Model/NovaServerImage.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/NovaServerNetwork.cs b/Services/Ecs/V2/Model/NovaServerNetwork.cs index 90e5730..15dd2a0 100755 --- a/Services/Ecs/V2/Model/NovaServerNetwork.cs +++ b/Services/Ecs/V2/Model/NovaServerNetwork.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/NovaServerSchedulerHints.cs b/Services/Ecs/V2/Model/NovaServerSchedulerHints.cs index 55c55e9..bc66022 100755 --- a/Services/Ecs/V2/Model/NovaServerSchedulerHints.cs +++ b/Services/Ecs/V2/Model/NovaServerSchedulerHints.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { @@ -34,11 +35,16 @@ public class TenancyEnum { "dedicated", DEDICATED }, }; - private string Value; + private string _value; + + public TenancyEnum() + { + + } public TenancyEnum(string value) { - Value = value; + _value = value; } public static TenancyEnum FromValue(string value) @@ -57,17 +63,17 @@ public static TenancyEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -96,7 +102,7 @@ public bool Equals(TenancyEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(TenancyEnum a, TenancyEnum b) diff --git a/Services/Ecs/V2/Model/NovaServerSecurityGroup.cs b/Services/Ecs/V2/Model/NovaServerSecurityGroup.cs index 190978c..4bd0e38 100755 --- a/Services/Ecs/V2/Model/NovaServerSecurityGroup.cs +++ b/Services/Ecs/V2/Model/NovaServerSecurityGroup.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/NovaServerVolume.cs b/Services/Ecs/V2/Model/NovaServerVolume.cs index 73e99a3..a1c9cb6 100755 --- a/Services/Ecs/V2/Model/NovaServerVolume.cs +++ b/Services/Ecs/V2/Model/NovaServerVolume.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/NovaShowKeypairRequest.cs b/Services/Ecs/V2/Model/NovaShowKeypairRequest.cs index 30df4cb..92c1d30 100755 --- a/Services/Ecs/V2/Model/NovaShowKeypairRequest.cs +++ b/Services/Ecs/V2/Model/NovaShowKeypairRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/NovaShowKeypairResponse.cs b/Services/Ecs/V2/Model/NovaShowKeypairResponse.cs index 3118d37..890ddb8 100755 --- a/Services/Ecs/V2/Model/NovaShowKeypairResponse.cs +++ b/Services/Ecs/V2/Model/NovaShowKeypairResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/NovaShowServerRequest.cs b/Services/Ecs/V2/Model/NovaShowServerRequest.cs index c181291..d687159 100755 --- a/Services/Ecs/V2/Model/NovaShowServerRequest.cs +++ b/Services/Ecs/V2/Model/NovaShowServerRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/NovaShowServerResponse.cs b/Services/Ecs/V2/Model/NovaShowServerResponse.cs index 7654968..0ff69d0 100755 --- a/Services/Ecs/V2/Model/NovaShowServerResponse.cs +++ b/Services/Ecs/V2/Model/NovaShowServerResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/NovaSimpleKeypair.cs b/Services/Ecs/V2/Model/NovaSimpleKeypair.cs index 9ec25c8..500cdff 100755 --- a/Services/Ecs/V2/Model/NovaSimpleKeypair.cs +++ b/Services/Ecs/V2/Model/NovaSimpleKeypair.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/PageLink.cs b/Services/Ecs/V2/Model/PageLink.cs index 358ecf8..62fd7c1 100755 --- a/Services/Ecs/V2/Model/PageLink.cs +++ b/Services/Ecs/V2/Model/PageLink.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/PostPaidServer.cs b/Services/Ecs/V2/Model/PostPaidServer.cs index 089cf6b..1214940 100755 --- a/Services/Ecs/V2/Model/PostPaidServer.cs +++ b/Services/Ecs/V2/Model/PostPaidServer.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/PostPaidServerDataVolume.cs b/Services/Ecs/V2/Model/PostPaidServerDataVolume.cs index 8259321..03545bb 100755 --- a/Services/Ecs/V2/Model/PostPaidServerDataVolume.cs +++ b/Services/Ecs/V2/Model/PostPaidServerDataVolume.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { @@ -64,11 +65,16 @@ public class VolumetypeEnum { "ESSD", ESSD }, }; - private string Value; + private string _value; + + public VolumetypeEnum() + { + + } public VolumetypeEnum(string value) { - Value = value; + _value = value; } public static VolumetypeEnum FromValue(string value) @@ -87,17 +93,17 @@ public static VolumetypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -126,7 +132,7 @@ public bool Equals(VolumetypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(VolumetypeEnum a, VolumetypeEnum b) @@ -164,11 +170,16 @@ public class ClusterTypeEnum { "DSS", DSS }, }; - private string Value; + private string _value; + + public ClusterTypeEnum() + { + + } public ClusterTypeEnum(string value) { - Value = value; + _value = value; } public static ClusterTypeEnum FromValue(string value) @@ -187,17 +198,17 @@ public static ClusterTypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -226,7 +237,7 @@ public bool Equals(ClusterTypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(ClusterTypeEnum a, ClusterTypeEnum b) diff --git a/Services/Ecs/V2/Model/PostPaidServerDataVolumeExtendParam.cs b/Services/Ecs/V2/Model/PostPaidServerDataVolumeExtendParam.cs index a015457..cde8f5a 100755 --- a/Services/Ecs/V2/Model/PostPaidServerDataVolumeExtendParam.cs +++ b/Services/Ecs/V2/Model/PostPaidServerDataVolumeExtendParam.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/PostPaidServerDataVolumeMetadata.cs b/Services/Ecs/V2/Model/PostPaidServerDataVolumeMetadata.cs index 9b2960e..f40dafd 100755 --- a/Services/Ecs/V2/Model/PostPaidServerDataVolumeMetadata.cs +++ b/Services/Ecs/V2/Model/PostPaidServerDataVolumeMetadata.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/PostPaidServerEip.cs b/Services/Ecs/V2/Model/PostPaidServerEip.cs index bff62c3..da38c99 100755 --- a/Services/Ecs/V2/Model/PostPaidServerEip.cs +++ b/Services/Ecs/V2/Model/PostPaidServerEip.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/PostPaidServerEipBandwidth.cs b/Services/Ecs/V2/Model/PostPaidServerEipBandwidth.cs index da4adfa..f3c4ee2 100755 --- a/Services/Ecs/V2/Model/PostPaidServerEipBandwidth.cs +++ b/Services/Ecs/V2/Model/PostPaidServerEipBandwidth.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { @@ -34,11 +35,16 @@ public class SharetypeEnum { "WHOLE", WHOLE }, }; - private string Value; + private string _value; + + public SharetypeEnum() + { + + } public SharetypeEnum(string value) { - Value = value; + _value = value; } public static SharetypeEnum FromValue(string value) @@ -57,17 +63,17 @@ public static SharetypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -96,7 +102,7 @@ public bool Equals(SharetypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(SharetypeEnum a, SharetypeEnum b) diff --git a/Services/Ecs/V2/Model/PostPaidServerEipExtendParam.cs b/Services/Ecs/V2/Model/PostPaidServerEipExtendParam.cs index aeab786..57ad4a3 100755 --- a/Services/Ecs/V2/Model/PostPaidServerEipExtendParam.cs +++ b/Services/Ecs/V2/Model/PostPaidServerEipExtendParam.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { @@ -34,11 +35,16 @@ public class ChargingModeEnum { "postPaid", POSTPAID }, }; - private string Value; + private string _value; + + public ChargingModeEnum() + { + + } public ChargingModeEnum(string value) { - Value = value; + _value = value; } public static ChargingModeEnum FromValue(string value) @@ -57,17 +63,17 @@ public static ChargingModeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -96,7 +102,7 @@ public bool Equals(ChargingModeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(ChargingModeEnum a, ChargingModeEnum b) diff --git a/Services/Ecs/V2/Model/PostPaidServerExtendParam.cs b/Services/Ecs/V2/Model/PostPaidServerExtendParam.cs index 2d81b14..67dc2c1 100755 --- a/Services/Ecs/V2/Model/PostPaidServerExtendParam.cs +++ b/Services/Ecs/V2/Model/PostPaidServerExtendParam.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { @@ -28,11 +29,16 @@ public class InterruptionPolicyEnum { "immediate", IMMEDIATE }, }; - private string Value; + private string _value; + + public InterruptionPolicyEnum() + { + + } public InterruptionPolicyEnum(string value) { - Value = value; + _value = value; } public static InterruptionPolicyEnum FromValue(string value) @@ -51,17 +57,17 @@ public static InterruptionPolicyEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -90,7 +96,7 @@ public bool Equals(InterruptionPolicyEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(InterruptionPolicyEnum a, InterruptionPolicyEnum b) diff --git a/Services/Ecs/V2/Model/PostPaidServerIpv6Bandwidth.cs b/Services/Ecs/V2/Model/PostPaidServerIpv6Bandwidth.cs index ce6b425..bece7d2 100755 --- a/Services/Ecs/V2/Model/PostPaidServerIpv6Bandwidth.cs +++ b/Services/Ecs/V2/Model/PostPaidServerIpv6Bandwidth.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/PostPaidServerNic.cs b/Services/Ecs/V2/Model/PostPaidServerNic.cs index d31ae3a..3dbfe33 100755 --- a/Services/Ecs/V2/Model/PostPaidServerNic.cs +++ b/Services/Ecs/V2/Model/PostPaidServerNic.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/PostPaidServerPublicip.cs b/Services/Ecs/V2/Model/PostPaidServerPublicip.cs index f6de1db..99ab638 100755 --- a/Services/Ecs/V2/Model/PostPaidServerPublicip.cs +++ b/Services/Ecs/V2/Model/PostPaidServerPublicip.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/PostPaidServerRootVolume.cs b/Services/Ecs/V2/Model/PostPaidServerRootVolume.cs index 630ecc4..94e11e1 100755 --- a/Services/Ecs/V2/Model/PostPaidServerRootVolume.cs +++ b/Services/Ecs/V2/Model/PostPaidServerRootVolume.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { @@ -64,11 +65,16 @@ public class VolumetypeEnum { "ESSD", ESSD }, }; - private string Value; + private string _value; + + public VolumetypeEnum() + { + + } public VolumetypeEnum(string value) { - Value = value; + _value = value; } public static VolumetypeEnum FromValue(string value) @@ -87,17 +93,17 @@ public static VolumetypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -126,7 +132,7 @@ public bool Equals(VolumetypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(VolumetypeEnum a, VolumetypeEnum b) @@ -164,11 +170,16 @@ public class ClusterTypeEnum { "DSS", DSS }, }; - private string Value; + private string _value; + + public ClusterTypeEnum() + { + + } public ClusterTypeEnum(string value) { - Value = value; + _value = value; } public static ClusterTypeEnum FromValue(string value) @@ -187,17 +198,17 @@ public static ClusterTypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -226,7 +237,7 @@ public bool Equals(ClusterTypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(ClusterTypeEnum a, ClusterTypeEnum b) diff --git a/Services/Ecs/V2/Model/PostPaidServerRootVolumeExtendParam.cs b/Services/Ecs/V2/Model/PostPaidServerRootVolumeExtendParam.cs index 3ada093..dc92666 100755 --- a/Services/Ecs/V2/Model/PostPaidServerRootVolumeExtendParam.cs +++ b/Services/Ecs/V2/Model/PostPaidServerRootVolumeExtendParam.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/PostPaidServerSchedulerHints.cs b/Services/Ecs/V2/Model/PostPaidServerSchedulerHints.cs index bf7d0c9..0f79ce5 100755 --- a/Services/Ecs/V2/Model/PostPaidServerSchedulerHints.cs +++ b/Services/Ecs/V2/Model/PostPaidServerSchedulerHints.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/PostPaidServerSecurityGroup.cs b/Services/Ecs/V2/Model/PostPaidServerSecurityGroup.cs index a5e7763..3496fb4 100755 --- a/Services/Ecs/V2/Model/PostPaidServerSecurityGroup.cs +++ b/Services/Ecs/V2/Model/PostPaidServerSecurityGroup.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/PostPaidServerTag.cs b/Services/Ecs/V2/Model/PostPaidServerTag.cs index cc1d36a..16f1251 100755 --- a/Services/Ecs/V2/Model/PostPaidServerTag.cs +++ b/Services/Ecs/V2/Model/PostPaidServerTag.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/PrePaidServer.cs b/Services/Ecs/V2/Model/PrePaidServer.cs index a1a1ef1..b4e69cb 100755 --- a/Services/Ecs/V2/Model/PrePaidServer.cs +++ b/Services/Ecs/V2/Model/PrePaidServer.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/PrePaidServerDataVolume.cs b/Services/Ecs/V2/Model/PrePaidServerDataVolume.cs index 42fad80..521f771 100755 --- a/Services/Ecs/V2/Model/PrePaidServerDataVolume.cs +++ b/Services/Ecs/V2/Model/PrePaidServerDataVolume.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { @@ -64,11 +65,16 @@ public class VolumetypeEnum { "ESSD", ESSD }, }; - private string Value; + private string _value; + + public VolumetypeEnum() + { + + } public VolumetypeEnum(string value) { - Value = value; + _value = value; } public static VolumetypeEnum FromValue(string value) @@ -87,17 +93,17 @@ public static VolumetypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -126,7 +132,7 @@ public bool Equals(VolumetypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(VolumetypeEnum a, VolumetypeEnum b) @@ -164,11 +170,16 @@ public class ClusterTypeEnum { "DSS", DSS }, }; - private string Value; + private string _value; + + public ClusterTypeEnum() + { + + } public ClusterTypeEnum(string value) { - Value = value; + _value = value; } public static ClusterTypeEnum FromValue(string value) @@ -187,17 +198,17 @@ public static ClusterTypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -226,7 +237,7 @@ public bool Equals(ClusterTypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(ClusterTypeEnum a, ClusterTypeEnum b) diff --git a/Services/Ecs/V2/Model/PrePaidServerDataVolumeExtendParam.cs b/Services/Ecs/V2/Model/PrePaidServerDataVolumeExtendParam.cs index 39c448d..4a20ed0 100755 --- a/Services/Ecs/V2/Model/PrePaidServerDataVolumeExtendParam.cs +++ b/Services/Ecs/V2/Model/PrePaidServerDataVolumeExtendParam.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/PrePaidServerDataVolumeMetadata.cs b/Services/Ecs/V2/Model/PrePaidServerDataVolumeMetadata.cs index b8878a7..62d2a1f 100755 --- a/Services/Ecs/V2/Model/PrePaidServerDataVolumeMetadata.cs +++ b/Services/Ecs/V2/Model/PrePaidServerDataVolumeMetadata.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/PrePaidServerEip.cs b/Services/Ecs/V2/Model/PrePaidServerEip.cs index d8f88de..c67f106 100755 --- a/Services/Ecs/V2/Model/PrePaidServerEip.cs +++ b/Services/Ecs/V2/Model/PrePaidServerEip.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/PrePaidServerEipBandwidth.cs b/Services/Ecs/V2/Model/PrePaidServerEipBandwidth.cs index 3c10af3..018b7a3 100755 --- a/Services/Ecs/V2/Model/PrePaidServerEipBandwidth.cs +++ b/Services/Ecs/V2/Model/PrePaidServerEipBandwidth.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { @@ -34,11 +35,16 @@ public class SharetypeEnum { "WHOLE", WHOLE }, }; - private string Value; + private string _value; + + public SharetypeEnum() + { + + } public SharetypeEnum(string value) { - Value = value; + _value = value; } public static SharetypeEnum FromValue(string value) @@ -57,17 +63,17 @@ public static SharetypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -96,7 +102,7 @@ public bool Equals(SharetypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(SharetypeEnum a, SharetypeEnum b) diff --git a/Services/Ecs/V2/Model/PrePaidServerEipExtendParam.cs b/Services/Ecs/V2/Model/PrePaidServerEipExtendParam.cs index 9504d89..acb09b2 100755 --- a/Services/Ecs/V2/Model/PrePaidServerEipExtendParam.cs +++ b/Services/Ecs/V2/Model/PrePaidServerEipExtendParam.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { @@ -34,11 +35,16 @@ public class ChargingModeEnum { "postPaid", POSTPAID }, }; - private string Value; + private string _value; + + public ChargingModeEnum() + { + + } public ChargingModeEnum(string value) { - Value = value; + _value = value; } public static ChargingModeEnum FromValue(string value) @@ -57,17 +63,17 @@ public static ChargingModeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -96,7 +102,7 @@ public bool Equals(ChargingModeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(ChargingModeEnum a, ChargingModeEnum b) diff --git a/Services/Ecs/V2/Model/PrePaidServerExtendParam.cs b/Services/Ecs/V2/Model/PrePaidServerExtendParam.cs index 72b743e..9395bbc 100755 --- a/Services/Ecs/V2/Model/PrePaidServerExtendParam.cs +++ b/Services/Ecs/V2/Model/PrePaidServerExtendParam.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { @@ -34,11 +35,16 @@ public class ChargingModeEnum { "postPaid", POSTPAID }, }; - private string Value; + private string _value; + + public ChargingModeEnum() + { + + } public ChargingModeEnum(string value) { - Value = value; + _value = value; } public static ChargingModeEnum FromValue(string value) @@ -57,17 +63,17 @@ public static ChargingModeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -96,7 +102,7 @@ public bool Equals(ChargingModeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(ChargingModeEnum a, ChargingModeEnum b) @@ -140,11 +146,16 @@ public class PeriodTypeEnum { "year", YEAR }, }; - private string Value; + private string _value; + + public PeriodTypeEnum() + { + + } public PeriodTypeEnum(string value) { - Value = value; + _value = value; } public static PeriodTypeEnum FromValue(string value) @@ -163,17 +174,17 @@ public static PeriodTypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -202,7 +213,7 @@ public bool Equals(PeriodTypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(PeriodTypeEnum a, PeriodTypeEnum b) @@ -246,11 +257,16 @@ public class IsAutoRenewEnum { "false", FALSE }, }; - private string Value; + private string _value; + + public IsAutoRenewEnum() + { + + } public IsAutoRenewEnum(string value) { - Value = value; + _value = value; } public static IsAutoRenewEnum FromValue(string value) @@ -269,17 +285,17 @@ public static IsAutoRenewEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -308,7 +324,7 @@ public bool Equals(IsAutoRenewEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(IsAutoRenewEnum a, IsAutoRenewEnum b) @@ -352,11 +368,16 @@ public class IsAutoPayEnum { "false", FALSE }, }; - private string Value; + private string _value; + + public IsAutoPayEnum() + { + + } public IsAutoPayEnum(string value) { - Value = value; + _value = value; } public static IsAutoPayEnum FromValue(string value) @@ -375,17 +396,17 @@ public static IsAutoPayEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -414,7 +435,7 @@ public bool Equals(IsAutoPayEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(IsAutoPayEnum a, IsAutoPayEnum b) @@ -452,11 +473,16 @@ public class InterruptionPolicyEnum { "immediate", IMMEDIATE }, }; - private string Value; + private string _value; + + public InterruptionPolicyEnum() + { + + } public InterruptionPolicyEnum(string value) { - Value = value; + _value = value; } public static InterruptionPolicyEnum FromValue(string value) @@ -475,17 +501,17 @@ public static InterruptionPolicyEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -514,7 +540,7 @@ public bool Equals(InterruptionPolicyEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(InterruptionPolicyEnum a, InterruptionPolicyEnum b) diff --git a/Services/Ecs/V2/Model/PrePaidServerIpv6Bandwidth.cs b/Services/Ecs/V2/Model/PrePaidServerIpv6Bandwidth.cs index 976d846..99a54a5 100755 --- a/Services/Ecs/V2/Model/PrePaidServerIpv6Bandwidth.cs +++ b/Services/Ecs/V2/Model/PrePaidServerIpv6Bandwidth.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/PrePaidServerNic.cs b/Services/Ecs/V2/Model/PrePaidServerNic.cs index 7c75817..9b59b85 100755 --- a/Services/Ecs/V2/Model/PrePaidServerNic.cs +++ b/Services/Ecs/V2/Model/PrePaidServerNic.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/PrePaidServerPublicip.cs b/Services/Ecs/V2/Model/PrePaidServerPublicip.cs index 036465c..efeaafa 100755 --- a/Services/Ecs/V2/Model/PrePaidServerPublicip.cs +++ b/Services/Ecs/V2/Model/PrePaidServerPublicip.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/PrePaidServerRootVolume.cs b/Services/Ecs/V2/Model/PrePaidServerRootVolume.cs index 0b307d0..5739edc 100755 --- a/Services/Ecs/V2/Model/PrePaidServerRootVolume.cs +++ b/Services/Ecs/V2/Model/PrePaidServerRootVolume.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { @@ -64,11 +65,16 @@ public class VolumetypeEnum { "ESSD", ESSD }, }; - private string Value; + private string _value; + + public VolumetypeEnum() + { + + } public VolumetypeEnum(string value) { - Value = value; + _value = value; } public static VolumetypeEnum FromValue(string value) @@ -87,17 +93,17 @@ public static VolumetypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -126,7 +132,7 @@ public bool Equals(VolumetypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(VolumetypeEnum a, VolumetypeEnum b) @@ -164,11 +170,16 @@ public class ClusterTypeEnum { "DSS", DSS }, }; - private string Value; + private string _value; + + public ClusterTypeEnum() + { + + } public ClusterTypeEnum(string value) { - Value = value; + _value = value; } public static ClusterTypeEnum FromValue(string value) @@ -187,17 +198,17 @@ public static ClusterTypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -226,7 +237,7 @@ public bool Equals(ClusterTypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(ClusterTypeEnum a, ClusterTypeEnum b) diff --git a/Services/Ecs/V2/Model/PrePaidServerRootVolumeExtendParam.cs b/Services/Ecs/V2/Model/PrePaidServerRootVolumeExtendParam.cs index 56208d4..9d0fc37 100755 --- a/Services/Ecs/V2/Model/PrePaidServerRootVolumeExtendParam.cs +++ b/Services/Ecs/V2/Model/PrePaidServerRootVolumeExtendParam.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/PrePaidServerSchedulerHints.cs b/Services/Ecs/V2/Model/PrePaidServerSchedulerHints.cs index 5c3f25c..405beee 100755 --- a/Services/Ecs/V2/Model/PrePaidServerSchedulerHints.cs +++ b/Services/Ecs/V2/Model/PrePaidServerSchedulerHints.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { @@ -34,11 +35,16 @@ public class TenancyEnum { "dedicated", DEDICATED }, }; - private string Value; + private string _value; + + public TenancyEnum() + { + + } public TenancyEnum(string value) { - Value = value; + _value = value; } public static TenancyEnum FromValue(string value) @@ -57,17 +63,17 @@ public static TenancyEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -96,7 +102,7 @@ public bool Equals(TenancyEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(TenancyEnum a, TenancyEnum b) diff --git a/Services/Ecs/V2/Model/PrePaidServerSecurityGroup.cs b/Services/Ecs/V2/Model/PrePaidServerSecurityGroup.cs index a07dbb1..a2b9c39 100755 --- a/Services/Ecs/V2/Model/PrePaidServerSecurityGroup.cs +++ b/Services/Ecs/V2/Model/PrePaidServerSecurityGroup.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/PrePaidServerTag.cs b/Services/Ecs/V2/Model/PrePaidServerTag.cs index b86d08a..ffb8fdf 100755 --- a/Services/Ecs/V2/Model/PrePaidServerTag.cs +++ b/Services/Ecs/V2/Model/PrePaidServerTag.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ProjectFlavorLimit.cs b/Services/Ecs/V2/Model/ProjectFlavorLimit.cs index 2b677bd..849812a 100755 --- a/Services/Ecs/V2/Model/ProjectFlavorLimit.cs +++ b/Services/Ecs/V2/Model/ProjectFlavorLimit.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ProjectTag.cs b/Services/Ecs/V2/Model/ProjectTag.cs index c531bee..8cf8b68 100755 --- a/Services/Ecs/V2/Model/ProjectTag.cs +++ b/Services/Ecs/V2/Model/ProjectTag.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/RegisterServerAutoRecoveryRequest.cs b/Services/Ecs/V2/Model/RegisterServerAutoRecoveryRequest.cs index a29f415..c3493f9 100755 --- a/Services/Ecs/V2/Model/RegisterServerAutoRecoveryRequest.cs +++ b/Services/Ecs/V2/Model/RegisterServerAutoRecoveryRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/RegisterServerAutoRecoveryRequestBody.cs b/Services/Ecs/V2/Model/RegisterServerAutoRecoveryRequestBody.cs index 1d29271..6ac6fb9 100755 --- a/Services/Ecs/V2/Model/RegisterServerAutoRecoveryRequestBody.cs +++ b/Services/Ecs/V2/Model/RegisterServerAutoRecoveryRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/RegisterServerAutoRecoveryResponse.cs b/Services/Ecs/V2/Model/RegisterServerAutoRecoveryResponse.cs index 3f4221e..a1530c9 100755 --- a/Services/Ecs/V2/Model/RegisterServerAutoRecoveryResponse.cs +++ b/Services/Ecs/V2/Model/RegisterServerAutoRecoveryResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/RegisterServerMonitorRequest.cs b/Services/Ecs/V2/Model/RegisterServerMonitorRequest.cs index 330272c..06970e1 100755 --- a/Services/Ecs/V2/Model/RegisterServerMonitorRequest.cs +++ b/Services/Ecs/V2/Model/RegisterServerMonitorRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/RegisterServerMonitorRequestBody.cs b/Services/Ecs/V2/Model/RegisterServerMonitorRequestBody.cs index 18a19b2..8329259 100755 --- a/Services/Ecs/V2/Model/RegisterServerMonitorRequestBody.cs +++ b/Services/Ecs/V2/Model/RegisterServerMonitorRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { @@ -28,11 +29,16 @@ public class MonitorMetricsEnum { "", EMPTY }, }; - private string Value; + private string _value; + + public MonitorMetricsEnum() + { + + } public MonitorMetricsEnum(string value) { - Value = value; + _value = value; } public static MonitorMetricsEnum FromValue(string value) @@ -51,17 +57,17 @@ public static MonitorMetricsEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -90,7 +96,7 @@ public bool Equals(MonitorMetricsEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(MonitorMetricsEnum a, MonitorMetricsEnum b) diff --git a/Services/Ecs/V2/Model/RegisterServerMonitorResponse.cs b/Services/Ecs/V2/Model/RegisterServerMonitorResponse.cs index fb6af3c..2e5136d 100755 --- a/Services/Ecs/V2/Model/RegisterServerMonitorResponse.cs +++ b/Services/Ecs/V2/Model/RegisterServerMonitorResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ReinstallServerWithCloudInitOption.cs b/Services/Ecs/V2/Model/ReinstallServerWithCloudInitOption.cs index 9f81dc3..9672951 100755 --- a/Services/Ecs/V2/Model/ReinstallServerWithCloudInitOption.cs +++ b/Services/Ecs/V2/Model/ReinstallServerWithCloudInitOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ReinstallServerWithCloudInitRequest.cs b/Services/Ecs/V2/Model/ReinstallServerWithCloudInitRequest.cs index 3dc36e1..7eccae4 100755 --- a/Services/Ecs/V2/Model/ReinstallServerWithCloudInitRequest.cs +++ b/Services/Ecs/V2/Model/ReinstallServerWithCloudInitRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ReinstallServerWithCloudInitRequestBody.cs b/Services/Ecs/V2/Model/ReinstallServerWithCloudInitRequestBody.cs index c4edfbc..e369837 100755 --- a/Services/Ecs/V2/Model/ReinstallServerWithCloudInitRequestBody.cs +++ b/Services/Ecs/V2/Model/ReinstallServerWithCloudInitRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ReinstallServerWithCloudInitResponse.cs b/Services/Ecs/V2/Model/ReinstallServerWithCloudInitResponse.cs index 1475a75..851ae85 100755 --- a/Services/Ecs/V2/Model/ReinstallServerWithCloudInitResponse.cs +++ b/Services/Ecs/V2/Model/ReinstallServerWithCloudInitResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ReinstallServerWithoutCloudInitOption.cs b/Services/Ecs/V2/Model/ReinstallServerWithoutCloudInitOption.cs index 3285815..c541d37 100755 --- a/Services/Ecs/V2/Model/ReinstallServerWithoutCloudInitOption.cs +++ b/Services/Ecs/V2/Model/ReinstallServerWithoutCloudInitOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ReinstallServerWithoutCloudInitRequest.cs b/Services/Ecs/V2/Model/ReinstallServerWithoutCloudInitRequest.cs index ed70fd8..881b9e4 100755 --- a/Services/Ecs/V2/Model/ReinstallServerWithoutCloudInitRequest.cs +++ b/Services/Ecs/V2/Model/ReinstallServerWithoutCloudInitRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ReinstallServerWithoutCloudInitRequestBody.cs b/Services/Ecs/V2/Model/ReinstallServerWithoutCloudInitRequestBody.cs index 970c9d8..b925c66 100755 --- a/Services/Ecs/V2/Model/ReinstallServerWithoutCloudInitRequestBody.cs +++ b/Services/Ecs/V2/Model/ReinstallServerWithoutCloudInitRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ReinstallServerWithoutCloudInitResponse.cs b/Services/Ecs/V2/Model/ReinstallServerWithoutCloudInitResponse.cs index 8d33d0d..2a1693d 100755 --- a/Services/Ecs/V2/Model/ReinstallServerWithoutCloudInitResponse.cs +++ b/Services/Ecs/V2/Model/ReinstallServerWithoutCloudInitResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ReinstallSeverMetadata.cs b/Services/Ecs/V2/Model/ReinstallSeverMetadata.cs index e89a938..235a0fe 100755 --- a/Services/Ecs/V2/Model/ReinstallSeverMetadata.cs +++ b/Services/Ecs/V2/Model/ReinstallSeverMetadata.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ResetServerPasswordOption.cs b/Services/Ecs/V2/Model/ResetServerPasswordOption.cs index 5b6e0e1..d5827a1 100755 --- a/Services/Ecs/V2/Model/ResetServerPasswordOption.cs +++ b/Services/Ecs/V2/Model/ResetServerPasswordOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ResetServerPasswordRequest.cs b/Services/Ecs/V2/Model/ResetServerPasswordRequest.cs index 4964081..69eb7a4 100755 --- a/Services/Ecs/V2/Model/ResetServerPasswordRequest.cs +++ b/Services/Ecs/V2/Model/ResetServerPasswordRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ResetServerPasswordRequestBody.cs b/Services/Ecs/V2/Model/ResetServerPasswordRequestBody.cs index fbc4e9b..9a27c3e 100755 --- a/Services/Ecs/V2/Model/ResetServerPasswordRequestBody.cs +++ b/Services/Ecs/V2/Model/ResetServerPasswordRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ResetServerPasswordResponse.cs b/Services/Ecs/V2/Model/ResetServerPasswordResponse.cs index aa39049..ce1940c 100755 --- a/Services/Ecs/V2/Model/ResetServerPasswordResponse.cs +++ b/Services/Ecs/V2/Model/ResetServerPasswordResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ResizePostPaidServerOption.cs b/Services/Ecs/V2/Model/ResizePostPaidServerOption.cs index f5ca636..6218b19 100755 --- a/Services/Ecs/V2/Model/ResizePostPaidServerOption.cs +++ b/Services/Ecs/V2/Model/ResizePostPaidServerOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ResizePostPaidServerRequest.cs b/Services/Ecs/V2/Model/ResizePostPaidServerRequest.cs index 0ea97dc..348f954 100755 --- a/Services/Ecs/V2/Model/ResizePostPaidServerRequest.cs +++ b/Services/Ecs/V2/Model/ResizePostPaidServerRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ResizePostPaidServerRequestBody.cs b/Services/Ecs/V2/Model/ResizePostPaidServerRequestBody.cs index 09252d8..fc91620 100755 --- a/Services/Ecs/V2/Model/ResizePostPaidServerRequestBody.cs +++ b/Services/Ecs/V2/Model/ResizePostPaidServerRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ResizePostPaidServerResponse.cs b/Services/Ecs/V2/Model/ResizePostPaidServerResponse.cs index fe1eaae..ade8e95 100755 --- a/Services/Ecs/V2/Model/ResizePostPaidServerResponse.cs +++ b/Services/Ecs/V2/Model/ResizePostPaidServerResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ResizePrePaidServerOption.cs b/Services/Ecs/V2/Model/ResizePrePaidServerOption.cs index 1cb425c..5af1512 100755 --- a/Services/Ecs/V2/Model/ResizePrePaidServerOption.cs +++ b/Services/Ecs/V2/Model/ResizePrePaidServerOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ResizeServerExtendParam.cs b/Services/Ecs/V2/Model/ResizeServerExtendParam.cs index 273a7af..d75b9dc 100755 --- a/Services/Ecs/V2/Model/ResizeServerExtendParam.cs +++ b/Services/Ecs/V2/Model/ResizeServerExtendParam.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ResizeServerRequest.cs b/Services/Ecs/V2/Model/ResizeServerRequest.cs index 95c4ef7..1884565 100755 --- a/Services/Ecs/V2/Model/ResizeServerRequest.cs +++ b/Services/Ecs/V2/Model/ResizeServerRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ResizeServerRequestBody.cs b/Services/Ecs/V2/Model/ResizeServerRequestBody.cs index 52960d3..6657337 100755 --- a/Services/Ecs/V2/Model/ResizeServerRequestBody.cs +++ b/Services/Ecs/V2/Model/ResizeServerRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ResizeServerResponse.cs b/Services/Ecs/V2/Model/ResizeServerResponse.cs index b914cc5..26fc869 100755 --- a/Services/Ecs/V2/Model/ResizeServerResponse.cs +++ b/Services/Ecs/V2/Model/ResizeServerResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ServerAddress.cs b/Services/Ecs/V2/Model/ServerAddress.cs index c7ed337..85575fe 100755 --- a/Services/Ecs/V2/Model/ServerAddress.cs +++ b/Services/Ecs/V2/Model/ServerAddress.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { @@ -34,11 +35,16 @@ public class OSEXTIPStypeEnum { "floating", FLOATING }, }; - private string Value; + private string _value; + + public OSEXTIPStypeEnum() + { + + } public OSEXTIPStypeEnum(string value) { - Value = value; + _value = value; } public static OSEXTIPStypeEnum FromValue(string value) @@ -57,17 +63,17 @@ public static OSEXTIPStypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -96,7 +102,7 @@ public bool Equals(OSEXTIPStypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(OSEXTIPStypeEnum a, OSEXTIPStypeEnum b) diff --git a/Services/Ecs/V2/Model/ServerAttachableQuantity.cs b/Services/Ecs/V2/Model/ServerAttachableQuantity.cs index 940e6da..d493be6 100755 --- a/Services/Ecs/V2/Model/ServerAttachableQuantity.cs +++ b/Services/Ecs/V2/Model/ServerAttachableQuantity.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ServerBlockDevice.cs b/Services/Ecs/V2/Model/ServerBlockDevice.cs index 3935e1f..23204ab 100755 --- a/Services/Ecs/V2/Model/ServerBlockDevice.cs +++ b/Services/Ecs/V2/Model/ServerBlockDevice.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ServerDetail.cs b/Services/Ecs/V2/Model/ServerDetail.cs index 8f6d391..08ea667 100755 --- a/Services/Ecs/V2/Model/ServerDetail.cs +++ b/Services/Ecs/V2/Model/ServerDetail.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ServerExtendVolumeAttachment.cs b/Services/Ecs/V2/Model/ServerExtendVolumeAttachment.cs index 55b1fe2..89a8c3f 100755 --- a/Services/Ecs/V2/Model/ServerExtendVolumeAttachment.cs +++ b/Services/Ecs/V2/Model/ServerExtendVolumeAttachment.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ServerFault.cs b/Services/Ecs/V2/Model/ServerFault.cs index 357ff58..cc16a59 100755 --- a/Services/Ecs/V2/Model/ServerFault.cs +++ b/Services/Ecs/V2/Model/ServerFault.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ServerFlavor.cs b/Services/Ecs/V2/Model/ServerFlavor.cs index 2192e48..cfb8b41 100755 --- a/Services/Ecs/V2/Model/ServerFlavor.cs +++ b/Services/Ecs/V2/Model/ServerFlavor.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ServerGroupMember.cs b/Services/Ecs/V2/Model/ServerGroupMember.cs index c334ed9..78c9c09 100755 --- a/Services/Ecs/V2/Model/ServerGroupMember.cs +++ b/Services/Ecs/V2/Model/ServerGroupMember.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ServerId.cs b/Services/Ecs/V2/Model/ServerId.cs index 5cd588e..64dd291 100755 --- a/Services/Ecs/V2/Model/ServerId.cs +++ b/Services/Ecs/V2/Model/ServerId.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ServerImage.cs b/Services/Ecs/V2/Model/ServerImage.cs index c1c7212..a8c9d4c 100755 --- a/Services/Ecs/V2/Model/ServerImage.cs +++ b/Services/Ecs/V2/Model/ServerImage.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ServerInterfaceFixedIp.cs b/Services/Ecs/V2/Model/ServerInterfaceFixedIp.cs index af04392..cfa5e10 100755 --- a/Services/Ecs/V2/Model/ServerInterfaceFixedIp.cs +++ b/Services/Ecs/V2/Model/ServerInterfaceFixedIp.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ServerLimits.cs b/Services/Ecs/V2/Model/ServerLimits.cs index affd40e..f68ac95 100755 --- a/Services/Ecs/V2/Model/ServerLimits.cs +++ b/Services/Ecs/V2/Model/ServerLimits.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ServerNicSecurityGroup.cs b/Services/Ecs/V2/Model/ServerNicSecurityGroup.cs index b66578c..f1e37b6 100755 --- a/Services/Ecs/V2/Model/ServerNicSecurityGroup.cs +++ b/Services/Ecs/V2/Model/ServerNicSecurityGroup.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ServerRemoteConsole.cs b/Services/Ecs/V2/Model/ServerRemoteConsole.cs index 91e9d19..ea0fe0d 100755 --- a/Services/Ecs/V2/Model/ServerRemoteConsole.cs +++ b/Services/Ecs/V2/Model/ServerRemoteConsole.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ServerSchedulerHints.cs b/Services/Ecs/V2/Model/ServerSchedulerHints.cs index ba9a330..952b5be 100755 --- a/Services/Ecs/V2/Model/ServerSchedulerHints.cs +++ b/Services/Ecs/V2/Model/ServerSchedulerHints.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ServerSecurityGroup.cs b/Services/Ecs/V2/Model/ServerSecurityGroup.cs index 7c2c084..64b5203 100755 --- a/Services/Ecs/V2/Model/ServerSecurityGroup.cs +++ b/Services/Ecs/V2/Model/ServerSecurityGroup.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ServerSystemTag.cs b/Services/Ecs/V2/Model/ServerSystemTag.cs index 5847caf..26326dd 100755 --- a/Services/Ecs/V2/Model/ServerSystemTag.cs +++ b/Services/Ecs/V2/Model/ServerSystemTag.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ServerTag.cs b/Services/Ecs/V2/Model/ServerTag.cs index 69e0f42..584de7d 100755 --- a/Services/Ecs/V2/Model/ServerTag.cs +++ b/Services/Ecs/V2/Model/ServerTag.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ShowJobRequest.cs b/Services/Ecs/V2/Model/ShowJobRequest.cs index d3468bc..a9a983d 100755 --- a/Services/Ecs/V2/Model/ShowJobRequest.cs +++ b/Services/Ecs/V2/Model/ShowJobRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ShowJobResponse.cs b/Services/Ecs/V2/Model/ShowJobResponse.cs index 9ff9a2d..c98282d 100755 --- a/Services/Ecs/V2/Model/ShowJobResponse.cs +++ b/Services/Ecs/V2/Model/ShowJobResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { @@ -46,11 +47,16 @@ public class StatusEnum { "INIT", INIT }, }; - private string Value; + private string _value; + + public StatusEnum() + { + + } public StatusEnum(string value) { - Value = value; + _value = value; } public static StatusEnum FromValue(string value) @@ -69,17 +75,17 @@ public static StatusEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -108,7 +114,7 @@ public bool Equals(StatusEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(StatusEnum a, StatusEnum b) diff --git a/Services/Ecs/V2/Model/ShowResetPasswordFlagRequest.cs b/Services/Ecs/V2/Model/ShowResetPasswordFlagRequest.cs index 9e661c1..12db828 100755 --- a/Services/Ecs/V2/Model/ShowResetPasswordFlagRequest.cs +++ b/Services/Ecs/V2/Model/ShowResetPasswordFlagRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ShowResetPasswordFlagResponse.cs b/Services/Ecs/V2/Model/ShowResetPasswordFlagResponse.cs index dee3155..590f602 100755 --- a/Services/Ecs/V2/Model/ShowResetPasswordFlagResponse.cs +++ b/Services/Ecs/V2/Model/ShowResetPasswordFlagResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ShowServerAutoRecoveryRequest.cs b/Services/Ecs/V2/Model/ShowServerAutoRecoveryRequest.cs index a877337..9ed580c 100755 --- a/Services/Ecs/V2/Model/ShowServerAutoRecoveryRequest.cs +++ b/Services/Ecs/V2/Model/ShowServerAutoRecoveryRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ShowServerAutoRecoveryResponse.cs b/Services/Ecs/V2/Model/ShowServerAutoRecoveryResponse.cs index 0f79210..34f50ef 100755 --- a/Services/Ecs/V2/Model/ShowServerAutoRecoveryResponse.cs +++ b/Services/Ecs/V2/Model/ShowServerAutoRecoveryResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ShowServerBlockDeviceRequest.cs b/Services/Ecs/V2/Model/ShowServerBlockDeviceRequest.cs index bf4bfaa..76ca579 100755 --- a/Services/Ecs/V2/Model/ShowServerBlockDeviceRequest.cs +++ b/Services/Ecs/V2/Model/ShowServerBlockDeviceRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ShowServerBlockDeviceResponse.cs b/Services/Ecs/V2/Model/ShowServerBlockDeviceResponse.cs index cf2d0a5..5b2b17b 100755 --- a/Services/Ecs/V2/Model/ShowServerBlockDeviceResponse.cs +++ b/Services/Ecs/V2/Model/ShowServerBlockDeviceResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ShowServerGroupRequest.cs b/Services/Ecs/V2/Model/ShowServerGroupRequest.cs index 334ba03..4143c75 100755 --- a/Services/Ecs/V2/Model/ShowServerGroupRequest.cs +++ b/Services/Ecs/V2/Model/ShowServerGroupRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ShowServerGroupResponse.cs b/Services/Ecs/V2/Model/ShowServerGroupResponse.cs index a84765b..6e418fe 100755 --- a/Services/Ecs/V2/Model/ShowServerGroupResponse.cs +++ b/Services/Ecs/V2/Model/ShowServerGroupResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ShowServerGroupResult.cs b/Services/Ecs/V2/Model/ShowServerGroupResult.cs index 8b56298..4b3a59e 100755 --- a/Services/Ecs/V2/Model/ShowServerGroupResult.cs +++ b/Services/Ecs/V2/Model/ShowServerGroupResult.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ShowServerLimitsRequest.cs b/Services/Ecs/V2/Model/ShowServerLimitsRequest.cs index 07e51cd..c2a4d22 100755 --- a/Services/Ecs/V2/Model/ShowServerLimitsRequest.cs +++ b/Services/Ecs/V2/Model/ShowServerLimitsRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ShowServerLimitsResponse.cs b/Services/Ecs/V2/Model/ShowServerLimitsResponse.cs index cb52d5e..76d7247 100755 --- a/Services/Ecs/V2/Model/ShowServerLimitsResponse.cs +++ b/Services/Ecs/V2/Model/ShowServerLimitsResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ShowServerPasswordRequest.cs b/Services/Ecs/V2/Model/ShowServerPasswordRequest.cs index 2f8c0a8..3581396 100755 --- a/Services/Ecs/V2/Model/ShowServerPasswordRequest.cs +++ b/Services/Ecs/V2/Model/ShowServerPasswordRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ShowServerPasswordResponse.cs b/Services/Ecs/V2/Model/ShowServerPasswordResponse.cs index 1ab983d..865d442 100755 --- a/Services/Ecs/V2/Model/ShowServerPasswordResponse.cs +++ b/Services/Ecs/V2/Model/ShowServerPasswordResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ShowServerRemoteConsoleRequest.cs b/Services/Ecs/V2/Model/ShowServerRemoteConsoleRequest.cs index d4137cb..fce83ab 100755 --- a/Services/Ecs/V2/Model/ShowServerRemoteConsoleRequest.cs +++ b/Services/Ecs/V2/Model/ShowServerRemoteConsoleRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ShowServerRemoteConsoleRequestBody.cs b/Services/Ecs/V2/Model/ShowServerRemoteConsoleRequestBody.cs index 43c9ef4..7fcdb9b 100755 --- a/Services/Ecs/V2/Model/ShowServerRemoteConsoleRequestBody.cs +++ b/Services/Ecs/V2/Model/ShowServerRemoteConsoleRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ShowServerRemoteConsoleResponse.cs b/Services/Ecs/V2/Model/ShowServerRemoteConsoleResponse.cs index cd68492..9ca8b4a 100755 --- a/Services/Ecs/V2/Model/ShowServerRemoteConsoleResponse.cs +++ b/Services/Ecs/V2/Model/ShowServerRemoteConsoleResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ShowServerRequest.cs b/Services/Ecs/V2/Model/ShowServerRequest.cs index 764e776..d9c060e 100755 --- a/Services/Ecs/V2/Model/ShowServerRequest.cs +++ b/Services/Ecs/V2/Model/ShowServerRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ShowServerResponse.cs b/Services/Ecs/V2/Model/ShowServerResponse.cs index 4912fe5..a9a63b2 100755 --- a/Services/Ecs/V2/Model/ShowServerResponse.cs +++ b/Services/Ecs/V2/Model/ShowServerResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ShowServerTagsRequest.cs b/Services/Ecs/V2/Model/ShowServerTagsRequest.cs index e7e84c1..6a16309 100755 --- a/Services/Ecs/V2/Model/ShowServerTagsRequest.cs +++ b/Services/Ecs/V2/Model/ShowServerTagsRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/ShowServerTagsResponse.cs b/Services/Ecs/V2/Model/ShowServerTagsResponse.cs index d902d0e..7ce2a97 100755 --- a/Services/Ecs/V2/Model/ShowServerTagsResponse.cs +++ b/Services/Ecs/V2/Model/ShowServerTagsResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/SimpleFlavor.cs b/Services/Ecs/V2/Model/SimpleFlavor.cs index 3cc122b..b2b8c3a 100755 --- a/Services/Ecs/V2/Model/SimpleFlavor.cs +++ b/Services/Ecs/V2/Model/SimpleFlavor.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/SubJob.cs b/Services/Ecs/V2/Model/SubJob.cs index b46d0df..a969529 100755 --- a/Services/Ecs/V2/Model/SubJob.cs +++ b/Services/Ecs/V2/Model/SubJob.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { @@ -46,11 +47,16 @@ public class StatusEnum { "INIT", INIT }, }; - private string Value; + private string _value; + + public StatusEnum() + { + + } public StatusEnum(string value) { - Value = value; + _value = value; } public static StatusEnum FromValue(string value) @@ -69,17 +75,17 @@ public static StatusEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -108,7 +114,7 @@ public bool Equals(StatusEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(StatusEnum a, StatusEnum b) diff --git a/Services/Ecs/V2/Model/SubJobEntities.cs b/Services/Ecs/V2/Model/SubJobEntities.cs index 716d3b9..0a49623 100755 --- a/Services/Ecs/V2/Model/SubJobEntities.cs +++ b/Services/Ecs/V2/Model/SubJobEntities.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/UpdateServerAddress.cs b/Services/Ecs/V2/Model/UpdateServerAddress.cs index d93d821..e8f9e67 100755 --- a/Services/Ecs/V2/Model/UpdateServerAddress.cs +++ b/Services/Ecs/V2/Model/UpdateServerAddress.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/UpdateServerAutoTerminateTimeRequest.cs b/Services/Ecs/V2/Model/UpdateServerAutoTerminateTimeRequest.cs index 30335a2..86c80f7 100755 --- a/Services/Ecs/V2/Model/UpdateServerAutoTerminateTimeRequest.cs +++ b/Services/Ecs/V2/Model/UpdateServerAutoTerminateTimeRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/UpdateServerAutoTerminateTimeRequestBody.cs b/Services/Ecs/V2/Model/UpdateServerAutoTerminateTimeRequestBody.cs index 291d100..8f7ff22 100755 --- a/Services/Ecs/V2/Model/UpdateServerAutoTerminateTimeRequestBody.cs +++ b/Services/Ecs/V2/Model/UpdateServerAutoTerminateTimeRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/UpdateServerAutoTerminateTimeResponse.cs b/Services/Ecs/V2/Model/UpdateServerAutoTerminateTimeResponse.cs index e5d875d..b1ceae8 100755 --- a/Services/Ecs/V2/Model/UpdateServerAutoTerminateTimeResponse.cs +++ b/Services/Ecs/V2/Model/UpdateServerAutoTerminateTimeResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/UpdateServerMetadataRequest.cs b/Services/Ecs/V2/Model/UpdateServerMetadataRequest.cs index c39e146..0462369 100755 --- a/Services/Ecs/V2/Model/UpdateServerMetadataRequest.cs +++ b/Services/Ecs/V2/Model/UpdateServerMetadataRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/UpdateServerMetadataRequestBody.cs b/Services/Ecs/V2/Model/UpdateServerMetadataRequestBody.cs index 51fedff..cd9d8c4 100755 --- a/Services/Ecs/V2/Model/UpdateServerMetadataRequestBody.cs +++ b/Services/Ecs/V2/Model/UpdateServerMetadataRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/UpdateServerMetadataResponse.cs b/Services/Ecs/V2/Model/UpdateServerMetadataResponse.cs index 8c013ce..e8dfa66 100755 --- a/Services/Ecs/V2/Model/UpdateServerMetadataResponse.cs +++ b/Services/Ecs/V2/Model/UpdateServerMetadataResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/UpdateServerOption.cs b/Services/Ecs/V2/Model/UpdateServerOption.cs index b8d5346..fb9718a 100755 --- a/Services/Ecs/V2/Model/UpdateServerOption.cs +++ b/Services/Ecs/V2/Model/UpdateServerOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/UpdateServerRequest.cs b/Services/Ecs/V2/Model/UpdateServerRequest.cs index 6732b44..59e103e 100755 --- a/Services/Ecs/V2/Model/UpdateServerRequest.cs +++ b/Services/Ecs/V2/Model/UpdateServerRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/UpdateServerRequestBody.cs b/Services/Ecs/V2/Model/UpdateServerRequestBody.cs index 4b8521a..07e3623 100755 --- a/Services/Ecs/V2/Model/UpdateServerRequestBody.cs +++ b/Services/Ecs/V2/Model/UpdateServerRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/UpdateServerResponse.cs b/Services/Ecs/V2/Model/UpdateServerResponse.cs index 63f07db..bed190c 100755 --- a/Services/Ecs/V2/Model/UpdateServerResponse.cs +++ b/Services/Ecs/V2/Model/UpdateServerResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Model/UpdateServerResult.cs b/Services/Ecs/V2/Model/UpdateServerResult.cs index d0ed6d2..530f06a 100755 --- a/Services/Ecs/V2/Model/UpdateServerResult.cs +++ b/Services/Ecs/V2/Model/UpdateServerResult.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2.Model { diff --git a/Services/Ecs/V2/Region/EcsRegion.cs b/Services/Ecs/V2/Region/EcsRegion.cs index 44f1347..a534982 100755 --- a/Services/Ecs/V2/Region/EcsRegion.cs +++ b/Services/Ecs/V2/Region/EcsRegion.cs @@ -1,6 +1,6 @@ using System; using System.Collections.Generic; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Ecs.V2 { diff --git a/Services/Ecs/obj/Ecs.csproj.nuget.cache b/Services/Ecs/obj/Ecs.csproj.nuget.cache deleted file mode 100644 index a30cc27..0000000 --- a/Services/Ecs/obj/Ecs.csproj.nuget.cache +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": 1, - "dgSpecHash": "9sHKnZajEB9zS6h2aAhrCrzIIXTFwraTPY/7YBIbi1hTv8FRBO3/klTp+teOOnaYMaH1G9NsUoVBd2ObNeSGNQ==", - "success": true -} \ No newline at end of file diff --git a/Services/Ecs/obj/Ecs.csproj.nuget.dgspec.json b/Services/Ecs/obj/Ecs.csproj.nuget.dgspec.json deleted file mode 100644 index 7650fa1..0000000 --- a/Services/Ecs/obj/Ecs.csproj.nuget.dgspec.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "format": 1, - "restore": { - "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Ecs/Ecs.csproj": {} - }, - "projects": { - "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Ecs/Ecs.csproj": { - "version": "0.0.2-beta", - "restore": { - "projectUniqueName": "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Ecs/Ecs.csproj", - "projectName": "G42Cloud.SDK.Ecs", - "projectPath": "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Ecs/Ecs.csproj", - "packagesPath": "/root/.nuget/packages/", - "outputPath": "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Ecs/obj/", - "projectStyle": "PackageReference", - "fallbackFolders": [ - "/usr/dotnet2/sdk/NuGetFallbackFolder" - ], - "configFilePaths": [ - "/root/.nuget/NuGet/NuGet.Config" - ], - "originalTargetFrameworks": [ - "netstandard2.0" - ], - "sources": { - "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86": {} - }, - "frameworks": { - "netstandard2.0": { - "projectReferences": {} - } - }, - "warningProperties": { - "warnAsError": [ - "NU1605" - ] - } - }, - "frameworks": { - "netstandard2.0": { - "dependencies": { - "HuaweiCloud.SDK.Core": { - "target": "Package", - "version": "[3.1.11, )" - }, - "NETStandard.Library": { - "suppressParent": "All", - "target": "Package", - "version": "[2.0.3, )", - "autoReferenced": true - }, - "Newtonsoft.Json": { - "target": "Package", - "version": "[13.0.1, )" - } - }, - "imports": [ - "net461" - ], - "assetTargetFallback": true, - "warn": true - } - } - } - } -} \ No newline at end of file diff --git a/Services/Ecs/obj/Ecs.csproj.nuget.g.props b/Services/Ecs/obj/Ecs.csproj.nuget.g.props deleted file mode 100644 index 232f809..0000000 --- a/Services/Ecs/obj/Ecs.csproj.nuget.g.props +++ /dev/null @@ -1,15 +0,0 @@ - - - - True - NuGet - /data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Ecs/obj/project.assets.json - /root/.nuget/packages/ - /root/.nuget/packages/;/usr/dotnet2/sdk/NuGetFallbackFolder - PackageReference - 5.0.2 - - - $(MSBuildAllProjects);$(MSBuildThisFileFullPath) - - \ No newline at end of file diff --git a/Services/Ecs/obj/Ecs.csproj.nuget.g.targets b/Services/Ecs/obj/Ecs.csproj.nuget.g.targets deleted file mode 100644 index e8536f5..0000000 --- a/Services/Ecs/obj/Ecs.csproj.nuget.g.targets +++ /dev/null @@ -1,9 +0,0 @@ - - - - $(MSBuildAllProjects);$(MSBuildThisFileFullPath) - - - - - \ No newline at end of file diff --git a/Services/Ecs/obj/project.assets.json b/Services/Ecs/obj/project.assets.json deleted file mode 100644 index 0e79362..0000000 --- a/Services/Ecs/obj/project.assets.json +++ /dev/null @@ -1,1134 +0,0 @@ -{ - "version": 3, - "targets": { - ".NETStandard,Version=v2.0": { - "HuaweiCloud.SDK.Core/3.1.11": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.DependencyInjection": "3.1.5", - "Microsoft.Extensions.Http": "3.1.5", - "Microsoft.Extensions.Http.Polly": "3.1.5", - "Microsoft.Extensions.Logging.Console": "3.1.5", - "Microsoft.Extensions.Logging.Debug": "3.1.5", - "Newtonsoft.Json": "13.0.1" - }, - "compile": { - "lib/netstandard2.0/HuaweiCloud.SDK.Core.dll": {} - }, - "runtime": { - "lib/netstandard2.0/HuaweiCloud.SDK.Core.dll": {} - } - }, - "Microsoft.Bcl.AsyncInterfaces/1.1.1": { - "type": "package", - "dependencies": { - "System.Threading.Tasks.Extensions": "4.5.4" - }, - "compile": { - "ref/netstandard2.0/Microsoft.Bcl.AsyncInterfaces.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Bcl.AsyncInterfaces.dll": {} - } - }, - "Microsoft.Extensions.Configuration/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.Configuration.Abstractions": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Configuration.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Configuration.dll": {} - } - }, - "Microsoft.Extensions.Configuration.Abstractions/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.Primitives": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Configuration.Abstractions.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Configuration.Abstractions.dll": {} - } - }, - "Microsoft.Extensions.Configuration.Binder/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.Configuration": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Configuration.Binder.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Configuration.Binder.dll": {} - } - }, - "Microsoft.Extensions.DependencyInjection/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Bcl.AsyncInterfaces": "1.1.1", - "Microsoft.Extensions.DependencyInjection.Abstractions": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.dll": {} - } - }, - "Microsoft.Extensions.DependencyInjection.Abstractions/3.1.5": { - "type": "package", - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll": {} - } - }, - "Microsoft.Extensions.Http/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.DependencyInjection.Abstractions": "3.1.5", - "Microsoft.Extensions.Logging": "3.1.5", - "Microsoft.Extensions.Options": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Http.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Http.dll": {} - } - }, - "Microsoft.Extensions.Http.Polly/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.Http": "3.1.5", - "Polly": "7.1.0", - "Polly.Extensions.Http": "3.0.0" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Http.Polly.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Http.Polly.dll": {} - } - }, - "Microsoft.Extensions.Logging/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.Configuration.Binder": "3.1.5", - "Microsoft.Extensions.DependencyInjection": "3.1.5", - "Microsoft.Extensions.Logging.Abstractions": "3.1.5", - "Microsoft.Extensions.Options": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.dll": {} - } - }, - "Microsoft.Extensions.Logging.Abstractions/3.1.5": { - "type": "package", - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.Abstractions.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.Abstractions.dll": {} - } - }, - "Microsoft.Extensions.Logging.Configuration/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.Logging": "3.1.5", - "Microsoft.Extensions.Options.ConfigurationExtensions": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.Configuration.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.Configuration.dll": {} - } - }, - "Microsoft.Extensions.Logging.Console/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.Configuration.Abstractions": "3.1.5", - "Microsoft.Extensions.Logging": "3.1.5", - "Microsoft.Extensions.Logging.Configuration": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.Console.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.Console.dll": {} - } - }, - "Microsoft.Extensions.Logging.Debug/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.Logging": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.Debug.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.Debug.dll": {} - } - }, - "Microsoft.Extensions.Options/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.DependencyInjection.Abstractions": "3.1.5", - "Microsoft.Extensions.Primitives": "3.1.5", - "System.ComponentModel.Annotations": "4.7.0" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Options.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Options.dll": {} - } - }, - "Microsoft.Extensions.Options.ConfigurationExtensions/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.Configuration.Abstractions": "3.1.5", - "Microsoft.Extensions.Configuration.Binder": "3.1.5", - "Microsoft.Extensions.DependencyInjection.Abstractions": "3.1.5", - "Microsoft.Extensions.Options": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Options.ConfigurationExtensions.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Options.ConfigurationExtensions.dll": {} - } - }, - "Microsoft.Extensions.Primitives/3.1.5": { - "type": "package", - "dependencies": { - "System.Memory": "4.5.2", - "System.Runtime.CompilerServices.Unsafe": "4.7.1" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Primitives.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Primitives.dll": {} - } - }, - "Microsoft.NETCore.Platforms/1.1.0": { - "type": "package", - "compile": { - "lib/netstandard1.0/_._": {} - }, - "runtime": { - "lib/netstandard1.0/_._": {} - } - }, - "NETStandard.Library/2.0.3": { - "type": "package", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0" - }, - "compile": { - "lib/netstandard1.0/_._": {} - }, - "runtime": { - "lib/netstandard1.0/_._": {} - }, - "build": { - "build/netstandard2.0/NETStandard.Library.targets": {} - } - }, - "Newtonsoft.Json/13.0.1": { - "type": "package", - "compile": { - "lib/netstandard2.0/Newtonsoft.Json.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Newtonsoft.Json.dll": {} - } - }, - "Polly/7.1.0": { - "type": "package", - "compile": { - "lib/netstandard2.0/Polly.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Polly.dll": {} - } - }, - "Polly.Extensions.Http/3.0.0": { - "type": "package", - "dependencies": { - "Polly": "7.1.0" - }, - "compile": { - "lib/netstandard2.0/Polly.Extensions.Http.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Polly.Extensions.Http.dll": {} - } - }, - "System.Buffers/4.4.0": { - "type": "package", - "compile": { - "ref/netstandard2.0/System.Buffers.dll": {} - }, - "runtime": { - "lib/netstandard2.0/System.Buffers.dll": {} - } - }, - "System.ComponentModel.Annotations/4.7.0": { - "type": "package", - "compile": { - "ref/netstandard2.0/System.ComponentModel.Annotations.dll": {} - }, - "runtime": { - "lib/netstandard2.0/System.ComponentModel.Annotations.dll": {} - } - }, - "System.Memory/4.5.2": { - "type": "package", - "dependencies": { - "System.Buffers": "4.4.0", - "System.Numerics.Vectors": "4.4.0", - "System.Runtime.CompilerServices.Unsafe": "4.5.2" - }, - "compile": { - "lib/netstandard2.0/System.Memory.dll": {} - }, - "runtime": { - "lib/netstandard2.0/System.Memory.dll": {} - } - }, - "System.Numerics.Vectors/4.4.0": { - "type": "package", - "compile": { - "ref/netstandard2.0/System.Numerics.Vectors.dll": {} - }, - "runtime": { - "lib/netstandard2.0/System.Numerics.Vectors.dll": {} - } - }, - "System.Runtime.CompilerServices.Unsafe/4.7.1": { - "type": "package", - "compile": { - "ref/netstandard2.0/System.Runtime.CompilerServices.Unsafe.dll": {} - }, - "runtime": { - "lib/netstandard2.0/System.Runtime.CompilerServices.Unsafe.dll": {} - } - }, - "System.Threading.Tasks.Extensions/4.5.4": { - "type": "package", - "dependencies": { - "System.Runtime.CompilerServices.Unsafe": "4.5.3" - }, - "compile": { - "lib/netstandard2.0/System.Threading.Tasks.Extensions.dll": {} - }, - "runtime": { - "lib/netstandard2.0/System.Threading.Tasks.Extensions.dll": {} - } - } - } - }, - "libraries": { - "HuaweiCloud.SDK.Core/3.1.11": { - "sha512": "gfSrNtvvgvmEptRbn8LinWOcd2CmDgHVHKCOG7loIczGvrVSfCWJhnJYig/St+Jb8eKMeWgu/Ms52YJbdxUu0w==", - "type": "package", - "path": "huaweicloud.sdk.core/3.1.11", - "files": [ - ".nupkg.metadata", - "LICENSE", - "huaweicloud.sdk.core.3.1.11.nupkg.sha512", - "huaweicloud.sdk.core.nuspec", - "lib/netstandard2.0/HuaweiCloud.SDK.Core.dll" - ] - }, - "Microsoft.Bcl.AsyncInterfaces/1.1.1": { - "sha512": "yuvf07qFWFqtK3P/MRkEKLhn5r2UbSpVueRziSqj0yJQIKFwG1pq9mOayK3zE5qZCTs0CbrwL9M6R8VwqyGy2w==", - "type": "package", - "path": "microsoft.bcl.asyncinterfaces/1.1.1", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "LICENSE.TXT", - "THIRD-PARTY-NOTICES.TXT", - "lib/net461/Microsoft.Bcl.AsyncInterfaces.dll", - "lib/net461/Microsoft.Bcl.AsyncInterfaces.xml", - "lib/netstandard2.0/Microsoft.Bcl.AsyncInterfaces.dll", - "lib/netstandard2.0/Microsoft.Bcl.AsyncInterfaces.xml", - "lib/netstandard2.1/Microsoft.Bcl.AsyncInterfaces.dll", - "lib/netstandard2.1/Microsoft.Bcl.AsyncInterfaces.xml", - "microsoft.bcl.asyncinterfaces.1.1.1.nupkg.sha512", - "microsoft.bcl.asyncinterfaces.nuspec", - "ref/net461/Microsoft.Bcl.AsyncInterfaces.dll", - "ref/netstandard2.0/Microsoft.Bcl.AsyncInterfaces.dll", - "ref/netstandard2.1/Microsoft.Bcl.AsyncInterfaces.dll", - "useSharedDesignerContext.txt", - "version.txt" - ] - }, - "Microsoft.Extensions.Configuration/3.1.5": { - "sha512": "LZfdAP8flK4hkaniUv6TlstDX9FXLmJMX1A4mpLghAsZxTaJIgf+nzBNiPRdy/B5Vrs74gRONX3JrIUJQrebmA==", - "type": "package", - "path": "microsoft.extensions.configuration/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Configuration.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Configuration.xml", - "lib/netstandard2.0/Microsoft.Extensions.Configuration.dll", - "lib/netstandard2.0/Microsoft.Extensions.Configuration.xml", - "microsoft.extensions.configuration.3.1.5.nupkg.sha512", - "microsoft.extensions.configuration.nuspec" - ] - }, - "Microsoft.Extensions.Configuration.Abstractions/3.1.5": { - "sha512": "VBcAk6s9izZr04WCzNqOh1Sxz2RbVSh0G79MfpHSDv16cUJtSEYEHody9ZnF71LBEktzdu6cvDFBOFMh43q0iA==", - "type": "package", - "path": "microsoft.extensions.configuration.abstractions/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Configuration.Abstractions.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Configuration.Abstractions.xml", - "lib/netstandard2.0/Microsoft.Extensions.Configuration.Abstractions.dll", - "lib/netstandard2.0/Microsoft.Extensions.Configuration.Abstractions.xml", - "microsoft.extensions.configuration.abstractions.3.1.5.nupkg.sha512", - "microsoft.extensions.configuration.abstractions.nuspec" - ] - }, - "Microsoft.Extensions.Configuration.Binder/3.1.5": { - "sha512": "ZR/zjBxkvdnnWhRoBHDT95uz1ZgJFhv1QazmKCIcDqy/RXqi+6dJ/PfxDhEnzPvk9HbkcGfFsPEu1vSIyxDqBQ==", - "type": "package", - "path": "microsoft.extensions.configuration.binder/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Configuration.Binder.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Configuration.Binder.xml", - "lib/netstandard2.0/Microsoft.Extensions.Configuration.Binder.dll", - "lib/netstandard2.0/Microsoft.Extensions.Configuration.Binder.xml", - "microsoft.extensions.configuration.binder.3.1.5.nupkg.sha512", - "microsoft.extensions.configuration.binder.nuspec" - ] - }, - "Microsoft.Extensions.DependencyInjection/3.1.5": { - "sha512": "I+RTJQi7TtenIHZqL2zr6523PYXfL88Ruu4UIVmspIxdw14GHd8zZ+2dGLSdwX7fn41Hth4d42S1e1iHWVOJyQ==", - "type": "package", - "path": "microsoft.extensions.dependencyinjection/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/net461/Microsoft.Extensions.DependencyInjection.dll", - "lib/net461/Microsoft.Extensions.DependencyInjection.xml", - "lib/netcoreapp3.1/Microsoft.Extensions.DependencyInjection.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.DependencyInjection.xml", - "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.dll", - "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.xml", - "lib/netstandard2.1/Microsoft.Extensions.DependencyInjection.dll", - "lib/netstandard2.1/Microsoft.Extensions.DependencyInjection.xml", - "microsoft.extensions.dependencyinjection.3.1.5.nupkg.sha512", - "microsoft.extensions.dependencyinjection.nuspec" - ] - }, - "Microsoft.Extensions.DependencyInjection.Abstractions/3.1.5": { - "sha512": "2VSCj2TZPMdeEi279Lawi6qJQu4+sEWizSOYrhY6hapyS1jxn1jVUZT1Ugv68bya+x8+3lD4+RqhUZql9PhISQ==", - "type": "package", - "path": "microsoft.extensions.dependencyinjection.abstractions/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll", - "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.Abstractions.xml", - "microsoft.extensions.dependencyinjection.abstractions.3.1.5.nupkg.sha512", - "microsoft.extensions.dependencyinjection.abstractions.nuspec" - ] - }, - "Microsoft.Extensions.Http/3.1.5": { - "sha512": "P8yu3UDd0X129FmxJN0/nObuuH4v7YoxK00kEs8EU4R7POa+3yp/buux74fNYTLORuEqjBTMGtV7TBszuvCj7g==", - "type": "package", - "path": "microsoft.extensions.http/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Http.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Http.xml", - "lib/netstandard2.0/Microsoft.Extensions.Http.dll", - "lib/netstandard2.0/Microsoft.Extensions.Http.xml", - "microsoft.extensions.http.3.1.5.nupkg.sha512", - "microsoft.extensions.http.nuspec" - ] - }, - "Microsoft.Extensions.Http.Polly/3.1.5": { - "sha512": "wW+kLLqoQPIg3+NQhBkqmxBAtoGJhVsQ03RAjw/Jx0oTSmaZsJY3rIlBmsrHdeKOxq19P4qRlST2wk/k5tdXhg==", - "type": "package", - "path": "microsoft.extensions.http.polly/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netstandard2.0/Microsoft.Extensions.Http.Polly.dll", - "lib/netstandard2.0/Microsoft.Extensions.Http.Polly.xml", - "microsoft.extensions.http.polly.3.1.5.nupkg.sha512", - "microsoft.extensions.http.polly.nuspec" - ] - }, - "Microsoft.Extensions.Logging/3.1.5": { - "sha512": "C85NYDym6xy03o70vxX+VQ4ZEjj5Eg5t5QoGW0t100vG5MmPL6+G3XXcQjIIn1WRQrjzGWzQwuKf38fxXEWIWA==", - "type": "package", - "path": "microsoft.extensions.logging/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Logging.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Logging.xml", - "lib/netstandard2.0/Microsoft.Extensions.Logging.dll", - "lib/netstandard2.0/Microsoft.Extensions.Logging.xml", - "microsoft.extensions.logging.3.1.5.nupkg.sha512", - "microsoft.extensions.logging.nuspec" - ] - }, - "Microsoft.Extensions.Logging.Abstractions/3.1.5": { - "sha512": "ZvwowjRSWXewdPI+whPFXgwF4Qme6Q9KV9SCPEITSGiqHLArct7q5hTBtTzj3GPsVLjTqehvTg6Bd/EQk9JS0A==", - "type": "package", - "path": "microsoft.extensions.logging.abstractions/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netstandard2.0/Microsoft.Extensions.Logging.Abstractions.dll", - "lib/netstandard2.0/Microsoft.Extensions.Logging.Abstractions.xml", - "microsoft.extensions.logging.abstractions.3.1.5.nupkg.sha512", - "microsoft.extensions.logging.abstractions.nuspec" - ] - }, - "Microsoft.Extensions.Logging.Configuration/3.1.5": { - "sha512": "I+9jx/A9cLdkTmynKMa2oR4rYAfe3n2F/wNVvKxwIk2J33paEU13Se08Q5xvQisqfbumaRUNF7BWHr63JzuuRw==", - "type": "package", - "path": "microsoft.extensions.logging.configuration/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Logging.Configuration.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Logging.Configuration.xml", - "lib/netstandard2.0/Microsoft.Extensions.Logging.Configuration.dll", - "lib/netstandard2.0/Microsoft.Extensions.Logging.Configuration.xml", - "microsoft.extensions.logging.configuration.3.1.5.nupkg.sha512", - "microsoft.extensions.logging.configuration.nuspec" - ] - }, - "Microsoft.Extensions.Logging.Console/3.1.5": { - "sha512": "c/W7d9sjgyU0/3txj/i6pC+8f25Jbua7zKhHVHidC5hHL4OX8fAxSGPBWYOsRN4tXqpd5VphNmIFUWyT12fMoA==", - "type": "package", - "path": "microsoft.extensions.logging.console/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Logging.Console.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Logging.Console.xml", - "lib/netstandard2.0/Microsoft.Extensions.Logging.Console.dll", - "lib/netstandard2.0/Microsoft.Extensions.Logging.Console.xml", - "microsoft.extensions.logging.console.3.1.5.nupkg.sha512", - "microsoft.extensions.logging.console.nuspec" - ] - }, - "Microsoft.Extensions.Logging.Debug/3.1.5": { - "sha512": "oDs0vlr6tNm0Z4U81eiCvnX+9zSP1CBAIGNAnpKidLb1KzbX26UGI627TfuIEtvW9wYiQWqZtmwMMK9WHE8Dqg==", - "type": "package", - "path": "microsoft.extensions.logging.debug/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Logging.Debug.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Logging.Debug.xml", - "lib/netstandard2.0/Microsoft.Extensions.Logging.Debug.dll", - "lib/netstandard2.0/Microsoft.Extensions.Logging.Debug.xml", - "microsoft.extensions.logging.debug.3.1.5.nupkg.sha512", - "microsoft.extensions.logging.debug.nuspec" - ] - }, - "Microsoft.Extensions.Options/3.1.5": { - "sha512": "f+JT/7lkKBMp/Ak2tVjO+TD7o+UoCfjnExkZNn0PZIso8kIXrqNy6x42Lrxf4Q0pW3JMf9ExmL2EQlvk2XnFAg==", - "type": "package", - "path": "microsoft.extensions.options/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Options.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Options.xml", - "lib/netstandard2.0/Microsoft.Extensions.Options.dll", - "lib/netstandard2.0/Microsoft.Extensions.Options.xml", - "microsoft.extensions.options.3.1.5.nupkg.sha512", - "microsoft.extensions.options.nuspec" - ] - }, - "Microsoft.Extensions.Options.ConfigurationExtensions/3.1.5": { - "sha512": "mgM+JHFeRg3zSRjScVADU/mohY8s0czKRTNT9oszWgX1mlw419yqP6ITCXovPopMXiqzRdkZ7AEuErX9K+ROww==", - "type": "package", - "path": "microsoft.extensions.options.configurationextensions/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Options.ConfigurationExtensions.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Options.ConfigurationExtensions.xml", - "lib/netstandard2.0/Microsoft.Extensions.Options.ConfigurationExtensions.dll", - "lib/netstandard2.0/Microsoft.Extensions.Options.ConfigurationExtensions.xml", - "microsoft.extensions.options.configurationextensions.3.1.5.nupkg.sha512", - "microsoft.extensions.options.configurationextensions.nuspec" - ] - }, - "Microsoft.Extensions.Primitives/3.1.5": { - "sha512": "6bLdjSAQix82oP2tsuX9MM2yjgUFFOkSZYyRSKoUULilw2cg0Y0H+dnugwYlfj8Jd7yjd/+QSdNBqEyYhTYv0w==", - "type": "package", - "path": "microsoft.extensions.primitives/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Primitives.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Primitives.xml", - "lib/netstandard2.0/Microsoft.Extensions.Primitives.dll", - "lib/netstandard2.0/Microsoft.Extensions.Primitives.xml", - "microsoft.extensions.primitives.3.1.5.nupkg.sha512", - "microsoft.extensions.primitives.nuspec" - ] - }, - "Microsoft.NETCore.Platforms/1.1.0": { - "sha512": "kz0PEW2lhqygehI/d6XsPCQzD7ff7gUJaVGPVETX611eadGsA3A877GdSlU0LRVMCTH/+P3o2iDTak+S08V2+A==", - "type": "package", - "path": "microsoft.netcore.platforms/1.1.0", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "ThirdPartyNotices.txt", - "dotnet_library_license.txt", - "lib/netstandard1.0/_._", - "microsoft.netcore.platforms.1.1.0.nupkg.sha512", - "microsoft.netcore.platforms.nuspec", - "runtime.json" - ] - }, - "NETStandard.Library/2.0.3": { - "sha512": "st47PosZSHrjECdjeIzZQbzivYBJFv6P2nv4cj2ypdI204DO+vZ7l5raGMiX4eXMJ53RfOIg+/s4DHVZ54Nu2A==", - "type": "package", - "path": "netstandard.library/2.0.3", - "files": [ - ".nupkg.metadata", - "LICENSE.TXT", - "THIRD-PARTY-NOTICES.TXT", - "build/netstandard2.0/NETStandard.Library.targets", - "build/netstandard2.0/ref/Microsoft.Win32.Primitives.dll", - "build/netstandard2.0/ref/System.AppContext.dll", - "build/netstandard2.0/ref/System.Collections.Concurrent.dll", - "build/netstandard2.0/ref/System.Collections.NonGeneric.dll", - "build/netstandard2.0/ref/System.Collections.Specialized.dll", - "build/netstandard2.0/ref/System.Collections.dll", - "build/netstandard2.0/ref/System.ComponentModel.Composition.dll", - "build/netstandard2.0/ref/System.ComponentModel.EventBasedAsync.dll", - "build/netstandard2.0/ref/System.ComponentModel.Primitives.dll", - "build/netstandard2.0/ref/System.ComponentModel.TypeConverter.dll", - "build/netstandard2.0/ref/System.ComponentModel.dll", - "build/netstandard2.0/ref/System.Console.dll", - "build/netstandard2.0/ref/System.Core.dll", - "build/netstandard2.0/ref/System.Data.Common.dll", - "build/netstandard2.0/ref/System.Data.dll", - "build/netstandard2.0/ref/System.Diagnostics.Contracts.dll", - "build/netstandard2.0/ref/System.Diagnostics.Debug.dll", - "build/netstandard2.0/ref/System.Diagnostics.FileVersionInfo.dll", - "build/netstandard2.0/ref/System.Diagnostics.Process.dll", - "build/netstandard2.0/ref/System.Diagnostics.StackTrace.dll", - "build/netstandard2.0/ref/System.Diagnostics.TextWriterTraceListener.dll", - "build/netstandard2.0/ref/System.Diagnostics.Tools.dll", - "build/netstandard2.0/ref/System.Diagnostics.TraceSource.dll", - "build/netstandard2.0/ref/System.Diagnostics.Tracing.dll", - "build/netstandard2.0/ref/System.Drawing.Primitives.dll", - "build/netstandard2.0/ref/System.Drawing.dll", - "build/netstandard2.0/ref/System.Dynamic.Runtime.dll", - "build/netstandard2.0/ref/System.Globalization.Calendars.dll", - "build/netstandard2.0/ref/System.Globalization.Extensions.dll", - "build/netstandard2.0/ref/System.Globalization.dll", - "build/netstandard2.0/ref/System.IO.Compression.FileSystem.dll", - "build/netstandard2.0/ref/System.IO.Compression.ZipFile.dll", - "build/netstandard2.0/ref/System.IO.Compression.dll", - "build/netstandard2.0/ref/System.IO.FileSystem.DriveInfo.dll", - "build/netstandard2.0/ref/System.IO.FileSystem.Primitives.dll", - "build/netstandard2.0/ref/System.IO.FileSystem.Watcher.dll", - "build/netstandard2.0/ref/System.IO.FileSystem.dll", - "build/netstandard2.0/ref/System.IO.IsolatedStorage.dll", - "build/netstandard2.0/ref/System.IO.MemoryMappedFiles.dll", - "build/netstandard2.0/ref/System.IO.Pipes.dll", - "build/netstandard2.0/ref/System.IO.UnmanagedMemoryStream.dll", - "build/netstandard2.0/ref/System.IO.dll", - "build/netstandard2.0/ref/System.Linq.Expressions.dll", - "build/netstandard2.0/ref/System.Linq.Parallel.dll", - "build/netstandard2.0/ref/System.Linq.Queryable.dll", - "build/netstandard2.0/ref/System.Linq.dll", - "build/netstandard2.0/ref/System.Net.Http.dll", - "build/netstandard2.0/ref/System.Net.NameResolution.dll", - "build/netstandard2.0/ref/System.Net.NetworkInformation.dll", - "build/netstandard2.0/ref/System.Net.Ping.dll", - "build/netstandard2.0/ref/System.Net.Primitives.dll", - "build/netstandard2.0/ref/System.Net.Requests.dll", - "build/netstandard2.0/ref/System.Net.Security.dll", - "build/netstandard2.0/ref/System.Net.Sockets.dll", - "build/netstandard2.0/ref/System.Net.WebHeaderCollection.dll", - "build/netstandard2.0/ref/System.Net.WebSockets.Client.dll", - "build/netstandard2.0/ref/System.Net.WebSockets.dll", - "build/netstandard2.0/ref/System.Net.dll", - "build/netstandard2.0/ref/System.Numerics.dll", - "build/netstandard2.0/ref/System.ObjectModel.dll", - "build/netstandard2.0/ref/System.Reflection.Extensions.dll", - "build/netstandard2.0/ref/System.Reflection.Primitives.dll", - "build/netstandard2.0/ref/System.Reflection.dll", - "build/netstandard2.0/ref/System.Resources.Reader.dll", - "build/netstandard2.0/ref/System.Resources.ResourceManager.dll", - "build/netstandard2.0/ref/System.Resources.Writer.dll", - "build/netstandard2.0/ref/System.Runtime.CompilerServices.VisualC.dll", - "build/netstandard2.0/ref/System.Runtime.Extensions.dll", - "build/netstandard2.0/ref/System.Runtime.Handles.dll", - "build/netstandard2.0/ref/System.Runtime.InteropServices.RuntimeInformation.dll", - "build/netstandard2.0/ref/System.Runtime.InteropServices.dll", - "build/netstandard2.0/ref/System.Runtime.Numerics.dll", - "build/netstandard2.0/ref/System.Runtime.Serialization.Formatters.dll", - "build/netstandard2.0/ref/System.Runtime.Serialization.Json.dll", - "build/netstandard2.0/ref/System.Runtime.Serialization.Primitives.dll", - "build/netstandard2.0/ref/System.Runtime.Serialization.Xml.dll", - "build/netstandard2.0/ref/System.Runtime.Serialization.dll", - "build/netstandard2.0/ref/System.Runtime.dll", - "build/netstandard2.0/ref/System.Security.Claims.dll", - "build/netstandard2.0/ref/System.Security.Cryptography.Algorithms.dll", - "build/netstandard2.0/ref/System.Security.Cryptography.Csp.dll", - "build/netstandard2.0/ref/System.Security.Cryptography.Encoding.dll", - "build/netstandard2.0/ref/System.Security.Cryptography.Primitives.dll", - "build/netstandard2.0/ref/System.Security.Cryptography.X509Certificates.dll", - "build/netstandard2.0/ref/System.Security.Principal.dll", - "build/netstandard2.0/ref/System.Security.SecureString.dll", - "build/netstandard2.0/ref/System.ServiceModel.Web.dll", - "build/netstandard2.0/ref/System.Text.Encoding.Extensions.dll", - "build/netstandard2.0/ref/System.Text.Encoding.dll", - "build/netstandard2.0/ref/System.Text.RegularExpressions.dll", - "build/netstandard2.0/ref/System.Threading.Overlapped.dll", - "build/netstandard2.0/ref/System.Threading.Tasks.Parallel.dll", - "build/netstandard2.0/ref/System.Threading.Tasks.dll", - "build/netstandard2.0/ref/System.Threading.Thread.dll", - "build/netstandard2.0/ref/System.Threading.ThreadPool.dll", - "build/netstandard2.0/ref/System.Threading.Timer.dll", - "build/netstandard2.0/ref/System.Threading.dll", - "build/netstandard2.0/ref/System.Transactions.dll", - "build/netstandard2.0/ref/System.ValueTuple.dll", - "build/netstandard2.0/ref/System.Web.dll", - "build/netstandard2.0/ref/System.Windows.dll", - "build/netstandard2.0/ref/System.Xml.Linq.dll", - "build/netstandard2.0/ref/System.Xml.ReaderWriter.dll", - "build/netstandard2.0/ref/System.Xml.Serialization.dll", - "build/netstandard2.0/ref/System.Xml.XDocument.dll", - "build/netstandard2.0/ref/System.Xml.XPath.XDocument.dll", - "build/netstandard2.0/ref/System.Xml.XPath.dll", - "build/netstandard2.0/ref/System.Xml.XmlDocument.dll", - "build/netstandard2.0/ref/System.Xml.XmlSerializer.dll", - "build/netstandard2.0/ref/System.Xml.dll", - "build/netstandard2.0/ref/System.dll", - "build/netstandard2.0/ref/mscorlib.dll", - "build/netstandard2.0/ref/netstandard.dll", - "build/netstandard2.0/ref/netstandard.xml", - "lib/netstandard1.0/_._", - "netstandard.library.2.0.3.nupkg.sha512", - "netstandard.library.nuspec" - ] - }, - "Newtonsoft.Json/13.0.1": { - "sha512": "ppPFpBcvxdsfUonNcvITKqLl3bqxWbDCZIzDWHzjpdAHRFfZe0Dw9HmA0+za13IdyrgJwpkDTDA9fHaxOrt20A==", - "type": "package", - "path": "newtonsoft.json/13.0.1", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "LICENSE.md", - "lib/net20/Newtonsoft.Json.dll", - "lib/net20/Newtonsoft.Json.xml", - "lib/net35/Newtonsoft.Json.dll", - "lib/net35/Newtonsoft.Json.xml", - "lib/net40/Newtonsoft.Json.dll", - "lib/net40/Newtonsoft.Json.xml", - "lib/net45/Newtonsoft.Json.dll", - "lib/net45/Newtonsoft.Json.xml", - "lib/netstandard1.0/Newtonsoft.Json.dll", - "lib/netstandard1.0/Newtonsoft.Json.xml", - "lib/netstandard1.3/Newtonsoft.Json.dll", - "lib/netstandard1.3/Newtonsoft.Json.xml", - "lib/netstandard2.0/Newtonsoft.Json.dll", - "lib/netstandard2.0/Newtonsoft.Json.xml", - "newtonsoft.json.13.0.1.nupkg.sha512", - "newtonsoft.json.nuspec", - "packageIcon.png" - ] - }, - "Polly/7.1.0": { - "sha512": "mpQsvlEn4ipgICh5CGyVLPV93RFVzOrBG7wPZfzY8gExh7XgWQn0GCDY9nudbUEJ12UiGPP9i4+CohghBvzhmg==", - "type": "package", - "path": "polly/7.1.0", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "lib/netstandard1.1/Polly.dll", - "lib/netstandard1.1/Polly.xml", - "lib/netstandard2.0/Polly.dll", - "lib/netstandard2.0/Polly.xml", - "polly.7.1.0.nupkg.sha512", - "polly.nuspec" - ] - }, - "Polly.Extensions.Http/3.0.0": { - "sha512": "drrG+hB3pYFY7w1c3BD+lSGYvH2oIclH8GRSehgfyP5kjnFnHKQuuBhuHLv+PWyFuaTDyk/vfRpnxOzd11+J8g==", - "type": "package", - "path": "polly.extensions.http/3.0.0", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "lib/netstandard1.1/Polly.Extensions.Http.dll", - "lib/netstandard1.1/Polly.Extensions.Http.xml", - "lib/netstandard2.0/Polly.Extensions.Http.dll", - "lib/netstandard2.0/Polly.Extensions.Http.xml", - "polly.extensions.http.3.0.0.nupkg.sha512", - "polly.extensions.http.nuspec" - ] - }, - "System.Buffers/4.4.0": { - "sha512": "AwarXzzoDwX6BgrhjoJsk6tUezZEozOT5Y9QKF94Gl4JK91I4PIIBkBco9068Y9/Dra8Dkbie99kXB8+1BaYKw==", - "type": "package", - "path": "system.buffers/4.4.0", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "LICENSE.TXT", - "THIRD-PARTY-NOTICES.TXT", - "lib/netcoreapp2.0/_._", - "lib/netstandard1.1/System.Buffers.dll", - "lib/netstandard1.1/System.Buffers.xml", - "lib/netstandard2.0/System.Buffers.dll", - "lib/netstandard2.0/System.Buffers.xml", - "ref/netcoreapp2.0/_._", - "ref/netstandard1.1/System.Buffers.dll", - "ref/netstandard1.1/System.Buffers.xml", - "ref/netstandard2.0/System.Buffers.dll", - "ref/netstandard2.0/System.Buffers.xml", - "system.buffers.4.4.0.nupkg.sha512", - "system.buffers.nuspec", - "useSharedDesignerContext.txt", - "version.txt" - ] - }, - "System.ComponentModel.Annotations/4.7.0": { - "sha512": "0YFqjhp/mYkDGpU0Ye1GjE53HMp9UVfGN7seGpAMttAC0C40v5gw598jCgpbBLMmCo0E5YRLBv5Z2doypO49ZQ==", - "type": "package", - "path": "system.componentmodel.annotations/4.7.0", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "LICENSE.TXT", - "THIRD-PARTY-NOTICES.TXT", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net45/_._", - "lib/net461/System.ComponentModel.Annotations.dll", - "lib/netcore50/System.ComponentModel.Annotations.dll", - "lib/netstandard1.4/System.ComponentModel.Annotations.dll", - "lib/netstandard2.0/System.ComponentModel.Annotations.dll", - "lib/netstandard2.1/System.ComponentModel.Annotations.dll", - "lib/netstandard2.1/System.ComponentModel.Annotations.xml", - "lib/portable-net45+win8/_._", - "lib/win8/_._", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net45/_._", - "ref/net461/System.ComponentModel.Annotations.dll", - "ref/net461/System.ComponentModel.Annotations.xml", - "ref/netcore50/System.ComponentModel.Annotations.dll", - "ref/netcore50/System.ComponentModel.Annotations.xml", - "ref/netcore50/de/System.ComponentModel.Annotations.xml", - "ref/netcore50/es/System.ComponentModel.Annotations.xml", - "ref/netcore50/fr/System.ComponentModel.Annotations.xml", - "ref/netcore50/it/System.ComponentModel.Annotations.xml", - "ref/netcore50/ja/System.ComponentModel.Annotations.xml", - "ref/netcore50/ko/System.ComponentModel.Annotations.xml", - "ref/netcore50/ru/System.ComponentModel.Annotations.xml", - "ref/netcore50/zh-hans/System.ComponentModel.Annotations.xml", - "ref/netcore50/zh-hant/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/System.ComponentModel.Annotations.dll", - "ref/netstandard1.1/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/de/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/es/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/fr/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/it/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/ja/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/ko/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/ru/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/zh-hans/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/zh-hant/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/System.ComponentModel.Annotations.dll", - "ref/netstandard1.3/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/de/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/es/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/fr/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/it/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/ja/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/ko/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/ru/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/zh-hans/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/zh-hant/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/System.ComponentModel.Annotations.dll", - "ref/netstandard1.4/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/de/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/es/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/fr/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/it/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/ja/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/ko/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/ru/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/zh-hans/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/zh-hant/System.ComponentModel.Annotations.xml", - "ref/netstandard2.0/System.ComponentModel.Annotations.dll", - "ref/netstandard2.0/System.ComponentModel.Annotations.xml", - "ref/netstandard2.1/System.ComponentModel.Annotations.dll", - "ref/netstandard2.1/System.ComponentModel.Annotations.xml", - "ref/portable-net45+win8/_._", - "ref/win8/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._", - "system.componentmodel.annotations.4.7.0.nupkg.sha512", - "system.componentmodel.annotations.nuspec", - "useSharedDesignerContext.txt", - "version.txt" - ] - }, - "System.Memory/4.5.2": { - "sha512": "fvq1GNmUFwbKv+aLVYYdgu/+gc8Nu9oFujOxIjPrsf+meis9JBzTPDL6aP/eeGOz9yPj6rRLUbOjKMpsMEWpNg==", - "type": "package", - "path": "system.memory/4.5.2", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "LICENSE.TXT", - "THIRD-PARTY-NOTICES.TXT", - "lib/netcoreapp2.1/_._", - "lib/netstandard1.1/System.Memory.dll", - "lib/netstandard1.1/System.Memory.xml", - "lib/netstandard2.0/System.Memory.dll", - "lib/netstandard2.0/System.Memory.xml", - "ref/netcoreapp2.1/_._", - "system.memory.4.5.2.nupkg.sha512", - "system.memory.nuspec", - "useSharedDesignerContext.txt", - "version.txt" - ] - }, - "System.Numerics.Vectors/4.4.0": { - "sha512": "UiLzLW+Lw6HLed1Hcg+8jSRttrbuXv7DANVj0DkL9g6EnnzbL75EB7EWsw5uRbhxd/4YdG8li5XizGWepmG3PQ==", - "type": "package", - "path": "system.numerics.vectors/4.4.0", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "LICENSE.TXT", - "THIRD-PARTY-NOTICES.TXT", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net46/System.Numerics.Vectors.dll", - "lib/net46/System.Numerics.Vectors.xml", - "lib/netcoreapp2.0/_._", - "lib/netstandard1.0/System.Numerics.Vectors.dll", - "lib/netstandard1.0/System.Numerics.Vectors.xml", - "lib/netstandard2.0/System.Numerics.Vectors.dll", - "lib/netstandard2.0/System.Numerics.Vectors.xml", - "lib/portable-net45+win8+wp8+wpa81/System.Numerics.Vectors.dll", - "lib/portable-net45+win8+wp8+wpa81/System.Numerics.Vectors.xml", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net46/System.Numerics.Vectors.dll", - "ref/net46/System.Numerics.Vectors.xml", - "ref/netcoreapp2.0/_._", - "ref/netstandard1.0/System.Numerics.Vectors.dll", - "ref/netstandard1.0/System.Numerics.Vectors.xml", - "ref/netstandard2.0/System.Numerics.Vectors.dll", - "ref/netstandard2.0/System.Numerics.Vectors.xml", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._", - "system.numerics.vectors.4.4.0.nupkg.sha512", - "system.numerics.vectors.nuspec", - "useSharedDesignerContext.txt", - "version.txt" - ] - }, - "System.Runtime.CompilerServices.Unsafe/4.7.1": { - "sha512": "zOHkQmzPCn5zm/BH+cxC1XbUS3P4Yoi3xzW7eRgVpDR2tPGSzyMZ17Ig1iRkfJuY0nhxkQQde8pgePNiA7z7TQ==", - "type": "package", - "path": "system.runtime.compilerservices.unsafe/4.7.1", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "LICENSE.TXT", - "THIRD-PARTY-NOTICES.TXT", - "lib/net461/System.Runtime.CompilerServices.Unsafe.dll", - "lib/net461/System.Runtime.CompilerServices.Unsafe.xml", - "lib/netcoreapp2.0/System.Runtime.CompilerServices.Unsafe.dll", - "lib/netcoreapp2.0/System.Runtime.CompilerServices.Unsafe.xml", - "lib/netstandard1.0/System.Runtime.CompilerServices.Unsafe.dll", - "lib/netstandard1.0/System.Runtime.CompilerServices.Unsafe.xml", - "lib/netstandard2.0/System.Runtime.CompilerServices.Unsafe.dll", - "lib/netstandard2.0/System.Runtime.CompilerServices.Unsafe.xml", - "ref/net461/System.Runtime.CompilerServices.Unsafe.dll", - "ref/net461/System.Runtime.CompilerServices.Unsafe.xml", - "ref/netstandard1.0/System.Runtime.CompilerServices.Unsafe.dll", - "ref/netstandard1.0/System.Runtime.CompilerServices.Unsafe.xml", - "ref/netstandard2.0/System.Runtime.CompilerServices.Unsafe.dll", - "ref/netstandard2.0/System.Runtime.CompilerServices.Unsafe.xml", - "system.runtime.compilerservices.unsafe.4.7.1.nupkg.sha512", - "system.runtime.compilerservices.unsafe.nuspec", - "useSharedDesignerContext.txt", - "version.txt" - ] - }, - "System.Threading.Tasks.Extensions/4.5.4": { - "sha512": "zteT+G8xuGu6mS+mzDzYXbzS7rd3K6Fjb9RiZlYlJPam2/hU7JCBZBVEcywNuR+oZ1ncTvc/cq0faRr3P01OVg==", - "type": "package", - "path": "system.threading.tasks.extensions/4.5.4", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "LICENSE.TXT", - "THIRD-PARTY-NOTICES.TXT", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net461/System.Threading.Tasks.Extensions.dll", - "lib/net461/System.Threading.Tasks.Extensions.xml", - "lib/netcoreapp2.1/_._", - "lib/netstandard1.0/System.Threading.Tasks.Extensions.dll", - "lib/netstandard1.0/System.Threading.Tasks.Extensions.xml", - "lib/netstandard2.0/System.Threading.Tasks.Extensions.dll", - "lib/netstandard2.0/System.Threading.Tasks.Extensions.xml", - "lib/portable-net45+win8+wp8+wpa81/System.Threading.Tasks.Extensions.dll", - "lib/portable-net45+win8+wp8+wpa81/System.Threading.Tasks.Extensions.xml", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/netcoreapp2.1/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._", - "system.threading.tasks.extensions.4.5.4.nupkg.sha512", - "system.threading.tasks.extensions.nuspec", - "useSharedDesignerContext.txt", - "version.txt" - ] - } - }, - "projectFileDependencyGroups": { - ".NETStandard,Version=v2.0": [ - "HuaweiCloud.SDK.Core >= 3.1.11", - "NETStandard.Library >= 2.0.3", - "Newtonsoft.Json >= 13.0.1" - ] - }, - "packageFolders": { - "/root/.nuget/packages/": {}, - "/usr/dotnet2/sdk/NuGetFallbackFolder": {} - }, - "project": { - "version": "0.0.2-beta", - "restore": { - "projectUniqueName": "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Ecs/Ecs.csproj", - "projectName": "G42Cloud.SDK.Ecs", - "projectPath": "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Ecs/Ecs.csproj", - "packagesPath": "/root/.nuget/packages/", - "outputPath": "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Ecs/obj/", - "projectStyle": "PackageReference", - "fallbackFolders": [ - "/usr/dotnet2/sdk/NuGetFallbackFolder" - ], - "configFilePaths": [ - "/root/.nuget/NuGet/NuGet.Config" - ], - "originalTargetFrameworks": [ - "netstandard2.0" - ], - "sources": { - "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86": {} - }, - "frameworks": { - "netstandard2.0": { - "projectReferences": {} - } - }, - "warningProperties": { - "warnAsError": [ - "NU1605" - ] - } - }, - "frameworks": { - "netstandard2.0": { - "dependencies": { - "HuaweiCloud.SDK.Core": { - "target": "Package", - "version": "[3.1.11, )" - }, - "NETStandard.Library": { - "suppressParent": "All", - "target": "Package", - "version": "[2.0.3, )", - "autoReferenced": true - }, - "Newtonsoft.Json": { - "target": "Package", - "version": "[13.0.1, )" - } - }, - "imports": [ - "net461" - ], - "assetTargetFallback": true, - "warn": true - } - } - } -} \ No newline at end of file diff --git a/Services/Elb/Elb.csproj b/Services/Elb/Elb.csproj index f1b90c1..22ca7ed 100755 --- a/Services/Elb/Elb.csproj +++ b/Services/Elb/Elb.csproj @@ -15,7 +15,7 @@ false false G42Cloud.SDK.Elb - 0.0.2-beta + 0.0.3-beta G42Cloud Copyright 2020 G42 Technologies Co., Ltd. G42 Technologies Co., Ltd. @@ -24,7 +24,7 @@ - + diff --git a/Services/Elb/V3/ElbAsyncClient.cs b/Services/Elb/V3/ElbAsyncClient.cs index 7108e4f..5965c6c 100755 --- a/Services/Elb/V3/ElbAsyncClient.cs +++ b/Services/Elb/V3/ElbAsyncClient.cs @@ -1,7 +1,7 @@ using System.Net.Http; using System.Collections.Generic; using System.Threading.Tasks; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; using G42Cloud.SDK.Elb.V3.Model; namespace G42Cloud.SDK.Elb.V3 diff --git a/Services/Elb/V3/ElbClient.cs b/Services/Elb/V3/ElbClient.cs index ff5e9d6..29098a5 100755 --- a/Services/Elb/V3/ElbClient.cs +++ b/Services/Elb/V3/ElbClient.cs @@ -1,6 +1,6 @@ using System.Net.Http; using System.Collections.Generic; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; using G42Cloud.SDK.Elb.V3.Model; namespace G42Cloud.SDK.Elb.V3 diff --git a/Services/Elb/V3/Model/ApiVersionInfo.cs b/Services/Elb/V3/Model/ApiVersionInfo.cs index ff51c92..d7bdcd5 100755 --- a/Services/Elb/V3/Model/ApiVersionInfo.cs +++ b/Services/Elb/V3/Model/ApiVersionInfo.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { @@ -40,11 +41,16 @@ public class StatusEnum { "DEPRECATED", DEPRECATED }, }; - private string Value; + private string _value; + + public StatusEnum() + { + + } public StatusEnum(string value) { - Value = value; + _value = value; } public static StatusEnum FromValue(string value) @@ -63,17 +69,17 @@ public static StatusEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -102,7 +108,7 @@ public bool Equals(StatusEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(StatusEnum a, StatusEnum b) diff --git a/Services/Elb/V3/Model/AutoscalingRef.cs b/Services/Elb/V3/Model/AutoscalingRef.cs index c801386..eacecb6 100755 --- a/Services/Elb/V3/Model/AutoscalingRef.cs +++ b/Services/Elb/V3/Model/AutoscalingRef.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/AvailabilityZone.cs b/Services/Elb/V3/Model/AvailabilityZone.cs index 44bffdf..ef8fc1d 100755 --- a/Services/Elb/V3/Model/AvailabilityZone.cs +++ b/Services/Elb/V3/Model/AvailabilityZone.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/BandwidthRef.cs b/Services/Elb/V3/Model/BandwidthRef.cs index 3c2fd68..03cac14 100755 --- a/Services/Elb/V3/Model/BandwidthRef.cs +++ b/Services/Elb/V3/Model/BandwidthRef.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/BatchCreateMembersOption.cs b/Services/Elb/V3/Model/BatchCreateMembersOption.cs index 8d2cc3e..ed48449 100755 --- a/Services/Elb/V3/Model/BatchCreateMembersOption.cs +++ b/Services/Elb/V3/Model/BatchCreateMembersOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/BatchCreateMembersRequest.cs b/Services/Elb/V3/Model/BatchCreateMembersRequest.cs index b6856e4..c2f7e9c 100755 --- a/Services/Elb/V3/Model/BatchCreateMembersRequest.cs +++ b/Services/Elb/V3/Model/BatchCreateMembersRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/BatchCreateMembersRequestBody.cs b/Services/Elb/V3/Model/BatchCreateMembersRequestBody.cs index 4a4c13e..744e417 100755 --- a/Services/Elb/V3/Model/BatchCreateMembersRequestBody.cs +++ b/Services/Elb/V3/Model/BatchCreateMembersRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/BatchCreateMembersResponse.cs b/Services/Elb/V3/Model/BatchCreateMembersResponse.cs index 1a76cf7..dc08636 100755 --- a/Services/Elb/V3/Model/BatchCreateMembersResponse.cs +++ b/Services/Elb/V3/Model/BatchCreateMembersResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/BatchDeleteIpListOption.cs b/Services/Elb/V3/Model/BatchDeleteIpListOption.cs index 99ef40a..8f56c1c 100755 --- a/Services/Elb/V3/Model/BatchDeleteIpListOption.cs +++ b/Services/Elb/V3/Model/BatchDeleteIpListOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/BatchDeleteIpListRequest.cs b/Services/Elb/V3/Model/BatchDeleteIpListRequest.cs index ab3dff6..2ea3b39 100755 --- a/Services/Elb/V3/Model/BatchDeleteIpListRequest.cs +++ b/Services/Elb/V3/Model/BatchDeleteIpListRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/BatchDeleteIpListRequestBody.cs b/Services/Elb/V3/Model/BatchDeleteIpListRequestBody.cs index 43367cc..679db6e 100755 --- a/Services/Elb/V3/Model/BatchDeleteIpListRequestBody.cs +++ b/Services/Elb/V3/Model/BatchDeleteIpListRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/BatchDeleteIpListResponse.cs b/Services/Elb/V3/Model/BatchDeleteIpListResponse.cs index 968d5cf..724f235 100755 --- a/Services/Elb/V3/Model/BatchDeleteIpListResponse.cs +++ b/Services/Elb/V3/Model/BatchDeleteIpListResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/BatchDeleteMembersOption.cs b/Services/Elb/V3/Model/BatchDeleteMembersOption.cs index 586a30b..b4c1f22 100755 --- a/Services/Elb/V3/Model/BatchDeleteMembersOption.cs +++ b/Services/Elb/V3/Model/BatchDeleteMembersOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/BatchDeleteMembersRequest.cs b/Services/Elb/V3/Model/BatchDeleteMembersRequest.cs index d70994e..f65251b 100755 --- a/Services/Elb/V3/Model/BatchDeleteMembersRequest.cs +++ b/Services/Elb/V3/Model/BatchDeleteMembersRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/BatchDeleteMembersRequestBody.cs b/Services/Elb/V3/Model/BatchDeleteMembersRequestBody.cs index 887a19e..125dad1 100755 --- a/Services/Elb/V3/Model/BatchDeleteMembersRequestBody.cs +++ b/Services/Elb/V3/Model/BatchDeleteMembersRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/BatchDeleteMembersResponse.cs b/Services/Elb/V3/Model/BatchDeleteMembersResponse.cs index 183a4bf..8a7c0af 100755 --- a/Services/Elb/V3/Model/BatchDeleteMembersResponse.cs +++ b/Services/Elb/V3/Model/BatchDeleteMembersResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/BatchDeleteMembersState.cs b/Services/Elb/V3/Model/BatchDeleteMembersState.cs index 743d27c..bb62940 100755 --- a/Services/Elb/V3/Model/BatchDeleteMembersState.cs +++ b/Services/Elb/V3/Model/BatchDeleteMembersState.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/BatchMember.cs b/Services/Elb/V3/Model/BatchMember.cs index bf1927a..d02de13 100755 --- a/Services/Elb/V3/Model/BatchMember.cs +++ b/Services/Elb/V3/Model/BatchMember.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/BatchUpdatePoliciesPriorityRequest.cs b/Services/Elb/V3/Model/BatchUpdatePoliciesPriorityRequest.cs index 94f4c56..e69c0ee 100755 --- a/Services/Elb/V3/Model/BatchUpdatePoliciesPriorityRequest.cs +++ b/Services/Elb/V3/Model/BatchUpdatePoliciesPriorityRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/BatchUpdatePoliciesPriorityRequestBody.cs b/Services/Elb/V3/Model/BatchUpdatePoliciesPriorityRequestBody.cs index 80658c6..52e3d1c 100755 --- a/Services/Elb/V3/Model/BatchUpdatePoliciesPriorityRequestBody.cs +++ b/Services/Elb/V3/Model/BatchUpdatePoliciesPriorityRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/BatchUpdatePoliciesPriorityResponse.cs b/Services/Elb/V3/Model/BatchUpdatePoliciesPriorityResponse.cs index 104fddd..2d29241 100755 --- a/Services/Elb/V3/Model/BatchUpdatePoliciesPriorityResponse.cs +++ b/Services/Elb/V3/Model/BatchUpdatePoliciesPriorityResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/BatchUpdatePriorityRequestBody.cs b/Services/Elb/V3/Model/BatchUpdatePriorityRequestBody.cs index 2a02e06..230c67a 100755 --- a/Services/Elb/V3/Model/BatchUpdatePriorityRequestBody.cs +++ b/Services/Elb/V3/Model/BatchUpdatePriorityRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/CertificateInfo.cs b/Services/Elb/V3/Model/CertificateInfo.cs index ea61b16..5e3ebbf 100755 --- a/Services/Elb/V3/Model/CertificateInfo.cs +++ b/Services/Elb/V3/Model/CertificateInfo.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/ChangeLoadbalancerChargeModeRequest.cs b/Services/Elb/V3/Model/ChangeLoadbalancerChargeModeRequest.cs index 1808818..c74f8a4 100755 --- a/Services/Elb/V3/Model/ChangeLoadbalancerChargeModeRequest.cs +++ b/Services/Elb/V3/Model/ChangeLoadbalancerChargeModeRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/ChangeLoadbalancerChargeModeRequestBody.cs b/Services/Elb/V3/Model/ChangeLoadbalancerChargeModeRequestBody.cs index 5ec493e..d14c00c 100755 --- a/Services/Elb/V3/Model/ChangeLoadbalancerChargeModeRequestBody.cs +++ b/Services/Elb/V3/Model/ChangeLoadbalancerChargeModeRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { @@ -28,11 +29,16 @@ public class ChargeModeEnum { "prepaid", PREPAID }, }; - private string Value; + private string _value; + + public ChargeModeEnum() + { + + } public ChargeModeEnum(string value) { - Value = value; + _value = value; } public static ChargeModeEnum FromValue(string value) @@ -51,17 +57,17 @@ public static ChargeModeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -90,7 +96,7 @@ public bool Equals(ChargeModeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(ChargeModeEnum a, ChargeModeEnum b) diff --git a/Services/Elb/V3/Model/ChangeLoadbalancerChargeModeResponse.cs b/Services/Elb/V3/Model/ChangeLoadbalancerChargeModeResponse.cs index eacd7b5..5943e5f 100755 --- a/Services/Elb/V3/Model/ChangeLoadbalancerChargeModeResponse.cs +++ b/Services/Elb/V3/Model/ChangeLoadbalancerChargeModeResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/CountPreoccupyIpNumRequest.cs b/Services/Elb/V3/Model/CountPreoccupyIpNumRequest.cs index b033952..546ff3f 100755 --- a/Services/Elb/V3/Model/CountPreoccupyIpNumRequest.cs +++ b/Services/Elb/V3/Model/CountPreoccupyIpNumRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/CountPreoccupyIpNumResponse.cs b/Services/Elb/V3/Model/CountPreoccupyIpNumResponse.cs index 77d89c7..5aedbe5 100755 --- a/Services/Elb/V3/Model/CountPreoccupyIpNumResponse.cs +++ b/Services/Elb/V3/Model/CountPreoccupyIpNumResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/CreateCertificateOption.cs b/Services/Elb/V3/Model/CreateCertificateOption.cs index 60aa697..d82b8b6 100755 --- a/Services/Elb/V3/Model/CreateCertificateOption.cs +++ b/Services/Elb/V3/Model/CreateCertificateOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { @@ -34,11 +35,16 @@ public class TypeEnum { "client", CLIENT }, }; - private string Value; + private string _value; + + public TypeEnum() + { + + } public TypeEnum(string value) { - Value = value; + _value = value; } public static TypeEnum FromValue(string value) @@ -57,17 +63,17 @@ public static TypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -96,7 +102,7 @@ public bool Equals(TypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(TypeEnum a, TypeEnum b) diff --git a/Services/Elb/V3/Model/CreateCertificateRequest.cs b/Services/Elb/V3/Model/CreateCertificateRequest.cs index 8f1b021..4b68b4d 100755 --- a/Services/Elb/V3/Model/CreateCertificateRequest.cs +++ b/Services/Elb/V3/Model/CreateCertificateRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/CreateCertificateRequestBody.cs b/Services/Elb/V3/Model/CreateCertificateRequestBody.cs index 4161413..6c0bb61 100755 --- a/Services/Elb/V3/Model/CreateCertificateRequestBody.cs +++ b/Services/Elb/V3/Model/CreateCertificateRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/CreateCertificateResponse.cs b/Services/Elb/V3/Model/CreateCertificateResponse.cs index 42c8ca4..114a6bf 100755 --- a/Services/Elb/V3/Model/CreateCertificateResponse.cs +++ b/Services/Elb/V3/Model/CreateCertificateResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/CreateFixtedResponseConfig.cs b/Services/Elb/V3/Model/CreateFixtedResponseConfig.cs index 24e2391..3db1842 100755 --- a/Services/Elb/V3/Model/CreateFixtedResponseConfig.cs +++ b/Services/Elb/V3/Model/CreateFixtedResponseConfig.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { @@ -52,11 +53,16 @@ public class ContentTypeEnum { "application/json", APPLICATION_JSON }, }; - private string Value; + private string _value; + + public ContentTypeEnum() + { + + } public ContentTypeEnum(string value) { - Value = value; + _value = value; } public static ContentTypeEnum FromValue(string value) @@ -75,17 +81,17 @@ public static ContentTypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -114,7 +120,7 @@ public bool Equals(ContentTypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(ContentTypeEnum a, ContentTypeEnum b) diff --git a/Services/Elb/V3/Model/CreateHealthMonitorOption.cs b/Services/Elb/V3/Model/CreateHealthMonitorOption.cs index e332053..57d06d3 100755 --- a/Services/Elb/V3/Model/CreateHealthMonitorOption.cs +++ b/Services/Elb/V3/Model/CreateHealthMonitorOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/CreateHealthMonitorRequest.cs b/Services/Elb/V3/Model/CreateHealthMonitorRequest.cs index 8ae6a10..fb7260c 100755 --- a/Services/Elb/V3/Model/CreateHealthMonitorRequest.cs +++ b/Services/Elb/V3/Model/CreateHealthMonitorRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/CreateHealthMonitorRequestBody.cs b/Services/Elb/V3/Model/CreateHealthMonitorRequestBody.cs index 5c2bb33..3800fbb 100755 --- a/Services/Elb/V3/Model/CreateHealthMonitorRequestBody.cs +++ b/Services/Elb/V3/Model/CreateHealthMonitorRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/CreateHealthMonitorResponse.cs b/Services/Elb/V3/Model/CreateHealthMonitorResponse.cs index ae2ddae..be06d2d 100755 --- a/Services/Elb/V3/Model/CreateHealthMonitorResponse.cs +++ b/Services/Elb/V3/Model/CreateHealthMonitorResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/CreateIpGroupIpOption.cs b/Services/Elb/V3/Model/CreateIpGroupIpOption.cs index 404dfaf..c5b8090 100755 --- a/Services/Elb/V3/Model/CreateIpGroupIpOption.cs +++ b/Services/Elb/V3/Model/CreateIpGroupIpOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/CreateIpGroupOption.cs b/Services/Elb/V3/Model/CreateIpGroupOption.cs index 31a96bd..dab859e 100755 --- a/Services/Elb/V3/Model/CreateIpGroupOption.cs +++ b/Services/Elb/V3/Model/CreateIpGroupOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/CreateIpGroupRequest.cs b/Services/Elb/V3/Model/CreateIpGroupRequest.cs index 56be628..b6e4a35 100755 --- a/Services/Elb/V3/Model/CreateIpGroupRequest.cs +++ b/Services/Elb/V3/Model/CreateIpGroupRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/CreateIpGroupRequestBody.cs b/Services/Elb/V3/Model/CreateIpGroupRequestBody.cs index bcc391a..1ee25cb 100755 --- a/Services/Elb/V3/Model/CreateIpGroupRequestBody.cs +++ b/Services/Elb/V3/Model/CreateIpGroupRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/CreateIpGroupResponse.cs b/Services/Elb/V3/Model/CreateIpGroupResponse.cs index a1f720f..fdbf45c 100755 --- a/Services/Elb/V3/Model/CreateIpGroupResponse.cs +++ b/Services/Elb/V3/Model/CreateIpGroupResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/CreateL7PolicyOption.cs b/Services/Elb/V3/Model/CreateL7PolicyOption.cs index 4894232..b5453be 100755 --- a/Services/Elb/V3/Model/CreateL7PolicyOption.cs +++ b/Services/Elb/V3/Model/CreateL7PolicyOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/CreateL7PolicyRequest.cs b/Services/Elb/V3/Model/CreateL7PolicyRequest.cs index 1c24466..4f4de42 100755 --- a/Services/Elb/V3/Model/CreateL7PolicyRequest.cs +++ b/Services/Elb/V3/Model/CreateL7PolicyRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/CreateL7PolicyRequestBody.cs b/Services/Elb/V3/Model/CreateL7PolicyRequestBody.cs index ac37dcb..5ec6d9b 100755 --- a/Services/Elb/V3/Model/CreateL7PolicyRequestBody.cs +++ b/Services/Elb/V3/Model/CreateL7PolicyRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/CreateL7PolicyResponse.cs b/Services/Elb/V3/Model/CreateL7PolicyResponse.cs index 4e970b1..02b5c63 100755 --- a/Services/Elb/V3/Model/CreateL7PolicyResponse.cs +++ b/Services/Elb/V3/Model/CreateL7PolicyResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/CreateL7PolicyRuleOption.cs b/Services/Elb/V3/Model/CreateL7PolicyRuleOption.cs index c273e1c..76e1121 100755 --- a/Services/Elb/V3/Model/CreateL7PolicyRuleOption.cs +++ b/Services/Elb/V3/Model/CreateL7PolicyRuleOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/CreateL7RuleRequest.cs b/Services/Elb/V3/Model/CreateL7RuleRequest.cs index f481345..41b6eca 100755 --- a/Services/Elb/V3/Model/CreateL7RuleRequest.cs +++ b/Services/Elb/V3/Model/CreateL7RuleRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/CreateL7RuleRequestBody.cs b/Services/Elb/V3/Model/CreateL7RuleRequestBody.cs index 74ec3ec..5766534 100755 --- a/Services/Elb/V3/Model/CreateL7RuleRequestBody.cs +++ b/Services/Elb/V3/Model/CreateL7RuleRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/CreateL7RuleResponse.cs b/Services/Elb/V3/Model/CreateL7RuleResponse.cs index 152bab1..491f2dd 100755 --- a/Services/Elb/V3/Model/CreateL7RuleResponse.cs +++ b/Services/Elb/V3/Model/CreateL7RuleResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/CreateListenerIpGroupOption.cs b/Services/Elb/V3/Model/CreateListenerIpGroupOption.cs index f235010..2d3bd4f 100755 --- a/Services/Elb/V3/Model/CreateListenerIpGroupOption.cs +++ b/Services/Elb/V3/Model/CreateListenerIpGroupOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { @@ -34,11 +35,16 @@ public class TypeEnum { "black", BLACK }, }; - private string Value; + private string _value; + + public TypeEnum() + { + + } public TypeEnum(string value) { - Value = value; + _value = value; } public static TypeEnum FromValue(string value) @@ -57,17 +63,17 @@ public static TypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -96,7 +102,7 @@ public bool Equals(TypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(TypeEnum a, TypeEnum b) diff --git a/Services/Elb/V3/Model/CreateListenerOption.cs b/Services/Elb/V3/Model/CreateListenerOption.cs index 35ee234..7418ce5 100755 --- a/Services/Elb/V3/Model/CreateListenerOption.cs +++ b/Services/Elb/V3/Model/CreateListenerOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/CreateListenerQuicConfigOption.cs b/Services/Elb/V3/Model/CreateListenerQuicConfigOption.cs index 99c2613..0ad42b0 100755 --- a/Services/Elb/V3/Model/CreateListenerQuicConfigOption.cs +++ b/Services/Elb/V3/Model/CreateListenerQuicConfigOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/CreateListenerRequest.cs b/Services/Elb/V3/Model/CreateListenerRequest.cs index e0320fc..0060c10 100755 --- a/Services/Elb/V3/Model/CreateListenerRequest.cs +++ b/Services/Elb/V3/Model/CreateListenerRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/CreateListenerRequestBody.cs b/Services/Elb/V3/Model/CreateListenerRequestBody.cs index aeb907d..b57a442 100755 --- a/Services/Elb/V3/Model/CreateListenerRequestBody.cs +++ b/Services/Elb/V3/Model/CreateListenerRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/CreateListenerResponse.cs b/Services/Elb/V3/Model/CreateListenerResponse.cs index 5e29686..823bfbf 100755 --- a/Services/Elb/V3/Model/CreateListenerResponse.cs +++ b/Services/Elb/V3/Model/CreateListenerResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/CreateLoadBalancerBandwidthOption.cs b/Services/Elb/V3/Model/CreateLoadBalancerBandwidthOption.cs index d983509..7a03f6e 100755 --- a/Services/Elb/V3/Model/CreateLoadBalancerBandwidthOption.cs +++ b/Services/Elb/V3/Model/CreateLoadBalancerBandwidthOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { @@ -34,11 +35,16 @@ public class ChargeModeEnum { "traffic", TRAFFIC }, }; - private string Value; + private string _value; + + public ChargeModeEnum() + { + + } public ChargeModeEnum(string value) { - Value = value; + _value = value; } public static ChargeModeEnum FromValue(string value) @@ -57,17 +63,17 @@ public static ChargeModeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -96,7 +102,7 @@ public bool Equals(ChargeModeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(ChargeModeEnum a, ChargeModeEnum b) @@ -140,11 +146,16 @@ public class ShareTypeEnum { "WHOLE", WHOLE }, }; - private string Value; + private string _value; + + public ShareTypeEnum() + { + + } public ShareTypeEnum(string value) { - Value = value; + _value = value; } public static ShareTypeEnum FromValue(string value) @@ -163,17 +174,17 @@ public static ShareTypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -202,7 +213,7 @@ public bool Equals(ShareTypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(ShareTypeEnum a, ShareTypeEnum b) diff --git a/Services/Elb/V3/Model/CreateLoadBalancerOption.cs b/Services/Elb/V3/Model/CreateLoadBalancerOption.cs index 1f84dc0..51203b8 100755 --- a/Services/Elb/V3/Model/CreateLoadBalancerOption.cs +++ b/Services/Elb/V3/Model/CreateLoadBalancerOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { @@ -34,11 +35,16 @@ public class WafFailureActionEnum { "forward", FORWARD }, }; - private string Value; + private string _value; + + public WafFailureActionEnum() + { + + } public WafFailureActionEnum(string value) { - Value = value; + _value = value; } public static WafFailureActionEnum FromValue(string value) @@ -57,17 +63,17 @@ public static WafFailureActionEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -96,7 +102,7 @@ public bool Equals(WafFailureActionEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(WafFailureActionEnum a, WafFailureActionEnum b) diff --git a/Services/Elb/V3/Model/CreateLoadBalancerPublicIpOption.cs b/Services/Elb/V3/Model/CreateLoadBalancerPublicIpOption.cs index 45ee750..23db5db 100755 --- a/Services/Elb/V3/Model/CreateLoadBalancerPublicIpOption.cs +++ b/Services/Elb/V3/Model/CreateLoadBalancerPublicIpOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/CreateLoadBalancerRequest.cs b/Services/Elb/V3/Model/CreateLoadBalancerRequest.cs index d1116d0..07a4f37 100755 --- a/Services/Elb/V3/Model/CreateLoadBalancerRequest.cs +++ b/Services/Elb/V3/Model/CreateLoadBalancerRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/CreateLoadBalancerRequestBody.cs b/Services/Elb/V3/Model/CreateLoadBalancerRequestBody.cs index 638460d..cc5221b 100755 --- a/Services/Elb/V3/Model/CreateLoadBalancerRequestBody.cs +++ b/Services/Elb/V3/Model/CreateLoadBalancerRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/CreateLoadBalancerResponse.cs b/Services/Elb/V3/Model/CreateLoadBalancerResponse.cs index 89c95c1..ae3f3dc 100755 --- a/Services/Elb/V3/Model/CreateLoadBalancerResponse.cs +++ b/Services/Elb/V3/Model/CreateLoadBalancerResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/CreateLoadbalancerAutoscalingOption.cs b/Services/Elb/V3/Model/CreateLoadbalancerAutoscalingOption.cs index 6859dfc..d783f47 100755 --- a/Services/Elb/V3/Model/CreateLoadbalancerAutoscalingOption.cs +++ b/Services/Elb/V3/Model/CreateLoadbalancerAutoscalingOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/CreateLogtankOption.cs b/Services/Elb/V3/Model/CreateLogtankOption.cs index b0bf73e..28b72ad 100755 --- a/Services/Elb/V3/Model/CreateLogtankOption.cs +++ b/Services/Elb/V3/Model/CreateLogtankOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/CreateLogtankRequest.cs b/Services/Elb/V3/Model/CreateLogtankRequest.cs index c811e3d..1a3d28a 100755 --- a/Services/Elb/V3/Model/CreateLogtankRequest.cs +++ b/Services/Elb/V3/Model/CreateLogtankRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/CreateLogtankRequestBody.cs b/Services/Elb/V3/Model/CreateLogtankRequestBody.cs index 9c7fada..788a4e3 100755 --- a/Services/Elb/V3/Model/CreateLogtankRequestBody.cs +++ b/Services/Elb/V3/Model/CreateLogtankRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/CreateLogtankResponse.cs b/Services/Elb/V3/Model/CreateLogtankResponse.cs index 0e85e89..3b29223 100755 --- a/Services/Elb/V3/Model/CreateLogtankResponse.cs +++ b/Services/Elb/V3/Model/CreateLogtankResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/CreateMemberOption.cs b/Services/Elb/V3/Model/CreateMemberOption.cs index 257878d..43fbb1f 100755 --- a/Services/Elb/V3/Model/CreateMemberOption.cs +++ b/Services/Elb/V3/Model/CreateMemberOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/CreateMemberRequest.cs b/Services/Elb/V3/Model/CreateMemberRequest.cs index ab0a3ee..487425f 100755 --- a/Services/Elb/V3/Model/CreateMemberRequest.cs +++ b/Services/Elb/V3/Model/CreateMemberRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/CreateMemberRequestBody.cs b/Services/Elb/V3/Model/CreateMemberRequestBody.cs index dd5129a..0a8723d 100755 --- a/Services/Elb/V3/Model/CreateMemberRequestBody.cs +++ b/Services/Elb/V3/Model/CreateMemberRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/CreateMemberResponse.cs b/Services/Elb/V3/Model/CreateMemberResponse.cs index e77df50..8c0962f 100755 --- a/Services/Elb/V3/Model/CreateMemberResponse.cs +++ b/Services/Elb/V3/Model/CreateMemberResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/CreatePoolOption.cs b/Services/Elb/V3/Model/CreatePoolOption.cs index 1eab889..04ebf56 100755 --- a/Services/Elb/V3/Model/CreatePoolOption.cs +++ b/Services/Elb/V3/Model/CreatePoolOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/CreatePoolRequest.cs b/Services/Elb/V3/Model/CreatePoolRequest.cs index d54b56f..5060505 100755 --- a/Services/Elb/V3/Model/CreatePoolRequest.cs +++ b/Services/Elb/V3/Model/CreatePoolRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/CreatePoolRequestBody.cs b/Services/Elb/V3/Model/CreatePoolRequestBody.cs index 0901b0b..e3a1c47 100755 --- a/Services/Elb/V3/Model/CreatePoolRequestBody.cs +++ b/Services/Elb/V3/Model/CreatePoolRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/CreatePoolResponse.cs b/Services/Elb/V3/Model/CreatePoolResponse.cs index d209abb..51ee016 100755 --- a/Services/Elb/V3/Model/CreatePoolResponse.cs +++ b/Services/Elb/V3/Model/CreatePoolResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/CreatePoolSessionPersistenceOption.cs b/Services/Elb/V3/Model/CreatePoolSessionPersistenceOption.cs index e7d18b4..e9ed62d 100755 --- a/Services/Elb/V3/Model/CreatePoolSessionPersistenceOption.cs +++ b/Services/Elb/V3/Model/CreatePoolSessionPersistenceOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { @@ -40,11 +41,16 @@ public class TypeEnum { "APP_COOKIE", APP_COOKIE }, }; - private string Value; + private string _value; + + public TypeEnum() + { + + } public TypeEnum(string value) { - Value = value; + _value = value; } public static TypeEnum FromValue(string value) @@ -63,17 +69,17 @@ public static TypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -102,7 +108,7 @@ public bool Equals(TypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(TypeEnum a, TypeEnum b) diff --git a/Services/Elb/V3/Model/CreatePoolSlowStartOption.cs b/Services/Elb/V3/Model/CreatePoolSlowStartOption.cs index 2f6efef..9716c9a 100755 --- a/Services/Elb/V3/Model/CreatePoolSlowStartOption.cs +++ b/Services/Elb/V3/Model/CreatePoolSlowStartOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/CreateRedirectPoolsConfig.cs b/Services/Elb/V3/Model/CreateRedirectPoolsConfig.cs index a52a06f..95093e7 100755 --- a/Services/Elb/V3/Model/CreateRedirectPoolsConfig.cs +++ b/Services/Elb/V3/Model/CreateRedirectPoolsConfig.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/CreateRedirectUrlConfig.cs b/Services/Elb/V3/Model/CreateRedirectUrlConfig.cs index 3697efe..b51fda3 100755 --- a/Services/Elb/V3/Model/CreateRedirectUrlConfig.cs +++ b/Services/Elb/V3/Model/CreateRedirectUrlConfig.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { @@ -40,11 +41,16 @@ public class ProtocolEnum { "${protocol}", _PROTOCOL_ }, }; - private string Value; + private string _value; + + public ProtocolEnum() + { + + } public ProtocolEnum(string value) { - Value = value; + _value = value; } public static ProtocolEnum FromValue(string value) @@ -63,17 +69,17 @@ public static ProtocolEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -102,7 +108,7 @@ public bool Equals(ProtocolEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(ProtocolEnum a, ProtocolEnum b) @@ -164,11 +170,16 @@ public class StatusCodeEnum { "308", _308 }, }; - private string Value; + private string _value; + + public StatusCodeEnum() + { + + } public StatusCodeEnum(string value) { - Value = value; + _value = value; } public static StatusCodeEnum FromValue(string value) @@ -187,17 +198,17 @@ public static StatusCodeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -226,7 +237,7 @@ public bool Equals(StatusCodeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(StatusCodeEnum a, StatusCodeEnum b) diff --git a/Services/Elb/V3/Model/CreateRuleCondition.cs b/Services/Elb/V3/Model/CreateRuleCondition.cs index 6c25894..bcc7524 100755 --- a/Services/Elb/V3/Model/CreateRuleCondition.cs +++ b/Services/Elb/V3/Model/CreateRuleCondition.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/CreateRuleOption.cs b/Services/Elb/V3/Model/CreateRuleOption.cs index 91839cb..a6f8e7f 100755 --- a/Services/Elb/V3/Model/CreateRuleOption.cs +++ b/Services/Elb/V3/Model/CreateRuleOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/CreateSecurityPolicyOption.cs b/Services/Elb/V3/Model/CreateSecurityPolicyOption.cs index 5da5f75..aec0914 100755 --- a/Services/Elb/V3/Model/CreateSecurityPolicyOption.cs +++ b/Services/Elb/V3/Model/CreateSecurityPolicyOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { @@ -190,11 +191,16 @@ public class CiphersEnum { "TLS_AES_128_CCM_8_SHA256", TLS_AES_128_CCM_8_SHA256 }, }; - private string Value; + private string _value; + + public CiphersEnum() + { + + } public CiphersEnum(string value) { - Value = value; + _value = value; } public static CiphersEnum FromValue(string value) @@ -213,17 +219,17 @@ public static CiphersEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -252,7 +258,7 @@ public bool Equals(CiphersEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(CiphersEnum a, CiphersEnum b) diff --git a/Services/Elb/V3/Model/CreateSecurityPolicyRequest.cs b/Services/Elb/V3/Model/CreateSecurityPolicyRequest.cs index 6eb6bf1..cb61b7f 100755 --- a/Services/Elb/V3/Model/CreateSecurityPolicyRequest.cs +++ b/Services/Elb/V3/Model/CreateSecurityPolicyRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/CreateSecurityPolicyRequestBody.cs b/Services/Elb/V3/Model/CreateSecurityPolicyRequestBody.cs index 7e646aa..6554526 100755 --- a/Services/Elb/V3/Model/CreateSecurityPolicyRequestBody.cs +++ b/Services/Elb/V3/Model/CreateSecurityPolicyRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/CreateSecurityPolicyResponse.cs b/Services/Elb/V3/Model/CreateSecurityPolicyResponse.cs index 75a3886..3078baf 100755 --- a/Services/Elb/V3/Model/CreateSecurityPolicyResponse.cs +++ b/Services/Elb/V3/Model/CreateSecurityPolicyResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/DeleteCertificateRequest.cs b/Services/Elb/V3/Model/DeleteCertificateRequest.cs index cd2d869..8fed0c3 100755 --- a/Services/Elb/V3/Model/DeleteCertificateRequest.cs +++ b/Services/Elb/V3/Model/DeleteCertificateRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/DeleteCertificateResponse.cs b/Services/Elb/V3/Model/DeleteCertificateResponse.cs index a8d8449..32fbc92 100755 --- a/Services/Elb/V3/Model/DeleteCertificateResponse.cs +++ b/Services/Elb/V3/Model/DeleteCertificateResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/DeleteHealthMonitorRequest.cs b/Services/Elb/V3/Model/DeleteHealthMonitorRequest.cs index d379239..6eb39fa 100755 --- a/Services/Elb/V3/Model/DeleteHealthMonitorRequest.cs +++ b/Services/Elb/V3/Model/DeleteHealthMonitorRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/DeleteHealthMonitorResponse.cs b/Services/Elb/V3/Model/DeleteHealthMonitorResponse.cs index a01f7f7..fd432b6 100755 --- a/Services/Elb/V3/Model/DeleteHealthMonitorResponse.cs +++ b/Services/Elb/V3/Model/DeleteHealthMonitorResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/DeleteIpGroupRequest.cs b/Services/Elb/V3/Model/DeleteIpGroupRequest.cs index eb71350..62336e6 100755 --- a/Services/Elb/V3/Model/DeleteIpGroupRequest.cs +++ b/Services/Elb/V3/Model/DeleteIpGroupRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/DeleteIpGroupResponse.cs b/Services/Elb/V3/Model/DeleteIpGroupResponse.cs index 0146b16..e42463f 100755 --- a/Services/Elb/V3/Model/DeleteIpGroupResponse.cs +++ b/Services/Elb/V3/Model/DeleteIpGroupResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/DeleteL7PolicyRequest.cs b/Services/Elb/V3/Model/DeleteL7PolicyRequest.cs index 8157c3b..60e3c43 100755 --- a/Services/Elb/V3/Model/DeleteL7PolicyRequest.cs +++ b/Services/Elb/V3/Model/DeleteL7PolicyRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/DeleteL7PolicyResponse.cs b/Services/Elb/V3/Model/DeleteL7PolicyResponse.cs index a8af50e..f6061bf 100755 --- a/Services/Elb/V3/Model/DeleteL7PolicyResponse.cs +++ b/Services/Elb/V3/Model/DeleteL7PolicyResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/DeleteL7RuleRequest.cs b/Services/Elb/V3/Model/DeleteL7RuleRequest.cs index 0a90a16..bc4d3c2 100755 --- a/Services/Elb/V3/Model/DeleteL7RuleRequest.cs +++ b/Services/Elb/V3/Model/DeleteL7RuleRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/DeleteL7RuleResponse.cs b/Services/Elb/V3/Model/DeleteL7RuleResponse.cs index 76151eb..f6ee86d 100755 --- a/Services/Elb/V3/Model/DeleteL7RuleResponse.cs +++ b/Services/Elb/V3/Model/DeleteL7RuleResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/DeleteListenerRequest.cs b/Services/Elb/V3/Model/DeleteListenerRequest.cs index 96f7dd6..a008658 100755 --- a/Services/Elb/V3/Model/DeleteListenerRequest.cs +++ b/Services/Elb/V3/Model/DeleteListenerRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/DeleteListenerResponse.cs b/Services/Elb/V3/Model/DeleteListenerResponse.cs index 7b3e1b6..ecbb84e 100755 --- a/Services/Elb/V3/Model/DeleteListenerResponse.cs +++ b/Services/Elb/V3/Model/DeleteListenerResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/DeleteLoadBalancerRequest.cs b/Services/Elb/V3/Model/DeleteLoadBalancerRequest.cs index 389d680..f355145 100755 --- a/Services/Elb/V3/Model/DeleteLoadBalancerRequest.cs +++ b/Services/Elb/V3/Model/DeleteLoadBalancerRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/DeleteLoadBalancerResponse.cs b/Services/Elb/V3/Model/DeleteLoadBalancerResponse.cs index 3b21482..cc51881 100755 --- a/Services/Elb/V3/Model/DeleteLoadBalancerResponse.cs +++ b/Services/Elb/V3/Model/DeleteLoadBalancerResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/DeleteLogtankRequest.cs b/Services/Elb/V3/Model/DeleteLogtankRequest.cs index d908c63..a2b83ba 100755 --- a/Services/Elb/V3/Model/DeleteLogtankRequest.cs +++ b/Services/Elb/V3/Model/DeleteLogtankRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/DeleteLogtankResponse.cs b/Services/Elb/V3/Model/DeleteLogtankResponse.cs index f03a0bc..44a2601 100755 --- a/Services/Elb/V3/Model/DeleteLogtankResponse.cs +++ b/Services/Elb/V3/Model/DeleteLogtankResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/DeleteMemberRequest.cs b/Services/Elb/V3/Model/DeleteMemberRequest.cs index e29486f..1e271b8 100755 --- a/Services/Elb/V3/Model/DeleteMemberRequest.cs +++ b/Services/Elb/V3/Model/DeleteMemberRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/DeleteMemberResponse.cs b/Services/Elb/V3/Model/DeleteMemberResponse.cs index 0e5d87c..93f87ec 100755 --- a/Services/Elb/V3/Model/DeleteMemberResponse.cs +++ b/Services/Elb/V3/Model/DeleteMemberResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/DeletePoolRequest.cs b/Services/Elb/V3/Model/DeletePoolRequest.cs index aaedbee..8be1b7d 100755 --- a/Services/Elb/V3/Model/DeletePoolRequest.cs +++ b/Services/Elb/V3/Model/DeletePoolRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/DeletePoolResponse.cs b/Services/Elb/V3/Model/DeletePoolResponse.cs index 46b4073..a52bc00 100755 --- a/Services/Elb/V3/Model/DeletePoolResponse.cs +++ b/Services/Elb/V3/Model/DeletePoolResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/DeleteSecurityPolicyRequest.cs b/Services/Elb/V3/Model/DeleteSecurityPolicyRequest.cs index 1d3eca2..13a4edf 100755 --- a/Services/Elb/V3/Model/DeleteSecurityPolicyRequest.cs +++ b/Services/Elb/V3/Model/DeleteSecurityPolicyRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/DeleteSecurityPolicyResponse.cs b/Services/Elb/V3/Model/DeleteSecurityPolicyResponse.cs index e74d933..0017964 100755 --- a/Services/Elb/V3/Model/DeleteSecurityPolicyResponse.cs +++ b/Services/Elb/V3/Model/DeleteSecurityPolicyResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/EipInfo.cs b/Services/Elb/V3/Model/EipInfo.cs index cba2ee5..d4a34e9 100755 --- a/Services/Elb/V3/Model/EipInfo.cs +++ b/Services/Elb/V3/Model/EipInfo.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/FixtedResponseConfig.cs b/Services/Elb/V3/Model/FixtedResponseConfig.cs index 61e6dc2..7ce4534 100755 --- a/Services/Elb/V3/Model/FixtedResponseConfig.cs +++ b/Services/Elb/V3/Model/FixtedResponseConfig.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { @@ -52,11 +53,16 @@ public class ContentTypeEnum { "application/json", APPLICATION_JSON }, }; - private string Value; + private string _value; + + public ContentTypeEnum() + { + + } public ContentTypeEnum(string value) { - Value = value; + _value = value; } public static ContentTypeEnum FromValue(string value) @@ -75,17 +81,17 @@ public static ContentTypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -114,7 +120,7 @@ public bool Equals(ContentTypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(ContentTypeEnum a, ContentTypeEnum b) diff --git a/Services/Elb/V3/Model/Flavor.cs b/Services/Elb/V3/Model/Flavor.cs index eb75d14..c4c0aea 100755 --- a/Services/Elb/V3/Model/Flavor.cs +++ b/Services/Elb/V3/Model/Flavor.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/FlavorInfo.cs b/Services/Elb/V3/Model/FlavorInfo.cs index bd1a1cb..f5513cf 100755 --- a/Services/Elb/V3/Model/FlavorInfo.cs +++ b/Services/Elb/V3/Model/FlavorInfo.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/GlobalEipInfo.cs b/Services/Elb/V3/Model/GlobalEipInfo.cs index e1f3330..394eb02 100755 --- a/Services/Elb/V3/Model/GlobalEipInfo.cs +++ b/Services/Elb/V3/Model/GlobalEipInfo.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/HealthMonitor.cs b/Services/Elb/V3/Model/HealthMonitor.cs index 49a4310..8fc18a6 100755 --- a/Services/Elb/V3/Model/HealthMonitor.cs +++ b/Services/Elb/V3/Model/HealthMonitor.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/IpGroup.cs b/Services/Elb/V3/Model/IpGroup.cs index f6df361..b4ede14 100755 --- a/Services/Elb/V3/Model/IpGroup.cs +++ b/Services/Elb/V3/Model/IpGroup.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/IpGroupIp.cs b/Services/Elb/V3/Model/IpGroupIp.cs index efc5c10..6f2eee1 100755 --- a/Services/Elb/V3/Model/IpGroupIp.cs +++ b/Services/Elb/V3/Model/IpGroupIp.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/IpInfo.cs b/Services/Elb/V3/Model/IpInfo.cs index 507ea00..395ebf8 100755 --- a/Services/Elb/V3/Model/IpInfo.cs +++ b/Services/Elb/V3/Model/IpInfo.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/L7Policy.cs b/Services/Elb/V3/Model/L7Policy.cs index 49bb0a3..e069c02 100755 --- a/Services/Elb/V3/Model/L7Policy.cs +++ b/Services/Elb/V3/Model/L7Policy.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/L7Rule.cs b/Services/Elb/V3/Model/L7Rule.cs index e63fe2c..093e2f9 100755 --- a/Services/Elb/V3/Model/L7Rule.cs +++ b/Services/Elb/V3/Model/L7Rule.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { @@ -58,11 +59,16 @@ public class TypeEnum { "SOURCE_IP", SOURCE_IP }, }; - private string Value; + private string _value; + + public TypeEnum() + { + + } public TypeEnum(string value) { - Value = value; + _value = value; } public static TypeEnum FromValue(string value) @@ -81,17 +87,17 @@ public static TypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -120,7 +126,7 @@ public bool Equals(TypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(TypeEnum a, TypeEnum b) diff --git a/Services/Elb/V3/Model/ListAllMembersRequest.cs b/Services/Elb/V3/Model/ListAllMembersRequest.cs index 42240f9..3b9dd2e 100755 --- a/Services/Elb/V3/Model/ListAllMembersRequest.cs +++ b/Services/Elb/V3/Model/ListAllMembersRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/ListAllMembersResponse.cs b/Services/Elb/V3/Model/ListAllMembersResponse.cs index c47a6dd..3fd77d8 100755 --- a/Services/Elb/V3/Model/ListAllMembersResponse.cs +++ b/Services/Elb/V3/Model/ListAllMembersResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/ListApiVersionsRequest.cs b/Services/Elb/V3/Model/ListApiVersionsRequest.cs index 6336841..ade9ce6 100755 --- a/Services/Elb/V3/Model/ListApiVersionsRequest.cs +++ b/Services/Elb/V3/Model/ListApiVersionsRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/ListApiVersionsResponse.cs b/Services/Elb/V3/Model/ListApiVersionsResponse.cs index 7592e81..f1020ca 100755 --- a/Services/Elb/V3/Model/ListApiVersionsResponse.cs +++ b/Services/Elb/V3/Model/ListApiVersionsResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/ListAvailabilityZonesRequest.cs b/Services/Elb/V3/Model/ListAvailabilityZonesRequest.cs index b9da85a..75c5ac9 100755 --- a/Services/Elb/V3/Model/ListAvailabilityZonesRequest.cs +++ b/Services/Elb/V3/Model/ListAvailabilityZonesRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/ListAvailabilityZonesResponse.cs b/Services/Elb/V3/Model/ListAvailabilityZonesResponse.cs index 4e6055c..74a94ac 100755 --- a/Services/Elb/V3/Model/ListAvailabilityZonesResponse.cs +++ b/Services/Elb/V3/Model/ListAvailabilityZonesResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/ListCertificatesRequest.cs b/Services/Elb/V3/Model/ListCertificatesRequest.cs index 0562504..5adc338 100755 --- a/Services/Elb/V3/Model/ListCertificatesRequest.cs +++ b/Services/Elb/V3/Model/ListCertificatesRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/ListCertificatesResponse.cs b/Services/Elb/V3/Model/ListCertificatesResponse.cs index db1fdd7..a7c7255 100755 --- a/Services/Elb/V3/Model/ListCertificatesResponse.cs +++ b/Services/Elb/V3/Model/ListCertificatesResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/ListFlavorsRequest.cs b/Services/Elb/V3/Model/ListFlavorsRequest.cs index ea329ee..b444461 100755 --- a/Services/Elb/V3/Model/ListFlavorsRequest.cs +++ b/Services/Elb/V3/Model/ListFlavorsRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/ListFlavorsResponse.cs b/Services/Elb/V3/Model/ListFlavorsResponse.cs index 3a33671..e75f863 100755 --- a/Services/Elb/V3/Model/ListFlavorsResponse.cs +++ b/Services/Elb/V3/Model/ListFlavorsResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/ListHealthMonitorsRequest.cs b/Services/Elb/V3/Model/ListHealthMonitorsRequest.cs index 660a59c..f9f5600 100755 --- a/Services/Elb/V3/Model/ListHealthMonitorsRequest.cs +++ b/Services/Elb/V3/Model/ListHealthMonitorsRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/ListHealthMonitorsResponse.cs b/Services/Elb/V3/Model/ListHealthMonitorsResponse.cs index c01af44..79d5ac6 100755 --- a/Services/Elb/V3/Model/ListHealthMonitorsResponse.cs +++ b/Services/Elb/V3/Model/ListHealthMonitorsResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/ListIpGroupsRequest.cs b/Services/Elb/V3/Model/ListIpGroupsRequest.cs index 1616da2..288a93b 100755 --- a/Services/Elb/V3/Model/ListIpGroupsRequest.cs +++ b/Services/Elb/V3/Model/ListIpGroupsRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/ListIpGroupsResponse.cs b/Services/Elb/V3/Model/ListIpGroupsResponse.cs index 5ea8a81..f87f74e 100755 --- a/Services/Elb/V3/Model/ListIpGroupsResponse.cs +++ b/Services/Elb/V3/Model/ListIpGroupsResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/ListL7PoliciesRequest.cs b/Services/Elb/V3/Model/ListL7PoliciesRequest.cs index cc49b14..05aa284 100755 --- a/Services/Elb/V3/Model/ListL7PoliciesRequest.cs +++ b/Services/Elb/V3/Model/ListL7PoliciesRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/ListL7PoliciesResponse.cs b/Services/Elb/V3/Model/ListL7PoliciesResponse.cs index 3fd5480..d570113 100755 --- a/Services/Elb/V3/Model/ListL7PoliciesResponse.cs +++ b/Services/Elb/V3/Model/ListL7PoliciesResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/ListL7RulesRequest.cs b/Services/Elb/V3/Model/ListL7RulesRequest.cs index 4535a1f..ab115c1 100755 --- a/Services/Elb/V3/Model/ListL7RulesRequest.cs +++ b/Services/Elb/V3/Model/ListL7RulesRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/ListL7RulesResponse.cs b/Services/Elb/V3/Model/ListL7RulesResponse.cs index e538102..1ec8685 100755 --- a/Services/Elb/V3/Model/ListL7RulesResponse.cs +++ b/Services/Elb/V3/Model/ListL7RulesResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/ListListenersRequest.cs b/Services/Elb/V3/Model/ListListenersRequest.cs index 6b328a7..9c7f9c9 100755 --- a/Services/Elb/V3/Model/ListListenersRequest.cs +++ b/Services/Elb/V3/Model/ListListenersRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/ListListenersResponse.cs b/Services/Elb/V3/Model/ListListenersResponse.cs index c742b7c..0126b93 100755 --- a/Services/Elb/V3/Model/ListListenersResponse.cs +++ b/Services/Elb/V3/Model/ListListenersResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/ListLoadBalancersRequest.cs b/Services/Elb/V3/Model/ListLoadBalancersRequest.cs index ae661b1..6c65647 100755 --- a/Services/Elb/V3/Model/ListLoadBalancersRequest.cs +++ b/Services/Elb/V3/Model/ListLoadBalancersRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/ListLoadBalancersResponse.cs b/Services/Elb/V3/Model/ListLoadBalancersResponse.cs index b200eb3..825b278 100755 --- a/Services/Elb/V3/Model/ListLoadBalancersResponse.cs +++ b/Services/Elb/V3/Model/ListLoadBalancersResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/ListLogtanksRequest.cs b/Services/Elb/V3/Model/ListLogtanksRequest.cs index 88cb7f7..70232ab 100755 --- a/Services/Elb/V3/Model/ListLogtanksRequest.cs +++ b/Services/Elb/V3/Model/ListLogtanksRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/ListLogtanksResponse.cs b/Services/Elb/V3/Model/ListLogtanksResponse.cs index ed235fc..46b87a2 100755 --- a/Services/Elb/V3/Model/ListLogtanksResponse.cs +++ b/Services/Elb/V3/Model/ListLogtanksResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/ListMembersRequest.cs b/Services/Elb/V3/Model/ListMembersRequest.cs index 7b74a5f..145f96b 100755 --- a/Services/Elb/V3/Model/ListMembersRequest.cs +++ b/Services/Elb/V3/Model/ListMembersRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/ListMembersResponse.cs b/Services/Elb/V3/Model/ListMembersResponse.cs index ecc0ff8..8cb37ba 100755 --- a/Services/Elb/V3/Model/ListMembersResponse.cs +++ b/Services/Elb/V3/Model/ListMembersResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/ListPoolsRequest.cs b/Services/Elb/V3/Model/ListPoolsRequest.cs index d01b158..720fb37 100755 --- a/Services/Elb/V3/Model/ListPoolsRequest.cs +++ b/Services/Elb/V3/Model/ListPoolsRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/ListPoolsResponse.cs b/Services/Elb/V3/Model/ListPoolsResponse.cs index 8f75be1..ee8acc8 100755 --- a/Services/Elb/V3/Model/ListPoolsResponse.cs +++ b/Services/Elb/V3/Model/ListPoolsResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/ListQuotaDetailsRequest.cs b/Services/Elb/V3/Model/ListQuotaDetailsRequest.cs index f689948..4e3ab1a 100755 --- a/Services/Elb/V3/Model/ListQuotaDetailsRequest.cs +++ b/Services/Elb/V3/Model/ListQuotaDetailsRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/ListQuotaDetailsResponse.cs b/Services/Elb/V3/Model/ListQuotaDetailsResponse.cs index 0f13c20..dafad2b 100755 --- a/Services/Elb/V3/Model/ListQuotaDetailsResponse.cs +++ b/Services/Elb/V3/Model/ListQuotaDetailsResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/ListSecurityPoliciesRequest.cs b/Services/Elb/V3/Model/ListSecurityPoliciesRequest.cs index bd0dc3b..124f5b1 100755 --- a/Services/Elb/V3/Model/ListSecurityPoliciesRequest.cs +++ b/Services/Elb/V3/Model/ListSecurityPoliciesRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/ListSecurityPoliciesResponse.cs b/Services/Elb/V3/Model/ListSecurityPoliciesResponse.cs index f33295e..c684ed2 100755 --- a/Services/Elb/V3/Model/ListSecurityPoliciesResponse.cs +++ b/Services/Elb/V3/Model/ListSecurityPoliciesResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/ListSystemSecurityPoliciesRequest.cs b/Services/Elb/V3/Model/ListSystemSecurityPoliciesRequest.cs index 5996a6a..8345889 100755 --- a/Services/Elb/V3/Model/ListSystemSecurityPoliciesRequest.cs +++ b/Services/Elb/V3/Model/ListSystemSecurityPoliciesRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/ListSystemSecurityPoliciesResponse.cs b/Services/Elb/V3/Model/ListSystemSecurityPoliciesResponse.cs index 47df997..b32965f 100755 --- a/Services/Elb/V3/Model/ListSystemSecurityPoliciesResponse.cs +++ b/Services/Elb/V3/Model/ListSystemSecurityPoliciesResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/Listener.cs b/Services/Elb/V3/Model/Listener.cs index f25bad2..f48d25a 100755 --- a/Services/Elb/V3/Model/Listener.cs +++ b/Services/Elb/V3/Model/Listener.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/ListenerInsertHeaders.cs b/Services/Elb/V3/Model/ListenerInsertHeaders.cs index 4721c63..3793ec5 100755 --- a/Services/Elb/V3/Model/ListenerInsertHeaders.cs +++ b/Services/Elb/V3/Model/ListenerInsertHeaders.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/ListenerIpGroup.cs b/Services/Elb/V3/Model/ListenerIpGroup.cs index 98dea1b..3d7f1ea 100755 --- a/Services/Elb/V3/Model/ListenerIpGroup.cs +++ b/Services/Elb/V3/Model/ListenerIpGroup.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/ListenerQuicConfig.cs b/Services/Elb/V3/Model/ListenerQuicConfig.cs index 243cac9..6a5f332 100755 --- a/Services/Elb/V3/Model/ListenerQuicConfig.cs +++ b/Services/Elb/V3/Model/ListenerQuicConfig.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/ListenerRef.cs b/Services/Elb/V3/Model/ListenerRef.cs index f3164bc..9d0bc1e 100755 --- a/Services/Elb/V3/Model/ListenerRef.cs +++ b/Services/Elb/V3/Model/ListenerRef.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/LoadBalancer.cs b/Services/Elb/V3/Model/LoadBalancer.cs index a7646ab..272497d 100755 --- a/Services/Elb/V3/Model/LoadBalancer.cs +++ b/Services/Elb/V3/Model/LoadBalancer.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { @@ -34,11 +35,16 @@ public class ElbVirsubnetTypeEnum { "dualstack", DUALSTACK }, }; - private string Value; + private string _value; + + public ElbVirsubnetTypeEnum() + { + + } public ElbVirsubnetTypeEnum(string value) { - Value = value; + _value = value; } public static ElbVirsubnetTypeEnum FromValue(string value) @@ -57,17 +63,17 @@ public static ElbVirsubnetTypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -96,7 +102,7 @@ public bool Equals(ElbVirsubnetTypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(ElbVirsubnetTypeEnum a, ElbVirsubnetTypeEnum b) diff --git a/Services/Elb/V3/Model/LoadBalancerRef.cs b/Services/Elb/V3/Model/LoadBalancerRef.cs index 34056a4..78ba734 100755 --- a/Services/Elb/V3/Model/LoadBalancerRef.cs +++ b/Services/Elb/V3/Model/LoadBalancerRef.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/LoadBalancerStatus.cs b/Services/Elb/V3/Model/LoadBalancerStatus.cs index 974a86a..8f74556 100755 --- a/Services/Elb/V3/Model/LoadBalancerStatus.cs +++ b/Services/Elb/V3/Model/LoadBalancerStatus.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/LoadBalancerStatusHealthMonitor.cs b/Services/Elb/V3/Model/LoadBalancerStatusHealthMonitor.cs index 6d61513..8c7a8f0 100755 --- a/Services/Elb/V3/Model/LoadBalancerStatusHealthMonitor.cs +++ b/Services/Elb/V3/Model/LoadBalancerStatusHealthMonitor.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/LoadBalancerStatusL7Rule.cs b/Services/Elb/V3/Model/LoadBalancerStatusL7Rule.cs index 869a95f..154bc14 100755 --- a/Services/Elb/V3/Model/LoadBalancerStatusL7Rule.cs +++ b/Services/Elb/V3/Model/LoadBalancerStatusL7Rule.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/LoadBalancerStatusListener.cs b/Services/Elb/V3/Model/LoadBalancerStatusListener.cs index ff97a28..0da1a3f 100755 --- a/Services/Elb/V3/Model/LoadBalancerStatusListener.cs +++ b/Services/Elb/V3/Model/LoadBalancerStatusListener.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/LoadBalancerStatusMember.cs b/Services/Elb/V3/Model/LoadBalancerStatusMember.cs index 495d47e..a0cb1be 100755 --- a/Services/Elb/V3/Model/LoadBalancerStatusMember.cs +++ b/Services/Elb/V3/Model/LoadBalancerStatusMember.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/LoadBalancerStatusPolicy.cs b/Services/Elb/V3/Model/LoadBalancerStatusPolicy.cs index b36df8e..9108ac4 100755 --- a/Services/Elb/V3/Model/LoadBalancerStatusPolicy.cs +++ b/Services/Elb/V3/Model/LoadBalancerStatusPolicy.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/LoadBalancerStatusPool.cs b/Services/Elb/V3/Model/LoadBalancerStatusPool.cs index ae7098c..f1a0ca5 100755 --- a/Services/Elb/V3/Model/LoadBalancerStatusPool.cs +++ b/Services/Elb/V3/Model/LoadBalancerStatusPool.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/LoadBalancerStatusResult.cs b/Services/Elb/V3/Model/LoadBalancerStatusResult.cs index 649284c..b853d99 100755 --- a/Services/Elb/V3/Model/LoadBalancerStatusResult.cs +++ b/Services/Elb/V3/Model/LoadBalancerStatusResult.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/Logtank.cs b/Services/Elb/V3/Model/Logtank.cs index 90c01f7..01bc173 100755 --- a/Services/Elb/V3/Model/Logtank.cs +++ b/Services/Elb/V3/Model/Logtank.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/Member.cs b/Services/Elb/V3/Model/Member.cs index 6443bf4..8916af5 100755 --- a/Services/Elb/V3/Model/Member.cs +++ b/Services/Elb/V3/Model/Member.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/MemberRef.cs b/Services/Elb/V3/Model/MemberRef.cs index 0eaa89f..55395a3 100755 --- a/Services/Elb/V3/Model/MemberRef.cs +++ b/Services/Elb/V3/Model/MemberRef.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/MemberStatus.cs b/Services/Elb/V3/Model/MemberStatus.cs index 1126c93..106c5d5 100755 --- a/Services/Elb/V3/Model/MemberStatus.cs +++ b/Services/Elb/V3/Model/MemberStatus.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/PageInfo.cs b/Services/Elb/V3/Model/PageInfo.cs index 158d449..5b8c67d 100755 --- a/Services/Elb/V3/Model/PageInfo.cs +++ b/Services/Elb/V3/Model/PageInfo.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/Pool.cs b/Services/Elb/V3/Model/Pool.cs index c0d1d14..0885f06 100755 --- a/Services/Elb/V3/Model/Pool.cs +++ b/Services/Elb/V3/Model/Pool.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/PoolRef.cs b/Services/Elb/V3/Model/PoolRef.cs index 15c2b87..4ae69b1 100755 --- a/Services/Elb/V3/Model/PoolRef.cs +++ b/Services/Elb/V3/Model/PoolRef.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/PreoccupyIp.cs b/Services/Elb/V3/Model/PreoccupyIp.cs index c1d2492..05375fe 100755 --- a/Services/Elb/V3/Model/PreoccupyIp.cs +++ b/Services/Elb/V3/Model/PreoccupyIp.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/PrepaidChangeChargeModeOption.cs b/Services/Elb/V3/Model/PrepaidChangeChargeModeOption.cs index b19600e..c70c424 100755 --- a/Services/Elb/V3/Model/PrepaidChangeChargeModeOption.cs +++ b/Services/Elb/V3/Model/PrepaidChangeChargeModeOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { @@ -34,11 +35,16 @@ public class PeriodTypeEnum { "year", YEAR }, }; - private string Value; + private string _value; + + public PeriodTypeEnum() + { + + } public PeriodTypeEnum(string value) { - Value = value; + _value = value; } public static PeriodTypeEnum FromValue(string value) @@ -57,17 +63,17 @@ public static PeriodTypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -96,7 +102,7 @@ public bool Equals(PeriodTypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(PeriodTypeEnum a, PeriodTypeEnum b) diff --git a/Services/Elb/V3/Model/PrepaidCreateOption.cs b/Services/Elb/V3/Model/PrepaidCreateOption.cs index e44170b..d761a1b 100755 --- a/Services/Elb/V3/Model/PrepaidCreateOption.cs +++ b/Services/Elb/V3/Model/PrepaidCreateOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { @@ -34,11 +35,16 @@ public class PeriodTypeEnum { "year", YEAR }, }; - private string Value; + private string _value; + + public PeriodTypeEnum() + { + + } public PeriodTypeEnum(string value) { - Value = value; + _value = value; } public static PeriodTypeEnum FromValue(string value) @@ -57,17 +63,17 @@ public static PeriodTypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -96,7 +102,7 @@ public bool Equals(PeriodTypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(PeriodTypeEnum a, PeriodTypeEnum b) diff --git a/Services/Elb/V3/Model/PrepaidUpdateOption.cs b/Services/Elb/V3/Model/PrepaidUpdateOption.cs index 54f8ee2..ea4050a 100755 --- a/Services/Elb/V3/Model/PrepaidUpdateOption.cs +++ b/Services/Elb/V3/Model/PrepaidUpdateOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { @@ -34,11 +35,16 @@ public class ChangeModeEnum { "delay", DELAY }, }; - private string Value; + private string _value; + + public ChangeModeEnum() + { + + } public ChangeModeEnum(string value) { - Value = value; + _value = value; } public static ChangeModeEnum FromValue(string value) @@ -57,17 +63,17 @@ public static ChangeModeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -96,7 +102,7 @@ public bool Equals(ChangeModeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(ChangeModeEnum a, ChangeModeEnum b) @@ -140,11 +146,16 @@ public class PeriodTypeEnum { "year", YEAR }, }; - private string Value; + private string _value; + + public PeriodTypeEnum() + { + + } public PeriodTypeEnum(string value) { - Value = value; + _value = value; } public static PeriodTypeEnum FromValue(string value) @@ -163,17 +174,17 @@ public static PeriodTypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -202,7 +213,7 @@ public bool Equals(PeriodTypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(PeriodTypeEnum a, PeriodTypeEnum b) diff --git a/Services/Elb/V3/Model/PublicIpInfo.cs b/Services/Elb/V3/Model/PublicIpInfo.cs index 87651b1..ca8f0dc 100755 --- a/Services/Elb/V3/Model/PublicIpInfo.cs +++ b/Services/Elb/V3/Model/PublicIpInfo.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/Quota.cs b/Services/Elb/V3/Model/Quota.cs index 04b9b34..e199634 100755 --- a/Services/Elb/V3/Model/Quota.cs +++ b/Services/Elb/V3/Model/Quota.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/QuotaInfo.cs b/Services/Elb/V3/Model/QuotaInfo.cs index 467a915..a76cc6f 100755 --- a/Services/Elb/V3/Model/QuotaInfo.cs +++ b/Services/Elb/V3/Model/QuotaInfo.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/RedirectUrlConfig.cs b/Services/Elb/V3/Model/RedirectUrlConfig.cs index 8f851bc..11d2d4d 100755 --- a/Services/Elb/V3/Model/RedirectUrlConfig.cs +++ b/Services/Elb/V3/Model/RedirectUrlConfig.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { @@ -40,11 +41,16 @@ public class ProtocolEnum { "${protocol}", _PROTOCOL_ }, }; - private string Value; + private string _value; + + public ProtocolEnum() + { + + } public ProtocolEnum(string value) { - Value = value; + _value = value; } public static ProtocolEnum FromValue(string value) @@ -63,17 +69,17 @@ public static ProtocolEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -102,7 +108,7 @@ public bool Equals(ProtocolEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(ProtocolEnum a, ProtocolEnum b) @@ -164,11 +170,16 @@ public class StatusCodeEnum { "308", _308 }, }; - private string Value; + private string _value; + + public StatusCodeEnum() + { + + } public StatusCodeEnum(string value) { - Value = value; + _value = value; } public static StatusCodeEnum FromValue(string value) @@ -187,17 +198,17 @@ public static StatusCodeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -226,7 +237,7 @@ public bool Equals(StatusCodeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(StatusCodeEnum a, StatusCodeEnum b) diff --git a/Services/Elb/V3/Model/ResourceID.cs b/Services/Elb/V3/Model/ResourceID.cs index 7416587..aa92960 100755 --- a/Services/Elb/V3/Model/ResourceID.cs +++ b/Services/Elb/V3/Model/ResourceID.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/RuleCondition.cs b/Services/Elb/V3/Model/RuleCondition.cs index 0ee522c..8eaf346 100755 --- a/Services/Elb/V3/Model/RuleCondition.cs +++ b/Services/Elb/V3/Model/RuleCondition.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/RuleRef.cs b/Services/Elb/V3/Model/RuleRef.cs index 655b452..23f22f5 100755 --- a/Services/Elb/V3/Model/RuleRef.cs +++ b/Services/Elb/V3/Model/RuleRef.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/SecurityPolicy.cs b/Services/Elb/V3/Model/SecurityPolicy.cs index 9900be8..90bb9c6 100755 --- a/Services/Elb/V3/Model/SecurityPolicy.cs +++ b/Services/Elb/V3/Model/SecurityPolicy.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/SessionPersistence.cs b/Services/Elb/V3/Model/SessionPersistence.cs index d6315bc..adce50c 100755 --- a/Services/Elb/V3/Model/SessionPersistence.cs +++ b/Services/Elb/V3/Model/SessionPersistence.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/ShowCertificateRequest.cs b/Services/Elb/V3/Model/ShowCertificateRequest.cs index 215fb86..9720542 100755 --- a/Services/Elb/V3/Model/ShowCertificateRequest.cs +++ b/Services/Elb/V3/Model/ShowCertificateRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/ShowCertificateResponse.cs b/Services/Elb/V3/Model/ShowCertificateResponse.cs index d0c362b..431ca52 100755 --- a/Services/Elb/V3/Model/ShowCertificateResponse.cs +++ b/Services/Elb/V3/Model/ShowCertificateResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/ShowFlavorRequest.cs b/Services/Elb/V3/Model/ShowFlavorRequest.cs index fd1665a..82dd8a3 100755 --- a/Services/Elb/V3/Model/ShowFlavorRequest.cs +++ b/Services/Elb/V3/Model/ShowFlavorRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/ShowFlavorResponse.cs b/Services/Elb/V3/Model/ShowFlavorResponse.cs index 93f8cf2..a45400b 100755 --- a/Services/Elb/V3/Model/ShowFlavorResponse.cs +++ b/Services/Elb/V3/Model/ShowFlavorResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/ShowHealthMonitorRequest.cs b/Services/Elb/V3/Model/ShowHealthMonitorRequest.cs index c2a1a20..3fc2e19 100755 --- a/Services/Elb/V3/Model/ShowHealthMonitorRequest.cs +++ b/Services/Elb/V3/Model/ShowHealthMonitorRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/ShowHealthMonitorResponse.cs b/Services/Elb/V3/Model/ShowHealthMonitorResponse.cs index 1c4b8a8..a0ef444 100755 --- a/Services/Elb/V3/Model/ShowHealthMonitorResponse.cs +++ b/Services/Elb/V3/Model/ShowHealthMonitorResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/ShowIpGroupRequest.cs b/Services/Elb/V3/Model/ShowIpGroupRequest.cs index 4a26324..60cd8bd 100755 --- a/Services/Elb/V3/Model/ShowIpGroupRequest.cs +++ b/Services/Elb/V3/Model/ShowIpGroupRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/ShowIpGroupResponse.cs b/Services/Elb/V3/Model/ShowIpGroupResponse.cs index e8717c6..f816898 100755 --- a/Services/Elb/V3/Model/ShowIpGroupResponse.cs +++ b/Services/Elb/V3/Model/ShowIpGroupResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/ShowL7PolicyRequest.cs b/Services/Elb/V3/Model/ShowL7PolicyRequest.cs index 26460cf..7f6647b 100755 --- a/Services/Elb/V3/Model/ShowL7PolicyRequest.cs +++ b/Services/Elb/V3/Model/ShowL7PolicyRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/ShowL7PolicyResponse.cs b/Services/Elb/V3/Model/ShowL7PolicyResponse.cs index 36d43ba..6bf62b3 100755 --- a/Services/Elb/V3/Model/ShowL7PolicyResponse.cs +++ b/Services/Elb/V3/Model/ShowL7PolicyResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/ShowL7RuleRequest.cs b/Services/Elb/V3/Model/ShowL7RuleRequest.cs index 3ec4698..36f9fd6 100755 --- a/Services/Elb/V3/Model/ShowL7RuleRequest.cs +++ b/Services/Elb/V3/Model/ShowL7RuleRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/ShowL7RuleResponse.cs b/Services/Elb/V3/Model/ShowL7RuleResponse.cs index 9718876..19f24f3 100755 --- a/Services/Elb/V3/Model/ShowL7RuleResponse.cs +++ b/Services/Elb/V3/Model/ShowL7RuleResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/ShowListenerRequest.cs b/Services/Elb/V3/Model/ShowListenerRequest.cs index 785b1ff..e776857 100755 --- a/Services/Elb/V3/Model/ShowListenerRequest.cs +++ b/Services/Elb/V3/Model/ShowListenerRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/ShowListenerResponse.cs b/Services/Elb/V3/Model/ShowListenerResponse.cs index abafd10..caa4a2e 100755 --- a/Services/Elb/V3/Model/ShowListenerResponse.cs +++ b/Services/Elb/V3/Model/ShowListenerResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/ShowLoadBalancerRequest.cs b/Services/Elb/V3/Model/ShowLoadBalancerRequest.cs index 605c94e..5731455 100755 --- a/Services/Elb/V3/Model/ShowLoadBalancerRequest.cs +++ b/Services/Elb/V3/Model/ShowLoadBalancerRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/ShowLoadBalancerResponse.cs b/Services/Elb/V3/Model/ShowLoadBalancerResponse.cs index 97ea3a5..bce7d56 100755 --- a/Services/Elb/V3/Model/ShowLoadBalancerResponse.cs +++ b/Services/Elb/V3/Model/ShowLoadBalancerResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/ShowLoadBalancerStatusRequest.cs b/Services/Elb/V3/Model/ShowLoadBalancerStatusRequest.cs index a6b1c3f..58a5972 100755 --- a/Services/Elb/V3/Model/ShowLoadBalancerStatusRequest.cs +++ b/Services/Elb/V3/Model/ShowLoadBalancerStatusRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/ShowLoadBalancerStatusResponse.cs b/Services/Elb/V3/Model/ShowLoadBalancerStatusResponse.cs index 69a0a16..83ceba3 100755 --- a/Services/Elb/V3/Model/ShowLoadBalancerStatusResponse.cs +++ b/Services/Elb/V3/Model/ShowLoadBalancerStatusResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/ShowLogtankRequest.cs b/Services/Elb/V3/Model/ShowLogtankRequest.cs index f4dfcf9..df00b9d 100755 --- a/Services/Elb/V3/Model/ShowLogtankRequest.cs +++ b/Services/Elb/V3/Model/ShowLogtankRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/ShowLogtankResponse.cs b/Services/Elb/V3/Model/ShowLogtankResponse.cs index f4f69c1..e9977b6 100755 --- a/Services/Elb/V3/Model/ShowLogtankResponse.cs +++ b/Services/Elb/V3/Model/ShowLogtankResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/ShowMemberRequest.cs b/Services/Elb/V3/Model/ShowMemberRequest.cs index 5b46fdc..d9066d2 100755 --- a/Services/Elb/V3/Model/ShowMemberRequest.cs +++ b/Services/Elb/V3/Model/ShowMemberRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/ShowMemberResponse.cs b/Services/Elb/V3/Model/ShowMemberResponse.cs index 493ac48..886bfe8 100755 --- a/Services/Elb/V3/Model/ShowMemberResponse.cs +++ b/Services/Elb/V3/Model/ShowMemberResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/ShowPoolRequest.cs b/Services/Elb/V3/Model/ShowPoolRequest.cs index aa0c84e..9065f5d 100755 --- a/Services/Elb/V3/Model/ShowPoolRequest.cs +++ b/Services/Elb/V3/Model/ShowPoolRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/ShowPoolResponse.cs b/Services/Elb/V3/Model/ShowPoolResponse.cs index a8a2eec..452345f 100755 --- a/Services/Elb/V3/Model/ShowPoolResponse.cs +++ b/Services/Elb/V3/Model/ShowPoolResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/ShowQuotaRequest.cs b/Services/Elb/V3/Model/ShowQuotaRequest.cs index 48adb1e..cf45538 100755 --- a/Services/Elb/V3/Model/ShowQuotaRequest.cs +++ b/Services/Elb/V3/Model/ShowQuotaRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/ShowQuotaResponse.cs b/Services/Elb/V3/Model/ShowQuotaResponse.cs index f0fcb77..010ea41 100755 --- a/Services/Elb/V3/Model/ShowQuotaResponse.cs +++ b/Services/Elb/V3/Model/ShowQuotaResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/ShowSecurityPolicyRequest.cs b/Services/Elb/V3/Model/ShowSecurityPolicyRequest.cs index 9c242df..c969c5c 100755 --- a/Services/Elb/V3/Model/ShowSecurityPolicyRequest.cs +++ b/Services/Elb/V3/Model/ShowSecurityPolicyRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/ShowSecurityPolicyResponse.cs b/Services/Elb/V3/Model/ShowSecurityPolicyResponse.cs index 32b20a9..957f4b2 100755 --- a/Services/Elb/V3/Model/ShowSecurityPolicyResponse.cs +++ b/Services/Elb/V3/Model/ShowSecurityPolicyResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/SlowStart.cs b/Services/Elb/V3/Model/SlowStart.cs index c3db9d1..48a4307 100755 --- a/Services/Elb/V3/Model/SlowStart.cs +++ b/Services/Elb/V3/Model/SlowStart.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/SystemSecurityPolicy.cs b/Services/Elb/V3/Model/SystemSecurityPolicy.cs index a48aecb..c519c85 100755 --- a/Services/Elb/V3/Model/SystemSecurityPolicy.cs +++ b/Services/Elb/V3/Model/SystemSecurityPolicy.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/Tag.cs b/Services/Elb/V3/Model/Tag.cs index 7d40cf0..b2dad59 100755 --- a/Services/Elb/V3/Model/Tag.cs +++ b/Services/Elb/V3/Model/Tag.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/UpadateIpGroupIpOption.cs b/Services/Elb/V3/Model/UpadateIpGroupIpOption.cs index 69390e9..8591bfc 100755 --- a/Services/Elb/V3/Model/UpadateIpGroupIpOption.cs +++ b/Services/Elb/V3/Model/UpadateIpGroupIpOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/UpdateCertificateOption.cs b/Services/Elb/V3/Model/UpdateCertificateOption.cs index 429047c..4fa752a 100755 --- a/Services/Elb/V3/Model/UpdateCertificateOption.cs +++ b/Services/Elb/V3/Model/UpdateCertificateOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/UpdateCertificateRequest.cs b/Services/Elb/V3/Model/UpdateCertificateRequest.cs index 0d13df0..8398a90 100755 --- a/Services/Elb/V3/Model/UpdateCertificateRequest.cs +++ b/Services/Elb/V3/Model/UpdateCertificateRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/UpdateCertificateRequestBody.cs b/Services/Elb/V3/Model/UpdateCertificateRequestBody.cs index a677336..2ea4170 100755 --- a/Services/Elb/V3/Model/UpdateCertificateRequestBody.cs +++ b/Services/Elb/V3/Model/UpdateCertificateRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/UpdateCertificateResponse.cs b/Services/Elb/V3/Model/UpdateCertificateResponse.cs index 6a49b8c..e6710dc 100755 --- a/Services/Elb/V3/Model/UpdateCertificateResponse.cs +++ b/Services/Elb/V3/Model/UpdateCertificateResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/UpdateFixtedResponseConfig.cs b/Services/Elb/V3/Model/UpdateFixtedResponseConfig.cs index b221b91..54c03c6 100755 --- a/Services/Elb/V3/Model/UpdateFixtedResponseConfig.cs +++ b/Services/Elb/V3/Model/UpdateFixtedResponseConfig.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { @@ -52,11 +53,16 @@ public class ContentTypeEnum { "application/json", APPLICATION_JSON }, }; - private string Value; + private string _value; + + public ContentTypeEnum() + { + + } public ContentTypeEnum(string value) { - Value = value; + _value = value; } public static ContentTypeEnum FromValue(string value) @@ -75,17 +81,17 @@ public static ContentTypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -114,7 +120,7 @@ public bool Equals(ContentTypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(ContentTypeEnum a, ContentTypeEnum b) diff --git a/Services/Elb/V3/Model/UpdateHealthMonitorOption.cs b/Services/Elb/V3/Model/UpdateHealthMonitorOption.cs index 1f09f2e..484be37 100755 --- a/Services/Elb/V3/Model/UpdateHealthMonitorOption.cs +++ b/Services/Elb/V3/Model/UpdateHealthMonitorOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { @@ -76,11 +77,16 @@ public class HttpMethodEnum { "PATCH", PATCH }, }; - private string Value; + private string _value; + + public HttpMethodEnum() + { + + } public HttpMethodEnum(string value) { - Value = value; + _value = value; } public static HttpMethodEnum FromValue(string value) @@ -99,17 +105,17 @@ public static HttpMethodEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -138,7 +144,7 @@ public bool Equals(HttpMethodEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(HttpMethodEnum a, HttpMethodEnum b) diff --git a/Services/Elb/V3/Model/UpdateHealthMonitorRequest.cs b/Services/Elb/V3/Model/UpdateHealthMonitorRequest.cs index e9bd87b..34c3363 100755 --- a/Services/Elb/V3/Model/UpdateHealthMonitorRequest.cs +++ b/Services/Elb/V3/Model/UpdateHealthMonitorRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/UpdateHealthMonitorRequestBody.cs b/Services/Elb/V3/Model/UpdateHealthMonitorRequestBody.cs index beda34e..c72f93e 100755 --- a/Services/Elb/V3/Model/UpdateHealthMonitorRequestBody.cs +++ b/Services/Elb/V3/Model/UpdateHealthMonitorRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/UpdateHealthMonitorResponse.cs b/Services/Elb/V3/Model/UpdateHealthMonitorResponse.cs index 75ba7d3..d57aea2 100755 --- a/Services/Elb/V3/Model/UpdateHealthMonitorResponse.cs +++ b/Services/Elb/V3/Model/UpdateHealthMonitorResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/UpdateIpGroupOption.cs b/Services/Elb/V3/Model/UpdateIpGroupOption.cs index 6375659..d462dd5 100755 --- a/Services/Elb/V3/Model/UpdateIpGroupOption.cs +++ b/Services/Elb/V3/Model/UpdateIpGroupOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/UpdateIpGroupRequest.cs b/Services/Elb/V3/Model/UpdateIpGroupRequest.cs index 15807a9..07728e3 100755 --- a/Services/Elb/V3/Model/UpdateIpGroupRequest.cs +++ b/Services/Elb/V3/Model/UpdateIpGroupRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/UpdateIpGroupRequestBody.cs b/Services/Elb/V3/Model/UpdateIpGroupRequestBody.cs index f4b8c38..cd49f48 100755 --- a/Services/Elb/V3/Model/UpdateIpGroupRequestBody.cs +++ b/Services/Elb/V3/Model/UpdateIpGroupRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/UpdateIpGroupResponse.cs b/Services/Elb/V3/Model/UpdateIpGroupResponse.cs index 7c8d717..832bc1c 100755 --- a/Services/Elb/V3/Model/UpdateIpGroupResponse.cs +++ b/Services/Elb/V3/Model/UpdateIpGroupResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/UpdateIpListOption.cs b/Services/Elb/V3/Model/UpdateIpListOption.cs index cc58443..4b8a5e3 100755 --- a/Services/Elb/V3/Model/UpdateIpListOption.cs +++ b/Services/Elb/V3/Model/UpdateIpListOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/UpdateIpListRequest.cs b/Services/Elb/V3/Model/UpdateIpListRequest.cs index c0c85a5..17e9301 100755 --- a/Services/Elb/V3/Model/UpdateIpListRequest.cs +++ b/Services/Elb/V3/Model/UpdateIpListRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/UpdateIpListRequestBody.cs b/Services/Elb/V3/Model/UpdateIpListRequestBody.cs index 2d025f5..c967850 100755 --- a/Services/Elb/V3/Model/UpdateIpListRequestBody.cs +++ b/Services/Elb/V3/Model/UpdateIpListRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/UpdateIpListResponse.cs b/Services/Elb/V3/Model/UpdateIpListResponse.cs index 18a0a4b..b77f8a2 100755 --- a/Services/Elb/V3/Model/UpdateIpListResponse.cs +++ b/Services/Elb/V3/Model/UpdateIpListResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/UpdateL7PolicyOption.cs b/Services/Elb/V3/Model/UpdateL7PolicyOption.cs index d5f3b2d..d78a57d 100755 --- a/Services/Elb/V3/Model/UpdateL7PolicyOption.cs +++ b/Services/Elb/V3/Model/UpdateL7PolicyOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/UpdateL7PolicyRequest.cs b/Services/Elb/V3/Model/UpdateL7PolicyRequest.cs index 92a29dd..5690642 100755 --- a/Services/Elb/V3/Model/UpdateL7PolicyRequest.cs +++ b/Services/Elb/V3/Model/UpdateL7PolicyRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/UpdateL7PolicyRequestBody.cs b/Services/Elb/V3/Model/UpdateL7PolicyRequestBody.cs index ecd0b74..c122e64 100755 --- a/Services/Elb/V3/Model/UpdateL7PolicyRequestBody.cs +++ b/Services/Elb/V3/Model/UpdateL7PolicyRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/UpdateL7PolicyResponse.cs b/Services/Elb/V3/Model/UpdateL7PolicyResponse.cs index 4c2690e..820ea76 100755 --- a/Services/Elb/V3/Model/UpdateL7PolicyResponse.cs +++ b/Services/Elb/V3/Model/UpdateL7PolicyResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/UpdateL7RuleOption.cs b/Services/Elb/V3/Model/UpdateL7RuleOption.cs index 3c240e2..baa960f 100755 --- a/Services/Elb/V3/Model/UpdateL7RuleOption.cs +++ b/Services/Elb/V3/Model/UpdateL7RuleOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/UpdateL7RuleRequest.cs b/Services/Elb/V3/Model/UpdateL7RuleRequest.cs index 36d7b8f..a6cfd28 100755 --- a/Services/Elb/V3/Model/UpdateL7RuleRequest.cs +++ b/Services/Elb/V3/Model/UpdateL7RuleRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/UpdateL7RuleRequestBody.cs b/Services/Elb/V3/Model/UpdateL7RuleRequestBody.cs index f27934a..99fad67 100755 --- a/Services/Elb/V3/Model/UpdateL7RuleRequestBody.cs +++ b/Services/Elb/V3/Model/UpdateL7RuleRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/UpdateL7RuleResponse.cs b/Services/Elb/V3/Model/UpdateL7RuleResponse.cs index a90f0bb..1c3aafd 100755 --- a/Services/Elb/V3/Model/UpdateL7RuleResponse.cs +++ b/Services/Elb/V3/Model/UpdateL7RuleResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/UpdateListenerIpGroupOption.cs b/Services/Elb/V3/Model/UpdateListenerIpGroupOption.cs index 271d0f6..805ca21 100755 --- a/Services/Elb/V3/Model/UpdateListenerIpGroupOption.cs +++ b/Services/Elb/V3/Model/UpdateListenerIpGroupOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { @@ -34,11 +35,16 @@ public class TypeEnum { "black", BLACK }, }; - private string Value; + private string _value; + + public TypeEnum() + { + + } public TypeEnum(string value) { - Value = value; + _value = value; } public static TypeEnum FromValue(string value) @@ -57,17 +63,17 @@ public static TypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -96,7 +102,7 @@ public bool Equals(TypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(TypeEnum a, TypeEnum b) diff --git a/Services/Elb/V3/Model/UpdateListenerOption.cs b/Services/Elb/V3/Model/UpdateListenerOption.cs index 11fba07..d682d96 100755 --- a/Services/Elb/V3/Model/UpdateListenerOption.cs +++ b/Services/Elb/V3/Model/UpdateListenerOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/UpdateListenerQuicConfigOption.cs b/Services/Elb/V3/Model/UpdateListenerQuicConfigOption.cs index 2dfc96d..12c0ec3 100755 --- a/Services/Elb/V3/Model/UpdateListenerQuicConfigOption.cs +++ b/Services/Elb/V3/Model/UpdateListenerQuicConfigOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/UpdateListenerRequest.cs b/Services/Elb/V3/Model/UpdateListenerRequest.cs index 3b6aa86..5062448 100755 --- a/Services/Elb/V3/Model/UpdateListenerRequest.cs +++ b/Services/Elb/V3/Model/UpdateListenerRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/UpdateListenerRequestBody.cs b/Services/Elb/V3/Model/UpdateListenerRequestBody.cs index f0116da..64235fb 100755 --- a/Services/Elb/V3/Model/UpdateListenerRequestBody.cs +++ b/Services/Elb/V3/Model/UpdateListenerRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/UpdateListenerResponse.cs b/Services/Elb/V3/Model/UpdateListenerResponse.cs index 00e3572..0d8b509 100755 --- a/Services/Elb/V3/Model/UpdateListenerResponse.cs +++ b/Services/Elb/V3/Model/UpdateListenerResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/UpdateLoadBalancerOption.cs b/Services/Elb/V3/Model/UpdateLoadBalancerOption.cs index 9d4e1dd..8616e9f 100755 --- a/Services/Elb/V3/Model/UpdateLoadBalancerOption.cs +++ b/Services/Elb/V3/Model/UpdateLoadBalancerOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { @@ -34,11 +35,16 @@ public class WafFailureActionEnum { "forward", FORWARD }, }; - private string Value; + private string _value; + + public WafFailureActionEnum() + { + + } public WafFailureActionEnum(string value) { - Value = value; + _value = value; } public static WafFailureActionEnum FromValue(string value) @@ -57,17 +63,17 @@ public static WafFailureActionEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -96,7 +102,7 @@ public bool Equals(WafFailureActionEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(WafFailureActionEnum a, WafFailureActionEnum b) diff --git a/Services/Elb/V3/Model/UpdateLoadBalancerRequest.cs b/Services/Elb/V3/Model/UpdateLoadBalancerRequest.cs index 15f9a61..b77140f 100755 --- a/Services/Elb/V3/Model/UpdateLoadBalancerRequest.cs +++ b/Services/Elb/V3/Model/UpdateLoadBalancerRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/UpdateLoadBalancerRequestBody.cs b/Services/Elb/V3/Model/UpdateLoadBalancerRequestBody.cs index 9fe9a9d..eb39941 100755 --- a/Services/Elb/V3/Model/UpdateLoadBalancerRequestBody.cs +++ b/Services/Elb/V3/Model/UpdateLoadBalancerRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/UpdateLoadBalancerResponse.cs b/Services/Elb/V3/Model/UpdateLoadBalancerResponse.cs index 758f3e9..b045045 100755 --- a/Services/Elb/V3/Model/UpdateLoadBalancerResponse.cs +++ b/Services/Elb/V3/Model/UpdateLoadBalancerResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/UpdateLoadbalancerAutoscalingOption.cs b/Services/Elb/V3/Model/UpdateLoadbalancerAutoscalingOption.cs index b21b995..87be904 100755 --- a/Services/Elb/V3/Model/UpdateLoadbalancerAutoscalingOption.cs +++ b/Services/Elb/V3/Model/UpdateLoadbalancerAutoscalingOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/UpdateLogtankOption.cs b/Services/Elb/V3/Model/UpdateLogtankOption.cs index 8364663..a751f64 100755 --- a/Services/Elb/V3/Model/UpdateLogtankOption.cs +++ b/Services/Elb/V3/Model/UpdateLogtankOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/UpdateLogtankRequest.cs b/Services/Elb/V3/Model/UpdateLogtankRequest.cs index e8d0fb9..c548114 100755 --- a/Services/Elb/V3/Model/UpdateLogtankRequest.cs +++ b/Services/Elb/V3/Model/UpdateLogtankRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/UpdateLogtankRequestBody.cs b/Services/Elb/V3/Model/UpdateLogtankRequestBody.cs index 1874640..115b423 100755 --- a/Services/Elb/V3/Model/UpdateLogtankRequestBody.cs +++ b/Services/Elb/V3/Model/UpdateLogtankRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/UpdateLogtankResponse.cs b/Services/Elb/V3/Model/UpdateLogtankResponse.cs index 66d6e12..c1d88ad 100755 --- a/Services/Elb/V3/Model/UpdateLogtankResponse.cs +++ b/Services/Elb/V3/Model/UpdateLogtankResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/UpdateMemberOption.cs b/Services/Elb/V3/Model/UpdateMemberOption.cs index b0c5c70..bc3b42e 100755 --- a/Services/Elb/V3/Model/UpdateMemberOption.cs +++ b/Services/Elb/V3/Model/UpdateMemberOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/UpdateMemberRequest.cs b/Services/Elb/V3/Model/UpdateMemberRequest.cs index a85207f..7953e64 100755 --- a/Services/Elb/V3/Model/UpdateMemberRequest.cs +++ b/Services/Elb/V3/Model/UpdateMemberRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/UpdateMemberRequestBody.cs b/Services/Elb/V3/Model/UpdateMemberRequestBody.cs index ec10319..86759f5 100755 --- a/Services/Elb/V3/Model/UpdateMemberRequestBody.cs +++ b/Services/Elb/V3/Model/UpdateMemberRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/UpdateMemberResponse.cs b/Services/Elb/V3/Model/UpdateMemberResponse.cs index 4097222..b333d41 100755 --- a/Services/Elb/V3/Model/UpdateMemberResponse.cs +++ b/Services/Elb/V3/Model/UpdateMemberResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/UpdatePoolOption.cs b/Services/Elb/V3/Model/UpdatePoolOption.cs index 3a0f6cb..5bcd7e0 100755 --- a/Services/Elb/V3/Model/UpdatePoolOption.cs +++ b/Services/Elb/V3/Model/UpdatePoolOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/UpdatePoolRequest.cs b/Services/Elb/V3/Model/UpdatePoolRequest.cs index 91c7c0f..cb3039a 100755 --- a/Services/Elb/V3/Model/UpdatePoolRequest.cs +++ b/Services/Elb/V3/Model/UpdatePoolRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/UpdatePoolRequestBody.cs b/Services/Elb/V3/Model/UpdatePoolRequestBody.cs index e8e7fdd..c899610 100755 --- a/Services/Elb/V3/Model/UpdatePoolRequestBody.cs +++ b/Services/Elb/V3/Model/UpdatePoolRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/UpdatePoolResponse.cs b/Services/Elb/V3/Model/UpdatePoolResponse.cs index 8499f53..e41e500 100755 --- a/Services/Elb/V3/Model/UpdatePoolResponse.cs +++ b/Services/Elb/V3/Model/UpdatePoolResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/UpdatePoolSessionPersistenceOption.cs b/Services/Elb/V3/Model/UpdatePoolSessionPersistenceOption.cs index 9410857..13bc031 100755 --- a/Services/Elb/V3/Model/UpdatePoolSessionPersistenceOption.cs +++ b/Services/Elb/V3/Model/UpdatePoolSessionPersistenceOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { @@ -40,11 +41,16 @@ public class TypeEnum { "APP_COOKIE", APP_COOKIE }, }; - private string Value; + private string _value; + + public TypeEnum() + { + + } public TypeEnum(string value) { - Value = value; + _value = value; } public static TypeEnum FromValue(string value) @@ -63,17 +69,17 @@ public static TypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -102,7 +108,7 @@ public bool Equals(TypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(TypeEnum a, TypeEnum b) diff --git a/Services/Elb/V3/Model/UpdatePoolSlowStartOption.cs b/Services/Elb/V3/Model/UpdatePoolSlowStartOption.cs index 1c0ee4f..13a9d3e 100755 --- a/Services/Elb/V3/Model/UpdatePoolSlowStartOption.cs +++ b/Services/Elb/V3/Model/UpdatePoolSlowStartOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/UpdateRedirectUrlConfig.cs b/Services/Elb/V3/Model/UpdateRedirectUrlConfig.cs index 742c25e..e1fa810 100755 --- a/Services/Elb/V3/Model/UpdateRedirectUrlConfig.cs +++ b/Services/Elb/V3/Model/UpdateRedirectUrlConfig.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { @@ -40,11 +41,16 @@ public class ProtocolEnum { "${protocol}", _PROTOCOL_ }, }; - private string Value; + private string _value; + + public ProtocolEnum() + { + + } public ProtocolEnum(string value) { - Value = value; + _value = value; } public static ProtocolEnum FromValue(string value) @@ -63,17 +69,17 @@ public static ProtocolEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -102,7 +108,7 @@ public bool Equals(ProtocolEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(ProtocolEnum a, ProtocolEnum b) @@ -164,11 +170,16 @@ public class StatusCodeEnum { "308", _308 }, }; - private string Value; + private string _value; + + public StatusCodeEnum() + { + + } public StatusCodeEnum(string value) { - Value = value; + _value = value; } public static StatusCodeEnum FromValue(string value) @@ -187,17 +198,17 @@ public static StatusCodeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -226,7 +237,7 @@ public bool Equals(StatusCodeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(StatusCodeEnum a, StatusCodeEnum b) diff --git a/Services/Elb/V3/Model/UpdateRuleCondition.cs b/Services/Elb/V3/Model/UpdateRuleCondition.cs index 5934fd7..235edf9 100755 --- a/Services/Elb/V3/Model/UpdateRuleCondition.cs +++ b/Services/Elb/V3/Model/UpdateRuleCondition.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/UpdateSecurityPolicyOption.cs b/Services/Elb/V3/Model/UpdateSecurityPolicyOption.cs index 25b0d7e..52f8baa 100755 --- a/Services/Elb/V3/Model/UpdateSecurityPolicyOption.cs +++ b/Services/Elb/V3/Model/UpdateSecurityPolicyOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { @@ -190,11 +191,16 @@ public class CiphersEnum { "TLS_AES_128_CCM_8_SHA256", TLS_AES_128_CCM_8_SHA256 }, }; - private string Value; + private string _value; + + public CiphersEnum() + { + + } public CiphersEnum(string value) { - Value = value; + _value = value; } public static CiphersEnum FromValue(string value) @@ -213,17 +219,17 @@ public static CiphersEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -252,7 +258,7 @@ public bool Equals(CiphersEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(CiphersEnum a, CiphersEnum b) diff --git a/Services/Elb/V3/Model/UpdateSecurityPolicyRequest.cs b/Services/Elb/V3/Model/UpdateSecurityPolicyRequest.cs index c02565e..1d495c3 100755 --- a/Services/Elb/V3/Model/UpdateSecurityPolicyRequest.cs +++ b/Services/Elb/V3/Model/UpdateSecurityPolicyRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/UpdateSecurityPolicyRequestBody.cs b/Services/Elb/V3/Model/UpdateSecurityPolicyRequestBody.cs index a93c083..a7593ff 100755 --- a/Services/Elb/V3/Model/UpdateSecurityPolicyRequestBody.cs +++ b/Services/Elb/V3/Model/UpdateSecurityPolicyRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Model/UpdateSecurityPolicyResponse.cs b/Services/Elb/V3/Model/UpdateSecurityPolicyResponse.cs index 7b4ba21..57a6e51 100755 --- a/Services/Elb/V3/Model/UpdateSecurityPolicyResponse.cs +++ b/Services/Elb/V3/Model/UpdateSecurityPolicyResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3.Model { diff --git a/Services/Elb/V3/Region/ElbRegion.cs b/Services/Elb/V3/Region/ElbRegion.cs index 7281dd1..9e081a1 100755 --- a/Services/Elb/V3/Region/ElbRegion.cs +++ b/Services/Elb/V3/Region/ElbRegion.cs @@ -1,6 +1,6 @@ using System; using System.Collections.Generic; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Elb.V3 { diff --git a/Services/Elb/obj/Elb.csproj.nuget.cache b/Services/Elb/obj/Elb.csproj.nuget.cache deleted file mode 100644 index e8e9c9b..0000000 --- a/Services/Elb/obj/Elb.csproj.nuget.cache +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": 1, - "dgSpecHash": "2pqos0NA2meTCIusFYXyXnyZy7zFIhA7l/1jzbPVhGJuKcZB5TAK0loKiO/SHPMH0ehyXQQpdBqHp8iE0VavfQ==", - "success": true -} \ No newline at end of file diff --git a/Services/Elb/obj/Elb.csproj.nuget.dgspec.json b/Services/Elb/obj/Elb.csproj.nuget.dgspec.json deleted file mode 100644 index 789a452..0000000 --- a/Services/Elb/obj/Elb.csproj.nuget.dgspec.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "format": 1, - "restore": { - "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Elb/Elb.csproj": {} - }, - "projects": { - "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Elb/Elb.csproj": { - "version": "0.0.2-beta", - "restore": { - "projectUniqueName": "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Elb/Elb.csproj", - "projectName": "G42Cloud.SDK.Elb", - "projectPath": "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Elb/Elb.csproj", - "packagesPath": "/root/.nuget/packages/", - "outputPath": "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Elb/obj/", - "projectStyle": "PackageReference", - "fallbackFolders": [ - "/usr/dotnet2/sdk/NuGetFallbackFolder" - ], - "configFilePaths": [ - "/root/.nuget/NuGet/NuGet.Config" - ], - "originalTargetFrameworks": [ - "netstandard2.0" - ], - "sources": { - "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86": {} - }, - "frameworks": { - "netstandard2.0": { - "projectReferences": {} - } - }, - "warningProperties": { - "warnAsError": [ - "NU1605" - ] - } - }, - "frameworks": { - "netstandard2.0": { - "dependencies": { - "HuaweiCloud.SDK.Core": { - "target": "Package", - "version": "[3.1.11, )" - }, - "NETStandard.Library": { - "suppressParent": "All", - "target": "Package", - "version": "[2.0.3, )", - "autoReferenced": true - }, - "Newtonsoft.Json": { - "target": "Package", - "version": "[13.0.1, )" - } - }, - "imports": [ - "net461" - ], - "assetTargetFallback": true, - "warn": true - } - } - } - } -} \ No newline at end of file diff --git a/Services/Elb/obj/Elb.csproj.nuget.g.props b/Services/Elb/obj/Elb.csproj.nuget.g.props deleted file mode 100644 index 53a8e8c..0000000 --- a/Services/Elb/obj/Elb.csproj.nuget.g.props +++ /dev/null @@ -1,15 +0,0 @@ - - - - True - NuGet - /data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Elb/obj/project.assets.json - /root/.nuget/packages/ - /root/.nuget/packages/;/usr/dotnet2/sdk/NuGetFallbackFolder - PackageReference - 5.0.2 - - - $(MSBuildAllProjects);$(MSBuildThisFileFullPath) - - \ No newline at end of file diff --git a/Services/Elb/obj/Elb.csproj.nuget.g.targets b/Services/Elb/obj/Elb.csproj.nuget.g.targets deleted file mode 100644 index e8536f5..0000000 --- a/Services/Elb/obj/Elb.csproj.nuget.g.targets +++ /dev/null @@ -1,9 +0,0 @@ - - - - $(MSBuildAllProjects);$(MSBuildThisFileFullPath) - - - - - \ No newline at end of file diff --git a/Services/Elb/obj/project.assets.json b/Services/Elb/obj/project.assets.json deleted file mode 100644 index d3c3810..0000000 --- a/Services/Elb/obj/project.assets.json +++ /dev/null @@ -1,1134 +0,0 @@ -{ - "version": 3, - "targets": { - ".NETStandard,Version=v2.0": { - "HuaweiCloud.SDK.Core/3.1.11": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.DependencyInjection": "3.1.5", - "Microsoft.Extensions.Http": "3.1.5", - "Microsoft.Extensions.Http.Polly": "3.1.5", - "Microsoft.Extensions.Logging.Console": "3.1.5", - "Microsoft.Extensions.Logging.Debug": "3.1.5", - "Newtonsoft.Json": "13.0.1" - }, - "compile": { - "lib/netstandard2.0/HuaweiCloud.SDK.Core.dll": {} - }, - "runtime": { - "lib/netstandard2.0/HuaweiCloud.SDK.Core.dll": {} - } - }, - "Microsoft.Bcl.AsyncInterfaces/1.1.1": { - "type": "package", - "dependencies": { - "System.Threading.Tasks.Extensions": "4.5.4" - }, - "compile": { - "ref/netstandard2.0/Microsoft.Bcl.AsyncInterfaces.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Bcl.AsyncInterfaces.dll": {} - } - }, - "Microsoft.Extensions.Configuration/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.Configuration.Abstractions": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Configuration.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Configuration.dll": {} - } - }, - "Microsoft.Extensions.Configuration.Abstractions/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.Primitives": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Configuration.Abstractions.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Configuration.Abstractions.dll": {} - } - }, - "Microsoft.Extensions.Configuration.Binder/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.Configuration": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Configuration.Binder.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Configuration.Binder.dll": {} - } - }, - "Microsoft.Extensions.DependencyInjection/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Bcl.AsyncInterfaces": "1.1.1", - "Microsoft.Extensions.DependencyInjection.Abstractions": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.dll": {} - } - }, - "Microsoft.Extensions.DependencyInjection.Abstractions/3.1.5": { - "type": "package", - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll": {} - } - }, - "Microsoft.Extensions.Http/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.DependencyInjection.Abstractions": "3.1.5", - "Microsoft.Extensions.Logging": "3.1.5", - "Microsoft.Extensions.Options": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Http.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Http.dll": {} - } - }, - "Microsoft.Extensions.Http.Polly/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.Http": "3.1.5", - "Polly": "7.1.0", - "Polly.Extensions.Http": "3.0.0" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Http.Polly.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Http.Polly.dll": {} - } - }, - "Microsoft.Extensions.Logging/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.Configuration.Binder": "3.1.5", - "Microsoft.Extensions.DependencyInjection": "3.1.5", - "Microsoft.Extensions.Logging.Abstractions": "3.1.5", - "Microsoft.Extensions.Options": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.dll": {} - } - }, - "Microsoft.Extensions.Logging.Abstractions/3.1.5": { - "type": "package", - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.Abstractions.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.Abstractions.dll": {} - } - }, - "Microsoft.Extensions.Logging.Configuration/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.Logging": "3.1.5", - "Microsoft.Extensions.Options.ConfigurationExtensions": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.Configuration.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.Configuration.dll": {} - } - }, - "Microsoft.Extensions.Logging.Console/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.Configuration.Abstractions": "3.1.5", - "Microsoft.Extensions.Logging": "3.1.5", - "Microsoft.Extensions.Logging.Configuration": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.Console.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.Console.dll": {} - } - }, - "Microsoft.Extensions.Logging.Debug/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.Logging": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.Debug.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.Debug.dll": {} - } - }, - "Microsoft.Extensions.Options/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.DependencyInjection.Abstractions": "3.1.5", - "Microsoft.Extensions.Primitives": "3.1.5", - "System.ComponentModel.Annotations": "4.7.0" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Options.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Options.dll": {} - } - }, - "Microsoft.Extensions.Options.ConfigurationExtensions/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.Configuration.Abstractions": "3.1.5", - "Microsoft.Extensions.Configuration.Binder": "3.1.5", - "Microsoft.Extensions.DependencyInjection.Abstractions": "3.1.5", - "Microsoft.Extensions.Options": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Options.ConfigurationExtensions.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Options.ConfigurationExtensions.dll": {} - } - }, - "Microsoft.Extensions.Primitives/3.1.5": { - "type": "package", - "dependencies": { - "System.Memory": "4.5.2", - "System.Runtime.CompilerServices.Unsafe": "4.7.1" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Primitives.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Primitives.dll": {} - } - }, - "Microsoft.NETCore.Platforms/1.1.0": { - "type": "package", - "compile": { - "lib/netstandard1.0/_._": {} - }, - "runtime": { - "lib/netstandard1.0/_._": {} - } - }, - "NETStandard.Library/2.0.3": { - "type": "package", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0" - }, - "compile": { - "lib/netstandard1.0/_._": {} - }, - "runtime": { - "lib/netstandard1.0/_._": {} - }, - "build": { - "build/netstandard2.0/NETStandard.Library.targets": {} - } - }, - "Newtonsoft.Json/13.0.1": { - "type": "package", - "compile": { - "lib/netstandard2.0/Newtonsoft.Json.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Newtonsoft.Json.dll": {} - } - }, - "Polly/7.1.0": { - "type": "package", - "compile": { - "lib/netstandard2.0/Polly.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Polly.dll": {} - } - }, - "Polly.Extensions.Http/3.0.0": { - "type": "package", - "dependencies": { - "Polly": "7.1.0" - }, - "compile": { - "lib/netstandard2.0/Polly.Extensions.Http.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Polly.Extensions.Http.dll": {} - } - }, - "System.Buffers/4.4.0": { - "type": "package", - "compile": { - "ref/netstandard2.0/System.Buffers.dll": {} - }, - "runtime": { - "lib/netstandard2.0/System.Buffers.dll": {} - } - }, - "System.ComponentModel.Annotations/4.7.0": { - "type": "package", - "compile": { - "ref/netstandard2.0/System.ComponentModel.Annotations.dll": {} - }, - "runtime": { - "lib/netstandard2.0/System.ComponentModel.Annotations.dll": {} - } - }, - "System.Memory/4.5.2": { - "type": "package", - "dependencies": { - "System.Buffers": "4.4.0", - "System.Numerics.Vectors": "4.4.0", - "System.Runtime.CompilerServices.Unsafe": "4.5.2" - }, - "compile": { - "lib/netstandard2.0/System.Memory.dll": {} - }, - "runtime": { - "lib/netstandard2.0/System.Memory.dll": {} - } - }, - "System.Numerics.Vectors/4.4.0": { - "type": "package", - "compile": { - "ref/netstandard2.0/System.Numerics.Vectors.dll": {} - }, - "runtime": { - "lib/netstandard2.0/System.Numerics.Vectors.dll": {} - } - }, - "System.Runtime.CompilerServices.Unsafe/4.7.1": { - "type": "package", - "compile": { - "ref/netstandard2.0/System.Runtime.CompilerServices.Unsafe.dll": {} - }, - "runtime": { - "lib/netstandard2.0/System.Runtime.CompilerServices.Unsafe.dll": {} - } - }, - "System.Threading.Tasks.Extensions/4.5.4": { - "type": "package", - "dependencies": { - "System.Runtime.CompilerServices.Unsafe": "4.5.3" - }, - "compile": { - "lib/netstandard2.0/System.Threading.Tasks.Extensions.dll": {} - }, - "runtime": { - "lib/netstandard2.0/System.Threading.Tasks.Extensions.dll": {} - } - } - } - }, - "libraries": { - "HuaweiCloud.SDK.Core/3.1.11": { - "sha512": "gfSrNtvvgvmEptRbn8LinWOcd2CmDgHVHKCOG7loIczGvrVSfCWJhnJYig/St+Jb8eKMeWgu/Ms52YJbdxUu0w==", - "type": "package", - "path": "huaweicloud.sdk.core/3.1.11", - "files": [ - ".nupkg.metadata", - "LICENSE", - "huaweicloud.sdk.core.3.1.11.nupkg.sha512", - "huaweicloud.sdk.core.nuspec", - "lib/netstandard2.0/HuaweiCloud.SDK.Core.dll" - ] - }, - "Microsoft.Bcl.AsyncInterfaces/1.1.1": { - "sha512": "yuvf07qFWFqtK3P/MRkEKLhn5r2UbSpVueRziSqj0yJQIKFwG1pq9mOayK3zE5qZCTs0CbrwL9M6R8VwqyGy2w==", - "type": "package", - "path": "microsoft.bcl.asyncinterfaces/1.1.1", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "LICENSE.TXT", - "THIRD-PARTY-NOTICES.TXT", - "lib/net461/Microsoft.Bcl.AsyncInterfaces.dll", - "lib/net461/Microsoft.Bcl.AsyncInterfaces.xml", - "lib/netstandard2.0/Microsoft.Bcl.AsyncInterfaces.dll", - "lib/netstandard2.0/Microsoft.Bcl.AsyncInterfaces.xml", - "lib/netstandard2.1/Microsoft.Bcl.AsyncInterfaces.dll", - "lib/netstandard2.1/Microsoft.Bcl.AsyncInterfaces.xml", - "microsoft.bcl.asyncinterfaces.1.1.1.nupkg.sha512", - "microsoft.bcl.asyncinterfaces.nuspec", - "ref/net461/Microsoft.Bcl.AsyncInterfaces.dll", - "ref/netstandard2.0/Microsoft.Bcl.AsyncInterfaces.dll", - "ref/netstandard2.1/Microsoft.Bcl.AsyncInterfaces.dll", - "useSharedDesignerContext.txt", - "version.txt" - ] - }, - "Microsoft.Extensions.Configuration/3.1.5": { - "sha512": "LZfdAP8flK4hkaniUv6TlstDX9FXLmJMX1A4mpLghAsZxTaJIgf+nzBNiPRdy/B5Vrs74gRONX3JrIUJQrebmA==", - "type": "package", - "path": "microsoft.extensions.configuration/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Configuration.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Configuration.xml", - "lib/netstandard2.0/Microsoft.Extensions.Configuration.dll", - "lib/netstandard2.0/Microsoft.Extensions.Configuration.xml", - "microsoft.extensions.configuration.3.1.5.nupkg.sha512", - "microsoft.extensions.configuration.nuspec" - ] - }, - "Microsoft.Extensions.Configuration.Abstractions/3.1.5": { - "sha512": "VBcAk6s9izZr04WCzNqOh1Sxz2RbVSh0G79MfpHSDv16cUJtSEYEHody9ZnF71LBEktzdu6cvDFBOFMh43q0iA==", - "type": "package", - "path": "microsoft.extensions.configuration.abstractions/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Configuration.Abstractions.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Configuration.Abstractions.xml", - "lib/netstandard2.0/Microsoft.Extensions.Configuration.Abstractions.dll", - "lib/netstandard2.0/Microsoft.Extensions.Configuration.Abstractions.xml", - "microsoft.extensions.configuration.abstractions.3.1.5.nupkg.sha512", - "microsoft.extensions.configuration.abstractions.nuspec" - ] - }, - "Microsoft.Extensions.Configuration.Binder/3.1.5": { - "sha512": "ZR/zjBxkvdnnWhRoBHDT95uz1ZgJFhv1QazmKCIcDqy/RXqi+6dJ/PfxDhEnzPvk9HbkcGfFsPEu1vSIyxDqBQ==", - "type": "package", - "path": "microsoft.extensions.configuration.binder/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Configuration.Binder.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Configuration.Binder.xml", - "lib/netstandard2.0/Microsoft.Extensions.Configuration.Binder.dll", - "lib/netstandard2.0/Microsoft.Extensions.Configuration.Binder.xml", - "microsoft.extensions.configuration.binder.3.1.5.nupkg.sha512", - "microsoft.extensions.configuration.binder.nuspec" - ] - }, - "Microsoft.Extensions.DependencyInjection/3.1.5": { - "sha512": "I+RTJQi7TtenIHZqL2zr6523PYXfL88Ruu4UIVmspIxdw14GHd8zZ+2dGLSdwX7fn41Hth4d42S1e1iHWVOJyQ==", - "type": "package", - "path": "microsoft.extensions.dependencyinjection/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/net461/Microsoft.Extensions.DependencyInjection.dll", - "lib/net461/Microsoft.Extensions.DependencyInjection.xml", - "lib/netcoreapp3.1/Microsoft.Extensions.DependencyInjection.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.DependencyInjection.xml", - "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.dll", - "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.xml", - "lib/netstandard2.1/Microsoft.Extensions.DependencyInjection.dll", - "lib/netstandard2.1/Microsoft.Extensions.DependencyInjection.xml", - "microsoft.extensions.dependencyinjection.3.1.5.nupkg.sha512", - "microsoft.extensions.dependencyinjection.nuspec" - ] - }, - "Microsoft.Extensions.DependencyInjection.Abstractions/3.1.5": { - "sha512": "2VSCj2TZPMdeEi279Lawi6qJQu4+sEWizSOYrhY6hapyS1jxn1jVUZT1Ugv68bya+x8+3lD4+RqhUZql9PhISQ==", - "type": "package", - "path": "microsoft.extensions.dependencyinjection.abstractions/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll", - "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.Abstractions.xml", - "microsoft.extensions.dependencyinjection.abstractions.3.1.5.nupkg.sha512", - "microsoft.extensions.dependencyinjection.abstractions.nuspec" - ] - }, - "Microsoft.Extensions.Http/3.1.5": { - "sha512": "P8yu3UDd0X129FmxJN0/nObuuH4v7YoxK00kEs8EU4R7POa+3yp/buux74fNYTLORuEqjBTMGtV7TBszuvCj7g==", - "type": "package", - "path": "microsoft.extensions.http/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Http.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Http.xml", - "lib/netstandard2.0/Microsoft.Extensions.Http.dll", - "lib/netstandard2.0/Microsoft.Extensions.Http.xml", - "microsoft.extensions.http.3.1.5.nupkg.sha512", - "microsoft.extensions.http.nuspec" - ] - }, - "Microsoft.Extensions.Http.Polly/3.1.5": { - "sha512": "wW+kLLqoQPIg3+NQhBkqmxBAtoGJhVsQ03RAjw/Jx0oTSmaZsJY3rIlBmsrHdeKOxq19P4qRlST2wk/k5tdXhg==", - "type": "package", - "path": "microsoft.extensions.http.polly/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netstandard2.0/Microsoft.Extensions.Http.Polly.dll", - "lib/netstandard2.0/Microsoft.Extensions.Http.Polly.xml", - "microsoft.extensions.http.polly.3.1.5.nupkg.sha512", - "microsoft.extensions.http.polly.nuspec" - ] - }, - "Microsoft.Extensions.Logging/3.1.5": { - "sha512": "C85NYDym6xy03o70vxX+VQ4ZEjj5Eg5t5QoGW0t100vG5MmPL6+G3XXcQjIIn1WRQrjzGWzQwuKf38fxXEWIWA==", - "type": "package", - "path": "microsoft.extensions.logging/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Logging.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Logging.xml", - "lib/netstandard2.0/Microsoft.Extensions.Logging.dll", - "lib/netstandard2.0/Microsoft.Extensions.Logging.xml", - "microsoft.extensions.logging.3.1.5.nupkg.sha512", - "microsoft.extensions.logging.nuspec" - ] - }, - "Microsoft.Extensions.Logging.Abstractions/3.1.5": { - "sha512": "ZvwowjRSWXewdPI+whPFXgwF4Qme6Q9KV9SCPEITSGiqHLArct7q5hTBtTzj3GPsVLjTqehvTg6Bd/EQk9JS0A==", - "type": "package", - "path": "microsoft.extensions.logging.abstractions/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netstandard2.0/Microsoft.Extensions.Logging.Abstractions.dll", - "lib/netstandard2.0/Microsoft.Extensions.Logging.Abstractions.xml", - "microsoft.extensions.logging.abstractions.3.1.5.nupkg.sha512", - "microsoft.extensions.logging.abstractions.nuspec" - ] - }, - "Microsoft.Extensions.Logging.Configuration/3.1.5": { - "sha512": "I+9jx/A9cLdkTmynKMa2oR4rYAfe3n2F/wNVvKxwIk2J33paEU13Se08Q5xvQisqfbumaRUNF7BWHr63JzuuRw==", - "type": "package", - "path": "microsoft.extensions.logging.configuration/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Logging.Configuration.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Logging.Configuration.xml", - "lib/netstandard2.0/Microsoft.Extensions.Logging.Configuration.dll", - "lib/netstandard2.0/Microsoft.Extensions.Logging.Configuration.xml", - "microsoft.extensions.logging.configuration.3.1.5.nupkg.sha512", - "microsoft.extensions.logging.configuration.nuspec" - ] - }, - "Microsoft.Extensions.Logging.Console/3.1.5": { - "sha512": "c/W7d9sjgyU0/3txj/i6pC+8f25Jbua7zKhHVHidC5hHL4OX8fAxSGPBWYOsRN4tXqpd5VphNmIFUWyT12fMoA==", - "type": "package", - "path": "microsoft.extensions.logging.console/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Logging.Console.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Logging.Console.xml", - "lib/netstandard2.0/Microsoft.Extensions.Logging.Console.dll", - "lib/netstandard2.0/Microsoft.Extensions.Logging.Console.xml", - "microsoft.extensions.logging.console.3.1.5.nupkg.sha512", - "microsoft.extensions.logging.console.nuspec" - ] - }, - "Microsoft.Extensions.Logging.Debug/3.1.5": { - "sha512": "oDs0vlr6tNm0Z4U81eiCvnX+9zSP1CBAIGNAnpKidLb1KzbX26UGI627TfuIEtvW9wYiQWqZtmwMMK9WHE8Dqg==", - "type": "package", - "path": "microsoft.extensions.logging.debug/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Logging.Debug.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Logging.Debug.xml", - "lib/netstandard2.0/Microsoft.Extensions.Logging.Debug.dll", - "lib/netstandard2.0/Microsoft.Extensions.Logging.Debug.xml", - "microsoft.extensions.logging.debug.3.1.5.nupkg.sha512", - "microsoft.extensions.logging.debug.nuspec" - ] - }, - "Microsoft.Extensions.Options/3.1.5": { - "sha512": "f+JT/7lkKBMp/Ak2tVjO+TD7o+UoCfjnExkZNn0PZIso8kIXrqNy6x42Lrxf4Q0pW3JMf9ExmL2EQlvk2XnFAg==", - "type": "package", - "path": "microsoft.extensions.options/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Options.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Options.xml", - "lib/netstandard2.0/Microsoft.Extensions.Options.dll", - "lib/netstandard2.0/Microsoft.Extensions.Options.xml", - "microsoft.extensions.options.3.1.5.nupkg.sha512", - "microsoft.extensions.options.nuspec" - ] - }, - "Microsoft.Extensions.Options.ConfigurationExtensions/3.1.5": { - "sha512": "mgM+JHFeRg3zSRjScVADU/mohY8s0czKRTNT9oszWgX1mlw419yqP6ITCXovPopMXiqzRdkZ7AEuErX9K+ROww==", - "type": "package", - "path": "microsoft.extensions.options.configurationextensions/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Options.ConfigurationExtensions.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Options.ConfigurationExtensions.xml", - "lib/netstandard2.0/Microsoft.Extensions.Options.ConfigurationExtensions.dll", - "lib/netstandard2.0/Microsoft.Extensions.Options.ConfigurationExtensions.xml", - "microsoft.extensions.options.configurationextensions.3.1.5.nupkg.sha512", - "microsoft.extensions.options.configurationextensions.nuspec" - ] - }, - "Microsoft.Extensions.Primitives/3.1.5": { - "sha512": "6bLdjSAQix82oP2tsuX9MM2yjgUFFOkSZYyRSKoUULilw2cg0Y0H+dnugwYlfj8Jd7yjd/+QSdNBqEyYhTYv0w==", - "type": "package", - "path": "microsoft.extensions.primitives/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Primitives.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Primitives.xml", - "lib/netstandard2.0/Microsoft.Extensions.Primitives.dll", - "lib/netstandard2.0/Microsoft.Extensions.Primitives.xml", - "microsoft.extensions.primitives.3.1.5.nupkg.sha512", - "microsoft.extensions.primitives.nuspec" - ] - }, - "Microsoft.NETCore.Platforms/1.1.0": { - "sha512": "kz0PEW2lhqygehI/d6XsPCQzD7ff7gUJaVGPVETX611eadGsA3A877GdSlU0LRVMCTH/+P3o2iDTak+S08V2+A==", - "type": "package", - "path": "microsoft.netcore.platforms/1.1.0", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "ThirdPartyNotices.txt", - "dotnet_library_license.txt", - "lib/netstandard1.0/_._", - "microsoft.netcore.platforms.1.1.0.nupkg.sha512", - "microsoft.netcore.platforms.nuspec", - "runtime.json" - ] - }, - "NETStandard.Library/2.0.3": { - "sha512": "st47PosZSHrjECdjeIzZQbzivYBJFv6P2nv4cj2ypdI204DO+vZ7l5raGMiX4eXMJ53RfOIg+/s4DHVZ54Nu2A==", - "type": "package", - "path": "netstandard.library/2.0.3", - "files": [ - ".nupkg.metadata", - "LICENSE.TXT", - "THIRD-PARTY-NOTICES.TXT", - "build/netstandard2.0/NETStandard.Library.targets", - "build/netstandard2.0/ref/Microsoft.Win32.Primitives.dll", - "build/netstandard2.0/ref/System.AppContext.dll", - "build/netstandard2.0/ref/System.Collections.Concurrent.dll", - "build/netstandard2.0/ref/System.Collections.NonGeneric.dll", - "build/netstandard2.0/ref/System.Collections.Specialized.dll", - "build/netstandard2.0/ref/System.Collections.dll", - "build/netstandard2.0/ref/System.ComponentModel.Composition.dll", - "build/netstandard2.0/ref/System.ComponentModel.EventBasedAsync.dll", - "build/netstandard2.0/ref/System.ComponentModel.Primitives.dll", - "build/netstandard2.0/ref/System.ComponentModel.TypeConverter.dll", - "build/netstandard2.0/ref/System.ComponentModel.dll", - "build/netstandard2.0/ref/System.Console.dll", - "build/netstandard2.0/ref/System.Core.dll", - "build/netstandard2.0/ref/System.Data.Common.dll", - "build/netstandard2.0/ref/System.Data.dll", - "build/netstandard2.0/ref/System.Diagnostics.Contracts.dll", - "build/netstandard2.0/ref/System.Diagnostics.Debug.dll", - "build/netstandard2.0/ref/System.Diagnostics.FileVersionInfo.dll", - "build/netstandard2.0/ref/System.Diagnostics.Process.dll", - "build/netstandard2.0/ref/System.Diagnostics.StackTrace.dll", - "build/netstandard2.0/ref/System.Diagnostics.TextWriterTraceListener.dll", - "build/netstandard2.0/ref/System.Diagnostics.Tools.dll", - "build/netstandard2.0/ref/System.Diagnostics.TraceSource.dll", - "build/netstandard2.0/ref/System.Diagnostics.Tracing.dll", - "build/netstandard2.0/ref/System.Drawing.Primitives.dll", - "build/netstandard2.0/ref/System.Drawing.dll", - "build/netstandard2.0/ref/System.Dynamic.Runtime.dll", - "build/netstandard2.0/ref/System.Globalization.Calendars.dll", - "build/netstandard2.0/ref/System.Globalization.Extensions.dll", - "build/netstandard2.0/ref/System.Globalization.dll", - "build/netstandard2.0/ref/System.IO.Compression.FileSystem.dll", - "build/netstandard2.0/ref/System.IO.Compression.ZipFile.dll", - "build/netstandard2.0/ref/System.IO.Compression.dll", - "build/netstandard2.0/ref/System.IO.FileSystem.DriveInfo.dll", - "build/netstandard2.0/ref/System.IO.FileSystem.Primitives.dll", - "build/netstandard2.0/ref/System.IO.FileSystem.Watcher.dll", - "build/netstandard2.0/ref/System.IO.FileSystem.dll", - "build/netstandard2.0/ref/System.IO.IsolatedStorage.dll", - "build/netstandard2.0/ref/System.IO.MemoryMappedFiles.dll", - "build/netstandard2.0/ref/System.IO.Pipes.dll", - "build/netstandard2.0/ref/System.IO.UnmanagedMemoryStream.dll", - "build/netstandard2.0/ref/System.IO.dll", - "build/netstandard2.0/ref/System.Linq.Expressions.dll", - "build/netstandard2.0/ref/System.Linq.Parallel.dll", - "build/netstandard2.0/ref/System.Linq.Queryable.dll", - "build/netstandard2.0/ref/System.Linq.dll", - "build/netstandard2.0/ref/System.Net.Http.dll", - "build/netstandard2.0/ref/System.Net.NameResolution.dll", - "build/netstandard2.0/ref/System.Net.NetworkInformation.dll", - "build/netstandard2.0/ref/System.Net.Ping.dll", - "build/netstandard2.0/ref/System.Net.Primitives.dll", - "build/netstandard2.0/ref/System.Net.Requests.dll", - "build/netstandard2.0/ref/System.Net.Security.dll", - "build/netstandard2.0/ref/System.Net.Sockets.dll", - "build/netstandard2.0/ref/System.Net.WebHeaderCollection.dll", - "build/netstandard2.0/ref/System.Net.WebSockets.Client.dll", - "build/netstandard2.0/ref/System.Net.WebSockets.dll", - "build/netstandard2.0/ref/System.Net.dll", - "build/netstandard2.0/ref/System.Numerics.dll", - "build/netstandard2.0/ref/System.ObjectModel.dll", - "build/netstandard2.0/ref/System.Reflection.Extensions.dll", - "build/netstandard2.0/ref/System.Reflection.Primitives.dll", - "build/netstandard2.0/ref/System.Reflection.dll", - "build/netstandard2.0/ref/System.Resources.Reader.dll", - "build/netstandard2.0/ref/System.Resources.ResourceManager.dll", - "build/netstandard2.0/ref/System.Resources.Writer.dll", - "build/netstandard2.0/ref/System.Runtime.CompilerServices.VisualC.dll", - "build/netstandard2.0/ref/System.Runtime.Extensions.dll", - "build/netstandard2.0/ref/System.Runtime.Handles.dll", - "build/netstandard2.0/ref/System.Runtime.InteropServices.RuntimeInformation.dll", - "build/netstandard2.0/ref/System.Runtime.InteropServices.dll", - "build/netstandard2.0/ref/System.Runtime.Numerics.dll", - "build/netstandard2.0/ref/System.Runtime.Serialization.Formatters.dll", - "build/netstandard2.0/ref/System.Runtime.Serialization.Json.dll", - "build/netstandard2.0/ref/System.Runtime.Serialization.Primitives.dll", - "build/netstandard2.0/ref/System.Runtime.Serialization.Xml.dll", - "build/netstandard2.0/ref/System.Runtime.Serialization.dll", - "build/netstandard2.0/ref/System.Runtime.dll", - "build/netstandard2.0/ref/System.Security.Claims.dll", - "build/netstandard2.0/ref/System.Security.Cryptography.Algorithms.dll", - "build/netstandard2.0/ref/System.Security.Cryptography.Csp.dll", - "build/netstandard2.0/ref/System.Security.Cryptography.Encoding.dll", - "build/netstandard2.0/ref/System.Security.Cryptography.Primitives.dll", - "build/netstandard2.0/ref/System.Security.Cryptography.X509Certificates.dll", - "build/netstandard2.0/ref/System.Security.Principal.dll", - "build/netstandard2.0/ref/System.Security.SecureString.dll", - "build/netstandard2.0/ref/System.ServiceModel.Web.dll", - "build/netstandard2.0/ref/System.Text.Encoding.Extensions.dll", - "build/netstandard2.0/ref/System.Text.Encoding.dll", - "build/netstandard2.0/ref/System.Text.RegularExpressions.dll", - "build/netstandard2.0/ref/System.Threading.Overlapped.dll", - "build/netstandard2.0/ref/System.Threading.Tasks.Parallel.dll", - "build/netstandard2.0/ref/System.Threading.Tasks.dll", - "build/netstandard2.0/ref/System.Threading.Thread.dll", - "build/netstandard2.0/ref/System.Threading.ThreadPool.dll", - "build/netstandard2.0/ref/System.Threading.Timer.dll", - "build/netstandard2.0/ref/System.Threading.dll", - "build/netstandard2.0/ref/System.Transactions.dll", - "build/netstandard2.0/ref/System.ValueTuple.dll", - "build/netstandard2.0/ref/System.Web.dll", - "build/netstandard2.0/ref/System.Windows.dll", - "build/netstandard2.0/ref/System.Xml.Linq.dll", - "build/netstandard2.0/ref/System.Xml.ReaderWriter.dll", - "build/netstandard2.0/ref/System.Xml.Serialization.dll", - "build/netstandard2.0/ref/System.Xml.XDocument.dll", - "build/netstandard2.0/ref/System.Xml.XPath.XDocument.dll", - "build/netstandard2.0/ref/System.Xml.XPath.dll", - "build/netstandard2.0/ref/System.Xml.XmlDocument.dll", - "build/netstandard2.0/ref/System.Xml.XmlSerializer.dll", - "build/netstandard2.0/ref/System.Xml.dll", - "build/netstandard2.0/ref/System.dll", - "build/netstandard2.0/ref/mscorlib.dll", - "build/netstandard2.0/ref/netstandard.dll", - "build/netstandard2.0/ref/netstandard.xml", - "lib/netstandard1.0/_._", - "netstandard.library.2.0.3.nupkg.sha512", - "netstandard.library.nuspec" - ] - }, - "Newtonsoft.Json/13.0.1": { - "sha512": "ppPFpBcvxdsfUonNcvITKqLl3bqxWbDCZIzDWHzjpdAHRFfZe0Dw9HmA0+za13IdyrgJwpkDTDA9fHaxOrt20A==", - "type": "package", - "path": "newtonsoft.json/13.0.1", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "LICENSE.md", - "lib/net20/Newtonsoft.Json.dll", - "lib/net20/Newtonsoft.Json.xml", - "lib/net35/Newtonsoft.Json.dll", - "lib/net35/Newtonsoft.Json.xml", - "lib/net40/Newtonsoft.Json.dll", - "lib/net40/Newtonsoft.Json.xml", - "lib/net45/Newtonsoft.Json.dll", - "lib/net45/Newtonsoft.Json.xml", - "lib/netstandard1.0/Newtonsoft.Json.dll", - "lib/netstandard1.0/Newtonsoft.Json.xml", - "lib/netstandard1.3/Newtonsoft.Json.dll", - "lib/netstandard1.3/Newtonsoft.Json.xml", - "lib/netstandard2.0/Newtonsoft.Json.dll", - "lib/netstandard2.0/Newtonsoft.Json.xml", - "newtonsoft.json.13.0.1.nupkg.sha512", - "newtonsoft.json.nuspec", - "packageIcon.png" - ] - }, - "Polly/7.1.0": { - "sha512": "mpQsvlEn4ipgICh5CGyVLPV93RFVzOrBG7wPZfzY8gExh7XgWQn0GCDY9nudbUEJ12UiGPP9i4+CohghBvzhmg==", - "type": "package", - "path": "polly/7.1.0", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "lib/netstandard1.1/Polly.dll", - "lib/netstandard1.1/Polly.xml", - "lib/netstandard2.0/Polly.dll", - "lib/netstandard2.0/Polly.xml", - "polly.7.1.0.nupkg.sha512", - "polly.nuspec" - ] - }, - "Polly.Extensions.Http/3.0.0": { - "sha512": "drrG+hB3pYFY7w1c3BD+lSGYvH2oIclH8GRSehgfyP5kjnFnHKQuuBhuHLv+PWyFuaTDyk/vfRpnxOzd11+J8g==", - "type": "package", - "path": "polly.extensions.http/3.0.0", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "lib/netstandard1.1/Polly.Extensions.Http.dll", - "lib/netstandard1.1/Polly.Extensions.Http.xml", - "lib/netstandard2.0/Polly.Extensions.Http.dll", - "lib/netstandard2.0/Polly.Extensions.Http.xml", - "polly.extensions.http.3.0.0.nupkg.sha512", - "polly.extensions.http.nuspec" - ] - }, - "System.Buffers/4.4.0": { - "sha512": "AwarXzzoDwX6BgrhjoJsk6tUezZEozOT5Y9QKF94Gl4JK91I4PIIBkBco9068Y9/Dra8Dkbie99kXB8+1BaYKw==", - "type": "package", - "path": "system.buffers/4.4.0", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "LICENSE.TXT", - "THIRD-PARTY-NOTICES.TXT", - "lib/netcoreapp2.0/_._", - "lib/netstandard1.1/System.Buffers.dll", - "lib/netstandard1.1/System.Buffers.xml", - "lib/netstandard2.0/System.Buffers.dll", - "lib/netstandard2.0/System.Buffers.xml", - "ref/netcoreapp2.0/_._", - "ref/netstandard1.1/System.Buffers.dll", - "ref/netstandard1.1/System.Buffers.xml", - "ref/netstandard2.0/System.Buffers.dll", - "ref/netstandard2.0/System.Buffers.xml", - "system.buffers.4.4.0.nupkg.sha512", - "system.buffers.nuspec", - "useSharedDesignerContext.txt", - "version.txt" - ] - }, - "System.ComponentModel.Annotations/4.7.0": { - "sha512": "0YFqjhp/mYkDGpU0Ye1GjE53HMp9UVfGN7seGpAMttAC0C40v5gw598jCgpbBLMmCo0E5YRLBv5Z2doypO49ZQ==", - "type": "package", - "path": "system.componentmodel.annotations/4.7.0", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "LICENSE.TXT", - "THIRD-PARTY-NOTICES.TXT", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net45/_._", - "lib/net461/System.ComponentModel.Annotations.dll", - "lib/netcore50/System.ComponentModel.Annotations.dll", - "lib/netstandard1.4/System.ComponentModel.Annotations.dll", - "lib/netstandard2.0/System.ComponentModel.Annotations.dll", - "lib/netstandard2.1/System.ComponentModel.Annotations.dll", - "lib/netstandard2.1/System.ComponentModel.Annotations.xml", - "lib/portable-net45+win8/_._", - "lib/win8/_._", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net45/_._", - "ref/net461/System.ComponentModel.Annotations.dll", - "ref/net461/System.ComponentModel.Annotations.xml", - "ref/netcore50/System.ComponentModel.Annotations.dll", - "ref/netcore50/System.ComponentModel.Annotations.xml", - "ref/netcore50/de/System.ComponentModel.Annotations.xml", - "ref/netcore50/es/System.ComponentModel.Annotations.xml", - "ref/netcore50/fr/System.ComponentModel.Annotations.xml", - "ref/netcore50/it/System.ComponentModel.Annotations.xml", - "ref/netcore50/ja/System.ComponentModel.Annotations.xml", - "ref/netcore50/ko/System.ComponentModel.Annotations.xml", - "ref/netcore50/ru/System.ComponentModel.Annotations.xml", - "ref/netcore50/zh-hans/System.ComponentModel.Annotations.xml", - "ref/netcore50/zh-hant/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/System.ComponentModel.Annotations.dll", - "ref/netstandard1.1/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/de/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/es/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/fr/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/it/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/ja/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/ko/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/ru/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/zh-hans/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/zh-hant/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/System.ComponentModel.Annotations.dll", - "ref/netstandard1.3/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/de/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/es/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/fr/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/it/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/ja/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/ko/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/ru/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/zh-hans/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/zh-hant/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/System.ComponentModel.Annotations.dll", - "ref/netstandard1.4/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/de/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/es/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/fr/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/it/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/ja/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/ko/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/ru/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/zh-hans/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/zh-hant/System.ComponentModel.Annotations.xml", - "ref/netstandard2.0/System.ComponentModel.Annotations.dll", - "ref/netstandard2.0/System.ComponentModel.Annotations.xml", - "ref/netstandard2.1/System.ComponentModel.Annotations.dll", - "ref/netstandard2.1/System.ComponentModel.Annotations.xml", - "ref/portable-net45+win8/_._", - "ref/win8/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._", - "system.componentmodel.annotations.4.7.0.nupkg.sha512", - "system.componentmodel.annotations.nuspec", - "useSharedDesignerContext.txt", - "version.txt" - ] - }, - "System.Memory/4.5.2": { - "sha512": "fvq1GNmUFwbKv+aLVYYdgu/+gc8Nu9oFujOxIjPrsf+meis9JBzTPDL6aP/eeGOz9yPj6rRLUbOjKMpsMEWpNg==", - "type": "package", - "path": "system.memory/4.5.2", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "LICENSE.TXT", - "THIRD-PARTY-NOTICES.TXT", - "lib/netcoreapp2.1/_._", - "lib/netstandard1.1/System.Memory.dll", - "lib/netstandard1.1/System.Memory.xml", - "lib/netstandard2.0/System.Memory.dll", - "lib/netstandard2.0/System.Memory.xml", - "ref/netcoreapp2.1/_._", - "system.memory.4.5.2.nupkg.sha512", - "system.memory.nuspec", - "useSharedDesignerContext.txt", - "version.txt" - ] - }, - "System.Numerics.Vectors/4.4.0": { - "sha512": "UiLzLW+Lw6HLed1Hcg+8jSRttrbuXv7DANVj0DkL9g6EnnzbL75EB7EWsw5uRbhxd/4YdG8li5XizGWepmG3PQ==", - "type": "package", - "path": "system.numerics.vectors/4.4.0", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "LICENSE.TXT", - "THIRD-PARTY-NOTICES.TXT", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net46/System.Numerics.Vectors.dll", - "lib/net46/System.Numerics.Vectors.xml", - "lib/netcoreapp2.0/_._", - "lib/netstandard1.0/System.Numerics.Vectors.dll", - "lib/netstandard1.0/System.Numerics.Vectors.xml", - "lib/netstandard2.0/System.Numerics.Vectors.dll", - "lib/netstandard2.0/System.Numerics.Vectors.xml", - "lib/portable-net45+win8+wp8+wpa81/System.Numerics.Vectors.dll", - "lib/portable-net45+win8+wp8+wpa81/System.Numerics.Vectors.xml", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net46/System.Numerics.Vectors.dll", - "ref/net46/System.Numerics.Vectors.xml", - "ref/netcoreapp2.0/_._", - "ref/netstandard1.0/System.Numerics.Vectors.dll", - "ref/netstandard1.0/System.Numerics.Vectors.xml", - "ref/netstandard2.0/System.Numerics.Vectors.dll", - "ref/netstandard2.0/System.Numerics.Vectors.xml", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._", - "system.numerics.vectors.4.4.0.nupkg.sha512", - "system.numerics.vectors.nuspec", - "useSharedDesignerContext.txt", - "version.txt" - ] - }, - "System.Runtime.CompilerServices.Unsafe/4.7.1": { - "sha512": "zOHkQmzPCn5zm/BH+cxC1XbUS3P4Yoi3xzW7eRgVpDR2tPGSzyMZ17Ig1iRkfJuY0nhxkQQde8pgePNiA7z7TQ==", - "type": "package", - "path": "system.runtime.compilerservices.unsafe/4.7.1", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "LICENSE.TXT", - "THIRD-PARTY-NOTICES.TXT", - "lib/net461/System.Runtime.CompilerServices.Unsafe.dll", - "lib/net461/System.Runtime.CompilerServices.Unsafe.xml", - "lib/netcoreapp2.0/System.Runtime.CompilerServices.Unsafe.dll", - "lib/netcoreapp2.0/System.Runtime.CompilerServices.Unsafe.xml", - "lib/netstandard1.0/System.Runtime.CompilerServices.Unsafe.dll", - "lib/netstandard1.0/System.Runtime.CompilerServices.Unsafe.xml", - "lib/netstandard2.0/System.Runtime.CompilerServices.Unsafe.dll", - "lib/netstandard2.0/System.Runtime.CompilerServices.Unsafe.xml", - "ref/net461/System.Runtime.CompilerServices.Unsafe.dll", - "ref/net461/System.Runtime.CompilerServices.Unsafe.xml", - "ref/netstandard1.0/System.Runtime.CompilerServices.Unsafe.dll", - "ref/netstandard1.0/System.Runtime.CompilerServices.Unsafe.xml", - "ref/netstandard2.0/System.Runtime.CompilerServices.Unsafe.dll", - "ref/netstandard2.0/System.Runtime.CompilerServices.Unsafe.xml", - "system.runtime.compilerservices.unsafe.4.7.1.nupkg.sha512", - "system.runtime.compilerservices.unsafe.nuspec", - "useSharedDesignerContext.txt", - "version.txt" - ] - }, - "System.Threading.Tasks.Extensions/4.5.4": { - "sha512": "zteT+G8xuGu6mS+mzDzYXbzS7rd3K6Fjb9RiZlYlJPam2/hU7JCBZBVEcywNuR+oZ1ncTvc/cq0faRr3P01OVg==", - "type": "package", - "path": "system.threading.tasks.extensions/4.5.4", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "LICENSE.TXT", - "THIRD-PARTY-NOTICES.TXT", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net461/System.Threading.Tasks.Extensions.dll", - "lib/net461/System.Threading.Tasks.Extensions.xml", - "lib/netcoreapp2.1/_._", - "lib/netstandard1.0/System.Threading.Tasks.Extensions.dll", - "lib/netstandard1.0/System.Threading.Tasks.Extensions.xml", - "lib/netstandard2.0/System.Threading.Tasks.Extensions.dll", - "lib/netstandard2.0/System.Threading.Tasks.Extensions.xml", - "lib/portable-net45+win8+wp8+wpa81/System.Threading.Tasks.Extensions.dll", - "lib/portable-net45+win8+wp8+wpa81/System.Threading.Tasks.Extensions.xml", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/netcoreapp2.1/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._", - "system.threading.tasks.extensions.4.5.4.nupkg.sha512", - "system.threading.tasks.extensions.nuspec", - "useSharedDesignerContext.txt", - "version.txt" - ] - } - }, - "projectFileDependencyGroups": { - ".NETStandard,Version=v2.0": [ - "HuaweiCloud.SDK.Core >= 3.1.11", - "NETStandard.Library >= 2.0.3", - "Newtonsoft.Json >= 13.0.1" - ] - }, - "packageFolders": { - "/root/.nuget/packages/": {}, - "/usr/dotnet2/sdk/NuGetFallbackFolder": {} - }, - "project": { - "version": "0.0.2-beta", - "restore": { - "projectUniqueName": "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Elb/Elb.csproj", - "projectName": "G42Cloud.SDK.Elb", - "projectPath": "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Elb/Elb.csproj", - "packagesPath": "/root/.nuget/packages/", - "outputPath": "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Elb/obj/", - "projectStyle": "PackageReference", - "fallbackFolders": [ - "/usr/dotnet2/sdk/NuGetFallbackFolder" - ], - "configFilePaths": [ - "/root/.nuget/NuGet/NuGet.Config" - ], - "originalTargetFrameworks": [ - "netstandard2.0" - ], - "sources": { - "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86": {} - }, - "frameworks": { - "netstandard2.0": { - "projectReferences": {} - } - }, - "warningProperties": { - "warnAsError": [ - "NU1605" - ] - } - }, - "frameworks": { - "netstandard2.0": { - "dependencies": { - "HuaweiCloud.SDK.Core": { - "target": "Package", - "version": "[3.1.11, )" - }, - "NETStandard.Library": { - "suppressParent": "All", - "target": "Package", - "version": "[2.0.3, )", - "autoReferenced": true - }, - "Newtonsoft.Json": { - "target": "Package", - "version": "[13.0.1, )" - } - }, - "imports": [ - "net461" - ], - "assetTargetFallback": true, - "warn": true - } - } - } -} \ No newline at end of file diff --git a/Services/Evs/Evs.csproj b/Services/Evs/Evs.csproj index 8f59cda..27bbbcc 100755 --- a/Services/Evs/Evs.csproj +++ b/Services/Evs/Evs.csproj @@ -15,7 +15,7 @@ false false G42Cloud.SDK.Evs - 0.0.2-beta + 0.0.3-beta G42Cloud Copyright 2020 G42 Technologies Co., Ltd. G42 Technologies Co., Ltd. @@ -24,7 +24,7 @@ - + diff --git a/Services/Evs/V2/EvsAsyncClient.cs b/Services/Evs/V2/EvsAsyncClient.cs index 106869e..e1f46f4 100755 --- a/Services/Evs/V2/EvsAsyncClient.cs +++ b/Services/Evs/V2/EvsAsyncClient.cs @@ -1,7 +1,7 @@ using System.Net.Http; using System.Collections.Generic; using System.Threading.Tasks; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; using G42Cloud.SDK.Evs.V2.Model; namespace G42Cloud.SDK.Evs.V2 diff --git a/Services/Evs/V2/EvsClient.cs b/Services/Evs/V2/EvsClient.cs index 002d693..1b77e2d 100755 --- a/Services/Evs/V2/EvsClient.cs +++ b/Services/Evs/V2/EvsClient.cs @@ -1,6 +1,6 @@ using System.Net.Http; using System.Collections.Generic; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; using G42Cloud.SDK.Evs.V2.Model; namespace G42Cloud.SDK.Evs.V2 diff --git a/Services/Evs/V2/Model/Attachment.cs b/Services/Evs/V2/Model/Attachment.cs index 0a6edd1..af9f384 100755 --- a/Services/Evs/V2/Model/Attachment.cs +++ b/Services/Evs/V2/Model/Attachment.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/AzInfo.cs b/Services/Evs/V2/Model/AzInfo.cs index 48d8068..7a47eef 100755 --- a/Services/Evs/V2/Model/AzInfo.cs +++ b/Services/Evs/V2/Model/AzInfo.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/BatchCreateVolumeTagsRequest.cs b/Services/Evs/V2/Model/BatchCreateVolumeTagsRequest.cs index 0793a81..b2ece88 100755 --- a/Services/Evs/V2/Model/BatchCreateVolumeTagsRequest.cs +++ b/Services/Evs/V2/Model/BatchCreateVolumeTagsRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/BatchCreateVolumeTagsRequestBody.cs b/Services/Evs/V2/Model/BatchCreateVolumeTagsRequestBody.cs index baf97cb..24b34d0 100755 --- a/Services/Evs/V2/Model/BatchCreateVolumeTagsRequestBody.cs +++ b/Services/Evs/V2/Model/BatchCreateVolumeTagsRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { @@ -28,11 +29,16 @@ public class ActionEnum { "create", CREATE }, }; - private string Value; + private string _value; + + public ActionEnum() + { + + } public ActionEnum(string value) { - Value = value; + _value = value; } public static ActionEnum FromValue(string value) @@ -51,17 +57,17 @@ public static ActionEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -90,7 +96,7 @@ public bool Equals(ActionEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(ActionEnum a, ActionEnum b) diff --git a/Services/Evs/V2/Model/BatchCreateVolumeTagsResponse.cs b/Services/Evs/V2/Model/BatchCreateVolumeTagsResponse.cs index 94d8d6a..9dd8b57 100755 --- a/Services/Evs/V2/Model/BatchCreateVolumeTagsResponse.cs +++ b/Services/Evs/V2/Model/BatchCreateVolumeTagsResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/BatchDeleteVolumeTagsRequest.cs b/Services/Evs/V2/Model/BatchDeleteVolumeTagsRequest.cs index e6a71f1..bd4947e 100755 --- a/Services/Evs/V2/Model/BatchDeleteVolumeTagsRequest.cs +++ b/Services/Evs/V2/Model/BatchDeleteVolumeTagsRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/BatchDeleteVolumeTagsRequestBody.cs b/Services/Evs/V2/Model/BatchDeleteVolumeTagsRequestBody.cs index d131820..1683746 100755 --- a/Services/Evs/V2/Model/BatchDeleteVolumeTagsRequestBody.cs +++ b/Services/Evs/V2/Model/BatchDeleteVolumeTagsRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { @@ -28,11 +29,16 @@ public class ActionEnum { "delete", DELETE }, }; - private string Value; + private string _value; + + public ActionEnum() + { + + } public ActionEnum(string value) { - Value = value; + _value = value; } public static ActionEnum FromValue(string value) @@ -51,17 +57,17 @@ public static ActionEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -90,7 +96,7 @@ public bool Equals(ActionEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(ActionEnum a, ActionEnum b) diff --git a/Services/Evs/V2/Model/BatchDeleteVolumeTagsResponse.cs b/Services/Evs/V2/Model/BatchDeleteVolumeTagsResponse.cs index 51a3124..4c2f366 100755 --- a/Services/Evs/V2/Model/BatchDeleteVolumeTagsResponse.cs +++ b/Services/Evs/V2/Model/BatchDeleteVolumeTagsResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/BssParamForCreateVolume.cs b/Services/Evs/V2/Model/BssParamForCreateVolume.cs index d63fdad..c7d4a78 100755 --- a/Services/Evs/V2/Model/BssParamForCreateVolume.cs +++ b/Services/Evs/V2/Model/BssParamForCreateVolume.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { @@ -34,11 +35,16 @@ public class ChargingModeEnum { "prePaid", PREPAID }, }; - private string Value; + private string _value; + + public ChargingModeEnum() + { + + } public ChargingModeEnum(string value) { - Value = value; + _value = value; } public static ChargingModeEnum FromValue(string value) @@ -57,17 +63,17 @@ public static ChargingModeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -96,7 +102,7 @@ public bool Equals(ChargingModeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(ChargingModeEnum a, ChargingModeEnum b) @@ -140,11 +146,16 @@ public class IsAutoPayEnum { "false", FALSE }, }; - private string Value; + private string _value; + + public IsAutoPayEnum() + { + + } public IsAutoPayEnum(string value) { - Value = value; + _value = value; } public static IsAutoPayEnum FromValue(string value) @@ -163,17 +174,17 @@ public static IsAutoPayEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -202,7 +213,7 @@ public bool Equals(IsAutoPayEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(IsAutoPayEnum a, IsAutoPayEnum b) @@ -246,11 +257,16 @@ public class IsAutoRenewEnum { "false", FALSE }, }; - private string Value; + private string _value; + + public IsAutoRenewEnum() + { + + } public IsAutoRenewEnum(string value) { - Value = value; + _value = value; } public static IsAutoRenewEnum FromValue(string value) @@ -269,17 +285,17 @@ public static IsAutoRenewEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -308,7 +324,7 @@ public bool Equals(IsAutoRenewEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(IsAutoRenewEnum a, IsAutoRenewEnum b) @@ -352,11 +368,16 @@ public class PeriodTypeEnum { "year", YEAR }, }; - private string Value; + private string _value; + + public PeriodTypeEnum() + { + + } public PeriodTypeEnum(string value) { - Value = value; + _value = value; } public static PeriodTypeEnum FromValue(string value) @@ -375,17 +396,17 @@ public static PeriodTypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -414,7 +435,7 @@ public bool Equals(PeriodTypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(PeriodTypeEnum a, PeriodTypeEnum b) diff --git a/Services/Evs/V2/Model/BssParamForResizeVolume.cs b/Services/Evs/V2/Model/BssParamForResizeVolume.cs index e41ece1..f080325 100755 --- a/Services/Evs/V2/Model/BssParamForResizeVolume.cs +++ b/Services/Evs/V2/Model/BssParamForResizeVolume.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { @@ -34,11 +35,16 @@ public class IsAutoPayEnum { "true", TRUE }, }; - private string Value; + private string _value; + + public IsAutoPayEnum() + { + + } public IsAutoPayEnum(string value) { - Value = value; + _value = value; } public static IsAutoPayEnum FromValue(string value) @@ -57,17 +63,17 @@ public static IsAutoPayEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -96,7 +102,7 @@ public bool Equals(IsAutoPayEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(IsAutoPayEnum a, IsAutoPayEnum b) diff --git a/Services/Evs/V2/Model/CinderAcceptVolumeTransferOption.cs b/Services/Evs/V2/Model/CinderAcceptVolumeTransferOption.cs index c541e26..35a4ff5 100755 --- a/Services/Evs/V2/Model/CinderAcceptVolumeTransferOption.cs +++ b/Services/Evs/V2/Model/CinderAcceptVolumeTransferOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/CinderAcceptVolumeTransferRequest.cs b/Services/Evs/V2/Model/CinderAcceptVolumeTransferRequest.cs index b920b06..e034b87 100755 --- a/Services/Evs/V2/Model/CinderAcceptVolumeTransferRequest.cs +++ b/Services/Evs/V2/Model/CinderAcceptVolumeTransferRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/CinderAcceptVolumeTransferRequestBody.cs b/Services/Evs/V2/Model/CinderAcceptVolumeTransferRequestBody.cs index cbb4682..d78056b 100755 --- a/Services/Evs/V2/Model/CinderAcceptVolumeTransferRequestBody.cs +++ b/Services/Evs/V2/Model/CinderAcceptVolumeTransferRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/CinderAcceptVolumeTransferResponse.cs b/Services/Evs/V2/Model/CinderAcceptVolumeTransferResponse.cs index 7110496..8c88e07 100755 --- a/Services/Evs/V2/Model/CinderAcceptVolumeTransferResponse.cs +++ b/Services/Evs/V2/Model/CinderAcceptVolumeTransferResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/CinderCreateVolumeTransferRequest.cs b/Services/Evs/V2/Model/CinderCreateVolumeTransferRequest.cs index 8cf7860..8795190 100755 --- a/Services/Evs/V2/Model/CinderCreateVolumeTransferRequest.cs +++ b/Services/Evs/V2/Model/CinderCreateVolumeTransferRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/CinderCreateVolumeTransferRequestBody.cs b/Services/Evs/V2/Model/CinderCreateVolumeTransferRequestBody.cs index 8b3a67d..289b4d3 100755 --- a/Services/Evs/V2/Model/CinderCreateVolumeTransferRequestBody.cs +++ b/Services/Evs/V2/Model/CinderCreateVolumeTransferRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/CinderCreateVolumeTransferResponse.cs b/Services/Evs/V2/Model/CinderCreateVolumeTransferResponse.cs index 25945b7..6d51b8c 100755 --- a/Services/Evs/V2/Model/CinderCreateVolumeTransferResponse.cs +++ b/Services/Evs/V2/Model/CinderCreateVolumeTransferResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/CinderDeleteVolumeTransferRequest.cs b/Services/Evs/V2/Model/CinderDeleteVolumeTransferRequest.cs index 696dace..643af75 100755 --- a/Services/Evs/V2/Model/CinderDeleteVolumeTransferRequest.cs +++ b/Services/Evs/V2/Model/CinderDeleteVolumeTransferRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/CinderDeleteVolumeTransferResponse.cs b/Services/Evs/V2/Model/CinderDeleteVolumeTransferResponse.cs index 0eea64c..1cb2de2 100755 --- a/Services/Evs/V2/Model/CinderDeleteVolumeTransferResponse.cs +++ b/Services/Evs/V2/Model/CinderDeleteVolumeTransferResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/CinderListAvailabilityZonesRequest.cs b/Services/Evs/V2/Model/CinderListAvailabilityZonesRequest.cs index 28aa26d..6b590eb 100755 --- a/Services/Evs/V2/Model/CinderListAvailabilityZonesRequest.cs +++ b/Services/Evs/V2/Model/CinderListAvailabilityZonesRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/CinderListAvailabilityZonesResponse.cs b/Services/Evs/V2/Model/CinderListAvailabilityZonesResponse.cs index 6fd12f5..7ad5b31 100755 --- a/Services/Evs/V2/Model/CinderListAvailabilityZonesResponse.cs +++ b/Services/Evs/V2/Model/CinderListAvailabilityZonesResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/CinderListQuotasRequest.cs b/Services/Evs/V2/Model/CinderListQuotasRequest.cs index 73083a1..b6a98e3 100755 --- a/Services/Evs/V2/Model/CinderListQuotasRequest.cs +++ b/Services/Evs/V2/Model/CinderListQuotasRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { @@ -28,11 +29,16 @@ public class UsageEnum { "True", TRUE }, }; - private string Value; + private string _value; + + public UsageEnum() + { + + } public UsageEnum(string value) { - Value = value; + _value = value; } public static UsageEnum FromValue(string value) @@ -51,17 +57,17 @@ public static UsageEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -90,7 +96,7 @@ public bool Equals(UsageEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(UsageEnum a, UsageEnum b) diff --git a/Services/Evs/V2/Model/CinderListQuotasResponse.cs b/Services/Evs/V2/Model/CinderListQuotasResponse.cs index 93e088d..b6934fa 100755 --- a/Services/Evs/V2/Model/CinderListQuotasResponse.cs +++ b/Services/Evs/V2/Model/CinderListQuotasResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/CinderListVolumeTransfersRequest.cs b/Services/Evs/V2/Model/CinderListVolumeTransfersRequest.cs index 9eb16bf..6f5fbf7 100755 --- a/Services/Evs/V2/Model/CinderListVolumeTransfersRequest.cs +++ b/Services/Evs/V2/Model/CinderListVolumeTransfersRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/CinderListVolumeTransfersResponse.cs b/Services/Evs/V2/Model/CinderListVolumeTransfersResponse.cs index d7e173a..80b35c3 100755 --- a/Services/Evs/V2/Model/CinderListVolumeTransfersResponse.cs +++ b/Services/Evs/V2/Model/CinderListVolumeTransfersResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/CinderListVolumeTypesRequest.cs b/Services/Evs/V2/Model/CinderListVolumeTypesRequest.cs index 78b8c71..0b213f7 100755 --- a/Services/Evs/V2/Model/CinderListVolumeTypesRequest.cs +++ b/Services/Evs/V2/Model/CinderListVolumeTypesRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/CinderListVolumeTypesResponse.cs b/Services/Evs/V2/Model/CinderListVolumeTypesResponse.cs index 6199245..960d871 100755 --- a/Services/Evs/V2/Model/CinderListVolumeTypesResponse.cs +++ b/Services/Evs/V2/Model/CinderListVolumeTypesResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/CinderShowVolumeTransferRequest.cs b/Services/Evs/V2/Model/CinderShowVolumeTransferRequest.cs index 511b22e..d25550a 100755 --- a/Services/Evs/V2/Model/CinderShowVolumeTransferRequest.cs +++ b/Services/Evs/V2/Model/CinderShowVolumeTransferRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/CinderShowVolumeTransferResponse.cs b/Services/Evs/V2/Model/CinderShowVolumeTransferResponse.cs index 51d8b2e..e4d500e 100755 --- a/Services/Evs/V2/Model/CinderShowVolumeTransferResponse.cs +++ b/Services/Evs/V2/Model/CinderShowVolumeTransferResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/CreateSnapshotOption.cs b/Services/Evs/V2/Model/CreateSnapshotOption.cs index a301f6e..8423432 100755 --- a/Services/Evs/V2/Model/CreateSnapshotOption.cs +++ b/Services/Evs/V2/Model/CreateSnapshotOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/CreateSnapshotRequest.cs b/Services/Evs/V2/Model/CreateSnapshotRequest.cs index 2038f7f..3ec2cf8 100755 --- a/Services/Evs/V2/Model/CreateSnapshotRequest.cs +++ b/Services/Evs/V2/Model/CreateSnapshotRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/CreateSnapshotRequestBody.cs b/Services/Evs/V2/Model/CreateSnapshotRequestBody.cs index 13de45e..9820747 100755 --- a/Services/Evs/V2/Model/CreateSnapshotRequestBody.cs +++ b/Services/Evs/V2/Model/CreateSnapshotRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/CreateSnapshotResponse.cs b/Services/Evs/V2/Model/CreateSnapshotResponse.cs index b6804c1..85b04b8 100755 --- a/Services/Evs/V2/Model/CreateSnapshotResponse.cs +++ b/Services/Evs/V2/Model/CreateSnapshotResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/CreateVolumeOption.cs b/Services/Evs/V2/Model/CreateVolumeOption.cs index 0c0b1b5..1c85fd0 100755 --- a/Services/Evs/V2/Model/CreateVolumeOption.cs +++ b/Services/Evs/V2/Model/CreateVolumeOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { @@ -52,11 +53,16 @@ public class VolumeTypeEnum { "ESSD", ESSD }, }; - private string Value; + private string _value; + + public VolumeTypeEnum() + { + + } public VolumeTypeEnum(string value) { - Value = value; + _value = value; } public static VolumeTypeEnum FromValue(string value) @@ -75,17 +81,17 @@ public static VolumeTypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -114,7 +120,7 @@ public bool Equals(VolumeTypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(VolumeTypeEnum a, VolumeTypeEnum b) diff --git a/Services/Evs/V2/Model/CreateVolumeRequest.cs b/Services/Evs/V2/Model/CreateVolumeRequest.cs index 60d9888..8f6cae1 100755 --- a/Services/Evs/V2/Model/CreateVolumeRequest.cs +++ b/Services/Evs/V2/Model/CreateVolumeRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/CreateVolumeRequestBody.cs b/Services/Evs/V2/Model/CreateVolumeRequestBody.cs index 2025d83..c091e50 100755 --- a/Services/Evs/V2/Model/CreateVolumeRequestBody.cs +++ b/Services/Evs/V2/Model/CreateVolumeRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/CreateVolumeResponse.cs b/Services/Evs/V2/Model/CreateVolumeResponse.cs index 2f043e7..1910f84 100755 --- a/Services/Evs/V2/Model/CreateVolumeResponse.cs +++ b/Services/Evs/V2/Model/CreateVolumeResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/CreateVolumeSchedulerHints.cs b/Services/Evs/V2/Model/CreateVolumeSchedulerHints.cs index da8c194..778860f 100755 --- a/Services/Evs/V2/Model/CreateVolumeSchedulerHints.cs +++ b/Services/Evs/V2/Model/CreateVolumeSchedulerHints.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/CreateVolumeTransferDetail.cs b/Services/Evs/V2/Model/CreateVolumeTransferDetail.cs index 69c66f2..609ca66 100755 --- a/Services/Evs/V2/Model/CreateVolumeTransferDetail.cs +++ b/Services/Evs/V2/Model/CreateVolumeTransferDetail.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/CreateVolumeTransferOption.cs b/Services/Evs/V2/Model/CreateVolumeTransferOption.cs index b5c48e3..3d545a5 100755 --- a/Services/Evs/V2/Model/CreateVolumeTransferOption.cs +++ b/Services/Evs/V2/Model/CreateVolumeTransferOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/DeleteSnapshotRequest.cs b/Services/Evs/V2/Model/DeleteSnapshotRequest.cs index 34370bf..5b900a7 100755 --- a/Services/Evs/V2/Model/DeleteSnapshotRequest.cs +++ b/Services/Evs/V2/Model/DeleteSnapshotRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/DeleteSnapshotResponse.cs b/Services/Evs/V2/Model/DeleteSnapshotResponse.cs index a7cb1c6..f6b6070 100755 --- a/Services/Evs/V2/Model/DeleteSnapshotResponse.cs +++ b/Services/Evs/V2/Model/DeleteSnapshotResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/DeleteTagsOption.cs b/Services/Evs/V2/Model/DeleteTagsOption.cs index 3ba133a..47bdd5b 100755 --- a/Services/Evs/V2/Model/DeleteTagsOption.cs +++ b/Services/Evs/V2/Model/DeleteTagsOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/DeleteVolumeRequest.cs b/Services/Evs/V2/Model/DeleteVolumeRequest.cs index 8999033..6022e65 100755 --- a/Services/Evs/V2/Model/DeleteVolumeRequest.cs +++ b/Services/Evs/V2/Model/DeleteVolumeRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/DeleteVolumeResponse.cs b/Services/Evs/V2/Model/DeleteVolumeResponse.cs index 7bcaa1d..8d48132 100755 --- a/Services/Evs/V2/Model/DeleteVolumeResponse.cs +++ b/Services/Evs/V2/Model/DeleteVolumeResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/JobEntities.cs b/Services/Evs/V2/Model/JobEntities.cs index 7508c1d..0d00285 100755 --- a/Services/Evs/V2/Model/JobEntities.cs +++ b/Services/Evs/V2/Model/JobEntities.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/Link.cs b/Services/Evs/V2/Model/Link.cs index d695d90..98ee560 100755 --- a/Services/Evs/V2/Model/Link.cs +++ b/Services/Evs/V2/Model/Link.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/ListSnapshotsRequest.cs b/Services/Evs/V2/Model/ListSnapshotsRequest.cs index bc24bb1..f9a84e0 100755 --- a/Services/Evs/V2/Model/ListSnapshotsRequest.cs +++ b/Services/Evs/V2/Model/ListSnapshotsRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/ListSnapshotsResponse.cs b/Services/Evs/V2/Model/ListSnapshotsResponse.cs index 678f78d..8e92f8b 100755 --- a/Services/Evs/V2/Model/ListSnapshotsResponse.cs +++ b/Services/Evs/V2/Model/ListSnapshotsResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/ListVersionsRequest.cs b/Services/Evs/V2/Model/ListVersionsRequest.cs index 9e95d8d..6f27669 100755 --- a/Services/Evs/V2/Model/ListVersionsRequest.cs +++ b/Services/Evs/V2/Model/ListVersionsRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/ListVersionsResponse.cs b/Services/Evs/V2/Model/ListVersionsResponse.cs index 7c18b8c..467b7e3 100755 --- a/Services/Evs/V2/Model/ListVersionsResponse.cs +++ b/Services/Evs/V2/Model/ListVersionsResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/ListVolumeTagsRequest.cs b/Services/Evs/V2/Model/ListVolumeTagsRequest.cs index a62d552..16138fd 100755 --- a/Services/Evs/V2/Model/ListVolumeTagsRequest.cs +++ b/Services/Evs/V2/Model/ListVolumeTagsRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/ListVolumeTagsResponse.cs b/Services/Evs/V2/Model/ListVolumeTagsResponse.cs index 7fbaff8..8a02fe7 100755 --- a/Services/Evs/V2/Model/ListVolumeTagsResponse.cs +++ b/Services/Evs/V2/Model/ListVolumeTagsResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/ListVolumesByTagsRequest.cs b/Services/Evs/V2/Model/ListVolumesByTagsRequest.cs index 4c15e34..c4b73cc 100755 --- a/Services/Evs/V2/Model/ListVolumesByTagsRequest.cs +++ b/Services/Evs/V2/Model/ListVolumesByTagsRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/ListVolumesByTagsRequestBody.cs b/Services/Evs/V2/Model/ListVolumesByTagsRequestBody.cs index 33198b1..a890209 100755 --- a/Services/Evs/V2/Model/ListVolumesByTagsRequestBody.cs +++ b/Services/Evs/V2/Model/ListVolumesByTagsRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { @@ -28,11 +29,16 @@ public class ActionEnum { "filter", FILTER }, }; - private string Value; + private string _value; + + public ActionEnum() + { + + } public ActionEnum(string value) { - Value = value; + _value = value; } public static ActionEnum FromValue(string value) @@ -51,17 +57,17 @@ public static ActionEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -90,7 +96,7 @@ public bool Equals(ActionEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(ActionEnum a, ActionEnum b) diff --git a/Services/Evs/V2/Model/ListVolumesByTagsResponse.cs b/Services/Evs/V2/Model/ListVolumesByTagsResponse.cs index 2055497..b53435c 100755 --- a/Services/Evs/V2/Model/ListVolumesByTagsResponse.cs +++ b/Services/Evs/V2/Model/ListVolumesByTagsResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/ListVolumesRequest.cs b/Services/Evs/V2/Model/ListVolumesRequest.cs index 9f11ccd..5367c93 100755 --- a/Services/Evs/V2/Model/ListVolumesRequest.cs +++ b/Services/Evs/V2/Model/ListVolumesRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/ListVolumesResponse.cs b/Services/Evs/V2/Model/ListVolumesResponse.cs index 48ccc34..a89c196 100755 --- a/Services/Evs/V2/Model/ListVolumesResponse.cs +++ b/Services/Evs/V2/Model/ListVolumesResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/Match.cs b/Services/Evs/V2/Model/Match.cs index c4fbea8..79e7ae6 100755 --- a/Services/Evs/V2/Model/Match.cs +++ b/Services/Evs/V2/Model/Match.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { @@ -34,11 +35,16 @@ public class KeyEnum { "service_type", SERVICE_TYPE }, }; - private string Value; + private string _value; + + public KeyEnum() + { + + } public KeyEnum(string value) { - Value = value; + _value = value; } public static KeyEnum FromValue(string value) @@ -57,17 +63,17 @@ public static KeyEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -96,7 +102,7 @@ public bool Equals(KeyEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(KeyEnum a, KeyEnum b) diff --git a/Services/Evs/V2/Model/MediaTypes.cs b/Services/Evs/V2/Model/MediaTypes.cs index 22af42f..e29f846 100755 --- a/Services/Evs/V2/Model/MediaTypes.cs +++ b/Services/Evs/V2/Model/MediaTypes.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/OsExtend.cs b/Services/Evs/V2/Model/OsExtend.cs index 1552f73..dc09d2d 100755 --- a/Services/Evs/V2/Model/OsExtend.cs +++ b/Services/Evs/V2/Model/OsExtend.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/QuotaDetail.cs b/Services/Evs/V2/Model/QuotaDetail.cs index f0fb199..3a662f3 100755 --- a/Services/Evs/V2/Model/QuotaDetail.cs +++ b/Services/Evs/V2/Model/QuotaDetail.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/QuotaDetailBackupGigabytes.cs b/Services/Evs/V2/Model/QuotaDetailBackupGigabytes.cs index abb565e..eca97fd 100755 --- a/Services/Evs/V2/Model/QuotaDetailBackupGigabytes.cs +++ b/Services/Evs/V2/Model/QuotaDetailBackupGigabytes.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/QuotaDetailBackups.cs b/Services/Evs/V2/Model/QuotaDetailBackups.cs index 84539a2..3fe0865 100755 --- a/Services/Evs/V2/Model/QuotaDetailBackups.cs +++ b/Services/Evs/V2/Model/QuotaDetailBackups.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/QuotaDetailGigabytes.cs b/Services/Evs/V2/Model/QuotaDetailGigabytes.cs index 4dc43d3..72517fc 100755 --- a/Services/Evs/V2/Model/QuotaDetailGigabytes.cs +++ b/Services/Evs/V2/Model/QuotaDetailGigabytes.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/QuotaDetailGigabytesGPSSD.cs b/Services/Evs/V2/Model/QuotaDetailGigabytesGPSSD.cs index 82fde1e..3f27f02 100755 --- a/Services/Evs/V2/Model/QuotaDetailGigabytesGPSSD.cs +++ b/Services/Evs/V2/Model/QuotaDetailGigabytesGPSSD.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/QuotaDetailGigabytesSAS.cs b/Services/Evs/V2/Model/QuotaDetailGigabytesSAS.cs index 4e104b2..42bb438 100755 --- a/Services/Evs/V2/Model/QuotaDetailGigabytesSAS.cs +++ b/Services/Evs/V2/Model/QuotaDetailGigabytesSAS.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/QuotaDetailGigabytesSATA.cs b/Services/Evs/V2/Model/QuotaDetailGigabytesSATA.cs index b9ad17a..4de601d 100755 --- a/Services/Evs/V2/Model/QuotaDetailGigabytesSATA.cs +++ b/Services/Evs/V2/Model/QuotaDetailGigabytesSATA.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/QuotaDetailGigabytesSSD.cs b/Services/Evs/V2/Model/QuotaDetailGigabytesSSD.cs index ce141c4..09c2b54 100755 --- a/Services/Evs/V2/Model/QuotaDetailGigabytesSSD.cs +++ b/Services/Evs/V2/Model/QuotaDetailGigabytesSSD.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/QuotaDetailPerVolumeGigabytes.cs b/Services/Evs/V2/Model/QuotaDetailPerVolumeGigabytes.cs index a8b906c..33cd45d 100755 --- a/Services/Evs/V2/Model/QuotaDetailPerVolumeGigabytes.cs +++ b/Services/Evs/V2/Model/QuotaDetailPerVolumeGigabytes.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/QuotaDetailSnapshots.cs b/Services/Evs/V2/Model/QuotaDetailSnapshots.cs index cda2958..eb3af0f 100755 --- a/Services/Evs/V2/Model/QuotaDetailSnapshots.cs +++ b/Services/Evs/V2/Model/QuotaDetailSnapshots.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/QuotaDetailSnapshotsGPSSD.cs b/Services/Evs/V2/Model/QuotaDetailSnapshotsGPSSD.cs index f1db0ca..b6dd9fb 100755 --- a/Services/Evs/V2/Model/QuotaDetailSnapshotsGPSSD.cs +++ b/Services/Evs/V2/Model/QuotaDetailSnapshotsGPSSD.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/QuotaDetailSnapshotsSAS.cs b/Services/Evs/V2/Model/QuotaDetailSnapshotsSAS.cs index 47d68dc..fd0d231 100755 --- a/Services/Evs/V2/Model/QuotaDetailSnapshotsSAS.cs +++ b/Services/Evs/V2/Model/QuotaDetailSnapshotsSAS.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/QuotaDetailSnapshotsSATA.cs b/Services/Evs/V2/Model/QuotaDetailSnapshotsSATA.cs index 2dffc78..9cfef85 100755 --- a/Services/Evs/V2/Model/QuotaDetailSnapshotsSATA.cs +++ b/Services/Evs/V2/Model/QuotaDetailSnapshotsSATA.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/QuotaDetailSnapshotsSSD.cs b/Services/Evs/V2/Model/QuotaDetailSnapshotsSSD.cs index 2c1765a..f704ec7 100755 --- a/Services/Evs/V2/Model/QuotaDetailSnapshotsSSD.cs +++ b/Services/Evs/V2/Model/QuotaDetailSnapshotsSSD.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/QuotaDetailVolumes.cs b/Services/Evs/V2/Model/QuotaDetailVolumes.cs index aed69b3..8a7fd6b 100755 --- a/Services/Evs/V2/Model/QuotaDetailVolumes.cs +++ b/Services/Evs/V2/Model/QuotaDetailVolumes.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/QuotaDetailVolumesGPSSD.cs b/Services/Evs/V2/Model/QuotaDetailVolumesGPSSD.cs index c1f9722..e75e9a5 100755 --- a/Services/Evs/V2/Model/QuotaDetailVolumesGPSSD.cs +++ b/Services/Evs/V2/Model/QuotaDetailVolumesGPSSD.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/QuotaDetailVolumesSAS.cs b/Services/Evs/V2/Model/QuotaDetailVolumesSAS.cs index fe7ec05..0ce7bac 100755 --- a/Services/Evs/V2/Model/QuotaDetailVolumesSAS.cs +++ b/Services/Evs/V2/Model/QuotaDetailVolumesSAS.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/QuotaDetailVolumesSATA.cs b/Services/Evs/V2/Model/QuotaDetailVolumesSATA.cs index 8d93357..df95c8c 100755 --- a/Services/Evs/V2/Model/QuotaDetailVolumesSATA.cs +++ b/Services/Evs/V2/Model/QuotaDetailVolumesSATA.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/QuotaDetailVolumesSSD.cs b/Services/Evs/V2/Model/QuotaDetailVolumesSSD.cs index 422832c..9b144cc 100755 --- a/Services/Evs/V2/Model/QuotaDetailVolumesSSD.cs +++ b/Services/Evs/V2/Model/QuotaDetailVolumesSSD.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/QuotaList.cs b/Services/Evs/V2/Model/QuotaList.cs index 813cdda..6e61856 100755 --- a/Services/Evs/V2/Model/QuotaList.cs +++ b/Services/Evs/V2/Model/QuotaList.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/ResizeVolumeRequest.cs b/Services/Evs/V2/Model/ResizeVolumeRequest.cs index d6658ba..5c4a77e 100755 --- a/Services/Evs/V2/Model/ResizeVolumeRequest.cs +++ b/Services/Evs/V2/Model/ResizeVolumeRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/ResizeVolumeRequestBody.cs b/Services/Evs/V2/Model/ResizeVolumeRequestBody.cs index 369de2d..1d3896e 100755 --- a/Services/Evs/V2/Model/ResizeVolumeRequestBody.cs +++ b/Services/Evs/V2/Model/ResizeVolumeRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/ResizeVolumeResponse.cs b/Services/Evs/V2/Model/ResizeVolumeResponse.cs index bf407e3..61dfcfb 100755 --- a/Services/Evs/V2/Model/ResizeVolumeResponse.cs +++ b/Services/Evs/V2/Model/ResizeVolumeResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/Resource.cs b/Services/Evs/V2/Model/Resource.cs index 9980311..198e583 100755 --- a/Services/Evs/V2/Model/Resource.cs +++ b/Services/Evs/V2/Model/Resource.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/RollbackInfo.cs b/Services/Evs/V2/Model/RollbackInfo.cs index d940492..b85fbbe 100755 --- a/Services/Evs/V2/Model/RollbackInfo.cs +++ b/Services/Evs/V2/Model/RollbackInfo.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/RollbackSnapshotOption.cs b/Services/Evs/V2/Model/RollbackSnapshotOption.cs index 5db27f6..c8c3572 100755 --- a/Services/Evs/V2/Model/RollbackSnapshotOption.cs +++ b/Services/Evs/V2/Model/RollbackSnapshotOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/RollbackSnapshotRequest.cs b/Services/Evs/V2/Model/RollbackSnapshotRequest.cs index 759af6a..1b2d260 100755 --- a/Services/Evs/V2/Model/RollbackSnapshotRequest.cs +++ b/Services/Evs/V2/Model/RollbackSnapshotRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/RollbackSnapshotRequestBody.cs b/Services/Evs/V2/Model/RollbackSnapshotRequestBody.cs index 27fb8fb..4510cbf 100755 --- a/Services/Evs/V2/Model/RollbackSnapshotRequestBody.cs +++ b/Services/Evs/V2/Model/RollbackSnapshotRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/RollbackSnapshotResponse.cs b/Services/Evs/V2/Model/RollbackSnapshotResponse.cs index 4223e31..9cea7a7 100755 --- a/Services/Evs/V2/Model/RollbackSnapshotResponse.cs +++ b/Services/Evs/V2/Model/RollbackSnapshotResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/ShowJobRequest.cs b/Services/Evs/V2/Model/ShowJobRequest.cs index b319bff..9706c27 100755 --- a/Services/Evs/V2/Model/ShowJobRequest.cs +++ b/Services/Evs/V2/Model/ShowJobRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/ShowJobResponse.cs b/Services/Evs/V2/Model/ShowJobResponse.cs index 08a7496..4686998 100755 --- a/Services/Evs/V2/Model/ShowJobResponse.cs +++ b/Services/Evs/V2/Model/ShowJobResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { @@ -46,11 +47,16 @@ public class StatusEnum { "INIT", INIT }, }; - private string Value; + private string _value; + + public StatusEnum() + { + + } public StatusEnum(string value) { - Value = value; + _value = value; } public static StatusEnum FromValue(string value) @@ -69,17 +75,17 @@ public static StatusEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -108,7 +114,7 @@ public bool Equals(StatusEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(StatusEnum a, StatusEnum b) diff --git a/Services/Evs/V2/Model/ShowSnapshotRequest.cs b/Services/Evs/V2/Model/ShowSnapshotRequest.cs index fd31a5e..e9fd1ac 100755 --- a/Services/Evs/V2/Model/ShowSnapshotRequest.cs +++ b/Services/Evs/V2/Model/ShowSnapshotRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/ShowSnapshotResponse.cs b/Services/Evs/V2/Model/ShowSnapshotResponse.cs index 013aee4..9399d4c 100755 --- a/Services/Evs/V2/Model/ShowSnapshotResponse.cs +++ b/Services/Evs/V2/Model/ShowSnapshotResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/ShowVersionRequest.cs b/Services/Evs/V2/Model/ShowVersionRequest.cs index d49dfae..ae24ba2 100755 --- a/Services/Evs/V2/Model/ShowVersionRequest.cs +++ b/Services/Evs/V2/Model/ShowVersionRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { @@ -40,11 +41,16 @@ public class VersionEnum { "v3", V3 }, }; - private string Value; + private string _value; + + public VersionEnum() + { + + } public VersionEnum(string value) { - Value = value; + _value = value; } public static VersionEnum FromValue(string value) @@ -63,17 +69,17 @@ public static VersionEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -102,7 +108,7 @@ public bool Equals(VersionEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(VersionEnum a, VersionEnum b) diff --git a/Services/Evs/V2/Model/ShowVersionResponse.cs b/Services/Evs/V2/Model/ShowVersionResponse.cs index 69d61cc..c669a28 100755 --- a/Services/Evs/V2/Model/ShowVersionResponse.cs +++ b/Services/Evs/V2/Model/ShowVersionResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/ShowVolumeRequest.cs b/Services/Evs/V2/Model/ShowVolumeRequest.cs index d39e5e6..00041e4 100755 --- a/Services/Evs/V2/Model/ShowVolumeRequest.cs +++ b/Services/Evs/V2/Model/ShowVolumeRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/ShowVolumeResponse.cs b/Services/Evs/V2/Model/ShowVolumeResponse.cs index 120f418..8cc57e6 100755 --- a/Services/Evs/V2/Model/ShowVolumeResponse.cs +++ b/Services/Evs/V2/Model/ShowVolumeResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/ShowVolumeTagsRequest.cs b/Services/Evs/V2/Model/ShowVolumeTagsRequest.cs index 2793542..7c0f7bd 100755 --- a/Services/Evs/V2/Model/ShowVolumeTagsRequest.cs +++ b/Services/Evs/V2/Model/ShowVolumeTagsRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/ShowVolumeTagsResponse.cs b/Services/Evs/V2/Model/ShowVolumeTagsResponse.cs index adf1feb..b8beb6d 100755 --- a/Services/Evs/V2/Model/ShowVolumeTagsResponse.cs +++ b/Services/Evs/V2/Model/ShowVolumeTagsResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/SnapshotDetails.cs b/Services/Evs/V2/Model/SnapshotDetails.cs index 3ab0911..e193da7 100755 --- a/Services/Evs/V2/Model/SnapshotDetails.cs +++ b/Services/Evs/V2/Model/SnapshotDetails.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/SnapshotList.cs b/Services/Evs/V2/Model/SnapshotList.cs index b0ee251..17cf07a 100755 --- a/Services/Evs/V2/Model/SnapshotList.cs +++ b/Services/Evs/V2/Model/SnapshotList.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/SubJob.cs b/Services/Evs/V2/Model/SubJob.cs index ccce0b2..bb729cc 100755 --- a/Services/Evs/V2/Model/SubJob.cs +++ b/Services/Evs/V2/Model/SubJob.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { @@ -46,11 +47,16 @@ public class StatusEnum { "INIT", INIT }, }; - private string Value; + private string _value; + + public StatusEnum() + { + + } public StatusEnum(string value) { - Value = value; + _value = value; } public static StatusEnum FromValue(string value) @@ -69,17 +75,17 @@ public static StatusEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -108,7 +114,7 @@ public bool Equals(StatusEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(StatusEnum a, StatusEnum b) diff --git a/Services/Evs/V2/Model/SubJobEntities.cs b/Services/Evs/V2/Model/SubJobEntities.cs index 3583937..0961e63 100755 --- a/Services/Evs/V2/Model/SubJobEntities.cs +++ b/Services/Evs/V2/Model/SubJobEntities.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/Tag.cs b/Services/Evs/V2/Model/Tag.cs index b168203..1092e18 100755 --- a/Services/Evs/V2/Model/Tag.cs +++ b/Services/Evs/V2/Model/Tag.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/TagsForListVolumes.cs b/Services/Evs/V2/Model/TagsForListVolumes.cs index 5177fed..ff0a4ff 100755 --- a/Services/Evs/V2/Model/TagsForListVolumes.cs +++ b/Services/Evs/V2/Model/TagsForListVolumes.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/UpdateSnapshotOption.cs b/Services/Evs/V2/Model/UpdateSnapshotOption.cs index 62371fe..84f03c1 100755 --- a/Services/Evs/V2/Model/UpdateSnapshotOption.cs +++ b/Services/Evs/V2/Model/UpdateSnapshotOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/UpdateSnapshotRequest.cs b/Services/Evs/V2/Model/UpdateSnapshotRequest.cs index 9b5c97d..f36dfac 100755 --- a/Services/Evs/V2/Model/UpdateSnapshotRequest.cs +++ b/Services/Evs/V2/Model/UpdateSnapshotRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/UpdateSnapshotRequestBody.cs b/Services/Evs/V2/Model/UpdateSnapshotRequestBody.cs index 3a1e028..87a6196 100755 --- a/Services/Evs/V2/Model/UpdateSnapshotRequestBody.cs +++ b/Services/Evs/V2/Model/UpdateSnapshotRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/UpdateSnapshotResponse.cs b/Services/Evs/V2/Model/UpdateSnapshotResponse.cs index c3304d0..d74ab31 100755 --- a/Services/Evs/V2/Model/UpdateSnapshotResponse.cs +++ b/Services/Evs/V2/Model/UpdateSnapshotResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/UpdateVolumeOption.cs b/Services/Evs/V2/Model/UpdateVolumeOption.cs index 0509737..78d311d 100755 --- a/Services/Evs/V2/Model/UpdateVolumeOption.cs +++ b/Services/Evs/V2/Model/UpdateVolumeOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/UpdateVolumeRequest.cs b/Services/Evs/V2/Model/UpdateVolumeRequest.cs index ecfbf93..c7cae3c 100755 --- a/Services/Evs/V2/Model/UpdateVolumeRequest.cs +++ b/Services/Evs/V2/Model/UpdateVolumeRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/UpdateVolumeRequestBody.cs b/Services/Evs/V2/Model/UpdateVolumeRequestBody.cs index 8d76498..c9d0ca7 100755 --- a/Services/Evs/V2/Model/UpdateVolumeRequestBody.cs +++ b/Services/Evs/V2/Model/UpdateVolumeRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/UpdateVolumeResponse.cs b/Services/Evs/V2/Model/UpdateVolumeResponse.cs index 19c662e..55259bc 100755 --- a/Services/Evs/V2/Model/UpdateVolumeResponse.cs +++ b/Services/Evs/V2/Model/UpdateVolumeResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/Versions.cs b/Services/Evs/V2/Model/Versions.cs index d830376..d996c33 100755 --- a/Services/Evs/V2/Model/Versions.cs +++ b/Services/Evs/V2/Model/Versions.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/VolumeDetail.cs b/Services/Evs/V2/Model/VolumeDetail.cs index a0bcd13..237dc9d 100755 --- a/Services/Evs/V2/Model/VolumeDetail.cs +++ b/Services/Evs/V2/Model/VolumeDetail.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/VolumeDetailForTag.cs b/Services/Evs/V2/Model/VolumeDetailForTag.cs index 0625709..67d1922 100755 --- a/Services/Evs/V2/Model/VolumeDetailForTag.cs +++ b/Services/Evs/V2/Model/VolumeDetailForTag.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/VolumeMetadata.cs b/Services/Evs/V2/Model/VolumeMetadata.cs index 66be834..cbd01de 100755 --- a/Services/Evs/V2/Model/VolumeMetadata.cs +++ b/Services/Evs/V2/Model/VolumeMetadata.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/VolumeTransfer.cs b/Services/Evs/V2/Model/VolumeTransfer.cs index 0b9c05c..6439033 100755 --- a/Services/Evs/V2/Model/VolumeTransfer.cs +++ b/Services/Evs/V2/Model/VolumeTransfer.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/VolumeTransferSummary.cs b/Services/Evs/V2/Model/VolumeTransferSummary.cs index 8b9ca3f..c7da5a3 100755 --- a/Services/Evs/V2/Model/VolumeTransferSummary.cs +++ b/Services/Evs/V2/Model/VolumeTransferSummary.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/VolumeType.cs b/Services/Evs/V2/Model/VolumeType.cs index f3a21ec..059f319 100755 --- a/Services/Evs/V2/Model/VolumeType.cs +++ b/Services/Evs/V2/Model/VolumeType.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/VolumeTypeExtraSpecs.cs b/Services/Evs/V2/Model/VolumeTypeExtraSpecs.cs index c1572c3..76c0c5c 100755 --- a/Services/Evs/V2/Model/VolumeTypeExtraSpecs.cs +++ b/Services/Evs/V2/Model/VolumeTypeExtraSpecs.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Model/ZoneState.cs b/Services/Evs/V2/Model/ZoneState.cs index 4cbef86..e92091d 100755 --- a/Services/Evs/V2/Model/ZoneState.cs +++ b/Services/Evs/V2/Model/ZoneState.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2.Model { diff --git a/Services/Evs/V2/Region/EvsRegion.cs b/Services/Evs/V2/Region/EvsRegion.cs index 8f4ee57..4a06532 100755 --- a/Services/Evs/V2/Region/EvsRegion.cs +++ b/Services/Evs/V2/Region/EvsRegion.cs @@ -1,6 +1,6 @@ using System; using System.Collections.Generic; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Evs.V2 { diff --git a/Services/Evs/obj/Evs.csproj.nuget.cache b/Services/Evs/obj/Evs.csproj.nuget.cache deleted file mode 100644 index 0b7f4b6..0000000 --- a/Services/Evs/obj/Evs.csproj.nuget.cache +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": 1, - "dgSpecHash": "GFsakou4pBZtacvu2v+UtGmOrUx6F6NSDCOrDKUnNa0dDRl7ZkwM5YrUNY6NrbwST1akXaZIZdcfaeVa++/C9g==", - "success": true -} \ No newline at end of file diff --git a/Services/Evs/obj/Evs.csproj.nuget.dgspec.json b/Services/Evs/obj/Evs.csproj.nuget.dgspec.json deleted file mode 100644 index 31a3ae7..0000000 --- a/Services/Evs/obj/Evs.csproj.nuget.dgspec.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "format": 1, - "restore": { - "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Evs/Evs.csproj": {} - }, - "projects": { - "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Evs/Evs.csproj": { - "version": "0.0.2-beta", - "restore": { - "projectUniqueName": "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Evs/Evs.csproj", - "projectName": "G42Cloud.SDK.Evs", - "projectPath": "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Evs/Evs.csproj", - "packagesPath": "/root/.nuget/packages/", - "outputPath": "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Evs/obj/", - "projectStyle": "PackageReference", - "fallbackFolders": [ - "/usr/dotnet2/sdk/NuGetFallbackFolder" - ], - "configFilePaths": [ - "/root/.nuget/NuGet/NuGet.Config" - ], - "originalTargetFrameworks": [ - "netstandard2.0" - ], - "sources": { - "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86": {} - }, - "frameworks": { - "netstandard2.0": { - "projectReferences": {} - } - }, - "warningProperties": { - "warnAsError": [ - "NU1605" - ] - } - }, - "frameworks": { - "netstandard2.0": { - "dependencies": { - "HuaweiCloud.SDK.Core": { - "target": "Package", - "version": "[3.1.11, )" - }, - "NETStandard.Library": { - "suppressParent": "All", - "target": "Package", - "version": "[2.0.3, )", - "autoReferenced": true - }, - "Newtonsoft.Json": { - "target": "Package", - "version": "[13.0.1, )" - } - }, - "imports": [ - "net461" - ], - "assetTargetFallback": true, - "warn": true - } - } - } - } -} \ No newline at end of file diff --git a/Services/Evs/obj/Evs.csproj.nuget.g.props b/Services/Evs/obj/Evs.csproj.nuget.g.props deleted file mode 100644 index f3c5fef..0000000 --- a/Services/Evs/obj/Evs.csproj.nuget.g.props +++ /dev/null @@ -1,15 +0,0 @@ - - - - True - NuGet - /data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Evs/obj/project.assets.json - /root/.nuget/packages/ - /root/.nuget/packages/;/usr/dotnet2/sdk/NuGetFallbackFolder - PackageReference - 5.0.2 - - - $(MSBuildAllProjects);$(MSBuildThisFileFullPath) - - \ No newline at end of file diff --git a/Services/Evs/obj/Evs.csproj.nuget.g.targets b/Services/Evs/obj/Evs.csproj.nuget.g.targets deleted file mode 100644 index e8536f5..0000000 --- a/Services/Evs/obj/Evs.csproj.nuget.g.targets +++ /dev/null @@ -1,9 +0,0 @@ - - - - $(MSBuildAllProjects);$(MSBuildThisFileFullPath) - - - - - \ No newline at end of file diff --git a/Services/Evs/obj/project.assets.json b/Services/Evs/obj/project.assets.json deleted file mode 100644 index 2dafdd0..0000000 --- a/Services/Evs/obj/project.assets.json +++ /dev/null @@ -1,1134 +0,0 @@ -{ - "version": 3, - "targets": { - ".NETStandard,Version=v2.0": { - "HuaweiCloud.SDK.Core/3.1.11": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.DependencyInjection": "3.1.5", - "Microsoft.Extensions.Http": "3.1.5", - "Microsoft.Extensions.Http.Polly": "3.1.5", - "Microsoft.Extensions.Logging.Console": "3.1.5", - "Microsoft.Extensions.Logging.Debug": "3.1.5", - "Newtonsoft.Json": "13.0.1" - }, - "compile": { - "lib/netstandard2.0/HuaweiCloud.SDK.Core.dll": {} - }, - "runtime": { - "lib/netstandard2.0/HuaweiCloud.SDK.Core.dll": {} - } - }, - "Microsoft.Bcl.AsyncInterfaces/1.1.1": { - "type": "package", - "dependencies": { - "System.Threading.Tasks.Extensions": "4.5.4" - }, - "compile": { - "ref/netstandard2.0/Microsoft.Bcl.AsyncInterfaces.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Bcl.AsyncInterfaces.dll": {} - } - }, - "Microsoft.Extensions.Configuration/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.Configuration.Abstractions": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Configuration.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Configuration.dll": {} - } - }, - "Microsoft.Extensions.Configuration.Abstractions/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.Primitives": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Configuration.Abstractions.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Configuration.Abstractions.dll": {} - } - }, - "Microsoft.Extensions.Configuration.Binder/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.Configuration": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Configuration.Binder.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Configuration.Binder.dll": {} - } - }, - "Microsoft.Extensions.DependencyInjection/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Bcl.AsyncInterfaces": "1.1.1", - "Microsoft.Extensions.DependencyInjection.Abstractions": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.dll": {} - } - }, - "Microsoft.Extensions.DependencyInjection.Abstractions/3.1.5": { - "type": "package", - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll": {} - } - }, - "Microsoft.Extensions.Http/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.DependencyInjection.Abstractions": "3.1.5", - "Microsoft.Extensions.Logging": "3.1.5", - "Microsoft.Extensions.Options": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Http.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Http.dll": {} - } - }, - "Microsoft.Extensions.Http.Polly/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.Http": "3.1.5", - "Polly": "7.1.0", - "Polly.Extensions.Http": "3.0.0" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Http.Polly.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Http.Polly.dll": {} - } - }, - "Microsoft.Extensions.Logging/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.Configuration.Binder": "3.1.5", - "Microsoft.Extensions.DependencyInjection": "3.1.5", - "Microsoft.Extensions.Logging.Abstractions": "3.1.5", - "Microsoft.Extensions.Options": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.dll": {} - } - }, - "Microsoft.Extensions.Logging.Abstractions/3.1.5": { - "type": "package", - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.Abstractions.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.Abstractions.dll": {} - } - }, - "Microsoft.Extensions.Logging.Configuration/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.Logging": "3.1.5", - "Microsoft.Extensions.Options.ConfigurationExtensions": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.Configuration.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.Configuration.dll": {} - } - }, - "Microsoft.Extensions.Logging.Console/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.Configuration.Abstractions": "3.1.5", - "Microsoft.Extensions.Logging": "3.1.5", - "Microsoft.Extensions.Logging.Configuration": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.Console.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.Console.dll": {} - } - }, - "Microsoft.Extensions.Logging.Debug/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.Logging": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.Debug.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.Debug.dll": {} - } - }, - "Microsoft.Extensions.Options/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.DependencyInjection.Abstractions": "3.1.5", - "Microsoft.Extensions.Primitives": "3.1.5", - "System.ComponentModel.Annotations": "4.7.0" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Options.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Options.dll": {} - } - }, - "Microsoft.Extensions.Options.ConfigurationExtensions/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.Configuration.Abstractions": "3.1.5", - "Microsoft.Extensions.Configuration.Binder": "3.1.5", - "Microsoft.Extensions.DependencyInjection.Abstractions": "3.1.5", - "Microsoft.Extensions.Options": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Options.ConfigurationExtensions.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Options.ConfigurationExtensions.dll": {} - } - }, - "Microsoft.Extensions.Primitives/3.1.5": { - "type": "package", - "dependencies": { - "System.Memory": "4.5.2", - "System.Runtime.CompilerServices.Unsafe": "4.7.1" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Primitives.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Primitives.dll": {} - } - }, - "Microsoft.NETCore.Platforms/1.1.0": { - "type": "package", - "compile": { - "lib/netstandard1.0/_._": {} - }, - "runtime": { - "lib/netstandard1.0/_._": {} - } - }, - "NETStandard.Library/2.0.3": { - "type": "package", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0" - }, - "compile": { - "lib/netstandard1.0/_._": {} - }, - "runtime": { - "lib/netstandard1.0/_._": {} - }, - "build": { - "build/netstandard2.0/NETStandard.Library.targets": {} - } - }, - "Newtonsoft.Json/13.0.1": { - "type": "package", - "compile": { - "lib/netstandard2.0/Newtonsoft.Json.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Newtonsoft.Json.dll": {} - } - }, - "Polly/7.1.0": { - "type": "package", - "compile": { - "lib/netstandard2.0/Polly.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Polly.dll": {} - } - }, - "Polly.Extensions.Http/3.0.0": { - "type": "package", - "dependencies": { - "Polly": "7.1.0" - }, - "compile": { - "lib/netstandard2.0/Polly.Extensions.Http.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Polly.Extensions.Http.dll": {} - } - }, - "System.Buffers/4.4.0": { - "type": "package", - "compile": { - "ref/netstandard2.0/System.Buffers.dll": {} - }, - "runtime": { - "lib/netstandard2.0/System.Buffers.dll": {} - } - }, - "System.ComponentModel.Annotations/4.7.0": { - "type": "package", - "compile": { - "ref/netstandard2.0/System.ComponentModel.Annotations.dll": {} - }, - "runtime": { - "lib/netstandard2.0/System.ComponentModel.Annotations.dll": {} - } - }, - "System.Memory/4.5.2": { - "type": "package", - "dependencies": { - "System.Buffers": "4.4.0", - "System.Numerics.Vectors": "4.4.0", - "System.Runtime.CompilerServices.Unsafe": "4.5.2" - }, - "compile": { - "lib/netstandard2.0/System.Memory.dll": {} - }, - "runtime": { - "lib/netstandard2.0/System.Memory.dll": {} - } - }, - "System.Numerics.Vectors/4.4.0": { - "type": "package", - "compile": { - "ref/netstandard2.0/System.Numerics.Vectors.dll": {} - }, - "runtime": { - "lib/netstandard2.0/System.Numerics.Vectors.dll": {} - } - }, - "System.Runtime.CompilerServices.Unsafe/4.7.1": { - "type": "package", - "compile": { - "ref/netstandard2.0/System.Runtime.CompilerServices.Unsafe.dll": {} - }, - "runtime": { - "lib/netstandard2.0/System.Runtime.CompilerServices.Unsafe.dll": {} - } - }, - "System.Threading.Tasks.Extensions/4.5.4": { - "type": "package", - "dependencies": { - "System.Runtime.CompilerServices.Unsafe": "4.5.3" - }, - "compile": { - "lib/netstandard2.0/System.Threading.Tasks.Extensions.dll": {} - }, - "runtime": { - "lib/netstandard2.0/System.Threading.Tasks.Extensions.dll": {} - } - } - } - }, - "libraries": { - "HuaweiCloud.SDK.Core/3.1.11": { - "sha512": "gfSrNtvvgvmEptRbn8LinWOcd2CmDgHVHKCOG7loIczGvrVSfCWJhnJYig/St+Jb8eKMeWgu/Ms52YJbdxUu0w==", - "type": "package", - "path": "huaweicloud.sdk.core/3.1.11", - "files": [ - ".nupkg.metadata", - "LICENSE", - "huaweicloud.sdk.core.3.1.11.nupkg.sha512", - "huaweicloud.sdk.core.nuspec", - "lib/netstandard2.0/HuaweiCloud.SDK.Core.dll" - ] - }, - "Microsoft.Bcl.AsyncInterfaces/1.1.1": { - "sha512": "yuvf07qFWFqtK3P/MRkEKLhn5r2UbSpVueRziSqj0yJQIKFwG1pq9mOayK3zE5qZCTs0CbrwL9M6R8VwqyGy2w==", - "type": "package", - "path": "microsoft.bcl.asyncinterfaces/1.1.1", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "LICENSE.TXT", - "THIRD-PARTY-NOTICES.TXT", - "lib/net461/Microsoft.Bcl.AsyncInterfaces.dll", - "lib/net461/Microsoft.Bcl.AsyncInterfaces.xml", - "lib/netstandard2.0/Microsoft.Bcl.AsyncInterfaces.dll", - "lib/netstandard2.0/Microsoft.Bcl.AsyncInterfaces.xml", - "lib/netstandard2.1/Microsoft.Bcl.AsyncInterfaces.dll", - "lib/netstandard2.1/Microsoft.Bcl.AsyncInterfaces.xml", - "microsoft.bcl.asyncinterfaces.1.1.1.nupkg.sha512", - "microsoft.bcl.asyncinterfaces.nuspec", - "ref/net461/Microsoft.Bcl.AsyncInterfaces.dll", - "ref/netstandard2.0/Microsoft.Bcl.AsyncInterfaces.dll", - "ref/netstandard2.1/Microsoft.Bcl.AsyncInterfaces.dll", - "useSharedDesignerContext.txt", - "version.txt" - ] - }, - "Microsoft.Extensions.Configuration/3.1.5": { - "sha512": "LZfdAP8flK4hkaniUv6TlstDX9FXLmJMX1A4mpLghAsZxTaJIgf+nzBNiPRdy/B5Vrs74gRONX3JrIUJQrebmA==", - "type": "package", - "path": "microsoft.extensions.configuration/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Configuration.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Configuration.xml", - "lib/netstandard2.0/Microsoft.Extensions.Configuration.dll", - "lib/netstandard2.0/Microsoft.Extensions.Configuration.xml", - "microsoft.extensions.configuration.3.1.5.nupkg.sha512", - "microsoft.extensions.configuration.nuspec" - ] - }, - "Microsoft.Extensions.Configuration.Abstractions/3.1.5": { - "sha512": "VBcAk6s9izZr04WCzNqOh1Sxz2RbVSh0G79MfpHSDv16cUJtSEYEHody9ZnF71LBEktzdu6cvDFBOFMh43q0iA==", - "type": "package", - "path": "microsoft.extensions.configuration.abstractions/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Configuration.Abstractions.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Configuration.Abstractions.xml", - "lib/netstandard2.0/Microsoft.Extensions.Configuration.Abstractions.dll", - "lib/netstandard2.0/Microsoft.Extensions.Configuration.Abstractions.xml", - "microsoft.extensions.configuration.abstractions.3.1.5.nupkg.sha512", - "microsoft.extensions.configuration.abstractions.nuspec" - ] - }, - "Microsoft.Extensions.Configuration.Binder/3.1.5": { - "sha512": "ZR/zjBxkvdnnWhRoBHDT95uz1ZgJFhv1QazmKCIcDqy/RXqi+6dJ/PfxDhEnzPvk9HbkcGfFsPEu1vSIyxDqBQ==", - "type": "package", - "path": "microsoft.extensions.configuration.binder/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Configuration.Binder.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Configuration.Binder.xml", - "lib/netstandard2.0/Microsoft.Extensions.Configuration.Binder.dll", - "lib/netstandard2.0/Microsoft.Extensions.Configuration.Binder.xml", - "microsoft.extensions.configuration.binder.3.1.5.nupkg.sha512", - "microsoft.extensions.configuration.binder.nuspec" - ] - }, - "Microsoft.Extensions.DependencyInjection/3.1.5": { - "sha512": "I+RTJQi7TtenIHZqL2zr6523PYXfL88Ruu4UIVmspIxdw14GHd8zZ+2dGLSdwX7fn41Hth4d42S1e1iHWVOJyQ==", - "type": "package", - "path": "microsoft.extensions.dependencyinjection/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/net461/Microsoft.Extensions.DependencyInjection.dll", - "lib/net461/Microsoft.Extensions.DependencyInjection.xml", - "lib/netcoreapp3.1/Microsoft.Extensions.DependencyInjection.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.DependencyInjection.xml", - "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.dll", - "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.xml", - "lib/netstandard2.1/Microsoft.Extensions.DependencyInjection.dll", - "lib/netstandard2.1/Microsoft.Extensions.DependencyInjection.xml", - "microsoft.extensions.dependencyinjection.3.1.5.nupkg.sha512", - "microsoft.extensions.dependencyinjection.nuspec" - ] - }, - "Microsoft.Extensions.DependencyInjection.Abstractions/3.1.5": { - "sha512": "2VSCj2TZPMdeEi279Lawi6qJQu4+sEWizSOYrhY6hapyS1jxn1jVUZT1Ugv68bya+x8+3lD4+RqhUZql9PhISQ==", - "type": "package", - "path": "microsoft.extensions.dependencyinjection.abstractions/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll", - "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.Abstractions.xml", - "microsoft.extensions.dependencyinjection.abstractions.3.1.5.nupkg.sha512", - "microsoft.extensions.dependencyinjection.abstractions.nuspec" - ] - }, - "Microsoft.Extensions.Http/3.1.5": { - "sha512": "P8yu3UDd0X129FmxJN0/nObuuH4v7YoxK00kEs8EU4R7POa+3yp/buux74fNYTLORuEqjBTMGtV7TBszuvCj7g==", - "type": "package", - "path": "microsoft.extensions.http/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Http.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Http.xml", - "lib/netstandard2.0/Microsoft.Extensions.Http.dll", - "lib/netstandard2.0/Microsoft.Extensions.Http.xml", - "microsoft.extensions.http.3.1.5.nupkg.sha512", - "microsoft.extensions.http.nuspec" - ] - }, - "Microsoft.Extensions.Http.Polly/3.1.5": { - "sha512": "wW+kLLqoQPIg3+NQhBkqmxBAtoGJhVsQ03RAjw/Jx0oTSmaZsJY3rIlBmsrHdeKOxq19P4qRlST2wk/k5tdXhg==", - "type": "package", - "path": "microsoft.extensions.http.polly/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netstandard2.0/Microsoft.Extensions.Http.Polly.dll", - "lib/netstandard2.0/Microsoft.Extensions.Http.Polly.xml", - "microsoft.extensions.http.polly.3.1.5.nupkg.sha512", - "microsoft.extensions.http.polly.nuspec" - ] - }, - "Microsoft.Extensions.Logging/3.1.5": { - "sha512": "C85NYDym6xy03o70vxX+VQ4ZEjj5Eg5t5QoGW0t100vG5MmPL6+G3XXcQjIIn1WRQrjzGWzQwuKf38fxXEWIWA==", - "type": "package", - "path": "microsoft.extensions.logging/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Logging.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Logging.xml", - "lib/netstandard2.0/Microsoft.Extensions.Logging.dll", - "lib/netstandard2.0/Microsoft.Extensions.Logging.xml", - "microsoft.extensions.logging.3.1.5.nupkg.sha512", - "microsoft.extensions.logging.nuspec" - ] - }, - "Microsoft.Extensions.Logging.Abstractions/3.1.5": { - "sha512": "ZvwowjRSWXewdPI+whPFXgwF4Qme6Q9KV9SCPEITSGiqHLArct7q5hTBtTzj3GPsVLjTqehvTg6Bd/EQk9JS0A==", - "type": "package", - "path": "microsoft.extensions.logging.abstractions/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netstandard2.0/Microsoft.Extensions.Logging.Abstractions.dll", - "lib/netstandard2.0/Microsoft.Extensions.Logging.Abstractions.xml", - "microsoft.extensions.logging.abstractions.3.1.5.nupkg.sha512", - "microsoft.extensions.logging.abstractions.nuspec" - ] - }, - "Microsoft.Extensions.Logging.Configuration/3.1.5": { - "sha512": "I+9jx/A9cLdkTmynKMa2oR4rYAfe3n2F/wNVvKxwIk2J33paEU13Se08Q5xvQisqfbumaRUNF7BWHr63JzuuRw==", - "type": "package", - "path": "microsoft.extensions.logging.configuration/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Logging.Configuration.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Logging.Configuration.xml", - "lib/netstandard2.0/Microsoft.Extensions.Logging.Configuration.dll", - "lib/netstandard2.0/Microsoft.Extensions.Logging.Configuration.xml", - "microsoft.extensions.logging.configuration.3.1.5.nupkg.sha512", - "microsoft.extensions.logging.configuration.nuspec" - ] - }, - "Microsoft.Extensions.Logging.Console/3.1.5": { - "sha512": "c/W7d9sjgyU0/3txj/i6pC+8f25Jbua7zKhHVHidC5hHL4OX8fAxSGPBWYOsRN4tXqpd5VphNmIFUWyT12fMoA==", - "type": "package", - "path": "microsoft.extensions.logging.console/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Logging.Console.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Logging.Console.xml", - "lib/netstandard2.0/Microsoft.Extensions.Logging.Console.dll", - "lib/netstandard2.0/Microsoft.Extensions.Logging.Console.xml", - "microsoft.extensions.logging.console.3.1.5.nupkg.sha512", - "microsoft.extensions.logging.console.nuspec" - ] - }, - "Microsoft.Extensions.Logging.Debug/3.1.5": { - "sha512": "oDs0vlr6tNm0Z4U81eiCvnX+9zSP1CBAIGNAnpKidLb1KzbX26UGI627TfuIEtvW9wYiQWqZtmwMMK9WHE8Dqg==", - "type": "package", - "path": "microsoft.extensions.logging.debug/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Logging.Debug.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Logging.Debug.xml", - "lib/netstandard2.0/Microsoft.Extensions.Logging.Debug.dll", - "lib/netstandard2.0/Microsoft.Extensions.Logging.Debug.xml", - "microsoft.extensions.logging.debug.3.1.5.nupkg.sha512", - "microsoft.extensions.logging.debug.nuspec" - ] - }, - "Microsoft.Extensions.Options/3.1.5": { - "sha512": "f+JT/7lkKBMp/Ak2tVjO+TD7o+UoCfjnExkZNn0PZIso8kIXrqNy6x42Lrxf4Q0pW3JMf9ExmL2EQlvk2XnFAg==", - "type": "package", - "path": "microsoft.extensions.options/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Options.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Options.xml", - "lib/netstandard2.0/Microsoft.Extensions.Options.dll", - "lib/netstandard2.0/Microsoft.Extensions.Options.xml", - "microsoft.extensions.options.3.1.5.nupkg.sha512", - "microsoft.extensions.options.nuspec" - ] - }, - "Microsoft.Extensions.Options.ConfigurationExtensions/3.1.5": { - "sha512": "mgM+JHFeRg3zSRjScVADU/mohY8s0czKRTNT9oszWgX1mlw419yqP6ITCXovPopMXiqzRdkZ7AEuErX9K+ROww==", - "type": "package", - "path": "microsoft.extensions.options.configurationextensions/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Options.ConfigurationExtensions.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Options.ConfigurationExtensions.xml", - "lib/netstandard2.0/Microsoft.Extensions.Options.ConfigurationExtensions.dll", - "lib/netstandard2.0/Microsoft.Extensions.Options.ConfigurationExtensions.xml", - "microsoft.extensions.options.configurationextensions.3.1.5.nupkg.sha512", - "microsoft.extensions.options.configurationextensions.nuspec" - ] - }, - "Microsoft.Extensions.Primitives/3.1.5": { - "sha512": "6bLdjSAQix82oP2tsuX9MM2yjgUFFOkSZYyRSKoUULilw2cg0Y0H+dnugwYlfj8Jd7yjd/+QSdNBqEyYhTYv0w==", - "type": "package", - "path": "microsoft.extensions.primitives/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Primitives.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Primitives.xml", - "lib/netstandard2.0/Microsoft.Extensions.Primitives.dll", - "lib/netstandard2.0/Microsoft.Extensions.Primitives.xml", - "microsoft.extensions.primitives.3.1.5.nupkg.sha512", - "microsoft.extensions.primitives.nuspec" - ] - }, - "Microsoft.NETCore.Platforms/1.1.0": { - "sha512": "kz0PEW2lhqygehI/d6XsPCQzD7ff7gUJaVGPVETX611eadGsA3A877GdSlU0LRVMCTH/+P3o2iDTak+S08V2+A==", - "type": "package", - "path": "microsoft.netcore.platforms/1.1.0", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "ThirdPartyNotices.txt", - "dotnet_library_license.txt", - "lib/netstandard1.0/_._", - "microsoft.netcore.platforms.1.1.0.nupkg.sha512", - "microsoft.netcore.platforms.nuspec", - "runtime.json" - ] - }, - "NETStandard.Library/2.0.3": { - "sha512": "st47PosZSHrjECdjeIzZQbzivYBJFv6P2nv4cj2ypdI204DO+vZ7l5raGMiX4eXMJ53RfOIg+/s4DHVZ54Nu2A==", - "type": "package", - "path": "netstandard.library/2.0.3", - "files": [ - ".nupkg.metadata", - "LICENSE.TXT", - "THIRD-PARTY-NOTICES.TXT", - "build/netstandard2.0/NETStandard.Library.targets", - "build/netstandard2.0/ref/Microsoft.Win32.Primitives.dll", - "build/netstandard2.0/ref/System.AppContext.dll", - "build/netstandard2.0/ref/System.Collections.Concurrent.dll", - "build/netstandard2.0/ref/System.Collections.NonGeneric.dll", - "build/netstandard2.0/ref/System.Collections.Specialized.dll", - "build/netstandard2.0/ref/System.Collections.dll", - "build/netstandard2.0/ref/System.ComponentModel.Composition.dll", - "build/netstandard2.0/ref/System.ComponentModel.EventBasedAsync.dll", - "build/netstandard2.0/ref/System.ComponentModel.Primitives.dll", - "build/netstandard2.0/ref/System.ComponentModel.TypeConverter.dll", - "build/netstandard2.0/ref/System.ComponentModel.dll", - "build/netstandard2.0/ref/System.Console.dll", - "build/netstandard2.0/ref/System.Core.dll", - "build/netstandard2.0/ref/System.Data.Common.dll", - "build/netstandard2.0/ref/System.Data.dll", - "build/netstandard2.0/ref/System.Diagnostics.Contracts.dll", - "build/netstandard2.0/ref/System.Diagnostics.Debug.dll", - "build/netstandard2.0/ref/System.Diagnostics.FileVersionInfo.dll", - "build/netstandard2.0/ref/System.Diagnostics.Process.dll", - "build/netstandard2.0/ref/System.Diagnostics.StackTrace.dll", - "build/netstandard2.0/ref/System.Diagnostics.TextWriterTraceListener.dll", - "build/netstandard2.0/ref/System.Diagnostics.Tools.dll", - "build/netstandard2.0/ref/System.Diagnostics.TraceSource.dll", - "build/netstandard2.0/ref/System.Diagnostics.Tracing.dll", - "build/netstandard2.0/ref/System.Drawing.Primitives.dll", - "build/netstandard2.0/ref/System.Drawing.dll", - "build/netstandard2.0/ref/System.Dynamic.Runtime.dll", - "build/netstandard2.0/ref/System.Globalization.Calendars.dll", - "build/netstandard2.0/ref/System.Globalization.Extensions.dll", - "build/netstandard2.0/ref/System.Globalization.dll", - "build/netstandard2.0/ref/System.IO.Compression.FileSystem.dll", - "build/netstandard2.0/ref/System.IO.Compression.ZipFile.dll", - "build/netstandard2.0/ref/System.IO.Compression.dll", - "build/netstandard2.0/ref/System.IO.FileSystem.DriveInfo.dll", - "build/netstandard2.0/ref/System.IO.FileSystem.Primitives.dll", - "build/netstandard2.0/ref/System.IO.FileSystem.Watcher.dll", - "build/netstandard2.0/ref/System.IO.FileSystem.dll", - "build/netstandard2.0/ref/System.IO.IsolatedStorage.dll", - "build/netstandard2.0/ref/System.IO.MemoryMappedFiles.dll", - "build/netstandard2.0/ref/System.IO.Pipes.dll", - "build/netstandard2.0/ref/System.IO.UnmanagedMemoryStream.dll", - "build/netstandard2.0/ref/System.IO.dll", - "build/netstandard2.0/ref/System.Linq.Expressions.dll", - "build/netstandard2.0/ref/System.Linq.Parallel.dll", - "build/netstandard2.0/ref/System.Linq.Queryable.dll", - "build/netstandard2.0/ref/System.Linq.dll", - "build/netstandard2.0/ref/System.Net.Http.dll", - "build/netstandard2.0/ref/System.Net.NameResolution.dll", - "build/netstandard2.0/ref/System.Net.NetworkInformation.dll", - "build/netstandard2.0/ref/System.Net.Ping.dll", - "build/netstandard2.0/ref/System.Net.Primitives.dll", - "build/netstandard2.0/ref/System.Net.Requests.dll", - "build/netstandard2.0/ref/System.Net.Security.dll", - "build/netstandard2.0/ref/System.Net.Sockets.dll", - "build/netstandard2.0/ref/System.Net.WebHeaderCollection.dll", - "build/netstandard2.0/ref/System.Net.WebSockets.Client.dll", - "build/netstandard2.0/ref/System.Net.WebSockets.dll", - "build/netstandard2.0/ref/System.Net.dll", - "build/netstandard2.0/ref/System.Numerics.dll", - "build/netstandard2.0/ref/System.ObjectModel.dll", - "build/netstandard2.0/ref/System.Reflection.Extensions.dll", - "build/netstandard2.0/ref/System.Reflection.Primitives.dll", - "build/netstandard2.0/ref/System.Reflection.dll", - "build/netstandard2.0/ref/System.Resources.Reader.dll", - "build/netstandard2.0/ref/System.Resources.ResourceManager.dll", - "build/netstandard2.0/ref/System.Resources.Writer.dll", - "build/netstandard2.0/ref/System.Runtime.CompilerServices.VisualC.dll", - "build/netstandard2.0/ref/System.Runtime.Extensions.dll", - "build/netstandard2.0/ref/System.Runtime.Handles.dll", - "build/netstandard2.0/ref/System.Runtime.InteropServices.RuntimeInformation.dll", - "build/netstandard2.0/ref/System.Runtime.InteropServices.dll", - "build/netstandard2.0/ref/System.Runtime.Numerics.dll", - "build/netstandard2.0/ref/System.Runtime.Serialization.Formatters.dll", - "build/netstandard2.0/ref/System.Runtime.Serialization.Json.dll", - "build/netstandard2.0/ref/System.Runtime.Serialization.Primitives.dll", - "build/netstandard2.0/ref/System.Runtime.Serialization.Xml.dll", - "build/netstandard2.0/ref/System.Runtime.Serialization.dll", - "build/netstandard2.0/ref/System.Runtime.dll", - "build/netstandard2.0/ref/System.Security.Claims.dll", - "build/netstandard2.0/ref/System.Security.Cryptography.Algorithms.dll", - "build/netstandard2.0/ref/System.Security.Cryptography.Csp.dll", - "build/netstandard2.0/ref/System.Security.Cryptography.Encoding.dll", - "build/netstandard2.0/ref/System.Security.Cryptography.Primitives.dll", - "build/netstandard2.0/ref/System.Security.Cryptography.X509Certificates.dll", - "build/netstandard2.0/ref/System.Security.Principal.dll", - "build/netstandard2.0/ref/System.Security.SecureString.dll", - "build/netstandard2.0/ref/System.ServiceModel.Web.dll", - "build/netstandard2.0/ref/System.Text.Encoding.Extensions.dll", - "build/netstandard2.0/ref/System.Text.Encoding.dll", - "build/netstandard2.0/ref/System.Text.RegularExpressions.dll", - "build/netstandard2.0/ref/System.Threading.Overlapped.dll", - "build/netstandard2.0/ref/System.Threading.Tasks.Parallel.dll", - "build/netstandard2.0/ref/System.Threading.Tasks.dll", - "build/netstandard2.0/ref/System.Threading.Thread.dll", - "build/netstandard2.0/ref/System.Threading.ThreadPool.dll", - "build/netstandard2.0/ref/System.Threading.Timer.dll", - "build/netstandard2.0/ref/System.Threading.dll", - "build/netstandard2.0/ref/System.Transactions.dll", - "build/netstandard2.0/ref/System.ValueTuple.dll", - "build/netstandard2.0/ref/System.Web.dll", - "build/netstandard2.0/ref/System.Windows.dll", - "build/netstandard2.0/ref/System.Xml.Linq.dll", - "build/netstandard2.0/ref/System.Xml.ReaderWriter.dll", - "build/netstandard2.0/ref/System.Xml.Serialization.dll", - "build/netstandard2.0/ref/System.Xml.XDocument.dll", - "build/netstandard2.0/ref/System.Xml.XPath.XDocument.dll", - "build/netstandard2.0/ref/System.Xml.XPath.dll", - "build/netstandard2.0/ref/System.Xml.XmlDocument.dll", - "build/netstandard2.0/ref/System.Xml.XmlSerializer.dll", - "build/netstandard2.0/ref/System.Xml.dll", - "build/netstandard2.0/ref/System.dll", - "build/netstandard2.0/ref/mscorlib.dll", - "build/netstandard2.0/ref/netstandard.dll", - "build/netstandard2.0/ref/netstandard.xml", - "lib/netstandard1.0/_._", - "netstandard.library.2.0.3.nupkg.sha512", - "netstandard.library.nuspec" - ] - }, - "Newtonsoft.Json/13.0.1": { - "sha512": "ppPFpBcvxdsfUonNcvITKqLl3bqxWbDCZIzDWHzjpdAHRFfZe0Dw9HmA0+za13IdyrgJwpkDTDA9fHaxOrt20A==", - "type": "package", - "path": "newtonsoft.json/13.0.1", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "LICENSE.md", - "lib/net20/Newtonsoft.Json.dll", - "lib/net20/Newtonsoft.Json.xml", - "lib/net35/Newtonsoft.Json.dll", - "lib/net35/Newtonsoft.Json.xml", - "lib/net40/Newtonsoft.Json.dll", - "lib/net40/Newtonsoft.Json.xml", - "lib/net45/Newtonsoft.Json.dll", - "lib/net45/Newtonsoft.Json.xml", - "lib/netstandard1.0/Newtonsoft.Json.dll", - "lib/netstandard1.0/Newtonsoft.Json.xml", - "lib/netstandard1.3/Newtonsoft.Json.dll", - "lib/netstandard1.3/Newtonsoft.Json.xml", - "lib/netstandard2.0/Newtonsoft.Json.dll", - "lib/netstandard2.0/Newtonsoft.Json.xml", - "newtonsoft.json.13.0.1.nupkg.sha512", - "newtonsoft.json.nuspec", - "packageIcon.png" - ] - }, - "Polly/7.1.0": { - "sha512": "mpQsvlEn4ipgICh5CGyVLPV93RFVzOrBG7wPZfzY8gExh7XgWQn0GCDY9nudbUEJ12UiGPP9i4+CohghBvzhmg==", - "type": "package", - "path": "polly/7.1.0", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "lib/netstandard1.1/Polly.dll", - "lib/netstandard1.1/Polly.xml", - "lib/netstandard2.0/Polly.dll", - "lib/netstandard2.0/Polly.xml", - "polly.7.1.0.nupkg.sha512", - "polly.nuspec" - ] - }, - "Polly.Extensions.Http/3.0.0": { - "sha512": "drrG+hB3pYFY7w1c3BD+lSGYvH2oIclH8GRSehgfyP5kjnFnHKQuuBhuHLv+PWyFuaTDyk/vfRpnxOzd11+J8g==", - "type": "package", - "path": "polly.extensions.http/3.0.0", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "lib/netstandard1.1/Polly.Extensions.Http.dll", - "lib/netstandard1.1/Polly.Extensions.Http.xml", - "lib/netstandard2.0/Polly.Extensions.Http.dll", - "lib/netstandard2.0/Polly.Extensions.Http.xml", - "polly.extensions.http.3.0.0.nupkg.sha512", - "polly.extensions.http.nuspec" - ] - }, - "System.Buffers/4.4.0": { - "sha512": "AwarXzzoDwX6BgrhjoJsk6tUezZEozOT5Y9QKF94Gl4JK91I4PIIBkBco9068Y9/Dra8Dkbie99kXB8+1BaYKw==", - "type": "package", - "path": "system.buffers/4.4.0", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "LICENSE.TXT", - "THIRD-PARTY-NOTICES.TXT", - "lib/netcoreapp2.0/_._", - "lib/netstandard1.1/System.Buffers.dll", - "lib/netstandard1.1/System.Buffers.xml", - "lib/netstandard2.0/System.Buffers.dll", - "lib/netstandard2.0/System.Buffers.xml", - "ref/netcoreapp2.0/_._", - "ref/netstandard1.1/System.Buffers.dll", - "ref/netstandard1.1/System.Buffers.xml", - "ref/netstandard2.0/System.Buffers.dll", - "ref/netstandard2.0/System.Buffers.xml", - "system.buffers.4.4.0.nupkg.sha512", - "system.buffers.nuspec", - "useSharedDesignerContext.txt", - "version.txt" - ] - }, - "System.ComponentModel.Annotations/4.7.0": { - "sha512": "0YFqjhp/mYkDGpU0Ye1GjE53HMp9UVfGN7seGpAMttAC0C40v5gw598jCgpbBLMmCo0E5YRLBv5Z2doypO49ZQ==", - "type": "package", - "path": "system.componentmodel.annotations/4.7.0", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "LICENSE.TXT", - "THIRD-PARTY-NOTICES.TXT", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net45/_._", - "lib/net461/System.ComponentModel.Annotations.dll", - "lib/netcore50/System.ComponentModel.Annotations.dll", - "lib/netstandard1.4/System.ComponentModel.Annotations.dll", - "lib/netstandard2.0/System.ComponentModel.Annotations.dll", - "lib/netstandard2.1/System.ComponentModel.Annotations.dll", - "lib/netstandard2.1/System.ComponentModel.Annotations.xml", - "lib/portable-net45+win8/_._", - "lib/win8/_._", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net45/_._", - "ref/net461/System.ComponentModel.Annotations.dll", - "ref/net461/System.ComponentModel.Annotations.xml", - "ref/netcore50/System.ComponentModel.Annotations.dll", - "ref/netcore50/System.ComponentModel.Annotations.xml", - "ref/netcore50/de/System.ComponentModel.Annotations.xml", - "ref/netcore50/es/System.ComponentModel.Annotations.xml", - "ref/netcore50/fr/System.ComponentModel.Annotations.xml", - "ref/netcore50/it/System.ComponentModel.Annotations.xml", - "ref/netcore50/ja/System.ComponentModel.Annotations.xml", - "ref/netcore50/ko/System.ComponentModel.Annotations.xml", - "ref/netcore50/ru/System.ComponentModel.Annotations.xml", - "ref/netcore50/zh-hans/System.ComponentModel.Annotations.xml", - "ref/netcore50/zh-hant/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/System.ComponentModel.Annotations.dll", - "ref/netstandard1.1/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/de/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/es/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/fr/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/it/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/ja/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/ko/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/ru/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/zh-hans/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/zh-hant/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/System.ComponentModel.Annotations.dll", - "ref/netstandard1.3/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/de/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/es/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/fr/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/it/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/ja/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/ko/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/ru/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/zh-hans/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/zh-hant/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/System.ComponentModel.Annotations.dll", - "ref/netstandard1.4/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/de/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/es/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/fr/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/it/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/ja/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/ko/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/ru/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/zh-hans/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/zh-hant/System.ComponentModel.Annotations.xml", - "ref/netstandard2.0/System.ComponentModel.Annotations.dll", - "ref/netstandard2.0/System.ComponentModel.Annotations.xml", - "ref/netstandard2.1/System.ComponentModel.Annotations.dll", - "ref/netstandard2.1/System.ComponentModel.Annotations.xml", - "ref/portable-net45+win8/_._", - "ref/win8/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._", - "system.componentmodel.annotations.4.7.0.nupkg.sha512", - "system.componentmodel.annotations.nuspec", - "useSharedDesignerContext.txt", - "version.txt" - ] - }, - "System.Memory/4.5.2": { - "sha512": "fvq1GNmUFwbKv+aLVYYdgu/+gc8Nu9oFujOxIjPrsf+meis9JBzTPDL6aP/eeGOz9yPj6rRLUbOjKMpsMEWpNg==", - "type": "package", - "path": "system.memory/4.5.2", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "LICENSE.TXT", - "THIRD-PARTY-NOTICES.TXT", - "lib/netcoreapp2.1/_._", - "lib/netstandard1.1/System.Memory.dll", - "lib/netstandard1.1/System.Memory.xml", - "lib/netstandard2.0/System.Memory.dll", - "lib/netstandard2.0/System.Memory.xml", - "ref/netcoreapp2.1/_._", - "system.memory.4.5.2.nupkg.sha512", - "system.memory.nuspec", - "useSharedDesignerContext.txt", - "version.txt" - ] - }, - "System.Numerics.Vectors/4.4.0": { - "sha512": "UiLzLW+Lw6HLed1Hcg+8jSRttrbuXv7DANVj0DkL9g6EnnzbL75EB7EWsw5uRbhxd/4YdG8li5XizGWepmG3PQ==", - "type": "package", - "path": "system.numerics.vectors/4.4.0", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "LICENSE.TXT", - "THIRD-PARTY-NOTICES.TXT", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net46/System.Numerics.Vectors.dll", - "lib/net46/System.Numerics.Vectors.xml", - "lib/netcoreapp2.0/_._", - "lib/netstandard1.0/System.Numerics.Vectors.dll", - "lib/netstandard1.0/System.Numerics.Vectors.xml", - "lib/netstandard2.0/System.Numerics.Vectors.dll", - "lib/netstandard2.0/System.Numerics.Vectors.xml", - "lib/portable-net45+win8+wp8+wpa81/System.Numerics.Vectors.dll", - "lib/portable-net45+win8+wp8+wpa81/System.Numerics.Vectors.xml", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net46/System.Numerics.Vectors.dll", - "ref/net46/System.Numerics.Vectors.xml", - "ref/netcoreapp2.0/_._", - "ref/netstandard1.0/System.Numerics.Vectors.dll", - "ref/netstandard1.0/System.Numerics.Vectors.xml", - "ref/netstandard2.0/System.Numerics.Vectors.dll", - "ref/netstandard2.0/System.Numerics.Vectors.xml", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._", - "system.numerics.vectors.4.4.0.nupkg.sha512", - "system.numerics.vectors.nuspec", - "useSharedDesignerContext.txt", - "version.txt" - ] - }, - "System.Runtime.CompilerServices.Unsafe/4.7.1": { - "sha512": "zOHkQmzPCn5zm/BH+cxC1XbUS3P4Yoi3xzW7eRgVpDR2tPGSzyMZ17Ig1iRkfJuY0nhxkQQde8pgePNiA7z7TQ==", - "type": "package", - "path": "system.runtime.compilerservices.unsafe/4.7.1", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "LICENSE.TXT", - "THIRD-PARTY-NOTICES.TXT", - "lib/net461/System.Runtime.CompilerServices.Unsafe.dll", - "lib/net461/System.Runtime.CompilerServices.Unsafe.xml", - "lib/netcoreapp2.0/System.Runtime.CompilerServices.Unsafe.dll", - "lib/netcoreapp2.0/System.Runtime.CompilerServices.Unsafe.xml", - "lib/netstandard1.0/System.Runtime.CompilerServices.Unsafe.dll", - "lib/netstandard1.0/System.Runtime.CompilerServices.Unsafe.xml", - "lib/netstandard2.0/System.Runtime.CompilerServices.Unsafe.dll", - "lib/netstandard2.0/System.Runtime.CompilerServices.Unsafe.xml", - "ref/net461/System.Runtime.CompilerServices.Unsafe.dll", - "ref/net461/System.Runtime.CompilerServices.Unsafe.xml", - "ref/netstandard1.0/System.Runtime.CompilerServices.Unsafe.dll", - "ref/netstandard1.0/System.Runtime.CompilerServices.Unsafe.xml", - "ref/netstandard2.0/System.Runtime.CompilerServices.Unsafe.dll", - "ref/netstandard2.0/System.Runtime.CompilerServices.Unsafe.xml", - "system.runtime.compilerservices.unsafe.4.7.1.nupkg.sha512", - "system.runtime.compilerservices.unsafe.nuspec", - "useSharedDesignerContext.txt", - "version.txt" - ] - }, - "System.Threading.Tasks.Extensions/4.5.4": { - "sha512": "zteT+G8xuGu6mS+mzDzYXbzS7rd3K6Fjb9RiZlYlJPam2/hU7JCBZBVEcywNuR+oZ1ncTvc/cq0faRr3P01OVg==", - "type": "package", - "path": "system.threading.tasks.extensions/4.5.4", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "LICENSE.TXT", - "THIRD-PARTY-NOTICES.TXT", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net461/System.Threading.Tasks.Extensions.dll", - "lib/net461/System.Threading.Tasks.Extensions.xml", - "lib/netcoreapp2.1/_._", - "lib/netstandard1.0/System.Threading.Tasks.Extensions.dll", - "lib/netstandard1.0/System.Threading.Tasks.Extensions.xml", - "lib/netstandard2.0/System.Threading.Tasks.Extensions.dll", - "lib/netstandard2.0/System.Threading.Tasks.Extensions.xml", - "lib/portable-net45+win8+wp8+wpa81/System.Threading.Tasks.Extensions.dll", - "lib/portable-net45+win8+wp8+wpa81/System.Threading.Tasks.Extensions.xml", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/netcoreapp2.1/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._", - "system.threading.tasks.extensions.4.5.4.nupkg.sha512", - "system.threading.tasks.extensions.nuspec", - "useSharedDesignerContext.txt", - "version.txt" - ] - } - }, - "projectFileDependencyGroups": { - ".NETStandard,Version=v2.0": [ - "HuaweiCloud.SDK.Core >= 3.1.11", - "NETStandard.Library >= 2.0.3", - "Newtonsoft.Json >= 13.0.1" - ] - }, - "packageFolders": { - "/root/.nuget/packages/": {}, - "/usr/dotnet2/sdk/NuGetFallbackFolder": {} - }, - "project": { - "version": "0.0.2-beta", - "restore": { - "projectUniqueName": "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Evs/Evs.csproj", - "projectName": "G42Cloud.SDK.Evs", - "projectPath": "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Evs/Evs.csproj", - "packagesPath": "/root/.nuget/packages/", - "outputPath": "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Evs/obj/", - "projectStyle": "PackageReference", - "fallbackFolders": [ - "/usr/dotnet2/sdk/NuGetFallbackFolder" - ], - "configFilePaths": [ - "/root/.nuget/NuGet/NuGet.Config" - ], - "originalTargetFrameworks": [ - "netstandard2.0" - ], - "sources": { - "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86": {} - }, - "frameworks": { - "netstandard2.0": { - "projectReferences": {} - } - }, - "warningProperties": { - "warnAsError": [ - "NU1605" - ] - } - }, - "frameworks": { - "netstandard2.0": { - "dependencies": { - "HuaweiCloud.SDK.Core": { - "target": "Package", - "version": "[3.1.11, )" - }, - "NETStandard.Library": { - "suppressParent": "All", - "target": "Package", - "version": "[2.0.3, )", - "autoReferenced": true - }, - "Newtonsoft.Json": { - "target": "Package", - "version": "[13.0.1, )" - } - }, - "imports": [ - "net461" - ], - "assetTargetFallback": true, - "warn": true - } - } - } -} \ No newline at end of file diff --git a/Services/Ims/Ims.csproj b/Services/Ims/Ims.csproj new file mode 100755 index 0000000..dbf3b3e --- /dev/null +++ b/Services/Ims/Ims.csproj @@ -0,0 +1,34 @@ + + + + + G42Cloud.SDK.Ims + G42Cloud.SDK.Ims + netstandard2.0 + false + false + false + false + false + false + false + false + false + G42Cloud.SDK.Ims + 0.0.3-beta + G42Cloud + Copyright 2020 G42 Technologies Co., Ltd. + G42 Technologies Co., Ltd. + G42Cloud .net SDK + LICENSE + + + + + + + + + + + diff --git a/Services/Ims/Ims.sln b/Services/Ims/Ims.sln new file mode 100755 index 0000000..7a0838a --- /dev/null +++ b/Services/Ims/Ims.sln @@ -0,0 +1,18 @@ +Microsoft Visual Studio Solution File, Format Version 12.00 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ims", "Ims.csproj", "{5B7BFA6B-B85E-4222-8988-16CCF9558393}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {5B7BFA6B-B85E-4222-8988-16CCF9558393}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {5B7BFA6B-B85E-4222-8988-16CCF9558393}.Debug|Any CPU.Build.0 = Debug|Any CPU + {5B7BFA6B-B85E-4222-8988-16CCF9558393}.Release|Any CPU.ActiveCfg = Release|Any CPU + {5B7BFA6B-B85E-4222-8988-16CCF9558393}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal \ No newline at end of file diff --git a/Services/Ims/V2/ImsAsyncClient.cs b/Services/Ims/V2/ImsAsyncClient.cs new file mode 100755 index 0000000..a3a0e01 --- /dev/null +++ b/Services/Ims/V2/ImsAsyncClient.cs @@ -0,0 +1,435 @@ +using System.Net.Http; +using System.Collections.Generic; +using System.Threading.Tasks; +using G42Cloud.SDK.Core; +using G42Cloud.SDK.Ims.V2.Model; + +namespace G42Cloud.SDK.Ims.V2 +{ + public partial class ImsAsyncClient : Client + { + public static ClientBuilder NewBuilder() + { + return new ClientBuilder(); + } + + + public async Task AddImageTagAsync(AddImageTagRequest addImageTagRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("image_id" , addImageTagRequest.ImageId.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/images/{image_id}/tags",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", addImageTagRequest); + HttpResponseMessage response = await DoHttpRequestAsync("POST",request); + return JsonUtils.DeSerializeNull(response); + } + + public async Task BatchAddMembersAsync(BatchAddMembersRequest batchAddMembersRequest) + { + Dictionary urlParam = new Dictionary(); + string urlPath = HttpUtils.AddUrlPath("/v1/cloudimages/members",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", batchAddMembersRequest); + HttpResponseMessage response = await DoHttpRequestAsync("POST",request); + return JsonUtils.DeSerialize(response); + } + + public async Task BatchAddOrDeleteTagsAsync(BatchAddOrDeleteTagsRequest batchAddOrDeleteTagsRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("image_id" , batchAddOrDeleteTagsRequest.ImageId.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/images/{image_id}/tags/action",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", batchAddOrDeleteTagsRequest); + HttpResponseMessage response = await DoHttpRequestAsync("POST",request); + return JsonUtils.DeSerializeNull(response); + } + + public async Task BatchDeleteMembersAsync(BatchDeleteMembersRequest batchDeleteMembersRequest) + { + Dictionary urlParam = new Dictionary(); + string urlPath = HttpUtils.AddUrlPath("/v1/cloudimages/members",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", batchDeleteMembersRequest); + HttpResponseMessage response = await DoHttpRequestAsync("DELETE",request); + return JsonUtils.DeSerialize(response); + } + + public async Task BatchUpdateMembersAsync(BatchUpdateMembersRequest batchUpdateMembersRequest) + { + Dictionary urlParam = new Dictionary(); + string urlPath = HttpUtils.AddUrlPath("/v1/cloudimages/members",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", batchUpdateMembersRequest); + HttpResponseMessage response = await DoHttpRequestAsync("PUT",request); + return JsonUtils.DeSerialize(response); + } + + public async Task CopyImageCrossRegionAsync(CopyImageCrossRegionRequest copyImageCrossRegionRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("image_id" , copyImageCrossRegionRequest.ImageId.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v1/cloudimages/{image_id}/cross_region_copy",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", copyImageCrossRegionRequest); + HttpResponseMessage response = await DoHttpRequestAsync("POST",request); + return JsonUtils.DeSerialize(response); + } + + public async Task CopyImageInRegionAsync(CopyImageInRegionRequest copyImageInRegionRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("image_id" , copyImageInRegionRequest.ImageId.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v1/cloudimages/{image_id}/copy",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", copyImageInRegionRequest); + HttpResponseMessage response = await DoHttpRequestAsync("POST",request); + return JsonUtils.DeSerialize(response); + } + + public async Task CreateDataImageAsync(CreateDataImageRequest createDataImageRequest) + { + Dictionary urlParam = new Dictionary(); + string urlPath = HttpUtils.AddUrlPath("/v1/cloudimages/dataimages/action",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", createDataImageRequest); + HttpResponseMessage response = await DoHttpRequestAsync("POST",request); + return JsonUtils.DeSerialize(response); + } + + public async Task CreateImageAsync(CreateImageRequest createImageRequest) + { + Dictionary urlParam = new Dictionary(); + string urlPath = HttpUtils.AddUrlPath("/v2/cloudimages/action",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", createImageRequest); + HttpResponseMessage response = await DoHttpRequestAsync("POST",request); + return JsonUtils.DeSerialize(response); + } + + public async Task CreateOrUpdateTagsAsync(CreateOrUpdateTagsRequest createOrUpdateTagsRequest) + { + Dictionary urlParam = new Dictionary(); + string urlPath = HttpUtils.AddUrlPath("/v1/cloudimages/tags",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", createOrUpdateTagsRequest); + HttpResponseMessage response = await DoHttpRequestAsync("PUT",request); + return JsonUtils.DeSerializeNull(response); + } + + public async Task CreateWholeImageAsync(CreateWholeImageRequest createWholeImageRequest) + { + Dictionary urlParam = new Dictionary(); + string urlPath = HttpUtils.AddUrlPath("/v1/cloudimages/wholeimages/action",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", createWholeImageRequest); + HttpResponseMessage response = await DoHttpRequestAsync("POST",request); + return JsonUtils.DeSerialize(response); + } + + public async Task DeleteImageTagAsync(DeleteImageTagRequest deleteImageTagRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("image_id" , deleteImageTagRequest.ImageId.ToString()); + urlParam.Add("key" , deleteImageTagRequest.Key.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/images/{image_id}/tags/{key}",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", deleteImageTagRequest); + HttpResponseMessage response = await DoHttpRequestAsync("DELETE",request); + return JsonUtils.DeSerializeNull(response); + } + + public async Task ExportImageAsync(ExportImageRequest exportImageRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("image_id" , exportImageRequest.ImageId.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v1/cloudimages/{image_id}/file",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", exportImageRequest); + HttpResponseMessage response = await DoHttpRequestAsync("POST",request); + return JsonUtils.DeSerialize(response); + } + + public async Task ImportImageQuickAsync(ImportImageQuickRequest importImageQuickRequest) + { + Dictionary urlParam = new Dictionary(); + string urlPath = HttpUtils.AddUrlPath("/v2/cloudimages/quickimport/action",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", importImageQuickRequest); + HttpResponseMessage response = await DoHttpRequestAsync("POST",request); + return JsonUtils.DeSerialize(response); + } + + public async Task ListImageByTagsAsync(ListImageByTagsRequest listImageByTagsRequest) + { + Dictionary urlParam = new Dictionary(); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/images/resource_instances/action",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", listImageByTagsRequest); + HttpResponseMessage response = await DoHttpRequestAsync("POST",request); + return JsonUtils.DeSerialize(response); + } + + public async Task ListImageTagsAsync(ListImageTagsRequest listImageTagsRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("image_id" , listImageTagsRequest.ImageId.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/images/{image_id}/tags",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", listImageTagsRequest); + HttpResponseMessage response = await DoHttpRequestAsync("GET",request); + return JsonUtils.DeSerialize(response); + } + + public async Task ListImagesAsync(ListImagesRequest listImagesRequest) + { + Dictionary urlParam = new Dictionary(); + string urlPath = HttpUtils.AddUrlPath("/v2/cloudimages",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", listImagesRequest); + HttpResponseMessage response = await DoHttpRequestAsync("GET",request); + return JsonUtils.DeSerialize(response); + } + + public async Task ListImagesTagsAsync(ListImagesTagsRequest listImagesTagsRequest) + { + Dictionary urlParam = new Dictionary(); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/images/tags",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", listImagesTagsRequest); + HttpResponseMessage response = await DoHttpRequestAsync("GET",request); + return JsonUtils.DeSerialize(response); + } + + public async Task ListOsVersionsAsync(ListOsVersionsRequest listOsVersionsRequest) + { + Dictionary urlParam = new Dictionary(); + string urlPath = HttpUtils.AddUrlPath("/v1/cloudimages/os_version",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", listOsVersionsRequest); + HttpResponseMessage response = await DoHttpRequestAsync("GET",request); + ListOsVersionsResponse listOsVersionsResponse = JsonUtils.DeSerializeNull(response); + listOsVersionsResponse.Body = JsonUtils.DeSerializeList(response); + return listOsVersionsResponse; + } + + public async Task ListTagsAsync(ListTagsRequest listTagsRequest) + { + Dictionary urlParam = new Dictionary(); + string urlPath = HttpUtils.AddUrlPath("/v1/cloudimages/tags",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", listTagsRequest); + HttpResponseMessage response = await DoHttpRequestAsync("GET",request); + return JsonUtils.DeSerialize(response); + } + + public async Task RegisterImageAsync(RegisterImageRequest registerImageRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("image_id" , registerImageRequest.ImageId.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v1/cloudimages/{image_id}/upload",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", registerImageRequest); + HttpResponseMessage response = await DoHttpRequestAsync("PUT",request); + return JsonUtils.DeSerialize(response); + } + + public async Task ShowImageQuotaAsync(ShowImageQuotaRequest showImageQuotaRequest) + { + Dictionary urlParam = new Dictionary(); + string urlPath = HttpUtils.AddUrlPath("/v1/cloudimages/quota",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", showImageQuotaRequest); + HttpResponseMessage response = await DoHttpRequestAsync("GET",request); + return JsonUtils.DeSerialize(response); + } + + public async Task ShowJobAsync(ShowJobRequest showJobRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("job_id" , showJobRequest.JobId.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v1/{project_id}/jobs/{job_id}",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", showJobRequest); + HttpResponseMessage response = await DoHttpRequestAsync("GET",request); + return JsonUtils.DeSerialize(response); + } + + public async Task ShowJobProgressAsync(ShowJobProgressRequest showJobProgressRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("job_id" , showJobProgressRequest.JobId.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v1/cloudimages/job/{job_id}",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", showJobProgressRequest); + HttpResponseMessage response = await DoHttpRequestAsync("GET",request); + return JsonUtils.DeSerialize(response); + } + + public async Task UpdateImageAsync(UpdateImageRequest updateImageRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("image_id" , updateImageRequest.ImageId.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/cloudimages/{image_id}",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", updateImageRequest); + HttpResponseMessage response = await DoHttpRequestAsync("PATCH",request); + return JsonUtils.DeSerialize(response); + } + + public async Task ListVersionsAsync(ListVersionsRequest listVersionsRequest) + { + Dictionary urlParam = new Dictionary(); + string urlPath = HttpUtils.AddUrlPath("/",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", listVersionsRequest); + HttpResponseMessage response = await DoHttpRequestAsync("GET",request); + return JsonUtils.DeSerialize(response); + } + + public async Task ShowVersionAsync(ShowVersionRequest showVersionRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("version" , showVersionRequest.Version.ToString()); + string urlPath = HttpUtils.AddUrlPath("/{version}",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", showVersionRequest); + HttpResponseMessage response = await DoHttpRequestAsync("GET",request); + return JsonUtils.DeSerialize(response); + } + + public async Task GlanceAddImageMemberAsync(GlanceAddImageMemberRequest glanceAddImageMemberRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("image_id" , glanceAddImageMemberRequest.ImageId.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/images/{image_id}/members",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", glanceAddImageMemberRequest); + HttpResponseMessage response = await DoHttpRequestAsync("POST",request); + return JsonUtils.DeSerialize(response); + } + + public async Task GlanceCreateImageMetadataAsync(GlanceCreateImageMetadataRequest glanceCreateImageMetadataRequest) + { + Dictionary urlParam = new Dictionary(); + string urlPath = HttpUtils.AddUrlPath("/v2/images",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", glanceCreateImageMetadataRequest); + HttpResponseMessage response = await DoHttpRequestAsync("POST",request); + return JsonUtils.DeSerialize(response); + } + + public async Task GlanceCreateTagAsync(GlanceCreateTagRequest glanceCreateTagRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("image_id" , glanceCreateTagRequest.ImageId.ToString()); + urlParam.Add("tag" , glanceCreateTagRequest.Tag.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/images/{image_id}/tags/{tag}",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", glanceCreateTagRequest); + HttpResponseMessage response = await DoHttpRequestAsync("PUT",request); + return JsonUtils.DeSerializeNull(response); + } + + public async Task GlanceDeleteImageAsync(GlanceDeleteImageRequest glanceDeleteImageRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("image_id" , glanceDeleteImageRequest.ImageId.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/images/{image_id}",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", glanceDeleteImageRequest); + HttpResponseMessage response = await DoHttpRequestAsync("DELETE",request); + return JsonUtils.DeSerializeNull(response); + } + + public async Task GlanceDeleteImageMemberAsync(GlanceDeleteImageMemberRequest glanceDeleteImageMemberRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("image_id" , glanceDeleteImageMemberRequest.ImageId.ToString()); + urlParam.Add("member_id" , glanceDeleteImageMemberRequest.MemberId.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/images/{image_id}/members/{member_id}",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", glanceDeleteImageMemberRequest); + HttpResponseMessage response = await DoHttpRequestAsync("DELETE",request); + return JsonUtils.DeSerializeNull(response); + } + + public async Task GlanceDeleteTagAsync(GlanceDeleteTagRequest glanceDeleteTagRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("image_id" , glanceDeleteTagRequest.ImageId.ToString()); + urlParam.Add("tag" , glanceDeleteTagRequest.Tag.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/images/{image_id}/tags/{tag}",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", glanceDeleteTagRequest); + HttpResponseMessage response = await DoHttpRequestAsync("DELETE",request); + return JsonUtils.DeSerializeNull(response); + } + + public async Task GlanceListImageMemberSchemasAsync(GlanceListImageMemberSchemasRequest glanceListImageMemberSchemasRequest) + { + Dictionary urlParam = new Dictionary(); + string urlPath = HttpUtils.AddUrlPath("/v2/schemas/members",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", glanceListImageMemberSchemasRequest); + HttpResponseMessage response = await DoHttpRequestAsync("GET",request); + return JsonUtils.DeSerialize(response); + } + + public async Task GlanceListImageMembersAsync(GlanceListImageMembersRequest glanceListImageMembersRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("image_id" , glanceListImageMembersRequest.ImageId.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/images/{image_id}/members",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", glanceListImageMembersRequest); + HttpResponseMessage response = await DoHttpRequestAsync("GET",request); + return JsonUtils.DeSerialize(response); + } + + public async Task GlanceListImageSchemasAsync(GlanceListImageSchemasRequest glanceListImageSchemasRequest) + { + Dictionary urlParam = new Dictionary(); + string urlPath = HttpUtils.AddUrlPath("/v2/schemas/images",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", glanceListImageSchemasRequest); + HttpResponseMessage response = await DoHttpRequestAsync("GET",request); + return JsonUtils.DeSerialize(response); + } + + public async Task GlanceListImagesAsync(GlanceListImagesRequest glanceListImagesRequest) + { + Dictionary urlParam = new Dictionary(); + string urlPath = HttpUtils.AddUrlPath("/v2/images",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", glanceListImagesRequest); + HttpResponseMessage response = await DoHttpRequestAsync("GET",request); + return JsonUtils.DeSerialize(response); + } + + public async Task GlanceShowImageAsync(GlanceShowImageRequest glanceShowImageRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("image_id" , glanceShowImageRequest.ImageId.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/images/{image_id}",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", glanceShowImageRequest); + HttpResponseMessage response = await DoHttpRequestAsync("GET",request); + return JsonUtils.DeSerialize(response); + } + + public async Task GlanceShowImageMemberAsync(GlanceShowImageMemberRequest glanceShowImageMemberRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("image_id" , glanceShowImageMemberRequest.ImageId.ToString()); + urlParam.Add("member_id" , glanceShowImageMemberRequest.MemberId.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/images/{image_id}/members/{member_id}",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", glanceShowImageMemberRequest); + HttpResponseMessage response = await DoHttpRequestAsync("GET",request); + return JsonUtils.DeSerialize(response); + } + + public async Task GlanceShowImageMemberSchemasAsync(GlanceShowImageMemberSchemasRequest glanceShowImageMemberSchemasRequest) + { + Dictionary urlParam = new Dictionary(); + string urlPath = HttpUtils.AddUrlPath("/v2/schemas/member",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", glanceShowImageMemberSchemasRequest); + HttpResponseMessage response = await DoHttpRequestAsync("GET",request); + return JsonUtils.DeSerialize(response); + } + + public async Task GlanceShowImageSchemasAsync(GlanceShowImageSchemasRequest glanceShowImageSchemasRequest) + { + Dictionary urlParam = new Dictionary(); + string urlPath = HttpUtils.AddUrlPath("/v2/schemas/image",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", glanceShowImageSchemasRequest); + HttpResponseMessage response = await DoHttpRequestAsync("GET",request); + return JsonUtils.DeSerialize(response); + } + + public async Task GlanceUpdateImageAsync(GlanceUpdateImageRequest glanceUpdateImageRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("image_id" , glanceUpdateImageRequest.ImageId.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/images/{image_id}",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/openstack-images-v2.1-json-patch", glanceUpdateImageRequest); + HttpResponseMessage response = await DoHttpRequestAsync("PATCH",request); + return JsonUtils.DeSerialize(response); + } + + public async Task GlanceUpdateImageMemberAsync(GlanceUpdateImageMemberRequest glanceUpdateImageMemberRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("image_id" , glanceUpdateImageMemberRequest.ImageId.ToString()); + urlParam.Add("member_id" , glanceUpdateImageMemberRequest.MemberId.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/images/{image_id}/members/{member_id}",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", glanceUpdateImageMemberRequest); + HttpResponseMessage response = await DoHttpRequestAsync("PUT",request); + return JsonUtils.DeSerialize(response); + } + + } +} \ No newline at end of file diff --git a/Services/Ims/V2/ImsClient.cs b/Services/Ims/V2/ImsClient.cs new file mode 100755 index 0000000..98e3edd --- /dev/null +++ b/Services/Ims/V2/ImsClient.cs @@ -0,0 +1,434 @@ +using System.Net.Http; +using System.Collections.Generic; +using G42Cloud.SDK.Core; +using G42Cloud.SDK.Ims.V2.Model; + +namespace G42Cloud.SDK.Ims.V2 +{ + public partial class ImsClient : Client + { + public static ClientBuilder NewBuilder() + { + return new ClientBuilder(); + } + + + public AddImageTagResponse AddImageTag(AddImageTagRequest addImageTagRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("image_id" , addImageTagRequest.ImageId.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/images/{image_id}/tags",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", addImageTagRequest); + HttpResponseMessage response = DoHttpRequestSync("POST",request); + return JsonUtils.DeSerializeNull(response); + } + + public BatchAddMembersResponse BatchAddMembers(BatchAddMembersRequest batchAddMembersRequest) + { + Dictionary urlParam = new Dictionary(); + string urlPath = HttpUtils.AddUrlPath("/v1/cloudimages/members",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", batchAddMembersRequest); + HttpResponseMessage response = DoHttpRequestSync("POST",request); + return JsonUtils.DeSerialize(response); + } + + public BatchAddOrDeleteTagsResponse BatchAddOrDeleteTags(BatchAddOrDeleteTagsRequest batchAddOrDeleteTagsRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("image_id" , batchAddOrDeleteTagsRequest.ImageId.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/images/{image_id}/tags/action",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", batchAddOrDeleteTagsRequest); + HttpResponseMessage response = DoHttpRequestSync("POST",request); + return JsonUtils.DeSerializeNull(response); + } + + public BatchDeleteMembersResponse BatchDeleteMembers(BatchDeleteMembersRequest batchDeleteMembersRequest) + { + Dictionary urlParam = new Dictionary(); + string urlPath = HttpUtils.AddUrlPath("/v1/cloudimages/members",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", batchDeleteMembersRequest); + HttpResponseMessage response = DoHttpRequestSync("DELETE",request); + return JsonUtils.DeSerialize(response); + } + + public BatchUpdateMembersResponse BatchUpdateMembers(BatchUpdateMembersRequest batchUpdateMembersRequest) + { + Dictionary urlParam = new Dictionary(); + string urlPath = HttpUtils.AddUrlPath("/v1/cloudimages/members",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", batchUpdateMembersRequest); + HttpResponseMessage response = DoHttpRequestSync("PUT",request); + return JsonUtils.DeSerialize(response); + } + + public CopyImageCrossRegionResponse CopyImageCrossRegion(CopyImageCrossRegionRequest copyImageCrossRegionRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("image_id" , copyImageCrossRegionRequest.ImageId.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v1/cloudimages/{image_id}/cross_region_copy",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", copyImageCrossRegionRequest); + HttpResponseMessage response = DoHttpRequestSync("POST",request); + return JsonUtils.DeSerialize(response); + } + + public CopyImageInRegionResponse CopyImageInRegion(CopyImageInRegionRequest copyImageInRegionRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("image_id" , copyImageInRegionRequest.ImageId.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v1/cloudimages/{image_id}/copy",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", copyImageInRegionRequest); + HttpResponseMessage response = DoHttpRequestSync("POST",request); + return JsonUtils.DeSerialize(response); + } + + public CreateDataImageResponse CreateDataImage(CreateDataImageRequest createDataImageRequest) + { + Dictionary urlParam = new Dictionary(); + string urlPath = HttpUtils.AddUrlPath("/v1/cloudimages/dataimages/action",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", createDataImageRequest); + HttpResponseMessage response = DoHttpRequestSync("POST",request); + return JsonUtils.DeSerialize(response); + } + + public CreateImageResponse CreateImage(CreateImageRequest createImageRequest) + { + Dictionary urlParam = new Dictionary(); + string urlPath = HttpUtils.AddUrlPath("/v2/cloudimages/action",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", createImageRequest); + HttpResponseMessage response = DoHttpRequestSync("POST",request); + return JsonUtils.DeSerialize(response); + } + + public CreateOrUpdateTagsResponse CreateOrUpdateTags(CreateOrUpdateTagsRequest createOrUpdateTagsRequest) + { + Dictionary urlParam = new Dictionary(); + string urlPath = HttpUtils.AddUrlPath("/v1/cloudimages/tags",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", createOrUpdateTagsRequest); + HttpResponseMessage response = DoHttpRequestSync("PUT",request); + return JsonUtils.DeSerializeNull(response); + } + + public CreateWholeImageResponse CreateWholeImage(CreateWholeImageRequest createWholeImageRequest) + { + Dictionary urlParam = new Dictionary(); + string urlPath = HttpUtils.AddUrlPath("/v1/cloudimages/wholeimages/action",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", createWholeImageRequest); + HttpResponseMessage response = DoHttpRequestSync("POST",request); + return JsonUtils.DeSerialize(response); + } + + public DeleteImageTagResponse DeleteImageTag(DeleteImageTagRequest deleteImageTagRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("image_id" , deleteImageTagRequest.ImageId.ToString()); + urlParam.Add("key" , deleteImageTagRequest.Key.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/images/{image_id}/tags/{key}",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", deleteImageTagRequest); + HttpResponseMessage response = DoHttpRequestSync("DELETE",request); + return JsonUtils.DeSerializeNull(response); + } + + public ExportImageResponse ExportImage(ExportImageRequest exportImageRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("image_id" , exportImageRequest.ImageId.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v1/cloudimages/{image_id}/file",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", exportImageRequest); + HttpResponseMessage response = DoHttpRequestSync("POST",request); + return JsonUtils.DeSerialize(response); + } + + public ImportImageQuickResponse ImportImageQuick(ImportImageQuickRequest importImageQuickRequest) + { + Dictionary urlParam = new Dictionary(); + string urlPath = HttpUtils.AddUrlPath("/v2/cloudimages/quickimport/action",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", importImageQuickRequest); + HttpResponseMessage response = DoHttpRequestSync("POST",request); + return JsonUtils.DeSerialize(response); + } + + public ListImageByTagsResponse ListImageByTags(ListImageByTagsRequest listImageByTagsRequest) + { + Dictionary urlParam = new Dictionary(); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/images/resource_instances/action",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", listImageByTagsRequest); + HttpResponseMessage response = DoHttpRequestSync("POST",request); + return JsonUtils.DeSerialize(response); + } + + public ListImageTagsResponse ListImageTags(ListImageTagsRequest listImageTagsRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("image_id" , listImageTagsRequest.ImageId.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/images/{image_id}/tags",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", listImageTagsRequest); + HttpResponseMessage response = DoHttpRequestSync("GET",request); + return JsonUtils.DeSerialize(response); + } + + public ListImagesResponse ListImages(ListImagesRequest listImagesRequest) + { + Dictionary urlParam = new Dictionary(); + string urlPath = HttpUtils.AddUrlPath("/v2/cloudimages",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", listImagesRequest); + HttpResponseMessage response = DoHttpRequestSync("GET",request); + return JsonUtils.DeSerialize(response); + } + + public ListImagesTagsResponse ListImagesTags(ListImagesTagsRequest listImagesTagsRequest) + { + Dictionary urlParam = new Dictionary(); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/images/tags",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", listImagesTagsRequest); + HttpResponseMessage response = DoHttpRequestSync("GET",request); + return JsonUtils.DeSerialize(response); + } + + public ListOsVersionsResponse ListOsVersions(ListOsVersionsRequest listOsVersionsRequest) + { + Dictionary urlParam = new Dictionary(); + string urlPath = HttpUtils.AddUrlPath("/v1/cloudimages/os_version",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", listOsVersionsRequest); + HttpResponseMessage response = DoHttpRequestSync("GET",request); + ListOsVersionsResponse listOsVersionsResponse = JsonUtils.DeSerializeNull(response); + listOsVersionsResponse.Body = JsonUtils.DeSerializeList(response); + return listOsVersionsResponse; + } + + public ListTagsResponse ListTags(ListTagsRequest listTagsRequest) + { + Dictionary urlParam = new Dictionary(); + string urlPath = HttpUtils.AddUrlPath("/v1/cloudimages/tags",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", listTagsRequest); + HttpResponseMessage response = DoHttpRequestSync("GET",request); + return JsonUtils.DeSerialize(response); + } + + public RegisterImageResponse RegisterImage(RegisterImageRequest registerImageRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("image_id" , registerImageRequest.ImageId.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v1/cloudimages/{image_id}/upload",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", registerImageRequest); + HttpResponseMessage response = DoHttpRequestSync("PUT",request); + return JsonUtils.DeSerialize(response); + } + + public ShowImageQuotaResponse ShowImageQuota(ShowImageQuotaRequest showImageQuotaRequest) + { + Dictionary urlParam = new Dictionary(); + string urlPath = HttpUtils.AddUrlPath("/v1/cloudimages/quota",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", showImageQuotaRequest); + HttpResponseMessage response = DoHttpRequestSync("GET",request); + return JsonUtils.DeSerialize(response); + } + + public ShowJobResponse ShowJob(ShowJobRequest showJobRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("job_id" , showJobRequest.JobId.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v1/{project_id}/jobs/{job_id}",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", showJobRequest); + HttpResponseMessage response = DoHttpRequestSync("GET",request); + return JsonUtils.DeSerialize(response); + } + + public ShowJobProgressResponse ShowJobProgress(ShowJobProgressRequest showJobProgressRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("job_id" , showJobProgressRequest.JobId.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v1/cloudimages/job/{job_id}",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", showJobProgressRequest); + HttpResponseMessage response = DoHttpRequestSync("GET",request); + return JsonUtils.DeSerialize(response); + } + + public UpdateImageResponse UpdateImage(UpdateImageRequest updateImageRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("image_id" , updateImageRequest.ImageId.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/cloudimages/{image_id}",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", updateImageRequest); + HttpResponseMessage response = DoHttpRequestSync("PATCH",request); + return JsonUtils.DeSerialize(response); + } + + public ListVersionsResponse ListVersions(ListVersionsRequest listVersionsRequest) + { + Dictionary urlParam = new Dictionary(); + string urlPath = HttpUtils.AddUrlPath("/",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", listVersionsRequest); + HttpResponseMessage response = DoHttpRequestSync("GET",request); + return JsonUtils.DeSerialize(response); + } + + public ShowVersionResponse ShowVersion(ShowVersionRequest showVersionRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("version" , showVersionRequest.Version.ToString()); + string urlPath = HttpUtils.AddUrlPath("/{version}",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", showVersionRequest); + HttpResponseMessage response = DoHttpRequestSync("GET",request); + return JsonUtils.DeSerialize(response); + } + + public GlanceAddImageMemberResponse GlanceAddImageMember(GlanceAddImageMemberRequest glanceAddImageMemberRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("image_id" , glanceAddImageMemberRequest.ImageId.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/images/{image_id}/members",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", glanceAddImageMemberRequest); + HttpResponseMessage response = DoHttpRequestSync("POST",request); + return JsonUtils.DeSerialize(response); + } + + public GlanceCreateImageMetadataResponse GlanceCreateImageMetadata(GlanceCreateImageMetadataRequest glanceCreateImageMetadataRequest) + { + Dictionary urlParam = new Dictionary(); + string urlPath = HttpUtils.AddUrlPath("/v2/images",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", glanceCreateImageMetadataRequest); + HttpResponseMessage response = DoHttpRequestSync("POST",request); + return JsonUtils.DeSerialize(response); + } + + public GlanceCreateTagResponse GlanceCreateTag(GlanceCreateTagRequest glanceCreateTagRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("image_id" , glanceCreateTagRequest.ImageId.ToString()); + urlParam.Add("tag" , glanceCreateTagRequest.Tag.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/images/{image_id}/tags/{tag}",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", glanceCreateTagRequest); + HttpResponseMessage response = DoHttpRequestSync("PUT",request); + return JsonUtils.DeSerializeNull(response); + } + + public GlanceDeleteImageResponse GlanceDeleteImage(GlanceDeleteImageRequest glanceDeleteImageRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("image_id" , glanceDeleteImageRequest.ImageId.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/images/{image_id}",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", glanceDeleteImageRequest); + HttpResponseMessage response = DoHttpRequestSync("DELETE",request); + return JsonUtils.DeSerializeNull(response); + } + + public GlanceDeleteImageMemberResponse GlanceDeleteImageMember(GlanceDeleteImageMemberRequest glanceDeleteImageMemberRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("image_id" , glanceDeleteImageMemberRequest.ImageId.ToString()); + urlParam.Add("member_id" , glanceDeleteImageMemberRequest.MemberId.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/images/{image_id}/members/{member_id}",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", glanceDeleteImageMemberRequest); + HttpResponseMessage response = DoHttpRequestSync("DELETE",request); + return JsonUtils.DeSerializeNull(response); + } + + public GlanceDeleteTagResponse GlanceDeleteTag(GlanceDeleteTagRequest glanceDeleteTagRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("image_id" , glanceDeleteTagRequest.ImageId.ToString()); + urlParam.Add("tag" , glanceDeleteTagRequest.Tag.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/images/{image_id}/tags/{tag}",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", glanceDeleteTagRequest); + HttpResponseMessage response = DoHttpRequestSync("DELETE",request); + return JsonUtils.DeSerializeNull(response); + } + + public GlanceListImageMemberSchemasResponse GlanceListImageMemberSchemas(GlanceListImageMemberSchemasRequest glanceListImageMemberSchemasRequest) + { + Dictionary urlParam = new Dictionary(); + string urlPath = HttpUtils.AddUrlPath("/v2/schemas/members",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", glanceListImageMemberSchemasRequest); + HttpResponseMessage response = DoHttpRequestSync("GET",request); + return JsonUtils.DeSerialize(response); + } + + public GlanceListImageMembersResponse GlanceListImageMembers(GlanceListImageMembersRequest glanceListImageMembersRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("image_id" , glanceListImageMembersRequest.ImageId.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/images/{image_id}/members",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", glanceListImageMembersRequest); + HttpResponseMessage response = DoHttpRequestSync("GET",request); + return JsonUtils.DeSerialize(response); + } + + public GlanceListImageSchemasResponse GlanceListImageSchemas(GlanceListImageSchemasRequest glanceListImageSchemasRequest) + { + Dictionary urlParam = new Dictionary(); + string urlPath = HttpUtils.AddUrlPath("/v2/schemas/images",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", glanceListImageSchemasRequest); + HttpResponseMessage response = DoHttpRequestSync("GET",request); + return JsonUtils.DeSerialize(response); + } + + public GlanceListImagesResponse GlanceListImages(GlanceListImagesRequest glanceListImagesRequest) + { + Dictionary urlParam = new Dictionary(); + string urlPath = HttpUtils.AddUrlPath("/v2/images",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", glanceListImagesRequest); + HttpResponseMessage response = DoHttpRequestSync("GET",request); + return JsonUtils.DeSerialize(response); + } + + public GlanceShowImageResponse GlanceShowImage(GlanceShowImageRequest glanceShowImageRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("image_id" , glanceShowImageRequest.ImageId.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/images/{image_id}",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", glanceShowImageRequest); + HttpResponseMessage response = DoHttpRequestSync("GET",request); + return JsonUtils.DeSerialize(response); + } + + public GlanceShowImageMemberResponse GlanceShowImageMember(GlanceShowImageMemberRequest glanceShowImageMemberRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("image_id" , glanceShowImageMemberRequest.ImageId.ToString()); + urlParam.Add("member_id" , glanceShowImageMemberRequest.MemberId.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/images/{image_id}/members/{member_id}",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", glanceShowImageMemberRequest); + HttpResponseMessage response = DoHttpRequestSync("GET",request); + return JsonUtils.DeSerialize(response); + } + + public GlanceShowImageMemberSchemasResponse GlanceShowImageMemberSchemas(GlanceShowImageMemberSchemasRequest glanceShowImageMemberSchemasRequest) + { + Dictionary urlParam = new Dictionary(); + string urlPath = HttpUtils.AddUrlPath("/v2/schemas/member",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", glanceShowImageMemberSchemasRequest); + HttpResponseMessage response = DoHttpRequestSync("GET",request); + return JsonUtils.DeSerialize(response); + } + + public GlanceShowImageSchemasResponse GlanceShowImageSchemas(GlanceShowImageSchemasRequest glanceShowImageSchemasRequest) + { + Dictionary urlParam = new Dictionary(); + string urlPath = HttpUtils.AddUrlPath("/v2/schemas/image",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", glanceShowImageSchemasRequest); + HttpResponseMessage response = DoHttpRequestSync("GET",request); + return JsonUtils.DeSerialize(response); + } + + public GlanceUpdateImageResponse GlanceUpdateImage(GlanceUpdateImageRequest glanceUpdateImageRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("image_id" , glanceUpdateImageRequest.ImageId.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/images/{image_id}",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/openstack-images-v2.1-json-patch", glanceUpdateImageRequest); + HttpResponseMessage response = DoHttpRequestSync("PATCH",request); + return JsonUtils.DeSerialize(response); + } + + public GlanceUpdateImageMemberResponse GlanceUpdateImageMember(GlanceUpdateImageMemberRequest glanceUpdateImageMemberRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("image_id" , glanceUpdateImageMemberRequest.ImageId.ToString()); + urlParam.Add("member_id" , glanceUpdateImageMemberRequest.MemberId.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/images/{image_id}/members/{member_id}",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", glanceUpdateImageMemberRequest); + HttpResponseMessage response = DoHttpRequestSync("PUT",request); + return JsonUtils.DeSerialize(response); + } + + } +} \ No newline at end of file diff --git a/Services/Ims/V2/Model/AddImageTagRequest.cs b/Services/Ims/V2/Model/AddImageTagRequest.cs new file mode 100755 index 0000000..ddeec86 --- /dev/null +++ b/Services/Ims/V2/Model/AddImageTagRequest.cs @@ -0,0 +1,86 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Request Object + /// + public class AddImageTagRequest + { + + [SDKProperty("image_id", IsPath = true)] + [JsonProperty("image_id", NullValueHandling = NullValueHandling.Ignore)] + public string ImageId { get; set; } + + [SDKProperty("body", IsBody = true)] + [JsonProperty("body", NullValueHandling = NullValueHandling.Ignore)] + public AddImageTagRequestBody Body { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AddImageTagRequest {\n"); + sb.Append(" imageId: ").Append(ImageId).Append("\n"); + sb.Append(" body: ").Append(Body).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as AddImageTagRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(AddImageTagRequest input) + { + if (input == null) + return false; + + return + ( + this.ImageId == input.ImageId || + (this.ImageId != null && + this.ImageId.Equals(input.ImageId)) + ) && + ( + this.Body == input.Body || + (this.Body != null && + this.Body.Equals(input.Body)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ImageId != null) + hashCode = hashCode * 59 + this.ImageId.GetHashCode(); + if (this.Body != null) + hashCode = hashCode * 59 + this.Body.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/AddImageTagRequestBody.cs b/Services/Ims/V2/Model/AddImageTagRequestBody.cs new file mode 100755 index 0000000..d2de313 --- /dev/null +++ b/Services/Ims/V2/Model/AddImageTagRequestBody.cs @@ -0,0 +1,73 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// 请求参数 + /// + public class AddImageTagRequestBody + { + + [JsonProperty("tag", NullValueHandling = NullValueHandling.Ignore)] + public ResourceTag Tag { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AddImageTagRequestBody {\n"); + sb.Append(" tag: ").Append(Tag).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as AddImageTagRequestBody); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(AddImageTagRequestBody input) + { + if (input == null) + return false; + + return + ( + this.Tag == input.Tag || + (this.Tag != null && + this.Tag.Equals(input.Tag)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Tag != null) + hashCode = hashCode * 59 + this.Tag.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/AddImageTagResponse.cs b/Services/Ims/V2/Model/AddImageTagResponse.cs new file mode 100755 index 0000000..ca8b642 --- /dev/null +++ b/Services/Ims/V2/Model/AddImageTagResponse.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Response Object + /// + public class AddImageTagResponse : SdkResponse + { + + + } +} diff --git a/Services/Ims/V2/Model/AddOrUpdateTagsRequestBody.cs b/Services/Ims/V2/Model/AddOrUpdateTagsRequestBody.cs new file mode 100755 index 0000000..bf0adf8 --- /dev/null +++ b/Services/Ims/V2/Model/AddOrUpdateTagsRequestBody.cs @@ -0,0 +1,95 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// 请求参数 + /// + public class AddOrUpdateTagsRequestBody + { + + [JsonProperty("image_id", NullValueHandling = NullValueHandling.Ignore)] + public string ImageId { get; set; } + + [JsonProperty("tag", NullValueHandling = NullValueHandling.Ignore)] + public string Tag { get; set; } + + [JsonProperty("image_tag", NullValueHandling = NullValueHandling.Ignore)] + public ResourceTag ImageTag { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AddOrUpdateTagsRequestBody {\n"); + sb.Append(" imageId: ").Append(ImageId).Append("\n"); + sb.Append(" tag: ").Append(Tag).Append("\n"); + sb.Append(" imageTag: ").Append(ImageTag).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as AddOrUpdateTagsRequestBody); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(AddOrUpdateTagsRequestBody input) + { + if (input == null) + return false; + + return + ( + this.ImageId == input.ImageId || + (this.ImageId != null && + this.ImageId.Equals(input.ImageId)) + ) && + ( + this.Tag == input.Tag || + (this.Tag != null && + this.Tag.Equals(input.Tag)) + ) && + ( + this.ImageTag == input.ImageTag || + (this.ImageTag != null && + this.ImageTag.Equals(input.ImageTag)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ImageId != null) + hashCode = hashCode * 59 + this.ImageId.GetHashCode(); + if (this.Tag != null) + hashCode = hashCode * 59 + this.Tag.GetHashCode(); + if (this.ImageTag != null) + hashCode = hashCode * 59 + this.ImageTag.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/AdditionalProperties.cs b/Services/Ims/V2/Model/AdditionalProperties.cs new file mode 100755 index 0000000..cbcccb9 --- /dev/null +++ b/Services/Ims/V2/Model/AdditionalProperties.cs @@ -0,0 +1,73 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// 属性值 + /// + public class AdditionalProperties + { + + [JsonProperty("type", NullValueHandling = NullValueHandling.Ignore)] + public string Type { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AdditionalProperties {\n"); + sb.Append(" type: ").Append(Type).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as AdditionalProperties); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(AdditionalProperties input) + { + if (input == null) + return false; + + return + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Type != null) + hashCode = hashCode * 59 + this.Type.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/BatchAddMembersRequest.cs b/Services/Ims/V2/Model/BatchAddMembersRequest.cs new file mode 100755 index 0000000..c6227c7 --- /dev/null +++ b/Services/Ims/V2/Model/BatchAddMembersRequest.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Request Object + /// + public class BatchAddMembersRequest + { + + [SDKProperty("body", IsBody = true)] + [JsonProperty("body", NullValueHandling = NullValueHandling.Ignore)] + public BatchAddMembersRequestBody Body { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class BatchAddMembersRequest {\n"); + sb.Append(" body: ").Append(Body).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as BatchAddMembersRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(BatchAddMembersRequest input) + { + if (input == null) + return false; + + return + ( + this.Body == input.Body || + (this.Body != null && + this.Body.Equals(input.Body)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Body != null) + hashCode = hashCode * 59 + this.Body.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/BatchAddMembersRequestBody.cs b/Services/Ims/V2/Model/BatchAddMembersRequestBody.cs new file mode 100755 index 0000000..3b16051 --- /dev/null +++ b/Services/Ims/V2/Model/BatchAddMembersRequestBody.cs @@ -0,0 +1,86 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// 批量添加镜像成员body + /// + public class BatchAddMembersRequestBody + { + + [JsonProperty("images", NullValueHandling = NullValueHandling.Ignore)] + public List Images { get; set; } + + [JsonProperty("projects", NullValueHandling = NullValueHandling.Ignore)] + public List Projects { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class BatchAddMembersRequestBody {\n"); + sb.Append(" images: ").Append(Images).Append("\n"); + sb.Append(" projects: ").Append(Projects).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as BatchAddMembersRequestBody); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(BatchAddMembersRequestBody input) + { + if (input == null) + return false; + + return + ( + this.Images == input.Images || + this.Images != null && + input.Images != null && + this.Images.SequenceEqual(input.Images) + ) && + ( + this.Projects == input.Projects || + this.Projects != null && + input.Projects != null && + this.Projects.SequenceEqual(input.Projects) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Images != null) + hashCode = hashCode * 59 + this.Images.GetHashCode(); + if (this.Projects != null) + hashCode = hashCode * 59 + this.Projects.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/BatchAddMembersResponse.cs b/Services/Ims/V2/Model/BatchAddMembersResponse.cs new file mode 100755 index 0000000..a018249 --- /dev/null +++ b/Services/Ims/V2/Model/BatchAddMembersResponse.cs @@ -0,0 +1,73 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Response Object + /// + public class BatchAddMembersResponse : SdkResponse + { + + [JsonProperty("job_id", NullValueHandling = NullValueHandling.Ignore)] + public string JobId { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class BatchAddMembersResponse {\n"); + sb.Append(" jobId: ").Append(JobId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as BatchAddMembersResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(BatchAddMembersResponse input) + { + if (input == null) + return false; + + return + ( + this.JobId == input.JobId || + (this.JobId != null && + this.JobId.Equals(input.JobId)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.JobId != null) + hashCode = hashCode * 59 + this.JobId.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/BatchAddOrDeleteTagsRequest.cs b/Services/Ims/V2/Model/BatchAddOrDeleteTagsRequest.cs new file mode 100755 index 0000000..f613f85 --- /dev/null +++ b/Services/Ims/V2/Model/BatchAddOrDeleteTagsRequest.cs @@ -0,0 +1,86 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Request Object + /// + public class BatchAddOrDeleteTagsRequest + { + + [SDKProperty("image_id", IsPath = true)] + [JsonProperty("image_id", NullValueHandling = NullValueHandling.Ignore)] + public string ImageId { get; set; } + + [SDKProperty("body", IsBody = true)] + [JsonProperty("body", NullValueHandling = NullValueHandling.Ignore)] + public BatchAddOrDeleteTagsRequestBody Body { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class BatchAddOrDeleteTagsRequest {\n"); + sb.Append(" imageId: ").Append(ImageId).Append("\n"); + sb.Append(" body: ").Append(Body).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as BatchAddOrDeleteTagsRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(BatchAddOrDeleteTagsRequest input) + { + if (input == null) + return false; + + return + ( + this.ImageId == input.ImageId || + (this.ImageId != null && + this.ImageId.Equals(input.ImageId)) + ) && + ( + this.Body == input.Body || + (this.Body != null && + this.Body.Equals(input.Body)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ImageId != null) + hashCode = hashCode * 59 + this.ImageId.GetHashCode(); + if (this.Body != null) + hashCode = hashCode * 59 + this.Body.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/BatchAddOrDeleteTagsRequestBody.cs b/Services/Ims/V2/Model/BatchAddOrDeleteTagsRequestBody.cs new file mode 100755 index 0000000..e5e4d02 --- /dev/null +++ b/Services/Ims/V2/Model/BatchAddOrDeleteTagsRequestBody.cs @@ -0,0 +1,195 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// 镜像标签请求体 + /// + public class BatchAddOrDeleteTagsRequestBody + { + [JsonConverter(typeof(EnumClassConverter))] + public class ActionEnum + { + /// + /// Enum CREATE for value: create + /// + public static readonly ActionEnum CREATE = new ActionEnum("create"); + + /// + /// Enum DELETE for value: delete + /// + public static readonly ActionEnum DELETE = new ActionEnum("delete"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "create", CREATE }, + { "delete", DELETE }, + }; + + private string _value; + + public ActionEnum() + { + + } + + public ActionEnum(string value) + { + _value = value; + } + + public static ActionEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as ActionEnum)) + { + return true; + } + + return false; + } + + public bool Equals(ActionEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(ActionEnum a, ActionEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(ActionEnum a, ActionEnum b) + { + return !(a == b); + } + } + + + [JsonProperty("action", NullValueHandling = NullValueHandling.Ignore)] + public ActionEnum Action { get; set; } + [JsonProperty("tags", NullValueHandling = NullValueHandling.Ignore)] + public List Tags { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class BatchAddOrDeleteTagsRequestBody {\n"); + sb.Append(" action: ").Append(Action).Append("\n"); + sb.Append(" tags: ").Append(Tags).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as BatchAddOrDeleteTagsRequestBody); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(BatchAddOrDeleteTagsRequestBody input) + { + if (input == null) + return false; + + return + ( + this.Action == input.Action || + (this.Action != null && + this.Action.Equals(input.Action)) + ) && + ( + this.Tags == input.Tags || + this.Tags != null && + input.Tags != null && + this.Tags.SequenceEqual(input.Tags) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Action != null) + hashCode = hashCode * 59 + this.Action.GetHashCode(); + if (this.Tags != null) + hashCode = hashCode * 59 + this.Tags.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/BatchAddOrDeleteTagsResponse.cs b/Services/Ims/V2/Model/BatchAddOrDeleteTagsResponse.cs new file mode 100755 index 0000000..eac66b3 --- /dev/null +++ b/Services/Ims/V2/Model/BatchAddOrDeleteTagsResponse.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Response Object + /// + public class BatchAddOrDeleteTagsResponse : SdkResponse + { + + + } +} diff --git a/Services/Ims/V2/Model/BatchDeleteMembersRequest.cs b/Services/Ims/V2/Model/BatchDeleteMembersRequest.cs new file mode 100755 index 0000000..393d7d3 --- /dev/null +++ b/Services/Ims/V2/Model/BatchDeleteMembersRequest.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Request Object + /// + public class BatchDeleteMembersRequest + { + + [SDKProperty("body", IsBody = true)] + [JsonProperty("body", NullValueHandling = NullValueHandling.Ignore)] + public BatchAddMembersRequestBody Body { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class BatchDeleteMembersRequest {\n"); + sb.Append(" body: ").Append(Body).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as BatchDeleteMembersRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(BatchDeleteMembersRequest input) + { + if (input == null) + return false; + + return + ( + this.Body == input.Body || + (this.Body != null && + this.Body.Equals(input.Body)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Body != null) + hashCode = hashCode * 59 + this.Body.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/BatchDeleteMembersResponse.cs b/Services/Ims/V2/Model/BatchDeleteMembersResponse.cs new file mode 100755 index 0000000..8a520eb --- /dev/null +++ b/Services/Ims/V2/Model/BatchDeleteMembersResponse.cs @@ -0,0 +1,73 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Response Object + /// + public class BatchDeleteMembersResponse : SdkResponse + { + + [JsonProperty("job_id", NullValueHandling = NullValueHandling.Ignore)] + public string JobId { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class BatchDeleteMembersResponse {\n"); + sb.Append(" jobId: ").Append(JobId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as BatchDeleteMembersResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(BatchDeleteMembersResponse input) + { + if (input == null) + return false; + + return + ( + this.JobId == input.JobId || + (this.JobId != null && + this.JobId.Equals(input.JobId)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.JobId != null) + hashCode = hashCode * 59 + this.JobId.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/BatchUpdateMembersRequest.cs b/Services/Ims/V2/Model/BatchUpdateMembersRequest.cs new file mode 100755 index 0000000..90f0629 --- /dev/null +++ b/Services/Ims/V2/Model/BatchUpdateMembersRequest.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Request Object + /// + public class BatchUpdateMembersRequest + { + + [SDKProperty("body", IsBody = true)] + [JsonProperty("body", NullValueHandling = NullValueHandling.Ignore)] + public BatchUpdateMembersRequestBody Body { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class BatchUpdateMembersRequest {\n"); + sb.Append(" body: ").Append(Body).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as BatchUpdateMembersRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(BatchUpdateMembersRequest input) + { + if (input == null) + return false; + + return + ( + this.Body == input.Body || + (this.Body != null && + this.Body.Equals(input.Body)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Body != null) + hashCode = hashCode * 59 + this.Body.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/BatchUpdateMembersRequestBody.cs b/Services/Ims/V2/Model/BatchUpdateMembersRequestBody.cs new file mode 100755 index 0000000..9824d39 --- /dev/null +++ b/Services/Ims/V2/Model/BatchUpdateMembersRequestBody.cs @@ -0,0 +1,217 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// 更新镜像成员状态请求体 + /// + public class BatchUpdateMembersRequestBody + { + [JsonConverter(typeof(EnumClassConverter))] + public class StatusEnum + { + /// + /// Enum ACCEPTED for value: accepted + /// + public static readonly StatusEnum ACCEPTED = new StatusEnum("accepted"); + + /// + /// Enum REJECTED for value: rejected + /// + public static readonly StatusEnum REJECTED = new StatusEnum("rejected"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "accepted", ACCEPTED }, + { "rejected", REJECTED }, + }; + + private string _value; + + public StatusEnum() + { + + } + + public StatusEnum(string value) + { + _value = value; + } + + public static StatusEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as StatusEnum)) + { + return true; + } + + return false; + } + + public bool Equals(StatusEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(StatusEnum a, StatusEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(StatusEnum a, StatusEnum b) + { + return !(a == b); + } + } + + + [JsonProperty("images", NullValueHandling = NullValueHandling.Ignore)] + public List Images { get; set; } + + [JsonProperty("project_id", NullValueHandling = NullValueHandling.Ignore)] + public string ProjectId { get; set; } + + [JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)] + public StatusEnum Status { get; set; } + [JsonProperty("vault_id", NullValueHandling = NullValueHandling.Ignore)] + public string VaultId { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class BatchUpdateMembersRequestBody {\n"); + sb.Append(" images: ").Append(Images).Append("\n"); + sb.Append(" projectId: ").Append(ProjectId).Append("\n"); + sb.Append(" status: ").Append(Status).Append("\n"); + sb.Append(" vaultId: ").Append(VaultId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as BatchUpdateMembersRequestBody); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(BatchUpdateMembersRequestBody input) + { + if (input == null) + return false; + + return + ( + this.Images == input.Images || + this.Images != null && + input.Images != null && + this.Images.SequenceEqual(input.Images) + ) && + ( + this.ProjectId == input.ProjectId || + (this.ProjectId != null && + this.ProjectId.Equals(input.ProjectId)) + ) && + ( + this.Status == input.Status || + (this.Status != null && + this.Status.Equals(input.Status)) + ) && + ( + this.VaultId == input.VaultId || + (this.VaultId != null && + this.VaultId.Equals(input.VaultId)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Images != null) + hashCode = hashCode * 59 + this.Images.GetHashCode(); + if (this.ProjectId != null) + hashCode = hashCode * 59 + this.ProjectId.GetHashCode(); + if (this.Status != null) + hashCode = hashCode * 59 + this.Status.GetHashCode(); + if (this.VaultId != null) + hashCode = hashCode * 59 + this.VaultId.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/BatchUpdateMembersResponse.cs b/Services/Ims/V2/Model/BatchUpdateMembersResponse.cs new file mode 100755 index 0000000..42f89eb --- /dev/null +++ b/Services/Ims/V2/Model/BatchUpdateMembersResponse.cs @@ -0,0 +1,73 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Response Object + /// + public class BatchUpdateMembersResponse : SdkResponse + { + + [JsonProperty("job_id", NullValueHandling = NullValueHandling.Ignore)] + public string JobId { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class BatchUpdateMembersResponse {\n"); + sb.Append(" jobId: ").Append(JobId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as BatchUpdateMembersResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(BatchUpdateMembersResponse input) + { + if (input == null) + return false; + + return + ( + this.JobId == input.JobId || + (this.JobId != null && + this.JobId.Equals(input.JobId)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.JobId != null) + hashCode = hashCode * 59 + this.JobId.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/CopyImageCrossRegionRequest.cs b/Services/Ims/V2/Model/CopyImageCrossRegionRequest.cs new file mode 100755 index 0000000..ee12be7 --- /dev/null +++ b/Services/Ims/V2/Model/CopyImageCrossRegionRequest.cs @@ -0,0 +1,86 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Request Object + /// + public class CopyImageCrossRegionRequest + { + + [SDKProperty("image_id", IsPath = true)] + [JsonProperty("image_id", NullValueHandling = NullValueHandling.Ignore)] + public string ImageId { get; set; } + + [SDKProperty("body", IsBody = true)] + [JsonProperty("body", NullValueHandling = NullValueHandling.Ignore)] + public CopyImageCrossRegionRequestBody Body { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CopyImageCrossRegionRequest {\n"); + sb.Append(" imageId: ").Append(ImageId).Append("\n"); + sb.Append(" body: ").Append(Body).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as CopyImageCrossRegionRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(CopyImageCrossRegionRequest input) + { + if (input == null) + return false; + + return + ( + this.ImageId == input.ImageId || + (this.ImageId != null && + this.ImageId.Equals(input.ImageId)) + ) && + ( + this.Body == input.Body || + (this.Body != null && + this.Body.Equals(input.Body)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ImageId != null) + hashCode = hashCode * 59 + this.ImageId.GetHashCode(); + if (this.Body != null) + hashCode = hashCode * 59 + this.Body.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/CopyImageCrossRegionRequestBody.cs b/Services/Ims/V2/Model/CopyImageCrossRegionRequestBody.cs new file mode 100755 index 0000000..2ca348f --- /dev/null +++ b/Services/Ims/V2/Model/CopyImageCrossRegionRequestBody.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// + /// + public class CopyImageCrossRegionRequestBody + { + + [JsonProperty("agency_name", NullValueHandling = NullValueHandling.Ignore)] + public string AgencyName { get; set; } + + [JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)] + public string Description { get; set; } + + [JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)] + public string Name { get; set; } + + [JsonProperty("project_name", NullValueHandling = NullValueHandling.Ignore)] + public string ProjectName { get; set; } + + [JsonProperty("region", NullValueHandling = NullValueHandling.Ignore)] + public string Region { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CopyImageCrossRegionRequestBody {\n"); + sb.Append(" agencyName: ").Append(AgencyName).Append("\n"); + sb.Append(" description: ").Append(Description).Append("\n"); + sb.Append(" name: ").Append(Name).Append("\n"); + sb.Append(" projectName: ").Append(ProjectName).Append("\n"); + sb.Append(" region: ").Append(Region).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as CopyImageCrossRegionRequestBody); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(CopyImageCrossRegionRequestBody input) + { + if (input == null) + return false; + + return + ( + this.AgencyName == input.AgencyName || + (this.AgencyName != null && + this.AgencyName.Equals(input.AgencyName)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.ProjectName == input.ProjectName || + (this.ProjectName != null && + this.ProjectName.Equals(input.ProjectName)) + ) && + ( + this.Region == input.Region || + (this.Region != null && + this.Region.Equals(input.Region)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.AgencyName != null) + hashCode = hashCode * 59 + this.AgencyName.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.ProjectName != null) + hashCode = hashCode * 59 + this.ProjectName.GetHashCode(); + if (this.Region != null) + hashCode = hashCode * 59 + this.Region.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/CopyImageCrossRegionResponse.cs b/Services/Ims/V2/Model/CopyImageCrossRegionResponse.cs new file mode 100755 index 0000000..d12e927 --- /dev/null +++ b/Services/Ims/V2/Model/CopyImageCrossRegionResponse.cs @@ -0,0 +1,73 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Response Object + /// + public class CopyImageCrossRegionResponse : SdkResponse + { + + [JsonProperty("job_id", NullValueHandling = NullValueHandling.Ignore)] + public string JobId { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CopyImageCrossRegionResponse {\n"); + sb.Append(" jobId: ").Append(JobId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as CopyImageCrossRegionResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(CopyImageCrossRegionResponse input) + { + if (input == null) + return false; + + return + ( + this.JobId == input.JobId || + (this.JobId != null && + this.JobId.Equals(input.JobId)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.JobId != null) + hashCode = hashCode * 59 + this.JobId.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/CopyImageInRegionRequest.cs b/Services/Ims/V2/Model/CopyImageInRegionRequest.cs new file mode 100755 index 0000000..8dacf23 --- /dev/null +++ b/Services/Ims/V2/Model/CopyImageInRegionRequest.cs @@ -0,0 +1,86 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Request Object + /// + public class CopyImageInRegionRequest + { + + [SDKProperty("image_id", IsPath = true)] + [JsonProperty("image_id", NullValueHandling = NullValueHandling.Ignore)] + public string ImageId { get; set; } + + [SDKProperty("body", IsBody = true)] + [JsonProperty("body", NullValueHandling = NullValueHandling.Ignore)] + public CopyImageInRegionRequestBody Body { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CopyImageInRegionRequest {\n"); + sb.Append(" imageId: ").Append(ImageId).Append("\n"); + sb.Append(" body: ").Append(Body).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as CopyImageInRegionRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(CopyImageInRegionRequest input) + { + if (input == null) + return false; + + return + ( + this.ImageId == input.ImageId || + (this.ImageId != null && + this.ImageId.Equals(input.ImageId)) + ) && + ( + this.Body == input.Body || + (this.Body != null && + this.Body.Equals(input.Body)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ImageId != null) + hashCode = hashCode * 59 + this.ImageId.GetHashCode(); + if (this.Body != null) + hashCode = hashCode * 59 + this.Body.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/CopyImageInRegionRequestBody.cs b/Services/Ims/V2/Model/CopyImageInRegionRequestBody.cs new file mode 100755 index 0000000..6f3ea8e --- /dev/null +++ b/Services/Ims/V2/Model/CopyImageInRegionRequestBody.cs @@ -0,0 +1,106 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// 请求参数 + /// + public class CopyImageInRegionRequestBody + { + + [JsonProperty("cmk_id", NullValueHandling = NullValueHandling.Ignore)] + public string CmkId { get; set; } + + [JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)] + public string Description { get; set; } + + [JsonProperty("enterprise_project_id", NullValueHandling = NullValueHandling.Ignore)] + public string EnterpriseProjectId { get; set; } + + [JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)] + public string Name { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CopyImageInRegionRequestBody {\n"); + sb.Append(" cmkId: ").Append(CmkId).Append("\n"); + sb.Append(" description: ").Append(Description).Append("\n"); + sb.Append(" enterpriseProjectId: ").Append(EnterpriseProjectId).Append("\n"); + sb.Append(" name: ").Append(Name).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as CopyImageInRegionRequestBody); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(CopyImageInRegionRequestBody input) + { + if (input == null) + return false; + + return + ( + this.CmkId == input.CmkId || + (this.CmkId != null && + this.CmkId.Equals(input.CmkId)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.EnterpriseProjectId == input.EnterpriseProjectId || + (this.EnterpriseProjectId != null && + this.EnterpriseProjectId.Equals(input.EnterpriseProjectId)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.CmkId != null) + hashCode = hashCode * 59 + this.CmkId.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.EnterpriseProjectId != null) + hashCode = hashCode * 59 + this.EnterpriseProjectId.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/CopyImageInRegionResponse.cs b/Services/Ims/V2/Model/CopyImageInRegionResponse.cs new file mode 100755 index 0000000..03edeeb --- /dev/null +++ b/Services/Ims/V2/Model/CopyImageInRegionResponse.cs @@ -0,0 +1,73 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Response Object + /// + public class CopyImageInRegionResponse : SdkResponse + { + + [JsonProperty("job_id", NullValueHandling = NullValueHandling.Ignore)] + public string JobId { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CopyImageInRegionResponse {\n"); + sb.Append(" jobId: ").Append(JobId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as CopyImageInRegionResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(CopyImageInRegionResponse input) + { + if (input == null) + return false; + + return + ( + this.JobId == input.JobId || + (this.JobId != null && + this.JobId.Equals(input.JobId)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.JobId != null) + hashCode = hashCode * 59 + this.JobId.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/CreateDataImage.cs b/Services/Ims/V2/Model/CreateDataImage.cs new file mode 100755 index 0000000..0544296 --- /dev/null +++ b/Services/Ims/V2/Model/CreateDataImage.cs @@ -0,0 +1,107 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// 数据盘信息 + /// + public class CreateDataImage + { + + [JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)] + public string Name { get; set; } + + [JsonProperty("volume_id", NullValueHandling = NullValueHandling.Ignore)] + public string VolumeId { get; set; } + + [JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)] + public string Description { get; set; } + + [JsonProperty("tags", NullValueHandling = NullValueHandling.Ignore)] + public List Tags { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CreateDataImage {\n"); + sb.Append(" name: ").Append(Name).Append("\n"); + sb.Append(" volumeId: ").Append(VolumeId).Append("\n"); + sb.Append(" description: ").Append(Description).Append("\n"); + sb.Append(" tags: ").Append(Tags).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as CreateDataImage); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(CreateDataImage input) + { + if (input == null) + return false; + + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.VolumeId == input.VolumeId || + (this.VolumeId != null && + this.VolumeId.Equals(input.VolumeId)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.Tags == input.Tags || + this.Tags != null && + input.Tags != null && + this.Tags.SequenceEqual(input.Tags) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.VolumeId != null) + hashCode = hashCode * 59 + this.VolumeId.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.Tags != null) + hashCode = hashCode * 59 + this.Tags.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/CreateDataImageRequest.cs b/Services/Ims/V2/Model/CreateDataImageRequest.cs new file mode 100755 index 0000000..f33bc4e --- /dev/null +++ b/Services/Ims/V2/Model/CreateDataImageRequest.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Request Object + /// + public class CreateDataImageRequest + { + + [SDKProperty("body", IsBody = true)] + [JsonProperty("body", NullValueHandling = NullValueHandling.Ignore)] + public CreateDataImageRequestBody Body { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CreateDataImageRequest {\n"); + sb.Append(" body: ").Append(Body).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as CreateDataImageRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(CreateDataImageRequest input) + { + if (input == null) + return false; + + return + ( + this.Body == input.Body || + (this.Body != null && + this.Body.Equals(input.Body)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Body != null) + hashCode = hashCode * 59 + this.Body.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/CreateDataImageRequestBody.cs b/Services/Ims/V2/Model/CreateDataImageRequestBody.cs new file mode 100755 index 0000000..6ac8177 --- /dev/null +++ b/Services/Ims/V2/Model/CreateDataImageRequestBody.cs @@ -0,0 +1,273 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// 创建镜像请求体 + /// + public class CreateDataImageRequestBody + { + [JsonConverter(typeof(EnumClassConverter))] + public class OsTypeEnum + { + /// + /// Enum WINDOWS for value: Windows + /// + public static readonly OsTypeEnum WINDOWS = new OsTypeEnum("Windows"); + + /// + /// Enum LINUX for value: Linux + /// + public static readonly OsTypeEnum LINUX = new OsTypeEnum("Linux"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "Windows", WINDOWS }, + { "Linux", LINUX }, + }; + + private string _value; + + public OsTypeEnum() + { + + } + + public OsTypeEnum(string value) + { + _value = value; + } + + public static OsTypeEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as OsTypeEnum)) + { + return true; + } + + return false; + } + + public bool Equals(OsTypeEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(OsTypeEnum a, OsTypeEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(OsTypeEnum a, OsTypeEnum b) + { + return !(a == b); + } + } + + + [JsonProperty("cmk_id", NullValueHandling = NullValueHandling.Ignore)] + public string CmkId { get; set; } + + [JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)] + public string Description { get; set; } + + [JsonProperty("enterprise_project_id", NullValueHandling = NullValueHandling.Ignore)] + public string EnterpriseProjectId { get; set; } + + [JsonProperty("image_tags", NullValueHandling = NullValueHandling.Ignore)] + public List ImageTags { get; set; } + + [JsonProperty("image_url", NullValueHandling = NullValueHandling.Ignore)] + public string ImageUrl { get; set; } + + [JsonProperty("min_disk", NullValueHandling = NullValueHandling.Ignore)] + public int? MinDisk { get; set; } + + [JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)] + public string Name { get; set; } + + [JsonProperty("os_type", NullValueHandling = NullValueHandling.Ignore)] + public OsTypeEnum OsType { get; set; } + [JsonProperty("tags", NullValueHandling = NullValueHandling.Ignore)] + public List Tags { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CreateDataImageRequestBody {\n"); + sb.Append(" cmkId: ").Append(CmkId).Append("\n"); + sb.Append(" description: ").Append(Description).Append("\n"); + sb.Append(" enterpriseProjectId: ").Append(EnterpriseProjectId).Append("\n"); + sb.Append(" imageTags: ").Append(ImageTags).Append("\n"); + sb.Append(" imageUrl: ").Append(ImageUrl).Append("\n"); + sb.Append(" minDisk: ").Append(MinDisk).Append("\n"); + sb.Append(" name: ").Append(Name).Append("\n"); + sb.Append(" osType: ").Append(OsType).Append("\n"); + sb.Append(" tags: ").Append(Tags).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as CreateDataImageRequestBody); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(CreateDataImageRequestBody input) + { + if (input == null) + return false; + + return + ( + this.CmkId == input.CmkId || + (this.CmkId != null && + this.CmkId.Equals(input.CmkId)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.EnterpriseProjectId == input.EnterpriseProjectId || + (this.EnterpriseProjectId != null && + this.EnterpriseProjectId.Equals(input.EnterpriseProjectId)) + ) && + ( + this.ImageTags == input.ImageTags || + this.ImageTags != null && + input.ImageTags != null && + this.ImageTags.SequenceEqual(input.ImageTags) + ) && + ( + this.ImageUrl == input.ImageUrl || + (this.ImageUrl != null && + this.ImageUrl.Equals(input.ImageUrl)) + ) && + ( + this.MinDisk == input.MinDisk || + (this.MinDisk != null && + this.MinDisk.Equals(input.MinDisk)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.OsType == input.OsType || + (this.OsType != null && + this.OsType.Equals(input.OsType)) + ) && + ( + this.Tags == input.Tags || + this.Tags != null && + input.Tags != null && + this.Tags.SequenceEqual(input.Tags) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.CmkId != null) + hashCode = hashCode * 59 + this.CmkId.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.EnterpriseProjectId != null) + hashCode = hashCode * 59 + this.EnterpriseProjectId.GetHashCode(); + if (this.ImageTags != null) + hashCode = hashCode * 59 + this.ImageTags.GetHashCode(); + if (this.ImageUrl != null) + hashCode = hashCode * 59 + this.ImageUrl.GetHashCode(); + if (this.MinDisk != null) + hashCode = hashCode * 59 + this.MinDisk.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.OsType != null) + hashCode = hashCode * 59 + this.OsType.GetHashCode(); + if (this.Tags != null) + hashCode = hashCode * 59 + this.Tags.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/CreateDataImageResponse.cs b/Services/Ims/V2/Model/CreateDataImageResponse.cs new file mode 100755 index 0000000..fd89549 --- /dev/null +++ b/Services/Ims/V2/Model/CreateDataImageResponse.cs @@ -0,0 +1,73 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Response Object + /// + public class CreateDataImageResponse : SdkResponse + { + + [JsonProperty("job_id", NullValueHandling = NullValueHandling.Ignore)] + public string JobId { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CreateDataImageResponse {\n"); + sb.Append(" jobId: ").Append(JobId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as CreateDataImageResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(CreateDataImageResponse input) + { + if (input == null) + return false; + + return + ( + this.JobId == input.JobId || + (this.JobId != null && + this.JobId.Equals(input.JobId)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.JobId != null) + hashCode = hashCode * 59 + this.JobId.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/CreateImageRequest.cs b/Services/Ims/V2/Model/CreateImageRequest.cs new file mode 100755 index 0000000..41e2848 --- /dev/null +++ b/Services/Ims/V2/Model/CreateImageRequest.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Request Object + /// + public class CreateImageRequest + { + + [SDKProperty("body", IsBody = true)] + [JsonProperty("body", NullValueHandling = NullValueHandling.Ignore)] + public CreateImageRequestBody Body { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CreateImageRequest {\n"); + sb.Append(" body: ").Append(Body).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as CreateImageRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(CreateImageRequest input) + { + if (input == null) + return false; + + return + ( + this.Body == input.Body || + (this.Body != null && + this.Body.Equals(input.Body)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Body != null) + hashCode = hashCode * 59 + this.Body.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/CreateImageRequestBody.cs b/Services/Ims/V2/Model/CreateImageRequestBody.cs new file mode 100755 index 0000000..ab68284 --- /dev/null +++ b/Services/Ims/V2/Model/CreateImageRequestBody.cs @@ -0,0 +1,495 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// 创建镜像请求参数体 + /// + public class CreateImageRequestBody + { + [JsonConverter(typeof(EnumClassConverter))] + public class TypeEnum + { + /// + /// Enum ECS for value: ECS + /// + public static readonly TypeEnum ECS = new TypeEnum("ECS"); + + /// + /// Enum BMS for value: BMS + /// + public static readonly TypeEnum BMS = new TypeEnum("BMS"); + + /// + /// Enum FUSIONCOMPUTE for value: FusionCompute + /// + public static readonly TypeEnum FUSIONCOMPUTE = new TypeEnum("FusionCompute"); + + /// + /// Enum IRONIC for value: Ironic + /// + public static readonly TypeEnum IRONIC = new TypeEnum("Ironic"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "ECS", ECS }, + { "BMS", BMS }, + { "FusionCompute", FUSIONCOMPUTE }, + { "Ironic", IRONIC }, + }; + + private string _value; + + public TypeEnum() + { + + } + + public TypeEnum(string value) + { + _value = value; + } + + public static TypeEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as TypeEnum)) + { + return true; + } + + return false; + } + + public bool Equals(TypeEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(TypeEnum a, TypeEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(TypeEnum a, TypeEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class ArchitectureEnum + { + /// + /// Enum X86 for value: x86 + /// + public static readonly ArchitectureEnum X86 = new ArchitectureEnum("x86"); + + /// + /// Enum ARM for value: arm + /// + public static readonly ArchitectureEnum ARM = new ArchitectureEnum("arm"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "x86", X86 }, + { "arm", ARM }, + }; + + private string _value; + + public ArchitectureEnum() + { + + } + + public ArchitectureEnum(string value) + { + _value = value; + } + + public static ArchitectureEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as ArchitectureEnum)) + { + return true; + } + + return false; + } + + public bool Equals(ArchitectureEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(ArchitectureEnum a, ArchitectureEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(ArchitectureEnum a, ArchitectureEnum b) + { + return !(a == b); + } + } + + + [JsonProperty("data_images", NullValueHandling = NullValueHandling.Ignore)] + public List DataImages { get; set; } + + [JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)] + public string Description { get; set; } + + [JsonProperty("enterprise_project_id", NullValueHandling = NullValueHandling.Ignore)] + public string EnterpriseProjectId { get; set; } + + [JsonProperty("image_tags", NullValueHandling = NullValueHandling.Ignore)] + public List ImageTags { get; set; } + + [JsonProperty("instance_id", NullValueHandling = NullValueHandling.Ignore)] + public string InstanceId { get; set; } + + [JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)] + public string Name { get; set; } + + [JsonProperty("tags", NullValueHandling = NullValueHandling.Ignore)] + public List Tags { get; set; } + + [JsonProperty("max_ram", NullValueHandling = NullValueHandling.Ignore)] + public int? MaxRam { get; set; } + + [JsonProperty("min_ram", NullValueHandling = NullValueHandling.Ignore)] + public int? MinRam { get; set; } + + [JsonProperty("os_version", NullValueHandling = NullValueHandling.Ignore)] + public string OsVersion { get; set; } + + [JsonProperty("image_url", NullValueHandling = NullValueHandling.Ignore)] + public string ImageUrl { get; set; } + + [JsonProperty("min_disk", NullValueHandling = NullValueHandling.Ignore)] + public int? MinDisk { get; set; } + + [JsonProperty("is_config", NullValueHandling = NullValueHandling.Ignore)] + public bool? IsConfig { get; set; } + + [JsonProperty("cmk_id", NullValueHandling = NullValueHandling.Ignore)] + public string CmkId { get; set; } + + [JsonProperty("type", NullValueHandling = NullValueHandling.Ignore)] + public TypeEnum Type { get; set; } + [JsonProperty("is_quick_import", NullValueHandling = NullValueHandling.Ignore)] + public bool? IsQuickImport { get; set; } + + [JsonProperty("architecture", NullValueHandling = NullValueHandling.Ignore)] + public ArchitectureEnum Architecture { get; set; } + [JsonProperty("volume_id", NullValueHandling = NullValueHandling.Ignore)] + public string VolumeId { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CreateImageRequestBody {\n"); + sb.Append(" dataImages: ").Append(DataImages).Append("\n"); + sb.Append(" description: ").Append(Description).Append("\n"); + sb.Append(" enterpriseProjectId: ").Append(EnterpriseProjectId).Append("\n"); + sb.Append(" imageTags: ").Append(ImageTags).Append("\n"); + sb.Append(" instanceId: ").Append(InstanceId).Append("\n"); + sb.Append(" name: ").Append(Name).Append("\n"); + sb.Append(" tags: ").Append(Tags).Append("\n"); + sb.Append(" maxRam: ").Append(MaxRam).Append("\n"); + sb.Append(" minRam: ").Append(MinRam).Append("\n"); + sb.Append(" osVersion: ").Append(OsVersion).Append("\n"); + sb.Append(" imageUrl: ").Append(ImageUrl).Append("\n"); + sb.Append(" minDisk: ").Append(MinDisk).Append("\n"); + sb.Append(" isConfig: ").Append(IsConfig).Append("\n"); + sb.Append(" cmkId: ").Append(CmkId).Append("\n"); + sb.Append(" type: ").Append(Type).Append("\n"); + sb.Append(" isQuickImport: ").Append(IsQuickImport).Append("\n"); + sb.Append(" architecture: ").Append(Architecture).Append("\n"); + sb.Append(" volumeId: ").Append(VolumeId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as CreateImageRequestBody); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(CreateImageRequestBody input) + { + if (input == null) + return false; + + return + ( + this.DataImages == input.DataImages || + this.DataImages != null && + input.DataImages != null && + this.DataImages.SequenceEqual(input.DataImages) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.EnterpriseProjectId == input.EnterpriseProjectId || + (this.EnterpriseProjectId != null && + this.EnterpriseProjectId.Equals(input.EnterpriseProjectId)) + ) && + ( + this.ImageTags == input.ImageTags || + this.ImageTags != null && + input.ImageTags != null && + this.ImageTags.SequenceEqual(input.ImageTags) + ) && + ( + this.InstanceId == input.InstanceId || + (this.InstanceId != null && + this.InstanceId.Equals(input.InstanceId)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Tags == input.Tags || + this.Tags != null && + input.Tags != null && + this.Tags.SequenceEqual(input.Tags) + ) && + ( + this.MaxRam == input.MaxRam || + (this.MaxRam != null && + this.MaxRam.Equals(input.MaxRam)) + ) && + ( + this.MinRam == input.MinRam || + (this.MinRam != null && + this.MinRam.Equals(input.MinRam)) + ) && + ( + this.OsVersion == input.OsVersion || + (this.OsVersion != null && + this.OsVersion.Equals(input.OsVersion)) + ) && + ( + this.ImageUrl == input.ImageUrl || + (this.ImageUrl != null && + this.ImageUrl.Equals(input.ImageUrl)) + ) && + ( + this.MinDisk == input.MinDisk || + (this.MinDisk != null && + this.MinDisk.Equals(input.MinDisk)) + ) && + ( + this.IsConfig == input.IsConfig || + (this.IsConfig != null && + this.IsConfig.Equals(input.IsConfig)) + ) && + ( + this.CmkId == input.CmkId || + (this.CmkId != null && + this.CmkId.Equals(input.CmkId)) + ) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && + ( + this.IsQuickImport == input.IsQuickImport || + (this.IsQuickImport != null && + this.IsQuickImport.Equals(input.IsQuickImport)) + ) && + ( + this.Architecture == input.Architecture || + (this.Architecture != null && + this.Architecture.Equals(input.Architecture)) + ) && + ( + this.VolumeId == input.VolumeId || + (this.VolumeId != null && + this.VolumeId.Equals(input.VolumeId)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.DataImages != null) + hashCode = hashCode * 59 + this.DataImages.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.EnterpriseProjectId != null) + hashCode = hashCode * 59 + this.EnterpriseProjectId.GetHashCode(); + if (this.ImageTags != null) + hashCode = hashCode * 59 + this.ImageTags.GetHashCode(); + if (this.InstanceId != null) + hashCode = hashCode * 59 + this.InstanceId.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Tags != null) + hashCode = hashCode * 59 + this.Tags.GetHashCode(); + if (this.MaxRam != null) + hashCode = hashCode * 59 + this.MaxRam.GetHashCode(); + if (this.MinRam != null) + hashCode = hashCode * 59 + this.MinRam.GetHashCode(); + if (this.OsVersion != null) + hashCode = hashCode * 59 + this.OsVersion.GetHashCode(); + if (this.ImageUrl != null) + hashCode = hashCode * 59 + this.ImageUrl.GetHashCode(); + if (this.MinDisk != null) + hashCode = hashCode * 59 + this.MinDisk.GetHashCode(); + if (this.IsConfig != null) + hashCode = hashCode * 59 + this.IsConfig.GetHashCode(); + if (this.CmkId != null) + hashCode = hashCode * 59 + this.CmkId.GetHashCode(); + if (this.Type != null) + hashCode = hashCode * 59 + this.Type.GetHashCode(); + if (this.IsQuickImport != null) + hashCode = hashCode * 59 + this.IsQuickImport.GetHashCode(); + if (this.Architecture != null) + hashCode = hashCode * 59 + this.Architecture.GetHashCode(); + if (this.VolumeId != null) + hashCode = hashCode * 59 + this.VolumeId.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/CreateImageResponse.cs b/Services/Ims/V2/Model/CreateImageResponse.cs new file mode 100755 index 0000000..5379524 --- /dev/null +++ b/Services/Ims/V2/Model/CreateImageResponse.cs @@ -0,0 +1,73 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Response Object + /// + public class CreateImageResponse : SdkResponse + { + + [JsonProperty("job_id", NullValueHandling = NullValueHandling.Ignore)] + public string JobId { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CreateImageResponse {\n"); + sb.Append(" jobId: ").Append(JobId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as CreateImageResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(CreateImageResponse input) + { + if (input == null) + return false; + + return + ( + this.JobId == input.JobId || + (this.JobId != null && + this.JobId.Equals(input.JobId)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.JobId != null) + hashCode = hashCode * 59 + this.JobId.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/CreateOrUpdateTagsRequest.cs b/Services/Ims/V2/Model/CreateOrUpdateTagsRequest.cs new file mode 100755 index 0000000..23e177a --- /dev/null +++ b/Services/Ims/V2/Model/CreateOrUpdateTagsRequest.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Request Object + /// + public class CreateOrUpdateTagsRequest + { + + [SDKProperty("body", IsBody = true)] + [JsonProperty("body", NullValueHandling = NullValueHandling.Ignore)] + public AddOrUpdateTagsRequestBody Body { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CreateOrUpdateTagsRequest {\n"); + sb.Append(" body: ").Append(Body).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as CreateOrUpdateTagsRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(CreateOrUpdateTagsRequest input) + { + if (input == null) + return false; + + return + ( + this.Body == input.Body || + (this.Body != null && + this.Body.Equals(input.Body)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Body != null) + hashCode = hashCode * 59 + this.Body.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/CreateOrUpdateTagsResponse.cs b/Services/Ims/V2/Model/CreateOrUpdateTagsResponse.cs new file mode 100755 index 0000000..032e608 --- /dev/null +++ b/Services/Ims/V2/Model/CreateOrUpdateTagsResponse.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Response Object + /// + public class CreateOrUpdateTagsResponse : SdkResponse + { + + + } +} diff --git a/Services/Ims/V2/Model/CreateWholeImageRequest.cs b/Services/Ims/V2/Model/CreateWholeImageRequest.cs new file mode 100755 index 0000000..c801a04 --- /dev/null +++ b/Services/Ims/V2/Model/CreateWholeImageRequest.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Request Object + /// + public class CreateWholeImageRequest + { + + [SDKProperty("body", IsBody = true)] + [JsonProperty("body", NullValueHandling = NullValueHandling.Ignore)] + public CreateWholeImageRequestBody Body { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CreateWholeImageRequest {\n"); + sb.Append(" body: ").Append(Body).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as CreateWholeImageRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(CreateWholeImageRequest input) + { + if (input == null) + return false; + + return + ( + this.Body == input.Body || + (this.Body != null && + this.Body.Equals(input.Body)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Body != null) + hashCode = hashCode * 59 + this.Body.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/CreateWholeImageRequestBody.cs b/Services/Ims/V2/Model/CreateWholeImageRequestBody.cs new file mode 100755 index 0000000..644bceb --- /dev/null +++ b/Services/Ims/V2/Model/CreateWholeImageRequestBody.cs @@ -0,0 +1,185 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// + /// + public class CreateWholeImageRequestBody + { + + [JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)] + public string Description { get; set; } + + [JsonProperty("enterprise_project_id", NullValueHandling = NullValueHandling.Ignore)] + public string EnterpriseProjectId { get; set; } + + [JsonProperty("image_tags", NullValueHandling = NullValueHandling.Ignore)] + public List ImageTags { get; set; } + + [JsonProperty("instance_id", NullValueHandling = NullValueHandling.Ignore)] + public string InstanceId { get; set; } + + [JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)] + public string Name { get; set; } + + [JsonProperty("tags", NullValueHandling = NullValueHandling.Ignore)] + public List Tags { get; set; } + + [JsonProperty("backup_id", NullValueHandling = NullValueHandling.Ignore)] + public string BackupId { get; set; } + + [JsonProperty("whole_image_type", NullValueHandling = NullValueHandling.Ignore)] + public string WholeImageType { get; set; } + + [JsonProperty("max_ram", NullValueHandling = NullValueHandling.Ignore)] + public int? MaxRam { get; set; } + + [JsonProperty("min_ram", NullValueHandling = NullValueHandling.Ignore)] + public int? MinRam { get; set; } + + [JsonProperty("vault_id", NullValueHandling = NullValueHandling.Ignore)] + public string VaultId { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CreateWholeImageRequestBody {\n"); + sb.Append(" description: ").Append(Description).Append("\n"); + sb.Append(" enterpriseProjectId: ").Append(EnterpriseProjectId).Append("\n"); + sb.Append(" imageTags: ").Append(ImageTags).Append("\n"); + sb.Append(" instanceId: ").Append(InstanceId).Append("\n"); + sb.Append(" name: ").Append(Name).Append("\n"); + sb.Append(" tags: ").Append(Tags).Append("\n"); + sb.Append(" backupId: ").Append(BackupId).Append("\n"); + sb.Append(" wholeImageType: ").Append(WholeImageType).Append("\n"); + sb.Append(" maxRam: ").Append(MaxRam).Append("\n"); + sb.Append(" minRam: ").Append(MinRam).Append("\n"); + sb.Append(" vaultId: ").Append(VaultId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as CreateWholeImageRequestBody); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(CreateWholeImageRequestBody input) + { + if (input == null) + return false; + + return + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.EnterpriseProjectId == input.EnterpriseProjectId || + (this.EnterpriseProjectId != null && + this.EnterpriseProjectId.Equals(input.EnterpriseProjectId)) + ) && + ( + this.ImageTags == input.ImageTags || + this.ImageTags != null && + input.ImageTags != null && + this.ImageTags.SequenceEqual(input.ImageTags) + ) && + ( + this.InstanceId == input.InstanceId || + (this.InstanceId != null && + this.InstanceId.Equals(input.InstanceId)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Tags == input.Tags || + this.Tags != null && + input.Tags != null && + this.Tags.SequenceEqual(input.Tags) + ) && + ( + this.BackupId == input.BackupId || + (this.BackupId != null && + this.BackupId.Equals(input.BackupId)) + ) && + ( + this.WholeImageType == input.WholeImageType || + (this.WholeImageType != null && + this.WholeImageType.Equals(input.WholeImageType)) + ) && + ( + this.MaxRam == input.MaxRam || + (this.MaxRam != null && + this.MaxRam.Equals(input.MaxRam)) + ) && + ( + this.MinRam == input.MinRam || + (this.MinRam != null && + this.MinRam.Equals(input.MinRam)) + ) && + ( + this.VaultId == input.VaultId || + (this.VaultId != null && + this.VaultId.Equals(input.VaultId)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.EnterpriseProjectId != null) + hashCode = hashCode * 59 + this.EnterpriseProjectId.GetHashCode(); + if (this.ImageTags != null) + hashCode = hashCode * 59 + this.ImageTags.GetHashCode(); + if (this.InstanceId != null) + hashCode = hashCode * 59 + this.InstanceId.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Tags != null) + hashCode = hashCode * 59 + this.Tags.GetHashCode(); + if (this.BackupId != null) + hashCode = hashCode * 59 + this.BackupId.GetHashCode(); + if (this.WholeImageType != null) + hashCode = hashCode * 59 + this.WholeImageType.GetHashCode(); + if (this.MaxRam != null) + hashCode = hashCode * 59 + this.MaxRam.GetHashCode(); + if (this.MinRam != null) + hashCode = hashCode * 59 + this.MinRam.GetHashCode(); + if (this.VaultId != null) + hashCode = hashCode * 59 + this.VaultId.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/CreateWholeImageResponse.cs b/Services/Ims/V2/Model/CreateWholeImageResponse.cs new file mode 100755 index 0000000..a142a84 --- /dev/null +++ b/Services/Ims/V2/Model/CreateWholeImageResponse.cs @@ -0,0 +1,73 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Response Object + /// + public class CreateWholeImageResponse : SdkResponse + { + + [JsonProperty("job_id", NullValueHandling = NullValueHandling.Ignore)] + public string JobId { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CreateWholeImageResponse {\n"); + sb.Append(" jobId: ").Append(JobId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as CreateWholeImageResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(CreateWholeImageResponse input) + { + if (input == null) + return false; + + return + ( + this.JobId == input.JobId || + (this.JobId != null && + this.JobId.Equals(input.JobId)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.JobId != null) + hashCode = hashCode * 59 + this.JobId.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/DeleteImageTagRequest.cs b/Services/Ims/V2/Model/DeleteImageTagRequest.cs new file mode 100755 index 0000000..9998505 --- /dev/null +++ b/Services/Ims/V2/Model/DeleteImageTagRequest.cs @@ -0,0 +1,86 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Request Object + /// + public class DeleteImageTagRequest + { + + [SDKProperty("image_id", IsPath = true)] + [JsonProperty("image_id", NullValueHandling = NullValueHandling.Ignore)] + public string ImageId { get; set; } + + [SDKProperty("key", IsPath = true)] + [JsonProperty("key", NullValueHandling = NullValueHandling.Ignore)] + public string Key { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class DeleteImageTagRequest {\n"); + sb.Append(" imageId: ").Append(ImageId).Append("\n"); + sb.Append(" key: ").Append(Key).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as DeleteImageTagRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(DeleteImageTagRequest input) + { + if (input == null) + return false; + + return + ( + this.ImageId == input.ImageId || + (this.ImageId != null && + this.ImageId.Equals(input.ImageId)) + ) && + ( + this.Key == input.Key || + (this.Key != null && + this.Key.Equals(input.Key)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ImageId != null) + hashCode = hashCode * 59 + this.ImageId.GetHashCode(); + if (this.Key != null) + hashCode = hashCode * 59 + this.Key.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/DeleteImageTagResponse.cs b/Services/Ims/V2/Model/DeleteImageTagResponse.cs new file mode 100755 index 0000000..5860cf6 --- /dev/null +++ b/Services/Ims/V2/Model/DeleteImageTagResponse.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Response Object + /// + public class DeleteImageTagResponse : SdkResponse + { + + + } +} diff --git a/Services/Ims/V2/Model/ExportImageRequest.cs b/Services/Ims/V2/Model/ExportImageRequest.cs new file mode 100755 index 0000000..0ab645f --- /dev/null +++ b/Services/Ims/V2/Model/ExportImageRequest.cs @@ -0,0 +1,86 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Request Object + /// + public class ExportImageRequest + { + + [SDKProperty("image_id", IsPath = true)] + [JsonProperty("image_id", NullValueHandling = NullValueHandling.Ignore)] + public string ImageId { get; set; } + + [SDKProperty("body", IsBody = true)] + [JsonProperty("body", NullValueHandling = NullValueHandling.Ignore)] + public ExportImageRequestBody Body { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ExportImageRequest {\n"); + sb.Append(" imageId: ").Append(ImageId).Append("\n"); + sb.Append(" body: ").Append(Body).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ExportImageRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ExportImageRequest input) + { + if (input == null) + return false; + + return + ( + this.ImageId == input.ImageId || + (this.ImageId != null && + this.ImageId.Equals(input.ImageId)) + ) && + ( + this.Body == input.Body || + (this.Body != null && + this.Body.Equals(input.Body)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ImageId != null) + hashCode = hashCode * 59 + this.ImageId.GetHashCode(); + if (this.Body != null) + hashCode = hashCode * 59 + this.Body.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/ExportImageRequestBody.cs b/Services/Ims/V2/Model/ExportImageRequestBody.cs new file mode 100755 index 0000000..aa157db --- /dev/null +++ b/Services/Ims/V2/Model/ExportImageRequestBody.cs @@ -0,0 +1,217 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// 镜像导出请求体 + /// + public class ExportImageRequestBody + { + [JsonConverter(typeof(EnumClassConverter))] + public class FileFormatEnum + { + /// + /// Enum QCOW2 for value: qcow2 + /// + public static readonly FileFormatEnum QCOW2 = new FileFormatEnum("qcow2"); + + /// + /// Enum VHD for value: vhd + /// + public static readonly FileFormatEnum VHD = new FileFormatEnum("vhd"); + + /// + /// Enum ZVHD for value: zvhd + /// + public static readonly FileFormatEnum ZVHD = new FileFormatEnum("zvhd"); + + /// + /// Enum VMDK for value: vmdk + /// + public static readonly FileFormatEnum VMDK = new FileFormatEnum("vmdk"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "qcow2", QCOW2 }, + { "vhd", VHD }, + { "zvhd", ZVHD }, + { "vmdk", VMDK }, + }; + + private string _value; + + public FileFormatEnum() + { + + } + + public FileFormatEnum(string value) + { + _value = value; + } + + public static FileFormatEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as FileFormatEnum)) + { + return true; + } + + return false; + } + + public bool Equals(FileFormatEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(FileFormatEnum a, FileFormatEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(FileFormatEnum a, FileFormatEnum b) + { + return !(a == b); + } + } + + + [JsonProperty("bucket_url", NullValueHandling = NullValueHandling.Ignore)] + public string BucketUrl { get; set; } + + [JsonProperty("file_format", NullValueHandling = NullValueHandling.Ignore)] + public FileFormatEnum FileFormat { get; set; } + [JsonProperty("is_quick_export", NullValueHandling = NullValueHandling.Ignore)] + public bool? IsQuickExport { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ExportImageRequestBody {\n"); + sb.Append(" bucketUrl: ").Append(BucketUrl).Append("\n"); + sb.Append(" fileFormat: ").Append(FileFormat).Append("\n"); + sb.Append(" isQuickExport: ").Append(IsQuickExport).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ExportImageRequestBody); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ExportImageRequestBody input) + { + if (input == null) + return false; + + return + ( + this.BucketUrl == input.BucketUrl || + (this.BucketUrl != null && + this.BucketUrl.Equals(input.BucketUrl)) + ) && + ( + this.FileFormat == input.FileFormat || + (this.FileFormat != null && + this.FileFormat.Equals(input.FileFormat)) + ) && + ( + this.IsQuickExport == input.IsQuickExport || + (this.IsQuickExport != null && + this.IsQuickExport.Equals(input.IsQuickExport)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.BucketUrl != null) + hashCode = hashCode * 59 + this.BucketUrl.GetHashCode(); + if (this.FileFormat != null) + hashCode = hashCode * 59 + this.FileFormat.GetHashCode(); + if (this.IsQuickExport != null) + hashCode = hashCode * 59 + this.IsQuickExport.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/ExportImageResponse.cs b/Services/Ims/V2/Model/ExportImageResponse.cs new file mode 100755 index 0000000..76401cb --- /dev/null +++ b/Services/Ims/V2/Model/ExportImageResponse.cs @@ -0,0 +1,73 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Response Object + /// + public class ExportImageResponse : SdkResponse + { + + [JsonProperty("job_id", NullValueHandling = NullValueHandling.Ignore)] + public string JobId { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ExportImageResponse {\n"); + sb.Append(" jobId: ").Append(JobId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ExportImageResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ExportImageResponse input) + { + if (input == null) + return false; + + return + ( + this.JobId == input.JobId || + (this.JobId != null && + this.JobId.Equals(input.JobId)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.JobId != null) + hashCode = hashCode * 59 + this.JobId.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/GlanceAddImageMemberRequest.cs b/Services/Ims/V2/Model/GlanceAddImageMemberRequest.cs new file mode 100755 index 0000000..e5df610 --- /dev/null +++ b/Services/Ims/V2/Model/GlanceAddImageMemberRequest.cs @@ -0,0 +1,86 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Request Object + /// + public class GlanceAddImageMemberRequest + { + + [SDKProperty("image_id", IsPath = true)] + [JsonProperty("image_id", NullValueHandling = NullValueHandling.Ignore)] + public string ImageId { get; set; } + + [SDKProperty("body", IsBody = true)] + [JsonProperty("body", NullValueHandling = NullValueHandling.Ignore)] + public GlanceAddImageMemberRequestBody Body { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class GlanceAddImageMemberRequest {\n"); + sb.Append(" imageId: ").Append(ImageId).Append("\n"); + sb.Append(" body: ").Append(Body).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as GlanceAddImageMemberRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(GlanceAddImageMemberRequest input) + { + if (input == null) + return false; + + return + ( + this.ImageId == input.ImageId || + (this.ImageId != null && + this.ImageId.Equals(input.ImageId)) + ) && + ( + this.Body == input.Body || + (this.Body != null && + this.Body.Equals(input.Body)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ImageId != null) + hashCode = hashCode * 59 + this.ImageId.GetHashCode(); + if (this.Body != null) + hashCode = hashCode * 59 + this.Body.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/GlanceAddImageMemberRequestBody.cs b/Services/Ims/V2/Model/GlanceAddImageMemberRequestBody.cs new file mode 100755 index 0000000..35e0fbd --- /dev/null +++ b/Services/Ims/V2/Model/GlanceAddImageMemberRequestBody.cs @@ -0,0 +1,73 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// 添加镜像成员请求参数 + /// + public class GlanceAddImageMemberRequestBody + { + + [JsonProperty("member", NullValueHandling = NullValueHandling.Ignore)] + public string Member { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class GlanceAddImageMemberRequestBody {\n"); + sb.Append(" member: ").Append(Member).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as GlanceAddImageMemberRequestBody); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(GlanceAddImageMemberRequestBody input) + { + if (input == null) + return false; + + return + ( + this.Member == input.Member || + (this.Member != null && + this.Member.Equals(input.Member)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Member != null) + hashCode = hashCode * 59 + this.Member.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/GlanceAddImageMemberResponse.cs b/Services/Ims/V2/Model/GlanceAddImageMemberResponse.cs new file mode 100755 index 0000000..4513804 --- /dev/null +++ b/Services/Ims/V2/Model/GlanceAddImageMemberResponse.cs @@ -0,0 +1,128 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Response Object + /// + public class GlanceAddImageMemberResponse : SdkResponse + { + + [JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)] + public string Status { get; set; } + + [JsonProperty("created_at", NullValueHandling = NullValueHandling.Ignore)] + public string CreatedAt { get; set; } + + [JsonProperty("updated_at", NullValueHandling = NullValueHandling.Ignore)] + public string UpdatedAt { get; set; } + + [JsonProperty("image_id", NullValueHandling = NullValueHandling.Ignore)] + public string ImageId { get; set; } + + [JsonProperty("member_id", NullValueHandling = NullValueHandling.Ignore)] + public string MemberId { get; set; } + + [JsonProperty("schema", NullValueHandling = NullValueHandling.Ignore)] + public string Schema { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class GlanceAddImageMemberResponse {\n"); + sb.Append(" status: ").Append(Status).Append("\n"); + sb.Append(" createdAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" updatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append(" imageId: ").Append(ImageId).Append("\n"); + sb.Append(" memberId: ").Append(MemberId).Append("\n"); + sb.Append(" schema: ").Append(Schema).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as GlanceAddImageMemberResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(GlanceAddImageMemberResponse input) + { + if (input == null) + return false; + + return + ( + this.Status == input.Status || + (this.Status != null && + this.Status.Equals(input.Status)) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.UpdatedAt == input.UpdatedAt || + (this.UpdatedAt != null && + this.UpdatedAt.Equals(input.UpdatedAt)) + ) && + ( + this.ImageId == input.ImageId || + (this.ImageId != null && + this.ImageId.Equals(input.ImageId)) + ) && + ( + this.MemberId == input.MemberId || + (this.MemberId != null && + this.MemberId.Equals(input.MemberId)) + ) && + ( + this.Schema == input.Schema || + (this.Schema != null && + this.Schema.Equals(input.Schema)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Status != null) + hashCode = hashCode * 59 + this.Status.GetHashCode(); + if (this.CreatedAt != null) + hashCode = hashCode * 59 + this.CreatedAt.GetHashCode(); + if (this.UpdatedAt != null) + hashCode = hashCode * 59 + this.UpdatedAt.GetHashCode(); + if (this.ImageId != null) + hashCode = hashCode * 59 + this.ImageId.GetHashCode(); + if (this.MemberId != null) + hashCode = hashCode * 59 + this.MemberId.GetHashCode(); + if (this.Schema != null) + hashCode = hashCode * 59 + this.Schema.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/GlanceCreateImageMetadataRequest.cs b/Services/Ims/V2/Model/GlanceCreateImageMetadataRequest.cs new file mode 100755 index 0000000..bf5e661 --- /dev/null +++ b/Services/Ims/V2/Model/GlanceCreateImageMetadataRequest.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Request Object + /// + public class GlanceCreateImageMetadataRequest + { + + [SDKProperty("body", IsBody = true)] + [JsonProperty("body", NullValueHandling = NullValueHandling.Ignore)] + public GlanceCreateImageMetadataRequestBody Body { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class GlanceCreateImageMetadataRequest {\n"); + sb.Append(" body: ").Append(Body).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as GlanceCreateImageMetadataRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(GlanceCreateImageMetadataRequest input) + { + if (input == null) + return false; + + return + ( + this.Body == input.Body || + (this.Body != null && + this.Body.Equals(input.Body)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Body != null) + hashCode = hashCode * 59 + this.Body.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/GlanceCreateImageMetadataRequestBody.cs b/Services/Ims/V2/Model/GlanceCreateImageMetadataRequestBody.cs new file mode 100755 index 0000000..4fc8a23 --- /dev/null +++ b/Services/Ims/V2/Model/GlanceCreateImageMetadataRequestBody.cs @@ -0,0 +1,290 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// 创建镜像请求体 + /// + public class GlanceCreateImageMetadataRequestBody + { + [JsonConverter(typeof(EnumClassConverter))] + public class DiskFormatEnum + { + /// + /// Enum VHD for value: vhd + /// + public static readonly DiskFormatEnum VHD = new DiskFormatEnum("vhd"); + + /// + /// Enum ZVHD for value: zvhd + /// + public static readonly DiskFormatEnum ZVHD = new DiskFormatEnum("zvhd"); + + /// + /// Enum ZVHD2 for value: zvhd2 + /// + public static readonly DiskFormatEnum ZVHD2 = new DiskFormatEnum("zvhd2"); + + /// + /// Enum RAW for value: raw + /// + public static readonly DiskFormatEnum RAW = new DiskFormatEnum("raw"); + + /// + /// Enum QCOW2 for value: qcow2 + /// + public static readonly DiskFormatEnum QCOW2 = new DiskFormatEnum("qcow2"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "vhd", VHD }, + { "zvhd", ZVHD }, + { "zvhd2", ZVHD2 }, + { "raw", RAW }, + { "qcow2", QCOW2 }, + }; + + private string _value; + + public DiskFormatEnum() + { + + } + + public DiskFormatEnum(string value) + { + _value = value; + } + + public static DiskFormatEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as DiskFormatEnum)) + { + return true; + } + + return false; + } + + public bool Equals(DiskFormatEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(DiskFormatEnum a, DiskFormatEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(DiskFormatEnum a, DiskFormatEnum b) + { + return !(a == b); + } + } + + + [JsonProperty("__os_version", NullValueHandling = NullValueHandling.Ignore)] + public string OsVersion { get; set; } + + [JsonProperty("container_format", NullValueHandling = NullValueHandling.Ignore)] + public string ContainerFormat { get; set; } + + [JsonProperty("disk_format", NullValueHandling = NullValueHandling.Ignore)] + public DiskFormatEnum DiskFormat { get; set; } + [JsonProperty("min_disk", NullValueHandling = NullValueHandling.Ignore)] + public int? MinDisk { get; set; } + + [JsonProperty("min_ram", NullValueHandling = NullValueHandling.Ignore)] + public int? MinRam { get; set; } + + [JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)] + public string Name { get; set; } + + [JsonProperty("protected", NullValueHandling = NullValueHandling.Ignore)] + public bool? Protected { get; set; } + + [JsonProperty("tags", NullValueHandling = NullValueHandling.Ignore)] + public List Tags { get; set; } + + [JsonProperty("visibility", NullValueHandling = NullValueHandling.Ignore)] + public string Visibility { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class GlanceCreateImageMetadataRequestBody {\n"); + sb.Append(" osVersion: ").Append(OsVersion).Append("\n"); + sb.Append(" containerFormat: ").Append(ContainerFormat).Append("\n"); + sb.Append(" diskFormat: ").Append(DiskFormat).Append("\n"); + sb.Append(" minDisk: ").Append(MinDisk).Append("\n"); + sb.Append(" minRam: ").Append(MinRam).Append("\n"); + sb.Append(" name: ").Append(Name).Append("\n"); + sb.Append(" Protected: ").Append(Protected).Append("\n"); + sb.Append(" tags: ").Append(Tags).Append("\n"); + sb.Append(" visibility: ").Append(Visibility).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as GlanceCreateImageMetadataRequestBody); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(GlanceCreateImageMetadataRequestBody input) + { + if (input == null) + return false; + + return + ( + this.OsVersion == input.OsVersion || + (this.OsVersion != null && + this.OsVersion.Equals(input.OsVersion)) + ) && + ( + this.ContainerFormat == input.ContainerFormat || + (this.ContainerFormat != null && + this.ContainerFormat.Equals(input.ContainerFormat)) + ) && + ( + this.DiskFormat == input.DiskFormat || + (this.DiskFormat != null && + this.DiskFormat.Equals(input.DiskFormat)) + ) && + ( + this.MinDisk == input.MinDisk || + (this.MinDisk != null && + this.MinDisk.Equals(input.MinDisk)) + ) && + ( + this.MinRam == input.MinRam || + (this.MinRam != null && + this.MinRam.Equals(input.MinRam)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Protected == input.Protected || + (this.Protected != null && + this.Protected.Equals(input.Protected)) + ) && + ( + this.Tags == input.Tags || + this.Tags != null && + input.Tags != null && + this.Tags.SequenceEqual(input.Tags) + ) && + ( + this.Visibility == input.Visibility || + (this.Visibility != null && + this.Visibility.Equals(input.Visibility)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.OsVersion != null) + hashCode = hashCode * 59 + this.OsVersion.GetHashCode(); + if (this.ContainerFormat != null) + hashCode = hashCode * 59 + this.ContainerFormat.GetHashCode(); + if (this.DiskFormat != null) + hashCode = hashCode * 59 + this.DiskFormat.GetHashCode(); + if (this.MinDisk != null) + hashCode = hashCode * 59 + this.MinDisk.GetHashCode(); + if (this.MinRam != null) + hashCode = hashCode * 59 + this.MinRam.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Protected != null) + hashCode = hashCode * 59 + this.Protected.GetHashCode(); + if (this.Tags != null) + hashCode = hashCode * 59 + this.Tags.GetHashCode(); + if (this.Visibility != null) + hashCode = hashCode * 59 + this.Visibility.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/GlanceCreateImageMetadataResponse.cs b/Services/Ims/V2/Model/GlanceCreateImageMetadataResponse.cs new file mode 100755 index 0000000..9635e0a --- /dev/null +++ b/Services/Ims/V2/Model/GlanceCreateImageMetadataResponse.cs @@ -0,0 +1,985 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Response Object + /// + public class GlanceCreateImageMetadataResponse : SdkResponse + { + [JsonConverter(typeof(EnumClassConverter))] + public class DiskFormatEnum + { + /// + /// Enum VHD for value: vhd + /// + public static readonly DiskFormatEnum VHD = new DiskFormatEnum("vhd"); + + /// + /// Enum ZVHD for value: zvhd + /// + public static readonly DiskFormatEnum ZVHD = new DiskFormatEnum("zvhd"); + + /// + /// Enum RAW for value: raw + /// + public static readonly DiskFormatEnum RAW = new DiskFormatEnum("raw"); + + /// + /// Enum QCOW2 for value: qcow2 + /// + public static readonly DiskFormatEnum QCOW2 = new DiskFormatEnum("qcow2"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "vhd", VHD }, + { "zvhd", ZVHD }, + { "raw", RAW }, + { "qcow2", QCOW2 }, + }; + + private string _value; + + public DiskFormatEnum() + { + + } + + public DiskFormatEnum(string value) + { + _value = value; + } + + public static DiskFormatEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as DiskFormatEnum)) + { + return true; + } + + return false; + } + + public bool Equals(DiskFormatEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(DiskFormatEnum a, DiskFormatEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(DiskFormatEnum a, DiskFormatEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class StatusEnum + { + /// + /// Enum QUEUED for value: queued + /// + public static readonly StatusEnum QUEUED = new StatusEnum("queued"); + + /// + /// Enum SAVING for value: saving + /// + public static readonly StatusEnum SAVING = new StatusEnum("saving"); + + /// + /// Enum DELETED for value: deleted + /// + public static readonly StatusEnum DELETED = new StatusEnum("deleted"); + + /// + /// Enum KILLED for value: killed + /// + public static readonly StatusEnum KILLED = new StatusEnum("killed"); + + /// + /// Enum ACTIVE for value: active + /// + public static readonly StatusEnum ACTIVE = new StatusEnum("active"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "queued", QUEUED }, + { "saving", SAVING }, + { "deleted", DELETED }, + { "killed", KILLED }, + { "active", ACTIVE }, + }; + + private string _value; + + public StatusEnum() + { + + } + + public StatusEnum(string value) + { + _value = value; + } + + public static StatusEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as StatusEnum)) + { + return true; + } + + return false; + } + + public bool Equals(StatusEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(StatusEnum a, StatusEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(StatusEnum a, StatusEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class OsTypeEnum + { + /// + /// Enum WINDOWS for value: Windows + /// + public static readonly OsTypeEnum WINDOWS = new OsTypeEnum("Windows"); + + /// + /// Enum LINUX for value: Linux + /// + public static readonly OsTypeEnum LINUX = new OsTypeEnum("Linux"); + + /// + /// Enum OTHER for value: other + /// + public static readonly OsTypeEnum OTHER = new OsTypeEnum("other"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "Windows", WINDOWS }, + { "Linux", LINUX }, + { "other", OTHER }, + }; + + private string _value; + + public OsTypeEnum() + { + + } + + public OsTypeEnum(string value) + { + _value = value; + } + + public static OsTypeEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as OsTypeEnum)) + { + return true; + } + + return false; + } + + public bool Equals(OsTypeEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(OsTypeEnum a, OsTypeEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(OsTypeEnum a, OsTypeEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class OsBitEnum + { + /// + /// Enum _32 for value: 32 + /// + public static readonly OsBitEnum _32 = new OsBitEnum("32"); + + /// + /// Enum _64 for value: 64 + /// + public static readonly OsBitEnum _64 = new OsBitEnum("64"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "32", _32 }, + { "64", _64 }, + }; + + private string _value; + + public OsBitEnum() + { + + } + + public OsBitEnum(string value) + { + _value = value; + } + + public static OsBitEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as OsBitEnum)) + { + return true; + } + + return false; + } + + public bool Equals(OsBitEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(OsBitEnum a, OsBitEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(OsBitEnum a, OsBitEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class VirtualEnvTypeEnum + { + /// + /// Enum FUSIONCOMPUTE for value: FusionCompute + /// + public static readonly VirtualEnvTypeEnum FUSIONCOMPUTE = new VirtualEnvTypeEnum("FusionCompute"); + + /// + /// Enum IRONIC for value: Ironic + /// + public static readonly VirtualEnvTypeEnum IRONIC = new VirtualEnvTypeEnum("Ironic"); + + /// + /// Enum DATAIMAGE for value: DataImage + /// + public static readonly VirtualEnvTypeEnum DATAIMAGE = new VirtualEnvTypeEnum("DataImage"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "FusionCompute", FUSIONCOMPUTE }, + { "Ironic", IRONIC }, + { "DataImage", DATAIMAGE }, + }; + + private string _value; + + public VirtualEnvTypeEnum() + { + + } + + public VirtualEnvTypeEnum(string value) + { + _value = value; + } + + public static VirtualEnvTypeEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as VirtualEnvTypeEnum)) + { + return true; + } + + return false; + } + + public bool Equals(VirtualEnvTypeEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(VirtualEnvTypeEnum a, VirtualEnvTypeEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(VirtualEnvTypeEnum a, VirtualEnvTypeEnum b) + { + return !(a == b); + } + } + + + [JsonProperty("visibility", NullValueHandling = NullValueHandling.Ignore)] + public string Visibility { get; set; } + + [JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)] + public string Name { get; set; } + + [JsonProperty("protected", NullValueHandling = NullValueHandling.Ignore)] + public bool? Protected { get; set; } + + [JsonProperty("container_format", NullValueHandling = NullValueHandling.Ignore)] + public string ContainerFormat { get; set; } + + [JsonProperty("disk_format", NullValueHandling = NullValueHandling.Ignore)] + public DiskFormatEnum DiskFormat { get; set; } + [JsonProperty("tags", NullValueHandling = NullValueHandling.Ignore)] + public List Tags { get; set; } + + [JsonProperty("min_ram", NullValueHandling = NullValueHandling.Ignore)] + public int? MinRam { get; set; } + + [JsonProperty("min_disk", NullValueHandling = NullValueHandling.Ignore)] + public int? MinDisk { get; set; } + + [JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)] + public StatusEnum Status { get; set; } + [JsonProperty("created_at", NullValueHandling = NullValueHandling.Ignore)] + public string CreatedAt { get; set; } + + [JsonProperty("updated_at", NullValueHandling = NullValueHandling.Ignore)] + public string UpdatedAt { get; set; } + + [JsonProperty("self", NullValueHandling = NullValueHandling.Ignore)] + public string Self { get; set; } + + [JsonProperty("id", NullValueHandling = NullValueHandling.Ignore)] + public string Id { get; set; } + + [JsonProperty("file", NullValueHandling = NullValueHandling.Ignore)] + public string File { get; set; } + + [JsonProperty("schema", NullValueHandling = NullValueHandling.Ignore)] + public string Schema { get; set; } + + [JsonProperty("__image_source_type", NullValueHandling = NullValueHandling.Ignore)] + public string ImageSourceType { get; set; } + + [JsonProperty("__image_size", NullValueHandling = NullValueHandling.Ignore)] + public string ImageSize { get; set; } + + [JsonProperty("__isregistered", NullValueHandling = NullValueHandling.Ignore)] + public string Isregistered { get; set; } + + [JsonProperty("__os_version", NullValueHandling = NullValueHandling.Ignore)] + public string OsVersion { get; set; } + + [JsonProperty("__os_type", NullValueHandling = NullValueHandling.Ignore)] + public OsTypeEnum OsType { get; set; } + [JsonProperty("__platform", NullValueHandling = NullValueHandling.Ignore)] + public string Platform { get; set; } + + [JsonProperty("__os_bit", NullValueHandling = NullValueHandling.Ignore)] + public OsBitEnum OsBit { get; set; } + [JsonProperty("__imagetype", NullValueHandling = NullValueHandling.Ignore)] + public string Imagetype { get; set; } + + [JsonProperty("virtual_env_type", NullValueHandling = NullValueHandling.Ignore)] + public VirtualEnvTypeEnum VirtualEnvType { get; set; } + [JsonProperty("owner", NullValueHandling = NullValueHandling.Ignore)] + public string Owner { get; set; } + + [JsonProperty("virtual_size", NullValueHandling = NullValueHandling.Ignore)] + public int? VirtualSize { get; set; } + + [JsonProperty("properties", NullValueHandling = NullValueHandling.Ignore)] + public Object Properties { get; set; } + + [JsonProperty("__root_origin", NullValueHandling = NullValueHandling.Ignore)] + public string RootOrigin { get; set; } + + [JsonProperty("checksum", NullValueHandling = NullValueHandling.Ignore)] + public string Checksum { get; set; } + + [JsonProperty("size", NullValueHandling = NullValueHandling.Ignore)] + public long? Size { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class GlanceCreateImageMetadataResponse {\n"); + sb.Append(" visibility: ").Append(Visibility).Append("\n"); + sb.Append(" name: ").Append(Name).Append("\n"); + sb.Append(" Protected: ").Append(Protected).Append("\n"); + sb.Append(" containerFormat: ").Append(ContainerFormat).Append("\n"); + sb.Append(" diskFormat: ").Append(DiskFormat).Append("\n"); + sb.Append(" tags: ").Append(Tags).Append("\n"); + sb.Append(" minRam: ").Append(MinRam).Append("\n"); + sb.Append(" minDisk: ").Append(MinDisk).Append("\n"); + sb.Append(" status: ").Append(Status).Append("\n"); + sb.Append(" createdAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" updatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append(" self: ").Append(Self).Append("\n"); + sb.Append(" id: ").Append(Id).Append("\n"); + sb.Append(" file: ").Append(File).Append("\n"); + sb.Append(" schema: ").Append(Schema).Append("\n"); + sb.Append(" imageSourceType: ").Append(ImageSourceType).Append("\n"); + sb.Append(" imageSize: ").Append(ImageSize).Append("\n"); + sb.Append(" isregistered: ").Append(Isregistered).Append("\n"); + sb.Append(" osVersion: ").Append(OsVersion).Append("\n"); + sb.Append(" osType: ").Append(OsType).Append("\n"); + sb.Append(" platform: ").Append(Platform).Append("\n"); + sb.Append(" osBit: ").Append(OsBit).Append("\n"); + sb.Append(" imagetype: ").Append(Imagetype).Append("\n"); + sb.Append(" virtualEnvType: ").Append(VirtualEnvType).Append("\n"); + sb.Append(" owner: ").Append(Owner).Append("\n"); + sb.Append(" virtualSize: ").Append(VirtualSize).Append("\n"); + sb.Append(" properties: ").Append(Properties).Append("\n"); + sb.Append(" rootOrigin: ").Append(RootOrigin).Append("\n"); + sb.Append(" checksum: ").Append(Checksum).Append("\n"); + sb.Append(" size: ").Append(Size).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as GlanceCreateImageMetadataResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(GlanceCreateImageMetadataResponse input) + { + if (input == null) + return false; + + return + ( + this.Visibility == input.Visibility || + (this.Visibility != null && + this.Visibility.Equals(input.Visibility)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Protected == input.Protected || + (this.Protected != null && + this.Protected.Equals(input.Protected)) + ) && + ( + this.ContainerFormat == input.ContainerFormat || + (this.ContainerFormat != null && + this.ContainerFormat.Equals(input.ContainerFormat)) + ) && + ( + this.DiskFormat == input.DiskFormat || + (this.DiskFormat != null && + this.DiskFormat.Equals(input.DiskFormat)) + ) && + ( + this.Tags == input.Tags || + this.Tags != null && + input.Tags != null && + this.Tags.SequenceEqual(input.Tags) + ) && + ( + this.MinRam == input.MinRam || + (this.MinRam != null && + this.MinRam.Equals(input.MinRam)) + ) && + ( + this.MinDisk == input.MinDisk || + (this.MinDisk != null && + this.MinDisk.Equals(input.MinDisk)) + ) && + ( + this.Status == input.Status || + (this.Status != null && + this.Status.Equals(input.Status)) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.UpdatedAt == input.UpdatedAt || + (this.UpdatedAt != null && + this.UpdatedAt.Equals(input.UpdatedAt)) + ) && + ( + this.Self == input.Self || + (this.Self != null && + this.Self.Equals(input.Self)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.File == input.File || + (this.File != null && + this.File.Equals(input.File)) + ) && + ( + this.Schema == input.Schema || + (this.Schema != null && + this.Schema.Equals(input.Schema)) + ) && + ( + this.ImageSourceType == input.ImageSourceType || + (this.ImageSourceType != null && + this.ImageSourceType.Equals(input.ImageSourceType)) + ) && + ( + this.ImageSize == input.ImageSize || + (this.ImageSize != null && + this.ImageSize.Equals(input.ImageSize)) + ) && + ( + this.Isregistered == input.Isregistered || + (this.Isregistered != null && + this.Isregistered.Equals(input.Isregistered)) + ) && + ( + this.OsVersion == input.OsVersion || + (this.OsVersion != null && + this.OsVersion.Equals(input.OsVersion)) + ) && + ( + this.OsType == input.OsType || + (this.OsType != null && + this.OsType.Equals(input.OsType)) + ) && + ( + this.Platform == input.Platform || + (this.Platform != null && + this.Platform.Equals(input.Platform)) + ) && + ( + this.OsBit == input.OsBit || + (this.OsBit != null && + this.OsBit.Equals(input.OsBit)) + ) && + ( + this.Imagetype == input.Imagetype || + (this.Imagetype != null && + this.Imagetype.Equals(input.Imagetype)) + ) && + ( + this.VirtualEnvType == input.VirtualEnvType || + (this.VirtualEnvType != null && + this.VirtualEnvType.Equals(input.VirtualEnvType)) + ) && + ( + this.Owner == input.Owner || + (this.Owner != null && + this.Owner.Equals(input.Owner)) + ) && + ( + this.VirtualSize == input.VirtualSize || + (this.VirtualSize != null && + this.VirtualSize.Equals(input.VirtualSize)) + ) && + ( + this.Properties == input.Properties || + (this.Properties != null && + this.Properties.Equals(input.Properties)) + ) && + ( + this.RootOrigin == input.RootOrigin || + (this.RootOrigin != null && + this.RootOrigin.Equals(input.RootOrigin)) + ) && + ( + this.Checksum == input.Checksum || + (this.Checksum != null && + this.Checksum.Equals(input.Checksum)) + ) && + ( + this.Size == input.Size || + (this.Size != null && + this.Size.Equals(input.Size)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Visibility != null) + hashCode = hashCode * 59 + this.Visibility.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Protected != null) + hashCode = hashCode * 59 + this.Protected.GetHashCode(); + if (this.ContainerFormat != null) + hashCode = hashCode * 59 + this.ContainerFormat.GetHashCode(); + if (this.DiskFormat != null) + hashCode = hashCode * 59 + this.DiskFormat.GetHashCode(); + if (this.Tags != null) + hashCode = hashCode * 59 + this.Tags.GetHashCode(); + if (this.MinRam != null) + hashCode = hashCode * 59 + this.MinRam.GetHashCode(); + if (this.MinDisk != null) + hashCode = hashCode * 59 + this.MinDisk.GetHashCode(); + if (this.Status != null) + hashCode = hashCode * 59 + this.Status.GetHashCode(); + if (this.CreatedAt != null) + hashCode = hashCode * 59 + this.CreatedAt.GetHashCode(); + if (this.UpdatedAt != null) + hashCode = hashCode * 59 + this.UpdatedAt.GetHashCode(); + if (this.Self != null) + hashCode = hashCode * 59 + this.Self.GetHashCode(); + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.File != null) + hashCode = hashCode * 59 + this.File.GetHashCode(); + if (this.Schema != null) + hashCode = hashCode * 59 + this.Schema.GetHashCode(); + if (this.ImageSourceType != null) + hashCode = hashCode * 59 + this.ImageSourceType.GetHashCode(); + if (this.ImageSize != null) + hashCode = hashCode * 59 + this.ImageSize.GetHashCode(); + if (this.Isregistered != null) + hashCode = hashCode * 59 + this.Isregistered.GetHashCode(); + if (this.OsVersion != null) + hashCode = hashCode * 59 + this.OsVersion.GetHashCode(); + if (this.OsType != null) + hashCode = hashCode * 59 + this.OsType.GetHashCode(); + if (this.Platform != null) + hashCode = hashCode * 59 + this.Platform.GetHashCode(); + if (this.OsBit != null) + hashCode = hashCode * 59 + this.OsBit.GetHashCode(); + if (this.Imagetype != null) + hashCode = hashCode * 59 + this.Imagetype.GetHashCode(); + if (this.VirtualEnvType != null) + hashCode = hashCode * 59 + this.VirtualEnvType.GetHashCode(); + if (this.Owner != null) + hashCode = hashCode * 59 + this.Owner.GetHashCode(); + if (this.VirtualSize != null) + hashCode = hashCode * 59 + this.VirtualSize.GetHashCode(); + if (this.Properties != null) + hashCode = hashCode * 59 + this.Properties.GetHashCode(); + if (this.RootOrigin != null) + hashCode = hashCode * 59 + this.RootOrigin.GetHashCode(); + if (this.Checksum != null) + hashCode = hashCode * 59 + this.Checksum.GetHashCode(); + if (this.Size != null) + hashCode = hashCode * 59 + this.Size.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/GlanceCreateTagRequest.cs b/Services/Ims/V2/Model/GlanceCreateTagRequest.cs new file mode 100755 index 0000000..b023d53 --- /dev/null +++ b/Services/Ims/V2/Model/GlanceCreateTagRequest.cs @@ -0,0 +1,86 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Request Object + /// + public class GlanceCreateTagRequest + { + + [SDKProperty("image_id", IsPath = true)] + [JsonProperty("image_id", NullValueHandling = NullValueHandling.Ignore)] + public string ImageId { get; set; } + + [SDKProperty("tag", IsPath = true)] + [JsonProperty("tag", NullValueHandling = NullValueHandling.Ignore)] + public string Tag { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class GlanceCreateTagRequest {\n"); + sb.Append(" imageId: ").Append(ImageId).Append("\n"); + sb.Append(" tag: ").Append(Tag).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as GlanceCreateTagRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(GlanceCreateTagRequest input) + { + if (input == null) + return false; + + return + ( + this.ImageId == input.ImageId || + (this.ImageId != null && + this.ImageId.Equals(input.ImageId)) + ) && + ( + this.Tag == input.Tag || + (this.Tag != null && + this.Tag.Equals(input.Tag)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ImageId != null) + hashCode = hashCode * 59 + this.ImageId.GetHashCode(); + if (this.Tag != null) + hashCode = hashCode * 59 + this.Tag.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/GlanceCreateTagResponse.cs b/Services/Ims/V2/Model/GlanceCreateTagResponse.cs new file mode 100755 index 0000000..5e89773 --- /dev/null +++ b/Services/Ims/V2/Model/GlanceCreateTagResponse.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Response Object + /// + public class GlanceCreateTagResponse : SdkResponse + { + + + } +} diff --git a/Services/Ims/V2/Model/GlanceDeleteImageMemberRequest.cs b/Services/Ims/V2/Model/GlanceDeleteImageMemberRequest.cs new file mode 100755 index 0000000..a15fb06 --- /dev/null +++ b/Services/Ims/V2/Model/GlanceDeleteImageMemberRequest.cs @@ -0,0 +1,86 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Request Object + /// + public class GlanceDeleteImageMemberRequest + { + + [SDKProperty("image_id", IsPath = true)] + [JsonProperty("image_id", NullValueHandling = NullValueHandling.Ignore)] + public string ImageId { get; set; } + + [SDKProperty("member_id", IsPath = true)] + [JsonProperty("member_id", NullValueHandling = NullValueHandling.Ignore)] + public string MemberId { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class GlanceDeleteImageMemberRequest {\n"); + sb.Append(" imageId: ").Append(ImageId).Append("\n"); + sb.Append(" memberId: ").Append(MemberId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as GlanceDeleteImageMemberRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(GlanceDeleteImageMemberRequest input) + { + if (input == null) + return false; + + return + ( + this.ImageId == input.ImageId || + (this.ImageId != null && + this.ImageId.Equals(input.ImageId)) + ) && + ( + this.MemberId == input.MemberId || + (this.MemberId != null && + this.MemberId.Equals(input.MemberId)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ImageId != null) + hashCode = hashCode * 59 + this.ImageId.GetHashCode(); + if (this.MemberId != null) + hashCode = hashCode * 59 + this.MemberId.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/GlanceDeleteImageMemberResponse.cs b/Services/Ims/V2/Model/GlanceDeleteImageMemberResponse.cs new file mode 100755 index 0000000..4641e00 --- /dev/null +++ b/Services/Ims/V2/Model/GlanceDeleteImageMemberResponse.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Response Object + /// + public class GlanceDeleteImageMemberResponse : SdkResponse + { + + + } +} diff --git a/Services/Ims/V2/Model/GlanceDeleteImageRequest.cs b/Services/Ims/V2/Model/GlanceDeleteImageRequest.cs new file mode 100755 index 0000000..10c0ec8 --- /dev/null +++ b/Services/Ims/V2/Model/GlanceDeleteImageRequest.cs @@ -0,0 +1,86 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Request Object + /// + public class GlanceDeleteImageRequest + { + + [SDKProperty("image_id", IsPath = true)] + [JsonProperty("image_id", NullValueHandling = NullValueHandling.Ignore)] + public string ImageId { get; set; } + + [SDKProperty("body", IsBody = true)] + [JsonProperty("body", NullValueHandling = NullValueHandling.Ignore)] + public GlanceDeleteImageRequestBody Body { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class GlanceDeleteImageRequest {\n"); + sb.Append(" imageId: ").Append(ImageId).Append("\n"); + sb.Append(" body: ").Append(Body).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as GlanceDeleteImageRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(GlanceDeleteImageRequest input) + { + if (input == null) + return false; + + return + ( + this.ImageId == input.ImageId || + (this.ImageId != null && + this.ImageId.Equals(input.ImageId)) + ) && + ( + this.Body == input.Body || + (this.Body != null && + this.Body.Equals(input.Body)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ImageId != null) + hashCode = hashCode * 59 + this.ImageId.GetHashCode(); + if (this.Body != null) + hashCode = hashCode * 59 + this.Body.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/GlanceDeleteImageRequestBody.cs b/Services/Ims/V2/Model/GlanceDeleteImageRequestBody.cs new file mode 100755 index 0000000..f890f05 --- /dev/null +++ b/Services/Ims/V2/Model/GlanceDeleteImageRequestBody.cs @@ -0,0 +1,73 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// 请求参数 + /// + public class GlanceDeleteImageRequestBody + { + + [JsonProperty("delete_backup", NullValueHandling = NullValueHandling.Ignore)] + public bool? DeleteBackup { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class GlanceDeleteImageRequestBody {\n"); + sb.Append(" deleteBackup: ").Append(DeleteBackup).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as GlanceDeleteImageRequestBody); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(GlanceDeleteImageRequestBody input) + { + if (input == null) + return false; + + return + ( + this.DeleteBackup == input.DeleteBackup || + (this.DeleteBackup != null && + this.DeleteBackup.Equals(input.DeleteBackup)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.DeleteBackup != null) + hashCode = hashCode * 59 + this.DeleteBackup.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/GlanceDeleteImageResponse.cs b/Services/Ims/V2/Model/GlanceDeleteImageResponse.cs new file mode 100755 index 0000000..dd06f2a --- /dev/null +++ b/Services/Ims/V2/Model/GlanceDeleteImageResponse.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Response Object + /// + public class GlanceDeleteImageResponse : SdkResponse + { + + + } +} diff --git a/Services/Ims/V2/Model/GlanceDeleteTagRequest.cs b/Services/Ims/V2/Model/GlanceDeleteTagRequest.cs new file mode 100755 index 0000000..707ebf1 --- /dev/null +++ b/Services/Ims/V2/Model/GlanceDeleteTagRequest.cs @@ -0,0 +1,86 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Request Object + /// + public class GlanceDeleteTagRequest + { + + [SDKProperty("image_id", IsPath = true)] + [JsonProperty("image_id", NullValueHandling = NullValueHandling.Ignore)] + public string ImageId { get; set; } + + [SDKProperty("tag", IsPath = true)] + [JsonProperty("tag", NullValueHandling = NullValueHandling.Ignore)] + public string Tag { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class GlanceDeleteTagRequest {\n"); + sb.Append(" imageId: ").Append(ImageId).Append("\n"); + sb.Append(" tag: ").Append(Tag).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as GlanceDeleteTagRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(GlanceDeleteTagRequest input) + { + if (input == null) + return false; + + return + ( + this.ImageId == input.ImageId || + (this.ImageId != null && + this.ImageId.Equals(input.ImageId)) + ) && + ( + this.Tag == input.Tag || + (this.Tag != null && + this.Tag.Equals(input.Tag)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ImageId != null) + hashCode = hashCode * 59 + this.ImageId.GetHashCode(); + if (this.Tag != null) + hashCode = hashCode * 59 + this.Tag.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/GlanceDeleteTagResponse.cs b/Services/Ims/V2/Model/GlanceDeleteTagResponse.cs new file mode 100755 index 0000000..e34d01c --- /dev/null +++ b/Services/Ims/V2/Model/GlanceDeleteTagResponse.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Response Object + /// + public class GlanceDeleteTagResponse : SdkResponse + { + + + } +} diff --git a/Services/Ims/V2/Model/GlanceImageMembers.cs b/Services/Ims/V2/Model/GlanceImageMembers.cs new file mode 100755 index 0000000..971cb83 --- /dev/null +++ b/Services/Ims/V2/Model/GlanceImageMembers.cs @@ -0,0 +1,128 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// 获取镜像成员列表 + /// + public class GlanceImageMembers + { + + [JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)] + public string Status { get; set; } + + [JsonProperty("created_at", NullValueHandling = NullValueHandling.Ignore)] + public string CreatedAt { get; set; } + + [JsonProperty("updated_at", NullValueHandling = NullValueHandling.Ignore)] + public string UpdatedAt { get; set; } + + [JsonProperty("image_id", NullValueHandling = NullValueHandling.Ignore)] + public string ImageId { get; set; } + + [JsonProperty("member_id", NullValueHandling = NullValueHandling.Ignore)] + public string MemberId { get; set; } + + [JsonProperty("schema", NullValueHandling = NullValueHandling.Ignore)] + public string Schema { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class GlanceImageMembers {\n"); + sb.Append(" status: ").Append(Status).Append("\n"); + sb.Append(" createdAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" updatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append(" imageId: ").Append(ImageId).Append("\n"); + sb.Append(" memberId: ").Append(MemberId).Append("\n"); + sb.Append(" schema: ").Append(Schema).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as GlanceImageMembers); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(GlanceImageMembers input) + { + if (input == null) + return false; + + return + ( + this.Status == input.Status || + (this.Status != null && + this.Status.Equals(input.Status)) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.UpdatedAt == input.UpdatedAt || + (this.UpdatedAt != null && + this.UpdatedAt.Equals(input.UpdatedAt)) + ) && + ( + this.ImageId == input.ImageId || + (this.ImageId != null && + this.ImageId.Equals(input.ImageId)) + ) && + ( + this.MemberId == input.MemberId || + (this.MemberId != null && + this.MemberId.Equals(input.MemberId)) + ) && + ( + this.Schema == input.Schema || + (this.Schema != null && + this.Schema.Equals(input.Schema)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Status != null) + hashCode = hashCode * 59 + this.Status.GetHashCode(); + if (this.CreatedAt != null) + hashCode = hashCode * 59 + this.CreatedAt.GetHashCode(); + if (this.UpdatedAt != null) + hashCode = hashCode * 59 + this.UpdatedAt.GetHashCode(); + if (this.ImageId != null) + hashCode = hashCode * 59 + this.ImageId.GetHashCode(); + if (this.MemberId != null) + hashCode = hashCode * 59 + this.MemberId.GetHashCode(); + if (this.Schema != null) + hashCode = hashCode * 59 + this.Schema.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/GlanceListImageMemberSchemasRequest.cs b/Services/Ims/V2/Model/GlanceListImageMemberSchemasRequest.cs new file mode 100755 index 0000000..6754e6c --- /dev/null +++ b/Services/Ims/V2/Model/GlanceListImageMemberSchemasRequest.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Request Object + /// + public class GlanceListImageMemberSchemasRequest + { + + + } +} diff --git a/Services/Ims/V2/Model/GlanceListImageMemberSchemasResponse.cs b/Services/Ims/V2/Model/GlanceListImageMemberSchemasResponse.cs new file mode 100755 index 0000000..d6b3f24 --- /dev/null +++ b/Services/Ims/V2/Model/GlanceListImageMemberSchemasResponse.cs @@ -0,0 +1,96 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Response Object + /// + public class GlanceListImageMemberSchemasResponse : SdkResponse + { + + [JsonProperty("links", NullValueHandling = NullValueHandling.Ignore)] + public List Links { get; set; } + + [JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)] + public string Name { get; set; } + + [JsonProperty("properties", NullValueHandling = NullValueHandling.Ignore)] + public Object Properties { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class GlanceListImageMemberSchemasResponse {\n"); + sb.Append(" links: ").Append(Links).Append("\n"); + sb.Append(" name: ").Append(Name).Append("\n"); + sb.Append(" properties: ").Append(Properties).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as GlanceListImageMemberSchemasResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(GlanceListImageMemberSchemasResponse input) + { + if (input == null) + return false; + + return + ( + this.Links == input.Links || + this.Links != null && + input.Links != null && + this.Links.SequenceEqual(input.Links) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Properties == input.Properties || + (this.Properties != null && + this.Properties.Equals(input.Properties)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Links != null) + hashCode = hashCode * 59 + this.Links.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Properties != null) + hashCode = hashCode * 59 + this.Properties.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/GlanceListImageMembersRequest.cs b/Services/Ims/V2/Model/GlanceListImageMembersRequest.cs new file mode 100755 index 0000000..39c5288 --- /dev/null +++ b/Services/Ims/V2/Model/GlanceListImageMembersRequest.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Request Object + /// + public class GlanceListImageMembersRequest + { + + [SDKProperty("image_id", IsPath = true)] + [JsonProperty("image_id", NullValueHandling = NullValueHandling.Ignore)] + public string ImageId { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class GlanceListImageMembersRequest {\n"); + sb.Append(" imageId: ").Append(ImageId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as GlanceListImageMembersRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(GlanceListImageMembersRequest input) + { + if (input == null) + return false; + + return + ( + this.ImageId == input.ImageId || + (this.ImageId != null && + this.ImageId.Equals(input.ImageId)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ImageId != null) + hashCode = hashCode * 59 + this.ImageId.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/GlanceListImageMembersResponse.cs b/Services/Ims/V2/Model/GlanceListImageMembersResponse.cs new file mode 100755 index 0000000..85c4d42 --- /dev/null +++ b/Services/Ims/V2/Model/GlanceListImageMembersResponse.cs @@ -0,0 +1,85 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Response Object + /// + public class GlanceListImageMembersResponse : SdkResponse + { + + [JsonProperty("members", NullValueHandling = NullValueHandling.Ignore)] + public List Members { get; set; } + + [JsonProperty("schema", NullValueHandling = NullValueHandling.Ignore)] + public string Schema { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class GlanceListImageMembersResponse {\n"); + sb.Append(" members: ").Append(Members).Append("\n"); + sb.Append(" schema: ").Append(Schema).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as GlanceListImageMembersResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(GlanceListImageMembersResponse input) + { + if (input == null) + return false; + + return + ( + this.Members == input.Members || + this.Members != null && + input.Members != null && + this.Members.SequenceEqual(input.Members) + ) && + ( + this.Schema == input.Schema || + (this.Schema != null && + this.Schema.Equals(input.Schema)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Members != null) + hashCode = hashCode * 59 + this.Members.GetHashCode(); + if (this.Schema != null) + hashCode = hashCode * 59 + this.Schema.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/GlanceListImageSchemasRequest.cs b/Services/Ims/V2/Model/GlanceListImageSchemasRequest.cs new file mode 100755 index 0000000..2992ecc --- /dev/null +++ b/Services/Ims/V2/Model/GlanceListImageSchemasRequest.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Request Object + /// + public class GlanceListImageSchemasRequest + { + + + } +} diff --git a/Services/Ims/V2/Model/GlanceListImageSchemasResponse.cs b/Services/Ims/V2/Model/GlanceListImageSchemasResponse.cs new file mode 100755 index 0000000..60d463b --- /dev/null +++ b/Services/Ims/V2/Model/GlanceListImageSchemasResponse.cs @@ -0,0 +1,96 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Response Object + /// + public class GlanceListImageSchemasResponse : SdkResponse + { + + [JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)] + public string Name { get; set; } + + [JsonProperty("properties", NullValueHandling = NullValueHandling.Ignore)] + public Object Properties { get; set; } + + [JsonProperty("links", NullValueHandling = NullValueHandling.Ignore)] + public List Links { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class GlanceListImageSchemasResponse {\n"); + sb.Append(" name: ").Append(Name).Append("\n"); + sb.Append(" properties: ").Append(Properties).Append("\n"); + sb.Append(" links: ").Append(Links).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as GlanceListImageSchemasResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(GlanceListImageSchemasResponse input) + { + if (input == null) + return false; + + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Properties == input.Properties || + (this.Properties != null && + this.Properties.Equals(input.Properties)) + ) && + ( + this.Links == input.Links || + this.Links != null && + input.Links != null && + this.Links.SequenceEqual(input.Links) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Properties != null) + hashCode = hashCode * 59 + this.Properties.GetHashCode(); + if (this.Links != null) + hashCode = hashCode * 59 + this.Links.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/GlanceListImagesRequest.cs b/Services/Ims/V2/Model/GlanceListImagesRequest.cs new file mode 100755 index 0000000..f37450c --- /dev/null +++ b/Services/Ims/V2/Model/GlanceListImagesRequest.cs @@ -0,0 +1,1330 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Request Object + /// + public class GlanceListImagesRequest + { + [JsonConverter(typeof(EnumClassConverter))] + public class ImagetypeEnum + { + /// + /// Enum GOLD for value: gold + /// + public static readonly ImagetypeEnum GOLD = new ImagetypeEnum("gold"); + + /// + /// Enum PRIVATE for value: private + /// + public static readonly ImagetypeEnum PRIVATE = new ImagetypeEnum("private"); + + /// + /// Enum SHARED for value: shared + /// + public static readonly ImagetypeEnum SHARED = new ImagetypeEnum("shared"); + + /// + /// Enum MARKET for value: market + /// + public static readonly ImagetypeEnum MARKET = new ImagetypeEnum("market"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "gold", GOLD }, + { "private", PRIVATE }, + { "shared", SHARED }, + { "market", MARKET }, + }; + + private string _value; + + public ImagetypeEnum() + { + + } + + public ImagetypeEnum(string value) + { + _value = value; + } + + public static ImagetypeEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as ImagetypeEnum)) + { + return true; + } + + return false; + } + + public bool Equals(ImagetypeEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(ImagetypeEnum a, ImagetypeEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(ImagetypeEnum a, ImagetypeEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class OsBitEnum + { + /// + /// Enum _32 for value: 32 + /// + public static readonly OsBitEnum _32 = new OsBitEnum("32"); + + /// + /// Enum _64 for value: 64 + /// + public static readonly OsBitEnum _64 = new OsBitEnum("64"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "32", _32 }, + { "64", _64 }, + }; + + private string _value; + + public OsBitEnum() + { + + } + + public OsBitEnum(string value) + { + _value = value; + } + + public static OsBitEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as OsBitEnum)) + { + return true; + } + + return false; + } + + public bool Equals(OsBitEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(OsBitEnum a, OsBitEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(OsBitEnum a, OsBitEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class OsTypeEnum + { + /// + /// Enum LINUX for value: Linux + /// + public static readonly OsTypeEnum LINUX = new OsTypeEnum("Linux"); + + /// + /// Enum WINDOWS for value: Windows + /// + public static readonly OsTypeEnum WINDOWS = new OsTypeEnum("Windows"); + + /// + /// Enum OTHER for value: Other + /// + public static readonly OsTypeEnum OTHER = new OsTypeEnum("Other"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "Linux", LINUX }, + { "Windows", WINDOWS }, + { "Other", OTHER }, + }; + + private string _value; + + public OsTypeEnum() + { + + } + + public OsTypeEnum(string value) + { + _value = value; + } + + public static OsTypeEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as OsTypeEnum)) + { + return true; + } + + return false; + } + + public bool Equals(OsTypeEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(OsTypeEnum a, OsTypeEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(OsTypeEnum a, OsTypeEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class PlatformEnum + { + /// + /// Enum WINDOWS for value: Windows + /// + public static readonly PlatformEnum WINDOWS = new PlatformEnum("Windows"); + + /// + /// Enum UBUNTU for value: Ubuntu + /// + public static readonly PlatformEnum UBUNTU = new PlatformEnum("Ubuntu"); + + /// + /// Enum REDHAT for value: RedHat + /// + public static readonly PlatformEnum REDHAT = new PlatformEnum("RedHat"); + + /// + /// Enum SUSE for value: SUSE + /// + public static readonly PlatformEnum SUSE = new PlatformEnum("SUSE"); + + /// + /// Enum CENTOS for value: CentOS + /// + public static readonly PlatformEnum CENTOS = new PlatformEnum("CentOS"); + + /// + /// Enum DEBIAN for value: Debian + /// + public static readonly PlatformEnum DEBIAN = new PlatformEnum("Debian"); + + /// + /// Enum OPENSUSE for value: OpenSUSE + /// + public static readonly PlatformEnum OPENSUSE = new PlatformEnum("OpenSUSE"); + + /// + /// Enum ORACLE_LINUX for value: Oracle Linux + /// + public static readonly PlatformEnum ORACLE_LINUX = new PlatformEnum("Oracle Linux"); + + /// + /// Enum FEDORA for value: Fedora + /// + public static readonly PlatformEnum FEDORA = new PlatformEnum("Fedora"); + + /// + /// Enum OTHER for value: Other + /// + public static readonly PlatformEnum OTHER = new PlatformEnum("Other"); + + /// + /// Enum COREOS for value: CoreOS + /// + public static readonly PlatformEnum COREOS = new PlatformEnum("CoreOS"); + + /// + /// Enum EULEROS for value: EulerOS + /// + public static readonly PlatformEnum EULEROS = new PlatformEnum("EulerOS"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "Windows", WINDOWS }, + { "Ubuntu", UBUNTU }, + { "RedHat", REDHAT }, + { "SUSE", SUSE }, + { "CentOS", CENTOS }, + { "Debian", DEBIAN }, + { "OpenSUSE", OPENSUSE }, + { "Oracle Linux", ORACLE_LINUX }, + { "Fedora", FEDORA }, + { "Other", OTHER }, + { "CoreOS", COREOS }, + { "EulerOS", EULEROS }, + }; + + private string _value; + + public PlatformEnum() + { + + } + + public PlatformEnum(string value) + { + _value = value; + } + + public static PlatformEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as PlatformEnum)) + { + return true; + } + + return false; + } + + public bool Equals(PlatformEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(PlatformEnum a, PlatformEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(PlatformEnum a, PlatformEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class DiskFormatEnum + { + /// + /// Enum VHD for value: vhd + /// + public static readonly DiskFormatEnum VHD = new DiskFormatEnum("vhd"); + + /// + /// Enum ZVHD for value: zvhd + /// + public static readonly DiskFormatEnum ZVHD = new DiskFormatEnum("zvhd"); + + /// + /// Enum RAW for value: raw + /// + public static readonly DiskFormatEnum RAW = new DiskFormatEnum("raw"); + + /// + /// Enum QCOW2 for value: qcow2 + /// + public static readonly DiskFormatEnum QCOW2 = new DiskFormatEnum("qcow2"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "vhd", VHD }, + { "zvhd", ZVHD }, + { "raw", RAW }, + { "qcow2", QCOW2 }, + }; + + private string _value; + + public DiskFormatEnum() + { + + } + + public DiskFormatEnum(string value) + { + _value = value; + } + + public static DiskFormatEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as DiskFormatEnum)) + { + return true; + } + + return false; + } + + public bool Equals(DiskFormatEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(DiskFormatEnum a, DiskFormatEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(DiskFormatEnum a, DiskFormatEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class StatusEnum + { + /// + /// Enum QUEUED for value: queued + /// + public static readonly StatusEnum QUEUED = new StatusEnum("queued"); + + /// + /// Enum SAVING for value: saving + /// + public static readonly StatusEnum SAVING = new StatusEnum("saving"); + + /// + /// Enum DELETED for value: deleted + /// + public static readonly StatusEnum DELETED = new StatusEnum("deleted"); + + /// + /// Enum KILLED for value: killed + /// + public static readonly StatusEnum KILLED = new StatusEnum("killed"); + + /// + /// Enum ACTIVE for value: active + /// + public static readonly StatusEnum ACTIVE = new StatusEnum("active"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "queued", QUEUED }, + { "saving", SAVING }, + { "deleted", DELETED }, + { "killed", KILLED }, + { "active", ACTIVE }, + }; + + private string _value; + + public StatusEnum() + { + + } + + public StatusEnum(string value) + { + _value = value; + } + + public static StatusEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as StatusEnum)) + { + return true; + } + + return false; + } + + public bool Equals(StatusEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(StatusEnum a, StatusEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(StatusEnum a, StatusEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class VisibilityEnum + { + /// + /// Enum PUBLIC for value: public + /// + public static readonly VisibilityEnum PUBLIC = new VisibilityEnum("public"); + + /// + /// Enum PRIVATE for value: private + /// + public static readonly VisibilityEnum PRIVATE = new VisibilityEnum("private"); + + /// + /// Enum SHARED for value: shared + /// + public static readonly VisibilityEnum SHARED = new VisibilityEnum("shared"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "public", PUBLIC }, + { "private", PRIVATE }, + { "shared", SHARED }, + }; + + private string _value; + + public VisibilityEnum() + { + + } + + public VisibilityEnum(string value) + { + _value = value; + } + + public static VisibilityEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as VisibilityEnum)) + { + return true; + } + + return false; + } + + public bool Equals(VisibilityEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(VisibilityEnum a, VisibilityEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(VisibilityEnum a, VisibilityEnum b) + { + return !(a == b); + } + } + + + [SDKProperty("__imagetype", IsQuery = true)] + [JsonProperty("__imagetype", NullValueHandling = NullValueHandling.Ignore)] + public ImagetypeEnum Imagetype { get; set; } + [SDKProperty("__isregistered", IsQuery = true)] + [JsonProperty("__isregistered", NullValueHandling = NullValueHandling.Ignore)] + public bool? Isregistered { get; set; } + + [SDKProperty("__os_bit", IsQuery = true)] + [JsonProperty("__os_bit", NullValueHandling = NullValueHandling.Ignore)] + public OsBitEnum OsBit { get; set; } + [SDKProperty("__os_type", IsQuery = true)] + [JsonProperty("__os_type", NullValueHandling = NullValueHandling.Ignore)] + public OsTypeEnum OsType { get; set; } + [SDKProperty("__platform", IsQuery = true)] + [JsonProperty("__platform", NullValueHandling = NullValueHandling.Ignore)] + public PlatformEnum Platform { get; set; } + [SDKProperty("__support_diskintensive", IsQuery = true)] + [JsonProperty("__support_diskintensive", NullValueHandling = NullValueHandling.Ignore)] + public string SupportDiskintensive { get; set; } + + [SDKProperty("__support_highperformance", IsQuery = true)] + [JsonProperty("__support_highperformance", NullValueHandling = NullValueHandling.Ignore)] + public string SupportHighperformance { get; set; } + + [SDKProperty("__support_kvm", IsQuery = true)] + [JsonProperty("__support_kvm", NullValueHandling = NullValueHandling.Ignore)] + public string SupportKvm { get; set; } + + [SDKProperty("__support_kvm_gpu_type", IsQuery = true)] + [JsonProperty("__support_kvm_gpu_type", NullValueHandling = NullValueHandling.Ignore)] + public string SupportKvmGpuType { get; set; } + + [SDKProperty("__support_kvm_infiniband", IsQuery = true)] + [JsonProperty("__support_kvm_infiniband", NullValueHandling = NullValueHandling.Ignore)] + public string SupportKvmInfiniband { get; set; } + + [SDKProperty("__support_largememory", IsQuery = true)] + [JsonProperty("__support_largememory", NullValueHandling = NullValueHandling.Ignore)] + public string SupportLargememory { get; set; } + + [SDKProperty("__support_xen", IsQuery = true)] + [JsonProperty("__support_xen", NullValueHandling = NullValueHandling.Ignore)] + public string SupportXen { get; set; } + + [SDKProperty("__support_xen_gpu_type", IsQuery = true)] + [JsonProperty("__support_xen_gpu_type", NullValueHandling = NullValueHandling.Ignore)] + public string SupportXenGpuType { get; set; } + + [SDKProperty("__support_xen_hana", IsQuery = true)] + [JsonProperty("__support_xen_hana", NullValueHandling = NullValueHandling.Ignore)] + public string SupportXenHana { get; set; } + + [SDKProperty("container_format", IsQuery = true)] + [JsonProperty("container_format", NullValueHandling = NullValueHandling.Ignore)] + public string ContainerFormat { get; set; } + + [SDKProperty("disk_format", IsQuery = true)] + [JsonProperty("disk_format", NullValueHandling = NullValueHandling.Ignore)] + public DiskFormatEnum DiskFormat { get; set; } + [SDKProperty("id", IsQuery = true)] + [JsonProperty("id", NullValueHandling = NullValueHandling.Ignore)] + public string Id { get; set; } + + [SDKProperty("limit", IsQuery = true)] + [JsonProperty("limit", NullValueHandling = NullValueHandling.Ignore)] + public int? Limit { get; set; } + + [SDKProperty("marker", IsQuery = true)] + [JsonProperty("marker", NullValueHandling = NullValueHandling.Ignore)] + public string Marker { get; set; } + + [SDKProperty("member_status", IsQuery = true)] + [JsonProperty("member_status", NullValueHandling = NullValueHandling.Ignore)] + public string MemberStatus { get; set; } + + [SDKProperty("min_disk", IsQuery = true)] + [JsonProperty("min_disk", NullValueHandling = NullValueHandling.Ignore)] + public int? MinDisk { get; set; } + + [SDKProperty("min_ram", IsQuery = true)] + [JsonProperty("min_ram", NullValueHandling = NullValueHandling.Ignore)] + public int? MinRam { get; set; } + + [SDKProperty("name", IsQuery = true)] + [JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)] + public string Name { get; set; } + + [SDKProperty("owner", IsQuery = true)] + [JsonProperty("owner", NullValueHandling = NullValueHandling.Ignore)] + public string Owner { get; set; } + + [SDKProperty("protected", IsQuery = true)] + [JsonProperty("protected", NullValueHandling = NullValueHandling.Ignore)] + public bool? Protected { get; set; } + + [SDKProperty("sort_dir", IsQuery = true)] + [JsonProperty("sort_dir", NullValueHandling = NullValueHandling.Ignore)] + public string SortDir { get; set; } + + [SDKProperty("sort_key", IsQuery = true)] + [JsonProperty("sort_key", NullValueHandling = NullValueHandling.Ignore)] + public string SortKey { get; set; } + + [SDKProperty("status", IsQuery = true)] + [JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)] + public StatusEnum Status { get; set; } + [SDKProperty("tag", IsQuery = true)] + [JsonProperty("tag", NullValueHandling = NullValueHandling.Ignore)] + public string Tag { get; set; } + + [SDKProperty("visibility", IsQuery = true)] + [JsonProperty("visibility", NullValueHandling = NullValueHandling.Ignore)] + public VisibilityEnum Visibility { get; set; } + [SDKProperty("created_at", IsQuery = true)] + [JsonProperty("created_at", NullValueHandling = NullValueHandling.Ignore)] + public string CreatedAt { get; set; } + + [SDKProperty("updated_at", IsQuery = true)] + [JsonProperty("updated_at", NullValueHandling = NullValueHandling.Ignore)] + public string UpdatedAt { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class GlanceListImagesRequest {\n"); + sb.Append(" imagetype: ").Append(Imagetype).Append("\n"); + sb.Append(" isregistered: ").Append(Isregistered).Append("\n"); + sb.Append(" osBit: ").Append(OsBit).Append("\n"); + sb.Append(" osType: ").Append(OsType).Append("\n"); + sb.Append(" platform: ").Append(Platform).Append("\n"); + sb.Append(" supportDiskintensive: ").Append(SupportDiskintensive).Append("\n"); + sb.Append(" supportHighperformance: ").Append(SupportHighperformance).Append("\n"); + sb.Append(" supportKvm: ").Append(SupportKvm).Append("\n"); + sb.Append(" supportKvmGpuType: ").Append(SupportKvmGpuType).Append("\n"); + sb.Append(" supportKvmInfiniband: ").Append(SupportKvmInfiniband).Append("\n"); + sb.Append(" supportLargememory: ").Append(SupportLargememory).Append("\n"); + sb.Append(" supportXen: ").Append(SupportXen).Append("\n"); + sb.Append(" supportXenGpuType: ").Append(SupportXenGpuType).Append("\n"); + sb.Append(" supportXenHana: ").Append(SupportXenHana).Append("\n"); + sb.Append(" containerFormat: ").Append(ContainerFormat).Append("\n"); + sb.Append(" diskFormat: ").Append(DiskFormat).Append("\n"); + sb.Append(" id: ").Append(Id).Append("\n"); + sb.Append(" limit: ").Append(Limit).Append("\n"); + sb.Append(" marker: ").Append(Marker).Append("\n"); + sb.Append(" memberStatus: ").Append(MemberStatus).Append("\n"); + sb.Append(" minDisk: ").Append(MinDisk).Append("\n"); + sb.Append(" minRam: ").Append(MinRam).Append("\n"); + sb.Append(" name: ").Append(Name).Append("\n"); + sb.Append(" owner: ").Append(Owner).Append("\n"); + sb.Append(" Protected: ").Append(Protected).Append("\n"); + sb.Append(" sortDir: ").Append(SortDir).Append("\n"); + sb.Append(" sortKey: ").Append(SortKey).Append("\n"); + sb.Append(" status: ").Append(Status).Append("\n"); + sb.Append(" tag: ").Append(Tag).Append("\n"); + sb.Append(" visibility: ").Append(Visibility).Append("\n"); + sb.Append(" createdAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" updatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as GlanceListImagesRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(GlanceListImagesRequest input) + { + if (input == null) + return false; + + return + ( + this.Imagetype == input.Imagetype || + (this.Imagetype != null && + this.Imagetype.Equals(input.Imagetype)) + ) && + ( + this.Isregistered == input.Isregistered || + (this.Isregistered != null && + this.Isregistered.Equals(input.Isregistered)) + ) && + ( + this.OsBit == input.OsBit || + (this.OsBit != null && + this.OsBit.Equals(input.OsBit)) + ) && + ( + this.OsType == input.OsType || + (this.OsType != null && + this.OsType.Equals(input.OsType)) + ) && + ( + this.Platform == input.Platform || + (this.Platform != null && + this.Platform.Equals(input.Platform)) + ) && + ( + this.SupportDiskintensive == input.SupportDiskintensive || + (this.SupportDiskintensive != null && + this.SupportDiskintensive.Equals(input.SupportDiskintensive)) + ) && + ( + this.SupportHighperformance == input.SupportHighperformance || + (this.SupportHighperformance != null && + this.SupportHighperformance.Equals(input.SupportHighperformance)) + ) && + ( + this.SupportKvm == input.SupportKvm || + (this.SupportKvm != null && + this.SupportKvm.Equals(input.SupportKvm)) + ) && + ( + this.SupportKvmGpuType == input.SupportKvmGpuType || + (this.SupportKvmGpuType != null && + this.SupportKvmGpuType.Equals(input.SupportKvmGpuType)) + ) && + ( + this.SupportKvmInfiniband == input.SupportKvmInfiniband || + (this.SupportKvmInfiniband != null && + this.SupportKvmInfiniband.Equals(input.SupportKvmInfiniband)) + ) && + ( + this.SupportLargememory == input.SupportLargememory || + (this.SupportLargememory != null && + this.SupportLargememory.Equals(input.SupportLargememory)) + ) && + ( + this.SupportXen == input.SupportXen || + (this.SupportXen != null && + this.SupportXen.Equals(input.SupportXen)) + ) && + ( + this.SupportXenGpuType == input.SupportXenGpuType || + (this.SupportXenGpuType != null && + this.SupportXenGpuType.Equals(input.SupportXenGpuType)) + ) && + ( + this.SupportXenHana == input.SupportXenHana || + (this.SupportXenHana != null && + this.SupportXenHana.Equals(input.SupportXenHana)) + ) && + ( + this.ContainerFormat == input.ContainerFormat || + (this.ContainerFormat != null && + this.ContainerFormat.Equals(input.ContainerFormat)) + ) && + ( + this.DiskFormat == input.DiskFormat || + (this.DiskFormat != null && + this.DiskFormat.Equals(input.DiskFormat)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Limit == input.Limit || + (this.Limit != null && + this.Limit.Equals(input.Limit)) + ) && + ( + this.Marker == input.Marker || + (this.Marker != null && + this.Marker.Equals(input.Marker)) + ) && + ( + this.MemberStatus == input.MemberStatus || + (this.MemberStatus != null && + this.MemberStatus.Equals(input.MemberStatus)) + ) && + ( + this.MinDisk == input.MinDisk || + (this.MinDisk != null && + this.MinDisk.Equals(input.MinDisk)) + ) && + ( + this.MinRam == input.MinRam || + (this.MinRam != null && + this.MinRam.Equals(input.MinRam)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Owner == input.Owner || + (this.Owner != null && + this.Owner.Equals(input.Owner)) + ) && + ( + this.Protected == input.Protected || + (this.Protected != null && + this.Protected.Equals(input.Protected)) + ) && + ( + this.SortDir == input.SortDir || + (this.SortDir != null && + this.SortDir.Equals(input.SortDir)) + ) && + ( + this.SortKey == input.SortKey || + (this.SortKey != null && + this.SortKey.Equals(input.SortKey)) + ) && + ( + this.Status == input.Status || + (this.Status != null && + this.Status.Equals(input.Status)) + ) && + ( + this.Tag == input.Tag || + (this.Tag != null && + this.Tag.Equals(input.Tag)) + ) && + ( + this.Visibility == input.Visibility || + (this.Visibility != null && + this.Visibility.Equals(input.Visibility)) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.UpdatedAt == input.UpdatedAt || + (this.UpdatedAt != null && + this.UpdatedAt.Equals(input.UpdatedAt)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Imagetype != null) + hashCode = hashCode * 59 + this.Imagetype.GetHashCode(); + if (this.Isregistered != null) + hashCode = hashCode * 59 + this.Isregistered.GetHashCode(); + if (this.OsBit != null) + hashCode = hashCode * 59 + this.OsBit.GetHashCode(); + if (this.OsType != null) + hashCode = hashCode * 59 + this.OsType.GetHashCode(); + if (this.Platform != null) + hashCode = hashCode * 59 + this.Platform.GetHashCode(); + if (this.SupportDiskintensive != null) + hashCode = hashCode * 59 + this.SupportDiskintensive.GetHashCode(); + if (this.SupportHighperformance != null) + hashCode = hashCode * 59 + this.SupportHighperformance.GetHashCode(); + if (this.SupportKvm != null) + hashCode = hashCode * 59 + this.SupportKvm.GetHashCode(); + if (this.SupportKvmGpuType != null) + hashCode = hashCode * 59 + this.SupportKvmGpuType.GetHashCode(); + if (this.SupportKvmInfiniband != null) + hashCode = hashCode * 59 + this.SupportKvmInfiniband.GetHashCode(); + if (this.SupportLargememory != null) + hashCode = hashCode * 59 + this.SupportLargememory.GetHashCode(); + if (this.SupportXen != null) + hashCode = hashCode * 59 + this.SupportXen.GetHashCode(); + if (this.SupportXenGpuType != null) + hashCode = hashCode * 59 + this.SupportXenGpuType.GetHashCode(); + if (this.SupportXenHana != null) + hashCode = hashCode * 59 + this.SupportXenHana.GetHashCode(); + if (this.ContainerFormat != null) + hashCode = hashCode * 59 + this.ContainerFormat.GetHashCode(); + if (this.DiskFormat != null) + hashCode = hashCode * 59 + this.DiskFormat.GetHashCode(); + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.Limit != null) + hashCode = hashCode * 59 + this.Limit.GetHashCode(); + if (this.Marker != null) + hashCode = hashCode * 59 + this.Marker.GetHashCode(); + if (this.MemberStatus != null) + hashCode = hashCode * 59 + this.MemberStatus.GetHashCode(); + if (this.MinDisk != null) + hashCode = hashCode * 59 + this.MinDisk.GetHashCode(); + if (this.MinRam != null) + hashCode = hashCode * 59 + this.MinRam.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Owner != null) + hashCode = hashCode * 59 + this.Owner.GetHashCode(); + if (this.Protected != null) + hashCode = hashCode * 59 + this.Protected.GetHashCode(); + if (this.SortDir != null) + hashCode = hashCode * 59 + this.SortDir.GetHashCode(); + if (this.SortKey != null) + hashCode = hashCode * 59 + this.SortKey.GetHashCode(); + if (this.Status != null) + hashCode = hashCode * 59 + this.Status.GetHashCode(); + if (this.Tag != null) + hashCode = hashCode * 59 + this.Tag.GetHashCode(); + if (this.Visibility != null) + hashCode = hashCode * 59 + this.Visibility.GetHashCode(); + if (this.CreatedAt != null) + hashCode = hashCode * 59 + this.CreatedAt.GetHashCode(); + if (this.UpdatedAt != null) + hashCode = hashCode * 59 + this.UpdatedAt.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/GlanceListImagesResponse.cs b/Services/Ims/V2/Model/GlanceListImagesResponse.cs new file mode 100755 index 0000000..85636e4 --- /dev/null +++ b/Services/Ims/V2/Model/GlanceListImagesResponse.cs @@ -0,0 +1,107 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Response Object + /// + public class GlanceListImagesResponse : SdkResponse + { + + [JsonProperty("first", NullValueHandling = NullValueHandling.Ignore)] + public string First { get; set; } + + [JsonProperty("images", NullValueHandling = NullValueHandling.Ignore)] + public List Images { get; set; } + + [JsonProperty("schema", NullValueHandling = NullValueHandling.Ignore)] + public string Schema { get; set; } + + [JsonProperty("next", NullValueHandling = NullValueHandling.Ignore)] + public string Next { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class GlanceListImagesResponse {\n"); + sb.Append(" first: ").Append(First).Append("\n"); + sb.Append(" images: ").Append(Images).Append("\n"); + sb.Append(" schema: ").Append(Schema).Append("\n"); + sb.Append(" next: ").Append(Next).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as GlanceListImagesResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(GlanceListImagesResponse input) + { + if (input == null) + return false; + + return + ( + this.First == input.First || + (this.First != null && + this.First.Equals(input.First)) + ) && + ( + this.Images == input.Images || + this.Images != null && + input.Images != null && + this.Images.SequenceEqual(input.Images) + ) && + ( + this.Schema == input.Schema || + (this.Schema != null && + this.Schema.Equals(input.Schema)) + ) && + ( + this.Next == input.Next || + (this.Next != null && + this.Next.Equals(input.Next)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.First != null) + hashCode = hashCode * 59 + this.First.GetHashCode(); + if (this.Images != null) + hashCode = hashCode * 59 + this.Images.GetHashCode(); + if (this.Schema != null) + hashCode = hashCode * 59 + this.Schema.GetHashCode(); + if (this.Next != null) + hashCode = hashCode * 59 + this.Next.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/GlanceShowImageMemberRequest.cs b/Services/Ims/V2/Model/GlanceShowImageMemberRequest.cs new file mode 100755 index 0000000..cd7f353 --- /dev/null +++ b/Services/Ims/V2/Model/GlanceShowImageMemberRequest.cs @@ -0,0 +1,86 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Request Object + /// + public class GlanceShowImageMemberRequest + { + + [SDKProperty("image_id", IsPath = true)] + [JsonProperty("image_id", NullValueHandling = NullValueHandling.Ignore)] + public string ImageId { get; set; } + + [SDKProperty("member_id", IsPath = true)] + [JsonProperty("member_id", NullValueHandling = NullValueHandling.Ignore)] + public string MemberId { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class GlanceShowImageMemberRequest {\n"); + sb.Append(" imageId: ").Append(ImageId).Append("\n"); + sb.Append(" memberId: ").Append(MemberId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as GlanceShowImageMemberRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(GlanceShowImageMemberRequest input) + { + if (input == null) + return false; + + return + ( + this.ImageId == input.ImageId || + (this.ImageId != null && + this.ImageId.Equals(input.ImageId)) + ) && + ( + this.MemberId == input.MemberId || + (this.MemberId != null && + this.MemberId.Equals(input.MemberId)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ImageId != null) + hashCode = hashCode * 59 + this.ImageId.GetHashCode(); + if (this.MemberId != null) + hashCode = hashCode * 59 + this.MemberId.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/GlanceShowImageMemberResponse.cs b/Services/Ims/V2/Model/GlanceShowImageMemberResponse.cs new file mode 100755 index 0000000..8e5525c --- /dev/null +++ b/Services/Ims/V2/Model/GlanceShowImageMemberResponse.cs @@ -0,0 +1,128 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Response Object + /// + public class GlanceShowImageMemberResponse : SdkResponse + { + + [JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)] + public string Status { get; set; } + + [JsonProperty("created_at", NullValueHandling = NullValueHandling.Ignore)] + public string CreatedAt { get; set; } + + [JsonProperty("updated_at", NullValueHandling = NullValueHandling.Ignore)] + public string UpdatedAt { get; set; } + + [JsonProperty("image_id", NullValueHandling = NullValueHandling.Ignore)] + public string ImageId { get; set; } + + [JsonProperty("member_id", NullValueHandling = NullValueHandling.Ignore)] + public string MemberId { get; set; } + + [JsonProperty("schema", NullValueHandling = NullValueHandling.Ignore)] + public string Schema { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class GlanceShowImageMemberResponse {\n"); + sb.Append(" status: ").Append(Status).Append("\n"); + sb.Append(" createdAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" updatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append(" imageId: ").Append(ImageId).Append("\n"); + sb.Append(" memberId: ").Append(MemberId).Append("\n"); + sb.Append(" schema: ").Append(Schema).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as GlanceShowImageMemberResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(GlanceShowImageMemberResponse input) + { + if (input == null) + return false; + + return + ( + this.Status == input.Status || + (this.Status != null && + this.Status.Equals(input.Status)) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.UpdatedAt == input.UpdatedAt || + (this.UpdatedAt != null && + this.UpdatedAt.Equals(input.UpdatedAt)) + ) && + ( + this.ImageId == input.ImageId || + (this.ImageId != null && + this.ImageId.Equals(input.ImageId)) + ) && + ( + this.MemberId == input.MemberId || + (this.MemberId != null && + this.MemberId.Equals(input.MemberId)) + ) && + ( + this.Schema == input.Schema || + (this.Schema != null && + this.Schema.Equals(input.Schema)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Status != null) + hashCode = hashCode * 59 + this.Status.GetHashCode(); + if (this.CreatedAt != null) + hashCode = hashCode * 59 + this.CreatedAt.GetHashCode(); + if (this.UpdatedAt != null) + hashCode = hashCode * 59 + this.UpdatedAt.GetHashCode(); + if (this.ImageId != null) + hashCode = hashCode * 59 + this.ImageId.GetHashCode(); + if (this.MemberId != null) + hashCode = hashCode * 59 + this.MemberId.GetHashCode(); + if (this.Schema != null) + hashCode = hashCode * 59 + this.Schema.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/GlanceShowImageMemberSchemasRequest.cs b/Services/Ims/V2/Model/GlanceShowImageMemberSchemasRequest.cs new file mode 100755 index 0000000..2fc4de8 --- /dev/null +++ b/Services/Ims/V2/Model/GlanceShowImageMemberSchemasRequest.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Request Object + /// + public class GlanceShowImageMemberSchemasRequest + { + + + } +} diff --git a/Services/Ims/V2/Model/GlanceShowImageMemberSchemasResponse.cs b/Services/Ims/V2/Model/GlanceShowImageMemberSchemasResponse.cs new file mode 100755 index 0000000..9a20837 --- /dev/null +++ b/Services/Ims/V2/Model/GlanceShowImageMemberSchemasResponse.cs @@ -0,0 +1,84 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Response Object + /// + public class GlanceShowImageMemberSchemasResponse : SdkResponse + { + + [JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)] + public string Name { get; set; } + + [JsonProperty("properties", NullValueHandling = NullValueHandling.Ignore)] + public Object Properties { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class GlanceShowImageMemberSchemasResponse {\n"); + sb.Append(" name: ").Append(Name).Append("\n"); + sb.Append(" properties: ").Append(Properties).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as GlanceShowImageMemberSchemasResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(GlanceShowImageMemberSchemasResponse input) + { + if (input == null) + return false; + + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Properties == input.Properties || + (this.Properties != null && + this.Properties.Equals(input.Properties)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Properties != null) + hashCode = hashCode * 59 + this.Properties.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/GlanceShowImageRequest.cs b/Services/Ims/V2/Model/GlanceShowImageRequest.cs new file mode 100755 index 0000000..5dd959c --- /dev/null +++ b/Services/Ims/V2/Model/GlanceShowImageRequest.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Request Object + /// + public class GlanceShowImageRequest + { + + [SDKProperty("image_id", IsPath = true)] + [JsonProperty("image_id", NullValueHandling = NullValueHandling.Ignore)] + public string ImageId { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class GlanceShowImageRequest {\n"); + sb.Append(" imageId: ").Append(ImageId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as GlanceShowImageRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(GlanceShowImageRequest input) + { + if (input == null) + return false; + + return + ( + this.ImageId == input.ImageId || + (this.ImageId != null && + this.ImageId.Equals(input.ImageId)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ImageId != null) + hashCode = hashCode * 59 + this.ImageId.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/GlanceShowImageResponse.cs b/Services/Ims/V2/Model/GlanceShowImageResponse.cs new file mode 100755 index 0000000..4924fae --- /dev/null +++ b/Services/Ims/V2/Model/GlanceShowImageResponse.cs @@ -0,0 +1,2389 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Response Object + /// + public class GlanceShowImageResponse : SdkResponse + { + [JsonConverter(typeof(EnumClassConverter))] + public class ImageSourceTypeEnum + { + /// + /// Enum UDS for value: uds + /// + public static readonly ImageSourceTypeEnum UDS = new ImageSourceTypeEnum("uds"); + + /// + /// Enum SWIFT for value: swift + /// + public static readonly ImageSourceTypeEnum SWIFT = new ImageSourceTypeEnum("swift"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "uds", UDS }, + { "swift", SWIFT }, + }; + + private string _value; + + public ImageSourceTypeEnum() + { + + } + + public ImageSourceTypeEnum(string value) + { + _value = value; + } + + public static ImageSourceTypeEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as ImageSourceTypeEnum)) + { + return true; + } + + return false; + } + + public bool Equals(ImageSourceTypeEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(ImageSourceTypeEnum a, ImageSourceTypeEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(ImageSourceTypeEnum a, ImageSourceTypeEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class ImagetypeEnum + { + /// + /// Enum GOLD for value: gold + /// + public static readonly ImagetypeEnum GOLD = new ImagetypeEnum("gold"); + + /// + /// Enum PRIVATE for value: private + /// + public static readonly ImagetypeEnum PRIVATE = new ImagetypeEnum("private"); + + /// + /// Enum SHARED for value: shared + /// + public static readonly ImagetypeEnum SHARED = new ImagetypeEnum("shared"); + + /// + /// Enum MARKET for value: market + /// + public static readonly ImagetypeEnum MARKET = new ImagetypeEnum("market"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "gold", GOLD }, + { "private", PRIVATE }, + { "shared", SHARED }, + { "market", MARKET }, + }; + + private string _value; + + public ImagetypeEnum() + { + + } + + public ImagetypeEnum(string value) + { + _value = value; + } + + public static ImagetypeEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as ImagetypeEnum)) + { + return true; + } + + return false; + } + + public bool Equals(ImagetypeEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(ImagetypeEnum a, ImagetypeEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(ImagetypeEnum a, ImagetypeEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class IsregisteredEnum + { + /// + /// Enum TRUE for value: true + /// + public static readonly IsregisteredEnum TRUE = new IsregisteredEnum("true"); + + /// + /// Enum FALSE for value: false + /// + public static readonly IsregisteredEnum FALSE = new IsregisteredEnum("false"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "true", TRUE }, + { "false", FALSE }, + }; + + private string _value; + + public IsregisteredEnum() + { + + } + + public IsregisteredEnum(string value) + { + _value = value; + } + + public static IsregisteredEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as IsregisteredEnum)) + { + return true; + } + + return false; + } + + public bool Equals(IsregisteredEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(IsregisteredEnum a, IsregisteredEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(IsregisteredEnum a, IsregisteredEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class OsBitEnum + { + /// + /// Enum _32 for value: 32 + /// + public static readonly OsBitEnum _32 = new OsBitEnum("32"); + + /// + /// Enum _64 for value: 64 + /// + public static readonly OsBitEnum _64 = new OsBitEnum("64"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "32", _32 }, + { "64", _64 }, + }; + + private string _value; + + public OsBitEnum() + { + + } + + public OsBitEnum(string value) + { + _value = value; + } + + public static OsBitEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as OsBitEnum)) + { + return true; + } + + return false; + } + + public bool Equals(OsBitEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(OsBitEnum a, OsBitEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(OsBitEnum a, OsBitEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class OsTypeEnum + { + /// + /// Enum LINUX for value: Linux + /// + public static readonly OsTypeEnum LINUX = new OsTypeEnum("Linux"); + + /// + /// Enum WINDOWS for value: Windows + /// + public static readonly OsTypeEnum WINDOWS = new OsTypeEnum("Windows"); + + /// + /// Enum OTHER for value: Other + /// + public static readonly OsTypeEnum OTHER = new OsTypeEnum("Other"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "Linux", LINUX }, + { "Windows", WINDOWS }, + { "Other", OTHER }, + }; + + private string _value; + + public OsTypeEnum() + { + + } + + public OsTypeEnum(string value) + { + _value = value; + } + + public static OsTypeEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as OsTypeEnum)) + { + return true; + } + + return false; + } + + public bool Equals(OsTypeEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(OsTypeEnum a, OsTypeEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(OsTypeEnum a, OsTypeEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class PlatformEnum + { + /// + /// Enum WINDOWS for value: Windows + /// + public static readonly PlatformEnum WINDOWS = new PlatformEnum("Windows"); + + /// + /// Enum UBUNTU for value: Ubuntu + /// + public static readonly PlatformEnum UBUNTU = new PlatformEnum("Ubuntu"); + + /// + /// Enum REDHAT for value: RedHat + /// + public static readonly PlatformEnum REDHAT = new PlatformEnum("RedHat"); + + /// + /// Enum SUSE for value: SUSE + /// + public static readonly PlatformEnum SUSE = new PlatformEnum("SUSE"); + + /// + /// Enum CENTOS for value: CentOS + /// + public static readonly PlatformEnum CENTOS = new PlatformEnum("CentOS"); + + /// + /// Enum DEBIAN for value: Debian + /// + public static readonly PlatformEnum DEBIAN = new PlatformEnum("Debian"); + + /// + /// Enum OPENSUSE for value: OpenSUSE + /// + public static readonly PlatformEnum OPENSUSE = new PlatformEnum("OpenSUSE"); + + /// + /// Enum ORACLELINUX for value: OracleLinux + /// + public static readonly PlatformEnum ORACLELINUX = new PlatformEnum("OracleLinux"); + + /// + /// Enum FEDORA for value: Fedora + /// + public static readonly PlatformEnum FEDORA = new PlatformEnum("Fedora"); + + /// + /// Enum OTHER for value: Other + /// + public static readonly PlatformEnum OTHER = new PlatformEnum("Other"); + + /// + /// Enum COREOS for value: CoreOS + /// + public static readonly PlatformEnum COREOS = new PlatformEnum("CoreOS"); + + /// + /// Enum EULEROS for value: EulerOS + /// + public static readonly PlatformEnum EULEROS = new PlatformEnum("EulerOS"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "Windows", WINDOWS }, + { "Ubuntu", UBUNTU }, + { "RedHat", REDHAT }, + { "SUSE", SUSE }, + { "CentOS", CENTOS }, + { "Debian", DEBIAN }, + { "OpenSUSE", OPENSUSE }, + { "OracleLinux", ORACLELINUX }, + { "Fedora", FEDORA }, + { "Other", OTHER }, + { "CoreOS", COREOS }, + { "EulerOS", EULEROS }, + }; + + private string _value; + + public PlatformEnum() + { + + } + + public PlatformEnum(string value) + { + _value = value; + } + + public static PlatformEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as PlatformEnum)) + { + return true; + } + + return false; + } + + public bool Equals(PlatformEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(PlatformEnum a, PlatformEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(PlatformEnum a, PlatformEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class DiskFormatEnum + { + /// + /// Enum VHD for value: vhd + /// + public static readonly DiskFormatEnum VHD = new DiskFormatEnum("vhd"); + + /// + /// Enum ZVHD for value: zvhd + /// + public static readonly DiskFormatEnum ZVHD = new DiskFormatEnum("zvhd"); + + /// + /// Enum RAW for value: raw + /// + public static readonly DiskFormatEnum RAW = new DiskFormatEnum("raw"); + + /// + /// Enum QCOW2 for value: qcow2 + /// + public static readonly DiskFormatEnum QCOW2 = new DiskFormatEnum("qcow2"); + + /// + /// Enum ZVHD2 for value: zvhd2 + /// + public static readonly DiskFormatEnum ZVHD2 = new DiskFormatEnum("zvhd2"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "vhd", VHD }, + { "zvhd", ZVHD }, + { "raw", RAW }, + { "qcow2", QCOW2 }, + { "zvhd2", ZVHD2 }, + }; + + private string _value; + + public DiskFormatEnum() + { + + } + + public DiskFormatEnum(string value) + { + _value = value; + } + + public static DiskFormatEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as DiskFormatEnum)) + { + return true; + } + + return false; + } + + public bool Equals(DiskFormatEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(DiskFormatEnum a, DiskFormatEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(DiskFormatEnum a, DiskFormatEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class StatusEnum + { + /// + /// Enum QUEUED for value: queued + /// + public static readonly StatusEnum QUEUED = new StatusEnum("queued"); + + /// + /// Enum SAVING for value: saving + /// + public static readonly StatusEnum SAVING = new StatusEnum("saving"); + + /// + /// Enum DELETED for value: deleted + /// + public static readonly StatusEnum DELETED = new StatusEnum("deleted"); + + /// + /// Enum KILLED for value: killed + /// + public static readonly StatusEnum KILLED = new StatusEnum("killed"); + + /// + /// Enum ACTIVE for value: active + /// + public static readonly StatusEnum ACTIVE = new StatusEnum("active"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "queued", QUEUED }, + { "saving", SAVING }, + { "deleted", DELETED }, + { "killed", KILLED }, + { "active", ACTIVE }, + }; + + private string _value; + + public StatusEnum() + { + + } + + public StatusEnum(string value) + { + _value = value; + } + + public static StatusEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as StatusEnum)) + { + return true; + } + + return false; + } + + public bool Equals(StatusEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(StatusEnum a, StatusEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(StatusEnum a, StatusEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class VirtualEnvTypeEnum + { + /// + /// Enum FUSIONCOMPUTE for value: FusionCompute + /// + public static readonly VirtualEnvTypeEnum FUSIONCOMPUTE = new VirtualEnvTypeEnum("FusionCompute"); + + /// + /// Enum IRONIC for value: Ironic + /// + public static readonly VirtualEnvTypeEnum IRONIC = new VirtualEnvTypeEnum("Ironic"); + + /// + /// Enum DATAIMAGE for value: DataImage + /// + public static readonly VirtualEnvTypeEnum DATAIMAGE = new VirtualEnvTypeEnum("DataImage"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "FusionCompute", FUSIONCOMPUTE }, + { "Ironic", IRONIC }, + { "DataImage", DATAIMAGE }, + }; + + private string _value; + + public VirtualEnvTypeEnum() + { + + } + + public VirtualEnvTypeEnum(string value) + { + _value = value; + } + + public static VirtualEnvTypeEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as VirtualEnvTypeEnum)) + { + return true; + } + + return false; + } + + public bool Equals(VirtualEnvTypeEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(VirtualEnvTypeEnum a, VirtualEnvTypeEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(VirtualEnvTypeEnum a, VirtualEnvTypeEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class VisibilityEnum + { + /// + /// Enum PRIVATE for value: private + /// + public static readonly VisibilityEnum PRIVATE = new VisibilityEnum("private"); + + /// + /// Enum PUBLIC for value: public + /// + public static readonly VisibilityEnum PUBLIC = new VisibilityEnum("public"); + + /// + /// Enum SHARED for value: shared + /// + public static readonly VisibilityEnum SHARED = new VisibilityEnum("shared"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "private", PRIVATE }, + { "public", PUBLIC }, + { "shared", SHARED }, + }; + + private string _value; + + public VisibilityEnum() + { + + } + + public VisibilityEnum(string value) + { + _value = value; + } + + public static VisibilityEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as VisibilityEnum)) + { + return true; + } + + return false; + } + + public bool Equals(VisibilityEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(VisibilityEnum a, VisibilityEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(VisibilityEnum a, VisibilityEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class SupportFcInjectEnum + { + /// + /// Enum TRUE for value: true + /// + public static readonly SupportFcInjectEnum TRUE = new SupportFcInjectEnum("true"); + + /// + /// Enum FALSE for value: false + /// + public static readonly SupportFcInjectEnum FALSE = new SupportFcInjectEnum("false"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "true", TRUE }, + { "false", FALSE }, + }; + + private string _value; + + public SupportFcInjectEnum() + { + + } + + public SupportFcInjectEnum(string value) + { + _value = value; + } + + public static SupportFcInjectEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as SupportFcInjectEnum)) + { + return true; + } + + return false; + } + + public bool Equals(SupportFcInjectEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(SupportFcInjectEnum a, SupportFcInjectEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(SupportFcInjectEnum a, SupportFcInjectEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class HwFirmwareTypeEnum + { + /// + /// Enum BIOS for value: bios + /// + public static readonly HwFirmwareTypeEnum BIOS = new HwFirmwareTypeEnum("bios"); + + /// + /// Enum UEFI for value: uefi + /// + public static readonly HwFirmwareTypeEnum UEFI = new HwFirmwareTypeEnum("uefi"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "bios", BIOS }, + { "uefi", UEFI }, + }; + + private string _value; + + public HwFirmwareTypeEnum() + { + + } + + public HwFirmwareTypeEnum(string value) + { + _value = value; + } + + public static HwFirmwareTypeEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as HwFirmwareTypeEnum)) + { + return true; + } + + return false; + } + + public bool Equals(HwFirmwareTypeEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(HwFirmwareTypeEnum a, HwFirmwareTypeEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(HwFirmwareTypeEnum a, HwFirmwareTypeEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class SupportArmEnum + { + /// + /// Enum TRUE for value: true + /// + public static readonly SupportArmEnum TRUE = new SupportArmEnum("true"); + + /// + /// Enum FALSE for value: false + /// + public static readonly SupportArmEnum FALSE = new SupportArmEnum("false"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "true", TRUE }, + { "false", FALSE }, + }; + + private string _value; + + public SupportArmEnum() + { + + } + + public SupportArmEnum(string value) + { + _value = value; + } + + public static SupportArmEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as SupportArmEnum)) + { + return true; + } + + return false; + } + + public bool Equals(SupportArmEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(SupportArmEnum a, SupportArmEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(SupportArmEnum a, SupportArmEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class IsOffshelvedEnum + { + /// + /// Enum TRUE for value: true + /// + public static readonly IsOffshelvedEnum TRUE = new IsOffshelvedEnum("true"); + + /// + /// Enum FALSE for value: false + /// + public static readonly IsOffshelvedEnum FALSE = new IsOffshelvedEnum("false"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "true", TRUE }, + { "false", FALSE }, + }; + + private string _value; + + public IsOffshelvedEnum() + { + + } + + public IsOffshelvedEnum(string value) + { + _value = value; + } + + public static IsOffshelvedEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as IsOffshelvedEnum)) + { + return true; + } + + return false; + } + + public bool Equals(IsOffshelvedEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(IsOffshelvedEnum a, IsOffshelvedEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(IsOffshelvedEnum a, IsOffshelvedEnum b) + { + return !(a == b); + } + } + + + [JsonProperty("__backup_id", NullValueHandling = NullValueHandling.Ignore)] + public string BackupId { get; set; } + + [JsonProperty("__data_origin", NullValueHandling = NullValueHandling.Ignore)] + public string DataOrigin { get; set; } + + [JsonProperty("__description", NullValueHandling = NullValueHandling.Ignore)] + public string Description { get; set; } + + [JsonProperty("__image_size", NullValueHandling = NullValueHandling.Ignore)] + public string ImageSize { get; set; } + + [JsonProperty("__image_source_type", NullValueHandling = NullValueHandling.Ignore)] + public ImageSourceTypeEnum ImageSourceType { get; set; } + [JsonProperty("__imagetype", NullValueHandling = NullValueHandling.Ignore)] + public ImagetypeEnum Imagetype { get; set; } + [JsonProperty("__isregistered", NullValueHandling = NullValueHandling.Ignore)] + public IsregisteredEnum Isregistered { get; set; } + [JsonProperty("__originalimagename", NullValueHandling = NullValueHandling.Ignore)] + public string Originalimagename { get; set; } + + [JsonProperty("__os_bit", NullValueHandling = NullValueHandling.Ignore)] + public OsBitEnum OsBit { get; set; } + [JsonProperty("__os_type", NullValueHandling = NullValueHandling.Ignore)] + public OsTypeEnum OsType { get; set; } + [JsonProperty("__os_version", NullValueHandling = NullValueHandling.Ignore)] + public string OsVersion { get; set; } + + [JsonProperty("__platform", NullValueHandling = NullValueHandling.Ignore)] + public PlatformEnum Platform { get; set; } + [JsonProperty("__productcode", NullValueHandling = NullValueHandling.Ignore)] + public string Productcode { get; set; } + + [JsonProperty("__support_diskintensive", NullValueHandling = NullValueHandling.Ignore)] + public string SupportDiskintensive { get; set; } + + [JsonProperty("__support_highperformance", NullValueHandling = NullValueHandling.Ignore)] + public string SupportHighperformance { get; set; } + + [JsonProperty("__support_kvm", NullValueHandling = NullValueHandling.Ignore)] + public string SupportKvm { get; set; } + + [JsonProperty("__support_kvm_gpu_type", NullValueHandling = NullValueHandling.Ignore)] + public string SupportKvmGpuType { get; set; } + + [JsonProperty("__support_kvm_infiniband", NullValueHandling = NullValueHandling.Ignore)] + public string SupportKvmInfiniband { get; set; } + + [JsonProperty("__support_largememory", NullValueHandling = NullValueHandling.Ignore)] + public string SupportLargememory { get; set; } + + [JsonProperty("__support_xen", NullValueHandling = NullValueHandling.Ignore)] + public string SupportXen { get; set; } + + [JsonProperty("__support_xen_gpu_type", NullValueHandling = NullValueHandling.Ignore)] + public string SupportXenGpuType { get; set; } + + [JsonProperty("__support_xen_hana", NullValueHandling = NullValueHandling.Ignore)] + public string SupportXenHana { get; set; } + + [JsonProperty("checksum", NullValueHandling = NullValueHandling.Ignore)] + public string Checksum { get; set; } + + [JsonProperty("container_format", NullValueHandling = NullValueHandling.Ignore)] + public string ContainerFormat { get; set; } + + [JsonProperty("created_at", NullValueHandling = NullValueHandling.Ignore)] + public string CreatedAt { get; set; } + + [JsonProperty("disk_format", NullValueHandling = NullValueHandling.Ignore)] + public DiskFormatEnum DiskFormat { get; set; } + [JsonProperty("file", NullValueHandling = NullValueHandling.Ignore)] + public string File { get; set; } + + [JsonProperty("id", NullValueHandling = NullValueHandling.Ignore)] + public string Id { get; set; } + + [JsonProperty("min_disk", NullValueHandling = NullValueHandling.Ignore)] + public int? MinDisk { get; set; } + + [JsonProperty("min_ram", NullValueHandling = NullValueHandling.Ignore)] + public int? MinRam { get; set; } + + [JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)] + public string Name { get; set; } + + [JsonProperty("owner", NullValueHandling = NullValueHandling.Ignore)] + public string Owner { get; set; } + + [JsonProperty("protected", NullValueHandling = NullValueHandling.Ignore)] + public bool? Protected { get; set; } + + [JsonProperty("schema", NullValueHandling = NullValueHandling.Ignore)] + public string Schema { get; set; } + + [JsonProperty("self", NullValueHandling = NullValueHandling.Ignore)] + public string Self { get; set; } + + [JsonProperty("size", NullValueHandling = NullValueHandling.Ignore)] + public long? Size { get; set; } + + [JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)] + public StatusEnum Status { get; set; } + [JsonProperty("tags", NullValueHandling = NullValueHandling.Ignore)] + public List Tags { get; set; } + + [JsonProperty("updated_at", NullValueHandling = NullValueHandling.Ignore)] + public string UpdatedAt { get; set; } + + [JsonProperty("virtual_env_type", NullValueHandling = NullValueHandling.Ignore)] + public VirtualEnvTypeEnum VirtualEnvType { get; set; } + [JsonProperty("virtual_size", NullValueHandling = NullValueHandling.Ignore)] + public int? VirtualSize { get; set; } + + [JsonProperty("visibility", NullValueHandling = NullValueHandling.Ignore)] + public VisibilityEnum Visibility { get; set; } + [JsonProperty("__support_fc_inject", NullValueHandling = NullValueHandling.Ignore)] + public SupportFcInjectEnum SupportFcInject { get; set; } + [JsonProperty("enterprise_project_id", NullValueHandling = NullValueHandling.Ignore)] + public string EnterpriseProjectId { get; set; } + + [JsonProperty("hw_firmware_type", NullValueHandling = NullValueHandling.Ignore)] + public HwFirmwareTypeEnum HwFirmwareType { get; set; } + [JsonProperty("__support_arm", NullValueHandling = NullValueHandling.Ignore)] + public SupportArmEnum SupportArm { get; set; } + [JsonProperty("__is_offshelved", NullValueHandling = NullValueHandling.Ignore)] + public IsOffshelvedEnum IsOffshelved { get; set; } + [JsonProperty("__lazyloading", NullValueHandling = NullValueHandling.Ignore)] + public string Lazyloading { get; set; } + + [JsonProperty("__os_feature_list", NullValueHandling = NullValueHandling.Ignore)] + public string OsFeatureList { get; set; } + + [JsonProperty("__root_origin", NullValueHandling = NullValueHandling.Ignore)] + public string RootOrigin { get; set; } + + [JsonProperty("__sequence_num", NullValueHandling = NullValueHandling.Ignore)] + public string SequenceNum { get; set; } + + [JsonProperty("__support_agent_list", NullValueHandling = NullValueHandling.Ignore)] + public string SupportAgentList { get; set; } + + [JsonProperty("__system__cmkid", NullValueHandling = NullValueHandling.Ignore)] + public string SystemCmkid { get; set; } + + [JsonProperty("active_at", NullValueHandling = NullValueHandling.Ignore)] + public string ActiveAt { get; set; } + + [JsonProperty("hw_vif_multiqueue_enabled", NullValueHandling = NullValueHandling.Ignore)] + public string HwVifMultiqueueEnabled { get; set; } + + [JsonProperty("max_ram", NullValueHandling = NullValueHandling.Ignore)] + public string MaxRam { get; set; } + + [JsonProperty("__image_location", NullValueHandling = NullValueHandling.Ignore)] + public string ImageLocation { get; set; } + + [JsonProperty("__is_config_init", NullValueHandling = NullValueHandling.Ignore)] + public string IsConfigInit { get; set; } + + [JsonProperty("__account_code", NullValueHandling = NullValueHandling.Ignore)] + public string AccountCode { get; set; } + + [JsonProperty("__support_amd", NullValueHandling = NullValueHandling.Ignore)] + public string SupportAmd { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class GlanceShowImageResponse {\n"); + sb.Append(" backupId: ").Append(BackupId).Append("\n"); + sb.Append(" dataOrigin: ").Append(DataOrigin).Append("\n"); + sb.Append(" description: ").Append(Description).Append("\n"); + sb.Append(" imageSize: ").Append(ImageSize).Append("\n"); + sb.Append(" imageSourceType: ").Append(ImageSourceType).Append("\n"); + sb.Append(" imagetype: ").Append(Imagetype).Append("\n"); + sb.Append(" isregistered: ").Append(Isregistered).Append("\n"); + sb.Append(" originalimagename: ").Append(Originalimagename).Append("\n"); + sb.Append(" osBit: ").Append(OsBit).Append("\n"); + sb.Append(" osType: ").Append(OsType).Append("\n"); + sb.Append(" osVersion: ").Append(OsVersion).Append("\n"); + sb.Append(" platform: ").Append(Platform).Append("\n"); + sb.Append(" productcode: ").Append(Productcode).Append("\n"); + sb.Append(" supportDiskintensive: ").Append(SupportDiskintensive).Append("\n"); + sb.Append(" supportHighperformance: ").Append(SupportHighperformance).Append("\n"); + sb.Append(" supportKvm: ").Append(SupportKvm).Append("\n"); + sb.Append(" supportKvmGpuType: ").Append(SupportKvmGpuType).Append("\n"); + sb.Append(" supportKvmInfiniband: ").Append(SupportKvmInfiniband).Append("\n"); + sb.Append(" supportLargememory: ").Append(SupportLargememory).Append("\n"); + sb.Append(" supportXen: ").Append(SupportXen).Append("\n"); + sb.Append(" supportXenGpuType: ").Append(SupportXenGpuType).Append("\n"); + sb.Append(" supportXenHana: ").Append(SupportXenHana).Append("\n"); + sb.Append(" checksum: ").Append(Checksum).Append("\n"); + sb.Append(" containerFormat: ").Append(ContainerFormat).Append("\n"); + sb.Append(" createdAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" diskFormat: ").Append(DiskFormat).Append("\n"); + sb.Append(" file: ").Append(File).Append("\n"); + sb.Append(" id: ").Append(Id).Append("\n"); + sb.Append(" minDisk: ").Append(MinDisk).Append("\n"); + sb.Append(" minRam: ").Append(MinRam).Append("\n"); + sb.Append(" name: ").Append(Name).Append("\n"); + sb.Append(" owner: ").Append(Owner).Append("\n"); + sb.Append(" Protected: ").Append(Protected).Append("\n"); + sb.Append(" schema: ").Append(Schema).Append("\n"); + sb.Append(" self: ").Append(Self).Append("\n"); + sb.Append(" size: ").Append(Size).Append("\n"); + sb.Append(" status: ").Append(Status).Append("\n"); + sb.Append(" tags: ").Append(Tags).Append("\n"); + sb.Append(" updatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append(" virtualEnvType: ").Append(VirtualEnvType).Append("\n"); + sb.Append(" virtualSize: ").Append(VirtualSize).Append("\n"); + sb.Append(" visibility: ").Append(Visibility).Append("\n"); + sb.Append(" supportFcInject: ").Append(SupportFcInject).Append("\n"); + sb.Append(" enterpriseProjectId: ").Append(EnterpriseProjectId).Append("\n"); + sb.Append(" hwFirmwareType: ").Append(HwFirmwareType).Append("\n"); + sb.Append(" supportArm: ").Append(SupportArm).Append("\n"); + sb.Append(" isOffshelved: ").Append(IsOffshelved).Append("\n"); + sb.Append(" lazyloading: ").Append(Lazyloading).Append("\n"); + sb.Append(" osFeatureList: ").Append(OsFeatureList).Append("\n"); + sb.Append(" rootOrigin: ").Append(RootOrigin).Append("\n"); + sb.Append(" sequenceNum: ").Append(SequenceNum).Append("\n"); + sb.Append(" supportAgentList: ").Append(SupportAgentList).Append("\n"); + sb.Append(" systemCmkid: ").Append(SystemCmkid).Append("\n"); + sb.Append(" activeAt: ").Append(ActiveAt).Append("\n"); + sb.Append(" hwVifMultiqueueEnabled: ").Append(HwVifMultiqueueEnabled).Append("\n"); + sb.Append(" maxRam: ").Append(MaxRam).Append("\n"); + sb.Append(" imageLocation: ").Append(ImageLocation).Append("\n"); + sb.Append(" isConfigInit: ").Append(IsConfigInit).Append("\n"); + sb.Append(" accountCode: ").Append(AccountCode).Append("\n"); + sb.Append(" supportAmd: ").Append(SupportAmd).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as GlanceShowImageResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(GlanceShowImageResponse input) + { + if (input == null) + return false; + + return + ( + this.BackupId == input.BackupId || + (this.BackupId != null && + this.BackupId.Equals(input.BackupId)) + ) && + ( + this.DataOrigin == input.DataOrigin || + (this.DataOrigin != null && + this.DataOrigin.Equals(input.DataOrigin)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.ImageSize == input.ImageSize || + (this.ImageSize != null && + this.ImageSize.Equals(input.ImageSize)) + ) && + ( + this.ImageSourceType == input.ImageSourceType || + (this.ImageSourceType != null && + this.ImageSourceType.Equals(input.ImageSourceType)) + ) && + ( + this.Imagetype == input.Imagetype || + (this.Imagetype != null && + this.Imagetype.Equals(input.Imagetype)) + ) && + ( + this.Isregistered == input.Isregistered || + (this.Isregistered != null && + this.Isregistered.Equals(input.Isregistered)) + ) && + ( + this.Originalimagename == input.Originalimagename || + (this.Originalimagename != null && + this.Originalimagename.Equals(input.Originalimagename)) + ) && + ( + this.OsBit == input.OsBit || + (this.OsBit != null && + this.OsBit.Equals(input.OsBit)) + ) && + ( + this.OsType == input.OsType || + (this.OsType != null && + this.OsType.Equals(input.OsType)) + ) && + ( + this.OsVersion == input.OsVersion || + (this.OsVersion != null && + this.OsVersion.Equals(input.OsVersion)) + ) && + ( + this.Platform == input.Platform || + (this.Platform != null && + this.Platform.Equals(input.Platform)) + ) && + ( + this.Productcode == input.Productcode || + (this.Productcode != null && + this.Productcode.Equals(input.Productcode)) + ) && + ( + this.SupportDiskintensive == input.SupportDiskintensive || + (this.SupportDiskintensive != null && + this.SupportDiskintensive.Equals(input.SupportDiskintensive)) + ) && + ( + this.SupportHighperformance == input.SupportHighperformance || + (this.SupportHighperformance != null && + this.SupportHighperformance.Equals(input.SupportHighperformance)) + ) && + ( + this.SupportKvm == input.SupportKvm || + (this.SupportKvm != null && + this.SupportKvm.Equals(input.SupportKvm)) + ) && + ( + this.SupportKvmGpuType == input.SupportKvmGpuType || + (this.SupportKvmGpuType != null && + this.SupportKvmGpuType.Equals(input.SupportKvmGpuType)) + ) && + ( + this.SupportKvmInfiniband == input.SupportKvmInfiniband || + (this.SupportKvmInfiniband != null && + this.SupportKvmInfiniband.Equals(input.SupportKvmInfiniband)) + ) && + ( + this.SupportLargememory == input.SupportLargememory || + (this.SupportLargememory != null && + this.SupportLargememory.Equals(input.SupportLargememory)) + ) && + ( + this.SupportXen == input.SupportXen || + (this.SupportXen != null && + this.SupportXen.Equals(input.SupportXen)) + ) && + ( + this.SupportXenGpuType == input.SupportXenGpuType || + (this.SupportXenGpuType != null && + this.SupportXenGpuType.Equals(input.SupportXenGpuType)) + ) && + ( + this.SupportXenHana == input.SupportXenHana || + (this.SupportXenHana != null && + this.SupportXenHana.Equals(input.SupportXenHana)) + ) && + ( + this.Checksum == input.Checksum || + (this.Checksum != null && + this.Checksum.Equals(input.Checksum)) + ) && + ( + this.ContainerFormat == input.ContainerFormat || + (this.ContainerFormat != null && + this.ContainerFormat.Equals(input.ContainerFormat)) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.DiskFormat == input.DiskFormat || + (this.DiskFormat != null && + this.DiskFormat.Equals(input.DiskFormat)) + ) && + ( + this.File == input.File || + (this.File != null && + this.File.Equals(input.File)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.MinDisk == input.MinDisk || + (this.MinDisk != null && + this.MinDisk.Equals(input.MinDisk)) + ) && + ( + this.MinRam == input.MinRam || + (this.MinRam != null && + this.MinRam.Equals(input.MinRam)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Owner == input.Owner || + (this.Owner != null && + this.Owner.Equals(input.Owner)) + ) && + ( + this.Protected == input.Protected || + (this.Protected != null && + this.Protected.Equals(input.Protected)) + ) && + ( + this.Schema == input.Schema || + (this.Schema != null && + this.Schema.Equals(input.Schema)) + ) && + ( + this.Self == input.Self || + (this.Self != null && + this.Self.Equals(input.Self)) + ) && + ( + this.Size == input.Size || + (this.Size != null && + this.Size.Equals(input.Size)) + ) && + ( + this.Status == input.Status || + (this.Status != null && + this.Status.Equals(input.Status)) + ) && + ( + this.Tags == input.Tags || + this.Tags != null && + input.Tags != null && + this.Tags.SequenceEqual(input.Tags) + ) && + ( + this.UpdatedAt == input.UpdatedAt || + (this.UpdatedAt != null && + this.UpdatedAt.Equals(input.UpdatedAt)) + ) && + ( + this.VirtualEnvType == input.VirtualEnvType || + (this.VirtualEnvType != null && + this.VirtualEnvType.Equals(input.VirtualEnvType)) + ) && + ( + this.VirtualSize == input.VirtualSize || + (this.VirtualSize != null && + this.VirtualSize.Equals(input.VirtualSize)) + ) && + ( + this.Visibility == input.Visibility || + (this.Visibility != null && + this.Visibility.Equals(input.Visibility)) + ) && + ( + this.SupportFcInject == input.SupportFcInject || + (this.SupportFcInject != null && + this.SupportFcInject.Equals(input.SupportFcInject)) + ) && + ( + this.EnterpriseProjectId == input.EnterpriseProjectId || + (this.EnterpriseProjectId != null && + this.EnterpriseProjectId.Equals(input.EnterpriseProjectId)) + ) && + ( + this.HwFirmwareType == input.HwFirmwareType || + (this.HwFirmwareType != null && + this.HwFirmwareType.Equals(input.HwFirmwareType)) + ) && + ( + this.SupportArm == input.SupportArm || + (this.SupportArm != null && + this.SupportArm.Equals(input.SupportArm)) + ) && + ( + this.IsOffshelved == input.IsOffshelved || + (this.IsOffshelved != null && + this.IsOffshelved.Equals(input.IsOffshelved)) + ) && + ( + this.Lazyloading == input.Lazyloading || + (this.Lazyloading != null && + this.Lazyloading.Equals(input.Lazyloading)) + ) && + ( + this.OsFeatureList == input.OsFeatureList || + (this.OsFeatureList != null && + this.OsFeatureList.Equals(input.OsFeatureList)) + ) && + ( + this.RootOrigin == input.RootOrigin || + (this.RootOrigin != null && + this.RootOrigin.Equals(input.RootOrigin)) + ) && + ( + this.SequenceNum == input.SequenceNum || + (this.SequenceNum != null && + this.SequenceNum.Equals(input.SequenceNum)) + ) && + ( + this.SupportAgentList == input.SupportAgentList || + (this.SupportAgentList != null && + this.SupportAgentList.Equals(input.SupportAgentList)) + ) && + ( + this.SystemCmkid == input.SystemCmkid || + (this.SystemCmkid != null && + this.SystemCmkid.Equals(input.SystemCmkid)) + ) && + ( + this.ActiveAt == input.ActiveAt || + (this.ActiveAt != null && + this.ActiveAt.Equals(input.ActiveAt)) + ) && + ( + this.HwVifMultiqueueEnabled == input.HwVifMultiqueueEnabled || + (this.HwVifMultiqueueEnabled != null && + this.HwVifMultiqueueEnabled.Equals(input.HwVifMultiqueueEnabled)) + ) && + ( + this.MaxRam == input.MaxRam || + (this.MaxRam != null && + this.MaxRam.Equals(input.MaxRam)) + ) && + ( + this.ImageLocation == input.ImageLocation || + (this.ImageLocation != null && + this.ImageLocation.Equals(input.ImageLocation)) + ) && + ( + this.IsConfigInit == input.IsConfigInit || + (this.IsConfigInit != null && + this.IsConfigInit.Equals(input.IsConfigInit)) + ) && + ( + this.AccountCode == input.AccountCode || + (this.AccountCode != null && + this.AccountCode.Equals(input.AccountCode)) + ) && + ( + this.SupportAmd == input.SupportAmd || + (this.SupportAmd != null && + this.SupportAmd.Equals(input.SupportAmd)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.BackupId != null) + hashCode = hashCode * 59 + this.BackupId.GetHashCode(); + if (this.DataOrigin != null) + hashCode = hashCode * 59 + this.DataOrigin.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.ImageSize != null) + hashCode = hashCode * 59 + this.ImageSize.GetHashCode(); + if (this.ImageSourceType != null) + hashCode = hashCode * 59 + this.ImageSourceType.GetHashCode(); + if (this.Imagetype != null) + hashCode = hashCode * 59 + this.Imagetype.GetHashCode(); + if (this.Isregistered != null) + hashCode = hashCode * 59 + this.Isregistered.GetHashCode(); + if (this.Originalimagename != null) + hashCode = hashCode * 59 + this.Originalimagename.GetHashCode(); + if (this.OsBit != null) + hashCode = hashCode * 59 + this.OsBit.GetHashCode(); + if (this.OsType != null) + hashCode = hashCode * 59 + this.OsType.GetHashCode(); + if (this.OsVersion != null) + hashCode = hashCode * 59 + this.OsVersion.GetHashCode(); + if (this.Platform != null) + hashCode = hashCode * 59 + this.Platform.GetHashCode(); + if (this.Productcode != null) + hashCode = hashCode * 59 + this.Productcode.GetHashCode(); + if (this.SupportDiskintensive != null) + hashCode = hashCode * 59 + this.SupportDiskintensive.GetHashCode(); + if (this.SupportHighperformance != null) + hashCode = hashCode * 59 + this.SupportHighperformance.GetHashCode(); + if (this.SupportKvm != null) + hashCode = hashCode * 59 + this.SupportKvm.GetHashCode(); + if (this.SupportKvmGpuType != null) + hashCode = hashCode * 59 + this.SupportKvmGpuType.GetHashCode(); + if (this.SupportKvmInfiniband != null) + hashCode = hashCode * 59 + this.SupportKvmInfiniband.GetHashCode(); + if (this.SupportLargememory != null) + hashCode = hashCode * 59 + this.SupportLargememory.GetHashCode(); + if (this.SupportXen != null) + hashCode = hashCode * 59 + this.SupportXen.GetHashCode(); + if (this.SupportXenGpuType != null) + hashCode = hashCode * 59 + this.SupportXenGpuType.GetHashCode(); + if (this.SupportXenHana != null) + hashCode = hashCode * 59 + this.SupportXenHana.GetHashCode(); + if (this.Checksum != null) + hashCode = hashCode * 59 + this.Checksum.GetHashCode(); + if (this.ContainerFormat != null) + hashCode = hashCode * 59 + this.ContainerFormat.GetHashCode(); + if (this.CreatedAt != null) + hashCode = hashCode * 59 + this.CreatedAt.GetHashCode(); + if (this.DiskFormat != null) + hashCode = hashCode * 59 + this.DiskFormat.GetHashCode(); + if (this.File != null) + hashCode = hashCode * 59 + this.File.GetHashCode(); + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.MinDisk != null) + hashCode = hashCode * 59 + this.MinDisk.GetHashCode(); + if (this.MinRam != null) + hashCode = hashCode * 59 + this.MinRam.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Owner != null) + hashCode = hashCode * 59 + this.Owner.GetHashCode(); + if (this.Protected != null) + hashCode = hashCode * 59 + this.Protected.GetHashCode(); + if (this.Schema != null) + hashCode = hashCode * 59 + this.Schema.GetHashCode(); + if (this.Self != null) + hashCode = hashCode * 59 + this.Self.GetHashCode(); + if (this.Size != null) + hashCode = hashCode * 59 + this.Size.GetHashCode(); + if (this.Status != null) + hashCode = hashCode * 59 + this.Status.GetHashCode(); + if (this.Tags != null) + hashCode = hashCode * 59 + this.Tags.GetHashCode(); + if (this.UpdatedAt != null) + hashCode = hashCode * 59 + this.UpdatedAt.GetHashCode(); + if (this.VirtualEnvType != null) + hashCode = hashCode * 59 + this.VirtualEnvType.GetHashCode(); + if (this.VirtualSize != null) + hashCode = hashCode * 59 + this.VirtualSize.GetHashCode(); + if (this.Visibility != null) + hashCode = hashCode * 59 + this.Visibility.GetHashCode(); + if (this.SupportFcInject != null) + hashCode = hashCode * 59 + this.SupportFcInject.GetHashCode(); + if (this.EnterpriseProjectId != null) + hashCode = hashCode * 59 + this.EnterpriseProjectId.GetHashCode(); + if (this.HwFirmwareType != null) + hashCode = hashCode * 59 + this.HwFirmwareType.GetHashCode(); + if (this.SupportArm != null) + hashCode = hashCode * 59 + this.SupportArm.GetHashCode(); + if (this.IsOffshelved != null) + hashCode = hashCode * 59 + this.IsOffshelved.GetHashCode(); + if (this.Lazyloading != null) + hashCode = hashCode * 59 + this.Lazyloading.GetHashCode(); + if (this.OsFeatureList != null) + hashCode = hashCode * 59 + this.OsFeatureList.GetHashCode(); + if (this.RootOrigin != null) + hashCode = hashCode * 59 + this.RootOrigin.GetHashCode(); + if (this.SequenceNum != null) + hashCode = hashCode * 59 + this.SequenceNum.GetHashCode(); + if (this.SupportAgentList != null) + hashCode = hashCode * 59 + this.SupportAgentList.GetHashCode(); + if (this.SystemCmkid != null) + hashCode = hashCode * 59 + this.SystemCmkid.GetHashCode(); + if (this.ActiveAt != null) + hashCode = hashCode * 59 + this.ActiveAt.GetHashCode(); + if (this.HwVifMultiqueueEnabled != null) + hashCode = hashCode * 59 + this.HwVifMultiqueueEnabled.GetHashCode(); + if (this.MaxRam != null) + hashCode = hashCode * 59 + this.MaxRam.GetHashCode(); + if (this.ImageLocation != null) + hashCode = hashCode * 59 + this.ImageLocation.GetHashCode(); + if (this.IsConfigInit != null) + hashCode = hashCode * 59 + this.IsConfigInit.GetHashCode(); + if (this.AccountCode != null) + hashCode = hashCode * 59 + this.AccountCode.GetHashCode(); + if (this.SupportAmd != null) + hashCode = hashCode * 59 + this.SupportAmd.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/GlanceShowImageResponseBody.cs b/Services/Ims/V2/Model/GlanceShowImageResponseBody.cs new file mode 100755 index 0000000..8a1d053 --- /dev/null +++ b/Services/Ims/V2/Model/GlanceShowImageResponseBody.cs @@ -0,0 +1,2389 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// 镜像信息响应体 + /// + public class GlanceShowImageResponseBody + { + [JsonConverter(typeof(EnumClassConverter))] + public class ImageSourceTypeEnum + { + /// + /// Enum UDS for value: uds + /// + public static readonly ImageSourceTypeEnum UDS = new ImageSourceTypeEnum("uds"); + + /// + /// Enum SWIFT for value: swift + /// + public static readonly ImageSourceTypeEnum SWIFT = new ImageSourceTypeEnum("swift"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "uds", UDS }, + { "swift", SWIFT }, + }; + + private string _value; + + public ImageSourceTypeEnum() + { + + } + + public ImageSourceTypeEnum(string value) + { + _value = value; + } + + public static ImageSourceTypeEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as ImageSourceTypeEnum)) + { + return true; + } + + return false; + } + + public bool Equals(ImageSourceTypeEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(ImageSourceTypeEnum a, ImageSourceTypeEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(ImageSourceTypeEnum a, ImageSourceTypeEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class ImagetypeEnum + { + /// + /// Enum GOLD for value: gold + /// + public static readonly ImagetypeEnum GOLD = new ImagetypeEnum("gold"); + + /// + /// Enum PRIVATE for value: private + /// + public static readonly ImagetypeEnum PRIVATE = new ImagetypeEnum("private"); + + /// + /// Enum SHARED for value: shared + /// + public static readonly ImagetypeEnum SHARED = new ImagetypeEnum("shared"); + + /// + /// Enum MARKET for value: market + /// + public static readonly ImagetypeEnum MARKET = new ImagetypeEnum("market"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "gold", GOLD }, + { "private", PRIVATE }, + { "shared", SHARED }, + { "market", MARKET }, + }; + + private string _value; + + public ImagetypeEnum() + { + + } + + public ImagetypeEnum(string value) + { + _value = value; + } + + public static ImagetypeEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as ImagetypeEnum)) + { + return true; + } + + return false; + } + + public bool Equals(ImagetypeEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(ImagetypeEnum a, ImagetypeEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(ImagetypeEnum a, ImagetypeEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class IsregisteredEnum + { + /// + /// Enum TRUE for value: true + /// + public static readonly IsregisteredEnum TRUE = new IsregisteredEnum("true"); + + /// + /// Enum FALSE for value: false + /// + public static readonly IsregisteredEnum FALSE = new IsregisteredEnum("false"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "true", TRUE }, + { "false", FALSE }, + }; + + private string _value; + + public IsregisteredEnum() + { + + } + + public IsregisteredEnum(string value) + { + _value = value; + } + + public static IsregisteredEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as IsregisteredEnum)) + { + return true; + } + + return false; + } + + public bool Equals(IsregisteredEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(IsregisteredEnum a, IsregisteredEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(IsregisteredEnum a, IsregisteredEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class OsBitEnum + { + /// + /// Enum _32 for value: 32 + /// + public static readonly OsBitEnum _32 = new OsBitEnum("32"); + + /// + /// Enum _64 for value: 64 + /// + public static readonly OsBitEnum _64 = new OsBitEnum("64"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "32", _32 }, + { "64", _64 }, + }; + + private string _value; + + public OsBitEnum() + { + + } + + public OsBitEnum(string value) + { + _value = value; + } + + public static OsBitEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as OsBitEnum)) + { + return true; + } + + return false; + } + + public bool Equals(OsBitEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(OsBitEnum a, OsBitEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(OsBitEnum a, OsBitEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class OsTypeEnum + { + /// + /// Enum LINUX for value: Linux + /// + public static readonly OsTypeEnum LINUX = new OsTypeEnum("Linux"); + + /// + /// Enum WINDOWS for value: Windows + /// + public static readonly OsTypeEnum WINDOWS = new OsTypeEnum("Windows"); + + /// + /// Enum OTHER for value: Other + /// + public static readonly OsTypeEnum OTHER = new OsTypeEnum("Other"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "Linux", LINUX }, + { "Windows", WINDOWS }, + { "Other", OTHER }, + }; + + private string _value; + + public OsTypeEnum() + { + + } + + public OsTypeEnum(string value) + { + _value = value; + } + + public static OsTypeEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as OsTypeEnum)) + { + return true; + } + + return false; + } + + public bool Equals(OsTypeEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(OsTypeEnum a, OsTypeEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(OsTypeEnum a, OsTypeEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class PlatformEnum + { + /// + /// Enum WINDOWS for value: Windows + /// + public static readonly PlatformEnum WINDOWS = new PlatformEnum("Windows"); + + /// + /// Enum UBUNTU for value: Ubuntu + /// + public static readonly PlatformEnum UBUNTU = new PlatformEnum("Ubuntu"); + + /// + /// Enum REDHAT for value: RedHat + /// + public static readonly PlatformEnum REDHAT = new PlatformEnum("RedHat"); + + /// + /// Enum SUSE for value: SUSE + /// + public static readonly PlatformEnum SUSE = new PlatformEnum("SUSE"); + + /// + /// Enum CENTOS for value: CentOS + /// + public static readonly PlatformEnum CENTOS = new PlatformEnum("CentOS"); + + /// + /// Enum DEBIAN for value: Debian + /// + public static readonly PlatformEnum DEBIAN = new PlatformEnum("Debian"); + + /// + /// Enum OPENSUSE for value: OpenSUSE + /// + public static readonly PlatformEnum OPENSUSE = new PlatformEnum("OpenSUSE"); + + /// + /// Enum ORACLELINUX for value: OracleLinux + /// + public static readonly PlatformEnum ORACLELINUX = new PlatformEnum("OracleLinux"); + + /// + /// Enum FEDORA for value: Fedora + /// + public static readonly PlatformEnum FEDORA = new PlatformEnum("Fedora"); + + /// + /// Enum OTHER for value: Other + /// + public static readonly PlatformEnum OTHER = new PlatformEnum("Other"); + + /// + /// Enum COREOS for value: CoreOS + /// + public static readonly PlatformEnum COREOS = new PlatformEnum("CoreOS"); + + /// + /// Enum EULEROS for value: EulerOS + /// + public static readonly PlatformEnum EULEROS = new PlatformEnum("EulerOS"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "Windows", WINDOWS }, + { "Ubuntu", UBUNTU }, + { "RedHat", REDHAT }, + { "SUSE", SUSE }, + { "CentOS", CENTOS }, + { "Debian", DEBIAN }, + { "OpenSUSE", OPENSUSE }, + { "OracleLinux", ORACLELINUX }, + { "Fedora", FEDORA }, + { "Other", OTHER }, + { "CoreOS", COREOS }, + { "EulerOS", EULEROS }, + }; + + private string _value; + + public PlatformEnum() + { + + } + + public PlatformEnum(string value) + { + _value = value; + } + + public static PlatformEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as PlatformEnum)) + { + return true; + } + + return false; + } + + public bool Equals(PlatformEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(PlatformEnum a, PlatformEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(PlatformEnum a, PlatformEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class DiskFormatEnum + { + /// + /// Enum VHD for value: vhd + /// + public static readonly DiskFormatEnum VHD = new DiskFormatEnum("vhd"); + + /// + /// Enum ZVHD for value: zvhd + /// + public static readonly DiskFormatEnum ZVHD = new DiskFormatEnum("zvhd"); + + /// + /// Enum RAW for value: raw + /// + public static readonly DiskFormatEnum RAW = new DiskFormatEnum("raw"); + + /// + /// Enum QCOW2 for value: qcow2 + /// + public static readonly DiskFormatEnum QCOW2 = new DiskFormatEnum("qcow2"); + + /// + /// Enum ZVHD2 for value: zvhd2 + /// + public static readonly DiskFormatEnum ZVHD2 = new DiskFormatEnum("zvhd2"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "vhd", VHD }, + { "zvhd", ZVHD }, + { "raw", RAW }, + { "qcow2", QCOW2 }, + { "zvhd2", ZVHD2 }, + }; + + private string _value; + + public DiskFormatEnum() + { + + } + + public DiskFormatEnum(string value) + { + _value = value; + } + + public static DiskFormatEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as DiskFormatEnum)) + { + return true; + } + + return false; + } + + public bool Equals(DiskFormatEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(DiskFormatEnum a, DiskFormatEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(DiskFormatEnum a, DiskFormatEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class StatusEnum + { + /// + /// Enum QUEUED for value: queued + /// + public static readonly StatusEnum QUEUED = new StatusEnum("queued"); + + /// + /// Enum SAVING for value: saving + /// + public static readonly StatusEnum SAVING = new StatusEnum("saving"); + + /// + /// Enum DELETED for value: deleted + /// + public static readonly StatusEnum DELETED = new StatusEnum("deleted"); + + /// + /// Enum KILLED for value: killed + /// + public static readonly StatusEnum KILLED = new StatusEnum("killed"); + + /// + /// Enum ACTIVE for value: active + /// + public static readonly StatusEnum ACTIVE = new StatusEnum("active"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "queued", QUEUED }, + { "saving", SAVING }, + { "deleted", DELETED }, + { "killed", KILLED }, + { "active", ACTIVE }, + }; + + private string _value; + + public StatusEnum() + { + + } + + public StatusEnum(string value) + { + _value = value; + } + + public static StatusEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as StatusEnum)) + { + return true; + } + + return false; + } + + public bool Equals(StatusEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(StatusEnum a, StatusEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(StatusEnum a, StatusEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class VirtualEnvTypeEnum + { + /// + /// Enum FUSIONCOMPUTE for value: FusionCompute + /// + public static readonly VirtualEnvTypeEnum FUSIONCOMPUTE = new VirtualEnvTypeEnum("FusionCompute"); + + /// + /// Enum IRONIC for value: Ironic + /// + public static readonly VirtualEnvTypeEnum IRONIC = new VirtualEnvTypeEnum("Ironic"); + + /// + /// Enum DATAIMAGE for value: DataImage + /// + public static readonly VirtualEnvTypeEnum DATAIMAGE = new VirtualEnvTypeEnum("DataImage"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "FusionCompute", FUSIONCOMPUTE }, + { "Ironic", IRONIC }, + { "DataImage", DATAIMAGE }, + }; + + private string _value; + + public VirtualEnvTypeEnum() + { + + } + + public VirtualEnvTypeEnum(string value) + { + _value = value; + } + + public static VirtualEnvTypeEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as VirtualEnvTypeEnum)) + { + return true; + } + + return false; + } + + public bool Equals(VirtualEnvTypeEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(VirtualEnvTypeEnum a, VirtualEnvTypeEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(VirtualEnvTypeEnum a, VirtualEnvTypeEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class VisibilityEnum + { + /// + /// Enum PRIVATE for value: private + /// + public static readonly VisibilityEnum PRIVATE = new VisibilityEnum("private"); + + /// + /// Enum PUBLIC for value: public + /// + public static readonly VisibilityEnum PUBLIC = new VisibilityEnum("public"); + + /// + /// Enum SHARED for value: shared + /// + public static readonly VisibilityEnum SHARED = new VisibilityEnum("shared"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "private", PRIVATE }, + { "public", PUBLIC }, + { "shared", SHARED }, + }; + + private string _value; + + public VisibilityEnum() + { + + } + + public VisibilityEnum(string value) + { + _value = value; + } + + public static VisibilityEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as VisibilityEnum)) + { + return true; + } + + return false; + } + + public bool Equals(VisibilityEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(VisibilityEnum a, VisibilityEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(VisibilityEnum a, VisibilityEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class SupportFcInjectEnum + { + /// + /// Enum TRUE for value: true + /// + public static readonly SupportFcInjectEnum TRUE = new SupportFcInjectEnum("true"); + + /// + /// Enum FALSE for value: false + /// + public static readonly SupportFcInjectEnum FALSE = new SupportFcInjectEnum("false"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "true", TRUE }, + { "false", FALSE }, + }; + + private string _value; + + public SupportFcInjectEnum() + { + + } + + public SupportFcInjectEnum(string value) + { + _value = value; + } + + public static SupportFcInjectEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as SupportFcInjectEnum)) + { + return true; + } + + return false; + } + + public bool Equals(SupportFcInjectEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(SupportFcInjectEnum a, SupportFcInjectEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(SupportFcInjectEnum a, SupportFcInjectEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class HwFirmwareTypeEnum + { + /// + /// Enum BIOS for value: bios + /// + public static readonly HwFirmwareTypeEnum BIOS = new HwFirmwareTypeEnum("bios"); + + /// + /// Enum UEFI for value: uefi + /// + public static readonly HwFirmwareTypeEnum UEFI = new HwFirmwareTypeEnum("uefi"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "bios", BIOS }, + { "uefi", UEFI }, + }; + + private string _value; + + public HwFirmwareTypeEnum() + { + + } + + public HwFirmwareTypeEnum(string value) + { + _value = value; + } + + public static HwFirmwareTypeEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as HwFirmwareTypeEnum)) + { + return true; + } + + return false; + } + + public bool Equals(HwFirmwareTypeEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(HwFirmwareTypeEnum a, HwFirmwareTypeEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(HwFirmwareTypeEnum a, HwFirmwareTypeEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class SupportArmEnum + { + /// + /// Enum TRUE for value: true + /// + public static readonly SupportArmEnum TRUE = new SupportArmEnum("true"); + + /// + /// Enum FALSE for value: false + /// + public static readonly SupportArmEnum FALSE = new SupportArmEnum("false"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "true", TRUE }, + { "false", FALSE }, + }; + + private string _value; + + public SupportArmEnum() + { + + } + + public SupportArmEnum(string value) + { + _value = value; + } + + public static SupportArmEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as SupportArmEnum)) + { + return true; + } + + return false; + } + + public bool Equals(SupportArmEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(SupportArmEnum a, SupportArmEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(SupportArmEnum a, SupportArmEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class IsOffshelvedEnum + { + /// + /// Enum TRUE for value: true + /// + public static readonly IsOffshelvedEnum TRUE = new IsOffshelvedEnum("true"); + + /// + /// Enum FALSE for value: false + /// + public static readonly IsOffshelvedEnum FALSE = new IsOffshelvedEnum("false"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "true", TRUE }, + { "false", FALSE }, + }; + + private string _value; + + public IsOffshelvedEnum() + { + + } + + public IsOffshelvedEnum(string value) + { + _value = value; + } + + public static IsOffshelvedEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as IsOffshelvedEnum)) + { + return true; + } + + return false; + } + + public bool Equals(IsOffshelvedEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(IsOffshelvedEnum a, IsOffshelvedEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(IsOffshelvedEnum a, IsOffshelvedEnum b) + { + return !(a == b); + } + } + + + [JsonProperty("__backup_id", NullValueHandling = NullValueHandling.Ignore)] + public string BackupId { get; set; } + + [JsonProperty("__data_origin", NullValueHandling = NullValueHandling.Ignore)] + public string DataOrigin { get; set; } + + [JsonProperty("__description", NullValueHandling = NullValueHandling.Ignore)] + public string Description { get; set; } + + [JsonProperty("__image_size", NullValueHandling = NullValueHandling.Ignore)] + public string ImageSize { get; set; } + + [JsonProperty("__image_source_type", NullValueHandling = NullValueHandling.Ignore)] + public ImageSourceTypeEnum ImageSourceType { get; set; } + [JsonProperty("__imagetype", NullValueHandling = NullValueHandling.Ignore)] + public ImagetypeEnum Imagetype { get; set; } + [JsonProperty("__isregistered", NullValueHandling = NullValueHandling.Ignore)] + public IsregisteredEnum Isregistered { get; set; } + [JsonProperty("__originalimagename", NullValueHandling = NullValueHandling.Ignore)] + public string Originalimagename { get; set; } + + [JsonProperty("__os_bit", NullValueHandling = NullValueHandling.Ignore)] + public OsBitEnum OsBit { get; set; } + [JsonProperty("__os_type", NullValueHandling = NullValueHandling.Ignore)] + public OsTypeEnum OsType { get; set; } + [JsonProperty("__os_version", NullValueHandling = NullValueHandling.Ignore)] + public string OsVersion { get; set; } + + [JsonProperty("__platform", NullValueHandling = NullValueHandling.Ignore)] + public PlatformEnum Platform { get; set; } + [JsonProperty("__productcode", NullValueHandling = NullValueHandling.Ignore)] + public string Productcode { get; set; } + + [JsonProperty("__support_diskintensive", NullValueHandling = NullValueHandling.Ignore)] + public string SupportDiskintensive { get; set; } + + [JsonProperty("__support_highperformance", NullValueHandling = NullValueHandling.Ignore)] + public string SupportHighperformance { get; set; } + + [JsonProperty("__support_kvm", NullValueHandling = NullValueHandling.Ignore)] + public string SupportKvm { get; set; } + + [JsonProperty("__support_kvm_gpu_type", NullValueHandling = NullValueHandling.Ignore)] + public string SupportKvmGpuType { get; set; } + + [JsonProperty("__support_kvm_infiniband", NullValueHandling = NullValueHandling.Ignore)] + public string SupportKvmInfiniband { get; set; } + + [JsonProperty("__support_largememory", NullValueHandling = NullValueHandling.Ignore)] + public string SupportLargememory { get; set; } + + [JsonProperty("__support_xen", NullValueHandling = NullValueHandling.Ignore)] + public string SupportXen { get; set; } + + [JsonProperty("__support_xen_gpu_type", NullValueHandling = NullValueHandling.Ignore)] + public string SupportXenGpuType { get; set; } + + [JsonProperty("__support_xen_hana", NullValueHandling = NullValueHandling.Ignore)] + public string SupportXenHana { get; set; } + + [JsonProperty("checksum", NullValueHandling = NullValueHandling.Ignore)] + public string Checksum { get; set; } + + [JsonProperty("container_format", NullValueHandling = NullValueHandling.Ignore)] + public string ContainerFormat { get; set; } + + [JsonProperty("created_at", NullValueHandling = NullValueHandling.Ignore)] + public string CreatedAt { get; set; } + + [JsonProperty("disk_format", NullValueHandling = NullValueHandling.Ignore)] + public DiskFormatEnum DiskFormat { get; set; } + [JsonProperty("file", NullValueHandling = NullValueHandling.Ignore)] + public string File { get; set; } + + [JsonProperty("id", NullValueHandling = NullValueHandling.Ignore)] + public string Id { get; set; } + + [JsonProperty("min_disk", NullValueHandling = NullValueHandling.Ignore)] + public int? MinDisk { get; set; } + + [JsonProperty("min_ram", NullValueHandling = NullValueHandling.Ignore)] + public int? MinRam { get; set; } + + [JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)] + public string Name { get; set; } + + [JsonProperty("owner", NullValueHandling = NullValueHandling.Ignore)] + public string Owner { get; set; } + + [JsonProperty("protected", NullValueHandling = NullValueHandling.Ignore)] + public bool? Protected { get; set; } + + [JsonProperty("schema", NullValueHandling = NullValueHandling.Ignore)] + public string Schema { get; set; } + + [JsonProperty("self", NullValueHandling = NullValueHandling.Ignore)] + public string Self { get; set; } + + [JsonProperty("size", NullValueHandling = NullValueHandling.Ignore)] + public long? Size { get; set; } + + [JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)] + public StatusEnum Status { get; set; } + [JsonProperty("tags", NullValueHandling = NullValueHandling.Ignore)] + public List Tags { get; set; } + + [JsonProperty("updated_at", NullValueHandling = NullValueHandling.Ignore)] + public string UpdatedAt { get; set; } + + [JsonProperty("virtual_env_type", NullValueHandling = NullValueHandling.Ignore)] + public VirtualEnvTypeEnum VirtualEnvType { get; set; } + [JsonProperty("virtual_size", NullValueHandling = NullValueHandling.Ignore)] + public int? VirtualSize { get; set; } + + [JsonProperty("visibility", NullValueHandling = NullValueHandling.Ignore)] + public VisibilityEnum Visibility { get; set; } + [JsonProperty("__support_fc_inject", NullValueHandling = NullValueHandling.Ignore)] + public SupportFcInjectEnum SupportFcInject { get; set; } + [JsonProperty("enterprise_project_id", NullValueHandling = NullValueHandling.Ignore)] + public string EnterpriseProjectId { get; set; } + + [JsonProperty("hw_firmware_type", NullValueHandling = NullValueHandling.Ignore)] + public HwFirmwareTypeEnum HwFirmwareType { get; set; } + [JsonProperty("__support_arm", NullValueHandling = NullValueHandling.Ignore)] + public SupportArmEnum SupportArm { get; set; } + [JsonProperty("__is_offshelved", NullValueHandling = NullValueHandling.Ignore)] + public IsOffshelvedEnum IsOffshelved { get; set; } + [JsonProperty("__lazyloading", NullValueHandling = NullValueHandling.Ignore)] + public string Lazyloading { get; set; } + + [JsonProperty("__os_feature_list", NullValueHandling = NullValueHandling.Ignore)] + public string OsFeatureList { get; set; } + + [JsonProperty("__root_origin", NullValueHandling = NullValueHandling.Ignore)] + public string RootOrigin { get; set; } + + [JsonProperty("__sequence_num", NullValueHandling = NullValueHandling.Ignore)] + public string SequenceNum { get; set; } + + [JsonProperty("__support_agent_list", NullValueHandling = NullValueHandling.Ignore)] + public string SupportAgentList { get; set; } + + [JsonProperty("__system__cmkid", NullValueHandling = NullValueHandling.Ignore)] + public string SystemCmkid { get; set; } + + [JsonProperty("active_at", NullValueHandling = NullValueHandling.Ignore)] + public string ActiveAt { get; set; } + + [JsonProperty("hw_vif_multiqueue_enabled", NullValueHandling = NullValueHandling.Ignore)] + public string HwVifMultiqueueEnabled { get; set; } + + [JsonProperty("max_ram", NullValueHandling = NullValueHandling.Ignore)] + public string MaxRam { get; set; } + + [JsonProperty("__image_location", NullValueHandling = NullValueHandling.Ignore)] + public string ImageLocation { get; set; } + + [JsonProperty("__is_config_init", NullValueHandling = NullValueHandling.Ignore)] + public string IsConfigInit { get; set; } + + [JsonProperty("__account_code", NullValueHandling = NullValueHandling.Ignore)] + public string AccountCode { get; set; } + + [JsonProperty("__support_amd", NullValueHandling = NullValueHandling.Ignore)] + public string SupportAmd { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class GlanceShowImageResponseBody {\n"); + sb.Append(" backupId: ").Append(BackupId).Append("\n"); + sb.Append(" dataOrigin: ").Append(DataOrigin).Append("\n"); + sb.Append(" description: ").Append(Description).Append("\n"); + sb.Append(" imageSize: ").Append(ImageSize).Append("\n"); + sb.Append(" imageSourceType: ").Append(ImageSourceType).Append("\n"); + sb.Append(" imagetype: ").Append(Imagetype).Append("\n"); + sb.Append(" isregistered: ").Append(Isregistered).Append("\n"); + sb.Append(" originalimagename: ").Append(Originalimagename).Append("\n"); + sb.Append(" osBit: ").Append(OsBit).Append("\n"); + sb.Append(" osType: ").Append(OsType).Append("\n"); + sb.Append(" osVersion: ").Append(OsVersion).Append("\n"); + sb.Append(" platform: ").Append(Platform).Append("\n"); + sb.Append(" productcode: ").Append(Productcode).Append("\n"); + sb.Append(" supportDiskintensive: ").Append(SupportDiskintensive).Append("\n"); + sb.Append(" supportHighperformance: ").Append(SupportHighperformance).Append("\n"); + sb.Append(" supportKvm: ").Append(SupportKvm).Append("\n"); + sb.Append(" supportKvmGpuType: ").Append(SupportKvmGpuType).Append("\n"); + sb.Append(" supportKvmInfiniband: ").Append(SupportKvmInfiniband).Append("\n"); + sb.Append(" supportLargememory: ").Append(SupportLargememory).Append("\n"); + sb.Append(" supportXen: ").Append(SupportXen).Append("\n"); + sb.Append(" supportXenGpuType: ").Append(SupportXenGpuType).Append("\n"); + sb.Append(" supportXenHana: ").Append(SupportXenHana).Append("\n"); + sb.Append(" checksum: ").Append(Checksum).Append("\n"); + sb.Append(" containerFormat: ").Append(ContainerFormat).Append("\n"); + sb.Append(" createdAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" diskFormat: ").Append(DiskFormat).Append("\n"); + sb.Append(" file: ").Append(File).Append("\n"); + sb.Append(" id: ").Append(Id).Append("\n"); + sb.Append(" minDisk: ").Append(MinDisk).Append("\n"); + sb.Append(" minRam: ").Append(MinRam).Append("\n"); + sb.Append(" name: ").Append(Name).Append("\n"); + sb.Append(" owner: ").Append(Owner).Append("\n"); + sb.Append(" Protected: ").Append(Protected).Append("\n"); + sb.Append(" schema: ").Append(Schema).Append("\n"); + sb.Append(" self: ").Append(Self).Append("\n"); + sb.Append(" size: ").Append(Size).Append("\n"); + sb.Append(" status: ").Append(Status).Append("\n"); + sb.Append(" tags: ").Append(Tags).Append("\n"); + sb.Append(" updatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append(" virtualEnvType: ").Append(VirtualEnvType).Append("\n"); + sb.Append(" virtualSize: ").Append(VirtualSize).Append("\n"); + sb.Append(" visibility: ").Append(Visibility).Append("\n"); + sb.Append(" supportFcInject: ").Append(SupportFcInject).Append("\n"); + sb.Append(" enterpriseProjectId: ").Append(EnterpriseProjectId).Append("\n"); + sb.Append(" hwFirmwareType: ").Append(HwFirmwareType).Append("\n"); + sb.Append(" supportArm: ").Append(SupportArm).Append("\n"); + sb.Append(" isOffshelved: ").Append(IsOffshelved).Append("\n"); + sb.Append(" lazyloading: ").Append(Lazyloading).Append("\n"); + sb.Append(" osFeatureList: ").Append(OsFeatureList).Append("\n"); + sb.Append(" rootOrigin: ").Append(RootOrigin).Append("\n"); + sb.Append(" sequenceNum: ").Append(SequenceNum).Append("\n"); + sb.Append(" supportAgentList: ").Append(SupportAgentList).Append("\n"); + sb.Append(" systemCmkid: ").Append(SystemCmkid).Append("\n"); + sb.Append(" activeAt: ").Append(ActiveAt).Append("\n"); + sb.Append(" hwVifMultiqueueEnabled: ").Append(HwVifMultiqueueEnabled).Append("\n"); + sb.Append(" maxRam: ").Append(MaxRam).Append("\n"); + sb.Append(" imageLocation: ").Append(ImageLocation).Append("\n"); + sb.Append(" isConfigInit: ").Append(IsConfigInit).Append("\n"); + sb.Append(" accountCode: ").Append(AccountCode).Append("\n"); + sb.Append(" supportAmd: ").Append(SupportAmd).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as GlanceShowImageResponseBody); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(GlanceShowImageResponseBody input) + { + if (input == null) + return false; + + return + ( + this.BackupId == input.BackupId || + (this.BackupId != null && + this.BackupId.Equals(input.BackupId)) + ) && + ( + this.DataOrigin == input.DataOrigin || + (this.DataOrigin != null && + this.DataOrigin.Equals(input.DataOrigin)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.ImageSize == input.ImageSize || + (this.ImageSize != null && + this.ImageSize.Equals(input.ImageSize)) + ) && + ( + this.ImageSourceType == input.ImageSourceType || + (this.ImageSourceType != null && + this.ImageSourceType.Equals(input.ImageSourceType)) + ) && + ( + this.Imagetype == input.Imagetype || + (this.Imagetype != null && + this.Imagetype.Equals(input.Imagetype)) + ) && + ( + this.Isregistered == input.Isregistered || + (this.Isregistered != null && + this.Isregistered.Equals(input.Isregistered)) + ) && + ( + this.Originalimagename == input.Originalimagename || + (this.Originalimagename != null && + this.Originalimagename.Equals(input.Originalimagename)) + ) && + ( + this.OsBit == input.OsBit || + (this.OsBit != null && + this.OsBit.Equals(input.OsBit)) + ) && + ( + this.OsType == input.OsType || + (this.OsType != null && + this.OsType.Equals(input.OsType)) + ) && + ( + this.OsVersion == input.OsVersion || + (this.OsVersion != null && + this.OsVersion.Equals(input.OsVersion)) + ) && + ( + this.Platform == input.Platform || + (this.Platform != null && + this.Platform.Equals(input.Platform)) + ) && + ( + this.Productcode == input.Productcode || + (this.Productcode != null && + this.Productcode.Equals(input.Productcode)) + ) && + ( + this.SupportDiskintensive == input.SupportDiskintensive || + (this.SupportDiskintensive != null && + this.SupportDiskintensive.Equals(input.SupportDiskintensive)) + ) && + ( + this.SupportHighperformance == input.SupportHighperformance || + (this.SupportHighperformance != null && + this.SupportHighperformance.Equals(input.SupportHighperformance)) + ) && + ( + this.SupportKvm == input.SupportKvm || + (this.SupportKvm != null && + this.SupportKvm.Equals(input.SupportKvm)) + ) && + ( + this.SupportKvmGpuType == input.SupportKvmGpuType || + (this.SupportKvmGpuType != null && + this.SupportKvmGpuType.Equals(input.SupportKvmGpuType)) + ) && + ( + this.SupportKvmInfiniband == input.SupportKvmInfiniband || + (this.SupportKvmInfiniband != null && + this.SupportKvmInfiniband.Equals(input.SupportKvmInfiniband)) + ) && + ( + this.SupportLargememory == input.SupportLargememory || + (this.SupportLargememory != null && + this.SupportLargememory.Equals(input.SupportLargememory)) + ) && + ( + this.SupportXen == input.SupportXen || + (this.SupportXen != null && + this.SupportXen.Equals(input.SupportXen)) + ) && + ( + this.SupportXenGpuType == input.SupportXenGpuType || + (this.SupportXenGpuType != null && + this.SupportXenGpuType.Equals(input.SupportXenGpuType)) + ) && + ( + this.SupportXenHana == input.SupportXenHana || + (this.SupportXenHana != null && + this.SupportXenHana.Equals(input.SupportXenHana)) + ) && + ( + this.Checksum == input.Checksum || + (this.Checksum != null && + this.Checksum.Equals(input.Checksum)) + ) && + ( + this.ContainerFormat == input.ContainerFormat || + (this.ContainerFormat != null && + this.ContainerFormat.Equals(input.ContainerFormat)) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.DiskFormat == input.DiskFormat || + (this.DiskFormat != null && + this.DiskFormat.Equals(input.DiskFormat)) + ) && + ( + this.File == input.File || + (this.File != null && + this.File.Equals(input.File)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.MinDisk == input.MinDisk || + (this.MinDisk != null && + this.MinDisk.Equals(input.MinDisk)) + ) && + ( + this.MinRam == input.MinRam || + (this.MinRam != null && + this.MinRam.Equals(input.MinRam)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Owner == input.Owner || + (this.Owner != null && + this.Owner.Equals(input.Owner)) + ) && + ( + this.Protected == input.Protected || + (this.Protected != null && + this.Protected.Equals(input.Protected)) + ) && + ( + this.Schema == input.Schema || + (this.Schema != null && + this.Schema.Equals(input.Schema)) + ) && + ( + this.Self == input.Self || + (this.Self != null && + this.Self.Equals(input.Self)) + ) && + ( + this.Size == input.Size || + (this.Size != null && + this.Size.Equals(input.Size)) + ) && + ( + this.Status == input.Status || + (this.Status != null && + this.Status.Equals(input.Status)) + ) && + ( + this.Tags == input.Tags || + this.Tags != null && + input.Tags != null && + this.Tags.SequenceEqual(input.Tags) + ) && + ( + this.UpdatedAt == input.UpdatedAt || + (this.UpdatedAt != null && + this.UpdatedAt.Equals(input.UpdatedAt)) + ) && + ( + this.VirtualEnvType == input.VirtualEnvType || + (this.VirtualEnvType != null && + this.VirtualEnvType.Equals(input.VirtualEnvType)) + ) && + ( + this.VirtualSize == input.VirtualSize || + (this.VirtualSize != null && + this.VirtualSize.Equals(input.VirtualSize)) + ) && + ( + this.Visibility == input.Visibility || + (this.Visibility != null && + this.Visibility.Equals(input.Visibility)) + ) && + ( + this.SupportFcInject == input.SupportFcInject || + (this.SupportFcInject != null && + this.SupportFcInject.Equals(input.SupportFcInject)) + ) && + ( + this.EnterpriseProjectId == input.EnterpriseProjectId || + (this.EnterpriseProjectId != null && + this.EnterpriseProjectId.Equals(input.EnterpriseProjectId)) + ) && + ( + this.HwFirmwareType == input.HwFirmwareType || + (this.HwFirmwareType != null && + this.HwFirmwareType.Equals(input.HwFirmwareType)) + ) && + ( + this.SupportArm == input.SupportArm || + (this.SupportArm != null && + this.SupportArm.Equals(input.SupportArm)) + ) && + ( + this.IsOffshelved == input.IsOffshelved || + (this.IsOffshelved != null && + this.IsOffshelved.Equals(input.IsOffshelved)) + ) && + ( + this.Lazyloading == input.Lazyloading || + (this.Lazyloading != null && + this.Lazyloading.Equals(input.Lazyloading)) + ) && + ( + this.OsFeatureList == input.OsFeatureList || + (this.OsFeatureList != null && + this.OsFeatureList.Equals(input.OsFeatureList)) + ) && + ( + this.RootOrigin == input.RootOrigin || + (this.RootOrigin != null && + this.RootOrigin.Equals(input.RootOrigin)) + ) && + ( + this.SequenceNum == input.SequenceNum || + (this.SequenceNum != null && + this.SequenceNum.Equals(input.SequenceNum)) + ) && + ( + this.SupportAgentList == input.SupportAgentList || + (this.SupportAgentList != null && + this.SupportAgentList.Equals(input.SupportAgentList)) + ) && + ( + this.SystemCmkid == input.SystemCmkid || + (this.SystemCmkid != null && + this.SystemCmkid.Equals(input.SystemCmkid)) + ) && + ( + this.ActiveAt == input.ActiveAt || + (this.ActiveAt != null && + this.ActiveAt.Equals(input.ActiveAt)) + ) && + ( + this.HwVifMultiqueueEnabled == input.HwVifMultiqueueEnabled || + (this.HwVifMultiqueueEnabled != null && + this.HwVifMultiqueueEnabled.Equals(input.HwVifMultiqueueEnabled)) + ) && + ( + this.MaxRam == input.MaxRam || + (this.MaxRam != null && + this.MaxRam.Equals(input.MaxRam)) + ) && + ( + this.ImageLocation == input.ImageLocation || + (this.ImageLocation != null && + this.ImageLocation.Equals(input.ImageLocation)) + ) && + ( + this.IsConfigInit == input.IsConfigInit || + (this.IsConfigInit != null && + this.IsConfigInit.Equals(input.IsConfigInit)) + ) && + ( + this.AccountCode == input.AccountCode || + (this.AccountCode != null && + this.AccountCode.Equals(input.AccountCode)) + ) && + ( + this.SupportAmd == input.SupportAmd || + (this.SupportAmd != null && + this.SupportAmd.Equals(input.SupportAmd)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.BackupId != null) + hashCode = hashCode * 59 + this.BackupId.GetHashCode(); + if (this.DataOrigin != null) + hashCode = hashCode * 59 + this.DataOrigin.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.ImageSize != null) + hashCode = hashCode * 59 + this.ImageSize.GetHashCode(); + if (this.ImageSourceType != null) + hashCode = hashCode * 59 + this.ImageSourceType.GetHashCode(); + if (this.Imagetype != null) + hashCode = hashCode * 59 + this.Imagetype.GetHashCode(); + if (this.Isregistered != null) + hashCode = hashCode * 59 + this.Isregistered.GetHashCode(); + if (this.Originalimagename != null) + hashCode = hashCode * 59 + this.Originalimagename.GetHashCode(); + if (this.OsBit != null) + hashCode = hashCode * 59 + this.OsBit.GetHashCode(); + if (this.OsType != null) + hashCode = hashCode * 59 + this.OsType.GetHashCode(); + if (this.OsVersion != null) + hashCode = hashCode * 59 + this.OsVersion.GetHashCode(); + if (this.Platform != null) + hashCode = hashCode * 59 + this.Platform.GetHashCode(); + if (this.Productcode != null) + hashCode = hashCode * 59 + this.Productcode.GetHashCode(); + if (this.SupportDiskintensive != null) + hashCode = hashCode * 59 + this.SupportDiskintensive.GetHashCode(); + if (this.SupportHighperformance != null) + hashCode = hashCode * 59 + this.SupportHighperformance.GetHashCode(); + if (this.SupportKvm != null) + hashCode = hashCode * 59 + this.SupportKvm.GetHashCode(); + if (this.SupportKvmGpuType != null) + hashCode = hashCode * 59 + this.SupportKvmGpuType.GetHashCode(); + if (this.SupportKvmInfiniband != null) + hashCode = hashCode * 59 + this.SupportKvmInfiniband.GetHashCode(); + if (this.SupportLargememory != null) + hashCode = hashCode * 59 + this.SupportLargememory.GetHashCode(); + if (this.SupportXen != null) + hashCode = hashCode * 59 + this.SupportXen.GetHashCode(); + if (this.SupportXenGpuType != null) + hashCode = hashCode * 59 + this.SupportXenGpuType.GetHashCode(); + if (this.SupportXenHana != null) + hashCode = hashCode * 59 + this.SupportXenHana.GetHashCode(); + if (this.Checksum != null) + hashCode = hashCode * 59 + this.Checksum.GetHashCode(); + if (this.ContainerFormat != null) + hashCode = hashCode * 59 + this.ContainerFormat.GetHashCode(); + if (this.CreatedAt != null) + hashCode = hashCode * 59 + this.CreatedAt.GetHashCode(); + if (this.DiskFormat != null) + hashCode = hashCode * 59 + this.DiskFormat.GetHashCode(); + if (this.File != null) + hashCode = hashCode * 59 + this.File.GetHashCode(); + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.MinDisk != null) + hashCode = hashCode * 59 + this.MinDisk.GetHashCode(); + if (this.MinRam != null) + hashCode = hashCode * 59 + this.MinRam.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Owner != null) + hashCode = hashCode * 59 + this.Owner.GetHashCode(); + if (this.Protected != null) + hashCode = hashCode * 59 + this.Protected.GetHashCode(); + if (this.Schema != null) + hashCode = hashCode * 59 + this.Schema.GetHashCode(); + if (this.Self != null) + hashCode = hashCode * 59 + this.Self.GetHashCode(); + if (this.Size != null) + hashCode = hashCode * 59 + this.Size.GetHashCode(); + if (this.Status != null) + hashCode = hashCode * 59 + this.Status.GetHashCode(); + if (this.Tags != null) + hashCode = hashCode * 59 + this.Tags.GetHashCode(); + if (this.UpdatedAt != null) + hashCode = hashCode * 59 + this.UpdatedAt.GetHashCode(); + if (this.VirtualEnvType != null) + hashCode = hashCode * 59 + this.VirtualEnvType.GetHashCode(); + if (this.VirtualSize != null) + hashCode = hashCode * 59 + this.VirtualSize.GetHashCode(); + if (this.Visibility != null) + hashCode = hashCode * 59 + this.Visibility.GetHashCode(); + if (this.SupportFcInject != null) + hashCode = hashCode * 59 + this.SupportFcInject.GetHashCode(); + if (this.EnterpriseProjectId != null) + hashCode = hashCode * 59 + this.EnterpriseProjectId.GetHashCode(); + if (this.HwFirmwareType != null) + hashCode = hashCode * 59 + this.HwFirmwareType.GetHashCode(); + if (this.SupportArm != null) + hashCode = hashCode * 59 + this.SupportArm.GetHashCode(); + if (this.IsOffshelved != null) + hashCode = hashCode * 59 + this.IsOffshelved.GetHashCode(); + if (this.Lazyloading != null) + hashCode = hashCode * 59 + this.Lazyloading.GetHashCode(); + if (this.OsFeatureList != null) + hashCode = hashCode * 59 + this.OsFeatureList.GetHashCode(); + if (this.RootOrigin != null) + hashCode = hashCode * 59 + this.RootOrigin.GetHashCode(); + if (this.SequenceNum != null) + hashCode = hashCode * 59 + this.SequenceNum.GetHashCode(); + if (this.SupportAgentList != null) + hashCode = hashCode * 59 + this.SupportAgentList.GetHashCode(); + if (this.SystemCmkid != null) + hashCode = hashCode * 59 + this.SystemCmkid.GetHashCode(); + if (this.ActiveAt != null) + hashCode = hashCode * 59 + this.ActiveAt.GetHashCode(); + if (this.HwVifMultiqueueEnabled != null) + hashCode = hashCode * 59 + this.HwVifMultiqueueEnabled.GetHashCode(); + if (this.MaxRam != null) + hashCode = hashCode * 59 + this.MaxRam.GetHashCode(); + if (this.ImageLocation != null) + hashCode = hashCode * 59 + this.ImageLocation.GetHashCode(); + if (this.IsConfigInit != null) + hashCode = hashCode * 59 + this.IsConfigInit.GetHashCode(); + if (this.AccountCode != null) + hashCode = hashCode * 59 + this.AccountCode.GetHashCode(); + if (this.SupportAmd != null) + hashCode = hashCode * 59 + this.SupportAmd.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/GlanceShowImageSchemasRequest.cs b/Services/Ims/V2/Model/GlanceShowImageSchemasRequest.cs new file mode 100755 index 0000000..1be08a5 --- /dev/null +++ b/Services/Ims/V2/Model/GlanceShowImageSchemasRequest.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Request Object + /// + public class GlanceShowImageSchemasRequest + { + + + } +} diff --git a/Services/Ims/V2/Model/GlanceShowImageSchemasResponse.cs b/Services/Ims/V2/Model/GlanceShowImageSchemasResponse.cs new file mode 100755 index 0000000..317fde5 --- /dev/null +++ b/Services/Ims/V2/Model/GlanceShowImageSchemasResponse.cs @@ -0,0 +1,107 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Response Object + /// + public class GlanceShowImageSchemasResponse : SdkResponse + { + + [JsonProperty("additionalProperties", NullValueHandling = NullValueHandling.Ignore)] + public AdditionalProperties AdditionalProperties { get; set; } + + [JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)] + public string Name { get; set; } + + [JsonProperty("properties", NullValueHandling = NullValueHandling.Ignore)] + public Object Properties { get; set; } + + [JsonProperty("links", NullValueHandling = NullValueHandling.Ignore)] + public List Links { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class GlanceShowImageSchemasResponse {\n"); + sb.Append(" additionalProperties: ").Append(AdditionalProperties).Append("\n"); + sb.Append(" name: ").Append(Name).Append("\n"); + sb.Append(" properties: ").Append(Properties).Append("\n"); + sb.Append(" links: ").Append(Links).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as GlanceShowImageSchemasResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(GlanceShowImageSchemasResponse input) + { + if (input == null) + return false; + + return + ( + this.AdditionalProperties == input.AdditionalProperties || + (this.AdditionalProperties != null && + this.AdditionalProperties.Equals(input.AdditionalProperties)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Properties == input.Properties || + (this.Properties != null && + this.Properties.Equals(input.Properties)) + ) && + ( + this.Links == input.Links || + this.Links != null && + input.Links != null && + this.Links.SequenceEqual(input.Links) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.AdditionalProperties != null) + hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Properties != null) + hashCode = hashCode * 59 + this.Properties.GetHashCode(); + if (this.Links != null) + hashCode = hashCode * 59 + this.Links.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/GlanceUpdateImageMemberRequest.cs b/Services/Ims/V2/Model/GlanceUpdateImageMemberRequest.cs new file mode 100755 index 0000000..3b12d5f --- /dev/null +++ b/Services/Ims/V2/Model/GlanceUpdateImageMemberRequest.cs @@ -0,0 +1,98 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Request Object + /// + public class GlanceUpdateImageMemberRequest + { + + [SDKProperty("image_id", IsPath = true)] + [JsonProperty("image_id", NullValueHandling = NullValueHandling.Ignore)] + public string ImageId { get; set; } + + [SDKProperty("member_id", IsPath = true)] + [JsonProperty("member_id", NullValueHandling = NullValueHandling.Ignore)] + public string MemberId { get; set; } + + [SDKProperty("body", IsBody = true)] + [JsonProperty("body", NullValueHandling = NullValueHandling.Ignore)] + public GlanceUpdateImageMemberRequestBody Body { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class GlanceUpdateImageMemberRequest {\n"); + sb.Append(" imageId: ").Append(ImageId).Append("\n"); + sb.Append(" memberId: ").Append(MemberId).Append("\n"); + sb.Append(" body: ").Append(Body).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as GlanceUpdateImageMemberRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(GlanceUpdateImageMemberRequest input) + { + if (input == null) + return false; + + return + ( + this.ImageId == input.ImageId || + (this.ImageId != null && + this.ImageId.Equals(input.ImageId)) + ) && + ( + this.MemberId == input.MemberId || + (this.MemberId != null && + this.MemberId.Equals(input.MemberId)) + ) && + ( + this.Body == input.Body || + (this.Body != null && + this.Body.Equals(input.Body)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ImageId != null) + hashCode = hashCode * 59 + this.ImageId.GetHashCode(); + if (this.MemberId != null) + hashCode = hashCode * 59 + this.MemberId.GetHashCode(); + if (this.Body != null) + hashCode = hashCode * 59 + this.Body.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/GlanceUpdateImageMemberRequestBody.cs b/Services/Ims/V2/Model/GlanceUpdateImageMemberRequestBody.cs new file mode 100755 index 0000000..b433479 --- /dev/null +++ b/Services/Ims/V2/Model/GlanceUpdateImageMemberRequestBody.cs @@ -0,0 +1,194 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// 镜像成员的状态。 + /// + public class GlanceUpdateImageMemberRequestBody + { + [JsonConverter(typeof(EnumClassConverter))] + public class StatusEnum + { + /// + /// Enum ACCEPTED for value: accepted + /// + public static readonly StatusEnum ACCEPTED = new StatusEnum("accepted"); + + /// + /// Enum REJECTED for value: rejected + /// + public static readonly StatusEnum REJECTED = new StatusEnum("rejected"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "accepted", ACCEPTED }, + { "rejected", REJECTED }, + }; + + private string _value; + + public StatusEnum() + { + + } + + public StatusEnum(string value) + { + _value = value; + } + + public static StatusEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as StatusEnum)) + { + return true; + } + + return false; + } + + public bool Equals(StatusEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(StatusEnum a, StatusEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(StatusEnum a, StatusEnum b) + { + return !(a == b); + } + } + + + [JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)] + public StatusEnum Status { get; set; } + [JsonProperty("vault_id", NullValueHandling = NullValueHandling.Ignore)] + public string VaultId { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class GlanceUpdateImageMemberRequestBody {\n"); + sb.Append(" status: ").Append(Status).Append("\n"); + sb.Append(" vaultId: ").Append(VaultId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as GlanceUpdateImageMemberRequestBody); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(GlanceUpdateImageMemberRequestBody input) + { + if (input == null) + return false; + + return + ( + this.Status == input.Status || + (this.Status != null && + this.Status.Equals(input.Status)) + ) && + ( + this.VaultId == input.VaultId || + (this.VaultId != null && + this.VaultId.Equals(input.VaultId)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Status != null) + hashCode = hashCode * 59 + this.Status.GetHashCode(); + if (this.VaultId != null) + hashCode = hashCode * 59 + this.VaultId.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/GlanceUpdateImageMemberResponse.cs b/Services/Ims/V2/Model/GlanceUpdateImageMemberResponse.cs new file mode 100755 index 0000000..b2ef362 --- /dev/null +++ b/Services/Ims/V2/Model/GlanceUpdateImageMemberResponse.cs @@ -0,0 +1,128 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Response Object + /// + public class GlanceUpdateImageMemberResponse : SdkResponse + { + + [JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)] + public string Status { get; set; } + + [JsonProperty("created_at", NullValueHandling = NullValueHandling.Ignore)] + public string CreatedAt { get; set; } + + [JsonProperty("updated_at", NullValueHandling = NullValueHandling.Ignore)] + public string UpdatedAt { get; set; } + + [JsonProperty("image_id", NullValueHandling = NullValueHandling.Ignore)] + public string ImageId { get; set; } + + [JsonProperty("member_id", NullValueHandling = NullValueHandling.Ignore)] + public string MemberId { get; set; } + + [JsonProperty("schema", NullValueHandling = NullValueHandling.Ignore)] + public string Schema { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class GlanceUpdateImageMemberResponse {\n"); + sb.Append(" status: ").Append(Status).Append("\n"); + sb.Append(" createdAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" updatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append(" imageId: ").Append(ImageId).Append("\n"); + sb.Append(" memberId: ").Append(MemberId).Append("\n"); + sb.Append(" schema: ").Append(Schema).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as GlanceUpdateImageMemberResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(GlanceUpdateImageMemberResponse input) + { + if (input == null) + return false; + + return + ( + this.Status == input.Status || + (this.Status != null && + this.Status.Equals(input.Status)) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.UpdatedAt == input.UpdatedAt || + (this.UpdatedAt != null && + this.UpdatedAt.Equals(input.UpdatedAt)) + ) && + ( + this.ImageId == input.ImageId || + (this.ImageId != null && + this.ImageId.Equals(input.ImageId)) + ) && + ( + this.MemberId == input.MemberId || + (this.MemberId != null && + this.MemberId.Equals(input.MemberId)) + ) && + ( + this.Schema == input.Schema || + (this.Schema != null && + this.Schema.Equals(input.Schema)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Status != null) + hashCode = hashCode * 59 + this.Status.GetHashCode(); + if (this.CreatedAt != null) + hashCode = hashCode * 59 + this.CreatedAt.GetHashCode(); + if (this.UpdatedAt != null) + hashCode = hashCode * 59 + this.UpdatedAt.GetHashCode(); + if (this.ImageId != null) + hashCode = hashCode * 59 + this.ImageId.GetHashCode(); + if (this.MemberId != null) + hashCode = hashCode * 59 + this.MemberId.GetHashCode(); + if (this.Schema != null) + hashCode = hashCode * 59 + this.Schema.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/GlanceUpdateImageRequest.cs b/Services/Ims/V2/Model/GlanceUpdateImageRequest.cs new file mode 100755 index 0000000..a12f79e --- /dev/null +++ b/Services/Ims/V2/Model/GlanceUpdateImageRequest.cs @@ -0,0 +1,87 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Request Object + /// + public class GlanceUpdateImageRequest + { + + [SDKProperty("image_id", IsPath = true)] + [JsonProperty("image_id", NullValueHandling = NullValueHandling.Ignore)] + public string ImageId { get; set; } + + [SDKProperty("body", IsBody = true)] + [JsonProperty("body", NullValueHandling = NullValueHandling.Ignore)] + public List Body { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class GlanceUpdateImageRequest {\n"); + sb.Append(" imageId: ").Append(ImageId).Append("\n"); + sb.Append(" body: ").Append(Body).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as GlanceUpdateImageRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(GlanceUpdateImageRequest input) + { + if (input == null) + return false; + + return + ( + this.ImageId == input.ImageId || + (this.ImageId != null && + this.ImageId.Equals(input.ImageId)) + ) && + ( + this.Body == input.Body || + this.Body != null && + input.Body != null && + this.Body.SequenceEqual(input.Body) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ImageId != null) + hashCode = hashCode * 59 + this.ImageId.GetHashCode(); + if (this.Body != null) + hashCode = hashCode * 59 + this.Body.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/GlanceUpdateImageRequestBody.cs b/Services/Ims/V2/Model/GlanceUpdateImageRequestBody.cs new file mode 100755 index 0000000..67b41fc --- /dev/null +++ b/Services/Ims/V2/Model/GlanceUpdateImageRequestBody.cs @@ -0,0 +1,211 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// 原生更新接口请求体 + /// + public class GlanceUpdateImageRequestBody + { + [JsonConverter(typeof(EnumClassConverter))] + public class OpEnum + { + /// + /// Enum REPLACE for value: replace + /// + public static readonly OpEnum REPLACE = new OpEnum("replace"); + + /// + /// Enum ADD for value: add + /// + public static readonly OpEnum ADD = new OpEnum("add"); + + /// + /// Enum REMOVE for value: remove + /// + public static readonly OpEnum REMOVE = new OpEnum("remove"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "replace", REPLACE }, + { "add", ADD }, + { "remove", REMOVE }, + }; + + private string _value; + + public OpEnum() + { + + } + + public OpEnum(string value) + { + _value = value; + } + + public static OpEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as OpEnum)) + { + return true; + } + + return false; + } + + public bool Equals(OpEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(OpEnum a, OpEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(OpEnum a, OpEnum b) + { + return !(a == b); + } + } + + + [JsonProperty("op", NullValueHandling = NullValueHandling.Ignore)] + public OpEnum Op { get; set; } + [JsonProperty("path", NullValueHandling = NullValueHandling.Ignore)] + public string Path { get; set; } + + [JsonProperty("value", NullValueHandling = NullValueHandling.Ignore)] + public string Value { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class GlanceUpdateImageRequestBody {\n"); + sb.Append(" op: ").Append(Op).Append("\n"); + sb.Append(" path: ").Append(Path).Append("\n"); + sb.Append(" value: ").Append(Value).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as GlanceUpdateImageRequestBody); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(GlanceUpdateImageRequestBody input) + { + if (input == null) + return false; + + return + ( + this.Op == input.Op || + (this.Op != null && + this.Op.Equals(input.Op)) + ) && + ( + this.Path == input.Path || + (this.Path != null && + this.Path.Equals(input.Path)) + ) && + ( + this.Value == input.Value || + (this.Value != null && + this.Value.Equals(input.Value)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Op != null) + hashCode = hashCode * 59 + this.Op.GetHashCode(); + if (this.Path != null) + hashCode = hashCode * 59 + this.Path.GetHashCode(); + if (this.Value != null) + hashCode = hashCode * 59 + this.Value.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/GlanceUpdateImageResponse.cs b/Services/Ims/V2/Model/GlanceUpdateImageResponse.cs new file mode 100755 index 0000000..b9eebcb --- /dev/null +++ b/Services/Ims/V2/Model/GlanceUpdateImageResponse.cs @@ -0,0 +1,2389 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Response Object + /// + public class GlanceUpdateImageResponse : SdkResponse + { + [JsonConverter(typeof(EnumClassConverter))] + public class ImageSourceTypeEnum + { + /// + /// Enum UDS for value: uds + /// + public static readonly ImageSourceTypeEnum UDS = new ImageSourceTypeEnum("uds"); + + /// + /// Enum SWIFT for value: swift + /// + public static readonly ImageSourceTypeEnum SWIFT = new ImageSourceTypeEnum("swift"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "uds", UDS }, + { "swift", SWIFT }, + }; + + private string _value; + + public ImageSourceTypeEnum() + { + + } + + public ImageSourceTypeEnum(string value) + { + _value = value; + } + + public static ImageSourceTypeEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as ImageSourceTypeEnum)) + { + return true; + } + + return false; + } + + public bool Equals(ImageSourceTypeEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(ImageSourceTypeEnum a, ImageSourceTypeEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(ImageSourceTypeEnum a, ImageSourceTypeEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class ImagetypeEnum + { + /// + /// Enum GOLD for value: gold + /// + public static readonly ImagetypeEnum GOLD = new ImagetypeEnum("gold"); + + /// + /// Enum PRIVATE for value: private + /// + public static readonly ImagetypeEnum PRIVATE = new ImagetypeEnum("private"); + + /// + /// Enum SHARED for value: shared + /// + public static readonly ImagetypeEnum SHARED = new ImagetypeEnum("shared"); + + /// + /// Enum MARKET for value: market + /// + public static readonly ImagetypeEnum MARKET = new ImagetypeEnum("market"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "gold", GOLD }, + { "private", PRIVATE }, + { "shared", SHARED }, + { "market", MARKET }, + }; + + private string _value; + + public ImagetypeEnum() + { + + } + + public ImagetypeEnum(string value) + { + _value = value; + } + + public static ImagetypeEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as ImagetypeEnum)) + { + return true; + } + + return false; + } + + public bool Equals(ImagetypeEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(ImagetypeEnum a, ImagetypeEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(ImagetypeEnum a, ImagetypeEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class IsregisteredEnum + { + /// + /// Enum TRUE for value: true + /// + public static readonly IsregisteredEnum TRUE = new IsregisteredEnum("true"); + + /// + /// Enum FALSE for value: false + /// + public static readonly IsregisteredEnum FALSE = new IsregisteredEnum("false"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "true", TRUE }, + { "false", FALSE }, + }; + + private string _value; + + public IsregisteredEnum() + { + + } + + public IsregisteredEnum(string value) + { + _value = value; + } + + public static IsregisteredEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as IsregisteredEnum)) + { + return true; + } + + return false; + } + + public bool Equals(IsregisteredEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(IsregisteredEnum a, IsregisteredEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(IsregisteredEnum a, IsregisteredEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class OsBitEnum + { + /// + /// Enum _32 for value: 32 + /// + public static readonly OsBitEnum _32 = new OsBitEnum("32"); + + /// + /// Enum _64 for value: 64 + /// + public static readonly OsBitEnum _64 = new OsBitEnum("64"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "32", _32 }, + { "64", _64 }, + }; + + private string _value; + + public OsBitEnum() + { + + } + + public OsBitEnum(string value) + { + _value = value; + } + + public static OsBitEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as OsBitEnum)) + { + return true; + } + + return false; + } + + public bool Equals(OsBitEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(OsBitEnum a, OsBitEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(OsBitEnum a, OsBitEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class OsTypeEnum + { + /// + /// Enum LINUX for value: Linux + /// + public static readonly OsTypeEnum LINUX = new OsTypeEnum("Linux"); + + /// + /// Enum WINDOWS for value: Windows + /// + public static readonly OsTypeEnum WINDOWS = new OsTypeEnum("Windows"); + + /// + /// Enum OTHER for value: Other + /// + public static readonly OsTypeEnum OTHER = new OsTypeEnum("Other"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "Linux", LINUX }, + { "Windows", WINDOWS }, + { "Other", OTHER }, + }; + + private string _value; + + public OsTypeEnum() + { + + } + + public OsTypeEnum(string value) + { + _value = value; + } + + public static OsTypeEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as OsTypeEnum)) + { + return true; + } + + return false; + } + + public bool Equals(OsTypeEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(OsTypeEnum a, OsTypeEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(OsTypeEnum a, OsTypeEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class PlatformEnum + { + /// + /// Enum WINDOWS for value: Windows + /// + public static readonly PlatformEnum WINDOWS = new PlatformEnum("Windows"); + + /// + /// Enum UBUNTU for value: Ubuntu + /// + public static readonly PlatformEnum UBUNTU = new PlatformEnum("Ubuntu"); + + /// + /// Enum REDHAT for value: RedHat + /// + public static readonly PlatformEnum REDHAT = new PlatformEnum("RedHat"); + + /// + /// Enum SUSE for value: SUSE + /// + public static readonly PlatformEnum SUSE = new PlatformEnum("SUSE"); + + /// + /// Enum CENTOS for value: CentOS + /// + public static readonly PlatformEnum CENTOS = new PlatformEnum("CentOS"); + + /// + /// Enum DEBIAN for value: Debian + /// + public static readonly PlatformEnum DEBIAN = new PlatformEnum("Debian"); + + /// + /// Enum OPENSUSE for value: OpenSUSE + /// + public static readonly PlatformEnum OPENSUSE = new PlatformEnum("OpenSUSE"); + + /// + /// Enum ORACLELINUX for value: OracleLinux + /// + public static readonly PlatformEnum ORACLELINUX = new PlatformEnum("OracleLinux"); + + /// + /// Enum FEDORA for value: Fedora + /// + public static readonly PlatformEnum FEDORA = new PlatformEnum("Fedora"); + + /// + /// Enum OTHER for value: Other + /// + public static readonly PlatformEnum OTHER = new PlatformEnum("Other"); + + /// + /// Enum COREOS for value: CoreOS + /// + public static readonly PlatformEnum COREOS = new PlatformEnum("CoreOS"); + + /// + /// Enum EULEROS for value: EulerOS + /// + public static readonly PlatformEnum EULEROS = new PlatformEnum("EulerOS"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "Windows", WINDOWS }, + { "Ubuntu", UBUNTU }, + { "RedHat", REDHAT }, + { "SUSE", SUSE }, + { "CentOS", CENTOS }, + { "Debian", DEBIAN }, + { "OpenSUSE", OPENSUSE }, + { "OracleLinux", ORACLELINUX }, + { "Fedora", FEDORA }, + { "Other", OTHER }, + { "CoreOS", COREOS }, + { "EulerOS", EULEROS }, + }; + + private string _value; + + public PlatformEnum() + { + + } + + public PlatformEnum(string value) + { + _value = value; + } + + public static PlatformEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as PlatformEnum)) + { + return true; + } + + return false; + } + + public bool Equals(PlatformEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(PlatformEnum a, PlatformEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(PlatformEnum a, PlatformEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class DiskFormatEnum + { + /// + /// Enum VHD for value: vhd + /// + public static readonly DiskFormatEnum VHD = new DiskFormatEnum("vhd"); + + /// + /// Enum ZVHD for value: zvhd + /// + public static readonly DiskFormatEnum ZVHD = new DiskFormatEnum("zvhd"); + + /// + /// Enum RAW for value: raw + /// + public static readonly DiskFormatEnum RAW = new DiskFormatEnum("raw"); + + /// + /// Enum QCOW2 for value: qcow2 + /// + public static readonly DiskFormatEnum QCOW2 = new DiskFormatEnum("qcow2"); + + /// + /// Enum ZVHD2 for value: zvhd2 + /// + public static readonly DiskFormatEnum ZVHD2 = new DiskFormatEnum("zvhd2"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "vhd", VHD }, + { "zvhd", ZVHD }, + { "raw", RAW }, + { "qcow2", QCOW2 }, + { "zvhd2", ZVHD2 }, + }; + + private string _value; + + public DiskFormatEnum() + { + + } + + public DiskFormatEnum(string value) + { + _value = value; + } + + public static DiskFormatEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as DiskFormatEnum)) + { + return true; + } + + return false; + } + + public bool Equals(DiskFormatEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(DiskFormatEnum a, DiskFormatEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(DiskFormatEnum a, DiskFormatEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class StatusEnum + { + /// + /// Enum QUEUED for value: queued + /// + public static readonly StatusEnum QUEUED = new StatusEnum("queued"); + + /// + /// Enum SAVING for value: saving + /// + public static readonly StatusEnum SAVING = new StatusEnum("saving"); + + /// + /// Enum DELETED for value: deleted + /// + public static readonly StatusEnum DELETED = new StatusEnum("deleted"); + + /// + /// Enum KILLED for value: killed + /// + public static readonly StatusEnum KILLED = new StatusEnum("killed"); + + /// + /// Enum ACTIVE for value: active + /// + public static readonly StatusEnum ACTIVE = new StatusEnum("active"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "queued", QUEUED }, + { "saving", SAVING }, + { "deleted", DELETED }, + { "killed", KILLED }, + { "active", ACTIVE }, + }; + + private string _value; + + public StatusEnum() + { + + } + + public StatusEnum(string value) + { + _value = value; + } + + public static StatusEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as StatusEnum)) + { + return true; + } + + return false; + } + + public bool Equals(StatusEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(StatusEnum a, StatusEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(StatusEnum a, StatusEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class VirtualEnvTypeEnum + { + /// + /// Enum FUSIONCOMPUTE for value: FusionCompute + /// + public static readonly VirtualEnvTypeEnum FUSIONCOMPUTE = new VirtualEnvTypeEnum("FusionCompute"); + + /// + /// Enum IRONIC for value: Ironic + /// + public static readonly VirtualEnvTypeEnum IRONIC = new VirtualEnvTypeEnum("Ironic"); + + /// + /// Enum DATAIMAGE for value: DataImage + /// + public static readonly VirtualEnvTypeEnum DATAIMAGE = new VirtualEnvTypeEnum("DataImage"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "FusionCompute", FUSIONCOMPUTE }, + { "Ironic", IRONIC }, + { "DataImage", DATAIMAGE }, + }; + + private string _value; + + public VirtualEnvTypeEnum() + { + + } + + public VirtualEnvTypeEnum(string value) + { + _value = value; + } + + public static VirtualEnvTypeEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as VirtualEnvTypeEnum)) + { + return true; + } + + return false; + } + + public bool Equals(VirtualEnvTypeEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(VirtualEnvTypeEnum a, VirtualEnvTypeEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(VirtualEnvTypeEnum a, VirtualEnvTypeEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class VisibilityEnum + { + /// + /// Enum PRIVATE for value: private + /// + public static readonly VisibilityEnum PRIVATE = new VisibilityEnum("private"); + + /// + /// Enum PUBLIC for value: public + /// + public static readonly VisibilityEnum PUBLIC = new VisibilityEnum("public"); + + /// + /// Enum SHARED for value: shared + /// + public static readonly VisibilityEnum SHARED = new VisibilityEnum("shared"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "private", PRIVATE }, + { "public", PUBLIC }, + { "shared", SHARED }, + }; + + private string _value; + + public VisibilityEnum() + { + + } + + public VisibilityEnum(string value) + { + _value = value; + } + + public static VisibilityEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as VisibilityEnum)) + { + return true; + } + + return false; + } + + public bool Equals(VisibilityEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(VisibilityEnum a, VisibilityEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(VisibilityEnum a, VisibilityEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class SupportFcInjectEnum + { + /// + /// Enum TRUE for value: true + /// + public static readonly SupportFcInjectEnum TRUE = new SupportFcInjectEnum("true"); + + /// + /// Enum FALSE for value: false + /// + public static readonly SupportFcInjectEnum FALSE = new SupportFcInjectEnum("false"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "true", TRUE }, + { "false", FALSE }, + }; + + private string _value; + + public SupportFcInjectEnum() + { + + } + + public SupportFcInjectEnum(string value) + { + _value = value; + } + + public static SupportFcInjectEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as SupportFcInjectEnum)) + { + return true; + } + + return false; + } + + public bool Equals(SupportFcInjectEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(SupportFcInjectEnum a, SupportFcInjectEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(SupportFcInjectEnum a, SupportFcInjectEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class HwFirmwareTypeEnum + { + /// + /// Enum BIOS for value: bios + /// + public static readonly HwFirmwareTypeEnum BIOS = new HwFirmwareTypeEnum("bios"); + + /// + /// Enum UEFI for value: uefi + /// + public static readonly HwFirmwareTypeEnum UEFI = new HwFirmwareTypeEnum("uefi"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "bios", BIOS }, + { "uefi", UEFI }, + }; + + private string _value; + + public HwFirmwareTypeEnum() + { + + } + + public HwFirmwareTypeEnum(string value) + { + _value = value; + } + + public static HwFirmwareTypeEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as HwFirmwareTypeEnum)) + { + return true; + } + + return false; + } + + public bool Equals(HwFirmwareTypeEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(HwFirmwareTypeEnum a, HwFirmwareTypeEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(HwFirmwareTypeEnum a, HwFirmwareTypeEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class SupportArmEnum + { + /// + /// Enum TRUE for value: true + /// + public static readonly SupportArmEnum TRUE = new SupportArmEnum("true"); + + /// + /// Enum FALSE for value: false + /// + public static readonly SupportArmEnum FALSE = new SupportArmEnum("false"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "true", TRUE }, + { "false", FALSE }, + }; + + private string _value; + + public SupportArmEnum() + { + + } + + public SupportArmEnum(string value) + { + _value = value; + } + + public static SupportArmEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as SupportArmEnum)) + { + return true; + } + + return false; + } + + public bool Equals(SupportArmEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(SupportArmEnum a, SupportArmEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(SupportArmEnum a, SupportArmEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class IsOffshelvedEnum + { + /// + /// Enum TRUE for value: true + /// + public static readonly IsOffshelvedEnum TRUE = new IsOffshelvedEnum("true"); + + /// + /// Enum FALSE for value: false + /// + public static readonly IsOffshelvedEnum FALSE = new IsOffshelvedEnum("false"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "true", TRUE }, + { "false", FALSE }, + }; + + private string _value; + + public IsOffshelvedEnum() + { + + } + + public IsOffshelvedEnum(string value) + { + _value = value; + } + + public static IsOffshelvedEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as IsOffshelvedEnum)) + { + return true; + } + + return false; + } + + public bool Equals(IsOffshelvedEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(IsOffshelvedEnum a, IsOffshelvedEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(IsOffshelvedEnum a, IsOffshelvedEnum b) + { + return !(a == b); + } + } + + + [JsonProperty("__backup_id", NullValueHandling = NullValueHandling.Ignore)] + public string BackupId { get; set; } + + [JsonProperty("__data_origin", NullValueHandling = NullValueHandling.Ignore)] + public string DataOrigin { get; set; } + + [JsonProperty("__description", NullValueHandling = NullValueHandling.Ignore)] + public string Description { get; set; } + + [JsonProperty("__image_size", NullValueHandling = NullValueHandling.Ignore)] + public string ImageSize { get; set; } + + [JsonProperty("__image_source_type", NullValueHandling = NullValueHandling.Ignore)] + public ImageSourceTypeEnum ImageSourceType { get; set; } + [JsonProperty("__imagetype", NullValueHandling = NullValueHandling.Ignore)] + public ImagetypeEnum Imagetype { get; set; } + [JsonProperty("__isregistered", NullValueHandling = NullValueHandling.Ignore)] + public IsregisteredEnum Isregistered { get; set; } + [JsonProperty("__originalimagename", NullValueHandling = NullValueHandling.Ignore)] + public string Originalimagename { get; set; } + + [JsonProperty("__os_bit", NullValueHandling = NullValueHandling.Ignore)] + public OsBitEnum OsBit { get; set; } + [JsonProperty("__os_type", NullValueHandling = NullValueHandling.Ignore)] + public OsTypeEnum OsType { get; set; } + [JsonProperty("__os_version", NullValueHandling = NullValueHandling.Ignore)] + public string OsVersion { get; set; } + + [JsonProperty("__platform", NullValueHandling = NullValueHandling.Ignore)] + public PlatformEnum Platform { get; set; } + [JsonProperty("__productcode", NullValueHandling = NullValueHandling.Ignore)] + public string Productcode { get; set; } + + [JsonProperty("__support_diskintensive", NullValueHandling = NullValueHandling.Ignore)] + public string SupportDiskintensive { get; set; } + + [JsonProperty("__support_highperformance", NullValueHandling = NullValueHandling.Ignore)] + public string SupportHighperformance { get; set; } + + [JsonProperty("__support_kvm", NullValueHandling = NullValueHandling.Ignore)] + public string SupportKvm { get; set; } + + [JsonProperty("__support_kvm_gpu_type", NullValueHandling = NullValueHandling.Ignore)] + public string SupportKvmGpuType { get; set; } + + [JsonProperty("__support_kvm_infiniband", NullValueHandling = NullValueHandling.Ignore)] + public string SupportKvmInfiniband { get; set; } + + [JsonProperty("__support_largememory", NullValueHandling = NullValueHandling.Ignore)] + public string SupportLargememory { get; set; } + + [JsonProperty("__support_xen", NullValueHandling = NullValueHandling.Ignore)] + public string SupportXen { get; set; } + + [JsonProperty("__support_xen_gpu_type", NullValueHandling = NullValueHandling.Ignore)] + public string SupportXenGpuType { get; set; } + + [JsonProperty("__support_xen_hana", NullValueHandling = NullValueHandling.Ignore)] + public string SupportXenHana { get; set; } + + [JsonProperty("checksum", NullValueHandling = NullValueHandling.Ignore)] + public string Checksum { get; set; } + + [JsonProperty("container_format", NullValueHandling = NullValueHandling.Ignore)] + public string ContainerFormat { get; set; } + + [JsonProperty("created_at", NullValueHandling = NullValueHandling.Ignore)] + public string CreatedAt { get; set; } + + [JsonProperty("disk_format", NullValueHandling = NullValueHandling.Ignore)] + public DiskFormatEnum DiskFormat { get; set; } + [JsonProperty("file", NullValueHandling = NullValueHandling.Ignore)] + public string File { get; set; } + + [JsonProperty("id", NullValueHandling = NullValueHandling.Ignore)] + public string Id { get; set; } + + [JsonProperty("min_disk", NullValueHandling = NullValueHandling.Ignore)] + public int? MinDisk { get; set; } + + [JsonProperty("min_ram", NullValueHandling = NullValueHandling.Ignore)] + public int? MinRam { get; set; } + + [JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)] + public string Name { get; set; } + + [JsonProperty("owner", NullValueHandling = NullValueHandling.Ignore)] + public string Owner { get; set; } + + [JsonProperty("protected", NullValueHandling = NullValueHandling.Ignore)] + public bool? Protected { get; set; } + + [JsonProperty("schema", NullValueHandling = NullValueHandling.Ignore)] + public string Schema { get; set; } + + [JsonProperty("self", NullValueHandling = NullValueHandling.Ignore)] + public string Self { get; set; } + + [JsonProperty("size", NullValueHandling = NullValueHandling.Ignore)] + public long? Size { get; set; } + + [JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)] + public StatusEnum Status { get; set; } + [JsonProperty("tags", NullValueHandling = NullValueHandling.Ignore)] + public List Tags { get; set; } + + [JsonProperty("updated_at", NullValueHandling = NullValueHandling.Ignore)] + public string UpdatedAt { get; set; } + + [JsonProperty("virtual_env_type", NullValueHandling = NullValueHandling.Ignore)] + public VirtualEnvTypeEnum VirtualEnvType { get; set; } + [JsonProperty("virtual_size", NullValueHandling = NullValueHandling.Ignore)] + public int? VirtualSize { get; set; } + + [JsonProperty("visibility", NullValueHandling = NullValueHandling.Ignore)] + public VisibilityEnum Visibility { get; set; } + [JsonProperty("__support_fc_inject", NullValueHandling = NullValueHandling.Ignore)] + public SupportFcInjectEnum SupportFcInject { get; set; } + [JsonProperty("enterprise_project_id", NullValueHandling = NullValueHandling.Ignore)] + public string EnterpriseProjectId { get; set; } + + [JsonProperty("hw_firmware_type", NullValueHandling = NullValueHandling.Ignore)] + public HwFirmwareTypeEnum HwFirmwareType { get; set; } + [JsonProperty("__support_arm", NullValueHandling = NullValueHandling.Ignore)] + public SupportArmEnum SupportArm { get; set; } + [JsonProperty("__is_offshelved", NullValueHandling = NullValueHandling.Ignore)] + public IsOffshelvedEnum IsOffshelved { get; set; } + [JsonProperty("__lazyloading", NullValueHandling = NullValueHandling.Ignore)] + public string Lazyloading { get; set; } + + [JsonProperty("__os_feature_list", NullValueHandling = NullValueHandling.Ignore)] + public string OsFeatureList { get; set; } + + [JsonProperty("__root_origin", NullValueHandling = NullValueHandling.Ignore)] + public string RootOrigin { get; set; } + + [JsonProperty("__sequence_num", NullValueHandling = NullValueHandling.Ignore)] + public string SequenceNum { get; set; } + + [JsonProperty("__support_agent_list", NullValueHandling = NullValueHandling.Ignore)] + public string SupportAgentList { get; set; } + + [JsonProperty("__system__cmkid", NullValueHandling = NullValueHandling.Ignore)] + public string SystemCmkid { get; set; } + + [JsonProperty("active_at", NullValueHandling = NullValueHandling.Ignore)] + public string ActiveAt { get; set; } + + [JsonProperty("hw_vif_multiqueue_enabled", NullValueHandling = NullValueHandling.Ignore)] + public string HwVifMultiqueueEnabled { get; set; } + + [JsonProperty("max_ram", NullValueHandling = NullValueHandling.Ignore)] + public string MaxRam { get; set; } + + [JsonProperty("__image_location", NullValueHandling = NullValueHandling.Ignore)] + public string ImageLocation { get; set; } + + [JsonProperty("__is_config_init", NullValueHandling = NullValueHandling.Ignore)] + public string IsConfigInit { get; set; } + + [JsonProperty("__account_code", NullValueHandling = NullValueHandling.Ignore)] + public string AccountCode { get; set; } + + [JsonProperty("__support_amd", NullValueHandling = NullValueHandling.Ignore)] + public string SupportAmd { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class GlanceUpdateImageResponse {\n"); + sb.Append(" backupId: ").Append(BackupId).Append("\n"); + sb.Append(" dataOrigin: ").Append(DataOrigin).Append("\n"); + sb.Append(" description: ").Append(Description).Append("\n"); + sb.Append(" imageSize: ").Append(ImageSize).Append("\n"); + sb.Append(" imageSourceType: ").Append(ImageSourceType).Append("\n"); + sb.Append(" imagetype: ").Append(Imagetype).Append("\n"); + sb.Append(" isregistered: ").Append(Isregistered).Append("\n"); + sb.Append(" originalimagename: ").Append(Originalimagename).Append("\n"); + sb.Append(" osBit: ").Append(OsBit).Append("\n"); + sb.Append(" osType: ").Append(OsType).Append("\n"); + sb.Append(" osVersion: ").Append(OsVersion).Append("\n"); + sb.Append(" platform: ").Append(Platform).Append("\n"); + sb.Append(" productcode: ").Append(Productcode).Append("\n"); + sb.Append(" supportDiskintensive: ").Append(SupportDiskintensive).Append("\n"); + sb.Append(" supportHighperformance: ").Append(SupportHighperformance).Append("\n"); + sb.Append(" supportKvm: ").Append(SupportKvm).Append("\n"); + sb.Append(" supportKvmGpuType: ").Append(SupportKvmGpuType).Append("\n"); + sb.Append(" supportKvmInfiniband: ").Append(SupportKvmInfiniband).Append("\n"); + sb.Append(" supportLargememory: ").Append(SupportLargememory).Append("\n"); + sb.Append(" supportXen: ").Append(SupportXen).Append("\n"); + sb.Append(" supportXenGpuType: ").Append(SupportXenGpuType).Append("\n"); + sb.Append(" supportXenHana: ").Append(SupportXenHana).Append("\n"); + sb.Append(" checksum: ").Append(Checksum).Append("\n"); + sb.Append(" containerFormat: ").Append(ContainerFormat).Append("\n"); + sb.Append(" createdAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" diskFormat: ").Append(DiskFormat).Append("\n"); + sb.Append(" file: ").Append(File).Append("\n"); + sb.Append(" id: ").Append(Id).Append("\n"); + sb.Append(" minDisk: ").Append(MinDisk).Append("\n"); + sb.Append(" minRam: ").Append(MinRam).Append("\n"); + sb.Append(" name: ").Append(Name).Append("\n"); + sb.Append(" owner: ").Append(Owner).Append("\n"); + sb.Append(" Protected: ").Append(Protected).Append("\n"); + sb.Append(" schema: ").Append(Schema).Append("\n"); + sb.Append(" self: ").Append(Self).Append("\n"); + sb.Append(" size: ").Append(Size).Append("\n"); + sb.Append(" status: ").Append(Status).Append("\n"); + sb.Append(" tags: ").Append(Tags).Append("\n"); + sb.Append(" updatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append(" virtualEnvType: ").Append(VirtualEnvType).Append("\n"); + sb.Append(" virtualSize: ").Append(VirtualSize).Append("\n"); + sb.Append(" visibility: ").Append(Visibility).Append("\n"); + sb.Append(" supportFcInject: ").Append(SupportFcInject).Append("\n"); + sb.Append(" enterpriseProjectId: ").Append(EnterpriseProjectId).Append("\n"); + sb.Append(" hwFirmwareType: ").Append(HwFirmwareType).Append("\n"); + sb.Append(" supportArm: ").Append(SupportArm).Append("\n"); + sb.Append(" isOffshelved: ").Append(IsOffshelved).Append("\n"); + sb.Append(" lazyloading: ").Append(Lazyloading).Append("\n"); + sb.Append(" osFeatureList: ").Append(OsFeatureList).Append("\n"); + sb.Append(" rootOrigin: ").Append(RootOrigin).Append("\n"); + sb.Append(" sequenceNum: ").Append(SequenceNum).Append("\n"); + sb.Append(" supportAgentList: ").Append(SupportAgentList).Append("\n"); + sb.Append(" systemCmkid: ").Append(SystemCmkid).Append("\n"); + sb.Append(" activeAt: ").Append(ActiveAt).Append("\n"); + sb.Append(" hwVifMultiqueueEnabled: ").Append(HwVifMultiqueueEnabled).Append("\n"); + sb.Append(" maxRam: ").Append(MaxRam).Append("\n"); + sb.Append(" imageLocation: ").Append(ImageLocation).Append("\n"); + sb.Append(" isConfigInit: ").Append(IsConfigInit).Append("\n"); + sb.Append(" accountCode: ").Append(AccountCode).Append("\n"); + sb.Append(" supportAmd: ").Append(SupportAmd).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as GlanceUpdateImageResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(GlanceUpdateImageResponse input) + { + if (input == null) + return false; + + return + ( + this.BackupId == input.BackupId || + (this.BackupId != null && + this.BackupId.Equals(input.BackupId)) + ) && + ( + this.DataOrigin == input.DataOrigin || + (this.DataOrigin != null && + this.DataOrigin.Equals(input.DataOrigin)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.ImageSize == input.ImageSize || + (this.ImageSize != null && + this.ImageSize.Equals(input.ImageSize)) + ) && + ( + this.ImageSourceType == input.ImageSourceType || + (this.ImageSourceType != null && + this.ImageSourceType.Equals(input.ImageSourceType)) + ) && + ( + this.Imagetype == input.Imagetype || + (this.Imagetype != null && + this.Imagetype.Equals(input.Imagetype)) + ) && + ( + this.Isregistered == input.Isregistered || + (this.Isregistered != null && + this.Isregistered.Equals(input.Isregistered)) + ) && + ( + this.Originalimagename == input.Originalimagename || + (this.Originalimagename != null && + this.Originalimagename.Equals(input.Originalimagename)) + ) && + ( + this.OsBit == input.OsBit || + (this.OsBit != null && + this.OsBit.Equals(input.OsBit)) + ) && + ( + this.OsType == input.OsType || + (this.OsType != null && + this.OsType.Equals(input.OsType)) + ) && + ( + this.OsVersion == input.OsVersion || + (this.OsVersion != null && + this.OsVersion.Equals(input.OsVersion)) + ) && + ( + this.Platform == input.Platform || + (this.Platform != null && + this.Platform.Equals(input.Platform)) + ) && + ( + this.Productcode == input.Productcode || + (this.Productcode != null && + this.Productcode.Equals(input.Productcode)) + ) && + ( + this.SupportDiskintensive == input.SupportDiskintensive || + (this.SupportDiskintensive != null && + this.SupportDiskintensive.Equals(input.SupportDiskintensive)) + ) && + ( + this.SupportHighperformance == input.SupportHighperformance || + (this.SupportHighperformance != null && + this.SupportHighperformance.Equals(input.SupportHighperformance)) + ) && + ( + this.SupportKvm == input.SupportKvm || + (this.SupportKvm != null && + this.SupportKvm.Equals(input.SupportKvm)) + ) && + ( + this.SupportKvmGpuType == input.SupportKvmGpuType || + (this.SupportKvmGpuType != null && + this.SupportKvmGpuType.Equals(input.SupportKvmGpuType)) + ) && + ( + this.SupportKvmInfiniband == input.SupportKvmInfiniband || + (this.SupportKvmInfiniband != null && + this.SupportKvmInfiniband.Equals(input.SupportKvmInfiniband)) + ) && + ( + this.SupportLargememory == input.SupportLargememory || + (this.SupportLargememory != null && + this.SupportLargememory.Equals(input.SupportLargememory)) + ) && + ( + this.SupportXen == input.SupportXen || + (this.SupportXen != null && + this.SupportXen.Equals(input.SupportXen)) + ) && + ( + this.SupportXenGpuType == input.SupportXenGpuType || + (this.SupportXenGpuType != null && + this.SupportXenGpuType.Equals(input.SupportXenGpuType)) + ) && + ( + this.SupportXenHana == input.SupportXenHana || + (this.SupportXenHana != null && + this.SupportXenHana.Equals(input.SupportXenHana)) + ) && + ( + this.Checksum == input.Checksum || + (this.Checksum != null && + this.Checksum.Equals(input.Checksum)) + ) && + ( + this.ContainerFormat == input.ContainerFormat || + (this.ContainerFormat != null && + this.ContainerFormat.Equals(input.ContainerFormat)) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.DiskFormat == input.DiskFormat || + (this.DiskFormat != null && + this.DiskFormat.Equals(input.DiskFormat)) + ) && + ( + this.File == input.File || + (this.File != null && + this.File.Equals(input.File)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.MinDisk == input.MinDisk || + (this.MinDisk != null && + this.MinDisk.Equals(input.MinDisk)) + ) && + ( + this.MinRam == input.MinRam || + (this.MinRam != null && + this.MinRam.Equals(input.MinRam)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Owner == input.Owner || + (this.Owner != null && + this.Owner.Equals(input.Owner)) + ) && + ( + this.Protected == input.Protected || + (this.Protected != null && + this.Protected.Equals(input.Protected)) + ) && + ( + this.Schema == input.Schema || + (this.Schema != null && + this.Schema.Equals(input.Schema)) + ) && + ( + this.Self == input.Self || + (this.Self != null && + this.Self.Equals(input.Self)) + ) && + ( + this.Size == input.Size || + (this.Size != null && + this.Size.Equals(input.Size)) + ) && + ( + this.Status == input.Status || + (this.Status != null && + this.Status.Equals(input.Status)) + ) && + ( + this.Tags == input.Tags || + this.Tags != null && + input.Tags != null && + this.Tags.SequenceEqual(input.Tags) + ) && + ( + this.UpdatedAt == input.UpdatedAt || + (this.UpdatedAt != null && + this.UpdatedAt.Equals(input.UpdatedAt)) + ) && + ( + this.VirtualEnvType == input.VirtualEnvType || + (this.VirtualEnvType != null && + this.VirtualEnvType.Equals(input.VirtualEnvType)) + ) && + ( + this.VirtualSize == input.VirtualSize || + (this.VirtualSize != null && + this.VirtualSize.Equals(input.VirtualSize)) + ) && + ( + this.Visibility == input.Visibility || + (this.Visibility != null && + this.Visibility.Equals(input.Visibility)) + ) && + ( + this.SupportFcInject == input.SupportFcInject || + (this.SupportFcInject != null && + this.SupportFcInject.Equals(input.SupportFcInject)) + ) && + ( + this.EnterpriseProjectId == input.EnterpriseProjectId || + (this.EnterpriseProjectId != null && + this.EnterpriseProjectId.Equals(input.EnterpriseProjectId)) + ) && + ( + this.HwFirmwareType == input.HwFirmwareType || + (this.HwFirmwareType != null && + this.HwFirmwareType.Equals(input.HwFirmwareType)) + ) && + ( + this.SupportArm == input.SupportArm || + (this.SupportArm != null && + this.SupportArm.Equals(input.SupportArm)) + ) && + ( + this.IsOffshelved == input.IsOffshelved || + (this.IsOffshelved != null && + this.IsOffshelved.Equals(input.IsOffshelved)) + ) && + ( + this.Lazyloading == input.Lazyloading || + (this.Lazyloading != null && + this.Lazyloading.Equals(input.Lazyloading)) + ) && + ( + this.OsFeatureList == input.OsFeatureList || + (this.OsFeatureList != null && + this.OsFeatureList.Equals(input.OsFeatureList)) + ) && + ( + this.RootOrigin == input.RootOrigin || + (this.RootOrigin != null && + this.RootOrigin.Equals(input.RootOrigin)) + ) && + ( + this.SequenceNum == input.SequenceNum || + (this.SequenceNum != null && + this.SequenceNum.Equals(input.SequenceNum)) + ) && + ( + this.SupportAgentList == input.SupportAgentList || + (this.SupportAgentList != null && + this.SupportAgentList.Equals(input.SupportAgentList)) + ) && + ( + this.SystemCmkid == input.SystemCmkid || + (this.SystemCmkid != null && + this.SystemCmkid.Equals(input.SystemCmkid)) + ) && + ( + this.ActiveAt == input.ActiveAt || + (this.ActiveAt != null && + this.ActiveAt.Equals(input.ActiveAt)) + ) && + ( + this.HwVifMultiqueueEnabled == input.HwVifMultiqueueEnabled || + (this.HwVifMultiqueueEnabled != null && + this.HwVifMultiqueueEnabled.Equals(input.HwVifMultiqueueEnabled)) + ) && + ( + this.MaxRam == input.MaxRam || + (this.MaxRam != null && + this.MaxRam.Equals(input.MaxRam)) + ) && + ( + this.ImageLocation == input.ImageLocation || + (this.ImageLocation != null && + this.ImageLocation.Equals(input.ImageLocation)) + ) && + ( + this.IsConfigInit == input.IsConfigInit || + (this.IsConfigInit != null && + this.IsConfigInit.Equals(input.IsConfigInit)) + ) && + ( + this.AccountCode == input.AccountCode || + (this.AccountCode != null && + this.AccountCode.Equals(input.AccountCode)) + ) && + ( + this.SupportAmd == input.SupportAmd || + (this.SupportAmd != null && + this.SupportAmd.Equals(input.SupportAmd)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.BackupId != null) + hashCode = hashCode * 59 + this.BackupId.GetHashCode(); + if (this.DataOrigin != null) + hashCode = hashCode * 59 + this.DataOrigin.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.ImageSize != null) + hashCode = hashCode * 59 + this.ImageSize.GetHashCode(); + if (this.ImageSourceType != null) + hashCode = hashCode * 59 + this.ImageSourceType.GetHashCode(); + if (this.Imagetype != null) + hashCode = hashCode * 59 + this.Imagetype.GetHashCode(); + if (this.Isregistered != null) + hashCode = hashCode * 59 + this.Isregistered.GetHashCode(); + if (this.Originalimagename != null) + hashCode = hashCode * 59 + this.Originalimagename.GetHashCode(); + if (this.OsBit != null) + hashCode = hashCode * 59 + this.OsBit.GetHashCode(); + if (this.OsType != null) + hashCode = hashCode * 59 + this.OsType.GetHashCode(); + if (this.OsVersion != null) + hashCode = hashCode * 59 + this.OsVersion.GetHashCode(); + if (this.Platform != null) + hashCode = hashCode * 59 + this.Platform.GetHashCode(); + if (this.Productcode != null) + hashCode = hashCode * 59 + this.Productcode.GetHashCode(); + if (this.SupportDiskintensive != null) + hashCode = hashCode * 59 + this.SupportDiskintensive.GetHashCode(); + if (this.SupportHighperformance != null) + hashCode = hashCode * 59 + this.SupportHighperformance.GetHashCode(); + if (this.SupportKvm != null) + hashCode = hashCode * 59 + this.SupportKvm.GetHashCode(); + if (this.SupportKvmGpuType != null) + hashCode = hashCode * 59 + this.SupportKvmGpuType.GetHashCode(); + if (this.SupportKvmInfiniband != null) + hashCode = hashCode * 59 + this.SupportKvmInfiniband.GetHashCode(); + if (this.SupportLargememory != null) + hashCode = hashCode * 59 + this.SupportLargememory.GetHashCode(); + if (this.SupportXen != null) + hashCode = hashCode * 59 + this.SupportXen.GetHashCode(); + if (this.SupportXenGpuType != null) + hashCode = hashCode * 59 + this.SupportXenGpuType.GetHashCode(); + if (this.SupportXenHana != null) + hashCode = hashCode * 59 + this.SupportXenHana.GetHashCode(); + if (this.Checksum != null) + hashCode = hashCode * 59 + this.Checksum.GetHashCode(); + if (this.ContainerFormat != null) + hashCode = hashCode * 59 + this.ContainerFormat.GetHashCode(); + if (this.CreatedAt != null) + hashCode = hashCode * 59 + this.CreatedAt.GetHashCode(); + if (this.DiskFormat != null) + hashCode = hashCode * 59 + this.DiskFormat.GetHashCode(); + if (this.File != null) + hashCode = hashCode * 59 + this.File.GetHashCode(); + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.MinDisk != null) + hashCode = hashCode * 59 + this.MinDisk.GetHashCode(); + if (this.MinRam != null) + hashCode = hashCode * 59 + this.MinRam.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Owner != null) + hashCode = hashCode * 59 + this.Owner.GetHashCode(); + if (this.Protected != null) + hashCode = hashCode * 59 + this.Protected.GetHashCode(); + if (this.Schema != null) + hashCode = hashCode * 59 + this.Schema.GetHashCode(); + if (this.Self != null) + hashCode = hashCode * 59 + this.Self.GetHashCode(); + if (this.Size != null) + hashCode = hashCode * 59 + this.Size.GetHashCode(); + if (this.Status != null) + hashCode = hashCode * 59 + this.Status.GetHashCode(); + if (this.Tags != null) + hashCode = hashCode * 59 + this.Tags.GetHashCode(); + if (this.UpdatedAt != null) + hashCode = hashCode * 59 + this.UpdatedAt.GetHashCode(); + if (this.VirtualEnvType != null) + hashCode = hashCode * 59 + this.VirtualEnvType.GetHashCode(); + if (this.VirtualSize != null) + hashCode = hashCode * 59 + this.VirtualSize.GetHashCode(); + if (this.Visibility != null) + hashCode = hashCode * 59 + this.Visibility.GetHashCode(); + if (this.SupportFcInject != null) + hashCode = hashCode * 59 + this.SupportFcInject.GetHashCode(); + if (this.EnterpriseProjectId != null) + hashCode = hashCode * 59 + this.EnterpriseProjectId.GetHashCode(); + if (this.HwFirmwareType != null) + hashCode = hashCode * 59 + this.HwFirmwareType.GetHashCode(); + if (this.SupportArm != null) + hashCode = hashCode * 59 + this.SupportArm.GetHashCode(); + if (this.IsOffshelved != null) + hashCode = hashCode * 59 + this.IsOffshelved.GetHashCode(); + if (this.Lazyloading != null) + hashCode = hashCode * 59 + this.Lazyloading.GetHashCode(); + if (this.OsFeatureList != null) + hashCode = hashCode * 59 + this.OsFeatureList.GetHashCode(); + if (this.RootOrigin != null) + hashCode = hashCode * 59 + this.RootOrigin.GetHashCode(); + if (this.SequenceNum != null) + hashCode = hashCode * 59 + this.SequenceNum.GetHashCode(); + if (this.SupportAgentList != null) + hashCode = hashCode * 59 + this.SupportAgentList.GetHashCode(); + if (this.SystemCmkid != null) + hashCode = hashCode * 59 + this.SystemCmkid.GetHashCode(); + if (this.ActiveAt != null) + hashCode = hashCode * 59 + this.ActiveAt.GetHashCode(); + if (this.HwVifMultiqueueEnabled != null) + hashCode = hashCode * 59 + this.HwVifMultiqueueEnabled.GetHashCode(); + if (this.MaxRam != null) + hashCode = hashCode * 59 + this.MaxRam.GetHashCode(); + if (this.ImageLocation != null) + hashCode = hashCode * 59 + this.ImageLocation.GetHashCode(); + if (this.IsConfigInit != null) + hashCode = hashCode * 59 + this.IsConfigInit.GetHashCode(); + if (this.AccountCode != null) + hashCode = hashCode * 59 + this.AccountCode.GetHashCode(); + if (this.SupportAmd != null) + hashCode = hashCode * 59 + this.SupportAmd.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/ImageInfo.cs b/Services/Ims/V2/Model/ImageInfo.cs new file mode 100755 index 0000000..fe5f2e6 --- /dev/null +++ b/Services/Ims/V2/Model/ImageInfo.cs @@ -0,0 +1,2128 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// 镜像信息响应体 + /// + public class ImageInfo + { + [JsonConverter(typeof(EnumClassConverter))] + public class ImageSourceTypeEnum + { + /// + /// Enum UDS for value: uds + /// + public static readonly ImageSourceTypeEnum UDS = new ImageSourceTypeEnum("uds"); + + /// + /// Enum SWIFT for value: swift + /// + public static readonly ImageSourceTypeEnum SWIFT = new ImageSourceTypeEnum("swift"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "uds", UDS }, + { "swift", SWIFT }, + }; + + private string _value; + + public ImageSourceTypeEnum() + { + + } + + public ImageSourceTypeEnum(string value) + { + _value = value; + } + + public static ImageSourceTypeEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as ImageSourceTypeEnum)) + { + return true; + } + + return false; + } + + public bool Equals(ImageSourceTypeEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(ImageSourceTypeEnum a, ImageSourceTypeEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(ImageSourceTypeEnum a, ImageSourceTypeEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class ImagetypeEnum + { + /// + /// Enum GOLD for value: gold + /// + public static readonly ImagetypeEnum GOLD = new ImagetypeEnum("gold"); + + /// + /// Enum PRIVATE for value: private + /// + public static readonly ImagetypeEnum PRIVATE = new ImagetypeEnum("private"); + + /// + /// Enum SHARED for value: shared + /// + public static readonly ImagetypeEnum SHARED = new ImagetypeEnum("shared"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "gold", GOLD }, + { "private", PRIVATE }, + { "shared", SHARED }, + }; + + private string _value; + + public ImagetypeEnum() + { + + } + + public ImagetypeEnum(string value) + { + _value = value; + } + + public static ImagetypeEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as ImagetypeEnum)) + { + return true; + } + + return false; + } + + public bool Equals(ImagetypeEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(ImagetypeEnum a, ImagetypeEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(ImagetypeEnum a, ImagetypeEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class IsregisteredEnum + { + /// + /// Enum TRUE for value: true + /// + public static readonly IsregisteredEnum TRUE = new IsregisteredEnum("true"); + + /// + /// Enum FALSE for value: false + /// + public static readonly IsregisteredEnum FALSE = new IsregisteredEnum("false"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "true", TRUE }, + { "false", FALSE }, + }; + + private string _value; + + public IsregisteredEnum() + { + + } + + public IsregisteredEnum(string value) + { + _value = value; + } + + public static IsregisteredEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as IsregisteredEnum)) + { + return true; + } + + return false; + } + + public bool Equals(IsregisteredEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(IsregisteredEnum a, IsregisteredEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(IsregisteredEnum a, IsregisteredEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class OsBitEnum + { + /// + /// Enum _32 for value: 32 + /// + public static readonly OsBitEnum _32 = new OsBitEnum("32"); + + /// + /// Enum _64 for value: 64 + /// + public static readonly OsBitEnum _64 = new OsBitEnum("64"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "32", _32 }, + { "64", _64 }, + }; + + private string _value; + + public OsBitEnum() + { + + } + + public OsBitEnum(string value) + { + _value = value; + } + + public static OsBitEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as OsBitEnum)) + { + return true; + } + + return false; + } + + public bool Equals(OsBitEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(OsBitEnum a, OsBitEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(OsBitEnum a, OsBitEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class OsTypeEnum + { + /// + /// Enum LINUX for value: Linux + /// + public static readonly OsTypeEnum LINUX = new OsTypeEnum("Linux"); + + /// + /// Enum WINDOWS for value: Windows + /// + public static readonly OsTypeEnum WINDOWS = new OsTypeEnum("Windows"); + + /// + /// Enum OTHER for value: Other + /// + public static readonly OsTypeEnum OTHER = new OsTypeEnum("Other"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "Linux", LINUX }, + { "Windows", WINDOWS }, + { "Other", OTHER }, + }; + + private string _value; + + public OsTypeEnum() + { + + } + + public OsTypeEnum(string value) + { + _value = value; + } + + public static OsTypeEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as OsTypeEnum)) + { + return true; + } + + return false; + } + + public bool Equals(OsTypeEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(OsTypeEnum a, OsTypeEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(OsTypeEnum a, OsTypeEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class PlatformEnum + { + /// + /// Enum WINDOWS for value: Windows + /// + public static readonly PlatformEnum WINDOWS = new PlatformEnum("Windows"); + + /// + /// Enum UBUNTU for value: Ubuntu + /// + public static readonly PlatformEnum UBUNTU = new PlatformEnum("Ubuntu"); + + /// + /// Enum REDHAT for value: RedHat + /// + public static readonly PlatformEnum REDHAT = new PlatformEnum("RedHat"); + + /// + /// Enum SUSE for value: SUSE + /// + public static readonly PlatformEnum SUSE = new PlatformEnum("SUSE"); + + /// + /// Enum CENTOS for value: CentOS + /// + public static readonly PlatformEnum CENTOS = new PlatformEnum("CentOS"); + + /// + /// Enum DEBIAN for value: Debian + /// + public static readonly PlatformEnum DEBIAN = new PlatformEnum("Debian"); + + /// + /// Enum OPENSUSE for value: OpenSUSE + /// + public static readonly PlatformEnum OPENSUSE = new PlatformEnum("OpenSUSE"); + + /// + /// Enum ORACLE_LINUX for value: Oracle Linux + /// + public static readonly PlatformEnum ORACLE_LINUX = new PlatformEnum("Oracle Linux"); + + /// + /// Enum FEDORA for value: Fedora + /// + public static readonly PlatformEnum FEDORA = new PlatformEnum("Fedora"); + + /// + /// Enum OTHER for value: Other + /// + public static readonly PlatformEnum OTHER = new PlatformEnum("Other"); + + /// + /// Enum COREOS for value: CoreOS + /// + public static readonly PlatformEnum COREOS = new PlatformEnum("CoreOS"); + + /// + /// Enum EULEROS for value: EulerOS + /// + public static readonly PlatformEnum EULEROS = new PlatformEnum("EulerOS"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "Windows", WINDOWS }, + { "Ubuntu", UBUNTU }, + { "RedHat", REDHAT }, + { "SUSE", SUSE }, + { "CentOS", CENTOS }, + { "Debian", DEBIAN }, + { "OpenSUSE", OPENSUSE }, + { "Oracle Linux", ORACLE_LINUX }, + { "Fedora", FEDORA }, + { "Other", OTHER }, + { "CoreOS", COREOS }, + { "EulerOS", EULEROS }, + }; + + private string _value; + + public PlatformEnum() + { + + } + + public PlatformEnum(string value) + { + _value = value; + } + + public static PlatformEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as PlatformEnum)) + { + return true; + } + + return false; + } + + public bool Equals(PlatformEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(PlatformEnum a, PlatformEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(PlatformEnum a, PlatformEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class StatusEnum + { + /// + /// Enum QUEUED for value: queued + /// + public static readonly StatusEnum QUEUED = new StatusEnum("queued"); + + /// + /// Enum SAVING for value: saving + /// + public static readonly StatusEnum SAVING = new StatusEnum("saving"); + + /// + /// Enum DELETED for value: deleted + /// + public static readonly StatusEnum DELETED = new StatusEnum("deleted"); + + /// + /// Enum KILLED for value: killed + /// + public static readonly StatusEnum KILLED = new StatusEnum("killed"); + + /// + /// Enum ACTIVE for value: active + /// + public static readonly StatusEnum ACTIVE = new StatusEnum("active"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "queued", QUEUED }, + { "saving", SAVING }, + { "deleted", DELETED }, + { "killed", KILLED }, + { "active", ACTIVE }, + }; + + private string _value; + + public StatusEnum() + { + + } + + public StatusEnum(string value) + { + _value = value; + } + + public static StatusEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as StatusEnum)) + { + return true; + } + + return false; + } + + public bool Equals(StatusEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(StatusEnum a, StatusEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(StatusEnum a, StatusEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class VirtualEnvTypeEnum + { + /// + /// Enum FUSIONCOMPUTE for value: FusionCompute + /// + public static readonly VirtualEnvTypeEnum FUSIONCOMPUTE = new VirtualEnvTypeEnum("FusionCompute"); + + /// + /// Enum IRONIC for value: Ironic + /// + public static readonly VirtualEnvTypeEnum IRONIC = new VirtualEnvTypeEnum("Ironic"); + + /// + /// Enum DATAIMAGE for value: DataImage + /// + public static readonly VirtualEnvTypeEnum DATAIMAGE = new VirtualEnvTypeEnum("DataImage"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "FusionCompute", FUSIONCOMPUTE }, + { "Ironic", IRONIC }, + { "DataImage", DATAIMAGE }, + }; + + private string _value; + + public VirtualEnvTypeEnum() + { + + } + + public VirtualEnvTypeEnum(string value) + { + _value = value; + } + + public static VirtualEnvTypeEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as VirtualEnvTypeEnum)) + { + return true; + } + + return false; + } + + public bool Equals(VirtualEnvTypeEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(VirtualEnvTypeEnum a, VirtualEnvTypeEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(VirtualEnvTypeEnum a, VirtualEnvTypeEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class VisibilityEnum + { + /// + /// Enum PRIVATE for value: private + /// + public static readonly VisibilityEnum PRIVATE = new VisibilityEnum("private"); + + /// + /// Enum PUBLIC for value: public + /// + public static readonly VisibilityEnum PUBLIC = new VisibilityEnum("public"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "private", PRIVATE }, + { "public", PUBLIC }, + }; + + private string _value; + + public VisibilityEnum() + { + + } + + public VisibilityEnum(string value) + { + _value = value; + } + + public static VisibilityEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as VisibilityEnum)) + { + return true; + } + + return false; + } + + public bool Equals(VisibilityEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(VisibilityEnum a, VisibilityEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(VisibilityEnum a, VisibilityEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class SupportFcInjectEnum + { + /// + /// Enum TRUE for value: true + /// + public static readonly SupportFcInjectEnum TRUE = new SupportFcInjectEnum("true"); + + /// + /// Enum FALSE for value: false + /// + public static readonly SupportFcInjectEnum FALSE = new SupportFcInjectEnum("false"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "true", TRUE }, + { "false", FALSE }, + }; + + private string _value; + + public SupportFcInjectEnum() + { + + } + + public SupportFcInjectEnum(string value) + { + _value = value; + } + + public static SupportFcInjectEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as SupportFcInjectEnum)) + { + return true; + } + + return false; + } + + public bool Equals(SupportFcInjectEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(SupportFcInjectEnum a, SupportFcInjectEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(SupportFcInjectEnum a, SupportFcInjectEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class HwFirmwareTypeEnum + { + /// + /// Enum BIOS for value: bios + /// + public static readonly HwFirmwareTypeEnum BIOS = new HwFirmwareTypeEnum("bios"); + + /// + /// Enum UEFI for value: uefi + /// + public static readonly HwFirmwareTypeEnum UEFI = new HwFirmwareTypeEnum("uefi"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "bios", BIOS }, + { "uefi", UEFI }, + }; + + private string _value; + + public HwFirmwareTypeEnum() + { + + } + + public HwFirmwareTypeEnum(string value) + { + _value = value; + } + + public static HwFirmwareTypeEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as HwFirmwareTypeEnum)) + { + return true; + } + + return false; + } + + public bool Equals(HwFirmwareTypeEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(HwFirmwareTypeEnum a, HwFirmwareTypeEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(HwFirmwareTypeEnum a, HwFirmwareTypeEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class SupportArmEnum + { + /// + /// Enum TRUE for value: true + /// + public static readonly SupportArmEnum TRUE = new SupportArmEnum("true"); + + /// + /// Enum FALSE for value: false + /// + public static readonly SupportArmEnum FALSE = new SupportArmEnum("false"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "true", TRUE }, + { "false", FALSE }, + }; + + private string _value; + + public SupportArmEnum() + { + + } + + public SupportArmEnum(string value) + { + _value = value; + } + + public static SupportArmEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as SupportArmEnum)) + { + return true; + } + + return false; + } + + public bool Equals(SupportArmEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(SupportArmEnum a, SupportArmEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(SupportArmEnum a, SupportArmEnum b) + { + return !(a == b); + } + } + + + [JsonProperty("__backup_id", NullValueHandling = NullValueHandling.Ignore)] + public string BackupId { get; set; } + + [JsonProperty("__data_origin", NullValueHandling = NullValueHandling.Ignore)] + public string DataOrigin { get; set; } + + [JsonProperty("__description", NullValueHandling = NullValueHandling.Ignore)] + public string Description { get; set; } + + [JsonProperty("__image_size", NullValueHandling = NullValueHandling.Ignore)] + public string ImageSize { get; set; } + + [JsonProperty("__image_source_type", NullValueHandling = NullValueHandling.Ignore)] + public ImageSourceTypeEnum ImageSourceType { get; set; } + [JsonProperty("__imagetype", NullValueHandling = NullValueHandling.Ignore)] + public ImagetypeEnum Imagetype { get; set; } + [JsonProperty("__isregistered", NullValueHandling = NullValueHandling.Ignore)] + public IsregisteredEnum Isregistered { get; set; } + [JsonProperty("__originalimagename", NullValueHandling = NullValueHandling.Ignore)] + public string Originalimagename { get; set; } + + [JsonProperty("__os_bit", NullValueHandling = NullValueHandling.Ignore)] + public OsBitEnum OsBit { get; set; } + [JsonProperty("__os_type", NullValueHandling = NullValueHandling.Ignore)] + public OsTypeEnum OsType { get; set; } + [JsonProperty("__os_version", NullValueHandling = NullValueHandling.Ignore)] + public string OsVersion { get; set; } + + [JsonProperty("__platform", NullValueHandling = NullValueHandling.Ignore)] + public PlatformEnum Platform { get; set; } + [JsonProperty("__productcode", NullValueHandling = NullValueHandling.Ignore)] + public string Productcode { get; set; } + + [JsonProperty("__support_diskintensive", NullValueHandling = NullValueHandling.Ignore)] + public string SupportDiskintensive { get; set; } + + [JsonProperty("__support_highperformance", NullValueHandling = NullValueHandling.Ignore)] + public string SupportHighperformance { get; set; } + + [JsonProperty("__support_kvm", NullValueHandling = NullValueHandling.Ignore)] + public string SupportKvm { get; set; } + + [JsonProperty("__support_kvm_gpu_type", NullValueHandling = NullValueHandling.Ignore)] + public string SupportKvmGpuType { get; set; } + + [JsonProperty("__support_kvm_infiniband", NullValueHandling = NullValueHandling.Ignore)] + public string SupportKvmInfiniband { get; set; } + + [JsonProperty("__support_largememory", NullValueHandling = NullValueHandling.Ignore)] + public string SupportLargememory { get; set; } + + [JsonProperty("__support_xen", NullValueHandling = NullValueHandling.Ignore)] + public string SupportXen { get; set; } + + [JsonProperty("__support_xen_gpu_type", NullValueHandling = NullValueHandling.Ignore)] + public string SupportXenGpuType { get; set; } + + [JsonProperty("__support_xen_hana", NullValueHandling = NullValueHandling.Ignore)] + public string SupportXenHana { get; set; } + + [JsonProperty("__system_support_market", NullValueHandling = NullValueHandling.Ignore)] + public bool? SystemSupportMarket { get; set; } + + [JsonProperty("checksum", NullValueHandling = NullValueHandling.Ignore)] + public string Checksum { get; set; } + + [JsonProperty("container_format", NullValueHandling = NullValueHandling.Ignore)] + public string ContainerFormat { get; set; } + + [JsonProperty("created_at", NullValueHandling = NullValueHandling.Ignore)] + public string CreatedAt { get; set; } + + [JsonProperty("disk_format", NullValueHandling = NullValueHandling.Ignore)] + public string DiskFormat { get; set; } + + [JsonProperty("enterprise_project_id", NullValueHandling = NullValueHandling.Ignore)] + public string EnterpriseProjectId { get; set; } + + [JsonProperty("file", NullValueHandling = NullValueHandling.Ignore)] + public string File { get; set; } + + [JsonProperty("id", NullValueHandling = NullValueHandling.Ignore)] + public string Id { get; set; } + + [JsonProperty("min_disk", NullValueHandling = NullValueHandling.Ignore)] + public int? MinDisk { get; set; } + + [JsonProperty("min_ram", NullValueHandling = NullValueHandling.Ignore)] + public int? MinRam { get; set; } + + [JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)] + public string Name { get; set; } + + [JsonProperty("owner", NullValueHandling = NullValueHandling.Ignore)] + public string Owner { get; set; } + + [JsonProperty("protected", NullValueHandling = NullValueHandling.Ignore)] + public bool? Protected { get; set; } + + [JsonProperty("schema", NullValueHandling = NullValueHandling.Ignore)] + public string Schema { get; set; } + + [JsonProperty("self", NullValueHandling = NullValueHandling.Ignore)] + public string Self { get; set; } + + [JsonProperty("size", NullValueHandling = NullValueHandling.Ignore)] + public int? Size { get; set; } + + [JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)] + public StatusEnum Status { get; set; } + [JsonProperty("tags", NullValueHandling = NullValueHandling.Ignore)] + public List Tags { get; set; } + + [JsonProperty("updated_at", NullValueHandling = NullValueHandling.Ignore)] + public string UpdatedAt { get; set; } + + [JsonProperty("virtual_env_type", NullValueHandling = NullValueHandling.Ignore)] + public VirtualEnvTypeEnum VirtualEnvType { get; set; } + [JsonProperty("virtual_size", NullValueHandling = NullValueHandling.Ignore)] + public int? VirtualSize { get; set; } + + [JsonProperty("visibility", NullValueHandling = NullValueHandling.Ignore)] + public VisibilityEnum Visibility { get; set; } + [JsonProperty("__support_fc_inject", NullValueHandling = NullValueHandling.Ignore)] + public SupportFcInjectEnum SupportFcInject { get; set; } + [JsonProperty("hw_firmware_type", NullValueHandling = NullValueHandling.Ignore)] + public HwFirmwareTypeEnum HwFirmwareType { get; set; } + [JsonProperty("__support_arm", NullValueHandling = NullValueHandling.Ignore)] + public SupportArmEnum SupportArm { get; set; } + [JsonProperty("max_ram", NullValueHandling = NullValueHandling.Ignore)] + public string MaxRam { get; set; } + + [JsonProperty("__system__cmkid", NullValueHandling = NullValueHandling.Ignore)] + public string SystemCmkid { get; set; } + + [JsonProperty("__os_feature_list", NullValueHandling = NullValueHandling.Ignore)] + public string OsFeatureList { get; set; } + + [JsonProperty("__account_code", NullValueHandling = NullValueHandling.Ignore)] + public string AccountCode { get; set; } + + [JsonProperty("hw_vif_multiqueue_enabled", NullValueHandling = NullValueHandling.Ignore)] + public string HwVifMultiqueueEnabled { get; set; } + + [JsonProperty("__is_offshelved", NullValueHandling = NullValueHandling.Ignore)] + public string IsOffshelved { get; set; } + + [JsonProperty("__lazyloading", NullValueHandling = NullValueHandling.Ignore)] + public string Lazyloading { get; set; } + + [JsonProperty("__root_origin", NullValueHandling = NullValueHandling.Ignore)] + public string RootOrigin { get; set; } + + [JsonProperty("__sequence_num", NullValueHandling = NullValueHandling.Ignore)] + public string SequenceNum { get; set; } + + [JsonProperty("active_at", NullValueHandling = NullValueHandling.Ignore)] + public string ActiveAt { get; set; } + + [JsonProperty("__support_agent_list", NullValueHandling = NullValueHandling.Ignore)] + public string SupportAgentList { get; set; } + + [JsonProperty("__support_amd", NullValueHandling = NullValueHandling.Ignore)] + public string SupportAmd { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ImageInfo {\n"); + sb.Append(" backupId: ").Append(BackupId).Append("\n"); + sb.Append(" dataOrigin: ").Append(DataOrigin).Append("\n"); + sb.Append(" description: ").Append(Description).Append("\n"); + sb.Append(" imageSize: ").Append(ImageSize).Append("\n"); + sb.Append(" imageSourceType: ").Append(ImageSourceType).Append("\n"); + sb.Append(" imagetype: ").Append(Imagetype).Append("\n"); + sb.Append(" isregistered: ").Append(Isregistered).Append("\n"); + sb.Append(" originalimagename: ").Append(Originalimagename).Append("\n"); + sb.Append(" osBit: ").Append(OsBit).Append("\n"); + sb.Append(" osType: ").Append(OsType).Append("\n"); + sb.Append(" osVersion: ").Append(OsVersion).Append("\n"); + sb.Append(" platform: ").Append(Platform).Append("\n"); + sb.Append(" productcode: ").Append(Productcode).Append("\n"); + sb.Append(" supportDiskintensive: ").Append(SupportDiskintensive).Append("\n"); + sb.Append(" supportHighperformance: ").Append(SupportHighperformance).Append("\n"); + sb.Append(" supportKvm: ").Append(SupportKvm).Append("\n"); + sb.Append(" supportKvmGpuType: ").Append(SupportKvmGpuType).Append("\n"); + sb.Append(" supportKvmInfiniband: ").Append(SupportKvmInfiniband).Append("\n"); + sb.Append(" supportLargememory: ").Append(SupportLargememory).Append("\n"); + sb.Append(" supportXen: ").Append(SupportXen).Append("\n"); + sb.Append(" supportXenGpuType: ").Append(SupportXenGpuType).Append("\n"); + sb.Append(" supportXenHana: ").Append(SupportXenHana).Append("\n"); + sb.Append(" systemSupportMarket: ").Append(SystemSupportMarket).Append("\n"); + sb.Append(" checksum: ").Append(Checksum).Append("\n"); + sb.Append(" containerFormat: ").Append(ContainerFormat).Append("\n"); + sb.Append(" createdAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" diskFormat: ").Append(DiskFormat).Append("\n"); + sb.Append(" enterpriseProjectId: ").Append(EnterpriseProjectId).Append("\n"); + sb.Append(" file: ").Append(File).Append("\n"); + sb.Append(" id: ").Append(Id).Append("\n"); + sb.Append(" minDisk: ").Append(MinDisk).Append("\n"); + sb.Append(" minRam: ").Append(MinRam).Append("\n"); + sb.Append(" name: ").Append(Name).Append("\n"); + sb.Append(" owner: ").Append(Owner).Append("\n"); + sb.Append(" Protected: ").Append(Protected).Append("\n"); + sb.Append(" schema: ").Append(Schema).Append("\n"); + sb.Append(" self: ").Append(Self).Append("\n"); + sb.Append(" size: ").Append(Size).Append("\n"); + sb.Append(" status: ").Append(Status).Append("\n"); + sb.Append(" tags: ").Append(Tags).Append("\n"); + sb.Append(" updatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append(" virtualEnvType: ").Append(VirtualEnvType).Append("\n"); + sb.Append(" virtualSize: ").Append(VirtualSize).Append("\n"); + sb.Append(" visibility: ").Append(Visibility).Append("\n"); + sb.Append(" supportFcInject: ").Append(SupportFcInject).Append("\n"); + sb.Append(" hwFirmwareType: ").Append(HwFirmwareType).Append("\n"); + sb.Append(" supportArm: ").Append(SupportArm).Append("\n"); + sb.Append(" maxRam: ").Append(MaxRam).Append("\n"); + sb.Append(" systemCmkid: ").Append(SystemCmkid).Append("\n"); + sb.Append(" osFeatureList: ").Append(OsFeatureList).Append("\n"); + sb.Append(" accountCode: ").Append(AccountCode).Append("\n"); + sb.Append(" hwVifMultiqueueEnabled: ").Append(HwVifMultiqueueEnabled).Append("\n"); + sb.Append(" isOffshelved: ").Append(IsOffshelved).Append("\n"); + sb.Append(" lazyloading: ").Append(Lazyloading).Append("\n"); + sb.Append(" rootOrigin: ").Append(RootOrigin).Append("\n"); + sb.Append(" sequenceNum: ").Append(SequenceNum).Append("\n"); + sb.Append(" activeAt: ").Append(ActiveAt).Append("\n"); + sb.Append(" supportAgentList: ").Append(SupportAgentList).Append("\n"); + sb.Append(" supportAmd: ").Append(SupportAmd).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ImageInfo); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ImageInfo input) + { + if (input == null) + return false; + + return + ( + this.BackupId == input.BackupId || + (this.BackupId != null && + this.BackupId.Equals(input.BackupId)) + ) && + ( + this.DataOrigin == input.DataOrigin || + (this.DataOrigin != null && + this.DataOrigin.Equals(input.DataOrigin)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.ImageSize == input.ImageSize || + (this.ImageSize != null && + this.ImageSize.Equals(input.ImageSize)) + ) && + ( + this.ImageSourceType == input.ImageSourceType || + (this.ImageSourceType != null && + this.ImageSourceType.Equals(input.ImageSourceType)) + ) && + ( + this.Imagetype == input.Imagetype || + (this.Imagetype != null && + this.Imagetype.Equals(input.Imagetype)) + ) && + ( + this.Isregistered == input.Isregistered || + (this.Isregistered != null && + this.Isregistered.Equals(input.Isregistered)) + ) && + ( + this.Originalimagename == input.Originalimagename || + (this.Originalimagename != null && + this.Originalimagename.Equals(input.Originalimagename)) + ) && + ( + this.OsBit == input.OsBit || + (this.OsBit != null && + this.OsBit.Equals(input.OsBit)) + ) && + ( + this.OsType == input.OsType || + (this.OsType != null && + this.OsType.Equals(input.OsType)) + ) && + ( + this.OsVersion == input.OsVersion || + (this.OsVersion != null && + this.OsVersion.Equals(input.OsVersion)) + ) && + ( + this.Platform == input.Platform || + (this.Platform != null && + this.Platform.Equals(input.Platform)) + ) && + ( + this.Productcode == input.Productcode || + (this.Productcode != null && + this.Productcode.Equals(input.Productcode)) + ) && + ( + this.SupportDiskintensive == input.SupportDiskintensive || + (this.SupportDiskintensive != null && + this.SupportDiskintensive.Equals(input.SupportDiskintensive)) + ) && + ( + this.SupportHighperformance == input.SupportHighperformance || + (this.SupportHighperformance != null && + this.SupportHighperformance.Equals(input.SupportHighperformance)) + ) && + ( + this.SupportKvm == input.SupportKvm || + (this.SupportKvm != null && + this.SupportKvm.Equals(input.SupportKvm)) + ) && + ( + this.SupportKvmGpuType == input.SupportKvmGpuType || + (this.SupportKvmGpuType != null && + this.SupportKvmGpuType.Equals(input.SupportKvmGpuType)) + ) && + ( + this.SupportKvmInfiniband == input.SupportKvmInfiniband || + (this.SupportKvmInfiniband != null && + this.SupportKvmInfiniband.Equals(input.SupportKvmInfiniband)) + ) && + ( + this.SupportLargememory == input.SupportLargememory || + (this.SupportLargememory != null && + this.SupportLargememory.Equals(input.SupportLargememory)) + ) && + ( + this.SupportXen == input.SupportXen || + (this.SupportXen != null && + this.SupportXen.Equals(input.SupportXen)) + ) && + ( + this.SupportXenGpuType == input.SupportXenGpuType || + (this.SupportXenGpuType != null && + this.SupportXenGpuType.Equals(input.SupportXenGpuType)) + ) && + ( + this.SupportXenHana == input.SupportXenHana || + (this.SupportXenHana != null && + this.SupportXenHana.Equals(input.SupportXenHana)) + ) && + ( + this.SystemSupportMarket == input.SystemSupportMarket || + (this.SystemSupportMarket != null && + this.SystemSupportMarket.Equals(input.SystemSupportMarket)) + ) && + ( + this.Checksum == input.Checksum || + (this.Checksum != null && + this.Checksum.Equals(input.Checksum)) + ) && + ( + this.ContainerFormat == input.ContainerFormat || + (this.ContainerFormat != null && + this.ContainerFormat.Equals(input.ContainerFormat)) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.DiskFormat == input.DiskFormat || + (this.DiskFormat != null && + this.DiskFormat.Equals(input.DiskFormat)) + ) && + ( + this.EnterpriseProjectId == input.EnterpriseProjectId || + (this.EnterpriseProjectId != null && + this.EnterpriseProjectId.Equals(input.EnterpriseProjectId)) + ) && + ( + this.File == input.File || + (this.File != null && + this.File.Equals(input.File)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.MinDisk == input.MinDisk || + (this.MinDisk != null && + this.MinDisk.Equals(input.MinDisk)) + ) && + ( + this.MinRam == input.MinRam || + (this.MinRam != null && + this.MinRam.Equals(input.MinRam)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Owner == input.Owner || + (this.Owner != null && + this.Owner.Equals(input.Owner)) + ) && + ( + this.Protected == input.Protected || + (this.Protected != null && + this.Protected.Equals(input.Protected)) + ) && + ( + this.Schema == input.Schema || + (this.Schema != null && + this.Schema.Equals(input.Schema)) + ) && + ( + this.Self == input.Self || + (this.Self != null && + this.Self.Equals(input.Self)) + ) && + ( + this.Size == input.Size || + (this.Size != null && + this.Size.Equals(input.Size)) + ) && + ( + this.Status == input.Status || + (this.Status != null && + this.Status.Equals(input.Status)) + ) && + ( + this.Tags == input.Tags || + this.Tags != null && + input.Tags != null && + this.Tags.SequenceEqual(input.Tags) + ) && + ( + this.UpdatedAt == input.UpdatedAt || + (this.UpdatedAt != null && + this.UpdatedAt.Equals(input.UpdatedAt)) + ) && + ( + this.VirtualEnvType == input.VirtualEnvType || + (this.VirtualEnvType != null && + this.VirtualEnvType.Equals(input.VirtualEnvType)) + ) && + ( + this.VirtualSize == input.VirtualSize || + (this.VirtualSize != null && + this.VirtualSize.Equals(input.VirtualSize)) + ) && + ( + this.Visibility == input.Visibility || + (this.Visibility != null && + this.Visibility.Equals(input.Visibility)) + ) && + ( + this.SupportFcInject == input.SupportFcInject || + (this.SupportFcInject != null && + this.SupportFcInject.Equals(input.SupportFcInject)) + ) && + ( + this.HwFirmwareType == input.HwFirmwareType || + (this.HwFirmwareType != null && + this.HwFirmwareType.Equals(input.HwFirmwareType)) + ) && + ( + this.SupportArm == input.SupportArm || + (this.SupportArm != null && + this.SupportArm.Equals(input.SupportArm)) + ) && + ( + this.MaxRam == input.MaxRam || + (this.MaxRam != null && + this.MaxRam.Equals(input.MaxRam)) + ) && + ( + this.SystemCmkid == input.SystemCmkid || + (this.SystemCmkid != null && + this.SystemCmkid.Equals(input.SystemCmkid)) + ) && + ( + this.OsFeatureList == input.OsFeatureList || + (this.OsFeatureList != null && + this.OsFeatureList.Equals(input.OsFeatureList)) + ) && + ( + this.AccountCode == input.AccountCode || + (this.AccountCode != null && + this.AccountCode.Equals(input.AccountCode)) + ) && + ( + this.HwVifMultiqueueEnabled == input.HwVifMultiqueueEnabled || + (this.HwVifMultiqueueEnabled != null && + this.HwVifMultiqueueEnabled.Equals(input.HwVifMultiqueueEnabled)) + ) && + ( + this.IsOffshelved == input.IsOffshelved || + (this.IsOffshelved != null && + this.IsOffshelved.Equals(input.IsOffshelved)) + ) && + ( + this.Lazyloading == input.Lazyloading || + (this.Lazyloading != null && + this.Lazyloading.Equals(input.Lazyloading)) + ) && + ( + this.RootOrigin == input.RootOrigin || + (this.RootOrigin != null && + this.RootOrigin.Equals(input.RootOrigin)) + ) && + ( + this.SequenceNum == input.SequenceNum || + (this.SequenceNum != null && + this.SequenceNum.Equals(input.SequenceNum)) + ) && + ( + this.ActiveAt == input.ActiveAt || + (this.ActiveAt != null && + this.ActiveAt.Equals(input.ActiveAt)) + ) && + ( + this.SupportAgentList == input.SupportAgentList || + (this.SupportAgentList != null && + this.SupportAgentList.Equals(input.SupportAgentList)) + ) && + ( + this.SupportAmd == input.SupportAmd || + (this.SupportAmd != null && + this.SupportAmd.Equals(input.SupportAmd)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.BackupId != null) + hashCode = hashCode * 59 + this.BackupId.GetHashCode(); + if (this.DataOrigin != null) + hashCode = hashCode * 59 + this.DataOrigin.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.ImageSize != null) + hashCode = hashCode * 59 + this.ImageSize.GetHashCode(); + if (this.ImageSourceType != null) + hashCode = hashCode * 59 + this.ImageSourceType.GetHashCode(); + if (this.Imagetype != null) + hashCode = hashCode * 59 + this.Imagetype.GetHashCode(); + if (this.Isregistered != null) + hashCode = hashCode * 59 + this.Isregistered.GetHashCode(); + if (this.Originalimagename != null) + hashCode = hashCode * 59 + this.Originalimagename.GetHashCode(); + if (this.OsBit != null) + hashCode = hashCode * 59 + this.OsBit.GetHashCode(); + if (this.OsType != null) + hashCode = hashCode * 59 + this.OsType.GetHashCode(); + if (this.OsVersion != null) + hashCode = hashCode * 59 + this.OsVersion.GetHashCode(); + if (this.Platform != null) + hashCode = hashCode * 59 + this.Platform.GetHashCode(); + if (this.Productcode != null) + hashCode = hashCode * 59 + this.Productcode.GetHashCode(); + if (this.SupportDiskintensive != null) + hashCode = hashCode * 59 + this.SupportDiskintensive.GetHashCode(); + if (this.SupportHighperformance != null) + hashCode = hashCode * 59 + this.SupportHighperformance.GetHashCode(); + if (this.SupportKvm != null) + hashCode = hashCode * 59 + this.SupportKvm.GetHashCode(); + if (this.SupportKvmGpuType != null) + hashCode = hashCode * 59 + this.SupportKvmGpuType.GetHashCode(); + if (this.SupportKvmInfiniband != null) + hashCode = hashCode * 59 + this.SupportKvmInfiniband.GetHashCode(); + if (this.SupportLargememory != null) + hashCode = hashCode * 59 + this.SupportLargememory.GetHashCode(); + if (this.SupportXen != null) + hashCode = hashCode * 59 + this.SupportXen.GetHashCode(); + if (this.SupportXenGpuType != null) + hashCode = hashCode * 59 + this.SupportXenGpuType.GetHashCode(); + if (this.SupportXenHana != null) + hashCode = hashCode * 59 + this.SupportXenHana.GetHashCode(); + if (this.SystemSupportMarket != null) + hashCode = hashCode * 59 + this.SystemSupportMarket.GetHashCode(); + if (this.Checksum != null) + hashCode = hashCode * 59 + this.Checksum.GetHashCode(); + if (this.ContainerFormat != null) + hashCode = hashCode * 59 + this.ContainerFormat.GetHashCode(); + if (this.CreatedAt != null) + hashCode = hashCode * 59 + this.CreatedAt.GetHashCode(); + if (this.DiskFormat != null) + hashCode = hashCode * 59 + this.DiskFormat.GetHashCode(); + if (this.EnterpriseProjectId != null) + hashCode = hashCode * 59 + this.EnterpriseProjectId.GetHashCode(); + if (this.File != null) + hashCode = hashCode * 59 + this.File.GetHashCode(); + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.MinDisk != null) + hashCode = hashCode * 59 + this.MinDisk.GetHashCode(); + if (this.MinRam != null) + hashCode = hashCode * 59 + this.MinRam.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Owner != null) + hashCode = hashCode * 59 + this.Owner.GetHashCode(); + if (this.Protected != null) + hashCode = hashCode * 59 + this.Protected.GetHashCode(); + if (this.Schema != null) + hashCode = hashCode * 59 + this.Schema.GetHashCode(); + if (this.Self != null) + hashCode = hashCode * 59 + this.Self.GetHashCode(); + if (this.Size != null) + hashCode = hashCode * 59 + this.Size.GetHashCode(); + if (this.Status != null) + hashCode = hashCode * 59 + this.Status.GetHashCode(); + if (this.Tags != null) + hashCode = hashCode * 59 + this.Tags.GetHashCode(); + if (this.UpdatedAt != null) + hashCode = hashCode * 59 + this.UpdatedAt.GetHashCode(); + if (this.VirtualEnvType != null) + hashCode = hashCode * 59 + this.VirtualEnvType.GetHashCode(); + if (this.VirtualSize != null) + hashCode = hashCode * 59 + this.VirtualSize.GetHashCode(); + if (this.Visibility != null) + hashCode = hashCode * 59 + this.Visibility.GetHashCode(); + if (this.SupportFcInject != null) + hashCode = hashCode * 59 + this.SupportFcInject.GetHashCode(); + if (this.HwFirmwareType != null) + hashCode = hashCode * 59 + this.HwFirmwareType.GetHashCode(); + if (this.SupportArm != null) + hashCode = hashCode * 59 + this.SupportArm.GetHashCode(); + if (this.MaxRam != null) + hashCode = hashCode * 59 + this.MaxRam.GetHashCode(); + if (this.SystemCmkid != null) + hashCode = hashCode * 59 + this.SystemCmkid.GetHashCode(); + if (this.OsFeatureList != null) + hashCode = hashCode * 59 + this.OsFeatureList.GetHashCode(); + if (this.AccountCode != null) + hashCode = hashCode * 59 + this.AccountCode.GetHashCode(); + if (this.HwVifMultiqueueEnabled != null) + hashCode = hashCode * 59 + this.HwVifMultiqueueEnabled.GetHashCode(); + if (this.IsOffshelved != null) + hashCode = hashCode * 59 + this.IsOffshelved.GetHashCode(); + if (this.Lazyloading != null) + hashCode = hashCode * 59 + this.Lazyloading.GetHashCode(); + if (this.RootOrigin != null) + hashCode = hashCode * 59 + this.RootOrigin.GetHashCode(); + if (this.SequenceNum != null) + hashCode = hashCode * 59 + this.SequenceNum.GetHashCode(); + if (this.ActiveAt != null) + hashCode = hashCode * 59 + this.ActiveAt.GetHashCode(); + if (this.SupportAgentList != null) + hashCode = hashCode * 59 + this.SupportAgentList.GetHashCode(); + if (this.SupportAmd != null) + hashCode = hashCode * 59 + this.SupportAmd.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/ImageTag.cs b/Services/Ims/V2/Model/ImageTag.cs new file mode 100755 index 0000000..7b57ec3 --- /dev/null +++ b/Services/Ims/V2/Model/ImageTag.cs @@ -0,0 +1,84 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// 镜像标签 + /// + public class ImageTag + { + + [JsonProperty("key", NullValueHandling = NullValueHandling.Ignore)] + public string Key { get; set; } + + [JsonProperty("value", NullValueHandling = NullValueHandling.Ignore)] + public string Value { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ImageTag {\n"); + sb.Append(" key: ").Append(Key).Append("\n"); + sb.Append(" value: ").Append(Value).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ImageTag); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ImageTag input) + { + if (input == null) + return false; + + return + ( + this.Key == input.Key || + (this.Key != null && + this.Key.Equals(input.Key)) + ) && + ( + this.Value == input.Value || + (this.Value != null && + this.Value.Equals(input.Value)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Key != null) + hashCode = hashCode * 59 + this.Key.GetHashCode(); + if (this.Value != null) + hashCode = hashCode * 59 + this.Value.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/ImportImageQuickRequest.cs b/Services/Ims/V2/Model/ImportImageQuickRequest.cs new file mode 100755 index 0000000..2c8eeda --- /dev/null +++ b/Services/Ims/V2/Model/ImportImageQuickRequest.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Request Object + /// + public class ImportImageQuickRequest + { + + [SDKProperty("body", IsBody = true)] + [JsonProperty("body", NullValueHandling = NullValueHandling.Ignore)] + public QuickImportImageByFileRequestBody Body { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ImportImageQuickRequest {\n"); + sb.Append(" body: ").Append(Body).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ImportImageQuickRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ImportImageQuickRequest input) + { + if (input == null) + return false; + + return + ( + this.Body == input.Body || + (this.Body != null && + this.Body.Equals(input.Body)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Body != null) + hashCode = hashCode * 59 + this.Body.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/ImportImageQuickResponse.cs b/Services/Ims/V2/Model/ImportImageQuickResponse.cs new file mode 100755 index 0000000..11729b8 --- /dev/null +++ b/Services/Ims/V2/Model/ImportImageQuickResponse.cs @@ -0,0 +1,73 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Response Object + /// + public class ImportImageQuickResponse : SdkResponse + { + + [JsonProperty("job_id", NullValueHandling = NullValueHandling.Ignore)] + public string JobId { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ImportImageQuickResponse {\n"); + sb.Append(" jobId: ").Append(JobId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ImportImageQuickResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ImportImageQuickResponse input) + { + if (input == null) + return false; + + return + ( + this.JobId == input.JobId || + (this.JobId != null && + this.JobId.Equals(input.JobId)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.JobId != null) + hashCode = hashCode * 59 + this.JobId.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/JobEntities.cs b/Services/Ims/V2/Model/JobEntities.cs new file mode 100755 index 0000000..d95f758 --- /dev/null +++ b/Services/Ims/V2/Model/JobEntities.cs @@ -0,0 +1,118 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// + /// + public class JobEntities + { + + [JsonProperty("image_id", NullValueHandling = NullValueHandling.Ignore)] + public string ImageId { get; set; } + + [JsonProperty("current_task", NullValueHandling = NullValueHandling.Ignore)] + public string CurrentTask { get; set; } + + [JsonProperty("image_name", NullValueHandling = NullValueHandling.Ignore)] + public string ImageName { get; set; } + + [JsonProperty("process_percent", NullValueHandling = NullValueHandling.Ignore)] + public double? ProcessPercent { get; set; } + + [JsonProperty("results", NullValueHandling = NullValueHandling.Ignore)] + public List Results { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class JobEntities {\n"); + sb.Append(" imageId: ").Append(ImageId).Append("\n"); + sb.Append(" currentTask: ").Append(CurrentTask).Append("\n"); + sb.Append(" imageName: ").Append(ImageName).Append("\n"); + sb.Append(" processPercent: ").Append(ProcessPercent).Append("\n"); + sb.Append(" results: ").Append(Results).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as JobEntities); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(JobEntities input) + { + if (input == null) + return false; + + return + ( + this.ImageId == input.ImageId || + (this.ImageId != null && + this.ImageId.Equals(input.ImageId)) + ) && + ( + this.CurrentTask == input.CurrentTask || + (this.CurrentTask != null && + this.CurrentTask.Equals(input.CurrentTask)) + ) && + ( + this.ImageName == input.ImageName || + (this.ImageName != null && + this.ImageName.Equals(input.ImageName)) + ) && + ( + this.ProcessPercent == input.ProcessPercent || + (this.ProcessPercent != null && + this.ProcessPercent.Equals(input.ProcessPercent)) + ) && + ( + this.Results == input.Results || + this.Results != null && + input.Results != null && + this.Results.SequenceEqual(input.Results) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ImageId != null) + hashCode = hashCode * 59 + this.ImageId.GetHashCode(); + if (this.CurrentTask != null) + hashCode = hashCode * 59 + this.CurrentTask.GetHashCode(); + if (this.ImageName != null) + hashCode = hashCode * 59 + this.ImageName.GetHashCode(); + if (this.ProcessPercent != null) + hashCode = hashCode * 59 + this.ProcessPercent.GetHashCode(); + if (this.Results != null) + hashCode = hashCode * 59 + this.Results.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/JobEntitiesResult.cs b/Services/Ims/V2/Model/JobEntitiesResult.cs new file mode 100755 index 0000000..6d725a2 --- /dev/null +++ b/Services/Ims/V2/Model/JobEntitiesResult.cs @@ -0,0 +1,95 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// + /// + public class JobEntitiesResult + { + + [JsonProperty("image_id", NullValueHandling = NullValueHandling.Ignore)] + public string ImageId { get; set; } + + [JsonProperty("project_id", NullValueHandling = NullValueHandling.Ignore)] + public string ProjectId { get; set; } + + [JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)] + public string Status { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class JobEntitiesResult {\n"); + sb.Append(" imageId: ").Append(ImageId).Append("\n"); + sb.Append(" projectId: ").Append(ProjectId).Append("\n"); + sb.Append(" status: ").Append(Status).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as JobEntitiesResult); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(JobEntitiesResult input) + { + if (input == null) + return false; + + return + ( + this.ImageId == input.ImageId || + (this.ImageId != null && + this.ImageId.Equals(input.ImageId)) + ) && + ( + this.ProjectId == input.ProjectId || + (this.ProjectId != null && + this.ProjectId.Equals(input.ProjectId)) + ) && + ( + this.Status == input.Status || + (this.Status != null && + this.Status.Equals(input.Status)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ImageId != null) + hashCode = hashCode * 59 + this.ImageId.GetHashCode(); + if (this.ProjectId != null) + hashCode = hashCode * 59 + this.ProjectId.GetHashCode(); + if (this.Status != null) + hashCode = hashCode * 59 + this.Status.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/JobProgressEntities.cs b/Services/Ims/V2/Model/JobProgressEntities.cs new file mode 100755 index 0000000..348342b --- /dev/null +++ b/Services/Ims/V2/Model/JobProgressEntities.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// + /// + public class JobProgressEntities + { + + [JsonProperty("image_id", NullValueHandling = NullValueHandling.Ignore)] + public string ImageId { get; set; } + + [JsonProperty("current_task", NullValueHandling = NullValueHandling.Ignore)] + public string CurrentTask { get; set; } + + [JsonProperty("image_name", NullValueHandling = NullValueHandling.Ignore)] + public string ImageName { get; set; } + + [JsonProperty("process_percent", NullValueHandling = NullValueHandling.Ignore)] + public double? ProcessPercent { get; set; } + + [JsonProperty("subJobId", NullValueHandling = NullValueHandling.Ignore)] + public string SubJobId { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class JobProgressEntities {\n"); + sb.Append(" imageId: ").Append(ImageId).Append("\n"); + sb.Append(" currentTask: ").Append(CurrentTask).Append("\n"); + sb.Append(" imageName: ").Append(ImageName).Append("\n"); + sb.Append(" processPercent: ").Append(ProcessPercent).Append("\n"); + sb.Append(" subJobId: ").Append(SubJobId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as JobProgressEntities); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(JobProgressEntities input) + { + if (input == null) + return false; + + return + ( + this.ImageId == input.ImageId || + (this.ImageId != null && + this.ImageId.Equals(input.ImageId)) + ) && + ( + this.CurrentTask == input.CurrentTask || + (this.CurrentTask != null && + this.CurrentTask.Equals(input.CurrentTask)) + ) && + ( + this.ImageName == input.ImageName || + (this.ImageName != null && + this.ImageName.Equals(input.ImageName)) + ) && + ( + this.ProcessPercent == input.ProcessPercent || + (this.ProcessPercent != null && + this.ProcessPercent.Equals(input.ProcessPercent)) + ) && + ( + this.SubJobId == input.SubJobId || + (this.SubJobId != null && + this.SubJobId.Equals(input.SubJobId)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ImageId != null) + hashCode = hashCode * 59 + this.ImageId.GetHashCode(); + if (this.CurrentTask != null) + hashCode = hashCode * 59 + this.CurrentTask.GetHashCode(); + if (this.ImageName != null) + hashCode = hashCode * 59 + this.ImageName.GetHashCode(); + if (this.ProcessPercent != null) + hashCode = hashCode * 59 + this.ProcessPercent.GetHashCode(); + if (this.SubJobId != null) + hashCode = hashCode * 59 + this.SubJobId.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/Links.cs b/Services/Ims/V2/Model/Links.cs new file mode 100755 index 0000000..2e20b49 --- /dev/null +++ b/Services/Ims/V2/Model/Links.cs @@ -0,0 +1,84 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// 视图链接。 + /// + public class Links + { + + [JsonProperty("href", NullValueHandling = NullValueHandling.Ignore)] + public string Href { get; set; } + + [JsonProperty("rel", NullValueHandling = NullValueHandling.Ignore)] + public string Rel { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class Links {\n"); + sb.Append(" href: ").Append(Href).Append("\n"); + sb.Append(" rel: ").Append(Rel).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as Links); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(Links input) + { + if (input == null) + return false; + + return + ( + this.Href == input.Href || + (this.Href != null && + this.Href.Equals(input.Href)) + ) && + ( + this.Rel == input.Rel || + (this.Rel != null && + this.Rel.Equals(input.Rel)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Href != null) + hashCode = hashCode * 59 + this.Href.GetHashCode(); + if (this.Rel != null) + hashCode = hashCode * 59 + this.Rel.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/ListImageByTagsRequest.cs b/Services/Ims/V2/Model/ListImageByTagsRequest.cs new file mode 100755 index 0000000..a17d872 --- /dev/null +++ b/Services/Ims/V2/Model/ListImageByTagsRequest.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Request Object + /// + public class ListImageByTagsRequest + { + + [SDKProperty("body", IsBody = true)] + [JsonProperty("body", NullValueHandling = NullValueHandling.Ignore)] + public ListImageByTagsRequestBody Body { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ListImageByTagsRequest {\n"); + sb.Append(" body: ").Append(Body).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ListImageByTagsRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ListImageByTagsRequest input) + { + if (input == null) + return false; + + return + ( + this.Body == input.Body || + (this.Body != null && + this.Body.Equals(input.Body)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Body != null) + hashCode = hashCode * 59 + this.Body.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/ListImageByTagsRequestBody.cs b/Services/Ims/V2/Model/ListImageByTagsRequestBody.cs new file mode 100755 index 0000000..ccb2159 --- /dev/null +++ b/Services/Ims/V2/Model/ListImageByTagsRequestBody.cs @@ -0,0 +1,276 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// 请求参数 + /// + public class ListImageByTagsRequestBody + { + [JsonConverter(typeof(EnumClassConverter))] + public class ActionEnum + { + /// + /// Enum FILTER for value: filter + /// + public static readonly ActionEnum FILTER = new ActionEnum("filter"); + + /// + /// Enum COUNT for value: count + /// + public static readonly ActionEnum COUNT = new ActionEnum("count"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "filter", FILTER }, + { "count", COUNT }, + }; + + private string _value; + + public ActionEnum() + { + + } + + public ActionEnum(string value) + { + _value = value; + } + + public static ActionEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as ActionEnum)) + { + return true; + } + + return false; + } + + public bool Equals(ActionEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(ActionEnum a, ActionEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(ActionEnum a, ActionEnum b) + { + return !(a == b); + } + } + + + [JsonProperty("action", NullValueHandling = NullValueHandling.Ignore)] + public ActionEnum Action { get; set; } + [JsonProperty("tags", NullValueHandling = NullValueHandling.Ignore)] + public List Tags { get; set; } + + [JsonProperty("tags_any", NullValueHandling = NullValueHandling.Ignore)] + public List TagsAny { get; set; } + + [JsonProperty("not_tags", NullValueHandling = NullValueHandling.Ignore)] + public List NotTags { get; set; } + + [JsonProperty("not_tags_any", NullValueHandling = NullValueHandling.Ignore)] + public List NotTagsAny { get; set; } + + [JsonProperty("limit", NullValueHandling = NullValueHandling.Ignore)] + public string Limit { get; set; } + + [JsonProperty("offset", NullValueHandling = NullValueHandling.Ignore)] + public string Offset { get; set; } + + [JsonProperty("matches", NullValueHandling = NullValueHandling.Ignore)] + public List Matches { get; set; } + + [JsonProperty("without_any_tag", NullValueHandling = NullValueHandling.Ignore)] + public bool? WithoutAnyTag { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ListImageByTagsRequestBody {\n"); + sb.Append(" action: ").Append(Action).Append("\n"); + sb.Append(" tags: ").Append(Tags).Append("\n"); + sb.Append(" tagsAny: ").Append(TagsAny).Append("\n"); + sb.Append(" notTags: ").Append(NotTags).Append("\n"); + sb.Append(" notTagsAny: ").Append(NotTagsAny).Append("\n"); + sb.Append(" limit: ").Append(Limit).Append("\n"); + sb.Append(" offset: ").Append(Offset).Append("\n"); + sb.Append(" matches: ").Append(Matches).Append("\n"); + sb.Append(" withoutAnyTag: ").Append(WithoutAnyTag).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ListImageByTagsRequestBody); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ListImageByTagsRequestBody input) + { + if (input == null) + return false; + + return + ( + this.Action == input.Action || + (this.Action != null && + this.Action.Equals(input.Action)) + ) && + ( + this.Tags == input.Tags || + this.Tags != null && + input.Tags != null && + this.Tags.SequenceEqual(input.Tags) + ) && + ( + this.TagsAny == input.TagsAny || + this.TagsAny != null && + input.TagsAny != null && + this.TagsAny.SequenceEqual(input.TagsAny) + ) && + ( + this.NotTags == input.NotTags || + this.NotTags != null && + input.NotTags != null && + this.NotTags.SequenceEqual(input.NotTags) + ) && + ( + this.NotTagsAny == input.NotTagsAny || + this.NotTagsAny != null && + input.NotTagsAny != null && + this.NotTagsAny.SequenceEqual(input.NotTagsAny) + ) && + ( + this.Limit == input.Limit || + (this.Limit != null && + this.Limit.Equals(input.Limit)) + ) && + ( + this.Offset == input.Offset || + (this.Offset != null && + this.Offset.Equals(input.Offset)) + ) && + ( + this.Matches == input.Matches || + this.Matches != null && + input.Matches != null && + this.Matches.SequenceEqual(input.Matches) + ) && + ( + this.WithoutAnyTag == input.WithoutAnyTag || + (this.WithoutAnyTag != null && + this.WithoutAnyTag.Equals(input.WithoutAnyTag)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Action != null) + hashCode = hashCode * 59 + this.Action.GetHashCode(); + if (this.Tags != null) + hashCode = hashCode * 59 + this.Tags.GetHashCode(); + if (this.TagsAny != null) + hashCode = hashCode * 59 + this.TagsAny.GetHashCode(); + if (this.NotTags != null) + hashCode = hashCode * 59 + this.NotTags.GetHashCode(); + if (this.NotTagsAny != null) + hashCode = hashCode * 59 + this.NotTagsAny.GetHashCode(); + if (this.Limit != null) + hashCode = hashCode * 59 + this.Limit.GetHashCode(); + if (this.Offset != null) + hashCode = hashCode * 59 + this.Offset.GetHashCode(); + if (this.Matches != null) + hashCode = hashCode * 59 + this.Matches.GetHashCode(); + if (this.WithoutAnyTag != null) + hashCode = hashCode * 59 + this.WithoutAnyTag.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/ListImageByTagsResponse.cs b/Services/Ims/V2/Model/ListImageByTagsResponse.cs new file mode 100755 index 0000000..5f609cc --- /dev/null +++ b/Services/Ims/V2/Model/ListImageByTagsResponse.cs @@ -0,0 +1,85 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Response Object + /// + public class ListImageByTagsResponse : SdkResponse + { + + [JsonProperty("resources", NullValueHandling = NullValueHandling.Ignore)] + public List Resources { get; set; } + + [JsonProperty("total_count", NullValueHandling = NullValueHandling.Ignore)] + public int? TotalCount { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ListImageByTagsResponse {\n"); + sb.Append(" resources: ").Append(Resources).Append("\n"); + sb.Append(" totalCount: ").Append(TotalCount).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ListImageByTagsResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ListImageByTagsResponse input) + { + if (input == null) + return false; + + return + ( + this.Resources == input.Resources || + this.Resources != null && + input.Resources != null && + this.Resources.SequenceEqual(input.Resources) + ) && + ( + this.TotalCount == input.TotalCount || + (this.TotalCount != null && + this.TotalCount.Equals(input.TotalCount)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Resources != null) + hashCode = hashCode * 59 + this.Resources.GetHashCode(); + if (this.TotalCount != null) + hashCode = hashCode * 59 + this.TotalCount.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/ListImageTagsRequest.cs b/Services/Ims/V2/Model/ListImageTagsRequest.cs new file mode 100755 index 0000000..6e2a977 --- /dev/null +++ b/Services/Ims/V2/Model/ListImageTagsRequest.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Request Object + /// + public class ListImageTagsRequest + { + + [SDKProperty("image_id", IsPath = true)] + [JsonProperty("image_id", NullValueHandling = NullValueHandling.Ignore)] + public string ImageId { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ListImageTagsRequest {\n"); + sb.Append(" imageId: ").Append(ImageId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ListImageTagsRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ListImageTagsRequest input) + { + if (input == null) + return false; + + return + ( + this.ImageId == input.ImageId || + (this.ImageId != null && + this.ImageId.Equals(input.ImageId)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ImageId != null) + hashCode = hashCode * 59 + this.ImageId.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/ListImageTagsResponse.cs b/Services/Ims/V2/Model/ListImageTagsResponse.cs new file mode 100755 index 0000000..e8b0784 --- /dev/null +++ b/Services/Ims/V2/Model/ListImageTagsResponse.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Response Object + /// + public class ListImageTagsResponse : SdkResponse + { + + [JsonProperty("tags", NullValueHandling = NullValueHandling.Ignore)] + public List Tags { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ListImageTagsResponse {\n"); + sb.Append(" tags: ").Append(Tags).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ListImageTagsResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ListImageTagsResponse input) + { + if (input == null) + return false; + + return + ( + this.Tags == input.Tags || + this.Tags != null && + input.Tags != null && + this.Tags.SequenceEqual(input.Tags) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Tags != null) + hashCode = hashCode * 59 + this.Tags.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/ListImagesRequest.cs b/Services/Ims/V2/Model/ListImagesRequest.cs new file mode 100755 index 0000000..56a57a2 --- /dev/null +++ b/Services/Ims/V2/Model/ListImagesRequest.cs @@ -0,0 +1,2086 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Request Object + /// + public class ListImagesRequest + { + [JsonConverter(typeof(EnumClassConverter))] + public class ImagetypeEnum + { + /// + /// Enum GOLD for value: gold + /// + public static readonly ImagetypeEnum GOLD = new ImagetypeEnum("gold"); + + /// + /// Enum PRIVATE for value: private + /// + public static readonly ImagetypeEnum PRIVATE = new ImagetypeEnum("private"); + + /// + /// Enum SHARED for value: shared + /// + public static readonly ImagetypeEnum SHARED = new ImagetypeEnum("shared"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "gold", GOLD }, + { "private", PRIVATE }, + { "shared", SHARED }, + }; + + private string _value; + + public ImagetypeEnum() + { + + } + + public ImagetypeEnum(string value) + { + _value = value; + } + + public static ImagetypeEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as ImagetypeEnum)) + { + return true; + } + + return false; + } + + public bool Equals(ImagetypeEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(ImagetypeEnum a, ImagetypeEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(ImagetypeEnum a, ImagetypeEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class IsregisteredEnum + { + /// + /// Enum TRUE for value: true + /// + public static readonly IsregisteredEnum TRUE = new IsregisteredEnum("true"); + + /// + /// Enum FALSE for value: false + /// + public static readonly IsregisteredEnum FALSE = new IsregisteredEnum("false"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "true", TRUE }, + { "false", FALSE }, + }; + + private string _value; + + public IsregisteredEnum() + { + + } + + public IsregisteredEnum(string value) + { + _value = value; + } + + public static IsregisteredEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as IsregisteredEnum)) + { + return true; + } + + return false; + } + + public bool Equals(IsregisteredEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(IsregisteredEnum a, IsregisteredEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(IsregisteredEnum a, IsregisteredEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class OsBitEnum + { + /// + /// Enum _32 for value: 32 + /// + public static readonly OsBitEnum _32 = new OsBitEnum("32"); + + /// + /// Enum _64 for value: 64 + /// + public static readonly OsBitEnum _64 = new OsBitEnum("64"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "32", _32 }, + { "64", _64 }, + }; + + private string _value; + + public OsBitEnum() + { + + } + + public OsBitEnum(string value) + { + _value = value; + } + + public static OsBitEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as OsBitEnum)) + { + return true; + } + + return false; + } + + public bool Equals(OsBitEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(OsBitEnum a, OsBitEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(OsBitEnum a, OsBitEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class OsTypeEnum + { + /// + /// Enum LINUX for value: Linux + /// + public static readonly OsTypeEnum LINUX = new OsTypeEnum("Linux"); + + /// + /// Enum WINDOWS for value: Windows + /// + public static readonly OsTypeEnum WINDOWS = new OsTypeEnum("Windows"); + + /// + /// Enum OTHER for value: Other + /// + public static readonly OsTypeEnum OTHER = new OsTypeEnum("Other"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "Linux", LINUX }, + { "Windows", WINDOWS }, + { "Other", OTHER }, + }; + + private string _value; + + public OsTypeEnum() + { + + } + + public OsTypeEnum(string value) + { + _value = value; + } + + public static OsTypeEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as OsTypeEnum)) + { + return true; + } + + return false; + } + + public bool Equals(OsTypeEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(OsTypeEnum a, OsTypeEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(OsTypeEnum a, OsTypeEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class PlatformEnum + { + /// + /// Enum WINDOWS for value: Windows + /// + public static readonly PlatformEnum WINDOWS = new PlatformEnum("Windows"); + + /// + /// Enum UBUNTU for value: Ubuntu + /// + public static readonly PlatformEnum UBUNTU = new PlatformEnum("Ubuntu"); + + /// + /// Enum REDHAT for value: RedHat + /// + public static readonly PlatformEnum REDHAT = new PlatformEnum("RedHat"); + + /// + /// Enum SUSE for value: SUSE + /// + public static readonly PlatformEnum SUSE = new PlatformEnum("SUSE"); + + /// + /// Enum CENTOS for value: CentOS + /// + public static readonly PlatformEnum CENTOS = new PlatformEnum("CentOS"); + + /// + /// Enum DEBIAN for value: Debian + /// + public static readonly PlatformEnum DEBIAN = new PlatformEnum("Debian"); + + /// + /// Enum OPENSUSE for value: OpenSUSE + /// + public static readonly PlatformEnum OPENSUSE = new PlatformEnum("OpenSUSE"); + + /// + /// Enum ORACLE_LINUX for value: Oracle Linux + /// + public static readonly PlatformEnum ORACLE_LINUX = new PlatformEnum("Oracle Linux"); + + /// + /// Enum FEDORA for value: Fedora + /// + public static readonly PlatformEnum FEDORA = new PlatformEnum("Fedora"); + + /// + /// Enum OTHER for value: Other + /// + public static readonly PlatformEnum OTHER = new PlatformEnum("Other"); + + /// + /// Enum COREOS for value: CoreOS + /// + public static readonly PlatformEnum COREOS = new PlatformEnum("CoreOS"); + + /// + /// Enum EULEROS for value: EulerOS + /// + public static readonly PlatformEnum EULEROS = new PlatformEnum("EulerOS"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "Windows", WINDOWS }, + { "Ubuntu", UBUNTU }, + { "RedHat", REDHAT }, + { "SUSE", SUSE }, + { "CentOS", CENTOS }, + { "Debian", DEBIAN }, + { "OpenSUSE", OPENSUSE }, + { "Oracle Linux", ORACLE_LINUX }, + { "Fedora", FEDORA }, + { "Other", OTHER }, + { "CoreOS", COREOS }, + { "EulerOS", EULEROS }, + }; + + private string _value; + + public PlatformEnum() + { + + } + + public PlatformEnum(string value) + { + _value = value; + } + + public static PlatformEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as PlatformEnum)) + { + return true; + } + + return false; + } + + public bool Equals(PlatformEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(PlatformEnum a, PlatformEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(PlatformEnum a, PlatformEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class DiskFormatEnum + { + /// + /// Enum VHD for value: vhd + /// + public static readonly DiskFormatEnum VHD = new DiskFormatEnum("vhd"); + + /// + /// Enum ZVHD for value: zvhd + /// + public static readonly DiskFormatEnum ZVHD = new DiskFormatEnum("zvhd"); + + /// + /// Enum RAW for value: raw + /// + public static readonly DiskFormatEnum RAW = new DiskFormatEnum("raw"); + + /// + /// Enum QCOW2 for value: qcow2 + /// + public static readonly DiskFormatEnum QCOW2 = new DiskFormatEnum("qcow2"); + + /// + /// Enum ZVHD2 for value: zvhd2 + /// + public static readonly DiskFormatEnum ZVHD2 = new DiskFormatEnum("zvhd2"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "vhd", VHD }, + { "zvhd", ZVHD }, + { "raw", RAW }, + { "qcow2", QCOW2 }, + { "zvhd2", ZVHD2 }, + }; + + private string _value; + + public DiskFormatEnum() + { + + } + + public DiskFormatEnum(string value) + { + _value = value; + } + + public static DiskFormatEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as DiskFormatEnum)) + { + return true; + } + + return false; + } + + public bool Equals(DiskFormatEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(DiskFormatEnum a, DiskFormatEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(DiskFormatEnum a, DiskFormatEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class MemberStatusEnum + { + /// + /// Enum ACCEPTED for value: accepted + /// + public static readonly MemberStatusEnum ACCEPTED = new MemberStatusEnum("accepted"); + + /// + /// Enum REJECTED for value: rejected + /// + public static readonly MemberStatusEnum REJECTED = new MemberStatusEnum("rejected"); + + /// + /// Enum PENDING for value: pending + /// + public static readonly MemberStatusEnum PENDING = new MemberStatusEnum("pending"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "accepted", ACCEPTED }, + { "rejected", REJECTED }, + { "pending", PENDING }, + }; + + private string _value; + + public MemberStatusEnum() + { + + } + + public MemberStatusEnum(string value) + { + _value = value; + } + + public static MemberStatusEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as MemberStatusEnum)) + { + return true; + } + + return false; + } + + public bool Equals(MemberStatusEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(MemberStatusEnum a, MemberStatusEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(MemberStatusEnum a, MemberStatusEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class SortDirEnum + { + /// + /// Enum ASC for value: asc + /// + public static readonly SortDirEnum ASC = new SortDirEnum("asc"); + + /// + /// Enum DESC for value: desc + /// + public static readonly SortDirEnum DESC = new SortDirEnum("desc"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "asc", ASC }, + { "desc", DESC }, + }; + + private string _value; + + public SortDirEnum() + { + + } + + public SortDirEnum(string value) + { + _value = value; + } + + public static SortDirEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as SortDirEnum)) + { + return true; + } + + return false; + } + + public bool Equals(SortDirEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(SortDirEnum a, SortDirEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(SortDirEnum a, SortDirEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class SortKeyEnum + { + /// + /// Enum CREATED_AT for value: created_at + /// + public static readonly SortKeyEnum CREATED_AT = new SortKeyEnum("created_at"); + + /// + /// Enum NAME for value: name + /// + public static readonly SortKeyEnum NAME = new SortKeyEnum("name"); + + /// + /// Enum CONTAINER_FORMAT for value: container_format + /// + public static readonly SortKeyEnum CONTAINER_FORMAT = new SortKeyEnum("container_format"); + + /// + /// Enum DISK_FORMAT for value: disk_format + /// + public static readonly SortKeyEnum DISK_FORMAT = new SortKeyEnum("disk_format"); + + /// + /// Enum STATUS_ for value: status + /// + public static readonly SortKeyEnum STATUS_ = new SortKeyEnum("status "); + + /// + /// Enum ID for value: id + /// + public static readonly SortKeyEnum ID = new SortKeyEnum("id"); + + /// + /// Enum SIZE for value: size + /// + public static readonly SortKeyEnum SIZE = new SortKeyEnum("size"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "created_at", CREATED_AT }, + { "name", NAME }, + { "container_format", CONTAINER_FORMAT }, + { "disk_format", DISK_FORMAT }, + { "status ", STATUS_ }, + { "id", ID }, + { "size", SIZE }, + }; + + private string _value; + + public SortKeyEnum() + { + + } + + public SortKeyEnum(string value) + { + _value = value; + } + + public static SortKeyEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as SortKeyEnum)) + { + return true; + } + + return false; + } + + public bool Equals(SortKeyEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(SortKeyEnum a, SortKeyEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(SortKeyEnum a, SortKeyEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class StatusEnum + { + /// + /// Enum QUEUED for value: queued + /// + public static readonly StatusEnum QUEUED = new StatusEnum("queued"); + + /// + /// Enum SAVING for value: saving + /// + public static readonly StatusEnum SAVING = new StatusEnum("saving"); + + /// + /// Enum DELETED for value: deleted + /// + public static readonly StatusEnum DELETED = new StatusEnum("deleted"); + + /// + /// Enum KILLED for value: killed + /// + public static readonly StatusEnum KILLED = new StatusEnum("killed"); + + /// + /// Enum ACTIVE for value: active + /// + public static readonly StatusEnum ACTIVE = new StatusEnum("active"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "queued", QUEUED }, + { "saving", SAVING }, + { "deleted", DELETED }, + { "killed", KILLED }, + { "active", ACTIVE }, + }; + + private string _value; + + public StatusEnum() + { + + } + + public StatusEnum(string value) + { + _value = value; + } + + public static StatusEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as StatusEnum)) + { + return true; + } + + return false; + } + + public bool Equals(StatusEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(StatusEnum a, StatusEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(StatusEnum a, StatusEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class VirtualEnvTypeEnum + { + /// + /// Enum FUSIONCOMPUTE for value: FusionCompute + /// + public static readonly VirtualEnvTypeEnum FUSIONCOMPUTE = new VirtualEnvTypeEnum("FusionCompute"); + + /// + /// Enum IRONIC for value: Ironic + /// + public static readonly VirtualEnvTypeEnum IRONIC = new VirtualEnvTypeEnum("Ironic"); + + /// + /// Enum DATAIMAGE for value: DataImage + /// + public static readonly VirtualEnvTypeEnum DATAIMAGE = new VirtualEnvTypeEnum("DataImage"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "FusionCompute", FUSIONCOMPUTE }, + { "Ironic", IRONIC }, + { "DataImage", DATAIMAGE }, + }; + + private string _value; + + public VirtualEnvTypeEnum() + { + + } + + public VirtualEnvTypeEnum(string value) + { + _value = value; + } + + public static VirtualEnvTypeEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as VirtualEnvTypeEnum)) + { + return true; + } + + return false; + } + + public bool Equals(VirtualEnvTypeEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(VirtualEnvTypeEnum a, VirtualEnvTypeEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(VirtualEnvTypeEnum a, VirtualEnvTypeEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class VisibilityEnum + { + /// + /// Enum PUBLIC for value: public + /// + public static readonly VisibilityEnum PUBLIC = new VisibilityEnum("public"); + + /// + /// Enum PRIVATE for value: private + /// + public static readonly VisibilityEnum PRIVATE = new VisibilityEnum("private"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "public", PUBLIC }, + { "private", PRIVATE }, + }; + + private string _value; + + public VisibilityEnum() + { + + } + + public VisibilityEnum(string value) + { + _value = value; + } + + public static VisibilityEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as VisibilityEnum)) + { + return true; + } + + return false; + } + + public bool Equals(VisibilityEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(VisibilityEnum a, VisibilityEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(VisibilityEnum a, VisibilityEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class ArchitectureEnum + { + /// + /// Enum X86 for value: x86 + /// + public static readonly ArchitectureEnum X86 = new ArchitectureEnum("x86"); + + /// + /// Enum ARM for value: arm + /// + public static readonly ArchitectureEnum ARM = new ArchitectureEnum("arm"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "x86", X86 }, + { "arm", ARM }, + }; + + private string _value; + + public ArchitectureEnum() + { + + } + + public ArchitectureEnum(string value) + { + _value = value; + } + + public static ArchitectureEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as ArchitectureEnum)) + { + return true; + } + + return false; + } + + public bool Equals(ArchitectureEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(ArchitectureEnum a, ArchitectureEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(ArchitectureEnum a, ArchitectureEnum b) + { + return !(a == b); + } + } + + + [SDKProperty("__imagetype", IsQuery = true)] + [JsonProperty("__imagetype", NullValueHandling = NullValueHandling.Ignore)] + public ImagetypeEnum Imagetype { get; set; } + [SDKProperty("__isregistered", IsQuery = true)] + [JsonProperty("__isregistered", NullValueHandling = NullValueHandling.Ignore)] + public IsregisteredEnum Isregistered { get; set; } + [SDKProperty("__os_bit", IsQuery = true)] + [JsonProperty("__os_bit", NullValueHandling = NullValueHandling.Ignore)] + public OsBitEnum OsBit { get; set; } + [SDKProperty("__os_type", IsQuery = true)] + [JsonProperty("__os_type", NullValueHandling = NullValueHandling.Ignore)] + public OsTypeEnum OsType { get; set; } + [SDKProperty("__platform", IsQuery = true)] + [JsonProperty("__platform", NullValueHandling = NullValueHandling.Ignore)] + public PlatformEnum Platform { get; set; } + [SDKProperty("__support_diskintensive", IsQuery = true)] + [JsonProperty("__support_diskintensive", NullValueHandling = NullValueHandling.Ignore)] + public string SupportDiskintensive { get; set; } + + [SDKProperty("__support_highperformance", IsQuery = true)] + [JsonProperty("__support_highperformance", NullValueHandling = NullValueHandling.Ignore)] + public string SupportHighperformance { get; set; } + + [SDKProperty("__support_kvm", IsQuery = true)] + [JsonProperty("__support_kvm", NullValueHandling = NullValueHandling.Ignore)] + public string SupportKvm { get; set; } + + [SDKProperty("__support_kvm_gpu_type", IsQuery = true)] + [JsonProperty("__support_kvm_gpu_type", NullValueHandling = NullValueHandling.Ignore)] + public string SupportKvmGpuType { get; set; } + + [SDKProperty("__support_kvm_infiniband", IsQuery = true)] + [JsonProperty("__support_kvm_infiniband", NullValueHandling = NullValueHandling.Ignore)] + public string SupportKvmInfiniband { get; set; } + + [SDKProperty("__support_largememory", IsQuery = true)] + [JsonProperty("__support_largememory", NullValueHandling = NullValueHandling.Ignore)] + public string SupportLargememory { get; set; } + + [SDKProperty("__support_xen", IsQuery = true)] + [JsonProperty("__support_xen", NullValueHandling = NullValueHandling.Ignore)] + public string SupportXen { get; set; } + + [SDKProperty("__support_xen_gpu_type", IsQuery = true)] + [JsonProperty("__support_xen_gpu_type", NullValueHandling = NullValueHandling.Ignore)] + public string SupportXenGpuType { get; set; } + + [SDKProperty("__support_xen_hana", IsQuery = true)] + [JsonProperty("__support_xen_hana", NullValueHandling = NullValueHandling.Ignore)] + public string SupportXenHana { get; set; } + + [SDKProperty("container_format", IsQuery = true)] + [JsonProperty("container_format", NullValueHandling = NullValueHandling.Ignore)] + public string ContainerFormat { get; set; } + + [SDKProperty("disk_format", IsQuery = true)] + [JsonProperty("disk_format", NullValueHandling = NullValueHandling.Ignore)] + public DiskFormatEnum DiskFormat { get; set; } + [SDKProperty("enterprise_project_id", IsQuery = true)] + [JsonProperty("enterprise_project_id", NullValueHandling = NullValueHandling.Ignore)] + public string EnterpriseProjectId { get; set; } + + [SDKProperty("id", IsQuery = true)] + [JsonProperty("id", NullValueHandling = NullValueHandling.Ignore)] + public string Id { get; set; } + + [SDKProperty("limit", IsQuery = true)] + [JsonProperty("limit", NullValueHandling = NullValueHandling.Ignore)] + public int? Limit { get; set; } + + [SDKProperty("marker", IsQuery = true)] + [JsonProperty("marker", NullValueHandling = NullValueHandling.Ignore)] + public string Marker { get; set; } + + [SDKProperty("member_status", IsQuery = true)] + [JsonProperty("member_status", NullValueHandling = NullValueHandling.Ignore)] + public MemberStatusEnum MemberStatus { get; set; } + [SDKProperty("min_disk", IsQuery = true)] + [JsonProperty("min_disk", NullValueHandling = NullValueHandling.Ignore)] + public int? MinDisk { get; set; } + + [SDKProperty("min_ram", IsQuery = true)] + [JsonProperty("min_ram", NullValueHandling = NullValueHandling.Ignore)] + public int? MinRam { get; set; } + + [SDKProperty("name", IsQuery = true)] + [JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)] + public string Name { get; set; } + + [SDKProperty("owner", IsQuery = true)] + [JsonProperty("owner", NullValueHandling = NullValueHandling.Ignore)] + public string Owner { get; set; } + + [SDKProperty("protected", IsQuery = true)] + [JsonProperty("protected", NullValueHandling = NullValueHandling.Ignore)] + public bool? Protected { get; set; } + + [SDKProperty("sort_dir", IsQuery = true)] + [JsonProperty("sort_dir", NullValueHandling = NullValueHandling.Ignore)] + public SortDirEnum SortDir { get; set; } + [SDKProperty("sort_key", IsQuery = true)] + [JsonProperty("sort_key", NullValueHandling = NullValueHandling.Ignore)] + public SortKeyEnum SortKey { get; set; } + [SDKProperty("status", IsQuery = true)] + [JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)] + public StatusEnum Status { get; set; } + [SDKProperty("tag", IsQuery = true)] + [JsonProperty("tag", NullValueHandling = NullValueHandling.Ignore)] + public string Tag { get; set; } + + [SDKProperty("virtual_env_type", IsQuery = true)] + [JsonProperty("virtual_env_type", NullValueHandling = NullValueHandling.Ignore)] + public VirtualEnvTypeEnum VirtualEnvType { get; set; } + [SDKProperty("visibility", IsQuery = true)] + [JsonProperty("visibility", NullValueHandling = NullValueHandling.Ignore)] + public VisibilityEnum Visibility { get; set; } + [SDKProperty("X-Sdk-Date", IsHeader = true)] + [JsonProperty("X-Sdk-Date", NullValueHandling = NullValueHandling.Ignore)] + public string XSdkDate { get; set; } + + [SDKProperty("flavor_id", IsQuery = true)] + [JsonProperty("flavor_id", NullValueHandling = NullValueHandling.Ignore)] + public string FlavorId { get; set; } + + [SDKProperty("created_at", IsQuery = true)] + [JsonProperty("created_at", NullValueHandling = NullValueHandling.Ignore)] + public string CreatedAt { get; set; } + + [SDKProperty("updated_at", IsQuery = true)] + [JsonProperty("updated_at", NullValueHandling = NullValueHandling.Ignore)] + public string UpdatedAt { get; set; } + + [SDKProperty("architecture", IsQuery = true)] + [JsonProperty("architecture", NullValueHandling = NullValueHandling.Ignore)] + public ArchitectureEnum Architecture { get; set; } + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ListImagesRequest {\n"); + sb.Append(" imagetype: ").Append(Imagetype).Append("\n"); + sb.Append(" isregistered: ").Append(Isregistered).Append("\n"); + sb.Append(" osBit: ").Append(OsBit).Append("\n"); + sb.Append(" osType: ").Append(OsType).Append("\n"); + sb.Append(" platform: ").Append(Platform).Append("\n"); + sb.Append(" supportDiskintensive: ").Append(SupportDiskintensive).Append("\n"); + sb.Append(" supportHighperformance: ").Append(SupportHighperformance).Append("\n"); + sb.Append(" supportKvm: ").Append(SupportKvm).Append("\n"); + sb.Append(" supportKvmGpuType: ").Append(SupportKvmGpuType).Append("\n"); + sb.Append(" supportKvmInfiniband: ").Append(SupportKvmInfiniband).Append("\n"); + sb.Append(" supportLargememory: ").Append(SupportLargememory).Append("\n"); + sb.Append(" supportXen: ").Append(SupportXen).Append("\n"); + sb.Append(" supportXenGpuType: ").Append(SupportXenGpuType).Append("\n"); + sb.Append(" supportXenHana: ").Append(SupportXenHana).Append("\n"); + sb.Append(" containerFormat: ").Append(ContainerFormat).Append("\n"); + sb.Append(" diskFormat: ").Append(DiskFormat).Append("\n"); + sb.Append(" enterpriseProjectId: ").Append(EnterpriseProjectId).Append("\n"); + sb.Append(" id: ").Append(Id).Append("\n"); + sb.Append(" limit: ").Append(Limit).Append("\n"); + sb.Append(" marker: ").Append(Marker).Append("\n"); + sb.Append(" memberStatus: ").Append(MemberStatus).Append("\n"); + sb.Append(" minDisk: ").Append(MinDisk).Append("\n"); + sb.Append(" minRam: ").Append(MinRam).Append("\n"); + sb.Append(" name: ").Append(Name).Append("\n"); + sb.Append(" owner: ").Append(Owner).Append("\n"); + sb.Append(" Protected: ").Append(Protected).Append("\n"); + sb.Append(" sortDir: ").Append(SortDir).Append("\n"); + sb.Append(" sortKey: ").Append(SortKey).Append("\n"); + sb.Append(" status: ").Append(Status).Append("\n"); + sb.Append(" tag: ").Append(Tag).Append("\n"); + sb.Append(" virtualEnvType: ").Append(VirtualEnvType).Append("\n"); + sb.Append(" visibility: ").Append(Visibility).Append("\n"); + sb.Append(" xSdkDate: ").Append(XSdkDate).Append("\n"); + sb.Append(" flavorId: ").Append(FlavorId).Append("\n"); + sb.Append(" createdAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" updatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append(" architecture: ").Append(Architecture).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ListImagesRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ListImagesRequest input) + { + if (input == null) + return false; + + return + ( + this.Imagetype == input.Imagetype || + (this.Imagetype != null && + this.Imagetype.Equals(input.Imagetype)) + ) && + ( + this.Isregistered == input.Isregistered || + (this.Isregistered != null && + this.Isregistered.Equals(input.Isregistered)) + ) && + ( + this.OsBit == input.OsBit || + (this.OsBit != null && + this.OsBit.Equals(input.OsBit)) + ) && + ( + this.OsType == input.OsType || + (this.OsType != null && + this.OsType.Equals(input.OsType)) + ) && + ( + this.Platform == input.Platform || + (this.Platform != null && + this.Platform.Equals(input.Platform)) + ) && + ( + this.SupportDiskintensive == input.SupportDiskintensive || + (this.SupportDiskintensive != null && + this.SupportDiskintensive.Equals(input.SupportDiskintensive)) + ) && + ( + this.SupportHighperformance == input.SupportHighperformance || + (this.SupportHighperformance != null && + this.SupportHighperformance.Equals(input.SupportHighperformance)) + ) && + ( + this.SupportKvm == input.SupportKvm || + (this.SupportKvm != null && + this.SupportKvm.Equals(input.SupportKvm)) + ) && + ( + this.SupportKvmGpuType == input.SupportKvmGpuType || + (this.SupportKvmGpuType != null && + this.SupportKvmGpuType.Equals(input.SupportKvmGpuType)) + ) && + ( + this.SupportKvmInfiniband == input.SupportKvmInfiniband || + (this.SupportKvmInfiniband != null && + this.SupportKvmInfiniband.Equals(input.SupportKvmInfiniband)) + ) && + ( + this.SupportLargememory == input.SupportLargememory || + (this.SupportLargememory != null && + this.SupportLargememory.Equals(input.SupportLargememory)) + ) && + ( + this.SupportXen == input.SupportXen || + (this.SupportXen != null && + this.SupportXen.Equals(input.SupportXen)) + ) && + ( + this.SupportXenGpuType == input.SupportXenGpuType || + (this.SupportXenGpuType != null && + this.SupportXenGpuType.Equals(input.SupportXenGpuType)) + ) && + ( + this.SupportXenHana == input.SupportXenHana || + (this.SupportXenHana != null && + this.SupportXenHana.Equals(input.SupportXenHana)) + ) && + ( + this.ContainerFormat == input.ContainerFormat || + (this.ContainerFormat != null && + this.ContainerFormat.Equals(input.ContainerFormat)) + ) && + ( + this.DiskFormat == input.DiskFormat || + (this.DiskFormat != null && + this.DiskFormat.Equals(input.DiskFormat)) + ) && + ( + this.EnterpriseProjectId == input.EnterpriseProjectId || + (this.EnterpriseProjectId != null && + this.EnterpriseProjectId.Equals(input.EnterpriseProjectId)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Limit == input.Limit || + (this.Limit != null && + this.Limit.Equals(input.Limit)) + ) && + ( + this.Marker == input.Marker || + (this.Marker != null && + this.Marker.Equals(input.Marker)) + ) && + ( + this.MemberStatus == input.MemberStatus || + (this.MemberStatus != null && + this.MemberStatus.Equals(input.MemberStatus)) + ) && + ( + this.MinDisk == input.MinDisk || + (this.MinDisk != null && + this.MinDisk.Equals(input.MinDisk)) + ) && + ( + this.MinRam == input.MinRam || + (this.MinRam != null && + this.MinRam.Equals(input.MinRam)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Owner == input.Owner || + (this.Owner != null && + this.Owner.Equals(input.Owner)) + ) && + ( + this.Protected == input.Protected || + (this.Protected != null && + this.Protected.Equals(input.Protected)) + ) && + ( + this.SortDir == input.SortDir || + (this.SortDir != null && + this.SortDir.Equals(input.SortDir)) + ) && + ( + this.SortKey == input.SortKey || + (this.SortKey != null && + this.SortKey.Equals(input.SortKey)) + ) && + ( + this.Status == input.Status || + (this.Status != null && + this.Status.Equals(input.Status)) + ) && + ( + this.Tag == input.Tag || + (this.Tag != null && + this.Tag.Equals(input.Tag)) + ) && + ( + this.VirtualEnvType == input.VirtualEnvType || + (this.VirtualEnvType != null && + this.VirtualEnvType.Equals(input.VirtualEnvType)) + ) && + ( + this.Visibility == input.Visibility || + (this.Visibility != null && + this.Visibility.Equals(input.Visibility)) + ) && + ( + this.XSdkDate == input.XSdkDate || + (this.XSdkDate != null && + this.XSdkDate.Equals(input.XSdkDate)) + ) && + ( + this.FlavorId == input.FlavorId || + (this.FlavorId != null && + this.FlavorId.Equals(input.FlavorId)) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.UpdatedAt == input.UpdatedAt || + (this.UpdatedAt != null && + this.UpdatedAt.Equals(input.UpdatedAt)) + ) && + ( + this.Architecture == input.Architecture || + (this.Architecture != null && + this.Architecture.Equals(input.Architecture)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Imagetype != null) + hashCode = hashCode * 59 + this.Imagetype.GetHashCode(); + if (this.Isregistered != null) + hashCode = hashCode * 59 + this.Isregistered.GetHashCode(); + if (this.OsBit != null) + hashCode = hashCode * 59 + this.OsBit.GetHashCode(); + if (this.OsType != null) + hashCode = hashCode * 59 + this.OsType.GetHashCode(); + if (this.Platform != null) + hashCode = hashCode * 59 + this.Platform.GetHashCode(); + if (this.SupportDiskintensive != null) + hashCode = hashCode * 59 + this.SupportDiskintensive.GetHashCode(); + if (this.SupportHighperformance != null) + hashCode = hashCode * 59 + this.SupportHighperformance.GetHashCode(); + if (this.SupportKvm != null) + hashCode = hashCode * 59 + this.SupportKvm.GetHashCode(); + if (this.SupportKvmGpuType != null) + hashCode = hashCode * 59 + this.SupportKvmGpuType.GetHashCode(); + if (this.SupportKvmInfiniband != null) + hashCode = hashCode * 59 + this.SupportKvmInfiniband.GetHashCode(); + if (this.SupportLargememory != null) + hashCode = hashCode * 59 + this.SupportLargememory.GetHashCode(); + if (this.SupportXen != null) + hashCode = hashCode * 59 + this.SupportXen.GetHashCode(); + if (this.SupportXenGpuType != null) + hashCode = hashCode * 59 + this.SupportXenGpuType.GetHashCode(); + if (this.SupportXenHana != null) + hashCode = hashCode * 59 + this.SupportXenHana.GetHashCode(); + if (this.ContainerFormat != null) + hashCode = hashCode * 59 + this.ContainerFormat.GetHashCode(); + if (this.DiskFormat != null) + hashCode = hashCode * 59 + this.DiskFormat.GetHashCode(); + if (this.EnterpriseProjectId != null) + hashCode = hashCode * 59 + this.EnterpriseProjectId.GetHashCode(); + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.Limit != null) + hashCode = hashCode * 59 + this.Limit.GetHashCode(); + if (this.Marker != null) + hashCode = hashCode * 59 + this.Marker.GetHashCode(); + if (this.MemberStatus != null) + hashCode = hashCode * 59 + this.MemberStatus.GetHashCode(); + if (this.MinDisk != null) + hashCode = hashCode * 59 + this.MinDisk.GetHashCode(); + if (this.MinRam != null) + hashCode = hashCode * 59 + this.MinRam.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Owner != null) + hashCode = hashCode * 59 + this.Owner.GetHashCode(); + if (this.Protected != null) + hashCode = hashCode * 59 + this.Protected.GetHashCode(); + if (this.SortDir != null) + hashCode = hashCode * 59 + this.SortDir.GetHashCode(); + if (this.SortKey != null) + hashCode = hashCode * 59 + this.SortKey.GetHashCode(); + if (this.Status != null) + hashCode = hashCode * 59 + this.Status.GetHashCode(); + if (this.Tag != null) + hashCode = hashCode * 59 + this.Tag.GetHashCode(); + if (this.VirtualEnvType != null) + hashCode = hashCode * 59 + this.VirtualEnvType.GetHashCode(); + if (this.Visibility != null) + hashCode = hashCode * 59 + this.Visibility.GetHashCode(); + if (this.XSdkDate != null) + hashCode = hashCode * 59 + this.XSdkDate.GetHashCode(); + if (this.FlavorId != null) + hashCode = hashCode * 59 + this.FlavorId.GetHashCode(); + if (this.CreatedAt != null) + hashCode = hashCode * 59 + this.CreatedAt.GetHashCode(); + if (this.UpdatedAt != null) + hashCode = hashCode * 59 + this.UpdatedAt.GetHashCode(); + if (this.Architecture != null) + hashCode = hashCode * 59 + this.Architecture.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/ListImagesResponse.cs b/Services/Ims/V2/Model/ListImagesResponse.cs new file mode 100755 index 0000000..b6d2bb4 --- /dev/null +++ b/Services/Ims/V2/Model/ListImagesResponse.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Response Object + /// + public class ListImagesResponse : SdkResponse + { + + [JsonProperty("images", NullValueHandling = NullValueHandling.Ignore)] + public List Images { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ListImagesResponse {\n"); + sb.Append(" images: ").Append(Images).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ListImagesResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ListImagesResponse input) + { + if (input == null) + return false; + + return + ( + this.Images == input.Images || + this.Images != null && + input.Images != null && + this.Images.SequenceEqual(input.Images) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Images != null) + hashCode = hashCode * 59 + this.Images.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/ListImagesTagsRequest.cs b/Services/Ims/V2/Model/ListImagesTagsRequest.cs new file mode 100755 index 0000000..99b3eab --- /dev/null +++ b/Services/Ims/V2/Model/ListImagesTagsRequest.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Request Object + /// + public class ListImagesTagsRequest + { + + + } +} diff --git a/Services/Ims/V2/Model/ListImagesTagsResponse.cs b/Services/Ims/V2/Model/ListImagesTagsResponse.cs new file mode 100755 index 0000000..908e2e9 --- /dev/null +++ b/Services/Ims/V2/Model/ListImagesTagsResponse.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Response Object + /// + public class ListImagesTagsResponse : SdkResponse + { + + [JsonProperty("tags", NullValueHandling = NullValueHandling.Ignore)] + public List Tags { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ListImagesTagsResponse {\n"); + sb.Append(" tags: ").Append(Tags).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ListImagesTagsResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ListImagesTagsResponse input) + { + if (input == null) + return false; + + return + ( + this.Tags == input.Tags || + this.Tags != null && + input.Tags != null && + this.Tags.SequenceEqual(input.Tags) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Tags != null) + hashCode = hashCode * 59 + this.Tags.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/ListOsVersionsRequest.cs b/Services/Ims/V2/Model/ListOsVersionsRequest.cs new file mode 100755 index 0000000..ef385d8 --- /dev/null +++ b/Services/Ims/V2/Model/ListOsVersionsRequest.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Request Object + /// + public class ListOsVersionsRequest + { + + [SDKProperty("tag", IsQuery = true)] + [JsonProperty("tag", NullValueHandling = NullValueHandling.Ignore)] + public string Tag { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ListOsVersionsRequest {\n"); + sb.Append(" tag: ").Append(Tag).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ListOsVersionsRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ListOsVersionsRequest input) + { + if (input == null) + return false; + + return + ( + this.Tag == input.Tag || + (this.Tag != null && + this.Tag.Equals(input.Tag)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Tag != null) + hashCode = hashCode * 59 + this.Tag.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/ListOsVersionsResponse.cs b/Services/Ims/V2/Model/ListOsVersionsResponse.cs new file mode 100755 index 0000000..6674920 --- /dev/null +++ b/Services/Ims/V2/Model/ListOsVersionsResponse.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Response Object + /// + public class ListOsVersionsResponse : SdkResponse + { + + [JsonProperty("body", NullValueHandling = NullValueHandling.Ignore)] + public List Body { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ListOsVersionsResponse {\n"); + sb.Append(" body: ").Append(Body).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ListOsVersionsResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ListOsVersionsResponse input) + { + if (input == null) + return false; + + return + ( + this.Body == input.Body || + this.Body != null && + input.Body != null && + this.Body.SequenceEqual(input.Body) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Body != null) + hashCode = hashCode * 59 + this.Body.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/ListOsVersionsResponseBody.cs b/Services/Ims/V2/Model/ListOsVersionsResponseBody.cs new file mode 100755 index 0000000..5bfb851 --- /dev/null +++ b/Services/Ims/V2/Model/ListOsVersionsResponseBody.cs @@ -0,0 +1,85 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// 查询操作系统列表响应体 + /// + public class ListOsVersionsResponseBody + { + + [JsonProperty("platform", NullValueHandling = NullValueHandling.Ignore)] + public string Platform { get; set; } + + [JsonProperty("version_list", NullValueHandling = NullValueHandling.Ignore)] + public List VersionList { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ListOsVersionsResponseBody {\n"); + sb.Append(" platform: ").Append(Platform).Append("\n"); + sb.Append(" versionList: ").Append(VersionList).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ListOsVersionsResponseBody); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ListOsVersionsResponseBody input) + { + if (input == null) + return false; + + return + ( + this.Platform == input.Platform || + (this.Platform != null && + this.Platform.Equals(input.Platform)) + ) && + ( + this.VersionList == input.VersionList || + this.VersionList != null && + input.VersionList != null && + this.VersionList.SequenceEqual(input.VersionList) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Platform != null) + hashCode = hashCode * 59 + this.Platform.GetHashCode(); + if (this.VersionList != null) + hashCode = hashCode * 59 + this.VersionList.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/ListTagsRequest.cs b/Services/Ims/V2/Model/ListTagsRequest.cs new file mode 100755 index 0000000..7a05ca3 --- /dev/null +++ b/Services/Ims/V2/Model/ListTagsRequest.cs @@ -0,0 +1,950 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Request Object + /// + public class ListTagsRequest + { + [JsonConverter(typeof(EnumClassConverter))] + public class ImagetypeEnum + { + /// + /// Enum GOLD for value: gold + /// + public static readonly ImagetypeEnum GOLD = new ImagetypeEnum("gold"); + + /// + /// Enum PRIVATE for value: private + /// + public static readonly ImagetypeEnum PRIVATE = new ImagetypeEnum("private"); + + /// + /// Enum SHARED for value: shared + /// + public static readonly ImagetypeEnum SHARED = new ImagetypeEnum("shared"); + + /// + /// Enum MARKET for value: market + /// + public static readonly ImagetypeEnum MARKET = new ImagetypeEnum("market"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "gold", GOLD }, + { "private", PRIVATE }, + { "shared", SHARED }, + { "market", MARKET }, + }; + + private string _value; + + public ImagetypeEnum() + { + + } + + public ImagetypeEnum(string value) + { + _value = value; + } + + public static ImagetypeEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as ImagetypeEnum)) + { + return true; + } + + return false; + } + + public bool Equals(ImagetypeEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(ImagetypeEnum a, ImagetypeEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(ImagetypeEnum a, ImagetypeEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class StatusEnum + { + /// + /// Enum QUEUED for value: queued + /// + public static readonly StatusEnum QUEUED = new StatusEnum("queued"); + + /// + /// Enum SAVING for value: saving + /// + public static readonly StatusEnum SAVING = new StatusEnum("saving"); + + /// + /// Enum DELETED for value: deleted + /// + public static readonly StatusEnum DELETED = new StatusEnum("deleted"); + + /// + /// Enum KILLED for value: killed + /// + public static readonly StatusEnum KILLED = new StatusEnum("killed"); + + /// + /// Enum ACTIVE for value: active + /// + public static readonly StatusEnum ACTIVE = new StatusEnum("active"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "queued", QUEUED }, + { "saving", SAVING }, + { "deleted", DELETED }, + { "killed", KILLED }, + { "active", ACTIVE }, + }; + + private string _value; + + public StatusEnum() + { + + } + + public StatusEnum(string value) + { + _value = value; + } + + public static StatusEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as StatusEnum)) + { + return true; + } + + return false; + } + + public bool Equals(StatusEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(StatusEnum a, StatusEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(StatusEnum a, StatusEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class OsTypeEnum + { + /// + /// Enum LINUX for value: Linux + /// + public static readonly OsTypeEnum LINUX = new OsTypeEnum("Linux"); + + /// + /// Enum WINDOWS for value: Windows + /// + public static readonly OsTypeEnum WINDOWS = new OsTypeEnum("Windows"); + + /// + /// Enum OTHER for value: Other + /// + public static readonly OsTypeEnum OTHER = new OsTypeEnum("Other"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "Linux", LINUX }, + { "Windows", WINDOWS }, + { "Other", OTHER }, + }; + + private string _value; + + public OsTypeEnum() + { + + } + + public OsTypeEnum(string value) + { + _value = value; + } + + public static OsTypeEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as OsTypeEnum)) + { + return true; + } + + return false; + } + + public bool Equals(OsTypeEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(OsTypeEnum a, OsTypeEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(OsTypeEnum a, OsTypeEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class MemberStatusEnum + { + /// + /// Enum ACCEPTED for value: accepted + /// + public static readonly MemberStatusEnum ACCEPTED = new MemberStatusEnum("accepted"); + + /// + /// Enum REJECTED for value: rejected + /// + public static readonly MemberStatusEnum REJECTED = new MemberStatusEnum("rejected"); + + /// + /// Enum PENDING for value: pending + /// + public static readonly MemberStatusEnum PENDING = new MemberStatusEnum("pending"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "accepted", ACCEPTED }, + { "rejected", REJECTED }, + { "pending", PENDING }, + }; + + private string _value; + + public MemberStatusEnum() + { + + } + + public MemberStatusEnum(string value) + { + _value = value; + } + + public static MemberStatusEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as MemberStatusEnum)) + { + return true; + } + + return false; + } + + public bool Equals(MemberStatusEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(MemberStatusEnum a, MemberStatusEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(MemberStatusEnum a, MemberStatusEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class VirtualEnvTypeEnum + { + /// + /// Enum FUSIONCOMPUTE for value: FusionCompute + /// + public static readonly VirtualEnvTypeEnum FUSIONCOMPUTE = new VirtualEnvTypeEnum("FusionCompute"); + + /// + /// Enum IRONIC for value: Ironic + /// + public static readonly VirtualEnvTypeEnum IRONIC = new VirtualEnvTypeEnum("Ironic"); + + /// + /// Enum DATAIMAGE for value: DataImage + /// + public static readonly VirtualEnvTypeEnum DATAIMAGE = new VirtualEnvTypeEnum("DataImage"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "FusionCompute", FUSIONCOMPUTE }, + { "Ironic", IRONIC }, + { "DataImage", DATAIMAGE }, + }; + + private string _value; + + public VirtualEnvTypeEnum() + { + + } + + public VirtualEnvTypeEnum(string value) + { + _value = value; + } + + public static VirtualEnvTypeEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as VirtualEnvTypeEnum)) + { + return true; + } + + return false; + } + + public bool Equals(VirtualEnvTypeEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(VirtualEnvTypeEnum a, VirtualEnvTypeEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(VirtualEnvTypeEnum a, VirtualEnvTypeEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class ArchitectureEnum + { + /// + /// Enum X86 for value: x86 + /// + public static readonly ArchitectureEnum X86 = new ArchitectureEnum("x86"); + + /// + /// Enum ARM for value: arm + /// + public static readonly ArchitectureEnum ARM = new ArchitectureEnum("arm"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "x86", X86 }, + { "arm", ARM }, + }; + + private string _value; + + public ArchitectureEnum() + { + + } + + public ArchitectureEnum(string value) + { + _value = value; + } + + public static ArchitectureEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as ArchitectureEnum)) + { + return true; + } + + return false; + } + + public bool Equals(ArchitectureEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(ArchitectureEnum a, ArchitectureEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(ArchitectureEnum a, ArchitectureEnum b) + { + return !(a == b); + } + } + + + [SDKProperty("limit", IsQuery = true)] + [JsonProperty("limit", NullValueHandling = NullValueHandling.Ignore)] + public int? Limit { get; set; } + + [SDKProperty("page", IsQuery = true)] + [JsonProperty("page", NullValueHandling = NullValueHandling.Ignore)] + public int? Page { get; set; } + + [SDKProperty("__imagetype", IsQuery = true)] + [JsonProperty("__imagetype", NullValueHandling = NullValueHandling.Ignore)] + public ImagetypeEnum Imagetype { get; set; } + [SDKProperty("id", IsQuery = true)] + [JsonProperty("id", NullValueHandling = NullValueHandling.Ignore)] + public string Id { get; set; } + + [SDKProperty("status", IsQuery = true)] + [JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)] + public StatusEnum Status { get; set; } + [SDKProperty("name", IsQuery = true)] + [JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)] + public string Name { get; set; } + + [SDKProperty("min_disk", IsQuery = true)] + [JsonProperty("min_disk", NullValueHandling = NullValueHandling.Ignore)] + public int? MinDisk { get; set; } + + [SDKProperty("__platform", IsQuery = true)] + [JsonProperty("__platform", NullValueHandling = NullValueHandling.Ignore)] + public string Platform { get; set; } + + [SDKProperty("__os_type", IsQuery = true)] + [JsonProperty("__os_type", NullValueHandling = NullValueHandling.Ignore)] + public OsTypeEnum OsType { get; set; } + [SDKProperty("member_status", IsQuery = true)] + [JsonProperty("member_status", NullValueHandling = NullValueHandling.Ignore)] + public MemberStatusEnum MemberStatus { get; set; } + [SDKProperty("virtual_env_type", IsQuery = true)] + [JsonProperty("virtual_env_type", NullValueHandling = NullValueHandling.Ignore)] + public VirtualEnvTypeEnum VirtualEnvType { get; set; } + [SDKProperty("enterprise_project_id", IsQuery = true)] + [JsonProperty("enterprise_project_id", NullValueHandling = NullValueHandling.Ignore)] + public string EnterpriseProjectId { get; set; } + + [SDKProperty("architecture", IsQuery = true)] + [JsonProperty("architecture", NullValueHandling = NullValueHandling.Ignore)] + public ArchitectureEnum Architecture { get; set; } + [SDKProperty("created_at", IsQuery = true)] + [JsonProperty("created_at", NullValueHandling = NullValueHandling.Ignore)] + public string CreatedAt { get; set; } + + [SDKProperty("updated_at", IsQuery = true)] + [JsonProperty("updated_at", NullValueHandling = NullValueHandling.Ignore)] + public string UpdatedAt { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ListTagsRequest {\n"); + sb.Append(" limit: ").Append(Limit).Append("\n"); + sb.Append(" page: ").Append(Page).Append("\n"); + sb.Append(" imagetype: ").Append(Imagetype).Append("\n"); + sb.Append(" id: ").Append(Id).Append("\n"); + sb.Append(" status: ").Append(Status).Append("\n"); + sb.Append(" name: ").Append(Name).Append("\n"); + sb.Append(" minDisk: ").Append(MinDisk).Append("\n"); + sb.Append(" platform: ").Append(Platform).Append("\n"); + sb.Append(" osType: ").Append(OsType).Append("\n"); + sb.Append(" memberStatus: ").Append(MemberStatus).Append("\n"); + sb.Append(" virtualEnvType: ").Append(VirtualEnvType).Append("\n"); + sb.Append(" enterpriseProjectId: ").Append(EnterpriseProjectId).Append("\n"); + sb.Append(" architecture: ").Append(Architecture).Append("\n"); + sb.Append(" createdAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" updatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ListTagsRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ListTagsRequest input) + { + if (input == null) + return false; + + return + ( + this.Limit == input.Limit || + (this.Limit != null && + this.Limit.Equals(input.Limit)) + ) && + ( + this.Page == input.Page || + (this.Page != null && + this.Page.Equals(input.Page)) + ) && + ( + this.Imagetype == input.Imagetype || + (this.Imagetype != null && + this.Imagetype.Equals(input.Imagetype)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Status == input.Status || + (this.Status != null && + this.Status.Equals(input.Status)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.MinDisk == input.MinDisk || + (this.MinDisk != null && + this.MinDisk.Equals(input.MinDisk)) + ) && + ( + this.Platform == input.Platform || + (this.Platform != null && + this.Platform.Equals(input.Platform)) + ) && + ( + this.OsType == input.OsType || + (this.OsType != null && + this.OsType.Equals(input.OsType)) + ) && + ( + this.MemberStatus == input.MemberStatus || + (this.MemberStatus != null && + this.MemberStatus.Equals(input.MemberStatus)) + ) && + ( + this.VirtualEnvType == input.VirtualEnvType || + (this.VirtualEnvType != null && + this.VirtualEnvType.Equals(input.VirtualEnvType)) + ) && + ( + this.EnterpriseProjectId == input.EnterpriseProjectId || + (this.EnterpriseProjectId != null && + this.EnterpriseProjectId.Equals(input.EnterpriseProjectId)) + ) && + ( + this.Architecture == input.Architecture || + (this.Architecture != null && + this.Architecture.Equals(input.Architecture)) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.UpdatedAt == input.UpdatedAt || + (this.UpdatedAt != null && + this.UpdatedAt.Equals(input.UpdatedAt)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Limit != null) + hashCode = hashCode * 59 + this.Limit.GetHashCode(); + if (this.Page != null) + hashCode = hashCode * 59 + this.Page.GetHashCode(); + if (this.Imagetype != null) + hashCode = hashCode * 59 + this.Imagetype.GetHashCode(); + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.Status != null) + hashCode = hashCode * 59 + this.Status.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.MinDisk != null) + hashCode = hashCode * 59 + this.MinDisk.GetHashCode(); + if (this.Platform != null) + hashCode = hashCode * 59 + this.Platform.GetHashCode(); + if (this.OsType != null) + hashCode = hashCode * 59 + this.OsType.GetHashCode(); + if (this.MemberStatus != null) + hashCode = hashCode * 59 + this.MemberStatus.GetHashCode(); + if (this.VirtualEnvType != null) + hashCode = hashCode * 59 + this.VirtualEnvType.GetHashCode(); + if (this.EnterpriseProjectId != null) + hashCode = hashCode * 59 + this.EnterpriseProjectId.GetHashCode(); + if (this.Architecture != null) + hashCode = hashCode * 59 + this.Architecture.GetHashCode(); + if (this.CreatedAt != null) + hashCode = hashCode * 59 + this.CreatedAt.GetHashCode(); + if (this.UpdatedAt != null) + hashCode = hashCode * 59 + this.UpdatedAt.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/ListTagsResponse.cs b/Services/Ims/V2/Model/ListTagsResponse.cs new file mode 100755 index 0000000..0b58c6c --- /dev/null +++ b/Services/Ims/V2/Model/ListTagsResponse.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Response Object + /// + public class ListTagsResponse : SdkResponse + { + + [JsonProperty("tags", NullValueHandling = NullValueHandling.Ignore)] + public List Tags { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ListTagsResponse {\n"); + sb.Append(" tags: ").Append(Tags).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ListTagsResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ListTagsResponse input) + { + if (input == null) + return false; + + return + ( + this.Tags == input.Tags || + this.Tags != null && + input.Tags != null && + this.Tags.SequenceEqual(input.Tags) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Tags != null) + hashCode = hashCode * 59 + this.Tags.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/ListVersionsRequest.cs b/Services/Ims/V2/Model/ListVersionsRequest.cs new file mode 100755 index 0000000..069aaaa --- /dev/null +++ b/Services/Ims/V2/Model/ListVersionsRequest.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Request Object + /// + public class ListVersionsRequest + { + + + } +} diff --git a/Services/Ims/V2/Model/ListVersionsResponse.cs b/Services/Ims/V2/Model/ListVersionsResponse.cs new file mode 100755 index 0000000..6566f95 --- /dev/null +++ b/Services/Ims/V2/Model/ListVersionsResponse.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Response Object + /// + public class ListVersionsResponse : SdkResponse + { + + [JsonProperty("versions", NullValueHandling = NullValueHandling.Ignore)] + public List Versions { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ListVersionsResponse {\n"); + sb.Append(" versions: ").Append(Versions).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ListVersionsResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ListVersionsResponse input) + { + if (input == null) + return false; + + return + ( + this.Versions == input.Versions || + this.Versions != null && + input.Versions != null && + this.Versions.SequenceEqual(input.Versions) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Versions != null) + hashCode = hashCode * 59 + this.Versions.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/OsVersionInfo.cs b/Services/Ims/V2/Model/OsVersionInfo.cs new file mode 100755 index 0000000..2b8e0ea --- /dev/null +++ b/Services/Ims/V2/Model/OsVersionInfo.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// 操作系统详情 + /// + public class OsVersionInfo + { + + [JsonProperty("platform", NullValueHandling = NullValueHandling.Ignore)] + public string Platform { get; set; } + + [JsonProperty("os_version_key", NullValueHandling = NullValueHandling.Ignore)] + public string OsVersionKey { get; set; } + + [JsonProperty("os_version", NullValueHandling = NullValueHandling.Ignore)] + public string OsVersion { get; set; } + + [JsonProperty("os_bit", NullValueHandling = NullValueHandling.Ignore)] + public int? OsBit { get; set; } + + [JsonProperty("os_type", NullValueHandling = NullValueHandling.Ignore)] + public string OsType { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class OsVersionInfo {\n"); + sb.Append(" platform: ").Append(Platform).Append("\n"); + sb.Append(" osVersionKey: ").Append(OsVersionKey).Append("\n"); + sb.Append(" osVersion: ").Append(OsVersion).Append("\n"); + sb.Append(" osBit: ").Append(OsBit).Append("\n"); + sb.Append(" osType: ").Append(OsType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as OsVersionInfo); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(OsVersionInfo input) + { + if (input == null) + return false; + + return + ( + this.Platform == input.Platform || + (this.Platform != null && + this.Platform.Equals(input.Platform)) + ) && + ( + this.OsVersionKey == input.OsVersionKey || + (this.OsVersionKey != null && + this.OsVersionKey.Equals(input.OsVersionKey)) + ) && + ( + this.OsVersion == input.OsVersion || + (this.OsVersion != null && + this.OsVersion.Equals(input.OsVersion)) + ) && + ( + this.OsBit == input.OsBit || + (this.OsBit != null && + this.OsBit.Equals(input.OsBit)) + ) && + ( + this.OsType == input.OsType || + (this.OsType != null && + this.OsType.Equals(input.OsType)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Platform != null) + hashCode = hashCode * 59 + this.Platform.GetHashCode(); + if (this.OsVersionKey != null) + hashCode = hashCode * 59 + this.OsVersionKey.GetHashCode(); + if (this.OsVersion != null) + hashCode = hashCode * 59 + this.OsVersion.GetHashCode(); + if (this.OsBit != null) + hashCode = hashCode * 59 + this.OsBit.GetHashCode(); + if (this.OsType != null) + hashCode = hashCode * 59 + this.OsType.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/OsVersionResponse.cs b/Services/Ims/V2/Model/OsVersionResponse.cs new file mode 100755 index 0000000..737a808 --- /dev/null +++ b/Services/Ims/V2/Model/OsVersionResponse.cs @@ -0,0 +1,96 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// 查询版本响应体 + /// + public class OsVersionResponse + { + + [JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)] + public string Status { get; set; } + + [JsonProperty("id", NullValueHandling = NullValueHandling.Ignore)] + public string Id { get; set; } + + [JsonProperty("links", NullValueHandling = NullValueHandling.Ignore)] + public List Links { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class OsVersionResponse {\n"); + sb.Append(" status: ").Append(Status).Append("\n"); + sb.Append(" id: ").Append(Id).Append("\n"); + sb.Append(" links: ").Append(Links).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as OsVersionResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(OsVersionResponse input) + { + if (input == null) + return false; + + return + ( + this.Status == input.Status || + (this.Status != null && + this.Status.Equals(input.Status)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Links == input.Links || + this.Links != null && + input.Links != null && + this.Links.SequenceEqual(input.Links) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Status != null) + hashCode = hashCode * 59 + this.Status.GetHashCode(); + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.Links != null) + hashCode = hashCode * 59 + this.Links.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/QueryImageByTagsResourceDetail.cs b/Services/Ims/V2/Model/QueryImageByTagsResourceDetail.cs new file mode 100755 index 0000000..1c4fe3c --- /dev/null +++ b/Services/Ims/V2/Model/QueryImageByTagsResourceDetail.cs @@ -0,0 +1,73 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// 镜像详情 + /// + public class QueryImageByTagsResourceDetail + { + + [JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)] + public string Status { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class QueryImageByTagsResourceDetail {\n"); + sb.Append(" status: ").Append(Status).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as QueryImageByTagsResourceDetail); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(QueryImageByTagsResourceDetail input) + { + if (input == null) + return false; + + return + ( + this.Status == input.Status || + (this.Status != null && + this.Status.Equals(input.Status)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Status != null) + hashCode = hashCode * 59 + this.Status.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/QuickImportImageByFileRequestBody.cs b/Services/Ims/V2/Model/QuickImportImageByFileRequestBody.cs new file mode 100755 index 0000000..f8dacd5 --- /dev/null +++ b/Services/Ims/V2/Model/QuickImportImageByFileRequestBody.cs @@ -0,0 +1,521 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// 快速通道创建镜像的请求体 + /// + public class QuickImportImageByFileRequestBody + { + [JsonConverter(typeof(EnumClassConverter))] + public class TypeEnum + { + /// + /// Enum ECS for value: ECS + /// + public static readonly TypeEnum ECS = new TypeEnum("ECS"); + + /// + /// Enum BMS for value: BMS + /// + public static readonly TypeEnum BMS = new TypeEnum("BMS"); + + /// + /// Enum DATAIMAGE for value: DataImage + /// + public static readonly TypeEnum DATAIMAGE = new TypeEnum("DataImage"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "ECS", ECS }, + { "BMS", BMS }, + { "DataImage", DATAIMAGE }, + }; + + private string _value; + + public TypeEnum() + { + + } + + public TypeEnum(string value) + { + _value = value; + } + + public static TypeEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as TypeEnum)) + { + return true; + } + + return false; + } + + public bool Equals(TypeEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(TypeEnum a, TypeEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(TypeEnum a, TypeEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class ArchitectureEnum + { + /// + /// Enum X86 for value: x86 + /// + public static readonly ArchitectureEnum X86 = new ArchitectureEnum("x86"); + + /// + /// Enum ARM for value: arm + /// + public static readonly ArchitectureEnum ARM = new ArchitectureEnum("arm"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "x86", X86 }, + { "arm", ARM }, + }; + + private string _value; + + public ArchitectureEnum() + { + + } + + public ArchitectureEnum(string value) + { + _value = value; + } + + public static ArchitectureEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as ArchitectureEnum)) + { + return true; + } + + return false; + } + + public bool Equals(ArchitectureEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(ArchitectureEnum a, ArchitectureEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(ArchitectureEnum a, ArchitectureEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class OsTypeEnum + { + /// + /// Enum LINUX for value: Linux + /// + public static readonly OsTypeEnum LINUX = new OsTypeEnum("Linux"); + + /// + /// Enum WINDOWS for value: Windows + /// + public static readonly OsTypeEnum WINDOWS = new OsTypeEnum("Windows"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "Linux", LINUX }, + { "Windows", WINDOWS }, + }; + + private string _value; + + public OsTypeEnum() + { + + } + + public OsTypeEnum(string value) + { + _value = value; + } + + public static OsTypeEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as OsTypeEnum)) + { + return true; + } + + return false; + } + + public bool Equals(OsTypeEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(OsTypeEnum a, OsTypeEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(OsTypeEnum a, OsTypeEnum b) + { + return !(a == b); + } + } + + + [JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)] + public string Name { get; set; } + + [JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)] + public string Description { get; set; } + + [JsonProperty("os_version", NullValueHandling = NullValueHandling.Ignore)] + public string OsVersion { get; set; } + + [JsonProperty("image_url", NullValueHandling = NullValueHandling.Ignore)] + public string ImageUrl { get; set; } + + [JsonProperty("min_disk", NullValueHandling = NullValueHandling.Ignore)] + public int? MinDisk { get; set; } + + [JsonProperty("tags", NullValueHandling = NullValueHandling.Ignore)] + public List Tags { get; set; } + + [JsonProperty("type", NullValueHandling = NullValueHandling.Ignore)] + public TypeEnum Type { get; set; } + [JsonProperty("enterprise_project_id", NullValueHandling = NullValueHandling.Ignore)] + public string EnterpriseProjectId { get; set; } + + [JsonProperty("architecture", NullValueHandling = NullValueHandling.Ignore)] + public ArchitectureEnum Architecture { get; set; } + [JsonProperty("os_type", NullValueHandling = NullValueHandling.Ignore)] + public OsTypeEnum OsType { get; set; } + [JsonProperty("image_tags", NullValueHandling = NullValueHandling.Ignore)] + public List ImageTags { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class QuickImportImageByFileRequestBody {\n"); + sb.Append(" name: ").Append(Name).Append("\n"); + sb.Append(" description: ").Append(Description).Append("\n"); + sb.Append(" osVersion: ").Append(OsVersion).Append("\n"); + sb.Append(" imageUrl: ").Append(ImageUrl).Append("\n"); + sb.Append(" minDisk: ").Append(MinDisk).Append("\n"); + sb.Append(" tags: ").Append(Tags).Append("\n"); + sb.Append(" type: ").Append(Type).Append("\n"); + sb.Append(" enterpriseProjectId: ").Append(EnterpriseProjectId).Append("\n"); + sb.Append(" architecture: ").Append(Architecture).Append("\n"); + sb.Append(" osType: ").Append(OsType).Append("\n"); + sb.Append(" imageTags: ").Append(ImageTags).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as QuickImportImageByFileRequestBody); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(QuickImportImageByFileRequestBody input) + { + if (input == null) + return false; + + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.OsVersion == input.OsVersion || + (this.OsVersion != null && + this.OsVersion.Equals(input.OsVersion)) + ) && + ( + this.ImageUrl == input.ImageUrl || + (this.ImageUrl != null && + this.ImageUrl.Equals(input.ImageUrl)) + ) && + ( + this.MinDisk == input.MinDisk || + (this.MinDisk != null && + this.MinDisk.Equals(input.MinDisk)) + ) && + ( + this.Tags == input.Tags || + this.Tags != null && + input.Tags != null && + this.Tags.SequenceEqual(input.Tags) + ) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && + ( + this.EnterpriseProjectId == input.EnterpriseProjectId || + (this.EnterpriseProjectId != null && + this.EnterpriseProjectId.Equals(input.EnterpriseProjectId)) + ) && + ( + this.Architecture == input.Architecture || + (this.Architecture != null && + this.Architecture.Equals(input.Architecture)) + ) && + ( + this.OsType == input.OsType || + (this.OsType != null && + this.OsType.Equals(input.OsType)) + ) && + ( + this.ImageTags == input.ImageTags || + this.ImageTags != null && + input.ImageTags != null && + this.ImageTags.SequenceEqual(input.ImageTags) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.OsVersion != null) + hashCode = hashCode * 59 + this.OsVersion.GetHashCode(); + if (this.ImageUrl != null) + hashCode = hashCode * 59 + this.ImageUrl.GetHashCode(); + if (this.MinDisk != null) + hashCode = hashCode * 59 + this.MinDisk.GetHashCode(); + if (this.Tags != null) + hashCode = hashCode * 59 + this.Tags.GetHashCode(); + if (this.Type != null) + hashCode = hashCode * 59 + this.Type.GetHashCode(); + if (this.EnterpriseProjectId != null) + hashCode = hashCode * 59 + this.EnterpriseProjectId.GetHashCode(); + if (this.Architecture != null) + hashCode = hashCode * 59 + this.Architecture.GetHashCode(); + if (this.OsType != null) + hashCode = hashCode * 59 + this.OsType.GetHashCode(); + if (this.ImageTags != null) + hashCode = hashCode * 59 + this.ImageTags.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/Quota.cs b/Services/Ims/V2/Model/Quota.cs new file mode 100755 index 0000000..11b30d7 --- /dev/null +++ b/Services/Ims/V2/Model/Quota.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// quota响应 + /// + public class Quota + { + + [JsonProperty("resources", NullValueHandling = NullValueHandling.Ignore)] + public List Resources { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class Quota {\n"); + sb.Append(" resources: ").Append(Resources).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as Quota); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(Quota input) + { + if (input == null) + return false; + + return + ( + this.Resources == input.Resources || + this.Resources != null && + input.Resources != null && + this.Resources.SequenceEqual(input.Resources) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Resources != null) + hashCode = hashCode * 59 + this.Resources.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/QuotaInfo.cs b/Services/Ims/V2/Model/QuotaInfo.cs new file mode 100755 index 0000000..32fc6e0 --- /dev/null +++ b/Services/Ims/V2/Model/QuotaInfo.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// quota详细信息 + /// + public class QuotaInfo + { + + [JsonProperty("type", NullValueHandling = NullValueHandling.Ignore)] + public string Type { get; set; } + + [JsonProperty("used", NullValueHandling = NullValueHandling.Ignore)] + public int? Used { get; set; } + + [JsonProperty("quota", NullValueHandling = NullValueHandling.Ignore)] + public int? Quota { get; set; } + + [JsonProperty("min", NullValueHandling = NullValueHandling.Ignore)] + public int? Min { get; set; } + + [JsonProperty("max", NullValueHandling = NullValueHandling.Ignore)] + public int? Max { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class QuotaInfo {\n"); + sb.Append(" type: ").Append(Type).Append("\n"); + sb.Append(" used: ").Append(Used).Append("\n"); + sb.Append(" quota: ").Append(Quota).Append("\n"); + sb.Append(" min: ").Append(Min).Append("\n"); + sb.Append(" max: ").Append(Max).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as QuotaInfo); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(QuotaInfo input) + { + if (input == null) + return false; + + return + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && + ( + this.Used == input.Used || + (this.Used != null && + this.Used.Equals(input.Used)) + ) && + ( + this.Quota == input.Quota || + (this.Quota != null && + this.Quota.Equals(input.Quota)) + ) && + ( + this.Min == input.Min || + (this.Min != null && + this.Min.Equals(input.Min)) + ) && + ( + this.Max == input.Max || + (this.Max != null && + this.Max.Equals(input.Max)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Type != null) + hashCode = hashCode * 59 + this.Type.GetHashCode(); + if (this.Used != null) + hashCode = hashCode * 59 + this.Used.GetHashCode(); + if (this.Quota != null) + hashCode = hashCode * 59 + this.Quota.GetHashCode(); + if (this.Min != null) + hashCode = hashCode * 59 + this.Min.GetHashCode(); + if (this.Max != null) + hashCode = hashCode * 59 + this.Max.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/RegisterImageRequest.cs b/Services/Ims/V2/Model/RegisterImageRequest.cs new file mode 100755 index 0000000..5a09d8a --- /dev/null +++ b/Services/Ims/V2/Model/RegisterImageRequest.cs @@ -0,0 +1,86 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Request Object + /// + public class RegisterImageRequest + { + + [SDKProperty("image_id", IsPath = true)] + [JsonProperty("image_id", NullValueHandling = NullValueHandling.Ignore)] + public string ImageId { get; set; } + + [SDKProperty("body", IsBody = true)] + [JsonProperty("body", NullValueHandling = NullValueHandling.Ignore)] + public RegisterImageRequestBody Body { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RegisterImageRequest {\n"); + sb.Append(" imageId: ").Append(ImageId).Append("\n"); + sb.Append(" body: ").Append(Body).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as RegisterImageRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(RegisterImageRequest input) + { + if (input == null) + return false; + + return + ( + this.ImageId == input.ImageId || + (this.ImageId != null && + this.ImageId.Equals(input.ImageId)) + ) && + ( + this.Body == input.Body || + (this.Body != null && + this.Body.Equals(input.Body)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ImageId != null) + hashCode = hashCode * 59 + this.ImageId.GetHashCode(); + if (this.Body != null) + hashCode = hashCode * 59 + this.Body.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/RegisterImageRequestBody.cs b/Services/Ims/V2/Model/RegisterImageRequestBody.cs new file mode 100755 index 0000000..75072b1 --- /dev/null +++ b/Services/Ims/V2/Model/RegisterImageRequestBody.cs @@ -0,0 +1,73 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// 镜像上传请求体 + /// + public class RegisterImageRequestBody + { + + [JsonProperty("image_url", NullValueHandling = NullValueHandling.Ignore)] + public string ImageUrl { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RegisterImageRequestBody {\n"); + sb.Append(" imageUrl: ").Append(ImageUrl).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as RegisterImageRequestBody); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(RegisterImageRequestBody input) + { + if (input == null) + return false; + + return + ( + this.ImageUrl == input.ImageUrl || + (this.ImageUrl != null && + this.ImageUrl.Equals(input.ImageUrl)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ImageUrl != null) + hashCode = hashCode * 59 + this.ImageUrl.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/RegisterImageResponse.cs b/Services/Ims/V2/Model/RegisterImageResponse.cs new file mode 100755 index 0000000..8a4a3c3 --- /dev/null +++ b/Services/Ims/V2/Model/RegisterImageResponse.cs @@ -0,0 +1,73 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Response Object + /// + public class RegisterImageResponse : SdkResponse + { + + [JsonProperty("job_id", NullValueHandling = NullValueHandling.Ignore)] + public string JobId { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RegisterImageResponse {\n"); + sb.Append(" jobId: ").Append(JobId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as RegisterImageResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(RegisterImageResponse input) + { + if (input == null) + return false; + + return + ( + this.JobId == input.JobId || + (this.JobId != null && + this.JobId.Equals(input.JobId)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.JobId != null) + hashCode = hashCode * 59 + this.JobId.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/ResourceTag.cs b/Services/Ims/V2/Model/ResourceTag.cs new file mode 100755 index 0000000..ff5d4f6 --- /dev/null +++ b/Services/Ims/V2/Model/ResourceTag.cs @@ -0,0 +1,84 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// 标签键值 + /// + public class ResourceTag + { + + [JsonProperty("key", NullValueHandling = NullValueHandling.Ignore)] + public string Key { get; set; } + + [JsonProperty("value", NullValueHandling = NullValueHandling.Ignore)] + public string Value { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ResourceTag {\n"); + sb.Append(" key: ").Append(Key).Append("\n"); + sb.Append(" value: ").Append(Value).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ResourceTag); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ResourceTag input) + { + if (input == null) + return false; + + return + ( + this.Key == input.Key || + (this.Key != null && + this.Key.Equals(input.Key)) + ) && + ( + this.Value == input.Value || + (this.Value != null && + this.Value.Equals(input.Value)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Key != null) + hashCode = hashCode * 59 + this.Key.GetHashCode(); + if (this.Value != null) + hashCode = hashCode * 59 + this.Value.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/ShowImageByTagsResource.cs b/Services/Ims/V2/Model/ShowImageByTagsResource.cs new file mode 100755 index 0000000..320a549 --- /dev/null +++ b/Services/Ims/V2/Model/ShowImageByTagsResource.cs @@ -0,0 +1,107 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// resource字段数据结构说明 + /// + public class ShowImageByTagsResource + { + + [JsonProperty("resource_id", NullValueHandling = NullValueHandling.Ignore)] + public string ResourceId { get; set; } + + [JsonProperty("resource_detail", NullValueHandling = NullValueHandling.Ignore)] + public QueryImageByTagsResourceDetail ResourceDetail { get; set; } + + [JsonProperty("tags", NullValueHandling = NullValueHandling.Ignore)] + public List Tags { get; set; } + + [JsonProperty("resource_name", NullValueHandling = NullValueHandling.Ignore)] + public string ResourceName { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ShowImageByTagsResource {\n"); + sb.Append(" resourceId: ").Append(ResourceId).Append("\n"); + sb.Append(" resourceDetail: ").Append(ResourceDetail).Append("\n"); + sb.Append(" tags: ").Append(Tags).Append("\n"); + sb.Append(" resourceName: ").Append(ResourceName).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ShowImageByTagsResource); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ShowImageByTagsResource input) + { + if (input == null) + return false; + + return + ( + this.ResourceId == input.ResourceId || + (this.ResourceId != null && + this.ResourceId.Equals(input.ResourceId)) + ) && + ( + this.ResourceDetail == input.ResourceDetail || + (this.ResourceDetail != null && + this.ResourceDetail.Equals(input.ResourceDetail)) + ) && + ( + this.Tags == input.Tags || + this.Tags != null && + input.Tags != null && + this.Tags.SequenceEqual(input.Tags) + ) && + ( + this.ResourceName == input.ResourceName || + (this.ResourceName != null && + this.ResourceName.Equals(input.ResourceName)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ResourceId != null) + hashCode = hashCode * 59 + this.ResourceId.GetHashCode(); + if (this.ResourceDetail != null) + hashCode = hashCode * 59 + this.ResourceDetail.GetHashCode(); + if (this.Tags != null) + hashCode = hashCode * 59 + this.Tags.GetHashCode(); + if (this.ResourceName != null) + hashCode = hashCode * 59 + this.ResourceName.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/ShowImageQuotaRequest.cs b/Services/Ims/V2/Model/ShowImageQuotaRequest.cs new file mode 100755 index 0000000..aa6fd62 --- /dev/null +++ b/Services/Ims/V2/Model/ShowImageQuotaRequest.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Request Object + /// + public class ShowImageQuotaRequest + { + + + } +} diff --git a/Services/Ims/V2/Model/ShowImageQuotaResponse.cs b/Services/Ims/V2/Model/ShowImageQuotaResponse.cs new file mode 100755 index 0000000..3c56a1f --- /dev/null +++ b/Services/Ims/V2/Model/ShowImageQuotaResponse.cs @@ -0,0 +1,73 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Response Object + /// + public class ShowImageQuotaResponse : SdkResponse + { + + [JsonProperty("quotas", NullValueHandling = NullValueHandling.Ignore)] + public Quota Quotas { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ShowImageQuotaResponse {\n"); + sb.Append(" quotas: ").Append(Quotas).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ShowImageQuotaResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ShowImageQuotaResponse input) + { + if (input == null) + return false; + + return + ( + this.Quotas == input.Quotas || + (this.Quotas != null && + this.Quotas.Equals(input.Quotas)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Quotas != null) + hashCode = hashCode * 59 + this.Quotas.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/ShowJobProgressRequest.cs b/Services/Ims/V2/Model/ShowJobProgressRequest.cs new file mode 100755 index 0000000..b53b5da --- /dev/null +++ b/Services/Ims/V2/Model/ShowJobProgressRequest.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Request Object + /// + public class ShowJobProgressRequest + { + + [SDKProperty("job_id", IsPath = true)] + [JsonProperty("job_id", NullValueHandling = NullValueHandling.Ignore)] + public string JobId { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ShowJobProgressRequest {\n"); + sb.Append(" jobId: ").Append(JobId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ShowJobProgressRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ShowJobProgressRequest input) + { + if (input == null) + return false; + + return + ( + this.JobId == input.JobId || + (this.JobId != null && + this.JobId.Equals(input.JobId)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.JobId != null) + hashCode = hashCode * 59 + this.JobId.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/ShowJobProgressResponse.cs b/Services/Ims/V2/Model/ShowJobProgressResponse.cs new file mode 100755 index 0000000..4e378a1 --- /dev/null +++ b/Services/Ims/V2/Model/ShowJobProgressResponse.cs @@ -0,0 +1,272 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Response Object + /// + public class ShowJobProgressResponse : SdkResponse + { + [JsonConverter(typeof(EnumClassConverter))] + public class StatusEnum + { + /// + /// Enum SUCCESS for value: SUCCESS + /// + public static readonly StatusEnum SUCCESS = new StatusEnum("SUCCESS"); + + /// + /// Enum FAIL for value: FAIL + /// + public static readonly StatusEnum FAIL = new StatusEnum("FAIL"); + + /// + /// Enum RUNNING for value: RUNNING + /// + public static readonly StatusEnum RUNNING = new StatusEnum("RUNNING"); + + /// + /// Enum INIT for value: INIT + /// + public static readonly StatusEnum INIT = new StatusEnum("INIT"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "SUCCESS", SUCCESS }, + { "FAIL", FAIL }, + { "RUNNING", RUNNING }, + { "INIT", INIT }, + }; + + private string _value; + + public StatusEnum() + { + + } + + public StatusEnum(string value) + { + _value = value; + } + + public static StatusEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as StatusEnum)) + { + return true; + } + + return false; + } + + public bool Equals(StatusEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(StatusEnum a, StatusEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(StatusEnum a, StatusEnum b) + { + return !(a == b); + } + } + + + [JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)] + public StatusEnum Status { get; set; } + [JsonProperty("job_id", NullValueHandling = NullValueHandling.Ignore)] + public string JobId { get; set; } + + [JsonProperty("job_type", NullValueHandling = NullValueHandling.Ignore)] + public string JobType { get; set; } + + [JsonProperty("begin_time", NullValueHandling = NullValueHandling.Ignore)] + public string BeginTime { get; set; } + + [JsonProperty("end_time", NullValueHandling = NullValueHandling.Ignore)] + public string EndTime { get; set; } + + [JsonProperty("error_code", NullValueHandling = NullValueHandling.Ignore)] + public string ErrorCode { get; set; } + + [JsonProperty("fail_reason", NullValueHandling = NullValueHandling.Ignore)] + public string FailReason { get; set; } + + [JsonProperty("entities", NullValueHandling = NullValueHandling.Ignore)] + public JobProgressEntities Entities { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ShowJobProgressResponse {\n"); + sb.Append(" status: ").Append(Status).Append("\n"); + sb.Append(" jobId: ").Append(JobId).Append("\n"); + sb.Append(" jobType: ").Append(JobType).Append("\n"); + sb.Append(" beginTime: ").Append(BeginTime).Append("\n"); + sb.Append(" endTime: ").Append(EndTime).Append("\n"); + sb.Append(" errorCode: ").Append(ErrorCode).Append("\n"); + sb.Append(" failReason: ").Append(FailReason).Append("\n"); + sb.Append(" entities: ").Append(Entities).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ShowJobProgressResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ShowJobProgressResponse input) + { + if (input == null) + return false; + + return + ( + this.Status == input.Status || + (this.Status != null && + this.Status.Equals(input.Status)) + ) && + ( + this.JobId == input.JobId || + (this.JobId != null && + this.JobId.Equals(input.JobId)) + ) && + ( + this.JobType == input.JobType || + (this.JobType != null && + this.JobType.Equals(input.JobType)) + ) && + ( + this.BeginTime == input.BeginTime || + (this.BeginTime != null && + this.BeginTime.Equals(input.BeginTime)) + ) && + ( + this.EndTime == input.EndTime || + (this.EndTime != null && + this.EndTime.Equals(input.EndTime)) + ) && + ( + this.ErrorCode == input.ErrorCode || + (this.ErrorCode != null && + this.ErrorCode.Equals(input.ErrorCode)) + ) && + ( + this.FailReason == input.FailReason || + (this.FailReason != null && + this.FailReason.Equals(input.FailReason)) + ) && + ( + this.Entities == input.Entities || + (this.Entities != null && + this.Entities.Equals(input.Entities)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Status != null) + hashCode = hashCode * 59 + this.Status.GetHashCode(); + if (this.JobId != null) + hashCode = hashCode * 59 + this.JobId.GetHashCode(); + if (this.JobType != null) + hashCode = hashCode * 59 + this.JobType.GetHashCode(); + if (this.BeginTime != null) + hashCode = hashCode * 59 + this.BeginTime.GetHashCode(); + if (this.EndTime != null) + hashCode = hashCode * 59 + this.EndTime.GetHashCode(); + if (this.ErrorCode != null) + hashCode = hashCode * 59 + this.ErrorCode.GetHashCode(); + if (this.FailReason != null) + hashCode = hashCode * 59 + this.FailReason.GetHashCode(); + if (this.Entities != null) + hashCode = hashCode * 59 + this.Entities.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/ShowJobRequest.cs b/Services/Ims/V2/Model/ShowJobRequest.cs new file mode 100755 index 0000000..8357087 --- /dev/null +++ b/Services/Ims/V2/Model/ShowJobRequest.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Request Object + /// + public class ShowJobRequest + { + + [SDKProperty("job_id", IsPath = true)] + [JsonProperty("job_id", NullValueHandling = NullValueHandling.Ignore)] + public string JobId { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ShowJobRequest {\n"); + sb.Append(" jobId: ").Append(JobId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ShowJobRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ShowJobRequest input) + { + if (input == null) + return false; + + return + ( + this.JobId == input.JobId || + (this.JobId != null && + this.JobId.Equals(input.JobId)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.JobId != null) + hashCode = hashCode * 59 + this.JobId.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/ShowJobResponse.cs b/Services/Ims/V2/Model/ShowJobResponse.cs new file mode 100755 index 0000000..91804f0 --- /dev/null +++ b/Services/Ims/V2/Model/ShowJobResponse.cs @@ -0,0 +1,272 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Response Object + /// + public class ShowJobResponse : SdkResponse + { + [JsonConverter(typeof(EnumClassConverter))] + public class StatusEnum + { + /// + /// Enum SUCCESS for value: SUCCESS + /// + public static readonly StatusEnum SUCCESS = new StatusEnum("SUCCESS"); + + /// + /// Enum FAIL for value: FAIL + /// + public static readonly StatusEnum FAIL = new StatusEnum("FAIL"); + + /// + /// Enum RUNNING for value: RUNNING + /// + public static readonly StatusEnum RUNNING = new StatusEnum("RUNNING"); + + /// + /// Enum INIT for value: INIT + /// + public static readonly StatusEnum INIT = new StatusEnum("INIT"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "SUCCESS", SUCCESS }, + { "FAIL", FAIL }, + { "RUNNING", RUNNING }, + { "INIT", INIT }, + }; + + private string _value; + + public StatusEnum() + { + + } + + public StatusEnum(string value) + { + _value = value; + } + + public static StatusEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as StatusEnum)) + { + return true; + } + + return false; + } + + public bool Equals(StatusEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(StatusEnum a, StatusEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(StatusEnum a, StatusEnum b) + { + return !(a == b); + } + } + + + [JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)] + public StatusEnum Status { get; set; } + [JsonProperty("job_id", NullValueHandling = NullValueHandling.Ignore)] + public string JobId { get; set; } + + [JsonProperty("job_type", NullValueHandling = NullValueHandling.Ignore)] + public string JobType { get; set; } + + [JsonProperty("begin_time", NullValueHandling = NullValueHandling.Ignore)] + public string BeginTime { get; set; } + + [JsonProperty("end_time", NullValueHandling = NullValueHandling.Ignore)] + public string EndTime { get; set; } + + [JsonProperty("error_code", NullValueHandling = NullValueHandling.Ignore)] + public string ErrorCode { get; set; } + + [JsonProperty("fail_reason", NullValueHandling = NullValueHandling.Ignore)] + public string FailReason { get; set; } + + [JsonProperty("entities", NullValueHandling = NullValueHandling.Ignore)] + public JobEntities Entities { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ShowJobResponse {\n"); + sb.Append(" status: ").Append(Status).Append("\n"); + sb.Append(" jobId: ").Append(JobId).Append("\n"); + sb.Append(" jobType: ").Append(JobType).Append("\n"); + sb.Append(" beginTime: ").Append(BeginTime).Append("\n"); + sb.Append(" endTime: ").Append(EndTime).Append("\n"); + sb.Append(" errorCode: ").Append(ErrorCode).Append("\n"); + sb.Append(" failReason: ").Append(FailReason).Append("\n"); + sb.Append(" entities: ").Append(Entities).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ShowJobResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ShowJobResponse input) + { + if (input == null) + return false; + + return + ( + this.Status == input.Status || + (this.Status != null && + this.Status.Equals(input.Status)) + ) && + ( + this.JobId == input.JobId || + (this.JobId != null && + this.JobId.Equals(input.JobId)) + ) && + ( + this.JobType == input.JobType || + (this.JobType != null && + this.JobType.Equals(input.JobType)) + ) && + ( + this.BeginTime == input.BeginTime || + (this.BeginTime != null && + this.BeginTime.Equals(input.BeginTime)) + ) && + ( + this.EndTime == input.EndTime || + (this.EndTime != null && + this.EndTime.Equals(input.EndTime)) + ) && + ( + this.ErrorCode == input.ErrorCode || + (this.ErrorCode != null && + this.ErrorCode.Equals(input.ErrorCode)) + ) && + ( + this.FailReason == input.FailReason || + (this.FailReason != null && + this.FailReason.Equals(input.FailReason)) + ) && + ( + this.Entities == input.Entities || + (this.Entities != null && + this.Entities.Equals(input.Entities)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Status != null) + hashCode = hashCode * 59 + this.Status.GetHashCode(); + if (this.JobId != null) + hashCode = hashCode * 59 + this.JobId.GetHashCode(); + if (this.JobType != null) + hashCode = hashCode * 59 + this.JobType.GetHashCode(); + if (this.BeginTime != null) + hashCode = hashCode * 59 + this.BeginTime.GetHashCode(); + if (this.EndTime != null) + hashCode = hashCode * 59 + this.EndTime.GetHashCode(); + if (this.ErrorCode != null) + hashCode = hashCode * 59 + this.ErrorCode.GetHashCode(); + if (this.FailReason != null) + hashCode = hashCode * 59 + this.FailReason.GetHashCode(); + if (this.Entities != null) + hashCode = hashCode * 59 + this.Entities.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/ShowVersionRequest.cs b/Services/Ims/V2/Model/ShowVersionRequest.cs new file mode 100755 index 0000000..a8aaed8 --- /dev/null +++ b/Services/Ims/V2/Model/ShowVersionRequest.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Request Object + /// + public class ShowVersionRequest + { + + [SDKProperty("version", IsPath = true)] + [JsonProperty("version", NullValueHandling = NullValueHandling.Ignore)] + public string Version { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ShowVersionRequest {\n"); + sb.Append(" version: ").Append(Version).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ShowVersionRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ShowVersionRequest input) + { + if (input == null) + return false; + + return + ( + this.Version == input.Version || + (this.Version != null && + this.Version.Equals(input.Version)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Version != null) + hashCode = hashCode * 59 + this.Version.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/ShowVersionResponse.cs b/Services/Ims/V2/Model/ShowVersionResponse.cs new file mode 100755 index 0000000..fce9624 --- /dev/null +++ b/Services/Ims/V2/Model/ShowVersionResponse.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Response Object + /// + public class ShowVersionResponse : SdkResponse + { + + [JsonProperty("versions", NullValueHandling = NullValueHandling.Ignore)] + public List Versions { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ShowVersionResponse {\n"); + sb.Append(" versions: ").Append(Versions).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ShowVersionResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ShowVersionResponse input) + { + if (input == null) + return false; + + return + ( + this.Versions == input.Versions || + this.Versions != null && + input.Versions != null && + this.Versions.SequenceEqual(input.Versions) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Versions != null) + hashCode = hashCode * 59 + this.Versions.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/TagKeyValue.cs b/Services/Ims/V2/Model/TagKeyValue.cs new file mode 100755 index 0000000..2e70956 --- /dev/null +++ b/Services/Ims/V2/Model/TagKeyValue.cs @@ -0,0 +1,84 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// 镜像标签 + /// + public class TagKeyValue + { + + [JsonProperty("key", NullValueHandling = NullValueHandling.Ignore)] + public string Key { get; set; } + + [JsonProperty("value", NullValueHandling = NullValueHandling.Ignore)] + public string Value { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class TagKeyValue {\n"); + sb.Append(" key: ").Append(Key).Append("\n"); + sb.Append(" value: ").Append(Value).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as TagKeyValue); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(TagKeyValue input) + { + if (input == null) + return false; + + return + ( + this.Key == input.Key || + (this.Key != null && + this.Key.Equals(input.Key)) + ) && + ( + this.Value == input.Value || + (this.Value != null && + this.Value.Equals(input.Value)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Key != null) + hashCode = hashCode * 59 + this.Key.GetHashCode(); + if (this.Value != null) + hashCode = hashCode * 59 + this.Value.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/Tags.cs b/Services/Ims/V2/Model/Tags.cs new file mode 100755 index 0000000..9c4f459 --- /dev/null +++ b/Services/Ims/V2/Model/Tags.cs @@ -0,0 +1,85 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// 镜像标签 + /// + public class Tags + { + + [JsonProperty("key", NullValueHandling = NullValueHandling.Ignore)] + public string Key { get; set; } + + [JsonProperty("values", NullValueHandling = NullValueHandling.Ignore)] + public List Values { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class Tags {\n"); + sb.Append(" key: ").Append(Key).Append("\n"); + sb.Append(" values: ").Append(Values).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as Tags); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(Tags input) + { + if (input == null) + return false; + + return + ( + this.Key == input.Key || + (this.Key != null && + this.Key.Equals(input.Key)) + ) && + ( + this.Values == input.Values || + this.Values != null && + input.Values != null && + this.Values.SequenceEqual(input.Values) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Key != null) + hashCode = hashCode * 59 + this.Key.GetHashCode(); + if (this.Values != null) + hashCode = hashCode * 59 + this.Values.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/UpdateImageRequest.cs b/Services/Ims/V2/Model/UpdateImageRequest.cs new file mode 100755 index 0000000..5aa9cc9 --- /dev/null +++ b/Services/Ims/V2/Model/UpdateImageRequest.cs @@ -0,0 +1,87 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Request Object + /// + public class UpdateImageRequest + { + + [SDKProperty("image_id", IsPath = true)] + [JsonProperty("image_id", NullValueHandling = NullValueHandling.Ignore)] + public string ImageId { get; set; } + + [SDKProperty("body", IsBody = true)] + [JsonProperty("body", NullValueHandling = NullValueHandling.Ignore)] + public List Body { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UpdateImageRequest {\n"); + sb.Append(" imageId: ").Append(ImageId).Append("\n"); + sb.Append(" body: ").Append(Body).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as UpdateImageRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(UpdateImageRequest input) + { + if (input == null) + return false; + + return + ( + this.ImageId == input.ImageId || + (this.ImageId != null && + this.ImageId.Equals(input.ImageId)) + ) && + ( + this.Body == input.Body || + this.Body != null && + input.Body != null && + this.Body.SequenceEqual(input.Body) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ImageId != null) + hashCode = hashCode * 59 + this.ImageId.GetHashCode(); + if (this.Body != null) + hashCode = hashCode * 59 + this.Body.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/UpdateImageRequestBody.cs b/Services/Ims/V2/Model/UpdateImageRequestBody.cs new file mode 100755 index 0000000..5331e29 --- /dev/null +++ b/Services/Ims/V2/Model/UpdateImageRequestBody.cs @@ -0,0 +1,211 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// 扩展更新镜像接口请求体 + /// + public class UpdateImageRequestBody + { + [JsonConverter(typeof(EnumClassConverter))] + public class OpEnum + { + /// + /// Enum ADD for value: add + /// + public static readonly OpEnum ADD = new OpEnum("add"); + + /// + /// Enum REPLACE for value: replace + /// + public static readonly OpEnum REPLACE = new OpEnum("replace"); + + /// + /// Enum REMOVE for value: remove + /// + public static readonly OpEnum REMOVE = new OpEnum("remove"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "add", ADD }, + { "replace", REPLACE }, + { "remove", REMOVE }, + }; + + private string _value; + + public OpEnum() + { + + } + + public OpEnum(string value) + { + _value = value; + } + + public static OpEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as OpEnum)) + { + return true; + } + + return false; + } + + public bool Equals(OpEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(OpEnum a, OpEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(OpEnum a, OpEnum b) + { + return !(a == b); + } + } + + + [JsonProperty("op", NullValueHandling = NullValueHandling.Ignore)] + public OpEnum Op { get; set; } + [JsonProperty("path", NullValueHandling = NullValueHandling.Ignore)] + public string Path { get; set; } + + [JsonProperty("value", NullValueHandling = NullValueHandling.Ignore)] + public string Value { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UpdateImageRequestBody {\n"); + sb.Append(" op: ").Append(Op).Append("\n"); + sb.Append(" path: ").Append(Path).Append("\n"); + sb.Append(" value: ").Append(Value).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as UpdateImageRequestBody); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(UpdateImageRequestBody input) + { + if (input == null) + return false; + + return + ( + this.Op == input.Op || + (this.Op != null && + this.Op.Equals(input.Op)) + ) && + ( + this.Path == input.Path || + (this.Path != null && + this.Path.Equals(input.Path)) + ) && + ( + this.Value == input.Value || + (this.Value != null && + this.Value.Equals(input.Value)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Op != null) + hashCode = hashCode * 59 + this.Op.GetHashCode(); + if (this.Path != null) + hashCode = hashCode * 59 + this.Path.GetHashCode(); + if (this.Value != null) + hashCode = hashCode * 59 + this.Value.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Model/UpdateImageResponse.cs b/Services/Ims/V2/Model/UpdateImageResponse.cs new file mode 100755 index 0000000..042afa4 --- /dev/null +++ b/Services/Ims/V2/Model/UpdateImageResponse.cs @@ -0,0 +1,2128 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2.Model +{ + /// + /// Response Object + /// + public class UpdateImageResponse : SdkResponse + { + [JsonConverter(typeof(EnumClassConverter))] + public class ImageSourceTypeEnum + { + /// + /// Enum UDS for value: uds + /// + public static readonly ImageSourceTypeEnum UDS = new ImageSourceTypeEnum("uds"); + + /// + /// Enum SWIFT for value: swift + /// + public static readonly ImageSourceTypeEnum SWIFT = new ImageSourceTypeEnum("swift"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "uds", UDS }, + { "swift", SWIFT }, + }; + + private string _value; + + public ImageSourceTypeEnum() + { + + } + + public ImageSourceTypeEnum(string value) + { + _value = value; + } + + public static ImageSourceTypeEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as ImageSourceTypeEnum)) + { + return true; + } + + return false; + } + + public bool Equals(ImageSourceTypeEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(ImageSourceTypeEnum a, ImageSourceTypeEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(ImageSourceTypeEnum a, ImageSourceTypeEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class ImagetypeEnum + { + /// + /// Enum GOLD for value: gold + /// + public static readonly ImagetypeEnum GOLD = new ImagetypeEnum("gold"); + + /// + /// Enum PRIVATE for value: private + /// + public static readonly ImagetypeEnum PRIVATE = new ImagetypeEnum("private"); + + /// + /// Enum SHARED for value: shared + /// + public static readonly ImagetypeEnum SHARED = new ImagetypeEnum("shared"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "gold", GOLD }, + { "private", PRIVATE }, + { "shared", SHARED }, + }; + + private string _value; + + public ImagetypeEnum() + { + + } + + public ImagetypeEnum(string value) + { + _value = value; + } + + public static ImagetypeEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as ImagetypeEnum)) + { + return true; + } + + return false; + } + + public bool Equals(ImagetypeEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(ImagetypeEnum a, ImagetypeEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(ImagetypeEnum a, ImagetypeEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class IsregisteredEnum + { + /// + /// Enum TRUE for value: true + /// + public static readonly IsregisteredEnum TRUE = new IsregisteredEnum("true"); + + /// + /// Enum FALSE for value: false + /// + public static readonly IsregisteredEnum FALSE = new IsregisteredEnum("false"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "true", TRUE }, + { "false", FALSE }, + }; + + private string _value; + + public IsregisteredEnum() + { + + } + + public IsregisteredEnum(string value) + { + _value = value; + } + + public static IsregisteredEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as IsregisteredEnum)) + { + return true; + } + + return false; + } + + public bool Equals(IsregisteredEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(IsregisteredEnum a, IsregisteredEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(IsregisteredEnum a, IsregisteredEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class OsBitEnum + { + /// + /// Enum _32 for value: 32 + /// + public static readonly OsBitEnum _32 = new OsBitEnum("32"); + + /// + /// Enum _64 for value: 64 + /// + public static readonly OsBitEnum _64 = new OsBitEnum("64"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "32", _32 }, + { "64", _64 }, + }; + + private string _value; + + public OsBitEnum() + { + + } + + public OsBitEnum(string value) + { + _value = value; + } + + public static OsBitEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as OsBitEnum)) + { + return true; + } + + return false; + } + + public bool Equals(OsBitEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(OsBitEnum a, OsBitEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(OsBitEnum a, OsBitEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class OsTypeEnum + { + /// + /// Enum LINUX for value: Linux + /// + public static readonly OsTypeEnum LINUX = new OsTypeEnum("Linux"); + + /// + /// Enum WINDOWS for value: Windows + /// + public static readonly OsTypeEnum WINDOWS = new OsTypeEnum("Windows"); + + /// + /// Enum OTHER for value: Other + /// + public static readonly OsTypeEnum OTHER = new OsTypeEnum("Other"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "Linux", LINUX }, + { "Windows", WINDOWS }, + { "Other", OTHER }, + }; + + private string _value; + + public OsTypeEnum() + { + + } + + public OsTypeEnum(string value) + { + _value = value; + } + + public static OsTypeEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as OsTypeEnum)) + { + return true; + } + + return false; + } + + public bool Equals(OsTypeEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(OsTypeEnum a, OsTypeEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(OsTypeEnum a, OsTypeEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class PlatformEnum + { + /// + /// Enum WINDOWS for value: Windows + /// + public static readonly PlatformEnum WINDOWS = new PlatformEnum("Windows"); + + /// + /// Enum UBUNTU for value: Ubuntu + /// + public static readonly PlatformEnum UBUNTU = new PlatformEnum("Ubuntu"); + + /// + /// Enum REDHAT for value: RedHat + /// + public static readonly PlatformEnum REDHAT = new PlatformEnum("RedHat"); + + /// + /// Enum SUSE for value: SUSE + /// + public static readonly PlatformEnum SUSE = new PlatformEnum("SUSE"); + + /// + /// Enum CENTOS for value: CentOS + /// + public static readonly PlatformEnum CENTOS = new PlatformEnum("CentOS"); + + /// + /// Enum DEBIAN for value: Debian + /// + public static readonly PlatformEnum DEBIAN = new PlatformEnum("Debian"); + + /// + /// Enum OPENSUSE for value: OpenSUSE + /// + public static readonly PlatformEnum OPENSUSE = new PlatformEnum("OpenSUSE"); + + /// + /// Enum ORACLE_LINUX for value: Oracle Linux + /// + public static readonly PlatformEnum ORACLE_LINUX = new PlatformEnum("Oracle Linux"); + + /// + /// Enum FEDORA for value: Fedora + /// + public static readonly PlatformEnum FEDORA = new PlatformEnum("Fedora"); + + /// + /// Enum OTHER for value: Other + /// + public static readonly PlatformEnum OTHER = new PlatformEnum("Other"); + + /// + /// Enum COREOS for value: CoreOS + /// + public static readonly PlatformEnum COREOS = new PlatformEnum("CoreOS"); + + /// + /// Enum EULEROS for value: EulerOS + /// + public static readonly PlatformEnum EULEROS = new PlatformEnum("EulerOS"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "Windows", WINDOWS }, + { "Ubuntu", UBUNTU }, + { "RedHat", REDHAT }, + { "SUSE", SUSE }, + { "CentOS", CENTOS }, + { "Debian", DEBIAN }, + { "OpenSUSE", OPENSUSE }, + { "Oracle Linux", ORACLE_LINUX }, + { "Fedora", FEDORA }, + { "Other", OTHER }, + { "CoreOS", COREOS }, + { "EulerOS", EULEROS }, + }; + + private string _value; + + public PlatformEnum() + { + + } + + public PlatformEnum(string value) + { + _value = value; + } + + public static PlatformEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as PlatformEnum)) + { + return true; + } + + return false; + } + + public bool Equals(PlatformEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(PlatformEnum a, PlatformEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(PlatformEnum a, PlatformEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class StatusEnum + { + /// + /// Enum QUEUED for value: queued + /// + public static readonly StatusEnum QUEUED = new StatusEnum("queued"); + + /// + /// Enum SAVING for value: saving + /// + public static readonly StatusEnum SAVING = new StatusEnum("saving"); + + /// + /// Enum DELETED for value: deleted + /// + public static readonly StatusEnum DELETED = new StatusEnum("deleted"); + + /// + /// Enum KILLED for value: killed + /// + public static readonly StatusEnum KILLED = new StatusEnum("killed"); + + /// + /// Enum ACTIVE for value: active + /// + public static readonly StatusEnum ACTIVE = new StatusEnum("active"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "queued", QUEUED }, + { "saving", SAVING }, + { "deleted", DELETED }, + { "killed", KILLED }, + { "active", ACTIVE }, + }; + + private string _value; + + public StatusEnum() + { + + } + + public StatusEnum(string value) + { + _value = value; + } + + public static StatusEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as StatusEnum)) + { + return true; + } + + return false; + } + + public bool Equals(StatusEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(StatusEnum a, StatusEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(StatusEnum a, StatusEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class VirtualEnvTypeEnum + { + /// + /// Enum FUSIONCOMPUTE for value: FusionCompute + /// + public static readonly VirtualEnvTypeEnum FUSIONCOMPUTE = new VirtualEnvTypeEnum("FusionCompute"); + + /// + /// Enum IRONIC for value: Ironic + /// + public static readonly VirtualEnvTypeEnum IRONIC = new VirtualEnvTypeEnum("Ironic"); + + /// + /// Enum DATAIMAGE for value: DataImage + /// + public static readonly VirtualEnvTypeEnum DATAIMAGE = new VirtualEnvTypeEnum("DataImage"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "FusionCompute", FUSIONCOMPUTE }, + { "Ironic", IRONIC }, + { "DataImage", DATAIMAGE }, + }; + + private string _value; + + public VirtualEnvTypeEnum() + { + + } + + public VirtualEnvTypeEnum(string value) + { + _value = value; + } + + public static VirtualEnvTypeEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as VirtualEnvTypeEnum)) + { + return true; + } + + return false; + } + + public bool Equals(VirtualEnvTypeEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(VirtualEnvTypeEnum a, VirtualEnvTypeEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(VirtualEnvTypeEnum a, VirtualEnvTypeEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class VisibilityEnum + { + /// + /// Enum PRIVATE for value: private + /// + public static readonly VisibilityEnum PRIVATE = new VisibilityEnum("private"); + + /// + /// Enum PUBLIC for value: public + /// + public static readonly VisibilityEnum PUBLIC = new VisibilityEnum("public"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "private", PRIVATE }, + { "public", PUBLIC }, + }; + + private string _value; + + public VisibilityEnum() + { + + } + + public VisibilityEnum(string value) + { + _value = value; + } + + public static VisibilityEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as VisibilityEnum)) + { + return true; + } + + return false; + } + + public bool Equals(VisibilityEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(VisibilityEnum a, VisibilityEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(VisibilityEnum a, VisibilityEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class SupportFcInjectEnum + { + /// + /// Enum TRUE for value: true + /// + public static readonly SupportFcInjectEnum TRUE = new SupportFcInjectEnum("true"); + + /// + /// Enum FALSE for value: false + /// + public static readonly SupportFcInjectEnum FALSE = new SupportFcInjectEnum("false"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "true", TRUE }, + { "false", FALSE }, + }; + + private string _value; + + public SupportFcInjectEnum() + { + + } + + public SupportFcInjectEnum(string value) + { + _value = value; + } + + public static SupportFcInjectEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as SupportFcInjectEnum)) + { + return true; + } + + return false; + } + + public bool Equals(SupportFcInjectEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(SupportFcInjectEnum a, SupportFcInjectEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(SupportFcInjectEnum a, SupportFcInjectEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class HwFirmwareTypeEnum + { + /// + /// Enum BIOS for value: bios + /// + public static readonly HwFirmwareTypeEnum BIOS = new HwFirmwareTypeEnum("bios"); + + /// + /// Enum UEFI for value: uefi + /// + public static readonly HwFirmwareTypeEnum UEFI = new HwFirmwareTypeEnum("uefi"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "bios", BIOS }, + { "uefi", UEFI }, + }; + + private string _value; + + public HwFirmwareTypeEnum() + { + + } + + public HwFirmwareTypeEnum(string value) + { + _value = value; + } + + public static HwFirmwareTypeEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as HwFirmwareTypeEnum)) + { + return true; + } + + return false; + } + + public bool Equals(HwFirmwareTypeEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(HwFirmwareTypeEnum a, HwFirmwareTypeEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(HwFirmwareTypeEnum a, HwFirmwareTypeEnum b) + { + return !(a == b); + } + } + + [JsonConverter(typeof(EnumClassConverter))] + public class SupportArmEnum + { + /// + /// Enum TRUE for value: true + /// + public static readonly SupportArmEnum TRUE = new SupportArmEnum("true"); + + /// + /// Enum FALSE for value: false + /// + public static readonly SupportArmEnum FALSE = new SupportArmEnum("false"); + + private static readonly Dictionary StaticFields = + new Dictionary() + { + { "true", TRUE }, + { "false", FALSE }, + }; + + private string _value; + + public SupportArmEnum() + { + + } + + public SupportArmEnum(string value) + { + _value = value; + } + + public static SupportArmEnum FromValue(string value) + { + if(value == null){ + return null; + } + + if (StaticFields.ContainsKey(value)) + { + return StaticFields[value]; + } + + return null; + } + + public string GetValue() + { + return _value; + } + + public override string ToString() + { + return $"{_value}"; + } + + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (ReferenceEquals(this, obj)) + { + return true; + } + + if (this.Equals(obj as SupportArmEnum)) + { + return true; + } + + return false; + } + + public bool Equals(SupportArmEnum obj) + { + if ((object)obj == null) + { + return false; + } + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); + } + + public static bool operator ==(SupportArmEnum a, SupportArmEnum b) + { + if (System.Object.ReferenceEquals(a, b)) + { + return true; + } + + if ((object)a == null) + { + return false; + } + + return a.Equals(b); + } + + public static bool operator !=(SupportArmEnum a, SupportArmEnum b) + { + return !(a == b); + } + } + + + [JsonProperty("__backup_id", NullValueHandling = NullValueHandling.Ignore)] + public string BackupId { get; set; } + + [JsonProperty("__data_origin", NullValueHandling = NullValueHandling.Ignore)] + public string DataOrigin { get; set; } + + [JsonProperty("__description", NullValueHandling = NullValueHandling.Ignore)] + public string Description { get; set; } + + [JsonProperty("__image_size", NullValueHandling = NullValueHandling.Ignore)] + public string ImageSize { get; set; } + + [JsonProperty("__image_source_type", NullValueHandling = NullValueHandling.Ignore)] + public ImageSourceTypeEnum ImageSourceType { get; set; } + [JsonProperty("__imagetype", NullValueHandling = NullValueHandling.Ignore)] + public ImagetypeEnum Imagetype { get; set; } + [JsonProperty("__isregistered", NullValueHandling = NullValueHandling.Ignore)] + public IsregisteredEnum Isregistered { get; set; } + [JsonProperty("__originalimagename", NullValueHandling = NullValueHandling.Ignore)] + public string Originalimagename { get; set; } + + [JsonProperty("__os_bit", NullValueHandling = NullValueHandling.Ignore)] + public OsBitEnum OsBit { get; set; } + [JsonProperty("__os_type", NullValueHandling = NullValueHandling.Ignore)] + public OsTypeEnum OsType { get; set; } + [JsonProperty("__os_version", NullValueHandling = NullValueHandling.Ignore)] + public string OsVersion { get; set; } + + [JsonProperty("__platform", NullValueHandling = NullValueHandling.Ignore)] + public PlatformEnum Platform { get; set; } + [JsonProperty("__productcode", NullValueHandling = NullValueHandling.Ignore)] + public string Productcode { get; set; } + + [JsonProperty("__support_diskintensive", NullValueHandling = NullValueHandling.Ignore)] + public string SupportDiskintensive { get; set; } + + [JsonProperty("__support_highperformance", NullValueHandling = NullValueHandling.Ignore)] + public string SupportHighperformance { get; set; } + + [JsonProperty("__support_kvm", NullValueHandling = NullValueHandling.Ignore)] + public string SupportKvm { get; set; } + + [JsonProperty("__support_kvm_gpu_type", NullValueHandling = NullValueHandling.Ignore)] + public string SupportKvmGpuType { get; set; } + + [JsonProperty("__support_kvm_infiniband", NullValueHandling = NullValueHandling.Ignore)] + public string SupportKvmInfiniband { get; set; } + + [JsonProperty("__support_largememory", NullValueHandling = NullValueHandling.Ignore)] + public string SupportLargememory { get; set; } + + [JsonProperty("__support_xen", NullValueHandling = NullValueHandling.Ignore)] + public string SupportXen { get; set; } + + [JsonProperty("__support_xen_gpu_type", NullValueHandling = NullValueHandling.Ignore)] + public string SupportXenGpuType { get; set; } + + [JsonProperty("__support_xen_hana", NullValueHandling = NullValueHandling.Ignore)] + public string SupportXenHana { get; set; } + + [JsonProperty("__system_support_market", NullValueHandling = NullValueHandling.Ignore)] + public bool? SystemSupportMarket { get; set; } + + [JsonProperty("checksum", NullValueHandling = NullValueHandling.Ignore)] + public string Checksum { get; set; } + + [JsonProperty("container_format", NullValueHandling = NullValueHandling.Ignore)] + public string ContainerFormat { get; set; } + + [JsonProperty("created_at", NullValueHandling = NullValueHandling.Ignore)] + public string CreatedAt { get; set; } + + [JsonProperty("disk_format", NullValueHandling = NullValueHandling.Ignore)] + public string DiskFormat { get; set; } + + [JsonProperty("enterprise_project_id", NullValueHandling = NullValueHandling.Ignore)] + public string EnterpriseProjectId { get; set; } + + [JsonProperty("file", NullValueHandling = NullValueHandling.Ignore)] + public string File { get; set; } + + [JsonProperty("id", NullValueHandling = NullValueHandling.Ignore)] + public string Id { get; set; } + + [JsonProperty("min_disk", NullValueHandling = NullValueHandling.Ignore)] + public int? MinDisk { get; set; } + + [JsonProperty("min_ram", NullValueHandling = NullValueHandling.Ignore)] + public int? MinRam { get; set; } + + [JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)] + public string Name { get; set; } + + [JsonProperty("owner", NullValueHandling = NullValueHandling.Ignore)] + public string Owner { get; set; } + + [JsonProperty("protected", NullValueHandling = NullValueHandling.Ignore)] + public bool? Protected { get; set; } + + [JsonProperty("schema", NullValueHandling = NullValueHandling.Ignore)] + public string Schema { get; set; } + + [JsonProperty("self", NullValueHandling = NullValueHandling.Ignore)] + public string Self { get; set; } + + [JsonProperty("size", NullValueHandling = NullValueHandling.Ignore)] + public int? Size { get; set; } + + [JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)] + public StatusEnum Status { get; set; } + [JsonProperty("tags", NullValueHandling = NullValueHandling.Ignore)] + public List Tags { get; set; } + + [JsonProperty("updated_at", NullValueHandling = NullValueHandling.Ignore)] + public string UpdatedAt { get; set; } + + [JsonProperty("virtual_env_type", NullValueHandling = NullValueHandling.Ignore)] + public VirtualEnvTypeEnum VirtualEnvType { get; set; } + [JsonProperty("virtual_size", NullValueHandling = NullValueHandling.Ignore)] + public int? VirtualSize { get; set; } + + [JsonProperty("visibility", NullValueHandling = NullValueHandling.Ignore)] + public VisibilityEnum Visibility { get; set; } + [JsonProperty("__support_fc_inject", NullValueHandling = NullValueHandling.Ignore)] + public SupportFcInjectEnum SupportFcInject { get; set; } + [JsonProperty("hw_firmware_type", NullValueHandling = NullValueHandling.Ignore)] + public HwFirmwareTypeEnum HwFirmwareType { get; set; } + [JsonProperty("__support_arm", NullValueHandling = NullValueHandling.Ignore)] + public SupportArmEnum SupportArm { get; set; } + [JsonProperty("max_ram", NullValueHandling = NullValueHandling.Ignore)] + public string MaxRam { get; set; } + + [JsonProperty("__system__cmkid", NullValueHandling = NullValueHandling.Ignore)] + public string SystemCmkid { get; set; } + + [JsonProperty("__os_feature_list", NullValueHandling = NullValueHandling.Ignore)] + public string OsFeatureList { get; set; } + + [JsonProperty("__account_code", NullValueHandling = NullValueHandling.Ignore)] + public string AccountCode { get; set; } + + [JsonProperty("hw_vif_multiqueue_enabled", NullValueHandling = NullValueHandling.Ignore)] + public string HwVifMultiqueueEnabled { get; set; } + + [JsonProperty("__is_offshelved", NullValueHandling = NullValueHandling.Ignore)] + public string IsOffshelved { get; set; } + + [JsonProperty("__lazyloading", NullValueHandling = NullValueHandling.Ignore)] + public string Lazyloading { get; set; } + + [JsonProperty("__root_origin", NullValueHandling = NullValueHandling.Ignore)] + public string RootOrigin { get; set; } + + [JsonProperty("__sequence_num", NullValueHandling = NullValueHandling.Ignore)] + public string SequenceNum { get; set; } + + [JsonProperty("active_at", NullValueHandling = NullValueHandling.Ignore)] + public string ActiveAt { get; set; } + + [JsonProperty("__support_agent_list", NullValueHandling = NullValueHandling.Ignore)] + public string SupportAgentList { get; set; } + + [JsonProperty("__support_amd", NullValueHandling = NullValueHandling.Ignore)] + public string SupportAmd { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UpdateImageResponse {\n"); + sb.Append(" backupId: ").Append(BackupId).Append("\n"); + sb.Append(" dataOrigin: ").Append(DataOrigin).Append("\n"); + sb.Append(" description: ").Append(Description).Append("\n"); + sb.Append(" imageSize: ").Append(ImageSize).Append("\n"); + sb.Append(" imageSourceType: ").Append(ImageSourceType).Append("\n"); + sb.Append(" imagetype: ").Append(Imagetype).Append("\n"); + sb.Append(" isregistered: ").Append(Isregistered).Append("\n"); + sb.Append(" originalimagename: ").Append(Originalimagename).Append("\n"); + sb.Append(" osBit: ").Append(OsBit).Append("\n"); + sb.Append(" osType: ").Append(OsType).Append("\n"); + sb.Append(" osVersion: ").Append(OsVersion).Append("\n"); + sb.Append(" platform: ").Append(Platform).Append("\n"); + sb.Append(" productcode: ").Append(Productcode).Append("\n"); + sb.Append(" supportDiskintensive: ").Append(SupportDiskintensive).Append("\n"); + sb.Append(" supportHighperformance: ").Append(SupportHighperformance).Append("\n"); + sb.Append(" supportKvm: ").Append(SupportKvm).Append("\n"); + sb.Append(" supportKvmGpuType: ").Append(SupportKvmGpuType).Append("\n"); + sb.Append(" supportKvmInfiniband: ").Append(SupportKvmInfiniband).Append("\n"); + sb.Append(" supportLargememory: ").Append(SupportLargememory).Append("\n"); + sb.Append(" supportXen: ").Append(SupportXen).Append("\n"); + sb.Append(" supportXenGpuType: ").Append(SupportXenGpuType).Append("\n"); + sb.Append(" supportXenHana: ").Append(SupportXenHana).Append("\n"); + sb.Append(" systemSupportMarket: ").Append(SystemSupportMarket).Append("\n"); + sb.Append(" checksum: ").Append(Checksum).Append("\n"); + sb.Append(" containerFormat: ").Append(ContainerFormat).Append("\n"); + sb.Append(" createdAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" diskFormat: ").Append(DiskFormat).Append("\n"); + sb.Append(" enterpriseProjectId: ").Append(EnterpriseProjectId).Append("\n"); + sb.Append(" file: ").Append(File).Append("\n"); + sb.Append(" id: ").Append(Id).Append("\n"); + sb.Append(" minDisk: ").Append(MinDisk).Append("\n"); + sb.Append(" minRam: ").Append(MinRam).Append("\n"); + sb.Append(" name: ").Append(Name).Append("\n"); + sb.Append(" owner: ").Append(Owner).Append("\n"); + sb.Append(" Protected: ").Append(Protected).Append("\n"); + sb.Append(" schema: ").Append(Schema).Append("\n"); + sb.Append(" self: ").Append(Self).Append("\n"); + sb.Append(" size: ").Append(Size).Append("\n"); + sb.Append(" status: ").Append(Status).Append("\n"); + sb.Append(" tags: ").Append(Tags).Append("\n"); + sb.Append(" updatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append(" virtualEnvType: ").Append(VirtualEnvType).Append("\n"); + sb.Append(" virtualSize: ").Append(VirtualSize).Append("\n"); + sb.Append(" visibility: ").Append(Visibility).Append("\n"); + sb.Append(" supportFcInject: ").Append(SupportFcInject).Append("\n"); + sb.Append(" hwFirmwareType: ").Append(HwFirmwareType).Append("\n"); + sb.Append(" supportArm: ").Append(SupportArm).Append("\n"); + sb.Append(" maxRam: ").Append(MaxRam).Append("\n"); + sb.Append(" systemCmkid: ").Append(SystemCmkid).Append("\n"); + sb.Append(" osFeatureList: ").Append(OsFeatureList).Append("\n"); + sb.Append(" accountCode: ").Append(AccountCode).Append("\n"); + sb.Append(" hwVifMultiqueueEnabled: ").Append(HwVifMultiqueueEnabled).Append("\n"); + sb.Append(" isOffshelved: ").Append(IsOffshelved).Append("\n"); + sb.Append(" lazyloading: ").Append(Lazyloading).Append("\n"); + sb.Append(" rootOrigin: ").Append(RootOrigin).Append("\n"); + sb.Append(" sequenceNum: ").Append(SequenceNum).Append("\n"); + sb.Append(" activeAt: ").Append(ActiveAt).Append("\n"); + sb.Append(" supportAgentList: ").Append(SupportAgentList).Append("\n"); + sb.Append(" supportAmd: ").Append(SupportAmd).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as UpdateImageResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(UpdateImageResponse input) + { + if (input == null) + return false; + + return + ( + this.BackupId == input.BackupId || + (this.BackupId != null && + this.BackupId.Equals(input.BackupId)) + ) && + ( + this.DataOrigin == input.DataOrigin || + (this.DataOrigin != null && + this.DataOrigin.Equals(input.DataOrigin)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.ImageSize == input.ImageSize || + (this.ImageSize != null && + this.ImageSize.Equals(input.ImageSize)) + ) && + ( + this.ImageSourceType == input.ImageSourceType || + (this.ImageSourceType != null && + this.ImageSourceType.Equals(input.ImageSourceType)) + ) && + ( + this.Imagetype == input.Imagetype || + (this.Imagetype != null && + this.Imagetype.Equals(input.Imagetype)) + ) && + ( + this.Isregistered == input.Isregistered || + (this.Isregistered != null && + this.Isregistered.Equals(input.Isregistered)) + ) && + ( + this.Originalimagename == input.Originalimagename || + (this.Originalimagename != null && + this.Originalimagename.Equals(input.Originalimagename)) + ) && + ( + this.OsBit == input.OsBit || + (this.OsBit != null && + this.OsBit.Equals(input.OsBit)) + ) && + ( + this.OsType == input.OsType || + (this.OsType != null && + this.OsType.Equals(input.OsType)) + ) && + ( + this.OsVersion == input.OsVersion || + (this.OsVersion != null && + this.OsVersion.Equals(input.OsVersion)) + ) && + ( + this.Platform == input.Platform || + (this.Platform != null && + this.Platform.Equals(input.Platform)) + ) && + ( + this.Productcode == input.Productcode || + (this.Productcode != null && + this.Productcode.Equals(input.Productcode)) + ) && + ( + this.SupportDiskintensive == input.SupportDiskintensive || + (this.SupportDiskintensive != null && + this.SupportDiskintensive.Equals(input.SupportDiskintensive)) + ) && + ( + this.SupportHighperformance == input.SupportHighperformance || + (this.SupportHighperformance != null && + this.SupportHighperformance.Equals(input.SupportHighperformance)) + ) && + ( + this.SupportKvm == input.SupportKvm || + (this.SupportKvm != null && + this.SupportKvm.Equals(input.SupportKvm)) + ) && + ( + this.SupportKvmGpuType == input.SupportKvmGpuType || + (this.SupportKvmGpuType != null && + this.SupportKvmGpuType.Equals(input.SupportKvmGpuType)) + ) && + ( + this.SupportKvmInfiniband == input.SupportKvmInfiniband || + (this.SupportKvmInfiniband != null && + this.SupportKvmInfiniband.Equals(input.SupportKvmInfiniband)) + ) && + ( + this.SupportLargememory == input.SupportLargememory || + (this.SupportLargememory != null && + this.SupportLargememory.Equals(input.SupportLargememory)) + ) && + ( + this.SupportXen == input.SupportXen || + (this.SupportXen != null && + this.SupportXen.Equals(input.SupportXen)) + ) && + ( + this.SupportXenGpuType == input.SupportXenGpuType || + (this.SupportXenGpuType != null && + this.SupportXenGpuType.Equals(input.SupportXenGpuType)) + ) && + ( + this.SupportXenHana == input.SupportXenHana || + (this.SupportXenHana != null && + this.SupportXenHana.Equals(input.SupportXenHana)) + ) && + ( + this.SystemSupportMarket == input.SystemSupportMarket || + (this.SystemSupportMarket != null && + this.SystemSupportMarket.Equals(input.SystemSupportMarket)) + ) && + ( + this.Checksum == input.Checksum || + (this.Checksum != null && + this.Checksum.Equals(input.Checksum)) + ) && + ( + this.ContainerFormat == input.ContainerFormat || + (this.ContainerFormat != null && + this.ContainerFormat.Equals(input.ContainerFormat)) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.DiskFormat == input.DiskFormat || + (this.DiskFormat != null && + this.DiskFormat.Equals(input.DiskFormat)) + ) && + ( + this.EnterpriseProjectId == input.EnterpriseProjectId || + (this.EnterpriseProjectId != null && + this.EnterpriseProjectId.Equals(input.EnterpriseProjectId)) + ) && + ( + this.File == input.File || + (this.File != null && + this.File.Equals(input.File)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.MinDisk == input.MinDisk || + (this.MinDisk != null && + this.MinDisk.Equals(input.MinDisk)) + ) && + ( + this.MinRam == input.MinRam || + (this.MinRam != null && + this.MinRam.Equals(input.MinRam)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Owner == input.Owner || + (this.Owner != null && + this.Owner.Equals(input.Owner)) + ) && + ( + this.Protected == input.Protected || + (this.Protected != null && + this.Protected.Equals(input.Protected)) + ) && + ( + this.Schema == input.Schema || + (this.Schema != null && + this.Schema.Equals(input.Schema)) + ) && + ( + this.Self == input.Self || + (this.Self != null && + this.Self.Equals(input.Self)) + ) && + ( + this.Size == input.Size || + (this.Size != null && + this.Size.Equals(input.Size)) + ) && + ( + this.Status == input.Status || + (this.Status != null && + this.Status.Equals(input.Status)) + ) && + ( + this.Tags == input.Tags || + this.Tags != null && + input.Tags != null && + this.Tags.SequenceEqual(input.Tags) + ) && + ( + this.UpdatedAt == input.UpdatedAt || + (this.UpdatedAt != null && + this.UpdatedAt.Equals(input.UpdatedAt)) + ) && + ( + this.VirtualEnvType == input.VirtualEnvType || + (this.VirtualEnvType != null && + this.VirtualEnvType.Equals(input.VirtualEnvType)) + ) && + ( + this.VirtualSize == input.VirtualSize || + (this.VirtualSize != null && + this.VirtualSize.Equals(input.VirtualSize)) + ) && + ( + this.Visibility == input.Visibility || + (this.Visibility != null && + this.Visibility.Equals(input.Visibility)) + ) && + ( + this.SupportFcInject == input.SupportFcInject || + (this.SupportFcInject != null && + this.SupportFcInject.Equals(input.SupportFcInject)) + ) && + ( + this.HwFirmwareType == input.HwFirmwareType || + (this.HwFirmwareType != null && + this.HwFirmwareType.Equals(input.HwFirmwareType)) + ) && + ( + this.SupportArm == input.SupportArm || + (this.SupportArm != null && + this.SupportArm.Equals(input.SupportArm)) + ) && + ( + this.MaxRam == input.MaxRam || + (this.MaxRam != null && + this.MaxRam.Equals(input.MaxRam)) + ) && + ( + this.SystemCmkid == input.SystemCmkid || + (this.SystemCmkid != null && + this.SystemCmkid.Equals(input.SystemCmkid)) + ) && + ( + this.OsFeatureList == input.OsFeatureList || + (this.OsFeatureList != null && + this.OsFeatureList.Equals(input.OsFeatureList)) + ) && + ( + this.AccountCode == input.AccountCode || + (this.AccountCode != null && + this.AccountCode.Equals(input.AccountCode)) + ) && + ( + this.HwVifMultiqueueEnabled == input.HwVifMultiqueueEnabled || + (this.HwVifMultiqueueEnabled != null && + this.HwVifMultiqueueEnabled.Equals(input.HwVifMultiqueueEnabled)) + ) && + ( + this.IsOffshelved == input.IsOffshelved || + (this.IsOffshelved != null && + this.IsOffshelved.Equals(input.IsOffshelved)) + ) && + ( + this.Lazyloading == input.Lazyloading || + (this.Lazyloading != null && + this.Lazyloading.Equals(input.Lazyloading)) + ) && + ( + this.RootOrigin == input.RootOrigin || + (this.RootOrigin != null && + this.RootOrigin.Equals(input.RootOrigin)) + ) && + ( + this.SequenceNum == input.SequenceNum || + (this.SequenceNum != null && + this.SequenceNum.Equals(input.SequenceNum)) + ) && + ( + this.ActiveAt == input.ActiveAt || + (this.ActiveAt != null && + this.ActiveAt.Equals(input.ActiveAt)) + ) && + ( + this.SupportAgentList == input.SupportAgentList || + (this.SupportAgentList != null && + this.SupportAgentList.Equals(input.SupportAgentList)) + ) && + ( + this.SupportAmd == input.SupportAmd || + (this.SupportAmd != null && + this.SupportAmd.Equals(input.SupportAmd)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.BackupId != null) + hashCode = hashCode * 59 + this.BackupId.GetHashCode(); + if (this.DataOrigin != null) + hashCode = hashCode * 59 + this.DataOrigin.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.ImageSize != null) + hashCode = hashCode * 59 + this.ImageSize.GetHashCode(); + if (this.ImageSourceType != null) + hashCode = hashCode * 59 + this.ImageSourceType.GetHashCode(); + if (this.Imagetype != null) + hashCode = hashCode * 59 + this.Imagetype.GetHashCode(); + if (this.Isregistered != null) + hashCode = hashCode * 59 + this.Isregistered.GetHashCode(); + if (this.Originalimagename != null) + hashCode = hashCode * 59 + this.Originalimagename.GetHashCode(); + if (this.OsBit != null) + hashCode = hashCode * 59 + this.OsBit.GetHashCode(); + if (this.OsType != null) + hashCode = hashCode * 59 + this.OsType.GetHashCode(); + if (this.OsVersion != null) + hashCode = hashCode * 59 + this.OsVersion.GetHashCode(); + if (this.Platform != null) + hashCode = hashCode * 59 + this.Platform.GetHashCode(); + if (this.Productcode != null) + hashCode = hashCode * 59 + this.Productcode.GetHashCode(); + if (this.SupportDiskintensive != null) + hashCode = hashCode * 59 + this.SupportDiskintensive.GetHashCode(); + if (this.SupportHighperformance != null) + hashCode = hashCode * 59 + this.SupportHighperformance.GetHashCode(); + if (this.SupportKvm != null) + hashCode = hashCode * 59 + this.SupportKvm.GetHashCode(); + if (this.SupportKvmGpuType != null) + hashCode = hashCode * 59 + this.SupportKvmGpuType.GetHashCode(); + if (this.SupportKvmInfiniband != null) + hashCode = hashCode * 59 + this.SupportKvmInfiniband.GetHashCode(); + if (this.SupportLargememory != null) + hashCode = hashCode * 59 + this.SupportLargememory.GetHashCode(); + if (this.SupportXen != null) + hashCode = hashCode * 59 + this.SupportXen.GetHashCode(); + if (this.SupportXenGpuType != null) + hashCode = hashCode * 59 + this.SupportXenGpuType.GetHashCode(); + if (this.SupportXenHana != null) + hashCode = hashCode * 59 + this.SupportXenHana.GetHashCode(); + if (this.SystemSupportMarket != null) + hashCode = hashCode * 59 + this.SystemSupportMarket.GetHashCode(); + if (this.Checksum != null) + hashCode = hashCode * 59 + this.Checksum.GetHashCode(); + if (this.ContainerFormat != null) + hashCode = hashCode * 59 + this.ContainerFormat.GetHashCode(); + if (this.CreatedAt != null) + hashCode = hashCode * 59 + this.CreatedAt.GetHashCode(); + if (this.DiskFormat != null) + hashCode = hashCode * 59 + this.DiskFormat.GetHashCode(); + if (this.EnterpriseProjectId != null) + hashCode = hashCode * 59 + this.EnterpriseProjectId.GetHashCode(); + if (this.File != null) + hashCode = hashCode * 59 + this.File.GetHashCode(); + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.MinDisk != null) + hashCode = hashCode * 59 + this.MinDisk.GetHashCode(); + if (this.MinRam != null) + hashCode = hashCode * 59 + this.MinRam.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Owner != null) + hashCode = hashCode * 59 + this.Owner.GetHashCode(); + if (this.Protected != null) + hashCode = hashCode * 59 + this.Protected.GetHashCode(); + if (this.Schema != null) + hashCode = hashCode * 59 + this.Schema.GetHashCode(); + if (this.Self != null) + hashCode = hashCode * 59 + this.Self.GetHashCode(); + if (this.Size != null) + hashCode = hashCode * 59 + this.Size.GetHashCode(); + if (this.Status != null) + hashCode = hashCode * 59 + this.Status.GetHashCode(); + if (this.Tags != null) + hashCode = hashCode * 59 + this.Tags.GetHashCode(); + if (this.UpdatedAt != null) + hashCode = hashCode * 59 + this.UpdatedAt.GetHashCode(); + if (this.VirtualEnvType != null) + hashCode = hashCode * 59 + this.VirtualEnvType.GetHashCode(); + if (this.VirtualSize != null) + hashCode = hashCode * 59 + this.VirtualSize.GetHashCode(); + if (this.Visibility != null) + hashCode = hashCode * 59 + this.Visibility.GetHashCode(); + if (this.SupportFcInject != null) + hashCode = hashCode * 59 + this.SupportFcInject.GetHashCode(); + if (this.HwFirmwareType != null) + hashCode = hashCode * 59 + this.HwFirmwareType.GetHashCode(); + if (this.SupportArm != null) + hashCode = hashCode * 59 + this.SupportArm.GetHashCode(); + if (this.MaxRam != null) + hashCode = hashCode * 59 + this.MaxRam.GetHashCode(); + if (this.SystemCmkid != null) + hashCode = hashCode * 59 + this.SystemCmkid.GetHashCode(); + if (this.OsFeatureList != null) + hashCode = hashCode * 59 + this.OsFeatureList.GetHashCode(); + if (this.AccountCode != null) + hashCode = hashCode * 59 + this.AccountCode.GetHashCode(); + if (this.HwVifMultiqueueEnabled != null) + hashCode = hashCode * 59 + this.HwVifMultiqueueEnabled.GetHashCode(); + if (this.IsOffshelved != null) + hashCode = hashCode * 59 + this.IsOffshelved.GetHashCode(); + if (this.Lazyloading != null) + hashCode = hashCode * 59 + this.Lazyloading.GetHashCode(); + if (this.RootOrigin != null) + hashCode = hashCode * 59 + this.RootOrigin.GetHashCode(); + if (this.SequenceNum != null) + hashCode = hashCode * 59 + this.SequenceNum.GetHashCode(); + if (this.ActiveAt != null) + hashCode = hashCode * 59 + this.ActiveAt.GetHashCode(); + if (this.SupportAgentList != null) + hashCode = hashCode * 59 + this.SupportAgentList.GetHashCode(); + if (this.SupportAmd != null) + hashCode = hashCode * 59 + this.SupportAmd.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Ims/V2/Region/ImsRegion.cs b/Services/Ims/V2/Region/ImsRegion.cs new file mode 100755 index 0000000..f62d494 --- /dev/null +++ b/Services/Ims/V2/Region/ImsRegion.cs @@ -0,0 +1,31 @@ +using System; +using System.Collections.Generic; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Ims.V2 +{ + public class ImsRegion + { + public static readonly Region AE_AD_1 = new Region("ae-ad-1", "https://ims.ae-ad-1.g42cloud.com"); + + private static readonly Dictionary StaticFields = new Dictionary() + { + { "ae-ad-1", AE_AD_1 }, + }; + + public static Region ValueOf(string regionId) + { + if (string.IsNullOrEmpty(regionId)) + { + throw new ArgumentNullException(regionId); + } + + if (StaticFields.ContainsKey(regionId)) + { + return StaticFields[regionId]; + } + + throw new ArgumentException("Unexpected regionId: ", regionId); + } + } +} \ No newline at end of file diff --git a/Services/Smn/Smn.csproj b/Services/Smn/Smn.csproj new file mode 100755 index 0000000..b3eaba1 --- /dev/null +++ b/Services/Smn/Smn.csproj @@ -0,0 +1,34 @@ + + + + + G42Cloud.SDK.Smn + G42Cloud.SDK.Smn + netstandard2.0 + false + false + false + false + false + false + false + false + false + G42Cloud.SDK.Smn + 0.0.3-beta + G42Cloud + Copyright 2020 G42 Technologies Co., Ltd. + G42 Technologies Co., Ltd. + G42Cloud .net SDK + LICENSE + + + + + + + + + + + diff --git a/Services/Smn/Smn.sln b/Services/Smn/Smn.sln new file mode 100755 index 0000000..cc1ef1d --- /dev/null +++ b/Services/Smn/Smn.sln @@ -0,0 +1,18 @@ +Microsoft Visual Studio Solution File, Format Version 12.00 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Smn", "Smn.csproj", "{ced0cfa7-3d43-457f-9f81-f1695a6c65cd}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {ced0cfa7-3d43-457f-9f81-f1695a6c65cd}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {ced0cfa7-3d43-457f-9f81-f1695a6c65cd}.Debug|Any CPU.Build.0 = Debug|Any CPU + {ced0cfa7-3d43-457f-9f81-f1695a6c65cd}.Release|Any CPU.ActiveCfg = Release|Any CPU + {ced0cfa7-3d43-457f-9f81-f1695a6c65cd}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal \ No newline at end of file diff --git a/Services/Smn/V2/Model/AddSubscriptionRequest.cs b/Services/Smn/V2/Model/AddSubscriptionRequest.cs new file mode 100755 index 0000000..65e9588 --- /dev/null +++ b/Services/Smn/V2/Model/AddSubscriptionRequest.cs @@ -0,0 +1,86 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Request Object + /// + public class AddSubscriptionRequest + { + + [SDKProperty("topic_urn", IsPath = true)] + [JsonProperty("topic_urn", NullValueHandling = NullValueHandling.Ignore)] + public string TopicUrn { get; set; } + + [SDKProperty("body", IsBody = true)] + [JsonProperty("body", NullValueHandling = NullValueHandling.Ignore)] + public AddSubscriptionRequestBody Body { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AddSubscriptionRequest {\n"); + sb.Append(" topicUrn: ").Append(TopicUrn).Append("\n"); + sb.Append(" body: ").Append(Body).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as AddSubscriptionRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(AddSubscriptionRequest input) + { + if (input == null) + return false; + + return + ( + this.TopicUrn == input.TopicUrn || + (this.TopicUrn != null && + this.TopicUrn.Equals(input.TopicUrn)) + ) && + ( + this.Body == input.Body || + (this.Body != null && + this.Body.Equals(input.Body)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.TopicUrn != null) + hashCode = hashCode * 59 + this.TopicUrn.GetHashCode(); + if (this.Body != null) + hashCode = hashCode * 59 + this.Body.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/AddSubscriptionRequestBody.cs b/Services/Smn/V2/Model/AddSubscriptionRequestBody.cs new file mode 100755 index 0000000..a3582c8 --- /dev/null +++ b/Services/Smn/V2/Model/AddSubscriptionRequestBody.cs @@ -0,0 +1,95 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// + /// + public class AddSubscriptionRequestBody + { + + [JsonProperty("protocol", NullValueHandling = NullValueHandling.Ignore)] + public string Protocol { get; set; } + + [JsonProperty("endpoint", NullValueHandling = NullValueHandling.Ignore)] + public string Endpoint { get; set; } + + [JsonProperty("remark", NullValueHandling = NullValueHandling.Ignore)] + public string Remark { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AddSubscriptionRequestBody {\n"); + sb.Append(" protocol: ").Append(Protocol).Append("\n"); + sb.Append(" endpoint: ").Append(Endpoint).Append("\n"); + sb.Append(" remark: ").Append(Remark).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as AddSubscriptionRequestBody); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(AddSubscriptionRequestBody input) + { + if (input == null) + return false; + + return + ( + this.Protocol == input.Protocol || + (this.Protocol != null && + this.Protocol.Equals(input.Protocol)) + ) && + ( + this.Endpoint == input.Endpoint || + (this.Endpoint != null && + this.Endpoint.Equals(input.Endpoint)) + ) && + ( + this.Remark == input.Remark || + (this.Remark != null && + this.Remark.Equals(input.Remark)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Protocol != null) + hashCode = hashCode * 59 + this.Protocol.GetHashCode(); + if (this.Endpoint != null) + hashCode = hashCode * 59 + this.Endpoint.GetHashCode(); + if (this.Remark != null) + hashCode = hashCode * 59 + this.Remark.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/AddSubscriptionResponse.cs b/Services/Smn/V2/Model/AddSubscriptionResponse.cs new file mode 100755 index 0000000..d6f9df7 --- /dev/null +++ b/Services/Smn/V2/Model/AddSubscriptionResponse.cs @@ -0,0 +1,84 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Response Object + /// + public class AddSubscriptionResponse : SdkResponse + { + + [JsonProperty("request_id", NullValueHandling = NullValueHandling.Ignore)] + public string RequestId { get; set; } + + [JsonProperty("subscription_urn", NullValueHandling = NullValueHandling.Ignore)] + public string SubscriptionUrn { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AddSubscriptionResponse {\n"); + sb.Append(" requestId: ").Append(RequestId).Append("\n"); + sb.Append(" subscriptionUrn: ").Append(SubscriptionUrn).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as AddSubscriptionResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(AddSubscriptionResponse input) + { + if (input == null) + return false; + + return + ( + this.RequestId == input.RequestId || + (this.RequestId != null && + this.RequestId.Equals(input.RequestId)) + ) && + ( + this.SubscriptionUrn == input.SubscriptionUrn || + (this.SubscriptionUrn != null && + this.SubscriptionUrn.Equals(input.SubscriptionUrn)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.RequestId != null) + hashCode = hashCode * 59 + this.RequestId.GetHashCode(); + if (this.SubscriptionUrn != null) + hashCode = hashCode * 59 + this.SubscriptionUrn.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/ApplicationEndpoint.cs b/Services/Smn/V2/Model/ApplicationEndpoint.cs new file mode 100755 index 0000000..7a6e169 --- /dev/null +++ b/Services/Smn/V2/Model/ApplicationEndpoint.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// + /// + public class ApplicationEndpoint + { + + [JsonProperty("create_time", NullValueHandling = NullValueHandling.Ignore)] + public string CreateTime { get; set; } + + [JsonProperty("endpoint_urn", NullValueHandling = NullValueHandling.Ignore)] + public string EndpointUrn { get; set; } + + [JsonProperty("user_data", NullValueHandling = NullValueHandling.Ignore)] + public string UserData { get; set; } + + [JsonProperty("enabled", NullValueHandling = NullValueHandling.Ignore)] + public string Enabled { get; set; } + + [JsonProperty("token", NullValueHandling = NullValueHandling.Ignore)] + public string Token { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ApplicationEndpoint {\n"); + sb.Append(" createTime: ").Append(CreateTime).Append("\n"); + sb.Append(" endpointUrn: ").Append(EndpointUrn).Append("\n"); + sb.Append(" userData: ").Append(UserData).Append("\n"); + sb.Append(" enabled: ").Append(Enabled).Append("\n"); + sb.Append(" token: ").Append(Token).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ApplicationEndpoint); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ApplicationEndpoint input) + { + if (input == null) + return false; + + return + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.EndpointUrn == input.EndpointUrn || + (this.EndpointUrn != null && + this.EndpointUrn.Equals(input.EndpointUrn)) + ) && + ( + this.UserData == input.UserData || + (this.UserData != null && + this.UserData.Equals(input.UserData)) + ) && + ( + this.Enabled == input.Enabled || + (this.Enabled != null && + this.Enabled.Equals(input.Enabled)) + ) && + ( + this.Token == input.Token || + (this.Token != null && + this.Token.Equals(input.Token)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.EndpointUrn != null) + hashCode = hashCode * 59 + this.EndpointUrn.GetHashCode(); + if (this.UserData != null) + hashCode = hashCode * 59 + this.UserData.GetHashCode(); + if (this.Enabled != null) + hashCode = hashCode * 59 + this.Enabled.GetHashCode(); + if (this.Token != null) + hashCode = hashCode * 59 + this.Token.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/ApplicationItem.cs b/Services/Smn/V2/Model/ApplicationItem.cs new file mode 100755 index 0000000..7555a63 --- /dev/null +++ b/Services/Smn/V2/Model/ApplicationItem.cs @@ -0,0 +1,139 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// + /// + public class ApplicationItem + { + + [JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)] + public string Name { get; set; } + + [JsonProperty("platform", NullValueHandling = NullValueHandling.Ignore)] + public string Platform { get; set; } + + [JsonProperty("create_time", NullValueHandling = NullValueHandling.Ignore)] + public string CreateTime { get; set; } + + [JsonProperty("application_urn", NullValueHandling = NullValueHandling.Ignore)] + public string ApplicationUrn { get; set; } + + [JsonProperty("application_id", NullValueHandling = NullValueHandling.Ignore)] + public string ApplicationId { get; set; } + + [JsonProperty("enabled", NullValueHandling = NullValueHandling.Ignore)] + public string Enabled { get; set; } + + [JsonProperty("apple_certificate_expiration_date", NullValueHandling = NullValueHandling.Ignore)] + public string AppleCertificateExpirationDate { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ApplicationItem {\n"); + sb.Append(" name: ").Append(Name).Append("\n"); + sb.Append(" platform: ").Append(Platform).Append("\n"); + sb.Append(" createTime: ").Append(CreateTime).Append("\n"); + sb.Append(" applicationUrn: ").Append(ApplicationUrn).Append("\n"); + sb.Append(" applicationId: ").Append(ApplicationId).Append("\n"); + sb.Append(" enabled: ").Append(Enabled).Append("\n"); + sb.Append(" appleCertificateExpirationDate: ").Append(AppleCertificateExpirationDate).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ApplicationItem); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ApplicationItem input) + { + if (input == null) + return false; + + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Platform == input.Platform || + (this.Platform != null && + this.Platform.Equals(input.Platform)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.ApplicationUrn == input.ApplicationUrn || + (this.ApplicationUrn != null && + this.ApplicationUrn.Equals(input.ApplicationUrn)) + ) && + ( + this.ApplicationId == input.ApplicationId || + (this.ApplicationId != null && + this.ApplicationId.Equals(input.ApplicationId)) + ) && + ( + this.Enabled == input.Enabled || + (this.Enabled != null && + this.Enabled.Equals(input.Enabled)) + ) && + ( + this.AppleCertificateExpirationDate == input.AppleCertificateExpirationDate || + (this.AppleCertificateExpirationDate != null && + this.AppleCertificateExpirationDate.Equals(input.AppleCertificateExpirationDate)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Platform != null) + hashCode = hashCode * 59 + this.Platform.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.ApplicationUrn != null) + hashCode = hashCode * 59 + this.ApplicationUrn.GetHashCode(); + if (this.ApplicationId != null) + hashCode = hashCode * 59 + this.ApplicationId.GetHashCode(); + if (this.Enabled != null) + hashCode = hashCode * 59 + this.Enabled.GetHashCode(); + if (this.AppleCertificateExpirationDate != null) + hashCode = hashCode * 59 + this.AppleCertificateExpirationDate.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/BatchCreateOrDeleteResourceTagsRequest.cs b/Services/Smn/V2/Model/BatchCreateOrDeleteResourceTagsRequest.cs new file mode 100755 index 0000000..20aa5d2 --- /dev/null +++ b/Services/Smn/V2/Model/BatchCreateOrDeleteResourceTagsRequest.cs @@ -0,0 +1,98 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Request Object + /// + public class BatchCreateOrDeleteResourceTagsRequest + { + + [SDKProperty("resource_type", IsPath = true)] + [JsonProperty("resource_type", NullValueHandling = NullValueHandling.Ignore)] + public string ResourceType { get; set; } + + [SDKProperty("resource_id", IsPath = true)] + [JsonProperty("resource_id", NullValueHandling = NullValueHandling.Ignore)] + public string ResourceId { get; set; } + + [SDKProperty("body", IsBody = true)] + [JsonProperty("body", NullValueHandling = NullValueHandling.Ignore)] + public BatchCreateOrDeleteResourceTagsRequestBody Body { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class BatchCreateOrDeleteResourceTagsRequest {\n"); + sb.Append(" resourceType: ").Append(ResourceType).Append("\n"); + sb.Append(" resourceId: ").Append(ResourceId).Append("\n"); + sb.Append(" body: ").Append(Body).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as BatchCreateOrDeleteResourceTagsRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(BatchCreateOrDeleteResourceTagsRequest input) + { + if (input == null) + return false; + + return + ( + this.ResourceType == input.ResourceType || + (this.ResourceType != null && + this.ResourceType.Equals(input.ResourceType)) + ) && + ( + this.ResourceId == input.ResourceId || + (this.ResourceId != null && + this.ResourceId.Equals(input.ResourceId)) + ) && + ( + this.Body == input.Body || + (this.Body != null && + this.Body.Equals(input.Body)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ResourceType != null) + hashCode = hashCode * 59 + this.ResourceType.GetHashCode(); + if (this.ResourceId != null) + hashCode = hashCode * 59 + this.ResourceId.GetHashCode(); + if (this.Body != null) + hashCode = hashCode * 59 + this.Body.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/BatchCreateOrDeleteResourceTagsRequestBody.cs b/Services/Smn/V2/Model/BatchCreateOrDeleteResourceTagsRequestBody.cs new file mode 100755 index 0000000..d604168 --- /dev/null +++ b/Services/Smn/V2/Model/BatchCreateOrDeleteResourceTagsRequestBody.cs @@ -0,0 +1,85 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// + /// + public class BatchCreateOrDeleteResourceTagsRequestBody + { + + [JsonProperty("tags", NullValueHandling = NullValueHandling.Ignore)] + public List Tags { get; set; } + + [JsonProperty("action", NullValueHandling = NullValueHandling.Ignore)] + public string Action { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class BatchCreateOrDeleteResourceTagsRequestBody {\n"); + sb.Append(" tags: ").Append(Tags).Append("\n"); + sb.Append(" action: ").Append(Action).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as BatchCreateOrDeleteResourceTagsRequestBody); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(BatchCreateOrDeleteResourceTagsRequestBody input) + { + if (input == null) + return false; + + return + ( + this.Tags == input.Tags || + this.Tags != null && + input.Tags != null && + this.Tags.SequenceEqual(input.Tags) + ) && + ( + this.Action == input.Action || + (this.Action != null && + this.Action.Equals(input.Action)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Tags != null) + hashCode = hashCode * 59 + this.Tags.GetHashCode(); + if (this.Action != null) + hashCode = hashCode * 59 + this.Action.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/BatchCreateOrDeleteResourceTagsResponse.cs b/Services/Smn/V2/Model/BatchCreateOrDeleteResourceTagsResponse.cs new file mode 100755 index 0000000..8a02a65 --- /dev/null +++ b/Services/Smn/V2/Model/BatchCreateOrDeleteResourceTagsResponse.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Response Object + /// + public class BatchCreateOrDeleteResourceTagsResponse : SdkResponse + { + + + } +} diff --git a/Services/Smn/V2/Model/CancelSubscriptionRequest.cs b/Services/Smn/V2/Model/CancelSubscriptionRequest.cs new file mode 100755 index 0000000..e58398d --- /dev/null +++ b/Services/Smn/V2/Model/CancelSubscriptionRequest.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Request Object + /// + public class CancelSubscriptionRequest + { + + [SDKProperty("subscription_urn", IsPath = true)] + [JsonProperty("subscription_urn", NullValueHandling = NullValueHandling.Ignore)] + public string SubscriptionUrn { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CancelSubscriptionRequest {\n"); + sb.Append(" subscriptionUrn: ").Append(SubscriptionUrn).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as CancelSubscriptionRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(CancelSubscriptionRequest input) + { + if (input == null) + return false; + + return + ( + this.SubscriptionUrn == input.SubscriptionUrn || + (this.SubscriptionUrn != null && + this.SubscriptionUrn.Equals(input.SubscriptionUrn)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.SubscriptionUrn != null) + hashCode = hashCode * 59 + this.SubscriptionUrn.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/CancelSubscriptionResponse.cs b/Services/Smn/V2/Model/CancelSubscriptionResponse.cs new file mode 100755 index 0000000..d32f694 --- /dev/null +++ b/Services/Smn/V2/Model/CancelSubscriptionResponse.cs @@ -0,0 +1,73 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Response Object + /// + public class CancelSubscriptionResponse : SdkResponse + { + + [JsonProperty("request_id", NullValueHandling = NullValueHandling.Ignore)] + public string RequestId { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CancelSubscriptionResponse {\n"); + sb.Append(" requestId: ").Append(RequestId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as CancelSubscriptionResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(CancelSubscriptionResponse input) + { + if (input == null) + return false; + + return + ( + this.RequestId == input.RequestId || + (this.RequestId != null && + this.RequestId.Equals(input.RequestId)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.RequestId != null) + hashCode = hashCode * 59 + this.RequestId.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/CreateApplicationEndpointRequest.cs b/Services/Smn/V2/Model/CreateApplicationEndpointRequest.cs new file mode 100755 index 0000000..f0920ce --- /dev/null +++ b/Services/Smn/V2/Model/CreateApplicationEndpointRequest.cs @@ -0,0 +1,86 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Request Object + /// + public class CreateApplicationEndpointRequest + { + + [SDKProperty("application_urn", IsPath = true)] + [JsonProperty("application_urn", NullValueHandling = NullValueHandling.Ignore)] + public string ApplicationUrn { get; set; } + + [SDKProperty("body", IsBody = true)] + [JsonProperty("body", NullValueHandling = NullValueHandling.Ignore)] + public CreateApplicationEndpointRequestBody Body { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CreateApplicationEndpointRequest {\n"); + sb.Append(" applicationUrn: ").Append(ApplicationUrn).Append("\n"); + sb.Append(" body: ").Append(Body).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as CreateApplicationEndpointRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(CreateApplicationEndpointRequest input) + { + if (input == null) + return false; + + return + ( + this.ApplicationUrn == input.ApplicationUrn || + (this.ApplicationUrn != null && + this.ApplicationUrn.Equals(input.ApplicationUrn)) + ) && + ( + this.Body == input.Body || + (this.Body != null && + this.Body.Equals(input.Body)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ApplicationUrn != null) + hashCode = hashCode * 59 + this.ApplicationUrn.GetHashCode(); + if (this.Body != null) + hashCode = hashCode * 59 + this.Body.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/CreateApplicationEndpointRequestBody.cs b/Services/Smn/V2/Model/CreateApplicationEndpointRequestBody.cs new file mode 100755 index 0000000..61b1dd6 --- /dev/null +++ b/Services/Smn/V2/Model/CreateApplicationEndpointRequestBody.cs @@ -0,0 +1,84 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// + /// + public class CreateApplicationEndpointRequestBody + { + + [JsonProperty("token", NullValueHandling = NullValueHandling.Ignore)] + public string Token { get; set; } + + [JsonProperty("user_data", NullValueHandling = NullValueHandling.Ignore)] + public string UserData { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CreateApplicationEndpointRequestBody {\n"); + sb.Append(" token: ").Append(Token).Append("\n"); + sb.Append(" userData: ").Append(UserData).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as CreateApplicationEndpointRequestBody); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(CreateApplicationEndpointRequestBody input) + { + if (input == null) + return false; + + return + ( + this.Token == input.Token || + (this.Token != null && + this.Token.Equals(input.Token)) + ) && + ( + this.UserData == input.UserData || + (this.UserData != null && + this.UserData.Equals(input.UserData)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Token != null) + hashCode = hashCode * 59 + this.Token.GetHashCode(); + if (this.UserData != null) + hashCode = hashCode * 59 + this.UserData.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/CreateApplicationEndpointResponse.cs b/Services/Smn/V2/Model/CreateApplicationEndpointResponse.cs new file mode 100755 index 0000000..43d7b81 --- /dev/null +++ b/Services/Smn/V2/Model/CreateApplicationEndpointResponse.cs @@ -0,0 +1,84 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Response Object + /// + public class CreateApplicationEndpointResponse : SdkResponse + { + + [JsonProperty("request_id", NullValueHandling = NullValueHandling.Ignore)] + public string RequestId { get; set; } + + [JsonProperty("endpoint_urn", NullValueHandling = NullValueHandling.Ignore)] + public string EndpointUrn { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CreateApplicationEndpointResponse {\n"); + sb.Append(" requestId: ").Append(RequestId).Append("\n"); + sb.Append(" endpointUrn: ").Append(EndpointUrn).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as CreateApplicationEndpointResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(CreateApplicationEndpointResponse input) + { + if (input == null) + return false; + + return + ( + this.RequestId == input.RequestId || + (this.RequestId != null && + this.RequestId.Equals(input.RequestId)) + ) && + ( + this.EndpointUrn == input.EndpointUrn || + (this.EndpointUrn != null && + this.EndpointUrn.Equals(input.EndpointUrn)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.RequestId != null) + hashCode = hashCode * 59 + this.RequestId.GetHashCode(); + if (this.EndpointUrn != null) + hashCode = hashCode * 59 + this.EndpointUrn.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/CreateApplicationRequest.cs b/Services/Smn/V2/Model/CreateApplicationRequest.cs new file mode 100755 index 0000000..d48c54e --- /dev/null +++ b/Services/Smn/V2/Model/CreateApplicationRequest.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Request Object + /// + public class CreateApplicationRequest + { + + [SDKProperty("body", IsBody = true)] + [JsonProperty("body", NullValueHandling = NullValueHandling.Ignore)] + public CreateApplicationRequestBody Body { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CreateApplicationRequest {\n"); + sb.Append(" body: ").Append(Body).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as CreateApplicationRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(CreateApplicationRequest input) + { + if (input == null) + return false; + + return + ( + this.Body == input.Body || + (this.Body != null && + this.Body.Equals(input.Body)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Body != null) + hashCode = hashCode * 59 + this.Body.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/CreateApplicationRequestBody.cs b/Services/Smn/V2/Model/CreateApplicationRequestBody.cs new file mode 100755 index 0000000..20d9c6b --- /dev/null +++ b/Services/Smn/V2/Model/CreateApplicationRequestBody.cs @@ -0,0 +1,106 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// + /// + public class CreateApplicationRequestBody + { + + [JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)] + public string Name { get; set; } + + [JsonProperty("platform", NullValueHandling = NullValueHandling.Ignore)] + public string Platform { get; set; } + + [JsonProperty("platform_principal", NullValueHandling = NullValueHandling.Ignore)] + public string PlatformPrincipal { get; set; } + + [JsonProperty("platform_credential", NullValueHandling = NullValueHandling.Ignore)] + public string PlatformCredential { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CreateApplicationRequestBody {\n"); + sb.Append(" name: ").Append(Name).Append("\n"); + sb.Append(" platform: ").Append(Platform).Append("\n"); + sb.Append(" platformPrincipal: ").Append(PlatformPrincipal).Append("\n"); + sb.Append(" platformCredential: ").Append(PlatformCredential).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as CreateApplicationRequestBody); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(CreateApplicationRequestBody input) + { + if (input == null) + return false; + + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Platform == input.Platform || + (this.Platform != null && + this.Platform.Equals(input.Platform)) + ) && + ( + this.PlatformPrincipal == input.PlatformPrincipal || + (this.PlatformPrincipal != null && + this.PlatformPrincipal.Equals(input.PlatformPrincipal)) + ) && + ( + this.PlatformCredential == input.PlatformCredential || + (this.PlatformCredential != null && + this.PlatformCredential.Equals(input.PlatformCredential)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Platform != null) + hashCode = hashCode * 59 + this.Platform.GetHashCode(); + if (this.PlatformPrincipal != null) + hashCode = hashCode * 59 + this.PlatformPrincipal.GetHashCode(); + if (this.PlatformCredential != null) + hashCode = hashCode * 59 + this.PlatformCredential.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/CreateApplicationResponse.cs b/Services/Smn/V2/Model/CreateApplicationResponse.cs new file mode 100755 index 0000000..a7d3543 --- /dev/null +++ b/Services/Smn/V2/Model/CreateApplicationResponse.cs @@ -0,0 +1,95 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Response Object + /// + public class CreateApplicationResponse : SdkResponse + { + + [JsonProperty("request_id", NullValueHandling = NullValueHandling.Ignore)] + public string RequestId { get; set; } + + [JsonProperty("application_urn", NullValueHandling = NullValueHandling.Ignore)] + public string ApplicationUrn { get; set; } + + [JsonProperty("application_id", NullValueHandling = NullValueHandling.Ignore)] + public string ApplicationId { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CreateApplicationResponse {\n"); + sb.Append(" requestId: ").Append(RequestId).Append("\n"); + sb.Append(" applicationUrn: ").Append(ApplicationUrn).Append("\n"); + sb.Append(" applicationId: ").Append(ApplicationId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as CreateApplicationResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(CreateApplicationResponse input) + { + if (input == null) + return false; + + return + ( + this.RequestId == input.RequestId || + (this.RequestId != null && + this.RequestId.Equals(input.RequestId)) + ) && + ( + this.ApplicationUrn == input.ApplicationUrn || + (this.ApplicationUrn != null && + this.ApplicationUrn.Equals(input.ApplicationUrn)) + ) && + ( + this.ApplicationId == input.ApplicationId || + (this.ApplicationId != null && + this.ApplicationId.Equals(input.ApplicationId)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.RequestId != null) + hashCode = hashCode * 59 + this.RequestId.GetHashCode(); + if (this.ApplicationUrn != null) + hashCode = hashCode * 59 + this.ApplicationUrn.GetHashCode(); + if (this.ApplicationId != null) + hashCode = hashCode * 59 + this.ApplicationId.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/CreateMessageTemplateRequest.cs b/Services/Smn/V2/Model/CreateMessageTemplateRequest.cs new file mode 100755 index 0000000..a313a19 --- /dev/null +++ b/Services/Smn/V2/Model/CreateMessageTemplateRequest.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Request Object + /// + public class CreateMessageTemplateRequest + { + + [SDKProperty("body", IsBody = true)] + [JsonProperty("body", NullValueHandling = NullValueHandling.Ignore)] + public CreateMessageTemplateRequestBody Body { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CreateMessageTemplateRequest {\n"); + sb.Append(" body: ").Append(Body).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as CreateMessageTemplateRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(CreateMessageTemplateRequest input) + { + if (input == null) + return false; + + return + ( + this.Body == input.Body || + (this.Body != null && + this.Body.Equals(input.Body)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Body != null) + hashCode = hashCode * 59 + this.Body.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/CreateMessageTemplateRequestBody.cs b/Services/Smn/V2/Model/CreateMessageTemplateRequestBody.cs new file mode 100755 index 0000000..9cb1758 --- /dev/null +++ b/Services/Smn/V2/Model/CreateMessageTemplateRequestBody.cs @@ -0,0 +1,95 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// + /// + public class CreateMessageTemplateRequestBody + { + + [JsonProperty("message_template_name", NullValueHandling = NullValueHandling.Ignore)] + public string MessageTemplateName { get; set; } + + [JsonProperty("protocol", NullValueHandling = NullValueHandling.Ignore)] + public string Protocol { get; set; } + + [JsonProperty("content", NullValueHandling = NullValueHandling.Ignore)] + public string Content { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CreateMessageTemplateRequestBody {\n"); + sb.Append(" messageTemplateName: ").Append(MessageTemplateName).Append("\n"); + sb.Append(" protocol: ").Append(Protocol).Append("\n"); + sb.Append(" content: ").Append(Content).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as CreateMessageTemplateRequestBody); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(CreateMessageTemplateRequestBody input) + { + if (input == null) + return false; + + return + ( + this.MessageTemplateName == input.MessageTemplateName || + (this.MessageTemplateName != null && + this.MessageTemplateName.Equals(input.MessageTemplateName)) + ) && + ( + this.Protocol == input.Protocol || + (this.Protocol != null && + this.Protocol.Equals(input.Protocol)) + ) && + ( + this.Content == input.Content || + (this.Content != null && + this.Content.Equals(input.Content)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.MessageTemplateName != null) + hashCode = hashCode * 59 + this.MessageTemplateName.GetHashCode(); + if (this.Protocol != null) + hashCode = hashCode * 59 + this.Protocol.GetHashCode(); + if (this.Content != null) + hashCode = hashCode * 59 + this.Content.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/CreateMessageTemplateResponse.cs b/Services/Smn/V2/Model/CreateMessageTemplateResponse.cs new file mode 100755 index 0000000..89c962a --- /dev/null +++ b/Services/Smn/V2/Model/CreateMessageTemplateResponse.cs @@ -0,0 +1,84 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Response Object + /// + public class CreateMessageTemplateResponse : SdkResponse + { + + [JsonProperty("request_id", NullValueHandling = NullValueHandling.Ignore)] + public string RequestId { get; set; } + + [JsonProperty("message_template_id", NullValueHandling = NullValueHandling.Ignore)] + public string MessageTemplateId { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CreateMessageTemplateResponse {\n"); + sb.Append(" requestId: ").Append(RequestId).Append("\n"); + sb.Append(" messageTemplateId: ").Append(MessageTemplateId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as CreateMessageTemplateResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(CreateMessageTemplateResponse input) + { + if (input == null) + return false; + + return + ( + this.RequestId == input.RequestId || + (this.RequestId != null && + this.RequestId.Equals(input.RequestId)) + ) && + ( + this.MessageTemplateId == input.MessageTemplateId || + (this.MessageTemplateId != null && + this.MessageTemplateId.Equals(input.MessageTemplateId)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.RequestId != null) + hashCode = hashCode * 59 + this.RequestId.GetHashCode(); + if (this.MessageTemplateId != null) + hashCode = hashCode * 59 + this.MessageTemplateId.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/CreateResourceTagRequest.cs b/Services/Smn/V2/Model/CreateResourceTagRequest.cs new file mode 100755 index 0000000..fd0ed10 --- /dev/null +++ b/Services/Smn/V2/Model/CreateResourceTagRequest.cs @@ -0,0 +1,98 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Request Object + /// + public class CreateResourceTagRequest + { + + [SDKProperty("resource_type", IsPath = true)] + [JsonProperty("resource_type", NullValueHandling = NullValueHandling.Ignore)] + public string ResourceType { get; set; } + + [SDKProperty("resource_id", IsPath = true)] + [JsonProperty("resource_id", NullValueHandling = NullValueHandling.Ignore)] + public string ResourceId { get; set; } + + [SDKProperty("body", IsBody = true)] + [JsonProperty("body", NullValueHandling = NullValueHandling.Ignore)] + public CreateResourceTagRequestBody Body { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CreateResourceTagRequest {\n"); + sb.Append(" resourceType: ").Append(ResourceType).Append("\n"); + sb.Append(" resourceId: ").Append(ResourceId).Append("\n"); + sb.Append(" body: ").Append(Body).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as CreateResourceTagRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(CreateResourceTagRequest input) + { + if (input == null) + return false; + + return + ( + this.ResourceType == input.ResourceType || + (this.ResourceType != null && + this.ResourceType.Equals(input.ResourceType)) + ) && + ( + this.ResourceId == input.ResourceId || + (this.ResourceId != null && + this.ResourceId.Equals(input.ResourceId)) + ) && + ( + this.Body == input.Body || + (this.Body != null && + this.Body.Equals(input.Body)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ResourceType != null) + hashCode = hashCode * 59 + this.ResourceType.GetHashCode(); + if (this.ResourceId != null) + hashCode = hashCode * 59 + this.ResourceId.GetHashCode(); + if (this.Body != null) + hashCode = hashCode * 59 + this.Body.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/CreateResourceTagRequestBody.cs b/Services/Smn/V2/Model/CreateResourceTagRequestBody.cs new file mode 100755 index 0000000..5050a24 --- /dev/null +++ b/Services/Smn/V2/Model/CreateResourceTagRequestBody.cs @@ -0,0 +1,73 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// + /// + public class CreateResourceTagRequestBody + { + + [JsonProperty("tag", NullValueHandling = NullValueHandling.Ignore)] + public CreateResourceTagRequestBodyTag Tag { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CreateResourceTagRequestBody {\n"); + sb.Append(" tag: ").Append(Tag).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as CreateResourceTagRequestBody); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(CreateResourceTagRequestBody input) + { + if (input == null) + return false; + + return + ( + this.Tag == input.Tag || + (this.Tag != null && + this.Tag.Equals(input.Tag)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Tag != null) + hashCode = hashCode * 59 + this.Tag.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/CreateResourceTagRequestBodyTag.cs b/Services/Smn/V2/Model/CreateResourceTagRequestBodyTag.cs new file mode 100755 index 0000000..bd8050a --- /dev/null +++ b/Services/Smn/V2/Model/CreateResourceTagRequestBodyTag.cs @@ -0,0 +1,84 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// 资源标签结构体。 + /// + public class CreateResourceTagRequestBodyTag + { + + [JsonProperty("key", NullValueHandling = NullValueHandling.Ignore)] + public string Key { get; set; } + + [JsonProperty("value", NullValueHandling = NullValueHandling.Ignore)] + public string Value { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CreateResourceTagRequestBodyTag {\n"); + sb.Append(" key: ").Append(Key).Append("\n"); + sb.Append(" value: ").Append(Value).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as CreateResourceTagRequestBodyTag); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(CreateResourceTagRequestBodyTag input) + { + if (input == null) + return false; + + return + ( + this.Key == input.Key || + (this.Key != null && + this.Key.Equals(input.Key)) + ) && + ( + this.Value == input.Value || + (this.Value != null && + this.Value.Equals(input.Value)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Key != null) + hashCode = hashCode * 59 + this.Key.GetHashCode(); + if (this.Value != null) + hashCode = hashCode * 59 + this.Value.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/CreateResourceTagResponse.cs b/Services/Smn/V2/Model/CreateResourceTagResponse.cs new file mode 100755 index 0000000..988edd1 --- /dev/null +++ b/Services/Smn/V2/Model/CreateResourceTagResponse.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Response Object + /// + public class CreateResourceTagResponse : SdkResponse + { + + + } +} diff --git a/Services/Smn/V2/Model/CreateTopicRequest.cs b/Services/Smn/V2/Model/CreateTopicRequest.cs new file mode 100755 index 0000000..126f10a --- /dev/null +++ b/Services/Smn/V2/Model/CreateTopicRequest.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Request Object + /// + public class CreateTopicRequest + { + + [SDKProperty("body", IsBody = true)] + [JsonProperty("body", NullValueHandling = NullValueHandling.Ignore)] + public CreateTopicRequestBody Body { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CreateTopicRequest {\n"); + sb.Append(" body: ").Append(Body).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as CreateTopicRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(CreateTopicRequest input) + { + if (input == null) + return false; + + return + ( + this.Body == input.Body || + (this.Body != null && + this.Body.Equals(input.Body)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Body != null) + hashCode = hashCode * 59 + this.Body.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/CreateTopicRequestBody.cs b/Services/Smn/V2/Model/CreateTopicRequestBody.cs new file mode 100755 index 0000000..0148627 --- /dev/null +++ b/Services/Smn/V2/Model/CreateTopicRequestBody.cs @@ -0,0 +1,95 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// + /// + public class CreateTopicRequestBody + { + + [JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)] + public string Name { get; set; } + + [JsonProperty("display_name", NullValueHandling = NullValueHandling.Ignore)] + public string DisplayName { get; set; } + + [JsonProperty("enterprise_project_id", NullValueHandling = NullValueHandling.Ignore)] + public string EnterpriseProjectId { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CreateTopicRequestBody {\n"); + sb.Append(" name: ").Append(Name).Append("\n"); + sb.Append(" displayName: ").Append(DisplayName).Append("\n"); + sb.Append(" enterpriseProjectId: ").Append(EnterpriseProjectId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as CreateTopicRequestBody); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(CreateTopicRequestBody input) + { + if (input == null) + return false; + + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.DisplayName == input.DisplayName || + (this.DisplayName != null && + this.DisplayName.Equals(input.DisplayName)) + ) && + ( + this.EnterpriseProjectId == input.EnterpriseProjectId || + (this.EnterpriseProjectId != null && + this.EnterpriseProjectId.Equals(input.EnterpriseProjectId)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.DisplayName != null) + hashCode = hashCode * 59 + this.DisplayName.GetHashCode(); + if (this.EnterpriseProjectId != null) + hashCode = hashCode * 59 + this.EnterpriseProjectId.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/CreateTopicResponse.cs b/Services/Smn/V2/Model/CreateTopicResponse.cs new file mode 100755 index 0000000..d1a1de4 --- /dev/null +++ b/Services/Smn/V2/Model/CreateTopicResponse.cs @@ -0,0 +1,84 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Response Object + /// + public class CreateTopicResponse : SdkResponse + { + + [JsonProperty("request_id", NullValueHandling = NullValueHandling.Ignore)] + public string RequestId { get; set; } + + [JsonProperty("topic_urn", NullValueHandling = NullValueHandling.Ignore)] + public string TopicUrn { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CreateTopicResponse {\n"); + sb.Append(" requestId: ").Append(RequestId).Append("\n"); + sb.Append(" topicUrn: ").Append(TopicUrn).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as CreateTopicResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(CreateTopicResponse input) + { + if (input == null) + return false; + + return + ( + this.RequestId == input.RequestId || + (this.RequestId != null && + this.RequestId.Equals(input.RequestId)) + ) && + ( + this.TopicUrn == input.TopicUrn || + (this.TopicUrn != null && + this.TopicUrn.Equals(input.TopicUrn)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.RequestId != null) + hashCode = hashCode * 59 + this.RequestId.GetHashCode(); + if (this.TopicUrn != null) + hashCode = hashCode * 59 + this.TopicUrn.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/DeleteApplicationEndpointRequest.cs b/Services/Smn/V2/Model/DeleteApplicationEndpointRequest.cs new file mode 100755 index 0000000..a65d70c --- /dev/null +++ b/Services/Smn/V2/Model/DeleteApplicationEndpointRequest.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Request Object + /// + public class DeleteApplicationEndpointRequest + { + + [SDKProperty("endpoint_urn", IsPath = true)] + [JsonProperty("endpoint_urn", NullValueHandling = NullValueHandling.Ignore)] + public string EndpointUrn { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class DeleteApplicationEndpointRequest {\n"); + sb.Append(" endpointUrn: ").Append(EndpointUrn).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as DeleteApplicationEndpointRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(DeleteApplicationEndpointRequest input) + { + if (input == null) + return false; + + return + ( + this.EndpointUrn == input.EndpointUrn || + (this.EndpointUrn != null && + this.EndpointUrn.Equals(input.EndpointUrn)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EndpointUrn != null) + hashCode = hashCode * 59 + this.EndpointUrn.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/DeleteApplicationEndpointResponse.cs b/Services/Smn/V2/Model/DeleteApplicationEndpointResponse.cs new file mode 100755 index 0000000..90404c1 --- /dev/null +++ b/Services/Smn/V2/Model/DeleteApplicationEndpointResponse.cs @@ -0,0 +1,73 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Response Object + /// + public class DeleteApplicationEndpointResponse : SdkResponse + { + + [JsonProperty("request_id", NullValueHandling = NullValueHandling.Ignore)] + public string RequestId { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class DeleteApplicationEndpointResponse {\n"); + sb.Append(" requestId: ").Append(RequestId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as DeleteApplicationEndpointResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(DeleteApplicationEndpointResponse input) + { + if (input == null) + return false; + + return + ( + this.RequestId == input.RequestId || + (this.RequestId != null && + this.RequestId.Equals(input.RequestId)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.RequestId != null) + hashCode = hashCode * 59 + this.RequestId.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/DeleteApplicationRequest.cs b/Services/Smn/V2/Model/DeleteApplicationRequest.cs new file mode 100755 index 0000000..291f989 --- /dev/null +++ b/Services/Smn/V2/Model/DeleteApplicationRequest.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Request Object + /// + public class DeleteApplicationRequest + { + + [SDKProperty("application_urn", IsPath = true)] + [JsonProperty("application_urn", NullValueHandling = NullValueHandling.Ignore)] + public string ApplicationUrn { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class DeleteApplicationRequest {\n"); + sb.Append(" applicationUrn: ").Append(ApplicationUrn).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as DeleteApplicationRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(DeleteApplicationRequest input) + { + if (input == null) + return false; + + return + ( + this.ApplicationUrn == input.ApplicationUrn || + (this.ApplicationUrn != null && + this.ApplicationUrn.Equals(input.ApplicationUrn)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ApplicationUrn != null) + hashCode = hashCode * 59 + this.ApplicationUrn.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/DeleteApplicationResponse.cs b/Services/Smn/V2/Model/DeleteApplicationResponse.cs new file mode 100755 index 0000000..9d3431e --- /dev/null +++ b/Services/Smn/V2/Model/DeleteApplicationResponse.cs @@ -0,0 +1,73 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Response Object + /// + public class DeleteApplicationResponse : SdkResponse + { + + [JsonProperty("request_id", NullValueHandling = NullValueHandling.Ignore)] + public string RequestId { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class DeleteApplicationResponse {\n"); + sb.Append(" requestId: ").Append(RequestId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as DeleteApplicationResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(DeleteApplicationResponse input) + { + if (input == null) + return false; + + return + ( + this.RequestId == input.RequestId || + (this.RequestId != null && + this.RequestId.Equals(input.RequestId)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.RequestId != null) + hashCode = hashCode * 59 + this.RequestId.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/DeleteMessageTemplateRequest.cs b/Services/Smn/V2/Model/DeleteMessageTemplateRequest.cs new file mode 100755 index 0000000..e850514 --- /dev/null +++ b/Services/Smn/V2/Model/DeleteMessageTemplateRequest.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Request Object + /// + public class DeleteMessageTemplateRequest + { + + [SDKProperty("message_template_id", IsPath = true)] + [JsonProperty("message_template_id", NullValueHandling = NullValueHandling.Ignore)] + public string MessageTemplateId { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class DeleteMessageTemplateRequest {\n"); + sb.Append(" messageTemplateId: ").Append(MessageTemplateId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as DeleteMessageTemplateRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(DeleteMessageTemplateRequest input) + { + if (input == null) + return false; + + return + ( + this.MessageTemplateId == input.MessageTemplateId || + (this.MessageTemplateId != null && + this.MessageTemplateId.Equals(input.MessageTemplateId)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.MessageTemplateId != null) + hashCode = hashCode * 59 + this.MessageTemplateId.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/DeleteMessageTemplateResponse.cs b/Services/Smn/V2/Model/DeleteMessageTemplateResponse.cs new file mode 100755 index 0000000..bb5d269 --- /dev/null +++ b/Services/Smn/V2/Model/DeleteMessageTemplateResponse.cs @@ -0,0 +1,73 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Response Object + /// + public class DeleteMessageTemplateResponse : SdkResponse + { + + [JsonProperty("request_id", NullValueHandling = NullValueHandling.Ignore)] + public string RequestId { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class DeleteMessageTemplateResponse {\n"); + sb.Append(" requestId: ").Append(RequestId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as DeleteMessageTemplateResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(DeleteMessageTemplateResponse input) + { + if (input == null) + return false; + + return + ( + this.RequestId == input.RequestId || + (this.RequestId != null && + this.RequestId.Equals(input.RequestId)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.RequestId != null) + hashCode = hashCode * 59 + this.RequestId.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/DeleteResourceTagRequest.cs b/Services/Smn/V2/Model/DeleteResourceTagRequest.cs new file mode 100755 index 0000000..4b554f9 --- /dev/null +++ b/Services/Smn/V2/Model/DeleteResourceTagRequest.cs @@ -0,0 +1,98 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Request Object + /// + public class DeleteResourceTagRequest + { + + [SDKProperty("resource_type", IsPath = true)] + [JsonProperty("resource_type", NullValueHandling = NullValueHandling.Ignore)] + public string ResourceType { get; set; } + + [SDKProperty("resource_id", IsPath = true)] + [JsonProperty("resource_id", NullValueHandling = NullValueHandling.Ignore)] + public string ResourceId { get; set; } + + [SDKProperty("key", IsPath = true)] + [JsonProperty("key", NullValueHandling = NullValueHandling.Ignore)] + public string Key { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class DeleteResourceTagRequest {\n"); + sb.Append(" resourceType: ").Append(ResourceType).Append("\n"); + sb.Append(" resourceId: ").Append(ResourceId).Append("\n"); + sb.Append(" key: ").Append(Key).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as DeleteResourceTagRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(DeleteResourceTagRequest input) + { + if (input == null) + return false; + + return + ( + this.ResourceType == input.ResourceType || + (this.ResourceType != null && + this.ResourceType.Equals(input.ResourceType)) + ) && + ( + this.ResourceId == input.ResourceId || + (this.ResourceId != null && + this.ResourceId.Equals(input.ResourceId)) + ) && + ( + this.Key == input.Key || + (this.Key != null && + this.Key.Equals(input.Key)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ResourceType != null) + hashCode = hashCode * 59 + this.ResourceType.GetHashCode(); + if (this.ResourceId != null) + hashCode = hashCode * 59 + this.ResourceId.GetHashCode(); + if (this.Key != null) + hashCode = hashCode * 59 + this.Key.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/DeleteResourceTagResponse.cs b/Services/Smn/V2/Model/DeleteResourceTagResponse.cs new file mode 100755 index 0000000..f03c507 --- /dev/null +++ b/Services/Smn/V2/Model/DeleteResourceTagResponse.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Response Object + /// + public class DeleteResourceTagResponse : SdkResponse + { + + + } +} diff --git a/Services/Smn/V2/Model/DeleteTopicAttributeByNameRequest.cs b/Services/Smn/V2/Model/DeleteTopicAttributeByNameRequest.cs new file mode 100755 index 0000000..eecdc20 --- /dev/null +++ b/Services/Smn/V2/Model/DeleteTopicAttributeByNameRequest.cs @@ -0,0 +1,86 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Request Object + /// + public class DeleteTopicAttributeByNameRequest + { + + [SDKProperty("topic_urn", IsPath = true)] + [JsonProperty("topic_urn", NullValueHandling = NullValueHandling.Ignore)] + public string TopicUrn { get; set; } + + [SDKProperty("name", IsPath = true)] + [JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)] + public string Name { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class DeleteTopicAttributeByNameRequest {\n"); + sb.Append(" topicUrn: ").Append(TopicUrn).Append("\n"); + sb.Append(" name: ").Append(Name).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as DeleteTopicAttributeByNameRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(DeleteTopicAttributeByNameRequest input) + { + if (input == null) + return false; + + return + ( + this.TopicUrn == input.TopicUrn || + (this.TopicUrn != null && + this.TopicUrn.Equals(input.TopicUrn)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.TopicUrn != null) + hashCode = hashCode * 59 + this.TopicUrn.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/DeleteTopicAttributeByNameResponse.cs b/Services/Smn/V2/Model/DeleteTopicAttributeByNameResponse.cs new file mode 100755 index 0000000..e72997e --- /dev/null +++ b/Services/Smn/V2/Model/DeleteTopicAttributeByNameResponse.cs @@ -0,0 +1,73 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Response Object + /// + public class DeleteTopicAttributeByNameResponse : SdkResponse + { + + [JsonProperty("request_id", NullValueHandling = NullValueHandling.Ignore)] + public string RequestId { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class DeleteTopicAttributeByNameResponse {\n"); + sb.Append(" requestId: ").Append(RequestId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as DeleteTopicAttributeByNameResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(DeleteTopicAttributeByNameResponse input) + { + if (input == null) + return false; + + return + ( + this.RequestId == input.RequestId || + (this.RequestId != null && + this.RequestId.Equals(input.RequestId)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.RequestId != null) + hashCode = hashCode * 59 + this.RequestId.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/DeleteTopicAttributesRequest.cs b/Services/Smn/V2/Model/DeleteTopicAttributesRequest.cs new file mode 100755 index 0000000..275eaf1 --- /dev/null +++ b/Services/Smn/V2/Model/DeleteTopicAttributesRequest.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Request Object + /// + public class DeleteTopicAttributesRequest + { + + [SDKProperty("topic_urn", IsPath = true)] + [JsonProperty("topic_urn", NullValueHandling = NullValueHandling.Ignore)] + public string TopicUrn { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class DeleteTopicAttributesRequest {\n"); + sb.Append(" topicUrn: ").Append(TopicUrn).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as DeleteTopicAttributesRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(DeleteTopicAttributesRequest input) + { + if (input == null) + return false; + + return + ( + this.TopicUrn == input.TopicUrn || + (this.TopicUrn != null && + this.TopicUrn.Equals(input.TopicUrn)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.TopicUrn != null) + hashCode = hashCode * 59 + this.TopicUrn.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/DeleteTopicAttributesResponse.cs b/Services/Smn/V2/Model/DeleteTopicAttributesResponse.cs new file mode 100755 index 0000000..df746b1 --- /dev/null +++ b/Services/Smn/V2/Model/DeleteTopicAttributesResponse.cs @@ -0,0 +1,73 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Response Object + /// + public class DeleteTopicAttributesResponse : SdkResponse + { + + [JsonProperty("request_id", NullValueHandling = NullValueHandling.Ignore)] + public string RequestId { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class DeleteTopicAttributesResponse {\n"); + sb.Append(" requestId: ").Append(RequestId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as DeleteTopicAttributesResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(DeleteTopicAttributesResponse input) + { + if (input == null) + return false; + + return + ( + this.RequestId == input.RequestId || + (this.RequestId != null && + this.RequestId.Equals(input.RequestId)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.RequestId != null) + hashCode = hashCode * 59 + this.RequestId.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/DeleteTopicRequest.cs b/Services/Smn/V2/Model/DeleteTopicRequest.cs new file mode 100755 index 0000000..0414a60 --- /dev/null +++ b/Services/Smn/V2/Model/DeleteTopicRequest.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Request Object + /// + public class DeleteTopicRequest + { + + [SDKProperty("topic_urn", IsPath = true)] + [JsonProperty("topic_urn", NullValueHandling = NullValueHandling.Ignore)] + public string TopicUrn { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class DeleteTopicRequest {\n"); + sb.Append(" topicUrn: ").Append(TopicUrn).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as DeleteTopicRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(DeleteTopicRequest input) + { + if (input == null) + return false; + + return + ( + this.TopicUrn == input.TopicUrn || + (this.TopicUrn != null && + this.TopicUrn.Equals(input.TopicUrn)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.TopicUrn != null) + hashCode = hashCode * 59 + this.TopicUrn.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/DeleteTopicResponse.cs b/Services/Smn/V2/Model/DeleteTopicResponse.cs new file mode 100755 index 0000000..19e3771 --- /dev/null +++ b/Services/Smn/V2/Model/DeleteTopicResponse.cs @@ -0,0 +1,73 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Response Object + /// + public class DeleteTopicResponse : SdkResponse + { + + [JsonProperty("request_id", NullValueHandling = NullValueHandling.Ignore)] + public string RequestId { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class DeleteTopicResponse {\n"); + sb.Append(" requestId: ").Append(RequestId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as DeleteTopicResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(DeleteTopicResponse input) + { + if (input == null) + return false; + + return + ( + this.RequestId == input.RequestId || + (this.RequestId != null && + this.RequestId.Equals(input.RequestId)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.RequestId != null) + hashCode = hashCode * 59 + this.RequestId.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/LinksItem.cs b/Services/Smn/V2/Model/LinksItem.cs new file mode 100755 index 0000000..4837dac --- /dev/null +++ b/Services/Smn/V2/Model/LinksItem.cs @@ -0,0 +1,84 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// + /// + public class LinksItem + { + + [JsonProperty("href", NullValueHandling = NullValueHandling.Ignore)] + public string Href { get; set; } + + [JsonProperty("rel", NullValueHandling = NullValueHandling.Ignore)] + public string Rel { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class LinksItem {\n"); + sb.Append(" href: ").Append(Href).Append("\n"); + sb.Append(" rel: ").Append(Rel).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as LinksItem); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(LinksItem input) + { + if (input == null) + return false; + + return + ( + this.Href == input.Href || + (this.Href != null && + this.Href.Equals(input.Href)) + ) && + ( + this.Rel == input.Rel || + (this.Rel != null && + this.Rel.Equals(input.Rel)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Href != null) + hashCode = hashCode * 59 + this.Href.GetHashCode(); + if (this.Rel != null) + hashCode = hashCode * 59 + this.Rel.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/ListApplicationAttributesRequest.cs b/Services/Smn/V2/Model/ListApplicationAttributesRequest.cs new file mode 100755 index 0000000..ef1c30e --- /dev/null +++ b/Services/Smn/V2/Model/ListApplicationAttributesRequest.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Request Object + /// + public class ListApplicationAttributesRequest + { + + [SDKProperty("application_urn", IsPath = true)] + [JsonProperty("application_urn", NullValueHandling = NullValueHandling.Ignore)] + public string ApplicationUrn { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ListApplicationAttributesRequest {\n"); + sb.Append(" applicationUrn: ").Append(ApplicationUrn).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ListApplicationAttributesRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ListApplicationAttributesRequest input) + { + if (input == null) + return false; + + return + ( + this.ApplicationUrn == input.ApplicationUrn || + (this.ApplicationUrn != null && + this.ApplicationUrn.Equals(input.ApplicationUrn)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ApplicationUrn != null) + hashCode = hashCode * 59 + this.ApplicationUrn.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/ListApplicationAttributesResponse.cs b/Services/Smn/V2/Model/ListApplicationAttributesResponse.cs new file mode 100755 index 0000000..6044c56 --- /dev/null +++ b/Services/Smn/V2/Model/ListApplicationAttributesResponse.cs @@ -0,0 +1,95 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Response Object + /// + public class ListApplicationAttributesResponse : SdkResponse + { + + [JsonProperty("request_id", NullValueHandling = NullValueHandling.Ignore)] + public string RequestId { get; set; } + + [JsonProperty("application_id", NullValueHandling = NullValueHandling.Ignore)] + public string ApplicationId { get; set; } + + [JsonProperty("attributes", NullValueHandling = NullValueHandling.Ignore)] + public ListApplicationAttributesResponseBodyAttributes Attributes { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ListApplicationAttributesResponse {\n"); + sb.Append(" requestId: ").Append(RequestId).Append("\n"); + sb.Append(" applicationId: ").Append(ApplicationId).Append("\n"); + sb.Append(" attributes: ").Append(Attributes).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ListApplicationAttributesResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ListApplicationAttributesResponse input) + { + if (input == null) + return false; + + return + ( + this.RequestId == input.RequestId || + (this.RequestId != null && + this.RequestId.Equals(input.RequestId)) + ) && + ( + this.ApplicationId == input.ApplicationId || + (this.ApplicationId != null && + this.ApplicationId.Equals(input.ApplicationId)) + ) && + ( + this.Attributes == input.Attributes || + (this.Attributes != null && + this.Attributes.Equals(input.Attributes)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.RequestId != null) + hashCode = hashCode * 59 + this.RequestId.GetHashCode(); + if (this.ApplicationId != null) + hashCode = hashCode * 59 + this.ApplicationId.GetHashCode(); + if (this.Attributes != null) + hashCode = hashCode * 59 + this.Attributes.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/ListApplicationAttributesResponseBodyAttributes.cs b/Services/Smn/V2/Model/ListApplicationAttributesResponseBodyAttributes.cs new file mode 100755 index 0000000..8184f92 --- /dev/null +++ b/Services/Smn/V2/Model/ListApplicationAttributesResponseBodyAttributes.cs @@ -0,0 +1,84 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// + /// + public class ListApplicationAttributesResponseBodyAttributes + { + + [JsonProperty("enabled", NullValueHandling = NullValueHandling.Ignore)] + public string Enabled { get; set; } + + [JsonProperty("apple_certificate_expiration_date", NullValueHandling = NullValueHandling.Ignore)] + public string AppleCertificateExpirationDate { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ListApplicationAttributesResponseBodyAttributes {\n"); + sb.Append(" enabled: ").Append(Enabled).Append("\n"); + sb.Append(" appleCertificateExpirationDate: ").Append(AppleCertificateExpirationDate).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ListApplicationAttributesResponseBodyAttributes); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ListApplicationAttributesResponseBodyAttributes input) + { + if (input == null) + return false; + + return + ( + this.Enabled == input.Enabled || + (this.Enabled != null && + this.Enabled.Equals(input.Enabled)) + ) && + ( + this.AppleCertificateExpirationDate == input.AppleCertificateExpirationDate || + (this.AppleCertificateExpirationDate != null && + this.AppleCertificateExpirationDate.Equals(input.AppleCertificateExpirationDate)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Enabled != null) + hashCode = hashCode * 59 + this.Enabled.GetHashCode(); + if (this.AppleCertificateExpirationDate != null) + hashCode = hashCode * 59 + this.AppleCertificateExpirationDate.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/ListApplicationEndpointAttributesRequest.cs b/Services/Smn/V2/Model/ListApplicationEndpointAttributesRequest.cs new file mode 100755 index 0000000..0c2554c --- /dev/null +++ b/Services/Smn/V2/Model/ListApplicationEndpointAttributesRequest.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Request Object + /// + public class ListApplicationEndpointAttributesRequest + { + + [SDKProperty("endpoint_urn", IsPath = true)] + [JsonProperty("endpoint_urn", NullValueHandling = NullValueHandling.Ignore)] + public string EndpointUrn { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ListApplicationEndpointAttributesRequest {\n"); + sb.Append(" endpointUrn: ").Append(EndpointUrn).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ListApplicationEndpointAttributesRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ListApplicationEndpointAttributesRequest input) + { + if (input == null) + return false; + + return + ( + this.EndpointUrn == input.EndpointUrn || + (this.EndpointUrn != null && + this.EndpointUrn.Equals(input.EndpointUrn)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EndpointUrn != null) + hashCode = hashCode * 59 + this.EndpointUrn.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/ListApplicationEndpointAttributesResponse.cs b/Services/Smn/V2/Model/ListApplicationEndpointAttributesResponse.cs new file mode 100755 index 0000000..e0ed092 --- /dev/null +++ b/Services/Smn/V2/Model/ListApplicationEndpointAttributesResponse.cs @@ -0,0 +1,84 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Response Object + /// + public class ListApplicationEndpointAttributesResponse : SdkResponse + { + + [JsonProperty("request_id", NullValueHandling = NullValueHandling.Ignore)] + public string RequestId { get; set; } + + [JsonProperty("attributes", NullValueHandling = NullValueHandling.Ignore)] + public ListApplicationEndpointAttributesResponseBodyAttributes Attributes { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ListApplicationEndpointAttributesResponse {\n"); + sb.Append(" requestId: ").Append(RequestId).Append("\n"); + sb.Append(" attributes: ").Append(Attributes).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ListApplicationEndpointAttributesResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ListApplicationEndpointAttributesResponse input) + { + if (input == null) + return false; + + return + ( + this.RequestId == input.RequestId || + (this.RequestId != null && + this.RequestId.Equals(input.RequestId)) + ) && + ( + this.Attributes == input.Attributes || + (this.Attributes != null && + this.Attributes.Equals(input.Attributes)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.RequestId != null) + hashCode = hashCode * 59 + this.RequestId.GetHashCode(); + if (this.Attributes != null) + hashCode = hashCode * 59 + this.Attributes.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/ListApplicationEndpointAttributesResponseBodyAttributes.cs b/Services/Smn/V2/Model/ListApplicationEndpointAttributesResponseBodyAttributes.cs new file mode 100755 index 0000000..37a2c78 --- /dev/null +++ b/Services/Smn/V2/Model/ListApplicationEndpointAttributesResponseBodyAttributes.cs @@ -0,0 +1,95 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// + /// + public class ListApplicationEndpointAttributesResponseBodyAttributes + { + + [JsonProperty("enabled", NullValueHandling = NullValueHandling.Ignore)] + public string Enabled { get; set; } + + [JsonProperty("token", NullValueHandling = NullValueHandling.Ignore)] + public string Token { get; set; } + + [JsonProperty("user_data", NullValueHandling = NullValueHandling.Ignore)] + public string UserData { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ListApplicationEndpointAttributesResponseBodyAttributes {\n"); + sb.Append(" enabled: ").Append(Enabled).Append("\n"); + sb.Append(" token: ").Append(Token).Append("\n"); + sb.Append(" userData: ").Append(UserData).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ListApplicationEndpointAttributesResponseBodyAttributes); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ListApplicationEndpointAttributesResponseBodyAttributes input) + { + if (input == null) + return false; + + return + ( + this.Enabled == input.Enabled || + (this.Enabled != null && + this.Enabled.Equals(input.Enabled)) + ) && + ( + this.Token == input.Token || + (this.Token != null && + this.Token.Equals(input.Token)) + ) && + ( + this.UserData == input.UserData || + (this.UserData != null && + this.UserData.Equals(input.UserData)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Enabled != null) + hashCode = hashCode * 59 + this.Enabled.GetHashCode(); + if (this.Token != null) + hashCode = hashCode * 59 + this.Token.GetHashCode(); + if (this.UserData != null) + hashCode = hashCode * 59 + this.UserData.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/ListApplicationEndpointsRequest.cs b/Services/Smn/V2/Model/ListApplicationEndpointsRequest.cs new file mode 100755 index 0000000..5791b61 --- /dev/null +++ b/Services/Smn/V2/Model/ListApplicationEndpointsRequest.cs @@ -0,0 +1,134 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Request Object + /// + public class ListApplicationEndpointsRequest + { + + [SDKProperty("application_urn", IsPath = true)] + [JsonProperty("application_urn", NullValueHandling = NullValueHandling.Ignore)] + public string ApplicationUrn { get; set; } + + [SDKProperty("offset", IsQuery = true)] + [JsonProperty("offset", NullValueHandling = NullValueHandling.Ignore)] + public int? Offset { get; set; } + + [SDKProperty("limit", IsQuery = true)] + [JsonProperty("limit", NullValueHandling = NullValueHandling.Ignore)] + public int? Limit { get; set; } + + [SDKProperty("enabled", IsQuery = true)] + [JsonProperty("enabled", NullValueHandling = NullValueHandling.Ignore)] + public string Enabled { get; set; } + + [SDKProperty("token", IsQuery = true)] + [JsonProperty("token", NullValueHandling = NullValueHandling.Ignore)] + public string Token { get; set; } + + [SDKProperty("user_data", IsQuery = true)] + [JsonProperty("user_data", NullValueHandling = NullValueHandling.Ignore)] + public string UserData { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ListApplicationEndpointsRequest {\n"); + sb.Append(" applicationUrn: ").Append(ApplicationUrn).Append("\n"); + sb.Append(" offset: ").Append(Offset).Append("\n"); + sb.Append(" limit: ").Append(Limit).Append("\n"); + sb.Append(" enabled: ").Append(Enabled).Append("\n"); + sb.Append(" token: ").Append(Token).Append("\n"); + sb.Append(" userData: ").Append(UserData).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ListApplicationEndpointsRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ListApplicationEndpointsRequest input) + { + if (input == null) + return false; + + return + ( + this.ApplicationUrn == input.ApplicationUrn || + (this.ApplicationUrn != null && + this.ApplicationUrn.Equals(input.ApplicationUrn)) + ) && + ( + this.Offset == input.Offset || + (this.Offset != null && + this.Offset.Equals(input.Offset)) + ) && + ( + this.Limit == input.Limit || + (this.Limit != null && + this.Limit.Equals(input.Limit)) + ) && + ( + this.Enabled == input.Enabled || + (this.Enabled != null && + this.Enabled.Equals(input.Enabled)) + ) && + ( + this.Token == input.Token || + (this.Token != null && + this.Token.Equals(input.Token)) + ) && + ( + this.UserData == input.UserData || + (this.UserData != null && + this.UserData.Equals(input.UserData)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ApplicationUrn != null) + hashCode = hashCode * 59 + this.ApplicationUrn.GetHashCode(); + if (this.Offset != null) + hashCode = hashCode * 59 + this.Offset.GetHashCode(); + if (this.Limit != null) + hashCode = hashCode * 59 + this.Limit.GetHashCode(); + if (this.Enabled != null) + hashCode = hashCode * 59 + this.Enabled.GetHashCode(); + if (this.Token != null) + hashCode = hashCode * 59 + this.Token.GetHashCode(); + if (this.UserData != null) + hashCode = hashCode * 59 + this.UserData.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/ListApplicationEndpointsResponse.cs b/Services/Smn/V2/Model/ListApplicationEndpointsResponse.cs new file mode 100755 index 0000000..6bd5fda --- /dev/null +++ b/Services/Smn/V2/Model/ListApplicationEndpointsResponse.cs @@ -0,0 +1,96 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Response Object + /// + public class ListApplicationEndpointsResponse : SdkResponse + { + + [JsonProperty("request_id", NullValueHandling = NullValueHandling.Ignore)] + public string RequestId { get; set; } + + [JsonProperty("next_page_flag", NullValueHandling = NullValueHandling.Ignore)] + public bool? NextPageFlag { get; set; } + + [JsonProperty("endpoints", NullValueHandling = NullValueHandling.Ignore)] + public List Endpoints { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ListApplicationEndpointsResponse {\n"); + sb.Append(" requestId: ").Append(RequestId).Append("\n"); + sb.Append(" nextPageFlag: ").Append(NextPageFlag).Append("\n"); + sb.Append(" endpoints: ").Append(Endpoints).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ListApplicationEndpointsResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ListApplicationEndpointsResponse input) + { + if (input == null) + return false; + + return + ( + this.RequestId == input.RequestId || + (this.RequestId != null && + this.RequestId.Equals(input.RequestId)) + ) && + ( + this.NextPageFlag == input.NextPageFlag || + (this.NextPageFlag != null && + this.NextPageFlag.Equals(input.NextPageFlag)) + ) && + ( + this.Endpoints == input.Endpoints || + this.Endpoints != null && + input.Endpoints != null && + this.Endpoints.SequenceEqual(input.Endpoints) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.RequestId != null) + hashCode = hashCode * 59 + this.RequestId.GetHashCode(); + if (this.NextPageFlag != null) + hashCode = hashCode * 59 + this.NextPageFlag.GetHashCode(); + if (this.Endpoints != null) + hashCode = hashCode * 59 + this.Endpoints.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/ListApplicationsRequest.cs b/Services/Smn/V2/Model/ListApplicationsRequest.cs new file mode 100755 index 0000000..c4a13be --- /dev/null +++ b/Services/Smn/V2/Model/ListApplicationsRequest.cs @@ -0,0 +1,110 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Request Object + /// + public class ListApplicationsRequest + { + + [SDKProperty("offset", IsQuery = true)] + [JsonProperty("offset", NullValueHandling = NullValueHandling.Ignore)] + public int? Offset { get; set; } + + [SDKProperty("limit", IsQuery = true)] + [JsonProperty("limit", NullValueHandling = NullValueHandling.Ignore)] + public int? Limit { get; set; } + + [SDKProperty("name", IsQuery = true)] + [JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)] + public string Name { get; set; } + + [SDKProperty("platform", IsQuery = true)] + [JsonProperty("platform", NullValueHandling = NullValueHandling.Ignore)] + public string Platform { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ListApplicationsRequest {\n"); + sb.Append(" offset: ").Append(Offset).Append("\n"); + sb.Append(" limit: ").Append(Limit).Append("\n"); + sb.Append(" name: ").Append(Name).Append("\n"); + sb.Append(" platform: ").Append(Platform).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ListApplicationsRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ListApplicationsRequest input) + { + if (input == null) + return false; + + return + ( + this.Offset == input.Offset || + (this.Offset != null && + this.Offset.Equals(input.Offset)) + ) && + ( + this.Limit == input.Limit || + (this.Limit != null && + this.Limit.Equals(input.Limit)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Platform == input.Platform || + (this.Platform != null && + this.Platform.Equals(input.Platform)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Offset != null) + hashCode = hashCode * 59 + this.Offset.GetHashCode(); + if (this.Limit != null) + hashCode = hashCode * 59 + this.Limit.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Platform != null) + hashCode = hashCode * 59 + this.Platform.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/ListApplicationsResponse.cs b/Services/Smn/V2/Model/ListApplicationsResponse.cs new file mode 100755 index 0000000..d8e64cc --- /dev/null +++ b/Services/Smn/V2/Model/ListApplicationsResponse.cs @@ -0,0 +1,96 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Response Object + /// + public class ListApplicationsResponse : SdkResponse + { + + [JsonProperty("request_id", NullValueHandling = NullValueHandling.Ignore)] + public string RequestId { get; set; } + + [JsonProperty("application_count", NullValueHandling = NullValueHandling.Ignore)] + public int? ApplicationCount { get; set; } + + [JsonProperty("applications", NullValueHandling = NullValueHandling.Ignore)] + public List Applications { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ListApplicationsResponse {\n"); + sb.Append(" requestId: ").Append(RequestId).Append("\n"); + sb.Append(" applicationCount: ").Append(ApplicationCount).Append("\n"); + sb.Append(" applications: ").Append(Applications).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ListApplicationsResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ListApplicationsResponse input) + { + if (input == null) + return false; + + return + ( + this.RequestId == input.RequestId || + (this.RequestId != null && + this.RequestId.Equals(input.RequestId)) + ) && + ( + this.ApplicationCount == input.ApplicationCount || + (this.ApplicationCount != null && + this.ApplicationCount.Equals(input.ApplicationCount)) + ) && + ( + this.Applications == input.Applications || + this.Applications != null && + input.Applications != null && + this.Applications.SequenceEqual(input.Applications) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.RequestId != null) + hashCode = hashCode * 59 + this.RequestId.GetHashCode(); + if (this.ApplicationCount != null) + hashCode = hashCode * 59 + this.ApplicationCount.GetHashCode(); + if (this.Applications != null) + hashCode = hashCode * 59 + this.Applications.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/ListInstanceRequestBody.cs b/Services/Smn/V2/Model/ListInstanceRequestBody.cs new file mode 100755 index 0000000..8371de9 --- /dev/null +++ b/Services/Smn/V2/Model/ListInstanceRequestBody.cs @@ -0,0 +1,155 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// + /// + public class ListInstanceRequestBody + { + + [JsonProperty("tags", NullValueHandling = NullValueHandling.Ignore)] + public List Tags { get; set; } + + [JsonProperty("tags_any", NullValueHandling = NullValueHandling.Ignore)] + public List TagsAny { get; set; } + + [JsonProperty("not_tags", NullValueHandling = NullValueHandling.Ignore)] + public List NotTags { get; set; } + + [JsonProperty("not_tags_any", NullValueHandling = NullValueHandling.Ignore)] + public List NotTagsAny { get; set; } + + [JsonProperty("offset", NullValueHandling = NullValueHandling.Ignore)] + public string Offset { get; set; } + + [JsonProperty("limit", NullValueHandling = NullValueHandling.Ignore)] + public string Limit { get; set; } + + [JsonProperty("action", NullValueHandling = NullValueHandling.Ignore)] + public string Action { get; set; } + + [JsonProperty("matches", NullValueHandling = NullValueHandling.Ignore)] + public List Matches { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ListInstanceRequestBody {\n"); + sb.Append(" tags: ").Append(Tags).Append("\n"); + sb.Append(" tagsAny: ").Append(TagsAny).Append("\n"); + sb.Append(" notTags: ").Append(NotTags).Append("\n"); + sb.Append(" notTagsAny: ").Append(NotTagsAny).Append("\n"); + sb.Append(" offset: ").Append(Offset).Append("\n"); + sb.Append(" limit: ").Append(Limit).Append("\n"); + sb.Append(" action: ").Append(Action).Append("\n"); + sb.Append(" matches: ").Append(Matches).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ListInstanceRequestBody); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ListInstanceRequestBody input) + { + if (input == null) + return false; + + return + ( + this.Tags == input.Tags || + this.Tags != null && + input.Tags != null && + this.Tags.SequenceEqual(input.Tags) + ) && + ( + this.TagsAny == input.TagsAny || + this.TagsAny != null && + input.TagsAny != null && + this.TagsAny.SequenceEqual(input.TagsAny) + ) && + ( + this.NotTags == input.NotTags || + this.NotTags != null && + input.NotTags != null && + this.NotTags.SequenceEqual(input.NotTags) + ) && + ( + this.NotTagsAny == input.NotTagsAny || + this.NotTagsAny != null && + input.NotTagsAny != null && + this.NotTagsAny.SequenceEqual(input.NotTagsAny) + ) && + ( + this.Offset == input.Offset || + (this.Offset != null && + this.Offset.Equals(input.Offset)) + ) && + ( + this.Limit == input.Limit || + (this.Limit != null && + this.Limit.Equals(input.Limit)) + ) && + ( + this.Action == input.Action || + (this.Action != null && + this.Action.Equals(input.Action)) + ) && + ( + this.Matches == input.Matches || + this.Matches != null && + input.Matches != null && + this.Matches.SequenceEqual(input.Matches) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Tags != null) + hashCode = hashCode * 59 + this.Tags.GetHashCode(); + if (this.TagsAny != null) + hashCode = hashCode * 59 + this.TagsAny.GetHashCode(); + if (this.NotTags != null) + hashCode = hashCode * 59 + this.NotTags.GetHashCode(); + if (this.NotTagsAny != null) + hashCode = hashCode * 59 + this.NotTagsAny.GetHashCode(); + if (this.Offset != null) + hashCode = hashCode * 59 + this.Offset.GetHashCode(); + if (this.Limit != null) + hashCode = hashCode * 59 + this.Limit.GetHashCode(); + if (this.Action != null) + hashCode = hashCode * 59 + this.Action.GetHashCode(); + if (this.Matches != null) + hashCode = hashCode * 59 + this.Matches.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/ListMessageTemplateDetailsRequest.cs b/Services/Smn/V2/Model/ListMessageTemplateDetailsRequest.cs new file mode 100755 index 0000000..1dc4e8d --- /dev/null +++ b/Services/Smn/V2/Model/ListMessageTemplateDetailsRequest.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Request Object + /// + public class ListMessageTemplateDetailsRequest + { + + [SDKProperty("message_template_id", IsPath = true)] + [JsonProperty("message_template_id", NullValueHandling = NullValueHandling.Ignore)] + public string MessageTemplateId { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ListMessageTemplateDetailsRequest {\n"); + sb.Append(" messageTemplateId: ").Append(MessageTemplateId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ListMessageTemplateDetailsRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ListMessageTemplateDetailsRequest input) + { + if (input == null) + return false; + + return + ( + this.MessageTemplateId == input.MessageTemplateId || + (this.MessageTemplateId != null && + this.MessageTemplateId.Equals(input.MessageTemplateId)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.MessageTemplateId != null) + hashCode = hashCode * 59 + this.MessageTemplateId.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/ListMessageTemplateDetailsResponse.cs b/Services/Smn/V2/Model/ListMessageTemplateDetailsResponse.cs new file mode 100755 index 0000000..98e2ded --- /dev/null +++ b/Services/Smn/V2/Model/ListMessageTemplateDetailsResponse.cs @@ -0,0 +1,151 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Response Object + /// + public class ListMessageTemplateDetailsResponse : SdkResponse + { + + [JsonProperty("message_template_id", NullValueHandling = NullValueHandling.Ignore)] + public string MessageTemplateId { get; set; } + + [JsonProperty("message_template_name", NullValueHandling = NullValueHandling.Ignore)] + public string MessageTemplateName { get; set; } + + [JsonProperty("protocol", NullValueHandling = NullValueHandling.Ignore)] + public string Protocol { get; set; } + + [JsonProperty("tag_names", NullValueHandling = NullValueHandling.Ignore)] + public List TagNames { get; set; } + + [JsonProperty("create_time", NullValueHandling = NullValueHandling.Ignore)] + public string CreateTime { get; set; } + + [JsonProperty("update_time", NullValueHandling = NullValueHandling.Ignore)] + public string UpdateTime { get; set; } + + [JsonProperty("content", NullValueHandling = NullValueHandling.Ignore)] + public string Content { get; set; } + + [JsonProperty("request_id", NullValueHandling = NullValueHandling.Ignore)] + public string RequestId { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ListMessageTemplateDetailsResponse {\n"); + sb.Append(" messageTemplateId: ").Append(MessageTemplateId).Append("\n"); + sb.Append(" messageTemplateName: ").Append(MessageTemplateName).Append("\n"); + sb.Append(" protocol: ").Append(Protocol).Append("\n"); + sb.Append(" tagNames: ").Append(TagNames).Append("\n"); + sb.Append(" createTime: ").Append(CreateTime).Append("\n"); + sb.Append(" updateTime: ").Append(UpdateTime).Append("\n"); + sb.Append(" content: ").Append(Content).Append("\n"); + sb.Append(" requestId: ").Append(RequestId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ListMessageTemplateDetailsResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ListMessageTemplateDetailsResponse input) + { + if (input == null) + return false; + + return + ( + this.MessageTemplateId == input.MessageTemplateId || + (this.MessageTemplateId != null && + this.MessageTemplateId.Equals(input.MessageTemplateId)) + ) && + ( + this.MessageTemplateName == input.MessageTemplateName || + (this.MessageTemplateName != null && + this.MessageTemplateName.Equals(input.MessageTemplateName)) + ) && + ( + this.Protocol == input.Protocol || + (this.Protocol != null && + this.Protocol.Equals(input.Protocol)) + ) && + ( + this.TagNames == input.TagNames || + this.TagNames != null && + input.TagNames != null && + this.TagNames.SequenceEqual(input.TagNames) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.UpdateTime == input.UpdateTime || + (this.UpdateTime != null && + this.UpdateTime.Equals(input.UpdateTime)) + ) && + ( + this.Content == input.Content || + (this.Content != null && + this.Content.Equals(input.Content)) + ) && + ( + this.RequestId == input.RequestId || + (this.RequestId != null && + this.RequestId.Equals(input.RequestId)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.MessageTemplateId != null) + hashCode = hashCode * 59 + this.MessageTemplateId.GetHashCode(); + if (this.MessageTemplateName != null) + hashCode = hashCode * 59 + this.MessageTemplateName.GetHashCode(); + if (this.Protocol != null) + hashCode = hashCode * 59 + this.Protocol.GetHashCode(); + if (this.TagNames != null) + hashCode = hashCode * 59 + this.TagNames.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.UpdateTime != null) + hashCode = hashCode * 59 + this.UpdateTime.GetHashCode(); + if (this.Content != null) + hashCode = hashCode * 59 + this.Content.GetHashCode(); + if (this.RequestId != null) + hashCode = hashCode * 59 + this.RequestId.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/ListMessageTemplatesRequest.cs b/Services/Smn/V2/Model/ListMessageTemplatesRequest.cs new file mode 100755 index 0000000..2d30031 --- /dev/null +++ b/Services/Smn/V2/Model/ListMessageTemplatesRequest.cs @@ -0,0 +1,110 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Request Object + /// + public class ListMessageTemplatesRequest + { + + [SDKProperty("offset", IsQuery = true)] + [JsonProperty("offset", NullValueHandling = NullValueHandling.Ignore)] + public int? Offset { get; set; } + + [SDKProperty("limit", IsQuery = true)] + [JsonProperty("limit", NullValueHandling = NullValueHandling.Ignore)] + public int? Limit { get; set; } + + [SDKProperty("message_template_name", IsQuery = true)] + [JsonProperty("message_template_name", NullValueHandling = NullValueHandling.Ignore)] + public string MessageTemplateName { get; set; } + + [SDKProperty("protocol", IsQuery = true)] + [JsonProperty("protocol", NullValueHandling = NullValueHandling.Ignore)] + public string Protocol { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ListMessageTemplatesRequest {\n"); + sb.Append(" offset: ").Append(Offset).Append("\n"); + sb.Append(" limit: ").Append(Limit).Append("\n"); + sb.Append(" messageTemplateName: ").Append(MessageTemplateName).Append("\n"); + sb.Append(" protocol: ").Append(Protocol).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ListMessageTemplatesRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ListMessageTemplatesRequest input) + { + if (input == null) + return false; + + return + ( + this.Offset == input.Offset || + (this.Offset != null && + this.Offset.Equals(input.Offset)) + ) && + ( + this.Limit == input.Limit || + (this.Limit != null && + this.Limit.Equals(input.Limit)) + ) && + ( + this.MessageTemplateName == input.MessageTemplateName || + (this.MessageTemplateName != null && + this.MessageTemplateName.Equals(input.MessageTemplateName)) + ) && + ( + this.Protocol == input.Protocol || + (this.Protocol != null && + this.Protocol.Equals(input.Protocol)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Offset != null) + hashCode = hashCode * 59 + this.Offset.GetHashCode(); + if (this.Limit != null) + hashCode = hashCode * 59 + this.Limit.GetHashCode(); + if (this.MessageTemplateName != null) + hashCode = hashCode * 59 + this.MessageTemplateName.GetHashCode(); + if (this.Protocol != null) + hashCode = hashCode * 59 + this.Protocol.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/ListMessageTemplatesResponse.cs b/Services/Smn/V2/Model/ListMessageTemplatesResponse.cs new file mode 100755 index 0000000..b7156d1 --- /dev/null +++ b/Services/Smn/V2/Model/ListMessageTemplatesResponse.cs @@ -0,0 +1,96 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Response Object + /// + public class ListMessageTemplatesResponse : SdkResponse + { + + [JsonProperty("request_id", NullValueHandling = NullValueHandling.Ignore)] + public string RequestId { get; set; } + + [JsonProperty("message_template_count", NullValueHandling = NullValueHandling.Ignore)] + public int? MessageTemplateCount { get; set; } + + [JsonProperty("message_templates", NullValueHandling = NullValueHandling.Ignore)] + public List MessageTemplates { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ListMessageTemplatesResponse {\n"); + sb.Append(" requestId: ").Append(RequestId).Append("\n"); + sb.Append(" messageTemplateCount: ").Append(MessageTemplateCount).Append("\n"); + sb.Append(" messageTemplates: ").Append(MessageTemplates).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ListMessageTemplatesResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ListMessageTemplatesResponse input) + { + if (input == null) + return false; + + return + ( + this.RequestId == input.RequestId || + (this.RequestId != null && + this.RequestId.Equals(input.RequestId)) + ) && + ( + this.MessageTemplateCount == input.MessageTemplateCount || + (this.MessageTemplateCount != null && + this.MessageTemplateCount.Equals(input.MessageTemplateCount)) + ) && + ( + this.MessageTemplates == input.MessageTemplates || + this.MessageTemplates != null && + input.MessageTemplates != null && + this.MessageTemplates.SequenceEqual(input.MessageTemplates) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.RequestId != null) + hashCode = hashCode * 59 + this.RequestId.GetHashCode(); + if (this.MessageTemplateCount != null) + hashCode = hashCode * 59 + this.MessageTemplateCount.GetHashCode(); + if (this.MessageTemplates != null) + hashCode = hashCode * 59 + this.MessageTemplates.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/ListProjectTagsRequest.cs b/Services/Smn/V2/Model/ListProjectTagsRequest.cs new file mode 100755 index 0000000..7100a59 --- /dev/null +++ b/Services/Smn/V2/Model/ListProjectTagsRequest.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Request Object + /// + public class ListProjectTagsRequest + { + + [SDKProperty("resource_type", IsPath = true)] + [JsonProperty("resource_type", NullValueHandling = NullValueHandling.Ignore)] + public string ResourceType { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ListProjectTagsRequest {\n"); + sb.Append(" resourceType: ").Append(ResourceType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ListProjectTagsRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ListProjectTagsRequest input) + { + if (input == null) + return false; + + return + ( + this.ResourceType == input.ResourceType || + (this.ResourceType != null && + this.ResourceType.Equals(input.ResourceType)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ResourceType != null) + hashCode = hashCode * 59 + this.ResourceType.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/ListProjectTagsResponse.cs b/Services/Smn/V2/Model/ListProjectTagsResponse.cs new file mode 100755 index 0000000..57ded3a --- /dev/null +++ b/Services/Smn/V2/Model/ListProjectTagsResponse.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Response Object + /// + public class ListProjectTagsResponse : SdkResponse + { + + [JsonProperty("tags", NullValueHandling = NullValueHandling.Ignore)] + public List Tags { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ListProjectTagsResponse {\n"); + sb.Append(" tags: ").Append(Tags).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ListProjectTagsResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ListProjectTagsResponse input) + { + if (input == null) + return false; + + return + ( + this.Tags == input.Tags || + this.Tags != null && + input.Tags != null && + this.Tags.SequenceEqual(input.Tags) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Tags != null) + hashCode = hashCode * 59 + this.Tags.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/ListResourceInstancesRequest.cs b/Services/Smn/V2/Model/ListResourceInstancesRequest.cs new file mode 100755 index 0000000..ce22a3f --- /dev/null +++ b/Services/Smn/V2/Model/ListResourceInstancesRequest.cs @@ -0,0 +1,86 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Request Object + /// + public class ListResourceInstancesRequest + { + + [SDKProperty("resource_type", IsPath = true)] + [JsonProperty("resource_type", NullValueHandling = NullValueHandling.Ignore)] + public string ResourceType { get; set; } + + [SDKProperty("body", IsBody = true)] + [JsonProperty("body", NullValueHandling = NullValueHandling.Ignore)] + public ListInstanceRequestBody Body { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ListResourceInstancesRequest {\n"); + sb.Append(" resourceType: ").Append(ResourceType).Append("\n"); + sb.Append(" body: ").Append(Body).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ListResourceInstancesRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ListResourceInstancesRequest input) + { + if (input == null) + return false; + + return + ( + this.ResourceType == input.ResourceType || + (this.ResourceType != null && + this.ResourceType.Equals(input.ResourceType)) + ) && + ( + this.Body == input.Body || + (this.Body != null && + this.Body.Equals(input.Body)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ResourceType != null) + hashCode = hashCode * 59 + this.ResourceType.GetHashCode(); + if (this.Body != null) + hashCode = hashCode * 59 + this.Body.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/ListResourceInstancesResponse.cs b/Services/Smn/V2/Model/ListResourceInstancesResponse.cs new file mode 100755 index 0000000..45a12c3 --- /dev/null +++ b/Services/Smn/V2/Model/ListResourceInstancesResponse.cs @@ -0,0 +1,85 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Response Object + /// + public class ListResourceInstancesResponse : SdkResponse + { + + [JsonProperty("resources", NullValueHandling = NullValueHandling.Ignore)] + public List Resources { get; set; } + + [JsonProperty("total_count", NullValueHandling = NullValueHandling.Ignore)] + public int? TotalCount { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ListResourceInstancesResponse {\n"); + sb.Append(" resources: ").Append(Resources).Append("\n"); + sb.Append(" totalCount: ").Append(TotalCount).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ListResourceInstancesResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ListResourceInstancesResponse input) + { + if (input == null) + return false; + + return + ( + this.Resources == input.Resources || + this.Resources != null && + input.Resources != null && + this.Resources.SequenceEqual(input.Resources) + ) && + ( + this.TotalCount == input.TotalCount || + (this.TotalCount != null && + this.TotalCount.Equals(input.TotalCount)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Resources != null) + hashCode = hashCode * 59 + this.Resources.GetHashCode(); + if (this.TotalCount != null) + hashCode = hashCode * 59 + this.TotalCount.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/ListResourceTagsRequest.cs b/Services/Smn/V2/Model/ListResourceTagsRequest.cs new file mode 100755 index 0000000..547939c --- /dev/null +++ b/Services/Smn/V2/Model/ListResourceTagsRequest.cs @@ -0,0 +1,86 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Request Object + /// + public class ListResourceTagsRequest + { + + [SDKProperty("resource_type", IsPath = true)] + [JsonProperty("resource_type", NullValueHandling = NullValueHandling.Ignore)] + public string ResourceType { get; set; } + + [SDKProperty("resource_id", IsPath = true)] + [JsonProperty("resource_id", NullValueHandling = NullValueHandling.Ignore)] + public string ResourceId { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ListResourceTagsRequest {\n"); + sb.Append(" resourceType: ").Append(ResourceType).Append("\n"); + sb.Append(" resourceId: ").Append(ResourceId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ListResourceTagsRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ListResourceTagsRequest input) + { + if (input == null) + return false; + + return + ( + this.ResourceType == input.ResourceType || + (this.ResourceType != null && + this.ResourceType.Equals(input.ResourceType)) + ) && + ( + this.ResourceId == input.ResourceId || + (this.ResourceId != null && + this.ResourceId.Equals(input.ResourceId)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ResourceType != null) + hashCode = hashCode * 59 + this.ResourceType.GetHashCode(); + if (this.ResourceId != null) + hashCode = hashCode * 59 + this.ResourceId.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/ListResourceTagsResponse.cs b/Services/Smn/V2/Model/ListResourceTagsResponse.cs new file mode 100755 index 0000000..0e262f7 --- /dev/null +++ b/Services/Smn/V2/Model/ListResourceTagsResponse.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Response Object + /// + public class ListResourceTagsResponse : SdkResponse + { + + [JsonProperty("tags", NullValueHandling = NullValueHandling.Ignore)] + public List Tags { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ListResourceTagsResponse {\n"); + sb.Append(" tags: ").Append(Tags).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ListResourceTagsResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ListResourceTagsResponse input) + { + if (input == null) + return false; + + return + ( + this.Tags == input.Tags || + this.Tags != null && + input.Tags != null && + this.Tags.SequenceEqual(input.Tags) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Tags != null) + hashCode = hashCode * 59 + this.Tags.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/ListSubscriptionsByTopicRequest.cs b/Services/Smn/V2/Model/ListSubscriptionsByTopicRequest.cs new file mode 100755 index 0000000..719b3d5 --- /dev/null +++ b/Services/Smn/V2/Model/ListSubscriptionsByTopicRequest.cs @@ -0,0 +1,98 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Request Object + /// + public class ListSubscriptionsByTopicRequest + { + + [SDKProperty("topic_urn", IsPath = true)] + [JsonProperty("topic_urn", NullValueHandling = NullValueHandling.Ignore)] + public string TopicUrn { get; set; } + + [SDKProperty("offset", IsQuery = true)] + [JsonProperty("offset", NullValueHandling = NullValueHandling.Ignore)] + public int? Offset { get; set; } + + [SDKProperty("limit", IsQuery = true)] + [JsonProperty("limit", NullValueHandling = NullValueHandling.Ignore)] + public int? Limit { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ListSubscriptionsByTopicRequest {\n"); + sb.Append(" topicUrn: ").Append(TopicUrn).Append("\n"); + sb.Append(" offset: ").Append(Offset).Append("\n"); + sb.Append(" limit: ").Append(Limit).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ListSubscriptionsByTopicRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ListSubscriptionsByTopicRequest input) + { + if (input == null) + return false; + + return + ( + this.TopicUrn == input.TopicUrn || + (this.TopicUrn != null && + this.TopicUrn.Equals(input.TopicUrn)) + ) && + ( + this.Offset == input.Offset || + (this.Offset != null && + this.Offset.Equals(input.Offset)) + ) && + ( + this.Limit == input.Limit || + (this.Limit != null && + this.Limit.Equals(input.Limit)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.TopicUrn != null) + hashCode = hashCode * 59 + this.TopicUrn.GetHashCode(); + if (this.Offset != null) + hashCode = hashCode * 59 + this.Offset.GetHashCode(); + if (this.Limit != null) + hashCode = hashCode * 59 + this.Limit.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/ListSubscriptionsByTopicResponse.cs b/Services/Smn/V2/Model/ListSubscriptionsByTopicResponse.cs new file mode 100755 index 0000000..6ccfd7f --- /dev/null +++ b/Services/Smn/V2/Model/ListSubscriptionsByTopicResponse.cs @@ -0,0 +1,96 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Response Object + /// + public class ListSubscriptionsByTopicResponse : SdkResponse + { + + [JsonProperty("request_id", NullValueHandling = NullValueHandling.Ignore)] + public string RequestId { get; set; } + + [JsonProperty("subscription_count", NullValueHandling = NullValueHandling.Ignore)] + public int? SubscriptionCount { get; set; } + + [JsonProperty("subscriptions", NullValueHandling = NullValueHandling.Ignore)] + public List Subscriptions { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ListSubscriptionsByTopicResponse {\n"); + sb.Append(" requestId: ").Append(RequestId).Append("\n"); + sb.Append(" subscriptionCount: ").Append(SubscriptionCount).Append("\n"); + sb.Append(" subscriptions: ").Append(Subscriptions).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ListSubscriptionsByTopicResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ListSubscriptionsByTopicResponse input) + { + if (input == null) + return false; + + return + ( + this.RequestId == input.RequestId || + (this.RequestId != null && + this.RequestId.Equals(input.RequestId)) + ) && + ( + this.SubscriptionCount == input.SubscriptionCount || + (this.SubscriptionCount != null && + this.SubscriptionCount.Equals(input.SubscriptionCount)) + ) && + ( + this.Subscriptions == input.Subscriptions || + this.Subscriptions != null && + input.Subscriptions != null && + this.Subscriptions.SequenceEqual(input.Subscriptions) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.RequestId != null) + hashCode = hashCode * 59 + this.RequestId.GetHashCode(); + if (this.SubscriptionCount != null) + hashCode = hashCode * 59 + this.SubscriptionCount.GetHashCode(); + if (this.Subscriptions != null) + hashCode = hashCode * 59 + this.Subscriptions.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/ListSubscriptionsItem.cs b/Services/Smn/V2/Model/ListSubscriptionsItem.cs new file mode 100755 index 0000000..ac4c740 --- /dev/null +++ b/Services/Smn/V2/Model/ListSubscriptionsItem.cs @@ -0,0 +1,139 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// + /// + public class ListSubscriptionsItem + { + + [JsonProperty("topic_urn", NullValueHandling = NullValueHandling.Ignore)] + public string TopicUrn { get; set; } + + [JsonProperty("protocol", NullValueHandling = NullValueHandling.Ignore)] + public string Protocol { get; set; } + + [JsonProperty("subscription_urn", NullValueHandling = NullValueHandling.Ignore)] + public string SubscriptionUrn { get; set; } + + [JsonProperty("owner", NullValueHandling = NullValueHandling.Ignore)] + public string Owner { get; set; } + + [JsonProperty("endpoint", NullValueHandling = NullValueHandling.Ignore)] + public string Endpoint { get; set; } + + [JsonProperty("remark", NullValueHandling = NullValueHandling.Ignore)] + public string Remark { get; set; } + + [JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)] + public int? Status { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ListSubscriptionsItem {\n"); + sb.Append(" topicUrn: ").Append(TopicUrn).Append("\n"); + sb.Append(" protocol: ").Append(Protocol).Append("\n"); + sb.Append(" subscriptionUrn: ").Append(SubscriptionUrn).Append("\n"); + sb.Append(" owner: ").Append(Owner).Append("\n"); + sb.Append(" endpoint: ").Append(Endpoint).Append("\n"); + sb.Append(" remark: ").Append(Remark).Append("\n"); + sb.Append(" status: ").Append(Status).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ListSubscriptionsItem); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ListSubscriptionsItem input) + { + if (input == null) + return false; + + return + ( + this.TopicUrn == input.TopicUrn || + (this.TopicUrn != null && + this.TopicUrn.Equals(input.TopicUrn)) + ) && + ( + this.Protocol == input.Protocol || + (this.Protocol != null && + this.Protocol.Equals(input.Protocol)) + ) && + ( + this.SubscriptionUrn == input.SubscriptionUrn || + (this.SubscriptionUrn != null && + this.SubscriptionUrn.Equals(input.SubscriptionUrn)) + ) && + ( + this.Owner == input.Owner || + (this.Owner != null && + this.Owner.Equals(input.Owner)) + ) && + ( + this.Endpoint == input.Endpoint || + (this.Endpoint != null && + this.Endpoint.Equals(input.Endpoint)) + ) && + ( + this.Remark == input.Remark || + (this.Remark != null && + this.Remark.Equals(input.Remark)) + ) && + ( + this.Status == input.Status || + (this.Status != null && + this.Status.Equals(input.Status)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.TopicUrn != null) + hashCode = hashCode * 59 + this.TopicUrn.GetHashCode(); + if (this.Protocol != null) + hashCode = hashCode * 59 + this.Protocol.GetHashCode(); + if (this.SubscriptionUrn != null) + hashCode = hashCode * 59 + this.SubscriptionUrn.GetHashCode(); + if (this.Owner != null) + hashCode = hashCode * 59 + this.Owner.GetHashCode(); + if (this.Endpoint != null) + hashCode = hashCode * 59 + this.Endpoint.GetHashCode(); + if (this.Remark != null) + hashCode = hashCode * 59 + this.Remark.GetHashCode(); + if (this.Status != null) + hashCode = hashCode * 59 + this.Status.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/ListSubscriptionsRequest.cs b/Services/Smn/V2/Model/ListSubscriptionsRequest.cs new file mode 100755 index 0000000..89c9ac2 --- /dev/null +++ b/Services/Smn/V2/Model/ListSubscriptionsRequest.cs @@ -0,0 +1,122 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Request Object + /// + public class ListSubscriptionsRequest + { + + [SDKProperty("offset", IsQuery = true)] + [JsonProperty("offset", NullValueHandling = NullValueHandling.Ignore)] + public int? Offset { get; set; } + + [SDKProperty("limit", IsQuery = true)] + [JsonProperty("limit", NullValueHandling = NullValueHandling.Ignore)] + public int? Limit { get; set; } + + [SDKProperty("protocol", IsQuery = true)] + [JsonProperty("protocol", NullValueHandling = NullValueHandling.Ignore)] + public string Protocol { get; set; } + + [SDKProperty("status", IsQuery = true)] + [JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)] + public int? Status { get; set; } + + [SDKProperty("endpoint", IsQuery = true)] + [JsonProperty("endpoint", NullValueHandling = NullValueHandling.Ignore)] + public string Endpoint { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ListSubscriptionsRequest {\n"); + sb.Append(" offset: ").Append(Offset).Append("\n"); + sb.Append(" limit: ").Append(Limit).Append("\n"); + sb.Append(" protocol: ").Append(Protocol).Append("\n"); + sb.Append(" status: ").Append(Status).Append("\n"); + sb.Append(" endpoint: ").Append(Endpoint).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ListSubscriptionsRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ListSubscriptionsRequest input) + { + if (input == null) + return false; + + return + ( + this.Offset == input.Offset || + (this.Offset != null && + this.Offset.Equals(input.Offset)) + ) && + ( + this.Limit == input.Limit || + (this.Limit != null && + this.Limit.Equals(input.Limit)) + ) && + ( + this.Protocol == input.Protocol || + (this.Protocol != null && + this.Protocol.Equals(input.Protocol)) + ) && + ( + this.Status == input.Status || + (this.Status != null && + this.Status.Equals(input.Status)) + ) && + ( + this.Endpoint == input.Endpoint || + (this.Endpoint != null && + this.Endpoint.Equals(input.Endpoint)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Offset != null) + hashCode = hashCode * 59 + this.Offset.GetHashCode(); + if (this.Limit != null) + hashCode = hashCode * 59 + this.Limit.GetHashCode(); + if (this.Protocol != null) + hashCode = hashCode * 59 + this.Protocol.GetHashCode(); + if (this.Status != null) + hashCode = hashCode * 59 + this.Status.GetHashCode(); + if (this.Endpoint != null) + hashCode = hashCode * 59 + this.Endpoint.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/ListSubscriptionsResponse.cs b/Services/Smn/V2/Model/ListSubscriptionsResponse.cs new file mode 100755 index 0000000..8aaff9f --- /dev/null +++ b/Services/Smn/V2/Model/ListSubscriptionsResponse.cs @@ -0,0 +1,96 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Response Object + /// + public class ListSubscriptionsResponse : SdkResponse + { + + [JsonProperty("request_id", NullValueHandling = NullValueHandling.Ignore)] + public string RequestId { get; set; } + + [JsonProperty("subscription_count", NullValueHandling = NullValueHandling.Ignore)] + public int? SubscriptionCount { get; set; } + + [JsonProperty("subscriptions", NullValueHandling = NullValueHandling.Ignore)] + public List Subscriptions { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ListSubscriptionsResponse {\n"); + sb.Append(" requestId: ").Append(RequestId).Append("\n"); + sb.Append(" subscriptionCount: ").Append(SubscriptionCount).Append("\n"); + sb.Append(" subscriptions: ").Append(Subscriptions).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ListSubscriptionsResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ListSubscriptionsResponse input) + { + if (input == null) + return false; + + return + ( + this.RequestId == input.RequestId || + (this.RequestId != null && + this.RequestId.Equals(input.RequestId)) + ) && + ( + this.SubscriptionCount == input.SubscriptionCount || + (this.SubscriptionCount != null && + this.SubscriptionCount.Equals(input.SubscriptionCount)) + ) && + ( + this.Subscriptions == input.Subscriptions || + this.Subscriptions != null && + input.Subscriptions != null && + this.Subscriptions.SequenceEqual(input.Subscriptions) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.RequestId != null) + hashCode = hashCode * 59 + this.RequestId.GetHashCode(); + if (this.SubscriptionCount != null) + hashCode = hashCode * 59 + this.SubscriptionCount.GetHashCode(); + if (this.Subscriptions != null) + hashCode = hashCode * 59 + this.Subscriptions.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/ListTopicAttributesRequest.cs b/Services/Smn/V2/Model/ListTopicAttributesRequest.cs new file mode 100755 index 0000000..5c6dc6e --- /dev/null +++ b/Services/Smn/V2/Model/ListTopicAttributesRequest.cs @@ -0,0 +1,86 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Request Object + /// + public class ListTopicAttributesRequest + { + + [SDKProperty("topic_urn", IsPath = true)] + [JsonProperty("topic_urn", NullValueHandling = NullValueHandling.Ignore)] + public string TopicUrn { get; set; } + + [SDKProperty("name", IsQuery = true)] + [JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)] + public string Name { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ListTopicAttributesRequest {\n"); + sb.Append(" topicUrn: ").Append(TopicUrn).Append("\n"); + sb.Append(" name: ").Append(Name).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ListTopicAttributesRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ListTopicAttributesRequest input) + { + if (input == null) + return false; + + return + ( + this.TopicUrn == input.TopicUrn || + (this.TopicUrn != null && + this.TopicUrn.Equals(input.TopicUrn)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.TopicUrn != null) + hashCode = hashCode * 59 + this.TopicUrn.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/ListTopicAttributesResponse.cs b/Services/Smn/V2/Model/ListTopicAttributesResponse.cs new file mode 100755 index 0000000..59e2279 --- /dev/null +++ b/Services/Smn/V2/Model/ListTopicAttributesResponse.cs @@ -0,0 +1,84 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Response Object + /// + public class ListTopicAttributesResponse : SdkResponse + { + + [JsonProperty("request_id", NullValueHandling = NullValueHandling.Ignore)] + public string RequestId { get; set; } + + [JsonProperty("attributes", NullValueHandling = NullValueHandling.Ignore)] + public TopicAttribute Attributes { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ListTopicAttributesResponse {\n"); + sb.Append(" requestId: ").Append(RequestId).Append("\n"); + sb.Append(" attributes: ").Append(Attributes).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ListTopicAttributesResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ListTopicAttributesResponse input) + { + if (input == null) + return false; + + return + ( + this.RequestId == input.RequestId || + (this.RequestId != null && + this.RequestId.Equals(input.RequestId)) + ) && + ( + this.Attributes == input.Attributes || + (this.Attributes != null && + this.Attributes.Equals(input.Attributes)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.RequestId != null) + hashCode = hashCode * 59 + this.RequestId.GetHashCode(); + if (this.Attributes != null) + hashCode = hashCode * 59 + this.Attributes.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/ListTopicDetailsRequest.cs b/Services/Smn/V2/Model/ListTopicDetailsRequest.cs new file mode 100755 index 0000000..d975e60 --- /dev/null +++ b/Services/Smn/V2/Model/ListTopicDetailsRequest.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Request Object + /// + public class ListTopicDetailsRequest + { + + [SDKProperty("topic_urn", IsPath = true)] + [JsonProperty("topic_urn", NullValueHandling = NullValueHandling.Ignore)] + public string TopicUrn { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ListTopicDetailsRequest {\n"); + sb.Append(" topicUrn: ").Append(TopicUrn).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ListTopicDetailsRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ListTopicDetailsRequest input) + { + if (input == null) + return false; + + return + ( + this.TopicUrn == input.TopicUrn || + (this.TopicUrn != null && + this.TopicUrn.Equals(input.TopicUrn)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.TopicUrn != null) + hashCode = hashCode * 59 + this.TopicUrn.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/ListTopicDetailsResponse.cs b/Services/Smn/V2/Model/ListTopicDetailsResponse.cs new file mode 100755 index 0000000..826aefe --- /dev/null +++ b/Services/Smn/V2/Model/ListTopicDetailsResponse.cs @@ -0,0 +1,150 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Response Object + /// + public class ListTopicDetailsResponse : SdkResponse + { + + [JsonProperty("update_time", NullValueHandling = NullValueHandling.Ignore)] + public string UpdateTime { get; set; } + + [JsonProperty("push_policy", NullValueHandling = NullValueHandling.Ignore)] + public int? PushPolicy { get; set; } + + [JsonProperty("create_time", NullValueHandling = NullValueHandling.Ignore)] + public string CreateTime { get; set; } + + [JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)] + public string Name { get; set; } + + [JsonProperty("topic_urn", NullValueHandling = NullValueHandling.Ignore)] + public string TopicUrn { get; set; } + + [JsonProperty("display_name", NullValueHandling = NullValueHandling.Ignore)] + public string DisplayName { get; set; } + + [JsonProperty("request_id", NullValueHandling = NullValueHandling.Ignore)] + public string RequestId { get; set; } + + [JsonProperty("enterprise_project_id", NullValueHandling = NullValueHandling.Ignore)] + public string EnterpriseProjectId { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ListTopicDetailsResponse {\n"); + sb.Append(" updateTime: ").Append(UpdateTime).Append("\n"); + sb.Append(" pushPolicy: ").Append(PushPolicy).Append("\n"); + sb.Append(" createTime: ").Append(CreateTime).Append("\n"); + sb.Append(" name: ").Append(Name).Append("\n"); + sb.Append(" topicUrn: ").Append(TopicUrn).Append("\n"); + sb.Append(" displayName: ").Append(DisplayName).Append("\n"); + sb.Append(" requestId: ").Append(RequestId).Append("\n"); + sb.Append(" enterpriseProjectId: ").Append(EnterpriseProjectId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ListTopicDetailsResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ListTopicDetailsResponse input) + { + if (input == null) + return false; + + return + ( + this.UpdateTime == input.UpdateTime || + (this.UpdateTime != null && + this.UpdateTime.Equals(input.UpdateTime)) + ) && + ( + this.PushPolicy == input.PushPolicy || + (this.PushPolicy != null && + this.PushPolicy.Equals(input.PushPolicy)) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.TopicUrn == input.TopicUrn || + (this.TopicUrn != null && + this.TopicUrn.Equals(input.TopicUrn)) + ) && + ( + this.DisplayName == input.DisplayName || + (this.DisplayName != null && + this.DisplayName.Equals(input.DisplayName)) + ) && + ( + this.RequestId == input.RequestId || + (this.RequestId != null && + this.RequestId.Equals(input.RequestId)) + ) && + ( + this.EnterpriseProjectId == input.EnterpriseProjectId || + (this.EnterpriseProjectId != null && + this.EnterpriseProjectId.Equals(input.EnterpriseProjectId)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.UpdateTime != null) + hashCode = hashCode * 59 + this.UpdateTime.GetHashCode(); + if (this.PushPolicy != null) + hashCode = hashCode * 59 + this.PushPolicy.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.TopicUrn != null) + hashCode = hashCode * 59 + this.TopicUrn.GetHashCode(); + if (this.DisplayName != null) + hashCode = hashCode * 59 + this.DisplayName.GetHashCode(); + if (this.RequestId != null) + hashCode = hashCode * 59 + this.RequestId.GetHashCode(); + if (this.EnterpriseProjectId != null) + hashCode = hashCode * 59 + this.EnterpriseProjectId.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/ListTopicsItem.cs b/Services/Smn/V2/Model/ListTopicsItem.cs new file mode 100755 index 0000000..9b3e92e --- /dev/null +++ b/Services/Smn/V2/Model/ListTopicsItem.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// + /// + public class ListTopicsItem + { + + [JsonProperty("topic_urn", NullValueHandling = NullValueHandling.Ignore)] + public string TopicUrn { get; set; } + + [JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)] + public string Name { get; set; } + + [JsonProperty("display_name", NullValueHandling = NullValueHandling.Ignore)] + public string DisplayName { get; set; } + + [JsonProperty("push_policy", NullValueHandling = NullValueHandling.Ignore)] + public int? PushPolicy { get; set; } + + [JsonProperty("enterprise_project_id", NullValueHandling = NullValueHandling.Ignore)] + public string EnterpriseProjectId { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ListTopicsItem {\n"); + sb.Append(" topicUrn: ").Append(TopicUrn).Append("\n"); + sb.Append(" name: ").Append(Name).Append("\n"); + sb.Append(" displayName: ").Append(DisplayName).Append("\n"); + sb.Append(" pushPolicy: ").Append(PushPolicy).Append("\n"); + sb.Append(" enterpriseProjectId: ").Append(EnterpriseProjectId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ListTopicsItem); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ListTopicsItem input) + { + if (input == null) + return false; + + return + ( + this.TopicUrn == input.TopicUrn || + (this.TopicUrn != null && + this.TopicUrn.Equals(input.TopicUrn)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.DisplayName == input.DisplayName || + (this.DisplayName != null && + this.DisplayName.Equals(input.DisplayName)) + ) && + ( + this.PushPolicy == input.PushPolicy || + (this.PushPolicy != null && + this.PushPolicy.Equals(input.PushPolicy)) + ) && + ( + this.EnterpriseProjectId == input.EnterpriseProjectId || + (this.EnterpriseProjectId != null && + this.EnterpriseProjectId.Equals(input.EnterpriseProjectId)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.TopicUrn != null) + hashCode = hashCode * 59 + this.TopicUrn.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.DisplayName != null) + hashCode = hashCode * 59 + this.DisplayName.GetHashCode(); + if (this.PushPolicy != null) + hashCode = hashCode * 59 + this.PushPolicy.GetHashCode(); + if (this.EnterpriseProjectId != null) + hashCode = hashCode * 59 + this.EnterpriseProjectId.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/ListTopicsRequest.cs b/Services/Smn/V2/Model/ListTopicsRequest.cs new file mode 100755 index 0000000..4afa8b1 --- /dev/null +++ b/Services/Smn/V2/Model/ListTopicsRequest.cs @@ -0,0 +1,122 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Request Object + /// + public class ListTopicsRequest + { + + [SDKProperty("offset", IsQuery = true)] + [JsonProperty("offset", NullValueHandling = NullValueHandling.Ignore)] + public int? Offset { get; set; } + + [SDKProperty("limit", IsQuery = true)] + [JsonProperty("limit", NullValueHandling = NullValueHandling.Ignore)] + public int? Limit { get; set; } + + [SDKProperty("enterprise_project_id", IsQuery = true)] + [JsonProperty("enterprise_project_id", NullValueHandling = NullValueHandling.Ignore)] + public string EnterpriseProjectId { get; set; } + + [SDKProperty("name", IsQuery = true)] + [JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)] + public string Name { get; set; } + + [SDKProperty("fuzzy_name", IsQuery = true)] + [JsonProperty("fuzzy_name", NullValueHandling = NullValueHandling.Ignore)] + public string FuzzyName { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ListTopicsRequest {\n"); + sb.Append(" offset: ").Append(Offset).Append("\n"); + sb.Append(" limit: ").Append(Limit).Append("\n"); + sb.Append(" enterpriseProjectId: ").Append(EnterpriseProjectId).Append("\n"); + sb.Append(" name: ").Append(Name).Append("\n"); + sb.Append(" fuzzyName: ").Append(FuzzyName).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ListTopicsRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ListTopicsRequest input) + { + if (input == null) + return false; + + return + ( + this.Offset == input.Offset || + (this.Offset != null && + this.Offset.Equals(input.Offset)) + ) && + ( + this.Limit == input.Limit || + (this.Limit != null && + this.Limit.Equals(input.Limit)) + ) && + ( + this.EnterpriseProjectId == input.EnterpriseProjectId || + (this.EnterpriseProjectId != null && + this.EnterpriseProjectId.Equals(input.EnterpriseProjectId)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.FuzzyName == input.FuzzyName || + (this.FuzzyName != null && + this.FuzzyName.Equals(input.FuzzyName)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Offset != null) + hashCode = hashCode * 59 + this.Offset.GetHashCode(); + if (this.Limit != null) + hashCode = hashCode * 59 + this.Limit.GetHashCode(); + if (this.EnterpriseProjectId != null) + hashCode = hashCode * 59 + this.EnterpriseProjectId.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.FuzzyName != null) + hashCode = hashCode * 59 + this.FuzzyName.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/ListTopicsResponse.cs b/Services/Smn/V2/Model/ListTopicsResponse.cs new file mode 100755 index 0000000..e96e18a --- /dev/null +++ b/Services/Smn/V2/Model/ListTopicsResponse.cs @@ -0,0 +1,96 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Response Object + /// + public class ListTopicsResponse : SdkResponse + { + + [JsonProperty("request_id", NullValueHandling = NullValueHandling.Ignore)] + public string RequestId { get; set; } + + [JsonProperty("topic_count", NullValueHandling = NullValueHandling.Ignore)] + public int? TopicCount { get; set; } + + [JsonProperty("topics", NullValueHandling = NullValueHandling.Ignore)] + public List Topics { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ListTopicsResponse {\n"); + sb.Append(" requestId: ").Append(RequestId).Append("\n"); + sb.Append(" topicCount: ").Append(TopicCount).Append("\n"); + sb.Append(" topics: ").Append(Topics).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ListTopicsResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ListTopicsResponse input) + { + if (input == null) + return false; + + return + ( + this.RequestId == input.RequestId || + (this.RequestId != null && + this.RequestId.Equals(input.RequestId)) + ) && + ( + this.TopicCount == input.TopicCount || + (this.TopicCount != null && + this.TopicCount.Equals(input.TopicCount)) + ) && + ( + this.Topics == input.Topics || + this.Topics != null && + input.Topics != null && + this.Topics.SequenceEqual(input.Topics) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.RequestId != null) + hashCode = hashCode * 59 + this.RequestId.GetHashCode(); + if (this.TopicCount != null) + hashCode = hashCode * 59 + this.TopicCount.GetHashCode(); + if (this.Topics != null) + hashCode = hashCode * 59 + this.Topics.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/ListVersionRequest.cs b/Services/Smn/V2/Model/ListVersionRequest.cs new file mode 100755 index 0000000..4861ea5 --- /dev/null +++ b/Services/Smn/V2/Model/ListVersionRequest.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Request Object + /// + public class ListVersionRequest + { + + [SDKProperty("api_version", IsPath = true)] + [JsonProperty("api_version", NullValueHandling = NullValueHandling.Ignore)] + public string ApiVersion { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ListVersionRequest {\n"); + sb.Append(" apiVersion: ").Append(ApiVersion).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ListVersionRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ListVersionRequest input) + { + if (input == null) + return false; + + return + ( + this.ApiVersion == input.ApiVersion || + (this.ApiVersion != null && + this.ApiVersion.Equals(input.ApiVersion)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ApiVersion != null) + hashCode = hashCode * 59 + this.ApiVersion.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/ListVersionResponse.cs b/Services/Smn/V2/Model/ListVersionResponse.cs new file mode 100755 index 0000000..2e400d9 --- /dev/null +++ b/Services/Smn/V2/Model/ListVersionResponse.cs @@ -0,0 +1,73 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Response Object + /// + public class ListVersionResponse : SdkResponse + { + + [JsonProperty("version", NullValueHandling = NullValueHandling.Ignore)] + public Object Version { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ListVersionResponse {\n"); + sb.Append(" version: ").Append(Version).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ListVersionResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ListVersionResponse input) + { + if (input == null) + return false; + + return + ( + this.Version == input.Version || + (this.Version != null && + this.Version.Equals(input.Version)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Version != null) + hashCode = hashCode * 59 + this.Version.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/ListVersionsRequest.cs b/Services/Smn/V2/Model/ListVersionsRequest.cs new file mode 100755 index 0000000..fbe055c --- /dev/null +++ b/Services/Smn/V2/Model/ListVersionsRequest.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Request Object + /// + public class ListVersionsRequest + { + + + } +} diff --git a/Services/Smn/V2/Model/ListVersionsResponse.cs b/Services/Smn/V2/Model/ListVersionsResponse.cs new file mode 100755 index 0000000..ee774b7 --- /dev/null +++ b/Services/Smn/V2/Model/ListVersionsResponse.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Response Object + /// + public class ListVersionsResponse : SdkResponse + { + + [JsonProperty("versions", NullValueHandling = NullValueHandling.Ignore)] + public List Versions { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ListVersionsResponse {\n"); + sb.Append(" versions: ").Append(Versions).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ListVersionsResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ListVersionsResponse input) + { + if (input == null) + return false; + + return + ( + this.Versions == input.Versions || + this.Versions != null && + input.Versions != null && + this.Versions.SequenceEqual(input.Versions) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Versions != null) + hashCode = hashCode * 59 + this.Versions.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/MessageTemplate.cs b/Services/Smn/V2/Model/MessageTemplate.cs new file mode 100755 index 0000000..280675a --- /dev/null +++ b/Services/Smn/V2/Model/MessageTemplate.cs @@ -0,0 +1,129 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// + /// + public class MessageTemplate + { + + [JsonProperty("message_template_id", NullValueHandling = NullValueHandling.Ignore)] + public string MessageTemplateId { get; set; } + + [JsonProperty("message_template_name", NullValueHandling = NullValueHandling.Ignore)] + public string MessageTemplateName { get; set; } + + [JsonProperty("protocol", NullValueHandling = NullValueHandling.Ignore)] + public string Protocol { get; set; } + + [JsonProperty("tag_names", NullValueHandling = NullValueHandling.Ignore)] + public List TagNames { get; set; } + + [JsonProperty("create_time", NullValueHandling = NullValueHandling.Ignore)] + public string CreateTime { get; set; } + + [JsonProperty("update_time", NullValueHandling = NullValueHandling.Ignore)] + public string UpdateTime { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class MessageTemplate {\n"); + sb.Append(" messageTemplateId: ").Append(MessageTemplateId).Append("\n"); + sb.Append(" messageTemplateName: ").Append(MessageTemplateName).Append("\n"); + sb.Append(" protocol: ").Append(Protocol).Append("\n"); + sb.Append(" tagNames: ").Append(TagNames).Append("\n"); + sb.Append(" createTime: ").Append(CreateTime).Append("\n"); + sb.Append(" updateTime: ").Append(UpdateTime).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as MessageTemplate); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(MessageTemplate input) + { + if (input == null) + return false; + + return + ( + this.MessageTemplateId == input.MessageTemplateId || + (this.MessageTemplateId != null && + this.MessageTemplateId.Equals(input.MessageTemplateId)) + ) && + ( + this.MessageTemplateName == input.MessageTemplateName || + (this.MessageTemplateName != null && + this.MessageTemplateName.Equals(input.MessageTemplateName)) + ) && + ( + this.Protocol == input.Protocol || + (this.Protocol != null && + this.Protocol.Equals(input.Protocol)) + ) && + ( + this.TagNames == input.TagNames || + this.TagNames != null && + input.TagNames != null && + this.TagNames.SequenceEqual(input.TagNames) + ) && + ( + this.CreateTime == input.CreateTime || + (this.CreateTime != null && + this.CreateTime.Equals(input.CreateTime)) + ) && + ( + this.UpdateTime == input.UpdateTime || + (this.UpdateTime != null && + this.UpdateTime.Equals(input.UpdateTime)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.MessageTemplateId != null) + hashCode = hashCode * 59 + this.MessageTemplateId.GetHashCode(); + if (this.MessageTemplateName != null) + hashCode = hashCode * 59 + this.MessageTemplateName.GetHashCode(); + if (this.Protocol != null) + hashCode = hashCode * 59 + this.Protocol.GetHashCode(); + if (this.TagNames != null) + hashCode = hashCode * 59 + this.TagNames.GetHashCode(); + if (this.CreateTime != null) + hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); + if (this.UpdateTime != null) + hashCode = hashCode * 59 + this.UpdateTime.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/PublishAppMessageRequest.cs b/Services/Smn/V2/Model/PublishAppMessageRequest.cs new file mode 100755 index 0000000..991e459 --- /dev/null +++ b/Services/Smn/V2/Model/PublishAppMessageRequest.cs @@ -0,0 +1,86 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Request Object + /// + public class PublishAppMessageRequest + { + + [SDKProperty("endpoint_urn", IsPath = true)] + [JsonProperty("endpoint_urn", NullValueHandling = NullValueHandling.Ignore)] + public string EndpointUrn { get; set; } + + [SDKProperty("body", IsBody = true)] + [JsonProperty("body", NullValueHandling = NullValueHandling.Ignore)] + public PublishAppMessageRequestBody Body { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PublishAppMessageRequest {\n"); + sb.Append(" endpointUrn: ").Append(EndpointUrn).Append("\n"); + sb.Append(" body: ").Append(Body).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as PublishAppMessageRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(PublishAppMessageRequest input) + { + if (input == null) + return false; + + return + ( + this.EndpointUrn == input.EndpointUrn || + (this.EndpointUrn != null && + this.EndpointUrn.Equals(input.EndpointUrn)) + ) && + ( + this.Body == input.Body || + (this.Body != null && + this.Body.Equals(input.Body)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EndpointUrn != null) + hashCode = hashCode * 59 + this.EndpointUrn.GetHashCode(); + if (this.Body != null) + hashCode = hashCode * 59 + this.Body.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/PublishAppMessageRequestBody.cs b/Services/Smn/V2/Model/PublishAppMessageRequestBody.cs new file mode 100755 index 0000000..d1a32b3 --- /dev/null +++ b/Services/Smn/V2/Model/PublishAppMessageRequestBody.cs @@ -0,0 +1,95 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// + /// + public class PublishAppMessageRequestBody + { + + [JsonProperty("message", NullValueHandling = NullValueHandling.Ignore)] + public string Message { get; set; } + + [JsonProperty("message_structure", NullValueHandling = NullValueHandling.Ignore)] + public string MessageStructure { get; set; } + + [JsonProperty("time_to_live", NullValueHandling = NullValueHandling.Ignore)] + public string TimeToLive { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PublishAppMessageRequestBody {\n"); + sb.Append(" message: ").Append(Message).Append("\n"); + sb.Append(" messageStructure: ").Append(MessageStructure).Append("\n"); + sb.Append(" timeToLive: ").Append(TimeToLive).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as PublishAppMessageRequestBody); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(PublishAppMessageRequestBody input) + { + if (input == null) + return false; + + return + ( + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) + ) && + ( + this.MessageStructure == input.MessageStructure || + (this.MessageStructure != null && + this.MessageStructure.Equals(input.MessageStructure)) + ) && + ( + this.TimeToLive == input.TimeToLive || + (this.TimeToLive != null && + this.TimeToLive.Equals(input.TimeToLive)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Message != null) + hashCode = hashCode * 59 + this.Message.GetHashCode(); + if (this.MessageStructure != null) + hashCode = hashCode * 59 + this.MessageStructure.GetHashCode(); + if (this.TimeToLive != null) + hashCode = hashCode * 59 + this.TimeToLive.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/PublishAppMessageResponse.cs b/Services/Smn/V2/Model/PublishAppMessageResponse.cs new file mode 100755 index 0000000..4aefdc7 --- /dev/null +++ b/Services/Smn/V2/Model/PublishAppMessageResponse.cs @@ -0,0 +1,84 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Response Object + /// + public class PublishAppMessageResponse : SdkResponse + { + + [JsonProperty("message_id", NullValueHandling = NullValueHandling.Ignore)] + public string MessageId { get; set; } + + [JsonProperty("request_id", NullValueHandling = NullValueHandling.Ignore)] + public string RequestId { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PublishAppMessageResponse {\n"); + sb.Append(" messageId: ").Append(MessageId).Append("\n"); + sb.Append(" requestId: ").Append(RequestId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as PublishAppMessageResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(PublishAppMessageResponse input) + { + if (input == null) + return false; + + return + ( + this.MessageId == input.MessageId || + (this.MessageId != null && + this.MessageId.Equals(input.MessageId)) + ) && + ( + this.RequestId == input.RequestId || + (this.RequestId != null && + this.RequestId.Equals(input.RequestId)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.MessageId != null) + hashCode = hashCode * 59 + this.MessageId.GetHashCode(); + if (this.RequestId != null) + hashCode = hashCode * 59 + this.RequestId.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/PublishMessageRequest.cs b/Services/Smn/V2/Model/PublishMessageRequest.cs new file mode 100755 index 0000000..f4736b8 --- /dev/null +++ b/Services/Smn/V2/Model/PublishMessageRequest.cs @@ -0,0 +1,86 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Request Object + /// + public class PublishMessageRequest + { + + [SDKProperty("topic_urn", IsPath = true)] + [JsonProperty("topic_urn", NullValueHandling = NullValueHandling.Ignore)] + public string TopicUrn { get; set; } + + [SDKProperty("body", IsBody = true)] + [JsonProperty("body", NullValueHandling = NullValueHandling.Ignore)] + public PublishMessageRequestBody Body { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PublishMessageRequest {\n"); + sb.Append(" topicUrn: ").Append(TopicUrn).Append("\n"); + sb.Append(" body: ").Append(Body).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as PublishMessageRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(PublishMessageRequest input) + { + if (input == null) + return false; + + return + ( + this.TopicUrn == input.TopicUrn || + (this.TopicUrn != null && + this.TopicUrn.Equals(input.TopicUrn)) + ) && + ( + this.Body == input.Body || + (this.Body != null && + this.Body.Equals(input.Body)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.TopicUrn != null) + hashCode = hashCode * 59 + this.TopicUrn.GetHashCode(); + if (this.Body != null) + hashCode = hashCode * 59 + this.Body.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/PublishMessageRequestBody.cs b/Services/Smn/V2/Model/PublishMessageRequestBody.cs new file mode 100755 index 0000000..5bd0b0a --- /dev/null +++ b/Services/Smn/V2/Model/PublishMessageRequestBody.cs @@ -0,0 +1,129 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// + /// + public class PublishMessageRequestBody + { + + [JsonProperty("subject", NullValueHandling = NullValueHandling.Ignore)] + public string Subject { get; set; } + + [JsonProperty("message", NullValueHandling = NullValueHandling.Ignore)] + public string Message { get; set; } + + [JsonProperty("message_structure", NullValueHandling = NullValueHandling.Ignore)] + public string MessageStructure { get; set; } + + [JsonProperty("message_template_name", NullValueHandling = NullValueHandling.Ignore)] + public string MessageTemplateName { get; set; } + + [JsonProperty("tags", NullValueHandling = NullValueHandling.Ignore)] + public Dictionary Tags { get; set; } + + [JsonProperty("time_to_live", NullValueHandling = NullValueHandling.Ignore)] + public string TimeToLive { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PublishMessageRequestBody {\n"); + sb.Append(" subject: ").Append(Subject).Append("\n"); + sb.Append(" message: ").Append(Message).Append("\n"); + sb.Append(" messageStructure: ").Append(MessageStructure).Append("\n"); + sb.Append(" messageTemplateName: ").Append(MessageTemplateName).Append("\n"); + sb.Append(" tags: ").Append(Tags).Append("\n"); + sb.Append(" timeToLive: ").Append(TimeToLive).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as PublishMessageRequestBody); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(PublishMessageRequestBody input) + { + if (input == null) + return false; + + return + ( + this.Subject == input.Subject || + (this.Subject != null && + this.Subject.Equals(input.Subject)) + ) && + ( + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) + ) && + ( + this.MessageStructure == input.MessageStructure || + (this.MessageStructure != null && + this.MessageStructure.Equals(input.MessageStructure)) + ) && + ( + this.MessageTemplateName == input.MessageTemplateName || + (this.MessageTemplateName != null && + this.MessageTemplateName.Equals(input.MessageTemplateName)) + ) && + ( + this.Tags == input.Tags || + this.Tags != null && + input.Tags != null && + this.Tags.SequenceEqual(input.Tags) + ) && + ( + this.TimeToLive == input.TimeToLive || + (this.TimeToLive != null && + this.TimeToLive.Equals(input.TimeToLive)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Subject != null) + hashCode = hashCode * 59 + this.Subject.GetHashCode(); + if (this.Message != null) + hashCode = hashCode * 59 + this.Message.GetHashCode(); + if (this.MessageStructure != null) + hashCode = hashCode * 59 + this.MessageStructure.GetHashCode(); + if (this.MessageTemplateName != null) + hashCode = hashCode * 59 + this.MessageTemplateName.GetHashCode(); + if (this.Tags != null) + hashCode = hashCode * 59 + this.Tags.GetHashCode(); + if (this.TimeToLive != null) + hashCode = hashCode * 59 + this.TimeToLive.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/PublishMessageResponse.cs b/Services/Smn/V2/Model/PublishMessageResponse.cs new file mode 100755 index 0000000..a5c9d0e --- /dev/null +++ b/Services/Smn/V2/Model/PublishMessageResponse.cs @@ -0,0 +1,84 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Response Object + /// + public class PublishMessageResponse : SdkResponse + { + + [JsonProperty("request_id", NullValueHandling = NullValueHandling.Ignore)] + public string RequestId { get; set; } + + [JsonProperty("message_id", NullValueHandling = NullValueHandling.Ignore)] + public string MessageId { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PublishMessageResponse {\n"); + sb.Append(" requestId: ").Append(RequestId).Append("\n"); + sb.Append(" messageId: ").Append(MessageId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as PublishMessageResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(PublishMessageResponse input) + { + if (input == null) + return false; + + return + ( + this.RequestId == input.RequestId || + (this.RequestId != null && + this.RequestId.Equals(input.RequestId)) + ) && + ( + this.MessageId == input.MessageId || + (this.MessageId != null && + this.MessageId.Equals(input.MessageId)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.RequestId != null) + hashCode = hashCode * 59 + this.RequestId.GetHashCode(); + if (this.MessageId != null) + hashCode = hashCode * 59 + this.MessageId.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/ResourceDetail.cs b/Services/Smn/V2/Model/ResourceDetail.cs new file mode 100755 index 0000000..375d3fb --- /dev/null +++ b/Services/Smn/V2/Model/ResourceDetail.cs @@ -0,0 +1,106 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// + /// + public class ResourceDetail + { + + [JsonProperty("enterprise_project_id", NullValueHandling = NullValueHandling.Ignore)] + public string EnterpriseProjectId { get; set; } + + [JsonProperty("detailId", NullValueHandling = NullValueHandling.Ignore)] + public string DetailId { get; set; } + + [JsonProperty("topic_urn", NullValueHandling = NullValueHandling.Ignore)] + public string TopicUrn { get; set; } + + [JsonProperty("display_name", NullValueHandling = NullValueHandling.Ignore)] + public string DisplayName { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ResourceDetail {\n"); + sb.Append(" enterpriseProjectId: ").Append(EnterpriseProjectId).Append("\n"); + sb.Append(" detailId: ").Append(DetailId).Append("\n"); + sb.Append(" topicUrn: ").Append(TopicUrn).Append("\n"); + sb.Append(" displayName: ").Append(DisplayName).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ResourceDetail); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ResourceDetail input) + { + if (input == null) + return false; + + return + ( + this.EnterpriseProjectId == input.EnterpriseProjectId || + (this.EnterpriseProjectId != null && + this.EnterpriseProjectId.Equals(input.EnterpriseProjectId)) + ) && + ( + this.DetailId == input.DetailId || + (this.DetailId != null && + this.DetailId.Equals(input.DetailId)) + ) && + ( + this.TopicUrn == input.TopicUrn || + (this.TopicUrn != null && + this.TopicUrn.Equals(input.TopicUrn)) + ) && + ( + this.DisplayName == input.DisplayName || + (this.DisplayName != null && + this.DisplayName.Equals(input.DisplayName)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EnterpriseProjectId != null) + hashCode = hashCode * 59 + this.EnterpriseProjectId.GetHashCode(); + if (this.DetailId != null) + hashCode = hashCode * 59 + this.DetailId.GetHashCode(); + if (this.TopicUrn != null) + hashCode = hashCode * 59 + this.TopicUrn.GetHashCode(); + if (this.DisplayName != null) + hashCode = hashCode * 59 + this.DisplayName.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/ResourceTag.cs b/Services/Smn/V2/Model/ResourceTag.cs new file mode 100755 index 0000000..273c117 --- /dev/null +++ b/Services/Smn/V2/Model/ResourceTag.cs @@ -0,0 +1,84 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// 资源标签结构体。 + /// + public class ResourceTag + { + + [JsonProperty("key", NullValueHandling = NullValueHandling.Ignore)] + public string Key { get; set; } + + [JsonProperty("value", NullValueHandling = NullValueHandling.Ignore)] + public string Value { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ResourceTag {\n"); + sb.Append(" key: ").Append(Key).Append("\n"); + sb.Append(" value: ").Append(Value).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ResourceTag); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ResourceTag input) + { + if (input == null) + return false; + + return + ( + this.Key == input.Key || + (this.Key != null && + this.Key.Equals(input.Key)) + ) && + ( + this.Value == input.Value || + (this.Value != null && + this.Value.Equals(input.Value)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Key != null) + hashCode = hashCode * 59 + this.Key.GetHashCode(); + if (this.Value != null) + hashCode = hashCode * 59 + this.Value.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/ResourceTags.cs b/Services/Smn/V2/Model/ResourceTags.cs new file mode 100755 index 0000000..a6c05cf --- /dev/null +++ b/Services/Smn/V2/Model/ResourceTags.cs @@ -0,0 +1,85 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// 资源标签列表结构体。 + /// + public class ResourceTags + { + + [JsonProperty("key", NullValueHandling = NullValueHandling.Ignore)] + public string Key { get; set; } + + [JsonProperty("values", NullValueHandling = NullValueHandling.Ignore)] + public List Values { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ResourceTags {\n"); + sb.Append(" key: ").Append(Key).Append("\n"); + sb.Append(" values: ").Append(Values).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as ResourceTags); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(ResourceTags input) + { + if (input == null) + return false; + + return + ( + this.Key == input.Key || + (this.Key != null && + this.Key.Equals(input.Key)) + ) && + ( + this.Values == input.Values || + this.Values != null && + input.Values != null && + this.Values.SequenceEqual(input.Values) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Key != null) + hashCode = hashCode * 59 + this.Key.GetHashCode(); + if (this.Values != null) + hashCode = hashCode * 59 + this.Values.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/Statement.cs b/Services/Smn/V2/Model/Statement.cs new file mode 100755 index 0000000..f98e734 --- /dev/null +++ b/Services/Smn/V2/Model/Statement.cs @@ -0,0 +1,150 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// + /// + public class Statement + { + + [JsonProperty("Sid", NullValueHandling = NullValueHandling.Ignore)] + public string Sid { get; set; } + + [JsonProperty("Effect", NullValueHandling = NullValueHandling.Ignore)] + public string Effect { get; set; } + + [JsonProperty("Principal", NullValueHandling = NullValueHandling.Ignore)] + public string Principal { get; set; } + + [JsonProperty("NotPrincipal", NullValueHandling = NullValueHandling.Ignore)] + public string NotPrincipal { get; set; } + + [JsonProperty("Action", NullValueHandling = NullValueHandling.Ignore)] + public string Action { get; set; } + + [JsonProperty("NotAction", NullValueHandling = NullValueHandling.Ignore)] + public string NotAction { get; set; } + + [JsonProperty("Resource", NullValueHandling = NullValueHandling.Ignore)] + public string Resource { get; set; } + + [JsonProperty("NotResource", NullValueHandling = NullValueHandling.Ignore)] + public string NotResource { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class Statement {\n"); + sb.Append(" sid: ").Append(Sid).Append("\n"); + sb.Append(" effect: ").Append(Effect).Append("\n"); + sb.Append(" principal: ").Append(Principal).Append("\n"); + sb.Append(" notPrincipal: ").Append(NotPrincipal).Append("\n"); + sb.Append(" action: ").Append(Action).Append("\n"); + sb.Append(" notAction: ").Append(NotAction).Append("\n"); + sb.Append(" resource: ").Append(Resource).Append("\n"); + sb.Append(" notResource: ").Append(NotResource).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as Statement); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(Statement input) + { + if (input == null) + return false; + + return + ( + this.Sid == input.Sid || + (this.Sid != null && + this.Sid.Equals(input.Sid)) + ) && + ( + this.Effect == input.Effect || + (this.Effect != null && + this.Effect.Equals(input.Effect)) + ) && + ( + this.Principal == input.Principal || + (this.Principal != null && + this.Principal.Equals(input.Principal)) + ) && + ( + this.NotPrincipal == input.NotPrincipal || + (this.NotPrincipal != null && + this.NotPrincipal.Equals(input.NotPrincipal)) + ) && + ( + this.Action == input.Action || + (this.Action != null && + this.Action.Equals(input.Action)) + ) && + ( + this.NotAction == input.NotAction || + (this.NotAction != null && + this.NotAction.Equals(input.NotAction)) + ) && + ( + this.Resource == input.Resource || + (this.Resource != null && + this.Resource.Equals(input.Resource)) + ) && + ( + this.NotResource == input.NotResource || + (this.NotResource != null && + this.NotResource.Equals(input.NotResource)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Sid != null) + hashCode = hashCode * 59 + this.Sid.GetHashCode(); + if (this.Effect != null) + hashCode = hashCode * 59 + this.Effect.GetHashCode(); + if (this.Principal != null) + hashCode = hashCode * 59 + this.Principal.GetHashCode(); + if (this.NotPrincipal != null) + hashCode = hashCode * 59 + this.NotPrincipal.GetHashCode(); + if (this.Action != null) + hashCode = hashCode * 59 + this.Action.GetHashCode(); + if (this.NotAction != null) + hashCode = hashCode * 59 + this.NotAction.GetHashCode(); + if (this.Resource != null) + hashCode = hashCode * 59 + this.Resource.GetHashCode(); + if (this.NotResource != null) + hashCode = hashCode * 59 + this.NotResource.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/TagMatch.cs b/Services/Smn/V2/Model/TagMatch.cs new file mode 100755 index 0000000..c27e14c --- /dev/null +++ b/Services/Smn/V2/Model/TagMatch.cs @@ -0,0 +1,84 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// 搜索字段,用于按条件搜索资源。 + /// + public class TagMatch + { + + [JsonProperty("key", NullValueHandling = NullValueHandling.Ignore)] + public string Key { get; set; } + + [JsonProperty("value", NullValueHandling = NullValueHandling.Ignore)] + public string Value { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class TagMatch {\n"); + sb.Append(" key: ").Append(Key).Append("\n"); + sb.Append(" value: ").Append(Value).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as TagMatch); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(TagMatch input) + { + if (input == null) + return false; + + return + ( + this.Key == input.Key || + (this.Key != null && + this.Key.Equals(input.Key)) + ) && + ( + this.Value == input.Value || + (this.Value != null && + this.Value.Equals(input.Value)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Key != null) + hashCode = hashCode * 59 + this.Key.GetHashCode(); + if (this.Value != null) + hashCode = hashCode * 59 + this.Value.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/TagResource.cs b/Services/Smn/V2/Model/TagResource.cs new file mode 100755 index 0000000..ed3edf5 --- /dev/null +++ b/Services/Smn/V2/Model/TagResource.cs @@ -0,0 +1,107 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// 资源结构体。 + /// + public class TagResource + { + + [JsonProperty("resource_id", NullValueHandling = NullValueHandling.Ignore)] + public string ResourceId { get; set; } + + [JsonProperty("resource_detail", NullValueHandling = NullValueHandling.Ignore)] + public ResourceDetail ResourceDetail { get; set; } + + [JsonProperty("tags", NullValueHandling = NullValueHandling.Ignore)] + public List Tags { get; set; } + + [JsonProperty("resource_name", NullValueHandling = NullValueHandling.Ignore)] + public string ResourceName { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class TagResource {\n"); + sb.Append(" resourceId: ").Append(ResourceId).Append("\n"); + sb.Append(" resourceDetail: ").Append(ResourceDetail).Append("\n"); + sb.Append(" tags: ").Append(Tags).Append("\n"); + sb.Append(" resourceName: ").Append(ResourceName).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as TagResource); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(TagResource input) + { + if (input == null) + return false; + + return + ( + this.ResourceId == input.ResourceId || + (this.ResourceId != null && + this.ResourceId.Equals(input.ResourceId)) + ) && + ( + this.ResourceDetail == input.ResourceDetail || + (this.ResourceDetail != null && + this.ResourceDetail.Equals(input.ResourceDetail)) + ) && + ( + this.Tags == input.Tags || + this.Tags != null && + input.Tags != null && + this.Tags.SequenceEqual(input.Tags) + ) && + ( + this.ResourceName == input.ResourceName || + (this.ResourceName != null && + this.ResourceName.Equals(input.ResourceName)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ResourceId != null) + hashCode = hashCode * 59 + this.ResourceId.GetHashCode(); + if (this.ResourceDetail != null) + hashCode = hashCode * 59 + this.ResourceDetail.GetHashCode(); + if (this.Tags != null) + hashCode = hashCode * 59 + this.Tags.GetHashCode(); + if (this.ResourceName != null) + hashCode = hashCode * 59 + this.ResourceName.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/TopicAttribute.cs b/Services/Smn/V2/Model/TopicAttribute.cs new file mode 100755 index 0000000..016814f --- /dev/null +++ b/Services/Smn/V2/Model/TopicAttribute.cs @@ -0,0 +1,96 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// + /// + public class TopicAttribute + { + + [JsonProperty("Version", NullValueHandling = NullValueHandling.Ignore)] + public string Version { get; set; } + + [JsonProperty("Id", NullValueHandling = NullValueHandling.Ignore)] + public string Id { get; set; } + + [JsonProperty("Statement", NullValueHandling = NullValueHandling.Ignore)] + public List Statement { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class TopicAttribute {\n"); + sb.Append(" version: ").Append(Version).Append("\n"); + sb.Append(" id: ").Append(Id).Append("\n"); + sb.Append(" statement: ").Append(Statement).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as TopicAttribute); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(TopicAttribute input) + { + if (input == null) + return false; + + return + ( + this.Version == input.Version || + (this.Version != null && + this.Version.Equals(input.Version)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Statement == input.Statement || + this.Statement != null && + input.Statement != null && + this.Statement.SequenceEqual(input.Statement) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Version != null) + hashCode = hashCode * 59 + this.Version.GetHashCode(); + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.Statement != null) + hashCode = hashCode * 59 + this.Statement.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/UpdateApplicationEndpointRequest.cs b/Services/Smn/V2/Model/UpdateApplicationEndpointRequest.cs new file mode 100755 index 0000000..d913e8e --- /dev/null +++ b/Services/Smn/V2/Model/UpdateApplicationEndpointRequest.cs @@ -0,0 +1,86 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Request Object + /// + public class UpdateApplicationEndpointRequest + { + + [SDKProperty("endpoint_urn", IsPath = true)] + [JsonProperty("endpoint_urn", NullValueHandling = NullValueHandling.Ignore)] + public string EndpointUrn { get; set; } + + [SDKProperty("body", IsBody = true)] + [JsonProperty("body", NullValueHandling = NullValueHandling.Ignore)] + public UpdateApplicationEndpointRequestBody Body { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UpdateApplicationEndpointRequest {\n"); + sb.Append(" endpointUrn: ").Append(EndpointUrn).Append("\n"); + sb.Append(" body: ").Append(Body).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as UpdateApplicationEndpointRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(UpdateApplicationEndpointRequest input) + { + if (input == null) + return false; + + return + ( + this.EndpointUrn == input.EndpointUrn || + (this.EndpointUrn != null && + this.EndpointUrn.Equals(input.EndpointUrn)) + ) && + ( + this.Body == input.Body || + (this.Body != null && + this.Body.Equals(input.Body)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EndpointUrn != null) + hashCode = hashCode * 59 + this.EndpointUrn.GetHashCode(); + if (this.Body != null) + hashCode = hashCode * 59 + this.Body.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/UpdateApplicationEndpointRequestBody.cs b/Services/Smn/V2/Model/UpdateApplicationEndpointRequestBody.cs new file mode 100755 index 0000000..3f8ef5f --- /dev/null +++ b/Services/Smn/V2/Model/UpdateApplicationEndpointRequestBody.cs @@ -0,0 +1,84 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// + /// + public class UpdateApplicationEndpointRequestBody + { + + [JsonProperty("enabled", NullValueHandling = NullValueHandling.Ignore)] + public string Enabled { get; set; } + + [JsonProperty("user_data", NullValueHandling = NullValueHandling.Ignore)] + public string UserData { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UpdateApplicationEndpointRequestBody {\n"); + sb.Append(" enabled: ").Append(Enabled).Append("\n"); + sb.Append(" userData: ").Append(UserData).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as UpdateApplicationEndpointRequestBody); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(UpdateApplicationEndpointRequestBody input) + { + if (input == null) + return false; + + return + ( + this.Enabled == input.Enabled || + (this.Enabled != null && + this.Enabled.Equals(input.Enabled)) + ) && + ( + this.UserData == input.UserData || + (this.UserData != null && + this.UserData.Equals(input.UserData)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Enabled != null) + hashCode = hashCode * 59 + this.Enabled.GetHashCode(); + if (this.UserData != null) + hashCode = hashCode * 59 + this.UserData.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/UpdateApplicationEndpointResponse.cs b/Services/Smn/V2/Model/UpdateApplicationEndpointResponse.cs new file mode 100755 index 0000000..69561e7 --- /dev/null +++ b/Services/Smn/V2/Model/UpdateApplicationEndpointResponse.cs @@ -0,0 +1,73 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Response Object + /// + public class UpdateApplicationEndpointResponse : SdkResponse + { + + [JsonProperty("request_id", NullValueHandling = NullValueHandling.Ignore)] + public string RequestId { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UpdateApplicationEndpointResponse {\n"); + sb.Append(" requestId: ").Append(RequestId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as UpdateApplicationEndpointResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(UpdateApplicationEndpointResponse input) + { + if (input == null) + return false; + + return + ( + this.RequestId == input.RequestId || + (this.RequestId != null && + this.RequestId.Equals(input.RequestId)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.RequestId != null) + hashCode = hashCode * 59 + this.RequestId.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/UpdateApplicationRequest.cs b/Services/Smn/V2/Model/UpdateApplicationRequest.cs new file mode 100755 index 0000000..dd383ac --- /dev/null +++ b/Services/Smn/V2/Model/UpdateApplicationRequest.cs @@ -0,0 +1,86 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Request Object + /// + public class UpdateApplicationRequest + { + + [SDKProperty("application_urn", IsPath = true)] + [JsonProperty("application_urn", NullValueHandling = NullValueHandling.Ignore)] + public string ApplicationUrn { get; set; } + + [SDKProperty("body", IsBody = true)] + [JsonProperty("body", NullValueHandling = NullValueHandling.Ignore)] + public UpdateApplicationRequestBody Body { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UpdateApplicationRequest {\n"); + sb.Append(" applicationUrn: ").Append(ApplicationUrn).Append("\n"); + sb.Append(" body: ").Append(Body).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as UpdateApplicationRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(UpdateApplicationRequest input) + { + if (input == null) + return false; + + return + ( + this.ApplicationUrn == input.ApplicationUrn || + (this.ApplicationUrn != null && + this.ApplicationUrn.Equals(input.ApplicationUrn)) + ) && + ( + this.Body == input.Body || + (this.Body != null && + this.Body.Equals(input.Body)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ApplicationUrn != null) + hashCode = hashCode * 59 + this.ApplicationUrn.GetHashCode(); + if (this.Body != null) + hashCode = hashCode * 59 + this.Body.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/UpdateApplicationRequestBody.cs b/Services/Smn/V2/Model/UpdateApplicationRequestBody.cs new file mode 100755 index 0000000..3d95708 --- /dev/null +++ b/Services/Smn/V2/Model/UpdateApplicationRequestBody.cs @@ -0,0 +1,84 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// + /// + public class UpdateApplicationRequestBody + { + + [JsonProperty("platform_principal", NullValueHandling = NullValueHandling.Ignore)] + public string PlatformPrincipal { get; set; } + + [JsonProperty("platform_credential", NullValueHandling = NullValueHandling.Ignore)] + public string PlatformCredential { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UpdateApplicationRequestBody {\n"); + sb.Append(" platformPrincipal: ").Append(PlatformPrincipal).Append("\n"); + sb.Append(" platformCredential: ").Append(PlatformCredential).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as UpdateApplicationRequestBody); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(UpdateApplicationRequestBody input) + { + if (input == null) + return false; + + return + ( + this.PlatformPrincipal == input.PlatformPrincipal || + (this.PlatformPrincipal != null && + this.PlatformPrincipal.Equals(input.PlatformPrincipal)) + ) && + ( + this.PlatformCredential == input.PlatformCredential || + (this.PlatformCredential != null && + this.PlatformCredential.Equals(input.PlatformCredential)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.PlatformPrincipal != null) + hashCode = hashCode * 59 + this.PlatformPrincipal.GetHashCode(); + if (this.PlatformCredential != null) + hashCode = hashCode * 59 + this.PlatformCredential.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/UpdateApplicationResponse.cs b/Services/Smn/V2/Model/UpdateApplicationResponse.cs new file mode 100755 index 0000000..a0c2fd4 --- /dev/null +++ b/Services/Smn/V2/Model/UpdateApplicationResponse.cs @@ -0,0 +1,73 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Response Object + /// + public class UpdateApplicationResponse : SdkResponse + { + + [JsonProperty("request_id", NullValueHandling = NullValueHandling.Ignore)] + public string RequestId { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UpdateApplicationResponse {\n"); + sb.Append(" requestId: ").Append(RequestId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as UpdateApplicationResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(UpdateApplicationResponse input) + { + if (input == null) + return false; + + return + ( + this.RequestId == input.RequestId || + (this.RequestId != null && + this.RequestId.Equals(input.RequestId)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.RequestId != null) + hashCode = hashCode * 59 + this.RequestId.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/UpdateMessageTemplateRequest.cs b/Services/Smn/V2/Model/UpdateMessageTemplateRequest.cs new file mode 100755 index 0000000..6738155 --- /dev/null +++ b/Services/Smn/V2/Model/UpdateMessageTemplateRequest.cs @@ -0,0 +1,86 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Request Object + /// + public class UpdateMessageTemplateRequest + { + + [SDKProperty("message_template_id", IsPath = true)] + [JsonProperty("message_template_id", NullValueHandling = NullValueHandling.Ignore)] + public string MessageTemplateId { get; set; } + + [SDKProperty("body", IsBody = true)] + [JsonProperty("body", NullValueHandling = NullValueHandling.Ignore)] + public UpdateMessageTemplateRequestBody Body { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UpdateMessageTemplateRequest {\n"); + sb.Append(" messageTemplateId: ").Append(MessageTemplateId).Append("\n"); + sb.Append(" body: ").Append(Body).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as UpdateMessageTemplateRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(UpdateMessageTemplateRequest input) + { + if (input == null) + return false; + + return + ( + this.MessageTemplateId == input.MessageTemplateId || + (this.MessageTemplateId != null && + this.MessageTemplateId.Equals(input.MessageTemplateId)) + ) && + ( + this.Body == input.Body || + (this.Body != null && + this.Body.Equals(input.Body)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.MessageTemplateId != null) + hashCode = hashCode * 59 + this.MessageTemplateId.GetHashCode(); + if (this.Body != null) + hashCode = hashCode * 59 + this.Body.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/UpdateMessageTemplateRequestBody.cs b/Services/Smn/V2/Model/UpdateMessageTemplateRequestBody.cs new file mode 100755 index 0000000..6c77a31 --- /dev/null +++ b/Services/Smn/V2/Model/UpdateMessageTemplateRequestBody.cs @@ -0,0 +1,73 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// + /// + public class UpdateMessageTemplateRequestBody + { + + [JsonProperty("content", NullValueHandling = NullValueHandling.Ignore)] + public string Content { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UpdateMessageTemplateRequestBody {\n"); + sb.Append(" content: ").Append(Content).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as UpdateMessageTemplateRequestBody); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(UpdateMessageTemplateRequestBody input) + { + if (input == null) + return false; + + return + ( + this.Content == input.Content || + (this.Content != null && + this.Content.Equals(input.Content)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Content != null) + hashCode = hashCode * 59 + this.Content.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/UpdateMessageTemplateResponse.cs b/Services/Smn/V2/Model/UpdateMessageTemplateResponse.cs new file mode 100755 index 0000000..94b6a5d --- /dev/null +++ b/Services/Smn/V2/Model/UpdateMessageTemplateResponse.cs @@ -0,0 +1,73 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Response Object + /// + public class UpdateMessageTemplateResponse : SdkResponse + { + + [JsonProperty("request_id", NullValueHandling = NullValueHandling.Ignore)] + public string RequestId { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UpdateMessageTemplateResponse {\n"); + sb.Append(" requestId: ").Append(RequestId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as UpdateMessageTemplateResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(UpdateMessageTemplateResponse input) + { + if (input == null) + return false; + + return + ( + this.RequestId == input.RequestId || + (this.RequestId != null && + this.RequestId.Equals(input.RequestId)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.RequestId != null) + hashCode = hashCode * 59 + this.RequestId.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/UpdateTopicAttributeRequest.cs b/Services/Smn/V2/Model/UpdateTopicAttributeRequest.cs new file mode 100755 index 0000000..174d621 --- /dev/null +++ b/Services/Smn/V2/Model/UpdateTopicAttributeRequest.cs @@ -0,0 +1,98 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Request Object + /// + public class UpdateTopicAttributeRequest + { + + [SDKProperty("topic_urn", IsPath = true)] + [JsonProperty("topic_urn", NullValueHandling = NullValueHandling.Ignore)] + public string TopicUrn { get; set; } + + [SDKProperty("name", IsPath = true)] + [JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)] + public string Name { get; set; } + + [SDKProperty("body", IsBody = true)] + [JsonProperty("body", NullValueHandling = NullValueHandling.Ignore)] + public UpdateTopicAttributeRequestBody Body { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UpdateTopicAttributeRequest {\n"); + sb.Append(" topicUrn: ").Append(TopicUrn).Append("\n"); + sb.Append(" name: ").Append(Name).Append("\n"); + sb.Append(" body: ").Append(Body).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as UpdateTopicAttributeRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(UpdateTopicAttributeRequest input) + { + if (input == null) + return false; + + return + ( + this.TopicUrn == input.TopicUrn || + (this.TopicUrn != null && + this.TopicUrn.Equals(input.TopicUrn)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Body == input.Body || + (this.Body != null && + this.Body.Equals(input.Body)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.TopicUrn != null) + hashCode = hashCode * 59 + this.TopicUrn.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Body != null) + hashCode = hashCode * 59 + this.Body.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/UpdateTopicAttributeRequestBody.cs b/Services/Smn/V2/Model/UpdateTopicAttributeRequestBody.cs new file mode 100755 index 0000000..386cce8 --- /dev/null +++ b/Services/Smn/V2/Model/UpdateTopicAttributeRequestBody.cs @@ -0,0 +1,73 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// + /// + public class UpdateTopicAttributeRequestBody + { + + [JsonProperty("value", NullValueHandling = NullValueHandling.Ignore)] + public string Value { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UpdateTopicAttributeRequestBody {\n"); + sb.Append(" value: ").Append(Value).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as UpdateTopicAttributeRequestBody); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(UpdateTopicAttributeRequestBody input) + { + if (input == null) + return false; + + return + ( + this.Value == input.Value || + (this.Value != null && + this.Value.Equals(input.Value)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Value != null) + hashCode = hashCode * 59 + this.Value.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/UpdateTopicAttributeResponse.cs b/Services/Smn/V2/Model/UpdateTopicAttributeResponse.cs new file mode 100755 index 0000000..26e2483 --- /dev/null +++ b/Services/Smn/V2/Model/UpdateTopicAttributeResponse.cs @@ -0,0 +1,73 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Response Object + /// + public class UpdateTopicAttributeResponse : SdkResponse + { + + [JsonProperty("request_id", NullValueHandling = NullValueHandling.Ignore)] + public string RequestId { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UpdateTopicAttributeResponse {\n"); + sb.Append(" requestId: ").Append(RequestId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as UpdateTopicAttributeResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(UpdateTopicAttributeResponse input) + { + if (input == null) + return false; + + return + ( + this.RequestId == input.RequestId || + (this.RequestId != null && + this.RequestId.Equals(input.RequestId)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.RequestId != null) + hashCode = hashCode * 59 + this.RequestId.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/UpdateTopicRequest.cs b/Services/Smn/V2/Model/UpdateTopicRequest.cs new file mode 100755 index 0000000..d130619 --- /dev/null +++ b/Services/Smn/V2/Model/UpdateTopicRequest.cs @@ -0,0 +1,86 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Request Object + /// + public class UpdateTopicRequest + { + + [SDKProperty("topic_urn", IsPath = true)] + [JsonProperty("topic_urn", NullValueHandling = NullValueHandling.Ignore)] + public string TopicUrn { get; set; } + + [SDKProperty("body", IsBody = true)] + [JsonProperty("body", NullValueHandling = NullValueHandling.Ignore)] + public UpdateTopicRequestBody Body { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UpdateTopicRequest {\n"); + sb.Append(" topicUrn: ").Append(TopicUrn).Append("\n"); + sb.Append(" body: ").Append(Body).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as UpdateTopicRequest); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(UpdateTopicRequest input) + { + if (input == null) + return false; + + return + ( + this.TopicUrn == input.TopicUrn || + (this.TopicUrn != null && + this.TopicUrn.Equals(input.TopicUrn)) + ) && + ( + this.Body == input.Body || + (this.Body != null && + this.Body.Equals(input.Body)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.TopicUrn != null) + hashCode = hashCode * 59 + this.TopicUrn.GetHashCode(); + if (this.Body != null) + hashCode = hashCode * 59 + this.Body.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/UpdateTopicRequestBody.cs b/Services/Smn/V2/Model/UpdateTopicRequestBody.cs new file mode 100755 index 0000000..bc1e5a0 --- /dev/null +++ b/Services/Smn/V2/Model/UpdateTopicRequestBody.cs @@ -0,0 +1,73 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// + /// + public class UpdateTopicRequestBody + { + + [JsonProperty("display_name", NullValueHandling = NullValueHandling.Ignore)] + public string DisplayName { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UpdateTopicRequestBody {\n"); + sb.Append(" displayName: ").Append(DisplayName).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as UpdateTopicRequestBody); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(UpdateTopicRequestBody input) + { + if (input == null) + return false; + + return + ( + this.DisplayName == input.DisplayName || + (this.DisplayName != null && + this.DisplayName.Equals(input.DisplayName)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.DisplayName != null) + hashCode = hashCode * 59 + this.DisplayName.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/UpdateTopicResponse.cs b/Services/Smn/V2/Model/UpdateTopicResponse.cs new file mode 100755 index 0000000..41bb82f --- /dev/null +++ b/Services/Smn/V2/Model/UpdateTopicResponse.cs @@ -0,0 +1,73 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// Response Object + /// + public class UpdateTopicResponse : SdkResponse + { + + [JsonProperty("request_id", NullValueHandling = NullValueHandling.Ignore)] + public string RequestId { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UpdateTopicResponse {\n"); + sb.Append(" requestId: ").Append(RequestId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as UpdateTopicResponse); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(UpdateTopicResponse input) + { + if (input == null) + return false; + + return + ( + this.RequestId == input.RequestId || + (this.RequestId != null && + this.RequestId.Equals(input.RequestId)) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.RequestId != null) + hashCode = hashCode * 59 + this.RequestId.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Model/VersionItem.cs b/Services/Smn/V2/Model/VersionItem.cs new file mode 100755 index 0000000..9750a93 --- /dev/null +++ b/Services/Smn/V2/Model/VersionItem.cs @@ -0,0 +1,129 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Linq; +using System.Runtime.Serialization; + +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2.Model +{ + /// + /// + /// + public class VersionItem + { + + [JsonProperty("id", NullValueHandling = NullValueHandling.Ignore)] + public string Id { get; set; } + + [JsonProperty("min_version", NullValueHandling = NullValueHandling.Ignore)] + public string MinVersion { get; set; } + + [JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)] + public string Status { get; set; } + + [JsonProperty("updated", NullValueHandling = NullValueHandling.Ignore)] + public string Updated { get; set; } + + [JsonProperty("version", NullValueHandling = NullValueHandling.Ignore)] + public string Version { get; set; } + + [JsonProperty("links", NullValueHandling = NullValueHandling.Ignore)] + public List Links { get; set; } + + + /// + /// Get the string + /// + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class VersionItem {\n"); + sb.Append(" id: ").Append(Id).Append("\n"); + sb.Append(" minVersion: ").Append(MinVersion).Append("\n"); + sb.Append(" status: ").Append(Status).Append("\n"); + sb.Append(" updated: ").Append(Updated).Append("\n"); + sb.Append(" version: ").Append(Version).Append("\n"); + sb.Append(" links: ").Append(Links).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns true if objects are equal + /// + public override bool Equals(object input) + { + return this.Equals(input as VersionItem); + } + + /// + /// Returns true if objects are equal + /// + public bool Equals(VersionItem input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.MinVersion == input.MinVersion || + (this.MinVersion != null && + this.MinVersion.Equals(input.MinVersion)) + ) && + ( + this.Status == input.Status || + (this.Status != null && + this.Status.Equals(input.Status)) + ) && + ( + this.Updated == input.Updated || + (this.Updated != null && + this.Updated.Equals(input.Updated)) + ) && + ( + this.Version == input.Version || + (this.Version != null && + this.Version.Equals(input.Version)) + ) && + ( + this.Links == input.Links || + this.Links != null && + input.Links != null && + this.Links.SequenceEqual(input.Links) + ); + } + + /// + /// Get hash code + /// + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.MinVersion != null) + hashCode = hashCode * 59 + this.MinVersion.GetHashCode(); + if (this.Status != null) + hashCode = hashCode * 59 + this.Status.GetHashCode(); + if (this.Updated != null) + hashCode = hashCode * 59 + this.Updated.GetHashCode(); + if (this.Version != null) + hashCode = hashCode * 59 + this.Version.GetHashCode(); + if (this.Links != null) + hashCode = hashCode * 59 + this.Links.GetHashCode(); + return hashCode; + } + } + } +} diff --git a/Services/Smn/V2/Region/SmnRegion.cs b/Services/Smn/V2/Region/SmnRegion.cs new file mode 100755 index 0000000..beb8545 --- /dev/null +++ b/Services/Smn/V2/Region/SmnRegion.cs @@ -0,0 +1,31 @@ +using System; +using System.Collections.Generic; +using G42Cloud.SDK.Core; + +namespace G42Cloud.SDK.Smn.V2 +{ + public class SmnRegion + { + public static readonly Region AE_AD_1 = new Region("ae-ad-1", "https://smn.ae-ad-1.g42cloud.com"); + + private static readonly Dictionary StaticFields = new Dictionary() + { + { "ae-ad-1", AE_AD_1 }, + }; + + public static Region ValueOf(string regionId) + { + if (string.IsNullOrEmpty(regionId)) + { + throw new ArgumentNullException(regionId); + } + + if (StaticFields.ContainsKey(regionId)) + { + return StaticFields[regionId]; + } + + throw new ArgumentException("Unexpected regionId: ", regionId); + } + } +} \ No newline at end of file diff --git a/Services/Smn/V2/SmnAsyncClient.cs b/Services/Smn/V2/SmnAsyncClient.cs new file mode 100755 index 0000000..4e470f0 --- /dev/null +++ b/Services/Smn/V2/SmnAsyncClient.cs @@ -0,0 +1,397 @@ +using System.Net.Http; +using System.Collections.Generic; +using System.Threading.Tasks; +using G42Cloud.SDK.Core; +using G42Cloud.SDK.Smn.V2.Model; + +namespace G42Cloud.SDK.Smn.V2 +{ + public partial class SmnAsyncClient : Client + { + public static ClientBuilder NewBuilder() + { + return new ClientBuilder(); + } + + + public async Task AddSubscriptionAsync(AddSubscriptionRequest addSubscriptionRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("topic_urn" , addSubscriptionRequest.TopicUrn.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/notifications/topics/{topic_urn}/subscriptions",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", addSubscriptionRequest); + HttpResponseMessage response = await DoHttpRequestAsync("POST",request); + return JsonUtils.DeSerialize(response); + } + + public async Task BatchCreateOrDeleteResourceTagsAsync(BatchCreateOrDeleteResourceTagsRequest batchCreateOrDeleteResourceTagsRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("resource_type" , batchCreateOrDeleteResourceTagsRequest.ResourceType.ToString()); + urlParam.Add("resource_id" , batchCreateOrDeleteResourceTagsRequest.ResourceId.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/{resource_type}/{resource_id}/tags/action",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", batchCreateOrDeleteResourceTagsRequest); + HttpResponseMessage response = await DoHttpRequestAsync("POST",request); + return JsonUtils.DeSerializeNull(response); + } + + public async Task CancelSubscriptionAsync(CancelSubscriptionRequest cancelSubscriptionRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("subscription_urn" , cancelSubscriptionRequest.SubscriptionUrn.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/notifications/subscriptions/{subscription_urn}",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", cancelSubscriptionRequest); + HttpResponseMessage response = await DoHttpRequestAsync("DELETE",request); + return JsonUtils.DeSerialize(response); + } + + public async Task CreateMessageTemplateAsync(CreateMessageTemplateRequest createMessageTemplateRequest) + { + Dictionary urlParam = new Dictionary(); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/notifications/message_template",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", createMessageTemplateRequest); + HttpResponseMessage response = await DoHttpRequestAsync("POST",request); + return JsonUtils.DeSerialize(response); + } + + public async Task CreateResourceTagAsync(CreateResourceTagRequest createResourceTagRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("resource_type" , createResourceTagRequest.ResourceType.ToString()); + urlParam.Add("resource_id" , createResourceTagRequest.ResourceId.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/{resource_type}/{resource_id}/tags",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", createResourceTagRequest); + HttpResponseMessage response = await DoHttpRequestAsync("POST",request); + return JsonUtils.DeSerializeNull(response); + } + + public async Task CreateTopicAsync(CreateTopicRequest createTopicRequest) + { + Dictionary urlParam = new Dictionary(); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/notifications/topics",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", createTopicRequest); + HttpResponseMessage response = await DoHttpRequestAsync("POST",request); + return JsonUtils.DeSerialize(response); + } + + public async Task DeleteMessageTemplateAsync(DeleteMessageTemplateRequest deleteMessageTemplateRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("message_template_id" , deleteMessageTemplateRequest.MessageTemplateId.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/notifications/message_template/{message_template_id}",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", deleteMessageTemplateRequest); + HttpResponseMessage response = await DoHttpRequestAsync("DELETE",request); + return JsonUtils.DeSerialize(response); + } + + public async Task DeleteResourceTagAsync(DeleteResourceTagRequest deleteResourceTagRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("resource_type" , deleteResourceTagRequest.ResourceType.ToString()); + urlParam.Add("resource_id" , deleteResourceTagRequest.ResourceId.ToString()); + urlParam.Add("key" , deleteResourceTagRequest.Key.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/{resource_type}/{resource_id}/tags/{key}",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", deleteResourceTagRequest); + HttpResponseMessage response = await DoHttpRequestAsync("DELETE",request); + return JsonUtils.DeSerializeNull(response); + } + + public async Task DeleteTopicAsync(DeleteTopicRequest deleteTopicRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("topic_urn" , deleteTopicRequest.TopicUrn.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/notifications/topics/{topic_urn}",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", deleteTopicRequest); + HttpResponseMessage response = await DoHttpRequestAsync("DELETE",request); + return JsonUtils.DeSerialize(response); + } + + public async Task DeleteTopicAttributeByNameAsync(DeleteTopicAttributeByNameRequest deleteTopicAttributeByNameRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("topic_urn" , deleteTopicAttributeByNameRequest.TopicUrn.ToString()); + urlParam.Add("name" , deleteTopicAttributeByNameRequest.Name.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/notifications/topics/{topic_urn}/attributes/{name}",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", deleteTopicAttributeByNameRequest); + HttpResponseMessage response = await DoHttpRequestAsync("DELETE",request); + return JsonUtils.DeSerialize(response); + } + + public async Task DeleteTopicAttributesAsync(DeleteTopicAttributesRequest deleteTopicAttributesRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("topic_urn" , deleteTopicAttributesRequest.TopicUrn.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/notifications/topics/{topic_urn}/attributes",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", deleteTopicAttributesRequest); + HttpResponseMessage response = await DoHttpRequestAsync("DELETE",request); + return JsonUtils.DeSerialize(response); + } + + public async Task ListMessageTemplateDetailsAsync(ListMessageTemplateDetailsRequest listMessageTemplateDetailsRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("message_template_id" , listMessageTemplateDetailsRequest.MessageTemplateId.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/notifications/message_template/{message_template_id}",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", listMessageTemplateDetailsRequest); + HttpResponseMessage response = await DoHttpRequestAsync("GET",request); + return JsonUtils.DeSerialize(response); + } + + public async Task ListMessageTemplatesAsync(ListMessageTemplatesRequest listMessageTemplatesRequest) + { + Dictionary urlParam = new Dictionary(); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/notifications/message_template",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", listMessageTemplatesRequest); + HttpResponseMessage response = await DoHttpRequestAsync("GET",request); + return JsonUtils.DeSerialize(response); + } + + public async Task ListProjectTagsAsync(ListProjectTagsRequest listProjectTagsRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("resource_type" , listProjectTagsRequest.ResourceType.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/{resource_type}/tags",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", listProjectTagsRequest); + HttpResponseMessage response = await DoHttpRequestAsync("GET",request); + return JsonUtils.DeSerialize(response); + } + + public async Task ListResourceInstancesAsync(ListResourceInstancesRequest listResourceInstancesRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("resource_type" , listResourceInstancesRequest.ResourceType.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/{resource_type}/resource_instances/action",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", listResourceInstancesRequest); + HttpResponseMessage response = await DoHttpRequestAsync("POST",request); + return JsonUtils.DeSerialize(response); + } + + public async Task ListResourceTagsAsync(ListResourceTagsRequest listResourceTagsRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("resource_type" , listResourceTagsRequest.ResourceType.ToString()); + urlParam.Add("resource_id" , listResourceTagsRequest.ResourceId.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/{resource_type}/{resource_id}/tags",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", listResourceTagsRequest); + HttpResponseMessage response = await DoHttpRequestAsync("GET",request); + return JsonUtils.DeSerialize(response); + } + + public async Task ListSubscriptionsAsync(ListSubscriptionsRequest listSubscriptionsRequest) + { + Dictionary urlParam = new Dictionary(); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/notifications/subscriptions",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", listSubscriptionsRequest); + HttpResponseMessage response = await DoHttpRequestAsync("GET",request); + return JsonUtils.DeSerialize(response); + } + + public async Task ListSubscriptionsByTopicAsync(ListSubscriptionsByTopicRequest listSubscriptionsByTopicRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("topic_urn" , listSubscriptionsByTopicRequest.TopicUrn.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/notifications/topics/{topic_urn}/subscriptions",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", listSubscriptionsByTopicRequest); + HttpResponseMessage response = await DoHttpRequestAsync("GET",request); + return JsonUtils.DeSerialize(response); + } + + public async Task ListTopicAttributesAsync(ListTopicAttributesRequest listTopicAttributesRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("topic_urn" , listTopicAttributesRequest.TopicUrn.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/notifications/topics/{topic_urn}/attributes",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", listTopicAttributesRequest); + HttpResponseMessage response = await DoHttpRequestAsync("GET",request); + return JsonUtils.DeSerialize(response); + } + + public async Task ListTopicDetailsAsync(ListTopicDetailsRequest listTopicDetailsRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("topic_urn" , listTopicDetailsRequest.TopicUrn.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/notifications/topics/{topic_urn}",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", listTopicDetailsRequest); + HttpResponseMessage response = await DoHttpRequestAsync("GET",request); + return JsonUtils.DeSerialize(response); + } + + public async Task ListTopicsAsync(ListTopicsRequest listTopicsRequest) + { + Dictionary urlParam = new Dictionary(); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/notifications/topics",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", listTopicsRequest); + HttpResponseMessage response = await DoHttpRequestAsync("GET",request); + return JsonUtils.DeSerialize(response); + } + + public async Task ListVersionAsync(ListVersionRequest listVersionRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("api_version" , listVersionRequest.ApiVersion.ToString()); + string urlPath = HttpUtils.AddUrlPath("/{api_version}",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", listVersionRequest); + HttpResponseMessage response = await DoHttpRequestAsync("GET",request); + return JsonUtils.DeSerialize(response); + } + + public async Task ListVersionsAsync(ListVersionsRequest listVersionsRequest) + { + Dictionary urlParam = new Dictionary(); + string urlPath = HttpUtils.AddUrlPath("/",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", listVersionsRequest); + HttpResponseMessage response = await DoHttpRequestAsync("GET",request); + return JsonUtils.DeSerialize(response); + } + + public async Task PublishMessageAsync(PublishMessageRequest publishMessageRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("topic_urn" , publishMessageRequest.TopicUrn.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/notifications/topics/{topic_urn}/publish",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", publishMessageRequest); + HttpResponseMessage response = await DoHttpRequestAsync("POST",request); + return JsonUtils.DeSerialize(response); + } + + public async Task UpdateMessageTemplateAsync(UpdateMessageTemplateRequest updateMessageTemplateRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("message_template_id" , updateMessageTemplateRequest.MessageTemplateId.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/notifications/message_template/{message_template_id}",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", updateMessageTemplateRequest); + HttpResponseMessage response = await DoHttpRequestAsync("PUT",request); + return JsonUtils.DeSerialize(response); + } + + public async Task UpdateTopicAsync(UpdateTopicRequest updateTopicRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("topic_urn" , updateTopicRequest.TopicUrn.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/notifications/topics/{topic_urn}",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", updateTopicRequest); + HttpResponseMessage response = await DoHttpRequestAsync("PUT",request); + return JsonUtils.DeSerialize(response); + } + + public async Task UpdateTopicAttributeAsync(UpdateTopicAttributeRequest updateTopicAttributeRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("topic_urn" , updateTopicAttributeRequest.TopicUrn.ToString()); + urlParam.Add("name" , updateTopicAttributeRequest.Name.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/notifications/topics/{topic_urn}/attributes/{name}",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", updateTopicAttributeRequest); + HttpResponseMessage response = await DoHttpRequestAsync("PUT",request); + return JsonUtils.DeSerialize(response); + } + + public async Task CreateApplicationAsync(CreateApplicationRequest createApplicationRequest) + { + Dictionary urlParam = new Dictionary(); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/notifications/applications",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", createApplicationRequest); + HttpResponseMessage response = await DoHttpRequestAsync("POST",request); + return JsonUtils.DeSerialize(response); + } + + public async Task DeleteApplicationAsync(DeleteApplicationRequest deleteApplicationRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("application_urn" , deleteApplicationRequest.ApplicationUrn.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/notifications/applications/{application_urn}",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", deleteApplicationRequest); + HttpResponseMessage response = await DoHttpRequestAsync("DELETE",request); + return JsonUtils.DeSerialize(response); + } + + public async Task ListApplicationAttributesAsync(ListApplicationAttributesRequest listApplicationAttributesRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("application_urn" , listApplicationAttributesRequest.ApplicationUrn.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/notifications/applications/{application_urn}",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", listApplicationAttributesRequest); + HttpResponseMessage response = await DoHttpRequestAsync("GET",request); + return JsonUtils.DeSerialize(response); + } + + public async Task ListApplicationsAsync(ListApplicationsRequest listApplicationsRequest) + { + Dictionary urlParam = new Dictionary(); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/notifications/applications",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", listApplicationsRequest); + HttpResponseMessage response = await DoHttpRequestAsync("GET",request); + return JsonUtils.DeSerialize(response); + } + + public async Task PublishAppMessageAsync(PublishAppMessageRequest publishAppMessageRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("endpoint_urn" , publishAppMessageRequest.EndpointUrn.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/notifications/endpoints/{endpoint_urn}/publish",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", publishAppMessageRequest); + HttpResponseMessage response = await DoHttpRequestAsync("POST",request); + return JsonUtils.DeSerialize(response); + } + + public async Task UpdateApplicationAsync(UpdateApplicationRequest updateApplicationRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("application_urn" , updateApplicationRequest.ApplicationUrn.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/notifications/applications/{application_urn}",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", updateApplicationRequest); + HttpResponseMessage response = await DoHttpRequestAsync("PUT",request); + return JsonUtils.DeSerialize(response); + } + + public async Task CreateApplicationEndpointAsync(CreateApplicationEndpointRequest createApplicationEndpointRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("application_urn" , createApplicationEndpointRequest.ApplicationUrn.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/notifications/applications/{application_urn}/endpoints",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", createApplicationEndpointRequest); + HttpResponseMessage response = await DoHttpRequestAsync("POST",request); + return JsonUtils.DeSerialize(response); + } + + public async Task DeleteApplicationEndpointAsync(DeleteApplicationEndpointRequest deleteApplicationEndpointRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("endpoint_urn" , deleteApplicationEndpointRequest.EndpointUrn.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/notifications/endpoints/{endpoint_urn}",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", deleteApplicationEndpointRequest); + HttpResponseMessage response = await DoHttpRequestAsync("DELETE",request); + return JsonUtils.DeSerialize(response); + } + + public async Task ListApplicationEndpointAttributesAsync(ListApplicationEndpointAttributesRequest listApplicationEndpointAttributesRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("endpoint_urn" , listApplicationEndpointAttributesRequest.EndpointUrn.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/notifications/endpoints/{endpoint_urn}",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", listApplicationEndpointAttributesRequest); + HttpResponseMessage response = await DoHttpRequestAsync("GET",request); + return JsonUtils.DeSerialize(response); + } + + public async Task ListApplicationEndpointsAsync(ListApplicationEndpointsRequest listApplicationEndpointsRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("application_urn" , listApplicationEndpointsRequest.ApplicationUrn.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/notifications/applications/{application_urn}/endpoints",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", listApplicationEndpointsRequest); + HttpResponseMessage response = await DoHttpRequestAsync("GET",request); + return JsonUtils.DeSerialize(response); + } + + public async Task UpdateApplicationEndpointAsync(UpdateApplicationEndpointRequest updateApplicationEndpointRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("endpoint_urn" , updateApplicationEndpointRequest.EndpointUrn.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/notifications/endpoints/{endpoint_urn}",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", updateApplicationEndpointRequest); + HttpResponseMessage response = await DoHttpRequestAsync("PUT",request); + return JsonUtils.DeSerialize(response); + } + + } +} \ No newline at end of file diff --git a/Services/Smn/V2/SmnClient.cs b/Services/Smn/V2/SmnClient.cs new file mode 100755 index 0000000..df77866 --- /dev/null +++ b/Services/Smn/V2/SmnClient.cs @@ -0,0 +1,396 @@ +using System.Net.Http; +using System.Collections.Generic; +using G42Cloud.SDK.Core; +using G42Cloud.SDK.Smn.V2.Model; + +namespace G42Cloud.SDK.Smn.V2 +{ + public partial class SmnClient : Client + { + public static ClientBuilder NewBuilder() + { + return new ClientBuilder(); + } + + + public AddSubscriptionResponse AddSubscription(AddSubscriptionRequest addSubscriptionRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("topic_urn" , addSubscriptionRequest.TopicUrn.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/notifications/topics/{topic_urn}/subscriptions",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", addSubscriptionRequest); + HttpResponseMessage response = DoHttpRequestSync("POST",request); + return JsonUtils.DeSerialize(response); + } + + public BatchCreateOrDeleteResourceTagsResponse BatchCreateOrDeleteResourceTags(BatchCreateOrDeleteResourceTagsRequest batchCreateOrDeleteResourceTagsRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("resource_type" , batchCreateOrDeleteResourceTagsRequest.ResourceType.ToString()); + urlParam.Add("resource_id" , batchCreateOrDeleteResourceTagsRequest.ResourceId.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/{resource_type}/{resource_id}/tags/action",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", batchCreateOrDeleteResourceTagsRequest); + HttpResponseMessage response = DoHttpRequestSync("POST",request); + return JsonUtils.DeSerializeNull(response); + } + + public CancelSubscriptionResponse CancelSubscription(CancelSubscriptionRequest cancelSubscriptionRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("subscription_urn" , cancelSubscriptionRequest.SubscriptionUrn.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/notifications/subscriptions/{subscription_urn}",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", cancelSubscriptionRequest); + HttpResponseMessage response = DoHttpRequestSync("DELETE",request); + return JsonUtils.DeSerialize(response); + } + + public CreateMessageTemplateResponse CreateMessageTemplate(CreateMessageTemplateRequest createMessageTemplateRequest) + { + Dictionary urlParam = new Dictionary(); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/notifications/message_template",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", createMessageTemplateRequest); + HttpResponseMessage response = DoHttpRequestSync("POST",request); + return JsonUtils.DeSerialize(response); + } + + public CreateResourceTagResponse CreateResourceTag(CreateResourceTagRequest createResourceTagRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("resource_type" , createResourceTagRequest.ResourceType.ToString()); + urlParam.Add("resource_id" , createResourceTagRequest.ResourceId.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/{resource_type}/{resource_id}/tags",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", createResourceTagRequest); + HttpResponseMessage response = DoHttpRequestSync("POST",request); + return JsonUtils.DeSerializeNull(response); + } + + public CreateTopicResponse CreateTopic(CreateTopicRequest createTopicRequest) + { + Dictionary urlParam = new Dictionary(); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/notifications/topics",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", createTopicRequest); + HttpResponseMessage response = DoHttpRequestSync("POST",request); + return JsonUtils.DeSerialize(response); + } + + public DeleteMessageTemplateResponse DeleteMessageTemplate(DeleteMessageTemplateRequest deleteMessageTemplateRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("message_template_id" , deleteMessageTemplateRequest.MessageTemplateId.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/notifications/message_template/{message_template_id}",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", deleteMessageTemplateRequest); + HttpResponseMessage response = DoHttpRequestSync("DELETE",request); + return JsonUtils.DeSerialize(response); + } + + public DeleteResourceTagResponse DeleteResourceTag(DeleteResourceTagRequest deleteResourceTagRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("resource_type" , deleteResourceTagRequest.ResourceType.ToString()); + urlParam.Add("resource_id" , deleteResourceTagRequest.ResourceId.ToString()); + urlParam.Add("key" , deleteResourceTagRequest.Key.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/{resource_type}/{resource_id}/tags/{key}",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", deleteResourceTagRequest); + HttpResponseMessage response = DoHttpRequestSync("DELETE",request); + return JsonUtils.DeSerializeNull(response); + } + + public DeleteTopicResponse DeleteTopic(DeleteTopicRequest deleteTopicRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("topic_urn" , deleteTopicRequest.TopicUrn.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/notifications/topics/{topic_urn}",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", deleteTopicRequest); + HttpResponseMessage response = DoHttpRequestSync("DELETE",request); + return JsonUtils.DeSerialize(response); + } + + public DeleteTopicAttributeByNameResponse DeleteTopicAttributeByName(DeleteTopicAttributeByNameRequest deleteTopicAttributeByNameRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("topic_urn" , deleteTopicAttributeByNameRequest.TopicUrn.ToString()); + urlParam.Add("name" , deleteTopicAttributeByNameRequest.Name.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/notifications/topics/{topic_urn}/attributes/{name}",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", deleteTopicAttributeByNameRequest); + HttpResponseMessage response = DoHttpRequestSync("DELETE",request); + return JsonUtils.DeSerialize(response); + } + + public DeleteTopicAttributesResponse DeleteTopicAttributes(DeleteTopicAttributesRequest deleteTopicAttributesRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("topic_urn" , deleteTopicAttributesRequest.TopicUrn.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/notifications/topics/{topic_urn}/attributes",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", deleteTopicAttributesRequest); + HttpResponseMessage response = DoHttpRequestSync("DELETE",request); + return JsonUtils.DeSerialize(response); + } + + public ListMessageTemplateDetailsResponse ListMessageTemplateDetails(ListMessageTemplateDetailsRequest listMessageTemplateDetailsRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("message_template_id" , listMessageTemplateDetailsRequest.MessageTemplateId.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/notifications/message_template/{message_template_id}",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", listMessageTemplateDetailsRequest); + HttpResponseMessage response = DoHttpRequestSync("GET",request); + return JsonUtils.DeSerialize(response); + } + + public ListMessageTemplatesResponse ListMessageTemplates(ListMessageTemplatesRequest listMessageTemplatesRequest) + { + Dictionary urlParam = new Dictionary(); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/notifications/message_template",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", listMessageTemplatesRequest); + HttpResponseMessage response = DoHttpRequestSync("GET",request); + return JsonUtils.DeSerialize(response); + } + + public ListProjectTagsResponse ListProjectTags(ListProjectTagsRequest listProjectTagsRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("resource_type" , listProjectTagsRequest.ResourceType.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/{resource_type}/tags",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", listProjectTagsRequest); + HttpResponseMessage response = DoHttpRequestSync("GET",request); + return JsonUtils.DeSerialize(response); + } + + public ListResourceInstancesResponse ListResourceInstances(ListResourceInstancesRequest listResourceInstancesRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("resource_type" , listResourceInstancesRequest.ResourceType.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/{resource_type}/resource_instances/action",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", listResourceInstancesRequest); + HttpResponseMessage response = DoHttpRequestSync("POST",request); + return JsonUtils.DeSerialize(response); + } + + public ListResourceTagsResponse ListResourceTags(ListResourceTagsRequest listResourceTagsRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("resource_type" , listResourceTagsRequest.ResourceType.ToString()); + urlParam.Add("resource_id" , listResourceTagsRequest.ResourceId.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/{resource_type}/{resource_id}/tags",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", listResourceTagsRequest); + HttpResponseMessage response = DoHttpRequestSync("GET",request); + return JsonUtils.DeSerialize(response); + } + + public ListSubscriptionsResponse ListSubscriptions(ListSubscriptionsRequest listSubscriptionsRequest) + { + Dictionary urlParam = new Dictionary(); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/notifications/subscriptions",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", listSubscriptionsRequest); + HttpResponseMessage response = DoHttpRequestSync("GET",request); + return JsonUtils.DeSerialize(response); + } + + public ListSubscriptionsByTopicResponse ListSubscriptionsByTopic(ListSubscriptionsByTopicRequest listSubscriptionsByTopicRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("topic_urn" , listSubscriptionsByTopicRequest.TopicUrn.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/notifications/topics/{topic_urn}/subscriptions",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", listSubscriptionsByTopicRequest); + HttpResponseMessage response = DoHttpRequestSync("GET",request); + return JsonUtils.DeSerialize(response); + } + + public ListTopicAttributesResponse ListTopicAttributes(ListTopicAttributesRequest listTopicAttributesRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("topic_urn" , listTopicAttributesRequest.TopicUrn.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/notifications/topics/{topic_urn}/attributes",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", listTopicAttributesRequest); + HttpResponseMessage response = DoHttpRequestSync("GET",request); + return JsonUtils.DeSerialize(response); + } + + public ListTopicDetailsResponse ListTopicDetails(ListTopicDetailsRequest listTopicDetailsRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("topic_urn" , listTopicDetailsRequest.TopicUrn.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/notifications/topics/{topic_urn}",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", listTopicDetailsRequest); + HttpResponseMessage response = DoHttpRequestSync("GET",request); + return JsonUtils.DeSerialize(response); + } + + public ListTopicsResponse ListTopics(ListTopicsRequest listTopicsRequest) + { + Dictionary urlParam = new Dictionary(); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/notifications/topics",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", listTopicsRequest); + HttpResponseMessage response = DoHttpRequestSync("GET",request); + return JsonUtils.DeSerialize(response); + } + + public ListVersionResponse ListVersion(ListVersionRequest listVersionRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("api_version" , listVersionRequest.ApiVersion.ToString()); + string urlPath = HttpUtils.AddUrlPath("/{api_version}",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", listVersionRequest); + HttpResponseMessage response = DoHttpRequestSync("GET",request); + return JsonUtils.DeSerialize(response); + } + + public ListVersionsResponse ListVersions(ListVersionsRequest listVersionsRequest) + { + Dictionary urlParam = new Dictionary(); + string urlPath = HttpUtils.AddUrlPath("/",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", listVersionsRequest); + HttpResponseMessage response = DoHttpRequestSync("GET",request); + return JsonUtils.DeSerialize(response); + } + + public PublishMessageResponse PublishMessage(PublishMessageRequest publishMessageRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("topic_urn" , publishMessageRequest.TopicUrn.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/notifications/topics/{topic_urn}/publish",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", publishMessageRequest); + HttpResponseMessage response = DoHttpRequestSync("POST",request); + return JsonUtils.DeSerialize(response); + } + + public UpdateMessageTemplateResponse UpdateMessageTemplate(UpdateMessageTemplateRequest updateMessageTemplateRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("message_template_id" , updateMessageTemplateRequest.MessageTemplateId.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/notifications/message_template/{message_template_id}",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", updateMessageTemplateRequest); + HttpResponseMessage response = DoHttpRequestSync("PUT",request); + return JsonUtils.DeSerialize(response); + } + + public UpdateTopicResponse UpdateTopic(UpdateTopicRequest updateTopicRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("topic_urn" , updateTopicRequest.TopicUrn.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/notifications/topics/{topic_urn}",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", updateTopicRequest); + HttpResponseMessage response = DoHttpRequestSync("PUT",request); + return JsonUtils.DeSerialize(response); + } + + public UpdateTopicAttributeResponse UpdateTopicAttribute(UpdateTopicAttributeRequest updateTopicAttributeRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("topic_urn" , updateTopicAttributeRequest.TopicUrn.ToString()); + urlParam.Add("name" , updateTopicAttributeRequest.Name.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/notifications/topics/{topic_urn}/attributes/{name}",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", updateTopicAttributeRequest); + HttpResponseMessage response = DoHttpRequestSync("PUT",request); + return JsonUtils.DeSerialize(response); + } + + public CreateApplicationResponse CreateApplication(CreateApplicationRequest createApplicationRequest) + { + Dictionary urlParam = new Dictionary(); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/notifications/applications",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", createApplicationRequest); + HttpResponseMessage response = DoHttpRequestSync("POST",request); + return JsonUtils.DeSerialize(response); + } + + public DeleteApplicationResponse DeleteApplication(DeleteApplicationRequest deleteApplicationRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("application_urn" , deleteApplicationRequest.ApplicationUrn.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/notifications/applications/{application_urn}",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", deleteApplicationRequest); + HttpResponseMessage response = DoHttpRequestSync("DELETE",request); + return JsonUtils.DeSerialize(response); + } + + public ListApplicationAttributesResponse ListApplicationAttributes(ListApplicationAttributesRequest listApplicationAttributesRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("application_urn" , listApplicationAttributesRequest.ApplicationUrn.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/notifications/applications/{application_urn}",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", listApplicationAttributesRequest); + HttpResponseMessage response = DoHttpRequestSync("GET",request); + return JsonUtils.DeSerialize(response); + } + + public ListApplicationsResponse ListApplications(ListApplicationsRequest listApplicationsRequest) + { + Dictionary urlParam = new Dictionary(); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/notifications/applications",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", listApplicationsRequest); + HttpResponseMessage response = DoHttpRequestSync("GET",request); + return JsonUtils.DeSerialize(response); + } + + public PublishAppMessageResponse PublishAppMessage(PublishAppMessageRequest publishAppMessageRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("endpoint_urn" , publishAppMessageRequest.EndpointUrn.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/notifications/endpoints/{endpoint_urn}/publish",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", publishAppMessageRequest); + HttpResponseMessage response = DoHttpRequestSync("POST",request); + return JsonUtils.DeSerialize(response); + } + + public UpdateApplicationResponse UpdateApplication(UpdateApplicationRequest updateApplicationRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("application_urn" , updateApplicationRequest.ApplicationUrn.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/notifications/applications/{application_urn}",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", updateApplicationRequest); + HttpResponseMessage response = DoHttpRequestSync("PUT",request); + return JsonUtils.DeSerialize(response); + } + + public CreateApplicationEndpointResponse CreateApplicationEndpoint(CreateApplicationEndpointRequest createApplicationEndpointRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("application_urn" , createApplicationEndpointRequest.ApplicationUrn.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/notifications/applications/{application_urn}/endpoints",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", createApplicationEndpointRequest); + HttpResponseMessage response = DoHttpRequestSync("POST",request); + return JsonUtils.DeSerialize(response); + } + + public DeleteApplicationEndpointResponse DeleteApplicationEndpoint(DeleteApplicationEndpointRequest deleteApplicationEndpointRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("endpoint_urn" , deleteApplicationEndpointRequest.EndpointUrn.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/notifications/endpoints/{endpoint_urn}",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", deleteApplicationEndpointRequest); + HttpResponseMessage response = DoHttpRequestSync("DELETE",request); + return JsonUtils.DeSerialize(response); + } + + public ListApplicationEndpointAttributesResponse ListApplicationEndpointAttributes(ListApplicationEndpointAttributesRequest listApplicationEndpointAttributesRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("endpoint_urn" , listApplicationEndpointAttributesRequest.EndpointUrn.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/notifications/endpoints/{endpoint_urn}",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", listApplicationEndpointAttributesRequest); + HttpResponseMessage response = DoHttpRequestSync("GET",request); + return JsonUtils.DeSerialize(response); + } + + public ListApplicationEndpointsResponse ListApplicationEndpoints(ListApplicationEndpointsRequest listApplicationEndpointsRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("application_urn" , listApplicationEndpointsRequest.ApplicationUrn.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/notifications/applications/{application_urn}/endpoints",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json", listApplicationEndpointsRequest); + HttpResponseMessage response = DoHttpRequestSync("GET",request); + return JsonUtils.DeSerialize(response); + } + + public UpdateApplicationEndpointResponse UpdateApplicationEndpoint(UpdateApplicationEndpointRequest updateApplicationEndpointRequest) + { + Dictionary urlParam = new Dictionary(); + urlParam.Add("endpoint_urn" , updateApplicationEndpointRequest.EndpointUrn.ToString()); + string urlPath = HttpUtils.AddUrlPath("/v2/{project_id}/notifications/endpoints/{endpoint_urn}",urlParam); + SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", updateApplicationEndpointRequest); + HttpResponseMessage response = DoHttpRequestSync("PUT",request); + return JsonUtils.DeSerialize(response); + } + + } +} \ No newline at end of file diff --git a/Services/Vpc/V2/Model/AcceptVpcPeeringRequest.cs b/Services/Vpc/V2/Model/AcceptVpcPeeringRequest.cs index ef41941..aaa76a0 100755 --- a/Services/Vpc/V2/Model/AcceptVpcPeeringRequest.cs +++ b/Services/Vpc/V2/Model/AcceptVpcPeeringRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/AcceptVpcPeeringResponse.cs b/Services/Vpc/V2/Model/AcceptVpcPeeringResponse.cs index dcfb60f..47cf710 100755 --- a/Services/Vpc/V2/Model/AcceptVpcPeeringResponse.cs +++ b/Services/Vpc/V2/Model/AcceptVpcPeeringResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { @@ -52,11 +53,16 @@ public class StatusEnum { "ACTIVE", ACTIVE }, }; - private string Value; + private string _value; + + public StatusEnum() + { + + } public StatusEnum(string value) { - Value = value; + _value = value; } public static StatusEnum FromValue(string value) @@ -75,17 +81,17 @@ public static StatusEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -114,7 +120,7 @@ public bool Equals(StatusEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(StatusEnum a, StatusEnum b) diff --git a/Services/Vpc/V2/Model/AllowedAddressPair.cs b/Services/Vpc/V2/Model/AllowedAddressPair.cs index 5c08e84..9989aa9 100755 --- a/Services/Vpc/V2/Model/AllowedAddressPair.cs +++ b/Services/Vpc/V2/Model/AllowedAddressPair.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/AsscoiateReq.cs b/Services/Vpc/V2/Model/AsscoiateReq.cs index 2f54883..35a1d00 100755 --- a/Services/Vpc/V2/Model/AsscoiateReq.cs +++ b/Services/Vpc/V2/Model/AsscoiateReq.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/AssociateRouteTableAndSubnetReq.cs b/Services/Vpc/V2/Model/AssociateRouteTableAndSubnetReq.cs index 1c7d98a..882b1f1 100755 --- a/Services/Vpc/V2/Model/AssociateRouteTableAndSubnetReq.cs +++ b/Services/Vpc/V2/Model/AssociateRouteTableAndSubnetReq.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/AssociateRouteTableRequest.cs b/Services/Vpc/V2/Model/AssociateRouteTableRequest.cs index a86036a..0f52b26 100755 --- a/Services/Vpc/V2/Model/AssociateRouteTableRequest.cs +++ b/Services/Vpc/V2/Model/AssociateRouteTableRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/AssociateRouteTableResponse.cs b/Services/Vpc/V2/Model/AssociateRouteTableResponse.cs index 9adfc45..e17d0b1 100755 --- a/Services/Vpc/V2/Model/AssociateRouteTableResponse.cs +++ b/Services/Vpc/V2/Model/AssociateRouteTableResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/BatchCreateSubnetTagsRequest.cs b/Services/Vpc/V2/Model/BatchCreateSubnetTagsRequest.cs index 250cf97..248bba4 100755 --- a/Services/Vpc/V2/Model/BatchCreateSubnetTagsRequest.cs +++ b/Services/Vpc/V2/Model/BatchCreateSubnetTagsRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/BatchCreateSubnetTagsRequestBody.cs b/Services/Vpc/V2/Model/BatchCreateSubnetTagsRequestBody.cs index ecc3637..6059c10 100755 --- a/Services/Vpc/V2/Model/BatchCreateSubnetTagsRequestBody.cs +++ b/Services/Vpc/V2/Model/BatchCreateSubnetTagsRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { @@ -28,11 +29,16 @@ public class ActionEnum { "create", CREATE }, }; - private string Value; + private string _value; + + public ActionEnum() + { + + } public ActionEnum(string value) { - Value = value; + _value = value; } public static ActionEnum FromValue(string value) @@ -51,17 +57,17 @@ public static ActionEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -90,7 +96,7 @@ public bool Equals(ActionEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(ActionEnum a, ActionEnum b) diff --git a/Services/Vpc/V2/Model/BatchCreateSubnetTagsResponse.cs b/Services/Vpc/V2/Model/BatchCreateSubnetTagsResponse.cs index dc7b22e..3674ad0 100755 --- a/Services/Vpc/V2/Model/BatchCreateSubnetTagsResponse.cs +++ b/Services/Vpc/V2/Model/BatchCreateSubnetTagsResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/BatchCreateVpcTagsRequest.cs b/Services/Vpc/V2/Model/BatchCreateVpcTagsRequest.cs index f7b49c6..7d14c40 100755 --- a/Services/Vpc/V2/Model/BatchCreateVpcTagsRequest.cs +++ b/Services/Vpc/V2/Model/BatchCreateVpcTagsRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/BatchCreateVpcTagsRequestBody.cs b/Services/Vpc/V2/Model/BatchCreateVpcTagsRequestBody.cs index 0234caf..3e0c691 100755 --- a/Services/Vpc/V2/Model/BatchCreateVpcTagsRequestBody.cs +++ b/Services/Vpc/V2/Model/BatchCreateVpcTagsRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { @@ -28,11 +29,16 @@ public class ActionEnum { "create", CREATE }, }; - private string Value; + private string _value; + + public ActionEnum() + { + + } public ActionEnum(string value) { - Value = value; + _value = value; } public static ActionEnum FromValue(string value) @@ -51,17 +57,17 @@ public static ActionEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -90,7 +96,7 @@ public bool Equals(ActionEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(ActionEnum a, ActionEnum b) diff --git a/Services/Vpc/V2/Model/BatchCreateVpcTagsResponse.cs b/Services/Vpc/V2/Model/BatchCreateVpcTagsResponse.cs index 86c360f..8c1a5c1 100755 --- a/Services/Vpc/V2/Model/BatchCreateVpcTagsResponse.cs +++ b/Services/Vpc/V2/Model/BatchCreateVpcTagsResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/BatchDeleteSubnetTagsRequest.cs b/Services/Vpc/V2/Model/BatchDeleteSubnetTagsRequest.cs index 1073f0a..1607fdf 100755 --- a/Services/Vpc/V2/Model/BatchDeleteSubnetTagsRequest.cs +++ b/Services/Vpc/V2/Model/BatchDeleteSubnetTagsRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/BatchDeleteSubnetTagsRequestBody.cs b/Services/Vpc/V2/Model/BatchDeleteSubnetTagsRequestBody.cs index b989aff..3ea2a12 100755 --- a/Services/Vpc/V2/Model/BatchDeleteSubnetTagsRequestBody.cs +++ b/Services/Vpc/V2/Model/BatchDeleteSubnetTagsRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { @@ -28,11 +29,16 @@ public class ActionEnum { "delete", DELETE }, }; - private string Value; + private string _value; + + public ActionEnum() + { + + } public ActionEnum(string value) { - Value = value; + _value = value; } public static ActionEnum FromValue(string value) @@ -51,17 +57,17 @@ public static ActionEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -90,7 +96,7 @@ public bool Equals(ActionEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(ActionEnum a, ActionEnum b) diff --git a/Services/Vpc/V2/Model/BatchDeleteSubnetTagsResponse.cs b/Services/Vpc/V2/Model/BatchDeleteSubnetTagsResponse.cs index 3edf209..584114f 100755 --- a/Services/Vpc/V2/Model/BatchDeleteSubnetTagsResponse.cs +++ b/Services/Vpc/V2/Model/BatchDeleteSubnetTagsResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/BatchDeleteVpcTagsRequest.cs b/Services/Vpc/V2/Model/BatchDeleteVpcTagsRequest.cs index a9f97dc..9c80044 100755 --- a/Services/Vpc/V2/Model/BatchDeleteVpcTagsRequest.cs +++ b/Services/Vpc/V2/Model/BatchDeleteVpcTagsRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/BatchDeleteVpcTagsRequestBody.cs b/Services/Vpc/V2/Model/BatchDeleteVpcTagsRequestBody.cs index 89e3a46..8bbcffe 100755 --- a/Services/Vpc/V2/Model/BatchDeleteVpcTagsRequestBody.cs +++ b/Services/Vpc/V2/Model/BatchDeleteVpcTagsRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { @@ -28,11 +29,16 @@ public class ActionEnum { "delete", DELETE }, }; - private string Value; + private string _value; + + public ActionEnum() + { + + } public ActionEnum(string value) { - Value = value; + _value = value; } public static ActionEnum FromValue(string value) @@ -51,17 +57,17 @@ public static ActionEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -90,7 +96,7 @@ public bool Equals(ActionEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(ActionEnum a, ActionEnum b) diff --git a/Services/Vpc/V2/Model/BatchDeleteVpcTagsResponse.cs b/Services/Vpc/V2/Model/BatchDeleteVpcTagsResponse.cs index b10208c..b7661c6 100755 --- a/Services/Vpc/V2/Model/BatchDeleteVpcTagsResponse.cs +++ b/Services/Vpc/V2/Model/BatchDeleteVpcTagsResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/BindingVifDetails.cs b/Services/Vpc/V2/Model/BindingVifDetails.cs index 3d8624c..dac96e3 100755 --- a/Services/Vpc/V2/Model/BindingVifDetails.cs +++ b/Services/Vpc/V2/Model/BindingVifDetails.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/CreatePortOption.cs b/Services/Vpc/V2/Model/CreatePortOption.cs index c1c1246..70fd465 100755 --- a/Services/Vpc/V2/Model/CreatePortOption.cs +++ b/Services/Vpc/V2/Model/CreatePortOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/CreatePortRequest.cs b/Services/Vpc/V2/Model/CreatePortRequest.cs index 67e350a..41b07eb 100755 --- a/Services/Vpc/V2/Model/CreatePortRequest.cs +++ b/Services/Vpc/V2/Model/CreatePortRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/CreatePortRequestBody.cs b/Services/Vpc/V2/Model/CreatePortRequestBody.cs index 3fce762..d71a2d1 100755 --- a/Services/Vpc/V2/Model/CreatePortRequestBody.cs +++ b/Services/Vpc/V2/Model/CreatePortRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/CreatePortResponse.cs b/Services/Vpc/V2/Model/CreatePortResponse.cs index 39987eb..cf4441d 100755 --- a/Services/Vpc/V2/Model/CreatePortResponse.cs +++ b/Services/Vpc/V2/Model/CreatePortResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/CreatePrivateipOption.cs b/Services/Vpc/V2/Model/CreatePrivateipOption.cs index 3f81ff6..9484cbf 100755 --- a/Services/Vpc/V2/Model/CreatePrivateipOption.cs +++ b/Services/Vpc/V2/Model/CreatePrivateipOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/CreatePrivateipRequest.cs b/Services/Vpc/V2/Model/CreatePrivateipRequest.cs index 95091b5..4d7ec63 100755 --- a/Services/Vpc/V2/Model/CreatePrivateipRequest.cs +++ b/Services/Vpc/V2/Model/CreatePrivateipRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/CreatePrivateipRequestBody.cs b/Services/Vpc/V2/Model/CreatePrivateipRequestBody.cs index 2dee54f..27a3cfb 100755 --- a/Services/Vpc/V2/Model/CreatePrivateipRequestBody.cs +++ b/Services/Vpc/V2/Model/CreatePrivateipRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/CreatePrivateipResponse.cs b/Services/Vpc/V2/Model/CreatePrivateipResponse.cs index df8ebb1..486edfe 100755 --- a/Services/Vpc/V2/Model/CreatePrivateipResponse.cs +++ b/Services/Vpc/V2/Model/CreatePrivateipResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/CreateRouteTableReq.cs b/Services/Vpc/V2/Model/CreateRouteTableReq.cs index be6d821..da9738d 100755 --- a/Services/Vpc/V2/Model/CreateRouteTableReq.cs +++ b/Services/Vpc/V2/Model/CreateRouteTableReq.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/CreateRouteTableRequest.cs b/Services/Vpc/V2/Model/CreateRouteTableRequest.cs index c232196..7c9f9bb 100755 --- a/Services/Vpc/V2/Model/CreateRouteTableRequest.cs +++ b/Services/Vpc/V2/Model/CreateRouteTableRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/CreateRouteTableResponse.cs b/Services/Vpc/V2/Model/CreateRouteTableResponse.cs index 64d38bc..7f3fdfd 100755 --- a/Services/Vpc/V2/Model/CreateRouteTableResponse.cs +++ b/Services/Vpc/V2/Model/CreateRouteTableResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/CreateRoutetableReqBody.cs b/Services/Vpc/V2/Model/CreateRoutetableReqBody.cs index eb68f90..78eee7a 100755 --- a/Services/Vpc/V2/Model/CreateRoutetableReqBody.cs +++ b/Services/Vpc/V2/Model/CreateRoutetableReqBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/CreateSecurityGroupOption.cs b/Services/Vpc/V2/Model/CreateSecurityGroupOption.cs index 0c45a50..cec624d 100755 --- a/Services/Vpc/V2/Model/CreateSecurityGroupOption.cs +++ b/Services/Vpc/V2/Model/CreateSecurityGroupOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/CreateSecurityGroupRequest.cs b/Services/Vpc/V2/Model/CreateSecurityGroupRequest.cs index aa107f4..f966012 100755 --- a/Services/Vpc/V2/Model/CreateSecurityGroupRequest.cs +++ b/Services/Vpc/V2/Model/CreateSecurityGroupRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/CreateSecurityGroupRequestBody.cs b/Services/Vpc/V2/Model/CreateSecurityGroupRequestBody.cs index 2150ec2..b9378ef 100755 --- a/Services/Vpc/V2/Model/CreateSecurityGroupRequestBody.cs +++ b/Services/Vpc/V2/Model/CreateSecurityGroupRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/CreateSecurityGroupResponse.cs b/Services/Vpc/V2/Model/CreateSecurityGroupResponse.cs index 98423d4..a0ee9ba 100755 --- a/Services/Vpc/V2/Model/CreateSecurityGroupResponse.cs +++ b/Services/Vpc/V2/Model/CreateSecurityGroupResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/CreateSecurityGroupRuleOption.cs b/Services/Vpc/V2/Model/CreateSecurityGroupRuleOption.cs index 7781beb..0054a29 100755 --- a/Services/Vpc/V2/Model/CreateSecurityGroupRuleOption.cs +++ b/Services/Vpc/V2/Model/CreateSecurityGroupRuleOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/CreateSecurityGroupRuleRequest.cs b/Services/Vpc/V2/Model/CreateSecurityGroupRuleRequest.cs index d995294..f1c4e0c 100755 --- a/Services/Vpc/V2/Model/CreateSecurityGroupRuleRequest.cs +++ b/Services/Vpc/V2/Model/CreateSecurityGroupRuleRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/CreateSecurityGroupRuleRequestBody.cs b/Services/Vpc/V2/Model/CreateSecurityGroupRuleRequestBody.cs index 7a14d4a..6aed7dc 100755 --- a/Services/Vpc/V2/Model/CreateSecurityGroupRuleRequestBody.cs +++ b/Services/Vpc/V2/Model/CreateSecurityGroupRuleRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/CreateSecurityGroupRuleResponse.cs b/Services/Vpc/V2/Model/CreateSecurityGroupRuleResponse.cs index 471d7d5..cd1e7a3 100755 --- a/Services/Vpc/V2/Model/CreateSecurityGroupRuleResponse.cs +++ b/Services/Vpc/V2/Model/CreateSecurityGroupRuleResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/CreateSubnetOption.cs b/Services/Vpc/V2/Model/CreateSubnetOption.cs index 6e7509d..295f4c0 100755 --- a/Services/Vpc/V2/Model/CreateSubnetOption.cs +++ b/Services/Vpc/V2/Model/CreateSubnetOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/CreateSubnetRequest.cs b/Services/Vpc/V2/Model/CreateSubnetRequest.cs index 65e2066..613c154 100755 --- a/Services/Vpc/V2/Model/CreateSubnetRequest.cs +++ b/Services/Vpc/V2/Model/CreateSubnetRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/CreateSubnetRequestBody.cs b/Services/Vpc/V2/Model/CreateSubnetRequestBody.cs index 3d5f396..8cb3c45 100755 --- a/Services/Vpc/V2/Model/CreateSubnetRequestBody.cs +++ b/Services/Vpc/V2/Model/CreateSubnetRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/CreateSubnetResponse.cs b/Services/Vpc/V2/Model/CreateSubnetResponse.cs index d1058b5..d932f8f 100755 --- a/Services/Vpc/V2/Model/CreateSubnetResponse.cs +++ b/Services/Vpc/V2/Model/CreateSubnetResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/CreateSubnetTagRequest.cs b/Services/Vpc/V2/Model/CreateSubnetTagRequest.cs index 2c2bbfe..4ee7711 100755 --- a/Services/Vpc/V2/Model/CreateSubnetTagRequest.cs +++ b/Services/Vpc/V2/Model/CreateSubnetTagRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/CreateSubnetTagRequestBody.cs b/Services/Vpc/V2/Model/CreateSubnetTagRequestBody.cs index e634458..4192b42 100755 --- a/Services/Vpc/V2/Model/CreateSubnetTagRequestBody.cs +++ b/Services/Vpc/V2/Model/CreateSubnetTagRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/CreateSubnetTagResponse.cs b/Services/Vpc/V2/Model/CreateSubnetTagResponse.cs index faf078b..3ab7dd2 100755 --- a/Services/Vpc/V2/Model/CreateSubnetTagResponse.cs +++ b/Services/Vpc/V2/Model/CreateSubnetTagResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/CreateVpcOption.cs b/Services/Vpc/V2/Model/CreateVpcOption.cs index 5e5b98e..b1e2500 100755 --- a/Services/Vpc/V2/Model/CreateVpcOption.cs +++ b/Services/Vpc/V2/Model/CreateVpcOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/CreateVpcPeeringOption.cs b/Services/Vpc/V2/Model/CreateVpcPeeringOption.cs index d6d3898..907b11d 100755 --- a/Services/Vpc/V2/Model/CreateVpcPeeringOption.cs +++ b/Services/Vpc/V2/Model/CreateVpcPeeringOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/CreateVpcPeeringRequest.cs b/Services/Vpc/V2/Model/CreateVpcPeeringRequest.cs index f34d618..6b29768 100755 --- a/Services/Vpc/V2/Model/CreateVpcPeeringRequest.cs +++ b/Services/Vpc/V2/Model/CreateVpcPeeringRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/CreateVpcPeeringRequestBody.cs b/Services/Vpc/V2/Model/CreateVpcPeeringRequestBody.cs index 570a8db..93ec825 100755 --- a/Services/Vpc/V2/Model/CreateVpcPeeringRequestBody.cs +++ b/Services/Vpc/V2/Model/CreateVpcPeeringRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/CreateVpcPeeringResponse.cs b/Services/Vpc/V2/Model/CreateVpcPeeringResponse.cs index f08956c..54b608b 100755 --- a/Services/Vpc/V2/Model/CreateVpcPeeringResponse.cs +++ b/Services/Vpc/V2/Model/CreateVpcPeeringResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/CreateVpcRequest.cs b/Services/Vpc/V2/Model/CreateVpcRequest.cs index 306be0c..b4b21a2 100755 --- a/Services/Vpc/V2/Model/CreateVpcRequest.cs +++ b/Services/Vpc/V2/Model/CreateVpcRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/CreateVpcRequestBody.cs b/Services/Vpc/V2/Model/CreateVpcRequestBody.cs index 7f01c8f..4db524d 100755 --- a/Services/Vpc/V2/Model/CreateVpcRequestBody.cs +++ b/Services/Vpc/V2/Model/CreateVpcRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/CreateVpcResourceTagRequest.cs b/Services/Vpc/V2/Model/CreateVpcResourceTagRequest.cs index 851c089..cdcbf11 100755 --- a/Services/Vpc/V2/Model/CreateVpcResourceTagRequest.cs +++ b/Services/Vpc/V2/Model/CreateVpcResourceTagRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/CreateVpcResourceTagRequestBody.cs b/Services/Vpc/V2/Model/CreateVpcResourceTagRequestBody.cs index f758a6a..8974ecb 100755 --- a/Services/Vpc/V2/Model/CreateVpcResourceTagRequestBody.cs +++ b/Services/Vpc/V2/Model/CreateVpcResourceTagRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/CreateVpcResourceTagResponse.cs b/Services/Vpc/V2/Model/CreateVpcResourceTagResponse.cs index 3e01691..69f81e6 100755 --- a/Services/Vpc/V2/Model/CreateVpcResourceTagResponse.cs +++ b/Services/Vpc/V2/Model/CreateVpcResourceTagResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/CreateVpcResponse.cs b/Services/Vpc/V2/Model/CreateVpcResponse.cs index aefa434..6eb73cc 100755 --- a/Services/Vpc/V2/Model/CreateVpcResponse.cs +++ b/Services/Vpc/V2/Model/CreateVpcResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/CreateVpcRouteOption.cs b/Services/Vpc/V2/Model/CreateVpcRouteOption.cs index e2fad7d..aa4912f 100755 --- a/Services/Vpc/V2/Model/CreateVpcRouteOption.cs +++ b/Services/Vpc/V2/Model/CreateVpcRouteOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { @@ -28,11 +29,16 @@ public class TypeEnum { "peering", PEERING }, }; - private string Value; + private string _value; + + public TypeEnum() + { + + } public TypeEnum(string value) { - Value = value; + _value = value; } public static TypeEnum FromValue(string value) @@ -51,17 +57,17 @@ public static TypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -90,7 +96,7 @@ public bool Equals(TypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(TypeEnum a, TypeEnum b) diff --git a/Services/Vpc/V2/Model/CreateVpcRouteRequest.cs b/Services/Vpc/V2/Model/CreateVpcRouteRequest.cs index 269de3f..b9b4273 100755 --- a/Services/Vpc/V2/Model/CreateVpcRouteRequest.cs +++ b/Services/Vpc/V2/Model/CreateVpcRouteRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/CreateVpcRouteRequestBody.cs b/Services/Vpc/V2/Model/CreateVpcRouteRequestBody.cs index 393236a..d839674 100755 --- a/Services/Vpc/V2/Model/CreateVpcRouteRequestBody.cs +++ b/Services/Vpc/V2/Model/CreateVpcRouteRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/CreateVpcRouteResponse.cs b/Services/Vpc/V2/Model/CreateVpcRouteResponse.cs index f7d3140..3de321e 100755 --- a/Services/Vpc/V2/Model/CreateVpcRouteResponse.cs +++ b/Services/Vpc/V2/Model/CreateVpcRouteResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/DeletePortRequest.cs b/Services/Vpc/V2/Model/DeletePortRequest.cs index b1b9da9..5383c9c 100755 --- a/Services/Vpc/V2/Model/DeletePortRequest.cs +++ b/Services/Vpc/V2/Model/DeletePortRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/DeletePortResponse.cs b/Services/Vpc/V2/Model/DeletePortResponse.cs index 8b2c1d8..48c2b5f 100755 --- a/Services/Vpc/V2/Model/DeletePortResponse.cs +++ b/Services/Vpc/V2/Model/DeletePortResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/DeletePrivateipRequest.cs b/Services/Vpc/V2/Model/DeletePrivateipRequest.cs index fe7aa0d..280422f 100755 --- a/Services/Vpc/V2/Model/DeletePrivateipRequest.cs +++ b/Services/Vpc/V2/Model/DeletePrivateipRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/DeletePrivateipResponse.cs b/Services/Vpc/V2/Model/DeletePrivateipResponse.cs index 3ab1ef2..8e96a21 100755 --- a/Services/Vpc/V2/Model/DeletePrivateipResponse.cs +++ b/Services/Vpc/V2/Model/DeletePrivateipResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/DeleteRouteTableRequest.cs b/Services/Vpc/V2/Model/DeleteRouteTableRequest.cs index a474d1d..fc9bc31 100755 --- a/Services/Vpc/V2/Model/DeleteRouteTableRequest.cs +++ b/Services/Vpc/V2/Model/DeleteRouteTableRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/DeleteRouteTableResponse.cs b/Services/Vpc/V2/Model/DeleteRouteTableResponse.cs index 137b560..f7a4f00 100755 --- a/Services/Vpc/V2/Model/DeleteRouteTableResponse.cs +++ b/Services/Vpc/V2/Model/DeleteRouteTableResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/DeleteSecurityGroupRequest.cs b/Services/Vpc/V2/Model/DeleteSecurityGroupRequest.cs index a986816..b9edda6 100755 --- a/Services/Vpc/V2/Model/DeleteSecurityGroupRequest.cs +++ b/Services/Vpc/V2/Model/DeleteSecurityGroupRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/DeleteSecurityGroupResponse.cs b/Services/Vpc/V2/Model/DeleteSecurityGroupResponse.cs index a874612..9c44413 100755 --- a/Services/Vpc/V2/Model/DeleteSecurityGroupResponse.cs +++ b/Services/Vpc/V2/Model/DeleteSecurityGroupResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/DeleteSecurityGroupRuleRequest.cs b/Services/Vpc/V2/Model/DeleteSecurityGroupRuleRequest.cs index 7b90518..a3700b0 100755 --- a/Services/Vpc/V2/Model/DeleteSecurityGroupRuleRequest.cs +++ b/Services/Vpc/V2/Model/DeleteSecurityGroupRuleRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/DeleteSecurityGroupRuleResponse.cs b/Services/Vpc/V2/Model/DeleteSecurityGroupRuleResponse.cs index 97b82ae..88a9c0d 100755 --- a/Services/Vpc/V2/Model/DeleteSecurityGroupRuleResponse.cs +++ b/Services/Vpc/V2/Model/DeleteSecurityGroupRuleResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/DeleteSubnetRequest.cs b/Services/Vpc/V2/Model/DeleteSubnetRequest.cs index 4e647ef..15cead4 100755 --- a/Services/Vpc/V2/Model/DeleteSubnetRequest.cs +++ b/Services/Vpc/V2/Model/DeleteSubnetRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/DeleteSubnetResponse.cs b/Services/Vpc/V2/Model/DeleteSubnetResponse.cs index ea4008d..0b986a6 100755 --- a/Services/Vpc/V2/Model/DeleteSubnetResponse.cs +++ b/Services/Vpc/V2/Model/DeleteSubnetResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/DeleteSubnetTagRequest.cs b/Services/Vpc/V2/Model/DeleteSubnetTagRequest.cs index a0ff04c..0ba9e1e 100755 --- a/Services/Vpc/V2/Model/DeleteSubnetTagRequest.cs +++ b/Services/Vpc/V2/Model/DeleteSubnetTagRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/DeleteSubnetTagResponse.cs b/Services/Vpc/V2/Model/DeleteSubnetTagResponse.cs index 139903e..242b747 100755 --- a/Services/Vpc/V2/Model/DeleteSubnetTagResponse.cs +++ b/Services/Vpc/V2/Model/DeleteSubnetTagResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/DeleteVpcPeeringRequest.cs b/Services/Vpc/V2/Model/DeleteVpcPeeringRequest.cs index c57cc1b..cf94a6c 100755 --- a/Services/Vpc/V2/Model/DeleteVpcPeeringRequest.cs +++ b/Services/Vpc/V2/Model/DeleteVpcPeeringRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/DeleteVpcPeeringResponse.cs b/Services/Vpc/V2/Model/DeleteVpcPeeringResponse.cs index f6f0222..4f27ab1 100755 --- a/Services/Vpc/V2/Model/DeleteVpcPeeringResponse.cs +++ b/Services/Vpc/V2/Model/DeleteVpcPeeringResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/DeleteVpcRequest.cs b/Services/Vpc/V2/Model/DeleteVpcRequest.cs index 30f2d3f..17f0931 100755 --- a/Services/Vpc/V2/Model/DeleteVpcRequest.cs +++ b/Services/Vpc/V2/Model/DeleteVpcRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/DeleteVpcResponse.cs b/Services/Vpc/V2/Model/DeleteVpcResponse.cs index 38d1905..f832806 100755 --- a/Services/Vpc/V2/Model/DeleteVpcResponse.cs +++ b/Services/Vpc/V2/Model/DeleteVpcResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/DeleteVpcRouteRequest.cs b/Services/Vpc/V2/Model/DeleteVpcRouteRequest.cs index 93a9376..15b9671 100755 --- a/Services/Vpc/V2/Model/DeleteVpcRouteRequest.cs +++ b/Services/Vpc/V2/Model/DeleteVpcRouteRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/DeleteVpcRouteResponse.cs b/Services/Vpc/V2/Model/DeleteVpcRouteResponse.cs index 09af045..0250e92 100755 --- a/Services/Vpc/V2/Model/DeleteVpcRouteResponse.cs +++ b/Services/Vpc/V2/Model/DeleteVpcRouteResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/DeleteVpcTagRequest.cs b/Services/Vpc/V2/Model/DeleteVpcTagRequest.cs index 4974a71..38b1c27 100755 --- a/Services/Vpc/V2/Model/DeleteVpcTagRequest.cs +++ b/Services/Vpc/V2/Model/DeleteVpcTagRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/DeleteVpcTagResponse.cs b/Services/Vpc/V2/Model/DeleteVpcTagResponse.cs index 8b19d7c..52b97e0 100755 --- a/Services/Vpc/V2/Model/DeleteVpcTagResponse.cs +++ b/Services/Vpc/V2/Model/DeleteVpcTagResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/DisassociateRouteTableRequest.cs b/Services/Vpc/V2/Model/DisassociateRouteTableRequest.cs index a247525..a3c944a 100755 --- a/Services/Vpc/V2/Model/DisassociateRouteTableRequest.cs +++ b/Services/Vpc/V2/Model/DisassociateRouteTableRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/DisassociateRouteTableResponse.cs b/Services/Vpc/V2/Model/DisassociateRouteTableResponse.cs index c326391..64466ee 100755 --- a/Services/Vpc/V2/Model/DisassociateRouteTableResponse.cs +++ b/Services/Vpc/V2/Model/DisassociateRouteTableResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/DnsAssignMent.cs b/Services/Vpc/V2/Model/DnsAssignMent.cs index 9a2740c..885b08f 100755 --- a/Services/Vpc/V2/Model/DnsAssignMent.cs +++ b/Services/Vpc/V2/Model/DnsAssignMent.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/ExtraDhcpOpt.cs b/Services/Vpc/V2/Model/ExtraDhcpOpt.cs index f09aa2f..ffb5c31 100755 --- a/Services/Vpc/V2/Model/ExtraDhcpOpt.cs +++ b/Services/Vpc/V2/Model/ExtraDhcpOpt.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/ExtraDhcpOption.cs b/Services/Vpc/V2/Model/ExtraDhcpOption.cs index cbafb52..0eeea97 100755 --- a/Services/Vpc/V2/Model/ExtraDhcpOption.cs +++ b/Services/Vpc/V2/Model/ExtraDhcpOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { @@ -28,11 +29,16 @@ public class OptNameEnum { "ntp", NTP }, }; - private string Value; + private string _value; + + public OptNameEnum() + { + + } public OptNameEnum(string value) { - Value = value; + _value = value; } public static OptNameEnum FromValue(string value) @@ -51,17 +57,17 @@ public static OptNameEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -90,7 +96,7 @@ public bool Equals(OptNameEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(OptNameEnum a, OptNameEnum b) diff --git a/Services/Vpc/V2/Model/FixedIp.cs b/Services/Vpc/V2/Model/FixedIp.cs index 6f4b2b4..18480d1 100755 --- a/Services/Vpc/V2/Model/FixedIp.cs +++ b/Services/Vpc/V2/Model/FixedIp.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/ListPortsRequest.cs b/Services/Vpc/V2/Model/ListPortsRequest.cs index 2f24bec..9c921b7 100755 --- a/Services/Vpc/V2/Model/ListPortsRequest.cs +++ b/Services/Vpc/V2/Model/ListPortsRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { @@ -46,11 +47,16 @@ public class DeviceOwnerEnum { "network:router_centralized_snat", NETWORK_ROUTER_CENTRALIZED_SNAT }, }; - private string Value; + private string _value; + + public DeviceOwnerEnum() + { + + } public DeviceOwnerEnum(string value) { - Value = value; + _value = value; } public static DeviceOwnerEnum FromValue(string value) @@ -69,17 +75,17 @@ public static DeviceOwnerEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -108,7 +114,7 @@ public bool Equals(DeviceOwnerEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(DeviceOwnerEnum a, DeviceOwnerEnum b) @@ -158,11 +164,16 @@ public class StatusEnum { "DOWN", DOWN }, }; - private string Value; + private string _value; + + public StatusEnum() + { + + } public StatusEnum(string value) { - Value = value; + _value = value; } public static StatusEnum FromValue(string value) @@ -181,17 +192,17 @@ public static StatusEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -220,7 +231,7 @@ public bool Equals(StatusEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(StatusEnum a, StatusEnum b) diff --git a/Services/Vpc/V2/Model/ListPortsResponse.cs b/Services/Vpc/V2/Model/ListPortsResponse.cs index b7d9195..7d3b878 100755 --- a/Services/Vpc/V2/Model/ListPortsResponse.cs +++ b/Services/Vpc/V2/Model/ListPortsResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/ListPrivateipsRequest.cs b/Services/Vpc/V2/Model/ListPrivateipsRequest.cs index 7f676b9..df464ab 100755 --- a/Services/Vpc/V2/Model/ListPrivateipsRequest.cs +++ b/Services/Vpc/V2/Model/ListPrivateipsRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/ListPrivateipsResponse.cs b/Services/Vpc/V2/Model/ListPrivateipsResponse.cs index ed0e5aa..6d12500 100755 --- a/Services/Vpc/V2/Model/ListPrivateipsResponse.cs +++ b/Services/Vpc/V2/Model/ListPrivateipsResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/ListResourceResp.cs b/Services/Vpc/V2/Model/ListResourceResp.cs index fb40a25..69df545 100755 --- a/Services/Vpc/V2/Model/ListResourceResp.cs +++ b/Services/Vpc/V2/Model/ListResourceResp.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/ListRouteTablesRequest.cs b/Services/Vpc/V2/Model/ListRouteTablesRequest.cs index 602a1e5..4397ecc 100755 --- a/Services/Vpc/V2/Model/ListRouteTablesRequest.cs +++ b/Services/Vpc/V2/Model/ListRouteTablesRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/ListRouteTablesResponse.cs b/Services/Vpc/V2/Model/ListRouteTablesResponse.cs index 3b27689..dbda20f 100755 --- a/Services/Vpc/V2/Model/ListRouteTablesResponse.cs +++ b/Services/Vpc/V2/Model/ListRouteTablesResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/ListSecurityGroupRulesRequest.cs b/Services/Vpc/V2/Model/ListSecurityGroupRulesRequest.cs index d7dd817..f90b667 100755 --- a/Services/Vpc/V2/Model/ListSecurityGroupRulesRequest.cs +++ b/Services/Vpc/V2/Model/ListSecurityGroupRulesRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/ListSecurityGroupRulesResponse.cs b/Services/Vpc/V2/Model/ListSecurityGroupRulesResponse.cs index 5316f90..357657b 100755 --- a/Services/Vpc/V2/Model/ListSecurityGroupRulesResponse.cs +++ b/Services/Vpc/V2/Model/ListSecurityGroupRulesResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/ListSecurityGroupsRequest.cs b/Services/Vpc/V2/Model/ListSecurityGroupsRequest.cs index 17195fd..e094694 100755 --- a/Services/Vpc/V2/Model/ListSecurityGroupsRequest.cs +++ b/Services/Vpc/V2/Model/ListSecurityGroupsRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/ListSecurityGroupsResponse.cs b/Services/Vpc/V2/Model/ListSecurityGroupsResponse.cs index cb9329d..f05a5c6 100755 --- a/Services/Vpc/V2/Model/ListSecurityGroupsResponse.cs +++ b/Services/Vpc/V2/Model/ListSecurityGroupsResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/ListSubnetTagsRequest.cs b/Services/Vpc/V2/Model/ListSubnetTagsRequest.cs index 6e3123e..0c6b7aa 100755 --- a/Services/Vpc/V2/Model/ListSubnetTagsRequest.cs +++ b/Services/Vpc/V2/Model/ListSubnetTagsRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/ListSubnetTagsResponse.cs b/Services/Vpc/V2/Model/ListSubnetTagsResponse.cs index 91db855..b6a4a2e 100755 --- a/Services/Vpc/V2/Model/ListSubnetTagsResponse.cs +++ b/Services/Vpc/V2/Model/ListSubnetTagsResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/ListSubnetsByTagsRequest.cs b/Services/Vpc/V2/Model/ListSubnetsByTagsRequest.cs index 7963a5e..5a15aa3 100755 --- a/Services/Vpc/V2/Model/ListSubnetsByTagsRequest.cs +++ b/Services/Vpc/V2/Model/ListSubnetsByTagsRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/ListSubnetsByTagsRequestBody.cs b/Services/Vpc/V2/Model/ListSubnetsByTagsRequestBody.cs index 6d7123b..d605d53 100755 --- a/Services/Vpc/V2/Model/ListSubnetsByTagsRequestBody.cs +++ b/Services/Vpc/V2/Model/ListSubnetsByTagsRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { @@ -34,11 +35,16 @@ public class ActionEnum { "count", COUNT }, }; - private string Value; + private string _value; + + public ActionEnum() + { + + } public ActionEnum(string value) { - Value = value; + _value = value; } public static ActionEnum FromValue(string value) @@ -57,17 +63,17 @@ public static ActionEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -96,7 +102,7 @@ public bool Equals(ActionEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(ActionEnum a, ActionEnum b) diff --git a/Services/Vpc/V2/Model/ListSubnetsByTagsResponse.cs b/Services/Vpc/V2/Model/ListSubnetsByTagsResponse.cs index 9d62b71..f7c376c 100755 --- a/Services/Vpc/V2/Model/ListSubnetsByTagsResponse.cs +++ b/Services/Vpc/V2/Model/ListSubnetsByTagsResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/ListSubnetsRequest.cs b/Services/Vpc/V2/Model/ListSubnetsRequest.cs index e34f8ce..1a6219d 100755 --- a/Services/Vpc/V2/Model/ListSubnetsRequest.cs +++ b/Services/Vpc/V2/Model/ListSubnetsRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/ListSubnetsResponse.cs b/Services/Vpc/V2/Model/ListSubnetsResponse.cs index 0867cc8..20ec31f 100755 --- a/Services/Vpc/V2/Model/ListSubnetsResponse.cs +++ b/Services/Vpc/V2/Model/ListSubnetsResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/ListTag.cs b/Services/Vpc/V2/Model/ListTag.cs index beed8b0..0fdf1c8 100755 --- a/Services/Vpc/V2/Model/ListTag.cs +++ b/Services/Vpc/V2/Model/ListTag.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/ListVpcPeeringsRequest.cs b/Services/Vpc/V2/Model/ListVpcPeeringsRequest.cs index 5aa7591..fb3e0a3 100755 --- a/Services/Vpc/V2/Model/ListVpcPeeringsRequest.cs +++ b/Services/Vpc/V2/Model/ListVpcPeeringsRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { @@ -52,11 +53,16 @@ public class StatusEnum { "ACTIVE", ACTIVE }, }; - private string Value; + private string _value; + + public StatusEnum() + { + + } public StatusEnum(string value) { - Value = value; + _value = value; } public static StatusEnum FromValue(string value) @@ -75,17 +81,17 @@ public static StatusEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -114,7 +120,7 @@ public bool Equals(StatusEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(StatusEnum a, StatusEnum b) diff --git a/Services/Vpc/V2/Model/ListVpcPeeringsResponse.cs b/Services/Vpc/V2/Model/ListVpcPeeringsResponse.cs index 270511d..bb7859a 100755 --- a/Services/Vpc/V2/Model/ListVpcPeeringsResponse.cs +++ b/Services/Vpc/V2/Model/ListVpcPeeringsResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/ListVpcRoutesRequest.cs b/Services/Vpc/V2/Model/ListVpcRoutesRequest.cs index 7484a9e..b6f335a 100755 --- a/Services/Vpc/V2/Model/ListVpcRoutesRequest.cs +++ b/Services/Vpc/V2/Model/ListVpcRoutesRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { @@ -28,11 +29,16 @@ public class TypeEnum { "peering", PEERING }, }; - private string Value; + private string _value; + + public TypeEnum() + { + + } public TypeEnum(string value) { - Value = value; + _value = value; } public static TypeEnum FromValue(string value) @@ -51,17 +57,17 @@ public static TypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -90,7 +96,7 @@ public bool Equals(TypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(TypeEnum a, TypeEnum b) diff --git a/Services/Vpc/V2/Model/ListVpcRoutesResponse.cs b/Services/Vpc/V2/Model/ListVpcRoutesResponse.cs index 25f4d67..bb63e20 100755 --- a/Services/Vpc/V2/Model/ListVpcRoutesResponse.cs +++ b/Services/Vpc/V2/Model/ListVpcRoutesResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/ListVpcTagsRequest.cs b/Services/Vpc/V2/Model/ListVpcTagsRequest.cs index d4afb41..e0badad 100755 --- a/Services/Vpc/V2/Model/ListVpcTagsRequest.cs +++ b/Services/Vpc/V2/Model/ListVpcTagsRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/ListVpcTagsResponse.cs b/Services/Vpc/V2/Model/ListVpcTagsResponse.cs index 9ea723e..e8111e1 100755 --- a/Services/Vpc/V2/Model/ListVpcTagsResponse.cs +++ b/Services/Vpc/V2/Model/ListVpcTagsResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/ListVpcsByTagsRequest.cs b/Services/Vpc/V2/Model/ListVpcsByTagsRequest.cs index c8d13fa..c522037 100755 --- a/Services/Vpc/V2/Model/ListVpcsByTagsRequest.cs +++ b/Services/Vpc/V2/Model/ListVpcsByTagsRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/ListVpcsByTagsRequestBody.cs b/Services/Vpc/V2/Model/ListVpcsByTagsRequestBody.cs index d10b4af..6c865fb 100755 --- a/Services/Vpc/V2/Model/ListVpcsByTagsRequestBody.cs +++ b/Services/Vpc/V2/Model/ListVpcsByTagsRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { @@ -34,11 +35,16 @@ public class ActionEnum { "count", COUNT }, }; - private string Value; + private string _value; + + public ActionEnum() + { + + } public ActionEnum(string value) { - Value = value; + _value = value; } public static ActionEnum FromValue(string value) @@ -57,17 +63,17 @@ public static ActionEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -96,7 +102,7 @@ public bool Equals(ActionEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(ActionEnum a, ActionEnum b) diff --git a/Services/Vpc/V2/Model/ListVpcsByTagsResponse.cs b/Services/Vpc/V2/Model/ListVpcsByTagsResponse.cs index 819d3e2..36f613c 100755 --- a/Services/Vpc/V2/Model/ListVpcsByTagsResponse.cs +++ b/Services/Vpc/V2/Model/ListVpcsByTagsResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/ListVpcsRequest.cs b/Services/Vpc/V2/Model/ListVpcsRequest.cs index ec56ca6..3d08818 100755 --- a/Services/Vpc/V2/Model/ListVpcsRequest.cs +++ b/Services/Vpc/V2/Model/ListVpcsRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/ListVpcsResponse.cs b/Services/Vpc/V2/Model/ListVpcsResponse.cs index 74e85b5..b905ba9 100755 --- a/Services/Vpc/V2/Model/ListVpcsResponse.cs +++ b/Services/Vpc/V2/Model/ListVpcsResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/Match.cs b/Services/Vpc/V2/Model/Match.cs index c6ec535..e629e86 100755 --- a/Services/Vpc/V2/Model/Match.cs +++ b/Services/Vpc/V2/Model/Match.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NetworkIpAvailability.cs b/Services/Vpc/V2/Model/NetworkIpAvailability.cs index 6ac8120..bc5f128 100755 --- a/Services/Vpc/V2/Model/NetworkIpAvailability.cs +++ b/Services/Vpc/V2/Model/NetworkIpAvailability.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronAddFirewallRuleRequest.cs b/Services/Vpc/V2/Model/NeutronAddFirewallRuleRequest.cs index 47f6ecd..12f18f4 100755 --- a/Services/Vpc/V2/Model/NeutronAddFirewallRuleRequest.cs +++ b/Services/Vpc/V2/Model/NeutronAddFirewallRuleRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronAddFirewallRuleResponse.cs b/Services/Vpc/V2/Model/NeutronAddFirewallRuleResponse.cs index b3f87e8..c1e87df 100755 --- a/Services/Vpc/V2/Model/NeutronAddFirewallRuleResponse.cs +++ b/Services/Vpc/V2/Model/NeutronAddFirewallRuleResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronCreateFirewallGroupOption.cs b/Services/Vpc/V2/Model/NeutronCreateFirewallGroupOption.cs index 6752f95..29ca4a6 100755 --- a/Services/Vpc/V2/Model/NeutronCreateFirewallGroupOption.cs +++ b/Services/Vpc/V2/Model/NeutronCreateFirewallGroupOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronCreateFirewallGroupRequest.cs b/Services/Vpc/V2/Model/NeutronCreateFirewallGroupRequest.cs index 8c75588..c8dd4b4 100755 --- a/Services/Vpc/V2/Model/NeutronCreateFirewallGroupRequest.cs +++ b/Services/Vpc/V2/Model/NeutronCreateFirewallGroupRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronCreateFirewallGroupRequestBody.cs b/Services/Vpc/V2/Model/NeutronCreateFirewallGroupRequestBody.cs index e6be888..272e24b 100755 --- a/Services/Vpc/V2/Model/NeutronCreateFirewallGroupRequestBody.cs +++ b/Services/Vpc/V2/Model/NeutronCreateFirewallGroupRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronCreateFirewallGroupResponse.cs b/Services/Vpc/V2/Model/NeutronCreateFirewallGroupResponse.cs index 840618b..4ee6efa 100755 --- a/Services/Vpc/V2/Model/NeutronCreateFirewallGroupResponse.cs +++ b/Services/Vpc/V2/Model/NeutronCreateFirewallGroupResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronCreateFirewallPolicyOption.cs b/Services/Vpc/V2/Model/NeutronCreateFirewallPolicyOption.cs index b438765..8d38997 100755 --- a/Services/Vpc/V2/Model/NeutronCreateFirewallPolicyOption.cs +++ b/Services/Vpc/V2/Model/NeutronCreateFirewallPolicyOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronCreateFirewallPolicyRequest.cs b/Services/Vpc/V2/Model/NeutronCreateFirewallPolicyRequest.cs index 723157c..fe3d86e 100755 --- a/Services/Vpc/V2/Model/NeutronCreateFirewallPolicyRequest.cs +++ b/Services/Vpc/V2/Model/NeutronCreateFirewallPolicyRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronCreateFirewallPolicyRequestBody.cs b/Services/Vpc/V2/Model/NeutronCreateFirewallPolicyRequestBody.cs index 2eea0ea..647be04 100755 --- a/Services/Vpc/V2/Model/NeutronCreateFirewallPolicyRequestBody.cs +++ b/Services/Vpc/V2/Model/NeutronCreateFirewallPolicyRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronCreateFirewallPolicyResponse.cs b/Services/Vpc/V2/Model/NeutronCreateFirewallPolicyResponse.cs index 7256757..380c5f2 100755 --- a/Services/Vpc/V2/Model/NeutronCreateFirewallPolicyResponse.cs +++ b/Services/Vpc/V2/Model/NeutronCreateFirewallPolicyResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronCreateFirewallRuleOption.cs b/Services/Vpc/V2/Model/NeutronCreateFirewallRuleOption.cs index 5b57cb8..37b8759 100755 --- a/Services/Vpc/V2/Model/NeutronCreateFirewallRuleOption.cs +++ b/Services/Vpc/V2/Model/NeutronCreateFirewallRuleOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { @@ -34,11 +35,16 @@ public class ActionEnum { "ALLOW", ALLOW }, }; - private string Value; + private string _value; + + public ActionEnum() + { + + } public ActionEnum(string value) { - Value = value; + _value = value; } public static ActionEnum FromValue(string value) @@ -57,17 +63,17 @@ public static ActionEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -96,7 +102,7 @@ public bool Equals(ActionEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(ActionEnum a, ActionEnum b) diff --git a/Services/Vpc/V2/Model/NeutronCreateFirewallRuleRequest.cs b/Services/Vpc/V2/Model/NeutronCreateFirewallRuleRequest.cs index 1283841..c1523c5 100755 --- a/Services/Vpc/V2/Model/NeutronCreateFirewallRuleRequest.cs +++ b/Services/Vpc/V2/Model/NeutronCreateFirewallRuleRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronCreateFirewallRuleRequestBody.cs b/Services/Vpc/V2/Model/NeutronCreateFirewallRuleRequestBody.cs index c727031..48439fa 100755 --- a/Services/Vpc/V2/Model/NeutronCreateFirewallRuleRequestBody.cs +++ b/Services/Vpc/V2/Model/NeutronCreateFirewallRuleRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronCreateFirewallRuleResponse.cs b/Services/Vpc/V2/Model/NeutronCreateFirewallRuleResponse.cs index eab1a27..ba8c8fd 100755 --- a/Services/Vpc/V2/Model/NeutronCreateFirewallRuleResponse.cs +++ b/Services/Vpc/V2/Model/NeutronCreateFirewallRuleResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronCreateSecurityGroupOption.cs b/Services/Vpc/V2/Model/NeutronCreateSecurityGroupOption.cs index adedf5b..5e8af59 100755 --- a/Services/Vpc/V2/Model/NeutronCreateSecurityGroupOption.cs +++ b/Services/Vpc/V2/Model/NeutronCreateSecurityGroupOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronCreateSecurityGroupRequest.cs b/Services/Vpc/V2/Model/NeutronCreateSecurityGroupRequest.cs index f597459..b5e7ad0 100755 --- a/Services/Vpc/V2/Model/NeutronCreateSecurityGroupRequest.cs +++ b/Services/Vpc/V2/Model/NeutronCreateSecurityGroupRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronCreateSecurityGroupRequestBody.cs b/Services/Vpc/V2/Model/NeutronCreateSecurityGroupRequestBody.cs index 84c033f..75dbe39 100755 --- a/Services/Vpc/V2/Model/NeutronCreateSecurityGroupRequestBody.cs +++ b/Services/Vpc/V2/Model/NeutronCreateSecurityGroupRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronCreateSecurityGroupResponse.cs b/Services/Vpc/V2/Model/NeutronCreateSecurityGroupResponse.cs index 15da12a..6ef4149 100755 --- a/Services/Vpc/V2/Model/NeutronCreateSecurityGroupResponse.cs +++ b/Services/Vpc/V2/Model/NeutronCreateSecurityGroupResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronCreateSecurityGroupRuleOption.cs b/Services/Vpc/V2/Model/NeutronCreateSecurityGroupRuleOption.cs index 69bc11f..2e1e03c 100755 --- a/Services/Vpc/V2/Model/NeutronCreateSecurityGroupRuleOption.cs +++ b/Services/Vpc/V2/Model/NeutronCreateSecurityGroupRuleOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { @@ -34,11 +35,16 @@ public class DirectionEnum { "egress", EGRESS }, }; - private string Value; + private string _value; + + public DirectionEnum() + { + + } public DirectionEnum(string value) { - Value = value; + _value = value; } public static DirectionEnum FromValue(string value) @@ -57,17 +63,17 @@ public static DirectionEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -96,7 +102,7 @@ public bool Equals(DirectionEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(DirectionEnum a, DirectionEnum b) @@ -140,11 +146,16 @@ public class EthertypeEnum { "IPv6", IPV6 }, }; - private string Value; + private string _value; + + public EthertypeEnum() + { + + } public EthertypeEnum(string value) { - Value = value; + _value = value; } public static EthertypeEnum FromValue(string value) @@ -163,17 +174,17 @@ public static EthertypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -202,7 +213,7 @@ public bool Equals(EthertypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(EthertypeEnum a, EthertypeEnum b) diff --git a/Services/Vpc/V2/Model/NeutronCreateSecurityGroupRuleRequest.cs b/Services/Vpc/V2/Model/NeutronCreateSecurityGroupRuleRequest.cs index 1fec1ca..f09fea7 100755 --- a/Services/Vpc/V2/Model/NeutronCreateSecurityGroupRuleRequest.cs +++ b/Services/Vpc/V2/Model/NeutronCreateSecurityGroupRuleRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronCreateSecurityGroupRuleRequestBody.cs b/Services/Vpc/V2/Model/NeutronCreateSecurityGroupRuleRequestBody.cs index 44baf28..2481c45 100755 --- a/Services/Vpc/V2/Model/NeutronCreateSecurityGroupRuleRequestBody.cs +++ b/Services/Vpc/V2/Model/NeutronCreateSecurityGroupRuleRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronCreateSecurityGroupRuleResponse.cs b/Services/Vpc/V2/Model/NeutronCreateSecurityGroupRuleResponse.cs index 378a722..4280c1b 100755 --- a/Services/Vpc/V2/Model/NeutronCreateSecurityGroupRuleResponse.cs +++ b/Services/Vpc/V2/Model/NeutronCreateSecurityGroupRuleResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronDeleteFirewallGroupRequest.cs b/Services/Vpc/V2/Model/NeutronDeleteFirewallGroupRequest.cs index 1705cc3..2c5cc09 100755 --- a/Services/Vpc/V2/Model/NeutronDeleteFirewallGroupRequest.cs +++ b/Services/Vpc/V2/Model/NeutronDeleteFirewallGroupRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronDeleteFirewallGroupResponse.cs b/Services/Vpc/V2/Model/NeutronDeleteFirewallGroupResponse.cs index 35b4a05..7fb1372 100755 --- a/Services/Vpc/V2/Model/NeutronDeleteFirewallGroupResponse.cs +++ b/Services/Vpc/V2/Model/NeutronDeleteFirewallGroupResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronDeleteFirewallPolicyRequest.cs b/Services/Vpc/V2/Model/NeutronDeleteFirewallPolicyRequest.cs index 0b5da65..a03b4fd 100755 --- a/Services/Vpc/V2/Model/NeutronDeleteFirewallPolicyRequest.cs +++ b/Services/Vpc/V2/Model/NeutronDeleteFirewallPolicyRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronDeleteFirewallPolicyResponse.cs b/Services/Vpc/V2/Model/NeutronDeleteFirewallPolicyResponse.cs index 1612b92..7787cfa 100755 --- a/Services/Vpc/V2/Model/NeutronDeleteFirewallPolicyResponse.cs +++ b/Services/Vpc/V2/Model/NeutronDeleteFirewallPolicyResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronDeleteFirewallRuleRequest.cs b/Services/Vpc/V2/Model/NeutronDeleteFirewallRuleRequest.cs index a614970..92e3bc7 100755 --- a/Services/Vpc/V2/Model/NeutronDeleteFirewallRuleRequest.cs +++ b/Services/Vpc/V2/Model/NeutronDeleteFirewallRuleRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronDeleteFirewallRuleResponse.cs b/Services/Vpc/V2/Model/NeutronDeleteFirewallRuleResponse.cs index 10b9be8..69e0f5d 100755 --- a/Services/Vpc/V2/Model/NeutronDeleteFirewallRuleResponse.cs +++ b/Services/Vpc/V2/Model/NeutronDeleteFirewallRuleResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronDeleteSecurityGroupRequest.cs b/Services/Vpc/V2/Model/NeutronDeleteSecurityGroupRequest.cs index 96dff56..ef1a1ed 100755 --- a/Services/Vpc/V2/Model/NeutronDeleteSecurityGroupRequest.cs +++ b/Services/Vpc/V2/Model/NeutronDeleteSecurityGroupRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronDeleteSecurityGroupResponse.cs b/Services/Vpc/V2/Model/NeutronDeleteSecurityGroupResponse.cs index cf5eab2..f68fff1 100755 --- a/Services/Vpc/V2/Model/NeutronDeleteSecurityGroupResponse.cs +++ b/Services/Vpc/V2/Model/NeutronDeleteSecurityGroupResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronDeleteSecurityGroupRuleRequest.cs b/Services/Vpc/V2/Model/NeutronDeleteSecurityGroupRuleRequest.cs index e1579e5..e6a57ef 100755 --- a/Services/Vpc/V2/Model/NeutronDeleteSecurityGroupRuleRequest.cs +++ b/Services/Vpc/V2/Model/NeutronDeleteSecurityGroupRuleRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronDeleteSecurityGroupRuleResponse.cs b/Services/Vpc/V2/Model/NeutronDeleteSecurityGroupRuleResponse.cs index 9603d8c..c26c3b5 100755 --- a/Services/Vpc/V2/Model/NeutronDeleteSecurityGroupRuleResponse.cs +++ b/Services/Vpc/V2/Model/NeutronDeleteSecurityGroupRuleResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronFirewallGroup.cs b/Services/Vpc/V2/Model/NeutronFirewallGroup.cs index 0177fb5..bb2c442 100755 --- a/Services/Vpc/V2/Model/NeutronFirewallGroup.cs +++ b/Services/Vpc/V2/Model/NeutronFirewallGroup.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronFirewallPolicy.cs b/Services/Vpc/V2/Model/NeutronFirewallPolicy.cs index 95f71d4..5caafac 100755 --- a/Services/Vpc/V2/Model/NeutronFirewallPolicy.cs +++ b/Services/Vpc/V2/Model/NeutronFirewallPolicy.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronFirewallRule.cs b/Services/Vpc/V2/Model/NeutronFirewallRule.cs index ded48db..4740c14 100755 --- a/Services/Vpc/V2/Model/NeutronFirewallRule.cs +++ b/Services/Vpc/V2/Model/NeutronFirewallRule.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { @@ -34,11 +35,16 @@ public class ActionEnum { "ALLOW", ALLOW }, }; - private string Value; + private string _value; + + public ActionEnum() + { + + } public ActionEnum(string value) { - Value = value; + _value = value; } public static ActionEnum FromValue(string value) @@ -57,17 +63,17 @@ public static ActionEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -96,7 +102,7 @@ public bool Equals(ActionEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(ActionEnum a, ActionEnum b) diff --git a/Services/Vpc/V2/Model/NeutronInsertFirewallRuleRequestBody.cs b/Services/Vpc/V2/Model/NeutronInsertFirewallRuleRequestBody.cs index 3f25b24..859e52d 100755 --- a/Services/Vpc/V2/Model/NeutronInsertFirewallRuleRequestBody.cs +++ b/Services/Vpc/V2/Model/NeutronInsertFirewallRuleRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronListFirewallGroupsRequest.cs b/Services/Vpc/V2/Model/NeutronListFirewallGroupsRequest.cs index 07c4a47..d50a06d 100755 --- a/Services/Vpc/V2/Model/NeutronListFirewallGroupsRequest.cs +++ b/Services/Vpc/V2/Model/NeutronListFirewallGroupsRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronListFirewallGroupsResponse.cs b/Services/Vpc/V2/Model/NeutronListFirewallGroupsResponse.cs index 2ba3553..768f8b6 100755 --- a/Services/Vpc/V2/Model/NeutronListFirewallGroupsResponse.cs +++ b/Services/Vpc/V2/Model/NeutronListFirewallGroupsResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronListFirewallPoliciesRequest.cs b/Services/Vpc/V2/Model/NeutronListFirewallPoliciesRequest.cs index 7a69d02..b05bc2a 100755 --- a/Services/Vpc/V2/Model/NeutronListFirewallPoliciesRequest.cs +++ b/Services/Vpc/V2/Model/NeutronListFirewallPoliciesRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronListFirewallPoliciesResponse.cs b/Services/Vpc/V2/Model/NeutronListFirewallPoliciesResponse.cs index 18f2b6e..319f909 100755 --- a/Services/Vpc/V2/Model/NeutronListFirewallPoliciesResponse.cs +++ b/Services/Vpc/V2/Model/NeutronListFirewallPoliciesResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronListFirewallRulesRequest.cs b/Services/Vpc/V2/Model/NeutronListFirewallRulesRequest.cs index 4df72dc..6600292 100755 --- a/Services/Vpc/V2/Model/NeutronListFirewallRulesRequest.cs +++ b/Services/Vpc/V2/Model/NeutronListFirewallRulesRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronListFirewallRulesResponse.cs b/Services/Vpc/V2/Model/NeutronListFirewallRulesResponse.cs index 32faeb5..d6c8ae0 100755 --- a/Services/Vpc/V2/Model/NeutronListFirewallRulesResponse.cs +++ b/Services/Vpc/V2/Model/NeutronListFirewallRulesResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronListSecurityGroupRulesRequest.cs b/Services/Vpc/V2/Model/NeutronListSecurityGroupRulesRequest.cs index ba6f0fc..acacf8f 100755 --- a/Services/Vpc/V2/Model/NeutronListSecurityGroupRulesRequest.cs +++ b/Services/Vpc/V2/Model/NeutronListSecurityGroupRulesRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronListSecurityGroupRulesResponse.cs b/Services/Vpc/V2/Model/NeutronListSecurityGroupRulesResponse.cs index 7f725f2..eaee430 100755 --- a/Services/Vpc/V2/Model/NeutronListSecurityGroupRulesResponse.cs +++ b/Services/Vpc/V2/Model/NeutronListSecurityGroupRulesResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronListSecurityGroupsRequest.cs b/Services/Vpc/V2/Model/NeutronListSecurityGroupsRequest.cs index 128a942..5d380dc 100755 --- a/Services/Vpc/V2/Model/NeutronListSecurityGroupsRequest.cs +++ b/Services/Vpc/V2/Model/NeutronListSecurityGroupsRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronListSecurityGroupsResponse.cs b/Services/Vpc/V2/Model/NeutronListSecurityGroupsResponse.cs index e0cc26f..85f0b16 100755 --- a/Services/Vpc/V2/Model/NeutronListSecurityGroupsResponse.cs +++ b/Services/Vpc/V2/Model/NeutronListSecurityGroupsResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronPageLink.cs b/Services/Vpc/V2/Model/NeutronPageLink.cs index a08f0ee..1ba7bb5 100755 --- a/Services/Vpc/V2/Model/NeutronPageLink.cs +++ b/Services/Vpc/V2/Model/NeutronPageLink.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronRemoveFirewallRuleRequest.cs b/Services/Vpc/V2/Model/NeutronRemoveFirewallRuleRequest.cs index 0b87bad..5b0f412 100755 --- a/Services/Vpc/V2/Model/NeutronRemoveFirewallRuleRequest.cs +++ b/Services/Vpc/V2/Model/NeutronRemoveFirewallRuleRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronRemoveFirewallRuleRequestBody.cs b/Services/Vpc/V2/Model/NeutronRemoveFirewallRuleRequestBody.cs index 53629d2..e4c95f1 100755 --- a/Services/Vpc/V2/Model/NeutronRemoveFirewallRuleRequestBody.cs +++ b/Services/Vpc/V2/Model/NeutronRemoveFirewallRuleRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronRemoveFirewallRuleResponse.cs b/Services/Vpc/V2/Model/NeutronRemoveFirewallRuleResponse.cs index 45961a9..2082e21 100755 --- a/Services/Vpc/V2/Model/NeutronRemoveFirewallRuleResponse.cs +++ b/Services/Vpc/V2/Model/NeutronRemoveFirewallRuleResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronSecurityGroup.cs b/Services/Vpc/V2/Model/NeutronSecurityGroup.cs index 8447168..330e37b 100755 --- a/Services/Vpc/V2/Model/NeutronSecurityGroup.cs +++ b/Services/Vpc/V2/Model/NeutronSecurityGroup.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronSecurityGroupRule.cs b/Services/Vpc/V2/Model/NeutronSecurityGroupRule.cs index 618d6c4..d796e86 100755 --- a/Services/Vpc/V2/Model/NeutronSecurityGroupRule.cs +++ b/Services/Vpc/V2/Model/NeutronSecurityGroupRule.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { @@ -34,11 +35,16 @@ public class DirectionEnum { "egress", EGRESS }, }; - private string Value; + private string _value; + + public DirectionEnum() + { + + } public DirectionEnum(string value) { - Value = value; + _value = value; } public static DirectionEnum FromValue(string value) @@ -57,17 +63,17 @@ public static DirectionEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -96,7 +102,7 @@ public bool Equals(DirectionEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(DirectionEnum a, DirectionEnum b) diff --git a/Services/Vpc/V2/Model/NeutronShowFirewallGroupRequest.cs b/Services/Vpc/V2/Model/NeutronShowFirewallGroupRequest.cs index a9bdd82..351b09d 100755 --- a/Services/Vpc/V2/Model/NeutronShowFirewallGroupRequest.cs +++ b/Services/Vpc/V2/Model/NeutronShowFirewallGroupRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronShowFirewallGroupResponse.cs b/Services/Vpc/V2/Model/NeutronShowFirewallGroupResponse.cs index 223393f..140a9bd 100755 --- a/Services/Vpc/V2/Model/NeutronShowFirewallGroupResponse.cs +++ b/Services/Vpc/V2/Model/NeutronShowFirewallGroupResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronShowFirewallPolicyRequest.cs b/Services/Vpc/V2/Model/NeutronShowFirewallPolicyRequest.cs index e094b06..6ae466f 100755 --- a/Services/Vpc/V2/Model/NeutronShowFirewallPolicyRequest.cs +++ b/Services/Vpc/V2/Model/NeutronShowFirewallPolicyRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronShowFirewallPolicyResponse.cs b/Services/Vpc/V2/Model/NeutronShowFirewallPolicyResponse.cs index 2475b2f..6ac1412 100755 --- a/Services/Vpc/V2/Model/NeutronShowFirewallPolicyResponse.cs +++ b/Services/Vpc/V2/Model/NeutronShowFirewallPolicyResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronShowFirewallRuleRequest.cs b/Services/Vpc/V2/Model/NeutronShowFirewallRuleRequest.cs index ffcc5e0..495a306 100755 --- a/Services/Vpc/V2/Model/NeutronShowFirewallRuleRequest.cs +++ b/Services/Vpc/V2/Model/NeutronShowFirewallRuleRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronShowFirewallRuleResponse.cs b/Services/Vpc/V2/Model/NeutronShowFirewallRuleResponse.cs index f15b009..e620e05 100755 --- a/Services/Vpc/V2/Model/NeutronShowFirewallRuleResponse.cs +++ b/Services/Vpc/V2/Model/NeutronShowFirewallRuleResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronShowSecurityGroupRequest.cs b/Services/Vpc/V2/Model/NeutronShowSecurityGroupRequest.cs index 2090cf8..cdf2a6d 100755 --- a/Services/Vpc/V2/Model/NeutronShowSecurityGroupRequest.cs +++ b/Services/Vpc/V2/Model/NeutronShowSecurityGroupRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronShowSecurityGroupResponse.cs b/Services/Vpc/V2/Model/NeutronShowSecurityGroupResponse.cs index 5edf701..ec645a0 100755 --- a/Services/Vpc/V2/Model/NeutronShowSecurityGroupResponse.cs +++ b/Services/Vpc/V2/Model/NeutronShowSecurityGroupResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronShowSecurityGroupRuleRequest.cs b/Services/Vpc/V2/Model/NeutronShowSecurityGroupRuleRequest.cs index a4aa21b..4f4a14c 100755 --- a/Services/Vpc/V2/Model/NeutronShowSecurityGroupRuleRequest.cs +++ b/Services/Vpc/V2/Model/NeutronShowSecurityGroupRuleRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronShowSecurityGroupRuleResponse.cs b/Services/Vpc/V2/Model/NeutronShowSecurityGroupRuleResponse.cs index e313403..83e24c4 100755 --- a/Services/Vpc/V2/Model/NeutronShowSecurityGroupRuleResponse.cs +++ b/Services/Vpc/V2/Model/NeutronShowSecurityGroupRuleResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronUpdateFirewallGroupOption.cs b/Services/Vpc/V2/Model/NeutronUpdateFirewallGroupOption.cs index bd94f72..de13c6e 100755 --- a/Services/Vpc/V2/Model/NeutronUpdateFirewallGroupOption.cs +++ b/Services/Vpc/V2/Model/NeutronUpdateFirewallGroupOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronUpdateFirewallGroupRequest.cs b/Services/Vpc/V2/Model/NeutronUpdateFirewallGroupRequest.cs index 19832a4..96a8ba3 100755 --- a/Services/Vpc/V2/Model/NeutronUpdateFirewallGroupRequest.cs +++ b/Services/Vpc/V2/Model/NeutronUpdateFirewallGroupRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronUpdateFirewallGroupRequestBody.cs b/Services/Vpc/V2/Model/NeutronUpdateFirewallGroupRequestBody.cs index 16a2f2a..e24142c 100755 --- a/Services/Vpc/V2/Model/NeutronUpdateFirewallGroupRequestBody.cs +++ b/Services/Vpc/V2/Model/NeutronUpdateFirewallGroupRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronUpdateFirewallGroupResponse.cs b/Services/Vpc/V2/Model/NeutronUpdateFirewallGroupResponse.cs index 05296c0..91ba85c 100755 --- a/Services/Vpc/V2/Model/NeutronUpdateFirewallGroupResponse.cs +++ b/Services/Vpc/V2/Model/NeutronUpdateFirewallGroupResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronUpdateFirewallPolicyOption.cs b/Services/Vpc/V2/Model/NeutronUpdateFirewallPolicyOption.cs index e03707d..2b6ef6c 100755 --- a/Services/Vpc/V2/Model/NeutronUpdateFirewallPolicyOption.cs +++ b/Services/Vpc/V2/Model/NeutronUpdateFirewallPolicyOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronUpdateFirewallPolicyRequest.cs b/Services/Vpc/V2/Model/NeutronUpdateFirewallPolicyRequest.cs index a083f2c..60b5b26 100755 --- a/Services/Vpc/V2/Model/NeutronUpdateFirewallPolicyRequest.cs +++ b/Services/Vpc/V2/Model/NeutronUpdateFirewallPolicyRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronUpdateFirewallPolicyRequestBody.cs b/Services/Vpc/V2/Model/NeutronUpdateFirewallPolicyRequestBody.cs index 46d01fb..1d276f4 100755 --- a/Services/Vpc/V2/Model/NeutronUpdateFirewallPolicyRequestBody.cs +++ b/Services/Vpc/V2/Model/NeutronUpdateFirewallPolicyRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronUpdateFirewallPolicyResponse.cs b/Services/Vpc/V2/Model/NeutronUpdateFirewallPolicyResponse.cs index 1c9c615..116287b 100755 --- a/Services/Vpc/V2/Model/NeutronUpdateFirewallPolicyResponse.cs +++ b/Services/Vpc/V2/Model/NeutronUpdateFirewallPolicyResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronUpdateFirewallRuleOption.cs b/Services/Vpc/V2/Model/NeutronUpdateFirewallRuleOption.cs index d95b0fb..4e7a598 100755 --- a/Services/Vpc/V2/Model/NeutronUpdateFirewallRuleOption.cs +++ b/Services/Vpc/V2/Model/NeutronUpdateFirewallRuleOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { @@ -34,11 +35,16 @@ public class ActionEnum { "ALLOW", ALLOW }, }; - private string Value; + private string _value; + + public ActionEnum() + { + + } public ActionEnum(string value) { - Value = value; + _value = value; } public static ActionEnum FromValue(string value) @@ -57,17 +63,17 @@ public static ActionEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -96,7 +102,7 @@ public bool Equals(ActionEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(ActionEnum a, ActionEnum b) diff --git a/Services/Vpc/V2/Model/NeutronUpdateFirewallRuleRequest.cs b/Services/Vpc/V2/Model/NeutronUpdateFirewallRuleRequest.cs index fb61fa6..72b11c6 100755 --- a/Services/Vpc/V2/Model/NeutronUpdateFirewallRuleRequest.cs +++ b/Services/Vpc/V2/Model/NeutronUpdateFirewallRuleRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronUpdateFirewallRuleRequestBody.cs b/Services/Vpc/V2/Model/NeutronUpdateFirewallRuleRequestBody.cs index f9d00ce..fd1ab83 100755 --- a/Services/Vpc/V2/Model/NeutronUpdateFirewallRuleRequestBody.cs +++ b/Services/Vpc/V2/Model/NeutronUpdateFirewallRuleRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronUpdateFirewallRuleResponse.cs b/Services/Vpc/V2/Model/NeutronUpdateFirewallRuleResponse.cs index 1fd17dd..9185d95 100755 --- a/Services/Vpc/V2/Model/NeutronUpdateFirewallRuleResponse.cs +++ b/Services/Vpc/V2/Model/NeutronUpdateFirewallRuleResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronUpdateSecurityGroupOption.cs b/Services/Vpc/V2/Model/NeutronUpdateSecurityGroupOption.cs index 6a20601..0c6999d 100755 --- a/Services/Vpc/V2/Model/NeutronUpdateSecurityGroupOption.cs +++ b/Services/Vpc/V2/Model/NeutronUpdateSecurityGroupOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronUpdateSecurityGroupRequest.cs b/Services/Vpc/V2/Model/NeutronUpdateSecurityGroupRequest.cs index bc1c60b..180a5de 100755 --- a/Services/Vpc/V2/Model/NeutronUpdateSecurityGroupRequest.cs +++ b/Services/Vpc/V2/Model/NeutronUpdateSecurityGroupRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronUpdateSecurityGroupRequestBody.cs b/Services/Vpc/V2/Model/NeutronUpdateSecurityGroupRequestBody.cs index 390f89c..b553d21 100755 --- a/Services/Vpc/V2/Model/NeutronUpdateSecurityGroupRequestBody.cs +++ b/Services/Vpc/V2/Model/NeutronUpdateSecurityGroupRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/NeutronUpdateSecurityGroupResponse.cs b/Services/Vpc/V2/Model/NeutronUpdateSecurityGroupResponse.cs index eaf5ebb..1155ec9 100755 --- a/Services/Vpc/V2/Model/NeutronUpdateSecurityGroupResponse.cs +++ b/Services/Vpc/V2/Model/NeutronUpdateSecurityGroupResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/Port.cs b/Services/Vpc/V2/Model/Port.cs index 187ed4e..0678e46 100755 --- a/Services/Vpc/V2/Model/Port.cs +++ b/Services/Vpc/V2/Model/Port.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { @@ -46,11 +47,16 @@ public class DeviceOwnerEnum { "network:router_centralized_snat", NETWORK_ROUTER_CENTRALIZED_SNAT }, }; - private string Value; + private string _value; + + public DeviceOwnerEnum() + { + + } public DeviceOwnerEnum(string value) { - Value = value; + _value = value; } public static DeviceOwnerEnum FromValue(string value) @@ -69,17 +75,17 @@ public static DeviceOwnerEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -108,7 +114,7 @@ public bool Equals(DeviceOwnerEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(DeviceOwnerEnum a, DeviceOwnerEnum b) @@ -158,11 +164,16 @@ public class StatusEnum { "DOWN", DOWN }, }; - private string Value; + private string _value; + + public StatusEnum() + { + + } public StatusEnum(string value) { - Value = value; + _value = value; } public static StatusEnum FromValue(string value) @@ -181,17 +192,17 @@ public static StatusEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -220,7 +231,7 @@ public bool Equals(StatusEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(StatusEnum a, StatusEnum b) diff --git a/Services/Vpc/V2/Model/Privateip.cs b/Services/Vpc/V2/Model/Privateip.cs index 51ab89b..939fb06 100755 --- a/Services/Vpc/V2/Model/Privateip.cs +++ b/Services/Vpc/V2/Model/Privateip.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { @@ -34,11 +35,16 @@ public class StatusEnum { "DOWN", DOWN }, }; - private string Value; + private string _value; + + public StatusEnum() + { + + } public StatusEnum(string value) { - Value = value; + _value = value; } public static StatusEnum FromValue(string value) @@ -57,17 +63,17 @@ public static StatusEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -96,7 +102,7 @@ public bool Equals(StatusEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(StatusEnum a, StatusEnum b) @@ -146,11 +152,16 @@ public class DeviceOwnerEnum { "compute:xxx", COMPUTE_XXX }, }; - private string Value; + private string _value; + + public DeviceOwnerEnum() + { + + } public DeviceOwnerEnum(string value) { - Value = value; + _value = value; } public static DeviceOwnerEnum FromValue(string value) @@ -169,17 +180,17 @@ public static DeviceOwnerEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -208,7 +219,7 @@ public bool Equals(DeviceOwnerEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(DeviceOwnerEnum a, DeviceOwnerEnum b) diff --git a/Services/Vpc/V2/Model/Quota.cs b/Services/Vpc/V2/Model/Quota.cs index 1fc73a6..33da247 100755 --- a/Services/Vpc/V2/Model/Quota.cs +++ b/Services/Vpc/V2/Model/Quota.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/RejectVpcPeeringRequest.cs b/Services/Vpc/V2/Model/RejectVpcPeeringRequest.cs index 96d880f..7b2ff82 100755 --- a/Services/Vpc/V2/Model/RejectVpcPeeringRequest.cs +++ b/Services/Vpc/V2/Model/RejectVpcPeeringRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/RejectVpcPeeringResponse.cs b/Services/Vpc/V2/Model/RejectVpcPeeringResponse.cs index f1dbe1f..b30a974 100755 --- a/Services/Vpc/V2/Model/RejectVpcPeeringResponse.cs +++ b/Services/Vpc/V2/Model/RejectVpcPeeringResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { @@ -52,11 +53,16 @@ public class StatusEnum { "ACTIVE", ACTIVE }, }; - private string Value; + private string _value; + + public StatusEnum() + { + + } public StatusEnum(string value) { - Value = value; + _value = value; } public static StatusEnum FromValue(string value) @@ -75,17 +81,17 @@ public static StatusEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -114,7 +120,7 @@ public bool Equals(StatusEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(StatusEnum a, StatusEnum b) diff --git a/Services/Vpc/V2/Model/ResourceResult.cs b/Services/Vpc/V2/Model/ResourceResult.cs index 18c79e5..8ae6233 100755 --- a/Services/Vpc/V2/Model/ResourceResult.cs +++ b/Services/Vpc/V2/Model/ResourceResult.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { @@ -124,11 +125,16 @@ public class TypeEnum { "routetableContainRoutes", ROUTETABLECONTAINROUTES }, }; - private string Value; + private string _value; + + public TypeEnum() + { + + } public TypeEnum(string value) { - Value = value; + _value = value; } public static TypeEnum FromValue(string value) @@ -147,17 +153,17 @@ public static TypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -186,7 +192,7 @@ public bool Equals(TypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(TypeEnum a, TypeEnum b) diff --git a/Services/Vpc/V2/Model/ResourceTag.cs b/Services/Vpc/V2/Model/ResourceTag.cs index e4472b3..9d2d303 100755 --- a/Services/Vpc/V2/Model/ResourceTag.cs +++ b/Services/Vpc/V2/Model/ResourceTag.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/Route.cs b/Services/Vpc/V2/Model/Route.cs index 3f3b0d6..332b7f5 100755 --- a/Services/Vpc/V2/Model/Route.cs +++ b/Services/Vpc/V2/Model/Route.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/RouteTableListResp.cs b/Services/Vpc/V2/Model/RouteTableListResp.cs index 9d2bcdb..7a948b4 100755 --- a/Services/Vpc/V2/Model/RouteTableListResp.cs +++ b/Services/Vpc/V2/Model/RouteTableListResp.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/RouteTableResp.cs b/Services/Vpc/V2/Model/RouteTableResp.cs index de7457e..89aed2c 100755 --- a/Services/Vpc/V2/Model/RouteTableResp.cs +++ b/Services/Vpc/V2/Model/RouteTableResp.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/RouteTableRoute.cs b/Services/Vpc/V2/Model/RouteTableRoute.cs index 4529d4a..0750aa9 100755 --- a/Services/Vpc/V2/Model/RouteTableRoute.cs +++ b/Services/Vpc/V2/Model/RouteTableRoute.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/RoutetableAssociateReqbody.cs b/Services/Vpc/V2/Model/RoutetableAssociateReqbody.cs index d7e8871..604636f 100755 --- a/Services/Vpc/V2/Model/RoutetableAssociateReqbody.cs +++ b/Services/Vpc/V2/Model/RoutetableAssociateReqbody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/SecurityGroup.cs b/Services/Vpc/V2/Model/SecurityGroup.cs index 8890bce..63221d5 100755 --- a/Services/Vpc/V2/Model/SecurityGroup.cs +++ b/Services/Vpc/V2/Model/SecurityGroup.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/SecurityGroupRule.cs b/Services/Vpc/V2/Model/SecurityGroupRule.cs index 1f4daaf..6c554e6 100755 --- a/Services/Vpc/V2/Model/SecurityGroupRule.cs +++ b/Services/Vpc/V2/Model/SecurityGroupRule.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/ShowNetworkIpAvailabilitiesRequest.cs b/Services/Vpc/V2/Model/ShowNetworkIpAvailabilitiesRequest.cs index f178cdb..f1e2d55 100755 --- a/Services/Vpc/V2/Model/ShowNetworkIpAvailabilitiesRequest.cs +++ b/Services/Vpc/V2/Model/ShowNetworkIpAvailabilitiesRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/ShowNetworkIpAvailabilitiesResponse.cs b/Services/Vpc/V2/Model/ShowNetworkIpAvailabilitiesResponse.cs index ee3f054..dcdda1f 100755 --- a/Services/Vpc/V2/Model/ShowNetworkIpAvailabilitiesResponse.cs +++ b/Services/Vpc/V2/Model/ShowNetworkIpAvailabilitiesResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/ShowPortRequest.cs b/Services/Vpc/V2/Model/ShowPortRequest.cs index 41c24ed..d8d38f5 100755 --- a/Services/Vpc/V2/Model/ShowPortRequest.cs +++ b/Services/Vpc/V2/Model/ShowPortRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/ShowPortResponse.cs b/Services/Vpc/V2/Model/ShowPortResponse.cs index 0f800cb..b0bfcc6 100755 --- a/Services/Vpc/V2/Model/ShowPortResponse.cs +++ b/Services/Vpc/V2/Model/ShowPortResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/ShowPrivateipRequest.cs b/Services/Vpc/V2/Model/ShowPrivateipRequest.cs index 239e63d..52b4739 100755 --- a/Services/Vpc/V2/Model/ShowPrivateipRequest.cs +++ b/Services/Vpc/V2/Model/ShowPrivateipRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/ShowPrivateipResponse.cs b/Services/Vpc/V2/Model/ShowPrivateipResponse.cs index e6cf308..cf4e3fe 100755 --- a/Services/Vpc/V2/Model/ShowPrivateipResponse.cs +++ b/Services/Vpc/V2/Model/ShowPrivateipResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/ShowQuotaRequest.cs b/Services/Vpc/V2/Model/ShowQuotaRequest.cs index 2612749..76f62f0 100755 --- a/Services/Vpc/V2/Model/ShowQuotaRequest.cs +++ b/Services/Vpc/V2/Model/ShowQuotaRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { @@ -124,11 +125,16 @@ public class TypeEnum { "routetableContainRoutes", ROUTETABLECONTAINROUTES }, }; - private string Value; + private string _value; + + public TypeEnum() + { + + } public TypeEnum(string value) { - Value = value; + _value = value; } public static TypeEnum FromValue(string value) @@ -147,17 +153,17 @@ public static TypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -186,7 +192,7 @@ public bool Equals(TypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(TypeEnum a, TypeEnum b) diff --git a/Services/Vpc/V2/Model/ShowQuotaResponse.cs b/Services/Vpc/V2/Model/ShowQuotaResponse.cs index 5616d95..c47a434 100755 --- a/Services/Vpc/V2/Model/ShowQuotaResponse.cs +++ b/Services/Vpc/V2/Model/ShowQuotaResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/ShowRouteTableRequest.cs b/Services/Vpc/V2/Model/ShowRouteTableRequest.cs index 735033e..3e5a051 100755 --- a/Services/Vpc/V2/Model/ShowRouteTableRequest.cs +++ b/Services/Vpc/V2/Model/ShowRouteTableRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/ShowRouteTableResponse.cs b/Services/Vpc/V2/Model/ShowRouteTableResponse.cs index 6163065..7741cab 100755 --- a/Services/Vpc/V2/Model/ShowRouteTableResponse.cs +++ b/Services/Vpc/V2/Model/ShowRouteTableResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/ShowSecurityGroupRequest.cs b/Services/Vpc/V2/Model/ShowSecurityGroupRequest.cs index 8805c1f..c650210 100755 --- a/Services/Vpc/V2/Model/ShowSecurityGroupRequest.cs +++ b/Services/Vpc/V2/Model/ShowSecurityGroupRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/ShowSecurityGroupResponse.cs b/Services/Vpc/V2/Model/ShowSecurityGroupResponse.cs index 3adf54c..8592eac 100755 --- a/Services/Vpc/V2/Model/ShowSecurityGroupResponse.cs +++ b/Services/Vpc/V2/Model/ShowSecurityGroupResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/ShowSecurityGroupRuleRequest.cs b/Services/Vpc/V2/Model/ShowSecurityGroupRuleRequest.cs index 80971b3..d2fe47e 100755 --- a/Services/Vpc/V2/Model/ShowSecurityGroupRuleRequest.cs +++ b/Services/Vpc/V2/Model/ShowSecurityGroupRuleRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/ShowSecurityGroupRuleResponse.cs b/Services/Vpc/V2/Model/ShowSecurityGroupRuleResponse.cs index 02499ed..1c24c9d 100755 --- a/Services/Vpc/V2/Model/ShowSecurityGroupRuleResponse.cs +++ b/Services/Vpc/V2/Model/ShowSecurityGroupRuleResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/ShowSubnetRequest.cs b/Services/Vpc/V2/Model/ShowSubnetRequest.cs index b181822..6b130b2 100755 --- a/Services/Vpc/V2/Model/ShowSubnetRequest.cs +++ b/Services/Vpc/V2/Model/ShowSubnetRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/ShowSubnetResponse.cs b/Services/Vpc/V2/Model/ShowSubnetResponse.cs index 10429bf..c1276d1 100755 --- a/Services/Vpc/V2/Model/ShowSubnetResponse.cs +++ b/Services/Vpc/V2/Model/ShowSubnetResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/ShowSubnetTagsRequest.cs b/Services/Vpc/V2/Model/ShowSubnetTagsRequest.cs index 5ae04a1..e72b247 100755 --- a/Services/Vpc/V2/Model/ShowSubnetTagsRequest.cs +++ b/Services/Vpc/V2/Model/ShowSubnetTagsRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/ShowSubnetTagsResponse.cs b/Services/Vpc/V2/Model/ShowSubnetTagsResponse.cs index a26be07..47a9491 100755 --- a/Services/Vpc/V2/Model/ShowSubnetTagsResponse.cs +++ b/Services/Vpc/V2/Model/ShowSubnetTagsResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/ShowVpcPeeringRequest.cs b/Services/Vpc/V2/Model/ShowVpcPeeringRequest.cs index da1aa6e..6452e3b 100755 --- a/Services/Vpc/V2/Model/ShowVpcPeeringRequest.cs +++ b/Services/Vpc/V2/Model/ShowVpcPeeringRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/ShowVpcPeeringResponse.cs b/Services/Vpc/V2/Model/ShowVpcPeeringResponse.cs index fa08a00..df6f99b 100755 --- a/Services/Vpc/V2/Model/ShowVpcPeeringResponse.cs +++ b/Services/Vpc/V2/Model/ShowVpcPeeringResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/ShowVpcRequest.cs b/Services/Vpc/V2/Model/ShowVpcRequest.cs index 35f5b43..675ad6a 100755 --- a/Services/Vpc/V2/Model/ShowVpcRequest.cs +++ b/Services/Vpc/V2/Model/ShowVpcRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/ShowVpcResponse.cs b/Services/Vpc/V2/Model/ShowVpcResponse.cs index 7e4e9ab..0047394 100755 --- a/Services/Vpc/V2/Model/ShowVpcResponse.cs +++ b/Services/Vpc/V2/Model/ShowVpcResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/ShowVpcRouteRequest.cs b/Services/Vpc/V2/Model/ShowVpcRouteRequest.cs index b05ade2..f981b90 100755 --- a/Services/Vpc/V2/Model/ShowVpcRouteRequest.cs +++ b/Services/Vpc/V2/Model/ShowVpcRouteRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/ShowVpcRouteResponse.cs b/Services/Vpc/V2/Model/ShowVpcRouteResponse.cs index 8fd6ee6..913d4f5 100755 --- a/Services/Vpc/V2/Model/ShowVpcRouteResponse.cs +++ b/Services/Vpc/V2/Model/ShowVpcRouteResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/ShowVpcTagsRequest.cs b/Services/Vpc/V2/Model/ShowVpcTagsRequest.cs index 5548a23..e1ef9cb 100755 --- a/Services/Vpc/V2/Model/ShowVpcTagsRequest.cs +++ b/Services/Vpc/V2/Model/ShowVpcTagsRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/ShowVpcTagsResponse.cs b/Services/Vpc/V2/Model/ShowVpcTagsResponse.cs index 13225c2..5fa7b6d 100755 --- a/Services/Vpc/V2/Model/ShowVpcTagsResponse.cs +++ b/Services/Vpc/V2/Model/ShowVpcTagsResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/Subnet.cs b/Services/Vpc/V2/Model/Subnet.cs index 5ee19a7..f89f56b 100755 --- a/Services/Vpc/V2/Model/Subnet.cs +++ b/Services/Vpc/V2/Model/Subnet.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { @@ -40,11 +41,16 @@ public class StatusEnum { "ERROR", ERROR }, }; - private string Value; + private string _value; + + public StatusEnum() + { + + } public StatusEnum(string value) { - Value = value; + _value = value; } public static StatusEnum FromValue(string value) @@ -63,17 +69,17 @@ public static StatusEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -102,7 +108,7 @@ public bool Equals(StatusEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(StatusEnum a, StatusEnum b) diff --git a/Services/Vpc/V2/Model/SubnetIpAvailability.cs b/Services/Vpc/V2/Model/SubnetIpAvailability.cs index d1cf4a7..f610de4 100755 --- a/Services/Vpc/V2/Model/SubnetIpAvailability.cs +++ b/Services/Vpc/V2/Model/SubnetIpAvailability.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/SubnetList.cs b/Services/Vpc/V2/Model/SubnetList.cs index 85bc44c..f2e5558 100755 --- a/Services/Vpc/V2/Model/SubnetList.cs +++ b/Services/Vpc/V2/Model/SubnetList.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/SubnetResult.cs b/Services/Vpc/V2/Model/SubnetResult.cs index 5f653b2..0876615 100755 --- a/Services/Vpc/V2/Model/SubnetResult.cs +++ b/Services/Vpc/V2/Model/SubnetResult.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { @@ -40,11 +41,16 @@ public class StatusEnum { "ERROR", ERROR }, }; - private string Value; + private string _value; + + public StatusEnum() + { + + } public StatusEnum(string value) { - Value = value; + _value = value; } public static StatusEnum FromValue(string value) @@ -63,17 +69,17 @@ public static StatusEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -102,7 +108,7 @@ public bool Equals(StatusEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(StatusEnum a, StatusEnum b) diff --git a/Services/Vpc/V2/Model/UpdatePortOption.cs b/Services/Vpc/V2/Model/UpdatePortOption.cs index 2c2f718..09da337 100755 --- a/Services/Vpc/V2/Model/UpdatePortOption.cs +++ b/Services/Vpc/V2/Model/UpdatePortOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/UpdatePortRequest.cs b/Services/Vpc/V2/Model/UpdatePortRequest.cs index 191f993..2fa5c4b 100755 --- a/Services/Vpc/V2/Model/UpdatePortRequest.cs +++ b/Services/Vpc/V2/Model/UpdatePortRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/UpdatePortRequestBody.cs b/Services/Vpc/V2/Model/UpdatePortRequestBody.cs index 5e7345f..7ec8256 100755 --- a/Services/Vpc/V2/Model/UpdatePortRequestBody.cs +++ b/Services/Vpc/V2/Model/UpdatePortRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/UpdatePortResponse.cs b/Services/Vpc/V2/Model/UpdatePortResponse.cs index a7bd339..576549c 100755 --- a/Services/Vpc/V2/Model/UpdatePortResponse.cs +++ b/Services/Vpc/V2/Model/UpdatePortResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/UpdateRouteTableReq.cs b/Services/Vpc/V2/Model/UpdateRouteTableReq.cs index 8c6c513..b7b6def 100755 --- a/Services/Vpc/V2/Model/UpdateRouteTableReq.cs +++ b/Services/Vpc/V2/Model/UpdateRouteTableReq.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/UpdateRouteTableRequest.cs b/Services/Vpc/V2/Model/UpdateRouteTableRequest.cs index 13d16b8..b01c2e9 100755 --- a/Services/Vpc/V2/Model/UpdateRouteTableRequest.cs +++ b/Services/Vpc/V2/Model/UpdateRouteTableRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/UpdateRouteTableResponse.cs b/Services/Vpc/V2/Model/UpdateRouteTableResponse.cs index 2eea59a..168d472 100755 --- a/Services/Vpc/V2/Model/UpdateRouteTableResponse.cs +++ b/Services/Vpc/V2/Model/UpdateRouteTableResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/UpdateRoutetableReqBody.cs b/Services/Vpc/V2/Model/UpdateRoutetableReqBody.cs index 0c1562b..07ee813 100755 --- a/Services/Vpc/V2/Model/UpdateRoutetableReqBody.cs +++ b/Services/Vpc/V2/Model/UpdateRoutetableReqBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/UpdateSubnetOption.cs b/Services/Vpc/V2/Model/UpdateSubnetOption.cs index 44dea85..dc6b7b4 100755 --- a/Services/Vpc/V2/Model/UpdateSubnetOption.cs +++ b/Services/Vpc/V2/Model/UpdateSubnetOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/UpdateSubnetRequest.cs b/Services/Vpc/V2/Model/UpdateSubnetRequest.cs index 8313724..804f6b6 100755 --- a/Services/Vpc/V2/Model/UpdateSubnetRequest.cs +++ b/Services/Vpc/V2/Model/UpdateSubnetRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/UpdateSubnetRequestBody.cs b/Services/Vpc/V2/Model/UpdateSubnetRequestBody.cs index c3a20ff..47a81db 100755 --- a/Services/Vpc/V2/Model/UpdateSubnetRequestBody.cs +++ b/Services/Vpc/V2/Model/UpdateSubnetRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/UpdateSubnetResponse.cs b/Services/Vpc/V2/Model/UpdateSubnetResponse.cs index 2a0c773..d6f1f49 100755 --- a/Services/Vpc/V2/Model/UpdateSubnetResponse.cs +++ b/Services/Vpc/V2/Model/UpdateSubnetResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/UpdateVpcOption.cs b/Services/Vpc/V2/Model/UpdateVpcOption.cs index 2667a24..0620f0d 100755 --- a/Services/Vpc/V2/Model/UpdateVpcOption.cs +++ b/Services/Vpc/V2/Model/UpdateVpcOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/UpdateVpcPeeringOption.cs b/Services/Vpc/V2/Model/UpdateVpcPeeringOption.cs index ca1b4e7..b2cf30e 100755 --- a/Services/Vpc/V2/Model/UpdateVpcPeeringOption.cs +++ b/Services/Vpc/V2/Model/UpdateVpcPeeringOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/UpdateVpcPeeringRequest.cs b/Services/Vpc/V2/Model/UpdateVpcPeeringRequest.cs index 7c83cf3..20ec544 100755 --- a/Services/Vpc/V2/Model/UpdateVpcPeeringRequest.cs +++ b/Services/Vpc/V2/Model/UpdateVpcPeeringRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/UpdateVpcPeeringRequestBody.cs b/Services/Vpc/V2/Model/UpdateVpcPeeringRequestBody.cs index 0933d1f..9bd3677 100755 --- a/Services/Vpc/V2/Model/UpdateVpcPeeringRequestBody.cs +++ b/Services/Vpc/V2/Model/UpdateVpcPeeringRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/UpdateVpcPeeringResponse.cs b/Services/Vpc/V2/Model/UpdateVpcPeeringResponse.cs index 86b2936..3c77891 100755 --- a/Services/Vpc/V2/Model/UpdateVpcPeeringResponse.cs +++ b/Services/Vpc/V2/Model/UpdateVpcPeeringResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/UpdateVpcRequest.cs b/Services/Vpc/V2/Model/UpdateVpcRequest.cs index 96777d9..e81aee7 100755 --- a/Services/Vpc/V2/Model/UpdateVpcRequest.cs +++ b/Services/Vpc/V2/Model/UpdateVpcRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/UpdateVpcRequestBody.cs b/Services/Vpc/V2/Model/UpdateVpcRequestBody.cs index ea62ad4..555af00 100755 --- a/Services/Vpc/V2/Model/UpdateVpcRequestBody.cs +++ b/Services/Vpc/V2/Model/UpdateVpcRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/UpdateVpcResponse.cs b/Services/Vpc/V2/Model/UpdateVpcResponse.cs index a4b2cc4..8553690 100755 --- a/Services/Vpc/V2/Model/UpdateVpcResponse.cs +++ b/Services/Vpc/V2/Model/UpdateVpcResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/Vpc.cs b/Services/Vpc/V2/Model/Vpc.cs index 9f2721e..50f416b 100755 --- a/Services/Vpc/V2/Model/Vpc.cs +++ b/Services/Vpc/V2/Model/Vpc.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { @@ -40,11 +41,16 @@ public class StatusEnum { "ERROR", ERROR }, }; - private string Value; + private string _value; + + public StatusEnum() + { + + } public StatusEnum(string value) { - Value = value; + _value = value; } public static StatusEnum FromValue(string value) @@ -63,17 +69,17 @@ public static StatusEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -102,7 +108,7 @@ public bool Equals(StatusEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(StatusEnum a, StatusEnum b) diff --git a/Services/Vpc/V2/Model/VpcInfo.cs b/Services/Vpc/V2/Model/VpcInfo.cs index cfd7ac1..4df7c54 100755 --- a/Services/Vpc/V2/Model/VpcInfo.cs +++ b/Services/Vpc/V2/Model/VpcInfo.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { diff --git a/Services/Vpc/V2/Model/VpcPeering.cs b/Services/Vpc/V2/Model/VpcPeering.cs index a800b6f..b3e7eaa 100755 --- a/Services/Vpc/V2/Model/VpcPeering.cs +++ b/Services/Vpc/V2/Model/VpcPeering.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { @@ -52,11 +53,16 @@ public class StatusEnum { "ACTIVE", ACTIVE }, }; - private string Value; + private string _value; + + public StatusEnum() + { + + } public StatusEnum(string value) { - Value = value; + _value = value; } public static StatusEnum FromValue(string value) @@ -75,17 +81,17 @@ public static StatusEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -114,7 +120,7 @@ public bool Equals(StatusEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(StatusEnum a, StatusEnum b) diff --git a/Services/Vpc/V2/Model/VpcRoute.cs b/Services/Vpc/V2/Model/VpcRoute.cs index 851c3c1..97ece5c 100755 --- a/Services/Vpc/V2/Model/VpcRoute.cs +++ b/Services/Vpc/V2/Model/VpcRoute.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2.Model { @@ -28,11 +29,16 @@ public class TypeEnum { "peering", PEERING }, }; - private string Value; + private string _value; + + public TypeEnum() + { + + } public TypeEnum(string value) { - Value = value; + _value = value; } public static TypeEnum FromValue(string value) @@ -51,17 +57,17 @@ public static TypeEnum FromValue(string value) public string GetValue() { - return Value; + return _value; } public override string ToString() { - return $"{Value}"; + return $"{_value}"; } public override int GetHashCode() { - return this.Value.GetHashCode(); + return this._value.GetHashCode(); } public override bool Equals(object obj) @@ -90,7 +96,7 @@ public bool Equals(TypeEnum obj) { return false; } - return StringComparer.OrdinalIgnoreCase.Equals(this.Value, obj.Value); + return StringComparer.OrdinalIgnoreCase.Equals(this._value, obj.GetValue()); } public static bool operator ==(TypeEnum a, TypeEnum b) diff --git a/Services/Vpc/V2/Region/VpcRegion.cs b/Services/Vpc/V2/Region/VpcRegion.cs index d2e9828..306e3e7 100755 --- a/Services/Vpc/V2/Region/VpcRegion.cs +++ b/Services/Vpc/V2/Region/VpcRegion.cs @@ -1,6 +1,6 @@ using System; using System.Collections.Generic; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V2 { diff --git a/Services/Vpc/V2/VpcAsyncClient.cs b/Services/Vpc/V2/VpcAsyncClient.cs index 38dfe12..3e01e92 100755 --- a/Services/Vpc/V2/VpcAsyncClient.cs +++ b/Services/Vpc/V2/VpcAsyncClient.cs @@ -1,7 +1,7 @@ using System.Net.Http; using System.Collections.Generic; using System.Threading.Tasks; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; using G42Cloud.SDK.Vpc.V2.Model; namespace G42Cloud.SDK.Vpc.V2 diff --git a/Services/Vpc/V2/VpcClient.cs b/Services/Vpc/V2/VpcClient.cs index bb72d08..698397f 100755 --- a/Services/Vpc/V2/VpcClient.cs +++ b/Services/Vpc/V2/VpcClient.cs @@ -1,6 +1,6 @@ using System.Net.Http; using System.Collections.Generic; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; using G42Cloud.SDK.Vpc.V2.Model; namespace G42Cloud.SDK.Vpc.V2 diff --git a/Services/Vpc/V3/Model/AddExtendCidrOption.cs b/Services/Vpc/V3/Model/AddExtendCidrOption.cs index 06d3c61..7d742ac 100755 --- a/Services/Vpc/V3/Model/AddExtendCidrOption.cs +++ b/Services/Vpc/V3/Model/AddExtendCidrOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/AddVpcExtendCidrRequest.cs b/Services/Vpc/V3/Model/AddVpcExtendCidrRequest.cs index 04b5f3c..ca0c7cc 100755 --- a/Services/Vpc/V3/Model/AddVpcExtendCidrRequest.cs +++ b/Services/Vpc/V3/Model/AddVpcExtendCidrRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/AddVpcExtendCidrRequestBody.cs b/Services/Vpc/V3/Model/AddVpcExtendCidrRequestBody.cs index a93c6a3..ebff898 100755 --- a/Services/Vpc/V3/Model/AddVpcExtendCidrRequestBody.cs +++ b/Services/Vpc/V3/Model/AddVpcExtendCidrRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/AddVpcExtendCidrResponse.cs b/Services/Vpc/V3/Model/AddVpcExtendCidrResponse.cs index cf13f11..bd56c4d 100755 --- a/Services/Vpc/V3/Model/AddVpcExtendCidrResponse.cs +++ b/Services/Vpc/V3/Model/AddVpcExtendCidrResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/AddressGroup.cs b/Services/Vpc/V3/Model/AddressGroup.cs index d0c1f5e..0e708e8 100755 --- a/Services/Vpc/V3/Model/AddressGroup.cs +++ b/Services/Vpc/V3/Model/AddressGroup.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/BatchCreateSubNetworkInterfaceOption.cs b/Services/Vpc/V3/Model/BatchCreateSubNetworkInterfaceOption.cs index 69ff7ce..e1bebde 100755 --- a/Services/Vpc/V3/Model/BatchCreateSubNetworkInterfaceOption.cs +++ b/Services/Vpc/V3/Model/BatchCreateSubNetworkInterfaceOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/BatchCreateSubNetworkInterfaceRequest.cs b/Services/Vpc/V3/Model/BatchCreateSubNetworkInterfaceRequest.cs index 16447cb..27975b3 100755 --- a/Services/Vpc/V3/Model/BatchCreateSubNetworkInterfaceRequest.cs +++ b/Services/Vpc/V3/Model/BatchCreateSubNetworkInterfaceRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/BatchCreateSubNetworkInterfaceRequestBody.cs b/Services/Vpc/V3/Model/BatchCreateSubNetworkInterfaceRequestBody.cs index 28074c1..934af5d 100755 --- a/Services/Vpc/V3/Model/BatchCreateSubNetworkInterfaceRequestBody.cs +++ b/Services/Vpc/V3/Model/BatchCreateSubNetworkInterfaceRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/BatchCreateSubNetworkInterfaceResponse.cs b/Services/Vpc/V3/Model/BatchCreateSubNetworkInterfaceResponse.cs index 04d45b7..9c48bf8 100755 --- a/Services/Vpc/V3/Model/BatchCreateSubNetworkInterfaceResponse.cs +++ b/Services/Vpc/V3/Model/BatchCreateSubNetworkInterfaceResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/CloudResource.cs b/Services/Vpc/V3/Model/CloudResource.cs index 2fa962b..6cc2b00 100755 --- a/Services/Vpc/V3/Model/CloudResource.cs +++ b/Services/Vpc/V3/Model/CloudResource.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/CreateAddressGroupOption.cs b/Services/Vpc/V3/Model/CreateAddressGroupOption.cs index 478eff9..f12f611 100755 --- a/Services/Vpc/V3/Model/CreateAddressGroupOption.cs +++ b/Services/Vpc/V3/Model/CreateAddressGroupOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/CreateAddressGroupRequest.cs b/Services/Vpc/V3/Model/CreateAddressGroupRequest.cs index 924ac0e..2781571 100755 --- a/Services/Vpc/V3/Model/CreateAddressGroupRequest.cs +++ b/Services/Vpc/V3/Model/CreateAddressGroupRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/CreateAddressGroupRequestBody.cs b/Services/Vpc/V3/Model/CreateAddressGroupRequestBody.cs index 28eddfb..ac07564 100755 --- a/Services/Vpc/V3/Model/CreateAddressGroupRequestBody.cs +++ b/Services/Vpc/V3/Model/CreateAddressGroupRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/CreateAddressGroupResponse.cs b/Services/Vpc/V3/Model/CreateAddressGroupResponse.cs index ccfe65f..b09a32c 100755 --- a/Services/Vpc/V3/Model/CreateAddressGroupResponse.cs +++ b/Services/Vpc/V3/Model/CreateAddressGroupResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/CreateSecurityGroupOption.cs b/Services/Vpc/V3/Model/CreateSecurityGroupOption.cs index d01174c..284ff8e 100755 --- a/Services/Vpc/V3/Model/CreateSecurityGroupOption.cs +++ b/Services/Vpc/V3/Model/CreateSecurityGroupOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/CreateSecurityGroupRequest.cs b/Services/Vpc/V3/Model/CreateSecurityGroupRequest.cs index 5777cad..68940a3 100755 --- a/Services/Vpc/V3/Model/CreateSecurityGroupRequest.cs +++ b/Services/Vpc/V3/Model/CreateSecurityGroupRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/CreateSecurityGroupRequestBody.cs b/Services/Vpc/V3/Model/CreateSecurityGroupRequestBody.cs index 0cafa14..0fb7355 100755 --- a/Services/Vpc/V3/Model/CreateSecurityGroupRequestBody.cs +++ b/Services/Vpc/V3/Model/CreateSecurityGroupRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/CreateSecurityGroupResponse.cs b/Services/Vpc/V3/Model/CreateSecurityGroupResponse.cs index fd904b9..0d99af5 100755 --- a/Services/Vpc/V3/Model/CreateSecurityGroupResponse.cs +++ b/Services/Vpc/V3/Model/CreateSecurityGroupResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/CreateSecurityGroupRuleOption.cs b/Services/Vpc/V3/Model/CreateSecurityGroupRuleOption.cs index 688d45a..d6524b6 100755 --- a/Services/Vpc/V3/Model/CreateSecurityGroupRuleOption.cs +++ b/Services/Vpc/V3/Model/CreateSecurityGroupRuleOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/CreateSecurityGroupRuleRequest.cs b/Services/Vpc/V3/Model/CreateSecurityGroupRuleRequest.cs index 96b57e2..455817f 100755 --- a/Services/Vpc/V3/Model/CreateSecurityGroupRuleRequest.cs +++ b/Services/Vpc/V3/Model/CreateSecurityGroupRuleRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/CreateSecurityGroupRuleRequestBody.cs b/Services/Vpc/V3/Model/CreateSecurityGroupRuleRequestBody.cs index 7e98a70..5cab6e5 100755 --- a/Services/Vpc/V3/Model/CreateSecurityGroupRuleRequestBody.cs +++ b/Services/Vpc/V3/Model/CreateSecurityGroupRuleRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/CreateSecurityGroupRuleResponse.cs b/Services/Vpc/V3/Model/CreateSecurityGroupRuleResponse.cs index 008ad7f..d2a0728 100755 --- a/Services/Vpc/V3/Model/CreateSecurityGroupRuleResponse.cs +++ b/Services/Vpc/V3/Model/CreateSecurityGroupRuleResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/CreateSubNetworkInterfaceOption.cs b/Services/Vpc/V3/Model/CreateSubNetworkInterfaceOption.cs index c683e2b..244742c 100755 --- a/Services/Vpc/V3/Model/CreateSubNetworkInterfaceOption.cs +++ b/Services/Vpc/V3/Model/CreateSubNetworkInterfaceOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/CreateSubNetworkInterfaceRequest.cs b/Services/Vpc/V3/Model/CreateSubNetworkInterfaceRequest.cs index f8f9337..19cce31 100755 --- a/Services/Vpc/V3/Model/CreateSubNetworkInterfaceRequest.cs +++ b/Services/Vpc/V3/Model/CreateSubNetworkInterfaceRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/CreateSubNetworkInterfaceRequestBody.cs b/Services/Vpc/V3/Model/CreateSubNetworkInterfaceRequestBody.cs index 9bf72ee..6514647 100755 --- a/Services/Vpc/V3/Model/CreateSubNetworkInterfaceRequestBody.cs +++ b/Services/Vpc/V3/Model/CreateSubNetworkInterfaceRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/CreateSubNetworkInterfaceResponse.cs b/Services/Vpc/V3/Model/CreateSubNetworkInterfaceResponse.cs index 29f4c28..87035b0 100755 --- a/Services/Vpc/V3/Model/CreateSubNetworkInterfaceResponse.cs +++ b/Services/Vpc/V3/Model/CreateSubNetworkInterfaceResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/CreateVpcOption.cs b/Services/Vpc/V3/Model/CreateVpcOption.cs index 9fbe8db..609d432 100755 --- a/Services/Vpc/V3/Model/CreateVpcOption.cs +++ b/Services/Vpc/V3/Model/CreateVpcOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/CreateVpcRequest.cs b/Services/Vpc/V3/Model/CreateVpcRequest.cs index 05f767e..e2cc626 100755 --- a/Services/Vpc/V3/Model/CreateVpcRequest.cs +++ b/Services/Vpc/V3/Model/CreateVpcRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/CreateVpcRequestBody.cs b/Services/Vpc/V3/Model/CreateVpcRequestBody.cs index 9590901..d16b16a 100755 --- a/Services/Vpc/V3/Model/CreateVpcRequestBody.cs +++ b/Services/Vpc/V3/Model/CreateVpcRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/CreateVpcResponse.cs b/Services/Vpc/V3/Model/CreateVpcResponse.cs index 1630731..0b44581 100755 --- a/Services/Vpc/V3/Model/CreateVpcResponse.cs +++ b/Services/Vpc/V3/Model/CreateVpcResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/DeleteAddressGroupRequest.cs b/Services/Vpc/V3/Model/DeleteAddressGroupRequest.cs index 43177b6..02177db 100755 --- a/Services/Vpc/V3/Model/DeleteAddressGroupRequest.cs +++ b/Services/Vpc/V3/Model/DeleteAddressGroupRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/DeleteAddressGroupResponse.cs b/Services/Vpc/V3/Model/DeleteAddressGroupResponse.cs index af12def..f7a6f24 100755 --- a/Services/Vpc/V3/Model/DeleteAddressGroupResponse.cs +++ b/Services/Vpc/V3/Model/DeleteAddressGroupResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/DeleteIpAddressGroupForceRequest.cs b/Services/Vpc/V3/Model/DeleteIpAddressGroupForceRequest.cs index 7b565b0..b33ae74 100755 --- a/Services/Vpc/V3/Model/DeleteIpAddressGroupForceRequest.cs +++ b/Services/Vpc/V3/Model/DeleteIpAddressGroupForceRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/DeleteIpAddressGroupForceResponse.cs b/Services/Vpc/V3/Model/DeleteIpAddressGroupForceResponse.cs index d2b1355..0ca4e36 100755 --- a/Services/Vpc/V3/Model/DeleteIpAddressGroupForceResponse.cs +++ b/Services/Vpc/V3/Model/DeleteIpAddressGroupForceResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/DeleteSecurityGroupRequest.cs b/Services/Vpc/V3/Model/DeleteSecurityGroupRequest.cs index 2bd4857..6a2859d 100755 --- a/Services/Vpc/V3/Model/DeleteSecurityGroupRequest.cs +++ b/Services/Vpc/V3/Model/DeleteSecurityGroupRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/DeleteSecurityGroupResponse.cs b/Services/Vpc/V3/Model/DeleteSecurityGroupResponse.cs index df3712f..96bb4c6 100755 --- a/Services/Vpc/V3/Model/DeleteSecurityGroupResponse.cs +++ b/Services/Vpc/V3/Model/DeleteSecurityGroupResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/DeleteSecurityGroupRuleRequest.cs b/Services/Vpc/V3/Model/DeleteSecurityGroupRuleRequest.cs index dbaf4e2..c98ae96 100755 --- a/Services/Vpc/V3/Model/DeleteSecurityGroupRuleRequest.cs +++ b/Services/Vpc/V3/Model/DeleteSecurityGroupRuleRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/DeleteSecurityGroupRuleResponse.cs b/Services/Vpc/V3/Model/DeleteSecurityGroupRuleResponse.cs index 9abcb39..b8d9edf 100755 --- a/Services/Vpc/V3/Model/DeleteSecurityGroupRuleResponse.cs +++ b/Services/Vpc/V3/Model/DeleteSecurityGroupRuleResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/DeleteSubNetworkInterfaceRequest.cs b/Services/Vpc/V3/Model/DeleteSubNetworkInterfaceRequest.cs index 9555c18..f6e11bf 100755 --- a/Services/Vpc/V3/Model/DeleteSubNetworkInterfaceRequest.cs +++ b/Services/Vpc/V3/Model/DeleteSubNetworkInterfaceRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/DeleteSubNetworkInterfaceResponse.cs b/Services/Vpc/V3/Model/DeleteSubNetworkInterfaceResponse.cs index 5d439a9..9075109 100755 --- a/Services/Vpc/V3/Model/DeleteSubNetworkInterfaceResponse.cs +++ b/Services/Vpc/V3/Model/DeleteSubNetworkInterfaceResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/DeleteVpcRequest.cs b/Services/Vpc/V3/Model/DeleteVpcRequest.cs index c156960..ac558cf 100755 --- a/Services/Vpc/V3/Model/DeleteVpcRequest.cs +++ b/Services/Vpc/V3/Model/DeleteVpcRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/DeleteVpcResponse.cs b/Services/Vpc/V3/Model/DeleteVpcResponse.cs index f9f6981..09ce5c9 100755 --- a/Services/Vpc/V3/Model/DeleteVpcResponse.cs +++ b/Services/Vpc/V3/Model/DeleteVpcResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/ListAddressGroupRequest.cs b/Services/Vpc/V3/Model/ListAddressGroupRequest.cs index 9be5b99..03fd3fe 100755 --- a/Services/Vpc/V3/Model/ListAddressGroupRequest.cs +++ b/Services/Vpc/V3/Model/ListAddressGroupRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/ListAddressGroupResponse.cs b/Services/Vpc/V3/Model/ListAddressGroupResponse.cs index db363ac..6220a83 100755 --- a/Services/Vpc/V3/Model/ListAddressGroupResponse.cs +++ b/Services/Vpc/V3/Model/ListAddressGroupResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/ListSecurityGroupRulesRequest.cs b/Services/Vpc/V3/Model/ListSecurityGroupRulesRequest.cs index 774d5cc..1c29d85 100755 --- a/Services/Vpc/V3/Model/ListSecurityGroupRulesRequest.cs +++ b/Services/Vpc/V3/Model/ListSecurityGroupRulesRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/ListSecurityGroupRulesResponse.cs b/Services/Vpc/V3/Model/ListSecurityGroupRulesResponse.cs index cbcb09a..af18470 100755 --- a/Services/Vpc/V3/Model/ListSecurityGroupRulesResponse.cs +++ b/Services/Vpc/V3/Model/ListSecurityGroupRulesResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/ListSecurityGroupsRequest.cs b/Services/Vpc/V3/Model/ListSecurityGroupsRequest.cs index c6fd7e1..ffceea2 100755 --- a/Services/Vpc/V3/Model/ListSecurityGroupsRequest.cs +++ b/Services/Vpc/V3/Model/ListSecurityGroupsRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/ListSecurityGroupsResponse.cs b/Services/Vpc/V3/Model/ListSecurityGroupsResponse.cs index d80c302..6b46808 100755 --- a/Services/Vpc/V3/Model/ListSecurityGroupsResponse.cs +++ b/Services/Vpc/V3/Model/ListSecurityGroupsResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/ListSubNetworkInterfacesRequest.cs b/Services/Vpc/V3/Model/ListSubNetworkInterfacesRequest.cs index b63642b..c85d1ac 100755 --- a/Services/Vpc/V3/Model/ListSubNetworkInterfacesRequest.cs +++ b/Services/Vpc/V3/Model/ListSubNetworkInterfacesRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/ListSubNetworkInterfacesResponse.cs b/Services/Vpc/V3/Model/ListSubNetworkInterfacesResponse.cs index f5328d4..9e327bf 100755 --- a/Services/Vpc/V3/Model/ListSubNetworkInterfacesResponse.cs +++ b/Services/Vpc/V3/Model/ListSubNetworkInterfacesResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/ListVpcsRequest.cs b/Services/Vpc/V3/Model/ListVpcsRequest.cs index 499ed63..c49ce11 100755 --- a/Services/Vpc/V3/Model/ListVpcsRequest.cs +++ b/Services/Vpc/V3/Model/ListVpcsRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/ListVpcsResponse.cs b/Services/Vpc/V3/Model/ListVpcsResponse.cs index a732571..7cb1552 100755 --- a/Services/Vpc/V3/Model/ListVpcsResponse.cs +++ b/Services/Vpc/V3/Model/ListVpcsResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/MigrateSubNetworkInterfaceOption.cs b/Services/Vpc/V3/Model/MigrateSubNetworkInterfaceOption.cs index 7f30082..2ef6294 100755 --- a/Services/Vpc/V3/Model/MigrateSubNetworkInterfaceOption.cs +++ b/Services/Vpc/V3/Model/MigrateSubNetworkInterfaceOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/MigrateSubNetworkInterfaceRequest.cs b/Services/Vpc/V3/Model/MigrateSubNetworkInterfaceRequest.cs index 16f5a71..6fc79d0 100755 --- a/Services/Vpc/V3/Model/MigrateSubNetworkInterfaceRequest.cs +++ b/Services/Vpc/V3/Model/MigrateSubNetworkInterfaceRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/MigrateSubNetworkInterfaceRequestBody.cs b/Services/Vpc/V3/Model/MigrateSubNetworkInterfaceRequestBody.cs index 1d628cf..b3b4467 100755 --- a/Services/Vpc/V3/Model/MigrateSubNetworkInterfaceRequestBody.cs +++ b/Services/Vpc/V3/Model/MigrateSubNetworkInterfaceRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/MigrateSubNetworkInterfaceResponse.cs b/Services/Vpc/V3/Model/MigrateSubNetworkInterfaceResponse.cs index 173948c..b0ff163 100755 --- a/Services/Vpc/V3/Model/MigrateSubNetworkInterfaceResponse.cs +++ b/Services/Vpc/V3/Model/MigrateSubNetworkInterfaceResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/PageInfo.cs b/Services/Vpc/V3/Model/PageInfo.cs index a79a2b0..47b96be 100755 --- a/Services/Vpc/V3/Model/PageInfo.cs +++ b/Services/Vpc/V3/Model/PageInfo.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/RemoveExtendCidrOption.cs b/Services/Vpc/V3/Model/RemoveExtendCidrOption.cs index 7acb8de..2e3dc15 100755 --- a/Services/Vpc/V3/Model/RemoveExtendCidrOption.cs +++ b/Services/Vpc/V3/Model/RemoveExtendCidrOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/RemoveVpcExtendCidrRequest.cs b/Services/Vpc/V3/Model/RemoveVpcExtendCidrRequest.cs index dda1513..e297bfc 100755 --- a/Services/Vpc/V3/Model/RemoveVpcExtendCidrRequest.cs +++ b/Services/Vpc/V3/Model/RemoveVpcExtendCidrRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/RemoveVpcExtendCidrRequestBody.cs b/Services/Vpc/V3/Model/RemoveVpcExtendCidrRequestBody.cs index 42db8b6..ec2f199 100755 --- a/Services/Vpc/V3/Model/RemoveVpcExtendCidrRequestBody.cs +++ b/Services/Vpc/V3/Model/RemoveVpcExtendCidrRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/RemoveVpcExtendCidrResponse.cs b/Services/Vpc/V3/Model/RemoveVpcExtendCidrResponse.cs index e5fb455..6079683 100755 --- a/Services/Vpc/V3/Model/RemoveVpcExtendCidrResponse.cs +++ b/Services/Vpc/V3/Model/RemoveVpcExtendCidrResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/SecurityGroup.cs b/Services/Vpc/V3/Model/SecurityGroup.cs index 24f66ba..5915b3e 100755 --- a/Services/Vpc/V3/Model/SecurityGroup.cs +++ b/Services/Vpc/V3/Model/SecurityGroup.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/SecurityGroupInfo.cs b/Services/Vpc/V3/Model/SecurityGroupInfo.cs index deef421..a0312f4 100755 --- a/Services/Vpc/V3/Model/SecurityGroupInfo.cs +++ b/Services/Vpc/V3/Model/SecurityGroupInfo.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/SecurityGroupRule.cs b/Services/Vpc/V3/Model/SecurityGroupRule.cs index e000b32..6590f45 100755 --- a/Services/Vpc/V3/Model/SecurityGroupRule.cs +++ b/Services/Vpc/V3/Model/SecurityGroupRule.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/ShowAddressGroupRequest.cs b/Services/Vpc/V3/Model/ShowAddressGroupRequest.cs index cff2440..236e45b 100755 --- a/Services/Vpc/V3/Model/ShowAddressGroupRequest.cs +++ b/Services/Vpc/V3/Model/ShowAddressGroupRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/ShowAddressGroupResponse.cs b/Services/Vpc/V3/Model/ShowAddressGroupResponse.cs index 8a3ea96..03e08cb 100755 --- a/Services/Vpc/V3/Model/ShowAddressGroupResponse.cs +++ b/Services/Vpc/V3/Model/ShowAddressGroupResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/ShowSecurityGroupRequest.cs b/Services/Vpc/V3/Model/ShowSecurityGroupRequest.cs index 750b952..f625fc9 100755 --- a/Services/Vpc/V3/Model/ShowSecurityGroupRequest.cs +++ b/Services/Vpc/V3/Model/ShowSecurityGroupRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/ShowSecurityGroupResponse.cs b/Services/Vpc/V3/Model/ShowSecurityGroupResponse.cs index 3edefc7..36fc488 100755 --- a/Services/Vpc/V3/Model/ShowSecurityGroupResponse.cs +++ b/Services/Vpc/V3/Model/ShowSecurityGroupResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/ShowSecurityGroupRuleRequest.cs b/Services/Vpc/V3/Model/ShowSecurityGroupRuleRequest.cs index a84f509..a34c115 100755 --- a/Services/Vpc/V3/Model/ShowSecurityGroupRuleRequest.cs +++ b/Services/Vpc/V3/Model/ShowSecurityGroupRuleRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/ShowSecurityGroupRuleResponse.cs b/Services/Vpc/V3/Model/ShowSecurityGroupRuleResponse.cs index 23ad98c..5dca925 100755 --- a/Services/Vpc/V3/Model/ShowSecurityGroupRuleResponse.cs +++ b/Services/Vpc/V3/Model/ShowSecurityGroupRuleResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/ShowSubNetworkInterfaceRequest.cs b/Services/Vpc/V3/Model/ShowSubNetworkInterfaceRequest.cs index fd1aa1e..a228106 100755 --- a/Services/Vpc/V3/Model/ShowSubNetworkInterfaceRequest.cs +++ b/Services/Vpc/V3/Model/ShowSubNetworkInterfaceRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/ShowSubNetworkInterfaceResponse.cs b/Services/Vpc/V3/Model/ShowSubNetworkInterfaceResponse.cs index 95dd2c2..7ac59b1 100755 --- a/Services/Vpc/V3/Model/ShowSubNetworkInterfaceResponse.cs +++ b/Services/Vpc/V3/Model/ShowSubNetworkInterfaceResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/ShowSubNetworkInterfacesQuantityRequest.cs b/Services/Vpc/V3/Model/ShowSubNetworkInterfacesQuantityRequest.cs index a39ee00..94d8dc0 100755 --- a/Services/Vpc/V3/Model/ShowSubNetworkInterfacesQuantityRequest.cs +++ b/Services/Vpc/V3/Model/ShowSubNetworkInterfacesQuantityRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/ShowSubNetworkInterfacesQuantityResponse.cs b/Services/Vpc/V3/Model/ShowSubNetworkInterfacesQuantityResponse.cs index 9d5e844..9311bde 100755 --- a/Services/Vpc/V3/Model/ShowSubNetworkInterfacesQuantityResponse.cs +++ b/Services/Vpc/V3/Model/ShowSubNetworkInterfacesQuantityResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/ShowVpcRequest.cs b/Services/Vpc/V3/Model/ShowVpcRequest.cs index d898cb6..3a6ee41 100755 --- a/Services/Vpc/V3/Model/ShowVpcRequest.cs +++ b/Services/Vpc/V3/Model/ShowVpcRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/ShowVpcResponse.cs b/Services/Vpc/V3/Model/ShowVpcResponse.cs index bd1af37..a42e9d9 100755 --- a/Services/Vpc/V3/Model/ShowVpcResponse.cs +++ b/Services/Vpc/V3/Model/ShowVpcResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/SubNetworkInterface.cs b/Services/Vpc/V3/Model/SubNetworkInterface.cs index 6b347e3..227ab50 100755 --- a/Services/Vpc/V3/Model/SubNetworkInterface.cs +++ b/Services/Vpc/V3/Model/SubNetworkInterface.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/Tag.cs b/Services/Vpc/V3/Model/Tag.cs index c33c924..ad1c739 100755 --- a/Services/Vpc/V3/Model/Tag.cs +++ b/Services/Vpc/V3/Model/Tag.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/UpdateAddressGroupOption.cs b/Services/Vpc/V3/Model/UpdateAddressGroupOption.cs index 88b54de..d5029c2 100755 --- a/Services/Vpc/V3/Model/UpdateAddressGroupOption.cs +++ b/Services/Vpc/V3/Model/UpdateAddressGroupOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/UpdateAddressGroupRequest.cs b/Services/Vpc/V3/Model/UpdateAddressGroupRequest.cs index 1202a86..1ad26cb 100755 --- a/Services/Vpc/V3/Model/UpdateAddressGroupRequest.cs +++ b/Services/Vpc/V3/Model/UpdateAddressGroupRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/UpdateAddressGroupRequestBody.cs b/Services/Vpc/V3/Model/UpdateAddressGroupRequestBody.cs index 39df7f8..607df5e 100755 --- a/Services/Vpc/V3/Model/UpdateAddressGroupRequestBody.cs +++ b/Services/Vpc/V3/Model/UpdateAddressGroupRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/UpdateAddressGroupResponse.cs b/Services/Vpc/V3/Model/UpdateAddressGroupResponse.cs index 3b57d7e..6f3efb4 100755 --- a/Services/Vpc/V3/Model/UpdateAddressGroupResponse.cs +++ b/Services/Vpc/V3/Model/UpdateAddressGroupResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/UpdateSecurityGroupOption.cs b/Services/Vpc/V3/Model/UpdateSecurityGroupOption.cs index ffe7ba7..c951336 100755 --- a/Services/Vpc/V3/Model/UpdateSecurityGroupOption.cs +++ b/Services/Vpc/V3/Model/UpdateSecurityGroupOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/UpdateSecurityGroupRequest.cs b/Services/Vpc/V3/Model/UpdateSecurityGroupRequest.cs index e7d8648..0cc88fa 100755 --- a/Services/Vpc/V3/Model/UpdateSecurityGroupRequest.cs +++ b/Services/Vpc/V3/Model/UpdateSecurityGroupRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/UpdateSecurityGroupRequestBody.cs b/Services/Vpc/V3/Model/UpdateSecurityGroupRequestBody.cs index ae1015b..dbdabc9 100755 --- a/Services/Vpc/V3/Model/UpdateSecurityGroupRequestBody.cs +++ b/Services/Vpc/V3/Model/UpdateSecurityGroupRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/UpdateSecurityGroupResponse.cs b/Services/Vpc/V3/Model/UpdateSecurityGroupResponse.cs index 630afd2..72e38fc 100755 --- a/Services/Vpc/V3/Model/UpdateSecurityGroupResponse.cs +++ b/Services/Vpc/V3/Model/UpdateSecurityGroupResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/UpdateSubNetworkInterfaceOption.cs b/Services/Vpc/V3/Model/UpdateSubNetworkInterfaceOption.cs index 2435174..62cc2b3 100755 --- a/Services/Vpc/V3/Model/UpdateSubNetworkInterfaceOption.cs +++ b/Services/Vpc/V3/Model/UpdateSubNetworkInterfaceOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/UpdateSubNetworkInterfaceRequest.cs b/Services/Vpc/V3/Model/UpdateSubNetworkInterfaceRequest.cs index 747852e..8a3284f 100755 --- a/Services/Vpc/V3/Model/UpdateSubNetworkInterfaceRequest.cs +++ b/Services/Vpc/V3/Model/UpdateSubNetworkInterfaceRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/UpdateSubNetworkInterfaceRequestBody.cs b/Services/Vpc/V3/Model/UpdateSubNetworkInterfaceRequestBody.cs index c36a106..0be67cf 100755 --- a/Services/Vpc/V3/Model/UpdateSubNetworkInterfaceRequestBody.cs +++ b/Services/Vpc/V3/Model/UpdateSubNetworkInterfaceRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/UpdateSubNetworkInterfaceResponse.cs b/Services/Vpc/V3/Model/UpdateSubNetworkInterfaceResponse.cs index 806c9d5..42f2db7 100755 --- a/Services/Vpc/V3/Model/UpdateSubNetworkInterfaceResponse.cs +++ b/Services/Vpc/V3/Model/UpdateSubNetworkInterfaceResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/UpdateVpcOption.cs b/Services/Vpc/V3/Model/UpdateVpcOption.cs index ef4199c..f2f1abf 100755 --- a/Services/Vpc/V3/Model/UpdateVpcOption.cs +++ b/Services/Vpc/V3/Model/UpdateVpcOption.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/UpdateVpcRequest.cs b/Services/Vpc/V3/Model/UpdateVpcRequest.cs index 2d97db9..ea96055 100755 --- a/Services/Vpc/V3/Model/UpdateVpcRequest.cs +++ b/Services/Vpc/V3/Model/UpdateVpcRequest.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/UpdateVpcRequestBody.cs b/Services/Vpc/V3/Model/UpdateVpcRequestBody.cs index 6f38dde..ebb3662 100755 --- a/Services/Vpc/V3/Model/UpdateVpcRequestBody.cs +++ b/Services/Vpc/V3/Model/UpdateVpcRequestBody.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/UpdateVpcResponse.cs b/Services/Vpc/V3/Model/UpdateVpcResponse.cs index 7bf9f5e..2f74294 100755 --- a/Services/Vpc/V3/Model/UpdateVpcResponse.cs +++ b/Services/Vpc/V3/Model/UpdateVpcResponse.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Model/Vpc.cs b/Services/Vpc/V3/Model/Vpc.cs index 7011d74..57bc889 100755 --- a/Services/Vpc/V3/Model/Vpc.cs +++ b/Services/Vpc/V3/Model/Vpc.cs @@ -3,9 +3,10 @@ using System.Text; using System.Linq; using System.Runtime.Serialization; + using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3.Model { diff --git a/Services/Vpc/V3/Region/VpcRegion.cs b/Services/Vpc/V3/Region/VpcRegion.cs index 113bb69..554dd82 100755 --- a/Services/Vpc/V3/Region/VpcRegion.cs +++ b/Services/Vpc/V3/Region/VpcRegion.cs @@ -1,6 +1,6 @@ using System; using System.Collections.Generic; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; namespace G42Cloud.SDK.Vpc.V3 { diff --git a/Services/Vpc/V3/VpcAsyncClient.cs b/Services/Vpc/V3/VpcAsyncClient.cs index 0bf06b4..2ae4105 100755 --- a/Services/Vpc/V3/VpcAsyncClient.cs +++ b/Services/Vpc/V3/VpcAsyncClient.cs @@ -1,7 +1,7 @@ using System.Net.Http; using System.Collections.Generic; using System.Threading.Tasks; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; using G42Cloud.SDK.Vpc.V3.Model; namespace G42Cloud.SDK.Vpc.V3 diff --git a/Services/Vpc/V3/VpcClient.cs b/Services/Vpc/V3/VpcClient.cs index 1a7688b..3e3c172 100755 --- a/Services/Vpc/V3/VpcClient.cs +++ b/Services/Vpc/V3/VpcClient.cs @@ -1,6 +1,6 @@ using System.Net.Http; using System.Collections.Generic; -using HuaweiCloud.SDK.Core; +using G42Cloud.SDK.Core; using G42Cloud.SDK.Vpc.V3.Model; namespace G42Cloud.SDK.Vpc.V3 diff --git a/Services/Vpc/Vpc.csproj b/Services/Vpc/Vpc.csproj index 9eb2124..15c65d3 100755 --- a/Services/Vpc/Vpc.csproj +++ b/Services/Vpc/Vpc.csproj @@ -15,7 +15,7 @@ false false G42Cloud.SDK.Vpc - 0.0.2-beta + 0.0.3-beta G42Cloud Copyright 2020 G42 Technologies Co., Ltd. G42 Technologies Co., Ltd. @@ -24,7 +24,7 @@ - + diff --git a/Services/Vpc/obj/Vpc.csproj.nuget.cache b/Services/Vpc/obj/Vpc.csproj.nuget.cache deleted file mode 100644 index ea8d4f6..0000000 --- a/Services/Vpc/obj/Vpc.csproj.nuget.cache +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": 1, - "dgSpecHash": "ql4l8sEJN/fibT1c15BtRtlIcfiS2L2onsnnK68nZupiIzCawa65V8Gknr+k/iT7AkBry3J1Or/bXDreqBlEtQ==", - "success": true -} \ No newline at end of file diff --git a/Services/Vpc/obj/Vpc.csproj.nuget.dgspec.json b/Services/Vpc/obj/Vpc.csproj.nuget.dgspec.json deleted file mode 100644 index cd2bd5e..0000000 --- a/Services/Vpc/obj/Vpc.csproj.nuget.dgspec.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "format": 1, - "restore": { - "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Vpc/Vpc.csproj": {} - }, - "projects": { - "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Vpc/Vpc.csproj": { - "version": "0.0.2-beta", - "restore": { - "projectUniqueName": "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Vpc/Vpc.csproj", - "projectName": "G42Cloud.SDK.Vpc", - "projectPath": "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Vpc/Vpc.csproj", - "packagesPath": "/root/.nuget/packages/", - "outputPath": "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Vpc/obj/", - "projectStyle": "PackageReference", - "fallbackFolders": [ - "/usr/dotnet2/sdk/NuGetFallbackFolder" - ], - "configFilePaths": [ - "/root/.nuget/NuGet/NuGet.Config" - ], - "originalTargetFrameworks": [ - "netstandard2.0" - ], - "sources": { - "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86": {} - }, - "frameworks": { - "netstandard2.0": { - "projectReferences": {} - } - }, - "warningProperties": { - "warnAsError": [ - "NU1605" - ] - } - }, - "frameworks": { - "netstandard2.0": { - "dependencies": { - "HuaweiCloud.SDK.Core": { - "target": "Package", - "version": "[3.1.11, )" - }, - "NETStandard.Library": { - "suppressParent": "All", - "target": "Package", - "version": "[2.0.3, )", - "autoReferenced": true - }, - "Newtonsoft.Json": { - "target": "Package", - "version": "[13.0.1, )" - } - }, - "imports": [ - "net461" - ], - "assetTargetFallback": true, - "warn": true - } - } - } - } -} \ No newline at end of file diff --git a/Services/Vpc/obj/Vpc.csproj.nuget.g.props b/Services/Vpc/obj/Vpc.csproj.nuget.g.props deleted file mode 100644 index 9ef9097..0000000 --- a/Services/Vpc/obj/Vpc.csproj.nuget.g.props +++ /dev/null @@ -1,15 +0,0 @@ - - - - True - NuGet - /data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Vpc/obj/project.assets.json - /root/.nuget/packages/ - /root/.nuget/packages/;/usr/dotnet2/sdk/NuGetFallbackFolder - PackageReference - 5.0.2 - - - $(MSBuildAllProjects);$(MSBuildThisFileFullPath) - - \ No newline at end of file diff --git a/Services/Vpc/obj/Vpc.csproj.nuget.g.targets b/Services/Vpc/obj/Vpc.csproj.nuget.g.targets deleted file mode 100644 index e8536f5..0000000 --- a/Services/Vpc/obj/Vpc.csproj.nuget.g.targets +++ /dev/null @@ -1,9 +0,0 @@ - - - - $(MSBuildAllProjects);$(MSBuildThisFileFullPath) - - - - - \ No newline at end of file diff --git a/Services/Vpc/obj/project.assets.json b/Services/Vpc/obj/project.assets.json deleted file mode 100644 index a277d87..0000000 --- a/Services/Vpc/obj/project.assets.json +++ /dev/null @@ -1,1134 +0,0 @@ -{ - "version": 3, - "targets": { - ".NETStandard,Version=v2.0": { - "HuaweiCloud.SDK.Core/3.1.11": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.DependencyInjection": "3.1.5", - "Microsoft.Extensions.Http": "3.1.5", - "Microsoft.Extensions.Http.Polly": "3.1.5", - "Microsoft.Extensions.Logging.Console": "3.1.5", - "Microsoft.Extensions.Logging.Debug": "3.1.5", - "Newtonsoft.Json": "13.0.1" - }, - "compile": { - "lib/netstandard2.0/HuaweiCloud.SDK.Core.dll": {} - }, - "runtime": { - "lib/netstandard2.0/HuaweiCloud.SDK.Core.dll": {} - } - }, - "Microsoft.Bcl.AsyncInterfaces/1.1.1": { - "type": "package", - "dependencies": { - "System.Threading.Tasks.Extensions": "4.5.4" - }, - "compile": { - "ref/netstandard2.0/Microsoft.Bcl.AsyncInterfaces.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Bcl.AsyncInterfaces.dll": {} - } - }, - "Microsoft.Extensions.Configuration/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.Configuration.Abstractions": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Configuration.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Configuration.dll": {} - } - }, - "Microsoft.Extensions.Configuration.Abstractions/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.Primitives": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Configuration.Abstractions.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Configuration.Abstractions.dll": {} - } - }, - "Microsoft.Extensions.Configuration.Binder/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.Configuration": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Configuration.Binder.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Configuration.Binder.dll": {} - } - }, - "Microsoft.Extensions.DependencyInjection/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Bcl.AsyncInterfaces": "1.1.1", - "Microsoft.Extensions.DependencyInjection.Abstractions": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.dll": {} - } - }, - "Microsoft.Extensions.DependencyInjection.Abstractions/3.1.5": { - "type": "package", - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll": {} - } - }, - "Microsoft.Extensions.Http/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.DependencyInjection.Abstractions": "3.1.5", - "Microsoft.Extensions.Logging": "3.1.5", - "Microsoft.Extensions.Options": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Http.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Http.dll": {} - } - }, - "Microsoft.Extensions.Http.Polly/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.Http": "3.1.5", - "Polly": "7.1.0", - "Polly.Extensions.Http": "3.0.0" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Http.Polly.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Http.Polly.dll": {} - } - }, - "Microsoft.Extensions.Logging/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.Configuration.Binder": "3.1.5", - "Microsoft.Extensions.DependencyInjection": "3.1.5", - "Microsoft.Extensions.Logging.Abstractions": "3.1.5", - "Microsoft.Extensions.Options": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.dll": {} - } - }, - "Microsoft.Extensions.Logging.Abstractions/3.1.5": { - "type": "package", - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.Abstractions.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.Abstractions.dll": {} - } - }, - "Microsoft.Extensions.Logging.Configuration/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.Logging": "3.1.5", - "Microsoft.Extensions.Options.ConfigurationExtensions": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.Configuration.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.Configuration.dll": {} - } - }, - "Microsoft.Extensions.Logging.Console/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.Configuration.Abstractions": "3.1.5", - "Microsoft.Extensions.Logging": "3.1.5", - "Microsoft.Extensions.Logging.Configuration": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.Console.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.Console.dll": {} - } - }, - "Microsoft.Extensions.Logging.Debug/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.Logging": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.Debug.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Logging.Debug.dll": {} - } - }, - "Microsoft.Extensions.Options/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.DependencyInjection.Abstractions": "3.1.5", - "Microsoft.Extensions.Primitives": "3.1.5", - "System.ComponentModel.Annotations": "4.7.0" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Options.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Options.dll": {} - } - }, - "Microsoft.Extensions.Options.ConfigurationExtensions/3.1.5": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.Configuration.Abstractions": "3.1.5", - "Microsoft.Extensions.Configuration.Binder": "3.1.5", - "Microsoft.Extensions.DependencyInjection.Abstractions": "3.1.5", - "Microsoft.Extensions.Options": "3.1.5" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Options.ConfigurationExtensions.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Options.ConfigurationExtensions.dll": {} - } - }, - "Microsoft.Extensions.Primitives/3.1.5": { - "type": "package", - "dependencies": { - "System.Memory": "4.5.2", - "System.Runtime.CompilerServices.Unsafe": "4.7.1" - }, - "compile": { - "lib/netstandard2.0/Microsoft.Extensions.Primitives.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Microsoft.Extensions.Primitives.dll": {} - } - }, - "Microsoft.NETCore.Platforms/1.1.0": { - "type": "package", - "compile": { - "lib/netstandard1.0/_._": {} - }, - "runtime": { - "lib/netstandard1.0/_._": {} - } - }, - "NETStandard.Library/2.0.3": { - "type": "package", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0" - }, - "compile": { - "lib/netstandard1.0/_._": {} - }, - "runtime": { - "lib/netstandard1.0/_._": {} - }, - "build": { - "build/netstandard2.0/NETStandard.Library.targets": {} - } - }, - "Newtonsoft.Json/13.0.1": { - "type": "package", - "compile": { - "lib/netstandard2.0/Newtonsoft.Json.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Newtonsoft.Json.dll": {} - } - }, - "Polly/7.1.0": { - "type": "package", - "compile": { - "lib/netstandard2.0/Polly.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Polly.dll": {} - } - }, - "Polly.Extensions.Http/3.0.0": { - "type": "package", - "dependencies": { - "Polly": "7.1.0" - }, - "compile": { - "lib/netstandard2.0/Polly.Extensions.Http.dll": {} - }, - "runtime": { - "lib/netstandard2.0/Polly.Extensions.Http.dll": {} - } - }, - "System.Buffers/4.4.0": { - "type": "package", - "compile": { - "ref/netstandard2.0/System.Buffers.dll": {} - }, - "runtime": { - "lib/netstandard2.0/System.Buffers.dll": {} - } - }, - "System.ComponentModel.Annotations/4.7.0": { - "type": "package", - "compile": { - "ref/netstandard2.0/System.ComponentModel.Annotations.dll": {} - }, - "runtime": { - "lib/netstandard2.0/System.ComponentModel.Annotations.dll": {} - } - }, - "System.Memory/4.5.2": { - "type": "package", - "dependencies": { - "System.Buffers": "4.4.0", - "System.Numerics.Vectors": "4.4.0", - "System.Runtime.CompilerServices.Unsafe": "4.5.2" - }, - "compile": { - "lib/netstandard2.0/System.Memory.dll": {} - }, - "runtime": { - "lib/netstandard2.0/System.Memory.dll": {} - } - }, - "System.Numerics.Vectors/4.4.0": { - "type": "package", - "compile": { - "ref/netstandard2.0/System.Numerics.Vectors.dll": {} - }, - "runtime": { - "lib/netstandard2.0/System.Numerics.Vectors.dll": {} - } - }, - "System.Runtime.CompilerServices.Unsafe/4.7.1": { - "type": "package", - "compile": { - "ref/netstandard2.0/System.Runtime.CompilerServices.Unsafe.dll": {} - }, - "runtime": { - "lib/netstandard2.0/System.Runtime.CompilerServices.Unsafe.dll": {} - } - }, - "System.Threading.Tasks.Extensions/4.5.4": { - "type": "package", - "dependencies": { - "System.Runtime.CompilerServices.Unsafe": "4.5.3" - }, - "compile": { - "lib/netstandard2.0/System.Threading.Tasks.Extensions.dll": {} - }, - "runtime": { - "lib/netstandard2.0/System.Threading.Tasks.Extensions.dll": {} - } - } - } - }, - "libraries": { - "HuaweiCloud.SDK.Core/3.1.11": { - "sha512": "gfSrNtvvgvmEptRbn8LinWOcd2CmDgHVHKCOG7loIczGvrVSfCWJhnJYig/St+Jb8eKMeWgu/Ms52YJbdxUu0w==", - "type": "package", - "path": "huaweicloud.sdk.core/3.1.11", - "files": [ - ".nupkg.metadata", - "LICENSE", - "huaweicloud.sdk.core.3.1.11.nupkg.sha512", - "huaweicloud.sdk.core.nuspec", - "lib/netstandard2.0/HuaweiCloud.SDK.Core.dll" - ] - }, - "Microsoft.Bcl.AsyncInterfaces/1.1.1": { - "sha512": "yuvf07qFWFqtK3P/MRkEKLhn5r2UbSpVueRziSqj0yJQIKFwG1pq9mOayK3zE5qZCTs0CbrwL9M6R8VwqyGy2w==", - "type": "package", - "path": "microsoft.bcl.asyncinterfaces/1.1.1", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "LICENSE.TXT", - "THIRD-PARTY-NOTICES.TXT", - "lib/net461/Microsoft.Bcl.AsyncInterfaces.dll", - "lib/net461/Microsoft.Bcl.AsyncInterfaces.xml", - "lib/netstandard2.0/Microsoft.Bcl.AsyncInterfaces.dll", - "lib/netstandard2.0/Microsoft.Bcl.AsyncInterfaces.xml", - "lib/netstandard2.1/Microsoft.Bcl.AsyncInterfaces.dll", - "lib/netstandard2.1/Microsoft.Bcl.AsyncInterfaces.xml", - "microsoft.bcl.asyncinterfaces.1.1.1.nupkg.sha512", - "microsoft.bcl.asyncinterfaces.nuspec", - "ref/net461/Microsoft.Bcl.AsyncInterfaces.dll", - "ref/netstandard2.0/Microsoft.Bcl.AsyncInterfaces.dll", - "ref/netstandard2.1/Microsoft.Bcl.AsyncInterfaces.dll", - "useSharedDesignerContext.txt", - "version.txt" - ] - }, - "Microsoft.Extensions.Configuration/3.1.5": { - "sha512": "LZfdAP8flK4hkaniUv6TlstDX9FXLmJMX1A4mpLghAsZxTaJIgf+nzBNiPRdy/B5Vrs74gRONX3JrIUJQrebmA==", - "type": "package", - "path": "microsoft.extensions.configuration/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Configuration.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Configuration.xml", - "lib/netstandard2.0/Microsoft.Extensions.Configuration.dll", - "lib/netstandard2.0/Microsoft.Extensions.Configuration.xml", - "microsoft.extensions.configuration.3.1.5.nupkg.sha512", - "microsoft.extensions.configuration.nuspec" - ] - }, - "Microsoft.Extensions.Configuration.Abstractions/3.1.5": { - "sha512": "VBcAk6s9izZr04WCzNqOh1Sxz2RbVSh0G79MfpHSDv16cUJtSEYEHody9ZnF71LBEktzdu6cvDFBOFMh43q0iA==", - "type": "package", - "path": "microsoft.extensions.configuration.abstractions/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Configuration.Abstractions.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Configuration.Abstractions.xml", - "lib/netstandard2.0/Microsoft.Extensions.Configuration.Abstractions.dll", - "lib/netstandard2.0/Microsoft.Extensions.Configuration.Abstractions.xml", - "microsoft.extensions.configuration.abstractions.3.1.5.nupkg.sha512", - "microsoft.extensions.configuration.abstractions.nuspec" - ] - }, - "Microsoft.Extensions.Configuration.Binder/3.1.5": { - "sha512": "ZR/zjBxkvdnnWhRoBHDT95uz1ZgJFhv1QazmKCIcDqy/RXqi+6dJ/PfxDhEnzPvk9HbkcGfFsPEu1vSIyxDqBQ==", - "type": "package", - "path": "microsoft.extensions.configuration.binder/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Configuration.Binder.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Configuration.Binder.xml", - "lib/netstandard2.0/Microsoft.Extensions.Configuration.Binder.dll", - "lib/netstandard2.0/Microsoft.Extensions.Configuration.Binder.xml", - "microsoft.extensions.configuration.binder.3.1.5.nupkg.sha512", - "microsoft.extensions.configuration.binder.nuspec" - ] - }, - "Microsoft.Extensions.DependencyInjection/3.1.5": { - "sha512": "I+RTJQi7TtenIHZqL2zr6523PYXfL88Ruu4UIVmspIxdw14GHd8zZ+2dGLSdwX7fn41Hth4d42S1e1iHWVOJyQ==", - "type": "package", - "path": "microsoft.extensions.dependencyinjection/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/net461/Microsoft.Extensions.DependencyInjection.dll", - "lib/net461/Microsoft.Extensions.DependencyInjection.xml", - "lib/netcoreapp3.1/Microsoft.Extensions.DependencyInjection.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.DependencyInjection.xml", - "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.dll", - "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.xml", - "lib/netstandard2.1/Microsoft.Extensions.DependencyInjection.dll", - "lib/netstandard2.1/Microsoft.Extensions.DependencyInjection.xml", - "microsoft.extensions.dependencyinjection.3.1.5.nupkg.sha512", - "microsoft.extensions.dependencyinjection.nuspec" - ] - }, - "Microsoft.Extensions.DependencyInjection.Abstractions/3.1.5": { - "sha512": "2VSCj2TZPMdeEi279Lawi6qJQu4+sEWizSOYrhY6hapyS1jxn1jVUZT1Ugv68bya+x8+3lD4+RqhUZql9PhISQ==", - "type": "package", - "path": "microsoft.extensions.dependencyinjection.abstractions/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll", - "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.Abstractions.xml", - "microsoft.extensions.dependencyinjection.abstractions.3.1.5.nupkg.sha512", - "microsoft.extensions.dependencyinjection.abstractions.nuspec" - ] - }, - "Microsoft.Extensions.Http/3.1.5": { - "sha512": "P8yu3UDd0X129FmxJN0/nObuuH4v7YoxK00kEs8EU4R7POa+3yp/buux74fNYTLORuEqjBTMGtV7TBszuvCj7g==", - "type": "package", - "path": "microsoft.extensions.http/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Http.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Http.xml", - "lib/netstandard2.0/Microsoft.Extensions.Http.dll", - "lib/netstandard2.0/Microsoft.Extensions.Http.xml", - "microsoft.extensions.http.3.1.5.nupkg.sha512", - "microsoft.extensions.http.nuspec" - ] - }, - "Microsoft.Extensions.Http.Polly/3.1.5": { - "sha512": "wW+kLLqoQPIg3+NQhBkqmxBAtoGJhVsQ03RAjw/Jx0oTSmaZsJY3rIlBmsrHdeKOxq19P4qRlST2wk/k5tdXhg==", - "type": "package", - "path": "microsoft.extensions.http.polly/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netstandard2.0/Microsoft.Extensions.Http.Polly.dll", - "lib/netstandard2.0/Microsoft.Extensions.Http.Polly.xml", - "microsoft.extensions.http.polly.3.1.5.nupkg.sha512", - "microsoft.extensions.http.polly.nuspec" - ] - }, - "Microsoft.Extensions.Logging/3.1.5": { - "sha512": "C85NYDym6xy03o70vxX+VQ4ZEjj5Eg5t5QoGW0t100vG5MmPL6+G3XXcQjIIn1WRQrjzGWzQwuKf38fxXEWIWA==", - "type": "package", - "path": "microsoft.extensions.logging/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Logging.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Logging.xml", - "lib/netstandard2.0/Microsoft.Extensions.Logging.dll", - "lib/netstandard2.0/Microsoft.Extensions.Logging.xml", - "microsoft.extensions.logging.3.1.5.nupkg.sha512", - "microsoft.extensions.logging.nuspec" - ] - }, - "Microsoft.Extensions.Logging.Abstractions/3.1.5": { - "sha512": "ZvwowjRSWXewdPI+whPFXgwF4Qme6Q9KV9SCPEITSGiqHLArct7q5hTBtTzj3GPsVLjTqehvTg6Bd/EQk9JS0A==", - "type": "package", - "path": "microsoft.extensions.logging.abstractions/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netstandard2.0/Microsoft.Extensions.Logging.Abstractions.dll", - "lib/netstandard2.0/Microsoft.Extensions.Logging.Abstractions.xml", - "microsoft.extensions.logging.abstractions.3.1.5.nupkg.sha512", - "microsoft.extensions.logging.abstractions.nuspec" - ] - }, - "Microsoft.Extensions.Logging.Configuration/3.1.5": { - "sha512": "I+9jx/A9cLdkTmynKMa2oR4rYAfe3n2F/wNVvKxwIk2J33paEU13Se08Q5xvQisqfbumaRUNF7BWHr63JzuuRw==", - "type": "package", - "path": "microsoft.extensions.logging.configuration/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Logging.Configuration.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Logging.Configuration.xml", - "lib/netstandard2.0/Microsoft.Extensions.Logging.Configuration.dll", - "lib/netstandard2.0/Microsoft.Extensions.Logging.Configuration.xml", - "microsoft.extensions.logging.configuration.3.1.5.nupkg.sha512", - "microsoft.extensions.logging.configuration.nuspec" - ] - }, - "Microsoft.Extensions.Logging.Console/3.1.5": { - "sha512": "c/W7d9sjgyU0/3txj/i6pC+8f25Jbua7zKhHVHidC5hHL4OX8fAxSGPBWYOsRN4tXqpd5VphNmIFUWyT12fMoA==", - "type": "package", - "path": "microsoft.extensions.logging.console/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Logging.Console.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Logging.Console.xml", - "lib/netstandard2.0/Microsoft.Extensions.Logging.Console.dll", - "lib/netstandard2.0/Microsoft.Extensions.Logging.Console.xml", - "microsoft.extensions.logging.console.3.1.5.nupkg.sha512", - "microsoft.extensions.logging.console.nuspec" - ] - }, - "Microsoft.Extensions.Logging.Debug/3.1.5": { - "sha512": "oDs0vlr6tNm0Z4U81eiCvnX+9zSP1CBAIGNAnpKidLb1KzbX26UGI627TfuIEtvW9wYiQWqZtmwMMK9WHE8Dqg==", - "type": "package", - "path": "microsoft.extensions.logging.debug/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Logging.Debug.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Logging.Debug.xml", - "lib/netstandard2.0/Microsoft.Extensions.Logging.Debug.dll", - "lib/netstandard2.0/Microsoft.Extensions.Logging.Debug.xml", - "microsoft.extensions.logging.debug.3.1.5.nupkg.sha512", - "microsoft.extensions.logging.debug.nuspec" - ] - }, - "Microsoft.Extensions.Options/3.1.5": { - "sha512": "f+JT/7lkKBMp/Ak2tVjO+TD7o+UoCfjnExkZNn0PZIso8kIXrqNy6x42Lrxf4Q0pW3JMf9ExmL2EQlvk2XnFAg==", - "type": "package", - "path": "microsoft.extensions.options/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Options.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Options.xml", - "lib/netstandard2.0/Microsoft.Extensions.Options.dll", - "lib/netstandard2.0/Microsoft.Extensions.Options.xml", - "microsoft.extensions.options.3.1.5.nupkg.sha512", - "microsoft.extensions.options.nuspec" - ] - }, - "Microsoft.Extensions.Options.ConfigurationExtensions/3.1.5": { - "sha512": "mgM+JHFeRg3zSRjScVADU/mohY8s0czKRTNT9oszWgX1mlw419yqP6ITCXovPopMXiqzRdkZ7AEuErX9K+ROww==", - "type": "package", - "path": "microsoft.extensions.options.configurationextensions/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Options.ConfigurationExtensions.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Options.ConfigurationExtensions.xml", - "lib/netstandard2.0/Microsoft.Extensions.Options.ConfigurationExtensions.dll", - "lib/netstandard2.0/Microsoft.Extensions.Options.ConfigurationExtensions.xml", - "microsoft.extensions.options.configurationextensions.3.1.5.nupkg.sha512", - "microsoft.extensions.options.configurationextensions.nuspec" - ] - }, - "Microsoft.Extensions.Primitives/3.1.5": { - "sha512": "6bLdjSAQix82oP2tsuX9MM2yjgUFFOkSZYyRSKoUULilw2cg0Y0H+dnugwYlfj8Jd7yjd/+QSdNBqEyYhTYv0w==", - "type": "package", - "path": "microsoft.extensions.primitives/3.1.5", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "lib/netcoreapp3.1/Microsoft.Extensions.Primitives.dll", - "lib/netcoreapp3.1/Microsoft.Extensions.Primitives.xml", - "lib/netstandard2.0/Microsoft.Extensions.Primitives.dll", - "lib/netstandard2.0/Microsoft.Extensions.Primitives.xml", - "microsoft.extensions.primitives.3.1.5.nupkg.sha512", - "microsoft.extensions.primitives.nuspec" - ] - }, - "Microsoft.NETCore.Platforms/1.1.0": { - "sha512": "kz0PEW2lhqygehI/d6XsPCQzD7ff7gUJaVGPVETX611eadGsA3A877GdSlU0LRVMCTH/+P3o2iDTak+S08V2+A==", - "type": "package", - "path": "microsoft.netcore.platforms/1.1.0", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "ThirdPartyNotices.txt", - "dotnet_library_license.txt", - "lib/netstandard1.0/_._", - "microsoft.netcore.platforms.1.1.0.nupkg.sha512", - "microsoft.netcore.platforms.nuspec", - "runtime.json" - ] - }, - "NETStandard.Library/2.0.3": { - "sha512": "st47PosZSHrjECdjeIzZQbzivYBJFv6P2nv4cj2ypdI204DO+vZ7l5raGMiX4eXMJ53RfOIg+/s4DHVZ54Nu2A==", - "type": "package", - "path": "netstandard.library/2.0.3", - "files": [ - ".nupkg.metadata", - "LICENSE.TXT", - "THIRD-PARTY-NOTICES.TXT", - "build/netstandard2.0/NETStandard.Library.targets", - "build/netstandard2.0/ref/Microsoft.Win32.Primitives.dll", - "build/netstandard2.0/ref/System.AppContext.dll", - "build/netstandard2.0/ref/System.Collections.Concurrent.dll", - "build/netstandard2.0/ref/System.Collections.NonGeneric.dll", - "build/netstandard2.0/ref/System.Collections.Specialized.dll", - "build/netstandard2.0/ref/System.Collections.dll", - "build/netstandard2.0/ref/System.ComponentModel.Composition.dll", - "build/netstandard2.0/ref/System.ComponentModel.EventBasedAsync.dll", - "build/netstandard2.0/ref/System.ComponentModel.Primitives.dll", - "build/netstandard2.0/ref/System.ComponentModel.TypeConverter.dll", - "build/netstandard2.0/ref/System.ComponentModel.dll", - "build/netstandard2.0/ref/System.Console.dll", - "build/netstandard2.0/ref/System.Core.dll", - "build/netstandard2.0/ref/System.Data.Common.dll", - "build/netstandard2.0/ref/System.Data.dll", - "build/netstandard2.0/ref/System.Diagnostics.Contracts.dll", - "build/netstandard2.0/ref/System.Diagnostics.Debug.dll", - "build/netstandard2.0/ref/System.Diagnostics.FileVersionInfo.dll", - "build/netstandard2.0/ref/System.Diagnostics.Process.dll", - "build/netstandard2.0/ref/System.Diagnostics.StackTrace.dll", - "build/netstandard2.0/ref/System.Diagnostics.TextWriterTraceListener.dll", - "build/netstandard2.0/ref/System.Diagnostics.Tools.dll", - "build/netstandard2.0/ref/System.Diagnostics.TraceSource.dll", - "build/netstandard2.0/ref/System.Diagnostics.Tracing.dll", - "build/netstandard2.0/ref/System.Drawing.Primitives.dll", - "build/netstandard2.0/ref/System.Drawing.dll", - "build/netstandard2.0/ref/System.Dynamic.Runtime.dll", - "build/netstandard2.0/ref/System.Globalization.Calendars.dll", - "build/netstandard2.0/ref/System.Globalization.Extensions.dll", - "build/netstandard2.0/ref/System.Globalization.dll", - "build/netstandard2.0/ref/System.IO.Compression.FileSystem.dll", - "build/netstandard2.0/ref/System.IO.Compression.ZipFile.dll", - "build/netstandard2.0/ref/System.IO.Compression.dll", - "build/netstandard2.0/ref/System.IO.FileSystem.DriveInfo.dll", - "build/netstandard2.0/ref/System.IO.FileSystem.Primitives.dll", - "build/netstandard2.0/ref/System.IO.FileSystem.Watcher.dll", - "build/netstandard2.0/ref/System.IO.FileSystem.dll", - "build/netstandard2.0/ref/System.IO.IsolatedStorage.dll", - "build/netstandard2.0/ref/System.IO.MemoryMappedFiles.dll", - "build/netstandard2.0/ref/System.IO.Pipes.dll", - "build/netstandard2.0/ref/System.IO.UnmanagedMemoryStream.dll", - "build/netstandard2.0/ref/System.IO.dll", - "build/netstandard2.0/ref/System.Linq.Expressions.dll", - "build/netstandard2.0/ref/System.Linq.Parallel.dll", - "build/netstandard2.0/ref/System.Linq.Queryable.dll", - "build/netstandard2.0/ref/System.Linq.dll", - "build/netstandard2.0/ref/System.Net.Http.dll", - "build/netstandard2.0/ref/System.Net.NameResolution.dll", - "build/netstandard2.0/ref/System.Net.NetworkInformation.dll", - "build/netstandard2.0/ref/System.Net.Ping.dll", - "build/netstandard2.0/ref/System.Net.Primitives.dll", - "build/netstandard2.0/ref/System.Net.Requests.dll", - "build/netstandard2.0/ref/System.Net.Security.dll", - "build/netstandard2.0/ref/System.Net.Sockets.dll", - "build/netstandard2.0/ref/System.Net.WebHeaderCollection.dll", - "build/netstandard2.0/ref/System.Net.WebSockets.Client.dll", - "build/netstandard2.0/ref/System.Net.WebSockets.dll", - "build/netstandard2.0/ref/System.Net.dll", - "build/netstandard2.0/ref/System.Numerics.dll", - "build/netstandard2.0/ref/System.ObjectModel.dll", - "build/netstandard2.0/ref/System.Reflection.Extensions.dll", - "build/netstandard2.0/ref/System.Reflection.Primitives.dll", - "build/netstandard2.0/ref/System.Reflection.dll", - "build/netstandard2.0/ref/System.Resources.Reader.dll", - "build/netstandard2.0/ref/System.Resources.ResourceManager.dll", - "build/netstandard2.0/ref/System.Resources.Writer.dll", - "build/netstandard2.0/ref/System.Runtime.CompilerServices.VisualC.dll", - "build/netstandard2.0/ref/System.Runtime.Extensions.dll", - "build/netstandard2.0/ref/System.Runtime.Handles.dll", - "build/netstandard2.0/ref/System.Runtime.InteropServices.RuntimeInformation.dll", - "build/netstandard2.0/ref/System.Runtime.InteropServices.dll", - "build/netstandard2.0/ref/System.Runtime.Numerics.dll", - "build/netstandard2.0/ref/System.Runtime.Serialization.Formatters.dll", - "build/netstandard2.0/ref/System.Runtime.Serialization.Json.dll", - "build/netstandard2.0/ref/System.Runtime.Serialization.Primitives.dll", - "build/netstandard2.0/ref/System.Runtime.Serialization.Xml.dll", - "build/netstandard2.0/ref/System.Runtime.Serialization.dll", - "build/netstandard2.0/ref/System.Runtime.dll", - "build/netstandard2.0/ref/System.Security.Claims.dll", - "build/netstandard2.0/ref/System.Security.Cryptography.Algorithms.dll", - "build/netstandard2.0/ref/System.Security.Cryptography.Csp.dll", - "build/netstandard2.0/ref/System.Security.Cryptography.Encoding.dll", - "build/netstandard2.0/ref/System.Security.Cryptography.Primitives.dll", - "build/netstandard2.0/ref/System.Security.Cryptography.X509Certificates.dll", - "build/netstandard2.0/ref/System.Security.Principal.dll", - "build/netstandard2.0/ref/System.Security.SecureString.dll", - "build/netstandard2.0/ref/System.ServiceModel.Web.dll", - "build/netstandard2.0/ref/System.Text.Encoding.Extensions.dll", - "build/netstandard2.0/ref/System.Text.Encoding.dll", - "build/netstandard2.0/ref/System.Text.RegularExpressions.dll", - "build/netstandard2.0/ref/System.Threading.Overlapped.dll", - "build/netstandard2.0/ref/System.Threading.Tasks.Parallel.dll", - "build/netstandard2.0/ref/System.Threading.Tasks.dll", - "build/netstandard2.0/ref/System.Threading.Thread.dll", - "build/netstandard2.0/ref/System.Threading.ThreadPool.dll", - "build/netstandard2.0/ref/System.Threading.Timer.dll", - "build/netstandard2.0/ref/System.Threading.dll", - "build/netstandard2.0/ref/System.Transactions.dll", - "build/netstandard2.0/ref/System.ValueTuple.dll", - "build/netstandard2.0/ref/System.Web.dll", - "build/netstandard2.0/ref/System.Windows.dll", - "build/netstandard2.0/ref/System.Xml.Linq.dll", - "build/netstandard2.0/ref/System.Xml.ReaderWriter.dll", - "build/netstandard2.0/ref/System.Xml.Serialization.dll", - "build/netstandard2.0/ref/System.Xml.XDocument.dll", - "build/netstandard2.0/ref/System.Xml.XPath.XDocument.dll", - "build/netstandard2.0/ref/System.Xml.XPath.dll", - "build/netstandard2.0/ref/System.Xml.XmlDocument.dll", - "build/netstandard2.0/ref/System.Xml.XmlSerializer.dll", - "build/netstandard2.0/ref/System.Xml.dll", - "build/netstandard2.0/ref/System.dll", - "build/netstandard2.0/ref/mscorlib.dll", - "build/netstandard2.0/ref/netstandard.dll", - "build/netstandard2.0/ref/netstandard.xml", - "lib/netstandard1.0/_._", - "netstandard.library.2.0.3.nupkg.sha512", - "netstandard.library.nuspec" - ] - }, - "Newtonsoft.Json/13.0.1": { - "sha512": "ppPFpBcvxdsfUonNcvITKqLl3bqxWbDCZIzDWHzjpdAHRFfZe0Dw9HmA0+za13IdyrgJwpkDTDA9fHaxOrt20A==", - "type": "package", - "path": "newtonsoft.json/13.0.1", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "LICENSE.md", - "lib/net20/Newtonsoft.Json.dll", - "lib/net20/Newtonsoft.Json.xml", - "lib/net35/Newtonsoft.Json.dll", - "lib/net35/Newtonsoft.Json.xml", - "lib/net40/Newtonsoft.Json.dll", - "lib/net40/Newtonsoft.Json.xml", - "lib/net45/Newtonsoft.Json.dll", - "lib/net45/Newtonsoft.Json.xml", - "lib/netstandard1.0/Newtonsoft.Json.dll", - "lib/netstandard1.0/Newtonsoft.Json.xml", - "lib/netstandard1.3/Newtonsoft.Json.dll", - "lib/netstandard1.3/Newtonsoft.Json.xml", - "lib/netstandard2.0/Newtonsoft.Json.dll", - "lib/netstandard2.0/Newtonsoft.Json.xml", - "newtonsoft.json.13.0.1.nupkg.sha512", - "newtonsoft.json.nuspec", - "packageIcon.png" - ] - }, - "Polly/7.1.0": { - "sha512": "mpQsvlEn4ipgICh5CGyVLPV93RFVzOrBG7wPZfzY8gExh7XgWQn0GCDY9nudbUEJ12UiGPP9i4+CohghBvzhmg==", - "type": "package", - "path": "polly/7.1.0", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "lib/netstandard1.1/Polly.dll", - "lib/netstandard1.1/Polly.xml", - "lib/netstandard2.0/Polly.dll", - "lib/netstandard2.0/Polly.xml", - "polly.7.1.0.nupkg.sha512", - "polly.nuspec" - ] - }, - "Polly.Extensions.Http/3.0.0": { - "sha512": "drrG+hB3pYFY7w1c3BD+lSGYvH2oIclH8GRSehgfyP5kjnFnHKQuuBhuHLv+PWyFuaTDyk/vfRpnxOzd11+J8g==", - "type": "package", - "path": "polly.extensions.http/3.0.0", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "lib/netstandard1.1/Polly.Extensions.Http.dll", - "lib/netstandard1.1/Polly.Extensions.Http.xml", - "lib/netstandard2.0/Polly.Extensions.Http.dll", - "lib/netstandard2.0/Polly.Extensions.Http.xml", - "polly.extensions.http.3.0.0.nupkg.sha512", - "polly.extensions.http.nuspec" - ] - }, - "System.Buffers/4.4.0": { - "sha512": "AwarXzzoDwX6BgrhjoJsk6tUezZEozOT5Y9QKF94Gl4JK91I4PIIBkBco9068Y9/Dra8Dkbie99kXB8+1BaYKw==", - "type": "package", - "path": "system.buffers/4.4.0", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "LICENSE.TXT", - "THIRD-PARTY-NOTICES.TXT", - "lib/netcoreapp2.0/_._", - "lib/netstandard1.1/System.Buffers.dll", - "lib/netstandard1.1/System.Buffers.xml", - "lib/netstandard2.0/System.Buffers.dll", - "lib/netstandard2.0/System.Buffers.xml", - "ref/netcoreapp2.0/_._", - "ref/netstandard1.1/System.Buffers.dll", - "ref/netstandard1.1/System.Buffers.xml", - "ref/netstandard2.0/System.Buffers.dll", - "ref/netstandard2.0/System.Buffers.xml", - "system.buffers.4.4.0.nupkg.sha512", - "system.buffers.nuspec", - "useSharedDesignerContext.txt", - "version.txt" - ] - }, - "System.ComponentModel.Annotations/4.7.0": { - "sha512": "0YFqjhp/mYkDGpU0Ye1GjE53HMp9UVfGN7seGpAMttAC0C40v5gw598jCgpbBLMmCo0E5YRLBv5Z2doypO49ZQ==", - "type": "package", - "path": "system.componentmodel.annotations/4.7.0", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "LICENSE.TXT", - "THIRD-PARTY-NOTICES.TXT", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net45/_._", - "lib/net461/System.ComponentModel.Annotations.dll", - "lib/netcore50/System.ComponentModel.Annotations.dll", - "lib/netstandard1.4/System.ComponentModel.Annotations.dll", - "lib/netstandard2.0/System.ComponentModel.Annotations.dll", - "lib/netstandard2.1/System.ComponentModel.Annotations.dll", - "lib/netstandard2.1/System.ComponentModel.Annotations.xml", - "lib/portable-net45+win8/_._", - "lib/win8/_._", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net45/_._", - "ref/net461/System.ComponentModel.Annotations.dll", - "ref/net461/System.ComponentModel.Annotations.xml", - "ref/netcore50/System.ComponentModel.Annotations.dll", - "ref/netcore50/System.ComponentModel.Annotations.xml", - "ref/netcore50/de/System.ComponentModel.Annotations.xml", - "ref/netcore50/es/System.ComponentModel.Annotations.xml", - "ref/netcore50/fr/System.ComponentModel.Annotations.xml", - "ref/netcore50/it/System.ComponentModel.Annotations.xml", - "ref/netcore50/ja/System.ComponentModel.Annotations.xml", - "ref/netcore50/ko/System.ComponentModel.Annotations.xml", - "ref/netcore50/ru/System.ComponentModel.Annotations.xml", - "ref/netcore50/zh-hans/System.ComponentModel.Annotations.xml", - "ref/netcore50/zh-hant/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/System.ComponentModel.Annotations.dll", - "ref/netstandard1.1/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/de/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/es/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/fr/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/it/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/ja/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/ko/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/ru/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/zh-hans/System.ComponentModel.Annotations.xml", - "ref/netstandard1.1/zh-hant/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/System.ComponentModel.Annotations.dll", - "ref/netstandard1.3/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/de/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/es/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/fr/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/it/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/ja/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/ko/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/ru/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/zh-hans/System.ComponentModel.Annotations.xml", - "ref/netstandard1.3/zh-hant/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/System.ComponentModel.Annotations.dll", - "ref/netstandard1.4/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/de/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/es/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/fr/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/it/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/ja/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/ko/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/ru/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/zh-hans/System.ComponentModel.Annotations.xml", - "ref/netstandard1.4/zh-hant/System.ComponentModel.Annotations.xml", - "ref/netstandard2.0/System.ComponentModel.Annotations.dll", - "ref/netstandard2.0/System.ComponentModel.Annotations.xml", - "ref/netstandard2.1/System.ComponentModel.Annotations.dll", - "ref/netstandard2.1/System.ComponentModel.Annotations.xml", - "ref/portable-net45+win8/_._", - "ref/win8/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._", - "system.componentmodel.annotations.4.7.0.nupkg.sha512", - "system.componentmodel.annotations.nuspec", - "useSharedDesignerContext.txt", - "version.txt" - ] - }, - "System.Memory/4.5.2": { - "sha512": "fvq1GNmUFwbKv+aLVYYdgu/+gc8Nu9oFujOxIjPrsf+meis9JBzTPDL6aP/eeGOz9yPj6rRLUbOjKMpsMEWpNg==", - "type": "package", - "path": "system.memory/4.5.2", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "LICENSE.TXT", - "THIRD-PARTY-NOTICES.TXT", - "lib/netcoreapp2.1/_._", - "lib/netstandard1.1/System.Memory.dll", - "lib/netstandard1.1/System.Memory.xml", - "lib/netstandard2.0/System.Memory.dll", - "lib/netstandard2.0/System.Memory.xml", - "ref/netcoreapp2.1/_._", - "system.memory.4.5.2.nupkg.sha512", - "system.memory.nuspec", - "useSharedDesignerContext.txt", - "version.txt" - ] - }, - "System.Numerics.Vectors/4.4.0": { - "sha512": "UiLzLW+Lw6HLed1Hcg+8jSRttrbuXv7DANVj0DkL9g6EnnzbL75EB7EWsw5uRbhxd/4YdG8li5XizGWepmG3PQ==", - "type": "package", - "path": "system.numerics.vectors/4.4.0", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "LICENSE.TXT", - "THIRD-PARTY-NOTICES.TXT", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net46/System.Numerics.Vectors.dll", - "lib/net46/System.Numerics.Vectors.xml", - "lib/netcoreapp2.0/_._", - "lib/netstandard1.0/System.Numerics.Vectors.dll", - "lib/netstandard1.0/System.Numerics.Vectors.xml", - "lib/netstandard2.0/System.Numerics.Vectors.dll", - "lib/netstandard2.0/System.Numerics.Vectors.xml", - "lib/portable-net45+win8+wp8+wpa81/System.Numerics.Vectors.dll", - "lib/portable-net45+win8+wp8+wpa81/System.Numerics.Vectors.xml", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net46/System.Numerics.Vectors.dll", - "ref/net46/System.Numerics.Vectors.xml", - "ref/netcoreapp2.0/_._", - "ref/netstandard1.0/System.Numerics.Vectors.dll", - "ref/netstandard1.0/System.Numerics.Vectors.xml", - "ref/netstandard2.0/System.Numerics.Vectors.dll", - "ref/netstandard2.0/System.Numerics.Vectors.xml", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._", - "system.numerics.vectors.4.4.0.nupkg.sha512", - "system.numerics.vectors.nuspec", - "useSharedDesignerContext.txt", - "version.txt" - ] - }, - "System.Runtime.CompilerServices.Unsafe/4.7.1": { - "sha512": "zOHkQmzPCn5zm/BH+cxC1XbUS3P4Yoi3xzW7eRgVpDR2tPGSzyMZ17Ig1iRkfJuY0nhxkQQde8pgePNiA7z7TQ==", - "type": "package", - "path": "system.runtime.compilerservices.unsafe/4.7.1", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "Icon.png", - "LICENSE.TXT", - "THIRD-PARTY-NOTICES.TXT", - "lib/net461/System.Runtime.CompilerServices.Unsafe.dll", - "lib/net461/System.Runtime.CompilerServices.Unsafe.xml", - "lib/netcoreapp2.0/System.Runtime.CompilerServices.Unsafe.dll", - "lib/netcoreapp2.0/System.Runtime.CompilerServices.Unsafe.xml", - "lib/netstandard1.0/System.Runtime.CompilerServices.Unsafe.dll", - "lib/netstandard1.0/System.Runtime.CompilerServices.Unsafe.xml", - "lib/netstandard2.0/System.Runtime.CompilerServices.Unsafe.dll", - "lib/netstandard2.0/System.Runtime.CompilerServices.Unsafe.xml", - "ref/net461/System.Runtime.CompilerServices.Unsafe.dll", - "ref/net461/System.Runtime.CompilerServices.Unsafe.xml", - "ref/netstandard1.0/System.Runtime.CompilerServices.Unsafe.dll", - "ref/netstandard1.0/System.Runtime.CompilerServices.Unsafe.xml", - "ref/netstandard2.0/System.Runtime.CompilerServices.Unsafe.dll", - "ref/netstandard2.0/System.Runtime.CompilerServices.Unsafe.xml", - "system.runtime.compilerservices.unsafe.4.7.1.nupkg.sha512", - "system.runtime.compilerservices.unsafe.nuspec", - "useSharedDesignerContext.txt", - "version.txt" - ] - }, - "System.Threading.Tasks.Extensions/4.5.4": { - "sha512": "zteT+G8xuGu6mS+mzDzYXbzS7rd3K6Fjb9RiZlYlJPam2/hU7JCBZBVEcywNuR+oZ1ncTvc/cq0faRr3P01OVg==", - "type": "package", - "path": "system.threading.tasks.extensions/4.5.4", - "files": [ - ".nupkg.metadata", - ".signature.p7s", - "LICENSE.TXT", - "THIRD-PARTY-NOTICES.TXT", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net461/System.Threading.Tasks.Extensions.dll", - "lib/net461/System.Threading.Tasks.Extensions.xml", - "lib/netcoreapp2.1/_._", - "lib/netstandard1.0/System.Threading.Tasks.Extensions.dll", - "lib/netstandard1.0/System.Threading.Tasks.Extensions.xml", - "lib/netstandard2.0/System.Threading.Tasks.Extensions.dll", - "lib/netstandard2.0/System.Threading.Tasks.Extensions.xml", - "lib/portable-net45+win8+wp8+wpa81/System.Threading.Tasks.Extensions.dll", - "lib/portable-net45+win8+wp8+wpa81/System.Threading.Tasks.Extensions.xml", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/netcoreapp2.1/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._", - "system.threading.tasks.extensions.4.5.4.nupkg.sha512", - "system.threading.tasks.extensions.nuspec", - "useSharedDesignerContext.txt", - "version.txt" - ] - } - }, - "projectFileDependencyGroups": { - ".NETStandard,Version=v2.0": [ - "HuaweiCloud.SDK.Core >= 3.1.11", - "NETStandard.Library >= 2.0.3", - "Newtonsoft.Json >= 13.0.1" - ] - }, - "packageFolders": { - "/root/.nuget/packages/": {}, - "/usr/dotnet2/sdk/NuGetFallbackFolder": {} - }, - "project": { - "version": "0.0.2-beta", - "restore": { - "projectUniqueName": "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Vpc/Vpc.csproj", - "projectName": "G42Cloud.SDK.Vpc", - "projectPath": "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Vpc/Vpc.csproj", - "packagesPath": "/root/.nuget/packages/", - "outputPath": "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86/Services/Vpc/obj/", - "projectStyle": "PackageReference", - "fallbackFolders": [ - "/usr/dotnet2/sdk/NuGetFallbackFolder" - ], - "configFilePaths": [ - "/root/.nuget/NuGet/NuGet.Config" - ], - "originalTargetFrameworks": [ - "netstandard2.0" - ], - "sources": { - "/data/fuxi_ci_workspace/6385c73d275b097b2bc44b86": {} - }, - "frameworks": { - "netstandard2.0": { - "projectReferences": {} - } - }, - "warningProperties": { - "warnAsError": [ - "NU1605" - ] - } - }, - "frameworks": { - "netstandard2.0": { - "dependencies": { - "HuaweiCloud.SDK.Core": { - "target": "Package", - "version": "[3.1.11, )" - }, - "NETStandard.Library": { - "suppressParent": "All", - "target": "Package", - "version": "[2.0.3, )", - "autoReferenced": true - }, - "Newtonsoft.Json": { - "target": "Package", - "version": "[13.0.1, )" - } - }, - "imports": [ - "net461" - ], - "assetTargetFallback": true, - "warn": true - } - } - } -} \ No newline at end of file