Class Service
Class representing a service definition.
Inherited Members
Namespace: Oci.Common
Assembly: OCI.DotNetSDK.Common.dll
Syntax
public class Service
Properties
EndpointServiceName
Declaration
public string EndpointServiceName { get; set; }
Property Value
Type | Description |
---|---|
string |
ServiceEndpointPrefix
Declaration
[Required(ErrorMessage = "ServiceEndpointPrefix is required.")]
public string ServiceEndpointPrefix { get; set; }
Property Value
Type | Description |
---|---|
string |
ServiceEndpointTemplate
Declaration
public string ServiceEndpointTemplate { get; set; }
Property Value
Type | Description |
---|---|
string |
ServiceName
Declaration
[Required(ErrorMessage = "ServiceName is required.")]
public string ServiceName { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
AddServiceEndpointTemplateForRealm(string, string)
This method adds service endpoint templates for the realm to a dictionary
Declaration
public void AddServiceEndpointTemplateForRealm(string realmId, string endpoint)
Parameters
Type | Name | Description |
---|---|---|
string | realmId | The Realm Id for which the Service endpoint template is defined in spec |
string | endpoint | The service endpoint to use for this Realm Id |
Equals(Service)
Checks if the given service is the same.
Declaration
public bool Equals(Service service)
Parameters
Type | Name | Description |
---|---|---|
Service | service | The service to check |
Returns
Type | Description |
---|---|
bool | True is the given service contains the same information; false if not. |
GetServiceEndpointTemplateForRealmDictionary()
This method returns the dictionary of Realm Id to service Endpoints to use for Requests if defined by the service in their spec.
Declaration
public Dictionary<string, string> GetServiceEndpointTemplateForRealmDictionary()
Returns
Type | Description |
---|---|
Dictionary<string, string> | A dic |
ToString()
Returns a string showing service information.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A string containing service name, endpoint prfix, and endpoint template. |