コード例 #1
0
        public async Task <EntityShortRepresentation> UpdateCloudFoundryCredentialsAsync(string id, CloudFoundryCredentials body, CancellationToken cancellationToken = default)
        {
            var response = await GetCloudFoundryCredentialsUrl()
                           .AppendPathSegment(id)
                           .PutJsonAsync(body, cancellationToken)
                           .ReceiveJsonWithErrorChecking <EntityShortRepresentation>()
                           .ConfigureAwait(false);

            return(response);
        }
コード例 #2
0
        public async Task <EntityShortRepresentation> AddCloudFoundryCredentialsAsync(CloudFoundryCredentials body, CancellationToken cancellationToken = default)
        {
            var response = await GetCloudFoundryCredentialsUrl()
                           .PostJsonAsync(body, cancellationToken)
                           .ReceiveJsonWithErrorChecking <EntityShortRepresentation>()
                           .ConfigureAwait(false);

            return(response);
        }