@google-cloud/spanner 7.13.0 → 7.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13423,6 +13423,20 @@ export namespace google {
13423
13423
  * @returns Promise
13424
13424
  */
13425
13425
  public listInstancePartitionOperations(request: google.spanner.admin.instance.v1.IListInstancePartitionOperationsRequest): Promise<google.spanner.admin.instance.v1.ListInstancePartitionOperationsResponse>;
13426
+
13427
+ /**
13428
+ * Calls MoveInstance.
13429
+ * @param request MoveInstanceRequest message or plain object
13430
+ * @param callback Node-style callback called with the error, if any, and Operation
13431
+ */
13432
+ public moveInstance(request: google.spanner.admin.instance.v1.IMoveInstanceRequest, callback: google.spanner.admin.instance.v1.InstanceAdmin.MoveInstanceCallback): void;
13433
+
13434
+ /**
13435
+ * Calls MoveInstance.
13436
+ * @param request MoveInstanceRequest message or plain object
13437
+ * @returns Promise
13438
+ */
13439
+ public moveInstance(request: google.spanner.admin.instance.v1.IMoveInstanceRequest): Promise<google.longrunning.Operation>;
13426
13440
  }
13427
13441
 
13428
13442
  namespace InstanceAdmin {
@@ -13566,6 +13580,13 @@ export namespace google {
13566
13580
  * @param [response] ListInstancePartitionOperationsResponse
13567
13581
  */
13568
13582
  type ListInstancePartitionOperationsCallback = (error: (Error|null), response?: google.spanner.admin.instance.v1.ListInstancePartitionOperationsResponse) => void;
13583
+
13584
+ /**
13585
+ * Callback as used by {@link google.spanner.admin.instance.v1.InstanceAdmin|moveInstance}.
13586
+ * @param error Error, if any
13587
+ * @param [response] Operation
13588
+ */
13589
+ type MoveInstanceCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
13569
13590
  }
13570
13591
 
13571
13592
  /** Properties of a ReplicaInfo. */
@@ -14227,6 +14248,9 @@ export namespace google {
14227
14248
 
14228
14249
  /** Instance updateTime */
14229
14250
  updateTime?: (google.protobuf.ITimestamp|null);
14251
+
14252
+ /** Instance edition */
14253
+ edition?: (google.spanner.admin.instance.v1.Instance.Edition|keyof typeof google.spanner.admin.instance.v1.Instance.Edition|null);
14230
14254
  }
14231
14255
 
14232
14256
  /** Represents an Instance. */
@@ -14271,6 +14295,9 @@ export namespace google {
14271
14295
  /** Instance updateTime. */
14272
14296
  public updateTime?: (google.protobuf.ITimestamp|null);
14273
14297
 
14298
+ /** Instance edition. */
14299
+ public edition: (google.spanner.admin.instance.v1.Instance.Edition|keyof typeof google.spanner.admin.instance.v1.Instance.Edition);
14300
+
14274
14301
  /**
14275
14302
  * Creates a new Instance instance using the specified properties.
14276
14303
  * @param [properties] Properties to set
@@ -14357,6 +14384,14 @@ export namespace google {
14357
14384
  CREATING = 1,
14358
14385
  READY = 2
14359
14386
  }
14387
+
14388
+ /** Edition enum. */
14389
+ enum Edition {
14390
+ EDITION_UNSPECIFIED = 0,
14391
+ STANDARD = 1,
14392
+ ENTERPRISE = 2,
14393
+ ENTERPRISE_PLUS = 3
14394
+ }
14360
14395
  }
14361
14396
 
14362
14397
  /** Properties of a ListInstanceConfigsRequest. */
@@ -17586,6 +17621,309 @@ export namespace google {
17586
17621
  */
17587
17622
  public static getTypeUrl(typeUrlPrefix?: string): string;
17588
17623
  }
17624
+
17625
+ /** Properties of a MoveInstanceRequest. */
17626
+ interface IMoveInstanceRequest {
17627
+
17628
+ /** MoveInstanceRequest name */
17629
+ name?: (string|null);
17630
+
17631
+ /** MoveInstanceRequest targetConfig */
17632
+ targetConfig?: (string|null);
17633
+ }
17634
+
17635
+ /** Represents a MoveInstanceRequest. */
17636
+ class MoveInstanceRequest implements IMoveInstanceRequest {
17637
+
17638
+ /**
17639
+ * Constructs a new MoveInstanceRequest.
17640
+ * @param [properties] Properties to set
17641
+ */
17642
+ constructor(properties?: google.spanner.admin.instance.v1.IMoveInstanceRequest);
17643
+
17644
+ /** MoveInstanceRequest name. */
17645
+ public name: string;
17646
+
17647
+ /** MoveInstanceRequest targetConfig. */
17648
+ public targetConfig: string;
17649
+
17650
+ /**
17651
+ * Creates a new MoveInstanceRequest instance using the specified properties.
17652
+ * @param [properties] Properties to set
17653
+ * @returns MoveInstanceRequest instance
17654
+ */
17655
+ public static create(properties?: google.spanner.admin.instance.v1.IMoveInstanceRequest): google.spanner.admin.instance.v1.MoveInstanceRequest;
17656
+
17657
+ /**
17658
+ * Encodes the specified MoveInstanceRequest message. Does not implicitly {@link google.spanner.admin.instance.v1.MoveInstanceRequest.verify|verify} messages.
17659
+ * @param message MoveInstanceRequest message or plain object to encode
17660
+ * @param [writer] Writer to encode to
17661
+ * @returns Writer
17662
+ */
17663
+ public static encode(message: google.spanner.admin.instance.v1.IMoveInstanceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
17664
+
17665
+ /**
17666
+ * Encodes the specified MoveInstanceRequest message, length delimited. Does not implicitly {@link google.spanner.admin.instance.v1.MoveInstanceRequest.verify|verify} messages.
17667
+ * @param message MoveInstanceRequest message or plain object to encode
17668
+ * @param [writer] Writer to encode to
17669
+ * @returns Writer
17670
+ */
17671
+ public static encodeDelimited(message: google.spanner.admin.instance.v1.IMoveInstanceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
17672
+
17673
+ /**
17674
+ * Decodes a MoveInstanceRequest message from the specified reader or buffer.
17675
+ * @param reader Reader or buffer to decode from
17676
+ * @param [length] Message length if known beforehand
17677
+ * @returns MoveInstanceRequest
17678
+ * @throws {Error} If the payload is not a reader or valid buffer
17679
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
17680
+ */
17681
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.admin.instance.v1.MoveInstanceRequest;
17682
+
17683
+ /**
17684
+ * Decodes a MoveInstanceRequest message from the specified reader or buffer, length delimited.
17685
+ * @param reader Reader or buffer to decode from
17686
+ * @returns MoveInstanceRequest
17687
+ * @throws {Error} If the payload is not a reader or valid buffer
17688
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
17689
+ */
17690
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.admin.instance.v1.MoveInstanceRequest;
17691
+
17692
+ /**
17693
+ * Verifies a MoveInstanceRequest message.
17694
+ * @param message Plain object to verify
17695
+ * @returns `null` if valid, otherwise the reason why it is not
17696
+ */
17697
+ public static verify(message: { [k: string]: any }): (string|null);
17698
+
17699
+ /**
17700
+ * Creates a MoveInstanceRequest message from a plain object. Also converts values to their respective internal types.
17701
+ * @param object Plain object
17702
+ * @returns MoveInstanceRequest
17703
+ */
17704
+ public static fromObject(object: { [k: string]: any }): google.spanner.admin.instance.v1.MoveInstanceRequest;
17705
+
17706
+ /**
17707
+ * Creates a plain object from a MoveInstanceRequest message. Also converts values to other types if specified.
17708
+ * @param message MoveInstanceRequest
17709
+ * @param [options] Conversion options
17710
+ * @returns Plain object
17711
+ */
17712
+ public static toObject(message: google.spanner.admin.instance.v1.MoveInstanceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
17713
+
17714
+ /**
17715
+ * Converts this MoveInstanceRequest to JSON.
17716
+ * @returns JSON object
17717
+ */
17718
+ public toJSON(): { [k: string]: any };
17719
+
17720
+ /**
17721
+ * Gets the default type url for MoveInstanceRequest
17722
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
17723
+ * @returns The default type url
17724
+ */
17725
+ public static getTypeUrl(typeUrlPrefix?: string): string;
17726
+ }
17727
+
17728
+ /** Properties of a MoveInstanceResponse. */
17729
+ interface IMoveInstanceResponse {
17730
+ }
17731
+
17732
+ /** Represents a MoveInstanceResponse. */
17733
+ class MoveInstanceResponse implements IMoveInstanceResponse {
17734
+
17735
+ /**
17736
+ * Constructs a new MoveInstanceResponse.
17737
+ * @param [properties] Properties to set
17738
+ */
17739
+ constructor(properties?: google.spanner.admin.instance.v1.IMoveInstanceResponse);
17740
+
17741
+ /**
17742
+ * Creates a new MoveInstanceResponse instance using the specified properties.
17743
+ * @param [properties] Properties to set
17744
+ * @returns MoveInstanceResponse instance
17745
+ */
17746
+ public static create(properties?: google.spanner.admin.instance.v1.IMoveInstanceResponse): google.spanner.admin.instance.v1.MoveInstanceResponse;
17747
+
17748
+ /**
17749
+ * Encodes the specified MoveInstanceResponse message. Does not implicitly {@link google.spanner.admin.instance.v1.MoveInstanceResponse.verify|verify} messages.
17750
+ * @param message MoveInstanceResponse message or plain object to encode
17751
+ * @param [writer] Writer to encode to
17752
+ * @returns Writer
17753
+ */
17754
+ public static encode(message: google.spanner.admin.instance.v1.IMoveInstanceResponse, writer?: $protobuf.Writer): $protobuf.Writer;
17755
+
17756
+ /**
17757
+ * Encodes the specified MoveInstanceResponse message, length delimited. Does not implicitly {@link google.spanner.admin.instance.v1.MoveInstanceResponse.verify|verify} messages.
17758
+ * @param message MoveInstanceResponse message or plain object to encode
17759
+ * @param [writer] Writer to encode to
17760
+ * @returns Writer
17761
+ */
17762
+ public static encodeDelimited(message: google.spanner.admin.instance.v1.IMoveInstanceResponse, writer?: $protobuf.Writer): $protobuf.Writer;
17763
+
17764
+ /**
17765
+ * Decodes a MoveInstanceResponse message from the specified reader or buffer.
17766
+ * @param reader Reader or buffer to decode from
17767
+ * @param [length] Message length if known beforehand
17768
+ * @returns MoveInstanceResponse
17769
+ * @throws {Error} If the payload is not a reader or valid buffer
17770
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
17771
+ */
17772
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.admin.instance.v1.MoveInstanceResponse;
17773
+
17774
+ /**
17775
+ * Decodes a MoveInstanceResponse message from the specified reader or buffer, length delimited.
17776
+ * @param reader Reader or buffer to decode from
17777
+ * @returns MoveInstanceResponse
17778
+ * @throws {Error} If the payload is not a reader or valid buffer
17779
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
17780
+ */
17781
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.admin.instance.v1.MoveInstanceResponse;
17782
+
17783
+ /**
17784
+ * Verifies a MoveInstanceResponse message.
17785
+ * @param message Plain object to verify
17786
+ * @returns `null` if valid, otherwise the reason why it is not
17787
+ */
17788
+ public static verify(message: { [k: string]: any }): (string|null);
17789
+
17790
+ /**
17791
+ * Creates a MoveInstanceResponse message from a plain object. Also converts values to their respective internal types.
17792
+ * @param object Plain object
17793
+ * @returns MoveInstanceResponse
17794
+ */
17795
+ public static fromObject(object: { [k: string]: any }): google.spanner.admin.instance.v1.MoveInstanceResponse;
17796
+
17797
+ /**
17798
+ * Creates a plain object from a MoveInstanceResponse message. Also converts values to other types if specified.
17799
+ * @param message MoveInstanceResponse
17800
+ * @param [options] Conversion options
17801
+ * @returns Plain object
17802
+ */
17803
+ public static toObject(message: google.spanner.admin.instance.v1.MoveInstanceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
17804
+
17805
+ /**
17806
+ * Converts this MoveInstanceResponse to JSON.
17807
+ * @returns JSON object
17808
+ */
17809
+ public toJSON(): { [k: string]: any };
17810
+
17811
+ /**
17812
+ * Gets the default type url for MoveInstanceResponse
17813
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
17814
+ * @returns The default type url
17815
+ */
17816
+ public static getTypeUrl(typeUrlPrefix?: string): string;
17817
+ }
17818
+
17819
+ /** Properties of a MoveInstanceMetadata. */
17820
+ interface IMoveInstanceMetadata {
17821
+
17822
+ /** MoveInstanceMetadata targetConfig */
17823
+ targetConfig?: (string|null);
17824
+
17825
+ /** MoveInstanceMetadata progress */
17826
+ progress?: (google.spanner.admin.instance.v1.IOperationProgress|null);
17827
+
17828
+ /** MoveInstanceMetadata cancelTime */
17829
+ cancelTime?: (google.protobuf.ITimestamp|null);
17830
+ }
17831
+
17832
+ /** Represents a MoveInstanceMetadata. */
17833
+ class MoveInstanceMetadata implements IMoveInstanceMetadata {
17834
+
17835
+ /**
17836
+ * Constructs a new MoveInstanceMetadata.
17837
+ * @param [properties] Properties to set
17838
+ */
17839
+ constructor(properties?: google.spanner.admin.instance.v1.IMoveInstanceMetadata);
17840
+
17841
+ /** MoveInstanceMetadata targetConfig. */
17842
+ public targetConfig: string;
17843
+
17844
+ /** MoveInstanceMetadata progress. */
17845
+ public progress?: (google.spanner.admin.instance.v1.IOperationProgress|null);
17846
+
17847
+ /** MoveInstanceMetadata cancelTime. */
17848
+ public cancelTime?: (google.protobuf.ITimestamp|null);
17849
+
17850
+ /**
17851
+ * Creates a new MoveInstanceMetadata instance using the specified properties.
17852
+ * @param [properties] Properties to set
17853
+ * @returns MoveInstanceMetadata instance
17854
+ */
17855
+ public static create(properties?: google.spanner.admin.instance.v1.IMoveInstanceMetadata): google.spanner.admin.instance.v1.MoveInstanceMetadata;
17856
+
17857
+ /**
17858
+ * Encodes the specified MoveInstanceMetadata message. Does not implicitly {@link google.spanner.admin.instance.v1.MoveInstanceMetadata.verify|verify} messages.
17859
+ * @param message MoveInstanceMetadata message or plain object to encode
17860
+ * @param [writer] Writer to encode to
17861
+ * @returns Writer
17862
+ */
17863
+ public static encode(message: google.spanner.admin.instance.v1.IMoveInstanceMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
17864
+
17865
+ /**
17866
+ * Encodes the specified MoveInstanceMetadata message, length delimited. Does not implicitly {@link google.spanner.admin.instance.v1.MoveInstanceMetadata.verify|verify} messages.
17867
+ * @param message MoveInstanceMetadata message or plain object to encode
17868
+ * @param [writer] Writer to encode to
17869
+ * @returns Writer
17870
+ */
17871
+ public static encodeDelimited(message: google.spanner.admin.instance.v1.IMoveInstanceMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
17872
+
17873
+ /**
17874
+ * Decodes a MoveInstanceMetadata message from the specified reader or buffer.
17875
+ * @param reader Reader or buffer to decode from
17876
+ * @param [length] Message length if known beforehand
17877
+ * @returns MoveInstanceMetadata
17878
+ * @throws {Error} If the payload is not a reader or valid buffer
17879
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
17880
+ */
17881
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.admin.instance.v1.MoveInstanceMetadata;
17882
+
17883
+ /**
17884
+ * Decodes a MoveInstanceMetadata message from the specified reader or buffer, length delimited.
17885
+ * @param reader Reader or buffer to decode from
17886
+ * @returns MoveInstanceMetadata
17887
+ * @throws {Error} If the payload is not a reader or valid buffer
17888
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
17889
+ */
17890
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.admin.instance.v1.MoveInstanceMetadata;
17891
+
17892
+ /**
17893
+ * Verifies a MoveInstanceMetadata message.
17894
+ * @param message Plain object to verify
17895
+ * @returns `null` if valid, otherwise the reason why it is not
17896
+ */
17897
+ public static verify(message: { [k: string]: any }): (string|null);
17898
+
17899
+ /**
17900
+ * Creates a MoveInstanceMetadata message from a plain object. Also converts values to their respective internal types.
17901
+ * @param object Plain object
17902
+ * @returns MoveInstanceMetadata
17903
+ */
17904
+ public static fromObject(object: { [k: string]: any }): google.spanner.admin.instance.v1.MoveInstanceMetadata;
17905
+
17906
+ /**
17907
+ * Creates a plain object from a MoveInstanceMetadata message. Also converts values to other types if specified.
17908
+ * @param message MoveInstanceMetadata
17909
+ * @param [options] Conversion options
17910
+ * @returns Plain object
17911
+ */
17912
+ public static toObject(message: google.spanner.admin.instance.v1.MoveInstanceMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
17913
+
17914
+ /**
17915
+ * Converts this MoveInstanceMetadata to JSON.
17916
+ * @returns JSON object
17917
+ */
17918
+ public toJSON(): { [k: string]: any };
17919
+
17920
+ /**
17921
+ * Gets the default type url for MoveInstanceMetadata
17922
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
17923
+ * @returns The default type url
17924
+ */
17925
+ public static getTypeUrl(typeUrlPrefix?: string): string;
17926
+ }
17589
17927
  }
17590
17928
  }
17591
17929
  }