forked from cloudfoundry/cloud_controller_ng
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v3(services): create service key binding
* v3(services): Add operations table for service keys [#174147679](https://www.pivotaltracker.com/story/show/174147679) * v3(services): add service key binding actor [#174147679](https://www.pivotaltracker.com/story/show/174147679) * v3(services): add last operation to service keys [#174147679](https://www.pivotaltracker.com/story/show/174147679) * v3(services): create key action binds and polls last operation [#174147679](https://www.pivotaltracker.com/story/show/174147679) * v3(services): service key controller and client implementation This commit reuses the same bind method in the client for service keys, service credential and service route bindings. Before this, service keys had their own create_service_key client method, which is still available for v2 [#174147679](https://www.pivotaltracker.com/story/show/174147679) * v3(services): configure resource urls and logging keys used for service key bindings [#174147679](https://www.pivotaltracker.com/story/show/174147679) * v3(tests): extract common tests for ServiceBindings and ServiceKey creation [#174147679](https://www.pivotaltracker.com/story/show/174147679) * v3(style): fix rubocop issues [#174147679](https://www.pivotaltracker.com/story/show/174147679) * v3(tests): fix service key bindings tests [#174147679](https://www.pivotaltracker.com/story/show/174147679) * v3(services): refactor service bindings creation [#174147679](https://www.pivotaltracker.com/story/show/174147679) * v3(services): async key bindings tests [#174163869](https://www.pivotaltracker.com/story/show/174163869) * v3(services): create key changes from PR [#174163869](https://www.pivotaltracker.com/story/show/174163869) * v3(services): Reorder signature for enqueue_bind_job Co-authored-by: Felisia Martini <[email protected]>
- Loading branch information
1 parent
e8e660f
commit 4dc219d
Showing
33 changed files
with
1,213 additions
and
712 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
module VCAP::CloudController | ||
module V3 | ||
class CreateServiceKeyBindingJobActor | ||
def display_name | ||
'service_keys.create' | ||
end | ||
|
||
def resource_type | ||
'service_credential_binding' | ||
end | ||
|
||
def get_resource(resource_id) | ||
ServiceKey.first(guid: resource_id) | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
module VCAP::CloudController | ||
class ServiceKeyOperation < Sequel::Model | ||
export_attributes :state, :description, :type, :updated_at, :created_at | ||
|
||
def update_attributes(attrs) | ||
self.set attrs | ||
self.save | ||
end | ||
end | ||
end |
Oops, something went wrong.