Skip to content

Commit

Permalink
chore: regenerate youtube client (#25014)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-code-bot authored Jan 24, 2025
1 parent a98df69 commit 340d03c
Show file tree
Hide file tree
Showing 5 changed files with 292 additions and 6 deletions.
4 changes: 2 additions & 2 deletions clients/google-api-services-youtube/v3/2.0.0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-youtube</artifactId>
<version>v3-rev20250101-2.0.0</version>
<version>v3-rev20250122-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-youtube:v3-rev20250101-2.0.0'
implementation 'com.google.apis:google-api-services-youtube:v3-rev20250122-2.0.0'
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15776,6 +15776,151 @@ public List set(String parameterName, Object value) {

}

/**
* An accessor for creating requests from the VideoTrainability collection.
*
* <p>The typical use is:</p>
* <pre>
* {@code YouTube youtube = new YouTube(...);}
* {@code YouTube.VideoTrainability.List request = youtube.videoTrainability().list(parameters ...)}
* </pre>
*
* @return the resource collection
*/
public VideoTrainability videoTrainability() {
return new VideoTrainability();
}

/**
* The "videoTrainability" collection of methods.
*/
public class VideoTrainability {

/**
* Returns the trainability status of a video.
*
* Create a request for the method "videoTrainability.get".
*
* This request holds the parameters needed by the youtube server. After setting any optional
* parameters, call the {@link Get#execute()} method to invoke the remote operation.
*
* @return the request
*/
public Get get() throws java.io.IOException {
Get result = new Get();
initialize(result);
return result;
}

public class Get extends YouTubeRequest<com.google.api.services.youtube.model.VideoTrainability> {

private static final String REST_PATH = "youtube/v3/videoTrainability";

/**
* Returns the trainability status of a video.
*
* Create a request for the method "videoTrainability.get".
*
* This request holds the parameters needed by the the youtube server. After setting any optional
* parameters, call the {@link Get#execute()} method to invoke the remote operation. <p> {@link
* Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
* called to initialize this instance immediately after invoking the constructor. </p>
*
* @since 1.13
*/
protected Get() {
super(YouTube.this, "GET", REST_PATH, null, com.google.api.services.youtube.model.VideoTrainability.class);
}

@Override
public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
return super.executeUsingHead();
}

@Override
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
return super.buildHttpRequestUsingHead();
}

@Override
public Get set$Xgafv(java.lang.String $Xgafv) {
return (Get) super.set$Xgafv($Xgafv);
}

@Override
public Get setAccessToken(java.lang.String accessToken) {
return (Get) super.setAccessToken(accessToken);
}

@Override
public Get setAlt(java.lang.String alt) {
return (Get) super.setAlt(alt);
}

@Override
public Get setCallback(java.lang.String callback) {
return (Get) super.setCallback(callback);
}

@Override
public Get setFields(java.lang.String fields) {
return (Get) super.setFields(fields);
}

@Override
public Get setKey(java.lang.String key) {
return (Get) super.setKey(key);
}

@Override
public Get setOauthToken(java.lang.String oauthToken) {
return (Get) super.setOauthToken(oauthToken);
}

@Override
public Get setPrettyPrint(java.lang.Boolean prettyPrint) {
return (Get) super.setPrettyPrint(prettyPrint);
}

@Override
public Get setQuotaUser(java.lang.String quotaUser) {
return (Get) super.setQuotaUser(quotaUser);
}

@Override
public Get setUploadType(java.lang.String uploadType) {
return (Get) super.setUploadType(uploadType);
}

@Override
public Get setUploadProtocol(java.lang.String uploadProtocol) {
return (Get) super.setUploadProtocol(uploadProtocol);
}

/** The ID of the video to retrieve. */
@com.google.api.client.util.Key
private java.lang.String id;

/** The ID of the video to retrieve.
*/
public java.lang.String getId() {
return id;
}

/** The ID of the video to retrieve. */
public Get setId(java.lang.String id) {
this.id = id;
return this;
}

@Override
public Get set(String parameterName, Object value) {
return (Get) super.set(parameterName, value);
}
}

}

/**
* An accessor for creating requests from the Videos collection.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/

package com.google.api.services.youtube.model;

/**
* Specifies who is allowed to train on the video.
*
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the YouTube Data API v3. For a detailed explanation see:
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
* </p>
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class VideoTrainability extends com.google.api.client.json.GenericJson {

/**
* Etag of this resource.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String etag;

/**
* Identifies what kind of resource this is. Value: the fixed string "youtube#videoTrainability".
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String kind;

/**
* Specifies who is allowed to train on the video. Valid values are: - a single string "all" - a
* single string "none" - a list of allowed parties
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List<java.lang.String> permitted;

/**
* The ID of the video.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String videoId;

/**
* Etag of this resource.
* @return value or {@code null} for none
*/
public java.lang.String getEtag() {
return etag;
}

/**
* Etag of this resource.
* @param etag etag or {@code null} for none
*/
public VideoTrainability setEtag(java.lang.String etag) {
this.etag = etag;
return this;
}

/**
* Identifies what kind of resource this is. Value: the fixed string "youtube#videoTrainability".
* @return value or {@code null} for none
*/
public java.lang.String getKind() {
return kind;
}

/**
* Identifies what kind of resource this is. Value: the fixed string "youtube#videoTrainability".
* @param kind kind or {@code null} for none
*/
public VideoTrainability setKind(java.lang.String kind) {
this.kind = kind;
return this;
}

/**
* Specifies who is allowed to train on the video. Valid values are: - a single string "all" - a
* single string "none" - a list of allowed parties
* @return value or {@code null} for none
*/
public java.util.List<java.lang.String> getPermitted() {
return permitted;
}

/**
* Specifies who is allowed to train on the video. Valid values are: - a single string "all" - a
* single string "none" - a list of allowed parties
* @param permitted permitted or {@code null} for none
*/
public VideoTrainability setPermitted(java.util.List<java.lang.String> permitted) {
this.permitted = permitted;
return this;
}

/**
* The ID of the video.
* @return value or {@code null} for none
*/
public java.lang.String getVideoId() {
return videoId;
}

/**
* The ID of the video.
* @param videoId videoId or {@code null} for none
*/
public VideoTrainability setVideoId(java.lang.String videoId) {
this.videoId = videoId;
return this;
}

@Override
public VideoTrainability set(String fieldName, Object value) {
return (VideoTrainability) super.set(fieldName, value);
}

@Override
public VideoTrainability clone() {
return (VideoTrainability) super.clone();
}

}
4 changes: 2 additions & 2 deletions clients/google-api-services-youtube/v3/2.0.0/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

<groupId>com.google.apis</groupId>
<artifactId>google-api-services-youtube</artifactId>
<version>v3-rev20250101-2.0.0</version>
<name>YouTube Data API v3 v3-rev20250101-2.0.0</name>
<version>v3-rev20250122-2.0.0</version>
<name>YouTube Data API v3 v3-rev20250122-2.0.0</name>
<packaging>jar</packaging>

<inceptionYear>2011</inceptionYear>
Expand Down
4 changes: 2 additions & 2 deletions clients/google-api-services-youtube/v3/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-youtube</artifactId>
<version>v3-rev20250101-2.0.0</version>
<version>v3-rev20250122-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-youtube:v3-rev20250101-2.0.0'
implementation 'com.google.apis:google-api-services-youtube:v3-rev20250122-2.0.0'
}
```

Expand Down

0 comments on commit 340d03c

Please sign in to comment.