apis.service_accounts.Service_accountsRequestBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of service-accounts-sdk Show documentation
Show all versions of service-accounts-sdk Show documentation
Service Accounts SDK for RHOAS API supports interaction with Service Accounts
The newest version!
package com.openshift.cloud.api.serviceaccounts.apis.service_accounts;
import com.microsoft.kiota.RequestAdapter;
import com.openshift.cloud.api.serviceaccounts.apis.service_accounts.v1.item.V1ItemRequestBuilder;
import com.openshift.cloud.api.serviceaccounts.apis.service_accounts.v1.V1RequestBuilder;
import java.util.HashMap;
import java.util.Objects;
/**
* Builds and executes requests for operations under /apis/service_accounts
*/
public class Service_accountsRequestBuilder {
/** Path parameters for the request */
private HashMap pathParameters;
/** The request adapter to use to execute the requests. */
private RequestAdapter requestAdapter;
/** Url template to use to build the URL for the current request builder */
private String urlTemplate;
/** The v1 property */
@javax.annotation.Nonnull
public V1RequestBuilder v1() {
return new V1RequestBuilder(pathParameters, requestAdapter);
}
/**
* Instantiates a new Service_accountsRequestBuilder and sets the default values.
* @param pathParameters Path parameters for the request
* @param requestAdapter The request adapter to use to execute the requests.
* @return a void
*/
@javax.annotation.Nullable
public Service_accountsRequestBuilder(@javax.annotation.Nonnull final HashMap pathParameters, @javax.annotation.Nonnull final RequestAdapter requestAdapter) {
Objects.requireNonNull(pathParameters);
Objects.requireNonNull(requestAdapter);
this.urlTemplate = "{+baseurl}/apis/service_accounts";
final HashMap urlTplParams = new HashMap(pathParameters);
this.pathParameters = urlTplParams;
this.requestAdapter = requestAdapter;
}
/**
* Instantiates a new Service_accountsRequestBuilder and sets the default values.
* @param rawUrl The raw URL to use for the request builder.
* @param requestAdapter The request adapter to use to execute the requests.
* @return a void
*/
@javax.annotation.Nullable
public Service_accountsRequestBuilder(@javax.annotation.Nonnull final String rawUrl, @javax.annotation.Nonnull final RequestAdapter requestAdapter) {
this.urlTemplate = "{+baseurl}/apis/service_accounts";
final HashMap urlTplParams = new HashMap();
urlTplParams.put("request-raw-url", rawUrl);
this.pathParameters = urlTplParams;
this.requestAdapter = requestAdapter;
}
/**
* Gets an item from the com.openshift.cloud.api.serviceaccounts.apis.service_accounts.v1.item collection
* @param id Unique identifier of the item
* @return a V1ItemRequestBuilder
*/
@javax.annotation.Nonnull
public V1ItemRequestBuilder v1(@javax.annotation.Nonnull final String id) {
Objects.requireNonNull(id);
final HashMap urlTplParams = new HashMap(this.pathParameters);
urlTplParams.put("id", id);
return new V1ItemRequestBuilder(urlTplParams, requestAdapter);
}
}