-
Notifications
You must be signed in to change notification settings - Fork 21
add deleteCustomFramework endpoint #2185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| # Delete a custom framework returns "OK" response | ||
|
|
||
| require "datadog_api_client" | ||
| api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new | ||
| p api_instance.delete_custom_framework("org_id", "handle", "version") |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1726,55 +1726,10 @@ | |
| "v2.UploadIdPMetadata" => { | ||
| "idp_file" => "File", | ||
| }, | ||
| "v2.ListRoles" => { | ||
| "page_size" => "Integer", | ||
| "page_number" => "Integer", | ||
| "sort" => "RolesSort", | ||
| "filter" => "String", | ||
| "filter_id" => "String", | ||
| }, | ||
| "v2.CreateRole" => { | ||
| "body" => "RoleCreateRequest", | ||
| }, | ||
| "v2.DeleteRole" => { | ||
| "role_id" => "String", | ||
| }, | ||
| "v2.GetRole" => { | ||
| "role_id" => "String", | ||
| }, | ||
| "v2.UpdateRole" => { | ||
| "role_id" => "String", | ||
| "body" => "RoleUpdateRequest", | ||
| }, | ||
| "v2.CloneRole" => { | ||
| "role_id" => "String", | ||
| "body" => "RoleCloneRequest", | ||
| }, | ||
| "v2.RemovePermissionFromRole" => { | ||
| "role_id" => "String", | ||
| "body" => "RelationshipToPermission", | ||
| }, | ||
| "v2.ListRolePermissions" => { | ||
| "role_id" => "String", | ||
| }, | ||
| "v2.AddPermissionToRole" => { | ||
| "role_id" => "String", | ||
| "body" => "RelationshipToPermission", | ||
| }, | ||
| "v2.RemoveUserFromRole" => { | ||
| "role_id" => "String", | ||
| "body" => "RelationshipToUser", | ||
| }, | ||
| "v2.ListRoleUsers" => { | ||
| "role_id" => "String", | ||
| "page_size" => "Integer", | ||
| "page_number" => "Integer", | ||
| "sort" => "String", | ||
| "filter" => "String", | ||
| }, | ||
| "v2.AddUserToRole" => { | ||
| "role_id" => "String", | ||
| "body" => "RelationshipToUser", | ||
| "v2.DeleteCustomFramework" => { | ||
| "org_id" => "String", | ||
| "handle" => "String", | ||
| "version" => "String", | ||
| }, | ||
| "v2.ListFindings" => { | ||
| "page_limit" => "Integer", | ||
|
|
@@ -1964,6 +1919,56 @@ | |
| "v2.CancelHistoricalJob" => { | ||
| "job_id" => "String", | ||
| }, | ||
| "v2.ListRoles" => { | ||
| "page_size" => "Integer", | ||
| "page_number" => "Integer", | ||
| "sort" => "RolesSort", | ||
| "filter" => "String", | ||
| "filter_id" => "String", | ||
| }, | ||
| "v2.CreateRole" => { | ||
| "body" => "RoleCreateRequest", | ||
| }, | ||
|
Comment on lines
+1929
to
+1931
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ⚪ Code Quality ViolationConsider using symbols instead of string hash keys (...read more)In Ruby, it is a best practice to use symbols instead of strings as hash keys. This rule emphasizes that it's more efficient and idiomatic to use symbols for this purpose. Symbols are immutable and unique, which makes them ideal for identifying things, whereas strings are mutable and can create multiple objects for the same sequence of characters. The importance of this rule lies in the performance and memory usage of your Ruby application. Using symbols as hash keys reduces memory usage because they are stored in memory only once during a Ruby process. This can make a significant difference in the efficiency of your application, especially when dealing with large data sets. To ensure you're following good coding practices, always use symbols for hash keys unless there's a specific reason to use a string. A simple refactoring from |
||
| "v2.DeleteRole" => { | ||
| "role_id" => "String", | ||
| }, | ||
|
Comment on lines
+1932
to
+1934
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ⚪ Code Quality ViolationConsider using symbols instead of string hash keys (...read more)In Ruby, it is a best practice to use symbols instead of strings as hash keys. This rule emphasizes that it's more efficient and idiomatic to use symbols for this purpose. Symbols are immutable and unique, which makes them ideal for identifying things, whereas strings are mutable and can create multiple objects for the same sequence of characters. The importance of this rule lies in the performance and memory usage of your Ruby application. Using symbols as hash keys reduces memory usage because they are stored in memory only once during a Ruby process. This can make a significant difference in the efficiency of your application, especially when dealing with large data sets. To ensure you're following good coding practices, always use symbols for hash keys unless there's a specific reason to use a string. A simple refactoring from |
||
| "v2.GetRole" => { | ||
| "role_id" => "String", | ||
| }, | ||
|
Comment on lines
+1935
to
+1937
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ⚪ Code Quality ViolationConsider using symbols instead of string hash keys (...read more)In Ruby, it is a best practice to use symbols instead of strings as hash keys. This rule emphasizes that it's more efficient and idiomatic to use symbols for this purpose. Symbols are immutable and unique, which makes them ideal for identifying things, whereas strings are mutable and can create multiple objects for the same sequence of characters. The importance of this rule lies in the performance and memory usage of your Ruby application. Using symbols as hash keys reduces memory usage because they are stored in memory only once during a Ruby process. This can make a significant difference in the efficiency of your application, especially when dealing with large data sets. To ensure you're following good coding practices, always use symbols for hash keys unless there's a specific reason to use a string. A simple refactoring from |
||
| "v2.UpdateRole" => { | ||
| "role_id" => "String", | ||
| "body" => "RoleUpdateRequest", | ||
| }, | ||
|
Comment on lines
+1938
to
+1941
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ⚪ Code Quality ViolationConsider using symbols instead of string hash keys (...read more)In Ruby, it is a best practice to use symbols instead of strings as hash keys. This rule emphasizes that it's more efficient and idiomatic to use symbols for this purpose. Symbols are immutable and unique, which makes them ideal for identifying things, whereas strings are mutable and can create multiple objects for the same sequence of characters. The importance of this rule lies in the performance and memory usage of your Ruby application. Using symbols as hash keys reduces memory usage because they are stored in memory only once during a Ruby process. This can make a significant difference in the efficiency of your application, especially when dealing with large data sets. To ensure you're following good coding practices, always use symbols for hash keys unless there's a specific reason to use a string. A simple refactoring from |
||
| "v2.CloneRole" => { | ||
| "role_id" => "String", | ||
| "body" => "RoleCloneRequest", | ||
| }, | ||
|
Comment on lines
+1942
to
+1945
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ⚪ Code Quality ViolationConsider using symbols instead of string hash keys (...read more)In Ruby, it is a best practice to use symbols instead of strings as hash keys. This rule emphasizes that it's more efficient and idiomatic to use symbols for this purpose. Symbols are immutable and unique, which makes them ideal for identifying things, whereas strings are mutable and can create multiple objects for the same sequence of characters. The importance of this rule lies in the performance and memory usage of your Ruby application. Using symbols as hash keys reduces memory usage because they are stored in memory only once during a Ruby process. This can make a significant difference in the efficiency of your application, especially when dealing with large data sets. To ensure you're following good coding practices, always use symbols for hash keys unless there's a specific reason to use a string. A simple refactoring from |
||
| "v2.RemovePermissionFromRole" => { | ||
| "role_id" => "String", | ||
| "body" => "RelationshipToPermission", | ||
| }, | ||
|
Comment on lines
+1946
to
+1949
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ⚪ Code Quality ViolationConsider using symbols instead of string hash keys (...read more)In Ruby, it is a best practice to use symbols instead of strings as hash keys. This rule emphasizes that it's more efficient and idiomatic to use symbols for this purpose. Symbols are immutable and unique, which makes them ideal for identifying things, whereas strings are mutable and can create multiple objects for the same sequence of characters. The importance of this rule lies in the performance and memory usage of your Ruby application. Using symbols as hash keys reduces memory usage because they are stored in memory only once during a Ruby process. This can make a significant difference in the efficiency of your application, especially when dealing with large data sets. To ensure you're following good coding practices, always use symbols for hash keys unless there's a specific reason to use a string. A simple refactoring from |
||
| "v2.ListRolePermissions" => { | ||
| "role_id" => "String", | ||
| }, | ||
|
Comment on lines
+1950
to
+1952
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ⚪ Code Quality ViolationConsider using symbols instead of string hash keys (...read more)In Ruby, it is a best practice to use symbols instead of strings as hash keys. This rule emphasizes that it's more efficient and idiomatic to use symbols for this purpose. Symbols are immutable and unique, which makes them ideal for identifying things, whereas strings are mutable and can create multiple objects for the same sequence of characters. The importance of this rule lies in the performance and memory usage of your Ruby application. Using symbols as hash keys reduces memory usage because they are stored in memory only once during a Ruby process. This can make a significant difference in the efficiency of your application, especially when dealing with large data sets. To ensure you're following good coding practices, always use symbols for hash keys unless there's a specific reason to use a string. A simple refactoring from |
||
| "v2.AddPermissionToRole" => { | ||
| "role_id" => "String", | ||
| "body" => "RelationshipToPermission", | ||
| }, | ||
|
Comment on lines
+1953
to
+1956
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ⚪ Code Quality ViolationConsider using symbols instead of string hash keys (...read more)In Ruby, it is a best practice to use symbols instead of strings as hash keys. This rule emphasizes that it's more efficient and idiomatic to use symbols for this purpose. Symbols are immutable and unique, which makes them ideal for identifying things, whereas strings are mutable and can create multiple objects for the same sequence of characters. The importance of this rule lies in the performance and memory usage of your Ruby application. Using symbols as hash keys reduces memory usage because they are stored in memory only once during a Ruby process. This can make a significant difference in the efficiency of your application, especially when dealing with large data sets. To ensure you're following good coding practices, always use symbols for hash keys unless there's a specific reason to use a string. A simple refactoring from |
||
| "v2.RemoveUserFromRole" => { | ||
| "role_id" => "String", | ||
| "body" => "RelationshipToUser", | ||
| }, | ||
|
Comment on lines
+1957
to
+1960
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ⚪ Code Quality ViolationConsider using symbols instead of string hash keys (...read more)In Ruby, it is a best practice to use symbols instead of strings as hash keys. This rule emphasizes that it's more efficient and idiomatic to use symbols for this purpose. Symbols are immutable and unique, which makes them ideal for identifying things, whereas strings are mutable and can create multiple objects for the same sequence of characters. The importance of this rule lies in the performance and memory usage of your Ruby application. Using symbols as hash keys reduces memory usage because they are stored in memory only once during a Ruby process. This can make a significant difference in the efficiency of your application, especially when dealing with large data sets. To ensure you're following good coding practices, always use symbols for hash keys unless there's a specific reason to use a string. A simple refactoring from |
||
| "v2.ListRoleUsers" => { | ||
| "role_id" => "String", | ||
| "page_size" => "Integer", | ||
| "page_number" => "Integer", | ||
| "sort" => "String", | ||
| "filter" => "String", | ||
| }, | ||
|
Comment on lines
+1961
to
+1967
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ⚪ Code Quality ViolationConsider using symbols instead of string hash keys (...read more)In Ruby, it is a best practice to use symbols instead of strings as hash keys. This rule emphasizes that it's more efficient and idiomatic to use symbols for this purpose. Symbols are immutable and unique, which makes them ideal for identifying things, whereas strings are mutable and can create multiple objects for the same sequence of characters. The importance of this rule lies in the performance and memory usage of your Ruby application. Using symbols as hash keys reduces memory usage because they are stored in memory only once during a Ruby process. This can make a significant difference in the efficiency of your application, especially when dealing with large data sets. To ensure you're following good coding practices, always use symbols for hash keys unless there's a specific reason to use a string. A simple refactoring from |
||
| "v2.AddUserToRole" => { | ||
| "role_id" => "String", | ||
| "body" => "RelationshipToUser", | ||
| }, | ||
|
Comment on lines
+1968
to
+1971
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ⚪ Code Quality ViolationConsider using symbols instead of string hash keys (...read more)In Ruby, it is a best practice to use symbols instead of strings as hash keys. This rule emphasizes that it's more efficient and idiomatic to use symbols for this purpose. Symbols are immutable and unique, which makes them ideal for identifying things, whereas strings are mutable and can create multiple objects for the same sequence of characters. The importance of this rule lies in the performance and memory usage of your Ruby application. Using symbols as hash keys reduces memory usage because they are stored in memory only once during a Ruby process. This can make a significant difference in the efficiency of your application, especially when dealing with large data sets. To ensure you're following good coding practices, always use symbols for hash keys unless there's a specific reason to use a string. A simple refactoring from |
||
| "v2.ListPowerpacks" => { | ||
| "page_limit" => "Integer", | ||
| "page_offset" => "Integer", | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⚪ Code Quality Violation
Consider using symbols instead of string hash keys (...read more)
In Ruby, it is a best practice to use symbols instead of strings as hash keys. This rule emphasizes that it's more efficient and idiomatic to use symbols for this purpose. Symbols are immutable and unique, which makes them ideal for identifying things, whereas strings are mutable and can create multiple objects for the same sequence of characters.
The importance of this rule lies in the performance and memory usage of your Ruby application. Using symbols as hash keys reduces memory usage because they are stored in memory only once during a Ruby process. This can make a significant difference in the efficiency of your application, especially when dealing with large data sets.
To ensure you're following good coding practices, always use symbols for hash keys unless there's a specific reason to use a string. A simple refactoring from
values = { 'foo' => 42, 'bar' => 99, 'baz' => 123 }tovalues = { foo: 42, bar: 99, baz: 123 }will make your code compliant with this rule. This not only improves your code's performance but also makes it more readable and consistent with Ruby's conventions.