id int32 0 165k | repo stringlengths 7 58 | path stringlengths 12 218 | func_name stringlengths 3 140 | original_string stringlengths 73 34.1k | language stringclasses 1
value | code stringlengths 73 34.1k | code_tokens list | docstring stringlengths 3 16k | docstring_tokens list | sha stringlengths 40 40 | url stringlengths 105 339 |
|---|---|---|---|---|---|---|---|---|---|---|---|
58,700 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequest.java | BoxRequest.importRequestContentMapsFrom | protected void importRequestContentMapsFrom(BoxRequest source) {
this.mQueryMap = new HashMap<String, String>(source.mQueryMap);
this.mBodyMap = new LinkedHashMap<String, Object>(source.mBodyMap);
} | java | protected void importRequestContentMapsFrom(BoxRequest source) {
this.mQueryMap = new HashMap<String, String>(source.mQueryMap);
this.mBodyMap = new LinkedHashMap<String, Object>(source.mBodyMap);
} | [
"protected",
"void",
"importRequestContentMapsFrom",
"(",
"BoxRequest",
"source",
")",
"{",
"this",
".",
"mQueryMap",
"=",
"new",
"HashMap",
"<",
"String",
",",
"String",
">",
"(",
"source",
".",
"mQueryMap",
")",
";",
"this",
".",
"mBodyMap",
"=",
"new",
... | Copies data from query and body maps into the current request.
@param source the request to copy data from. | [
"Copies",
"data",
"from",
"query",
"and",
"body",
"maps",
"into",
"the",
"current",
"request",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequest.java#L121-L124 |
58,701 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequest.java | BoxRequest.send | public final T send() throws BoxException {
Exception ex = null;
T result = null;
try {
result = onSend();
} catch (Exception e){
ex = e;
}
// We catch the exception so that onSendCompleted can be called in case additional actions need to be taken... | java | public final T send() throws BoxException {
Exception ex = null;
T result = null;
try {
result = onSend();
} catch (Exception e){
ex = e;
}
// We catch the exception so that onSendCompleted can be called in case additional actions need to be taken... | [
"public",
"final",
"T",
"send",
"(",
")",
"throws",
"BoxException",
"{",
"Exception",
"ex",
"=",
"null",
";",
"T",
"result",
"=",
"null",
";",
"try",
"{",
"result",
"=",
"onSend",
"(",
")",
";",
"}",
"catch",
"(",
"Exception",
"e",
")",
"{",
"ex",
... | Synchronously make the request to Box and handle the response appropriately.
@return the expected BoxObject if the request is successful.
@throws BoxException thrown if there was a problem with handling the request. | [
"Synchronously",
"make",
"the",
"request",
"to",
"Box",
"and",
"handle",
"the",
"response",
"appropriately",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequest.java#L189-L208 |
58,702 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequest.java | BoxRequest.getStringBody | public String getStringBody() throws UnsupportedEncodingException {
if (mStringBody != null)
return mStringBody;
if (mContentType != null) {
switch (mContentType) {
case JSON:
JsonObject jsonBody = new JsonObject();
for (Ma... | java | public String getStringBody() throws UnsupportedEncodingException {
if (mStringBody != null)
return mStringBody;
if (mContentType != null) {
switch (mContentType) {
case JSON:
JsonObject jsonBody = new JsonObject();
for (Ma... | [
"public",
"String",
"getStringBody",
"(",
")",
"throws",
"UnsupportedEncodingException",
"{",
"if",
"(",
"mStringBody",
"!=",
"null",
")",
"return",
"mStringBody",
";",
"if",
"(",
"mContentType",
"!=",
"null",
")",
"{",
"switch",
"(",
"mContentType",
")",
"{",... | Gets the string body for the request.
@return the string body associated with this request.
@throws UnsupportedEncodingException thrown if there was a problem with the encoding of the body. | [
"Gets",
"the",
"string",
"body",
"for",
"the",
"request",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequest.java#L411-L438 |
58,703 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequest.java | BoxRequest.handleToTaskForCachedResult | protected <R extends BoxRequest & BoxCacheableRequest> BoxFutureTask<T> handleToTaskForCachedResult() throws BoxException {
BoxCache cache = BoxConfig.getCache();
if (cache == null) {
throw new BoxException.CacheImplementationNotFound();
}
return new BoxCacheFutureTask<T, R>... | java | protected <R extends BoxRequest & BoxCacheableRequest> BoxFutureTask<T> handleToTaskForCachedResult() throws BoxException {
BoxCache cache = BoxConfig.getCache();
if (cache == null) {
throw new BoxException.CacheImplementationNotFound();
}
return new BoxCacheFutureTask<T, R>... | [
"protected",
"<",
"R",
"extends",
"BoxRequest",
"&",
"BoxCacheableRequest",
">",
"BoxFutureTask",
"<",
"T",
">",
"handleToTaskForCachedResult",
"(",
")",
"throws",
"BoxException",
"{",
"BoxCache",
"cache",
"=",
"BoxConfig",
".",
"getCache",
"(",
")",
";",
"if",
... | Default implementation for getting a task to execute the request.
@param <R> A BoxRequest that implements BoxCaceableRequest
@return The task used to get data from cache implementation.
@throws BoxException thrown if there is no cache implementation set in BoxConfig. | [
"Default",
"implementation",
"for",
"getting",
"a",
"task",
"to",
"execute",
"the",
"request",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequest.java#L542-L549 |
58,704 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequest.java | BoxRequest.handleUpdateCache | protected void handleUpdateCache(BoxResponse<T> response) throws BoxException {
BoxCache cache = BoxConfig.getCache();
if (cache != null) {
cache.put(response);
}
} | java | protected void handleUpdateCache(BoxResponse<T> response) throws BoxException {
BoxCache cache = BoxConfig.getCache();
if (cache != null) {
cache.put(response);
}
} | [
"protected",
"void",
"handleUpdateCache",
"(",
"BoxResponse",
"<",
"T",
">",
"response",
")",
"throws",
"BoxException",
"{",
"BoxCache",
"cache",
"=",
"BoxConfig",
".",
"getCache",
"(",
")",
";",
"if",
"(",
"cache",
"!=",
"null",
")",
"{",
"cache",
".",
... | If available, makes a call to update the cache with the provided result
@param response the new result to update the cache with
@throws BoxException thrown if there was an issue updating cache for given response. | [
"If",
"available",
"makes",
"a",
"call",
"to",
"update",
"the",
"cache",
"with",
"the",
"provided",
"result"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequest.java#L558-L563 |
58,705 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequest.java | BoxRequest.getSocket | protected Socket getSocket(){
if (mSocketFactoryRef != null && mSocketFactoryRef.get() != null) {
return ((SSLSocketFactoryWrapper)mSocketFactoryRef.get()).getSocket();
}
return null;
} | java | protected Socket getSocket(){
if (mSocketFactoryRef != null && mSocketFactoryRef.get() != null) {
return ((SSLSocketFactoryWrapper)mSocketFactoryRef.get()).getSocket();
}
return null;
} | [
"protected",
"Socket",
"getSocket",
"(",
")",
"{",
"if",
"(",
"mSocketFactoryRef",
"!=",
"null",
"&&",
"mSocketFactoryRef",
".",
"get",
"(",
")",
"!=",
"null",
")",
"{",
"return",
"(",
"(",
"SSLSocketFactoryWrapper",
")",
"mSocketFactoryRef",
".",
"get",
"("... | This method requires mRequiresSocket to be set to true before connecting.
@return the socket that ran this request if one was created for it. | [
"This",
"method",
"requires",
"mRequiresSocket",
"to",
"be",
"set",
"to",
"true",
"before",
"connecting",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequest.java#L894-L899 |
58,706 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/auth/BoxAuthentication.java | BoxAuthentication.getAuthInfo | public BoxAuthenticationInfo getAuthInfo(String userId, Context context) {
return userId == null ? null : getAuthInfoMap(context).get(userId);
} | java | public BoxAuthenticationInfo getAuthInfo(String userId, Context context) {
return userId == null ? null : getAuthInfoMap(context).get(userId);
} | [
"public",
"BoxAuthenticationInfo",
"getAuthInfo",
"(",
"String",
"userId",
",",
"Context",
"context",
")",
"{",
"return",
"userId",
"==",
"null",
"?",
"null",
":",
"getAuthInfoMap",
"(",
"context",
")",
".",
"get",
"(",
"userId",
")",
";",
"}"
] | Get the BoxAuthenticationInfo for a given user.
@param userId the user id to get auth info for.
@param context current context used for accessing resource.
@return the BoxAuthenticationInfo for a given user. | [
"Get",
"the",
"BoxAuthenticationInfo",
"for",
"a",
"given",
"user",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/auth/BoxAuthentication.java#L83-L85 |
58,707 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/auth/BoxAuthentication.java | BoxAuthentication.onAuthenticated | public void onAuthenticated(BoxAuthenticationInfo infoOriginal, Context context) {
BoxAuthenticationInfo info = BoxAuthenticationInfo.unmodifiableObject(infoOriginal);
if (!SdkUtils.isBlank(info.accessToken()) && (info.getUser() == null || SdkUtils.isBlank(info.getUser().getId()))){
// insuf... | java | public void onAuthenticated(BoxAuthenticationInfo infoOriginal, Context context) {
BoxAuthenticationInfo info = BoxAuthenticationInfo.unmodifiableObject(infoOriginal);
if (!SdkUtils.isBlank(info.accessToken()) && (info.getUser() == null || SdkUtils.isBlank(info.getUser().getId()))){
// insuf... | [
"public",
"void",
"onAuthenticated",
"(",
"BoxAuthenticationInfo",
"infoOriginal",
",",
"Context",
"context",
")",
"{",
"BoxAuthenticationInfo",
"info",
"=",
"BoxAuthenticationInfo",
".",
"unmodifiableObject",
"(",
"infoOriginal",
")",
";",
"if",
"(",
"!",
"SdkUtils",... | Callback method to be called when authentication process finishes.
@param infoOriginal the authentication information that successfully authenticated.
@param context the current application context (that can be used to launch ui or access resources). | [
"Callback",
"method",
"to",
"be",
"called",
"when",
"authentication",
"process",
"finishes",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/auth/BoxAuthentication.java#L158-L173 |
58,708 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/auth/BoxAuthentication.java | BoxAuthentication.onAuthenticationFailure | public void onAuthenticationFailure(BoxAuthenticationInfo infoOriginal, Exception ex) {
String msg = "failure:";
if (getAuthStorage() != null) {
msg += "auth storage :" + getAuthStorage().toString();
}
BoxAuthenticationInfo info = BoxAuthenticationInfo.unmodifiableObject(info... | java | public void onAuthenticationFailure(BoxAuthenticationInfo infoOriginal, Exception ex) {
String msg = "failure:";
if (getAuthStorage() != null) {
msg += "auth storage :" + getAuthStorage().toString();
}
BoxAuthenticationInfo info = BoxAuthenticationInfo.unmodifiableObject(info... | [
"public",
"void",
"onAuthenticationFailure",
"(",
"BoxAuthenticationInfo",
"infoOriginal",
",",
"Exception",
"ex",
")",
"{",
"String",
"msg",
"=",
"\"failure:\"",
";",
"if",
"(",
"getAuthStorage",
"(",
")",
"!=",
"null",
")",
"{",
"msg",
"+=",
"\"auth storage :\... | Callback method to be called if authentication process fails.
@param infoOriginal the authentication information associated with the failed authentication.
@param ex the exception if appliable that caused the logout. | [
"Callback",
"method",
"to",
"be",
"called",
"if",
"authentication",
"process",
"fails",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/auth/BoxAuthentication.java#L180-L195 |
58,709 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/auth/BoxAuthentication.java | BoxAuthentication.onLoggedOut | public void onLoggedOut(BoxAuthenticationInfo infoOriginal, Exception ex) {
BoxAuthenticationInfo info = BoxAuthenticationInfo.unmodifiableObject(infoOriginal);
Set<AuthListener> listeners = getListeners();
for (AuthListener listener : listeners) {
listener.onLoggedOut(info, ex);
... | java | public void onLoggedOut(BoxAuthenticationInfo infoOriginal, Exception ex) {
BoxAuthenticationInfo info = BoxAuthenticationInfo.unmodifiableObject(infoOriginal);
Set<AuthListener> listeners = getListeners();
for (AuthListener listener : listeners) {
listener.onLoggedOut(info, ex);
... | [
"public",
"void",
"onLoggedOut",
"(",
"BoxAuthenticationInfo",
"infoOriginal",
",",
"Exception",
"ex",
")",
"{",
"BoxAuthenticationInfo",
"info",
"=",
"BoxAuthenticationInfo",
".",
"unmodifiableObject",
"(",
"infoOriginal",
")",
";",
"Set",
"<",
"AuthListener",
">",
... | Callback method to be called on logout.
@param infoOriginal the authentication information associated with the user that was logged out.
@param ex the exception if appliable that caused the logout. | [
"Callback",
"method",
"to",
"be",
"called",
"on",
"logout",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/auth/BoxAuthentication.java#L202-L208 |
58,710 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/auth/BoxAuthentication.java | BoxAuthentication.logout | public synchronized void logout(final BoxSession session) {
BoxUser user = session.getUser();
if (user == null) {
return;
}
session.clearCache();
Context context = session.getApplicationContext();
String userId = user.getId();
getAuthInfoMap(session.... | java | public synchronized void logout(final BoxSession session) {
BoxUser user = session.getUser();
if (user == null) {
return;
}
session.clearCache();
Context context = session.getApplicationContext();
String userId = user.getId();
getAuthInfoMap(session.... | [
"public",
"synchronized",
"void",
"logout",
"(",
"final",
"BoxSession",
"session",
")",
"{",
"BoxUser",
"user",
"=",
"session",
".",
"getUser",
"(",
")",
";",
"if",
"(",
"user",
"==",
"null",
")",
"{",
"return",
";",
"}",
"session",
".",
"clearCache",
... | Log out current BoxSession. After logging out, the authentication information related to the Box user in this session will be gone.
@param session session to logout user from | [
"Log",
"out",
"current",
"BoxSession",
".",
"After",
"logging",
"out",
"the",
"authentication",
"information",
"related",
"to",
"the",
"Box",
"user",
"in",
"this",
"session",
"will",
"be",
"gone",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/auth/BoxAuthentication.java#L236-L269 |
58,711 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/auth/BoxAuthentication.java | BoxAuthentication.logoutAllUsers | public synchronized void logoutAllUsers(Context context) {
getAuthInfoMap(context);
for (String userId : mCurrentAccessInfo.keySet()) {
BoxSession session = new BoxSession(context, userId);
logout(session);
}
authStorage.clearAuthInfoMap(context);
} | java | public synchronized void logoutAllUsers(Context context) {
getAuthInfoMap(context);
for (String userId : mCurrentAccessInfo.keySet()) {
BoxSession session = new BoxSession(context, userId);
logout(session);
}
authStorage.clearAuthInfoMap(context);
} | [
"public",
"synchronized",
"void",
"logoutAllUsers",
"(",
"Context",
"context",
")",
"{",
"getAuthInfoMap",
"(",
"context",
")",
";",
"for",
"(",
"String",
"userId",
":",
"mCurrentAccessInfo",
".",
"keySet",
"(",
")",
")",
"{",
"BoxSession",
"session",
"=",
"... | Log out all users. After logging out, all authentication information will be gone.
@param context current context | [
"Log",
"out",
"all",
"users",
".",
"After",
"logging",
"out",
"all",
"authentication",
"information",
"will",
"be",
"gone",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/auth/BoxAuthentication.java#L275-L283 |
58,712 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/auth/BoxAuthentication.java | BoxAuthentication.create | public synchronized FutureTask<BoxAuthenticationInfo> create(BoxSession session, final String code) {
FutureTask<BoxAuthenticationInfo> task = doCreate(session,code);
BoxAuthentication.AUTH_EXECUTOR.submit(task);
return task;
} | java | public synchronized FutureTask<BoxAuthenticationInfo> create(BoxSession session, final String code) {
FutureTask<BoxAuthenticationInfo> task = doCreate(session,code);
BoxAuthentication.AUTH_EXECUTOR.submit(task);
return task;
} | [
"public",
"synchronized",
"FutureTask",
"<",
"BoxAuthenticationInfo",
">",
"create",
"(",
"BoxSession",
"session",
",",
"final",
"String",
"code",
")",
"{",
"FutureTask",
"<",
"BoxAuthenticationInfo",
">",
"task",
"=",
"doCreate",
"(",
"session",
",",
"code",
")... | Create Oauth for the first time. This method should be called by ui to authenticate the user for the first time.
@param session a box session with all the necessary information to authenticate the user for the first time.
@param code the code returned by web page necessary to authenticate.
@return a future task allowin... | [
"Create",
"Oauth",
"for",
"the",
"first",
"time",
".",
"This",
"method",
"should",
"be",
"called",
"by",
"ui",
"to",
"authenticate",
"the",
"user",
"for",
"the",
"first",
"time",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/auth/BoxAuthentication.java#L291-L295 |
58,713 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/auth/BoxAuthentication.java | BoxAuthentication.refresh | public synchronized FutureTask<BoxAuthenticationInfo> refresh(BoxSession session) {
BoxUser user = session.getUser();
if (user == null) {
return doRefresh(session, session.getAuthInfo());
}
// Fetch auth info map from storage if not present.
getAuthInfoMap(session.get... | java | public synchronized FutureTask<BoxAuthenticationInfo> refresh(BoxSession session) {
BoxUser user = session.getUser();
if (user == null) {
return doRefresh(session, session.getAuthInfo());
}
// Fetch auth info map from storage if not present.
getAuthInfoMap(session.get... | [
"public",
"synchronized",
"FutureTask",
"<",
"BoxAuthenticationInfo",
">",
"refresh",
"(",
"BoxSession",
"session",
")",
"{",
"BoxUser",
"user",
"=",
"session",
".",
"getUser",
"(",
")",
";",
"if",
"(",
"user",
"==",
"null",
")",
"{",
"return",
"doRefresh",
... | Refresh the OAuth in the given BoxSession. This method is called when OAuth token expires.
@param session a box session with all the necessary information to authenticate the user for the first time.
@return a future task allowing monitoring of the api call. | [
"Refresh",
"the",
"OAuth",
"in",
"the",
"given",
"BoxSession",
".",
"This",
"method",
"is",
"called",
"when",
"OAuth",
"token",
"expires",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/auth/BoxAuthentication.java#L302-L346 |
58,714 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/auth/BoxAuthentication.java | BoxAuthentication.addListener | public synchronized void addListener(AuthListener listener) {
if (getListeners().contains(listener)){
return;
}
mListeners.add(new WeakReference<>(listener));
} | java | public synchronized void addListener(AuthListener listener) {
if (getListeners().contains(listener)){
return;
}
mListeners.add(new WeakReference<>(listener));
} | [
"public",
"synchronized",
"void",
"addListener",
"(",
"AuthListener",
"listener",
")",
"{",
"if",
"(",
"getListeners",
"(",
")",
".",
"contains",
"(",
"listener",
")",
")",
"{",
"return",
";",
"}",
"mListeners",
".",
"add",
"(",
"new",
"WeakReference",
"<>... | Add listener to listen to the authentication process for this BoxSession.
@param listener listener for authentication | [
"Add",
"listener",
"to",
"listen",
"to",
"the",
"authentication",
"process",
"for",
"this",
"BoxSession",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/auth/BoxAuthentication.java#L401-L406 |
58,715 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/auth/BoxAuthentication.java | BoxAuthentication.startAuthenticateUI | private synchronized void startAuthenticateUI(BoxSession session) {
Context context = session.getApplicationContext();
Intent intent = OAuthActivity.createOAuthActivityIntent(context, session, BoxAuthentication.isBoxAuthAppAvailable(context) && session.isEnabledBoxAppAuthentication());
intent.ad... | java | private synchronized void startAuthenticateUI(BoxSession session) {
Context context = session.getApplicationContext();
Intent intent = OAuthActivity.createOAuthActivityIntent(context, session, BoxAuthentication.isBoxAuthAppAvailable(context) && session.isEnabledBoxAppAuthentication());
intent.ad... | [
"private",
"synchronized",
"void",
"startAuthenticateUI",
"(",
"BoxSession",
"session",
")",
"{",
"Context",
"context",
"=",
"session",
".",
"getApplicationContext",
"(",
")",
";",
"Intent",
"intent",
"=",
"OAuthActivity",
".",
"createOAuthActivityIntent",
"(",
"con... | Start authentication UI.
@param session the session to authenticate. | [
"Start",
"authentication",
"UI",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/auth/BoxAuthentication.java#L413-L418 |
58,716 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/auth/BoxAuthentication.java | BoxAuthentication.isBoxAuthAppAvailable | public static boolean isBoxAuthAppAvailable(final Context context) {
Intent intent = new Intent(BoxConstants.REQUEST_BOX_APP_FOR_AUTH_INTENT_ACTION);
List<ResolveInfo> infos = context.getPackageManager().queryIntentActivities(intent, PackageManager.MATCH_DEFAULT_ONLY | PackageManager.GET_RESOLVED_FILTER... | java | public static boolean isBoxAuthAppAvailable(final Context context) {
Intent intent = new Intent(BoxConstants.REQUEST_BOX_APP_FOR_AUTH_INTENT_ACTION);
List<ResolveInfo> infos = context.getPackageManager().queryIntentActivities(intent, PackageManager.MATCH_DEFAULT_ONLY | PackageManager.GET_RESOLVED_FILTER... | [
"public",
"static",
"boolean",
"isBoxAuthAppAvailable",
"(",
"final",
"Context",
"context",
")",
"{",
"Intent",
"intent",
"=",
"new",
"Intent",
"(",
"BoxConstants",
".",
"REQUEST_BOX_APP_FOR_AUTH_INTENT_ACTION",
")",
";",
"List",
"<",
"ResolveInfo",
">",
"infos",
... | A check to see if an official box application supporting third party authentication is available.
This lets users authenticate without re-entering credentials.
@param context current context
@return true if an official box application that supports third party authentication is installed. | [
"A",
"check",
"to",
"see",
"if",
"an",
"official",
"box",
"application",
"supporting",
"third",
"party",
"authentication",
"is",
"available",
".",
"This",
"lets",
"users",
"authenticate",
"without",
"re",
"-",
"entering",
"credentials",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/auth/BoxAuthentication.java#L925-L929 |
58,717 | liaohuqiu/android-GridViewWithHeaderAndFooter | src/in/srain/cube/views/GridViewWithHeaderAndFooter.java | GridViewWithHeaderAndFooter.removeHeaderView | public boolean removeHeaderView(View v) {
if (mHeaderViewInfos.size() > 0) {
boolean result = false;
ListAdapter adapter = getAdapter();
if (adapter != null && ((HeaderViewGridAdapter) adapter).removeHeader(v)) {
result = true;
}
remove... | java | public boolean removeHeaderView(View v) {
if (mHeaderViewInfos.size() > 0) {
boolean result = false;
ListAdapter adapter = getAdapter();
if (adapter != null && ((HeaderViewGridAdapter) adapter).removeHeader(v)) {
result = true;
}
remove... | [
"public",
"boolean",
"removeHeaderView",
"(",
"View",
"v",
")",
"{",
"if",
"(",
"mHeaderViewInfos",
".",
"size",
"(",
")",
">",
"0",
")",
"{",
"boolean",
"result",
"=",
"false",
";",
"ListAdapter",
"adapter",
"=",
"getAdapter",
"(",
")",
";",
"if",
"("... | Removes a previously-added header view.
@param v The view to remove
@return true if the view was removed, false if the view was not a header
view | [
"Removes",
"a",
"previously",
"-",
"added",
"header",
"view",
"."
] | d4a99eff0f46febdd338a7b93b69d924826ba6fe | https://github.com/liaohuqiu/android-GridViewWithHeaderAndFooter/blob/d4a99eff0f46febdd338a7b93b69d924826ba6fe/src/in/srain/cube/views/GridViewWithHeaderAndFooter.java#L219-L230 |
58,718 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/batch/BatchClient.java | BatchClient.listJobs | public ListJobsResponse listJobs(String marker, int maxKeys) {
return listJobs(new ListJobsRequest().withMaxKeys(maxKeys).withMarker(marker));
} | java | public ListJobsResponse listJobs(String marker, int maxKeys) {
return listJobs(new ListJobsRequest().withMaxKeys(maxKeys).withMarker(marker));
} | [
"public",
"ListJobsResponse",
"listJobs",
"(",
"String",
"marker",
",",
"int",
"maxKeys",
")",
"{",
"return",
"listJobs",
"(",
"new",
"ListJobsRequest",
"(",
")",
".",
"withMaxKeys",
"(",
"maxKeys",
")",
".",
"withMarker",
"(",
"marker",
")",
")",
";",
"}"... | List Batch-Compute jobs owned by the authenticated user.
@param marker The start record of jobs.
@param maxKeys The maximum number of jobs returned.
@return The response containing a list of the Batch-Compute jobs owned by the authenticated sender of the
request.
The jobs' records start from the marker and the size of... | [
"List",
"Batch",
"-",
"Compute",
"jobs",
"owned",
"by",
"the",
"authenticated",
"user",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/batch/BatchClient.java#L141-L143 |
58,719 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/batch/BatchClient.java | BatchClient.createJob | public CreateJobResponse createJob(CreateJobRequest request) {
checkNotNull(request, "request should not be null.");
checkStringNotEmpty(request.getName(), "The name should not be null or empty string.");
checkStringNotEmpty(request.getVmType(), "The vmType should not be null or empty string.");... | java | public CreateJobResponse createJob(CreateJobRequest request) {
checkNotNull(request, "request should not be null.");
checkStringNotEmpty(request.getName(), "The name should not be null or empty string.");
checkStringNotEmpty(request.getVmType(), "The vmType should not be null or empty string.");... | [
"public",
"CreateJobResponse",
"createJob",
"(",
"CreateJobRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"request should not be null.\"",
")",
";",
"checkStringNotEmpty",
"(",
"request",
".",
"getName",
"(",
")",
",",
"\"The name should not be nu... | Create a Batch-Compute job with the specified options.
@param request The request containing all options for creating a Batch-Compute job.
@return The response containing the ID of the newly created job. | [
"Create",
"a",
"Batch",
"-",
"Compute",
"job",
"with",
"the",
"specified",
"options",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/batch/BatchClient.java#L177-L222 |
58,720 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/batch/BatchClient.java | BatchClient.cancelJob | public void cancelJob(CancelJobRequest request) {
checkNotNull(request, "request should not be null.");
checkStringNotEmpty(request.getJobId(), "The parameter jobId should not be null or empty string.");
InternalRequest internalRequest = this.createRequest(
request, HttpMethodNa... | java | public void cancelJob(CancelJobRequest request) {
checkNotNull(request, "request should not be null.");
checkStringNotEmpty(request.getJobId(), "The parameter jobId should not be null or empty string.");
InternalRequest internalRequest = this.createRequest(
request, HttpMethodNa... | [
"public",
"void",
"cancelJob",
"(",
"CancelJobRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"request should not be null.\"",
")",
";",
"checkStringNotEmpty",
"(",
"request",
".",
"getJobId",
"(",
")",
",",
"\"The parameter jobId should not be nul... | Cancel a Batch-Compute job.
@param request The request containing the ID of the job to be cancelled. | [
"Cancel",
"a",
"Batch",
"-",
"Compute",
"job",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/batch/BatchClient.java#L229-L238 |
58,721 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/batch/BatchClient.java | BatchClient.createRequest | private InternalRequest createRequest(
AbstractBceRequest bceRequest, HttpMethodName httpMethod, String... pathVariables) {
List<String> path = new ArrayList<String>();
path.add(VERSION);
if (pathVariables != null) {
for (String pathVariable : pathVariables) {
... | java | private InternalRequest createRequest(
AbstractBceRequest bceRequest, HttpMethodName httpMethod, String... pathVariables) {
List<String> path = new ArrayList<String>();
path.add(VERSION);
if (pathVariables != null) {
for (String pathVariable : pathVariables) {
... | [
"private",
"InternalRequest",
"createRequest",
"(",
"AbstractBceRequest",
"bceRequest",
",",
"HttpMethodName",
"httpMethod",
",",
"String",
"...",
"pathVariables",
")",
"{",
"List",
"<",
"String",
">",
"path",
"=",
"new",
"ArrayList",
"<",
"String",
">",
"(",
")... | Creates and initializes a new request object for the specified resource.
@param bceRequest The original BCE request created by the user.
@param httpMethod The HTTP method to use when sending the request.
@param pathVariables The optional variables used in the URI path.
@return A new request object populated with endpo... | [
"Creates",
"and",
"initializes",
"a",
"new",
"request",
"object",
"for",
"the",
"specified",
"resource",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/batch/BatchClient.java#L258-L277 |
58,722 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/ruleengine/RuleEngineClient.java | RuleEngineClient.listRules | public ListRuleResponse listRules(ListRuleRequest request) {
InternalRequest internalRequest =
createRequest(request, HttpMethodName.GET, RULES);
if (request.getPageNo() > 0) {
internalRequest.addParameter("pageNo", String.valueOf(request.getPageNo()));
}
if (... | java | public ListRuleResponse listRules(ListRuleRequest request) {
InternalRequest internalRequest =
createRequest(request, HttpMethodName.GET, RULES);
if (request.getPageNo() > 0) {
internalRequest.addParameter("pageNo", String.valueOf(request.getPageNo()));
}
if (... | [
"public",
"ListRuleResponse",
"listRules",
"(",
"ListRuleRequest",
"request",
")",
"{",
"InternalRequest",
"internalRequest",
"=",
"createRequest",
"(",
"request",
",",
"HttpMethodName",
".",
"GET",
",",
"RULES",
")",
";",
"if",
"(",
"request",
".",
"getPageNo",
... | list all the rules under this account
@param request: specify the pageNo, pageSize etc.
@return all or a subset of rules according to pageNo, and pageSize | [
"list",
"all",
"the",
"rules",
"under",
"this",
"account"
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/ruleengine/RuleEngineClient.java#L74-L84 |
58,723 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/bcc/BccClient.java | BccClient.createRequest | private InternalRequest createRequest(AbstractBceRequest bceRequest, HttpMethodName httpMethod,
String... pathVariables) {
List<String> path = new ArrayList<String>();
path.add(VERSION);
if (pathVariables != null) {
for (String pathVariable : pathVariables) {
... | java | private InternalRequest createRequest(AbstractBceRequest bceRequest, HttpMethodName httpMethod,
String... pathVariables) {
List<String> path = new ArrayList<String>();
path.add(VERSION);
if (pathVariables != null) {
for (String pathVariable : pathVariables) {
... | [
"private",
"InternalRequest",
"createRequest",
"(",
"AbstractBceRequest",
"bceRequest",
",",
"HttpMethodName",
"httpMethod",
",",
"String",
"...",
"pathVariables",
")",
"{",
"List",
"<",
"String",
">",
"path",
"=",
"new",
"ArrayList",
"<",
"String",
">",
"(",
")... | Creates and initializes a new request object for the specified bcc resource. This method is responsible
for determining the right way to address resources.
@param bceRequest The original request, as created by the user.
@param httpMethod The HTTP method to use when sending the request.
@param pathVariables The optiona... | [
"Creates",
"and",
"initializes",
"a",
"new",
"request",
"object",
"for",
"the",
"specified",
"bcc",
"resource",
".",
"This",
"method",
"is",
"responsible",
"for",
"determining",
"the",
"right",
"way",
"to",
"address",
"resources",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/bcc/BccClient.java#L163-L178 |
58,724 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/bcc/BccClient.java | BccClient.fillPayload | private void fillPayload(InternalRequest internalRequest, AbstractBceRequest bceRequest) {
if (internalRequest.getHttpMethod() == HttpMethodName.POST
|| internalRequest.getHttpMethod() == HttpMethodName.PUT) {
String strJson = JsonUtils.toJsonString(bceRequest);
byte[] re... | java | private void fillPayload(InternalRequest internalRequest, AbstractBceRequest bceRequest) {
if (internalRequest.getHttpMethod() == HttpMethodName.POST
|| internalRequest.getHttpMethod() == HttpMethodName.PUT) {
String strJson = JsonUtils.toJsonString(bceRequest);
byte[] re... | [
"private",
"void",
"fillPayload",
"(",
"InternalRequest",
"internalRequest",
",",
"AbstractBceRequest",
"bceRequest",
")",
"{",
"if",
"(",
"internalRequest",
".",
"getHttpMethod",
"(",
")",
"==",
"HttpMethodName",
".",
"POST",
"||",
"internalRequest",
".",
"getHttpM... | The method to fill the internalRequest's content field with bceRequest.
Only support HttpMethodName.POST or HttpMethodName.PUT
@param internalRequest A request object, populated with endpoint, resource path, ready for callers to populate
any additional headers or parameters, and execute.
@param bceRequest The original... | [
"The",
"method",
"to",
"fill",
"the",
"internalRequest",
"s",
"content",
"field",
"with",
"bceRequest",
".",
"Only",
"support",
"HttpMethodName",
".",
"POST",
"or",
"HttpMethodName",
".",
"PUT"
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/bcc/BccClient.java#L188-L202 |
58,725 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/bcc/BccClient.java | BccClient.aes128WithFirst16Char | private String aes128WithFirst16Char(String content, String privateKey) throws GeneralSecurityException {
byte[] crypted = null;
SecretKeySpec skey = new SecretKeySpec(privateKey.substring(0, 16).getBytes(), "AES");
Cipher cipher = Cipher.getInstance("AES/ECB/PKCS5Padding");
cipher.init(... | java | private String aes128WithFirst16Char(String content, String privateKey) throws GeneralSecurityException {
byte[] crypted = null;
SecretKeySpec skey = new SecretKeySpec(privateKey.substring(0, 16).getBytes(), "AES");
Cipher cipher = Cipher.getInstance("AES/ECB/PKCS5Padding");
cipher.init(... | [
"private",
"String",
"aes128WithFirst16Char",
"(",
"String",
"content",
",",
"String",
"privateKey",
")",
"throws",
"GeneralSecurityException",
"{",
"byte",
"[",
"]",
"crypted",
"=",
"null",
";",
"SecretKeySpec",
"skey",
"=",
"new",
"SecretKeySpec",
"(",
"privateK... | The encryption implement for AES-128 algorithm for BCE password encryption.
Only the first 16 bytes of privateKey will be used to encrypt the content.
See more detail on
<a href = "https://bce.baidu.com/doc/BCC/API.html#.7A.E6.31.D8.94.C1.A1.C2.1A.8D.92.ED.7F.60.7D.AF">
BCE API doc</a>
@param content The content Stri... | [
"The",
"encryption",
"implement",
"for",
"AES",
"-",
"128",
"algorithm",
"for",
"BCE",
"password",
"encryption",
".",
"Only",
"the",
"first",
"16",
"bytes",
"of",
"privateKey",
"will",
"be",
"used",
"to",
"encrypt",
"the",
"content",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/bcc/BccClient.java#L229-L236 |
58,726 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/bcc/BccClient.java | BccClient.listInstances | public ListInstancesResponse listInstances(ListInstancesRequest request) {
checkNotNull(request, "request should not be null.");
InternalRequest internalRequest = this.createRequest(request, HttpMethodName.GET, INSTANCE_PREFIX);
if (request.getMarker() != null) {
internalRequest.addP... | java | public ListInstancesResponse listInstances(ListInstancesRequest request) {
checkNotNull(request, "request should not be null.");
InternalRequest internalRequest = this.createRequest(request, HttpMethodName.GET, INSTANCE_PREFIX);
if (request.getMarker() != null) {
internalRequest.addP... | [
"public",
"ListInstancesResponse",
"listInstances",
"(",
"ListInstancesRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"request should not be null.\"",
")",
";",
"InternalRequest",
"internalRequest",
"=",
"this",
".",
"createRequest",
"(",
"request",... | Return a list of instances owned by the authenticated user.
@param request The request containing all options for listing own's bcc Instance.
@return The response containing a list of instances owned by the authenticated user. | [
"Return",
"a",
"list",
"of",
"instances",
"owned",
"by",
"the",
"authenticated",
"user",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/bcc/BccClient.java#L314-L333 |
58,727 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/bcc/BccClient.java | BccClient.getInstance | public GetInstanceResponse getInstance(GetInstanceRequest request) {
checkNotNull(request, "request should not be null.");
checkNotNull(request.getInstanceId(), "request instanceId should not be null.");
InternalRequest internalRequest = this.createRequest(
request, HttpMethodNam... | java | public GetInstanceResponse getInstance(GetInstanceRequest request) {
checkNotNull(request, "request should not be null.");
checkNotNull(request.getInstanceId(), "request instanceId should not be null.");
InternalRequest internalRequest = this.createRequest(
request, HttpMethodNam... | [
"public",
"GetInstanceResponse",
"getInstance",
"(",
"GetInstanceRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"request should not be null.\"",
")",
";",
"checkNotNull",
"(",
"request",
".",
"getInstanceId",
"(",
")",
",",
"\"request instanceId s... | Get the detail information of specified instance.
@param request The request containing all options for getting the instance info.
@return A instance detail model for the instanceId. | [
"Get",
"the",
"detail",
"information",
"of",
"specified",
"instance",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/bcc/BccClient.java#L351-L357 |
58,728 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/bcc/BccClient.java | BccClient.startInstance | public void startInstance(StartInstanceRequest request) {
checkNotNull(request, "request should not be null.");
checkStringNotEmpty(request.getInstanceId(), "request instanceId should not be empty.");
InternalRequest internalRequest = this.createRequest(
request, HttpMethodName.P... | java | public void startInstance(StartInstanceRequest request) {
checkNotNull(request, "request should not be null.");
checkStringNotEmpty(request.getInstanceId(), "request instanceId should not be empty.");
InternalRequest internalRequest = this.createRequest(
request, HttpMethodName.P... | [
"public",
"void",
"startInstance",
"(",
"StartInstanceRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"request should not be null.\"",
")",
";",
"checkStringNotEmpty",
"(",
"request",
".",
"getInstanceId",
"(",
")",
",",
"\"request instanceId shoul... | Starting the instance owned by the user.
You can start the instance only when the instance is Stopped,
otherwise,it's will get <code>409</code> errorCode.
This is an asynchronous interface,
you can get the latest status by invoke {@link #getInstance(GetInstanceRequest)}
@param request The request containing all opti... | [
"Starting",
"the",
"instance",
"owned",
"by",
"the",
"user",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/bcc/BccClient.java#L385-L393 |
58,729 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/bcc/BccClient.java | BccClient.modifyInstanceAttributes | public void modifyInstanceAttributes(ModifyInstanceAttributesRequest request) {
checkNotNull(request, "request should not be null.");
checkStringNotEmpty(request.getInstanceId(), "request instanceId should not be empty.");
checkStringNotEmpty(request.getName(), "request name should not be empty.... | java | public void modifyInstanceAttributes(ModifyInstanceAttributesRequest request) {
checkNotNull(request, "request should not be null.");
checkStringNotEmpty(request.getInstanceId(), "request instanceId should not be empty.");
checkStringNotEmpty(request.getName(), "request name should not be empty.... | [
"public",
"void",
"modifyInstanceAttributes",
"(",
"ModifyInstanceAttributesRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"request should not be null.\"",
")",
";",
"checkStringNotEmpty",
"(",
"request",
".",
"getInstanceId",
"(",
")",
",",
"\"re... | Modifying the special attribute to new value of the instance.
You can reboot the instance only when the instance is Running or Stopped ,
otherwise,it's will get <code>409</code> errorCode.
@param request The request containing all options for modifying the instance attribute. | [
"Modifying",
"the",
"special",
"attribute",
"to",
"new",
"value",
"of",
"the",
"instance",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/bcc/BccClient.java#L565-L574 |
58,730 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/bcc/BccClient.java | BccClient.rebuildInstance | public void rebuildInstance(String instanceId, String imageId, String adminPass) throws BceClientException {
this.rebuildInstance(new RebuildInstanceRequest().withInstanceId(instanceId)
.withImageId(imageId).withAdminPass(adminPass));
} | java | public void rebuildInstance(String instanceId, String imageId, String adminPass) throws BceClientException {
this.rebuildInstance(new RebuildInstanceRequest().withInstanceId(instanceId)
.withImageId(imageId).withAdminPass(adminPass));
} | [
"public",
"void",
"rebuildInstance",
"(",
"String",
"instanceId",
",",
"String",
"imageId",
",",
"String",
"adminPass",
")",
"throws",
"BceClientException",
"{",
"this",
".",
"rebuildInstance",
"(",
"new",
"RebuildInstanceRequest",
"(",
")",
".",
"withInstanceId",
... | Rebuilding the instance owned by the user.
After rebuilding the instance,
all of snapshots created from original instance system disk will be deleted,
all of customized images will be saved for using in the future.
This is an asynchronous interface,
you can get the latest status by invoke {@link #getInstance(GetInsta... | [
"Rebuilding",
"the",
"instance",
"owned",
"by",
"the",
"user",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/bcc/BccClient.java#L597-L600 |
58,731 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/bcc/BccClient.java | BccClient.releaseInstance | public void releaseInstance(ReleaseInstanceRequest request) {
checkNotNull(request, "request should not be null.");
checkStringNotEmpty(request.getInstanceId(), "request instanceId should not be empty.");
InternalRequest internalRequest = this.createRequest(
request, HttpMethodNa... | java | public void releaseInstance(ReleaseInstanceRequest request) {
checkNotNull(request, "request should not be null.");
checkStringNotEmpty(request.getInstanceId(), "request instanceId should not be empty.");
InternalRequest internalRequest = this.createRequest(
request, HttpMethodNa... | [
"public",
"void",
"releaseInstance",
"(",
"ReleaseInstanceRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"request should not be null.\"",
")",
";",
"checkStringNotEmpty",
"(",
"request",
".",
"getInstanceId",
"(",
")",
",",
"\"request instanceId s... | Releasing the instance owned by the user.
Only the Postpaid instance or Prepaid which is expired can be released.
After releasing the instance,
all of the data will be deleted.
all of volumes attached will be detached,but the volume snapshots will be saved.
all of snapshots created from original instance system disk w... | [
"Releasing",
"the",
"instance",
"owned",
"by",
"the",
"user",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/bcc/BccClient.java#L666-L672 |
58,732 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/bcc/BccClient.java | BccClient.resizeInstance | public void resizeInstance(ResizeInstanceRequest request) {
checkNotNull(request, "request should not be null.");
if (Strings.isNullOrEmpty(request.getClientToken())) {
request.setClientToken(this.generateClientToken());
}
checkStringNotEmpty(request.getInstanceId(), "request... | java | public void resizeInstance(ResizeInstanceRequest request) {
checkNotNull(request, "request should not be null.");
if (Strings.isNullOrEmpty(request.getClientToken())) {
request.setClientToken(this.generateClientToken());
}
checkStringNotEmpty(request.getInstanceId(), "request... | [
"public",
"void",
"resizeInstance",
"(",
"ResizeInstanceRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"request should not be null.\"",
")",
";",
"if",
"(",
"Strings",
".",
"isNullOrEmpty",
"(",
"request",
".",
"getClientToken",
"(",
")",
")... | Resizing the instance owned by the user.
The Prepaid instance can not be downgrade.
Only the Running/Stopped instance can be resized,otherwise,it's will get <code>409</code> errorCode.
After resizing the instance,it will be reboot once.
This is an asynchronous interface,
you can get the latest status by invoke {@link... | [
"Resizing",
"the",
"instance",
"owned",
"by",
"the",
"user",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/bcc/BccClient.java#L686-L704 |
58,733 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/bcc/BccClient.java | BccClient.getInstanceVnc | public GetInstanceVncResponse getInstanceVnc(GetInstanceVncRequest request) {
checkNotNull(request, "request should not be null.");
checkStringNotEmpty(request.getInstanceId(), "request instanceId should not be empty.");
InternalRequest internalRequest = this.createRequest(
reque... | java | public GetInstanceVncResponse getInstanceVnc(GetInstanceVncRequest request) {
checkNotNull(request, "request should not be null.");
checkStringNotEmpty(request.getInstanceId(), "request instanceId should not be empty.");
InternalRequest internalRequest = this.createRequest(
reque... | [
"public",
"GetInstanceVncResponse",
"getInstanceVnc",
"(",
"GetInstanceVncRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"request should not be null.\"",
")",
";",
"checkStringNotEmpty",
"(",
"request",
".",
"getInstanceId",
"(",
")",
",",
"\"requ... | Getting the vnc url to access the instance.
The vnc url can be used once.
@param request The request containing all options for getting the vnc url. | [
"Getting",
"the",
"vnc",
"url",
"to",
"access",
"the",
"instance",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/bcc/BccClient.java#L780-L786 |
58,734 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/bcc/BccClient.java | BccClient.purchaseReservedInstance | public void purchaseReservedInstance(PurchaseReservedInstanceRequeset request) {
checkNotNull(request, "request should not be null.");
if (Strings.isNullOrEmpty(request.getClientToken())) {
request.setClientToken(this.generateClientToken());
}
if (null == request.getBilling()... | java | public void purchaseReservedInstance(PurchaseReservedInstanceRequeset request) {
checkNotNull(request, "request should not be null.");
if (Strings.isNullOrEmpty(request.getClientToken())) {
request.setClientToken(this.generateClientToken());
}
if (null == request.getBilling()... | [
"public",
"void",
"purchaseReservedInstance",
"(",
"PurchaseReservedInstanceRequeset",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"request should not be null.\"",
")",
";",
"if",
"(",
"Strings",
".",
"isNullOrEmpty",
"(",
"request",
".",
"getClientToken... | Renewing the instance with fixed duration.
You can not renew the instance which is resizing.
This is an asynchronous interface,
you can get the latest status by invoke {@link #getInstance(GetInstanceRequest)}
@param request The request containing all options for renewing the instance with fixed duration. | [
"Renewing",
"the",
"instance",
"with",
"fixed",
"duration",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/bcc/BccClient.java#L819-L834 |
58,735 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/bcc/BccClient.java | BccClient.createVolume | public CreateVolumeResponse createVolume(CreateVolumeRequest request) {
checkNotNull(request, "request should not be null.");
if (Strings.isNullOrEmpty(request.getClientToken())) {
request.setClientToken(this.generateClientToken());
}
if (null == request.getBilling()) {
... | java | public CreateVolumeResponse createVolume(CreateVolumeRequest request) {
checkNotNull(request, "request should not be null.");
if (Strings.isNullOrEmpty(request.getClientToken())) {
request.setClientToken(this.generateClientToken());
}
if (null == request.getBilling()) {
... | [
"public",
"CreateVolumeResponse",
"createVolume",
"(",
"CreateVolumeRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"request should not be null.\"",
")",
";",
"if",
"(",
"Strings",
".",
"isNullOrEmpty",
"(",
"request",
".",
"getClientToken",
"(",... | Create a volume with the specified options.
You can use this method to create a new empty volume by specified options
or you can create a new volume from customized volume snapshot but not system disk snapshot.
By using the cdsSizeInGB parameter you can create a newly empty volume.
By using snapshotId parameter to cr... | [
"Create",
"a",
"volume",
"with",
"the",
"specified",
"options",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/bcc/BccClient.java#L882-L894 |
58,736 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/bcc/BccClient.java | BccClient.listVolumes | public ListVolumesResponse listVolumes(ListVolumesRequest request) {
InternalRequest internalRequest = this.createRequest(request, HttpMethodName.GET, VOLUME_PREFIX);
if (request.getMarker() != null) {
internalRequest.addParameter("marker", request.getMarker());
}
if (request... | java | public ListVolumesResponse listVolumes(ListVolumesRequest request) {
InternalRequest internalRequest = this.createRequest(request, HttpMethodName.GET, VOLUME_PREFIX);
if (request.getMarker() != null) {
internalRequest.addParameter("marker", request.getMarker());
}
if (request... | [
"public",
"ListVolumesResponse",
"listVolumes",
"(",
"ListVolumesRequest",
"request",
")",
"{",
"InternalRequest",
"internalRequest",
"=",
"this",
".",
"createRequest",
"(",
"request",
",",
"HttpMethodName",
".",
"GET",
",",
"VOLUME_PREFIX",
")",
";",
"if",
"(",
"... | Listing volumes owned by the authenticated user.
@param request The request containing all options for listing volumes owned by the authenticated user.
@return The response containing a list of volume owned by the authenticated user. | [
"Listing",
"volumes",
"owned",
"by",
"the",
"authenticated",
"user",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/bcc/BccClient.java#L911-L926 |
58,737 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/bcc/BccClient.java | BccClient.getVolume | public GetVolumeResponse getVolume(GetVolumeRequest request) {
checkNotNull(request, "request should not be null.");
checkStringNotEmpty(request.getVolumeId(), "request volumeId should not be empty.");
InternalRequest internalRequest =
this.createRequest(request, HttpMethodName.G... | java | public GetVolumeResponse getVolume(GetVolumeRequest request) {
checkNotNull(request, "request should not be null.");
checkStringNotEmpty(request.getVolumeId(), "request volumeId should not be empty.");
InternalRequest internalRequest =
this.createRequest(request, HttpMethodName.G... | [
"public",
"GetVolumeResponse",
"getVolume",
"(",
"GetVolumeRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"request should not be null.\"",
")",
";",
"checkStringNotEmpty",
"(",
"request",
".",
"getVolumeId",
"(",
")",
",",
"\"request volumeId shou... | Get the detail information of specified volume.
@param request The request containing all options for getting the detail information of specified volume.
@return The response containing the detail information of specified volume. | [
"Get",
"the",
"detail",
"information",
"of",
"specified",
"volume",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/bcc/BccClient.java#L944-L950 |
58,738 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/bcc/BccClient.java | BccClient.releaseVolume | public void releaseVolume(ReleaseVolumeRequest request) {
checkNotNull(request, "request should not be null.");
checkStringNotEmpty(request.getVolumeId(), "request volumeId should not be empty.");
InternalRequest internalRequest =
this.createRequest(request, HttpMethodName.DELETE... | java | public void releaseVolume(ReleaseVolumeRequest request) {
checkNotNull(request, "request should not be null.");
checkStringNotEmpty(request.getVolumeId(), "request volumeId should not be empty.");
InternalRequest internalRequest =
this.createRequest(request, HttpMethodName.DELETE... | [
"public",
"void",
"releaseVolume",
"(",
"ReleaseVolumeRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"request should not be null.\"",
")",
";",
"checkStringNotEmpty",
"(",
"request",
".",
"getVolumeId",
"(",
")",
",",
"\"request volumeId should no... | Releasing the specified volume owned by the user.
You can release the specified volume only
when the volume is Available/Expired/Error,
otherwise,it's will get <code>409</code> errorCode.
@param request The request containing all options for releasing the specified volume. | [
"Releasing",
"the",
"specified",
"volume",
"owned",
"by",
"the",
"user",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/bcc/BccClient.java#L1044-L1050 |
58,739 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/bcc/BccClient.java | BccClient.createImageFromInstance | public CreateImageResponse createImageFromInstance(String imageName, String instanceId) {
return createImage(new CreateImageRequest()
.withImageName(imageName).withInstanceId(instanceId));
} | java | public CreateImageResponse createImageFromInstance(String imageName, String instanceId) {
return createImage(new CreateImageRequest()
.withImageName(imageName).withInstanceId(instanceId));
} | [
"public",
"CreateImageResponse",
"createImageFromInstance",
"(",
"String",
"imageName",
",",
"String",
"instanceId",
")",
"{",
"return",
"createImage",
"(",
"new",
"CreateImageRequest",
"(",
")",
".",
"withImageName",
"(",
"imageName",
")",
".",
"withInstanceId",
"(... | Creating a customized image from the instance..
<p>
While creating an image from an instance,the instance must be Running or Stopped,
otherwise,it's will get <code>409</code> errorCode.
This is an asynchronous interface,
you can get the latest status by invoke {@link #getImage(GetImageRequest)}
@param imageName The ... | [
"Creating",
"a",
"customized",
"image",
"from",
"the",
"instance",
".."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/bcc/BccClient.java#L1206-L1209 |
58,740 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/bcc/BccClient.java | BccClient.createImageFromSnapshot | public CreateImageResponse createImageFromSnapshot(String imageName, String snapshotId) {
return createImage(new CreateImageRequest()
.withImageName(imageName).withSnapshotId(snapshotId));
} | java | public CreateImageResponse createImageFromSnapshot(String imageName, String snapshotId) {
return createImage(new CreateImageRequest()
.withImageName(imageName).withSnapshotId(snapshotId));
} | [
"public",
"CreateImageResponse",
"createImageFromSnapshot",
"(",
"String",
"imageName",
",",
"String",
"snapshotId",
")",
"{",
"return",
"createImage",
"(",
"new",
"CreateImageRequest",
"(",
")",
".",
"withImageName",
"(",
"imageName",
")",
".",
"withSnapshotId",
"(... | Creating a customized image from specified snapshot.
You can create the image only from system snapshot.
While creating an image from a system snapshot,the snapshot must be Available,
otherwise,it's will get <code>409</code> errorCode.
This is an asynchronous interface,
you can get the latest status by invoke {@link ... | [
"Creating",
"a",
"customized",
"image",
"from",
"specified",
"snapshot",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/bcc/BccClient.java#L1225-L1228 |
58,741 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/bcc/BccClient.java | BccClient.createImage | public CreateImageResponse createImage(CreateImageRequest request) {
checkNotNull(request, "request should not be null.");
if (Strings.isNullOrEmpty(request.getClientToken())) {
request.setClientToken(this.generateClientToken());
}
checkStringNotEmpty(request.getImageName(), ... | java | public CreateImageResponse createImage(CreateImageRequest request) {
checkNotNull(request, "request should not be null.");
if (Strings.isNullOrEmpty(request.getClientToken())) {
request.setClientToken(this.generateClientToken());
}
checkStringNotEmpty(request.getImageName(), ... | [
"public",
"CreateImageResponse",
"createImage",
"(",
"CreateImageRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"request should not be null.\"",
")",
";",
"if",
"(",
"Strings",
".",
"isNullOrEmpty",
"(",
"request",
".",
"getClientToken",
"(",
... | Creating a customized image which can be used for creating instance in the future.
<p>
You can create an image from an instance or you can create from an snapshot.
The parameters of instanceId and snapshotId can no be null simultaneously.
when both instanceId and snapshotId are assigned,only instanceId will be used.
<... | [
"Creating",
"a",
"customized",
"image",
"which",
"can",
"be",
"used",
"for",
"creating",
"instance",
"in",
"the",
"future",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/bcc/BccClient.java#L1251-L1264 |
58,742 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/bcc/BccClient.java | BccClient.listImages | public ListImagesResponse listImages(ListImagesRequest request) {
checkNotNull(request, "request should not be null.");
InternalRequest internalRequest = this.createRequest(request, HttpMethodName.GET, IMAGE_PREFIX);
if (!Strings.isNullOrEmpty(request.getMarker())) {
internalRequest.... | java | public ListImagesResponse listImages(ListImagesRequest request) {
checkNotNull(request, "request should not be null.");
InternalRequest internalRequest = this.createRequest(request, HttpMethodName.GET, IMAGE_PREFIX);
if (!Strings.isNullOrEmpty(request.getMarker())) {
internalRequest.... | [
"public",
"ListImagesResponse",
"listImages",
"(",
"ListImagesRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"request should not be null.\"",
")",
";",
"InternalRequest",
"internalRequest",
"=",
"this",
".",
"createRequest",
"(",
"request",
",",
... | Listing images owned by the authenticated user.
@param request The request containing all options for listing images owned by user.
@return The response with list of images. | [
"Listing",
"images",
"owned",
"by",
"the",
"authenticated",
"user",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/bcc/BccClient.java#L1281-L1294 |
58,743 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/bcc/BccClient.java | BccClient.getImage | public GetImageResponse getImage(GetImageRequest request) {
checkNotNull(request, "request should not be null.");
checkStringNotEmpty(request.getImageId(), "request imageId should not be empty.");
InternalRequest internalRequest =
this.createRequest(request, HttpMethodName.GET, I... | java | public GetImageResponse getImage(GetImageRequest request) {
checkNotNull(request, "request should not be null.");
checkStringNotEmpty(request.getImageId(), "request imageId should not be empty.");
InternalRequest internalRequest =
this.createRequest(request, HttpMethodName.GET, I... | [
"public",
"GetImageResponse",
"getImage",
"(",
"GetImageRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"request should not be null.\"",
")",
";",
"checkStringNotEmpty",
"(",
"request",
".",
"getImageId",
"(",
")",
",",
"\"request imageId should no... | Get the detail information of specified image.
@param request The request containing all options for getting the detail information of specified image.
@return The response with the image detail information. | [
"Get",
"the",
"detail",
"information",
"of",
"specified",
"image",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/bcc/BccClient.java#L1312-L1318 |
58,744 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/bcc/BccClient.java | BccClient.deleteImage | public void deleteImage(DeleteImageRequest request) {
checkNotNull(request, "request should not be null.");
checkStringNotEmpty(request.getImageId(), "request imageId should not be empty.");
InternalRequest internalRequest =
this.createRequest(request, HttpMethodName.DELETE, IMAG... | java | public void deleteImage(DeleteImageRequest request) {
checkNotNull(request, "request should not be null.");
checkStringNotEmpty(request.getImageId(), "request imageId should not be empty.");
InternalRequest internalRequest =
this.createRequest(request, HttpMethodName.DELETE, IMAG... | [
"public",
"void",
"deleteImage",
"(",
"DeleteImageRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"request should not be null.\"",
")",
";",
"checkStringNotEmpty",
"(",
"request",
".",
"getImageId",
"(",
")",
",",
"\"request imageId should not be e... | Deleting the specified image.
Only the customized image can be deleted,
otherwise,it's will get <code>403</code> errorCode.
@param request The request containing all options for deleting the specified image. | [
"Deleting",
"the",
"specified",
"image",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/bcc/BccClient.java#L1340-L1346 |
58,745 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/bcc/BccClient.java | BccClient.listSnapshots | public ListSnapshotsResponse listSnapshots(ListSnapshotsRequest request) {
checkNotNull(request, "request should not be null.");
InternalRequest internalRequest = this.createRequest(request, HttpMethodName.GET, SNAPSHOT_PREFIX);
if (!Strings.isNullOrEmpty(request.getMarker())) {
inte... | java | public ListSnapshotsResponse listSnapshots(ListSnapshotsRequest request) {
checkNotNull(request, "request should not be null.");
InternalRequest internalRequest = this.createRequest(request, HttpMethodName.GET, SNAPSHOT_PREFIX);
if (!Strings.isNullOrEmpty(request.getMarker())) {
inte... | [
"public",
"ListSnapshotsResponse",
"listSnapshots",
"(",
"ListSnapshotsRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"request should not be null.\"",
")",
";",
"InternalRequest",
"internalRequest",
"=",
"this",
".",
"createRequest",
"(",
"request",... | Listing snapshots owned by the authenticated user.
@param request The request containing all options for listing snapshot.
@return The response contains a list of snapshots owned by the user. | [
"Listing",
"snapshots",
"owned",
"by",
"the",
"authenticated",
"user",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/bcc/BccClient.java#L1425-L1438 |
58,746 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/bcc/BccClient.java | BccClient.getSnapshot | public GetSnapshotResponse getSnapshot(GetSnapshotRequest request) {
checkNotNull(request, "request should not be null.");
checkStringNotEmpty(request.getSnapshotId(), "request snapshotId should no be empty.");
InternalRequest internalRequest =
this.createRequest(request, HttpMet... | java | public GetSnapshotResponse getSnapshot(GetSnapshotRequest request) {
checkNotNull(request, "request should not be null.");
checkStringNotEmpty(request.getSnapshotId(), "request snapshotId should no be empty.");
InternalRequest internalRequest =
this.createRequest(request, HttpMet... | [
"public",
"GetSnapshotResponse",
"getSnapshot",
"(",
"GetSnapshotRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"request should not be null.\"",
")",
";",
"checkStringNotEmpty",
"(",
"request",
".",
"getSnapshotId",
"(",
")",
",",
"\"request snaps... | Getting the detail information of specified snapshot.
@param request The request containing all options for getting the detail information of specified snapshot.
@return The response with the snapshot detail information. | [
"Getting",
"the",
"detail",
"information",
"of",
"specified",
"snapshot",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/bcc/BccClient.java#L1456-L1462 |
58,747 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/bcc/BccClient.java | BccClient.deleteSnapshot | public void deleteSnapshot(DeleteSnapshotRequest request) {
checkNotNull(request, "request should not be null.");
checkStringNotEmpty(request.getSnapshotId(), "request snapshotId should no be empty.");
InternalRequest internalRequest =
this.createRequest(request, HttpMethodName.D... | java | public void deleteSnapshot(DeleteSnapshotRequest request) {
checkNotNull(request, "request should not be null.");
checkStringNotEmpty(request.getSnapshotId(), "request snapshotId should no be empty.");
InternalRequest internalRequest =
this.createRequest(request, HttpMethodName.D... | [
"public",
"void",
"deleteSnapshot",
"(",
"DeleteSnapshotRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"request should not be null.\"",
")",
";",
"checkStringNotEmpty",
"(",
"request",
".",
"getSnapshotId",
"(",
")",
",",
"\"request snapshotId sho... | Deleting the specified snapshot.
Only when the snapshot is CreatedFailed or Available,the specified snapshot can be deleted.
otherwise,it's will get <code>403</code> errorCode.
@param request The request containing all options for deleting the specified snapshot. | [
"Deleting",
"the",
"specified",
"snapshot",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/bcc/BccClient.java#L1484-L1490 |
58,748 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/bcc/BccClient.java | BccClient.listSecurityGroups | public ListSecurityGroupsResponse listSecurityGroups(ListSecurityGroupsRequest request) {
checkNotNull(request, "request should not be null.");
InternalRequest internalRequest = this.createRequest(request, HttpMethodName.GET, SECURITYGROUP_PREFIX);
if (!Strings.isNullOrEmpty(request.getMarker())... | java | public ListSecurityGroupsResponse listSecurityGroups(ListSecurityGroupsRequest request) {
checkNotNull(request, "request should not be null.");
InternalRequest internalRequest = this.createRequest(request, HttpMethodName.GET, SECURITYGROUP_PREFIX);
if (!Strings.isNullOrEmpty(request.getMarker())... | [
"public",
"ListSecurityGroupsResponse",
"listSecurityGroups",
"(",
"ListSecurityGroupsRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"request should not be null.\"",
")",
";",
"InternalRequest",
"internalRequest",
"=",
"this",
".",
"createRequest",
"(... | Listing SecurityGroup owned by the authenticated user.
@param request The request containing all options for listing SecurityGroup owned by user.
@return The response with list of SecurityGroup which contains SecurityGroup rules owned by user. | [
"Listing",
"SecurityGroup",
"owned",
"by",
"the",
"authenticated",
"user",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/bcc/BccClient.java#L1500-L1516 |
58,749 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/bcc/BccClient.java | BccClient.createSecurityGroup | public CreateSecurityGroupResponse createSecurityGroup(CreateSecurityGroupRequest request) {
checkNotNull(request, "request should not be null.");
if (Strings.isNullOrEmpty(request.getClientToken())) {
request.setClientToken(this.generateClientToken());
}
checkStringNotEmpty(... | java | public CreateSecurityGroupResponse createSecurityGroup(CreateSecurityGroupRequest request) {
checkNotNull(request, "request should not be null.");
if (Strings.isNullOrEmpty(request.getClientToken())) {
request.setClientToken(this.generateClientToken());
}
checkStringNotEmpty(... | [
"public",
"CreateSecurityGroupResponse",
"createSecurityGroup",
"(",
"CreateSecurityGroupRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"request should not be null.\"",
")",
";",
"if",
"(",
"Strings",
".",
"isNullOrEmpty",
"(",
"request",
".",
"ge... | Creating a newly SecurityGroup with specified rules.
@param request The request containing all options for creating a new SecurityGroup.
@return The response with the id of SecurityGroup that was created newly. | [
"Creating",
"a",
"newly",
"SecurityGroup",
"with",
"specified",
"rules",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/bcc/BccClient.java#L1524-L1537 |
58,750 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/bcc/BccClient.java | BccClient.authorizeSecurityGroupRule | public void authorizeSecurityGroupRule(SecurityGroupRuleOperateRequest request) {
checkNotNull(request, "request should not be null.");
checkStringNotEmpty(request.getSecurityGroupId(), "securityGroupId should not be empty.");
if (Strings.isNullOrEmpty(request.getClientToken())) {
re... | java | public void authorizeSecurityGroupRule(SecurityGroupRuleOperateRequest request) {
checkNotNull(request, "request should not be null.");
checkStringNotEmpty(request.getSecurityGroupId(), "securityGroupId should not be empty.");
if (Strings.isNullOrEmpty(request.getClientToken())) {
re... | [
"public",
"void",
"authorizeSecurityGroupRule",
"(",
"SecurityGroupRuleOperateRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"request should not be null.\"",
")",
";",
"checkStringNotEmpty",
"(",
"request",
".",
"getSecurityGroupId",
"(",
")",
",",
... | authorizing a security group rule to a specified security group
@param request The request containing all options for authorizing security group rule | [
"authorizing",
"a",
"security",
"group",
"rule",
"to",
"a",
"specified",
"security",
"group"
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/bcc/BccClient.java#L1543-L1558 |
58,751 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/bcc/BccClient.java | BccClient.deleteSecurityGroup | public void deleteSecurityGroup(DeleteSecurityGroupRequest request) {
checkNotNull(request, "request should not be null.");
checkStringNotEmpty(request.getSecurityGroupId(), "request securityGroupId should not be empty.");
InternalRequest internalRequest =
this.createRequest(requ... | java | public void deleteSecurityGroup(DeleteSecurityGroupRequest request) {
checkNotNull(request, "request should not be null.");
checkStringNotEmpty(request.getSecurityGroupId(), "request securityGroupId should not be empty.");
InternalRequest internalRequest =
this.createRequest(requ... | [
"public",
"void",
"deleteSecurityGroup",
"(",
"DeleteSecurityGroupRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"request should not be null.\"",
")",
";",
"checkStringNotEmpty",
"(",
"request",
".",
"getSecurityGroupId",
"(",
")",
",",
"\"request... | Deleting the specified SecurityGroup.
@param request The request containing all options for deleting the specified SecurityGroup owned by user. | [
"Deleting",
"the",
"specified",
"SecurityGroup",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/bcc/BccClient.java#L1595-L1601 |
58,752 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/bos/model/ObjectMetadata.java | ObjectMetadata.getUserMetaDataOf | public String getUserMetaDataOf(String key) {
return this.userMetadata == null ? null : this.userMetadata.get(key);
} | java | public String getUserMetaDataOf(String key) {
return this.userMetadata == null ? null : this.userMetadata.get(key);
} | [
"public",
"String",
"getUserMetaDataOf",
"(",
"String",
"key",
")",
"{",
"return",
"this",
".",
"userMetadata",
"==",
"null",
"?",
"null",
":",
"this",
".",
"userMetadata",
".",
"get",
"(",
"key",
")",
";",
"}"
] | For internal use only. Returns the value of the userMetadata for the specified key.
@param key the key of the userMetadata
@return the value of the userMetadata | [
"For",
"internal",
"use",
"only",
".",
"Returns",
"the",
"value",
"of",
"the",
"userMetadata",
"for",
"the",
"specified",
"key",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/bos/model/ObjectMetadata.java#L164-L166 |
58,753 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/vod/VodClient.java | VodClient.listMediaResources | public ListMediaResourceResponse listMediaResources(
int pageNo,
int pageSize,
String status,
Date begin,
Date end,
String title) {
ListMediaResourceRequest request =
new ListMediaResourceRequest()
.w... | java | public ListMediaResourceResponse listMediaResources(
int pageNo,
int pageSize,
String status,
Date begin,
Date end,
String title) {
ListMediaResourceRequest request =
new ListMediaResourceRequest()
.w... | [
"public",
"ListMediaResourceResponse",
"listMediaResources",
"(",
"int",
"pageNo",
",",
"int",
"pageSize",
",",
"String",
"status",
",",
"Date",
"begin",
",",
"Date",
"end",
",",
"String",
"title",
")",
"{",
"ListMediaResourceRequest",
"request",
"=",
"new",
"Li... | List the properties of all media resource managed by VOD service.
recommend use marker mode to get high performance
<p>
The caller <i>must</i> authenticate with a valid BCE Access Key / Private Key pair.
@param pageNo The pageNo need to list, must be greater than 0
@param pageSize The pageSize ,must in range [LIST_MI... | [
"List",
"the",
"properties",
"of",
"all",
"media",
"resource",
"managed",
"by",
"VOD",
"service",
".",
"recommend",
"use",
"marker",
"mode",
"to",
"get",
"high",
"performance"
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/vod/VodClient.java#L509-L526 |
58,754 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/vod/VodClient.java | VodClient.listMediaResourcesByMarker | public ListMediaResourceByMarkerResponse listMediaResourcesByMarker(
String marker,
int maxSize,
String status,
Date begin,
Date end,
String title) {
ListMediaResourceByMarkerRequest request =
new ListMediaResourceByMarkerRe... | java | public ListMediaResourceByMarkerResponse listMediaResourcesByMarker(
String marker,
int maxSize,
String status,
Date begin,
Date end,
String title) {
ListMediaResourceByMarkerRequest request =
new ListMediaResourceByMarkerRe... | [
"public",
"ListMediaResourceByMarkerResponse",
"listMediaResourcesByMarker",
"(",
"String",
"marker",
",",
"int",
"maxSize",
",",
"String",
"status",
",",
"Date",
"begin",
",",
"Date",
"end",
",",
"String",
"title",
")",
"{",
"ListMediaResourceByMarkerRequest",
"reque... | Use marker mode to List the properties of all media resource managed by VOD service.
If media size beyond 1000, strongly recommend to use marker mode
<p>
The caller <i>must</i> authenticate with a valid BCE Access Key / Private Key pair.
@param marker The marker labels the query begining; first query use NULL.
@param... | [
"Use",
"marker",
"mode",
"to",
"List",
"the",
"properties",
"of",
"all",
"media",
"resource",
"managed",
"by",
"VOD",
"service",
".",
"If",
"media",
"size",
"beyond",
"1000",
"strongly",
"recommend",
"to",
"use",
"marker",
"mode"
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/vod/VodClient.java#L575-L587 |
58,755 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/vod/VodClient.java | VodClient.getMediaSourceDownload | public GetMediaSourceDownloadResponse getMediaSourceDownload(String mediaId, long expiredInSeconds) {
GetMediaSourceDownloadRequest request = new GetMediaSourceDownloadRequest()
.withMediaId(mediaId)
.withExpiredInSeconds(expiredInSeconds);
return getMediaSourceDownload(r... | java | public GetMediaSourceDownloadResponse getMediaSourceDownload(String mediaId, long expiredInSeconds) {
GetMediaSourceDownloadRequest request = new GetMediaSourceDownloadRequest()
.withMediaId(mediaId)
.withExpiredInSeconds(expiredInSeconds);
return getMediaSourceDownload(r... | [
"public",
"GetMediaSourceDownloadResponse",
"getMediaSourceDownload",
"(",
"String",
"mediaId",
",",
"long",
"expiredInSeconds",
")",
"{",
"GetMediaSourceDownloadRequest",
"request",
"=",
"new",
"GetMediaSourceDownloadRequest",
"(",
")",
".",
"withMediaId",
"(",
"mediaId",
... | get media source download url.
@param mediaId The unique ID for each media resource
@param expiredInSeconds The expire time
@return | [
"get",
"media",
"source",
"download",
"url",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/vod/VodClient.java#L905-L910 |
58,756 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/tsdb/model/Datapoint.java | Datapoint.addLongValue | public Datapoint addLongValue(long time, long value) {
initialValues();
checkType(TsdbConstants.TYPE_LONG);
values.add(Lists.<JsonNode> newArrayList(new LongNode(time), new LongNode(value)));
return this;
} | java | public Datapoint addLongValue(long time, long value) {
initialValues();
checkType(TsdbConstants.TYPE_LONG);
values.add(Lists.<JsonNode> newArrayList(new LongNode(time), new LongNode(value)));
return this;
} | [
"public",
"Datapoint",
"addLongValue",
"(",
"long",
"time",
",",
"long",
"value",
")",
"{",
"initialValues",
"(",
")",
";",
"checkType",
"(",
"TsdbConstants",
".",
"TYPE_LONG",
")",
";",
"values",
".",
"add",
"(",
"Lists",
".",
"<",
"JsonNode",
">",
"new... | Add datapoint of long type value.
@param time datapoint's timestamp
@param value datapoint's value
@return Datapoint | [
"Add",
"datapoint",
"of",
"long",
"type",
"value",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/tsdb/model/Datapoint.java#L110-L116 |
58,757 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/tsdb/model/Datapoint.java | Datapoint.addDoubleValue | public Datapoint addDoubleValue(long time, double value) {
initialValues();
checkType(TsdbConstants.TYPE_DOUBLE);
values.add(Lists.<JsonNode> newArrayList(new LongNode(time), new DoubleNode(value)));
return this;
} | java | public Datapoint addDoubleValue(long time, double value) {
initialValues();
checkType(TsdbConstants.TYPE_DOUBLE);
values.add(Lists.<JsonNode> newArrayList(new LongNode(time), new DoubleNode(value)));
return this;
} | [
"public",
"Datapoint",
"addDoubleValue",
"(",
"long",
"time",
",",
"double",
"value",
")",
"{",
"initialValues",
"(",
")",
";",
"checkType",
"(",
"TsdbConstants",
".",
"TYPE_DOUBLE",
")",
";",
"values",
".",
"add",
"(",
"Lists",
".",
"<",
"JsonNode",
">",
... | Add datapoint of double type value.
@param time datapoint's timestamp
@param value datapoint's value
@return Datapoint | [
"Add",
"datapoint",
"of",
"double",
"type",
"value",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/tsdb/model/Datapoint.java#L125-L131 |
58,758 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/tsdb/model/Datapoint.java | Datapoint.addStringValue | public Datapoint addStringValue(long time, String value) {
initialValues();
checkType(TsdbConstants.TYPE_STRING);
values.add(Lists.<JsonNode> newArrayList(new LongNode(time), new TextNode(value)));
return this;
} | java | public Datapoint addStringValue(long time, String value) {
initialValues();
checkType(TsdbConstants.TYPE_STRING);
values.add(Lists.<JsonNode> newArrayList(new LongNode(time), new TextNode(value)));
return this;
} | [
"public",
"Datapoint",
"addStringValue",
"(",
"long",
"time",
",",
"String",
"value",
")",
"{",
"initialValues",
"(",
")",
";",
"checkType",
"(",
"TsdbConstants",
".",
"TYPE_STRING",
")",
";",
"values",
".",
"add",
"(",
"Lists",
".",
"<",
"JsonNode",
">",
... | Add datapoint of String type value.
@param time datapoint's timestamp
@param value datapoint's value
@return Datapoint | [
"Add",
"datapoint",
"of",
"String",
"type",
"value",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/tsdb/model/Datapoint.java#L140-L146 |
58,759 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/tsdb/model/Datapoint.java | Datapoint.addTag | public Datapoint addTag(String tagKey, String tagValue) {
initialTags();
tags.put(tagKey, tagValue);
return this;
} | java | public Datapoint addTag(String tagKey, String tagValue) {
initialTags();
tags.put(tagKey, tagValue);
return this;
} | [
"public",
"Datapoint",
"addTag",
"(",
"String",
"tagKey",
",",
"String",
"tagValue",
")",
"{",
"initialTags",
"(",
")",
";",
"tags",
".",
"put",
"(",
"tagKey",
",",
"tagValue",
")",
";",
"return",
"this",
";",
"}"
] | Add tag for the datapoint.
@param tagKey
@param tagValue
@return Datapoint | [
"Add",
"tag",
"for",
"the",
"datapoint",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/tsdb/model/Datapoint.java#L166-L170 |
58,760 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/lss/LssUtils.java | LssUtils.hmacSha256 | public static String hmacSha256(String input, String secretKey) {
if (input == null) {
throw new NullPointerException("input");
} else if (secretKey == null) {
throw new NullPointerException("secretKey");
}
return hmacSha256(input.getBytes(CHARSET_UTF8), secretKey... | java | public static String hmacSha256(String input, String secretKey) {
if (input == null) {
throw new NullPointerException("input");
} else if (secretKey == null) {
throw new NullPointerException("secretKey");
}
return hmacSha256(input.getBytes(CHARSET_UTF8), secretKey... | [
"public",
"static",
"String",
"hmacSha256",
"(",
"String",
"input",
",",
"String",
"secretKey",
")",
"{",
"if",
"(",
"input",
"==",
"null",
")",
"{",
"throw",
"new",
"NullPointerException",
"(",
"\"input\"",
")",
";",
"}",
"else",
"if",
"(",
"secretKey",
... | Encodes the input String using the UTF8 charset and calls hmacSha256;
@param input data to calculate mac
@param secretKey secret key
@return String, sha256 mac | [
"Encodes",
"the",
"input",
"String",
"using",
"the",
"UTF8",
"charset",
"and",
"calls",
"hmacSha256",
";"
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/lss/LssUtils.java#L27-L34 |
58,761 | baidubce/bce-sdk-java | src/main/java/com/baidubce/BceClientConfiguration.java | BceClientConfiguration.getEndpoint | public String getEndpoint() {
String url = this.endpoint;
// if the set endpoint does not contain a protocol, append protocol to head of it
if (this.endpoint != null && this.endpoint.length() > 0
&& endpoint.indexOf("://") < 0) {
url = protocol.toString().toLowerCase(... | java | public String getEndpoint() {
String url = this.endpoint;
// if the set endpoint does not contain a protocol, append protocol to head of it
if (this.endpoint != null && this.endpoint.length() > 0
&& endpoint.indexOf("://") < 0) {
url = protocol.toString().toLowerCase(... | [
"public",
"String",
"getEndpoint",
"(",
")",
"{",
"String",
"url",
"=",
"this",
".",
"endpoint",
";",
"// if the set endpoint does not contain a protocol, append protocol to head of it",
"if",
"(",
"this",
".",
"endpoint",
"!=",
"null",
"&&",
"this",
".",
"endpoint",
... | Returns the service endpoint URL to which the client will connect.
@return the service endpoint URL to which the client will connect. | [
"Returns",
"the",
"service",
"endpoint",
"URL",
"to",
"which",
"the",
"client",
"will",
"connect",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/BceClientConfiguration.java#L729-L737 |
58,762 | baidubce/bce-sdk-java | src/main/java/com/baidubce/auth/BceV1Signer.java | BceV1Signer.sign | @Override
public void sign(InternalRequest request, BceCredentials credentials, SignOptions options) {
checkNotNull(request, "request should not be null.");
if (credentials == null) {
return;
}
if (options == null) {
if (request.getSignOptions() != null) {
... | java | @Override
public void sign(InternalRequest request, BceCredentials credentials, SignOptions options) {
checkNotNull(request, "request should not be null.");
if (credentials == null) {
return;
}
if (options == null) {
if (request.getSignOptions() != null) {
... | [
"@",
"Override",
"public",
"void",
"sign",
"(",
"InternalRequest",
"request",
",",
"BceCredentials",
"credentials",
",",
"SignOptions",
"options",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"request should not be null.\"",
")",
";",
"if",
"(",
"credentials",
... | Sign the given request with the given set of credentials. Modifies the passed-in request to apply the signature.
@param request the request to sign.
@param credentials the credentials to sign the request with.
@param options the options for signing. | [
"Sign",
"the",
"given",
"request",
"with",
"the",
"given",
"set",
"of",
"credentials",
".",
"Modifies",
"the",
"passed",
"-",
"in",
"request",
"to",
"apply",
"the",
"signature",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/auth/BceV1Signer.java#L80-L141 |
58,763 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/route/RouteClient.java | RouteClient.deleteRouteRule | public void deleteRouteRule(DeleteRouteRequest deleteRouteRequest) {
checkNotNull(deleteRouteRequest, "request should not be null.");
checkNotNull(deleteRouteRequest.getRouteRuleId(), "request routeRuleId should not be null.");
if (Strings.isNullOrEmpty(deleteRouteRequest.getClientToken())) {
... | java | public void deleteRouteRule(DeleteRouteRequest deleteRouteRequest) {
checkNotNull(deleteRouteRequest, "request should not be null.");
checkNotNull(deleteRouteRequest.getRouteRuleId(), "request routeRuleId should not be null.");
if (Strings.isNullOrEmpty(deleteRouteRequest.getClientToken())) {
... | [
"public",
"void",
"deleteRouteRule",
"(",
"DeleteRouteRequest",
"deleteRouteRequest",
")",
"{",
"checkNotNull",
"(",
"deleteRouteRequest",
",",
"\"request should not be null.\"",
")",
";",
"checkNotNull",
"(",
"deleteRouteRequest",
".",
"getRouteRuleId",
"(",
")",
",",
... | Delete the specific route rule
@param deleteRouteRequest the request containing all options for deleting route rule. | [
"Delete",
"the",
"specific",
"route",
"rule"
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/route/RouteClient.java#L225-L236 |
58,764 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/moladb/model/BatchGetItemResponse.java | BatchGetItemResponse.setResponses | public void setResponses(Map<String, List<Map<String, AttributeValue>>> responses) {
this.responses = responses;
} | java | public void setResponses(Map<String, List<Map<String, AttributeValue>>> responses) {
this.responses = responses;
} | [
"public",
"void",
"setResponses",
"(",
"Map",
"<",
"String",
",",
"List",
"<",
"Map",
"<",
"String",
",",
"AttributeValue",
">",
">",
">",
"responses",
")",
"{",
"this",
".",
"responses",
"=",
"responses",
";",
"}"
] | Set the processed items' content for this BatchGetItem request.
@param responses The processed items' content for this BatchGetItem request. | [
"Set",
"the",
"processed",
"items",
"content",
"for",
"this",
"BatchGetItem",
"request",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/moladb/model/BatchGetItemResponse.java#L75-L77 |
58,765 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/media/MediaClient.java | MediaClient.createTranscodingJob | public CreateTranscodingJobResponse createTranscodingJob(
String pipelineName, String sourceKey, String targetKey, String presetName,
String watermarkId, DelogoArea delogoArea) {
CreateTranscodingJobRequest request = new CreateTranscodingJobRequest();
request.setPipelineName(pipe... | java | public CreateTranscodingJobResponse createTranscodingJob(
String pipelineName, String sourceKey, String targetKey, String presetName,
String watermarkId, DelogoArea delogoArea) {
CreateTranscodingJobRequest request = new CreateTranscodingJobRequest();
request.setPipelineName(pipe... | [
"public",
"CreateTranscodingJobResponse",
"createTranscodingJob",
"(",
"String",
"pipelineName",
",",
"String",
"sourceKey",
",",
"String",
"targetKey",
",",
"String",
"presetName",
",",
"String",
"watermarkId",
",",
"DelogoArea",
"delogoArea",
")",
"{",
"CreateTranscod... | Creates a new transcoder job which converts media files in BOS buckets with specified preset, watermarkId, and
delogoArea.
@param pipelineName The name of pipeline used by this job.
@param sourceKey The key of the source media file in the bucket specified in the pipeline.
@param targetKey The key of the target m... | [
"Creates",
"a",
"new",
"transcoder",
"job",
"which",
"converts",
"media",
"files",
"in",
"BOS",
"buckets",
"with",
"specified",
"preset",
"watermarkId",
"and",
"delogoArea",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/media/MediaClient.java#L319-L340 |
58,766 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/media/MediaClient.java | MediaClient.listPipelines | public ListPipelinesResponse listPipelines(ListPipelinesRequest request) {
checkNotNull(request, "The parameter request should NOT be null.");
InternalRequest internalRequest = createRequest(HttpMethodName.GET, request, PIPELINE);
return invokeHttpClient(internalRequest, ListPipelinesResponse.cl... | java | public ListPipelinesResponse listPipelines(ListPipelinesRequest request) {
checkNotNull(request, "The parameter request should NOT be null.");
InternalRequest internalRequest = createRequest(HttpMethodName.GET, request, PIPELINE);
return invokeHttpClient(internalRequest, ListPipelinesResponse.cl... | [
"public",
"ListPipelinesResponse",
"listPipelines",
"(",
"ListPipelinesRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"The parameter request should NOT be null.\"",
")",
";",
"InternalRequest",
"internalRequest",
"=",
"createRequest",
"(",
"HttpMethodNa... | List all your pipelines.
@param request The request object containing all options for listing all pipelines.
@return The list of all your pipelines | [
"List",
"all",
"your",
"pipelines",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/media/MediaClient.java#L606-L610 |
58,767 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/media/MediaClient.java | MediaClient.deletePipeline | public void deletePipeline(DeletePipelineRequest request) {
checkNotNull(request, "The parameter request should NOT be null.");
checkStringNotEmpty(request.getPipelineName(),
"The parameter pipelineName should NOT be null or empty string.");
InternalRequest internalRequest =
... | java | public void deletePipeline(DeletePipelineRequest request) {
checkNotNull(request, "The parameter request should NOT be null.");
checkStringNotEmpty(request.getPipelineName(),
"The parameter pipelineName should NOT be null or empty string.");
InternalRequest internalRequest =
... | [
"public",
"void",
"deletePipeline",
"(",
"DeletePipelineRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"The parameter request should NOT be null.\"",
")",
";",
"checkStringNotEmpty",
"(",
"request",
".",
"getPipelineName",
"(",
")",
",",
"\"The pa... | Deletes a pipeline with the specified pipeline name.
@param request The request object containing all options for deleting a pipelines. | [
"Deletes",
"a",
"pipeline",
"with",
"the",
"specified",
"pipeline",
"name",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/media/MediaClient.java#L660-L668 |
58,768 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/media/MediaClient.java | MediaClient.createPreset | public CreatePresetResponse createPreset(String presetName, String container) {
return createPreset(presetName, null, container, true, null, null, null, null, null);
} | java | public CreatePresetResponse createPreset(String presetName, String container) {
return createPreset(presetName, null, container, true, null, null, null, null, null);
} | [
"public",
"CreatePresetResponse",
"createPreset",
"(",
"String",
"presetName",
",",
"String",
"container",
")",
"{",
"return",
"createPreset",
"(",
"presetName",
",",
"null",
",",
"container",
",",
"true",
",",
"null",
",",
"null",
",",
"null",
",",
"null",
... | Create a preset which only convert source media file to a different container format without changing the file
contents.
@param presetName The name of the new preset.
@param container The container type for the output file. Valid values include mp4, flv, hls, mp3, m4a. | [
"Create",
"a",
"preset",
"which",
"only",
"convert",
"source",
"media",
"file",
"to",
"a",
"different",
"container",
"format",
"without",
"changing",
"the",
"file",
"contents",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/media/MediaClient.java#L833-L835 |
58,769 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/media/MediaClient.java | MediaClient.listPresets | public ListPresetsResponse listPresets(ListPresetsRequest request) {
checkNotNull(request, "The parameter request should NOT be null.");
InternalRequest internalRequest = createRequest(HttpMethodName.GET, request, PRESET);
return invokeHttpClient(internalRequest, ListPresetsResponse.class);
... | java | public ListPresetsResponse listPresets(ListPresetsRequest request) {
checkNotNull(request, "The parameter request should NOT be null.");
InternalRequest internalRequest = createRequest(HttpMethodName.GET, request, PRESET);
return invokeHttpClient(internalRequest, ListPresetsResponse.class);
... | [
"public",
"ListPresetsResponse",
"listPresets",
"(",
"ListPresetsRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"The parameter request should NOT be null.\"",
")",
";",
"InternalRequest",
"internalRequest",
"=",
"createRequest",
"(",
"HttpMethodName",
... | List all system and user's preset.
@param request The request object containing all options for listing presets.
@return The list of all available preset. | [
"List",
"all",
"system",
"and",
"user",
"s",
"preset",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/media/MediaClient.java#L932-L936 |
58,770 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/media/MediaClient.java | MediaClient.createWaterMark | public CreateWaterMarkResponse createWaterMark(CreateWaterMarkRequest request) {
checkStringNotEmpty(request.getBucket(), "The parameter bucket should NOT be null or empty string.");
checkStringNotEmpty(request.getKey(), "The parameter key should NOT be null or empty string.");
InternalRequest i... | java | public CreateWaterMarkResponse createWaterMark(CreateWaterMarkRequest request) {
checkStringNotEmpty(request.getBucket(), "The parameter bucket should NOT be null or empty string.");
checkStringNotEmpty(request.getKey(), "The parameter key should NOT be null or empty string.");
InternalRequest i... | [
"public",
"CreateWaterMarkResponse",
"createWaterMark",
"(",
"CreateWaterMarkRequest",
"request",
")",
"{",
"checkStringNotEmpty",
"(",
"request",
".",
"getBucket",
"(",
")",
",",
"\"The parameter bucket should NOT be null or empty string.\"",
")",
";",
"checkStringNotEmpty",
... | Creates a water mark and return water mark ID
@param request The request object containing all options for creating new water mark.
@return watermarkId the unique ID of the new water mark. | [
"Creates",
"a",
"water",
"mark",
"and",
"return",
"water",
"mark",
"ID"
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/media/MediaClient.java#L1100-L1106 |
58,771 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/media/MediaClient.java | MediaClient.listWaterMark | public ListWaterMarkResponse listWaterMark(ListWaterMarkRequest request) {
InternalRequest internalRequest = createRequest(HttpMethodName.GET, request, WATER_MARK);
return invokeHttpClient(internalRequest, ListWaterMarkResponse.class);
} | java | public ListWaterMarkResponse listWaterMark(ListWaterMarkRequest request) {
InternalRequest internalRequest = createRequest(HttpMethodName.GET, request, WATER_MARK);
return invokeHttpClient(internalRequest, ListWaterMarkResponse.class);
} | [
"public",
"ListWaterMarkResponse",
"listWaterMark",
"(",
"ListWaterMarkRequest",
"request",
")",
"{",
"InternalRequest",
"internalRequest",
"=",
"createRequest",
"(",
"HttpMethodName",
".",
"GET",
",",
"request",
",",
"WATER_MARK",
")",
";",
"return",
"invokeHttpClient"... | List all water mark.
@return The list of all user's water mark. | [
"List",
"all",
"water",
"mark",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/media/MediaClient.java#L1151-L1155 |
58,772 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/bmr/model/ModifyInstanceGroupsRequest.java | ModifyInstanceGroupsRequest.withInstanceGroup | public ModifyInstanceGroupsRequest withInstanceGroup(ModifyInstanceGroupConfig instanceGroup) {
if (this.instanceGroups == null) {
this.instanceGroups = new ArrayList<ModifyInstanceGroupConfig>();
}
this.instanceGroups.add(instanceGroup);
return this;
} | java | public ModifyInstanceGroupsRequest withInstanceGroup(ModifyInstanceGroupConfig instanceGroup) {
if (this.instanceGroups == null) {
this.instanceGroups = new ArrayList<ModifyInstanceGroupConfig>();
}
this.instanceGroups.add(instanceGroup);
return this;
} | [
"public",
"ModifyInstanceGroupsRequest",
"withInstanceGroup",
"(",
"ModifyInstanceGroupConfig",
"instanceGroup",
")",
"{",
"if",
"(",
"this",
".",
"instanceGroups",
"==",
"null",
")",
"{",
"this",
".",
"instanceGroups",
"=",
"new",
"ArrayList",
"<",
"ModifyInstanceGro... | Configure the instance group to be modified.
@param instanceGroup an instance group config to be added.
@return ModifyInstanceGroupsRequest | [
"Configure",
"the",
"instance",
"group",
"to",
"be",
"modified",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/bmr/model/ModifyInstanceGroupsRequest.java#L61-L67 |
58,773 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/bmr/model/CreateClusterRequest.java | CreateClusterRequest.withInstanceGroup | public CreateClusterRequest withInstanceGroup(InstanceGroupConfig instanceGroup) {
if (this.instanceGroups == null) {
this.instanceGroups = new ArrayList<InstanceGroupConfig>();
}
this.instanceGroups.add(instanceGroup);
return this;
} | java | public CreateClusterRequest withInstanceGroup(InstanceGroupConfig instanceGroup) {
if (this.instanceGroups == null) {
this.instanceGroups = new ArrayList<InstanceGroupConfig>();
}
this.instanceGroups.add(instanceGroup);
return this;
} | [
"public",
"CreateClusterRequest",
"withInstanceGroup",
"(",
"InstanceGroupConfig",
"instanceGroup",
")",
"{",
"if",
"(",
"this",
".",
"instanceGroups",
"==",
"null",
")",
"{",
"this",
".",
"instanceGroups",
"=",
"new",
"ArrayList",
"<",
"InstanceGroupConfig",
">",
... | Configure the instance group for the cluster.
@param instanceGroup An InstanceGroupConfig instance.
@return CreateClusterRequest | [
"Configure",
"the",
"instance",
"group",
"for",
"the",
"cluster",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/bmr/model/CreateClusterRequest.java#L174-L180 |
58,774 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/bmr/model/CreateClusterRequest.java | CreateClusterRequest.withStep | public CreateClusterRequest withStep(StepConfig step) {
if (this.steps == null) {
this.steps = new ArrayList<StepConfig>();
}
this.steps.add(step);
return this;
} | java | public CreateClusterRequest withStep(StepConfig step) {
if (this.steps == null) {
this.steps = new ArrayList<StepConfig>();
}
this.steps.add(step);
return this;
} | [
"public",
"CreateClusterRequest",
"withStep",
"(",
"StepConfig",
"step",
")",
"{",
"if",
"(",
"this",
".",
"steps",
"==",
"null",
")",
"{",
"this",
".",
"steps",
"=",
"new",
"ArrayList",
"<",
"StepConfig",
">",
"(",
")",
";",
"}",
"this",
".",
"steps",... | Configure optional step for the cluster. The step will be scheduled and executed after the cluster is ACTIVE.
And the step also can be added to the cluster by sending AddStepsRequest.
@param step a StepConfig instance to be added.
@return CreateClusterRequest | [
"Configure",
"optional",
"step",
"for",
"the",
"cluster",
".",
"The",
"step",
"will",
"be",
"scheduled",
"and",
"executed",
"after",
"the",
"cluster",
"is",
"ACTIVE",
".",
"And",
"the",
"step",
"also",
"can",
"be",
"added",
"to",
"the",
"cluster",
"by",
... | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/bmr/model/CreateClusterRequest.java#L203-L209 |
58,775 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/tsdb/model/Filters.java | Filters.addField | public Filters addField(String field, String value) {
initialFields();
fields.add(new FieldFilter(field, value));
return this;
} | java | public Filters addField(String field, String value) {
initialFields();
fields.add(new FieldFilter(field, value));
return this;
} | [
"public",
"Filters",
"addField",
"(",
"String",
"field",
",",
"String",
"value",
")",
"{",
"initialFields",
"(",
")",
";",
"fields",
".",
"add",
"(",
"new",
"FieldFilter",
"(",
"field",
",",
"value",
")",
")",
";",
"return",
"this",
";",
"}"
] | Add field filter to fields which just append not replace.
@param field The field name for filter
@param value The value filter
@return Filters | [
"Add",
"field",
"filter",
"to",
"fields",
"which",
"just",
"append",
"not",
"replace",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/tsdb/model/Filters.java#L277-L281 |
58,776 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/tsdb/model/Filters.java | Filters.addTag | public Filters addTag(String tagKey, List<String> tagValues) {
addTags(tagKey, tagValues);
return this;
} | java | public Filters addTag(String tagKey, List<String> tagValues) {
addTags(tagKey, tagValues);
return this;
} | [
"public",
"Filters",
"addTag",
"(",
"String",
"tagKey",
",",
"List",
"<",
"String",
">",
"tagValues",
")",
"{",
"addTags",
"(",
"tagKey",
",",
"tagValues",
")",
";",
"return",
"this",
";",
"}"
] | Add tag to tags which just append not replace.
@param tagKey
@param tagValues
@return Filters | [
"Add",
"tag",
"to",
"tags",
"which",
"just",
"append",
"not",
"replace",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/tsdb/model/Filters.java#L290-L293 |
58,777 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/tsdb/model/ValueFilter.java | ValueFilter.createValueFilter | public static ValueFilter createValueFilter(String operation, String value) {
checkArgument(STRING_SUPPORTED_OPERATION.contains(operation), "String value only support operations in "
+ STRING_SUPPORTED_OPERATION.toString());
ValueFilter valueFilter = new ValueFilter(operation, SINGLE_QUO... | java | public static ValueFilter createValueFilter(String operation, String value) {
checkArgument(STRING_SUPPORTED_OPERATION.contains(operation), "String value only support operations in "
+ STRING_SUPPORTED_OPERATION.toString());
ValueFilter valueFilter = new ValueFilter(operation, SINGLE_QUO... | [
"public",
"static",
"ValueFilter",
"createValueFilter",
"(",
"String",
"operation",
",",
"String",
"value",
")",
"{",
"checkArgument",
"(",
"STRING_SUPPORTED_OPERATION",
".",
"contains",
"(",
"operation",
")",
",",
"\"String value only support operations in \"",
"+",
"S... | Create value filter for String type.
@param operation Operation for comparing which only support =, !=, >, <, >= and <=.
@param value Value for comparing with.
@return ValueFilter | [
"Create",
"value",
"filter",
"for",
"String",
"type",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/tsdb/model/ValueFilter.java#L79-L84 |
58,778 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/tsdb/model/ValueFilter.java | ValueFilter.createValueFilter | public static ValueFilter createValueFilter(String operation, Double value) {
checkArgument(LONG_DOUBLE_SUPPORTED_OPERATION.contains(operation), "Double value only support operations in "
+ LONG_DOUBLE_SUPPORTED_OPERATION.toString());
ValueFilter valueFilter = new ValueFilter(operation, ... | java | public static ValueFilter createValueFilter(String operation, Double value) {
checkArgument(LONG_DOUBLE_SUPPORTED_OPERATION.contains(operation), "Double value only support operations in "
+ LONG_DOUBLE_SUPPORTED_OPERATION.toString());
ValueFilter valueFilter = new ValueFilter(operation, ... | [
"public",
"static",
"ValueFilter",
"createValueFilter",
"(",
"String",
"operation",
",",
"Double",
"value",
")",
"{",
"checkArgument",
"(",
"LONG_DOUBLE_SUPPORTED_OPERATION",
".",
"contains",
"(",
"operation",
")",
",",
"\"Double value only support operations in \"",
"+",... | Create value filter for Double type.
@param operation Operation for comparing which support =, !=, >, <, >= and <=.
@param value Value for comparing with.
@return ValueFilter | [
"Create",
"value",
"filter",
"for",
"Double",
"type",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/tsdb/model/ValueFilter.java#L93-L98 |
58,779 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/tsdb/model/ValueFilter.java | ValueFilter.createValueFilterOfTag | public static ValueFilter createValueFilterOfTag(String operation, String tagKey) {
checkArgument(TAG_SUPPORTED_OPERATION.contains(operation), "Value of tag key only support operations in "
+ TAG_SUPPORTED_OPERATION.toString());
ValueFilter valueFilter = new ValueFilter(operation, tagKey... | java | public static ValueFilter createValueFilterOfTag(String operation, String tagKey) {
checkArgument(TAG_SUPPORTED_OPERATION.contains(operation), "Value of tag key only support operations in "
+ TAG_SUPPORTED_OPERATION.toString());
ValueFilter valueFilter = new ValueFilter(operation, tagKey... | [
"public",
"static",
"ValueFilter",
"createValueFilterOfTag",
"(",
"String",
"operation",
",",
"String",
"tagKey",
")",
"{",
"checkArgument",
"(",
"TAG_SUPPORTED_OPERATION",
".",
"contains",
"(",
"operation",
")",
",",
"\"Value of tag key only support operations in \"",
"+... | Create value filter for comparing with the value of tag key.
@param operation Operation for comparing which support =, !=, >, <, >= and <=.
@param tagKey Value of tag key for comparing with.
@return ValueFilter | [
"Create",
"value",
"filter",
"for",
"comparing",
"with",
"the",
"value",
"of",
"tag",
"key",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/tsdb/model/ValueFilter.java#L121-L126 |
58,780 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/subnet/SubnetClient.java | SubnetClient.listSubnets | public ListSubnetsResponse listSubnets(ListSubnetsRequest request) {
checkNotNull(request, "request should not be null.");
InternalRequest internalRequest = this.createRequest(request, HttpMethodName.GET, SUBNET_PREFIX);
if (request.getMarker() != null) {
internalRequest.addParameter... | java | public ListSubnetsResponse listSubnets(ListSubnetsRequest request) {
checkNotNull(request, "request should not be null.");
InternalRequest internalRequest = this.createRequest(request, HttpMethodName.GET, SUBNET_PREFIX);
if (request.getMarker() != null) {
internalRequest.addParameter... | [
"public",
"ListSubnetsResponse",
"listSubnets",
"(",
"ListSubnetsRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"request should not be null.\"",
")",
";",
"InternalRequest",
"internalRequest",
"=",
"this",
".",
"createRequest",
"(",
"request",
","... | Return a list of subnet owned by the authenticated user.
@param request The request containing all options for listing own's subnet.
@return The response containing a list of subnets owned by the authenticated user. | [
"Return",
"a",
"list",
"of",
"subnet",
"owned",
"by",
"the",
"authenticated",
"user",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/subnet/SubnetClient.java#L212-L222 |
58,781 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/subnet/SubnetClient.java | SubnetClient.getSubnet | public GetSubnetResponse getSubnet(GetSubnetRequest getSubnetRequest) {
checkNotNull(getSubnetRequest, "request should not be null.");
checkNotNull(getSubnetRequest.getSubnetId(), "request vpcId should not be null.");
InternalRequest internalRequest = this.createRequest(
getSubne... | java | public GetSubnetResponse getSubnet(GetSubnetRequest getSubnetRequest) {
checkNotNull(getSubnetRequest, "request should not be null.");
checkNotNull(getSubnetRequest.getSubnetId(), "request vpcId should not be null.");
InternalRequest internalRequest = this.createRequest(
getSubne... | [
"public",
"GetSubnetResponse",
"getSubnet",
"(",
"GetSubnetRequest",
"getSubnetRequest",
")",
"{",
"checkNotNull",
"(",
"getSubnetRequest",
",",
"\"request should not be null.\"",
")",
";",
"checkNotNull",
"(",
"getSubnetRequest",
".",
"getSubnetId",
"(",
")",
",",
"\"r... | Get the detail information of specified subnet.
@param getSubnetRequest The request containing all options for getting the subnet info.
@return A subnet detail model for the subnetId. | [
"Get",
"the",
"detail",
"information",
"of",
"specified",
"subnet",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/subnet/SubnetClient.java#L240-L246 |
58,782 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/subnet/SubnetClient.java | SubnetClient.modifySubnetAttributes | public void modifySubnetAttributes(String subnetId, String name) {
ModifySubnetAttributesRequest request = new ModifySubnetAttributesRequest();
modifySubnetAttributes(request.withName(name).withSubnetId(subnetId));
} | java | public void modifySubnetAttributes(String subnetId, String name) {
ModifySubnetAttributesRequest request = new ModifySubnetAttributesRequest();
modifySubnetAttributes(request.withName(name).withSubnetId(subnetId));
} | [
"public",
"void",
"modifySubnetAttributes",
"(",
"String",
"subnetId",
",",
"String",
"name",
")",
"{",
"ModifySubnetAttributesRequest",
"request",
"=",
"new",
"ModifySubnetAttributesRequest",
"(",
")",
";",
"modifySubnetAttributes",
"(",
"request",
".",
"withName",
"... | Modifying the special attribute to new value of the subnet owned by the user.
@param subnetId The id of the subnet
@param name The name of the subnet after modifying | [
"Modifying",
"the",
"special",
"attribute",
"to",
"new",
"value",
"of",
"the",
"subnet",
"owned",
"by",
"the",
"user",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/subnet/SubnetClient.java#L281-L284 |
58,783 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/ses/SesClient.java | SesClient.verifyEmail | public void verifyEmail(VerifyEmailRequest request) {
checkNotNull(request, "object request should not be null.");
assertStringNotNullOrEmpty(request.getEmailAddress(), "object emailAddress should not be null or empty");
InternalRequest internalRequest =
this.createRequest("veri... | java | public void verifyEmail(VerifyEmailRequest request) {
checkNotNull(request, "object request should not be null.");
assertStringNotNullOrEmpty(request.getEmailAddress(), "object emailAddress should not be null or empty");
InternalRequest internalRequest =
this.createRequest("veri... | [
"public",
"void",
"verifyEmail",
"(",
"VerifyEmailRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"object request should not be null.\"",
")",
";",
"assertStringNotNullOrEmpty",
"(",
"request",
".",
"getEmailAddress",
"(",
")",
",",
"\"object email... | Verify email address
@param request The request object includes the URL address to verify, refer to
<code>com.baidubce.services.ses.model.VerifyEmailRequest</code>
@see com.baidubce.services.ses.model.VerifyEmailRequest | [
"Verify",
"email",
"address"
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/ses/SesClient.java#L107-L115 |
58,784 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/ses/SesClient.java | SesClient.listVerifiedEmail | public ListVerifiedEmailResponse listVerifiedEmail(SesRequest request) {
InternalRequest internalRequest = this.createRequest("verifiedEmail", request, HttpMethodName.GET);
return this.invokeHttpClient(internalRequest, ListVerifiedEmailResponse.class);
} | java | public ListVerifiedEmailResponse listVerifiedEmail(SesRequest request) {
InternalRequest internalRequest = this.createRequest("verifiedEmail", request, HttpMethodName.GET);
return this.invokeHttpClient(internalRequest, ListVerifiedEmailResponse.class);
} | [
"public",
"ListVerifiedEmailResponse",
"listVerifiedEmail",
"(",
"SesRequest",
"request",
")",
"{",
"InternalRequest",
"internalRequest",
"=",
"this",
".",
"createRequest",
"(",
"\"verifiedEmail\"",
",",
"request",
",",
"HttpMethodName",
".",
"GET",
")",
";",
"return"... | Get the list of verified email address
@param request The request object which it's <code>credentials</code> can be override
@return The response object includes the detail of verified email address, refer to
<code>com.baidubce.services.ses.model.ListVerifiedEmailResponse</code>
@see com.baidubce.services.ses.model.L... | [
"Get",
"the",
"list",
"of",
"verified",
"email",
"address"
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/ses/SesClient.java#L135-L138 |
58,785 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/ses/SesClient.java | SesClient.getVerifiedEmail | public GetVerifiedEmailResponse getVerifiedEmail(GetVerifiedEmailRequest request) {
checkNotNull(request, "object request should not be null.");
assertStringNotNullOrEmpty(request.getEmailAddress(), "object emailAddress should not be null or empty");
checkIsEmail(request.getEmailAddress());
... | java | public GetVerifiedEmailResponse getVerifiedEmail(GetVerifiedEmailRequest request) {
checkNotNull(request, "object request should not be null.");
assertStringNotNullOrEmpty(request.getEmailAddress(), "object emailAddress should not be null or empty");
checkIsEmail(request.getEmailAddress());
... | [
"public",
"GetVerifiedEmailResponse",
"getVerifiedEmail",
"(",
"GetVerifiedEmailRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"object request should not be null.\"",
")",
";",
"assertStringNotNullOrEmpty",
"(",
"request",
".",
"getEmailAddress",
"(",
... | Get the detail of verified email address
@param request The request object includes email address to get
@return The response object includes the detail of verified email address, refer to
<code>com.baidubce.services.ses.model.GetVerifiedEmailResponse</code>
@see com.baidubce.services.ses.model.GetVerifiedEmailReques... | [
"Get",
"the",
"detail",
"of",
"verified",
"email",
"address"
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/ses/SesClient.java#L159-L167 |
58,786 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/ses/SesClient.java | SesClient.deleteVerifiedEmail | public void deleteVerifiedEmail(DeleteVerifiedEmailRequest request) {
checkNotNull(request, "object request should not be null.");
assertStringNotNullOrEmpty(request.getEmailAddress(), "object emailAddress should not be null or empty");
checkIsEmail(request.getEmailAddress());
InternalR... | java | public void deleteVerifiedEmail(DeleteVerifiedEmailRequest request) {
checkNotNull(request, "object request should not be null.");
assertStringNotNullOrEmpty(request.getEmailAddress(), "object emailAddress should not be null or empty");
checkIsEmail(request.getEmailAddress());
InternalR... | [
"public",
"void",
"deleteVerifiedEmail",
"(",
"DeleteVerifiedEmailRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"object request should not be null.\"",
")",
";",
"assertStringNotNullOrEmpty",
"(",
"request",
".",
"getEmailAddress",
"(",
")",
",",
... | Delete verified email address
@param request The request object includes the email address to delete, refer to
<code>com.baidubce.services.ses.model.DeleteVerifiedEmailRequest</code>
@see com.baidubce.services.ses.model.DeleteVerifiedEmailRequest | [
"Delete",
"verified",
"email",
"address"
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/ses/SesClient.java#L186-L194 |
58,787 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/ses/SesClient.java | SesClient.listVerifiedDomain | public ListVerifiedDomainResponse listVerifiedDomain(SesRequest request) {
InternalRequest internalRequest = this.createRequest("verifiedDomain", request, HttpMethodName.GET);
return this.invokeHttpClient(internalRequest, ListVerifiedDomainResponse.class);
} | java | public ListVerifiedDomainResponse listVerifiedDomain(SesRequest request) {
InternalRequest internalRequest = this.createRequest("verifiedDomain", request, HttpMethodName.GET);
return this.invokeHttpClient(internalRequest, ListVerifiedDomainResponse.class);
} | [
"public",
"ListVerifiedDomainResponse",
"listVerifiedDomain",
"(",
"SesRequest",
"request",
")",
"{",
"InternalRequest",
"internalRequest",
"=",
"this",
".",
"createRequest",
"(",
"\"verifiedDomain\"",
",",
"request",
",",
"HttpMethodName",
".",
"GET",
")",
";",
"retu... | Get the list of verified domain
@param request The request object which it's <code>credentials</code> can be override
@return The response object which includes the detail of verified domain
@see com.baidubce.services.ses.model.ListVerifiedDomainResponse | [
"Get",
"the",
"list",
"of",
"verified",
"domain"
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/ses/SesClient.java#L332-L335 |
58,788 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/ses/SesClient.java | SesClient.getVerifiedDomain | public GetVerifiedDomainResponse getVerifiedDomain(GetVerifiedDomainRequest request) {
checkNotNull(request, "object request should not be null.");
assertStringNotNullOrEmpty(request.getDomainName(), "object domainName should not be null or empty");
InternalRequest internalRequest =
... | java | public GetVerifiedDomainResponse getVerifiedDomain(GetVerifiedDomainRequest request) {
checkNotNull(request, "object request should not be null.");
assertStringNotNullOrEmpty(request.getDomainName(), "object domainName should not be null or empty");
InternalRequest internalRequest =
... | [
"public",
"GetVerifiedDomainResponse",
"getVerifiedDomain",
"(",
"GetVerifiedDomainRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"object request should not be null.\"",
")",
";",
"assertStringNotNullOrEmpty",
"(",
"request",
".",
"getDomainName",
"(",
... | Get the detail of specifical verified domain
@param request The request object which includes the domain to get
@return The response object which includes the detail of verified domain
@see com.baidubce.services.ses.model.GetVerifiedDomainResponse | [
"Get",
"the",
"detail",
"of",
"specifical",
"verified",
"domain"
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/ses/SesClient.java#L354-L361 |
58,789 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/ses/SesClient.java | SesClient.deleteVerifiedDomain | public void deleteVerifiedDomain(DeleteVerifiedDomainRequest request) {
checkNotNull(request, "object request should not be null.");
assertStringNotNullOrEmpty(request.getDomainName(), "object domainName should not be null or empty");
InternalRequest internalRequest =
this.creat... | java | public void deleteVerifiedDomain(DeleteVerifiedDomainRequest request) {
checkNotNull(request, "object request should not be null.");
assertStringNotNullOrEmpty(request.getDomainName(), "object domainName should not be null or empty");
InternalRequest internalRequest =
this.creat... | [
"public",
"void",
"deleteVerifiedDomain",
"(",
"DeleteVerifiedDomainRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"object request should not be null.\"",
")",
";",
"assertStringNotNullOrEmpty",
"(",
"request",
".",
"getDomainName",
"(",
")",
",",
... | Delete the domain
@param request The request object which includes the domain to delete
@see com.baidubce.services.ses.model.DeleteVerifiedDomainRequest | [
"Delete",
"the",
"domain"
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/ses/SesClient.java#L379-L386 |
58,790 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/ses/SesClient.java | SesClient.listRecipientBlacklist | public ListRecipientBlacklistResponse listRecipientBlacklist(SesRequest request) {
InternalRequest internalRequest = this.createRequest("recipientBlacklist", request, HttpMethodName.GET);
return this.invokeHttpClient(internalRequest, ListRecipientBlacklistResponse.class);
} | java | public ListRecipientBlacklistResponse listRecipientBlacklist(SesRequest request) {
InternalRequest internalRequest = this.createRequest("recipientBlacklist", request, HttpMethodName.GET);
return this.invokeHttpClient(internalRequest, ListRecipientBlacklistResponse.class);
} | [
"public",
"ListRecipientBlacklistResponse",
"listRecipientBlacklist",
"(",
"SesRequest",
"request",
")",
"{",
"InternalRequest",
"internalRequest",
"=",
"this",
".",
"createRequest",
"(",
"\"recipientBlacklist\"",
",",
"request",
",",
"HttpMethodName",
".",
"GET",
")",
... | Get the list of blacklist
@param request The request object which it's <code>credentials</code> can be override
@return The response which includes the detail of blacklist
@see com.baidubce.services.ses.model.ListRecipientBlacklistResponse | [
"Get",
"the",
"list",
"of",
"blacklist"
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/ses/SesClient.java#L662-L665 |
58,791 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/ses/SesClient.java | SesClient.isInRecipientBlacklist | public IsInRecipientBlacklistResponse isInRecipientBlacklist(IsInRecipientBlacklistRequest request) {
checkNotNull(request, "object request should not be null.");
assertStringNotNullOrEmpty(request.getEmailAddress(), "object emailAddress should not be null or empty");
InternalRequest internalRe... | java | public IsInRecipientBlacklistResponse isInRecipientBlacklist(IsInRecipientBlacklistRequest request) {
checkNotNull(request, "object request should not be null.");
assertStringNotNullOrEmpty(request.getEmailAddress(), "object emailAddress should not be null or empty");
InternalRequest internalRe... | [
"public",
"IsInRecipientBlacklistResponse",
"isInRecipientBlacklist",
"(",
"IsInRecipientBlacklistRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"object request should not be null.\"",
")",
";",
"assertStringNotNullOrEmpty",
"(",
"request",
".",
"getEmail... | Query the special receiver is in blacklist or not
@param request The request object which includes the special receiver
@return The response result which includes the result of receiver in blacklist or not
@see com.baidubce.services.ses.model.IsInRecipientBlacklistResponse | [
"Query",
"the",
"special",
"receiver",
"is",
"in",
"blacklist",
"or",
"not"
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/ses/SesClient.java#L684-L691 |
58,792 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/ses/SesClient.java | SesClient.getFailedReason | public GetFailedReasonResponse getFailedReason(SesRequest request) {
InternalRequest internalRequest = this.createRequest("failedReason", request, HttpMethodName.GET);
return this.invokeHttpClient(internalRequest, GetFailedReasonResponse.class);
} | java | public GetFailedReasonResponse getFailedReason(SesRequest request) {
InternalRequest internalRequest = this.createRequest("failedReason", request, HttpMethodName.GET);
return this.invokeHttpClient(internalRequest, GetFailedReasonResponse.class);
} | [
"public",
"GetFailedReasonResponse",
"getFailedReason",
"(",
"SesRequest",
"request",
")",
"{",
"InternalRequest",
"internalRequest",
"=",
"this",
".",
"createRequest",
"(",
"\"failedReason\"",
",",
"request",
",",
"HttpMethodName",
".",
"GET",
")",
";",
"return",
"... | Query the failed reason
@param request The request object which it's <code>credentials</code> can be override
@return The response which includes the detail of failed reason
@see com.baidubce.services.ses.model.GetFailedReasonResponse | [
"Query",
"the",
"failed",
"reason"
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/ses/SesClient.java#L710-L713 |
58,793 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/cert/CertClient.java | CertClient.attachRequestToBody | private void attachRequestToBody(AbstractBceRequest request, InternalRequest httpRequest) {
byte[] content;
try {
content = JsonUtils.toJsonString(request).getBytes("utf-8");
} catch (UnsupportedEncodingException e) {
throw new BceClientException("utf-8 encoding not suppo... | java | private void attachRequestToBody(AbstractBceRequest request, InternalRequest httpRequest) {
byte[] content;
try {
content = JsonUtils.toJsonString(request).getBytes("utf-8");
} catch (UnsupportedEncodingException e) {
throw new BceClientException("utf-8 encoding not suppo... | [
"private",
"void",
"attachRequestToBody",
"(",
"AbstractBceRequest",
"request",
",",
"InternalRequest",
"httpRequest",
")",
"{",
"byte",
"[",
"]",
"content",
";",
"try",
"{",
"content",
"=",
"JsonUtils",
".",
"toJsonString",
"(",
"request",
")",
".",
"getBytes",... | put json object into http content for put or post request.
@param request json object of rest request
@param httpRequest http request object | [
"put",
"json",
"object",
"into",
"http",
"content",
"for",
"put",
"or",
"post",
"request",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/cert/CertClient.java#L124-L134 |
58,794 | baidubce/bce-sdk-java | src/main/java/com/baidubce/util/JsonUtils.java | JsonUtils.fromJsonString | public static <T> T fromJsonString(String json, Class<T> clazz) {
if (json == null) {
return null;
}
try {
return JsonUtils.objectMapper.readValue(json, clazz);
} catch (Exception e) {
throw new BceClientException("Unable to parse Json String.", e);
... | java | public static <T> T fromJsonString(String json, Class<T> clazz) {
if (json == null) {
return null;
}
try {
return JsonUtils.objectMapper.readValue(json, clazz);
} catch (Exception e) {
throw new BceClientException("Unable to parse Json String.", e);
... | [
"public",
"static",
"<",
"T",
">",
"T",
"fromJsonString",
"(",
"String",
"json",
",",
"Class",
"<",
"T",
">",
"clazz",
")",
"{",
"if",
"(",
"json",
"==",
"null",
")",
"{",
"return",
"null",
";",
"}",
"try",
"{",
"return",
"JsonUtils",
".",
"objectM... | Returns the deserialized object from the given json string and target class; or null if the given json string is
null. | [
"Returns",
"the",
"deserialized",
"object",
"from",
"the",
"given",
"json",
"string",
"and",
"target",
"class",
";",
"or",
"null",
"if",
"the",
"given",
"json",
"string",
"is",
"null",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/util/JsonUtils.java#L63-L72 |
58,795 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/sms/SmsClient.java | SmsClient.queryMessageDetail | public QueryMessageDetailResponse queryMessageDetail(QueryMessageDetailRequest request) {
checkNotNull(request, "object request should not be null.");
assertStringNotNullOrEmpty(request.getMessageId(), "object messageId should not be null or empty.");
InternalRequest internalRequest =
... | java | public QueryMessageDetailResponse queryMessageDetail(QueryMessageDetailRequest request) {
checkNotNull(request, "object request should not be null.");
assertStringNotNullOrEmpty(request.getMessageId(), "object messageId should not be null or empty.");
InternalRequest internalRequest =
... | [
"public",
"QueryMessageDetailResponse",
"queryMessageDetail",
"(",
"QueryMessageDetailRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"object request should not be null.\"",
")",
";",
"assertStringNotNullOrEmpty",
"(",
"request",
".",
"getMessageId",
"("... | Query message detail
@param request The request object which includes the id of message to query
@return The response object which includes all the detail result, for example <code>id</code>,
<code>content</code>, <code>receiver</code>, <code>sendTime</code> etc
@see com.baidubce.services.sms.model.QueryMessageDetailR... | [
"Query",
"message",
"detail"
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/sms/SmsClient.java#L127-L134 |
58,796 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/sms/SmsClient.java | SmsClient.deleteTemplate | public void deleteTemplate(DeleteTemplateRequest request) {
checkNotNull(request, "object request should not be null.");
assertStringNotNullOrEmpty(request.getTemplateId(), "object templateId should not be null or empty.");
InternalRequest internalRequest =
this.createRequest("t... | java | public void deleteTemplate(DeleteTemplateRequest request) {
checkNotNull(request, "object request should not be null.");
assertStringNotNullOrEmpty(request.getTemplateId(), "object templateId should not be null or empty.");
InternalRequest internalRequest =
this.createRequest("t... | [
"public",
"void",
"deleteTemplate",
"(",
"DeleteTemplateRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"object request should not be null.\"",
")",
";",
"assertStringNotNullOrEmpty",
"(",
"request",
".",
"getTemplateId",
"(",
")",
",",
"\"object t... | Delete message template
@param request The request object which includes the id of template which is ready to be deleted
@see com.baidubce.services.sms.model.DeleteTemplateRequest | [
"Delete",
"message",
"template"
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/sms/SmsClient.java#L176-L183 |
58,797 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/sms/SmsClient.java | SmsClient.getTemplateDetail | public GetTemplateDetailResponse getTemplateDetail(GetTemplateDetailRequest request) {
checkNotNull(request, "object request should not be null.");
assertStringNotNullOrEmpty(request.getTemplateId(), "object templateId should not be null or empty.");
InternalRequest internalRequest =
... | java | public GetTemplateDetailResponse getTemplateDetail(GetTemplateDetailRequest request) {
checkNotNull(request, "object request should not be null.");
assertStringNotNullOrEmpty(request.getTemplateId(), "object templateId should not be null or empty.");
InternalRequest internalRequest =
... | [
"public",
"GetTemplateDetailResponse",
"getTemplateDetail",
"(",
"GetTemplateDetailRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"object request should not be null.\"",
")",
";",
"assertStringNotNullOrEmpty",
"(",
"request",
".",
"getTemplateId",
"(",
... | Get the detail of message template
@param request The request object which includes the id of template which is ready to be get
@return The response object which includes all of the detail of message template, refer to
<code>com.baidubce.services.sms.model.GetTemplateDetailResponse</code>
@see com.baidubce.services.sm... | [
"Get",
"the",
"detail",
"of",
"message",
"template"
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/sms/SmsClient.java#L194-L201 |
58,798 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/sms/SmsClient.java | SmsClient.listTemplate | public ListTemplateResponse listTemplate(SmsRequest request) {
checkNotNull(request, "object request should not be null.");
InternalRequest internalRequest = this.createRequest("template", request, HttpMethodName.GET);
return this.invokeHttpClient(internalRequest, ListTemplateResponse.class);
... | java | public ListTemplateResponse listTemplate(SmsRequest request) {
checkNotNull(request, "object request should not be null.");
InternalRequest internalRequest = this.createRequest("template", request, HttpMethodName.GET);
return this.invokeHttpClient(internalRequest, ListTemplateResponse.class);
... | [
"public",
"ListTemplateResponse",
"listTemplate",
"(",
"SmsRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"object request should not be null.\"",
")",
";",
"InternalRequest",
"internalRequest",
"=",
"this",
".",
"createRequest",
"(",
"\"template\"",... | Get the list of message template
@param request The request object which is empty
@return The response object which includes all of the detail of message template,refer to
<code>com.baidubce.services.sms.model.ListTemplateResponse</code>
@see com.baidubce.services.sms.model.ListTemplateResponse | [
"Get",
"the",
"list",
"of",
"message",
"template"
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/sms/SmsClient.java#L211-L216 |
58,799 | baidubce/bce-sdk-java | src/main/java/com/baidubce/services/sms/SmsClient.java | SmsClient.queryQuota | public QueryQuotaResponse queryQuota(SmsRequest request) {
checkNotNull(request, "object request should not be null.");
InternalRequest internalRequest = this.createRequest("quota", request, HttpMethodName.GET);
return this.invokeHttpClient(internalRequest, QueryQuotaResponse.class);
} | java | public QueryQuotaResponse queryQuota(SmsRequest request) {
checkNotNull(request, "object request should not be null.");
InternalRequest internalRequest = this.createRequest("quota", request, HttpMethodName.GET);
return this.invokeHttpClient(internalRequest, QueryQuotaResponse.class);
} | [
"public",
"QueryQuotaResponse",
"queryQuota",
"(",
"SmsRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"object request should not be null.\"",
")",
";",
"InternalRequest",
"internalRequest",
"=",
"this",
".",
"createRequest",
"(",
"\"quota\"",
",",... | Query the sending quota
@param request The request object which is empty
@return The response object which includes the detail of sending quota, refer to
<code>com.baidubce.services.sms.model.QueryQuotaResponse</code>
@see com.baidubce.services.sms.model.QueryQuotaResponse | [
"Query",
"the",
"sending",
"quota"
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/sms/SmsClient.java#L226-L231 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.