@@ -536,6 +536,160 @@ public Locations locations() {
536536 */
537537 public class Locations {
538538
539+ /**
540+ * Gets the AclConfig.
541+ *
542+ * Create a request for the method "locations.getAclConfig".
543+ *
544+ * This request holds the parameters needed by the discoveryengine server. After setting any
545+ * optional parameters, call the {@link GetAclConfig#execute()} method to invoke the remote
546+ * operation.
547+ *
548+ * @param name Required. Resource name of AclConfig, such as `projects/locations/aclConfig`. If the caller does not
549+ * have permission to access the AclConfig, regardless of whether or not it exists, a
550+ * PERMISSION_DENIED error is returned.
551+ * @return the request
552+ */
553+ public GetAclConfig getAclConfig(java.lang.String name) throws java.io.IOException {
554+ GetAclConfig result = new GetAclConfig(name);
555+ initialize(result);
556+ return result;
557+ }
558+
559+ public class GetAclConfig extends DiscoveryEngineRequest<com.google.api.services.discoveryengine.v1.model.GoogleCloudDiscoveryengineV1AclConfig> {
560+
561+ private static final String REST_PATH = "v1/{+name}";
562+
563+ private final java.util.regex.Pattern NAME_PATTERN =
564+ java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/aclConfig$");
565+
566+ /**
567+ * Gets the AclConfig.
568+ *
569+ * Create a request for the method "locations.getAclConfig".
570+ *
571+ * This request holds the parameters needed by the the discoveryengine server. After setting any
572+ * optional parameters, call the {@link GetAclConfig#execute()} method to invoke the remote
573+ * operation. <p> {@link
574+ * GetAclConfig#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
575+ * must be called to initialize this instance immediately after invoking the constructor. </p>
576+ *
577+ * @param name Required. Resource name of AclConfig, such as `projects/locations/aclConfig`. If the caller does not
578+ * have permission to access the AclConfig, regardless of whether or not it exists, a
579+ * PERMISSION_DENIED error is returned.
580+ * @since 1.13
581+ */
582+ protected GetAclConfig(java.lang.String name) {
583+ super(DiscoveryEngine.this, "GET", REST_PATH, null, com.google.api.services.discoveryengine.v1.model.GoogleCloudDiscoveryengineV1AclConfig.class);
584+ this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
585+ if (!getSuppressPatternChecks()) {
586+ com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
587+ "Parameter name must conform to the pattern " +
588+ "^projects/[^/]+/locations/[^/]+/aclConfig$");
589+ }
590+ }
591+
592+ @Override
593+ public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
594+ return super.executeUsingHead();
595+ }
596+
597+ @Override
598+ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
599+ return super.buildHttpRequestUsingHead();
600+ }
601+
602+ @Override
603+ public GetAclConfig set$Xgafv(java.lang.String $Xgafv) {
604+ return (GetAclConfig) super.set$Xgafv($Xgafv);
605+ }
606+
607+ @Override
608+ public GetAclConfig setAccessToken(java.lang.String accessToken) {
609+ return (GetAclConfig) super.setAccessToken(accessToken);
610+ }
611+
612+ @Override
613+ public GetAclConfig setAlt(java.lang.String alt) {
614+ return (GetAclConfig) super.setAlt(alt);
615+ }
616+
617+ @Override
618+ public GetAclConfig setCallback(java.lang.String callback) {
619+ return (GetAclConfig) super.setCallback(callback);
620+ }
621+
622+ @Override
623+ public GetAclConfig setFields(java.lang.String fields) {
624+ return (GetAclConfig) super.setFields(fields);
625+ }
626+
627+ @Override
628+ public GetAclConfig setKey(java.lang.String key) {
629+ return (GetAclConfig) super.setKey(key);
630+ }
631+
632+ @Override
633+ public GetAclConfig setOauthToken(java.lang.String oauthToken) {
634+ return (GetAclConfig) super.setOauthToken(oauthToken);
635+ }
636+
637+ @Override
638+ public GetAclConfig setPrettyPrint(java.lang.Boolean prettyPrint) {
639+ return (GetAclConfig) super.setPrettyPrint(prettyPrint);
640+ }
641+
642+ @Override
643+ public GetAclConfig setQuotaUser(java.lang.String quotaUser) {
644+ return (GetAclConfig) super.setQuotaUser(quotaUser);
645+ }
646+
647+ @Override
648+ public GetAclConfig setUploadType(java.lang.String uploadType) {
649+ return (GetAclConfig) super.setUploadType(uploadType);
650+ }
651+
652+ @Override
653+ public GetAclConfig setUploadProtocol(java.lang.String uploadProtocol) {
654+ return (GetAclConfig) super.setUploadProtocol(uploadProtocol);
655+ }
656+
657+ /**
658+ * Required. Resource name of AclConfig, such as `projects/locations/aclConfig`. If the
659+ * caller does not have permission to access the AclConfig, regardless of whether or not it
660+ * exists, a PERMISSION_DENIED error is returned.
661+ */
662+ @com.google.api.client.util.Key
663+ private java.lang.String name;
664+
665+ /** Required. Resource name of AclConfig, such as `projects/locations/aclConfig`. If the caller does
666+ not have permission to access the AclConfig, regardless of whether or not it exists, a
667+ PERMISSION_DENIED error is returned.
668+ */
669+ public java.lang.String getName() {
670+ return name;
671+ }
672+
673+ /**
674+ * Required. Resource name of AclConfig, such as `projects/locations/aclConfig`. If the
675+ * caller does not have permission to access the AclConfig, regardless of whether or not it
676+ * exists, a PERMISSION_DENIED error is returned.
677+ */
678+ public GetAclConfig setName(java.lang.String name) {
679+ if (!getSuppressPatternChecks()) {
680+ com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
681+ "Parameter name must conform to the pattern " +
682+ "^projects/[^/]+/locations/[^/]+/aclConfig$");
683+ }
684+ this.name = name;
685+ return this;
686+ }
687+
688+ @Override
689+ public GetAclConfig set(String parameterName, Object value) {
690+ return (GetAclConfig) super.set(parameterName, value);
691+ }
692+ }
539693 /**
540694 * Gets the CmekConfig.
541695 *
@@ -692,6 +846,154 @@ public GetCmekConfig set(String parameterName, Object value) {
692846 return (GetCmekConfig) super.set(parameterName, value);
693847 }
694848 }
849+ /**
850+ * Default ACL configuration for use in a location of a customer's project. Updates will only
851+ * reflect to new data stores. Existing data stores will still use the old value.
852+ *
853+ * Create a request for the method "locations.updateAclConfig".
854+ *
855+ * This request holds the parameters needed by the discoveryengine server. After setting any
856+ * optional parameters, call the {@link UpdateAclConfig#execute()} method to invoke the remote
857+ * operation.
858+ *
859+ * @param name Immutable. The full resource name of the acl configuration. Format:
860+ * `projects/{project}/locations/{location}/aclConfig`. This field must be a UTF-8 encoded
861+ * string with a length limit of 1024 characters.
862+ * @param content the {@link com.google.api.services.discoveryengine.v1.model.GoogleCloudDiscoveryengineV1AclConfig}
863+ * @return the request
864+ */
865+ public UpdateAclConfig updateAclConfig(java.lang.String name, com.google.api.services.discoveryengine.v1.model.GoogleCloudDiscoveryengineV1AclConfig content) throws java.io.IOException {
866+ UpdateAclConfig result = new UpdateAclConfig(name, content);
867+ initialize(result);
868+ return result;
869+ }
870+
871+ public class UpdateAclConfig extends DiscoveryEngineRequest<com.google.api.services.discoveryengine.v1.model.GoogleCloudDiscoveryengineV1AclConfig> {
872+
873+ private static final String REST_PATH = "v1/{+name}";
874+
875+ private final java.util.regex.Pattern NAME_PATTERN =
876+ java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/aclConfig$");
877+
878+ /**
879+ * Default ACL configuration for use in a location of a customer's project. Updates will only
880+ * reflect to new data stores. Existing data stores will still use the old value.
881+ *
882+ * Create a request for the method "locations.updateAclConfig".
883+ *
884+ * This request holds the parameters needed by the the discoveryengine server. After setting any
885+ * optional parameters, call the {@link UpdateAclConfig#execute()} method to invoke the remote
886+ * operation. <p> {@link UpdateAclConfig#initialize(com.google.api.client.googleapis.services.Abst
887+ * ractGoogleClientRequest)} must be called to initialize this instance immediately after invoking
888+ * the constructor. </p>
889+ *
890+ * @param name Immutable. The full resource name of the acl configuration. Format:
891+ * `projects/{project}/locations/{location}/aclConfig`. This field must be a UTF-8 encoded
892+ * string with a length limit of 1024 characters.
893+ * @param content the {@link com.google.api.services.discoveryengine.v1.model.GoogleCloudDiscoveryengineV1AclConfig}
894+ * @since 1.13
895+ */
896+ protected UpdateAclConfig(java.lang.String name, com.google.api.services.discoveryengine.v1.model.GoogleCloudDiscoveryengineV1AclConfig content) {
897+ super(DiscoveryEngine.this, "PATCH", REST_PATH, content, com.google.api.services.discoveryengine.v1.model.GoogleCloudDiscoveryengineV1AclConfig.class);
898+ this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
899+ if (!getSuppressPatternChecks()) {
900+ com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
901+ "Parameter name must conform to the pattern " +
902+ "^projects/[^/]+/locations/[^/]+/aclConfig$");
903+ }
904+ }
905+
906+ @Override
907+ public UpdateAclConfig set$Xgafv(java.lang.String $Xgafv) {
908+ return (UpdateAclConfig) super.set$Xgafv($Xgafv);
909+ }
910+
911+ @Override
912+ public UpdateAclConfig setAccessToken(java.lang.String accessToken) {
913+ return (UpdateAclConfig) super.setAccessToken(accessToken);
914+ }
915+
916+ @Override
917+ public UpdateAclConfig setAlt(java.lang.String alt) {
918+ return (UpdateAclConfig) super.setAlt(alt);
919+ }
920+
921+ @Override
922+ public UpdateAclConfig setCallback(java.lang.String callback) {
923+ return (UpdateAclConfig) super.setCallback(callback);
924+ }
925+
926+ @Override
927+ public UpdateAclConfig setFields(java.lang.String fields) {
928+ return (UpdateAclConfig) super.setFields(fields);
929+ }
930+
931+ @Override
932+ public UpdateAclConfig setKey(java.lang.String key) {
933+ return (UpdateAclConfig) super.setKey(key);
934+ }
935+
936+ @Override
937+ public UpdateAclConfig setOauthToken(java.lang.String oauthToken) {
938+ return (UpdateAclConfig) super.setOauthToken(oauthToken);
939+ }
940+
941+ @Override
942+ public UpdateAclConfig setPrettyPrint(java.lang.Boolean prettyPrint) {
943+ return (UpdateAclConfig) super.setPrettyPrint(prettyPrint);
944+ }
945+
946+ @Override
947+ public UpdateAclConfig setQuotaUser(java.lang.String quotaUser) {
948+ return (UpdateAclConfig) super.setQuotaUser(quotaUser);
949+ }
950+
951+ @Override
952+ public UpdateAclConfig setUploadType(java.lang.String uploadType) {
953+ return (UpdateAclConfig) super.setUploadType(uploadType);
954+ }
955+
956+ @Override
957+ public UpdateAclConfig setUploadProtocol(java.lang.String uploadProtocol) {
958+ return (UpdateAclConfig) super.setUploadProtocol(uploadProtocol);
959+ }
960+
961+ /**
962+ * Immutable. The full resource name of the acl configuration. Format:
963+ * `projects/{project}/locations/{location}/aclConfig`. This field must be a UTF-8 encoded
964+ * string with a length limit of 1024 characters.
965+ */
966+ @com.google.api.client.util.Key
967+ private java.lang.String name;
968+
969+ /** Immutable. The full resource name of the acl configuration. Format:
970+ `projects/{project}/locations/{location}/aclConfig`. This field must be a UTF-8 encoded string with
971+ a length limit of 1024 characters.
972+ */
973+ public java.lang.String getName() {
974+ return name;
975+ }
976+
977+ /**
978+ * Immutable. The full resource name of the acl configuration. Format:
979+ * `projects/{project}/locations/{location}/aclConfig`. This field must be a UTF-8 encoded
980+ * string with a length limit of 1024 characters.
981+ */
982+ public UpdateAclConfig setName(java.lang.String name) {
983+ if (!getSuppressPatternChecks()) {
984+ com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
985+ "Parameter name must conform to the pattern " +
986+ "^projects/[^/]+/locations/[^/]+/aclConfig$");
987+ }
988+ this.name = name;
989+ return this;
990+ }
991+
992+ @Override
993+ public UpdateAclConfig set(String parameterName, Object value) {
994+ return (UpdateAclConfig) super.set(parameterName, value);
995+ }
996+ }
695997 /**
696998 * Provisions a CMEK key for use in a location of a customer's project. This method will also
697999 * conduct location validation on the provided cmekConfig to make sure the key is valid and can be
0 commit comments