public class LicenseCodesClient : ClientBase<LicenseCodes.LicenseCodesClient>
Client for LicenseCodes
Inheritance
Object > ClientBase > ClientBase<LicenseCodes.LicenseCodesClient> > LicenseCodes.LicenseCodesClientNamespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Constructors
LicenseCodesClient()
protected LicenseCodesClient()
Protected parameterless constructor to allow creation of test doubles.
LicenseCodesClient(CallInvoker)
public LicenseCodesClient(CallInvoker callInvoker)
Creates a new client for LicenseCodes that uses a custom CallInvoker
.
Parameter | |
---|---|
Name | Description |
callInvoker | CallInvoker The callInvoker to use to make remote calls. |
LicenseCodesClient(ChannelBase)
public LicenseCodesClient(ChannelBase channel)
Creates a new client for LicenseCodes
Parameter | |
---|---|
Name | Description |
channel | ChannelBase The channel to use to make remote calls. |
LicenseCodesClient(ClientBase.ClientBaseConfiguration)
protected LicenseCodesClient(ClientBase.ClientBaseConfiguration configuration)
Protected constructor to allow creation of configured clients.
Parameter | |
---|---|
Name | Description |
configuration | ClientBase.ClientBaseConfiguration The client configuration. |
Methods
Get(GetLicenseCodeRequest, CallOptions)
public virtual LicenseCode Get(GetLicenseCodeRequest request, CallOptions options)
Return a specified license code. License codes are mirrored across all projects that have permissions to read the License Code. Caution This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.
Parameters | |
---|---|
Name | Description |
request | GetLicenseCodeRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
LicenseCode | The response received from the server. |
Get(GetLicenseCodeRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual LicenseCode Get(GetLicenseCodeRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Return a specified license code. License codes are mirrored across all projects that have permissions to read the License Code. Caution This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.
Parameters | |
---|---|
Name | Description |
request | GetLicenseCodeRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
LicenseCode | The response received from the server. |
GetAsync(GetLicenseCodeRequest, CallOptions)
public virtual AsyncUnaryCall<LicenseCode> GetAsync(GetLicenseCodeRequest request, CallOptions options)
Return a specified license code. License codes are mirrored across all projects that have permissions to read the License Code. Caution This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.
Parameters | |
---|---|
Name | Description |
request | GetLicenseCodeRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<LicenseCode> | The call object. |
GetAsync(GetLicenseCodeRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<LicenseCode> GetAsync(GetLicenseCodeRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Return a specified license code. License codes are mirrored across all projects that have permissions to read the License Code. Caution This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.
Parameters | |
---|---|
Name | Description |
request | GetLicenseCodeRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<LicenseCode> | The call object. |
NewInstance(ClientBase.ClientBaseConfiguration)
protected override LicenseCodes.LicenseCodesClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Creates a new instance of client from given ClientBaseConfiguration
.
Parameter | |
---|---|
Name | Description |
configuration | ClientBase.ClientBaseConfiguration |
Returns | |
---|---|
Type | Description |
LicenseCodes.LicenseCodesClient |
TestIamPermissions(TestIamPermissionsLicenseCodeRequest, CallOptions)
public virtual TestPermissionsResponse TestIamPermissions(TestIamPermissionsLicenseCodeRequest request, CallOptions options)
Returns permissions that a caller has on the specified resource. Caution This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.
Parameters | |
---|---|
Name | Description |
request | TestIamPermissionsLicenseCodeRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
TestPermissionsResponse | The response received from the server. |
TestIamPermissions(TestIamPermissionsLicenseCodeRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual TestPermissionsResponse TestIamPermissions(TestIamPermissionsLicenseCodeRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Returns permissions that a caller has on the specified resource. Caution This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.
Parameters | |
---|---|
Name | Description |
request | TestIamPermissionsLicenseCodeRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
TestPermissionsResponse | The response received from the server. |
TestIamPermissionsAsync(TestIamPermissionsLicenseCodeRequest, CallOptions)
public virtual AsyncUnaryCall<TestPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsLicenseCodeRequest request, CallOptions options)
Returns permissions that a caller has on the specified resource. Caution This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.
Parameters | |
---|---|
Name | Description |
request | TestIamPermissionsLicenseCodeRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<TestPermissionsResponse> | The call object. |
TestIamPermissionsAsync(TestIamPermissionsLicenseCodeRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<TestPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsLicenseCodeRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Returns permissions that a caller has on the specified resource. Caution This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.
Parameters | |
---|---|
Name | Description |
request | TestIamPermissionsLicenseCodeRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<TestPermissionsResponse> | The call object. |