google-cloud-netapp-v1 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (29) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/netapp/v1/active_directory_pb.rb +1 -1
  3. data/lib/google/cloud/netapp/v1/backup_pb.rb +57 -0
  4. data/lib/google/cloud/netapp/v1/backup_policy_pb.rb +56 -0
  5. data/lib/google/cloud/netapp/v1/backup_vault_pb.rb +56 -0
  6. data/lib/google/cloud/netapp/v1/cloud_netapp_service_pb.rb +4 -1
  7. data/lib/google/cloud/netapp/v1/cloud_netapp_service_services_pb.rb +33 -0
  8. data/lib/google/cloud/netapp/v1/kms_pb.rb +1 -1
  9. data/lib/google/cloud/netapp/v1/netapp/client.rb +1733 -120
  10. data/lib/google/cloud/netapp/v1/netapp/paths.rb +59 -0
  11. data/lib/google/cloud/netapp/v1/netapp/rest/client.rb +1622 -117
  12. data/lib/google/cloud/netapp/v1/netapp/rest/service_stub.rb +891 -0
  13. data/lib/google/cloud/netapp/v1/replication_pb.rb +1 -1
  14. data/lib/google/cloud/netapp/v1/snapshot_pb.rb +1 -1
  15. data/lib/google/cloud/netapp/v1/storage_pool_pb.rb +1 -1
  16. data/lib/google/cloud/netapp/v1/version.rb +1 -1
  17. data/lib/google/cloud/netapp/v1/volume_pb.rb +2 -1
  18. data/proto_docs/google/api/client.rb +13 -0
  19. data/proto_docs/google/cloud/netapp/v1/active_directory.rb +2 -2
  20. data/proto_docs/google/cloud/netapp/v1/backup.rb +231 -0
  21. data/proto_docs/google/cloud/netapp/v1/backup_policy.rb +190 -0
  22. data/proto_docs/google/cloud/netapp/v1/backup_vault.rb +177 -0
  23. data/proto_docs/google/cloud/netapp/v1/common.rb +3 -0
  24. data/proto_docs/google/cloud/netapp/v1/kms.rb +2 -2
  25. data/proto_docs/google/cloud/netapp/v1/replication.rb +2 -2
  26. data/proto_docs/google/cloud/netapp/v1/snapshot.rb +2 -2
  27. data/proto_docs/google/cloud/netapp/v1/storage_pool.rb +4 -3
  28. data/proto_docs/google/cloud/netapp/v1/volume.rb +31 -2
  29. metadata +9 -3
@@ -43,6 +43,65 @@ module Google
43
43
  "projects/#{project}/locations/#{location}/activeDirectories/#{active_directory}"
44
44
  end
45
45
 
46
+ ##
47
+ # Create a fully-qualified Backup resource string.
48
+ #
49
+ # The resource will be in the following format:
50
+ #
51
+ # `projects/{project}/locations/{location}/backupVaults/{backup_vault}/backups/{backup}`
52
+ #
53
+ # @param project [String]
54
+ # @param location [String]
55
+ # @param backup_vault [String]
56
+ # @param backup [String]
57
+ #
58
+ # @return [::String]
59
+ def backup_path project:, location:, backup_vault:, backup:
60
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
61
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
62
+ raise ::ArgumentError, "backup_vault cannot contain /" if backup_vault.to_s.include? "/"
63
+
64
+ "projects/#{project}/locations/#{location}/backupVaults/#{backup_vault}/backups/#{backup}"
65
+ end
66
+
67
+ ##
68
+ # Create a fully-qualified BackupPolicy resource string.
69
+ #
70
+ # The resource will be in the following format:
71
+ #
72
+ # `projects/{project}/locations/{location}/backupPolicies/{backup_policy}`
73
+ #
74
+ # @param project [String]
75
+ # @param location [String]
76
+ # @param backup_policy [String]
77
+ #
78
+ # @return [::String]
79
+ def backup_policy_path project:, location:, backup_policy:
80
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
81
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
82
+
83
+ "projects/#{project}/locations/#{location}/backupPolicies/#{backup_policy}"
84
+ end
85
+
86
+ ##
87
+ # Create a fully-qualified BackupVault resource string.
88
+ #
89
+ # The resource will be in the following format:
90
+ #
91
+ # `projects/{project}/locations/{location}/backupVaults/{backup_vault}`
92
+ #
93
+ # @param project [String]
94
+ # @param location [String]
95
+ # @param backup_vault [String]
96
+ #
97
+ # @return [::String]
98
+ def backup_vault_path project:, location:, backup_vault:
99
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
100
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
101
+
102
+ "projects/#{project}/locations/#{location}/backupVaults/#{backup_vault}"
103
+ end
104
+
46
105
  ##
47
106
  # Create a fully-qualified KmsConfig resource string.
48
107
  #