more doc improvements (#54649)

This commit is contained in:
Zim Kalinowski 2019-04-02 09:33:00 +08:00 committed by Yunge Zhu
parent d01c1599b0
commit d760b400af
7 changed files with 17 additions and 15 deletions

View file

@ -74,8 +74,8 @@ author:
EXAMPLES = ''' EXAMPLES = '''
- name: Create a workspace with backup enabled - name: Create a workspace with backup enabled
azure_rm_loganalyticsworkspace: azure_rm_loganalyticsworkspace:
resource_group: foo resource_group: myResourceGroup
name: bar name: myLogAnalyticsWorkspace
intelligence_pack: intelligence_pack:
Backup: true Backup: true
''' '''
@ -85,13 +85,14 @@ id:
description: Workspace resource path. description: Workspace resource path.
type: str type: str
returned: success returned: success
example: "/subscriptions/XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXX/resourceGroups/foo/providers/Microsoft.OperationalInsights/workspaces/bar" example: "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.OperationalInsights/workspaces/m
yLogAnalyticsWorkspace"
location: location:
description: description:
- Resource location. - Resource location.
type: str type: str
returned: success returned: success
example: "eastus" example: eastus
sku: sku:
description: description:
- The SKU of the workspace - The SKU of the workspace

View file

@ -58,8 +58,8 @@ author:
EXAMPLES = ''' EXAMPLES = '''
- name: Query a workspace - name: Query a workspace
azure_rm_loganalyticsworkspace_facts: azure_rm_loganalyticsworkspace_facts:
resource_group: foo resource_group: myResourceGroup
name: bar name: myLogAnalyticsWorkspace
show_intelligence_packs: true show_intelligence_packs: true
show_management_groups: true show_management_groups: true
show_shared_keys: true show_shared_keys: true
@ -71,7 +71,8 @@ id:
description: Workspace resource path. description: Workspace resource path.
type: str type: str
returned: success returned: success
example: "/subscriptions/XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXX/resourceGroups/foo/providers/Microsoft.OperationalInsights/workspaces/bar" example: "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.OperationalInsights/workspaces/m
yLogAnalyticsWorkspace"
location: location:
description: description:
- Resource location. - Resource location.

View file

@ -69,18 +69,18 @@ author:
EXAMPLES = ''' EXAMPLES = '''
- name: Get all namespaces under a resource group - name: Get all namespaces under a resource group
azure_rm_servicebus_facts: azure_rm_servicebus_facts:
resource_group: foo resource_group: myResourceGroup
type: namespace type: namespace
- name: Get all topics under a namespace - name: Get all topics under a namespace
azure_rm_servicebus_facts: azure_rm_servicebus_facts:
resource_group: foo resource_group: myResourceGroup
namespace: bar namespace: bar
type: topic type: topic
- name: Get a single queue with SAS policies - name: Get a single queue with SAS policies
azure_rm_servicebus_facts: azure_rm_servicebus_facts:
resource_group: foo resource_group: myResourceGroup
namespace: bar namespace: bar
type: queue type: queue
name: sbqueue name: sbqueue
@ -88,7 +88,7 @@ EXAMPLES = '''
- name: Get all subscriptions under a resource group - name: Get all subscriptions under a resource group
azure_rm_servicebus_facts: azure_rm_servicebus_facts:
resource_group: foo resource_group: myResourceGroup
type: subscription type: subscription
namespace: bar namespace: bar
topic: sbtopic topic: sbtopic

View file

@ -126,7 +126,7 @@ EXAMPLES = '''
- name: Create a queue - name: Create a queue
azure_rm_servicebusqueue: azure_rm_servicebusqueue:
name: subqueue name: subqueue
resource_group: foo resource_group: myResourceGroup
namespace: bar namespace: bar
duplicate_detection_time_in_seconds: 600 duplicate_detection_time_in_seconds: 600
''' '''

View file

@ -85,7 +85,7 @@ EXAMPLES = '''
name: deadbeef name: deadbeef
queue: qux queue: qux
namespace: bar namespace: bar
resource_group: foo resource_group: myResourceGroup
rights: send rights: send
''' '''
RETURN = ''' RETURN = '''

View file

@ -105,7 +105,7 @@ EXAMPLES = '''
- name: Create a topic - name: Create a topic
azure_rm_servicebustopic: azure_rm_servicebustopic:
name: subtopic name: subtopic
resource_group: foo resource_group: myResourceGroup
namespace: bar namespace: bar
duplicate_detection_time_in_seconds: 600 duplicate_detection_time_in_seconds: 600
''' '''

View file

@ -117,7 +117,7 @@ EXAMPLES = '''
- name: Create a subscription - name: Create a subscription
azure_rm_servicebustopicsubscription: azure_rm_servicebustopicsubscription:
name: sbsub name: sbsub
resource_group: foo resource_group: myResourceGroup
namespace: bar namespace: bar
topic: subtopic topic: subtopic
''' '''