@@ -630,10 +630,14 @@ public GetCmekConfig set(String parameterName, Object value) {
630630 }
631631 }
632632 /**
633- * Lists information about the supported locations for this service. This method can be called in
634- * two ways: * **List all public locations:** Use the path `GET /v1/locations`. * **List project-
635- * visible locations:** Use the path `GET /v1/projects/{project_id}/locations`. This may include
636- * public locations as well as private or other locations specifically visible to the project.
633+ * Lists information about the supported locations for this service. This method lists locations
634+ * based on the resource scope provided in the [ListLocationsRequest.name] field: * **Global
635+ * locations**: If `name` is empty, the method lists the public locations available to all projects.
636+ * * **Project-specific locations**: If `name` follows the format `projects/{project}`, the method
637+ * lists locations visible to that specific project. This includes public, private, or other
638+ * project-specific locations enabled for the project. For gRPC and client library implementations,
639+ * the resource name is passed as the `name` field. For direct service calls, the resource name is
640+ * incorporated into the request path based on the specific service implementation and version.
637641 *
638642 * Create a request for the method "locations.list".
639643 *
@@ -657,10 +661,15 @@ public class List extends CloudTasksRequest<com.google.api.services.cloudtasks.v
657661 java .util .regex .Pattern .compile ("^projects/[^/]+$" );
658662
659663 /**
660- * Lists information about the supported locations for this service. This method can be called in
661- * two ways: * **List all public locations:** Use the path `GET /v1/locations`. * **List project-
662- * visible locations:** Use the path `GET /v1/projects/{project_id}/locations`. This may include
663- * public locations as well as private or other locations specifically visible to the project.
664+ * Lists information about the supported locations for this service. This method lists locations
665+ * based on the resource scope provided in the [ListLocationsRequest.name] field: * **Global
666+ * locations**: If `name` is empty, the method lists the public locations available to all
667+ * projects. * **Project-specific locations**: If `name` follows the format `projects/{project}`,
668+ * the method lists locations visible to that specific project. This includes public, private, or
669+ * other project-specific locations enabled for the project. For gRPC and client library
670+ * implementations, the resource name is passed as the `name` field. For direct service calls, the
671+ * resource name is incorporated into the request path based on the specific service
672+ * implementation and version.
664673 *
665674 * Create a request for the method "locations.list".
666675 *
@@ -1021,6 +1030,168 @@ public UpdateCmekConfig set(String parameterName, Object value) {
10211030 }
10221031 }
10231032
1033+ /**
1034+ * An accessor for creating requests from the Operations collection.
1035+ *
1036+ * <p>The typical use is:</p>
1037+ * <pre>
1038+ * {@code CloudTasks cloudtasks = new CloudTasks(...);}
1039+ * {@code CloudTasks.Operations.List request = cloudtasks.operations().list(parameters ...)}
1040+ * </pre>
1041+ *
1042+ * @return the resource collection
1043+ */
1044+ public Operations operations () {
1045+ return new Operations ();
1046+ }
1047+
1048+ /**
1049+ * The "operations" collection of methods.
1050+ */
1051+ public class Operations {
1052+
1053+ /**
1054+ * Gets the latest state of a long-running operation. Clients can use this method to poll the
1055+ * operation result at intervals as recommended by the API service.
1056+ *
1057+ * Create a request for the method "operations.get".
1058+ *
1059+ * This request holds the parameters needed by the cloudtasks server. After setting any optional
1060+ * parameters, call the {@link Get#execute()} method to invoke the remote operation.
1061+ *
1062+ * @param name The name of the operation resource.
1063+ * @return the request
1064+ */
1065+ public Get get (java .lang .String name ) throws java .io .IOException {
1066+ Get result = new Get (name );
1067+ initialize (result );
1068+ return result ;
1069+ }
1070+
1071+ public class Get extends CloudTasksRequest <com .google .api .services .cloudtasks .v2beta2 .model .Operation > {
1072+
1073+ private static final String REST_PATH = "v2beta2/{+name}" ;
1074+
1075+ private final java .util .regex .Pattern NAME_PATTERN =
1076+ java .util .regex .Pattern .compile ("^projects/[^/]+/locations/[^/]+/operations/[^/]+$" );
1077+
1078+ /**
1079+ * Gets the latest state of a long-running operation. Clients can use this method to poll the
1080+ * operation result at intervals as recommended by the API service.
1081+ *
1082+ * Create a request for the method "operations.get".
1083+ *
1084+ * This request holds the parameters needed by the the cloudtasks server. After setting any
1085+ * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. <p>
1086+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
1087+ * must be called to initialize this instance immediately after invoking the constructor. </p>
1088+ *
1089+ * @param name The name of the operation resource.
1090+ * @since 1.13
1091+ */
1092+ protected Get (java .lang .String name ) {
1093+ super (CloudTasks .this , "GET" , REST_PATH , null , com .google .api .services .cloudtasks .v2beta2 .model .Operation .class );
1094+ this .name = com .google .api .client .util .Preconditions .checkNotNull (name , "Required parameter name must be specified." );
1095+ if (!getSuppressPatternChecks ()) {
1096+ com .google .api .client .util .Preconditions .checkArgument (NAME_PATTERN .matcher (name ).matches (),
1097+ "Parameter name must conform to the pattern " +
1098+ "^projects/[^/]+/locations/[^/]+/operations/[^/]+$" );
1099+ }
1100+ }
1101+
1102+ @ Override
1103+ public com .google .api .client .http .HttpResponse executeUsingHead () throws java .io .IOException {
1104+ return super .executeUsingHead ();
1105+ }
1106+
1107+ @ Override
1108+ public com .google .api .client .http .HttpRequest buildHttpRequestUsingHead () throws java .io .IOException {
1109+ return super .buildHttpRequestUsingHead ();
1110+ }
1111+
1112+ @ Override
1113+ public Get set$Xgafv (java .lang .String $Xgafv ) {
1114+ return (Get ) super .set$Xgafv ($Xgafv );
1115+ }
1116+
1117+ @ Override
1118+ public Get setAccessToken (java .lang .String accessToken ) {
1119+ return (Get ) super .setAccessToken (accessToken );
1120+ }
1121+
1122+ @ Override
1123+ public Get setAlt (java .lang .String alt ) {
1124+ return (Get ) super .setAlt (alt );
1125+ }
1126+
1127+ @ Override
1128+ public Get setCallback (java .lang .String callback ) {
1129+ return (Get ) super .setCallback (callback );
1130+ }
1131+
1132+ @ Override
1133+ public Get setFields (java .lang .String fields ) {
1134+ return (Get ) super .setFields (fields );
1135+ }
1136+
1137+ @ Override
1138+ public Get setKey (java .lang .String key ) {
1139+ return (Get ) super .setKey (key );
1140+ }
1141+
1142+ @ Override
1143+ public Get setOauthToken (java .lang .String oauthToken ) {
1144+ return (Get ) super .setOauthToken (oauthToken );
1145+ }
1146+
1147+ @ Override
1148+ public Get setPrettyPrint (java .lang .Boolean prettyPrint ) {
1149+ return (Get ) super .setPrettyPrint (prettyPrint );
1150+ }
1151+
1152+ @ Override
1153+ public Get setQuotaUser (java .lang .String quotaUser ) {
1154+ return (Get ) super .setQuotaUser (quotaUser );
1155+ }
1156+
1157+ @ Override
1158+ public Get setUploadType (java .lang .String uploadType ) {
1159+ return (Get ) super .setUploadType (uploadType );
1160+ }
1161+
1162+ @ Override
1163+ public Get setUploadProtocol (java .lang .String uploadProtocol ) {
1164+ return (Get ) super .setUploadProtocol (uploadProtocol );
1165+ }
1166+
1167+ /** The name of the operation resource. */
1168+ @ com .google .api .client .util .Key
1169+ private java .lang .String name ;
1170+
1171+ /** The name of the operation resource.
1172+ */
1173+ public java .lang .String getName () {
1174+ return name ;
1175+ }
1176+
1177+ /** The name of the operation resource. */
1178+ public Get setName (java .lang .String name ) {
1179+ if (!getSuppressPatternChecks ()) {
1180+ com .google .api .client .util .Preconditions .checkArgument (NAME_PATTERN .matcher (name ).matches (),
1181+ "Parameter name must conform to the pattern " +
1182+ "^projects/[^/]+/locations/[^/]+/operations/[^/]+$" );
1183+ }
1184+ this .name = name ;
1185+ return this ;
1186+ }
1187+
1188+ @ Override
1189+ public Get set (String parameterName , Object value ) {
1190+ return (Get ) super .set (parameterName , value );
1191+ }
1192+ }
1193+
1194+ }
10241195 /**
10251196 * An accessor for creating requests from the Queues collection.
10261197 *
0 commit comments