google-cloud-memorystore-v1beta 0.14.1 → 0.16.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.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -4
  3. data/lib/google/cloud/memorystore/v1beta/bindings_override.rb +1 -1
  4. data/lib/google/cloud/memorystore/v1beta/memorystore/client.rb +943 -166
  5. data/lib/google/cloud/memorystore/v1beta/memorystore/credentials.rb +1 -1
  6. data/lib/google/cloud/memorystore/v1beta/memorystore/paths.rb +41 -1
  7. data/lib/google/cloud/memorystore/v1beta/memorystore/rest/client.rb +732 -4
  8. data/lib/google/cloud/memorystore/v1beta/memorystore/rest/operations.rb +1 -1
  9. data/lib/google/cloud/memorystore/v1beta/memorystore/rest/service_stub.rb +430 -1
  10. data/lib/google/cloud/memorystore/v1beta/memorystore/rest.rb +1 -1
  11. data/lib/google/cloud/memorystore/v1beta/memorystore.rb +1 -1
  12. data/lib/google/cloud/memorystore/v1beta/memorystore_pb.rb +18 -1
  13. data/lib/google/cloud/memorystore/v1beta/memorystore_services_pb.rb +36 -1
  14. data/lib/google/cloud/memorystore/v1beta/rest.rb +1 -1
  15. data/lib/google/cloud/memorystore/v1beta/version.rb +1 -1
  16. data/lib/google/cloud/memorystore/v1beta.rb +1 -1
  17. data/lib/google-cloud-memorystore-v1beta.rb +1 -1
  18. data/proto_docs/google/api/client.rb +1 -1
  19. data/proto_docs/google/api/field_behavior.rb +1 -1
  20. data/proto_docs/google/api/field_info.rb +1 -1
  21. data/proto_docs/google/api/launch_stage.rb +1 -1
  22. data/proto_docs/google/api/resource.rb +1 -1
  23. data/proto_docs/google/cloud/memorystore/v1beta/memorystore.rb +333 -1
  24. data/proto_docs/google/longrunning/operations.rb +1 -1
  25. data/proto_docs/google/protobuf/any.rb +1 -1
  26. data/proto_docs/google/protobuf/duration.rb +1 -1
  27. data/proto_docs/google/protobuf/empty.rb +1 -1
  28. data/proto_docs/google/protobuf/field_mask.rb +1 -1
  29. data/proto_docs/google/protobuf/timestamp.rb +8 -7
  30. data/proto_docs/google/rpc/status.rb +1 -1
  31. metadata +10 -8
@@ -71,20 +71,46 @@ module Google
71
71
  end
72
72
  default_config = Client::Configuration.new parent_config
73
73
 
74
+ default_config.rpcs.list_acl_policies.timeout = 60.0
75
+ default_config.rpcs.list_acl_policies.retry_policy = {
76
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
77
+ }
78
+
74
79
  default_config.rpcs.list_instances.timeout = 60.0
75
80
  default_config.rpcs.list_instances.retry_policy = {
76
81
  initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
77
82
  }
78
83
 
84
+ default_config.rpcs.get_acl_policy.timeout = 60.0
85
+ default_config.rpcs.get_acl_policy.retry_policy = {
86
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
87
+ }
88
+
79
89
  default_config.rpcs.get_instance.timeout = 60.0
80
90
  default_config.rpcs.get_instance.retry_policy = {
81
91
  initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
82
92
  }
83
93
 
94
+ default_config.rpcs.create_acl_policy.timeout = 600.0
95
+
84
96
  default_config.rpcs.create_instance.timeout = 600.0
85
97
 
98
+ default_config.rpcs.update_acl_policy.timeout = 600.0
99
+
86
100
  default_config.rpcs.update_instance.timeout = 600.0
87
101
 
102
+ default_config.rpcs.delete_acl_policy.timeout = 600.0
103
+
104
+ default_config.rpcs.get_acl_policy_revision.timeout = 60.0
105
+ default_config.rpcs.get_acl_policy_revision.retry_policy = {
106
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
107
+ }
108
+
109
+ default_config.rpcs.list_acl_policy_revisions.timeout = 60.0
110
+ default_config.rpcs.list_acl_policy_revisions.retry_policy = {
111
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
112
+ }
113
+
88
114
  default_config.rpcs.delete_instance.timeout = 600.0
89
115
 
90
116
  default_config.rpcs.get_certificate_authority.timeout = 60.0
@@ -234,6 +260,120 @@ module Google
234
260
 
235
261
  # Service calls
236
262
 
263
+ ##
264
+ # Lists all ACL policies owned by a project in either the specified
265
+ # location (region) or all locations.
266
+ #
267
+ # The location should have the following format:
268
+ #
269
+ # * `projects/{project_id}/locations/{location_id}`
270
+ #
271
+ # If `location_id` is specified as `-` (wildcard), then all regions
272
+ # available to the project are queried, and the results are aggregated.
273
+ #
274
+ # @overload list_acl_policies(request, options = nil)
275
+ # Pass arguments to `list_acl_policies` via a request object, either of type
276
+ # {::Google::Cloud::Memorystore::V1beta::ListAclPoliciesRequest} or an equivalent Hash.
277
+ #
278
+ # @param request [::Google::Cloud::Memorystore::V1beta::ListAclPoliciesRequest, ::Hash]
279
+ # A request object representing the call parameters. Required. To specify no
280
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
281
+ # @param options [::Gapic::CallOptions, ::Hash]
282
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
283
+ #
284
+ # @overload list_acl_policies(parent: nil, page_size: nil, page_token: nil)
285
+ # Pass arguments to `list_acl_policies` via keyword arguments. Note that at
286
+ # least one keyword argument is required. To specify no parameters, or to keep all
287
+ # the default parameter values, pass an empty Hash as a request object (see above).
288
+ #
289
+ # @param parent [::String]
290
+ # Required. The resource name of the ACL policy location using the form:
291
+ # `projects/{project}/locations/{location}`
292
+ # where `location` refers to a Google Cloud region.
293
+ # @param page_size [::Integer]
294
+ # Optional. The maximum number of items to return.
295
+ #
296
+ # If not specified, a default value of 1000 will be used by the service.
297
+ # Regardless of the page_size value, the response may include a partial list
298
+ # and a caller should only rely on response's
299
+ # `next_page_token`
300
+ # to determine if there are more ACL policies left to be queried.
301
+ #
302
+ # The maximum value is 1000; values above 1000 will be coerced to 1000.
303
+ # @param page_token [::String]
304
+ # Optional. The `next_page_token` value returned from a previous
305
+ # `ListAclPolicies` request, if any.
306
+ #
307
+ # @yield [response, operation] Access the result along with the RPC operation
308
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Memorystore::V1beta::AclPolicy>]
309
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
310
+ #
311
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Memorystore::V1beta::AclPolicy>]
312
+ #
313
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
314
+ #
315
+ # @example Basic example
316
+ # require "google/cloud/memorystore/v1beta"
317
+ #
318
+ # # Create a client object. The client can be reused for multiple calls.
319
+ # client = Google::Cloud::Memorystore::V1beta::Memorystore::Client.new
320
+ #
321
+ # # Create a request. To set request fields, pass in keyword arguments.
322
+ # request = Google::Cloud::Memorystore::V1beta::ListAclPoliciesRequest.new
323
+ #
324
+ # # Call the list_acl_policies method.
325
+ # result = client.list_acl_policies request
326
+ #
327
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
328
+ # # over elements, and API calls will be issued to fetch pages as needed.
329
+ # result.each do |item|
330
+ # # Each element is of type ::Google::Cloud::Memorystore::V1beta::AclPolicy.
331
+ # p item
332
+ # end
333
+ #
334
+ def list_acl_policies request, options = nil
335
+ raise ::ArgumentError, "request must be provided" if request.nil?
336
+
337
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Memorystore::V1beta::ListAclPoliciesRequest
338
+
339
+ # Converts hash and nil to an options object
340
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
341
+
342
+ # Customize the options with defaults
343
+ metadata = @config.rpcs.list_acl_policies.metadata.to_h
344
+
345
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
346
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
347
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
348
+ gapic_version: ::Google::Cloud::Memorystore::V1beta::VERSION
349
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
350
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
351
+
352
+ header_params = {}
353
+ if request.parent
354
+ header_params["parent"] = request.parent
355
+ end
356
+
357
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
358
+ metadata[:"x-goog-request-params"] ||= request_params_header
359
+
360
+ options.apply_defaults timeout: @config.rpcs.list_acl_policies.timeout,
361
+ metadata: metadata,
362
+ retry_policy: @config.rpcs.list_acl_policies.retry_policy
363
+
364
+ options.apply_defaults timeout: @config.timeout,
365
+ metadata: @config.metadata,
366
+ retry_policy: @config.retry_policy
367
+
368
+ @memorystore_stub.call_rpc :list_acl_policies, request, options: options do |response, operation|
369
+ response = ::Gapic::PagedEnumerable.new @memorystore_stub, :list_acl_policies, request, response, operation, options
370
+ yield response, operation if block_given?
371
+ throw :response, response
372
+ end
373
+ rescue ::GRPC::BadStatus => e
374
+ raise ::Google::Cloud::Error.from_error(e)
375
+ end
376
+
237
377
  ##
238
378
  # Lists Instances in a given project and location.
239
379
  #
@@ -252,25 +392,642 @@ module Google
252
392
  # least one keyword argument is required. To specify no parameters, or to keep all
253
393
  # the default parameter values, pass an empty Hash as a request object (see above).
254
394
  #
255
- # @param parent [::String]
256
- # Required. The parent to list instances from.
257
- # Format: projects/\\{project}/locations/\\{location}
258
- # @param page_size [::Integer]
259
- # Optional. Requested page size. Server may return fewer items than
260
- # requested. If unspecified, server will pick an appropriate default.
261
- # @param page_token [::String]
262
- # Optional. A token identifying a page of results the server should return.
263
- # @param filter [::String]
264
- # Optional. Expression for filtering results.
265
- # @param order_by [::String]
266
- # Optional. Sort results by a defined order. Supported values: "name",
267
- # "create_time".
395
+ # @param parent [::String]
396
+ # Required. The parent to list instances from.
397
+ # Format: projects/\\{project}/locations/\\{location}
398
+ # @param page_size [::Integer]
399
+ # Optional. Requested page size. Server may return fewer items than
400
+ # requested. If unspecified, server will pick an appropriate default.
401
+ # @param page_token [::String]
402
+ # Optional. A token identifying a page of results the server should return.
403
+ # @param filter [::String]
404
+ # Optional. Expression for filtering results.
405
+ # @param order_by [::String]
406
+ # Optional. Sort results by a defined order. Supported values: "name",
407
+ # "create_time".
408
+ #
409
+ # @yield [response, operation] Access the result along with the RPC operation
410
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Memorystore::V1beta::Instance>]
411
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
412
+ #
413
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Memorystore::V1beta::Instance>]
414
+ #
415
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
416
+ #
417
+ # @example Basic example
418
+ # require "google/cloud/memorystore/v1beta"
419
+ #
420
+ # # Create a client object. The client can be reused for multiple calls.
421
+ # client = Google::Cloud::Memorystore::V1beta::Memorystore::Client.new
422
+ #
423
+ # # Create a request. To set request fields, pass in keyword arguments.
424
+ # request = Google::Cloud::Memorystore::V1beta::ListInstancesRequest.new
425
+ #
426
+ # # Call the list_instances method.
427
+ # result = client.list_instances request
428
+ #
429
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
430
+ # # over elements, and API calls will be issued to fetch pages as needed.
431
+ # result.each do |item|
432
+ # # Each element is of type ::Google::Cloud::Memorystore::V1beta::Instance.
433
+ # p item
434
+ # end
435
+ #
436
+ def list_instances request, options = nil
437
+ raise ::ArgumentError, "request must be provided" if request.nil?
438
+
439
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Memorystore::V1beta::ListInstancesRequest
440
+
441
+ # Converts hash and nil to an options object
442
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
443
+
444
+ # Customize the options with defaults
445
+ metadata = @config.rpcs.list_instances.metadata.to_h
446
+
447
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
448
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
449
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
450
+ gapic_version: ::Google::Cloud::Memorystore::V1beta::VERSION
451
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
452
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
453
+
454
+ header_params = {}
455
+ if request.parent
456
+ header_params["parent"] = request.parent
457
+ end
458
+
459
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
460
+ metadata[:"x-goog-request-params"] ||= request_params_header
461
+
462
+ options.apply_defaults timeout: @config.rpcs.list_instances.timeout,
463
+ metadata: metadata,
464
+ retry_policy: @config.rpcs.list_instances.retry_policy
465
+
466
+ options.apply_defaults timeout: @config.timeout,
467
+ metadata: @config.metadata,
468
+ retry_policy: @config.retry_policy
469
+
470
+ @memorystore_stub.call_rpc :list_instances, request, options: options do |response, operation|
471
+ response = ::Gapic::PagedEnumerable.new @memorystore_stub, :list_instances, request, response, operation, options
472
+ yield response, operation if block_given?
473
+ throw :response, response
474
+ end
475
+ rescue ::GRPC::BadStatus => e
476
+ raise ::Google::Cloud::Error.from_error(e)
477
+ end
478
+
479
+ ##
480
+ # Gets the details of a specific Memorystore ACL policy.
481
+ #
482
+ # @overload get_acl_policy(request, options = nil)
483
+ # Pass arguments to `get_acl_policy` via a request object, either of type
484
+ # {::Google::Cloud::Memorystore::V1beta::GetAclPolicyRequest} or an equivalent Hash.
485
+ #
486
+ # @param request [::Google::Cloud::Memorystore::V1beta::GetAclPolicyRequest, ::Hash]
487
+ # A request object representing the call parameters. Required. To specify no
488
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
489
+ # @param options [::Gapic::CallOptions, ::Hash]
490
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
491
+ #
492
+ # @overload get_acl_policy(name: nil)
493
+ # Pass arguments to `get_acl_policy` via keyword arguments. Note that at
494
+ # least one keyword argument is required. To specify no parameters, or to keep all
495
+ # the default parameter values, pass an empty Hash as a request object (see above).
496
+ #
497
+ # @param name [::String]
498
+ # Required. Memorystore ACL policy resource name using the form:
499
+ # `projects/{project}/locations/{location}/aclPolicies/{acl_policy}`
500
+ # where `location` refers to a Google Cloud region.
501
+ #
502
+ # @yield [response, operation] Access the result along with the RPC operation
503
+ # @yieldparam response [::Google::Cloud::Memorystore::V1beta::AclPolicy]
504
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
505
+ #
506
+ # @return [::Google::Cloud::Memorystore::V1beta::AclPolicy]
507
+ #
508
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
509
+ #
510
+ # @example Basic example
511
+ # require "google/cloud/memorystore/v1beta"
512
+ #
513
+ # # Create a client object. The client can be reused for multiple calls.
514
+ # client = Google::Cloud::Memorystore::V1beta::Memorystore::Client.new
515
+ #
516
+ # # Create a request. To set request fields, pass in keyword arguments.
517
+ # request = Google::Cloud::Memorystore::V1beta::GetAclPolicyRequest.new
518
+ #
519
+ # # Call the get_acl_policy method.
520
+ # result = client.get_acl_policy request
521
+ #
522
+ # # The returned object is of type Google::Cloud::Memorystore::V1beta::AclPolicy.
523
+ # p result
524
+ #
525
+ def get_acl_policy request, options = nil
526
+ raise ::ArgumentError, "request must be provided" if request.nil?
527
+
528
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Memorystore::V1beta::GetAclPolicyRequest
529
+
530
+ # Converts hash and nil to an options object
531
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
532
+
533
+ # Customize the options with defaults
534
+ metadata = @config.rpcs.get_acl_policy.metadata.to_h
535
+
536
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
537
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
538
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
539
+ gapic_version: ::Google::Cloud::Memorystore::V1beta::VERSION
540
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
541
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
542
+
543
+ header_params = {}
544
+ if request.name
545
+ header_params["name"] = request.name
546
+ end
547
+
548
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
549
+ metadata[:"x-goog-request-params"] ||= request_params_header
550
+
551
+ options.apply_defaults timeout: @config.rpcs.get_acl_policy.timeout,
552
+ metadata: metadata,
553
+ retry_policy: @config.rpcs.get_acl_policy.retry_policy
554
+
555
+ options.apply_defaults timeout: @config.timeout,
556
+ metadata: @config.metadata,
557
+ retry_policy: @config.retry_policy
558
+
559
+ @memorystore_stub.call_rpc :get_acl_policy, request, options: options do |response, operation|
560
+ yield response, operation if block_given?
561
+ end
562
+ rescue ::GRPC::BadStatus => e
563
+ raise ::Google::Cloud::Error.from_error(e)
564
+ end
565
+
566
+ ##
567
+ # Gets details of a single Instance.
568
+ #
569
+ # @overload get_instance(request, options = nil)
570
+ # Pass arguments to `get_instance` via a request object, either of type
571
+ # {::Google::Cloud::Memorystore::V1beta::GetInstanceRequest} or an equivalent Hash.
572
+ #
573
+ # @param request [::Google::Cloud::Memorystore::V1beta::GetInstanceRequest, ::Hash]
574
+ # A request object representing the call parameters. Required. To specify no
575
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
576
+ # @param options [::Gapic::CallOptions, ::Hash]
577
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
578
+ #
579
+ # @overload get_instance(name: nil)
580
+ # Pass arguments to `get_instance` via keyword arguments. Note that at
581
+ # least one keyword argument is required. To specify no parameters, or to keep all
582
+ # the default parameter values, pass an empty Hash as a request object (see above).
583
+ #
584
+ # @param name [::String]
585
+ # Required. The name of the instance to retrieve.
586
+ # Format: projects/\\{project}/locations/\\{location}/instances/\\{instance}
587
+ #
588
+ # @yield [response, operation] Access the result along with the RPC operation
589
+ # @yieldparam response [::Google::Cloud::Memorystore::V1beta::Instance]
590
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
591
+ #
592
+ # @return [::Google::Cloud::Memorystore::V1beta::Instance]
593
+ #
594
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
595
+ #
596
+ # @example Basic example
597
+ # require "google/cloud/memorystore/v1beta"
598
+ #
599
+ # # Create a client object. The client can be reused for multiple calls.
600
+ # client = Google::Cloud::Memorystore::V1beta::Memorystore::Client.new
601
+ #
602
+ # # Create a request. To set request fields, pass in keyword arguments.
603
+ # request = Google::Cloud::Memorystore::V1beta::GetInstanceRequest.new
604
+ #
605
+ # # Call the get_instance method.
606
+ # result = client.get_instance request
607
+ #
608
+ # # The returned object is of type Google::Cloud::Memorystore::V1beta::Instance.
609
+ # p result
610
+ #
611
+ def get_instance request, options = nil
612
+ raise ::ArgumentError, "request must be provided" if request.nil?
613
+
614
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Memorystore::V1beta::GetInstanceRequest
615
+
616
+ # Converts hash and nil to an options object
617
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
618
+
619
+ # Customize the options with defaults
620
+ metadata = @config.rpcs.get_instance.metadata.to_h
621
+
622
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
623
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
624
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
625
+ gapic_version: ::Google::Cloud::Memorystore::V1beta::VERSION
626
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
627
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
628
+
629
+ header_params = {}
630
+ if request.name
631
+ header_params["name"] = request.name
632
+ end
633
+
634
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
635
+ metadata[:"x-goog-request-params"] ||= request_params_header
636
+
637
+ options.apply_defaults timeout: @config.rpcs.get_instance.timeout,
638
+ metadata: metadata,
639
+ retry_policy: @config.rpcs.get_instance.retry_policy
640
+
641
+ options.apply_defaults timeout: @config.timeout,
642
+ metadata: @config.metadata,
643
+ retry_policy: @config.retry_policy
644
+
645
+ @memorystore_stub.call_rpc :get_instance, request, options: options do |response, operation|
646
+ yield response, operation if block_given?
647
+ end
648
+ rescue ::GRPC::BadStatus => e
649
+ raise ::Google::Cloud::Error.from_error(e)
650
+ end
651
+
652
+ ##
653
+ # Creates an ACL policy.
654
+ # The creation is executed synchronously and the policy is available for use
655
+ # immediately after the RPC returns.
656
+ #
657
+ # @overload create_acl_policy(request, options = nil)
658
+ # Pass arguments to `create_acl_policy` via a request object, either of type
659
+ # {::Google::Cloud::Memorystore::V1beta::CreateAclPolicyRequest} or an equivalent Hash.
660
+ #
661
+ # @param request [::Google::Cloud::Memorystore::V1beta::CreateAclPolicyRequest, ::Hash]
662
+ # A request object representing the call parameters. Required. To specify no
663
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
664
+ # @param options [::Gapic::CallOptions, ::Hash]
665
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
666
+ #
667
+ # @overload create_acl_policy(parent: nil, acl_policy_id: nil, acl_policy: nil, request_id: nil)
668
+ # Pass arguments to `create_acl_policy` via keyword arguments. Note that at
669
+ # least one keyword argument is required. To specify no parameters, or to keep all
670
+ # the default parameter values, pass an empty Hash as a request object (see above).
671
+ #
672
+ # @param parent [::String]
673
+ # Required. The resource name of the ACL policy location using the form:
674
+ # `projects/{project}/locations/{location}`
675
+ # where `location` refers to a Google Cloud region.
676
+ # @param acl_policy_id [::String]
677
+ # Required. The logical name of the ACL policy in the customer project
678
+ # with the following restrictions:
679
+ #
680
+ # * Must contain only lowercase letters, numbers, and hyphens.
681
+ # * Must start with a letter.
682
+ # * Must be between 1-63 characters.
683
+ # * Must end with a number or a letter.
684
+ # * Must be unique within the customer project / location
685
+ # @param acl_policy [::Google::Cloud::Memorystore::V1beta::AclPolicy, ::Hash]
686
+ # Required. The ACL policy that is to be created.
687
+ # @param request_id [::String]
688
+ # Optional. Idempotent request UUID.
689
+ # .
690
+ #
691
+ # @yield [response, operation] Access the result along with the RPC operation
692
+ # @yieldparam response [::Google::Cloud::Memorystore::V1beta::AclPolicy]
693
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
694
+ #
695
+ # @return [::Google::Cloud::Memorystore::V1beta::AclPolicy]
696
+ #
697
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
698
+ #
699
+ # @example Basic example
700
+ # require "google/cloud/memorystore/v1beta"
701
+ #
702
+ # # Create a client object. The client can be reused for multiple calls.
703
+ # client = Google::Cloud::Memorystore::V1beta::Memorystore::Client.new
704
+ #
705
+ # # Create a request. To set request fields, pass in keyword arguments.
706
+ # request = Google::Cloud::Memorystore::V1beta::CreateAclPolicyRequest.new
707
+ #
708
+ # # Call the create_acl_policy method.
709
+ # result = client.create_acl_policy request
710
+ #
711
+ # # The returned object is of type Google::Cloud::Memorystore::V1beta::AclPolicy.
712
+ # p result
713
+ #
714
+ def create_acl_policy request, options = nil
715
+ raise ::ArgumentError, "request must be provided" if request.nil?
716
+
717
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Memorystore::V1beta::CreateAclPolicyRequest
718
+
719
+ # Converts hash and nil to an options object
720
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
721
+
722
+ # Customize the options with defaults
723
+ metadata = @config.rpcs.create_acl_policy.metadata.to_h
724
+
725
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
726
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
727
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
728
+ gapic_version: ::Google::Cloud::Memorystore::V1beta::VERSION
729
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
730
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
731
+
732
+ header_params = {}
733
+ if request.parent
734
+ header_params["parent"] = request.parent
735
+ end
736
+
737
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
738
+ metadata[:"x-goog-request-params"] ||= request_params_header
739
+
740
+ options.apply_defaults timeout: @config.rpcs.create_acl_policy.timeout,
741
+ metadata: metadata,
742
+ retry_policy: @config.rpcs.create_acl_policy.retry_policy
743
+
744
+ options.apply_defaults timeout: @config.timeout,
745
+ metadata: @config.metadata,
746
+ retry_policy: @config.retry_policy
747
+
748
+ @memorystore_stub.call_rpc :create_acl_policy, request, options: options do |response, operation|
749
+ yield response, operation if block_given?
750
+ end
751
+ rescue ::GRPC::BadStatus => e
752
+ raise ::Google::Cloud::Error.from_error(e)
753
+ end
754
+
755
+ ##
756
+ # Creates a new Instance in a given project and location.
757
+ #
758
+ # @overload create_instance(request, options = nil)
759
+ # Pass arguments to `create_instance` via a request object, either of type
760
+ # {::Google::Cloud::Memorystore::V1beta::CreateInstanceRequest} or an equivalent Hash.
761
+ #
762
+ # @param request [::Google::Cloud::Memorystore::V1beta::CreateInstanceRequest, ::Hash]
763
+ # A request object representing the call parameters. Required. To specify no
764
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
765
+ # @param options [::Gapic::CallOptions, ::Hash]
766
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
767
+ #
768
+ # @overload create_instance(parent: nil, instance_id: nil, instance: nil, request_id: nil)
769
+ # Pass arguments to `create_instance` via keyword arguments. Note that at
770
+ # least one keyword argument is required. To specify no parameters, or to keep all
771
+ # the default parameter values, pass an empty Hash as a request object (see above).
772
+ #
773
+ # @param parent [::String]
774
+ # Required. The parent resource where this instance will be created.
775
+ # Format: projects/\\{project}/locations/\\{location}
776
+ # @param instance_id [::String]
777
+ # Required. The ID to use for the instance, which will become the final
778
+ # component of the instance's resource name.
779
+ #
780
+ # This value is subject to the following restrictions:
781
+ #
782
+ # * Must be 4-63 characters in length
783
+ # * Must begin with a letter or digit
784
+ # * Must contain only lowercase letters, digits, and hyphens
785
+ # * Must not end with a hyphen
786
+ # * Must be unique within a location
787
+ # @param instance [::Google::Cloud::Memorystore::V1beta::Instance, ::Hash]
788
+ # Required. The instance to create.
789
+ # @param request_id [::String]
790
+ # Optional. An optional request ID to identify requests. Specify a unique
791
+ # request ID so that if you must retry your request, the server will know to
792
+ # ignore the request if it has already been completed. The server will
793
+ # guarantee that for at least 60 minutes since the first request.
794
+ #
795
+ # For example, consider a situation where you make an initial request and the
796
+ # request times out. If you make the request again with the same request
797
+ # ID, the server can check if original operation with the same request ID
798
+ # was received, and if so, will ignore the second request. This prevents
799
+ # clients from accidentally creating duplicate commitments.
800
+ #
801
+ # The request ID must be a valid UUID with the exception that zero UUID is
802
+ # not supported (00000000-0000-0000-0000-000000000000).
803
+ #
804
+ # @yield [response, operation] Access the result along with the RPC operation
805
+ # @yieldparam response [::Gapic::Operation]
806
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
807
+ #
808
+ # @return [::Gapic::Operation]
809
+ #
810
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
811
+ #
812
+ # @example Basic example
813
+ # require "google/cloud/memorystore/v1beta"
814
+ #
815
+ # # Create a client object. The client can be reused for multiple calls.
816
+ # client = Google::Cloud::Memorystore::V1beta::Memorystore::Client.new
817
+ #
818
+ # # Create a request. To set request fields, pass in keyword arguments.
819
+ # request = Google::Cloud::Memorystore::V1beta::CreateInstanceRequest.new
820
+ #
821
+ # # Call the create_instance method.
822
+ # result = client.create_instance request
823
+ #
824
+ # # The returned object is of type Gapic::Operation. You can use it to
825
+ # # check the status of an operation, cancel it, or wait for results.
826
+ # # Here is how to wait for a response.
827
+ # result.wait_until_done! timeout: 60
828
+ # if result.response?
829
+ # p result.response
830
+ # else
831
+ # puts "No response received."
832
+ # end
833
+ #
834
+ def create_instance request, options = nil
835
+ raise ::ArgumentError, "request must be provided" if request.nil?
836
+
837
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Memorystore::V1beta::CreateInstanceRequest
838
+
839
+ # Converts hash and nil to an options object
840
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
841
+
842
+ # Customize the options with defaults
843
+ metadata = @config.rpcs.create_instance.metadata.to_h
844
+
845
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
846
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
847
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
848
+ gapic_version: ::Google::Cloud::Memorystore::V1beta::VERSION
849
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
850
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
851
+
852
+ header_params = {}
853
+ if request.parent
854
+ header_params["parent"] = request.parent
855
+ end
856
+
857
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
858
+ metadata[:"x-goog-request-params"] ||= request_params_header
859
+
860
+ options.apply_defaults timeout: @config.rpcs.create_instance.timeout,
861
+ metadata: metadata,
862
+ retry_policy: @config.rpcs.create_instance.retry_policy
863
+
864
+ options.apply_defaults timeout: @config.timeout,
865
+ metadata: @config.metadata,
866
+ retry_policy: @config.retry_policy
867
+
868
+ @memorystore_stub.call_rpc :create_instance, request, options: options do |response, operation|
869
+ response = ::Gapic::Operation.new response, @operations_client, options: options
870
+ yield response, operation if block_given?
871
+ throw :response, response
872
+ end
873
+ rescue ::GRPC::BadStatus => e
874
+ raise ::Google::Cloud::Error.from_error(e)
875
+ end
876
+
877
+ ##
878
+ # Updates the ACL policy.
879
+ #
880
+ # The operation will apply the updated ACL policy to all the linked
881
+ # instances. The operation will return success if it successfully applied the
882
+ # policy to all the instances. If the operation completed with a failure, the
883
+ # service will continue to apply the policy via reconciliation for the failed
884
+ # instances even after operation completion to ensure eventual consistency.
885
+ #
886
+ # Completed longrunning.Operation will contain the new ACL policy object
887
+ # in the response field.
888
+ #
889
+ # @overload update_acl_policy(request, options = nil)
890
+ # Pass arguments to `update_acl_policy` via a request object, either of type
891
+ # {::Google::Cloud::Memorystore::V1beta::UpdateAclPolicyRequest} or an equivalent Hash.
892
+ #
893
+ # @param request [::Google::Cloud::Memorystore::V1beta::UpdateAclPolicyRequest, ::Hash]
894
+ # A request object representing the call parameters. Required. To specify no
895
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
896
+ # @param options [::Gapic::CallOptions, ::Hash]
897
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
898
+ #
899
+ # @overload update_acl_policy(acl_policy: nil, update_mask: nil, request_id: nil)
900
+ # Pass arguments to `update_acl_policy` via keyword arguments. Note that at
901
+ # least one keyword argument is required. To specify no parameters, or to keep all
902
+ # the default parameter values, pass an empty Hash as a request object (see above).
903
+ #
904
+ # @param acl_policy [::Google::Cloud::Memorystore::V1beta::AclPolicy, ::Hash]
905
+ # Required. The ACL policy to be updated.
906
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
907
+ # Optional. Mask of fields to be updated. At least one path must be supplied
908
+ # in this field. The elements of the repeated paths field may only include
909
+ # these fields from `AclPolicy`:
910
+ #
911
+ # * `rules`
912
+ # @param request_id [::String]
913
+ # Optional. Idempotent request UUID.
914
+ #
915
+ # @yield [response, operation] Access the result along with the RPC operation
916
+ # @yieldparam response [::Gapic::Operation]
917
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
918
+ #
919
+ # @return [::Gapic::Operation]
920
+ #
921
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
922
+ #
923
+ # @example Basic example
924
+ # require "google/cloud/memorystore/v1beta"
925
+ #
926
+ # # Create a client object. The client can be reused for multiple calls.
927
+ # client = Google::Cloud::Memorystore::V1beta::Memorystore::Client.new
928
+ #
929
+ # # Create a request. To set request fields, pass in keyword arguments.
930
+ # request = Google::Cloud::Memorystore::V1beta::UpdateAclPolicyRequest.new
931
+ #
932
+ # # Call the update_acl_policy method.
933
+ # result = client.update_acl_policy request
934
+ #
935
+ # # The returned object is of type Gapic::Operation. You can use it to
936
+ # # check the status of an operation, cancel it, or wait for results.
937
+ # # Here is how to wait for a response.
938
+ # result.wait_until_done! timeout: 60
939
+ # if result.response?
940
+ # p result.response
941
+ # else
942
+ # puts "No response received."
943
+ # end
944
+ #
945
+ def update_acl_policy request, options = nil
946
+ raise ::ArgumentError, "request must be provided" if request.nil?
947
+
948
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Memorystore::V1beta::UpdateAclPolicyRequest
949
+
950
+ # Converts hash and nil to an options object
951
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
952
+
953
+ # Customize the options with defaults
954
+ metadata = @config.rpcs.update_acl_policy.metadata.to_h
955
+
956
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
957
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
958
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
959
+ gapic_version: ::Google::Cloud::Memorystore::V1beta::VERSION
960
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
961
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
962
+
963
+ header_params = {}
964
+ if request.acl_policy&.name
965
+ header_params["acl_policy.name"] = request.acl_policy.name
966
+ end
967
+
968
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
969
+ metadata[:"x-goog-request-params"] ||= request_params_header
970
+
971
+ options.apply_defaults timeout: @config.rpcs.update_acl_policy.timeout,
972
+ metadata: metadata,
973
+ retry_policy: @config.rpcs.update_acl_policy.retry_policy
974
+
975
+ options.apply_defaults timeout: @config.timeout,
976
+ metadata: @config.metadata,
977
+ retry_policy: @config.retry_policy
978
+
979
+ @memorystore_stub.call_rpc :update_acl_policy, request, options: options do |response, operation|
980
+ response = ::Gapic::Operation.new response, @operations_client, options: options
981
+ yield response, operation if block_given?
982
+ throw :response, response
983
+ end
984
+ rescue ::GRPC::BadStatus => e
985
+ raise ::Google::Cloud::Error.from_error(e)
986
+ end
987
+
988
+ ##
989
+ # Updates the parameters of a single Instance.
990
+ #
991
+ # @overload update_instance(request, options = nil)
992
+ # Pass arguments to `update_instance` via a request object, either of type
993
+ # {::Google::Cloud::Memorystore::V1beta::UpdateInstanceRequest} or an equivalent Hash.
994
+ #
995
+ # @param request [::Google::Cloud::Memorystore::V1beta::UpdateInstanceRequest, ::Hash]
996
+ # A request object representing the call parameters. Required. To specify no
997
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
998
+ # @param options [::Gapic::CallOptions, ::Hash]
999
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1000
+ #
1001
+ # @overload update_instance(update_mask: nil, instance: nil, request_id: nil)
1002
+ # Pass arguments to `update_instance` via keyword arguments. Note that at
1003
+ # least one keyword argument is required. To specify no parameters, or to keep all
1004
+ # the default parameter values, pass an empty Hash as a request object (see above).
1005
+ #
1006
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
1007
+ # Optional. The list of fields to be updated on the instance. At least one
1008
+ # field must be specified.
1009
+ # @param instance [::Google::Cloud::Memorystore::V1beta::Instance, ::Hash]
1010
+ # Required. The instance to update.
1011
+ # @param request_id [::String]
1012
+ # Optional. An optional request ID to identify requests. Specify a unique
1013
+ # request ID so that if you must retry your request, the server will know to
1014
+ # ignore the request if it has already been completed. The server will
1015
+ # guarantee that for at least 60 minutes since the first request.
1016
+ #
1017
+ # For example, consider a situation where you make an initial request and the
1018
+ # request times out. If you make the request again with the same request
1019
+ # ID, the server can check if original operation with the same request ID
1020
+ # was received, and if so, will ignore the second request. This prevents
1021
+ # clients from accidentally creating duplicate commitments.
1022
+ #
1023
+ # The request ID must be a valid UUID with the exception that zero UUID is
1024
+ # not supported (00000000-0000-0000-0000-000000000000).
268
1025
  #
269
1026
  # @yield [response, operation] Access the result along with the RPC operation
270
- # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Memorystore::V1beta::Instance>]
1027
+ # @yieldparam response [::Gapic::Operation]
271
1028
  # @yieldparam operation [::GRPC::ActiveCall::Operation]
272
1029
  #
273
- # @return [::Gapic::PagedEnumerable<::Google::Cloud::Memorystore::V1beta::Instance>]
1030
+ # @return [::Gapic::Operation]
274
1031
  #
275
1032
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
276
1033
  #
@@ -281,28 +1038,31 @@ module Google
281
1038
  # client = Google::Cloud::Memorystore::V1beta::Memorystore::Client.new
282
1039
  #
283
1040
  # # Create a request. To set request fields, pass in keyword arguments.
284
- # request = Google::Cloud::Memorystore::V1beta::ListInstancesRequest.new
1041
+ # request = Google::Cloud::Memorystore::V1beta::UpdateInstanceRequest.new
285
1042
  #
286
- # # Call the list_instances method.
287
- # result = client.list_instances request
1043
+ # # Call the update_instance method.
1044
+ # result = client.update_instance request
288
1045
  #
289
- # # The returned object is of type Gapic::PagedEnumerable. You can iterate
290
- # # over elements, and API calls will be issued to fetch pages as needed.
291
- # result.each do |item|
292
- # # Each element is of type ::Google::Cloud::Memorystore::V1beta::Instance.
293
- # p item
1046
+ # # The returned object is of type Gapic::Operation. You can use it to
1047
+ # # check the status of an operation, cancel it, or wait for results.
1048
+ # # Here is how to wait for a response.
1049
+ # result.wait_until_done! timeout: 60
1050
+ # if result.response?
1051
+ # p result.response
1052
+ # else
1053
+ # puts "No response received."
294
1054
  # end
295
1055
  #
296
- def list_instances request, options = nil
1056
+ def update_instance request, options = nil
297
1057
  raise ::ArgumentError, "request must be provided" if request.nil?
298
1058
 
299
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Memorystore::V1beta::ListInstancesRequest
1059
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Memorystore::V1beta::UpdateInstanceRequest
300
1060
 
301
1061
  # Converts hash and nil to an options object
302
1062
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
303
1063
 
304
1064
  # Customize the options with defaults
305
- metadata = @config.rpcs.list_instances.metadata.to_h
1065
+ metadata = @config.rpcs.update_instance.metadata.to_h
306
1066
 
307
1067
  # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
308
1068
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -312,23 +1072,23 @@ module Google
312
1072
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
313
1073
 
314
1074
  header_params = {}
315
- if request.parent
316
- header_params["parent"] = request.parent
1075
+ if request.instance&.name
1076
+ header_params["instance.name"] = request.instance.name
317
1077
  end
318
1078
 
319
1079
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
320
1080
  metadata[:"x-goog-request-params"] ||= request_params_header
321
1081
 
322
- options.apply_defaults timeout: @config.rpcs.list_instances.timeout,
1082
+ options.apply_defaults timeout: @config.rpcs.update_instance.timeout,
323
1083
  metadata: metadata,
324
- retry_policy: @config.rpcs.list_instances.retry_policy
1084
+ retry_policy: @config.rpcs.update_instance.retry_policy
325
1085
 
326
1086
  options.apply_defaults timeout: @config.timeout,
327
1087
  metadata: @config.metadata,
328
1088
  retry_policy: @config.retry_policy
329
1089
 
330
- @memorystore_stub.call_rpc :list_instances, request, options: options do |response, operation|
331
- response = ::Gapic::PagedEnumerable.new @memorystore_stub, :list_instances, request, response, operation, options
1090
+ @memorystore_stub.call_rpc :update_instance, request, options: options do |response, operation|
1091
+ response = ::Gapic::Operation.new response, @operations_client, options: options
332
1092
  yield response, operation if block_given?
333
1093
  throw :response, response
334
1094
  end
@@ -337,32 +1097,40 @@ module Google
337
1097
  end
338
1098
 
339
1099
  ##
340
- # Gets details of a single Instance.
1100
+ # Deletes a specific ACL policy. This action will delete the ACL policy and
1101
+ # all the rules associated with it. An ACL policy cannot be deleted if it is
1102
+ # attached to an instance.
341
1103
  #
342
- # @overload get_instance(request, options = nil)
343
- # Pass arguments to `get_instance` via a request object, either of type
344
- # {::Google::Cloud::Memorystore::V1beta::GetInstanceRequest} or an equivalent Hash.
1104
+ # @overload delete_acl_policy(request, options = nil)
1105
+ # Pass arguments to `delete_acl_policy` via a request object, either of type
1106
+ # {::Google::Cloud::Memorystore::V1beta::DeleteAclPolicyRequest} or an equivalent Hash.
345
1107
  #
346
- # @param request [::Google::Cloud::Memorystore::V1beta::GetInstanceRequest, ::Hash]
1108
+ # @param request [::Google::Cloud::Memorystore::V1beta::DeleteAclPolicyRequest, ::Hash]
347
1109
  # A request object representing the call parameters. Required. To specify no
348
1110
  # parameters, or to keep all the default parameter values, pass an empty Hash.
349
1111
  # @param options [::Gapic::CallOptions, ::Hash]
350
1112
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
351
1113
  #
352
- # @overload get_instance(name: nil)
353
- # Pass arguments to `get_instance` via keyword arguments. Note that at
1114
+ # @overload delete_acl_policy(name: nil, request_id: nil, etag: nil)
1115
+ # Pass arguments to `delete_acl_policy` via keyword arguments. Note that at
354
1116
  # least one keyword argument is required. To specify no parameters, or to keep all
355
1117
  # the default parameter values, pass an empty Hash as a request object (see above).
356
1118
  #
357
1119
  # @param name [::String]
358
- # Required. The name of the instance to retrieve.
359
- # Format: projects/\\{project}/locations/\\{location}/instances/\\{instance}
1120
+ # Required. Memorystore ACL policy resource name using the form:
1121
+ # `projects/{project}/locations/{location}/aclPolicies/{acl_policy_id}`
1122
+ # where `location` refers to a Google Cloud region.
1123
+ # @param request_id [::String]
1124
+ # Optional. Idempotent request UUID.
1125
+ # @param etag [::String]
1126
+ # Optional. Etag of the ACL policy. If this is different from the server's
1127
+ # etag, the request will fail with an ABORTED error.
360
1128
  #
361
1129
  # @yield [response, operation] Access the result along with the RPC operation
362
- # @yieldparam response [::Google::Cloud::Memorystore::V1beta::Instance]
1130
+ # @yieldparam response [::Gapic::Operation]
363
1131
  # @yieldparam operation [::GRPC::ActiveCall::Operation]
364
1132
  #
365
- # @return [::Google::Cloud::Memorystore::V1beta::Instance]
1133
+ # @return [::Gapic::Operation]
366
1134
  #
367
1135
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
368
1136
  #
@@ -373,24 +1141,31 @@ module Google
373
1141
  # client = Google::Cloud::Memorystore::V1beta::Memorystore::Client.new
374
1142
  #
375
1143
  # # Create a request. To set request fields, pass in keyword arguments.
376
- # request = Google::Cloud::Memorystore::V1beta::GetInstanceRequest.new
1144
+ # request = Google::Cloud::Memorystore::V1beta::DeleteAclPolicyRequest.new
377
1145
  #
378
- # # Call the get_instance method.
379
- # result = client.get_instance request
1146
+ # # Call the delete_acl_policy method.
1147
+ # result = client.delete_acl_policy request
380
1148
  #
381
- # # The returned object is of type Google::Cloud::Memorystore::V1beta::Instance.
382
- # p result
1149
+ # # The returned object is of type Gapic::Operation. You can use it to
1150
+ # # check the status of an operation, cancel it, or wait for results.
1151
+ # # Here is how to wait for a response.
1152
+ # result.wait_until_done! timeout: 60
1153
+ # if result.response?
1154
+ # p result.response
1155
+ # else
1156
+ # puts "No response received."
1157
+ # end
383
1158
  #
384
- def get_instance request, options = nil
1159
+ def delete_acl_policy request, options = nil
385
1160
  raise ::ArgumentError, "request must be provided" if request.nil?
386
1161
 
387
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Memorystore::V1beta::GetInstanceRequest
1162
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Memorystore::V1beta::DeleteAclPolicyRequest
388
1163
 
389
1164
  # Converts hash and nil to an options object
390
1165
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
391
1166
 
392
1167
  # Customize the options with defaults
393
- metadata = @config.rpcs.get_instance.metadata.to_h
1168
+ metadata = @config.rpcs.delete_acl_policy.metadata.to_h
394
1169
 
395
1170
  # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
396
1171
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -407,75 +1182,51 @@ module Google
407
1182
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
408
1183
  metadata[:"x-goog-request-params"] ||= request_params_header
409
1184
 
410
- options.apply_defaults timeout: @config.rpcs.get_instance.timeout,
1185
+ options.apply_defaults timeout: @config.rpcs.delete_acl_policy.timeout,
411
1186
  metadata: metadata,
412
- retry_policy: @config.rpcs.get_instance.retry_policy
1187
+ retry_policy: @config.rpcs.delete_acl_policy.retry_policy
413
1188
 
414
1189
  options.apply_defaults timeout: @config.timeout,
415
1190
  metadata: @config.metadata,
416
1191
  retry_policy: @config.retry_policy
417
1192
 
418
- @memorystore_stub.call_rpc :get_instance, request, options: options do |response, operation|
1193
+ @memorystore_stub.call_rpc :delete_acl_policy, request, options: options do |response, operation|
1194
+ response = ::Gapic::Operation.new response, @operations_client, options: options
419
1195
  yield response, operation if block_given?
1196
+ throw :response, response
420
1197
  end
421
1198
  rescue ::GRPC::BadStatus => e
422
1199
  raise ::Google::Cloud::Error.from_error(e)
423
1200
  end
424
1201
 
425
1202
  ##
426
- # Creates a new Instance in a given project and location.
1203
+ # Gets details of a specific ACL policy revision.
427
1204
  #
428
- # @overload create_instance(request, options = nil)
429
- # Pass arguments to `create_instance` via a request object, either of type
430
- # {::Google::Cloud::Memorystore::V1beta::CreateInstanceRequest} or an equivalent Hash.
1205
+ # @overload get_acl_policy_revision(request, options = nil)
1206
+ # Pass arguments to `get_acl_policy_revision` via a request object, either of type
1207
+ # {::Google::Cloud::Memorystore::V1beta::GetAclPolicyRevisionRequest} or an equivalent Hash.
431
1208
  #
432
- # @param request [::Google::Cloud::Memorystore::V1beta::CreateInstanceRequest, ::Hash]
1209
+ # @param request [::Google::Cloud::Memorystore::V1beta::GetAclPolicyRevisionRequest, ::Hash]
433
1210
  # A request object representing the call parameters. Required. To specify no
434
1211
  # parameters, or to keep all the default parameter values, pass an empty Hash.
435
1212
  # @param options [::Gapic::CallOptions, ::Hash]
436
1213
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
437
1214
  #
438
- # @overload create_instance(parent: nil, instance_id: nil, instance: nil, request_id: nil)
439
- # Pass arguments to `create_instance` via keyword arguments. Note that at
1215
+ # @overload get_acl_policy_revision(name: nil)
1216
+ # Pass arguments to `get_acl_policy_revision` via keyword arguments. Note that at
440
1217
  # least one keyword argument is required. To specify no parameters, or to keep all
441
1218
  # the default parameter values, pass an empty Hash as a request object (see above).
442
1219
  #
443
- # @param parent [::String]
444
- # Required. The parent resource where this instance will be created.
445
- # Format: projects/\\{project}/locations/\\{location}
446
- # @param instance_id [::String]
447
- # Required. The ID to use for the instance, which will become the final
448
- # component of the instance's resource name.
449
- #
450
- # This value is subject to the following restrictions:
451
- #
452
- # * Must be 4-63 characters in length
453
- # * Must begin with a letter or digit
454
- # * Must contain only lowercase letters, digits, and hyphens
455
- # * Must not end with a hyphen
456
- # * Must be unique within a location
457
- # @param instance [::Google::Cloud::Memorystore::V1beta::Instance, ::Hash]
458
- # Required. The instance to create.
459
- # @param request_id [::String]
460
- # Optional. An optional request ID to identify requests. Specify a unique
461
- # request ID so that if you must retry your request, the server will know to
462
- # ignore the request if it has already been completed. The server will
463
- # guarantee that for at least 60 minutes since the first request.
464
- #
465
- # For example, consider a situation where you make an initial request and the
466
- # request times out. If you make the request again with the same request
467
- # ID, the server can check if original operation with the same request ID
468
- # was received, and if so, will ignore the second request. This prevents
469
- # clients from accidentally creating duplicate commitments.
470
- #
471
- # The request ID must be a valid UUID with the exception that zero UUID is
472
- # not supported (00000000-0000-0000-0000-000000000000).
1220
+ # @param name [::String]
1221
+ # Required. Memorystore ACL policy revision resource name using the form:
1222
+ # `projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}`
1223
+ # where `location` refers to a Google Cloud region.
473
1224
  #
474
1225
  # @yield [response, operation] Access the result along with the RPC operation
475
- # @yieldparam response [::Gapic::Operation]
1226
+ # @yieldparam response [::Google::Cloud::Memorystore::V1beta::AclPolicyRevision]
476
1227
  # @yieldparam operation [::GRPC::ActiveCall::Operation]
477
1228
  #
478
- # @return [::Gapic::Operation]
1229
+ # @return [::Google::Cloud::Memorystore::V1beta::AclPolicyRevision]
479
1230
  #
480
1231
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
481
1232
  #
@@ -486,31 +1237,24 @@ module Google
486
1237
  # client = Google::Cloud::Memorystore::V1beta::Memorystore::Client.new
487
1238
  #
488
1239
  # # Create a request. To set request fields, pass in keyword arguments.
489
- # request = Google::Cloud::Memorystore::V1beta::CreateInstanceRequest.new
1240
+ # request = Google::Cloud::Memorystore::V1beta::GetAclPolicyRevisionRequest.new
490
1241
  #
491
- # # Call the create_instance method.
492
- # result = client.create_instance request
1242
+ # # Call the get_acl_policy_revision method.
1243
+ # result = client.get_acl_policy_revision request
493
1244
  #
494
- # # The returned object is of type Gapic::Operation. You can use it to
495
- # # check the status of an operation, cancel it, or wait for results.
496
- # # Here is how to wait for a response.
497
- # result.wait_until_done! timeout: 60
498
- # if result.response?
499
- # p result.response
500
- # else
501
- # puts "No response received."
502
- # end
1245
+ # # The returned object is of type Google::Cloud::Memorystore::V1beta::AclPolicyRevision.
1246
+ # p result
503
1247
  #
504
- def create_instance request, options = nil
1248
+ def get_acl_policy_revision request, options = nil
505
1249
  raise ::ArgumentError, "request must be provided" if request.nil?
506
1250
 
507
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Memorystore::V1beta::CreateInstanceRequest
1251
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Memorystore::V1beta::GetAclPolicyRevisionRequest
508
1252
 
509
1253
  # Converts hash and nil to an options object
510
1254
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
511
1255
 
512
1256
  # Customize the options with defaults
513
- metadata = @config.rpcs.create_instance.metadata.to_h
1257
+ metadata = @config.rpcs.get_acl_policy_revision.metadata.to_h
514
1258
 
515
1259
  # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
516
1260
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -520,73 +1264,60 @@ module Google
520
1264
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
521
1265
 
522
1266
  header_params = {}
523
- if request.parent
524
- header_params["parent"] = request.parent
1267
+ if request.name
1268
+ header_params["name"] = request.name
525
1269
  end
526
1270
 
527
1271
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
528
1272
  metadata[:"x-goog-request-params"] ||= request_params_header
529
1273
 
530
- options.apply_defaults timeout: @config.rpcs.create_instance.timeout,
1274
+ options.apply_defaults timeout: @config.rpcs.get_acl_policy_revision.timeout,
531
1275
  metadata: metadata,
532
- retry_policy: @config.rpcs.create_instance.retry_policy
1276
+ retry_policy: @config.rpcs.get_acl_policy_revision.retry_policy
533
1277
 
534
1278
  options.apply_defaults timeout: @config.timeout,
535
1279
  metadata: @config.metadata,
536
1280
  retry_policy: @config.retry_policy
537
1281
 
538
- @memorystore_stub.call_rpc :create_instance, request, options: options do |response, operation|
539
- response = ::Gapic::Operation.new response, @operations_client, options: options
1282
+ @memorystore_stub.call_rpc :get_acl_policy_revision, request, options: options do |response, operation|
540
1283
  yield response, operation if block_given?
541
- throw :response, response
542
1284
  end
543
1285
  rescue ::GRPC::BadStatus => e
544
1286
  raise ::Google::Cloud::Error.from_error(e)
545
1287
  end
546
1288
 
547
1289
  ##
548
- # Updates the parameters of a single Instance.
1290
+ # Lists all ACL policy revisions in a given ACL policy.
549
1291
  #
550
- # @overload update_instance(request, options = nil)
551
- # Pass arguments to `update_instance` via a request object, either of type
552
- # {::Google::Cloud::Memorystore::V1beta::UpdateInstanceRequest} or an equivalent Hash.
1292
+ # @overload list_acl_policy_revisions(request, options = nil)
1293
+ # Pass arguments to `list_acl_policy_revisions` via a request object, either of type
1294
+ # {::Google::Cloud::Memorystore::V1beta::ListAclPolicyRevisionsRequest} or an equivalent Hash.
553
1295
  #
554
- # @param request [::Google::Cloud::Memorystore::V1beta::UpdateInstanceRequest, ::Hash]
1296
+ # @param request [::Google::Cloud::Memorystore::V1beta::ListAclPolicyRevisionsRequest, ::Hash]
555
1297
  # A request object representing the call parameters. Required. To specify no
556
1298
  # parameters, or to keep all the default parameter values, pass an empty Hash.
557
1299
  # @param options [::Gapic::CallOptions, ::Hash]
558
1300
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
559
1301
  #
560
- # @overload update_instance(update_mask: nil, instance: nil, request_id: nil)
561
- # Pass arguments to `update_instance` via keyword arguments. Note that at
1302
+ # @overload list_acl_policy_revisions(parent: nil, page_size: nil, page_token: nil)
1303
+ # Pass arguments to `list_acl_policy_revisions` via keyword arguments. Note that at
562
1304
  # least one keyword argument is required. To specify no parameters, or to keep all
563
1305
  # the default parameter values, pass an empty Hash as a request object (see above).
564
1306
  #
565
- # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
566
- # Optional. The list of fields to be updated on the instance. At least one
567
- # field must be specified.
568
- # @param instance [::Google::Cloud::Memorystore::V1beta::Instance, ::Hash]
569
- # Required. The instance to update.
570
- # @param request_id [::String]
571
- # Optional. An optional request ID to identify requests. Specify a unique
572
- # request ID so that if you must retry your request, the server will know to
573
- # ignore the request if it has already been completed. The server will
574
- # guarantee that for at least 60 minutes since the first request.
575
- #
576
- # For example, consider a situation where you make an initial request and the
577
- # request times out. If you make the request again with the same request
578
- # ID, the server can check if original operation with the same request ID
579
- # was received, and if so, will ignore the second request. This prevents
580
- # clients from accidentally creating duplicate commitments.
581
- #
582
- # The request ID must be a valid UUID with the exception that zero UUID is
583
- # not supported (00000000-0000-0000-0000-000000000000).
1307
+ # @param parent [::String]
1308
+ # Required. The resource name of the ACL policy to list revisions for.
1309
+ # Format: "projects/\\{project}/locations/\\{location}/aclPolicies/\\{acl_policy}"
1310
+ # @param page_size [::Integer]
1311
+ # Optional. The maximum number of items to return.
1312
+ # @param page_token [::String]
1313
+ # Optional. The `next_page_token` value returned from a previous
1314
+ # `ListAclPolicyRevisions` request, if any.
584
1315
  #
585
1316
  # @yield [response, operation] Access the result along with the RPC operation
586
- # @yieldparam response [::Gapic::Operation]
1317
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Memorystore::V1beta::AclPolicyRevision>]
587
1318
  # @yieldparam operation [::GRPC::ActiveCall::Operation]
588
1319
  #
589
- # @return [::Gapic::Operation]
1320
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Memorystore::V1beta::AclPolicyRevision>]
590
1321
  #
591
1322
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
592
1323
  #
@@ -597,31 +1328,28 @@ module Google
597
1328
  # client = Google::Cloud::Memorystore::V1beta::Memorystore::Client.new
598
1329
  #
599
1330
  # # Create a request. To set request fields, pass in keyword arguments.
600
- # request = Google::Cloud::Memorystore::V1beta::UpdateInstanceRequest.new
1331
+ # request = Google::Cloud::Memorystore::V1beta::ListAclPolicyRevisionsRequest.new
601
1332
  #
602
- # # Call the update_instance method.
603
- # result = client.update_instance request
1333
+ # # Call the list_acl_policy_revisions method.
1334
+ # result = client.list_acl_policy_revisions request
604
1335
  #
605
- # # The returned object is of type Gapic::Operation. You can use it to
606
- # # check the status of an operation, cancel it, or wait for results.
607
- # # Here is how to wait for a response.
608
- # result.wait_until_done! timeout: 60
609
- # if result.response?
610
- # p result.response
611
- # else
612
- # puts "No response received."
1336
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1337
+ # # over elements, and API calls will be issued to fetch pages as needed.
1338
+ # result.each do |item|
1339
+ # # Each element is of type ::Google::Cloud::Memorystore::V1beta::AclPolicyRevision.
1340
+ # p item
613
1341
  # end
614
1342
  #
615
- def update_instance request, options = nil
1343
+ def list_acl_policy_revisions request, options = nil
616
1344
  raise ::ArgumentError, "request must be provided" if request.nil?
617
1345
 
618
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Memorystore::V1beta::UpdateInstanceRequest
1346
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Memorystore::V1beta::ListAclPolicyRevisionsRequest
619
1347
 
620
1348
  # Converts hash and nil to an options object
621
1349
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
622
1350
 
623
1351
  # Customize the options with defaults
624
- metadata = @config.rpcs.update_instance.metadata.to_h
1352
+ metadata = @config.rpcs.list_acl_policy_revisions.metadata.to_h
625
1353
 
626
1354
  # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
627
1355
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -631,23 +1359,23 @@ module Google
631
1359
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
632
1360
 
633
1361
  header_params = {}
634
- if request.instance&.name
635
- header_params["instance.name"] = request.instance.name
1362
+ if request.parent
1363
+ header_params["parent"] = request.parent
636
1364
  end
637
1365
 
638
1366
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
639
1367
  metadata[:"x-goog-request-params"] ||= request_params_header
640
1368
 
641
- options.apply_defaults timeout: @config.rpcs.update_instance.timeout,
1369
+ options.apply_defaults timeout: @config.rpcs.list_acl_policy_revisions.timeout,
642
1370
  metadata: metadata,
643
- retry_policy: @config.rpcs.update_instance.retry_policy
1371
+ retry_policy: @config.rpcs.list_acl_policy_revisions.retry_policy
644
1372
 
645
1373
  options.apply_defaults timeout: @config.timeout,
646
1374
  metadata: @config.metadata,
647
1375
  retry_policy: @config.retry_policy
648
1376
 
649
- @memorystore_stub.call_rpc :update_instance, request, options: options do |response, operation|
650
- response = ::Gapic::Operation.new response, @operations_client, options: options
1377
+ @memorystore_stub.call_rpc :list_acl_policy_revisions, request, options: options do |response, operation|
1378
+ response = ::Gapic::PagedEnumerable.new @memorystore_stub, :list_acl_policy_revisions, request, response, operation, options
651
1379
  yield response, operation if block_given?
652
1380
  throw :response, response
653
1381
  end
@@ -2750,17 +3478,17 @@ module Google
2750
3478
  # @example
2751
3479
  #
2752
3480
  # # Modify the global config, setting the timeout for
2753
- # # list_instances to 20 seconds,
3481
+ # # list_acl_policies to 20 seconds,
2754
3482
  # # and all remaining timeouts to 10 seconds.
2755
3483
  # ::Google::Cloud::Memorystore::V1beta::Memorystore::Client.configure do |config|
2756
3484
  # config.timeout = 10.0
2757
- # config.rpcs.list_instances.timeout = 20.0
3485
+ # config.rpcs.list_acl_policies.timeout = 20.0
2758
3486
  # end
2759
3487
  #
2760
3488
  # # Apply the above configuration only to a new client.
2761
3489
  # client = ::Google::Cloud::Memorystore::V1beta::Memorystore::Client.new do |config|
2762
3490
  # config.timeout = 10.0
2763
- # config.rpcs.list_instances.timeout = 20.0
3491
+ # config.rpcs.list_acl_policies.timeout = 20.0
2764
3492
  # end
2765
3493
  #
2766
3494
  # @!attribute [rw] endpoint
@@ -2919,27 +3647,62 @@ module Google
2919
3647
  # trigger a retry.
2920
3648
  #
2921
3649
  class Rpcs
3650
+ ##
3651
+ # RPC-specific configuration for `list_acl_policies`
3652
+ # @return [::Gapic::Config::Method]
3653
+ #
3654
+ attr_reader :list_acl_policies
2922
3655
  ##
2923
3656
  # RPC-specific configuration for `list_instances`
2924
3657
  # @return [::Gapic::Config::Method]
2925
3658
  #
2926
3659
  attr_reader :list_instances
2927
3660
  ##
3661
+ # RPC-specific configuration for `get_acl_policy`
3662
+ # @return [::Gapic::Config::Method]
3663
+ #
3664
+ attr_reader :get_acl_policy
3665
+ ##
2928
3666
  # RPC-specific configuration for `get_instance`
2929
3667
  # @return [::Gapic::Config::Method]
2930
3668
  #
2931
3669
  attr_reader :get_instance
2932
3670
  ##
3671
+ # RPC-specific configuration for `create_acl_policy`
3672
+ # @return [::Gapic::Config::Method]
3673
+ #
3674
+ attr_reader :create_acl_policy
3675
+ ##
2933
3676
  # RPC-specific configuration for `create_instance`
2934
3677
  # @return [::Gapic::Config::Method]
2935
3678
  #
2936
3679
  attr_reader :create_instance
2937
3680
  ##
3681
+ # RPC-specific configuration for `update_acl_policy`
3682
+ # @return [::Gapic::Config::Method]
3683
+ #
3684
+ attr_reader :update_acl_policy
3685
+ ##
2938
3686
  # RPC-specific configuration for `update_instance`
2939
3687
  # @return [::Gapic::Config::Method]
2940
3688
  #
2941
3689
  attr_reader :update_instance
2942
3690
  ##
3691
+ # RPC-specific configuration for `delete_acl_policy`
3692
+ # @return [::Gapic::Config::Method]
3693
+ #
3694
+ attr_reader :delete_acl_policy
3695
+ ##
3696
+ # RPC-specific configuration for `get_acl_policy_revision`
3697
+ # @return [::Gapic::Config::Method]
3698
+ #
3699
+ attr_reader :get_acl_policy_revision
3700
+ ##
3701
+ # RPC-specific configuration for `list_acl_policy_revisions`
3702
+ # @return [::Gapic::Config::Method]
3703
+ #
3704
+ attr_reader :list_acl_policy_revisions
3705
+ ##
2943
3706
  # RPC-specific configuration for `delete_instance`
2944
3707
  # @return [::Gapic::Config::Method]
2945
3708
  #
@@ -3047,14 +3810,28 @@ module Google
3047
3810
 
3048
3811
  # @private
3049
3812
  def initialize parent_rpcs = nil
3813
+ list_acl_policies_config = parent_rpcs.list_acl_policies if parent_rpcs.respond_to? :list_acl_policies
3814
+ @list_acl_policies = ::Gapic::Config::Method.new list_acl_policies_config
3050
3815
  list_instances_config = parent_rpcs.list_instances if parent_rpcs.respond_to? :list_instances
3051
3816
  @list_instances = ::Gapic::Config::Method.new list_instances_config
3817
+ get_acl_policy_config = parent_rpcs.get_acl_policy if parent_rpcs.respond_to? :get_acl_policy
3818
+ @get_acl_policy = ::Gapic::Config::Method.new get_acl_policy_config
3052
3819
  get_instance_config = parent_rpcs.get_instance if parent_rpcs.respond_to? :get_instance
3053
3820
  @get_instance = ::Gapic::Config::Method.new get_instance_config
3821
+ create_acl_policy_config = parent_rpcs.create_acl_policy if parent_rpcs.respond_to? :create_acl_policy
3822
+ @create_acl_policy = ::Gapic::Config::Method.new create_acl_policy_config
3054
3823
  create_instance_config = parent_rpcs.create_instance if parent_rpcs.respond_to? :create_instance
3055
3824
  @create_instance = ::Gapic::Config::Method.new create_instance_config
3825
+ update_acl_policy_config = parent_rpcs.update_acl_policy if parent_rpcs.respond_to? :update_acl_policy
3826
+ @update_acl_policy = ::Gapic::Config::Method.new update_acl_policy_config
3056
3827
  update_instance_config = parent_rpcs.update_instance if parent_rpcs.respond_to? :update_instance
3057
3828
  @update_instance = ::Gapic::Config::Method.new update_instance_config
3829
+ delete_acl_policy_config = parent_rpcs.delete_acl_policy if parent_rpcs.respond_to? :delete_acl_policy
3830
+ @delete_acl_policy = ::Gapic::Config::Method.new delete_acl_policy_config
3831
+ get_acl_policy_revision_config = parent_rpcs.get_acl_policy_revision if parent_rpcs.respond_to? :get_acl_policy_revision
3832
+ @get_acl_policy_revision = ::Gapic::Config::Method.new get_acl_policy_revision_config
3833
+ list_acl_policy_revisions_config = parent_rpcs.list_acl_policy_revisions if parent_rpcs.respond_to? :list_acl_policy_revisions
3834
+ @list_acl_policy_revisions = ::Gapic::Config::Method.new list_acl_policy_revisions_config
3058
3835
  delete_instance_config = parent_rpcs.delete_instance if parent_rpcs.respond_to? :delete_instance
3059
3836
  @delete_instance = ::Gapic::Config::Method.new delete_instance_config
3060
3837
  get_certificate_authority_config = parent_rpcs.get_certificate_authority if parent_rpcs.respond_to? :get_certificate_authority