@@ -5585,7 +5585,8 @@ public List set(String parameterName, Object value) {
55855585 * This request holds the parameters needed by the netapp server. After setting any optional
55865586 * parameters, call the {@link Patch#execute()} method to invoke the remote operation.
55875587 *
5588- * @param name Identifier. Name of the KmsConfig.
5588+ * @param name Identifier. Name of the KmsConfig. Format:
5589+ * `projects/{project}/locations/{location}/kmsConfigs/{kms_config}`
55895590 * @param content the {@link com.google.api.services.netapp.v1.model.KmsConfig}
55905591 * @return the request
55915592 */
@@ -5612,7 +5613,8 @@ public class Patch extends NetAppFilesRequest<com.google.api.services.netapp.v1.
56125613 * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
56135614 * be called to initialize this instance immediately after invoking the constructor. </p>
56145615 *
5615- * @param name Identifier. Name of the KmsConfig.
5616+ * @param name Identifier. Name of the KmsConfig. Format:
5617+ * `projects/{project}/locations/{location}/kmsConfigs/{kms_config}`
56165618 * @param content the {@link com.google.api.services.netapp.v1.model.KmsConfig}
56175619 * @since 1.13
56185620 */
@@ -5681,17 +5683,24 @@ public Patch setUploadProtocol(java.lang.String uploadProtocol) {
56815683 return (Patch ) super .setUploadProtocol (uploadProtocol );
56825684 }
56835685
5684- /** Identifier. Name of the KmsConfig. */
5686+ /**
5687+ * Identifier. Name of the KmsConfig. Format:
5688+ * `projects/{project}/locations/{location}/kmsConfigs/{kms_config}`
5689+ */
56855690 @ com .google .api .client .util .Key
56865691 private java .lang .String name ;
56875692
5688- /** Identifier. Name of the KmsConfig.
5693+ /** Identifier. Name of the KmsConfig. Format:
5694+ `projects/{project}/locations/{location}/kmsConfigs/{kms_config}`
56895695 */
56905696 public java .lang .String getName () {
56915697 return name ;
56925698 }
56935699
5694- /** Identifier. Name of the KmsConfig. */
5700+ /**
5701+ * Identifier. Name of the KmsConfig. Format:
5702+ * `projects/{project}/locations/{location}/kmsConfigs/{kms_config}`
5703+ */
56955704 public Patch setName (java .lang .String name ) {
56965705 if (!getSuppressPatternChecks ()) {
56975706 com .google .api .client .util .Preconditions .checkArgument (NAME_PATTERN .matcher (name ).matches (),
@@ -7933,6 +7942,148 @@ public Delete set(String parameterName, Object value) {
79337942 return (Delete ) super .set (parameterName , value );
79347943 }
79357944 }
7945+ /**
7946+ * Establish volume peering. This is used to establish cluster and svm peerings between the GCNV and
7947+ * OnPrem clusters.
7948+ *
7949+ * Create a request for the method "volumes.establishPeering".
7950+ *
7951+ * This request holds the parameters needed by the netapp server. After setting any optional
7952+ * parameters, call the {@link EstablishPeering#execute()} method to invoke the remote operation.
7953+ *
7954+ * @param name Required. The volume resource name, in the format
7955+ * `projects/{project_id}/locations/{location}/volumes/{volume_id}`
7956+ * @param content the {@link com.google.api.services.netapp.v1.model.EstablishVolumePeeringRequest}
7957+ * @return the request
7958+ */
7959+ public EstablishPeering establishPeering (java .lang .String name , com .google .api .services .netapp .v1 .model .EstablishVolumePeeringRequest content ) throws java .io .IOException {
7960+ EstablishPeering result = new EstablishPeering (name , content );
7961+ initialize (result );
7962+ return result ;
7963+ }
7964+
7965+ public class EstablishPeering extends NetAppFilesRequest <com .google .api .services .netapp .v1 .model .Operation > {
7966+
7967+ private static final String REST_PATH = "v1/{+name}:establishPeering" ;
7968+
7969+ private final java .util .regex .Pattern NAME_PATTERN =
7970+ java .util .regex .Pattern .compile ("^projects/[^/]+/locations/[^/]+/volumes/[^/]+$" );
7971+
7972+ /**
7973+ * Establish volume peering. This is used to establish cluster and svm peerings between the GCNV
7974+ * and OnPrem clusters.
7975+ *
7976+ * Create a request for the method "volumes.establishPeering".
7977+ *
7978+ * This request holds the parameters needed by the the netapp server. After setting any optional
7979+ * parameters, call the {@link EstablishPeering#execute()} method to invoke the remote operation.
7980+ * <p> {@link EstablishPeering#initialize(com.google.api.client.googleapis.services.AbstractGoogle
7981+ * ClientRequest)} must be called to initialize this instance immediately after invoking the
7982+ * constructor. </p>
7983+ *
7984+ * @param name Required. The volume resource name, in the format
7985+ * `projects/{project_id}/locations/{location}/volumes/{volume_id}`
7986+ * @param content the {@link com.google.api.services.netapp.v1.model.EstablishVolumePeeringRequest}
7987+ * @since 1.13
7988+ */
7989+ protected EstablishPeering (java .lang .String name , com .google .api .services .netapp .v1 .model .EstablishVolumePeeringRequest content ) {
7990+ super (NetAppFiles .this , "POST" , REST_PATH , content , com .google .api .services .netapp .v1 .model .Operation .class );
7991+ this .name = com .google .api .client .util .Preconditions .checkNotNull (name , "Required parameter name must be specified." );
7992+ if (!getSuppressPatternChecks ()) {
7993+ com .google .api .client .util .Preconditions .checkArgument (NAME_PATTERN .matcher (name ).matches (),
7994+ "Parameter name must conform to the pattern " +
7995+ "^projects/[^/]+/locations/[^/]+/volumes/[^/]+$" );
7996+ }
7997+ }
7998+
7999+ @ Override
8000+ public EstablishPeering set$Xgafv (java .lang .String $Xgafv ) {
8001+ return (EstablishPeering ) super .set$Xgafv ($Xgafv );
8002+ }
8003+
8004+ @ Override
8005+ public EstablishPeering setAccessToken (java .lang .String accessToken ) {
8006+ return (EstablishPeering ) super .setAccessToken (accessToken );
8007+ }
8008+
8009+ @ Override
8010+ public EstablishPeering setAlt (java .lang .String alt ) {
8011+ return (EstablishPeering ) super .setAlt (alt );
8012+ }
8013+
8014+ @ Override
8015+ public EstablishPeering setCallback (java .lang .String callback ) {
8016+ return (EstablishPeering ) super .setCallback (callback );
8017+ }
8018+
8019+ @ Override
8020+ public EstablishPeering setFields (java .lang .String fields ) {
8021+ return (EstablishPeering ) super .setFields (fields );
8022+ }
8023+
8024+ @ Override
8025+ public EstablishPeering setKey (java .lang .String key ) {
8026+ return (EstablishPeering ) super .setKey (key );
8027+ }
8028+
8029+ @ Override
8030+ public EstablishPeering setOauthToken (java .lang .String oauthToken ) {
8031+ return (EstablishPeering ) super .setOauthToken (oauthToken );
8032+ }
8033+
8034+ @ Override
8035+ public EstablishPeering setPrettyPrint (java .lang .Boolean prettyPrint ) {
8036+ return (EstablishPeering ) super .setPrettyPrint (prettyPrint );
8037+ }
8038+
8039+ @ Override
8040+ public EstablishPeering setQuotaUser (java .lang .String quotaUser ) {
8041+ return (EstablishPeering ) super .setQuotaUser (quotaUser );
8042+ }
8043+
8044+ @ Override
8045+ public EstablishPeering setUploadType (java .lang .String uploadType ) {
8046+ return (EstablishPeering ) super .setUploadType (uploadType );
8047+ }
8048+
8049+ @ Override
8050+ public EstablishPeering setUploadProtocol (java .lang .String uploadProtocol ) {
8051+ return (EstablishPeering ) super .setUploadProtocol (uploadProtocol );
8052+ }
8053+
8054+ /**
8055+ * Required. The volume resource name, in the format
8056+ * `projects/{project_id}/locations/{location}/volumes/{volume_id}`
8057+ */
8058+ @ com .google .api .client .util .Key
8059+ private java .lang .String name ;
8060+
8061+ /** Required. The volume resource name, in the format
8062+ `projects/{project_id}/locations/{location}/volumes/{volume_id}`
8063+ */
8064+ public java .lang .String getName () {
8065+ return name ;
8066+ }
8067+
8068+ /**
8069+ * Required. The volume resource name, in the format
8070+ * `projects/{project_id}/locations/{location}/volumes/{volume_id}`
8071+ */
8072+ public EstablishPeering setName (java .lang .String name ) {
8073+ if (!getSuppressPatternChecks ()) {
8074+ com .google .api .client .util .Preconditions .checkArgument (NAME_PATTERN .matcher (name ).matches (),
8075+ "Parameter name must conform to the pattern " +
8076+ "^projects/[^/]+/locations/[^/]+/volumes/[^/]+$" );
8077+ }
8078+ this .name = name ;
8079+ return this ;
8080+ }
8081+
8082+ @ Override
8083+ public EstablishPeering set (String parameterName , Object value ) {
8084+ return (EstablishPeering ) super .set (parameterName , value );
8085+ }
8086+ }
79368087 /**
79378088 * Gets details of a single Volume.
79388089 *
0 commit comments