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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
47,500 | akberc/ceylon-maven-plugin | src/main/java/com/dgwave/car/maven/CeylonLifecycleParticipant.java | CeylonLifecycleParticipant.afterProjectsRead | @Override
public void afterProjectsRead(final MavenSession session) throws MavenExecutionException {
boolean anyProject = false;
for (MavenProject project : session.getProjects()) {
if (project.getPlugin("ceylon") != null
|| project.getPlugin("ceylon-maven-plugin") != n... | java | @Override
public void afterProjectsRead(final MavenSession session) throws MavenExecutionException {
boolean anyProject = false;
for (MavenProject project : session.getProjects()) {
if (project.getPlugin("ceylon") != null
|| project.getPlugin("ceylon-maven-plugin") != n... | [
"@",
"Override",
"public",
"void",
"afterProjectsRead",
"(",
"final",
"MavenSession",
"session",
")",
"throws",
"MavenExecutionException",
"{",
"boolean",
"anyProject",
"=",
"false",
";",
"for",
"(",
"MavenProject",
"project",
":",
"session",
".",
"getProjects",
"... | Interception after projects are known.
@param session The Maven session
@throws MavenExecutionException In case of error | [
"Interception",
"after",
"projects",
"are",
"known",
"."
] | b7f6c4a2b24f2fa237350c9e715f4193e83415ef | https://github.com/akberc/ceylon-maven-plugin/blob/b7f6c4a2b24f2fa237350c9e715f4193e83415ef/src/main/java/com/dgwave/car/maven/CeylonLifecycleParticipant.java#L73-L95 |
47,501 | akberc/ceylon-maven-plugin | src/main/java/com/dgwave/car/maven/CeylonLifecycleParticipant.java | CeylonLifecycleParticipant.usesCeylonRepo | private boolean usesCeylonRepo(final MavenProject project) {
for (Repository repo : project.getRepositories()) {
if ("ceylon".equals(repo.getLayout())) {
return true;
}
}
for (Artifact ext : project.getPluginArtifacts()) {
if (... | java | private boolean usesCeylonRepo(final MavenProject project) {
for (Repository repo : project.getRepositories()) {
if ("ceylon".equals(repo.getLayout())) {
return true;
}
}
for (Artifact ext : project.getPluginArtifacts()) {
if (... | [
"private",
"boolean",
"usesCeylonRepo",
"(",
"final",
"MavenProject",
"project",
")",
"{",
"for",
"(",
"Repository",
"repo",
":",
"project",
".",
"getRepositories",
"(",
")",
")",
"{",
"if",
"(",
"\"ceylon\"",
".",
"equals",
"(",
"repo",
".",
"getLayout",
... | Checks that a project use the Ceylon Maven plugin.
@param project Project
@return true if the Ceylon plugin is used, false if not used | [
"Checks",
"that",
"a",
"project",
"use",
"the",
"Ceylon",
"Maven",
"plugin",
"."
] | b7f6c4a2b24f2fa237350c9e715f4193e83415ef | https://github.com/akberc/ceylon-maven-plugin/blob/b7f6c4a2b24f2fa237350c9e715f4193e83415ef/src/main/java/com/dgwave/car/maven/CeylonLifecycleParticipant.java#L102-L115 |
47,502 | josueeduardo/snappy | snappy/src/main/java/io/joshworks/snappy/Exchange.java | Exchange.stream | public void stream(InputStream inputStream, MediaType mediaType) {
try {
OutputStream outputStream = exchange.getOutputStream();
setResponseMediaType(mediaType);
byte[] buffer = new byte[10240];
int len;
while ((len = inputStream.read(buffer)) != -1) ... | java | public void stream(InputStream inputStream, MediaType mediaType) {
try {
OutputStream outputStream = exchange.getOutputStream();
setResponseMediaType(mediaType);
byte[] buffer = new byte[10240];
int len;
while ((len = inputStream.read(buffer)) != -1) ... | [
"public",
"void",
"stream",
"(",
"InputStream",
"inputStream",
",",
"MediaType",
"mediaType",
")",
"{",
"try",
"{",
"OutputStream",
"outputStream",
"=",
"exchange",
".",
"getOutputStream",
"(",
")",
";",
"setResponseMediaType",
"(",
"mediaType",
")",
";",
"byte"... | Transfers blocking the bytes from a given InputStream to this response
@param inputStream The data to be sent
@param mediaType The stream Content-Type | [
"Transfers",
"blocking",
"the",
"bytes",
"from",
"a",
"given",
"InputStream",
"to",
"this",
"response"
] | d95a9e811eda3c24a5e53086369208819884fa49 | https://github.com/josueeduardo/snappy/blob/d95a9e811eda3c24a5e53086369208819884fa49/snappy/src/main/java/io/joshworks/snappy/Exchange.java#L263-L276 |
47,503 | NessComputing/service-discovery | client/src/main/java/com/nesscomputing/service/discovery/client/internal/ConsistentHashRing.java | ConsistentHashRing.get | public ServiceInformation get(String key) {
ServiceInformation info = null;
long hash = algorithm.hash(key);
//Find the first server with a hash key after this one
final SortedMap<Long, ServiceInformation> tailMap = ring.tailMap(hash);
//Wrap around to the beginning of the ring, ... | java | public ServiceInformation get(String key) {
ServiceInformation info = null;
long hash = algorithm.hash(key);
//Find the first server with a hash key after this one
final SortedMap<Long, ServiceInformation> tailMap = ring.tailMap(hash);
//Wrap around to the beginning of the ring, ... | [
"public",
"ServiceInformation",
"get",
"(",
"String",
"key",
")",
"{",
"ServiceInformation",
"info",
"=",
"null",
";",
"long",
"hash",
"=",
"algorithm",
".",
"hash",
"(",
"key",
")",
";",
"//Find the first server with a hash key after this one",
"final",
"SortedMap"... | Returns the appropriate server for the given key.
Running time: O(1)
@param key
@throws java.util.NoSuchElementException if the ring is empty
@return | [
"Returns",
"the",
"appropriate",
"server",
"for",
"the",
"given",
"key",
"."
] | 5091ffdb1de6b12d216d1c238f72858037c7b765 | https://github.com/NessComputing/service-discovery/blob/5091ffdb1de6b12d216d1c238f72858037c7b765/client/src/main/java/com/nesscomputing/service/discovery/client/internal/ConsistentHashRing.java#L84-L93 |
47,504 | gsi-upm/Shanks | shanks-core/src/main/java/es/upm/dit/gsi/shanks/model/scenario/ComplexScenario.java | ComplexScenario.addScenario | public void addScenario(Class<? extends Scenario> scenarioClass,
String scenarioID, String initialState, Properties properties,
String gatewayDeviceID, String externalLinkID)
throws ShanksException {
// throws NonGatewayDeviceException, TooManyConnectionException,
// ... | java | public void addScenario(Class<? extends Scenario> scenarioClass,
String scenarioID, String initialState, Properties properties,
String gatewayDeviceID, String externalLinkID)
throws ShanksException {
// throws NonGatewayDeviceException, TooManyConnectionException,
// ... | [
"public",
"void",
"addScenario",
"(",
"Class",
"<",
"?",
"extends",
"Scenario",
">",
"scenarioClass",
",",
"String",
"scenarioID",
",",
"String",
"initialState",
",",
"Properties",
"properties",
",",
"String",
"gatewayDeviceID",
",",
"String",
"externalLinkID",
")... | Add the scenario to the complex scenario.
@param scenarioClass
@param scenarioID
@param initialState
@param properties
@param gatewayDeviceID
@param externalLinkID
@throws ShanksException | [
"Add",
"the",
"scenario",
"to",
"the",
"complex",
"scenario",
"."
] | 35d87a81c22731f4f83bbd0571c9c6d466bd16be | https://github.com/gsi-upm/Shanks/blob/35d87a81c22731f4f83bbd0571c9c6d466bd16be/shanks-core/src/main/java/es/upm/dit/gsi/shanks/model/scenario/ComplexScenario.java#L110-L160 |
47,505 | gsi-upm/Shanks | shanks-core/src/main/java/es/upm/dit/gsi/shanks/model/scenario/ComplexScenario.java | ComplexScenario.addPossiblesFailuresComplex | public void addPossiblesFailuresComplex() {
Set<Scenario> scenarios = this.getScenarios();
for (Scenario s : scenarios) {
for (Class<? extends Failure> c : s.getPossibleFailures().keySet()) {
if (!this.getPossibleFailures().containsKey(c)) {
this.addPossib... | java | public void addPossiblesFailuresComplex() {
Set<Scenario> scenarios = this.getScenarios();
for (Scenario s : scenarios) {
for (Class<? extends Failure> c : s.getPossibleFailures().keySet()) {
if (!this.getPossibleFailures().containsKey(c)) {
this.addPossib... | [
"public",
"void",
"addPossiblesFailuresComplex",
"(",
")",
"{",
"Set",
"<",
"Scenario",
">",
"scenarios",
"=",
"this",
".",
"getScenarios",
"(",
")",
";",
"for",
"(",
"Scenario",
"s",
":",
"scenarios",
")",
"{",
"for",
"(",
"Class",
"<",
"?",
"extends",
... | Idem que con los eventos y los dupes | [
"Idem",
"que",
"con",
"los",
"eventos",
"y",
"los",
"dupes"
] | 35d87a81c22731f4f83bbd0571c9c6d466bd16be | https://github.com/gsi-upm/Shanks/blob/35d87a81c22731f4f83bbd0571c9c6d466bd16be/shanks-core/src/main/java/es/upm/dit/gsi/shanks/model/scenario/ComplexScenario.java#L255-L274 |
47,506 | gsi-upm/Shanks | shanks-core/src/main/java/es/upm/dit/gsi/shanks/model/scenario/ComplexScenario.java | ComplexScenario.addPossiblesEventsComplex | public void addPossiblesEventsComplex() {
Set<Scenario> scenarios = this.getScenarios();
for (Scenario s : scenarios) {
for (Class<? extends Event> c : s.getPossibleEventsOfNE().keySet()) {
if (!this.getPossibleEventsOfNE().containsKey(c)) {
this.addPossib... | java | public void addPossiblesEventsComplex() {
Set<Scenario> scenarios = this.getScenarios();
for (Scenario s : scenarios) {
for (Class<? extends Event> c : s.getPossibleEventsOfNE().keySet()) {
if (!this.getPossibleEventsOfNE().containsKey(c)) {
this.addPossib... | [
"public",
"void",
"addPossiblesEventsComplex",
"(",
")",
"{",
"Set",
"<",
"Scenario",
">",
"scenarios",
"=",
"this",
".",
"getScenarios",
"(",
")",
";",
"for",
"(",
"Scenario",
"s",
":",
"scenarios",
")",
"{",
"for",
"(",
"Class",
"<",
"?",
"extends",
... | J Anadido eventos de escenario, y evitado la adiccion de duplicados | [
"J",
"Anadido",
"eventos",
"de",
"escenario",
"y",
"evitado",
"la",
"adiccion",
"de",
"duplicados"
] | 35d87a81c22731f4f83bbd0571c9c6d466bd16be | https://github.com/gsi-upm/Shanks/blob/35d87a81c22731f4f83bbd0571c9c6d466bd16be/shanks-core/src/main/java/es/upm/dit/gsi/shanks/model/scenario/ComplexScenario.java#L278-L316 |
47,507 | geomajas/geomajas-project-hammer-gwt | hammer-gwt/src/main/java/org/geomajas/hammergwt/client/HammerWidget.java | HammerWidget.setOption | @Api
public <T> void setOption(GestureOption<T> option, T value) {
hammertime.setOption(option, value);
} | java | @Api
public <T> void setOption(GestureOption<T> option, T value) {
hammertime.setOption(option, value);
} | [
"@",
"Api",
"public",
"<",
"T",
">",
"void",
"setOption",
"(",
"GestureOption",
"<",
"T",
">",
"option",
",",
"T",
"value",
")",
"{",
"hammertime",
".",
"setOption",
"(",
"option",
",",
"value",
")",
";",
"}"
] | Change initial settings of this widget.
@param option {@link org.geomajas.hammergwt.client.option.GestureOption}
@param value T look at {@link org.geomajas.hammergwt.client.option.GestureOptions}
interface for all possible types
@param <T>
@since 1.0.0 | [
"Change",
"initial",
"settings",
"of",
"this",
"widget",
"."
] | bc764171bed55e5a9eced72f0078ec22b8105b62 | https://github.com/geomajas/geomajas-project-hammer-gwt/blob/bc764171bed55e5a9eced72f0078ec22b8105b62/hammer-gwt/src/main/java/org/geomajas/hammergwt/client/HammerWidget.java#L81-L84 |
47,508 | geomajas/geomajas-project-hammer-gwt | hammer-gwt/src/main/java/org/geomajas/hammergwt/client/HammerWidget.java | HammerWidget.unregisterHandler | @Api
public void unregisterHandler(EventType eventType) {
if (!jsHandlersMap.containsKey(eventType)) {
return;
}
HammerGwt.off(hammertime, eventType, (NativeHammmerHandler) jsHandlersMap.remove(eventType));
} | java | @Api
public void unregisterHandler(EventType eventType) {
if (!jsHandlersMap.containsKey(eventType)) {
return;
}
HammerGwt.off(hammertime, eventType, (NativeHammmerHandler) jsHandlersMap.remove(eventType));
} | [
"@",
"Api",
"public",
"void",
"unregisterHandler",
"(",
"EventType",
"eventType",
")",
"{",
"if",
"(",
"!",
"jsHandlersMap",
".",
"containsKey",
"(",
"eventType",
")",
")",
"{",
"return",
";",
"}",
"HammerGwt",
".",
"off",
"(",
"hammertime",
",",
"eventTyp... | Unregister Hammer Gwt handler.
@param eventType {@link org.geomajas.hammergwt.client.event.EventType}
@since 1.0.0 | [
"Unregister",
"Hammer",
"Gwt",
"handler",
"."
] | bc764171bed55e5a9eced72f0078ec22b8105b62 | https://github.com/geomajas/geomajas-project-hammer-gwt/blob/bc764171bed55e5a9eced72f0078ec22b8105b62/hammer-gwt/src/main/java/org/geomajas/hammergwt/client/HammerWidget.java#L137-L145 |
47,509 | mauriciogior/android-easy-db | src/main/java/com/mauriciogiordano/easydb/bean/HasManyModel.java | HasManyModel.getChildrenList | private List<String> getChildrenList() {
if (childrenList != null) return childrenList;
SharedPreferences prefs = loadSharedPreferences("children");
String list = prefs.getString(getId(), null);
childrenList = (list == null) ? new ArrayList<String>() : new ArrayList<>(Arrays.asList(li... | java | private List<String> getChildrenList() {
if (childrenList != null) return childrenList;
SharedPreferences prefs = loadSharedPreferences("children");
String list = prefs.getString(getId(), null);
childrenList = (list == null) ? new ArrayList<String>() : new ArrayList<>(Arrays.asList(li... | [
"private",
"List",
"<",
"String",
">",
"getChildrenList",
"(",
")",
"{",
"if",
"(",
"childrenList",
"!=",
"null",
")",
"return",
"childrenList",
";",
"SharedPreferences",
"prefs",
"=",
"loadSharedPreferences",
"(",
"\"children\"",
")",
";",
"String",
"list",
"... | Get a list of child objects ids.
@throws com.mauriciogiordano.easydb.exception.NoContextFoundException in case of null..
context.
@return List of all children. | [
"Get",
"a",
"list",
"of",
"child",
"objects",
"ids",
"."
] | 2284524ed2ab3678a3a87b2dbe62e4402a876049 | https://github.com/mauriciogior/android-easy-db/blob/2284524ed2ab3678a3a87b2dbe62e4402a876049/src/main/java/com/mauriciogiordano/easydb/bean/HasManyModel.java#L61-L70 |
47,510 | mauriciogior/android-easy-db | src/main/java/com/mauriciogiordano/easydb/bean/HasManyModel.java | HasManyModel.addChild | public void addChild(C child) {
SharedPreferences prefs = loadSharedPreferences("children");
List<String> objects = getChildrenList();
Model toPut = (Model) child;
if (objects.indexOf(toPut.getId()) != ArrayUtils.INDEX_NOT_FOUND) {
return;
}
objects.add(to... | java | public void addChild(C child) {
SharedPreferences prefs = loadSharedPreferences("children");
List<String> objects = getChildrenList();
Model toPut = (Model) child;
if (objects.indexOf(toPut.getId()) != ArrayUtils.INDEX_NOT_FOUND) {
return;
}
objects.add(to... | [
"public",
"void",
"addChild",
"(",
"C",
"child",
")",
"{",
"SharedPreferences",
"prefs",
"=",
"loadSharedPreferences",
"(",
"\"children\"",
")",
";",
"List",
"<",
"String",
">",
"objects",
"=",
"getChildrenList",
"(",
")",
";",
"Model",
"toPut",
"=",
"(",
... | Adds the object to the child ids list.
@param child The child to be added.
@throws com.mauriciogiordano.easydb.exception.NoContextFoundException in case of null context. | [
"Adds",
"the",
"object",
"to",
"the",
"child",
"ids",
"list",
"."
] | 2284524ed2ab3678a3a87b2dbe62e4402a876049 | https://github.com/mauriciogior/android-easy-db/blob/2284524ed2ab3678a3a87b2dbe62e4402a876049/src/main/java/com/mauriciogiordano/easydb/bean/HasManyModel.java#L90-L106 |
47,511 | mauriciogior/android-easy-db | src/main/java/com/mauriciogiordano/easydb/bean/HasManyModel.java | HasManyModel.removeChild | public boolean removeChild(String id) {
SharedPreferences prefs = loadSharedPreferences("children");
List<String> objects = getChildrenList();
if (objects.indexOf(id) == ArrayUtils.INDEX_NOT_FOUND) {
return false;
}
objects.remove(id);
prefs.edit().putStrin... | java | public boolean removeChild(String id) {
SharedPreferences prefs = loadSharedPreferences("children");
List<String> objects = getChildrenList();
if (objects.indexOf(id) == ArrayUtils.INDEX_NOT_FOUND) {
return false;
}
objects.remove(id);
prefs.edit().putStrin... | [
"public",
"boolean",
"removeChild",
"(",
"String",
"id",
")",
"{",
"SharedPreferences",
"prefs",
"=",
"loadSharedPreferences",
"(",
"\"children\"",
")",
";",
"List",
"<",
"String",
">",
"objects",
"=",
"getChildrenList",
"(",
")",
";",
"if",
"(",
"objects",
... | Removes the object from the child ids list.
@param id The child's id to be removed.
@throws com.mauriciogiordano.easydb.exception.NoContextFoundException in case of null context.
@return True if removed successfully and false otherwise. | [
"Removes",
"the",
"object",
"from",
"the",
"child",
"ids",
"list",
"."
] | 2284524ed2ab3678a3a87b2dbe62e4402a876049 | https://github.com/mauriciogior/android-easy-db/blob/2284524ed2ab3678a3a87b2dbe62e4402a876049/src/main/java/com/mauriciogiordano/easydb/bean/HasManyModel.java#L115-L128 |
47,512 | mauriciogior/android-easy-db | src/main/java/com/mauriciogiordano/easydb/bean/HasManyModel.java | HasManyModel.findChild | public C findChild(String id) {
int index = getChildrenList().indexOf(id);
if (index == ArrayUtils.INDEX_NOT_FOUND) {
return null;
}
C child = null;
try {
Model dummy = (Model) childClazz.newInstance();
dummy.setContext(context);
... | java | public C findChild(String id) {
int index = getChildrenList().indexOf(id);
if (index == ArrayUtils.INDEX_NOT_FOUND) {
return null;
}
C child = null;
try {
Model dummy = (Model) childClazz.newInstance();
dummy.setContext(context);
... | [
"public",
"C",
"findChild",
"(",
"String",
"id",
")",
"{",
"int",
"index",
"=",
"getChildrenList",
"(",
")",
".",
"indexOf",
"(",
"id",
")",
";",
"if",
"(",
"index",
"==",
"ArrayUtils",
".",
"INDEX_NOT_FOUND",
")",
"{",
"return",
"null",
";",
"}",
"C... | Find a specific object from the child list.
TODO: Figure out how to make this accesible without...
creating a dummy instance.
@param id Child's id
@throws com.mauriciogiordano.easydb.exception.NoContextFoundException in case of null context.
@return The child if found, null otherwise. | [
"Find",
"a",
"specific",
"object",
"from",
"the",
"child",
"list",
"."
] | 2284524ed2ab3678a3a87b2dbe62e4402a876049 | https://github.com/mauriciogior/android-easy-db/blob/2284524ed2ab3678a3a87b2dbe62e4402a876049/src/main/java/com/mauriciogiordano/easydb/bean/HasManyModel.java#L164-L185 |
47,513 | mauriciogior/android-easy-db | src/main/java/com/mauriciogiordano/easydb/bean/HasManyModel.java | HasManyModel.findAllChildren | public List<C> findAllChildren() {
List<String> objects = getChildrenList();
List<C> children = new ArrayList<C>();
try {
Model dummy = (Model) childClazz.newInstance();
dummy.setContext(context);
for (String id : objects) {
children.add((C)... | java | public List<C> findAllChildren() {
List<String> objects = getChildrenList();
List<C> children = new ArrayList<C>();
try {
Model dummy = (Model) childClazz.newInstance();
dummy.setContext(context);
for (String id : objects) {
children.add((C)... | [
"public",
"List",
"<",
"C",
">",
"findAllChildren",
"(",
")",
"{",
"List",
"<",
"String",
">",
"objects",
"=",
"getChildrenList",
"(",
")",
";",
"List",
"<",
"C",
">",
"children",
"=",
"new",
"ArrayList",
"<",
"C",
">",
"(",
")",
";",
"try",
"{",
... | Find all objects from the child list.
TODO: Figure out how to make this accesible without...
creating a dummy instance.
@throws com.mauriciogiordano.easydb.exception.NoContextFoundException in case of null context.
@return A list of all children. | [
"Find",
"all",
"objects",
"from",
"the",
"child",
"list",
"."
] | 2284524ed2ab3678a3a87b2dbe62e4402a876049 | https://github.com/mauriciogior/android-easy-db/blob/2284524ed2ab3678a3a87b2dbe62e4402a876049/src/main/java/com/mauriciogiordano/easydb/bean/HasManyModel.java#L196-L215 |
47,514 | fnklabs/draenei | src/main/java/com/fnklabs/draenei/analytics/search/DraeneiSearchService.java | DraeneiSearchService.filter | private Collection<Facet> filter(Collection<Facet> facets) {
if (NotStopWordPredicate == null) {
return facets;
}
return facets.stream()
.filter(NotStopWordPredicate)
.collect(Collectors.toList());
} | java | private Collection<Facet> filter(Collection<Facet> facets) {
if (NotStopWordPredicate == null) {
return facets;
}
return facets.stream()
.filter(NotStopWordPredicate)
.collect(Collectors.toList());
} | [
"private",
"Collection",
"<",
"Facet",
">",
"filter",
"(",
"Collection",
"<",
"Facet",
">",
"facets",
")",
"{",
"if",
"(",
"NotStopWordPredicate",
"==",
"null",
")",
"{",
"return",
"facets",
";",
"}",
"return",
"facets",
".",
"stream",
"(",
")",
".",
"... | Filter stop word facets
@param facets Input facets
@return | [
"Filter",
"stop",
"word",
"facets"
] | 0a8cac54f1f635be3e2950375a23291d38453ae8 | https://github.com/fnklabs/draenei/blob/0a8cac54f1f635be3e2950375a23291d38453ae8/src/main/java/com/fnklabs/draenei/analytics/search/DraeneiSearchService.java#L238-L247 |
47,515 | NessComputing/service-discovery | client/src/main/java/com/nesscomputing/service/discovery/client/internal/ConsistentRingGroup.java | ConsistentRingGroup.getRing | public ConsistentHashRing getRing(String type) {
ConsistentHashRing ring = rings.get(type);
if (ring != null) {
return ring;
}
if (type == null) {
//If there's no ring without a type, then any type will do
//Use weighted random among the types, based on how many servers are serving each type
int sel... | java | public ConsistentHashRing getRing(String type) {
ConsistentHashRing ring = rings.get(type);
if (ring != null) {
return ring;
}
if (type == null) {
//If there's no ring without a type, then any type will do
//Use weighted random among the types, based on how many servers are serving each type
int sel... | [
"public",
"ConsistentHashRing",
"getRing",
"(",
"String",
"type",
")",
"{",
"ConsistentHashRing",
"ring",
"=",
"rings",
".",
"get",
"(",
"type",
")",
";",
"if",
"(",
"ring",
"!=",
"null",
")",
"{",
"return",
"ring",
";",
"}",
"if",
"(",
"type",
"==",
... | Get the server ring for a particular type.
Notes on running time:
if type != null: O(1)
if type == null and there is at least 1 service with null type: O(1)
otherwise: O(N) where N is the number of types
@param type
@return | [
"Get",
"the",
"server",
"ring",
"for",
"a",
"particular",
"type",
"."
] | 5091ffdb1de6b12d216d1c238f72858037c7b765 | https://github.com/NessComputing/service-discovery/blob/5091ffdb1de6b12d216d1c238f72858037c7b765/client/src/main/java/com/nesscomputing/service/discovery/client/internal/ConsistentRingGroup.java#L75-L99 |
47,516 | dbracewell/mango | src/main/java/com/davidbracewell/collection/index/InvertedIndex.java | InvertedIndex.add | public void add(DOCUMENT doc) {
if (doc != null) {
documents.add(doc);
int id = documents.size() - 1;
for (KEY key : documentMapper.apply(doc)) {
index.put(key, id);
}
}
} | java | public void add(DOCUMENT doc) {
if (doc != null) {
documents.add(doc);
int id = documents.size() - 1;
for (KEY key : documentMapper.apply(doc)) {
index.put(key, id);
}
}
} | [
"public",
"void",
"add",
"(",
"DOCUMENT",
"doc",
")",
"{",
"if",
"(",
"doc",
"!=",
"null",
")",
"{",
"documents",
".",
"add",
"(",
"doc",
")",
";",
"int",
"id",
"=",
"documents",
".",
"size",
"(",
")",
"-",
"1",
";",
"for",
"(",
"KEY",
"key",
... | Add void.
@param doc the doc | [
"Add",
"void",
"."
] | 2cec08826f1fccd658694dd03abce10fc97618ec | https://github.com/dbracewell/mango/blob/2cec08826f1fccd658694dd03abce10fc97618ec/src/main/java/com/davidbracewell/collection/index/InvertedIndex.java#L64-L72 |
47,517 | dbracewell/mango | src/main/java/com/davidbracewell/scripting/ScriptEnvironmentManager.java | ScriptEnvironmentManager.getEnvironment | public ScriptEnvironment getEnvironment(String environmentName) {
Preconditions.checkArgument(StringUtils.isNotNullOrBlank(environmentName),
"Environment name cannot be null or empty"
);
ScriptEngine engine = engineManager.getEngineByName(en... | java | public ScriptEnvironment getEnvironment(String environmentName) {
Preconditions.checkArgument(StringUtils.isNotNullOrBlank(environmentName),
"Environment name cannot be null or empty"
);
ScriptEngine engine = engineManager.getEngineByName(en... | [
"public",
"ScriptEnvironment",
"getEnvironment",
"(",
"String",
"environmentName",
")",
"{",
"Preconditions",
".",
"checkArgument",
"(",
"StringUtils",
".",
"isNotNullOrBlank",
"(",
"environmentName",
")",
",",
"\"Environment name cannot be null or empty\"",
")",
";",
"Sc... | Gets the scripting environment given the environment name.
@param environmentName the scripting environment name
@return the scripting environment | [
"Gets",
"the",
"scripting",
"environment",
"given",
"the",
"environment",
"name",
"."
] | 2cec08826f1fccd658694dd03abce10fc97618ec | https://github.com/dbracewell/mango/blob/2cec08826f1fccd658694dd03abce10fc97618ec/src/main/java/com/davidbracewell/scripting/ScriptEnvironmentManager.java#L67-L78 |
47,518 | dbracewell/mango | src/main/java/com/davidbracewell/scripting/ScriptEnvironmentManager.java | ScriptEnvironmentManager.getTemporaryEnvironment | public static ScriptEnvironment getTemporaryEnvironment(String environmentName) {
Preconditions.checkArgument(StringUtils.isNotNullOrBlank(environmentName),
"Environment name cannot be null or empty"
);
ScriptEngine engine = ScriptEnvironmen... | java | public static ScriptEnvironment getTemporaryEnvironment(String environmentName) {
Preconditions.checkArgument(StringUtils.isNotNullOrBlank(environmentName),
"Environment name cannot be null or empty"
);
ScriptEngine engine = ScriptEnvironmen... | [
"public",
"static",
"ScriptEnvironment",
"getTemporaryEnvironment",
"(",
"String",
"environmentName",
")",
"{",
"Preconditions",
".",
"checkArgument",
"(",
"StringUtils",
".",
"isNotNullOrBlank",
"(",
"environmentName",
")",
",",
"\"Environment name cannot be null or empty\""... | Gets a temporary scripting environment given the environment name.
@param environmentName the scripting environment name
@return the scripting environment | [
"Gets",
"a",
"temporary",
"scripting",
"environment",
"given",
"the",
"environment",
"name",
"."
] | 2cec08826f1fccd658694dd03abce10fc97618ec | https://github.com/dbracewell/mango/blob/2cec08826f1fccd658694dd03abce10fc97618ec/src/main/java/com/davidbracewell/scripting/ScriptEnvironmentManager.java#L86-L93 |
47,519 | dbracewell/mango | src/main/java/com/davidbracewell/scripting/ScriptEnvironmentManager.java | ScriptEnvironmentManager.getEnvironmentNameForExtension | public String getEnvironmentNameForExtension(String extension) {
Preconditions.checkArgument(StringUtils.isNotNullOrBlank(extension), "Extension name cannot be null or empty");
ScriptEngine engine = engineManager.getEngineByExtension(extension);
Preconditions.checkArgument(engine != null, extension + ... | java | public String getEnvironmentNameForExtension(String extension) {
Preconditions.checkArgument(StringUtils.isNotNullOrBlank(extension), "Extension name cannot be null or empty");
ScriptEngine engine = engineManager.getEngineByExtension(extension);
Preconditions.checkArgument(engine != null, extension + ... | [
"public",
"String",
"getEnvironmentNameForExtension",
"(",
"String",
"extension",
")",
"{",
"Preconditions",
".",
"checkArgument",
"(",
"StringUtils",
".",
"isNotNullOrBlank",
"(",
"extension",
")",
",",
"\"Extension name cannot be null or empty\"",
")",
";",
"ScriptEngin... | Gets the scripting environment name given the script extension.
@param extension the scripting environment extension
@return the scripting environment name | [
"Gets",
"the",
"scripting",
"environment",
"name",
"given",
"the",
"script",
"extension",
"."
] | 2cec08826f1fccd658694dd03abce10fc97618ec | https://github.com/dbracewell/mango/blob/2cec08826f1fccd658694dd03abce10fc97618ec/src/main/java/com/davidbracewell/scripting/ScriptEnvironmentManager.java#L125-L130 |
47,520 | dbracewell/mango | src/main/java/com/davidbracewell/reflection/ClassDescriptor.java | ClassDescriptor.getConstructors | public Set<Constructor<?>> getConstructors(boolean privileged) {
if (privileged) {
return Collections.unmodifiableSet(Sets.union(constructors, declaredConstructors));
} else {
return Collections.unmodifiableSet(constructors);
}
} | java | public Set<Constructor<?>> getConstructors(boolean privileged) {
if (privileged) {
return Collections.unmodifiableSet(Sets.union(constructors, declaredConstructors));
} else {
return Collections.unmodifiableSet(constructors);
}
} | [
"public",
"Set",
"<",
"Constructor",
"<",
"?",
">",
">",
"getConstructors",
"(",
"boolean",
"privileged",
")",
"{",
"if",
"(",
"privileged",
")",
"{",
"return",
"Collections",
".",
"unmodifiableSet",
"(",
"Sets",
".",
"union",
"(",
"constructors",
",",
"de... | Gets constructors.
@param privileged the privileged
@return the constructors | [
"Gets",
"constructors",
"."
] | 2cec08826f1fccd658694dd03abce10fc97618ec | https://github.com/dbracewell/mango/blob/2cec08826f1fccd658694dd03abce10fc97618ec/src/main/java/com/davidbracewell/reflection/ClassDescriptor.java#L89-L95 |
47,521 | dbracewell/mango | src/main/java/com/davidbracewell/reflection/ClassDescriptor.java | ClassDescriptor.getFields | public Set<Field> getFields(boolean privileged) {
if (privileged) {
return Collections.unmodifiableSet(Sets.union(fields, declaredFields));
} else {
return Collections.unmodifiableSet(fields);
}
} | java | public Set<Field> getFields(boolean privileged) {
if (privileged) {
return Collections.unmodifiableSet(Sets.union(fields, declaredFields));
} else {
return Collections.unmodifiableSet(fields);
}
} | [
"public",
"Set",
"<",
"Field",
">",
"getFields",
"(",
"boolean",
"privileged",
")",
"{",
"if",
"(",
"privileged",
")",
"{",
"return",
"Collections",
".",
"unmodifiableSet",
"(",
"Sets",
".",
"union",
"(",
"fields",
",",
"declaredFields",
")",
")",
";",
"... | Gets fields.
@param privileged the privileged
@return the fields | [
"Gets",
"fields",
"."
] | 2cec08826f1fccd658694dd03abce10fc97618ec | https://github.com/dbracewell/mango/blob/2cec08826f1fccd658694dd03abce10fc97618ec/src/main/java/com/davidbracewell/reflection/ClassDescriptor.java#L103-L109 |
47,522 | dbracewell/mango | src/main/java/com/davidbracewell/HierarchicalEnumValue.java | HierarchicalEnumValue.getParentFromConfig | protected T getParentFromConfig() {
//TODO: Move this to a converter
String parentName = Config.get(canonicalName(), "parent").asString(null);
if (parentName != null && DynamicEnum.isDefined(Cast.as(getClass()), parentName)) {
return DynamicEnum.valueOf(Cast.as(getClass()), parentName);
... | java | protected T getParentFromConfig() {
//TODO: Move this to a converter
String parentName = Config.get(canonicalName(), "parent").asString(null);
if (parentName != null && DynamicEnum.isDefined(Cast.as(getClass()), parentName)) {
return DynamicEnum.valueOf(Cast.as(getClass()), parentName);
... | [
"protected",
"T",
"getParentFromConfig",
"(",
")",
"{",
"//TODO: Move this to a converter",
"String",
"parentName",
"=",
"Config",
".",
"get",
"(",
"canonicalName",
"(",
")",
",",
"\"parent\"",
")",
".",
"asString",
"(",
"null",
")",
";",
"if",
"(",
"parentNam... | Determines the parent via a configuration setting.
@return the parent via the configuration property or null | [
"Determines",
"the",
"parent",
"via",
"a",
"configuration",
"setting",
"."
] | 2cec08826f1fccd658694dd03abce10fc97618ec | https://github.com/dbracewell/mango/blob/2cec08826f1fccd658694dd03abce10fc97618ec/src/main/java/com/davidbracewell/HierarchicalEnumValue.java#L193-L207 |
47,523 | josueeduardo/snappy | snappy/src/main/java/io/joshworks/snappy/handler/HandlerManager.java | HandlerManager.createRootHandler | public static HttpHandler createRootHandler(
List<MappedEndpoint> mappedEndpoints,
List<Interceptor> rootInterceptors,
List<Interceptor> endpointInterceptors,
ExceptionMapper exceptionMapper,
String basePath,
boolean httpTracer) {
final Ro... | java | public static HttpHandler createRootHandler(
List<MappedEndpoint> mappedEndpoints,
List<Interceptor> rootInterceptors,
List<Interceptor> endpointInterceptors,
ExceptionMapper exceptionMapper,
String basePath,
boolean httpTracer) {
final Ro... | [
"public",
"static",
"HttpHandler",
"createRootHandler",
"(",
"List",
"<",
"MappedEndpoint",
">",
"mappedEndpoints",
",",
"List",
"<",
"Interceptor",
">",
"rootInterceptors",
",",
"List",
"<",
"Interceptor",
">",
"endpointInterceptors",
",",
"ExceptionMapper",
"excepti... | chain of responsibility | [
"chain",
"of",
"responsibility"
] | d95a9e811eda3c24a5e53086369208819884fa49 | https://github.com/josueeduardo/snappy/blob/d95a9e811eda3c24a5e53086369208819884fa49/snappy/src/main/java/io/joshworks/snappy/handler/HandlerManager.java#L52-L121 |
47,524 | LevelFourAB/commons | commons-serialization/src/main/java/se/l4/commons/serialization/format/BinaryOutput.java | BinaryOutput.increaseLevel | private void increaseLevel(boolean list)
{
level++;
if(hasData.length == level)
{
// Grow lists when needed
hasData = Arrays.copyOf(hasData, hasData.length * 2);
lists = Arrays.copyOf(lists, hasData.length * 2);
}
hasData[level] = false;
lists[level] = list;
} | java | private void increaseLevel(boolean list)
{
level++;
if(hasData.length == level)
{
// Grow lists when needed
hasData = Arrays.copyOf(hasData, hasData.length * 2);
lists = Arrays.copyOf(lists, hasData.length * 2);
}
hasData[level] = false;
lists[level] = list;
} | [
"private",
"void",
"increaseLevel",
"(",
"boolean",
"list",
")",
"{",
"level",
"++",
";",
"if",
"(",
"hasData",
".",
"length",
"==",
"level",
")",
"{",
"// Grow lists when needed",
"hasData",
"=",
"Arrays",
".",
"copyOf",
"(",
"hasData",
",",
"hasData",
".... | Increase the level by one.
@param list | [
"Increase",
"the",
"level",
"by",
"one",
"."
] | aa121b3a5504b43d0c10450a1b984694fcd2b8ee | https://github.com/LevelFourAB/commons/blob/aa121b3a5504b43d0c10450a1b984694fcd2b8ee/commons-serialization/src/main/java/se/l4/commons/serialization/format/BinaryOutput.java#L66-L78 |
47,525 | LevelFourAB/commons | commons-serialization/src/main/java/se/l4/commons/serialization/format/BinaryOutput.java | BinaryOutput.writeName | private void writeName(String name)
throws IOException
{
if(shouldOutputName())
{
out.write(TAG_KEY);
writeStringNoTag(name);
}
} | java | private void writeName(String name)
throws IOException
{
if(shouldOutputName())
{
out.write(TAG_KEY);
writeStringNoTag(name);
}
} | [
"private",
"void",
"writeName",
"(",
"String",
"name",
")",
"throws",
"IOException",
"{",
"if",
"(",
"shouldOutputName",
"(",
")",
")",
"{",
"out",
".",
"write",
"(",
"TAG_KEY",
")",
";",
"writeStringNoTag",
"(",
"name",
")",
";",
"}",
"}"
] | Write the name if needed.
@param name
@throws IOException | [
"Write",
"the",
"name",
"if",
"needed",
"."
] | aa121b3a5504b43d0c10450a1b984694fcd2b8ee | https://github.com/LevelFourAB/commons/blob/aa121b3a5504b43d0c10450a1b984694fcd2b8ee/commons-serialization/src/main/java/se/l4/commons/serialization/format/BinaryOutput.java#L120-L128 |
47,526 | LevelFourAB/commons | commons-serialization/src/main/java/se/l4/commons/serialization/format/BinaryOutput.java | BinaryOutput.writeIntegerNoTag | private void writeIntegerNoTag(int value)
throws IOException
{
while(true)
{
if((value & ~0x7F) == 0)
{
out.write(value);
break;
}
else
{
out.write((value & 0x7f) | 0x80);
value >>>= 7;
}
}
} | java | private void writeIntegerNoTag(int value)
throws IOException
{
while(true)
{
if((value & ~0x7F) == 0)
{
out.write(value);
break;
}
else
{
out.write((value & 0x7f) | 0x80);
value >>>= 7;
}
}
} | [
"private",
"void",
"writeIntegerNoTag",
"(",
"int",
"value",
")",
"throws",
"IOException",
"{",
"while",
"(",
"true",
")",
"{",
"if",
"(",
"(",
"value",
"&",
"~",
"0x7F",
")",
"==",
"0",
")",
"{",
"out",
".",
"write",
"(",
"value",
")",
";",
"break... | Write an integer to the output stream without tagging it.
@param value
@throws IOException | [
"Write",
"an",
"integer",
"to",
"the",
"output",
"stream",
"without",
"tagging",
"it",
"."
] | aa121b3a5504b43d0c10450a1b984694fcd2b8ee | https://github.com/LevelFourAB/commons/blob/aa121b3a5504b43d0c10450a1b984694fcd2b8ee/commons-serialization/src/main/java/se/l4/commons/serialization/format/BinaryOutput.java#L136-L152 |
47,527 | LevelFourAB/commons | commons-serialization/src/main/java/se/l4/commons/serialization/format/BinaryOutput.java | BinaryOutput.writeInteger | private void writeInteger(int value)
throws IOException
{
if(value < 0)
{
out.write(TAG_NEGATIVE_INT);
writeIntegerNoTag(-value);
}
else
{
out.write(TAG_POSITIVE_INT);
writeIntegerNoTag(value);
}
} | java | private void writeInteger(int value)
throws IOException
{
if(value < 0)
{
out.write(TAG_NEGATIVE_INT);
writeIntegerNoTag(-value);
}
else
{
out.write(TAG_POSITIVE_INT);
writeIntegerNoTag(value);
}
} | [
"private",
"void",
"writeInteger",
"(",
"int",
"value",
")",
"throws",
"IOException",
"{",
"if",
"(",
"value",
"<",
"0",
")",
"{",
"out",
".",
"write",
"(",
"TAG_NEGATIVE_INT",
")",
";",
"writeIntegerNoTag",
"(",
"-",
"value",
")",
";",
"}",
"else",
"{... | Write an integer to the output stream.
@param value
@throws IOException | [
"Write",
"an",
"integer",
"to",
"the",
"output",
"stream",
"."
] | aa121b3a5504b43d0c10450a1b984694fcd2b8ee | https://github.com/LevelFourAB/commons/blob/aa121b3a5504b43d0c10450a1b984694fcd2b8ee/commons-serialization/src/main/java/se/l4/commons/serialization/format/BinaryOutput.java#L160-L173 |
47,528 | Azure/azure-sdk-for-java | eventhubs/data-plane/azure-eventhubs-eph/src/main/java/com/microsoft/azure/eventprocessorhost/BaseLease.java | BaseLease.isOwnedBy | public boolean isOwnedBy(String possibleOwner) {
boolean retval = false;
if (this.owner != null) {
retval = (this.owner.compareTo(possibleOwner) == 0);
}
return retval;
} | java | public boolean isOwnedBy(String possibleOwner) {
boolean retval = false;
if (this.owner != null) {
retval = (this.owner.compareTo(possibleOwner) == 0);
}
return retval;
} | [
"public",
"boolean",
"isOwnedBy",
"(",
"String",
"possibleOwner",
")",
"{",
"boolean",
"retval",
"=",
"false",
";",
"if",
"(",
"this",
".",
"owner",
"!=",
"null",
")",
"{",
"retval",
"=",
"(",
"this",
".",
"owner",
".",
"compareTo",
"(",
"possibleOwner",... | Convenience function for comparing possibleOwner against this.owner
@param possibleOwner name to check
@return true if possibleOwner is the same as this.owner, false otherwise | [
"Convenience",
"function",
"for",
"comparing",
"possibleOwner",
"against",
"this",
".",
"owner"
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/eventhubs/data-plane/azure-eventhubs-eph/src/main/java/com/microsoft/azure/eventprocessorhost/BaseLease.java#L120-L126 |
47,529 | Azure/azure-sdk-for-java | policy/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/policy/v2018_03_01/implementation/PolicySetDefinitionsInner.java | PolicySetDefinitionsInner.deleteAtManagementGroup | public void deleteAtManagementGroup(String policySetDefinitionName, String managementGroupId) {
deleteAtManagementGroupWithServiceResponseAsync(policySetDefinitionName, managementGroupId).toBlocking().single().body();
} | java | public void deleteAtManagementGroup(String policySetDefinitionName, String managementGroupId) {
deleteAtManagementGroupWithServiceResponseAsync(policySetDefinitionName, managementGroupId).toBlocking().single().body();
} | [
"public",
"void",
"deleteAtManagementGroup",
"(",
"String",
"policySetDefinitionName",
",",
"String",
"managementGroupId",
")",
"{",
"deleteAtManagementGroupWithServiceResponseAsync",
"(",
"policySetDefinitionName",
",",
"managementGroupId",
")",
".",
"toBlocking",
"(",
")",
... | Deletes a policy set definition.
This operation deletes the policy set definition in the given management group with the given name.
@param policySetDefinitionName The name of the policy set definition to delete.
@param managementGroupId The ID of the management group.
@throws IllegalArgumentException thrown if parame... | [
"Deletes",
"a",
"policy",
"set",
"definition",
".",
"This",
"operation",
"deletes",
"the",
"policy",
"set",
"definition",
"in",
"the",
"given",
"management",
"group",
"with",
"the",
"given",
"name",
"."
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/policy/resource-manager/v2018_03_01/src/main/java/com/microsoft/azure/management/policy/v2018_03_01/implementation/PolicySetDefinitionsInner.java#L783-L785 |
47,530 | Azure/azure-sdk-for-java | logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowsInner.java | WorkflowsInner.delete | public void delete(String resourceGroupName, String workflowName) {
deleteWithServiceResponseAsync(resourceGroupName, workflowName).toBlocking().single().body();
} | java | public void delete(String resourceGroupName, String workflowName) {
deleteWithServiceResponseAsync(resourceGroupName, workflowName).toBlocking().single().body();
} | [
"public",
"void",
"delete",
"(",
"String",
"resourceGroupName",
",",
"String",
"workflowName",
")",
"{",
"deleteWithServiceResponseAsync",
"(",
"resourceGroupName",
",",
"workflowName",
")",
".",
"toBlocking",
"(",
")",
".",
"single",
"(",
")",
".",
"body",
"(",... | Deletes a workflow.
@param resourceGroupName The resource group name.
@param workflowName The workflow name.
@throws IllegalArgumentException thrown if parameters fail the validation
@throws CloudException thrown if the request is rejected by server
@throws RuntimeException all other wrapped checked exceptions if the ... | [
"Deletes",
"a",
"workflow",
"."
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowsInner.java#L881-L883 |
47,531 | Azure/azure-sdk-for-java | logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowsInner.java | WorkflowsInner.listByResourceGroupNextAsync | public Observable<Page<WorkflowInner>> listByResourceGroupNextAsync(final String nextPageLink) {
return listByResourceGroupNextWithServiceResponseAsync(nextPageLink)
.map(new Func1<ServiceResponse<Page<WorkflowInner>>, Page<WorkflowInner>>() {
@Override
public Page<Wo... | java | public Observable<Page<WorkflowInner>> listByResourceGroupNextAsync(final String nextPageLink) {
return listByResourceGroupNextWithServiceResponseAsync(nextPageLink)
.map(new Func1<ServiceResponse<Page<WorkflowInner>>, Page<WorkflowInner>>() {
@Override
public Page<Wo... | [
"public",
"Observable",
"<",
"Page",
"<",
"WorkflowInner",
">",
">",
"listByResourceGroupNextAsync",
"(",
"final",
"String",
"nextPageLink",
")",
"{",
"return",
"listByResourceGroupNextWithServiceResponseAsync",
"(",
"nextPageLink",
")",
".",
"map",
"(",
"new",
"Func1... | Gets a list of workflows by resource group.
@param nextPageLink The NextLink from the previous successful call to List operation.
@throws IllegalArgumentException thrown if parameters fail the validation
@return the observable to the PagedList<WorkflowInner> object | [
"Gets",
"a",
"list",
"of",
"workflows",
"by",
"resource",
"group",
"."
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowsInner.java#L2099-L2107 |
47,532 | Azure/azure-sdk-for-java | kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/implementation/ClustersInner.java | ClustersInner.listByResourceGroupAsync | public Observable<Page<ClusterInner>> listByResourceGroupAsync(String resourceGroupName) {
return listByResourceGroupWithServiceResponseAsync(resourceGroupName).map(new Func1<ServiceResponse<List<ClusterInner>>, Page<ClusterInner>>() {
@Override
public Page<ClusterInner> call(ServiceResp... | java | public Observable<Page<ClusterInner>> listByResourceGroupAsync(String resourceGroupName) {
return listByResourceGroupWithServiceResponseAsync(resourceGroupName).map(new Func1<ServiceResponse<List<ClusterInner>>, Page<ClusterInner>>() {
@Override
public Page<ClusterInner> call(ServiceResp... | [
"public",
"Observable",
"<",
"Page",
"<",
"ClusterInner",
">",
">",
"listByResourceGroupAsync",
"(",
"String",
"resourceGroupName",
")",
"{",
"return",
"listByResourceGroupWithServiceResponseAsync",
"(",
"resourceGroupName",
")",
".",
"map",
"(",
"new",
"Func1",
"<",
... | Lists all Kusto clusters within a resource group.
@param resourceGroupName The name of the resource group containing the Kusto cluster.
@return the observable to the List<ClusterInner> object | [
"Lists",
"all",
"Kusto",
"clusters",
"within",
"a",
"resource",
"group",
"."
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/kusto/resource-manager/v2018_09_07_preview/src/main/java/com/microsoft/azure/management/kusto/v2018_09_07_preview/implementation/ClustersInner.java#L1062-L1071 |
47,533 | Azure/azure-sdk-for-java | mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/models/AssetDeliveryPolicy.java | AssetDeliveryPolicy.get | public static EntityGetOperation<AssetDeliveryPolicyInfo> get(String assetDeliveryPolicyId) {
return new DefaultGetOperation<AssetDeliveryPolicyInfo>(ENTITY_SET, assetDeliveryPolicyId,
AssetDeliveryPolicyInfo.class);
} | java | public static EntityGetOperation<AssetDeliveryPolicyInfo> get(String assetDeliveryPolicyId) {
return new DefaultGetOperation<AssetDeliveryPolicyInfo>(ENTITY_SET, assetDeliveryPolicyId,
AssetDeliveryPolicyInfo.class);
} | [
"public",
"static",
"EntityGetOperation",
"<",
"AssetDeliveryPolicyInfo",
">",
"get",
"(",
"String",
"assetDeliveryPolicyId",
")",
"{",
"return",
"new",
"DefaultGetOperation",
"<",
"AssetDeliveryPolicyInfo",
">",
"(",
"ENTITY_SET",
",",
"assetDeliveryPolicyId",
",",
"As... | Create an operation that will retrieve the given asset delivery policy
@param assetDeliveryPolicyId
id of asset delivery policy to retrieve
@return the operation | [
"Create",
"an",
"operation",
"that",
"will",
"retrieve",
"the",
"given",
"asset",
"delivery",
"policy"
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/models/AssetDeliveryPolicy.java#L132-L135 |
47,534 | Azure/azure-sdk-for-java | mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/models/AssetDeliveryPolicy.java | AssetDeliveryPolicy.list | public static DefaultListOperation<AssetDeliveryPolicyInfo> list(LinkInfo<AssetDeliveryPolicyInfo> link) {
return new DefaultListOperation<AssetDeliveryPolicyInfo>(link.getHref(),
new GenericType<ListResult<AssetDeliveryPolicyInfo>>() {
});
} | java | public static DefaultListOperation<AssetDeliveryPolicyInfo> list(LinkInfo<AssetDeliveryPolicyInfo> link) {
return new DefaultListOperation<AssetDeliveryPolicyInfo>(link.getHref(),
new GenericType<ListResult<AssetDeliveryPolicyInfo>>() {
});
} | [
"public",
"static",
"DefaultListOperation",
"<",
"AssetDeliveryPolicyInfo",
">",
"list",
"(",
"LinkInfo",
"<",
"AssetDeliveryPolicyInfo",
">",
"link",
")",
"{",
"return",
"new",
"DefaultListOperation",
"<",
"AssetDeliveryPolicyInfo",
">",
"(",
"link",
".",
"getHref",
... | Create an operation that will list all the asset delivery policies at the
given link.
@param link
Link to request all the asset delivery policies.
@return The list operation. | [
"Create",
"an",
"operation",
"that",
"will",
"list",
"all",
"the",
"asset",
"delivery",
"policies",
"at",
"the",
"given",
"link",
"."
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/models/AssetDeliveryPolicy.java#L157-L161 |
47,535 | Azure/azure-sdk-for-java | sql/resource-manager/v2014_04_01/src/main/java/com/microsoft/azure/management/sql/v2014_04_01/implementation/DatabaseAdvisorsInner.java | DatabaseAdvisorsInner.listByDatabaseAsync | public Observable<AdvisorListResultInner> listByDatabaseAsync(String resourceGroupName, String serverName, String databaseName) {
return listByDatabaseWithServiceResponseAsync(resourceGroupName, serverName, databaseName).map(new Func1<ServiceResponse<AdvisorListResultInner>, AdvisorListResultInner>() {
... | java | public Observable<AdvisorListResultInner> listByDatabaseAsync(String resourceGroupName, String serverName, String databaseName) {
return listByDatabaseWithServiceResponseAsync(resourceGroupName, serverName, databaseName).map(new Func1<ServiceResponse<AdvisorListResultInner>, AdvisorListResultInner>() {
... | [
"public",
"Observable",
"<",
"AdvisorListResultInner",
">",
"listByDatabaseAsync",
"(",
"String",
"resourceGroupName",
",",
"String",
"serverName",
",",
"String",
"databaseName",
")",
"{",
"return",
"listByDatabaseWithServiceResponseAsync",
"(",
"resourceGroupName",
",",
... | Returns a list of database advisors.
@param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
@param serverName The name of the server.
@param databaseName The name of the database.
@throws IllegalArgumentException ... | [
"Returns",
"a",
"list",
"of",
"database",
"advisors",
"."
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/sql/resource-manager/v2014_04_01/src/main/java/com/microsoft/azure/management/sql/v2014_04_01/implementation/DatabaseAdvisorsInner.java#L109-L116 |
47,536 | Azure/azure-sdk-for-java | sql/resource-manager/v2014_04_01/src/main/java/com/microsoft/azure/management/sql/v2014_04_01/implementation/DatabaseAdvisorsInner.java | DatabaseAdvisorsInner.createOrUpdate | public AdvisorInner createOrUpdate(String resourceGroupName, String serverName, String databaseName, String advisorName, AutoExecuteStatus autoExecuteValue) {
return createOrUpdateWithServiceResponseAsync(resourceGroupName, serverName, databaseName, advisorName, autoExecuteValue).toBlocking().single().body();
... | java | public AdvisorInner createOrUpdate(String resourceGroupName, String serverName, String databaseName, String advisorName, AutoExecuteStatus autoExecuteValue) {
return createOrUpdateWithServiceResponseAsync(resourceGroupName, serverName, databaseName, advisorName, autoExecuteValue).toBlocking().single().body();
... | [
"public",
"AdvisorInner",
"createOrUpdate",
"(",
"String",
"resourceGroupName",
",",
"String",
"serverName",
",",
"String",
"databaseName",
",",
"String",
"advisorName",
",",
"AutoExecuteStatus",
"autoExecuteValue",
")",
"{",
"return",
"createOrUpdateWithServiceResponseAsyn... | Creates or updates a database advisor.
@param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
@param serverName The name of the server.
@param databaseName The name of the database.
@param advisorName The name of ... | [
"Creates",
"or",
"updates",
"a",
"database",
"advisor",
"."
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/sql/resource-manager/v2014_04_01/src/main/java/com/microsoft/azure/management/sql/v2014_04_01/implementation/DatabaseAdvisorsInner.java#L277-L279 |
47,537 | Azure/azure-sdk-for-java | authorization/msi-auth-token-provider-jar/src/main/java/com/microsoft/azure/msiAuthTokenProvider/MSICredentials.java | MSICredentials.getMSICredentials | public static MSICredentials getMSICredentials(String managementEndpoint) {
//check if we are running in a web app
String websiteName = System.getenv("WEBSITE_SITE_NAME");
if (websiteName != null && !websiteName.isEmpty()) {
// We are in a web app...
MSIConfigurationForA... | java | public static MSICredentials getMSICredentials(String managementEndpoint) {
//check if we are running in a web app
String websiteName = System.getenv("WEBSITE_SITE_NAME");
if (websiteName != null && !websiteName.isEmpty()) {
// We are in a web app...
MSIConfigurationForA... | [
"public",
"static",
"MSICredentials",
"getMSICredentials",
"(",
"String",
"managementEndpoint",
")",
"{",
"//check if we are running in a web app",
"String",
"websiteName",
"=",
"System",
".",
"getenv",
"(",
"\"WEBSITE_SITE_NAME\"",
")",
";",
"if",
"(",
"websiteName",
"... | This method checks if the env vars "MSI_ENDPOINT" and "MSI_SECRET" exist. If they do, we return the msi creds class for APP Svcs
otherwise we return one for VM
@param managementEndpoint Management endpoint in Azure
@return MSICredentials | [
"This",
"method",
"checks",
"if",
"the",
"env",
"vars",
"MSI_ENDPOINT",
"and",
"MSI_SECRET",
"exist",
".",
"If",
"they",
"do",
"we",
"return",
"the",
"msi",
"creds",
"class",
"for",
"APP",
"Svcs",
"otherwise",
"we",
"return",
"one",
"for",
"VM"
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/authorization/msi-auth-token-provider-jar/src/main/java/com/microsoft/azure/msiAuthTokenProvider/MSICredentials.java#L66-L79 |
47,538 | Azure/azure-sdk-for-java | eventhubs/data-plane/azure-eventhubs/src/main/java/com/microsoft/azure/eventhubs/impl/FaultTolerantObject.java | FaultTolerantObject.unsafeGetIfOpened | T unsafeGetIfOpened() {
if (innerObject != null && innerObject.getState() == IOObject.IOObjectState.OPENED) {
return innerObject;
}
return null;
} | java | T unsafeGetIfOpened() {
if (innerObject != null && innerObject.getState() == IOObject.IOObjectState.OPENED) {
return innerObject;
}
return null;
} | [
"T",
"unsafeGetIfOpened",
"(",
")",
"{",
"if",
"(",
"innerObject",
"!=",
"null",
"&&",
"innerObject",
".",
"getState",
"(",
")",
"==",
"IOObject",
".",
"IOObjectState",
".",
"OPENED",
")",
"{",
"return",
"innerObject",
";",
"}",
"return",
"null",
";",
"}... | should be invoked from reactor thread | [
"should",
"be",
"invoked",
"from",
"reactor",
"thread"
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/eventhubs/data-plane/azure-eventhubs/src/main/java/com/microsoft/azure/eventhubs/impl/FaultTolerantObject.java#L32-L38 |
47,539 | Azure/azure-sdk-for-java | containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/implementation/TasksInner.java | TasksInner.delete | public void delete(String resourceGroupName, String registryName, String taskName) {
deleteWithServiceResponseAsync(resourceGroupName, registryName, taskName).toBlocking().last().body();
} | java | public void delete(String resourceGroupName, String registryName, String taskName) {
deleteWithServiceResponseAsync(resourceGroupName, registryName, taskName).toBlocking().last().body();
} | [
"public",
"void",
"delete",
"(",
"String",
"resourceGroupName",
",",
"String",
"registryName",
",",
"String",
"taskName",
")",
"{",
"deleteWithServiceResponseAsync",
"(",
"resourceGroupName",
",",
"registryName",
",",
"taskName",
")",
".",
"toBlocking",
"(",
")",
... | Deletes a specified task.
@param resourceGroupName The name of the resource group to which the container registry belongs.
@param registryName The name of the container registry.
@param taskName The name of the container registry task.
@throws IllegalArgumentException thrown if parameters fail the validation
@throws C... | [
"Deletes",
"a",
"specified",
"task",
"."
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/containerregistry/resource-manager/v2018_09_01/src/main/java/com/microsoft/azure/management/containerregistry/v2018_09_01/implementation/TasksInner.java#L513-L515 |
47,540 | Azure/azure-sdk-for-java | applicationconfig/client/src/samples/java/PipelineSample.java | PipelineSample.main | public static void main(String[] args) throws NoSuchAlgorithmException, InvalidKeyException {
// The connection string value can be obtained by going to your App Configuration instance in the Azure portal
// and navigating to "Access Keys" page under the "Settings" section.
final String connect... | java | public static void main(String[] args) throws NoSuchAlgorithmException, InvalidKeyException {
// The connection string value can be obtained by going to your App Configuration instance in the Azure portal
// and navigating to "Access Keys" page under the "Settings" section.
final String connect... | [
"public",
"static",
"void",
"main",
"(",
"String",
"[",
"]",
"args",
")",
"throws",
"NoSuchAlgorithmException",
",",
"InvalidKeyException",
"{",
"// The connection string value can be obtained by going to your App Configuration instance in the Azure portal",
"// and navigating to \"A... | Runs the sample algorithm and demonstrates how to add a custom policy to the HTTP pipeline.
@param args Unused. Arguments to the program.
@throws NoSuchAlgorithmException when credentials cannot be created because the service cannot resolve the
HMAC-SHA256 algorithm.
@throws InvalidKeyException when credentials cannot... | [
"Runs",
"the",
"sample",
"algorithm",
"and",
"demonstrates",
"how",
"to",
"add",
"a",
"custom",
"policy",
"to",
"the",
"HTTP",
"pipeline",
"."
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/applicationconfig/client/src/samples/java/PipelineSample.java#L36-L65 |
47,541 | Azure/azure-sdk-for-java | eventhubs/data-plane/azure-eventhubs/src/main/java/com/microsoft/azure/eventhubs/ConnectionStringBuilder.java | ConnectionStringBuilder.setEndpoint | public ConnectionStringBuilder setEndpoint(String namespaceName, String domainName) {
try {
this.endpoint = new URI(String.format(Locale.US, END_POINT_FORMAT, namespaceName, domainName));
} catch (URISyntaxException exception) {
throw new IllegalConnectionStringFormatException(
... | java | public ConnectionStringBuilder setEndpoint(String namespaceName, String domainName) {
try {
this.endpoint = new URI(String.format(Locale.US, END_POINT_FORMAT, namespaceName, domainName));
} catch (URISyntaxException exception) {
throw new IllegalConnectionStringFormatException(
... | [
"public",
"ConnectionStringBuilder",
"setEndpoint",
"(",
"String",
"namespaceName",
",",
"String",
"domainName",
")",
"{",
"try",
"{",
"this",
".",
"endpoint",
"=",
"new",
"URI",
"(",
"String",
".",
"format",
"(",
"Locale",
".",
"US",
",",
"END_POINT_FORMAT",
... | Set an endpoint which can be used to connect to the EventHub instance.
@param namespaceName the name of the namespace to connect to.
@param domainName identifies the domain the namespace is located in. For non-public and national clouds,
the domain will not be "servicebus.windows.net". Available options include:
- ... | [
"Set",
"an",
"endpoint",
"which",
"can",
"be",
"used",
"to",
"connect",
"to",
"the",
"EventHub",
"instance",
"."
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/eventhubs/data-plane/azure-eventhubs/src/main/java/com/microsoft/azure/eventhubs/ConnectionStringBuilder.java#L138-L147 |
47,542 | Azure/azure-sdk-for-java | mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/implementation/ODataAtomMarshaller.java | ODataAtomMarshaller.marshalEntry | public void marshalEntry(Object content, OutputStream stream)
throws JAXBException {
marshaller.marshal(createEntry(content), stream);
} | java | public void marshalEntry(Object content, OutputStream stream)
throws JAXBException {
marshaller.marshal(createEntry(content), stream);
} | [
"public",
"void",
"marshalEntry",
"(",
"Object",
"content",
",",
"OutputStream",
"stream",
")",
"throws",
"JAXBException",
"{",
"marshaller",
".",
"marshal",
"(",
"createEntry",
"(",
"content",
")",
",",
"stream",
")",
";",
"}"
] | Convert the given content into an ATOM entry and write it to the given
stream.
@param content
Content object to send
@param stream
Stream to write to
@throws JAXBException
if content is malformed/not marshallable | [
"Convert",
"the",
"given",
"content",
"into",
"an",
"ATOM",
"entry",
"and",
"write",
"it",
"to",
"the",
"given",
"stream",
"."
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/implementation/ODataAtomMarshaller.java#L109-L112 |
47,543 | Azure/azure-sdk-for-java | keyvault/resource-manager/v2016_10_01/src/main/java/com/microsoft/azure/management/keyvault/v2016_10_01/implementation/VaultsInner.java | VaultsInner.listByResourceGroupAsync | public Observable<Page<VaultInner>> listByResourceGroupAsync(final String resourceGroupName, final Integer top) {
return listByResourceGroupWithServiceResponseAsync(resourceGroupName, top)
.map(new Func1<ServiceResponse<Page<VaultInner>>, Page<VaultInner>>() {
@Override
... | java | public Observable<Page<VaultInner>> listByResourceGroupAsync(final String resourceGroupName, final Integer top) {
return listByResourceGroupWithServiceResponseAsync(resourceGroupName, top)
.map(new Func1<ServiceResponse<Page<VaultInner>>, Page<VaultInner>>() {
@Override
... | [
"public",
"Observable",
"<",
"Page",
"<",
"VaultInner",
">",
">",
"listByResourceGroupAsync",
"(",
"final",
"String",
"resourceGroupName",
",",
"final",
"Integer",
"top",
")",
"{",
"return",
"listByResourceGroupWithServiceResponseAsync",
"(",
"resourceGroupName",
",",
... | The List operation gets information about the vaults associated with the subscription and within the specified resource group.
@param resourceGroupName The name of the Resource Group to which the vault belongs.
@param top Maximum number of results to return.
@throws IllegalArgumentException thrown if parameters fail t... | [
"The",
"List",
"operation",
"gets",
"information",
"about",
"the",
"vaults",
"associated",
"with",
"the",
"subscription",
"and",
"within",
"the",
"specified",
"resource",
"group",
"."
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/keyvault/resource-manager/v2016_10_01/src/main/java/com/microsoft/azure/management/keyvault/v2016_10_01/implementation/VaultsInner.java#L767-L775 |
47,544 | Azure/azure-sdk-for-java | common/azure-common/src/main/java/com/azure/common/http/HttpPipelineCallContext.java | HttpPipelineCallContext.setData | public void setData(String key, Object value) {
this.data = this.data.addData(key, value);
} | java | public void setData(String key, Object value) {
this.data = this.data.addData(key, value);
} | [
"public",
"void",
"setData",
"(",
"String",
"key",
",",
"Object",
"value",
")",
"{",
"this",
".",
"data",
"=",
"this",
".",
"data",
".",
"addData",
"(",
"key",
",",
"value",
")",
";",
"}"
] | Stores a key-value data in the context.
@param key the key
@param value the value | [
"Stores",
"a",
"key",
"-",
"value",
"data",
"in",
"the",
"context",
"."
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/common/azure-common/src/main/java/com/azure/common/http/HttpPipelineCallContext.java#L57-L59 |
47,545 | Azure/azure-sdk-for-java | mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/implementation/BatchMimeMultipart.java | BatchMimeMultipart.resetInputStreams | private void resetInputStreams() throws IOException, MessagingException {
for (int ix = 0; ix < this.getCount(); ix++) {
BodyPart part = this.getBodyPart(ix);
if (part.getContent() instanceof MimeMultipart) {
MimeMultipart subContent = (MimeMultipart) part.getContent();
... | java | private void resetInputStreams() throws IOException, MessagingException {
for (int ix = 0; ix < this.getCount(); ix++) {
BodyPart part = this.getBodyPart(ix);
if (part.getContent() instanceof MimeMultipart) {
MimeMultipart subContent = (MimeMultipart) part.getContent();
... | [
"private",
"void",
"resetInputStreams",
"(",
")",
"throws",
"IOException",
",",
"MessagingException",
"{",
"for",
"(",
"int",
"ix",
"=",
"0",
";",
"ix",
"<",
"this",
".",
"getCount",
"(",
")",
";",
"ix",
"++",
")",
"{",
"BodyPart",
"part",
"=",
"this",... | reset all input streams to allow redirect filter to write the output twice | [
"reset",
"all",
"input",
"streams",
"to",
"allow",
"redirect",
"filter",
"to",
"write",
"the",
"output",
"twice"
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/implementation/BatchMimeMultipart.java#L26-L39 |
47,546 | Azure/azure-sdk-for-java | logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/SessionsInner.java | SessionsInner.listByIntegrationAccountsNextAsync | public Observable<Page<IntegrationAccountSessionInner>> listByIntegrationAccountsNextAsync(final String nextPageLink) {
return listByIntegrationAccountsNextWithServiceResponseAsync(nextPageLink)
.map(new Func1<ServiceResponse<Page<IntegrationAccountSessionInner>>, Page<IntegrationAccountSessionInner... | java | public Observable<Page<IntegrationAccountSessionInner>> listByIntegrationAccountsNextAsync(final String nextPageLink) {
return listByIntegrationAccountsNextWithServiceResponseAsync(nextPageLink)
.map(new Func1<ServiceResponse<Page<IntegrationAccountSessionInner>>, Page<IntegrationAccountSessionInner... | [
"public",
"Observable",
"<",
"Page",
"<",
"IntegrationAccountSessionInner",
">",
">",
"listByIntegrationAccountsNextAsync",
"(",
"final",
"String",
"nextPageLink",
")",
"{",
"return",
"listByIntegrationAccountsNextWithServiceResponseAsync",
"(",
"nextPageLink",
")",
".",
"m... | Gets a list of integration account sessions.
@param nextPageLink The NextLink from the previous successful call to List operation.
@throws IllegalArgumentException thrown if parameters fail the validation
@return the observable to the PagedList<IntegrationAccountSessionInner> object | [
"Gets",
"a",
"list",
"of",
"integration",
"account",
"sessions",
"."
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/SessionsInner.java#L672-L680 |
47,547 | Azure/azure-sdk-for-java | keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/messagesecurity/JWSObject.java | JWSObject.deserialize | public static JWSObject deserialize(String json) throws IOException {
ObjectMapper mapper = new ObjectMapper();
return mapper.readValue(json, JWSObject.class);
} | java | public static JWSObject deserialize(String json) throws IOException {
ObjectMapper mapper = new ObjectMapper();
return mapper.readValue(json, JWSObject.class);
} | [
"public",
"static",
"JWSObject",
"deserialize",
"(",
"String",
"json",
")",
"throws",
"IOException",
"{",
"ObjectMapper",
"mapper",
"=",
"new",
"ObjectMapper",
"(",
")",
";",
"return",
"mapper",
".",
"readValue",
"(",
"json",
",",
"JWSObject",
".",
"class",
... | Construct JWSObject from json string.
@param json
json string.
@return Constructed JWSObject | [
"Construct",
"JWSObject",
"from",
"json",
"string",
"."
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/messagesecurity/JWSObject.java#L104-L107 |
47,548 | Azure/azure-sdk-for-java | keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/models/custom/KeyBundle.java | KeyBundle.keyIdentifier | public KeyIdentifier keyIdentifier() {
if (key() == null || key().kid() == null || key().kid().length() == 0) {
return null;
}
return new KeyIdentifier(key().kid());
} | java | public KeyIdentifier keyIdentifier() {
if (key() == null || key().kid() == null || key().kid().length() == 0) {
return null;
}
return new KeyIdentifier(key().kid());
} | [
"public",
"KeyIdentifier",
"keyIdentifier",
"(",
")",
"{",
"if",
"(",
"key",
"(",
")",
"==",
"null",
"||",
"key",
"(",
")",
".",
"kid",
"(",
")",
"==",
"null",
"||",
"key",
"(",
")",
".",
"kid",
"(",
")",
".",
"length",
"(",
")",
"==",
"0",
"... | The key identifier.
@return identifier for the key | [
"The",
"key",
"identifier",
"."
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/models/custom/KeyBundle.java#L40-L45 |
47,549 | Azure/azure-sdk-for-java | keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/authentication/ChallengeCache.java | ChallengeCache.getCachedChallenge | public Map<String, String> getCachedChallenge(HttpUrl url) {
if (url == null) {
return null;
}
String authority = getAuthority(url);
authority = authority.toLowerCase(Locale.ENGLISH);
return cachedChallenges.get(authority);
} | java | public Map<String, String> getCachedChallenge(HttpUrl url) {
if (url == null) {
return null;
}
String authority = getAuthority(url);
authority = authority.toLowerCase(Locale.ENGLISH);
return cachedChallenges.get(authority);
} | [
"public",
"Map",
"<",
"String",
",",
"String",
">",
"getCachedChallenge",
"(",
"HttpUrl",
"url",
")",
"{",
"if",
"(",
"url",
"==",
"null",
")",
"{",
"return",
"null",
";",
"}",
"String",
"authority",
"=",
"getAuthority",
"(",
"url",
")",
";",
"authorit... | Uses authority to retrieve the cached values.
@param url
the url that is used as a cache key.
@return cached value or null if value is not available. | [
"Uses",
"authority",
"to",
"retrieve",
"the",
"cached",
"values",
"."
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/authentication/ChallengeCache.java#L26-L33 |
47,550 | Azure/azure-sdk-for-java | keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/authentication/ChallengeCache.java | ChallengeCache.addCachedChallenge | public void addCachedChallenge(HttpUrl url, Map<String, String> challenge) {
if (url == null || challenge == null) {
return;
}
String authority = getAuthority(url);
authority = authority.toLowerCase(Locale.ENGLISH);
cachedChallenges.put(authority, challenge);
} | java | public void addCachedChallenge(HttpUrl url, Map<String, String> challenge) {
if (url == null || challenge == null) {
return;
}
String authority = getAuthority(url);
authority = authority.toLowerCase(Locale.ENGLISH);
cachedChallenges.put(authority, challenge);
} | [
"public",
"void",
"addCachedChallenge",
"(",
"HttpUrl",
"url",
",",
"Map",
"<",
"String",
",",
"String",
">",
"challenge",
")",
"{",
"if",
"(",
"url",
"==",
"null",
"||",
"challenge",
"==",
"null",
")",
"{",
"return",
";",
"}",
"String",
"authority",
"... | Uses authority to cache challenge.
@param url
the url that is used as a cache key.
@param challenge
the challenge to cache. | [
"Uses",
"authority",
"to",
"cache",
"challenge",
"."
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/authentication/ChallengeCache.java#L43-L50 |
47,551 | Azure/azure-sdk-for-java | keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/authentication/ChallengeCache.java | ChallengeCache.getAuthority | public String getAuthority(HttpUrl url) {
String scheme = url.scheme();
String host = url.host();
int port = url.port();
StringBuilder builder = new StringBuilder();
if (scheme != null) {
builder.append(scheme).append("://");
}
builder.append(host);
... | java | public String getAuthority(HttpUrl url) {
String scheme = url.scheme();
String host = url.host();
int port = url.port();
StringBuilder builder = new StringBuilder();
if (scheme != null) {
builder.append(scheme).append("://");
}
builder.append(host);
... | [
"public",
"String",
"getAuthority",
"(",
"HttpUrl",
"url",
")",
"{",
"String",
"scheme",
"=",
"url",
".",
"scheme",
"(",
")",
";",
"String",
"host",
"=",
"url",
".",
"host",
"(",
")",
";",
"int",
"port",
"=",
"url",
".",
"port",
"(",
")",
";",
"S... | Gets authority of a url.
@param url
the url to get the authority for.
@return the authority. | [
"Gets",
"authority",
"of",
"a",
"url",
"."
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/authentication/ChallengeCache.java#L59-L72 |
47,552 | Azure/azure-sdk-for-java | common/azure-common/src/main/java/com/azure/common/implementation/serializer/HttpResponseHeaderDecoder.java | HttpResponseHeaderDecoder.decode | static Mono<Object> decode(HttpResponse httpResponse, SerializerAdapter serializer, HttpResponseDecodeData decodeData) {
Type headerType = decodeData.headersType();
if (headerType == null) {
return Mono.empty();
} else {
return Mono.defer(() -> {
try {
... | java | static Mono<Object> decode(HttpResponse httpResponse, SerializerAdapter serializer, HttpResponseDecodeData decodeData) {
Type headerType = decodeData.headersType();
if (headerType == null) {
return Mono.empty();
} else {
return Mono.defer(() -> {
try {
... | [
"static",
"Mono",
"<",
"Object",
">",
"decode",
"(",
"HttpResponse",
"httpResponse",
",",
"SerializerAdapter",
"serializer",
",",
"HttpResponseDecodeData",
"decodeData",
")",
"{",
"Type",
"headerType",
"=",
"decodeData",
".",
"headersType",
"(",
")",
";",
"if",
... | Decode headers of the http response.
The decoding happens when caller subscribed to the returned {@code Mono<Object>},
if the response header is not decodable then {@code Mono.empty()} will be returned.
@param httpResponse the response containing the headers to be decoded
@param serializer the adapter to use for deco... | [
"Decode",
"headers",
"of",
"the",
"http",
"response",
"."
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/common/azure-common/src/main/java/com/azure/common/implementation/serializer/HttpResponseHeaderDecoder.java#L38-L51 |
47,553 | Azure/azure-sdk-for-java | common/azure-common/src/main/java/com/azure/common/implementation/serializer/HttpResponseHeaderDecoder.java | HttpResponseHeaderDecoder.deserializeHeaders | private static Object deserializeHeaders(HttpHeaders headers, SerializerAdapter serializer, HttpResponseDecodeData decodeData) throws IOException {
final Type deserializedHeadersType = decodeData.headersType();
if (deserializedHeadersType == null) {
return null;
} else {
... | java | private static Object deserializeHeaders(HttpHeaders headers, SerializerAdapter serializer, HttpResponseDecodeData decodeData) throws IOException {
final Type deserializedHeadersType = decodeData.headersType();
if (deserializedHeadersType == null) {
return null;
} else {
... | [
"private",
"static",
"Object",
"deserializeHeaders",
"(",
"HttpHeaders",
"headers",
",",
"SerializerAdapter",
"serializer",
",",
"HttpResponseDecodeData",
"decodeData",
")",
"throws",
"IOException",
"{",
"final",
"Type",
"deserializedHeadersType",
"=",
"decodeData",
".",
... | Deserialize the provided headers returned from a REST API to an entity instance declared as
the model to hold 'Matching' headers.
'Matching' headers are the REST API returned headers those with:
1. header names same as name of a properties in the entity.
2. header names start with value of {@link HeaderCollection} ann... | [
"Deserialize",
"the",
"provided",
"headers",
"returned",
"from",
"a",
"REST",
"API",
"to",
"an",
"entity",
"instance",
"declared",
"as",
"the",
"model",
"to",
"hold",
"Matching",
"headers",
"."
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/common/azure-common/src/main/java/com/azure/common/implementation/serializer/HttpResponseHeaderDecoder.java#L80-L127 |
47,554 | Azure/azure-sdk-for-java | appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/AppServiceEnvironmentsInner.java | AppServiceEnvironmentsInner.getByResourceGroupAsync | public Observable<AppServiceEnvironmentResourceInner> getByResourceGroupAsync(String resourceGroupName, String name) {
return getByResourceGroupWithServiceResponseAsync(resourceGroupName, name).map(new Func1<ServiceResponse<AppServiceEnvironmentResourceInner>, AppServiceEnvironmentResourceInner>() {
... | java | public Observable<AppServiceEnvironmentResourceInner> getByResourceGroupAsync(String resourceGroupName, String name) {
return getByResourceGroupWithServiceResponseAsync(resourceGroupName, name).map(new Func1<ServiceResponse<AppServiceEnvironmentResourceInner>, AppServiceEnvironmentResourceInner>() {
... | [
"public",
"Observable",
"<",
"AppServiceEnvironmentResourceInner",
">",
"getByResourceGroupAsync",
"(",
"String",
"resourceGroupName",
",",
"String",
"name",
")",
"{",
"return",
"getByResourceGroupWithServiceResponseAsync",
"(",
"resourceGroupName",
",",
"name",
")",
".",
... | Get the properties of an App Service Environment.
Get the properties of an App Service Environment.
@param resourceGroupName Name of the resource group to which the resource belongs.
@param name Name of the App Service Environment.
@throws IllegalArgumentException thrown if parameters fail the validation
@return the o... | [
"Get",
"the",
"properties",
"of",
"an",
"App",
"Service",
"Environment",
".",
"Get",
"the",
"properties",
"of",
"an",
"App",
"Service",
"Environment",
"."
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/AppServiceEnvironmentsInner.java#L622-L629 |
47,555 | Azure/azure-sdk-for-java | appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/AppServiceEnvironmentsInner.java | AppServiceEnvironmentsInner.listWebApps | public PagedList<SiteInner> listWebApps(final String resourceGroupName, final String name, final String propertiesToInclude) {
ServiceResponse<Page<SiteInner>> response = listWebAppsSinglePageAsync(resourceGroupName, name, propertiesToInclude).toBlocking().single();
return new PagedList<SiteInner>(respo... | java | public PagedList<SiteInner> listWebApps(final String resourceGroupName, final String name, final String propertiesToInclude) {
ServiceResponse<Page<SiteInner>> response = listWebAppsSinglePageAsync(resourceGroupName, name, propertiesToInclude).toBlocking().single();
return new PagedList<SiteInner>(respo... | [
"public",
"PagedList",
"<",
"SiteInner",
">",
"listWebApps",
"(",
"final",
"String",
"resourceGroupName",
",",
"final",
"String",
"name",
",",
"final",
"String",
"propertiesToInclude",
")",
"{",
"ServiceResponse",
"<",
"Page",
"<",
"SiteInner",
">>",
"response",
... | Get all apps in an App Service Environment.
Get all apps in an App Service Environment.
@param resourceGroupName Name of the resource group to which the resource belongs.
@param name Name of the App Service Environment.
@param propertiesToInclude Comma separated list of app properties to include.
@throws IllegalArgume... | [
"Get",
"all",
"apps",
"in",
"an",
"App",
"Service",
"Environment",
".",
"Get",
"all",
"apps",
"in",
"an",
"App",
"Service",
"Environment",
"."
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/implementation/AppServiceEnvironmentsInner.java#L4318-L4326 |
47,556 | Azure/azure-sdk-for-java | sql/resource-manager/v2014_04_01/src/main/java/com/microsoft/azure/management/sql/v2014_04_01/implementation/ServerUsagesInner.java | ServerUsagesInner.listByServerAsync | public Observable<List<ServerUsageInner>> listByServerAsync(String resourceGroupName, String serverName) {
return listByServerWithServiceResponseAsync(resourceGroupName, serverName).map(new Func1<ServiceResponse<List<ServerUsageInner>>, List<ServerUsageInner>>() {
@Override
public List<S... | java | public Observable<List<ServerUsageInner>> listByServerAsync(String resourceGroupName, String serverName) {
return listByServerWithServiceResponseAsync(resourceGroupName, serverName).map(new Func1<ServiceResponse<List<ServerUsageInner>>, List<ServerUsageInner>>() {
@Override
public List<S... | [
"public",
"Observable",
"<",
"List",
"<",
"ServerUsageInner",
">",
">",
"listByServerAsync",
"(",
"String",
"resourceGroupName",
",",
"String",
"serverName",
")",
"{",
"return",
"listByServerWithServiceResponseAsync",
"(",
"resourceGroupName",
",",
"serverName",
")",
... | Returns server usages.
@param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
@param serverName The name of the server.
@throws IllegalArgumentException thrown if parameters fail the validation
@return the observa... | [
"Returns",
"server",
"usages",
"."
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/sql/resource-manager/v2014_04_01/src/main/java/com/microsoft/azure/management/sql/v2014_04_01/implementation/ServerUsagesInner.java#L96-L103 |
47,557 | Azure/azure-sdk-for-java | mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/models/ContentKeyAuthorizationPolicy.java | ContentKeyAuthorizationPolicy.get | public static EntityGetOperation<ContentKeyAuthorizationPolicyInfo> get(String contentKeyAuthorizationPolicyId) {
return new DefaultGetOperation<ContentKeyAuthorizationPolicyInfo>(ENTITY_SET, contentKeyAuthorizationPolicyId,
ContentKeyAuthorizationPolicyInfo.class);
} | java | public static EntityGetOperation<ContentKeyAuthorizationPolicyInfo> get(String contentKeyAuthorizationPolicyId) {
return new DefaultGetOperation<ContentKeyAuthorizationPolicyInfo>(ENTITY_SET, contentKeyAuthorizationPolicyId,
ContentKeyAuthorizationPolicyInfo.class);
} | [
"public",
"static",
"EntityGetOperation",
"<",
"ContentKeyAuthorizationPolicyInfo",
">",
"get",
"(",
"String",
"contentKeyAuthorizationPolicyId",
")",
"{",
"return",
"new",
"DefaultGetOperation",
"<",
"ContentKeyAuthorizationPolicyInfo",
">",
"(",
"ENTITY_SET",
",",
"conten... | Create an operation that will retrieve the given content key
authorization policy
@param contentKeyAuthorizationPolicyId
id of content key authorization policy to retrieve
@return the operation | [
"Create",
"an",
"operation",
"that",
"will",
"retrieve",
"the",
"given",
"content",
"key",
"authorization",
"policy"
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/models/ContentKeyAuthorizationPolicy.java#L85-L88 |
47,558 | Azure/azure-sdk-for-java | mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/models/ContentKeyAuthorizationPolicy.java | ContentKeyAuthorizationPolicy.get | public static EntityGetOperation<ContentKeyAuthorizationPolicyInfo> get(
LinkInfo<ContentKeyAuthorizationPolicyInfo> link) {
return new DefaultGetOperation<ContentKeyAuthorizationPolicyInfo>(link.getHref(),
ContentKeyAuthorizationPolicyInfo.class);
} | java | public static EntityGetOperation<ContentKeyAuthorizationPolicyInfo> get(
LinkInfo<ContentKeyAuthorizationPolicyInfo> link) {
return new DefaultGetOperation<ContentKeyAuthorizationPolicyInfo>(link.getHref(),
ContentKeyAuthorizationPolicyInfo.class);
} | [
"public",
"static",
"EntityGetOperation",
"<",
"ContentKeyAuthorizationPolicyInfo",
">",
"get",
"(",
"LinkInfo",
"<",
"ContentKeyAuthorizationPolicyInfo",
">",
"link",
")",
"{",
"return",
"new",
"DefaultGetOperation",
"<",
"ContentKeyAuthorizationPolicyInfo",
">",
"(",
"l... | Create an operation that will retrieve the content key authorization
policy at the given link
@param link
the link
@return the operation | [
"Create",
"an",
"operation",
"that",
"will",
"retrieve",
"the",
"content",
"key",
"authorization",
"policy",
"at",
"the",
"given",
"link"
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/models/ContentKeyAuthorizationPolicy.java#L98-L102 |
47,559 | Azure/azure-sdk-for-java | mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/models/ContentKeyAuthorizationPolicy.java | ContentKeyAuthorizationPolicy.linkOptions | public static EntityLinkOperation linkOptions(String contentKeyAuthorizationPolicyId,
String contentKeyAuthorizationPolicyOptionId) {
String escapedContentKeyId = null;
try {
escapedContentKeyId = URLEncoder.encode(contentKeyAuthorizationPolicyOptionId, "UTF-8");
} catch ... | java | public static EntityLinkOperation linkOptions(String contentKeyAuthorizationPolicyId,
String contentKeyAuthorizationPolicyOptionId) {
String escapedContentKeyId = null;
try {
escapedContentKeyId = URLEncoder.encode(contentKeyAuthorizationPolicyOptionId, "UTF-8");
} catch ... | [
"public",
"static",
"EntityLinkOperation",
"linkOptions",
"(",
"String",
"contentKeyAuthorizationPolicyId",
",",
"String",
"contentKeyAuthorizationPolicyOptionId",
")",
"{",
"String",
"escapedContentKeyId",
"=",
"null",
";",
"try",
"{",
"escapedContentKeyId",
"=",
"URLEncod... | Link a content key authorization policy options.
@param contentKeyAuthorizationPolicyId
the content key authorization policy id
@param contentKeyAuthorizationPolicyOptionId
the content key authorization policy option id
@return the entity action operation | [
"Link",
"a",
"content",
"key",
"authorization",
"policy",
"options",
"."
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/models/ContentKeyAuthorizationPolicy.java#L138-L149 |
47,560 | Azure/azure-sdk-for-java | mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/models/ContentKeyAuthorizationPolicy.java | ContentKeyAuthorizationPolicy.unlinkOptions | public static EntityUnlinkOperation unlinkOptions(String contentKeyAuthorizationPolicyId,
String contentKeyAuthorizationPolicyOptionId) {
return new EntityUnlinkOperation(ENTITY_SET, contentKeyAuthorizationPolicyId, "Options", contentKeyAuthorizationPolicyOptionId);
} | java | public static EntityUnlinkOperation unlinkOptions(String contentKeyAuthorizationPolicyId,
String contentKeyAuthorizationPolicyOptionId) {
return new EntityUnlinkOperation(ENTITY_SET, contentKeyAuthorizationPolicyId, "Options", contentKeyAuthorizationPolicyOptionId);
} | [
"public",
"static",
"EntityUnlinkOperation",
"unlinkOptions",
"(",
"String",
"contentKeyAuthorizationPolicyId",
",",
"String",
"contentKeyAuthorizationPolicyOptionId",
")",
"{",
"return",
"new",
"EntityUnlinkOperation",
"(",
"ENTITY_SET",
",",
"contentKeyAuthorizationPolicyId",
... | Unlink content key authorization policy options.
@param assetId
the asset id
@param adpId
the Asset Delivery Policy id
@return the entity action operation | [
"Unlink",
"content",
"key",
"authorization",
"policy",
"options",
"."
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/models/ContentKeyAuthorizationPolicy.java#L160-L163 |
47,561 | Azure/azure-sdk-for-java | network/resource-manager/v2018_08_01/src/main/java/com/microsoft/azure/management/network/v2018_08_01/implementation/NetworkInterfaceTapConfigurationsInner.java | NetworkInterfaceTapConfigurationsInner.beginDelete | public void beginDelete(String resourceGroupName, String networkInterfaceName, String tapConfigurationName) {
beginDeleteWithServiceResponseAsync(resourceGroupName, networkInterfaceName, tapConfigurationName).toBlocking().single().body();
} | java | public void beginDelete(String resourceGroupName, String networkInterfaceName, String tapConfigurationName) {
beginDeleteWithServiceResponseAsync(resourceGroupName, networkInterfaceName, tapConfigurationName).toBlocking().single().body();
} | [
"public",
"void",
"beginDelete",
"(",
"String",
"resourceGroupName",
",",
"String",
"networkInterfaceName",
",",
"String",
"tapConfigurationName",
")",
"{",
"beginDeleteWithServiceResponseAsync",
"(",
"resourceGroupName",
",",
"networkInterfaceName",
",",
"tapConfigurationNam... | Deletes the specified tap configuration from the NetworkInterface.
@param resourceGroupName The name of the resource group.
@param networkInterfaceName The name of the network interface.
@param tapConfigurationName The name of the tap configuration.
@throws IllegalArgumentException thrown if parameters fail the valida... | [
"Deletes",
"the",
"specified",
"tap",
"configuration",
"from",
"the",
"NetworkInterface",
"."
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/network/resource-manager/v2018_08_01/src/main/java/com/microsoft/azure/management/network/v2018_08_01/implementation/NetworkInterfaceTapConfigurationsInner.java#L177-L179 |
47,562 | Azure/azure-sdk-for-java | sql/resource-manager/v2014_04_01/src/main/java/com/microsoft/azure/management/sql/v2014_04_01/implementation/ServiceObjectivesInner.java | ServiceObjectivesInner.listByServerAsync | public Observable<List<ServiceObjectiveInner>> listByServerAsync(String resourceGroupName, String serverName) {
return listByServerWithServiceResponseAsync(resourceGroupName, serverName).map(new Func1<ServiceResponse<List<ServiceObjectiveInner>>, List<ServiceObjectiveInner>>() {
@Override
... | java | public Observable<List<ServiceObjectiveInner>> listByServerAsync(String resourceGroupName, String serverName) {
return listByServerWithServiceResponseAsync(resourceGroupName, serverName).map(new Func1<ServiceResponse<List<ServiceObjectiveInner>>, List<ServiceObjectiveInner>>() {
@Override
... | [
"public",
"Observable",
"<",
"List",
"<",
"ServiceObjectiveInner",
">",
">",
"listByServerAsync",
"(",
"String",
"resourceGroupName",
",",
"String",
"serverName",
")",
"{",
"return",
"listByServerWithServiceResponseAsync",
"(",
"resourceGroupName",
",",
"serverName",
")... | Returns database service objectives.
@param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
@param serverName The name of the server.
@throws IllegalArgumentException thrown if parameters fail the validation
@retu... | [
"Returns",
"database",
"service",
"objectives",
"."
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/sql/resource-manager/v2014_04_01/src/main/java/com/microsoft/azure/management/sql/v2014_04_01/implementation/ServiceObjectivesInner.java#L193-L200 |
47,563 | Azure/azure-sdk-for-java | iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/IotHubResourcesInner.java | IotHubResourcesInner.getByResourceGroupAsync | public Observable<IotHubDescriptionInner> getByResourceGroupAsync(String resourceGroupName, String resourceName) {
return getByResourceGroupWithServiceResponseAsync(resourceGroupName, resourceName).map(new Func1<ServiceResponse<IotHubDescriptionInner>, IotHubDescriptionInner>() {
@Override
... | java | public Observable<IotHubDescriptionInner> getByResourceGroupAsync(String resourceGroupName, String resourceName) {
return getByResourceGroupWithServiceResponseAsync(resourceGroupName, resourceName).map(new Func1<ServiceResponse<IotHubDescriptionInner>, IotHubDescriptionInner>() {
@Override
... | [
"public",
"Observable",
"<",
"IotHubDescriptionInner",
">",
"getByResourceGroupAsync",
"(",
"String",
"resourceGroupName",
",",
"String",
"resourceName",
")",
"{",
"return",
"getByResourceGroupWithServiceResponseAsync",
"(",
"resourceGroupName",
",",
"resourceName",
")",
".... | Get the non-security related metadata of an IoT hub.
Get the non-security related metadata of an IoT hub.
@param resourceGroupName The name of the resource group that contains the IoT hub.
@param resourceName The name of the IoT hub.
@throws IllegalArgumentException thrown if parameters fail the validation
@return the... | [
"Get",
"the",
"non",
"-",
"security",
"related",
"metadata",
"of",
"an",
"IoT",
"hub",
".",
"Get",
"the",
"non",
"-",
"security",
"related",
"metadata",
"of",
"an",
"IoT",
"hub",
"."
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/iothub/resource-manager/v2018_04_01/src/main/java/com/microsoft/azure/management/iothub/v2018_04_01/implementation/IotHubResourcesInner.java#L254-L261 |
47,564 | Azure/azure-sdk-for-java | batch/data-plane/src/main/java/com/microsoft/azure/batch/InternalHelper.java | InternalHelper.inheritClientBehaviorsAndSetPublicProperty | public static void inheritClientBehaviorsAndSetPublicProperty(IInheritedBehaviors inheritingObject, Iterable<BatchClientBehavior> baseBehaviors) {
// implement inheritance of behaviors
List<BatchClientBehavior> customBehaviors = new ArrayList<>();
// if there were any behaviors, pre-populate th... | java | public static void inheritClientBehaviorsAndSetPublicProperty(IInheritedBehaviors inheritingObject, Iterable<BatchClientBehavior> baseBehaviors) {
// implement inheritance of behaviors
List<BatchClientBehavior> customBehaviors = new ArrayList<>();
// if there were any behaviors, pre-populate th... | [
"public",
"static",
"void",
"inheritClientBehaviorsAndSetPublicProperty",
"(",
"IInheritedBehaviors",
"inheritingObject",
",",
"Iterable",
"<",
"BatchClientBehavior",
">",
"baseBehaviors",
")",
"{",
"// implement inheritance of behaviors",
"List",
"<",
"BatchClientBehavior",
">... | Inherit the BatchClientBehavior classes from parent object
@param inheritingObject the inherit object
@param baseBehaviors base class behavior list | [
"Inherit",
"the",
"BatchClientBehavior",
"classes",
"from",
"parent",
"object"
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/batch/data-plane/src/main/java/com/microsoft/azure/batch/InternalHelper.java#L19-L32 |
47,565 | Azure/azure-sdk-for-java | cognitiveservices/data-plane/vision/contentmoderator/src/main/java/com/microsoft/azure/cognitiveservices/vision/contentmoderator/implementation/ListManagementImageListsImpl.java | ListManagementImageListsImpl.refreshIndexMethodAsync | public ServiceFuture<RefreshIndex> refreshIndexMethodAsync(String listId, final ServiceCallback<RefreshIndex> serviceCallback) {
return ServiceFuture.fromResponse(refreshIndexMethodWithServiceResponseAsync(listId), serviceCallback);
} | java | public ServiceFuture<RefreshIndex> refreshIndexMethodAsync(String listId, final ServiceCallback<RefreshIndex> serviceCallback) {
return ServiceFuture.fromResponse(refreshIndexMethodWithServiceResponseAsync(listId), serviceCallback);
} | [
"public",
"ServiceFuture",
"<",
"RefreshIndex",
">",
"refreshIndexMethodAsync",
"(",
"String",
"listId",
",",
"final",
"ServiceCallback",
"<",
"RefreshIndex",
">",
"serviceCallback",
")",
"{",
"return",
"ServiceFuture",
".",
"fromResponse",
"(",
"refreshIndexMethodWithS... | Refreshes the index of the list with list Id equal to list Id passed.
@param listId List Id of the image list.
@param serviceCallback the async ServiceCallback to handle successful and failed responses.
@throws IllegalArgumentException thrown if parameters fail the validation
@return the {@link ServiceFuture} object | [
"Refreshes",
"the",
"index",
"of",
"the",
"list",
"with",
"list",
"Id",
"equal",
"to",
"list",
"Id",
"passed",
"."
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/cognitiveservices/data-plane/vision/contentmoderator/src/main/java/com/microsoft/azure/cognitiveservices/vision/contentmoderator/implementation/ListManagementImageListsImpl.java#L512-L514 |
47,566 | Azure/azure-sdk-for-java | servicebus/data-plane/azure-servicebus/src/main/java/com/microsoft/azure/servicebus/management/ManagementClient.java | ManagementClient.getSubscriptions | public List<SubscriptionDescription> getSubscriptions(String topicName) throws ServiceBusException, InterruptedException {
return Utils.completeFuture(this.asyncClient.getSubscriptionsAsync(topicName));
} | java | public List<SubscriptionDescription> getSubscriptions(String topicName) throws ServiceBusException, InterruptedException {
return Utils.completeFuture(this.asyncClient.getSubscriptionsAsync(topicName));
} | [
"public",
"List",
"<",
"SubscriptionDescription",
">",
"getSubscriptions",
"(",
"String",
"topicName",
")",
"throws",
"ServiceBusException",
",",
"InterruptedException",
"{",
"return",
"Utils",
".",
"completeFuture",
"(",
"this",
".",
"asyncClient",
".",
"getSubscript... | Retrieves the list of subscriptions for a given topic in the namespace.
@param topicName - The name of the topic.
@return the first 100 subscriptions.
@throws TimeoutException - The operation times out. The timeout period is initiated through ClientSettings.operationTimeout
@throws AuthorizationFailedException - No suf... | [
"Retrieves",
"the",
"list",
"of",
"subscriptions",
"for",
"a",
"given",
"topic",
"in",
"the",
"namespace",
"."
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/servicebus/data-plane/azure-servicebus/src/main/java/com/microsoft/azure/servicebus/management/ManagementClient.java#L224-L226 |
47,567 | Azure/azure-sdk-for-java | servicebus/data-plane/azure-servicebus/src/main/java/com/microsoft/azure/servicebus/management/ManagementClient.java | ManagementClient.updateQueue | public QueueDescription updateQueue(QueueDescription queueDescription) throws ServiceBusException, InterruptedException {
return Utils.completeFuture(this.asyncClient.updateQueueAsync(queueDescription));
} | java | public QueueDescription updateQueue(QueueDescription queueDescription) throws ServiceBusException, InterruptedException {
return Utils.completeFuture(this.asyncClient.updateQueueAsync(queueDescription));
} | [
"public",
"QueueDescription",
"updateQueue",
"(",
"QueueDescription",
"queueDescription",
")",
"throws",
"ServiceBusException",
",",
"InterruptedException",
"{",
"return",
"Utils",
".",
"completeFuture",
"(",
"this",
".",
"asyncClient",
".",
"updateQueueAsync",
"(",
"qu... | Updates an existing queue.
@param queueDescription - A {@link QueueDescription} object describing the attributes with which the queue will be updated.
@return {@link QueueDescription} of the updated queue.
@throws MessagingEntityNotFoundException - Described entity was not found.
@throws IllegalArgumentException - desc... | [
"Updates",
"an",
"existing",
"queue",
"."
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/servicebus/data-plane/azure-servicebus/src/main/java/com/microsoft/azure/servicebus/management/ManagementClient.java#L328-L330 |
47,568 | Azure/azure-sdk-for-java | servicebus/data-plane/azure-servicebus/src/main/java/com/microsoft/azure/servicebus/management/ManagementClient.java | ManagementClient.updateTopic | public TopicDescription updateTopic(TopicDescription topicDescription) throws ServiceBusException, InterruptedException {
return Utils.completeFuture(this.asyncClient.updateTopicAsync(topicDescription));
} | java | public TopicDescription updateTopic(TopicDescription topicDescription) throws ServiceBusException, InterruptedException {
return Utils.completeFuture(this.asyncClient.updateTopicAsync(topicDescription));
} | [
"public",
"TopicDescription",
"updateTopic",
"(",
"TopicDescription",
"topicDescription",
")",
"throws",
"ServiceBusException",
",",
"InterruptedException",
"{",
"return",
"Utils",
".",
"completeFuture",
"(",
"this",
".",
"asyncClient",
".",
"updateTopicAsync",
"(",
"to... | Updates an existing topic.
@param topicDescription - A {@link TopicDescription} object describing the attributes with which the topic will be updated.
@return {@link TopicDescription} of the updated topic.
@throws MessagingEntityNotFoundException - Described entity was not found.
@throws IllegalArgumentException - desc... | [
"Updates",
"an",
"existing",
"topic",
"."
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/servicebus/data-plane/azure-servicebus/src/main/java/com/microsoft/azure/servicebus/management/ManagementClient.java#L380-L382 |
47,569 | Azure/azure-sdk-for-java | servicebus/data-plane/azure-servicebus/src/main/java/com/microsoft/azure/servicebus/management/ManagementClient.java | ManagementClient.updateSubscription | public SubscriptionDescription updateSubscription(SubscriptionDescription subscriptionDescription) throws ServiceBusException, InterruptedException {
return Utils.completeFuture(this.asyncClient.updateSubscriptionAsync(subscriptionDescription));
} | java | public SubscriptionDescription updateSubscription(SubscriptionDescription subscriptionDescription) throws ServiceBusException, InterruptedException {
return Utils.completeFuture(this.asyncClient.updateSubscriptionAsync(subscriptionDescription));
} | [
"public",
"SubscriptionDescription",
"updateSubscription",
"(",
"SubscriptionDescription",
"subscriptionDescription",
")",
"throws",
"ServiceBusException",
",",
"InterruptedException",
"{",
"return",
"Utils",
".",
"completeFuture",
"(",
"this",
".",
"asyncClient",
".",
"upd... | Updates an existing subscription.
@param subscriptionDescription - A {@link SubscriptionDescription} object describing the attributes with which the subscription will be updated.
@return {@link SubscriptionDescription} of the updated subscription.
@throws MessagingEntityNotFoundException - Described entity was not foun... | [
"Updates",
"an",
"existing",
"subscription",
"."
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/servicebus/data-plane/azure-servicebus/src/main/java/com/microsoft/azure/servicebus/management/ManagementClient.java#L451-L453 |
47,570 | Azure/azure-sdk-for-java | applicationconfig/client/src/samples/java/HelloWorld.java | HelloWorld.main | public static void main(String[] args) throws NoSuchAlgorithmException, InvalidKeyException {
// The connection string value can be obtained by going to your App Configuration instance in the Azure portal
// and navigating to "Access Keys" page under the "Settings" section.
String connectionStri... | java | public static void main(String[] args) throws NoSuchAlgorithmException, InvalidKeyException {
// The connection string value can be obtained by going to your App Configuration instance in the Azure portal
// and navigating to "Access Keys" page under the "Settings" section.
String connectionStri... | [
"public",
"static",
"void",
"main",
"(",
"String",
"[",
"]",
"args",
")",
"throws",
"NoSuchAlgorithmException",
",",
"InvalidKeyException",
"{",
"// The connection string value can be obtained by going to your App Configuration instance in the Azure portal",
"// and navigating to \"A... | Runs the sample algorithm and demonstrates how to add, get, and delete a configuration setting.
@param args Unused. Arguments to the program.
@throws NoSuchAlgorithmException when credentials cannot be created because the service cannot resolve the
HMAC-SHA256 algorithm.
@throws InvalidKeyException when credentials ca... | [
"Runs",
"the",
"sample",
"algorithm",
"and",
"demonstrates",
"how",
"to",
"add",
"get",
"and",
"delete",
"a",
"configuration",
"setting",
"."
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/applicationconfig/client/src/samples/java/HelloWorld.java#L23-L52 |
47,571 | Azure/azure-sdk-for-java | mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/models/Locator.java | Locator.create | public static Creator create(String accessPolicyId, String assetId,
LocatorType locatorType) {
return new Creator(accessPolicyId, assetId, locatorType);
} | java | public static Creator create(String accessPolicyId, String assetId,
LocatorType locatorType) {
return new Creator(accessPolicyId, assetId, locatorType);
} | [
"public",
"static",
"Creator",
"create",
"(",
"String",
"accessPolicyId",
",",
"String",
"assetId",
",",
"LocatorType",
"locatorType",
")",
"{",
"return",
"new",
"Creator",
"(",
"accessPolicyId",
",",
"assetId",
",",
"locatorType",
")",
";",
"}"
] | Create an operation to create a new locator entity.
@param accessPolicyId
id of access policy for locator
@param assetId
id of asset for locator
@param locatorType
locator type
@return the operation | [
"Create",
"an",
"operation",
"to",
"create",
"a",
"new",
"locator",
"entity",
"."
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/models/Locator.java#L57-L60 |
47,572 | Azure/azure-sdk-for-java | mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/models/Locator.java | Locator.get | public static EntityGetOperation<LocatorInfo> get(String locatorId) {
return new DefaultGetOperation<LocatorInfo>(ENTITY_SET, locatorId,
LocatorInfo.class);
} | java | public static EntityGetOperation<LocatorInfo> get(String locatorId) {
return new DefaultGetOperation<LocatorInfo>(ENTITY_SET, locatorId,
LocatorInfo.class);
} | [
"public",
"static",
"EntityGetOperation",
"<",
"LocatorInfo",
">",
"get",
"(",
"String",
"locatorId",
")",
"{",
"return",
"new",
"DefaultGetOperation",
"<",
"LocatorInfo",
">",
"(",
"ENTITY_SET",
",",
"locatorId",
",",
"LocatorInfo",
".",
"class",
")",
";",
"}... | Create an operation to get the given locator.
@param locatorId
id of locator to retrieve
@return the get operation | [
"Create",
"an",
"operation",
"to",
"get",
"the",
"given",
"locator",
"."
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/models/Locator.java#L195-L198 |
47,573 | Azure/azure-sdk-for-java | mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/models/Locator.java | Locator.list | public static DefaultListOperation<LocatorInfo> list(
LinkInfo<LocatorInfo> link) {
return new DefaultListOperation<LocatorInfo>(link.getHref(),
new GenericType<ListResult<LocatorInfo>>() {
});
} | java | public static DefaultListOperation<LocatorInfo> list(
LinkInfo<LocatorInfo> link) {
return new DefaultListOperation<LocatorInfo>(link.getHref(),
new GenericType<ListResult<LocatorInfo>>() {
});
} | [
"public",
"static",
"DefaultListOperation",
"<",
"LocatorInfo",
">",
"list",
"(",
"LinkInfo",
"<",
"LocatorInfo",
">",
"link",
")",
"{",
"return",
"new",
"DefaultListOperation",
"<",
"LocatorInfo",
">",
"(",
"link",
".",
"getHref",
"(",
")",
",",
"new",
"Gen... | Create an operation that will list all the locators at the given link.
@param link
Link to request locators from.
@return The list operation. | [
"Create",
"an",
"operation",
"that",
"will",
"list",
"all",
"the",
"locators",
"at",
"the",
"given",
"link",
"."
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/models/Locator.java#L218-L223 |
47,574 | Azure/azure-sdk-for-java | mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/MediaConfiguration.java | MediaConfiguration.configureWithAzureAdTokenProvider | public static Configuration configureWithAzureAdTokenProvider(
URI apiServer,
TokenProvider azureAdTokenProvider) {
return configureWithAzureAdTokenProvider(Configuration.getInstance(), apiServer, azureAdTokenProvider);
} | java | public static Configuration configureWithAzureAdTokenProvider(
URI apiServer,
TokenProvider azureAdTokenProvider) {
return configureWithAzureAdTokenProvider(Configuration.getInstance(), apiServer, azureAdTokenProvider);
} | [
"public",
"static",
"Configuration",
"configureWithAzureAdTokenProvider",
"(",
"URI",
"apiServer",
",",
"TokenProvider",
"azureAdTokenProvider",
")",
"{",
"return",
"configureWithAzureAdTokenProvider",
"(",
"Configuration",
".",
"getInstance",
"(",
")",
",",
"apiServer",
... | Returns the default Configuration provisioned for the specified AMS account and token provider.
@param apiServer the AMS account uri
@param azureAdTokenProvider the token provider
@return a Configuration | [
"Returns",
"the",
"default",
"Configuration",
"provisioned",
"for",
"the",
"specified",
"AMS",
"account",
"and",
"token",
"provider",
"."
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/MediaConfiguration.java#L47-L52 |
47,575 | Azure/azure-sdk-for-java | mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/MediaConfiguration.java | MediaConfiguration.configureWithAzureAdTokenProvider | public static Configuration configureWithAzureAdTokenProvider(
Configuration configuration,
URI apiServer,
TokenProvider azureAdTokenProvider) {
configuration.setProperty(AZURE_AD_API_SERVER, apiServer.toString());
configuration.setProperty(AZURE_AD_TOKEN_PROVIDER, a... | java | public static Configuration configureWithAzureAdTokenProvider(
Configuration configuration,
URI apiServer,
TokenProvider azureAdTokenProvider) {
configuration.setProperty(AZURE_AD_API_SERVER, apiServer.toString());
configuration.setProperty(AZURE_AD_TOKEN_PROVIDER, a... | [
"public",
"static",
"Configuration",
"configureWithAzureAdTokenProvider",
"(",
"Configuration",
"configuration",
",",
"URI",
"apiServer",
",",
"TokenProvider",
"azureAdTokenProvider",
")",
"{",
"configuration",
".",
"setProperty",
"(",
"AZURE_AD_API_SERVER",
",",
"apiServer... | Setup a Configuration with specified Configuration, AMS account and token provider
@param configuration The target configuration
@param apiServer the AMS account uri
@param azureAdTokenProvider the token provider
@return the target Configuration | [
"Setup",
"a",
"Configuration",
"with",
"specified",
"Configuration",
"AMS",
"account",
"and",
"token",
"provider"
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/MediaConfiguration.java#L61-L70 |
47,576 | Azure/azure-sdk-for-java | common/azure-common-auth/src/main/java/com/azure/common/auth/credentials/AzureCliCredentials.java | AzureCliCredentials.create | public static AzureCliCredentials create() throws IOException {
return create(
Paths.get(System.getProperty("user.home"), ".azure", "azureProfile.json").toFile(),
Paths.get(System.getProperty("user.home"), ".azure", "accessTokens.json").toFile());
} | java | public static AzureCliCredentials create() throws IOException {
return create(
Paths.get(System.getProperty("user.home"), ".azure", "azureProfile.json").toFile(),
Paths.get(System.getProperty("user.home"), ".azure", "accessTokens.json").toFile());
} | [
"public",
"static",
"AzureCliCredentials",
"create",
"(",
")",
"throws",
"IOException",
"{",
"return",
"create",
"(",
"Paths",
".",
"get",
"(",
"System",
".",
"getProperty",
"(",
"\"user.home\"",
")",
",",
"\".azure\"",
",",
"\"azureProfile.json\"",
")",
".",
... | Creates an instance of AzureCliCredentials with the default Azure CLI configuration.
@return an instance of AzureCliCredentials
@throws IOException if the Azure CLI token files are not accessible | [
"Creates",
"an",
"instance",
"of",
"AzureCliCredentials",
"with",
"the",
"default",
"Azure",
"CLI",
"configuration",
"."
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/common/azure-common-auth/src/main/java/com/azure/common/auth/credentials/AzureCliCredentials.java#L76-L80 |
47,577 | Azure/azure-sdk-for-java | sql/resource-manager/v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/ExtendedServerBlobAuditingPoliciesInner.java | ExtendedServerBlobAuditingPoliciesInner.getAsync | public Observable<ExtendedServerBlobAuditingPolicyInner> getAsync(String resourceGroupName, String serverName) {
return getWithServiceResponseAsync(resourceGroupName, serverName).map(new Func1<ServiceResponse<ExtendedServerBlobAuditingPolicyInner>, ExtendedServerBlobAuditingPolicyInner>() {
@Overrid... | java | public Observable<ExtendedServerBlobAuditingPolicyInner> getAsync(String resourceGroupName, String serverName) {
return getWithServiceResponseAsync(resourceGroupName, serverName).map(new Func1<ServiceResponse<ExtendedServerBlobAuditingPolicyInner>, ExtendedServerBlobAuditingPolicyInner>() {
@Overrid... | [
"public",
"Observable",
"<",
"ExtendedServerBlobAuditingPolicyInner",
">",
"getAsync",
"(",
"String",
"resourceGroupName",
",",
"String",
"serverName",
")",
"{",
"return",
"getWithServiceResponseAsync",
"(",
"resourceGroupName",
",",
"serverName",
")",
".",
"map",
"(",
... | Gets an extended server's blob auditing policy.
@param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
@param serverName The name of the server.
@throws IllegalArgumentException thrown if parameters fail the valid... | [
"Gets",
"an",
"extended",
"server",
"s",
"blob",
"auditing",
"policy",
"."
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/sql/resource-manager/v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/ExtendedServerBlobAuditingPoliciesInner.java#L106-L113 |
47,578 | Azure/azure-sdk-for-java | common/azure-common/src/main/java/com/azure/common/util/ExpandableStringEnum.java | ExpandableStringEnum.fromString | @SuppressWarnings("unchecked")
protected static <T extends ExpandableStringEnum<T>> T fromString(String name, Class<T> clazz) {
if (name == null) {
return null;
} else if (valuesByName != null) {
T value = (T) valuesByName.get(uniqueKey(clazz, name));
if (value !=... | java | @SuppressWarnings("unchecked")
protected static <T extends ExpandableStringEnum<T>> T fromString(String name, Class<T> clazz) {
if (name == null) {
return null;
} else if (valuesByName != null) {
T value = (T) valuesByName.get(uniqueKey(clazz, name));
if (value !=... | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"protected",
"static",
"<",
"T",
"extends",
"ExpandableStringEnum",
"<",
"T",
">",
">",
"T",
"fromString",
"(",
"String",
"name",
",",
"Class",
"<",
"T",
">",
"clazz",
")",
"{",
"if",
"(",
"name",
"==",... | Creates an instance of the specific expandable string enum from a String.
@param name the value to create the instance from
@param clazz the class of the expandable string enum
@param <T> the class of the expandable string enum
@return the expandable string enum instance | [
"Creates",
"an",
"instance",
"of",
"the",
"specific",
"expandable",
"string",
"enum",
"from",
"a",
"String",
"."
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/common/azure-common/src/main/java/com/azure/common/util/ExpandableStringEnum.java#L48-L65 |
47,579 | Azure/azure-sdk-for-java | common/azure-common/src/main/java/com/azure/common/util/ExpandableStringEnum.java | ExpandableStringEnum.values | @SuppressWarnings("unchecked")
protected static <T extends ExpandableStringEnum<T>> Collection<T> values(Class<T> clazz) {
// Make a copy of all values
Collection<? extends ExpandableStringEnum<?>> values = new ArrayList<>(valuesByName.values());
Collection<T> list = new HashSet<T>();
... | java | @SuppressWarnings("unchecked")
protected static <T extends ExpandableStringEnum<T>> Collection<T> values(Class<T> clazz) {
// Make a copy of all values
Collection<? extends ExpandableStringEnum<?>> values = new ArrayList<>(valuesByName.values());
Collection<T> list = new HashSet<T>();
... | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"protected",
"static",
"<",
"T",
"extends",
"ExpandableStringEnum",
"<",
"T",
">",
">",
"Collection",
"<",
"T",
">",
"values",
"(",
"Class",
"<",
"T",
">",
"clazz",
")",
"{",
"// Make a copy of all values",
... | Gets a collection of all known values to an expandable string enum type.
@param clazz the class of the expandable string enum
@param <T> the class of the expandable string enum
@return a collection of all known values | [
"Gets",
"a",
"collection",
"of",
"all",
"known",
"values",
"to",
"an",
"expandable",
"string",
"enum",
"type",
"."
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/common/azure-common/src/main/java/com/azure/common/util/ExpandableStringEnum.java#L73-L86 |
47,580 | Azure/azure-sdk-for-java | mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/models/NotificationEndPoint.java | NotificationEndPoint.create | public static EntityCreateOperation<NotificationEndPointInfo> create(
String name, EndPointType endPointType, String endPointAddress) {
return new Creator(name, endPointType, endPointAddress);
} | java | public static EntityCreateOperation<NotificationEndPointInfo> create(
String name, EndPointType endPointType, String endPointAddress) {
return new Creator(name, endPointType, endPointAddress);
} | [
"public",
"static",
"EntityCreateOperation",
"<",
"NotificationEndPointInfo",
">",
"create",
"(",
"String",
"name",
",",
"EndPointType",
"endPointType",
",",
"String",
"endPointAddress",
")",
"{",
"return",
"new",
"Creator",
"(",
"name",
",",
"endPointType",
",",
... | Creates an operation to create a new notification end point.
@param name
name of the notification end point.
@param endPointType
the type of the notification end point.
@param endPointAddress
the address of the end point.
@return The operation | [
"Creates",
"an",
"operation",
"to",
"create",
"a",
"new",
"notification",
"end",
"point",
"."
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/models/NotificationEndPoint.java#L52-L55 |
47,581 | Azure/azure-sdk-for-java | mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/models/NotificationEndPoint.java | NotificationEndPoint.get | public static EntityGetOperation<NotificationEndPointInfo> get(
String notificationEndPointId) {
return new DefaultGetOperation<NotificationEndPointInfo>(ENTITY_SET,
notificationEndPointId, NotificationEndPointInfo.class);
} | java | public static EntityGetOperation<NotificationEndPointInfo> get(
String notificationEndPointId) {
return new DefaultGetOperation<NotificationEndPointInfo>(ENTITY_SET,
notificationEndPointId, NotificationEndPointInfo.class);
} | [
"public",
"static",
"EntityGetOperation",
"<",
"NotificationEndPointInfo",
">",
"get",
"(",
"String",
"notificationEndPointId",
")",
"{",
"return",
"new",
"DefaultGetOperation",
"<",
"NotificationEndPointInfo",
">",
"(",
"ENTITY_SET",
",",
"notificationEndPointId",
",",
... | Create an operation that will retrieve the given notification end point
@param notificationEndPointId
id of notification end point to retrieve
@return the operation | [
"Create",
"an",
"operation",
"that",
"will",
"retrieve",
"the",
"given",
"notification",
"end",
"point"
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/models/NotificationEndPoint.java#L89-L93 |
47,582 | Azure/azure-sdk-for-java | mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/models/NotificationEndPoint.java | NotificationEndPoint.get | public static EntityGetOperation<NotificationEndPointInfo> get(
LinkInfo<NotificationEndPointInfo> link) {
return new DefaultGetOperation<NotificationEndPointInfo>(
link.getHref(), NotificationEndPointInfo.class);
} | java | public static EntityGetOperation<NotificationEndPointInfo> get(
LinkInfo<NotificationEndPointInfo> link) {
return new DefaultGetOperation<NotificationEndPointInfo>(
link.getHref(), NotificationEndPointInfo.class);
} | [
"public",
"static",
"EntityGetOperation",
"<",
"NotificationEndPointInfo",
">",
"get",
"(",
"LinkInfo",
"<",
"NotificationEndPointInfo",
">",
"link",
")",
"{",
"return",
"new",
"DefaultGetOperation",
"<",
"NotificationEndPointInfo",
">",
"(",
"link",
".",
"getHref",
... | Create an operation that will retrieve the notification end point at the
given link
@param link
the link
@return the operation | [
"Create",
"an",
"operation",
"that",
"will",
"retrieve",
"the",
"notification",
"end",
"point",
"at",
"the",
"given",
"link"
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/models/NotificationEndPoint.java#L103-L107 |
47,583 | Azure/azure-sdk-for-java | recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/implementation/ReplicationUsagesInner.java | ReplicationUsagesInner.listAsync | public Observable<List<ReplicationUsageInner>> listAsync(String resourceGroupName, String vaultName) {
return listWithServiceResponseAsync(resourceGroupName, vaultName).map(new Func1<ServiceResponse<List<ReplicationUsageInner>>, List<ReplicationUsageInner>>() {
@Override
public List<Repl... | java | public Observable<List<ReplicationUsageInner>> listAsync(String resourceGroupName, String vaultName) {
return listWithServiceResponseAsync(resourceGroupName, vaultName).map(new Func1<ServiceResponse<List<ReplicationUsageInner>>, List<ReplicationUsageInner>>() {
@Override
public List<Repl... | [
"public",
"Observable",
"<",
"List",
"<",
"ReplicationUsageInner",
">",
">",
"listAsync",
"(",
"String",
"resourceGroupName",
",",
"String",
"vaultName",
")",
"{",
"return",
"listWithServiceResponseAsync",
"(",
"resourceGroupName",
",",
"vaultName",
")",
".",
"map",... | Fetches the replication usages of the vault.
@param resourceGroupName The name of the resource group where the recovery services vault is present.
@param vaultName The name of the recovery services vault.
@throws IllegalArgumentException thrown if parameters fail the validation
@return the observable to the List<Re... | [
"Fetches",
"the",
"replication",
"usages",
"of",
"the",
"vault",
"."
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/recoveryservices/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/recoveryservices/v2016_06_01/implementation/ReplicationUsagesInner.java#L96-L103 |
47,584 | Azure/azure-sdk-for-java | labservices/resource-manager/v2018_10_15/src/main/java/com/microsoft/azure/management/labservices/v2018_10_15/implementation/LabAccountsInner.java | LabAccountsInner.delete | public void delete(String resourceGroupName, String labAccountName) {
deleteWithServiceResponseAsync(resourceGroupName, labAccountName).toBlocking().last().body();
} | java | public void delete(String resourceGroupName, String labAccountName) {
deleteWithServiceResponseAsync(resourceGroupName, labAccountName).toBlocking().last().body();
} | [
"public",
"void",
"delete",
"(",
"String",
"resourceGroupName",
",",
"String",
"labAccountName",
")",
"{",
"deleteWithServiceResponseAsync",
"(",
"resourceGroupName",
",",
"labAccountName",
")",
".",
"toBlocking",
"(",
")",
".",
"last",
"(",
")",
".",
"body",
"(... | Delete lab account. This operation can take a while to complete.
@param resourceGroupName The name of the resource group.
@param labAccountName The name of the lab Account.
@throws IllegalArgumentException thrown if parameters fail the validation
@throws CloudException thrown if the request is rejected by server
@thro... | [
"Delete",
"lab",
"account",
".",
"This",
"operation",
"can",
"take",
"a",
"while",
"to",
"complete",
"."
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/labservices/resource-manager/v2018_10_15/src/main/java/com/microsoft/azure/management/labservices/v2018_10_15/implementation/LabAccountsInner.java#L869-L871 |
47,585 | Azure/azure-sdk-for-java | mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/implementation/content/JobType.java | JobType.addJobNotificationSubscriptionType | public JobType addJobNotificationSubscriptionType(
JobNotificationSubscriptionType jobNotificationSubscription) {
if (this.jobNotificationSubscriptionTypes == null) {
this.jobNotificationSubscriptionTypes = new ArrayList<JobNotificationSubscriptionType>();
}
this.jobNotif... | java | public JobType addJobNotificationSubscriptionType(
JobNotificationSubscriptionType jobNotificationSubscription) {
if (this.jobNotificationSubscriptionTypes == null) {
this.jobNotificationSubscriptionTypes = new ArrayList<JobNotificationSubscriptionType>();
}
this.jobNotif... | [
"public",
"JobType",
"addJobNotificationSubscriptionType",
"(",
"JobNotificationSubscriptionType",
"jobNotificationSubscription",
")",
"{",
"if",
"(",
"this",
".",
"jobNotificationSubscriptionTypes",
"==",
"null",
")",
"{",
"this",
".",
"jobNotificationSubscriptionTypes",
"="... | Adds the job notification subscription type.
@param jobNotificationSubscription
the job notification subscription
@return the job type | [
"Adds",
"the",
"job",
"notification",
"subscription",
"type",
"."
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/implementation/content/JobType.java#L306-L313 |
47,586 | Azure/azure-sdk-for-java | servicebus/data-plane/azure-servicebus/src/main/java/com/microsoft/azure/servicebus/management/EntityNameHelper.java | EntityNameHelper.formatSubscriptionPath | public static String formatSubscriptionPath(String topicPath, String subscriptionName) {
return String.join(pathDelimiter, topicPath, subscriptionsSubPath, subscriptionName);
} | java | public static String formatSubscriptionPath(String topicPath, String subscriptionName) {
return String.join(pathDelimiter, topicPath, subscriptionsSubPath, subscriptionName);
} | [
"public",
"static",
"String",
"formatSubscriptionPath",
"(",
"String",
"topicPath",
",",
"String",
"subscriptionName",
")",
"{",
"return",
"String",
".",
"join",
"(",
"pathDelimiter",
",",
"topicPath",
",",
"subscriptionsSubPath",
",",
"subscriptionName",
")",
";",
... | Formats the subscription path, based on the topic path and subscription name.
@param topicPath - The name of the topic, including slashes.
@param subscriptionName - The name of the subscription.
@return The path of the subscription. | [
"Formats",
"the",
"subscription",
"path",
"based",
"on",
"the",
"topic",
"path",
"and",
"subscription",
"name",
"."
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/servicebus/data-plane/azure-servicebus/src/main/java/com/microsoft/azure/servicebus/management/EntityNameHelper.java#L31-L33 |
47,587 | Azure/azure-sdk-for-java | servicebus/data-plane/azure-servicebus/src/main/java/com/microsoft/azure/servicebus/management/EntityNameHelper.java | EntityNameHelper.formatRulePath | public static String formatRulePath(String topicPath, String subscriptionName, String ruleName) {
return String.join(pathDelimiter,
topicPath,
subscriptionsSubPath,
subscriptionName,
rulesSubPath,
ruleName);
} | java | public static String formatRulePath(String topicPath, String subscriptionName, String ruleName) {
return String.join(pathDelimiter,
topicPath,
subscriptionsSubPath,
subscriptionName,
rulesSubPath,
ruleName);
} | [
"public",
"static",
"String",
"formatRulePath",
"(",
"String",
"topicPath",
",",
"String",
"subscriptionName",
",",
"String",
"ruleName",
")",
"{",
"return",
"String",
".",
"join",
"(",
"pathDelimiter",
",",
"topicPath",
",",
"subscriptionsSubPath",
",",
"subscrip... | Formats the rule path, based on the topic path, subscription name and the rule name.
@param topicPath - The name of the topic, including slashes.
@param subscriptionName - The name of the subscription.
@param ruleName - The name of the rule.
@return The path of the rule | [
"Formats",
"the",
"rule",
"path",
"based",
"on",
"the",
"topic",
"path",
"subscription",
"name",
"and",
"the",
"rule",
"name",
"."
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/servicebus/data-plane/azure-servicebus/src/main/java/com/microsoft/azure/servicebus/management/EntityNameHelper.java#L42-L49 |
47,588 | Azure/azure-sdk-for-java | applicationconfig/client/src/main/java/com/azure/applicationconfig/ConfigurationClient.java | ConfigurationClient.addSetting | public Response<ConfigurationSetting> addSetting(String key, String value) {
return addSetting(new ConfigurationSetting().key(key).value(value));
} | java | public Response<ConfigurationSetting> addSetting(String key, String value) {
return addSetting(new ConfigurationSetting().key(key).value(value));
} | [
"public",
"Response",
"<",
"ConfigurationSetting",
">",
"addSetting",
"(",
"String",
"key",
",",
"String",
"value",
")",
"{",
"return",
"addSetting",
"(",
"new",
"ConfigurationSetting",
"(",
")",
".",
"key",
"(",
"key",
")",
".",
"value",
"(",
"value",
")"... | Adds a configuration value in the service if that key does not exist.
<p><strong>Code Samples</strong></p>
<pre>
ConfigurationSetting result = client.addSetting("prodDBConnection", "db_connection");
System.out.printf("Key: %s, Value: %s", result.key(), result.value());</pre>
@param key The key of the configuration s... | [
"Adds",
"a",
"configuration",
"value",
"in",
"the",
"service",
"if",
"that",
"key",
"does",
"not",
"exist",
"."
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/applicationconfig/client/src/main/java/com/azure/applicationconfig/ConfigurationClient.java#L70-L72 |
47,589 | Azure/azure-sdk-for-java | applicationconfig/client/src/main/java/com/azure/applicationconfig/ConfigurationClient.java | ConfigurationClient.setSetting | public Response<ConfigurationSetting> setSetting(String key, String value) {
return setSetting(new ConfigurationSetting().key(key).value(value));
} | java | public Response<ConfigurationSetting> setSetting(String key, String value) {
return setSetting(new ConfigurationSetting().key(key).value(value));
} | [
"public",
"Response",
"<",
"ConfigurationSetting",
">",
"setSetting",
"(",
"String",
"key",
",",
"String",
"value",
")",
"{",
"return",
"setSetting",
"(",
"new",
"ConfigurationSetting",
"(",
")",
".",
"key",
"(",
"key",
")",
".",
"value",
"(",
"value",
")"... | Creates or updates a configuration value in the service with the given key.
<p><strong>Code Samples</strong></p>
<pre>
ConfigurationSetting result = client.setSetting('prodDBConnection", "db_connection");
System.out.printf("Key: %s, Value: %s", result.key(), result.value());
result = client.setSetting("prodDBConnect... | [
"Creates",
"or",
"updates",
"a",
"configuration",
"value",
"in",
"the",
"service",
"with",
"the",
"given",
"key",
"."
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/applicationconfig/client/src/main/java/com/azure/applicationconfig/ConfigurationClient.java#L119-L121 |
47,590 | Azure/azure-sdk-for-java | applicationconfig/client/src/main/java/com/azure/applicationconfig/ConfigurationClient.java | ConfigurationClient.updateSetting | public Response<ConfigurationSetting> updateSetting(String key, String value) {
return updateSetting(new ConfigurationSetting().key(key).value(value));
} | java | public Response<ConfigurationSetting> updateSetting(String key, String value) {
return updateSetting(new ConfigurationSetting().key(key).value(value));
} | [
"public",
"Response",
"<",
"ConfigurationSetting",
">",
"updateSetting",
"(",
"String",
"key",
",",
"String",
"value",
")",
"{",
"return",
"updateSetting",
"(",
"new",
"ConfigurationSetting",
"(",
")",
".",
"key",
"(",
"key",
")",
".",
"value",
"(",
"value",... | Updates an existing configuration value in the service with the given key. The setting must already exist.
<p><strong>Code Samples</strong></p>
<pre>
ConfigurationSetting result = client.updateSetting("prodDCConnection", "db_connection");
System.out.printf("Key: %s, Value: %s", result.key(), result.value());</pre>
@... | [
"Updates",
"an",
"existing",
"configuration",
"value",
"in",
"the",
"service",
"with",
"the",
"given",
"key",
".",
"The",
"setting",
"must",
"already",
"exist",
"."
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/applicationconfig/client/src/main/java/com/azure/applicationconfig/ConfigurationClient.java#L176-L178 |
47,591 | Azure/azure-sdk-for-java | sql/resource-manager/v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/JobCredentialsInner.java | JobCredentialsInner.delete | public void delete(String resourceGroupName, String serverName, String jobAgentName, String credentialName) {
deleteWithServiceResponseAsync(resourceGroupName, serverName, jobAgentName, credentialName).toBlocking().single().body();
} | java | public void delete(String resourceGroupName, String serverName, String jobAgentName, String credentialName) {
deleteWithServiceResponseAsync(resourceGroupName, serverName, jobAgentName, credentialName).toBlocking().single().body();
} | [
"public",
"void",
"delete",
"(",
"String",
"resourceGroupName",
",",
"String",
"serverName",
",",
"String",
"jobAgentName",
",",
"String",
"credentialName",
")",
"{",
"deleteWithServiceResponseAsync",
"(",
"resourceGroupName",
",",
"serverName",
",",
"jobAgentName",
"... | Deletes a job credential.
@param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
@param serverName The name of the server.
@param jobAgentName The name of the job agent.
@param credentialName The name of the crede... | [
"Deletes",
"a",
"job",
"credential",
"."
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/sql/resource-manager/v2017_03_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_03_01_preview/implementation/JobCredentialsInner.java#L437-L439 |
47,592 | Azure/azure-sdk-for-java | keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/models/StorageRestoreParameters.java | StorageRestoreParameters.withStorageBundleBackup | public StorageRestoreParameters withStorageBundleBackup(byte[] storageBundleBackup) {
if (storageBundleBackup == null) {
this.storageBundleBackup = null;
} else {
this.storageBundleBackup = Base64Url.encode(storageBundleBackup);
}
return this;
} | java | public StorageRestoreParameters withStorageBundleBackup(byte[] storageBundleBackup) {
if (storageBundleBackup == null) {
this.storageBundleBackup = null;
} else {
this.storageBundleBackup = Base64Url.encode(storageBundleBackup);
}
return this;
} | [
"public",
"StorageRestoreParameters",
"withStorageBundleBackup",
"(",
"byte",
"[",
"]",
"storageBundleBackup",
")",
"{",
"if",
"(",
"storageBundleBackup",
"==",
"null",
")",
"{",
"this",
".",
"storageBundleBackup",
"=",
"null",
";",
"}",
"else",
"{",
"this",
"."... | Set the storageBundleBackup value.
@param storageBundleBackup the storageBundleBackup value to set
@return the StorageRestoreParameters object itself. | [
"Set",
"the",
"storageBundleBackup",
"value",
"."
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/models/StorageRestoreParameters.java#L38-L45 |
47,593 | Azure/azure-sdk-for-java | mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/implementation/ODataEntity.java | ODataEntity.getLink | public <U extends ODataEntity<?>> LinkInfo<U> getLink(String rel) {
for (Object child : entry.getEntryChildren()) {
LinkType link = linkFromChild(child);
if (link != null && link.getRel().equals(rel)) {
return new LinkInfo<U>(link);
}
}
return... | java | public <U extends ODataEntity<?>> LinkInfo<U> getLink(String rel) {
for (Object child : entry.getEntryChildren()) {
LinkType link = linkFromChild(child);
if (link != null && link.getRel().equals(rel)) {
return new LinkInfo<U>(link);
}
}
return... | [
"public",
"<",
"U",
"extends",
"ODataEntity",
"<",
"?",
">",
">",
"LinkInfo",
"<",
"U",
">",
"getLink",
"(",
"String",
"rel",
")",
"{",
"for",
"(",
"Object",
"child",
":",
"entry",
".",
"getEntryChildren",
"(",
")",
")",
"{",
"LinkType",
"link",
"=",... | Get the link with the given rel attribute
@param rel
rel of link to retrieve
@return The link if found, null if not. | [
"Get",
"the",
"link",
"with",
"the",
"given",
"rel",
"attribute"
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/implementation/ODataEntity.java#L91-L100 |
47,594 | Azure/azure-sdk-for-java | mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/implementation/ODataEntity.java | ODataEntity.getRelationLink | public <U extends ODataEntity<?>> LinkInfo<U> getRelationLink(
String relationName) {
return this.<U> getLink(Constants.ODATA_DATA_NS + "/related/"
+ relationName);
} | java | public <U extends ODataEntity<?>> LinkInfo<U> getRelationLink(
String relationName) {
return this.<U> getLink(Constants.ODATA_DATA_NS + "/related/"
+ relationName);
} | [
"public",
"<",
"U",
"extends",
"ODataEntity",
"<",
"?",
">",
">",
"LinkInfo",
"<",
"U",
">",
"getRelationLink",
"(",
"String",
"relationName",
")",
"{",
"return",
"this",
".",
"<",
"U",
">",
"getLink",
"(",
"Constants",
".",
"ODATA_DATA_NS",
"+",
"\"/rel... | Get the link to navigate an OData relationship
@param relationName
name of the OData relationship
@return the link if found, null if not. | [
"Get",
"the",
"link",
"to",
"navigate",
"an",
"OData",
"relationship"
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/implementation/ODataEntity.java#L109-L113 |
47,595 | Azure/azure-sdk-for-java | mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/implementation/ODataEntity.java | ODataEntity.isODataEntityCollectionType | public static boolean isODataEntityCollectionType(Class<?> type,
Type genericType) {
if (ListResult.class != type) {
return false;
}
ParameterizedType pt = (ParameterizedType) genericType;
if (pt.getActualTypeArguments().length != 1) {
return false;
... | java | public static boolean isODataEntityCollectionType(Class<?> type,
Type genericType) {
if (ListResult.class != type) {
return false;
}
ParameterizedType pt = (ParameterizedType) genericType;
if (pt.getActualTypeArguments().length != 1) {
return false;
... | [
"public",
"static",
"boolean",
"isODataEntityCollectionType",
"(",
"Class",
"<",
"?",
">",
"type",
",",
"Type",
"genericType",
")",
"{",
"if",
"(",
"ListResult",
".",
"class",
"!=",
"type",
")",
"{",
"return",
"false",
";",
"}",
"ParameterizedType",
"pt",
... | Is the given type a collection of ODataEntity
@param type
Base type
@param genericType
Generic type
@return true if it's List<OEntity> or derive from. | [
"Is",
"the",
"given",
"type",
"a",
"collection",
"of",
"ODataEntity"
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/mediaservices/data-plane/src/main/java/com/microsoft/windowsazure/services/media/implementation/ODataEntity.java#L151-L166 |
47,596 | Azure/azure-sdk-for-java | network/resource-manager/v2018_08_01/src/main/java/com/microsoft/azure/management/network/v2018_08_01/implementation/ExpressRouteConnectionsInner.java | ExpressRouteConnectionsInner.beginDelete | public void beginDelete(String resourceGroupName, String expressRouteGatewayName, String connectionName) {
beginDeleteWithServiceResponseAsync(resourceGroupName, expressRouteGatewayName, connectionName).toBlocking().single().body();
} | java | public void beginDelete(String resourceGroupName, String expressRouteGatewayName, String connectionName) {
beginDeleteWithServiceResponseAsync(resourceGroupName, expressRouteGatewayName, connectionName).toBlocking().single().body();
} | [
"public",
"void",
"beginDelete",
"(",
"String",
"resourceGroupName",
",",
"String",
"expressRouteGatewayName",
",",
"String",
"connectionName",
")",
"{",
"beginDeleteWithServiceResponseAsync",
"(",
"resourceGroupName",
",",
"expressRouteGatewayName",
",",
"connectionName",
... | Deletes a connection to a ExpressRoute circuit.
@param resourceGroupName The name of the resource group.
@param expressRouteGatewayName The name of the ExpressRoute gateway.
@param connectionName The name of the connection subresource.
@throws IllegalArgumentException thrown if parameters fail the validation
@throws C... | [
"Deletes",
"a",
"connection",
"to",
"a",
"ExpressRoute",
"circuit",
"."
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/network/resource-manager/v2018_08_01/src/main/java/com/microsoft/azure/management/network/v2018_08_01/implementation/ExpressRouteConnectionsInner.java#L440-L442 |
47,597 | Azure/azure-sdk-for-java | keyvault/data-plane/azure-keyvault-cryptography/src/main/java/com/microsoft/azure/keyvault/cryptography/Strings.java | Strings.isNullOrWhiteSpace | public static boolean isNullOrWhiteSpace(String arg) {
if (Strings.isNullOrEmpty(arg) || arg.trim().isEmpty()) {
return true;
}
return false;
} | java | public static boolean isNullOrWhiteSpace(String arg) {
if (Strings.isNullOrEmpty(arg) || arg.trim().isEmpty()) {
return true;
}
return false;
} | [
"public",
"static",
"boolean",
"isNullOrWhiteSpace",
"(",
"String",
"arg",
")",
"{",
"if",
"(",
"Strings",
".",
"isNullOrEmpty",
"(",
"arg",
")",
"||",
"arg",
".",
"trim",
"(",
")",
".",
"isEmpty",
"(",
")",
")",
"{",
"return",
"true",
";",
"}",
"ret... | Determines whether the parameter string is null, empty or whitespace.
@param arg The string to be checked.
@return true if the string is null, empty or whitespace. | [
"Determines",
"whether",
"the",
"parameter",
"string",
"is",
"null",
"empty",
"or",
"whitespace",
"."
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/keyvault/data-plane/azure-keyvault-cryptography/src/main/java/com/microsoft/azure/keyvault/cryptography/Strings.java#L29-L36 |
47,598 | Azure/azure-sdk-for-java | keyvault/data-plane/azure-keyvault-cryptography/src/main/java/com/microsoft/azure/keyvault/cryptography/ByteExtensions.java | ByteExtensions.sequenceEqualConstantTime | public static boolean sequenceEqualConstantTime(byte[] self, byte[] other) {
if (self == null) {
throw new IllegalArgumentException("self");
}
if (other == null) {
throw new IllegalArgumentException("other");
}
// Constant time comparison of two byte arr... | java | public static boolean sequenceEqualConstantTime(byte[] self, byte[] other) {
if (self == null) {
throw new IllegalArgumentException("self");
}
if (other == null) {
throw new IllegalArgumentException("other");
}
// Constant time comparison of two byte arr... | [
"public",
"static",
"boolean",
"sequenceEqualConstantTime",
"(",
"byte",
"[",
"]",
"self",
",",
"byte",
"[",
"]",
"other",
")",
"{",
"if",
"(",
"self",
"==",
"null",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"self\"",
")",
";",
"}",
"i... | Compares two byte arrays in constant time.
@param self
The first byte array to compare
@param other
The second byte array to compare
@return
True if the two byte arrays are equal. | [
"Compares",
"two",
"byte",
"arrays",
"in",
"constant",
"time",
"."
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/keyvault/data-plane/azure-keyvault-cryptography/src/main/java/com/microsoft/azure/keyvault/cryptography/ByteExtensions.java#L78-L95 |
47,599 | Azure/azure-sdk-for-java | keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/models/KeyVerifyParameters.java | KeyVerifyParameters.withDigest | public KeyVerifyParameters withDigest(byte[] digest) {
if (digest == null) {
this.digest = null;
} else {
this.digest = Base64Url.encode(digest);
}
return this;
} | java | public KeyVerifyParameters withDigest(byte[] digest) {
if (digest == null) {
this.digest = null;
} else {
this.digest = Base64Url.encode(digest);
}
return this;
} | [
"public",
"KeyVerifyParameters",
"withDigest",
"(",
"byte",
"[",
"]",
"digest",
")",
"{",
"if",
"(",
"digest",
"==",
"null",
")",
"{",
"this",
".",
"digest",
"=",
"null",
";",
"}",
"else",
"{",
"this",
".",
"digest",
"=",
"Base64Url",
".",
"encode",
... | Set the digest value.
@param digest the digest value to set
@return the KeyVerifyParameters object itself. | [
"Set",
"the",
"digest",
"value",
"."
] | aab183ddc6686c82ec10386d5a683d2691039626 | https://github.com/Azure/azure-sdk-for-java/blob/aab183ddc6686c82ec10386d5a683d2691039626/keyvault/data-plane/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/models/KeyVerifyParameters.java#L74-L81 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.