google-apis-memcache_v1beta2 0.1.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 66a81c87c62a1472e32f0541dd9bde09c430a23a6fc0ff958fc9a5940ead6e1d
4
- data.tar.gz: a8769090ce9be53e346665a045ea3e615bdf38a18897eeb9c32f9340114fe136
3
+ metadata.gz: 6d7297d819741d8945bedcdb0b50005b0054fdbafcdd094f7bdb1239fd8afb2b
4
+ data.tar.gz: 2e2dbbcf2c85530bea629307942c10a14ed0a2bac4f00a2a0c280d979738eab9
5
5
  SHA512:
6
- metadata.gz: daa4826ce799f80bddc50684f5ef1251e113e846e5b9c69e6aad12d3253ae4f94c2202a7adb1ac62bacc91ab79c6a1b69690ad50061df121b8d00f25cca98afc
7
- data.tar.gz: 9ffd95cee2cd52b4270dcf96652ace2373ef38fdc6a55ed538465b2cea80f2f629f486f93ef11aff65e805298a70ba4da387e882b667db01ca055cf76421fe5c
6
+ metadata.gz: c2eee969403f4a4d868d1a1606737d3eef2d038ce770257b3dfa742cff2ae09fceb89081cea021adf6ec17a77f6a95cadda0c55151c5309aa00479471c1eb0c2
7
+ data.tar.gz: 74fb9105e908e0951bcb5309a9ed30efcff8ab024049c112081a3f58460bfc2a6c093e2080f1b19191b260756efef372bb62d909813fb6151d43815f24550655
data/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # Release history for google-apis-memcache_v1beta2
2
2
 
3
+ ### v0.6.0 (2021-05-08)
4
+
5
+ * Regenerated from discovery document revision 20210504
6
+
7
+ ### v0.5.0 (2021-03-26)
8
+
9
+ * Regenerated from discovery document revision 20210324
10
+ * Regenerated using generator version 0.2.0
11
+
12
+ ### v0.4.0 (2021-03-04)
13
+
14
+ * Unspecified changes
15
+
16
+ ### v0.3.0 (2021-02-10)
17
+
18
+ * Regenerated from discovery document revision 20210209
19
+
20
+ ### v0.2.0 (2021-01-22)
21
+
22
+ * Regenerated from discovery document revision 20210121
23
+ * Regenerated using generator version 0.1.2
24
+
3
25
  ### v0.1.0 (2021-01-07)
4
26
 
5
27
  * Regenerated using generator version 0.1.1
@@ -30,7 +30,7 @@ module Google
30
30
  # This is NOT the gem version.
31
31
  VERSION = 'V1beta2'
32
32
 
33
- # View and manage your data across Google Cloud Platform services
33
+ # See, edit, configure, and delete your Google Cloud Platform data
34
34
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
35
35
  end
36
36
  end
@@ -27,14 +27,43 @@ module Google
27
27
  include Google::Apis::Core::Hashable
28
28
 
29
29
  # Whether to apply instance-level parameter group to all nodes. If set to true,
30
- # will explicitly restrict users from specifying any nodes, and apply parameter
31
- # group updates to all nodes within the instance.
30
+ # users are restricted from specifying individual nodes, and `ApplyParameters`
31
+ # updates all nodes within the instance.
32
32
  # Corresponds to the JSON property `applyAll`
33
33
  # @return [Boolean]
34
34
  attr_accessor :apply_all
35
35
  alias_method :apply_all?, :apply_all
36
36
 
37
- # Nodes to which we should apply the instance-level parameter group.
37
+ # Nodes to which the instance-level parameter group is applied.
38
+ # Corresponds to the JSON property `nodeIds`
39
+ # @return [Array<String>]
40
+ attr_accessor :node_ids
41
+
42
+ def initialize(**args)
43
+ update!(**args)
44
+ end
45
+
46
+ # Update properties of this object
47
+ def update!(**args)
48
+ @apply_all = args[:apply_all] if args.key?(:apply_all)
49
+ @node_ids = args[:node_ids] if args.key?(:node_ids)
50
+ end
51
+ end
52
+
53
+ # Request for ApplySoftwareUpdate.
54
+ class ApplySoftwareUpdateRequest
55
+ include Google::Apis::Core::Hashable
56
+
57
+ # Whether to apply the update to all nodes. If set to true, will explicitly
58
+ # restrict users from specifying any nodes, and apply software update to all
59
+ # nodes (where applicable) within the instance.
60
+ # Corresponds to the JSON property `applyAll`
61
+ # @return [Boolean]
62
+ attr_accessor :apply_all
63
+ alias_method :apply_all?, :apply_all
64
+
65
+ # Nodes to which we should apply the update to. Note all the selected nodes are
66
+ # updated in parallel.
38
67
  # Corresponds to the JSON property `nodeIds`
39
68
  # @return [Array<String>]
40
69
  attr_accessor :node_ids
@@ -204,7 +233,7 @@ module Google
204
233
  # the lowercase ID of each zone, as defined by GCE. These keys can be specified
205
234
  # in the `zones` field when creating a Memcached instance.
206
235
  # Corresponds to the JSON property `availableZones`
207
- # @return [Hash<String,Google::Apis::MemcacheV1beta2::ZoneMetadata>]
236
+ # @return [Hash<String,Google::Apis::MemcacheV1beta2::GoogleCloudMemcacheV1beta2ZoneMetadata>]
208
237
  attr_accessor :available_zones
209
238
 
210
239
  def initialize(**args)
@@ -276,6 +305,19 @@ module Google
276
305
  end
277
306
  end
278
307
 
308
+ #
309
+ class GoogleCloudMemcacheV1beta2ZoneMetadata
310
+ include Google::Apis::Core::Hashable
311
+
312
+ def initialize(**args)
313
+ update!(**args)
314
+ end
315
+
316
+ # Update properties of this object
317
+ def update!(**args)
318
+ end
319
+ end
320
+
279
321
  #
280
322
  class GoogleCloudSaasacceleratorManagementProvidersV1Instance
281
323
  include Google::Apis::Core::Hashable
@@ -320,8 +362,10 @@ module Google
320
362
  # @return [Google::Apis::MemcacheV1beta2::GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings]
321
363
  attr_accessor :maintenance_settings
322
364
 
323
- # Unique name of the resource. It uses the form: `projects/`project_id`/
324
- # locations/`location_id`/instances/`instance_id``
365
+ # Unique name of the resource. It uses the form: `projects/`project_id|
366
+ # project_number`/locations/`location_id`/instances/`instance_id`` Note: Either
367
+ # project_id or project_number and be used, but keep it consistent with other
368
+ # APIs (e.g. RescheduleUpdate)
325
369
  # Corresponds to the JSON property `name`
326
370
  # @return [String]
327
371
  attr_accessor :name
@@ -404,9 +448,9 @@ module Google
404
448
  class GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSchedule
405
449
  include Google::Apis::Core::Hashable
406
450
 
407
- # Can this scheduled update be rescheduled? By default, it's true and API needs
408
- # to do explicitly check whether it's set, if it's set as false explicitly, it's
409
- # false
451
+ # This field is deprecated, and will be always set to true since reschedule can
452
+ # happen multiple times now. This field should not be removed until all service
453
+ # producers remove this for their customers.
410
454
  # Corresponds to the JSON property `canReschedule`
411
455
  # @return [Boolean]
412
456
  attr_accessor :can_reschedule
@@ -424,6 +468,14 @@ module Google
424
468
  # @return [String]
425
469
  attr_accessor :rollout_management_policy
426
470
 
471
+ # schedule_deadline_time is the time deadline any schedule start time cannot go
472
+ # beyond, including reschedule. It's normally the initial schedule start time
473
+ # plus maintenance window length (1 day or 1 week). Maintenance cannot be
474
+ # scheduled to start beyond this deadline.
475
+ # Corresponds to the JSON property `scheduleDeadlineTime`
476
+ # @return [String]
477
+ attr_accessor :schedule_deadline_time
478
+
427
479
  # The scheduled start time for the maintenance.
428
480
  # Corresponds to the JSON property `startTime`
429
481
  # @return [String]
@@ -438,6 +490,7 @@ module Google
438
490
  @can_reschedule = args[:can_reschedule] if args.key?(:can_reschedule)
439
491
  @end_time = args[:end_time] if args.key?(:end_time)
440
492
  @rollout_management_policy = args[:rollout_management_policy] if args.key?(:rollout_management_policy)
493
+ @schedule_deadline_time = args[:schedule_deadline_time] if args.key?(:schedule_deadline_time)
441
494
  @start_time = args[:start_time] if args.key?(:start_time)
442
495
  end
443
496
  end
@@ -455,6 +508,12 @@ module Google
455
508
  attr_accessor :exclude
456
509
  alias_method :exclude?, :exclude
457
510
 
511
+ # Optional. If the update call is triggered from rollback, set the value as true.
512
+ # Corresponds to the JSON property `isRollback`
513
+ # @return [Boolean]
514
+ attr_accessor :is_rollback
515
+ alias_method :is_rollback?, :is_rollback
516
+
458
517
  # Optional. The MaintenancePolicies that have been attached to the instance. The
459
518
  # key must be of the type name of the oneof policy name defined in
460
519
  # MaintenancePolicy, and the embedded policy must define the same policy type.
@@ -472,6 +531,7 @@ module Google
472
531
  # Update properties of this object
473
532
  def update!(**args)
474
533
  @exclude = args[:exclude] if args.key?(:exclude)
534
+ @is_rollback = args[:is_rollback] if args.key?(:is_rollback)
475
535
  @maintenance_policies = args[:maintenance_policies] if args.key?(:maintenance_policies)
476
536
  end
477
537
  end
@@ -513,6 +573,35 @@ module Google
513
573
  end
514
574
  end
515
575
 
576
+ # PerSliSloEligibility is a mapping from an SLI name to eligibility.
577
+ class GoogleCloudSaasacceleratorManagementProvidersV1PerSliSloEligibility
578
+ include Google::Apis::Core::Hashable
579
+
580
+ # An entry in the eligibilities map specifies an eligibility for a particular
581
+ # SLI for the given instance. The SLI key in the name must be a valid SLI name
582
+ # specified in the Eligibility Exporter binary flags otherwise an error will be
583
+ # emitted by Eligibility Exporter and the oncaller will be alerted. If an SLI
584
+ # has been defined in the binary flags but the eligibilities map does not
585
+ # contain it, the corresponding SLI time series will not be emitted by the
586
+ # Eligibility Exporter. This ensures a smooth rollout and compatibility between
587
+ # the data produced by different versions of the Eligibility Exporters. If
588
+ # eligibilities map contains a key for an SLI which has not been declared in the
589
+ # binary flags, there will be an error message emitted in the Eligibility
590
+ # Exporter log and the metric for the SLI in question will not be emitted.
591
+ # Corresponds to the JSON property `eligibilities`
592
+ # @return [Hash<String,Google::Apis::MemcacheV1beta2::GoogleCloudSaasacceleratorManagementProvidersV1SloEligibility>]
593
+ attr_accessor :eligibilities
594
+
595
+ def initialize(**args)
596
+ update!(**args)
597
+ end
598
+
599
+ # Update properties of this object
600
+ def update!(**args)
601
+ @eligibilities = args[:eligibilities] if args.key?(:eligibilities)
602
+ end
603
+ end
604
+
516
605
  # Describes provisioned dataplane resources.
517
606
  class GoogleCloudSaasacceleratorManagementProvidersV1ProvisionedResource
518
607
  include Google::Apis::Core::Hashable
@@ -595,8 +684,7 @@ module Google
595
684
  attr_accessor :reason
596
685
 
597
686
  # Name of an SLI that this exclusion applies to. Can be left empty, signaling
598
- # that the instance should be excluded from all SLIs defined in the service SLO
599
- # configuration.
687
+ # that the instance should be excluded from all SLIs.
600
688
  # Corresponds to the JSON property `sliName`
601
689
  # @return [String]
602
690
  attr_accessor :sli_name
@@ -653,6 +741,11 @@ module Google
653
741
  # @return [Array<Google::Apis::MemcacheV1beta2::GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata>]
654
742
  attr_accessor :nodes
655
743
 
744
+ # PerSliSloEligibility is a mapping from an SLI name to eligibility.
745
+ # Corresponds to the JSON property `perSliEligibility`
746
+ # @return [Google::Apis::MemcacheV1beta2::GoogleCloudSaasacceleratorManagementProvidersV1PerSliSloEligibility]
747
+ attr_accessor :per_sli_eligibility
748
+
656
749
  # Name of the SLO tier the Instance belongs to. This name will be expected to
657
750
  # match the tiers specified in the service SLO configuration. Field is mandatory
658
751
  # and must not be empty.
@@ -669,11 +762,12 @@ module Google
669
762
  @eligibility = args[:eligibility] if args.key?(:eligibility)
670
763
  @exclusions = args[:exclusions] if args.key?(:exclusions)
671
764
  @nodes = args[:nodes] if args.key?(:nodes)
765
+ @per_sli_eligibility = args[:per_sli_eligibility] if args.key?(:per_sli_eligibility)
672
766
  @tier = args[:tier] if args.key?(:tier)
673
767
  end
674
768
  end
675
769
 
676
- #
770
+ # A Memorystore for Memcached instance
677
771
  class Instance
678
772
  include Google::Apis::Core::Hashable
679
773
 
@@ -689,18 +783,18 @@ module Google
689
783
  # @return [String]
690
784
  attr_accessor :create_time
691
785
 
692
- # Output only. Endpoint for Discovery API
786
+ # Output only. Endpoint for the Discovery API.
693
787
  # Corresponds to the JSON property `discoveryEndpoint`
694
788
  # @return [String]
695
789
  attr_accessor :discovery_endpoint
696
790
 
697
- # User provided name for the instance only used for display purposes. Cannot be
698
- # more than 80 characters.
791
+ # User provided name for the instance, which is only used for display purposes.
792
+ # Cannot be more than 80 characters.
699
793
  # Corresponds to the JSON property `displayName`
700
794
  # @return [String]
701
795
  attr_accessor :display_name
702
796
 
703
- # List of messages that describe current statuses of memcached instance.
797
+ # List of messages that describe the current state of the Memcached instance.
704
798
  # Corresponds to the JSON property `instanceMessages`
705
799
  # @return [Array<Google::Apis::MemcacheV1beta2::InstanceMessage>]
706
800
  attr_accessor :instance_messages
@@ -720,15 +814,15 @@ module Google
720
814
  # @return [String]
721
815
  attr_accessor :memcache_full_version
722
816
 
723
- # Output only. List of Memcached nodes. Refer to [Node] message for more details.
817
+ # Output only. List of Memcached nodes. Refer to Node message for more details.
724
818
  # Corresponds to the JSON property `memcacheNodes`
725
819
  # @return [Array<Google::Apis::MemcacheV1beta2::Node>]
726
820
  attr_accessor :memcache_nodes
727
821
 
728
822
  # The major version of Memcached software. If not provided, latest supported
729
- # version will be used. Currently the latest supported major version is
730
- # MEMCACHE_1_5. The minor version will be automatically determined by our system
731
- # based on the latest supported minor version.
823
+ # version will be used. Currently the latest supported major version is `
824
+ # MEMCACHE_1_5`. The minor version will be automatically determined by our
825
+ # system based on the latest supported minor version.
732
826
  # Corresponds to the JSON property `memcacheVersion`
733
827
  # @return [String]
734
828
  attr_accessor :memcache_version
@@ -736,9 +830,9 @@ module Google
736
830
  # Required. Unique name of the resource in this scope including project and
737
831
  # location using the form: `projects/`project_id`/locations/`location_id`/
738
832
  # instances/`instance_id`` Note: Memcached instances are managed and addressed
739
- # at regional level so location_id here refers to a GCP region; however, users
740
- # may choose which zones Memcached nodes within an instances should be
741
- # provisioned in. Refer to [zones] field for more details.
833
+ # at the regional level so `location_id` here refers to a Google Cloud region;
834
+ # however, users may choose which zones Memcached nodes should be provisioned in
835
+ # within an instance. Refer to zones field for more details.
742
836
  # Corresponds to the JSON property `name`
743
837
  # @return [String]
744
838
  attr_accessor :name
@@ -753,8 +847,10 @@ module Google
753
847
  # @return [Fixnum]
754
848
  attr_accessor :node_count
755
849
 
756
- # Optional: User defined parameters to apply to the memcached process on each
757
- # node.
850
+ # The unique ID associated with this set of parameters. Users can use this id to
851
+ # determine if the parameters associated with the instance differ from the
852
+ # parameters associated with the nodes. A discrepancy between parameter ids can
853
+ # inform users that they may need to take action to apply parameters on nodes.
758
854
  # Corresponds to the JSON property `parameters`
759
855
  # @return [Google::Apis::MemcacheV1beta2::MemcacheParameters]
760
856
  attr_accessor :parameters
@@ -764,12 +860,18 @@ module Google
764
860
  # @return [String]
765
861
  attr_accessor :state
766
862
 
863
+ # Output only. Returns true if there is an update waiting to be applied
864
+ # Corresponds to the JSON property `updateAvailable`
865
+ # @return [Boolean]
866
+ attr_accessor :update_available
867
+ alias_method :update_available?, :update_available
868
+
767
869
  # Output only. The time the instance was updated.
768
870
  # Corresponds to the JSON property `updateTime`
769
871
  # @return [String]
770
872
  attr_accessor :update_time
771
873
 
772
- # Zones where Memcached nodes should be provisioned in. Memcached nodes will be
874
+ # Zones in which Memcached nodes should be provisioned. Memcached nodes will be
773
875
  # equally distributed across these zones. If not provided, the service will by
774
876
  # default create nodes in all zones in the region for the instance.
775
877
  # Corresponds to the JSON property `zones`
@@ -796,6 +898,7 @@ module Google
796
898
  @node_count = args[:node_count] if args.key?(:node_count)
797
899
  @parameters = args[:parameters] if args.key?(:parameters)
798
900
  @state = args[:state] if args.key?(:state)
901
+ @update_available = args[:update_available] if args.key?(:update_available)
799
902
  @update_time = args[:update_time] if args.key?(:update_time)
800
903
  @zones = args[:zones] if args.key?(:zones)
801
904
  end
@@ -958,6 +1061,27 @@ module Google
958
1061
  end
959
1062
  end
960
1063
 
1064
+ # Metadata for the given google.cloud.location.Location.
1065
+ class LocationMetadata
1066
+ include Google::Apis::Core::Hashable
1067
+
1068
+ # Output only. The set of available zones in the location. The map is keyed by
1069
+ # the lowercase ID of each zone, as defined by GCE. These keys can be specified
1070
+ # in the `zones` field when creating a Memcached instance.
1071
+ # Corresponds to the JSON property `availableZones`
1072
+ # @return [Hash<String,Google::Apis::MemcacheV1beta2::ZoneMetadata>]
1073
+ attr_accessor :available_zones
1074
+
1075
+ def initialize(**args)
1076
+ update!(**args)
1077
+ end
1078
+
1079
+ # Update properties of this object
1080
+ def update!(**args)
1081
+ @available_zones = args[:available_zones] if args.key?(:available_zones)
1082
+ end
1083
+ end
1084
+
961
1085
  # Defines policies to service maintenance events.
962
1086
  class MaintenancePolicy
963
1087
  include Google::Apis::Core::Hashable
@@ -1045,14 +1169,14 @@ module Google
1045
1169
  end
1046
1170
  end
1047
1171
 
1048
- #
1172
+ # The unique ID associated with this set of parameters. Users can use this id to
1173
+ # determine if the parameters associated with the instance differ from the
1174
+ # parameters associated with the nodes. A discrepancy between parameter ids can
1175
+ # inform users that they may need to take action to apply parameters on nodes.
1049
1176
  class MemcacheParameters
1050
1177
  include Google::Apis::Core::Hashable
1051
1178
 
1052
- # Output only. The unique ID associated with this set of parameters. Users can
1053
- # use this id to determine if the parameters associated with the instance differ
1054
- # from the parameters associated with the nodes and any action needs to be taken
1055
- # to apply parameters on nodes.
1179
+ # Output only.
1056
1180
  # Corresponds to the JSON property `id`
1057
1181
  # @return [String]
1058
1182
  attr_accessor :id
@@ -1089,7 +1213,10 @@ module Google
1089
1213
  # @return [String]
1090
1214
  attr_accessor :node_id
1091
1215
 
1092
- # User defined parameters currently applied to the node.
1216
+ # The unique ID associated with this set of parameters. Users can use this id to
1217
+ # determine if the parameters associated with the instance differ from the
1218
+ # parameters associated with the nodes. A discrepancy between parameter ids can
1219
+ # inform users that they may need to take action to apply parameters on nodes.
1093
1220
  # Corresponds to the JSON property `parameters`
1094
1221
  # @return [Google::Apis::MemcacheV1beta2::MemcacheParameters]
1095
1222
  attr_accessor :parameters
@@ -1104,6 +1231,12 @@ module Google
1104
1231
  # @return [String]
1105
1232
  attr_accessor :state
1106
1233
 
1234
+ # Output only. Returns true if there is an update waiting to be applied
1235
+ # Corresponds to the JSON property `updateAvailable`
1236
+ # @return [Boolean]
1237
+ attr_accessor :update_available
1238
+ alias_method :update_available?, :update_available
1239
+
1107
1240
  # Output only. Location (GCP Zone) for the Memcached node.
1108
1241
  # Corresponds to the JSON property `zone`
1109
1242
  # @return [String]
@@ -1120,6 +1253,7 @@ module Google
1120
1253
  @parameters = args[:parameters] if args.key?(:parameters)
1121
1254
  @port = args[:port] if args.key?(:port)
1122
1255
  @state = args[:state] if args.key?(:state)
1256
+ @update_available = args[:update_available] if args.key?(:update_available)
1123
1257
  @zone = args[:zone] if args.key?(:zone)
1124
1258
  end
1125
1259
  end
@@ -1211,6 +1345,65 @@ module Google
1211
1345
  end
1212
1346
  end
1213
1347
 
1348
+ # Represents the metadata of a long-running operation.
1349
+ class OperationMetadata
1350
+ include Google::Apis::Core::Hashable
1351
+
1352
+ # Output only. API version used to start the operation.
1353
+ # Corresponds to the JSON property `apiVersion`
1354
+ # @return [String]
1355
+ attr_accessor :api_version
1356
+
1357
+ # Output only. Identifies whether the user has requested cancellation of the
1358
+ # operation. Operations that have successfully been cancelled have Operation.
1359
+ # error value with a google.rpc.Status.code of 1, corresponding to `Code.
1360
+ # CANCELLED`.
1361
+ # Corresponds to the JSON property `cancelRequested`
1362
+ # @return [Boolean]
1363
+ attr_accessor :cancel_requested
1364
+ alias_method :cancel_requested?, :cancel_requested
1365
+
1366
+ # Output only. Time when the operation was created.
1367
+ # Corresponds to the JSON property `createTime`
1368
+ # @return [String]
1369
+ attr_accessor :create_time
1370
+
1371
+ # Output only. Time when the operation finished running.
1372
+ # Corresponds to the JSON property `endTime`
1373
+ # @return [String]
1374
+ attr_accessor :end_time
1375
+
1376
+ # Output only. Human-readable status of the operation, if any.
1377
+ # Corresponds to the JSON property `statusDetail`
1378
+ # @return [String]
1379
+ attr_accessor :status_detail
1380
+
1381
+ # Output only. Server-defined resource path for the target of the operation.
1382
+ # Corresponds to the JSON property `target`
1383
+ # @return [String]
1384
+ attr_accessor :target
1385
+
1386
+ # Output only. Name of the verb executed by the operation.
1387
+ # Corresponds to the JSON property `verb`
1388
+ # @return [String]
1389
+ attr_accessor :verb
1390
+
1391
+ def initialize(**args)
1392
+ update!(**args)
1393
+ end
1394
+
1395
+ # Update properties of this object
1396
+ def update!(**args)
1397
+ @api_version = args[:api_version] if args.key?(:api_version)
1398
+ @cancel_requested = args[:cancel_requested] if args.key?(:cancel_requested)
1399
+ @create_time = args[:create_time] if args.key?(:create_time)
1400
+ @end_time = args[:end_time] if args.key?(:end_time)
1401
+ @status_detail = args[:status_detail] if args.key?(:status_detail)
1402
+ @target = args[:target] if args.key?(:target)
1403
+ @verb = args[:verb] if args.key?(:verb)
1404
+ end
1405
+ end
1406
+
1214
1407
  # Configure the schedule.
1215
1408
  class Schedule
1216
1409
  include Google::Apis::Core::Hashable
@@ -1328,7 +1521,10 @@ module Google
1328
1521
  class UpdateParametersRequest
1329
1522
  include Google::Apis::Core::Hashable
1330
1523
 
1331
- # The parameters to apply to the instance.
1524
+ # The unique ID associated with this set of parameters. Users can use this id to
1525
+ # determine if the parameters associated with the instance differ from the
1526
+ # parameters associated with the nodes. A discrepancy between parameter ids can
1527
+ # inform users that they may need to take action to apply parameters on nodes.
1332
1528
  # Corresponds to the JSON property `parameters`
1333
1529
  # @return [Google::Apis::MemcacheV1beta2::MemcacheParameters]
1334
1530
  attr_accessor :parameters
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module MemcacheV1beta2
18
18
  # Version of the google-apis-memcache_v1beta2 gem
19
- GEM_VERSION = "0.1.0"
19
+ GEM_VERSION = "0.6.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.1.1"
22
+ GENERATOR_VERSION = "0.2.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20201109"
25
+ REVISION = "20210504"
26
26
  end
27
27
  end
28
28
  end
@@ -28,6 +28,12 @@ module Google
28
28
  include Google::Apis::Core::JsonObjectSupport
29
29
  end
30
30
 
31
+ class ApplySoftwareUpdateRequest
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
31
37
  class CancelOperationRequest
32
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
39
 
@@ -70,6 +76,12 @@ module Google
70
76
  include Google::Apis::Core::JsonObjectSupport
71
77
  end
72
78
 
79
+ class GoogleCloudMemcacheV1beta2ZoneMetadata
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
73
85
  class GoogleCloudSaasacceleratorManagementProvidersV1Instance
74
86
  class Representation < Google::Apis::Core::JsonRepresentation; end
75
87
 
@@ -94,6 +106,12 @@ module Google
94
106
  include Google::Apis::Core::JsonObjectSupport
95
107
  end
96
108
 
109
+ class GoogleCloudSaasacceleratorManagementProvidersV1PerSliSloEligibility
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
97
115
  class GoogleCloudSaasacceleratorManagementProvidersV1ProvisionedResource
98
116
  class Representation < Google::Apis::Core::JsonRepresentation; end
99
117
 
@@ -154,6 +172,12 @@ module Google
154
172
  include Google::Apis::Core::JsonObjectSupport
155
173
  end
156
174
 
175
+ class LocationMetadata
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
157
181
  class MaintenancePolicy
158
182
  class Representation < Google::Apis::Core::JsonRepresentation; end
159
183
 
@@ -190,6 +214,12 @@ module Google
190
214
  include Google::Apis::Core::JsonObjectSupport
191
215
  end
192
216
 
217
+ class OperationMetadata
218
+ class Representation < Google::Apis::Core::JsonRepresentation; end
219
+
220
+ include Google::Apis::Core::JsonObjectSupport
221
+ end
222
+
193
223
  class Schedule
194
224
  class Representation < Google::Apis::Core::JsonRepresentation; end
195
225
 
@@ -240,6 +270,14 @@ module Google
240
270
  end
241
271
  end
242
272
 
273
+ class ApplySoftwareUpdateRequest
274
+ # @private
275
+ class Representation < Google::Apis::Core::JsonRepresentation
276
+ property :apply_all, as: 'applyAll'
277
+ collection :node_ids, as: 'nodeIds'
278
+ end
279
+ end
280
+
243
281
  class CancelOperationRequest
244
282
  # @private
245
283
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -285,7 +323,7 @@ module Google
285
323
  class GoogleCloudMemcacheV1beta2LocationMetadata
286
324
  # @private
287
325
  class Representation < Google::Apis::Core::JsonRepresentation
288
- hash :available_zones, as: 'availableZones', class: Google::Apis::MemcacheV1beta2::ZoneMetadata, decorator: Google::Apis::MemcacheV1beta2::ZoneMetadata::Representation
326
+ hash :available_zones, as: 'availableZones', class: Google::Apis::MemcacheV1beta2::GoogleCloudMemcacheV1beta2ZoneMetadata, decorator: Google::Apis::MemcacheV1beta2::GoogleCloudMemcacheV1beta2ZoneMetadata::Representation
289
327
 
290
328
  end
291
329
  end
@@ -303,6 +341,12 @@ module Google
303
341
  end
304
342
  end
305
343
 
344
+ class GoogleCloudMemcacheV1beta2ZoneMetadata
345
+ # @private
346
+ class Representation < Google::Apis::Core::JsonRepresentation
347
+ end
348
+ end
349
+
306
350
  class GoogleCloudSaasacceleratorManagementProvidersV1Instance
307
351
  # @private
308
352
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -334,6 +378,7 @@ module Google
334
378
  property :can_reschedule, as: 'canReschedule'
335
379
  property :end_time, as: 'endTime'
336
380
  property :rollout_management_policy, as: 'rolloutManagementPolicy'
381
+ property :schedule_deadline_time, as: 'scheduleDeadlineTime'
337
382
  property :start_time, as: 'startTime'
338
383
  end
339
384
  end
@@ -342,6 +387,7 @@ module Google
342
387
  # @private
343
388
  class Representation < Google::Apis::Core::JsonRepresentation
344
389
  property :exclude, as: 'exclude'
390
+ property :is_rollback, as: 'isRollback'
345
391
  hash :maintenance_policies, as: 'maintenancePolicies', class: Google::Apis::MemcacheV1beta2::MaintenancePolicy, decorator: Google::Apis::MemcacheV1beta2::MaintenancePolicy::Representation
346
392
 
347
393
  end
@@ -357,6 +403,14 @@ module Google
357
403
  end
358
404
  end
359
405
 
406
+ class GoogleCloudSaasacceleratorManagementProvidersV1PerSliSloEligibility
407
+ # @private
408
+ class Representation < Google::Apis::Core::JsonRepresentation
409
+ hash :eligibilities, as: 'eligibilities', class: Google::Apis::MemcacheV1beta2::GoogleCloudSaasacceleratorManagementProvidersV1SloEligibility, decorator: Google::Apis::MemcacheV1beta2::GoogleCloudSaasacceleratorManagementProvidersV1SloEligibility::Representation
410
+
411
+ end
412
+ end
413
+
360
414
  class GoogleCloudSaasacceleratorManagementProvidersV1ProvisionedResource
361
415
  # @private
362
416
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -392,6 +446,8 @@ module Google
392
446
 
393
447
  collection :nodes, as: 'nodes', class: Google::Apis::MemcacheV1beta2::GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata, decorator: Google::Apis::MemcacheV1beta2::GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata::Representation
394
448
 
449
+ property :per_sli_eligibility, as: 'perSliEligibility', class: Google::Apis::MemcacheV1beta2::GoogleCloudSaasacceleratorManagementProvidersV1PerSliSloEligibility, decorator: Google::Apis::MemcacheV1beta2::GoogleCloudSaasacceleratorManagementProvidersV1PerSliSloEligibility::Representation
450
+
395
451
  property :tier, as: 'tier'
396
452
  end
397
453
  end
@@ -417,6 +473,7 @@ module Google
417
473
  property :parameters, as: 'parameters', class: Google::Apis::MemcacheV1beta2::MemcacheParameters, decorator: Google::Apis::MemcacheV1beta2::MemcacheParameters::Representation
418
474
 
419
475
  property :state, as: 'state'
476
+ property :update_available, as: 'updateAvailable'
420
477
  property :update_time, as: 'updateTime'
421
478
  collection :zones, as: 'zones'
422
479
  end
@@ -469,6 +526,14 @@ module Google
469
526
  end
470
527
  end
471
528
 
529
+ class LocationMetadata
530
+ # @private
531
+ class Representation < Google::Apis::Core::JsonRepresentation
532
+ hash :available_zones, as: 'availableZones', class: Google::Apis::MemcacheV1beta2::ZoneMetadata, decorator: Google::Apis::MemcacheV1beta2::ZoneMetadata::Representation
533
+
534
+ end
535
+ end
536
+
472
537
  class MaintenancePolicy
473
538
  # @private
474
539
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -510,6 +575,7 @@ module Google
510
575
 
511
576
  property :port, as: 'port'
512
577
  property :state, as: 'state'
578
+ property :update_available, as: 'updateAvailable'
513
579
  property :zone, as: 'zone'
514
580
  end
515
581
  end
@@ -534,6 +600,19 @@ module Google
534
600
  end
535
601
  end
536
602
 
603
+ class OperationMetadata
604
+ # @private
605
+ class Representation < Google::Apis::Core::JsonRepresentation
606
+ property :api_version, as: 'apiVersion'
607
+ property :cancel_requested, as: 'cancelRequested'
608
+ property :create_time, as: 'createTime'
609
+ property :end_time, as: 'endTime'
610
+ property :status_detail, as: 'statusDetail'
611
+ property :target, as: 'target'
612
+ property :verb, as: 'verb'
613
+ end
614
+ end
615
+
537
616
  class Schedule
538
617
  # @private
539
618
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -84,11 +84,15 @@ module Google
84
84
  # @param [String] name
85
85
  # The resource that owns the locations collection, if applicable.
86
86
  # @param [String] filter
87
- # The standard list filter.
87
+ # A filter to narrow down results to a preferred subset. The filtering language
88
+ # accepts strings like "displayName=tokyo", and is documented in more detail in [
89
+ # AIP-160](https://google.aip.dev/160).
88
90
  # @param [Fixnum] page_size
89
- # The standard list page size.
91
+ # The maximum number of results to return. If not set, the service selects a
92
+ # default.
90
93
  # @param [String] page_token
91
- # The standard list page token.
94
+ # A page token received from the `next_page_token` field in the response. Send
95
+ # that page token to receive the subsequent page.
92
96
  # @param [String] fields
93
97
  # Selector specifying which fields to include in a partial response.
94
98
  # @param [String] quota_user
@@ -119,8 +123,8 @@ module Google
119
123
  execute_or_queue_command(command, &block)
120
124
  end
121
125
 
122
- # ApplyParameters will restart the set of specified nodes in order to update
123
- # them to the current set of parameters for the Memcached Instance.
126
+ # `ApplyParameters` restarts the set of specified nodes in order to update them
127
+ # to the current set of parameters for the Memcached Instance.
124
128
  # @param [String] name
125
129
  # Required. Resource name of the Memcached instance for which parameter group
126
130
  # updates should be applied.
@@ -154,6 +158,40 @@ module Google
154
158
  execute_or_queue_command(command, &block)
155
159
  end
156
160
 
161
+ # Updates software on the selected nodes of the Instance.
162
+ # @param [String] instance
163
+ # Required. Resource name of the Memcached instance for which software update
164
+ # should be applied.
165
+ # @param [Google::Apis::MemcacheV1beta2::ApplySoftwareUpdateRequest] apply_software_update_request_object
166
+ # @param [String] fields
167
+ # Selector specifying which fields to include in a partial response.
168
+ # @param [String] quota_user
169
+ # Available to use for quota purposes for server-side applications. Can be any
170
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
171
+ # @param [Google::Apis::RequestOptions] options
172
+ # Request-specific options
173
+ #
174
+ # @yield [result, err] Result & error if block supplied
175
+ # @yieldparam result [Google::Apis::MemcacheV1beta2::Operation] parsed result object
176
+ # @yieldparam err [StandardError] error object if request failed
177
+ #
178
+ # @return [Google::Apis::MemcacheV1beta2::Operation]
179
+ #
180
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
181
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
182
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
183
+ def apply_instance_software_update(instance, apply_software_update_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
184
+ command = make_simple_command(:post, 'v1beta2/{+instance}:applySoftwareUpdate', options)
185
+ command.request_representation = Google::Apis::MemcacheV1beta2::ApplySoftwareUpdateRequest::Representation
186
+ command.request_object = apply_software_update_request_object
187
+ command.response_representation = Google::Apis::MemcacheV1beta2::Operation::Representation
188
+ command.response_class = Google::Apis::MemcacheV1beta2::Operation
189
+ command.params['instance'] = instance unless instance.nil?
190
+ command.query['fields'] = fields unless fields.nil?
191
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
192
+ execute_or_queue_command(command, &block)
193
+ end
194
+
157
195
  # Creates a new Instance in a given location.
158
196
  # @param [String] parent
159
197
  # Required. The resource name of the instance location using the form: `projects/
@@ -165,7 +203,8 @@ module Google
165
203
  # the following restrictions: * Must contain only lowercase letters, numbers,
166
204
  # and hyphens. * Must start with a letter. * Must be between 1-40 characters. *
167
205
  # Must end with a number or a letter. * Must be unique within the user project /
168
- # location If any of the above are not met, will raise an invalid argument error.
206
+ # location. If any of the above are not met, the API raises an invalid argument
207
+ # error.
169
208
  # @param [String] fields
170
209
  # Selector specifying which fields to include in a partial response.
171
210
  # @param [String] quota_user
@@ -267,16 +306,17 @@ module Google
267
306
  # region
268
307
  # @param [String] filter
269
308
  # List filter. For example, exclude all Memcached instances with name as my-
270
- # instance by specifying "name != my-instance".
309
+ # instance by specifying `"name != my-instance"`.
271
310
  # @param [String] order_by
272
311
  # Sort results. Supported values are "name", "name desc" or "" (unsorted).
273
312
  # @param [Fixnum] page_size
274
313
  # The maximum number of items to return. If not specified, a default value of
275
- # 1000 will be used by the service. Regardless of the page_size value, the
314
+ # 1000 will be used by the service. Regardless of the `page_size` value, the
276
315
  # response may include a partial list and a caller should only rely on response'
277
- # s next_page_token to determine if there are more instances left to be queried.
316
+ # s `next_page_token` to determine if there are more instances left to be
317
+ # queried.
278
318
  # @param [String] page_token
279
- # The next_page_token value returned from a previous List request, if any.
319
+ # The `next_page_token` value returned from a previous List request, if any.
280
320
  # @param [String] fields
281
321
  # Selector specifying which fields to include in a partial response.
282
322
  # @param [String] quota_user
@@ -313,9 +353,9 @@ module Google
313
353
  # Required. Unique name of the resource in this scope including project and
314
354
  # location using the form: `projects/`project_id`/locations/`location_id`/
315
355
  # instances/`instance_id`` Note: Memcached instances are managed and addressed
316
- # at regional level so location_id here refers to a GCP region; however, users
317
- # may choose which zones Memcached nodes within an instances should be
318
- # provisioned in. Refer to [zones] field for more details.
356
+ # at the regional level so `location_id` here refers to a Google Cloud region;
357
+ # however, users may choose which zones Memcached nodes should be provisioned in
358
+ # within an instance. Refer to zones field for more details.
319
359
  # @param [Google::Apis::MemcacheV1beta2::Instance] instance_object
320
360
  # @param [String] update_mask
321
361
  # Required. Mask of fields to update. * `displayName`
@@ -349,9 +389,9 @@ module Google
349
389
  execute_or_queue_command(command, &block)
350
390
  end
351
391
 
352
- # Updates the defined Memcached Parameters for an existing Instance. This method
353
- # only stages the parameters, it must be followed by ApplyParameters to apply
354
- # the parameters to nodes of the Memcached Instance.
392
+ # Updates the defined Memcached parameters for an existing instance. This method
393
+ # only stages the parameters, it must be followed by `ApplyParameters` to apply
394
+ # the parameters to nodes of the Memcached instance.
355
395
  # @param [String] name
356
396
  # Required. Resource name of the Memcached instance for which the parameters
357
397
  # should be updated.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-memcache_v1beta2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-08 00:00:00.000000000 Z
11
+ date: 2021-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -52,7 +52,7 @@ licenses:
52
52
  metadata:
53
53
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
54
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-memcache_v1beta2/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-memcache_v1beta2/v0.1.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-memcache_v1beta2/v0.6.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-memcache_v1beta2
57
57
  post_install_message:
58
58
  rdoc_options: []
@@ -62,14 +62,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
62
62
  requirements:
63
63
  - - ">="
64
64
  - !ruby/object:Gem::Version
65
- version: '2.4'
65
+ version: '2.5'
66
66
  required_rubygems_version: !ruby/object:Gem::Requirement
67
67
  requirements:
68
68
  - - ">="
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 3.1.4
72
+ rubygems_version: 3.2.17
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Simple REST client for Cloud Memorystore for Memcached API V1beta2