google-cloud-sql-v1beta4 0.2.0 → 0.3.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 (35) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/sql/v1beta4/blue_green_deployments_service/client.rb +906 -0
  3. data/lib/google/cloud/sql/v1beta4/blue_green_deployments_service/credentials.rb +48 -0
  4. data/lib/google/cloud/sql/v1beta4/blue_green_deployments_service/paths.rb +69 -0
  5. data/lib/google/cloud/sql/v1beta4/blue_green_deployments_service/rest/client.rb +828 -0
  6. data/lib/google/cloud/sql/v1beta4/blue_green_deployments_service/rest/service_stub.rb +388 -0
  7. data/lib/google/cloud/sql/v1beta4/blue_green_deployments_service/rest.rb +52 -0
  8. data/lib/google/cloud/sql/v1beta4/blue_green_deployments_service.rb +55 -0
  9. data/lib/google/cloud/sql/v1beta4/cloud_sql_blue_green_deployments_pb.rb +47 -0
  10. data/lib/google/cloud/sql/v1beta4/cloud_sql_blue_green_deployments_services_pb.rb +65 -0
  11. data/lib/google/cloud/sql/v1beta4/cloud_sql_resources_pb.rb +9 -1
  12. data/lib/google/cloud/sql/v1beta4/cloud_sql_workload_captures_pb.rb +35 -0
  13. data/lib/google/cloud/sql/v1beta4/cloud_sql_workload_captures_services_pb.rb +60 -0
  14. data/lib/google/cloud/sql/v1beta4/rest.rb +2 -0
  15. data/lib/google/cloud/sql/v1beta4/sql_backup_runs_service/client.rb +2 -0
  16. data/lib/google/cloud/sql/v1beta4/sql_backup_runs_service/paths.rb +77 -0
  17. data/lib/google/cloud/sql/v1beta4/sql_backup_runs_service/rest/client.rb +2 -0
  18. data/lib/google/cloud/sql/v1beta4/sql_backup_runs_service/rest.rb +1 -0
  19. data/lib/google/cloud/sql/v1beta4/sql_backup_runs_service.rb +1 -0
  20. data/lib/google/cloud/sql/v1beta4/sql_backups_service/paths.rb +63 -0
  21. data/lib/google/cloud/sql/v1beta4/sql_instances_service/paths.rb +63 -0
  22. data/lib/google/cloud/sql/v1beta4/sql_workload_captures_service/client.rb +905 -0
  23. data/lib/google/cloud/sql/v1beta4/sql_workload_captures_service/credentials.rb +48 -0
  24. data/lib/google/cloud/sql/v1beta4/sql_workload_captures_service/rest/client.rb +809 -0
  25. data/lib/google/cloud/sql/v1beta4/sql_workload_captures_service/rest/service_stub.rb +396 -0
  26. data/lib/google/cloud/sql/v1beta4/sql_workload_captures_service/rest.rb +51 -0
  27. data/lib/google/cloud/sql/v1beta4/sql_workload_captures_service.rb +54 -0
  28. data/lib/google/cloud/sql/v1beta4/version.rb +1 -1
  29. data/lib/google/cloud/sql/v1beta4.rb +2 -0
  30. data/proto_docs/google/cloud/sql/v1beta4/cloud_sql.rb +1 -1
  31. data/proto_docs/google/cloud/sql/v1beta4/cloud_sql_blue_green_deployments.rb +428 -0
  32. data/proto_docs/google/cloud/sql/v1beta4/cloud_sql_resources.rb +197 -2
  33. data/proto_docs/google/cloud/sql/v1beta4/cloud_sql_users.rb +4 -4
  34. data/proto_docs/google/cloud/sql/v1beta4/cloud_sql_workload_captures.rb +169 -0
  35. metadata +21 -1
@@ -41,6 +41,69 @@ module Google
41
41
  "projects/#{project}/backups/#{backup}"
42
42
  end
43
43
 
44
+ ##
45
+ # Create a fully-qualified CryptoKey resource string.
46
+ #
47
+ # The resource will be in the following format:
48
+ #
49
+ # `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`
50
+ #
51
+ # @param project [String]
52
+ # @param location [String]
53
+ # @param key_ring [String]
54
+ # @param crypto_key [String]
55
+ #
56
+ # @return [::String]
57
+ def crypto_key_path project:, location:, key_ring:, crypto_key:
58
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
59
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
60
+ raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/"
61
+
62
+ "projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}"
63
+ end
64
+
65
+ ##
66
+ # Create a fully-qualified CryptoKeyVersion resource string.
67
+ #
68
+ # The resource will be in the following format:
69
+ #
70
+ # `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`
71
+ #
72
+ # @param project [String]
73
+ # @param location [String]
74
+ # @param key_ring [String]
75
+ # @param crypto_key [String]
76
+ # @param crypto_key_version [String]
77
+ #
78
+ # @return [::String]
79
+ def crypto_key_version_path project:, location:, key_ring:, crypto_key:, crypto_key_version:
80
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
81
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
82
+ raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/"
83
+ raise ::ArgumentError, "crypto_key cannot contain /" if crypto_key.to_s.include? "/"
84
+
85
+ "projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}/cryptoKeyVersions/#{crypto_key_version}"
86
+ end
87
+
88
+ ##
89
+ # Create a fully-qualified NetworkAttachment resource string.
90
+ #
91
+ # The resource will be in the following format:
92
+ #
93
+ # `projects/{project}/regions/{region}/networkAttachments/{network_attachment}`
94
+ #
95
+ # @param project [String]
96
+ # @param region [String]
97
+ # @param network_attachment [String]
98
+ #
99
+ # @return [::String]
100
+ def network_attachment_path project:, region:, network_attachment:
101
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
102
+ raise ::ArgumentError, "region cannot contain /" if region.to_s.include? "/"
103
+
104
+ "projects/#{project}/regions/#{region}/networkAttachments/#{network_attachment}"
105
+ end
106
+
44
107
  ##
45
108
  # Create a fully-qualified Project resource string.
46
109
  #
@@ -69,6 +69,50 @@ module Google
69
69
  resource.call(**args)
70
70
  end
71
71
 
72
+ ##
73
+ # Create a fully-qualified CryptoKey resource string.
74
+ #
75
+ # The resource will be in the following format:
76
+ #
77
+ # `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`
78
+ #
79
+ # @param project [String]
80
+ # @param location [String]
81
+ # @param key_ring [String]
82
+ # @param crypto_key [String]
83
+ #
84
+ # @return [::String]
85
+ def crypto_key_path project:, location:, key_ring:, crypto_key:
86
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
87
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
88
+ raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/"
89
+
90
+ "projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}"
91
+ end
92
+
93
+ ##
94
+ # Create a fully-qualified CryptoKeyVersion resource string.
95
+ #
96
+ # The resource will be in the following format:
97
+ #
98
+ # `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`
99
+ #
100
+ # @param project [String]
101
+ # @param location [String]
102
+ # @param key_ring [String]
103
+ # @param crypto_key [String]
104
+ # @param crypto_key_version [String]
105
+ #
106
+ # @return [::String]
107
+ def crypto_key_version_path project:, location:, key_ring:, crypto_key:, crypto_key_version:
108
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
109
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
110
+ raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/"
111
+ raise ::ArgumentError, "crypto_key cannot contain /" if crypto_key.to_s.include? "/"
112
+
113
+ "projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}/cryptoKeyVersions/#{crypto_key_version}"
114
+ end
115
+
72
116
  ##
73
117
  # Create a fully-qualified Network resource string.
74
118
  #
@@ -86,6 +130,25 @@ module Google
86
130
  "projects/#{project}/global/networks/#{network}"
87
131
  end
88
132
 
133
+ ##
134
+ # Create a fully-qualified NetworkAttachment resource string.
135
+ #
136
+ # The resource will be in the following format:
137
+ #
138
+ # `projects/{project}/regions/{region}/networkAttachments/{network_attachment}`
139
+ #
140
+ # @param project [String]
141
+ # @param region [String]
142
+ # @param network_attachment [String]
143
+ #
144
+ # @return [::String]
145
+ def network_attachment_path project:, region:, network_attachment:
146
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
147
+ raise ::ArgumentError, "region cannot contain /" if region.to_s.include? "/"
148
+
149
+ "projects/#{project}/regions/#{region}/networkAttachments/#{network_attachment}"
150
+ end
151
+
89
152
  ##
90
153
  # Create a fully-qualified SecretVersion resource string.
91
154
  #